@botonic/react
Version:
Build Chatbots using React
39 lines (38 loc) • 1.67 kB
TypeScript
export class DevApp extends WebchatApp {
constructor({ theme, persistentMenu, coverComponent, blockInputs, enableEmojiPicker, enableAttachments, enableUserInput, enableAnimations, shadowDOM, hostId, storage, storageKey, onInit, onOpen, onClose, onMessage, onTrackEvent, ...botOptions }: {
[x: string]: any;
theme?: {} | undefined;
persistentMenu: any;
coverComponent: any;
blockInputs: any;
enableEmojiPicker: any;
enableAttachments: any;
enableUserInput: any;
enableAnimations: any;
shadowDOM: any;
hostId: any;
storage: any;
storageKey: any;
onInit: any;
onOpen: any;
onClose: any;
onMessage: any;
onTrackEvent: any;
});
bot: ReactBot;
getComponent(host: any, optionsAtRuntime?: {}): import("react/jsx-runtime").JSX.Element;
onInit: ((app: WebchatApp, args: any) => void) | undefined;
onOpen: ((app: WebchatApp, args: any) => void) | undefined;
onClose: ((app: WebchatApp, args: any) => void) | undefined;
onMessage: ((app: WebchatApp, message: import("./index-types").WebchatMessage) => void) | undefined;
onTrackEvent: ((request: import("./index-types").ActionRequest, eventName: string, args?: import("./index-types").EventArgs | undefined) => Promise<void>) | undefined;
hostId: string | undefined;
render(dest: any, optionsAtRuntime?: {}): void;
onUserInput({ input, session, lastRoutePath }: {
input: any;
session: any;
lastRoutePath: any;
}): Promise<void>;
}
import { WebchatApp } from "./webchat-app";
import { ReactBot } from "./react-bot";