UNPKG

@botonic/react

Version:

Build Chatbots using React

32 lines (31 loc) 1.08 kB
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; 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";