Files
bot/packages/embeds/js/src/constants.ts
Baptiste Arnaud 123926f273 🚸 Improve support accessibility
Add documentation button in board menu and hide the support bubble in the editor. Makes it accessible only by clicking the "Help" button
2023-05-15 10:49:51 +02:00

38 lines
901 B
TypeScript

import type { BubbleProps } from './features/bubble'
import type { PopupProps } from './features/popup'
import type { BotProps } from './components/Bot'
export const defaultBotProps: BotProps = {
typebot: '',
onNewInputBlock: undefined,
onAnswer: undefined,
onEnd: undefined,
onInit: undefined,
onNewLogs: undefined,
isPreview: undefined,
startGroupId: undefined,
prefilledVariables: undefined,
apiHost: undefined,
resultId: undefined,
}
export const defaultPopupProps: PopupProps = {
...defaultBotProps,
onClose: undefined,
onOpen: undefined,
theme: undefined,
autoShowDelay: undefined,
isOpen: undefined,
defaultOpen: undefined,
}
export const defaultBubbleProps: BubbleProps = {
...defaultBotProps,
onClose: undefined,
onOpen: undefined,
theme: undefined,
previewMessage: undefined,
onPreviewMessageClick: undefined,
autoShowDelay: undefined,
}