UNPKG

@botonic/plugin-flow-builder

Version:

Use Flow Builder to show your contents

19 lines (18 loc) 915 B
/// <reference types="react" /> import { TextMessage, TextWithButtonsMessage } from '@botonic/core'; import { ActionRequest } from '@botonic/react'; import { FlowBuilderApi } from '../api'; import { ContentFieldsBase } from './content-fields-base'; import { FlowButton } from './flow-button'; import { HtButtonStyle, HtTextNode } from './hubtype-fields'; export declare class FlowText extends ContentFieldsBase { text: string; buttons: FlowButton[]; buttonStyle: HtButtonStyle; static fromHubtypeCMS(cmsText: HtTextNode, locale: string, cmsApi: FlowBuilderApi): FlowText; static replaceVariables(text: string, request: ActionRequest): string; private static isValidType; trackFlow(request: ActionRequest): Promise<void>; static fromAIAgent(id: string, textMessage: TextMessage | TextWithButtonsMessage): JSX.Element; toBotonic(id: string, request: ActionRequest): JSX.Element; }