@urbiport/js 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -0
- package/dist/components/Bot.d.ts +26 -0
- package/dist/components/Bot.d.ts.map +1 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/ConversationContainer/AvatarSideContainer.d.ts +8 -0
- package/dist/components/ConversationContainer/AvatarSideContainer.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ChatChunk.d.ts +20 -0
- package/dist/components/ConversationContainer/ChatChunk.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationContainer.d.ts +17 -0
- package/dist/components/ConversationContainer/ConversationContainer.d.ts.map +1 -0
- package/dist/components/ConversationContainer/LoadingChunk.d.ts +7 -0
- package/dist/components/ConversationContainer/LoadingChunk.d.ts.map +1 -0
- package/dist/components/ConversationContainer/PopupBlockedToast.d.ts +7 -0
- package/dist/components/ConversationContainer/PopupBlockedToast.d.ts.map +1 -0
- package/dist/components/ConversationContainer/index.d.ts +2 -0
- package/dist/components/ConversationContainer/index.d.ts.map +1 -0
- package/dist/components/ErrorMessage.d.ts +6 -0
- package/dist/components/ErrorMessage.d.ts.map +1 -0
- package/dist/components/InputChatBlock.d.ts +18 -0
- package/dist/components/InputChatBlock.d.ts.map +1 -0
- package/dist/components/LiteBadge.d.ts +6 -0
- package/dist/components/LiteBadge.d.ts.map +1 -0
- package/dist/components/Modal.d.ts +9 -0
- package/dist/components/Modal.d.ts.map +1 -0
- package/dist/components/ProgressBar.d.ts +6 -0
- package/dist/components/ProgressBar.d.ts.map +1 -0
- package/dist/components/SendButton.d.ts +10 -0
- package/dist/components/SendButton.d.ts.map +1 -0
- package/dist/components/Spinner.d.ts +3 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/TextInputAddFileButton.d.ts +7 -0
- package/dist/components/TextInputAddFileButton.d.ts.map +1 -0
- package/dist/components/TypingBubble.d.ts +2 -0
- package/dist/components/TypingBubble.d.ts.map +1 -0
- package/dist/components/avatars/Avatar.d.ts +4 -0
- package/dist/components/avatars/Avatar.d.ts.map +1 -0
- package/dist/components/avatars/DefaultAvatar.d.ts +2 -0
- package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
- package/dist/components/bubbles/GuestBubble.d.ts +10 -0
- package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
- package/dist/components/bubbles/HostBubble.d.ts +12 -0
- package/dist/components/bubbles/HostBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LoadingBubble.d.ts +2 -0
- package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
- package/dist/components/bubbles/StreamingBubble.d.ts +8 -0
- package/dist/components/bubbles/StreamingBubble.d.ts.map +1 -0
- package/dist/components/icons/CameraIcon.d.ts +3 -0
- package/dist/components/icons/CameraIcon.d.ts.map +1 -0
- package/dist/components/icons/CheckIcon.d.ts +3 -0
- package/dist/components/icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/ChevronDownIcon.d.ts +3 -0
- package/dist/components/icons/ChevronDownIcon.d.ts.map +1 -0
- package/dist/components/icons/CloseIcon.d.ts +3 -0
- package/dist/components/icons/CloseIcon.d.ts.map +1 -0
- package/dist/components/icons/FileIcon.d.ts +3 -0
- package/dist/components/icons/FileIcon.d.ts.map +1 -0
- package/dist/components/icons/MicrophoneIcon.d.ts +3 -0
- package/dist/components/icons/MicrophoneIcon.d.ts.map +1 -0
- package/dist/components/icons/PaperClipIcon.d.ts +3 -0
- package/dist/components/icons/PaperClipIcon.d.ts.map +1 -0
- package/dist/components/icons/PictureIcon.d.ts +3 -0
- package/dist/components/icons/PictureIcon.d.ts.map +1 -0
- package/dist/components/icons/PlusIcon.d.ts +3 -0
- package/dist/components/icons/PlusIcon.d.ts.map +1 -0
- package/dist/components/icons/SendIcon.d.ts +3 -0
- package/dist/components/icons/SendIcon.d.ts.map +1 -0
- package/dist/components/icons/TypebotLogo.d.ts +2 -0
- package/dist/components/icons/TypebotLogo.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts +2 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/inputs/SearchInput.d.ts +9 -0
- package/dist/components/inputs/SearchInput.d.ts.map +1 -0
- package/dist/components/inputs/ShortTextInput.d.ts +8 -0
- package/dist/components/inputs/ShortTextInput.d.ts.map +1 -0
- package/dist/components/inputs/Textarea.d.ts +8 -0
- package/dist/components/inputs/Textarea.d.ts.map +1 -0
- package/dist/components/inputs/index.d.ts +3 -0
- package/dist/components/inputs/index.d.ts.map +1 -0
- package/dist/constants.d.ts +7 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts +8 -0
- package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/audio/components/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/audio/components/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/audio/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/audio/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts +11 -0
- package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts +11 -0
- package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/embed/components/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/embed/components/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/embed/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/embed/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts +10 -0
- package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/image/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/image/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts +11 -0
- package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts +9 -0
- package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts +9 -0
- package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts +3 -0
- package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/textBubble/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/textBubble/index.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts +9 -0
- package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/video/index.d.ts +2 -0
- package/dist/features/blocks/bubbles/video/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +11 -0
- package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -0
- package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts +7 -0
- package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts.map +1 -0
- package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts +10 -0
- package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/date/components/DateForm.d.ts +10 -0
- package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/date/index.d.ts +2 -0
- package/dist/features/blocks/inputs/date/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +10 -0
- package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/email/index.d.ts +2 -0
- package/dist/features/blocks/inputs/email/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts +8 -0
- package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts +11 -0
- package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts +6 -0
- package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts +14 -0
- package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts +21 -0
- package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/index.d.ts +2 -0
- package/dist/features/blocks/inputs/fileUpload/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/number/components/NumberInput.d.ts +10 -0
- package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/number/index.d.ts +2 -0
- package/dist/features/blocks/inputs/number/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/number/numberInputHelper.d.ts +2 -0
- package/dist/features/blocks/inputs/number/numberInputHelper.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts +11 -0
- package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts +11 -0
- package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/components/index.d.ts +2 -0
- package/dist/features/blocks/inputs/payment/components/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts +5 -0
- package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/index.d.ts +2 -0
- package/dist/features/blocks/inputs/payment/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +9 -0
- package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/phone/index.d.ts +2 -0
- package/dist/features/blocks/inputs/phone/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts +11 -0
- package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts.map +1 -0
- package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts +11 -0
- package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts.map +1 -0
- package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts +10 -0
- package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +1 -0
- package/dist/features/blocks/inputs/rating/index.d.ts +2 -0
- package/dist/features/blocks/inputs/rating/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts +11 -0
- package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts +10 -0
- package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts.map +1 -0
- package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts +2 -0
- package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts.map +1 -0
- package/dist/features/blocks/inputs/textInput/index.d.ts +2 -0
- package/dist/features/blocks/inputs/textInput/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +10 -0
- package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/url/index.d.ts +2 -0
- package/dist/features/blocks/inputs/url/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/chatwoot/index.d.ts +2 -0
- package/dist/features/blocks/integrations/chatwoot/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts +5 -0
- package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts.map +1 -0
- package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts +2 -0
- package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/googleAnalytics/index.d.ts +2 -0
- package/dist/features/blocks/integrations/googleAnalytics/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts +3 -0
- package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map +1 -0
- package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts +2 -0
- package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts.map +1 -0
- package/dist/features/blocks/integrations/openai/streamChat.d.ts +17 -0
- package/dist/features/blocks/integrations/openai/streamChat.d.ts.map +1 -0
- package/dist/features/blocks/integrations/pixel/executePixel.d.ts +3 -0
- package/dist/features/blocks/integrations/pixel/executePixel.d.ts.map +1 -0
- package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts +3 -0
- package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts.map +1 -0
- package/dist/features/blocks/logic/redirect/index.d.ts +2 -0
- package/dist/features/blocks/logic/redirect/index.d.ts.map +1 -0
- package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts +5 -0
- package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts.map +1 -0
- package/dist/features/blocks/logic/redirect/utils/index.d.ts +2 -0
- package/dist/features/blocks/logic/redirect/utils/index.d.ts.map +1 -0
- package/dist/features/blocks/logic/script/executeScript.d.ts +9 -0
- package/dist/features/blocks/logic/script/executeScript.d.ts.map +1 -0
- package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts +6 -0
- package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts.map +1 -0
- package/dist/features/blocks/logic/wait/utils/executeWait.d.ts +6 -0
- package/dist/features/blocks/logic/wait/utils/executeWait.d.ts.map +1 -0
- package/dist/features/bubble/components/Bubble.d.ts +9 -0
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
- package/dist/features/bubble/components/BubbleButton.d.ts +9 -0
- package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
- package/dist/features/bubble/components/PreviewMessage.d.ts +9 -0
- package/dist/features/bubble/components/PreviewMessage.d.ts.map +1 -0
- package/dist/features/bubble/components/index.d.ts +2 -0
- package/dist/features/bubble/components/index.d.ts.map +1 -0
- package/dist/features/bubble/index.d.ts +2 -0
- package/dist/features/bubble/index.d.ts.map +1 -0
- package/dist/features/bubble/types.d.ts +35 -0
- package/dist/features/bubble/types.d.ts.map +1 -0
- package/dist/features/commands/index.d.ts +3 -0
- package/dist/features/commands/index.d.ts.map +1 -0
- package/dist/features/commands/types.d.ts +19 -0
- package/dist/features/commands/types.d.ts.map +1 -0
- package/dist/features/commands/utils/close.d.ts +2 -0
- package/dist/features/commands/utils/close.d.ts.map +1 -0
- package/dist/features/commands/utils/hidePreviewMessage.d.ts +2 -0
- package/dist/features/commands/utils/hidePreviewMessage.d.ts.map +1 -0
- package/dist/features/commands/utils/index.d.ts +9 -0
- package/dist/features/commands/utils/index.d.ts.map +1 -0
- package/dist/features/commands/utils/open.d.ts +2 -0
- package/dist/features/commands/utils/open.d.ts.map +1 -0
- package/dist/features/commands/utils/setInputValue.d.ts +2 -0
- package/dist/features/commands/utils/setInputValue.d.ts.map +1 -0
- package/dist/features/commands/utils/setPrefilledVariables.d.ts +2 -0
- package/dist/features/commands/utils/setPrefilledVariables.d.ts.map +1 -0
- package/dist/features/commands/utils/showPreviewMessage.d.ts +3 -0
- package/dist/features/commands/utils/showPreviewMessage.d.ts.map +1 -0
- package/dist/features/commands/utils/toggle.d.ts +2 -0
- package/dist/features/commands/utils/toggle.d.ts.map +1 -0
- package/dist/features/commands/utils/unmount.d.ts +2 -0
- package/dist/features/commands/utils/unmount.d.ts.map +1 -0
- package/dist/features/popup/components/Popup.d.ts +10 -0
- package/dist/features/popup/components/Popup.d.ts.map +1 -0
- package/dist/features/popup/components/index.d.ts +2 -0
- package/dist/features/popup/components/index.d.ts.map +1 -0
- package/dist/features/popup/index.d.ts +2 -0
- package/dist/features/popup/index.d.ts.map +1 -0
- package/dist/features/popup/types.d.ts +9 -0
- package/dist/features/popup/types.d.ts.map +1 -0
- package/dist/features/standard/components/Standard.d.ts +5 -0
- package/dist/features/standard/components/Standard.d.ts.map +1 -0
- package/dist/features/standard/components/index.d.ts +2 -0
- package/dist/features/standard/components/index.d.ts.map +1 -0
- package/dist/features/standard/index.d.ts +2 -0
- package/dist/features/standard/index.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/lib/gtag.d.ts +4 -0
- package/dist/lib/gtag.d.ts.map +1 -0
- package/dist/lib/gtm.d.ts +3 -0
- package/dist/lib/gtm.d.ts.map +1 -0
- package/dist/lib/pixel.d.ts +4 -0
- package/dist/lib/pixel.d.ts.map +1 -0
- package/dist/lib/stripe.d.ts +3 -0
- package/dist/lib/stripe.d.ts.map +1 -0
- package/dist/queries/continueChatQuery.d.ts +554 -0
- package/dist/queries/continueChatQuery.d.ts.map +1 -0
- package/dist/queries/saveClientLogsQuery.d.ts +7 -0
- package/dist/queries/saveClientLogsQuery.d.ts.map +1 -0
- package/dist/queries/startChatQuery.d.ts +723 -0
- package/dist/queries/startChatQuery.d.ts.map +1 -0
- package/dist/register.d.ts +2 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/types.d.ts +37 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/CorsError.d.ts +4 -0
- package/dist/utils/CorsError.d.ts.map +1 -0
- package/dist/utils/botContainerHeightSignal.d.ts +2 -0
- package/dist/utils/botContainerHeightSignal.d.ts.map +1 -0
- package/dist/utils/botContainerSignal.d.ts +2 -0
- package/dist/utils/botContainerSignal.d.ts.map +1 -0
- package/dist/utils/executeClientSideActions.d.ts +20 -0
- package/dist/utils/executeClientSideActions.d.ts.map +1 -0
- package/dist/utils/formattedMessagesSignal.d.ts +8 -0
- package/dist/utils/formattedMessagesSignal.d.ts.map +1 -0
- package/dist/utils/getAnswerContent.d.ts +3 -0
- package/dist/utils/getAnswerContent.d.ts.map +1 -0
- package/dist/utils/guessApiHost.d.ts +6 -0
- package/dist/utils/guessApiHost.d.ts.map +1 -0
- package/dist/utils/injectFont.d.ts +3 -0
- package/dist/utils/injectFont.d.ts.map +1 -0
- package/dist/utils/injectStartProps.d.ts +3 -0
- package/dist/utils/injectStartProps.d.ts.map +1 -0
- package/dist/utils/isMobileSignal.d.ts +2 -0
- package/dist/utils/isMobileSignal.d.ts.map +1 -0
- package/dist/utils/persist.d.ts +9 -0
- package/dist/utils/persist.d.ts.map +1 -0
- package/dist/utils/setCssVariablesValue.d.ts +3 -0
- package/dist/utils/setCssVariablesValue.d.ts.map +1 -0
- package/dist/utils/storage.d.ts +717 -0
- package/dist/utils/storage.d.ts.map +1 -0
- package/dist/utils/streamingMessageSignal.d.ts +8 -0
- package/dist/utils/streamingMessageSignal.d.ts.map +1 -0
- package/dist/utils/toaster.d.ts +2 -0
- package/dist/utils/toaster.d.ts.map +1 -0
- package/dist/web.d.ts +17 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +14 -0
- package/dist/window.d.ts +40 -0
- package/dist/window.d.ts.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputSubmitContent } from '@/types';
|
|
2
|
+
import { PictureChoiceBlock } from '@typebot.io/schemas/features/blocks/inputs/pictureChoice';
|
|
3
|
+
type Props = {
|
|
4
|
+
defaultItems: PictureChoiceBlock['items'];
|
|
5
|
+
options: PictureChoiceBlock['options'];
|
|
6
|
+
onSubmit: (value: InputSubmitContent) => void;
|
|
7
|
+
onTransitionEnd: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const SinglePictureChoice: (props: Props) => import("solid-js").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=SinglePictureChoice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SinglePictureChoice.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/inputs/pictureChoice/SinglePictureChoice.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAA;AAG7F,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACzC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAA;IACtC,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7C,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,mBAAmB,UAAW,KAAK,mCA0F/C,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputSubmitContent } from '@/types';
|
|
2
|
+
import type { RatingInputBlock } from '@typebot.io/schemas';
|
|
3
|
+
type Props = {
|
|
4
|
+
block: RatingInputBlock;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
onSubmit: (value: InputSubmitContent) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const RatingForm: (props: Props) => import("solid-js").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=RatingForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RatingForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/rating/components/RatingForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAM3D,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,gBAAgB,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,UAAU,UAAW,KAAK,mCAuEtC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/inputs/rating/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BotContext, InputSubmitContent } from '@/types';
|
|
2
|
+
import type { TextInputBlock } from '@typebot.io/schemas';
|
|
3
|
+
type Props = {
|
|
4
|
+
block: TextInputBlock;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
context: BotContext;
|
|
7
|
+
onSubmit: (value: InputSubmitContent) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const TextInput: (props: Props) => import("solid-js").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/textInput/components/TextInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAiBzD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,cAAc,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,UAAU,CAAA;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,SAAS,UAAW,KAAK,mCAiTrC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Theme } from '@typebot.io/schemas';
|
|
2
|
+
type Props = {
|
|
3
|
+
recordingStatus: 'asking' | 'started' | 'stopped';
|
|
4
|
+
buttonsTheme: NonNullable<Theme['chat']>['buttons'];
|
|
5
|
+
onAbortRecording: () => void;
|
|
6
|
+
onRecordingConfirmed: (stream: MediaStream) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const VoiceRecorder: (props: Props) => import("solid-js").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=VoiceRecorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceRecorder.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/textInput/components/VoiceRecorder.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAW3C,KAAK,KAAK,GAAG;IACX,eAAe,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAA;IACjD,YAAY,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,oBAAoB,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,eAAO,MAAM,aAAa,UAAW,KAAK,mCA4IzC,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const volumeProcessorCode = "\nconst gainFactor = 3;\n\nclass VolumeProcessor extends AudioWorkletProcessor {\n constructor() {\n super();\n }\n\n process(inputs) {\n const input = inputs[0];\n if (input.length > 0) {\n const channelData = input[0];\n let sum = 0;\n for (let i = 0; i < channelData.length; i++) {\n sum += channelData[i] * channelData[i];\n }\n const rms = Math.sqrt(sum / channelData.length);\n this.port.postMessage(rms * 100 * gainFactor)\n }\n return true;\n }\n}\n\nregisterProcessor(\"volume-processor\", VolumeProcessor);\n\n";
|
|
2
|
+
//# sourceMappingURL=VolumeProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VolumeProcessor.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/textInput/components/VolumeProcessor.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,qkBAyB/B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/inputs/textInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputSubmitContent } from '@/types';
|
|
2
|
+
import type { UrlInputBlock } from '@typebot.io/schemas';
|
|
3
|
+
type Props = {
|
|
4
|
+
block: UrlInputBlock;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
onSubmit: (value: InputSubmitContent) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const UrlInput: (props: Props) => import("solid-js").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=UrlInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UrlInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/url/components/UrlInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAIxD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,aAAa,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,QAAQ,UAAW,KAAK,mCA8DpC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/inputs/url/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/integrations/chatwoot/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeChatwoot.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/integrations/chatwoot/utils/executeChatwoot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D,eAAO,MAAM,eAAe,aAAc;IAAE,eAAe,EAAE,eAAe,CAAA;CAAE,SAE7E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/integrations/chatwoot/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/integrations/googleAnalytics/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeGoogleAnalytics.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,eAAO,MAAM,2BAA2B,YAAmB,oBAAoB,CAAC,SAAS,CAAC,kBAGzF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/integrations/googleAnalytics/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ClientSideActionContext } from '@/types';
|
|
2
|
+
export declare const streamChat: (context: ClientSideActionContext & {
|
|
3
|
+
retryAttempt?: number;
|
|
4
|
+
}) => ({ messages, onMessageStream, }: {
|
|
5
|
+
messages?: {
|
|
6
|
+
content?: string | undefined;
|
|
7
|
+
role?: 'system' | 'user' | 'assistant' | undefined;
|
|
8
|
+
}[];
|
|
9
|
+
onMessageStream?: (props: {
|
|
10
|
+
id: string;
|
|
11
|
+
message: string;
|
|
12
|
+
}) => void;
|
|
13
|
+
}) => Promise<{
|
|
14
|
+
message?: string;
|
|
15
|
+
error?: object;
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=streamChat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamChat.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/integrations/openai/streamChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAUjD,eAAO,MAAM,UAAU,YACX,uBAAuB,GAAG;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,sCAI1D;IACD,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAA;KACnD,EAAE,CAAA;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACnE,KAAG,QAAQ;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAwE/C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executePixel.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/integrations/pixel/executePixel.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,eAAO,MAAM,YAAY,YAAmB,UAAU,CAAC,SAAS,CAAC,kBAGhE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeWebhook.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/integrations/webhook/executeWebhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAE3D,eAAO,MAAM,cAAc,qBAA4B,qBAAqB,KAAG,QAAQ,MAAM,CAkB5F,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/logic/redirect/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeRedirect.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/logic/redirect/utils/executeRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,eAAO,MAAM,eAAe,uBAAuB,aAAa,CAAC,SAAS,CAAC,KACvE;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,GAC3B,SAOH,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/logic/redirect/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChatLog, ScriptToExecute } from '@typebot.io/schemas';
|
|
2
|
+
export declare const executeScript: ({ content, args, }: ScriptToExecute) => Promise<void | {
|
|
3
|
+
logs: ChatLog[];
|
|
4
|
+
}>;
|
|
5
|
+
export declare const executeCode: ({ args, content, }: {
|
|
6
|
+
content: string;
|
|
7
|
+
args: Record<string, unknown>;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
//# sourceMappingURL=executeScript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeScript.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/logic/script/executeScript.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAKnE,eAAO,MAAM,aAAa,uBAGvB,eAAe,KAAG,QAAQ,IAAI,GAAG;IAAE,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,CAetD,CAAA;AAOD,eAAO,MAAM,WAAW,uBAGrB;IACD,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9B,kBAOA,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChatLog, ScriptToExecute } from '@typebot.io/schemas';
|
|
2
|
+
export declare const executeSetVariable: ({ content, args, isCode, }: ScriptToExecute) => Promise<{
|
|
3
|
+
replyToSend: string | undefined;
|
|
4
|
+
logs?: ChatLog[];
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=executeSetVariable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeSetVariable.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/logic/setVariable/executeSetVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAOnE,eAAO,MAAM,kBAAkB,+BAI5B,eAAe,KAAG,QAAQ;IAC3B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;CACjB,CA8BA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeWait.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/logic/wait/utils/executeWait.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,WAAW,yBAAgC,KAAK,kBAE5D,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BubbleParams } from '../types';
|
|
2
|
+
import { BotProps } from '../../../components/Bot';
|
|
3
|
+
export type BubbleProps = BotProps & BubbleParams & {
|
|
4
|
+
onOpen?: () => void;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
onPreviewMessageClick?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const Bubble: (props: BubbleProps) => import("solid-js").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Bubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AASvD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,YAAY,GAAG;IACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;CACnC,CAAA;AAEH,eAAO,MAAM,MAAM,UAAW,WAAW,mCAoLxC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BubbleTheme, ButtonTheme } from '../types';
|
|
2
|
+
type Props = Pick<BubbleTheme, 'placement'> & ButtonTheme & {
|
|
3
|
+
isBotOpened: boolean;
|
|
4
|
+
toggleBot: () => void;
|
|
5
|
+
buttonSize: `${number}px`;
|
|
6
|
+
};
|
|
7
|
+
export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BubbleButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BubbleButton.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAInD,KAAK,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GACzC,WAAW,GAAG;IACZ,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,UAAU,EAAE,GAAG,MAAM,IAAI,CAAA;CAC1B,CAAA;AAQH,eAAO,MAAM,YAAY,UAAW,KAAK,mCAqHxC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BubbleTheme, ButtonTheme, PreviewMessageParams, PreviewMessageTheme } from '../types';
|
|
2
|
+
export type PreviewMessageProps = Pick<BubbleTheme, 'placement'> & Pick<PreviewMessageParams, 'avatarUrl' | 'message'> & {
|
|
3
|
+
buttonSize: ButtonTheme['size'];
|
|
4
|
+
previewMessageTheme?: PreviewMessageTheme;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
onCloseClick: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const PreviewMessage: (props: PreviewMessageProps) => import("solid-js").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=PreviewMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewMessage.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/PreviewMessage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAE9F,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAC9D,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG;IACpD,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/B,mBAAmB,CAAC,EAAE,mBAAmB,CAAA;IACzC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA;AAKH,eAAO,MAAM,cAAc,UAAW,mBAAmB,mCA2DxD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type BubbleParams = {
|
|
2
|
+
theme?: BubbleTheme;
|
|
3
|
+
previewMessage?: PreviewMessageParams;
|
|
4
|
+
autoShowDelay?: number;
|
|
5
|
+
};
|
|
6
|
+
export type BubbleTheme = {
|
|
7
|
+
chatWindow?: ChatWindowTheme;
|
|
8
|
+
button?: ButtonTheme;
|
|
9
|
+
previewMessage?: PreviewMessageTheme;
|
|
10
|
+
placement?: 'left' | 'right';
|
|
11
|
+
};
|
|
12
|
+
export type ChatWindowTheme = {
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
maxWidth?: string;
|
|
15
|
+
maxHeight?: string;
|
|
16
|
+
};
|
|
17
|
+
export type ButtonTheme = {
|
|
18
|
+
size?: 'medium' | 'large' | `${number}px`;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
iconColor?: string;
|
|
21
|
+
customIconSrc?: string;
|
|
22
|
+
customCloseIconSrc?: string;
|
|
23
|
+
};
|
|
24
|
+
export type PreviewMessageParams = {
|
|
25
|
+
avatarUrl?: string;
|
|
26
|
+
message: string;
|
|
27
|
+
autoShowDelay?: number;
|
|
28
|
+
};
|
|
29
|
+
export type PreviewMessageTheme = {
|
|
30
|
+
backgroundColor?: string;
|
|
31
|
+
textColor?: string;
|
|
32
|
+
closeButtonBackgroundColor?: string;
|
|
33
|
+
closeButtonIconColor?: string;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,cAAc,CAAC,EAAE,oBAAoB,CAAA;IACrC,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,cAAc,CAAC,EAAE,mBAAmB,CAAA;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,GAAG,MAAM,IAAI,CAAA;IACzC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0BAA0B,CAAC,EAAE,MAAM,CAAA;IACnC,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PreviewMessageParams } from '../bubble/types';
|
|
2
|
+
export type CommandData = {
|
|
3
|
+
isFromTypebot: boolean;
|
|
4
|
+
} & ({
|
|
5
|
+
command: 'open' | 'toggle' | 'close' | 'hidePreviewMessage' | 'unmount';
|
|
6
|
+
} | ShowMessageCommandData | SetPrefilledVariablesCommandData | SetInputValueCommandData);
|
|
7
|
+
export type ShowMessageCommandData = {
|
|
8
|
+
command: 'showPreviewMessage';
|
|
9
|
+
message?: Pick<PreviewMessageParams, 'avatarUrl' | 'message'>;
|
|
10
|
+
};
|
|
11
|
+
export type SetPrefilledVariablesCommandData = {
|
|
12
|
+
command: 'setPrefilledVariables';
|
|
13
|
+
variables: Record<string, string | number | boolean>;
|
|
14
|
+
};
|
|
15
|
+
export type SetInputValueCommandData = {
|
|
16
|
+
command: 'setInputValue';
|
|
17
|
+
value: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/commands/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtD,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,OAAO,CAAA;CACvB,GAAG,CACA;IACE,OAAO,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,oBAAoB,GAAG,SAAS,CAAA;CACxE,GACD,sBAAsB,GACtB,gCAAgC,GAChC,wBAAwB,CAC3B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,oBAAoB,CAAA;IAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,SAAS,CAAC,CAAA;CAC9D,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG;IAC7C,OAAO,EAAE,uBAAuB,CAAA;IAChC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;CACrD,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,eAAe,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close.d.ts","sourceRoot":"","sources":["../../../../src/features/commands/utils/close.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,YAMjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hidePreviewMessage.d.ts","sourceRoot":"","sources":["../../../../src/features/commands/utils/hidePreviewMessage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,YAM9B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './close';
|
|
2
|
+
export * from './hidePreviewMessage';
|
|
3
|
+
export * from './open';
|
|
4
|
+
export * from './setPrefilledVariables';
|
|
5
|
+
export * from './showPreviewMessage';
|
|
6
|
+
export * from './toggle';
|
|
7
|
+
export * from './setInputValue';
|
|
8
|
+
export * from './unmount';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/commands/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,sBAAsB,CAAA;AACpC,cAAc,QAAQ,CAAA;AACtB,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../../src/features/commands/utils/open.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,YAMhB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setInputValue.d.ts","sourceRoot":"","sources":["../../../../src/features/commands/utils/setInputValue.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,UAAW,MAAM,SAO1C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setPrefilledVariables.d.ts","sourceRoot":"","sources":["../../../../src/features/commands/utils/setPrefilledVariables.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,cAAe,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,SAOzF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showPreviewMessage.d.ts","sourceRoot":"","sources":["../../../../src/features/commands/utils/showPreviewMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAE9D,eAAO,MAAM,kBAAkB,sBAAuB,sBAAsB,CAAC,SAAS,CAAC,SAOtF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../src/features/commands/utils/toggle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,YAMlB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unmount.d.ts","sourceRoot":"","sources":["../../../../src/features/commands/utils/unmount.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,YAMnB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PopupParams } from '../types';
|
|
2
|
+
import { BotProps } from '../../../components/Bot';
|
|
3
|
+
export type PopupProps = BotProps & PopupParams & {
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
onOpen?: () => void;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const Popup: (props: PopupProps) => import("solid-js").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=Popup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/Popup.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AASvD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,WAAW,GAAG;IACZ,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAEH,eAAO,MAAM,KAAK,UAAW,UAAU,mCA+HtC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/popup/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/popup/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,eAAe,CAAC,EAAE,MAAM,CAAA;QACxB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Standard.d.ts","sourceRoot":"","sources":["../../../../src/features/standard/components/Standard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAchD,eAAO,MAAM,QAAQ,UAAW,QAAQ,eAAe;IAAE,OAAO,EAAE,WAAW,CAAA;CAAE,mCAoC9E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/standard/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/standard/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './features/commands';
|
|
2
|
+
export type { BotProps } from './components/Bot';
|
|
3
|
+
export type { PopupProps } from './features/popup/components/Popup';
|
|
4
|
+
export type { BubbleProps } from './features/bubble/components/Bubble';
|
|
5
|
+
export type * from './features/bubble/types';
|
|
6
|
+
export type * from './features/popup/types';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AAEnC,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AACtE,mBAAmB,yBAAyB,CAAA;AAC5C,mBAAmB,wBAAwB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// v0.3.12
|
|
2
|
+
const o=()=>{window.postMessage({isFromTypebot:!0,command:"close"})},s=()=>{window.postMessage({isFromTypebot:!0,command:"hidePreviewMessage"})},e=()=>{window.postMessage({isFromTypebot:!0,command:"open"})},m=o=>{const s={isFromTypebot:!0,command:"setPrefilledVariables",variables:o};window.postMessage(s)},t=o=>{const s={isFromTypebot:!0,command:"showPreviewMessage",message:o};window.postMessage(s)},a=()=>{window.postMessage({isFromTypebot:!0,command:"toggle"})},n=o=>{const s={isFromTypebot:!0,command:"setInputValue",value:o};window.postMessage(s)},i=()=>{window.postMessage({isFromTypebot:!0,command:"unmount"})};export{o as close,s as hidePreviewMessage,e as open,n as setInputValue,m as setPrefilledVariables,t as showPreviewMessage,a as toggle,i as unmount};
|