@urbiport/js 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -0
- package/dist/components/Bot.d.ts +26 -0
- package/dist/components/Bot.d.ts.map +1 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/ConversationContainer/AvatarSideContainer.d.ts +8 -0
- package/dist/components/ConversationContainer/AvatarSideContainer.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ChatChunk.d.ts +20 -0
- package/dist/components/ConversationContainer/ChatChunk.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationContainer.d.ts +17 -0
- package/dist/components/ConversationContainer/ConversationContainer.d.ts.map +1 -0
- package/dist/components/ConversationContainer/LoadingChunk.d.ts +7 -0
- package/dist/components/ConversationContainer/LoadingChunk.d.ts.map +1 -0
- package/dist/components/ConversationContainer/PopupBlockedToast.d.ts +7 -0
- package/dist/components/ConversationContainer/PopupBlockedToast.d.ts.map +1 -0
- package/dist/components/ConversationContainer/index.d.ts +2 -0
- package/dist/components/ConversationContainer/index.d.ts.map +1 -0
- package/dist/components/ErrorMessage.d.ts +6 -0
- package/dist/components/ErrorMessage.d.ts.map +1 -0
- package/dist/components/InputChatBlock.d.ts +18 -0
- package/dist/components/InputChatBlock.d.ts.map +1 -0
- package/dist/components/LiteBadge.d.ts +6 -0
- package/dist/components/LiteBadge.d.ts.map +1 -0
- package/dist/components/Modal.d.ts +9 -0
- package/dist/components/Modal.d.ts.map +1 -0
- package/dist/components/ProgressBar.d.ts +6 -0
- package/dist/components/ProgressBar.d.ts.map +1 -0
- package/dist/components/SendButton.d.ts +10 -0
- package/dist/components/SendButton.d.ts.map +1 -0
- package/dist/components/Spinner.d.ts +3 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/TextInputAddFileButton.d.ts +7 -0
- package/dist/components/TextInputAddFileButton.d.ts.map +1 -0
- package/dist/components/TypingBubble.d.ts +2 -0
- package/dist/components/TypingBubble.d.ts.map +1 -0
- package/dist/components/avatars/Avatar.d.ts +4 -0
- package/dist/components/avatars/Avatar.d.ts.map +1 -0
- package/dist/components/avatars/DefaultAvatar.d.ts +2 -0
- package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
- package/dist/components/bubbles/GuestBubble.d.ts +10 -0
- package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
- package/dist/components/bubbles/HostBubble.d.ts +12 -0
- package/dist/components/bubbles/HostBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LoadingBubble.d.ts +2 -0
- package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
- package/dist/components/bubbles/StreamingBubble.d.ts +8 -0
- package/dist/components/bubbles/StreamingBubble.d.ts.map +1 -0
- package/dist/components/icons/CameraIcon.d.ts +3 -0
- package/dist/components/icons/CameraIcon.d.ts.map +1 -0
- package/dist/components/icons/CheckIcon.d.ts +3 -0
- package/dist/components/icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/ChevronDownIcon.d.ts +3 -0
- package/dist/components/icons/ChevronDownIcon.d.ts.map +1 -0
- package/dist/components/icons/CloseIcon.d.ts +3 -0
- package/dist/components/icons/CloseIcon.d.ts.map +1 -0
- package/dist/components/icons/FileIcon.d.ts +3 -0
- package/dist/components/icons/FileIcon.d.ts.map +1 -0
- package/dist/components/icons/MicrophoneIcon.d.ts +3 -0
- package/dist/components/icons/MicrophoneIcon.d.ts.map +1 -0
- package/dist/components/icons/PaperClipIcon.d.ts +3 -0
- package/dist/components/icons/PaperClipIcon.d.ts.map +1 -0
- package/dist/components/icons/PictureIcon.d.ts +3 -0
- package/dist/components/icons/PictureIcon.d.ts.map +1 -0
- package/dist/components/icons/PlusIcon.d.ts +3 -0
- package/dist/components/icons/PlusIcon.d.ts.map +1 -0
- package/dist/components/icons/SendIcon.d.ts +3 -0
- package/dist/components/icons/SendIcon.d.ts.map +1 -0
- package/dist/components/icons/TypebotLogo.d.ts +2 -0
- package/dist/components/icons/TypebotLogo.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts +2 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/inputs/SearchInput.d.ts +9 -0
- package/dist/components/inputs/SearchInput.d.ts.map +1 -0
- package/dist/components/inputs/ShortTextInput.d.ts +8 -0
- package/dist/components/inputs/ShortTextInput.d.ts.map +1 -0
- package/dist/components/inputs/Textarea.d.ts +8 -0
- package/dist/components/inputs/Textarea.d.ts.map +1 -0
- package/dist/components/inputs/index.d.ts +3 -0
- package/dist/components/inputs/index.d.ts.map +1 -0
- package/dist/constants.d.ts +7 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts +8 -0
- package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/audio/components/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/audio/components/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/audio/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/audio/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts +11 -0
- package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts +11 -0
- package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/embed/components/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/embed/components/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/embed/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/embed/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts +10 -0
- package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/image/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/image/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts +11 -0
- package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts +9 -0
- package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts +9 -0
- package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts +3 -0
- package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/textBubble/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts +9 -0
- package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/video/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/video/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +11 -0
- package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -0
- package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts +7 -0
- package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts.map +1 -0
- package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts +10 -0
- package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/date/components/DateForm.d.ts +10 -0
- package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/date/index.d.ts +2 -0
- package/dist/features/blocks/inputs/date/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +10 -0
- package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/email/index.d.ts +2 -0
- package/dist/features/blocks/inputs/email/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts +8 -0
- package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts +11 -0
- package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts +6 -0
- package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts +14 -0
- package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts +21 -0
- package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/index.d.ts +2 -0
- package/dist/features/blocks/inputs/fileUpload/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/number/components/NumberInput.d.ts +10 -0
- package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/number/index.d.ts +2 -0
- package/dist/features/blocks/inputs/number/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/number/numberInputHelper.d.ts +2 -0
- package/dist/features/blocks/inputs/number/numberInputHelper.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts +11 -0
- package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts +11 -0
- package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/components/index.d.ts +2 -0
- package/dist/features/blocks/inputs/payment/components/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts +5 -0
- package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/index.d.ts +2 -0
- package/dist/features/blocks/inputs/payment/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +9 -0
- package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/phone/index.d.ts +2 -0
- package/dist/features/blocks/inputs/phone/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts +11 -0
- package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts.map +1 -0
- package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts +11 -0
- package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts.map +1 -0
- package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts +10 -0
- package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/rating/index.d.ts +2 -0
- package/dist/features/blocks/inputs/rating/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts +11 -0
- package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts +10 -0
- package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts.map +1 -0
- package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts +2 -0
- package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts.map +1 -0
- package/dist/features/blocks/inputs/textInput/index.d.ts +2 -0
- package/dist/features/blocks/inputs/textInput/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +10 -0
- package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/url/index.d.ts +2 -0
- package/dist/features/blocks/inputs/url/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/chatwoot/index.d.ts +2 -0
- package/dist/features/blocks/integrations/chatwoot/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts +5 -0
- package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts.map +1 -0
- package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts +2 -0
- package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/googleAnalytics/index.d.ts +2 -0
- package/dist/features/blocks/integrations/googleAnalytics/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts +3 -0
- package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map +1 -0
- package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts +2 -0
- package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/openai/streamChat.d.ts +17 -0
- package/dist/features/blocks/integrations/openai/streamChat.d.ts.map +1 -0
- package/dist/features/blocks/integrations/pixel/executePixel.d.ts +3 -0
- package/dist/features/blocks/integrations/pixel/executePixel.d.ts.map +1 -0
- package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts +3 -0
- package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts.map +1 -0
- package/dist/features/blocks/logic/redirect/index.d.ts +2 -0
- package/dist/features/blocks/logic/redirect/index.d.ts.map +1 -0
- package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts +5 -0
- package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts.map +1 -0
- package/dist/features/blocks/logic/redirect/utils/index.d.ts +2 -0
- package/dist/features/blocks/logic/redirect/utils/index.d.ts.map +1 -0
- package/dist/features/blocks/logic/script/executeScript.d.ts +9 -0
- package/dist/features/blocks/logic/script/executeScript.d.ts.map +1 -0
- package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts +6 -0
- package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts.map +1 -0
- package/dist/features/blocks/logic/wait/utils/executeWait.d.ts +6 -0
- package/dist/features/blocks/logic/wait/utils/executeWait.d.ts.map +1 -0
- package/dist/features/bubble/components/Bubble.d.ts +9 -0
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
- package/dist/features/bubble/components/BubbleButton.d.ts +9 -0
- package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
- package/dist/features/bubble/components/PreviewMessage.d.ts +9 -0
- package/dist/features/bubble/components/PreviewMessage.d.ts.map +1 -0
- package/dist/features/bubble/components/index.d.ts +2 -0
- package/dist/features/bubble/components/index.d.ts.map +1 -0
- package/dist/features/bubble/index.d.ts +2 -0
- package/dist/features/bubble/index.d.ts.map +1 -0
- package/dist/features/bubble/types.d.ts +35 -0
- package/dist/features/bubble/types.d.ts.map +1 -0
- package/dist/features/commands/index.d.ts +3 -0
- package/dist/features/commands/index.d.ts.map +1 -0
- package/dist/features/commands/types.d.ts +19 -0
- package/dist/features/commands/types.d.ts.map +1 -0
- package/dist/features/commands/utils/close.d.ts +2 -0
- package/dist/features/commands/utils/close.d.ts.map +1 -0
- package/dist/features/commands/utils/hidePreviewMessage.d.ts +2 -0
- package/dist/features/commands/utils/hidePreviewMessage.d.ts.map +1 -0
- package/dist/features/commands/utils/index.d.ts +9 -0
- package/dist/features/commands/utils/index.d.ts.map +1 -0
- package/dist/features/commands/utils/open.d.ts +2 -0
- package/dist/features/commands/utils/open.d.ts.map +1 -0
- package/dist/features/commands/utils/setInputValue.d.ts +2 -0
- package/dist/features/commands/utils/setInputValue.d.ts.map +1 -0
- package/dist/features/commands/utils/setPrefilledVariables.d.ts +2 -0
- package/dist/features/commands/utils/setPrefilledVariables.d.ts.map +1 -0
- package/dist/features/commands/utils/showPreviewMessage.d.ts +3 -0
- package/dist/features/commands/utils/showPreviewMessage.d.ts.map +1 -0
- package/dist/features/commands/utils/toggle.d.ts +2 -0
- package/dist/features/commands/utils/toggle.d.ts.map +1 -0
- package/dist/features/commands/utils/unmount.d.ts +2 -0
- package/dist/features/commands/utils/unmount.d.ts.map +1 -0
- package/dist/features/popup/components/Popup.d.ts +10 -0
- package/dist/features/popup/components/Popup.d.ts.map +1 -0
- package/dist/features/popup/components/index.d.ts +2 -0
- package/dist/features/popup/components/index.d.ts.map +1 -0
- package/dist/features/popup/index.d.ts +2 -0
- package/dist/features/popup/index.d.ts.map +1 -0
- package/dist/features/popup/types.d.ts +9 -0
- package/dist/features/popup/types.d.ts.map +1 -0
- package/dist/features/standard/components/Standard.d.ts +5 -0
- package/dist/features/standard/components/Standard.d.ts.map +1 -0
- package/dist/features/standard/components/index.d.ts +2 -0
- package/dist/features/standard/components/index.d.ts.map +1 -0
- package/dist/features/standard/index.d.ts +2 -0
- package/dist/features/standard/index.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/lib/gtag.d.ts +4 -0
- package/dist/lib/gtag.d.ts.map +1 -0
- package/dist/lib/gtm.d.ts +3 -0
- package/dist/lib/gtm.d.ts.map +1 -0
- package/dist/lib/pixel.d.ts +4 -0
- package/dist/lib/pixel.d.ts.map +1 -0
- package/dist/lib/stripe.d.ts +3 -0
- package/dist/lib/stripe.d.ts.map +1 -0
- package/dist/queries/continueChatQuery.d.ts +554 -0
- package/dist/queries/continueChatQuery.d.ts.map +1 -0
- package/dist/queries/saveClientLogsQuery.d.ts +7 -0
- package/dist/queries/saveClientLogsQuery.d.ts.map +1 -0
- package/dist/queries/startChatQuery.d.ts +723 -0
- package/dist/queries/startChatQuery.d.ts.map +1 -0
- package/dist/register.d.ts +2 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/types.d.ts +37 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/CorsError.d.ts +4 -0
- package/dist/utils/CorsError.d.ts.map +1 -0
- package/dist/utils/botContainerHeightSignal.d.ts +2 -0
- package/dist/utils/botContainerHeightSignal.d.ts.map +1 -0
- package/dist/utils/botContainerSignal.d.ts +2 -0
- package/dist/utils/botContainerSignal.d.ts.map +1 -0
- package/dist/utils/executeClientSideActions.d.ts +20 -0
- package/dist/utils/executeClientSideActions.d.ts.map +1 -0
- package/dist/utils/formattedMessagesSignal.d.ts +8 -0
- package/dist/utils/formattedMessagesSignal.d.ts.map +1 -0
- package/dist/utils/getAnswerContent.d.ts +3 -0
- package/dist/utils/getAnswerContent.d.ts.map +1 -0
- package/dist/utils/guessApiHost.d.ts +6 -0
- package/dist/utils/guessApiHost.d.ts.map +1 -0
- package/dist/utils/injectFont.d.ts +3 -0
- package/dist/utils/injectFont.d.ts.map +1 -0
- package/dist/utils/injectStartProps.d.ts +3 -0
- package/dist/utils/injectStartProps.d.ts.map +1 -0
- package/dist/utils/isMobileSignal.d.ts +2 -0
- package/dist/utils/isMobileSignal.d.ts.map +1 -0
- package/dist/utils/persist.d.ts +9 -0
- package/dist/utils/persist.d.ts.map +1 -0
- package/dist/utils/setCssVariablesValue.d.ts +3 -0
- package/dist/utils/setCssVariablesValue.d.ts.map +1 -0
- package/dist/utils/storage.d.ts +717 -0
- package/dist/utils/storage.d.ts.map +1 -0
- package/dist/utils/streamingMessageSignal.d.ts +8 -0
- package/dist/utils/streamingMessageSignal.d.ts.map +1 -0
- package/dist/utils/toaster.d.ts +2 -0
- package/dist/utils/toaster.d.ts.map +1 -0
- package/dist/web.d.ts +17 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +14 -0
- package/dist/window.d.ts +40 -0
- package/dist/window.d.ts.map +1 -0
- package/package.json +57 -0
package/README.md
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Typebot JS library
|
|
2
|
+
|
|
3
|
+
Frontend library to embed typebots from [Typebot](https://quick.bot/).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### Using npm
|
|
8
|
+
|
|
9
|
+
To install, simply run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @typebot.io/js
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Directly in your HTML
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
<script type="module">
|
|
19
|
+
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/js@0.3/dist/web.js'
|
|
20
|
+
|
|
21
|
+
Typebot.initStandard({
|
|
22
|
+
typebot: 'my-typebot',
|
|
23
|
+
})
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<typebot-standard style="width: 100%; height: 600px; "></typebot-standard>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Standard
|
|
30
|
+
|
|
31
|
+
You can get the standard HTML and Javascript code by clicking on the "HTML & Javascript" button in the "Share" tab of your typebot.
|
|
32
|
+
|
|
33
|
+
There, you can change the container dimensions. Here is a code example:
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<script type="module">
|
|
37
|
+
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/js@0.3/dist/web.js'
|
|
38
|
+
|
|
39
|
+
Typebot.initStandard({
|
|
40
|
+
typebot: 'my-typebot',
|
|
41
|
+
})
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<typebot-standard style="width: 100%; height: 600px; "></typebot-standard>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
This code is creating a container with a 100% width (will match parent width) and 600px height.
|
|
48
|
+
|
|
49
|
+
## Popup
|
|
50
|
+
|
|
51
|
+
You can get the popup HTML and Javascript code by clicking on the "HTML & Javascript" button in the "Share" tab of your typebot.
|
|
52
|
+
|
|
53
|
+
Here is an example:
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<script type="module">
|
|
57
|
+
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/js@0.3/dist/web.js'
|
|
58
|
+
|
|
59
|
+
Typebot.initPopup({
|
|
60
|
+
typebot: 'my-typebot',
|
|
61
|
+
apiHost: 'http://localhost:3001',
|
|
62
|
+
autoShowDelay: 3000,
|
|
63
|
+
})
|
|
64
|
+
</script>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
This code will automatically trigger the popup window after 3 seconds.
|
|
68
|
+
|
|
69
|
+
### Open or Close a popup
|
|
70
|
+
|
|
71
|
+
You can use these commands:
|
|
72
|
+
|
|
73
|
+
```js
|
|
74
|
+
Typebot.open()
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
```js
|
|
78
|
+
Typebot.close()
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
```js
|
|
82
|
+
Typebot.toggle()
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
You can bind these commands on a button element, for example:
|
|
86
|
+
|
|
87
|
+
```html
|
|
88
|
+
<button onclick="Typebot.open()">Contact us</button>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Bubble
|
|
92
|
+
|
|
93
|
+
You can get the bubble HTML and Javascript code by clicking on the "HTML & Javascript" button in the "Share" tab of your typebot.
|
|
94
|
+
|
|
95
|
+
Here is an example:
|
|
96
|
+
|
|
97
|
+
```html
|
|
98
|
+
<script type="module">
|
|
99
|
+
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/js@0.3/dist/web.js'
|
|
100
|
+
|
|
101
|
+
Typebot.initBubble({
|
|
102
|
+
typebot: 'my-typebot',
|
|
103
|
+
previewMessage: {
|
|
104
|
+
message: 'I have a question for you!',
|
|
105
|
+
autoShowDelay: 5000,
|
|
106
|
+
avatarUrl: 'https://avatars.githubusercontent.com/u/6652831?v=4',
|
|
107
|
+
},
|
|
108
|
+
theme: {
|
|
109
|
+
button: { backgroundColor: '#0042DA', iconColor: '#FFFFFF' },
|
|
110
|
+
previewMessage: { backgroundColor: '#ffffff', textColor: 'black' },
|
|
111
|
+
chatWindow: { backgroundColor: '#ffffff' },
|
|
112
|
+
},
|
|
113
|
+
})
|
|
114
|
+
</script>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
This code will show the bubble and let a preview message appear after 5 seconds.
|
|
118
|
+
|
|
119
|
+
### Open or close the preview message
|
|
120
|
+
|
|
121
|
+
You can use these commands:
|
|
122
|
+
|
|
123
|
+
```js
|
|
124
|
+
Typebot.showPreviewMessage()
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
```js
|
|
128
|
+
Typebot.hidePreviewMessage()
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Open or close the typebot
|
|
132
|
+
|
|
133
|
+
You can use these commands:
|
|
134
|
+
|
|
135
|
+
```js
|
|
136
|
+
Typebot.open()
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
```js
|
|
140
|
+
Typebot.close()
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
```js
|
|
144
|
+
Typebot.toggle()
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
You can bind these commands on a button element, for example:
|
|
148
|
+
|
|
149
|
+
```html
|
|
150
|
+
<button onclick="Typebot.open()">Contact us</button>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Additional configuration
|
|
154
|
+
|
|
155
|
+
You can prefill the bot variable values in your embed code by adding the `prefilledVariables` option. Here is an example:
|
|
156
|
+
|
|
157
|
+
```js
|
|
158
|
+
Typebot.initStandard({
|
|
159
|
+
typebot: 'my-typebot',
|
|
160
|
+
prefilledVariables: {
|
|
161
|
+
'Current URL': 'https://my-site/account',
|
|
162
|
+
'User name': 'Francisco',
|
|
163
|
+
},
|
|
164
|
+
})
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
It will prefill the `Current URL` variable with "https://my-site/account" and the `User name` variable with "Francisco". More info about variables: [here](/editor/variables).
|
|
168
|
+
|
|
169
|
+
Note that if your site URL contains query params (i.e. https://quick.bot?User%20name=John%20Doe), the variables will automatically be injected to the typebot. So you don't need to manually transfer query params to the bot embed configuration.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OutgoingLog } from '@/types';
|
|
2
|
+
import { Font, InputBlock, StartFrom } from '@typebot.io/schemas';
|
|
3
|
+
export type BotProps = {
|
|
4
|
+
typebot: string | any;
|
|
5
|
+
isPreview?: boolean;
|
|
6
|
+
resultId?: string;
|
|
7
|
+
prefilledVariables?: Record<string, unknown>;
|
|
8
|
+
apiHost?: string;
|
|
9
|
+
font?: Font;
|
|
10
|
+
progressBarRef?: HTMLDivElement;
|
|
11
|
+
startFrom?: StartFrom;
|
|
12
|
+
sessionId?: string;
|
|
13
|
+
onNewInputBlock?: (inputBlock: InputBlock) => void;
|
|
14
|
+
onAnswer?: (answer: {
|
|
15
|
+
message: string;
|
|
16
|
+
blockId: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onInit?: () => void;
|
|
19
|
+
onEnd?: () => void;
|
|
20
|
+
onNewLogs?: (logs: OutgoingLog[]) => void;
|
|
21
|
+
onChatStatePersisted?: (isEnabled: boolean) => void;
|
|
22
|
+
};
|
|
23
|
+
export declare const Bot: (props: BotProps & {
|
|
24
|
+
class?: string;
|
|
25
|
+
}) => import("solid-js").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=Bot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAc,WAAW,EAAE,MAAM,SAAS,CAAA;AAWjD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAqB,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAoBpF,MAAM,MAAM,QAAQ,GAAG;IAErB,OAAO,EAAE,MAAM,GAAG,GAAG,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IACzC,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,eAAO,MAAM,GAAG,UAAW,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mCA8LvD,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
type Props = {
|
|
3
|
+
variant?: 'primary' | 'secondary';
|
|
4
|
+
children: JSX.Element;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
+
export declare const Button: (props: Props) => JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,GAAG,EAAoB,MAAM,UAAU,CAAA;AAG1D,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IACjC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;AAE/C,eAAO,MAAM,MAAM,UAAW,KAAK,gBAoBlC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarSideContainer.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/AvatarSideContainer.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,mBAAmB,UAAW,KAAK,mCA6C/C,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InputSubmitContent, BotContext, ChatChunk as ChatChunkType } from '@/types';
|
|
2
|
+
import { ContinueChatResponse, Settings, Theme } from '@typebot.io/schemas';
|
|
3
|
+
type Props = Pick<ContinueChatResponse, 'messages' | 'input'> & {
|
|
4
|
+
theme: Theme;
|
|
5
|
+
settings: Settings;
|
|
6
|
+
index: number;
|
|
7
|
+
context: BotContext;
|
|
8
|
+
hasError: boolean;
|
|
9
|
+
hideAvatar: boolean;
|
|
10
|
+
streamingMessageId: ChatChunkType['streamingMessageId'];
|
|
11
|
+
isTransitionDisabled?: boolean;
|
|
12
|
+
onNewBubbleDisplayed: (blockId: string) => Promise<void>;
|
|
13
|
+
onScrollToBottom: (ref?: HTMLDivElement, offset?: number) => void;
|
|
14
|
+
onSubmit: (answer?: InputSubmitContent) => void;
|
|
15
|
+
onSkip: () => void;
|
|
16
|
+
onAllBubblesDisplayed: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const ChatChunk: (props: Props) => import("solid-js").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=ChatChunk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatChunk.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ChatChunk.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAEpF,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAY3E,KAAK,KAAK,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IAC9D,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,QAAQ,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,UAAU,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,kBAAkB,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAA;IACvD,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxD,gBAAgB,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC/C,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,qBAAqB,EAAE,MAAM,IAAI,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,SAAS,UAAW,KAAK,mCAwIrC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InputBlock, StartChatResponse } from '@typebot.io/schemas';
|
|
2
|
+
import { BotContext, OutgoingLog } from '@/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
initialChatReply: StartChatResponse;
|
|
5
|
+
context: BotContext;
|
|
6
|
+
onNewInputBlock?: (inputBlock: InputBlock) => void;
|
|
7
|
+
onAnswer?: (answer: {
|
|
8
|
+
message: string;
|
|
9
|
+
blockId: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
onEnd?: () => void;
|
|
12
|
+
onNewLogs?: (logs: OutgoingLog[]) => void;
|
|
13
|
+
onProgressUpdate?: (progress: number) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const ConversationContainer: (props: Props) => import("solid-js").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ConversationContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationContainer.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAGV,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B,OAAO,EAAE,UAAU,EAAkD,WAAW,EAAE,MAAM,SAAS,CAAA;AAuCjG,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,iBAAiB,CAAA;IACnC,OAAO,EAAE,UAAU,CAAA;IACnB,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IACzC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,qBAAqB,UAAW,KAAK,mCAmRjD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingChunk.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/LoadingChunk.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAM3C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,eAAO,MAAM,YAAY,UAAW,KAAK,mCAWxC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupBlockedToast.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/PopupBlockedToast.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,iBAAiB,UAAW,KAAK,mCAyB7C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../src/components/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AACD,eAAO,MAAM,YAAY,UAAW,KAAK,mCAOxC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ContinueChatResponse, Theme } from '@typebot.io/schemas';
|
|
2
|
+
import { BotContext, InputSubmitContent } from '@/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
ref: HTMLDivElement | undefined;
|
|
5
|
+
block: NonNullable<ContinueChatResponse['input']>;
|
|
6
|
+
hasHostAvatar: boolean;
|
|
7
|
+
guestAvatar?: NonNullable<Theme['chat']>['guestAvatar'];
|
|
8
|
+
chunkIndex: number;
|
|
9
|
+
context: BotContext;
|
|
10
|
+
isInputPrefillEnabled: boolean;
|
|
11
|
+
hasError: boolean;
|
|
12
|
+
onTransitionEnd: () => void;
|
|
13
|
+
onSubmit: (content: InputSubmitContent) => void;
|
|
14
|
+
onSkip: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const InputChatBlock: (props: Props) => import("solid-js").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=InputChatBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputChatBlock.d.ts","sourceRoot":"","sources":["../../src/components/InputChatBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EASpB,KAAK,EAKN,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAuBxD,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,cAAc,GAAG,SAAS,CAAA;IAC/B,KAAK,EAAE,WAAW,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAA;IACjD,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAA;IACvD,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,UAAU,CAAA;IACnB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,OAAO,CAAA;IACjB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC/C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,cAAc,UAAW,KAAK,mCA6D1C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiteBadge.d.ts","sourceRoot":"","sources":["../../src/components/LiteBadge.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,cAAc,GAAG,SAAS,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,SAAS,UAAW,KAAK,mCAyCrC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/components/Modal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAG9B,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;CACtB,CAAA;AACD,eAAO,MAAM,KAAK,UAAW,KAAK,gBAiBjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../src/components/ProgressBar.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,KAAK,mCASvC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
type SendButtonProps = {
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
disableIcon?: boolean;
|
|
6
|
+
class?: string;
|
|
7
|
+
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
+
export declare const SendButton: (props: SendButtonProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SendButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../src/components/SendButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAM1C,KAAK,eAAe,GAAG;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;AAE/C,eAAO,MAAM,UAAU,UAAW,eAAe,gBAqBhD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInputAddFileButton.d.ts","sourceRoot":"","sources":["../../src/components/TextInputAddFileButton.tsx"],"names":[],"mappings":"AAQA,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAA;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,eAAO,MAAM,sBAAsB,UAAW,KAAK,mCAkFlD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypingBubble.d.ts","sourceRoot":"","sources":["../../src/components/TypingBubble.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,sCAMxB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/Avatar.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,UAAW;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,mCA6B1D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/DefaultAvatar.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCA4CzB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputSubmitContent } from '@/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
answer?: InputSubmitContent;
|
|
4
|
+
showAvatar: boolean;
|
|
5
|
+
avatarSrc?: string;
|
|
6
|
+
hasHostAvatar: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const GuestBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=GuestBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuestBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/GuestBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAuD,MAAM,SAAS,CAAA;AAMjG,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B,UAAU,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,KAAK,mCAsBvC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InputSubmitContent } from '@/types';
|
|
2
|
+
import type { ChatMessage, Settings } from '@typebot.io/schemas';
|
|
3
|
+
type Props = {
|
|
4
|
+
message: ChatMessage;
|
|
5
|
+
typingEmulation: Settings['typingEmulation'];
|
|
6
|
+
isTypingSkipped: boolean;
|
|
7
|
+
onTransitionEnd?: (ref?: HTMLDivElement) => void;
|
|
8
|
+
onCompleted: (reply?: InputSubmitContent) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const HostBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=HostBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HostBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/HostBubble.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAEV,WAAW,EAIX,QAAQ,EAGT,MAAM,qBAAqB,CAAA;AAI5B,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAA;IACpB,eAAe,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAA;IAC5C,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IAChD,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAClD,CAAA;AAED,eAAO,MAAM,UAAU,UAAW,KAAK,mCA2CtC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCAsBzB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StreamingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StreamingBubble.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,KAAK,KAAK,GAAG;IACX,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,UAAU,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,eAAe,UAAW,KAAK,mCAwE3C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CameraIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAcpE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CheckIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAanE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChevronDownIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ChevronDownIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,eAAe,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAazE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloseIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CloseIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAcnE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/FileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAclE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MicrophoneIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/MicrophoneIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAIxE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaperClipIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/PaperClipIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,aAAa,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAevE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictureIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/PictureIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,WAAW,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBrE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/PlusIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAclE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SendIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAUlE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypebotLogo.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TypebotLogo.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,sCAoCvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA"}
|