@urbiport/js 0.0.19-alpha.9 → 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 -265
- 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,20 @@
|
|
|
1
|
+
import { ClientSideActionContext } from '@/types';
|
|
2
|
+
import type { SendMessageResponse, ConversationLog } from '@quickbot.io/schemas';
|
|
3
|
+
type Props = {
|
|
4
|
+
clientSideAction: NonNullable<SendMessageResponse['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?: ConversationLog[];
|
|
16
|
+
} | {
|
|
17
|
+
logs: ConversationLog[];
|
|
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":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAGhF,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,WAAW,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC1E,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,GAAU,iDAI3C,KAAK,KAAG,OAAO,CACd;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,GAC3B;IAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,eAAe,EAAE,CAAA;CAAE,GAC7D;IAAE,IAAI,EAAE,eAAe,EAAE,CAAA;CAAE,GAC3B,IAAI,CAgCP,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":"getApiUrl.d.ts","sourceRoot":"","sources":["../../src/utils/getApiUrl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,aAAa,MAAM,KAAG,MAW/C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injectFont.d.ts","sourceRoot":"","sources":["../../src/utils/injectFont.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAMrD,eAAO,MAAM,UAAU,GAAI,MAAM,cAAc,SAkC9C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injectStartProps.d.ts","sourceRoot":"","sources":["../../src/utils/injectStartProps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,eAAO,MAAM,gBAAgB,GAAU,oBAAoB,kBAAkB,kBAK5E,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 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/utils/markdown.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CA2B9E;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,SAAS,GAAG,MAAM,CAcpE"}
|
|
@@ -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,EAIL,UAAU,EAEX,MAAM,sBAAsB,CAAA;AA4G7B,eAAO,MAAM,oBAAoB,GAC/B,OAAO,UAAU,GAAG,SAAS,EAC7B,WAAW,cAAc,EACzB,YAAY,OAAO,SAOpB,CAAA"}
|
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { CreateConversationResponse } from '@quickbot.io/schemas/features/chat/schema';
|
|
2
|
+
export declare const getExistingResultIdFromStorage: (botId?: string) => string | undefined;
|
|
3
|
+
export declare const setResultInStorage: (storageType?: "local" | "session") => (botId: string, resultId: string) => void;
|
|
4
|
+
export declare const getInitialChatReplyFromStorage: (botId: string | undefined) => {
|
|
5
|
+
messages: ({
|
|
6
|
+
id: string;
|
|
7
|
+
} & ({
|
|
8
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.TEXT;
|
|
9
|
+
content: {
|
|
10
|
+
type: "markdown";
|
|
11
|
+
markdown: string;
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.IMAGE;
|
|
15
|
+
content: {
|
|
16
|
+
url?: string | undefined;
|
|
17
|
+
clickLink?: {
|
|
18
|
+
url?: string | undefined;
|
|
19
|
+
alt?: string | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO;
|
|
24
|
+
content: {
|
|
25
|
+
height?: number | `{{${string}}}` | undefined;
|
|
26
|
+
type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
url?: string | undefined;
|
|
29
|
+
isAutoplayEnabled?: boolean | undefined;
|
|
30
|
+
aspectRatio?: string | undefined;
|
|
31
|
+
maxWidth?: string | undefined;
|
|
32
|
+
queryParamsStr?: string | undefined;
|
|
33
|
+
areControlsDisplayed?: boolean | undefined;
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.AUDIO;
|
|
37
|
+
content: {
|
|
38
|
+
url?: string | undefined;
|
|
39
|
+
isAutoplayEnabled?: boolean | undefined;
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
42
|
+
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED;
|
|
43
|
+
content: {
|
|
44
|
+
height?: number | undefined;
|
|
45
|
+
url?: string | undefined;
|
|
46
|
+
waitForEvent?: {
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
isEnabled?: boolean | undefined;
|
|
49
|
+
saveDataInVariableId?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
initFunction?: {
|
|
52
|
+
content: string;
|
|
53
|
+
args: Record<string, any>;
|
|
54
|
+
} | undefined;
|
|
55
|
+
waitForEventFunction?: {
|
|
56
|
+
content: string;
|
|
57
|
+
args: Record<string, any>;
|
|
58
|
+
} | undefined;
|
|
59
|
+
};
|
|
60
|
+
}))[];
|
|
61
|
+
bot: {
|
|
62
|
+
id: string;
|
|
63
|
+
settings: {
|
|
64
|
+
metadata?: {
|
|
65
|
+
title?: string | undefined;
|
|
66
|
+
description?: string | undefined;
|
|
67
|
+
imageUrl?: string | undefined;
|
|
68
|
+
favIconUrl?: string | undefined;
|
|
69
|
+
customHeadCode?: string | undefined;
|
|
70
|
+
googleTagManagerId?: string | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
whatsApp?: {
|
|
73
|
+
isEnabled?: boolean | undefined;
|
|
74
|
+
startCondition?: {
|
|
75
|
+
logicalOperator: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator;
|
|
76
|
+
comparisons: {
|
|
77
|
+
id: string;
|
|
78
|
+
value?: string | undefined;
|
|
79
|
+
comparisonOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
|
|
80
|
+
}[];
|
|
81
|
+
} | undefined;
|
|
82
|
+
sessionExpiryTimeout?: number | undefined;
|
|
83
|
+
flowIds?: Record<string, string> | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
general?: {
|
|
86
|
+
isBrandingEnabled?: boolean | undefined;
|
|
87
|
+
isTypingEmulationEnabled?: boolean | undefined;
|
|
88
|
+
isInputPrefillEnabled?: boolean | undefined;
|
|
89
|
+
isHideQueryParamsEnabled?: boolean | undefined;
|
|
90
|
+
isNewResultOnRefreshEnabled?: boolean | undefined;
|
|
91
|
+
rememberUser?: {
|
|
92
|
+
isEnabled?: boolean | undefined;
|
|
93
|
+
storage?: string | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
typingEmulation?: {
|
|
97
|
+
enabled?: boolean | undefined;
|
|
98
|
+
speed?: number | undefined;
|
|
99
|
+
maxDelay?: number | undefined;
|
|
100
|
+
delayBetweenBubbles?: number | undefined;
|
|
101
|
+
isDisabledOnFirstMessage?: boolean | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
publicShare?: {
|
|
104
|
+
isEnabled?: boolean | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
security?: {
|
|
107
|
+
allowedOrigins?: string[] | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
};
|
|
110
|
+
theme: {
|
|
111
|
+
chat?: {
|
|
112
|
+
inputs?: {
|
|
113
|
+
color?: string | undefined;
|
|
114
|
+
opacity?: number | undefined;
|
|
115
|
+
backgroundColor?: string | undefined;
|
|
116
|
+
background?: {
|
|
117
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
118
|
+
content?: string | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
blur?: number | undefined;
|
|
121
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
122
|
+
border?: {
|
|
123
|
+
color?: string | undefined;
|
|
124
|
+
opacity?: number | undefined;
|
|
125
|
+
thickness?: number | undefined;
|
|
126
|
+
roundness?: number | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
placeholderColor?: string | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
buttons?: {
|
|
131
|
+
color?: string | undefined;
|
|
132
|
+
opacity?: number | undefined;
|
|
133
|
+
backgroundColor?: string | undefined;
|
|
134
|
+
background?: {
|
|
135
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
136
|
+
content?: string | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
blur?: number | undefined;
|
|
139
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
140
|
+
border?: {
|
|
141
|
+
color?: string | undefined;
|
|
142
|
+
opacity?: number | undefined;
|
|
143
|
+
thickness?: number | undefined;
|
|
144
|
+
roundness?: number | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
roundness?: "medium" | "large" | "none" | undefined;
|
|
148
|
+
container?: {
|
|
149
|
+
color?: string | undefined;
|
|
150
|
+
opacity?: number | undefined;
|
|
151
|
+
maxWidth?: string | undefined;
|
|
152
|
+
backgroundColor?: string | undefined;
|
|
153
|
+
background?: {
|
|
154
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
155
|
+
content?: string | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
blur?: number | undefined;
|
|
158
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
159
|
+
border?: {
|
|
160
|
+
color?: string | undefined;
|
|
161
|
+
opacity?: number | undefined;
|
|
162
|
+
thickness?: number | undefined;
|
|
163
|
+
roundness?: number | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
maxHeight?: string | undefined;
|
|
166
|
+
font?: string | {
|
|
167
|
+
type: "Google";
|
|
168
|
+
family?: string | undefined;
|
|
169
|
+
} | {
|
|
170
|
+
type: "Custom";
|
|
171
|
+
css?: string | undefined;
|
|
172
|
+
url?: string | undefined;
|
|
173
|
+
family?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
hostAvatar?: {
|
|
177
|
+
url?: string | undefined;
|
|
178
|
+
isEnabled?: boolean | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
guestAvatar?: {
|
|
181
|
+
url?: string | undefined;
|
|
182
|
+
isEnabled?: boolean | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
hostBubbles?: {
|
|
185
|
+
color?: string | undefined;
|
|
186
|
+
opacity?: number | undefined;
|
|
187
|
+
backgroundColor?: string | undefined;
|
|
188
|
+
background?: {
|
|
189
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
190
|
+
content?: string | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
blur?: number | undefined;
|
|
193
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
194
|
+
border?: {
|
|
195
|
+
color?: string | undefined;
|
|
196
|
+
opacity?: number | undefined;
|
|
197
|
+
thickness?: number | undefined;
|
|
198
|
+
roundness?: number | undefined;
|
|
199
|
+
} | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
guestBubbles?: {
|
|
202
|
+
color?: string | undefined;
|
|
203
|
+
opacity?: number | undefined;
|
|
204
|
+
backgroundColor?: string | undefined;
|
|
205
|
+
background?: {
|
|
206
|
+
type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
|
|
207
|
+
content?: string | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
blur?: number | undefined;
|
|
210
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
211
|
+
border?: {
|
|
212
|
+
color?: string | undefined;
|
|
213
|
+
opacity?: number | undefined;
|
|
214
|
+
thickness?: number | undefined;
|
|
215
|
+
roundness?: number | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
progressBar?: {
|
|
220
|
+
placement?: string | undefined;
|
|
221
|
+
color?: string | undefined;
|
|
222
|
+
isEnabled?: boolean | undefined;
|
|
223
|
+
position?: string | undefined;
|
|
224
|
+
thickness?: number | undefined;
|
|
225
|
+
backgroundColor?: string | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
customCss?: string | undefined;
|
|
228
|
+
};
|
|
229
|
+
publishedAt?: Date | undefined;
|
|
230
|
+
};
|
|
231
|
+
sessionId: string;
|
|
232
|
+
input?: (({
|
|
233
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
|
|
234
|
+
id: string;
|
|
235
|
+
items: {
|
|
236
|
+
id: string;
|
|
237
|
+
content: string;
|
|
238
|
+
value?: string | undefined;
|
|
239
|
+
outgoingEdgeId?: string | undefined;
|
|
240
|
+
pictureSrc?: string | undefined;
|
|
241
|
+
description?: string | undefined;
|
|
242
|
+
displayCondition?: {
|
|
243
|
+
isEnabled?: boolean | undefined;
|
|
244
|
+
condition?: {
|
|
245
|
+
logicalOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
|
|
246
|
+
comparisons?: {
|
|
247
|
+
id: string;
|
|
248
|
+
value?: string | undefined;
|
|
249
|
+
variableId?: string | undefined;
|
|
250
|
+
comparisonOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
|
|
251
|
+
}[] | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
}[];
|
|
255
|
+
options?: {
|
|
256
|
+
variableId?: string | undefined;
|
|
257
|
+
isMultipleChoice?: boolean | undefined;
|
|
258
|
+
buttonLabel?: string | undefined;
|
|
259
|
+
dynamicVariableId?: string | undefined;
|
|
260
|
+
isSearchable?: boolean | undefined;
|
|
261
|
+
searchInputPlaceholder?: string | undefined;
|
|
262
|
+
otherOption?: boolean | undefined;
|
|
263
|
+
whatsappFlowHeader?: string | undefined;
|
|
264
|
+
whatsappFlowBody?: string | undefined;
|
|
265
|
+
whatsappFlowButtonText?: string | undefined;
|
|
266
|
+
whatsappFlowQuestionLabel?: string | undefined;
|
|
267
|
+
retryMessageContent?: string | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
outgoingEdgeId?: string | undefined;
|
|
270
|
+
} | {
|
|
271
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
|
|
272
|
+
id: string;
|
|
273
|
+
options?: {
|
|
274
|
+
variableId?: string | undefined;
|
|
275
|
+
retryMessageContent?: string | undefined;
|
|
276
|
+
labels?: {
|
|
277
|
+
button?: string | undefined;
|
|
278
|
+
from?: string | undefined;
|
|
279
|
+
to?: string | undefined;
|
|
280
|
+
} | undefined;
|
|
281
|
+
hasTime?: boolean | undefined;
|
|
282
|
+
isRange?: boolean | undefined;
|
|
283
|
+
format?: string | undefined;
|
|
284
|
+
min?: string | undefined;
|
|
285
|
+
max?: string | undefined;
|
|
286
|
+
} | undefined;
|
|
287
|
+
outgoingEdgeId?: string | undefined;
|
|
288
|
+
} | {
|
|
289
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
|
|
290
|
+
id: string;
|
|
291
|
+
options?: {
|
|
292
|
+
visibility?: "Auto" | "Public" | "Private" | undefined;
|
|
293
|
+
variableId?: string | undefined;
|
|
294
|
+
retryMessageContent?: string | undefined;
|
|
295
|
+
labels?: {
|
|
296
|
+
button?: string | undefined;
|
|
297
|
+
placeholder?: string | undefined;
|
|
298
|
+
clear?: string | undefined;
|
|
299
|
+
skip?: string | undefined;
|
|
300
|
+
success?: {
|
|
301
|
+
single?: string | undefined;
|
|
302
|
+
multiple?: string | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
} | undefined;
|
|
305
|
+
isRequired?: boolean | undefined;
|
|
306
|
+
isMultipleAllowed?: boolean | undefined;
|
|
307
|
+
} | undefined;
|
|
308
|
+
outgoingEdgeId?: string | undefined;
|
|
309
|
+
} | {
|
|
310
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
|
|
311
|
+
id: string;
|
|
312
|
+
options?: {
|
|
313
|
+
variableId?: string | undefined;
|
|
314
|
+
labels?: {
|
|
315
|
+
button?: string | undefined;
|
|
316
|
+
placeholder?: string | undefined;
|
|
317
|
+
} | undefined;
|
|
318
|
+
audioClip?: {
|
|
319
|
+
visibility?: "Auto" | "Public" | "Private" | undefined;
|
|
320
|
+
isEnabled?: boolean | undefined;
|
|
321
|
+
saveVariableId?: string | undefined;
|
|
322
|
+
} | undefined;
|
|
323
|
+
attachments?: {
|
|
324
|
+
visibility?: "Auto" | "Public" | "Private" | undefined;
|
|
325
|
+
isEnabled?: boolean | undefined;
|
|
326
|
+
saveVariableId?: string | undefined;
|
|
327
|
+
} | undefined;
|
|
328
|
+
} | undefined;
|
|
329
|
+
outgoingEdgeId?: string | undefined;
|
|
330
|
+
} | {
|
|
331
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
|
|
332
|
+
id: string;
|
|
333
|
+
options?: {
|
|
334
|
+
variableId?: string | undefined;
|
|
335
|
+
retryMessageContent?: string | undefined;
|
|
336
|
+
labels?: {
|
|
337
|
+
button?: string | undefined;
|
|
338
|
+
placeholder?: string | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
outgoingEdgeId?: string | undefined;
|
|
342
|
+
} | {
|
|
343
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
|
|
344
|
+
id: string;
|
|
345
|
+
options?: {
|
|
346
|
+
variableId?: string | undefined;
|
|
347
|
+
retryMessageContent?: string | undefined;
|
|
348
|
+
labels?: {
|
|
349
|
+
button?: string | undefined;
|
|
350
|
+
placeholder?: string | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
min?: number | `{{${string}}}` | undefined;
|
|
353
|
+
max?: number | `{{${string}}}` | undefined;
|
|
354
|
+
step?: number | `{{${string}}}` | undefined;
|
|
355
|
+
} | undefined;
|
|
356
|
+
outgoingEdgeId?: string | undefined;
|
|
357
|
+
} | {
|
|
358
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PAYMENT;
|
|
359
|
+
id: string;
|
|
360
|
+
options?: {
|
|
361
|
+
variableId?: string | undefined;
|
|
362
|
+
retryMessageContent?: string | undefined;
|
|
363
|
+
labels?: {
|
|
364
|
+
button?: string | undefined;
|
|
365
|
+
success?: string | undefined;
|
|
366
|
+
} | undefined;
|
|
367
|
+
provider?: import("@quickbot.io/schemas/features/blocks/inputs/payment/constants").PaymentProvider | undefined;
|
|
368
|
+
additionalInformation?: {
|
|
369
|
+
address?: {
|
|
370
|
+
country?: string | undefined;
|
|
371
|
+
line1?: string | undefined;
|
|
372
|
+
line2?: string | undefined;
|
|
373
|
+
state?: string | undefined;
|
|
374
|
+
city?: string | undefined;
|
|
375
|
+
postalCode?: string | undefined;
|
|
376
|
+
} | undefined;
|
|
377
|
+
name?: string | undefined;
|
|
378
|
+
description?: string | undefined;
|
|
379
|
+
email?: string | undefined;
|
|
380
|
+
phoneNumber?: string | undefined;
|
|
381
|
+
} | undefined;
|
|
382
|
+
credentialsId?: string | undefined;
|
|
383
|
+
currency?: string | undefined;
|
|
384
|
+
amount?: string | undefined;
|
|
385
|
+
} | undefined;
|
|
386
|
+
outgoingEdgeId?: string | undefined;
|
|
387
|
+
} | {
|
|
388
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
|
|
389
|
+
id: string;
|
|
390
|
+
options?: {
|
|
391
|
+
variableId?: string | undefined;
|
|
392
|
+
retryMessageContent?: string | undefined;
|
|
393
|
+
labels?: {
|
|
394
|
+
button?: string | undefined;
|
|
395
|
+
placeholder?: string | undefined;
|
|
396
|
+
} | undefined;
|
|
397
|
+
defaultCountryCode?: string | undefined;
|
|
398
|
+
} | undefined;
|
|
399
|
+
outgoingEdgeId?: string | undefined;
|
|
400
|
+
} | {
|
|
401
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
|
|
402
|
+
id: string;
|
|
403
|
+
options?: {
|
|
404
|
+
length?: number | undefined;
|
|
405
|
+
variableId?: string | undefined;
|
|
406
|
+
labels?: {
|
|
407
|
+
button?: string | undefined;
|
|
408
|
+
left?: string | undefined;
|
|
409
|
+
right?: string | undefined;
|
|
410
|
+
} | undefined;
|
|
411
|
+
buttonType?: "Icons" | "Numbers" | undefined;
|
|
412
|
+
startsAt?: number | `{{${string}}}` | undefined;
|
|
413
|
+
customIcon?: {
|
|
414
|
+
isEnabled?: boolean | undefined;
|
|
415
|
+
svg?: string | undefined;
|
|
416
|
+
} | undefined;
|
|
417
|
+
isOneClickSubmitEnabled?: boolean | undefined;
|
|
418
|
+
whatsappMessage?: string | undefined;
|
|
419
|
+
} | undefined;
|
|
420
|
+
outgoingEdgeId?: string | undefined;
|
|
421
|
+
} | {
|
|
422
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
|
|
423
|
+
id: string;
|
|
424
|
+
options?: {
|
|
425
|
+
variableId?: string | undefined;
|
|
426
|
+
retryMessageContent?: string | undefined;
|
|
427
|
+
labels?: {
|
|
428
|
+
button?: string | undefined;
|
|
429
|
+
placeholder?: string | undefined;
|
|
430
|
+
} | undefined;
|
|
431
|
+
} | undefined;
|
|
432
|
+
outgoingEdgeId?: string | undefined;
|
|
433
|
+
}) & {
|
|
434
|
+
prefilledValue?: string | undefined;
|
|
435
|
+
runtimeOptions?: {
|
|
436
|
+
paymentIntentSecret: string;
|
|
437
|
+
amountLabel: string;
|
|
438
|
+
publicKey: string;
|
|
439
|
+
} | undefined;
|
|
440
|
+
}) | undefined;
|
|
441
|
+
progress?: number | undefined;
|
|
442
|
+
logs?: {
|
|
443
|
+
status: string;
|
|
444
|
+
description: string;
|
|
445
|
+
details?: unknown;
|
|
446
|
+
}[] | undefined;
|
|
447
|
+
resultId?: string | undefined;
|
|
448
|
+
dynamicTheme?: {
|
|
449
|
+
hostAvatarUrl?: string | undefined;
|
|
450
|
+
guestAvatarUrl?: string | undefined;
|
|
451
|
+
} | undefined;
|
|
452
|
+
lastMessageNewFormat?: string | undefined;
|
|
453
|
+
clientSideActions?: ({
|
|
454
|
+
type: "scriptToExecute";
|
|
455
|
+
scriptToExecute: {
|
|
456
|
+
content: string;
|
|
457
|
+
args: {
|
|
458
|
+
id: string;
|
|
459
|
+
value?: string | number | boolean | (string | null)[] | null | undefined;
|
|
460
|
+
}[];
|
|
461
|
+
isCode?: boolean | undefined;
|
|
462
|
+
};
|
|
463
|
+
lastBubbleBlockId?: string | undefined;
|
|
464
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
465
|
+
} | {
|
|
466
|
+
type: "redirect";
|
|
467
|
+
redirect: {
|
|
468
|
+
url?: string | undefined;
|
|
469
|
+
isNewTab?: boolean | undefined;
|
|
470
|
+
};
|
|
471
|
+
lastBubbleBlockId?: string | undefined;
|
|
472
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
473
|
+
} | {
|
|
474
|
+
type: "wait";
|
|
475
|
+
wait: {
|
|
476
|
+
secondsToWaitFor: number;
|
|
477
|
+
};
|
|
478
|
+
lastBubbleBlockId?: string | undefined;
|
|
479
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
480
|
+
} | {
|
|
481
|
+
type: "setVariable";
|
|
482
|
+
setVariable: {
|
|
483
|
+
scriptToExecute: {
|
|
484
|
+
content: string;
|
|
485
|
+
args: {
|
|
486
|
+
id: string;
|
|
487
|
+
value?: string | number | boolean | (string | null)[] | null | undefined;
|
|
488
|
+
}[];
|
|
489
|
+
isCode?: boolean | undefined;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
lastBubbleBlockId?: string | undefined;
|
|
493
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
494
|
+
} | {
|
|
495
|
+
type: "streamOpenAiChatCompletion";
|
|
496
|
+
streamOpenAiChatCompletion: {
|
|
497
|
+
messages: {
|
|
498
|
+
content: string;
|
|
499
|
+
role: "system" | "user" | "assistant";
|
|
500
|
+
}[];
|
|
501
|
+
};
|
|
502
|
+
lastBubbleBlockId?: string | undefined;
|
|
503
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
504
|
+
} | {
|
|
505
|
+
type: "startPropsToInject";
|
|
506
|
+
startPropsToInject: {
|
|
507
|
+
customHeadCode?: string | undefined;
|
|
508
|
+
gtmId?: string | undefined;
|
|
509
|
+
};
|
|
510
|
+
lastBubbleBlockId?: string | undefined;
|
|
511
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
512
|
+
} | {
|
|
513
|
+
type: "stream";
|
|
514
|
+
stream: true;
|
|
515
|
+
lastBubbleBlockId?: string | undefined;
|
|
516
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
517
|
+
} | {
|
|
518
|
+
type: "codeToExecute";
|
|
519
|
+
codeToExecute: {
|
|
520
|
+
content: string;
|
|
521
|
+
args: Record<string, unknown>;
|
|
522
|
+
};
|
|
523
|
+
lastBubbleBlockId?: string | undefined;
|
|
524
|
+
expectsDedicatedReply?: boolean | undefined;
|
|
525
|
+
})[] | undefined;
|
|
526
|
+
} | undefined;
|
|
527
|
+
export declare const setInitialChatReplyInStorage: (initialChatReply: CreateConversationResponse, { botId, storage, }: {
|
|
528
|
+
botId: string;
|
|
529
|
+
storage?: "local" | "session";
|
|
530
|
+
}) => void;
|
|
531
|
+
export declare const setBotOpenedStateInStorage: () => void;
|
|
532
|
+
export declare const removeBotOpenedStateInStorage: () => void;
|
|
533
|
+
export declare const getBotOpenedStateFromStorage: () => boolean;
|
|
534
|
+
export declare const wipeExistingChatStateInStorage: (botId: string) => void;
|
|
535
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAA;AAKtF,eAAO,MAAM,8BAA8B,GAAI,QAAQ,MAAM,uBAW5D,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC5B,cAAa,OAAO,GAAG,SAAqB,MAC5C,OAAO,MAAM,EAAE,UAAU,MAAM,SAM/B,CAAA;AAEH,eAAO,MAAM,8BAA8B,GAAI,OAAO,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAWvE,CAAA;AACD,eAAO,MAAM,4BAA4B,GACvC,kBAAkB,0BAA0B,EAC5C,qBAGG;IACD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,SAQF,CAAA;AAED,eAAO,MAAM,0BAA0B,YAMtC,CAAA;AAED,eAAO,MAAM,6BAA6B,YAMzC,CAAA;AAED,eAAO,MAAM,4BAA4B,eAMxC,CAAA;AASD,eAAO,MAAM,8BAA8B,GAAI,OAAO,MAAM,SAiC3D,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const streamingMessage: import("solid-js").Accessor<{
|
|
2
|
+
id: string;
|
|
3
|
+
content: string;
|
|
4
|
+
} | undefined>, setStreamingMessage: import("solid-js").Setter<{
|
|
5
|
+
id: string;
|
|
6
|
+
content: string;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
//# sourceMappingURL=streamingMessageSignal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamingMessageSignal.d.ts","sourceRoot":"","sources":["../../src/utils/streamingMessageSignal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAO,gBAAgB;QACxB,MAAM;aACD,MAAM;gBAFe,mBAAmB;QAC7C,MAAM;aACD,MAAM;cACb,CAAA"}
|