@urbiport/js 0.0.11 → 0.0.12

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.
Files changed (180) hide show
  1. package/README.md +39 -39
  2. package/dist/components/Bot.d.ts +3 -3
  3. package/dist/components/Bot.d.ts.map +1 -1
  4. package/dist/components/Button.d.ts +0 -1
  5. package/dist/components/Button.d.ts.map +1 -1
  6. package/dist/components/ConversationContainer/ChatChunk.d.ts +2 -1
  7. package/dist/components/ConversationContainer/ChatChunk.d.ts.map +1 -1
  8. package/dist/components/ConversationContainer/ChatChunkFooter.d.ts +20 -0
  9. package/dist/components/ConversationContainer/ChatChunkFooter.d.ts.map +1 -0
  10. package/dist/components/ConversationContainer/ConversationContainer.d.ts +3 -2
  11. package/dist/components/ConversationContainer/ConversationContainer.d.ts.map +1 -1
  12. package/dist/components/ConversationContainer/ConversationContainerBody.d.ts +10 -0
  13. package/dist/components/ConversationContainer/ConversationContainerBody.d.ts.map +1 -0
  14. package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts +18 -0
  15. package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts.map +1 -0
  16. package/dist/components/ConversationContainer/InputAnswerContext.d.ts +13 -0
  17. package/dist/components/ConversationContainer/InputAnswerContext.d.ts.map +1 -0
  18. package/dist/components/ConversationContainer/LoadingChunk.d.ts +1 -1
  19. package/dist/components/ConversationContainer/LoadingChunk.d.ts.map +1 -1
  20. package/dist/components/ConversationContainer/PopupBlockedToast.d.ts.map +1 -1
  21. package/dist/components/ConversationContainer/helpers.d.ts +6 -0
  22. package/dist/components/ConversationContainer/helpers.d.ts.map +1 -0
  23. package/dist/components/FooterEndConversation.d.ts +2 -0
  24. package/dist/components/FooterEndConversation.d.ts.map +1 -0
  25. package/dist/components/FooterLiteBadge.d.ts +6 -0
  26. package/dist/components/FooterLiteBadge.d.ts.map +1 -0
  27. package/dist/components/InputAnswerContext.d.ts +41 -0
  28. package/dist/components/InputAnswerContext.d.ts.map +1 -0
  29. package/dist/components/InputChatBlock.d.ts +1 -1
  30. package/dist/components/InputChatBlock.d.ts.map +1 -1
  31. package/dist/components/InputChatBlockFooter copy.d.ts +17 -0
  32. package/dist/components/InputChatBlockFooter copy.d.ts.map +1 -0
  33. package/dist/components/InputChatBlockFooter.d.ts +17 -0
  34. package/dist/components/InputChatBlockFooter.d.ts.map +1 -0
  35. package/dist/components/InputChatBlockFooterShow.d.ts +13 -0
  36. package/dist/components/InputChatBlockFooterShow.d.ts.map +1 -0
  37. package/dist/components/InputFormLayout.d.ts +17 -0
  38. package/dist/components/InputFormLayout.d.ts.map +1 -0
  39. package/dist/components/SendButton.d.ts +0 -1
  40. package/dist/components/SendButton.d.ts.map +1 -1
  41. package/dist/components/Submit.d.ts +9 -0
  42. package/dist/components/Submit.d.ts.map +1 -0
  43. package/dist/components/SubmitButton.d.ts +9 -0
  44. package/dist/components/SubmitButton.d.ts.map +1 -0
  45. package/dist/components/avatars/AvatarPlaceholder.d.ts +7 -0
  46. package/dist/components/avatars/AvatarPlaceholder.d.ts.map +1 -0
  47. package/dist/components/bubbles/HostBubble.d.ts +1 -1
  48. package/dist/components/bubbles/HostBubble.d.ts.map +1 -1
  49. package/dist/components/icons/LogoIcon.d.ts +2 -0
  50. package/dist/components/icons/LogoIcon.d.ts.map +1 -0
  51. package/dist/components/icons/MicrophoneIcon.d.ts.map +1 -1
  52. package/dist/components/icons/SendIcon.d.ts.map +1 -1
  53. package/dist/components/index.d.ts +1 -1
  54. package/dist/components/index.d.ts.map +1 -1
  55. package/dist/components/inputs/Textarea.d.ts +2 -1
  56. package/dist/components/inputs/Textarea.d.ts.map +1 -1
  57. package/dist/constants/conversation.d.ts +4 -0
  58. package/dist/constants/conversation.d.ts.map +1 -0
  59. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts +1 -1
  60. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +1 -1
  61. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts +1 -2
  62. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts.map +1 -1
  63. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts +1 -2
  64. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +1 -1
  65. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts +1 -3
  66. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +1 -1
  67. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts +1 -2
  68. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +1 -1
  69. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts +1 -2
  70. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +1 -1
  71. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +2 -1
  72. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -1
  73. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts +2 -1
  74. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts.map +1 -1
  75. package/dist/features/blocks/inputs/date/components/DateForm.d.ts +1 -1
  76. package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +1 -1
  77. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +1 -1
  78. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +1 -1
  79. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts +1 -1
  80. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -1
  81. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts +1 -1
  82. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +1 -1
  83. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts +1 -1
  84. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts.map +1 -1
  85. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts +1 -1
  86. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts.map +1 -1
  87. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts +2 -2
  88. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts.map +1 -1
  89. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +1 -1
  90. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +1 -1
  91. package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts +1 -1
  92. package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts.map +1 -1
  93. package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts +1 -1
  94. package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts.map +1 -1
  95. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts +1 -1
  96. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +1 -1
  97. package/dist/features/blocks/inputs/textInput/components/TextInput copy.d.ts +11 -0
  98. package/dist/features/blocks/inputs/textInput/components/TextInput copy.d.ts.map +1 -0
  99. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts +2 -2
  100. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts.map +1 -1
  101. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts +1 -1
  102. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts.map +1 -1
  103. package/dist/features/blocks/inputs/textInput/index.d.ts +1 -1
  104. package/dist/features/blocks/inputs/textInput/index.d.ts.map +1 -1
  105. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +1 -1
  106. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +1 -1
  107. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts +1 -1
  108. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts.map +1 -1
  109. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts +1 -1
  110. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map +1 -1
  111. package/dist/features/blocks/integrations/pixel/executePixel.d.ts +1 -1
  112. package/dist/features/blocks/integrations/pixel/executePixel.d.ts.map +1 -1
  113. package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts +1 -1
  114. package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts.map +1 -1
  115. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts +1 -1
  116. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts.map +1 -1
  117. package/dist/features/blocks/logic/script/executeScript.d.ts +1 -1
  118. package/dist/features/blocks/logic/script/executeScript.d.ts.map +1 -1
  119. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts +1 -1
  120. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts.map +1 -1
  121. package/dist/features/blocks/logic/variable/executeVariable.d.ts +6 -0
  122. package/dist/features/blocks/logic/variable/executeVariable.d.ts.map +1 -0
  123. package/dist/features/bubble/components/Bubble.d.ts +1 -0
  124. package/dist/features/bubble/components/Bubble.d.ts.map +1 -1
  125. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -1
  126. package/dist/features/commands/types.d.ts +1 -1
  127. package/dist/features/commands/types.d.ts.map +1 -1
  128. package/dist/features/popup/components/Popup.d.ts +1 -0
  129. package/dist/features/popup/components/Popup.d.ts.map +1 -1
  130. package/dist/features/standard/components/Standard.d.ts +1 -0
  131. package/dist/features/standard/components/Standard.d.ts.map +1 -1
  132. package/dist/features/streaming/streamChat.d.ts +17 -0
  133. package/dist/features/streaming/streamChat.d.ts.map +1 -0
  134. package/dist/hooks/useMessageListener.d.ts +11 -0
  135. package/dist/hooks/useMessageListener.d.ts.map +1 -0
  136. package/dist/index.js +1 -1
  137. package/dist/lib/gtag.d.ts +1 -1
  138. package/dist/lib/gtag.d.ts.map +1 -1
  139. package/dist/lib/gtm.d.ts +0 -1
  140. package/dist/lib/gtm.d.ts.map +1 -1
  141. package/dist/lib/pixel.d.ts +1 -1
  142. package/dist/lib/pixel.d.ts.map +1 -1
  143. package/dist/queries/continueChatQuery.d.ts +39 -128
  144. package/dist/queries/continueChatQuery.d.ts.map +1 -1
  145. package/dist/queries/saveClientLogsQuery.d.ts +1 -1
  146. package/dist/queries/saveClientLogsQuery.d.ts.map +1 -1
  147. package/dist/queries/startChatQuery.d.ts +54 -142
  148. package/dist/queries/startChatQuery.d.ts.map +1 -1
  149. package/dist/types.d.ts +6 -3
  150. package/dist/types.d.ts.map +1 -1
  151. package/dist/utils/botContainerSignal.d.ts +1 -1
  152. package/dist/utils/botContainerSignal.d.ts.map +1 -1
  153. package/dist/utils/executeClientSideActions.d.ts +1 -1
  154. package/dist/utils/executeClientSideActions.d.ts.map +1 -1
  155. package/dist/utils/guessApiHost.d.ts.map +1 -1
  156. package/dist/utils/injectFont.d.ts +1 -1
  157. package/dist/utils/injectFont.d.ts.map +1 -1
  158. package/dist/utils/injectStartProps.d.ts +1 -1
  159. package/dist/utils/injectStartProps.d.ts.map +1 -1
  160. package/dist/utils/setCssVariablesValue.d.ts +1 -1
  161. package/dist/utils/setCssVariablesValue.d.ts.map +1 -1
  162. package/dist/utils/storage.d.ts +58 -147
  163. package/dist/utils/storage.d.ts.map +1 -1
  164. package/dist/web.d.ts +1 -16
  165. package/dist/web.d.ts.map +1 -1
  166. package/dist/web.js +7 -6
  167. package/dist/window.d.ts +6 -6
  168. package/dist/window.d.ts.map +1 -1
  169. package/package.json +20 -20
  170. package/tsconfig.build.json +23 -0
  171. package/.turbo/turbo-build.log +0 -11
  172. package/LICENSE +0 -669
  173. package/dist/components/icons/CameraIcon.d.ts +0 -3
  174. package/dist/components/icons/CameraIcon.d.ts.map +0 -1
  175. package/dist/components/icons/PlusIcon.d.ts +0 -3
  176. package/dist/components/icons/PlusIcon.d.ts.map +0 -1
  177. package/dist/features/blocks/integrations/googleAnalytics/index.d.ts +0 -2
  178. package/dist/features/blocks/integrations/googleAnalytics/index.d.ts.map +0 -1
  179. package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts +0 -2
  180. package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts.map +0 -1
