@urbiport/js 0.0.19-alpha.8 → 1.0.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/dist/api/createConversation.d.ts +10 -0
  2. package/dist/api/createConversation.d.ts.map +1 -0
  3. package/dist/api/createConversationPreview.d.ts +11 -0
  4. package/dist/api/createConversationPreview.d.ts.map +1 -0
  5. package/dist/api/saveClientLogs.d.ts +6 -0
  6. package/dist/api/saveClientLogs.d.ts.map +1 -0
  7. package/dist/api/sendMessage.d.ts +10 -0
  8. package/dist/api/sendMessage.d.ts.map +1 -0
  9. package/dist/api/utils/detectDevice.d.ts +2 -0
  10. package/dist/api/utils/detectDevice.d.ts.map +1 -0
  11. package/dist/api/utils/handlePaymentInProgress.d.ts +3 -0
  12. package/dist/api/utils/handlePaymentInProgress.d.ts.map +1 -0
  13. package/dist/components/Bot.d.ts +30 -0
  14. package/dist/components/Bot.d.ts.map +1 -0
  15. package/dist/components/Button.d.ts +9 -0
  16. package/dist/components/Button.d.ts.map +1 -0
  17. package/dist/components/ButtonSubmit.d.ts +9 -0
  18. package/dist/components/ButtonSubmit.d.ts.map +1 -0
  19. package/dist/components/ChatInputFooter.d.ts +5 -0
  20. package/dist/components/ChatInputFooter.d.ts.map +1 -0
  21. package/dist/components/ConversationContainer/ConversationContainer.d.ts +22 -0
  22. package/dist/components/ConversationContainer/ConversationContainer.d.ts.map +1 -0
  23. package/dist/components/ConversationContainer/ConversationContainerBody.d.ts +14 -0
  24. package/dist/components/ConversationContainer/ConversationContainerBody.d.ts.map +1 -0
  25. package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts +17 -0
  26. package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts.map +1 -0
  27. package/dist/components/ConversationContainer/ConversationMessageChunk.d.ts +17 -0
  28. package/dist/components/ConversationContainer/ConversationMessageChunk.d.ts.map +1 -0
  29. package/dist/components/ConversationContainer/ConversationPopupBlockedToast.d.ts +7 -0
  30. package/dist/components/ConversationContainer/ConversationPopupBlockedToast.d.ts.map +1 -0
  31. package/dist/components/ConversationContainer/ConversationProgressBar.d.ts +6 -0
  32. package/dist/components/ConversationContainer/ConversationProgressBar.d.ts.map +1 -0
  33. package/dist/components/ConversationContainer/HostAvatar.d.ts +8 -0
  34. package/dist/components/ConversationContainer/HostAvatar.d.ts.map +1 -0
  35. package/dist/components/ConversationContainer/InputAnswer.d.ts +7 -0
  36. package/dist/components/ConversationContainer/InputAnswer.d.ts.map +1 -0
  37. package/dist/components/ConversationContainer/helpers.d.ts +6 -0
  38. package/dist/components/ConversationContainer/helpers.d.ts.map +1 -0
  39. package/dist/components/ConversationContainer/index.d.ts +2 -0
  40. package/dist/components/ConversationContainer/index.d.ts.map +1 -0
  41. package/dist/components/ConversationContext.d.ts +42 -0
  42. package/dist/components/ConversationContext.d.ts.map +1 -0
  43. package/dist/components/ErrorMessage.d.ts +6 -0
  44. package/dist/components/ErrorMessage.d.ts.map +1 -0
  45. package/dist/components/FooterEndConversation.d.ts +2 -0
  46. package/dist/components/FooterEndConversation.d.ts.map +1 -0
  47. package/dist/components/FooterLiteBadge.d.ts +6 -0
  48. package/dist/components/FooterLiteBadge.d.ts.map +1 -0
  49. package/dist/components/FormLayout.d.ts +18 -0
  50. package/dist/components/FormLayout.d.ts.map +1 -0
  51. package/dist/components/InputAnswerContext.d.ts +46 -0
  52. package/dist/components/InputAnswerContext.d.ts.map +1 -0
  53. package/dist/components/InputBlockDispatcher.d.ts +5 -0
  54. package/dist/components/InputBlockDispatcher.d.ts.map +1 -0
  55. package/dist/components/InputErrorMessage.d.ts +8 -0
  56. package/dist/components/InputErrorMessage.d.ts.map +1 -0
  57. package/dist/components/InputFormLayout.d.ts +15 -0
  58. package/dist/components/InputFormLayout.d.ts.map +1 -0
  59. package/dist/components/Modal.d.ts +9 -0
  60. package/dist/components/Modal.d.ts.map +1 -0
  61. package/dist/components/Spinner.d.ts +3 -0
  62. package/dist/components/Spinner.d.ts.map +1 -0
  63. package/dist/components/TextInputAddFileButton.d.ts +7 -0
  64. package/dist/components/TextInputAddFileButton.d.ts.map +1 -0
  65. package/dist/components/TypingBubble.d.ts +2 -0
  66. package/dist/components/TypingBubble.d.ts.map +1 -0
  67. package/dist/components/avatars/Avatar.d.ts +4 -0
  68. package/dist/components/avatars/Avatar.d.ts.map +1 -0
  69. package/dist/components/avatars/AvatarPlaceholder.d.ts +7 -0
  70. package/dist/components/avatars/AvatarPlaceholder.d.ts.map +1 -0
  71. package/dist/components/bubbles/GuestBubble.d.ts +10 -0
  72. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
  73. package/dist/components/bubbles/HostBubble.d.ts +12 -0
  74. package/dist/components/bubbles/HostBubble.d.ts.map +1 -0
  75. package/dist/components/bubbles/HostBubbleStreaming.d.ts +8 -0
  76. package/dist/components/bubbles/HostBubbleStreaming.d.ts.map +1 -0
  77. package/dist/components/icons/CheckIcon.d.ts +3 -0
  78. package/dist/components/icons/CheckIcon.d.ts.map +1 -0
  79. package/dist/components/icons/ChevronDownIcon.d.ts +3 -0
  80. package/dist/components/icons/ChevronDownIcon.d.ts.map +1 -0
  81. package/dist/components/icons/CloseIcon.d.ts +3 -0
  82. package/dist/components/icons/CloseIcon.d.ts.map +1 -0
  83. package/dist/components/icons/FileIcon.d.ts +3 -0
  84. package/dist/components/icons/FileIcon.d.ts.map +1 -0
  85. package/dist/components/icons/FileIconUpload.d.ts +3 -0
  86. package/dist/components/icons/FileIconUpload.d.ts.map +1 -0
  87. package/dist/components/icons/LogoIcon.d.ts +2 -0
  88. package/dist/components/icons/LogoIcon.d.ts.map +1 -0
  89. package/dist/components/icons/MicrophoneIcon.d.ts +3 -0
  90. package/dist/components/icons/MicrophoneIcon.d.ts.map +1 -0
  91. package/dist/components/icons/PaperClipIcon.d.ts +3 -0
  92. package/dist/components/icons/PaperClipIcon.d.ts.map +1 -0
  93. package/dist/components/icons/PictureIcon.d.ts +3 -0
  94. package/dist/components/icons/PictureIcon.d.ts.map +1 -0
  95. package/dist/components/icons/SendIcon.d.ts +3 -0
  96. package/dist/components/icons/SendIcon.d.ts.map +1 -0
  97. package/dist/components/icons/index.d.ts +2 -0
  98. package/dist/components/icons/index.d.ts.map +1 -0
  99. package/dist/components/inputs/FileAttached.d.ts +6 -0
  100. package/dist/components/inputs/FileAttached.d.ts.map +1 -0
  101. package/dist/components/inputs/Input.d.ts +8 -0
  102. package/dist/components/inputs/Input.d.ts.map +1 -0
  103. package/dist/components/inputs/Textarea.d.ts +9 -0
  104. package/dist/components/inputs/Textarea.d.ts.map +1 -0
  105. package/dist/components/primitives/Dialog.d.ts +35 -0
  106. package/dist/components/primitives/Dialog.d.ts.map +1 -0
  107. package/dist/components/primitives/Environment.d.ts +8 -0
  108. package/dist/components/primitives/Environment.d.ts.map +1 -0
  109. package/dist/components/primitives/Menu.d.ts +35 -0
  110. package/dist/components/primitives/Menu.d.ts.map +1 -0
  111. package/dist/components/primitives/Progress.d.ts +25 -0
  112. package/dist/components/primitives/Progress.d.ts.map +1 -0
  113. package/dist/components/primitives/Toast.d.ts +52 -0
  114. package/dist/components/primitives/Toast.d.ts.map +1 -0
  115. package/dist/components/primitives/index.d.ts +6 -0
  116. package/dist/components/primitives/index.d.ts.map +1 -0
  117. package/dist/constants.d.ts +7 -0
  118. package/dist/constants.d.ts.map +1 -0
  119. package/dist/context/ConversationContext.d.ts +42 -0
  120. package/dist/context/ConversationContext.d.ts.map +1 -0
  121. package/dist/features/blocks/bubbles/GuestBubble.d.ts +10 -0
  122. package/dist/features/blocks/bubbles/GuestBubble.d.ts.map +1 -0
  123. package/dist/features/blocks/bubbles/HostBubble.d.ts +12 -0
  124. package/dist/features/blocks/bubbles/HostBubble.d.ts.map +1 -0
  125. package/dist/features/blocks/bubbles/HostBubbleStreaming.d.ts +8 -0
  126. package/dist/features/blocks/bubbles/HostBubbleStreaming.d.ts.map +1 -0
  127. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts +8 -0
  128. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +1 -0
  129. package/dist/features/blocks/bubbles/audio/components/index.d.ts +2 -0
  130. package/dist/features/blocks/bubbles/audio/components/index.d.ts.map +1 -0
  131. package/dist/features/blocks/bubbles/audio/index.d.ts +2 -0
  132. package/dist/features/blocks/bubbles/audio/index.d.ts.map +1 -0
  133. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts +10 -0
  134. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +1 -0
  135. package/dist/features/blocks/bubbles/embed/components/index.d.ts +2 -0
  136. package/dist/features/blocks/bubbles/embed/components/index.d.ts.map +1 -0
  137. package/dist/features/blocks/bubbles/embed/index.d.ts +2 -0
  138. package/dist/features/blocks/bubbles/embed/index.d.ts.map +1 -0
  139. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts +8 -0
  140. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +1 -0
  141. package/dist/features/blocks/bubbles/image/index.d.ts +2 -0
  142. package/dist/features/blocks/bubbles/image/index.d.ts.map +1 -0
  143. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts +10 -0
  144. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +1 -0
  145. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts +9 -0
  146. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts.map +1 -0
  147. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts +8 -0
  148. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts.map +1 -0
  149. package/dist/features/blocks/bubbles/textBubble/index.d.ts +2 -0
  150. package/dist/features/blocks/bubbles/textBubble/index.d.ts.map +1 -0
  151. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts +8 -0
  152. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +1 -0
  153. package/dist/features/blocks/bubbles/video/index.d.ts +2 -0
  154. package/dist/features/blocks/bubbles/video/index.d.ts.map +1 -0
  155. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +13 -0
  156. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -0
  157. package/dist/features/blocks/inputs/buttons/components/ButtonsSearch.d.ts +9 -0
  158. package/dist/features/blocks/inputs/buttons/components/ButtonsSearch.d.ts.map +1 -0
  159. package/dist/features/blocks/inputs/buttons/index.d.ts +2 -0
  160. package/dist/features/blocks/inputs/buttons/index.d.ts.map +1 -0
  161. package/dist/features/blocks/inputs/date/components/DateForm.d.ts +10 -0
  162. package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +1 -0
  163. package/dist/features/blocks/inputs/date/index.d.ts +2 -0
  164. package/dist/features/blocks/inputs/date/index.d.ts.map +1 -0
  165. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +12 -0
  166. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +1 -0
  167. package/dist/features/blocks/inputs/email/index.d.ts +2 -0
  168. package/dist/features/blocks/inputs/email/index.d.ts.map +1 -0
  169. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts +8 -0
  170. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts.map +1 -0
  171. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts +11 -0
  172. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -0
  173. package/dist/features/blocks/inputs/fileUpload/index.d.ts +2 -0
  174. package/dist/features/blocks/inputs/fileUpload/index.d.ts.map +1 -0
  175. package/dist/features/blocks/inputs/fileUpload/utils/sanitizeSelectedFiles.d.ts +12 -0
  176. package/dist/features/blocks/inputs/fileUpload/utils/sanitizeSelectedFiles.d.ts.map +1 -0
  177. package/dist/features/blocks/inputs/fileUpload/utils/uploadFiles.d.ts +20 -0
  178. package/dist/features/blocks/inputs/fileUpload/utils/uploadFiles.d.ts.map +1 -0
  179. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts +12 -0
  180. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +1 -0
  181. package/dist/features/blocks/inputs/number/index.d.ts +2 -0
  182. package/dist/features/blocks/inputs/number/index.d.ts.map +1 -0
  183. package/dist/features/blocks/inputs/number/utils/numberInputHelper.d.ts +2 -0
  184. package/dist/features/blocks/inputs/number/utils/numberInputHelper.d.ts.map +1 -0
  185. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts +11 -0
  186. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts.map +1 -0
  187. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts +11 -0
  188. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts.map +1 -0
  189. package/dist/features/blocks/inputs/payment/components/index.d.ts +2 -0
  190. package/dist/features/blocks/inputs/payment/components/index.d.ts.map +1 -0
  191. package/dist/features/blocks/inputs/payment/index.d.ts +2 -0
  192. package/dist/features/blocks/inputs/payment/index.d.ts.map +1 -0
  193. package/dist/features/blocks/inputs/payment/utils/paymentInProgressStorage.d.ts +5 -0
  194. package/dist/features/blocks/inputs/payment/utils/paymentInProgressStorage.d.ts.map +1 -0
  195. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +11 -0
  196. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +1 -0
  197. package/dist/features/blocks/inputs/phone/index.d.ts +2 -0
  198. package/dist/features/blocks/inputs/phone/index.d.ts.map +1 -0
  199. package/dist/features/blocks/inputs/phone/utils/phoneCountries.d.ts +1247 -0
  200. package/dist/features/blocks/inputs/phone/utils/phoneCountries.d.ts.map +1 -0
  201. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts +10 -0
  202. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +1 -0
  203. package/dist/features/blocks/inputs/rating/index.d.ts +2 -0
  204. package/dist/features/blocks/inputs/rating/index.d.ts.map +1 -0
  205. package/dist/features/blocks/inputs/text/components/TextInput.d.ts +13 -0
  206. package/dist/features/blocks/inputs/text/components/TextInput.d.ts.map +1 -0
  207. package/dist/features/blocks/inputs/text/components/VoiceRecorder.d.ts +10 -0
  208. package/dist/features/blocks/inputs/text/components/VoiceRecorder.d.ts.map +1 -0
  209. package/dist/features/blocks/inputs/text/components/VolumeProcessor.d.ts +2 -0
  210. package/dist/features/blocks/inputs/text/components/VolumeProcessor.d.ts.map +1 -0
  211. package/dist/features/blocks/inputs/text/index.d.ts +2 -0
  212. package/dist/features/blocks/inputs/text/index.d.ts.map +1 -0
  213. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +12 -0
  214. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +1 -0
  215. package/dist/features/blocks/inputs/url/index.d.ts +2 -0
  216. package/dist/features/blocks/inputs/url/index.d.ts.map +1 -0
  217. package/dist/features/blocks/integrations/pixel/executePixel.d.ts +3 -0
  218. package/dist/features/blocks/integrations/pixel/executePixel.d.ts.map +1 -0
  219. package/dist/features/blocks/logic/redirect/index.d.ts +2 -0
  220. package/dist/features/blocks/logic/redirect/index.d.ts.map +1 -0
  221. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts +5 -0
  222. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts.map +1 -0
  223. package/dist/features/blocks/logic/redirect/utils/index.d.ts +2 -0
  224. package/dist/features/blocks/logic/redirect/utils/index.d.ts.map +1 -0
  225. package/dist/features/blocks/logic/script/executeScript.d.ts +9 -0
  226. package/dist/features/blocks/logic/script/executeScript.d.ts.map +1 -0
  227. package/dist/features/blocks/logic/variable/executeVariable.d.ts +6 -0
  228. package/dist/features/blocks/logic/variable/executeVariable.d.ts.map +1 -0
  229. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts +6 -0
  230. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts.map +1 -0
  231. package/dist/features/bubble/components/Bubble.d.ts +10 -0
  232. package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
  233. package/dist/features/bubble/components/BubbleButton.d.ts +9 -0
  234. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
  235. package/dist/features/bubble/components/BubbleMessage.d.ts +9 -0
  236. package/dist/features/bubble/components/BubbleMessage.d.ts.map +1 -0
  237. package/dist/features/bubble/components/index.d.ts +2 -0
  238. package/dist/features/bubble/components/index.d.ts.map +1 -0
  239. package/dist/features/bubble/index.d.ts +2 -0
  240. package/dist/features/bubble/index.d.ts.map +1 -0
  241. package/dist/features/bubble/types.d.ts +35 -0
  242. package/dist/features/bubble/types.d.ts.map +1 -0
  243. package/dist/features/commands/index.d.ts +3 -0
  244. package/dist/features/commands/index.d.ts.map +1 -0
  245. package/dist/features/commands/types.d.ts +19 -0
  246. package/dist/features/commands/types.d.ts.map +1 -0
  247. package/dist/features/commands/utils/close.d.ts +2 -0
  248. package/dist/features/commands/utils/close.d.ts.map +1 -0
  249. package/dist/features/commands/utils/hidePreviewMessage.d.ts +2 -0
  250. package/dist/features/commands/utils/hidePreviewMessage.d.ts.map +1 -0
  251. package/dist/features/commands/utils/index.d.ts +9 -0
  252. package/dist/features/commands/utils/index.d.ts.map +1 -0
  253. package/dist/features/commands/utils/open.d.ts +2 -0
  254. package/dist/features/commands/utils/open.d.ts.map +1 -0
  255. package/dist/features/commands/utils/setInputValue.d.ts +2 -0
  256. package/dist/features/commands/utils/setInputValue.d.ts.map +1 -0
  257. package/dist/features/commands/utils/setPrefilledVariables.d.ts +2 -0
  258. package/dist/features/commands/utils/setPrefilledVariables.d.ts.map +1 -0
  259. package/dist/features/commands/utils/showPreviewMessage.d.ts +3 -0
  260. package/dist/features/commands/utils/showPreviewMessage.d.ts.map +1 -0
  261. package/dist/features/commands/utils/toggle.d.ts +2 -0
  262. package/dist/features/commands/utils/toggle.d.ts.map +1 -0
  263. package/dist/features/commands/utils/unmount.d.ts +2 -0
  264. package/dist/features/commands/utils/unmount.d.ts.map +1 -0
  265. package/dist/features/popup/components/Popup.d.ts +11 -0
  266. package/dist/features/popup/components/Popup.d.ts.map +1 -0
  267. package/dist/features/popup/components/index.d.ts +2 -0
  268. package/dist/features/popup/components/index.d.ts.map +1 -0
  269. package/dist/features/popup/index.d.ts +2 -0
  270. package/dist/features/popup/index.d.ts.map +1 -0
  271. package/dist/features/popup/types.d.ts +9 -0
  272. package/dist/features/popup/types.d.ts.map +1 -0
  273. package/dist/features/standard/components/Standard.d.ts +6 -0
  274. package/dist/features/standard/components/Standard.d.ts.map +1 -0
  275. package/dist/features/standard/components/index.d.ts +2 -0
  276. package/dist/features/standard/components/index.d.ts.map +1 -0
  277. package/dist/features/standard/index.d.ts +2 -0
  278. package/dist/features/standard/index.d.ts.map +1 -0
  279. package/dist/features/streaming/streamChat.d.ts +17 -0
  280. package/dist/features/streaming/streamChat.d.ts.map +1 -0
  281. package/dist/features/widget/components/Bubble.d.ts +10 -0
  282. package/dist/features/widget/components/Bubble.d.ts.map +1 -0
  283. package/dist/features/widget/components/BubbleButton.d.ts +9 -0
  284. package/dist/features/widget/components/BubbleButton.d.ts.map +1 -0
  285. package/dist/features/widget/components/BubbleMessage.d.ts +9 -0
  286. package/dist/features/widget/components/BubbleMessage.d.ts.map +1 -0
  287. package/dist/features/widget/components/index.d.ts +2 -0
  288. package/dist/features/widget/components/index.d.ts.map +1 -0
  289. package/dist/features/widget/index.d.ts +2 -0
  290. package/dist/features/widget/index.d.ts.map +1 -0
  291. package/dist/features/widget/types.d.ts +35 -0
  292. package/dist/features/widget/types.d.ts.map +1 -0
  293. package/dist/hooks/useMessageListener.d.ts +11 -0
  294. package/dist/hooks/useMessageListener.d.ts.map +1 -0
  295. package/dist/index.d.ts +7 -125
  296. package/dist/index.d.ts.map +1 -0
  297. package/dist/index.js +2 -127
  298. package/dist/lib/gtm.d.ts +2 -0
  299. package/dist/lib/gtm.d.ts.map +1 -0
  300. package/dist/lib/pixel.d.ts +4 -0
  301. package/dist/lib/pixel.d.ts.map +1 -0
  302. package/dist/lib/stripe.d.ts +3 -0
  303. package/dist/lib/stripe.d.ts.map +1 -0
  304. package/dist/queries/continueChatQuery.d.ts +403 -0
  305. package/dist/queries/continueChatQuery.d.ts.map +1 -0
  306. package/dist/queries/saveClientLogsQuery.d.ts +6 -0
  307. package/dist/queries/saveClientLogsQuery.d.ts.map +1 -0
  308. package/dist/queries/startChatQuery.d.ts +583 -0
  309. package/dist/queries/startChatQuery.d.ts.map +1 -0
  310. package/dist/register.d.ts +2 -0
  311. package/dist/register.d.ts.map +1 -0
  312. package/dist/types.d.ts +51 -0
  313. package/dist/types.d.ts.map +1 -0
  314. package/dist/utils/CorsError.d.ts +4 -0
  315. package/dist/utils/CorsError.d.ts.map +1 -0
  316. package/dist/utils/botContainerHeightSignal.d.ts +2 -0
  317. package/dist/utils/botContainerHeightSignal.d.ts.map +1 -0
  318. package/dist/utils/botContainerSignal.d.ts +2 -0
  319. package/dist/utils/botContainerSignal.d.ts.map +1 -0
  320. package/dist/utils/executeClientSideActions.d.ts +20 -0
  321. package/dist/utils/executeClientSideActions.d.ts.map +1 -0
  322. package/dist/utils/formattedMessagesSignal.d.ts +8 -0
  323. package/dist/utils/formattedMessagesSignal.d.ts.map +1 -0
  324. package/dist/utils/getAnswerContent.d.ts +3 -0
  325. package/dist/utils/getAnswerContent.d.ts.map +1 -0
  326. package/dist/utils/getApiUrl.d.ts +2 -0
  327. package/dist/utils/getApiUrl.d.ts.map +1 -0
  328. package/dist/utils/injectFont.d.ts +3 -0
  329. package/dist/utils/injectFont.d.ts.map +1 -0
  330. package/dist/utils/injectStartProps.d.ts +3 -0
  331. package/dist/utils/injectStartProps.d.ts.map +1 -0
  332. package/dist/utils/isMobileSignal.d.ts +2 -0
  333. package/dist/utils/isMobileSignal.d.ts.map +1 -0
  334. package/dist/utils/markdown.d.ts +3 -0
  335. package/dist/utils/markdown.d.ts.map +1 -0
  336. package/dist/utils/persist.d.ts +9 -0
  337. package/dist/utils/persist.d.ts.map +1 -0
  338. package/dist/utils/setCssVariablesValue.d.ts +3 -0
  339. package/dist/utils/setCssVariablesValue.d.ts.map +1 -0
  340. package/dist/utils/storage.d.ts +535 -0
  341. package/dist/utils/storage.d.ts.map +1 -0
  342. package/dist/utils/streamingMessageSignal.d.ts +8 -0
  343. package/dist/utils/streamingMessageSignal.d.ts.map +1 -0
  344. package/dist/utils/toaster.d.ts +21 -0
  345. package/dist/utils/toaster.d.ts.map +1 -0
  346. package/dist/web.d.ts +2 -0
  347. package/dist/web.d.ts.map +1 -0
  348. package/dist/web.js +3 -264
  349. package/dist/window.d.ts +40 -0
  350. package/dist/window.d.ts.map +1 -0
  351. package/package.json +30 -27
  352. package/dist/web.css +0 -1
