@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startChatQuery.d.ts","sourceRoot":"","sources":["../../src/queries/startChatQuery.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,SAAS,EAEV,MAAM,qBAAqB,CAAA;AAI5B,KAAK,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,YAMjC,CAAA"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ContinueChatResponse, StartChatResponse } from '@typebot.io/schemas';
|
|
2
|
+
export type BotContext = {
|
|
3
|
+
typebot: StartChatResponse['typebot'];
|
|
4
|
+
resultId?: string;
|
|
5
|
+
isPreview: boolean;
|
|
6
|
+
apiHost?: string;
|
|
7
|
+
sessionId: string;
|
|
8
|
+
storage: 'local' | 'session' | undefined;
|
|
9
|
+
};
|
|
10
|
+
export type OutgoingLog = {
|
|
11
|
+
status: string;
|
|
12
|
+
description: string;
|
|
13
|
+
details?: unknown;
|
|
14
|
+
};
|
|
15
|
+
export type ClientSideActionContext = {
|
|
16
|
+
apiHost?: string;
|
|
17
|
+
sessionId: string;
|
|
18
|
+
};
|
|
19
|
+
export type ChatChunk = Pick<ContinueChatResponse, 'messages' | 'input' | 'clientSideActions'> & {
|
|
20
|
+
streamingMessageId?: string;
|
|
21
|
+
};
|
|
22
|
+
export type Attachment = {
|
|
23
|
+
type: string;
|
|
24
|
+
url: string;
|
|
25
|
+
};
|
|
26
|
+
export type TextInputSubmitContent = {
|
|
27
|
+
type: 'text';
|
|
28
|
+
value: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
attachments?: Attachment[];
|
|
31
|
+
};
|
|
32
|
+
export type RecordingInputSubmitContent = {
|
|
33
|
+
type: 'recording';
|
|
34
|
+
url: string;
|
|
35
|
+
};
|
|
36
|
+
export type InputSubmitContent = TextInputSubmitContent | RecordingInputSubmitContent;
|
|
37
|
+
//# sourceMappingURL=types.d.ts.map
|
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AAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,2BAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorsError.d.ts","sourceRoot":"","sources":["../../src/utils/CorsError.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAU,SAAQ,KAAK;gBACtB,MAAM,EAAE,MAAM;CAG3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"botContainerHeightSignal.d.ts","sourceRoot":"","sources":["../../src/utils/botContainerHeightSignal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAO,kBAAkB,uCAAE,qBAAqB,mCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"botContainerSignal.d.ts","sourceRoot":"","sources":["../../src/utils/botContainerSignal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAO,YAAY,2DAAE,eAAe,uDAAkC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ClientSideActionContext } from '@/types';
|
|
2
|
+
import type { ContinueChatResponse, ChatLog } from '@typebot.io/schemas';
|
|
3
|
+
type Props = {
|
|
4
|
+
clientSideAction: NonNullable<ContinueChatResponse['clientSideActions']>[0];
|
|
5
|
+
context: ClientSideActionContext;
|
|
6
|
+
onMessageStream?: (props: {
|
|
7
|
+
id: string;
|
|
8
|
+
message: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const executeClientSideAction: ({ clientSideAction, context, onMessageStream, }: Props) => Promise<{
|
|
12
|
+
blockedPopupUrl: string;
|
|
13
|
+
} | {
|
|
14
|
+
replyToSend: string | undefined;
|
|
15
|
+
logs?: ChatLog[];
|
|
16
|
+
} | {
|
|
17
|
+
logs: ChatLog[];
|
|
18
|
+
} | void>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=executeClientSideActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeClientSideActions.d.ts","sourceRoot":"","sources":["../../src/utils/executeClientSideActions.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGxE,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,WAAW,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3E,OAAO,EAAE,uBAAuB,CAAA;IAChC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACnE,CAAA;AAED,eAAO,MAAM,uBAAuB,oDAIjC,KAAK,KAAG,QACP;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,GAC3B;IAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,GACnB,IAAI,CAuDP,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const formattedMessages: import("solid-js").Accessor<{
|
|
2
|
+
inputIndex: number;
|
|
3
|
+
formattedMessage: string;
|
|
4
|
+
}[]>, setFormattedMessages: import("solid-js").Setter<{
|
|
5
|
+
inputIndex: number;
|
|
6
|
+
formattedMessage: string;
|
|
7
|
+
}[]>;
|
|
8
|
+
//# sourceMappingURL=formattedMessagesSignal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formattedMessagesSignal.d.ts","sourceRoot":"","sources":["../../src/utils/formattedMessagesSignal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAO,iBAAiB;gBACf,MAAM;sBAAoB,MAAM;MADf,oBAAoB;gBACrC,MAAM;sBAAoB,MAAM;IAC3C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAnswerContent.d.ts","sourceRoot":"","sources":["../../src/utils/getAnswerContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,eAAO,MAAM,gBAAgB,WAAY,kBAAkB,KAAG,MAG7D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guessApiHost.d.ts","sourceRoot":"","sources":["../../src/utils/guessApiHost.ts"],"names":[],"mappings":"AAIA,KAAK,MAAM,GAAG;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,YAAY,0BAA0B,MAAM,QAuBxD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injectFont.d.ts","sourceRoot":"","sources":["../../src/utils/injectFont.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAM1C,eAAO,MAAM,UAAU,SAAU,IAAI,SAkCpC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injectStartProps.d.ts","sourceRoot":"","sources":["../../src/utils/injectStartProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAExD,eAAO,MAAM,gBAAgB,uBAA8B,kBAAkB,kBAS5E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isMobileSignal.d.ts","sourceRoot":"","sources":["../../src/utils/isMobileSignal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAO,QAAQ,oDAAE,WAAW,gDAA2B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Setter, Signal } from 'solid-js';
|
|
2
|
+
type Params = {
|
|
3
|
+
key: string;
|
|
4
|
+
storage: 'local' | 'session' | undefined;
|
|
5
|
+
onRecovered?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function persist<T>(signal: Signal<T>, params: Params): [...Signal<T>, () => boolean, Setter<boolean>];
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=persist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persist.d.ts","sourceRoot":"","sources":["../../src/utils/persist.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAI9C,KAAK,MAAM,GAAG;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;IACxC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA;AAED,wBAAgB,OAAO,CAAC,CAAC,EACvB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EACjB,MAAM,EAAE,MAAM,GACb,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAyChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setCssVariablesValue.d.ts","sourceRoot":"","sources":["../../src/utils/setCssVariablesValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,EACN,MAAM,qBAAqB,CAAA;AAmH5B,eAAO,MAAM,oBAAoB,UACxB,KAAK,GAAG,SAAS,aACb,cAAc,cACb,OAAO,SAOpB,CAAA"}
|