UNPKG

@botonic/plugin-flow-builder

Version:

Use Flow Builder to show your contents

24 lines (23 loc) 871 B
/// <reference types="react" /> import { Button } from '@botonic/core'; import { ActionRequest } from '@botonic/react'; import { FlowBuilderApi } from '../api'; import { ContentFieldsBase } from './content-fields-base'; import { FlowButton } from './flow-button'; import { HtCarouselElement } from './hubtype-fields'; export declare class FlowElement extends ContentFieldsBase { title: string; subtitle: string; button: FlowButton | undefined; image: string; hidden: boolean; static fromHubtypeCMS(component: HtCarouselElement, locale: string, cmsApi: FlowBuilderApi): FlowElement; static fromAIAgent(id: string, element: { title: string; subtitle: string; image: string; button: Button; }): FlowElement; trackFlow(request: ActionRequest): Promise<void>; toBotonic(parentId: string): JSX.Element; }