@@ -0,0 +1,2 @@
1
+ export declare const gtmBodyElement: (googleTagManagerId: string) => "" | HTMLElement;
2
+ //# sourceMappingURL=gtm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gtm.d.ts","sourceRoot":"","sources":["../../src/lib/gtm.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,GAAI,oBAAoB,MAAM,qBAYxD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { PixelBlock } from '@quickbot.io/schemas';
2
+ export declare const initPixel: (pixelIds: string[]) => void;
3
+ export declare const trackPixelEvent: (options: PixelBlock['options']) => void;
4
+ //# sourceMappingURL=pixel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pixel.d.ts","sourceRoot":"","sources":["../../src/lib/pixel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAMjD,eAAO,MAAM,SAAS,aAAc,MAAM,EAAE,SAa3C,CAAA;AAED,eAAO,MAAM,eAAe,YAAa,UAAU,CAAC,SAAS,CAAC,SAiB7D,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Stripe } from '@stripe/stripe-js';
2
+ export declare const loadStripe: (publishableKey: string) => Promise<Stripe>;
3
+ //# sourceMappingURL=stripe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe.d.ts","sourceRoot":"","sources":["../../src/lib/stripe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1C,eAAO,MAAM,UAAU,GAAI,gBAAgB,MAAM,KAAG,OAAO,CAAC,MAAM,CAU9D,CAAA"}
@@ -0,0 +1,403 @@
1
+ import { Message } from '@quickbot.io/schemas';
2
+ export declare const continueChatQuery: ({ message, sessionId, messageMetadata, }: {
3
+ message?: Message;
4
+ sessionId: string;
5
+ messageMetadata?: {
6
+ inputBlockId?: string;
7
+ inputType?: string;
8
+ };
9
+ }) => Promise<{
10
+ data: {
11
+ messages: ({
12
+ id: string;
13
+ } & ({
14
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.TEXT;
15
+ content: {
16
+ type: "richText";
17
+ richText?: any;
18
+ } | {
19
+ type: "markdown";
20
+ markdown: string;
21
+ };
22
+ } | {
23
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.IMAGE;
24
+ content: {
25
+ url?: string | undefined;
26
+ clickLink?: {
27
+ url?: string | undefined;
28
+ alt?: string | undefined;
29
+ } | undefined;
30
+ };
31
+ } | {
32
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO;
33
+ content: {
34
+ height?: number | `{{${string}}}` | undefined;
35
+ type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
36
+ id?: string | undefined;
37
+ url?: string | undefined;
38
+ isAutoplayEnabled?: boolean | undefined;
39
+ aspectRatio?: string | undefined;
40
+ maxWidth?: string | undefined;
41
+ queryParamsStr?: string | undefined;
42
+ areControlsDisplayed?: boolean | undefined;
43
+ };
44
+ } | {
45
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.AUDIO;
46
+ content: {
47
+ url?: string | undefined;
48
+ isAutoplayEnabled?: boolean | undefined;
49
+ };
50
+ } | {
51
+ type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED;
52
+ content: {
53
+ height?: number | undefined;
54
+ url?: string | undefined;
55
+ waitForEvent?: {
56
+ name?: string | undefined;
57
+ isEnabled?: boolean | undefined;
58
+ saveDataInVariableId?: string | undefined;
59
+ } | undefined;
60
+ initFunction?: {
61
+ content: string;
62
+ args: Record<string, any>;
63
+ } | undefined;
64
+ waitForEventFunction?: {
65
+ content: string;
66
+ args: Record<string, any>;
67
+ } | undefined;
68
+ };
69
+ }))[];
70
+ input?: (({
71
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
72
+ id: string;
73
+ items: {
74
+ id: string;
75
+ content: string;
76
+ value?: string | undefined;
77
+ outgoingEdgeId?: string | undefined;
78
+ pictureSrc?: string | undefined;
79
+ description?: string | undefined;
80
+ displayCondition?: {
81
+ isEnabled?: boolean | undefined;
82
+ condition?: {
83
+ logicalOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
84
+ comparisons?: {
85
+ id: string;
86
+ value?: string | undefined;
87
+ variableId?: string | undefined;
88
+ comparisonOperator?: import("@quickbot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
89
+ }[] | undefined;
90
+ } | undefined;
91
+ } | undefined;
92
+ }[];
93
+ options?: {
94
+ variableId?: string | undefined;
95
+ isMultipleChoice?: boolean | undefined;
96
+ buttonLabel?: string | undefined;
97
+ dynamicVariableId?: string | undefined;
98
+ isSearchable?: boolean | undefined;
99
+ searchInputPlaceholder?: string | undefined;
100
+ otherOption?: boolean | undefined;
101
+ whatsappFlowHeader?: string | undefined;
102
+ whatsappFlowBody?: string | undefined;
103
+ whatsappFlowButtonText?: string | undefined;
104
+ whatsappFlowQuestionLabel?: string | undefined;
105
+ retryMessageContent?: string | undefined;
106
+ } | undefined;
107
+ outgoingEdgeId?: string | undefined;
108
+ } | {
109
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
110
+ id: string;
111
+ options?: {
112
+ variableId?: string | undefined;
113
+ retryMessageContent?: string | undefined;
114
+ labels?: {
115
+ button?: string | undefined;
116
+ from?: string | undefined;
117
+ to?: string | undefined;
118
+ } | undefined;
119
+ hasTime?: boolean | undefined;
120
+ isRange?: boolean | undefined;
121
+ format?: string | undefined;
122
+ min?: string | undefined;
123
+ max?: string | undefined;
124
+ } | undefined;
125
+ outgoingEdgeId?: string | undefined;
126
+ } | {
127
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
128
+ id: string;
129
+ options?: {
130
+ visibility?: "Auto" | "Public" | "Private" | undefined;
131
+ variableId?: string | undefined;
132
+ retryMessageContent?: string | undefined;
133
+ labels?: {
134
+ button?: string | undefined;
135
+ placeholder?: string | undefined;
136
+ clear?: string | undefined;
137
+ skip?: string | undefined;
138
+ success?: {
139
+ single?: string | undefined;
140
+ multiple?: string | undefined;
141
+ } | undefined;
142
+ } | undefined;
143
+ isRequired?: boolean | undefined;
144
+ isMultipleAllowed?: boolean | undefined;
145
+ } | undefined;
146
+ outgoingEdgeId?: string | undefined;
147
+ } | {
148
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
149
+ id: string;
150
+ options?: {
151
+ variableId?: string | undefined;
152
+ labels?: {
153
+ button?: string | undefined;
154
+ placeholder?: string | undefined;
155
+ } | undefined;
156
+ audioClip?: {
157
+ visibility?: "Auto" | "Public" | "Private" | undefined;
158
+ isEnabled?: boolean | undefined;
159
+ saveVariableId?: string | undefined;
160
+ } | undefined;
161
+ attachments?: {
162
+ visibility?: "Auto" | "Public" | "Private" | undefined;
163
+ isEnabled?: boolean | undefined;
164
+ saveVariableId?: string | undefined;
165
+ } | undefined;
166
+ } | undefined;
167
+ outgoingEdgeId?: string | undefined;
168
+ } | {
169
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
170
+ id: string;
171
+ options?: {
172
+ variableId?: string | undefined;
173
+ retryMessageContent?: string | undefined;
174
+ labels?: {
175
+ button?: string | undefined;
176
+ placeholder?: string | undefined;
177
+ } | undefined;
178
+ } | undefined;
179
+ outgoingEdgeId?: string | undefined;
180
+ } | {
181
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
182
+ id: string;
183
+ options?: {
184
+ variableId?: string | undefined;
185
+ retryMessageContent?: string | undefined;
186
+ labels?: {
187
+ button?: string | undefined;
188
+ placeholder?: string | undefined;
189
+ } | undefined;
190
+ min?: number | `{{${string}}}` | undefined;
191
+ max?: number | `{{${string}}}` | undefined;
192
+ step?: number | `{{${string}}}` | undefined;
193
+ } | undefined;
194
+ outgoingEdgeId?: string | undefined;
195
+ } | {
196
+ type: import("@quickbot.io/schemas/features/blocks/integrations/constants").IntegrationBlockType.PAYMENT;
197
+ id: string;
198
+ options?: {
199
+ variableId?: string | undefined;
200
+ retryMessageContent?: string | undefined;
201
+ labels?: {
202
+ button?: string | undefined;
203
+ success?: string | undefined;
204
+ } | undefined;
205
+ provider?: import("@quickbot.io/schemas/features/blocks/inputs/payment/constants").PaymentProvider | undefined;
206
+ additionalInformation?: {
207
+ address?: {
208
+ country?: string | undefined;
209
+ line1?: string | undefined;
210
+ line2?: string | undefined;
211
+ state?: string | undefined;
212
+ city?: string | undefined;
213
+ postalCode?: string | undefined;
214
+ } | undefined;
215
+ name?: string | undefined;
216
+ description?: string | undefined;
217
+ email?: string | undefined;
218
+ phoneNumber?: string | undefined;
219
+ } | undefined;
220
+ credentialsId?: string | undefined;
221
+ currency?: string | undefined;
222
+ amount?: string | undefined;
223
+ } | undefined;
224
+ outgoingEdgeId?: string | undefined;
225
+ } | {
226
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
227
+ id: string;
228
+ options?: {
229
+ variableId?: string | undefined;
230
+ retryMessageContent?: string | undefined;
231
+ labels?: {
232
+ button?: string | undefined;
233
+ placeholder?: string | undefined;
234
+ } | undefined;
235
+ defaultCountryCode?: string | undefined;
236
+ } | undefined;
237
+ outgoingEdgeId?: string | undefined;
238
+ } | {
239
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
240
+ id: string;
241
+ options?: {
242
+ length?: number | undefined;
243
+ variableId?: string | undefined;
244
+ labels?: {
245
+ button?: string | undefined;
246
+ left?: string | undefined;
247
+ right?: string | undefined;
248
+ } | undefined;
249
+ buttonType?: "Icons" | "Numbers" | undefined;
250
+ startsAt?: number | `{{${string}}}` | undefined;
251
+ customIcon?: {
252
+ isEnabled?: boolean | undefined;
253
+ svg?: string | undefined;
254
+ } | undefined;
255
+ isOneClickSubmitEnabled?: boolean | undefined;
256
+ whatsappMessage?: string | undefined;
257
+ } | undefined;
258
+ outgoingEdgeId?: string | undefined;
259
+ } | {
260
+ type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
261
+ id: string;
262
+ options?: {
263
+ variableId?: string | undefined;
264
+ retryMessageContent?: string | undefined;
265
+ labels?: {
266
+ button?: string | undefined;
267
+ placeholder?: string | undefined;
268
+ } | undefined;
269
+ } | undefined;
270
+ outgoingEdgeId?: string | undefined;
271
+ }) & {
272
+ prefilledValue?: string | undefined;
273
+ runtimeOptions?: {
274
+ paymentIntentSecret: string;
275
+ amountLabel: string;
276
+ publicKey: string;
277
+ } | undefined;
278
+ }) | undefined;
279
+ progress?: number | undefined;
280
+ logs?: {
281
+ status: string;
282
+ description: string;
283
+ details?: unknown;
284
+ }[] | undefined;
285
+ dynamicTheme?: {
286
+ hostAvatarUrl?: string | undefined;
287
+ guestAvatarUrl?: string | undefined;
288
+ } | undefined;
289
+ lastMessageNewFormat?: string | undefined;
290
+ clientSideActions?: ({
291
+ type: "scriptToExecute";
292
+ scriptToExecute: {
293
+ content: string;
294
+ args: {
295
+ id: string;
296
+ value?: string | number | boolean | (string | null)[] | null | undefined;
297
+ }[];
298
+ isCode?: boolean | undefined;
299
+ };
300
+ lastBubbleBlockId?: string | undefined;
301
+ expectsDedicatedReply?: boolean | undefined;
302
+ } | {
303
+ type: "redirect";
304
+ redirect: {
305
+ url?: string | undefined;
306
+ isNewTab?: boolean | undefined;
307
+ };
308
+ lastBubbleBlockId?: string | undefined;
309
+ expectsDedicatedReply?: boolean | undefined;
310
+ } | {
311
+ type: "wait";
312
+ wait: {
313
+ secondsToWaitFor: number;
314
+ };
315
+ lastBubbleBlockId?: string | undefined;
316
+ expectsDedicatedReply?: boolean | undefined;
317
+ } | {
318
+ type: "setVariable";
319
+ setVariable: {
320
+ scriptToExecute: {
321
+ content: string;
322
+ args: {
323
+ id: string;
324
+ value?: string | number | boolean | (string | null)[] | null | undefined;
325
+ }[];
326
+ isCode?: boolean | undefined;
327
+ };
328
+ };
329
+ lastBubbleBlockId?: string | undefined;
330
+ expectsDedicatedReply?: boolean | undefined;
331
+ } | {
332
+ type: "streamOpenAiChatCompletion";
333
+ streamOpenAiChatCompletion: {
334
+ messages: {
335
+ content: string;
336
+ role: "system" | "user" | "assistant";
337
+ }[];
338
+ };
339
+ lastBubbleBlockId?: string | undefined;
340
+ expectsDedicatedReply?: boolean | undefined;
341
+ } | {
342
+ type: "startPropsToInject";
343
+ startPropsToInject: {
344
+ customHeadCode?: string | undefined;
345
+ pixelIds?: string[] | undefined;
346
+ gtmId?: string | undefined;
347
+ };
348
+ lastBubbleBlockId?: string | undefined;
349
+ expectsDedicatedReply?: boolean | undefined;
350
+ } | {
351
+ type: "pixel";
352
+ pixel: {
353
+ params?: {
354
+ id: string;
355
+ value?: any;
356
+ key?: string | undefined;
357
+ }[] | undefined;
358
+ eventType?: undefined;
359
+ pixelId?: string | undefined;
360
+ isInitSkip?: boolean | undefined;
361
+ } | {
362
+ eventType: "Lead" | "Contact" | "CompleteRegistration" | "Schedule" | "SubmitApplication" | "ViewContent" | "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Purchase" | "Search" | "StartTrial" | "Subscribe";
363
+ params?: {
364
+ id: string;
365
+ value?: any;
366
+ key?: string | undefined;
367
+ }[] | undefined;
368
+ pixelId?: string | undefined;
369
+ isInitSkip?: boolean | undefined;
370
+ } | {
371
+ eventType: "Custom";
372
+ params?: {
373
+ id: string;
374
+ value?: any;
375
+ key?: string | undefined;
376
+ }[] | undefined;
377
+ name?: string | undefined;
378
+ pixelId?: string | undefined;
379
+ isInitSkip?: boolean | undefined;
380
+ };
381
+ lastBubbleBlockId?: string | undefined;
382
+ expectsDedicatedReply?: boolean | undefined;
383
+ } | {
384
+ type: "stream";
385
+ stream: true;
386
+ lastBubbleBlockId?: string | undefined;
387
+ expectsDedicatedReply?: boolean | undefined;
388
+ } | {
389
+ type: "codeToExecute";
390
+ codeToExecute: {
391
+ content: string;
392
+ args: Record<string, unknown>;
393
+ };
394
+ lastBubbleBlockId?: string | undefined;
395
+ expectsDedicatedReply?: boolean | undefined;
396
+ })[] | undefined;
397
+ };
398
+ error?: undefined;
399
+ } | {
400
+ error: unknown;
401
+ data?: undefined;
402
+ }>;
403
+ //# sourceMappingURL=continueChatQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"continueChatQuery.d.ts","sourceRoot":"","sources":["../../src/queries/continueChatQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAIpE,eAAO,MAAM,iBAAiB,6CAI3B;IACD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE;QAChB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBA,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { ChatLog } from '@quickbot.io/schemas';
2
+ export declare const saveClientLogsQuery: ({ sessionId, clientLogs, }: {
3
+ sessionId: string;
4
+ clientLogs: ChatLog[];
5
+ }) => Promise<void>;
6
+ //# sourceMappingURL=saveClientLogsQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saveClientLogsQuery.d.ts","sourceRoot":"","sources":["../../src/queries/saveClientLogsQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD,eAAO,MAAM,mBAAmB,+BAG7B;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,OAAO,EAAE,CAAA;CACtB,kBAaA,CAAA"}