@urbiport/js 0.0.19-alpha.8 → 1.0.0-beta
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/dist/api/createConversation.d.ts +10 -0
- package/dist/api/createConversation.d.ts.map +1 -0
- package/dist/api/createConversationPreview.d.ts +11 -0
- package/dist/api/createConversationPreview.d.ts.map +1 -0
- package/dist/api/saveClientLogs.d.ts +6 -0
- package/dist/api/saveClientLogs.d.ts.map +1 -0
- package/dist/api/sendMessage.d.ts +10 -0
- package/dist/api/sendMessage.d.ts.map +1 -0
- package/dist/api/utils/detectDevice.d.ts +2 -0
- package/dist/api/utils/detectDevice.d.ts.map +1 -0
- package/dist/api/utils/handlePaymentInProgress.d.ts +3 -0
- package/dist/api/utils/handlePaymentInProgress.d.ts.map +1 -0
- package/dist/components/Bot.d.ts +30 -0
- package/dist/components/Bot.d.ts.map +1 -0
- package/dist/components/Button.d.ts +9 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/ButtonSubmit.d.ts +9 -0
- package/dist/components/ButtonSubmit.d.ts.map +1 -0
- package/dist/components/ChatInputFooter.d.ts +5 -0
- package/dist/components/ChatInputFooter.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationContainer.d.ts +22 -0
- package/dist/components/ConversationContainer/ConversationContainer.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationContainerBody.d.ts +14 -0
- package/dist/components/ConversationContainer/ConversationContainerBody.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts +17 -0
- package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationMessageChunk.d.ts +17 -0
- package/dist/components/ConversationContainer/ConversationMessageChunk.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationPopupBlockedToast.d.ts +7 -0
- package/dist/components/ConversationContainer/ConversationPopupBlockedToast.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationProgressBar.d.ts +6 -0
- package/dist/components/ConversationContainer/ConversationProgressBar.d.ts.map +1 -0
- package/dist/components/ConversationContainer/HostAvatar.d.ts +8 -0
- package/dist/components/ConversationContainer/HostAvatar.d.ts.map +1 -0
- package/dist/components/ConversationContainer/InputAnswer.d.ts +7 -0
- package/dist/components/ConversationContainer/InputAnswer.d.ts.map +1 -0
- package/dist/components/ConversationContainer/helpers.d.ts +6 -0
- package/dist/components/ConversationContainer/helpers.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/ConversationContext.d.ts +42 -0
- package/dist/components/ConversationContext.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/FooterEndConversation.d.ts +2 -0
- package/dist/components/FooterEndConversation.d.ts.map +1 -0
- package/dist/components/FooterLiteBadge.d.ts +6 -0
- package/dist/components/FooterLiteBadge.d.ts.map +1 -0
- package/dist/components/FormLayout.d.ts +18 -0
- package/dist/components/FormLayout.d.ts.map +1 -0
- package/dist/components/InputAnswerContext.d.ts +46 -0
- package/dist/components/InputAnswerContext.d.ts.map +1 -0
- package/dist/components/InputBlockDispatcher.d.ts +5 -0
- package/dist/components/InputBlockDispatcher.d.ts.map +1 -0
- package/dist/components/InputErrorMessage.d.ts +8 -0
- package/dist/components/InputErrorMessage.d.ts.map +1 -0
- package/dist/components/InputFormLayout.d.ts +15 -0
- package/dist/components/InputFormLayout.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/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/AvatarPlaceholder.d.ts +7 -0
- package/dist/components/avatars/AvatarPlaceholder.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/HostBubbleStreaming.d.ts +8 -0
- package/dist/components/bubbles/HostBubbleStreaming.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/FileIconUpload.d.ts +3 -0
- package/dist/components/icons/FileIconUpload.d.ts.map +1 -0
- package/dist/components/icons/LogoIcon.d.ts +2 -0
- package/dist/components/icons/LogoIcon.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/SendIcon.d.ts +3 -0
- package/dist/components/icons/SendIcon.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/inputs/FileAttached.d.ts +6 -0
- package/dist/components/inputs/FileAttached.d.ts.map +1 -0
- package/dist/components/inputs/Input.d.ts +8 -0
- package/dist/components/inputs/Input.d.ts.map +1 -0
- package/dist/components/inputs/Textarea.d.ts +9 -0
- package/dist/components/inputs/Textarea.d.ts.map +1 -0
- package/dist/components/primitives/Dialog.d.ts +35 -0
- package/dist/components/primitives/Dialog.d.ts.map +1 -0
- package/dist/components/primitives/Environment.d.ts +8 -0
- package/dist/components/primitives/Environment.d.ts.map +1 -0
- package/dist/components/primitives/Menu.d.ts +35 -0
- package/dist/components/primitives/Menu.d.ts.map +1 -0
- package/dist/components/primitives/Progress.d.ts +25 -0
- package/dist/components/primitives/Progress.d.ts.map +1 -0
- package/dist/components/primitives/Toast.d.ts +52 -0
- package/dist/components/primitives/Toast.d.ts.map +1 -0
- package/dist/components/primitives/index.d.ts +6 -0
- package/dist/components/primitives/index.d.ts.map +1 -0
- package/dist/constants.d.ts +7 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/context/ConversationContext.d.ts +42 -0
- package/dist/context/ConversationContext.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/GuestBubble.d.ts +10 -0
- package/dist/features/blocks/bubbles/GuestBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/HostBubble.d.ts +12 -0
- package/dist/features/blocks/bubbles/HostBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/HostBubbleStreaming.d.ts +8 -0
- package/dist/features/blocks/bubbles/HostBubbleStreaming.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/EmbedBubble.d.ts +10 -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 +8 -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 +10 -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 +8 -0
- package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.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 +8 -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 +13 -0
- package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -0
- package/dist/features/blocks/inputs/buttons/components/ButtonsSearch.d.ts +9 -0
- package/dist/features/blocks/inputs/buttons/components/ButtonsSearch.d.ts.map +1 -0
- package/dist/features/blocks/inputs/buttons/index.d.ts +2 -0
- package/dist/features/blocks/inputs/buttons/index.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 +12 -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/index.d.ts +2 -0
- package/dist/features/blocks/inputs/fileUpload/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/utils/sanitizeSelectedFiles.d.ts +12 -0
- package/dist/features/blocks/inputs/fileUpload/utils/sanitizeSelectedFiles.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/utils/uploadFiles.d.ts +20 -0
- package/dist/features/blocks/inputs/fileUpload/utils/uploadFiles.d.ts.map +1 -0
- package/dist/features/blocks/inputs/number/components/NumberInput.d.ts +12 -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/utils/numberInputHelper.d.ts +2 -0
- package/dist/features/blocks/inputs/number/utils/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/index.d.ts +2 -0
- package/dist/features/blocks/inputs/payment/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/utils/paymentInProgressStorage.d.ts +5 -0
- package/dist/features/blocks/inputs/payment/utils/paymentInProgressStorage.d.ts.map +1 -0
- package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +11 -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/phone/utils/phoneCountries.d.ts +1247 -0
- package/dist/features/blocks/inputs/phone/utils/phoneCountries.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/text/components/TextInput.d.ts +13 -0
- package/dist/features/blocks/inputs/text/components/TextInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/text/components/VoiceRecorder.d.ts +10 -0
- package/dist/features/blocks/inputs/text/components/VoiceRecorder.d.ts.map +1 -0
- package/dist/features/blocks/inputs/text/components/VolumeProcessor.d.ts +2 -0
- package/dist/features/blocks/inputs/text/components/VolumeProcessor.d.ts.map +1 -0
- package/dist/features/blocks/inputs/text/index.d.ts +2 -0
- package/dist/features/blocks/inputs/text/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +12 -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/pixel/executePixel.d.ts +3 -0
- package/dist/features/blocks/integrations/pixel/executePixel.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/variable/executeVariable.d.ts +6 -0
- package/dist/features/blocks/logic/variable/executeVariable.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 +10 -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/BubbleMessage.d.ts +9 -0
- package/dist/features/bubble/components/BubbleMessage.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 +11 -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 +6 -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/features/streaming/streamChat.d.ts +17 -0
- package/dist/features/streaming/streamChat.d.ts.map +1 -0
- package/dist/features/widget/components/Bubble.d.ts +10 -0
- package/dist/features/widget/components/Bubble.d.ts.map +1 -0
- package/dist/features/widget/components/BubbleButton.d.ts +9 -0
- package/dist/features/widget/components/BubbleButton.d.ts.map +1 -0
- package/dist/features/widget/components/BubbleMessage.d.ts +9 -0
- package/dist/features/widget/components/BubbleMessage.d.ts.map +1 -0
- package/dist/features/widget/components/index.d.ts +2 -0
- package/dist/features/widget/components/index.d.ts.map +1 -0
- package/dist/features/widget/index.d.ts +2 -0
- package/dist/features/widget/index.d.ts.map +1 -0
- package/dist/features/widget/types.d.ts +35 -0
- package/dist/features/widget/types.d.ts.map +1 -0
- package/dist/hooks/useMessageListener.d.ts +11 -0
- package/dist/hooks/useMessageListener.d.ts.map +1 -0
- package/dist/index.d.ts +7 -125
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -127
- package/dist/lib/gtm.d.ts +2 -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 +403 -0
- package/dist/queries/continueChatQuery.d.ts.map +1 -0
- package/dist/queries/saveClientLogsQuery.d.ts +6 -0
- package/dist/queries/saveClientLogsQuery.d.ts.map +1 -0
- package/dist/queries/startChatQuery.d.ts +583 -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 +51 -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/getApiUrl.d.ts +2 -0
- package/dist/utils/getApiUrl.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/markdown.d.ts +3 -0
- package/dist/utils/markdown.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 +535 -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 +21 -0
- package/dist/utils/toaster.d.ts.map +1 -0
- package/dist/web.d.ts +2 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +3 -264
- package/dist/window.d.ts +40 -0
- package/dist/window.d.ts.map +1 -0
- package/package.json +30 -27
- package/dist/web.css +0 -1
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import { StartFrom } from '@quickbot.io/schemas';
|
|
2
|
+
type Props = {
|
|
3
|
+
bot: string | any;
|
|
4
|
+
stripeRedirectStatus?: string;
|
|
5
|
+
startFrom?: StartFrom;
|
|
6
|
+
isPreview: boolean;
|
|
7
|
+
prefilledVariables?: Record<string, unknown>;
|
|
8
|
+
resultId?: string;
|
|
9
|
+
sessionId?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function startChatQuery({ bot, isPreview, prefilledVariables, resultId, stripeRedirectStatus, startFrom, sessionId, }: Props): Promise<{
|
|
12
|
+
error: unknown;
|
|
13
|
+
data?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
data: {
|
|
16
|
+
messages: ({
|
|
17
|
+
id: string;
|
|
18
|
+
} & ({
|
|
19
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.TEXT;
|
|
20
|
+
content: {
|
|
21
|
+
type: "richText";
|
|
22
|
+
richText?: any;
|
|
23
|
+
} | {
|
|
24
|
+
type: "markdown";
|
|
25
|
+
markdown: string;
|
|
26
|
+
};
|
|
27
|
+
} | {
|
|
28
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.IMAGE;
|
|
29
|
+
content: {
|
|
30
|
+
url?: string | undefined;
|
|
31
|
+
clickLink?: {
|
|
32
|
+
url?: string | undefined;
|
|
33
|
+
alt?: string | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
};
|
|
36
|
+
} | {
|
|
37
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO;
|
|
38
|
+
content: {
|
|
39
|
+
height?: number | `{{${string}}}` | undefined;
|
|
40
|
+
type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
url?: string | undefined;
|
|
43
|
+
isAutoplayEnabled?: boolean | undefined;
|
|
44
|
+
aspectRatio?: string | undefined;
|
|
45
|
+
maxWidth?: string | undefined;
|
|
46
|
+
queryParamsStr?: string | undefined;
|
|
47
|
+
areControlsDisplayed?: boolean | undefined;
|
|
48
|
+
};
|
|
49
|
+
} | {
|
|
50
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.AUDIO;
|
|
51
|
+
content: {
|
|
52
|
+
url?: string | undefined;
|
|
53
|
+
isAutoplayEnabled?: boolean | undefined;
|
|
54
|
+
};
|
|
55
|
+
} | {
|
|
56
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED;
|
|
57
|
+
content: {
|
|
58
|
+
height?: number | undefined;
|
|
59
|
+
url?: string | undefined;
|
|
60
|
+
waitForEvent?: {
|
|
61
|
+
name?: string | undefined;
|
|
62
|
+
isEnabled?: boolean | undefined;
|
|
63
|
+
saveDataInVariableId?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
initFunction?: {
|
|
66
|
+
content: string;
|
|
67
|
+
args: Record<string, any>;
|
|
68
|
+
} | undefined;
|
|
69
|
+
waitForEventFunction?: {
|
|
70
|
+
content: string;
|
|
71
|
+
args: Record<string, any>;
|
|
72
|
+
} | undefined;
|
|
73
|
+
};
|
|
74
|
+
}))[];
|
|
75
|
+
bot: {
|
|
76
|
+
id: string;
|
|
77
|
+
settings: {
|
|
78
|
+
metadata?: {
|
|
79
|
+
title?: string | undefined;
|
|
80
|
+
description?: string | undefined;
|
|
81
|
+
imageUrl?: string | undefined;
|
|
82
|
+
favIconUrl?: string | undefined;
|
|
83
|
+
customHeadCode?: string | undefined;
|
|
84
|
+
googleTagManagerId?: string | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
whatsApp?: {
|
|
87
|
+
isEnabled?: boolean | undefined;
|
|
88
|
+
startCondition?: {
|
|
89
|
+
logicalOperator: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator;
|
|
90
|
+
comparisons: {
|
|
91
|
+
id: string;
|
|
92
|
+
value?: string | undefined;
|
|
93
|
+
comparisonOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
|
|
94
|
+
}[];
|
|
95
|
+
} | undefined;
|
|
96
|
+
sessionExpiryTimeout?: number | undefined;
|
|
97
|
+
flowIds?: Record<string, string> | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
general?: {
|
|
100
|
+
isBrandingEnabled?: boolean | undefined;
|
|
101
|
+
isTypingEmulationEnabled?: boolean | undefined;
|
|
102
|
+
isInputPrefillEnabled?: boolean | undefined;
|
|
103
|
+
isHideQueryParamsEnabled?: boolean | undefined;
|
|
104
|
+
isNewResultOnRefreshEnabled?: boolean | undefined;
|
|
105
|
+
rememberUser?: {
|
|
106
|
+
isEnabled?: boolean | undefined;
|
|
107
|
+
storage?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
} | undefined;
|
|
110
|
+
typingEmulation?: {
|
|
111
|
+
enabled?: boolean | undefined;
|
|
112
|
+
speed?: number | undefined;
|
|
113
|
+
maxDelay?: number | undefined;
|
|
114
|
+
delayBetweenBubbles?: number | undefined;
|
|
115
|
+
isDisabledOnFirstMessage?: boolean | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
publicShare?: {
|
|
118
|
+
isEnabled?: boolean | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
security?: {
|
|
121
|
+
allowedOrigins?: string[] | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
};
|
|
124
|
+
theme: {
|
|
125
|
+
chat?: {
|
|
126
|
+
inputs?: {
|
|
127
|
+
color?: string | undefined;
|
|
128
|
+
opacity?: number | undefined;
|
|
129
|
+
backgroundColor?: string | undefined;
|
|
130
|
+
background?: {
|
|
131
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
132
|
+
content?: string | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
blur?: number | undefined;
|
|
135
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
136
|
+
border?: {
|
|
137
|
+
color?: string | undefined;
|
|
138
|
+
opacity?: number | undefined;
|
|
139
|
+
thickness?: number | undefined;
|
|
140
|
+
roundeness?: string | undefined;
|
|
141
|
+
customRoundeness?: number | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
placeholderColor?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
buttons?: {
|
|
146
|
+
color?: string | undefined;
|
|
147
|
+
opacity?: number | undefined;
|
|
148
|
+
backgroundColor?: string | undefined;
|
|
149
|
+
background?: {
|
|
150
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
151
|
+
content?: string | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
blur?: number | undefined;
|
|
154
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
155
|
+
border?: {
|
|
156
|
+
color?: string | undefined;
|
|
157
|
+
opacity?: number | undefined;
|
|
158
|
+
thickness?: number | undefined;
|
|
159
|
+
roundeness?: string | undefined;
|
|
160
|
+
customRoundeness?: number | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
container?: {
|
|
164
|
+
color?: string | undefined;
|
|
165
|
+
opacity?: number | undefined;
|
|
166
|
+
backgroundColor?: string | undefined;
|
|
167
|
+
maxWidth?: string | undefined;
|
|
168
|
+
background?: {
|
|
169
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
170
|
+
content?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
blur?: number | undefined;
|
|
173
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
174
|
+
border?: {
|
|
175
|
+
color?: string | undefined;
|
|
176
|
+
opacity?: number | undefined;
|
|
177
|
+
thickness?: number | undefined;
|
|
178
|
+
roundeness?: string | undefined;
|
|
179
|
+
customRoundeness?: number | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
maxHeight?: string | undefined;
|
|
182
|
+
font?: string | {
|
|
183
|
+
type: "Google";
|
|
184
|
+
family?: string | undefined;
|
|
185
|
+
} | {
|
|
186
|
+
type: "Custom";
|
|
187
|
+
css?: string | undefined;
|
|
188
|
+
url?: string | undefined;
|
|
189
|
+
family?: string | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
hostAvatar?: {
|
|
193
|
+
url?: string | undefined;
|
|
194
|
+
isEnabled?: boolean | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
guestAvatar?: {
|
|
197
|
+
url?: string | undefined;
|
|
198
|
+
isEnabled?: boolean | undefined;
|
|
199
|
+
} | undefined;
|
|
200
|
+
hostBubbles?: {
|
|
201
|
+
color?: string | undefined;
|
|
202
|
+
opacity?: number | undefined;
|
|
203
|
+
backgroundColor?: string | undefined;
|
|
204
|
+
background?: {
|
|
205
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
206
|
+
content?: string | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
blur?: number | undefined;
|
|
209
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
210
|
+
border?: {
|
|
211
|
+
color?: string | undefined;
|
|
212
|
+
opacity?: number | undefined;
|
|
213
|
+
thickness?: number | undefined;
|
|
214
|
+
roundeness?: string | undefined;
|
|
215
|
+
customRoundeness?: number | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
guestBubbles?: {
|
|
219
|
+
color?: string | undefined;
|
|
220
|
+
opacity?: number | undefined;
|
|
221
|
+
backgroundColor?: string | undefined;
|
|
222
|
+
background?: {
|
|
223
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
224
|
+
content?: string | undefined;
|
|
225
|
+
} | undefined;
|
|
226
|
+
blur?: number | undefined;
|
|
227
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
228
|
+
border?: {
|
|
229
|
+
color?: string | undefined;
|
|
230
|
+
opacity?: number | undefined;
|
|
231
|
+
thickness?: number | undefined;
|
|
232
|
+
roundeness?: string | undefined;
|
|
233
|
+
customRoundeness?: number | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
roundness?: "medium" | "large" | "none" | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
progressBar?: {
|
|
239
|
+
placement?: string | undefined;
|
|
240
|
+
color?: string | undefined;
|
|
241
|
+
backgroundColor?: string | undefined;
|
|
242
|
+
isEnabled?: boolean | undefined;
|
|
243
|
+
position?: string | undefined;
|
|
244
|
+
thickness?: number | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
customCss?: string | undefined;
|
|
247
|
+
};
|
|
248
|
+
publishedAt?: Date | undefined;
|
|
249
|
+
};
|
|
250
|
+
sessionId: string;
|
|
251
|
+
input?: (({
|
|
252
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
|
|
253
|
+
id: string;
|
|
254
|
+
items: {
|
|
255
|
+
id: string;
|
|
256
|
+
content: string;
|
|
257
|
+
value?: string | undefined;
|
|
258
|
+
outgoingEdgeId?: string | undefined;
|
|
259
|
+
pictureSrc?: string | undefined;
|
|
260
|
+
description?: string | undefined;
|
|
261
|
+
displayCondition?: {
|
|
262
|
+
isEnabled?: boolean | undefined;
|
|
263
|
+
condition?: {
|
|
264
|
+
logicalOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
|
|
265
|
+
comparisons?: {
|
|
266
|
+
id: string;
|
|
267
|
+
value?: string | undefined;
|
|
268
|
+
variableId?: string | undefined;
|
|
269
|
+
comparisonOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
|
|
270
|
+
}[] | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
} | undefined;
|
|
273
|
+
}[];
|
|
274
|
+
options?: {
|
|
275
|
+
variableId?: string | undefined;
|
|
276
|
+
isMultipleChoice?: boolean | undefined;
|
|
277
|
+
buttonLabel?: string | undefined;
|
|
278
|
+
dynamicVariableId?: string | undefined;
|
|
279
|
+
isSearchable?: boolean | undefined;
|
|
280
|
+
searchInputPlaceholder?: string | undefined;
|
|
281
|
+
otherOption?: boolean | undefined;
|
|
282
|
+
whatsappFlowHeader?: string | undefined;
|
|
283
|
+
whatsappFlowBody?: string | undefined;
|
|
284
|
+
whatsappFlowButtonText?: string | undefined;
|
|
285
|
+
whatsappFlowQuestionLabel?: string | undefined;
|
|
286
|
+
retryMessageContent?: string | undefined;
|
|
287
|
+
} | undefined;
|
|
288
|
+
outgoingEdgeId?: string | undefined;
|
|
289
|
+
} | {
|
|
290
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
|
|
291
|
+
id: string;
|
|
292
|
+
options?: {
|
|
293
|
+
variableId?: string | undefined;
|
|
294
|
+
retryMessageContent?: string | undefined;
|
|
295
|
+
labels?: {
|
|
296
|
+
button?: string | undefined;
|
|
297
|
+
from?: string | undefined;
|
|
298
|
+
to?: string | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
hasTime?: boolean | undefined;
|
|
301
|
+
isRange?: boolean | undefined;
|
|
302
|
+
format?: string | undefined;
|
|
303
|
+
min?: string | undefined;
|
|
304
|
+
max?: string | undefined;
|
|
305
|
+
} | undefined;
|
|
306
|
+
outgoingEdgeId?: string | undefined;
|
|
307
|
+
} | {
|
|
308
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
|
|
309
|
+
id: string;
|
|
310
|
+
options?: {
|
|
311
|
+
visibility?: "Auto" | "Public" | "Private" | undefined;
|
|
312
|
+
variableId?: string | undefined;
|
|
313
|
+
retryMessageContent?: string | undefined;
|
|
314
|
+
labels?: {
|
|
315
|
+
button?: string | undefined;
|
|
316
|
+
placeholder?: string | undefined;
|
|
317
|
+
clear?: string | undefined;
|
|
318
|
+
skip?: string | undefined;
|
|
319
|
+
success?: {
|
|
320
|
+
single?: string | undefined;
|
|
321
|
+
multiple?: string | undefined;
|
|
322
|
+
} | undefined;
|
|
323
|
+
} | undefined;
|
|
324
|
+
isRequired?: boolean | undefined;
|
|
325
|
+
isMultipleAllowed?: boolean | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
outgoingEdgeId?: string | undefined;
|
|
328
|
+
} | {
|
|
329
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
|
|
330
|
+
id: string;
|
|
331
|
+
options?: {
|
|
332
|
+
variableId?: string | undefined;
|
|
333
|
+
labels?: {
|
|
334
|
+
button?: string | undefined;
|
|
335
|
+
placeholder?: string | undefined;
|
|
336
|
+
} | undefined;
|
|
337
|
+
audioClip?: {
|
|
338
|
+
visibility?: "Auto" | "Public" | "Private" | undefined;
|
|
339
|
+
isEnabled?: boolean | undefined;
|
|
340
|
+
saveVariableId?: string | undefined;
|
|
341
|
+
} | undefined;
|
|
342
|
+
attachments?: {
|
|
343
|
+
visibility?: "Auto" | "Public" | "Private" | undefined;
|
|
344
|
+
isEnabled?: boolean | undefined;
|
|
345
|
+
saveVariableId?: string | undefined;
|
|
346
|
+
} | undefined;
|
|
347
|
+
} | undefined;
|
|
348
|
+
outgoingEdgeId?: string | undefined;
|
|
349
|
+
} | {
|
|
350
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
|
|
351
|
+
id: string;
|
|
352
|
+
options?: {
|
|
353
|
+
variableId?: string | undefined;
|
|
354
|
+
retryMessageContent?: string | undefined;
|
|
355
|
+
labels?: {
|
|
356
|
+
button?: string | undefined;
|
|
357
|
+
placeholder?: string | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
} | undefined;
|
|
360
|
+
outgoingEdgeId?: string | undefined;
|
|
361
|
+
} | {
|
|
362
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
|
|
363
|
+
id: string;
|
|
364
|
+
options?: {
|
|
365
|
+
variableId?: string | undefined;
|
|
366
|
+
retryMessageContent?: string | undefined;
|
|
367
|
+
labels?: {
|
|
368
|
+
button?: string | undefined;
|
|
369
|
+
placeholder?: string | undefined;
|
|
370
|
+
} | undefined;
|
|
371
|
+
min?: number | `{{${string}}}` | undefined;
|
|
372
|
+
max?: number | `{{${string}}}` | undefined;
|
|
373
|
+
step?: number | `{{${string}}}` | undefined;
|
|
374
|
+
} | undefined;
|
|
375
|
+
outgoingEdgeId?: string | undefined;
|
|
376
|
+
} | {
|
|
377
|
+
type: import("@quickbot.io/schemas/features/blocks/integrations/constants").IntegrationBlockType.PAYMENT;
|
|
378
|
+
id: string;
|
|
379
|
+
options?: {
|
|
380
|
+
variableId?: string | undefined;
|
|
381
|
+
retryMessageContent?: string | undefined;
|
|
382
|
+
labels?: {
|
|
383
|
+
button?: string | undefined;
|
|
384
|
+
success?: string | undefined;
|
|
385
|
+
} | undefined;
|
|
386
|
+
provider?: import("@quickbot.io/schemas/features/blocks/inputs/payment/constants").PaymentProvider | undefined;
|
|
387
|
+
additionalInformation?: {
|
|
388
|
+
address?: {
|
|
389
|
+
country?: string | undefined;
|
|
390
|
+
line1?: string | undefined;
|
|
391
|
+
line2?: string | undefined;
|
|
392
|
+
state?: string | undefined;
|
|
393
|
+
city?: string | undefined;
|
|
394
|
+
postalCode?: string | undefined;
|
|
395
|
+
} | undefined;
|
|
396
|
+
name?: string | undefined;
|
|
397
|
+
description?: string | undefined;
|
|
398
|
+
email?: string | undefined;
|
|
399
|
+
phoneNumber?: string | undefined;
|
|
400
|
+
} | undefined;
|
|
401
|
+
credentialsId?: string | undefined;
|
|
402
|
+
currency?: string | undefined;
|
|
403
|
+
amount?: string | undefined;
|
|
404
|
+
} | undefined;
|
|
405
|
+
outgoingEdgeId?: string | undefined;
|
|
406
|
+
} | {
|
|
407
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
|
|
408
|
+
id: string;
|
|
409
|
+
options?: {
|
|
410
|
+
variableId?: string | undefined;
|
|
411
|
+
retryMessageContent?: string | undefined;
|
|
412
|
+
labels?: {
|
|
413
|
+
button?: string | undefined;
|
|
414
|
+
placeholder?: string | undefined;
|
|
415
|
+
} | undefined;
|
|
416
|
+
defaultCountryCode?: string | undefined;
|
|
417
|
+
} | undefined;
|
|
418
|
+
outgoingEdgeId?: string | undefined;
|
|
419
|
+
} | {
|
|
420
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
|
|
421
|
+
id: string;
|
|
422
|
+
options?: {
|
|
423
|
+
length?: number | undefined;
|
|
424
|
+
variableId?: string | undefined;
|
|
425
|
+
labels?: {
|
|
426
|
+
button?: string | undefined;
|
|
427
|
+
left?: string | undefined;
|
|
428
|
+
right?: string | undefined;
|
|
429
|
+
} | undefined;
|
|
430
|
+
buttonType?: "Icons" | "Numbers" | undefined;
|
|
431
|
+
startsAt?: number | `{{${string}}}` | undefined;
|
|
432
|
+
customIcon?: {
|
|
433
|
+
isEnabled?: boolean | undefined;
|
|
434
|
+
svg?: string | undefined;
|
|
435
|
+
} | undefined;
|
|
436
|
+
isOneClickSubmitEnabled?: boolean | undefined;
|
|
437
|
+
whatsappMessage?: string | undefined;
|
|
438
|
+
} | undefined;
|
|
439
|
+
outgoingEdgeId?: string | undefined;
|
|
440
|
+
} | {
|
|
441
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
|
|
442
|
+
id: string;
|
|
443
|
+
options?: {
|
|
444
|
+
variableId?: string | undefined;
|
|
445
|
+
retryMessageContent?: string | undefined;
|
|
446
|
+
labels?: {
|
|
447
|
+
button?: string | undefined;
|
|
448
|
+
placeholder?: string | undefined;
|
|
449
|
+
} | undefined;
|
|
450
|
+
} | undefined;
|
|
451
|
+
outgoingEdgeId?: string | undefined;
|
|
452
|
+
}) & {
|
|
453
|
+
prefilledValue?: string | undefined;
|
|
454
|
+
runtimeOptions?: {
|
|
455
|
+
paymentIntentSecret: string;
|
|
456
|
+
amountLabel: string;
|
|
457
|
+
publicKey: string;
|
|
458
|
+
} | undefined;
|
|
459
|
+
}) | undefined;
|
|
460
|
+
progress?: number | undefined;
|
|
461
|
+
logs?: {
|
|
462
|
+
status: string;
|
|
463
|
+
description: string;
|
|
464
|
+
details?: unknown;
|
|
465
|
+
}[] | undefined;
|
|
466
|
+
resultId?: string | undefined;
|
|
467
|
+
dynamicTheme?: {
|
|
468
|
+
hostAvatarUrl?: string | undefined;
|
|
469
|
+
guestAvatarUrl?: string | undefined;
|
|
470
|
+
} | undefined;
|
|
471
|
+
lastMessageNewFormat?: string | undefined;
|
|
472
|
+
clientSideActions?: ({
|
|
473
|
+
type: "scriptToExecute";
|
|
474
|
+
scriptToExecute: {
|
|
475
|
+
content: string;
|
|
476
|
+
args: {
|
|
477
|
+
id: string;
|
|
478
|
+
value?: string | number | boolean | (string | null)[] | null | undefined;
|
|
479
|
+
}[];
|
|
480
|
+
isCode?: boolean | undefined;
|
|
481
|
+
};
|
|
482
|
+
lastBubbleBlockId?: string | undefined;
|
|
483
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
484
|
+
} | {
|
|
485
|
+
type: "redirect";
|
|
486
|
+
redirect: {
|
|
487
|
+
url?: string | undefined;
|
|
488
|
+
isNewTab?: boolean | undefined;
|
|
489
|
+
};
|
|
490
|
+
lastBubbleBlockId?: string | undefined;
|
|
491
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
492
|
+
} | {
|
|
493
|
+
type: "wait";
|
|
494
|
+
wait: {
|
|
495
|
+
secondsToWaitFor: number;
|
|
496
|
+
};
|
|
497
|
+
lastBubbleBlockId?: string | undefined;
|
|
498
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
499
|
+
} | {
|
|
500
|
+
type: "setVariable";
|
|
501
|
+
setVariable: {
|
|
502
|
+
scriptToExecute: {
|
|
503
|
+
content: string;
|
|
504
|
+
args: {
|
|
505
|
+
id: string;
|
|
506
|
+
value?: string | number | boolean | (string | null)[] | null | undefined;
|
|
507
|
+
}[];
|
|
508
|
+
isCode?: boolean | undefined;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
lastBubbleBlockId?: string | undefined;
|
|
512
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
513
|
+
} | {
|
|
514
|
+
type: "streamOpenAiChatCompletion";
|
|
515
|
+
streamOpenAiChatCompletion: {
|
|
516
|
+
messages: {
|
|
517
|
+
content: string;
|
|
518
|
+
role: "system" | "user" | "assistant";
|
|
519
|
+
}[];
|
|
520
|
+
};
|
|
521
|
+
lastBubbleBlockId?: string | undefined;
|
|
522
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
523
|
+
} | {
|
|
524
|
+
type: "startPropsToInject";
|
|
525
|
+
startPropsToInject: {
|
|
526
|
+
customHeadCode?: string | undefined;
|
|
527
|
+
pixelIds?: string[] | undefined;
|
|
528
|
+
gtmId?: string | undefined;
|
|
529
|
+
};
|
|
530
|
+
lastBubbleBlockId?: string | undefined;
|
|
531
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
532
|
+
} | {
|
|
533
|
+
type: "pixel";
|
|
534
|
+
pixel: {
|
|
535
|
+
params?: {
|
|
536
|
+
id: string;
|
|
537
|
+
value?: any;
|
|
538
|
+
key?: string | undefined;
|
|
539
|
+
}[] | undefined;
|
|
540
|
+
eventType?: undefined;
|
|
541
|
+
pixelId?: string | undefined;
|
|
542
|
+
isInitSkip?: boolean | undefined;
|
|
543
|
+
} | {
|
|
544
|
+
eventType: "Lead" | "Contact" | "CompleteRegistration" | "Schedule" | "SubmitApplication" | "ViewContent" | "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Purchase" | "Search" | "StartTrial" | "Subscribe";
|
|
545
|
+
params?: {
|
|
546
|
+
id: string;
|
|
547
|
+
value?: any;
|
|
548
|
+
key?: string | undefined;
|
|
549
|
+
}[] | undefined;
|
|
550
|
+
pixelId?: string | undefined;
|
|
551
|
+
isInitSkip?: boolean | undefined;
|
|
552
|
+
} | {
|
|
553
|
+
eventType: "Custom";
|
|
554
|
+
params?: {
|
|
555
|
+
id: string;
|
|
556
|
+
value?: any;
|
|
557
|
+
key?: string | undefined;
|
|
558
|
+
}[] | undefined;
|
|
559
|
+
name?: string | undefined;
|
|
560
|
+
pixelId?: string | undefined;
|
|
561
|
+
isInitSkip?: boolean | undefined;
|
|
562
|
+
};
|
|
563
|
+
lastBubbleBlockId?: string | undefined;
|
|
564
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
565
|
+
} | {
|
|
566
|
+
type: "stream";
|
|
567
|
+
stream: true;
|
|
568
|
+
lastBubbleBlockId?: string | undefined;
|
|
569
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
570
|
+
} | {
|
|
571
|
+
type: "codeToExecute";
|
|
572
|
+
codeToExecute: {
|
|
573
|
+
content: string;
|
|
574
|
+
args: Record<string, unknown>;
|
|
575
|
+
};
|
|
576
|
+
lastBubbleBlockId?: string | undefined;
|
|
577
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
578
|
+
})[] | undefined;
|
|
579
|
+
};
|
|
580
|
+
error?: undefined;
|
|
581
|
+
}>;
|
|
582
|
+
export {};
|
|
583
|
+
//# sourceMappingURL=startChatQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startChatQuery.d.ts","sourceRoot":"","sources":["../../src/queries/startChatQuery.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,SAAS,EAEV,MAAM,sBAAsB,CAAA;AAI7B,KAAK,KAAK,GAAG;IAEX,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAiBD,wBAAsB,cAAc,CAAC,EACnC,GAAG,EACH,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,oBAAoB,EACpB,SAAS,EACT,SAAS,GACV,EAAE,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHP"}
|
|
@@ -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,51 @@
|
|
|
1
|
+
import { SendMessageResponse, CreateConversationResponse, ThemeChatProps } from '@quickbot.io/schemas';
|
|
2
|
+
export type BotContext = {
|
|
3
|
+
bot: CreateConversationResponse['bot'];
|
|
4
|
+
resultId?: string;
|
|
5
|
+
isPreview: boolean;
|
|
6
|
+
sessionId: string;
|
|
7
|
+
storage: 'local' | 'session' | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type OutgoingLog = {
|
|
10
|
+
status: string;
|
|
11
|
+
description: string;
|
|
12
|
+
details?: unknown;
|
|
13
|
+
};
|
|
14
|
+
export type ClientSideActionContext = {
|
|
15
|
+
sessionId: string;
|
|
16
|
+
};
|
|
17
|
+
export type ChatChunk = Pick<SendMessageResponse, 'messages' | 'clientSideActions'> & {
|
|
18
|
+
streamingMessageId?: string;
|
|
19
|
+
input?: NonNullable<SendMessageResponse['input']> & {
|
|
20
|
+
answer?: InputSubmitContent;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type Attachment = {
|
|
24
|
+
type: string;
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
export type TextInputSubmitContent = {
|
|
28
|
+
type: 'text';
|
|
29
|
+
value: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
attachments?: Attachment[];
|
|
32
|
+
};
|
|
33
|
+
export type RecordingInputSubmitContent = {
|
|
34
|
+
type: 'recording';
|
|
35
|
+
url: string;
|
|
36
|
+
};
|
|
37
|
+
export type InputSubmitContent = TextInputSubmitContent | RecordingInputSubmitContent;
|
|
38
|
+
export type GuestAvatarConfig = NonNullable<ThemeChatProps['guestAvatar']>;
|
|
39
|
+
export type InputBlockBaseProps = {
|
|
40
|
+
block: NonNullable<SendMessageResponse['input']>;
|
|
41
|
+
hasHostAvatar: boolean;
|
|
42
|
+
guestAvatar?: GuestAvatarConfig;
|
|
43
|
+
chunkIndex: number;
|
|
44
|
+
context: BotContext;
|
|
45
|
+
isInputPrefillEnabled: boolean;
|
|
46
|
+
hasError: boolean;
|
|
47
|
+
onTransitionEnd: () => void;
|
|
48
|
+
onSubmit: (content: InputSubmitContent) => void;
|
|
49
|
+
onSkip: () => void;
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEtG,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,0BAA0B,CAAC,KAAK,CAAC,CAAA;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,mBAAmB,CAAC,GAAG;IACpF,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,GAAG;QAClD,MAAM,CAAC,EAAE,kBAAkB,CAAA;KAC5B,CAAA;CACF,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,WAAW,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,2BAA2B,CAAA;AAGrF,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAA;AAE1E,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,WAAW,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAA;IAChD,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,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"}
|
|
@@ -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,MAAS,eAAe,uDAAkC,CAAA"}
|