@botonic/plugin-flow-builder
Version:
Use Flow Builder to show your contents
21 lines (20 loc) • 986 B
TypeScript
/// <reference types="react" />
import { CarouselMessage } from '@botonic/core';
import { ActionRequest } from '@botonic/react';
import { FlowBuilderApi } from '../api';
import { ContentFieldsBase } from './content-fields-base';
import { FlowElement } from './flow-element';
import { HtCarouselNode } from './hubtype-fields';
export declare class FlowCarousel extends ContentFieldsBase {
elements: FlowElement[];
static fromHubtypeCMS(component: HtCarouselNode, locale: string, cmsApi: FlowBuilderApi): FlowCarousel;
trackFlow(request: ActionRequest): Promise<void>;
static areElementsValidForWhatsapp: (carouselMessage: CarouselMessage) => boolean;
static generateWhatsappElementText(element: {
title: string;
subtitle?: string;
}): string;
static fromAIAgent(id: string, carouselMessage: CarouselMessage, request: ActionRequest): JSX.Element;
private toCarouselMessage;
toBotonic(id: string, request: ActionRequest): JSX.Element;
}