@@ -1,11 +1,11 @@
1
- import { StartChatResponse } from '@typebot.io/schemas/features/chat/schema';
2
- export declare const getExistingResultIdFromStorage: (typebotId?: string) => string | undefined;
3
- export declare const setResultInStorage: (storageType?: 'local' | 'session') => (typebotId: string, resultId: string) => void;
4
- export declare const getInitialChatReplyFromStorage: (typebotId: string | undefined) => {
1
+ import { StartChatResponse } 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
5
  messages: ({
6
6
  id: string;
7
7
  } & ({
8
- type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.TEXT;
8
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.TEXT;
9
9
  content: {
10
10
  type: "richText";
11
11
  richText?: any;
@@ -14,7 +14,7 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
14
14
  markdown: string;
15
15
  };
16
16
  } | {
17
- type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.IMAGE;
17
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.IMAGE;
18
18
  content: {
19
19
  url?: string | undefined;
20
20
  clickLink?: {
@@ -23,11 +23,11 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
23
23
  } | undefined;
24
24
  };
25
25
  } | {
26
- type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO;
26
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO;
27
27
  content: {
28
28
  url?: string | undefined;
29
29
  id?: string | undefined;
30
- type?: import("@typebot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
30
+ type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
31
31
  height?: number | `{{${string}}}` | undefined;
32
32
  aspectRatio?: string | undefined;
33
33
  maxWidth?: string | undefined;
@@ -36,13 +36,13 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
36
36
  isAutoplayEnabled?: boolean | undefined;
37
37
  };
38
38
  } | {
39
- type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.AUDIO;
39
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.AUDIO;
40
40
  content: {
41
41
  url?: string | undefined;
42
42
  isAutoplayEnabled?: boolean | undefined;
43
43
  };
44
44
  } | {
45
- type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED;
45
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED;
46
46
  content: {
47
47
  url?: string | undefined;
48
48
  waitForEvent?: {
@@ -66,7 +66,7 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
66
66
  } | undefined;
67
67
  };
68
68
  }))[];
69
- typebot: {
69
+ bot: {
70
70
  id: string;
71
71
  settings: {
72
72
  general?: {
@@ -77,7 +77,7 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
77
77
  isNewResultOnRefreshEnabled?: boolean | undefined;
78
78
  rememberUser?: {
79
79
  isEnabled?: boolean | undefined;
80
- storage?: "session" | "local" | undefined;
80
+ storage?: string | undefined;
81
81
  } | undefined;
82
82
  } | undefined;
83
83
  typingEmulation?: {
@@ -98,14 +98,15 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
98
98
  whatsApp?: {
99
99
  isEnabled?: boolean | undefined;
100
100
  startCondition?: {
101
- logicalOperator: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator;
101
+ logicalOperator: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator;
102
102
  comparisons: {
103
103
  id: string;
104
- comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
104
+ comparisonOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
105
105
  value?: string | undefined;
106
106
  }[];
107
107
  } | undefined;
108
108
  sessionExpiryTimeout?: number | undefined;
109
+ flowIds?: Record<string, string> | undefined;
109
110
  } | undefined;
110
111
  publicShare?: {
111
112
  isEnabled?: boolean | undefined;
@@ -126,16 +127,16 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
126
127
  url?: string | undefined;
127
128
  } | undefined;
128
129
  background?: {
129
- type?: import("@typebot.io/schemas/features/typebot/theme/constants").BackgroundType | undefined;
130
+ type?: import("@quickbot.io/schemas/features/bot/theme/constants").BackgroundType | undefined;
130
131
  content?: string | undefined;
131
132
  } | undefined;
132
133
  progressBar?: {
133
134
  isEnabled?: boolean | undefined;
134
135
  color?: string | undefined;
135
136
  backgroundColor?: string | undefined;
136
- placement?: "Top" | "Bottom" | undefined;
137
+ placement?: string | undefined;
137
138
  thickness?: number | undefined;
138
- position?: "fixed" | "absolute" | undefined;
139
+ position?: string | undefined;
139
140
  } | undefined;
140
141
  } | undefined;
141
142
  chat?: {
@@ -150,7 +151,7 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
150
151
  border?: {
151
152
  thickness?: number | undefined;
152
153
  color?: string | undefined;
153
- roundeness?: "medium" | "large" | "none" | "custom" | undefined;
154
+ roundeness?: string | undefined;
154
155
  customRoundeness?: number | undefined;
155
156
  opacity?: number | undefined;
156
157
  } | undefined;
@@ -172,7 +173,7 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
172
173
  border?: {
173
174
  thickness?: number | undefined;
174
175
  color?: string | undefined;
175
- roundeness?: "medium" | "large" | "none" | "custom" | undefined;
176
+ roundeness?: string | undefined;
176
177
  customRoundeness?: number | undefined;
177
178
  opacity?: number | undefined;
178
179
  } | undefined;
@@ -186,7 +187,7 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
186
187
  border?: {
187
188
  thickness?: number | undefined;
188
189
  color?: string | undefined;
189
- roundeness?: "medium" | "large" | "none" | "custom" | undefined;
190
+ roundeness?: string | undefined;
190
191
  customRoundeness?: number | undefined;
191
192
  opacity?: number | undefined;
192
193
  } | undefined;
@@ -200,7 +201,7 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
200
201
  border?: {
201
202
  thickness?: number | undefined;
202
203
  color?: string | undefined;
203
- roundeness?: "medium" | "large" | "none" | "custom" | undefined;
204
+ roundeness?: string | undefined;
204
205
  customRoundeness?: number | undefined;
205
206
  opacity?: number | undefined;
206
207
  } | undefined;
@@ -214,7 +215,7 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
214
215
  border?: {
215
216
  thickness?: number | undefined;
216
217
  color?: string | undefined;
217
- roundeness?: "medium" | "large" | "none" | "custom" | undefined;
218
+ roundeness?: string | undefined;
218
219
  customRoundeness?: number | undefined;
219
220
  opacity?: number | undefined;
220
221
  } | undefined;
@@ -230,50 +231,23 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
230
231
  resultId?: string | undefined;
231
232
  lastMessageNewFormat?: string | undefined;
232
233
  input?: (({
234
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
233
235
  id: string;
234
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
235
- items: {
236
- id: string;
237
- outgoingEdgeId?: string | undefined;
238
- blockId?: string | undefined;
239
- content?: string | undefined;
240
- displayCondition?: {
241
- isEnabled?: boolean | undefined;
242
- condition?: {
243
- logicalOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
244
- comparisons?: {
245
- id: string;
246
- variableId?: string | undefined;
247
- comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
248
- value?: string | undefined;
249
- }[] | undefined;
250
- } | undefined;
251
- } | undefined;
252
- }[];
253
- outgoingEdgeId?: string | undefined;
254
- options?: {
255
- variableId?: string | undefined;
256
- isMultipleChoice?: boolean | undefined;
257
- buttonLabel?: string | undefined;
258
- dynamicVariableId?: string | undefined;
259
- isSearchable?: boolean | undefined;
260
- searchInputPlaceholder?: string | undefined;
261
- } | undefined;
262
- } | {
263
- id: string;
264
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
265
236
  items: {
266
237
  id: string;
238
+ content: string;
267
239
  outgoingEdgeId?: string | undefined;
268
- content?: string | undefined;
240
+ pictureSrc?: string | undefined;
241
+ description?: string | undefined;
242
+ value?: string | undefined;
269
243
  displayCondition?: {
270
244
  isEnabled?: boolean | undefined;
271
245
  condition?: {
272
- logicalOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
246
+ logicalOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
273
247
  comparisons?: {
274
248
  id: string;
275
249
  variableId?: string | undefined;
276
- comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
250
+ comparisonOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
277
251
  value?: string | undefined;
278
252
  }[] | undefined;
279
253
  } | undefined;
@@ -287,10 +261,16 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
287
261
  dynamicVariableId?: string | undefined;
288
262
  isSearchable?: boolean | undefined;
289
263
  searchInputPlaceholder?: string | undefined;
264
+ otherOption?: boolean | undefined;
265
+ whatsappFlowHeader?: string | undefined;
266
+ whatsappFlowBody?: string | undefined;
267
+ whatsappFlowButtonText?: string | undefined;
268
+ whatsappFlowQuestionLabel?: string | undefined;
269
+ retryMessageContent?: string | undefined;
290
270
  } | undefined;
291
271
  } | {
272
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
292
273
  id: string;
293
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
294
274
  outgoingEdgeId?: string | undefined;
295
275
  options?: {
296
276
  variableId?: string | undefined;
@@ -304,10 +284,11 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
304
284
  format?: string | undefined;
305
285
  min?: string | undefined;
306
286
  max?: string | undefined;
287
+ retryMessageContent?: string | undefined;
307
288
  } | undefined;
308
289
  } | {
290
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
309
291
  id: string;
310
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
311
292
  outgoingEdgeId?: string | undefined;
312
293
  options?: {
313
294
  variableId?: string | undefined;
@@ -325,14 +306,16 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
325
306
  } | undefined;
326
307
  sizeLimit?: number | undefined;
327
308
  visibility?: "Auto" | "Public" | "Private" | undefined;
309
+ retryMessageContent?: string | undefined;
328
310
  } | undefined;
329
311
  } | {
312
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
330
313
  id: string;
331
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
332
314
  outgoingEdgeId?: string | undefined;
333
315
  options?: {
334
316
  visibility?: "Auto" | "Public" | "Private" | undefined;
335
317
  variableId?: string | undefined;
318
+ retryMessageContent?: string | undefined;
336
319
  labels?: {
337
320
  placeholder?: string | undefined;
338
321
  button?: string | undefined;
@@ -347,8 +330,8 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
347
330
  isMultipleAllowed?: boolean | undefined;
348
331
  } | undefined;
349
332
  } | {
333
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
350
334
  id: string;
351
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
352
335
  outgoingEdgeId?: string | undefined;
353
336
  options?: {
354
337
  variableId?: string | undefined;
@@ -369,8 +352,8 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
369
352
  } | undefined;
370
353
  } | undefined;
371
354
  } | {
355
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
372
356
  id: string;
373
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
374
357
  outgoingEdgeId?: string | undefined;
375
358
  options?: {
376
359
  variableId?: string | undefined;
@@ -381,8 +364,8 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
381
364
  retryMessageContent?: string | undefined;
382
365
  } | undefined;
383
366
  } | {
367
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
384
368
  id: string;
385
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
386
369
  outgoingEdgeId?: string | undefined;
387
370
  options?: {
388
371
  variableId?: string | undefined;
@@ -393,14 +376,15 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
393
376
  min?: number | `{{${string}}}` | undefined;
394
377
  max?: number | `{{${string}}}` | undefined;
395
378
  step?: number | `{{${string}}}` | undefined;
379
+ retryMessageContent?: string | undefined;
396
380
  } | undefined;
397
381
  } | {
382
+ type: import("@quickbot.io/schemas/features/blocks/integrations/constants").IntegrationBlockType.PAYMENT;
398
383
  id: string;
399
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.PAYMENT;
400
384
  outgoingEdgeId?: string | undefined;
401
385
  options?: {
402
386
  variableId?: string | undefined;
403
- provider?: import("@typebot.io/schemas/features/blocks/inputs/payment/constants").PaymentProvider.STRIPE | undefined;
387
+ provider?: import("@quickbot.io/schemas/features/blocks/inputs/payment/constants").PaymentProvider.STRIPE | undefined;
404
388
  labels?: {
405
389
  button?: string | undefined;
406
390
  success?: string | undefined;
@@ -425,8 +409,8 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
425
409
  retryMessageContent?: string | undefined;
426
410
  } | undefined;
427
411
  } | {
412
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
428
413
  id: string;
429
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
430
414
  outgoingEdgeId?: string | undefined;
431
415
  options?: {
432
416
  variableId?: string | undefined;
@@ -438,8 +422,8 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
438
422
  defaultCountryCode?: string | undefined;
439
423
  } | undefined;
440
424
  } | {
425
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
441
426
  id: string;
442
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
443
427
  outgoingEdgeId?: string | undefined;
444
428
  options?: {
445
429
  variableId?: string | undefined;
@@ -456,10 +440,11 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
456
440
  svg?: string | undefined;
457
441
  } | undefined;
458
442
  isOneClickSubmitEnabled?: boolean | undefined;
443
+ whatsappMessage?: string | undefined;
459
444
  } | undefined;
460
445
  } | {
446
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
461
447
  id: string;
462
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
463
448
  outgoingEdgeId?: string | undefined;
464
449
  options?: {
465
450
  variableId?: string | undefined;
@@ -469,79 +454,6 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
469
454
  } | undefined;
470
455
  retryMessageContent?: string | undefined;
471
456
  } | undefined;
472
- } | {
473
- id: string;
474
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.PICTURE_CHOICE;
475
- items: {
476
- id: string;
477
- outgoingEdgeId?: string | undefined;
478
- blockId?: string | undefined;
479
- pictureSrc?: string | undefined;
480
- title?: string | undefined;
481
- description?: string | undefined;
482
- displayCondition?: {
483
- isEnabled?: boolean | undefined;
484
- condition?: {
485
- logicalOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
486
- comparisons?: {
487
- id: string;
488
- variableId?: string | undefined;
489
- comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
490
- value?: string | undefined;
491
- }[] | undefined;
492
- } | undefined;
493
- } | undefined;
494
- }[];
495
- outgoingEdgeId?: string | undefined;
496
- options?: {
497
- variableId?: string | undefined;
498
- isMultipleChoice?: boolean | undefined;
499
- isSearchable?: boolean | undefined;
500
- buttonLabel?: string | undefined;
501
- searchInputPlaceholder?: string | undefined;
502
- dynamicItems?: {
503
- isEnabled?: boolean | undefined;
504
- titlesVariableId?: string | undefined;
505
- descriptionsVariableId?: string | undefined;
506
- pictureSrcsVariableId?: string | undefined;
507
- } | undefined;
508
- } | undefined;
509
- } | {
510
- id: string;
511
- type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.PICTURE_CHOICE;
512
- items: {
513
- id: string;
514
- outgoingEdgeId?: string | undefined;
515
- pictureSrc?: string | undefined;
516
- title?: string | undefined;
517
- description?: string | undefined;
518
- displayCondition?: {
519
- isEnabled?: boolean | undefined;
520
- condition?: {
521
- logicalOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
522
- comparisons?: {
523
- id: string;
524
- variableId?: string | undefined;
525
- comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
526
- value?: string | undefined;
527
- }[] | undefined;
528
- } | undefined;
529
- } | undefined;
530
- }[];
531
- outgoingEdgeId?: string | undefined;
532
- options?: {
533
- variableId?: string | undefined;
534
- isMultipleChoice?: boolean | undefined;
535
- isSearchable?: boolean | undefined;
536
- buttonLabel?: string | undefined;
537
- searchInputPlaceholder?: string | undefined;
538
- dynamicItems?: {
539
- isEnabled?: boolean | undefined;
540
- titlesVariableId?: string | undefined;
541
- descriptionsVariableId?: string | undefined;
542
- pictureSrcsVariableId?: string | undefined;
543
- } | undefined;
544
- } | undefined;
545
457
  }) & {
546
458
  prefilledValue?: string | undefined;
547
459
  runtimeOptions?: {
@@ -621,8 +533,8 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
621
533
  type: "streamOpenAiChatCompletion";
622
534
  streamOpenAiChatCompletion: {
623
535
  messages: {
624
- content?: string | undefined;
625
- role?: "user" | "system" | "assistant" | undefined;
536
+ content: string;
537
+ role: "user" | "system" | "assistant";
626
538
  }[];
627
539
  };
628
540
  lastBubbleBlockId?: string | undefined;
@@ -633,7 +545,7 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
633
545
  url: string;
634
546
  headers?: Record<string, string> | undefined;
635
547
  body?: unknown;
636
- method?: import("@typebot.io/schemas/features/blocks/integrations/webhook/constants").HttpMethod | undefined;
548
+ method?: import("@quickbot.io/schemas/features/blocks/integrations/webhook/constants").HttpMethod | undefined;
637
549
  };
638
550
  lastBubbleBlockId?: string | undefined;
639
551
  expectsDedicatedReply?: boolean | undefined;
@@ -705,13 +617,12 @@ export declare const getInitialChatReplyFromStorage: (typebotId: string | undefi
705
617
  } | undefined;
706
618
  progress?: number | undefined;
707
619
  } | undefined;
708
- export declare const setInitialChatReplyInStorage: (initialChatReply: StartChatResponse, { typebotId, storage, }: {
709
- typebotId: string;
620
+ export declare const setInitialChatReplyInStorage: (initialChatReply: StartChatResponse, { botId, storage, }: {
621
+ botId: string;
710
622
  storage?: 'local' | 'session';
711
623
  }) => void;
712
624
  export declare const setBotOpenedStateInStorage: () => void;
713
625
  export declare const removeBotOpenedStateInStorage: () => void;
714
626
  export declare const getBotOpenedStateFromStorage: () => boolean;
715
- export declare const parseRememberUserStorage: (storage: 'local' | 'session' | undefined) => typeof localStorage | typeof sessionStorage;
716
- export declare const wipeExistingChatStateInStorage: (typebotId: string) => void;
627
+ export declare const wipeExistingChatStateInStorage: (botId: string) => void;
717
628
  //# sourceMappingURL=storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAWvE,CAAA;AACD,eAAO,MAAM,4BAA4B,qBACrB,iBAAiB,uBAIhC;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,UAAW,MAAM,SAiC3D,CAAA"}
package/dist/web.d.ts CHANGED
@@ -1,17 +1,2 @@
1
- declare const typebot: {
2
- initStandard: (props: import(".").BotProps & {
3
- id?: string | undefined;
4
- }) => void;
5
- initPopup: (props: import(".").PopupProps) => void;
6
- initBubble: (props: import(".").BubbleProps) => void;
7
- close: () => void;
8
- hidePreviewMessage: () => void;
9
- open: () => void;
10
- setPrefilledVariables: (variables: Record<string, string | number | boolean>) => void;
11
- showPreviewMessage: (proactiveMessage?: Pick<import(".").PreviewMessageParams, "avatarUrl" | "message"> | undefined) => void;
12
- toggle: () => void;
13
- setInputValue: (value: string) => void;
14
- unmount: () => void;
15
- };
16
- export default typebot;
1
+ export {};
17
2
  //# sourceMappingURL=web.d.ts.map
package/dist/web.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;CAAiB,CAAA;AAI9B,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":""}