@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.
Files changed (316) hide show
  1. package/README.md +169 -0
  2. package/dist/components/Bot.d.ts +26 -0
  3. package/dist/components/Bot.d.ts.map +1 -0
  4. package/dist/components/Button.d.ts +10 -0
  5. package/dist/components/Button.d.ts.map +1 -0
  6. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts +8 -0
  7. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts.map +1 -0
  8. package/dist/components/ConversationContainer/ChatChunk.d.ts +20 -0
  9. package/dist/components/ConversationContainer/ChatChunk.d.ts.map +1 -0
  10. package/dist/components/ConversationContainer/ConversationContainer.d.ts +17 -0
  11. package/dist/components/ConversationContainer/ConversationContainer.d.ts.map +1 -0
  12. package/dist/components/ConversationContainer/LoadingChunk.d.ts +7 -0
  13. package/dist/components/ConversationContainer/LoadingChunk.d.ts.map +1 -0
  14. package/dist/components/ConversationContainer/PopupBlockedToast.d.ts +7 -0
  15. package/dist/components/ConversationContainer/PopupBlockedToast.d.ts.map +1 -0
  16. package/dist/components/ConversationContainer/index.d.ts +2 -0
  17. package/dist/components/ConversationContainer/index.d.ts.map +1 -0
  18. package/dist/components/ErrorMessage.d.ts +6 -0
  19. package/dist/components/ErrorMessage.d.ts.map +1 -0
  20. package/dist/components/InputChatBlock.d.ts +18 -0
  21. package/dist/components/InputChatBlock.d.ts.map +1 -0
  22. package/dist/components/LiteBadge.d.ts +6 -0
  23. package/dist/components/LiteBadge.d.ts.map +1 -0
  24. package/dist/components/Modal.d.ts +9 -0
  25. package/dist/components/Modal.d.ts.map +1 -0
  26. package/dist/components/ProgressBar.d.ts +6 -0
  27. package/dist/components/ProgressBar.d.ts.map +1 -0
  28. package/dist/components/SendButton.d.ts +10 -0
  29. package/dist/components/SendButton.d.ts.map +1 -0
  30. package/dist/components/Spinner.d.ts +3 -0
  31. package/dist/components/Spinner.d.ts.map +1 -0
  32. package/dist/components/TextInputAddFileButton.d.ts +7 -0
  33. package/dist/components/TextInputAddFileButton.d.ts.map +1 -0
  34. package/dist/components/TypingBubble.d.ts +2 -0
  35. package/dist/components/TypingBubble.d.ts.map +1 -0
  36. package/dist/components/avatars/Avatar.d.ts +4 -0
  37. package/dist/components/avatars/Avatar.d.ts.map +1 -0
  38. package/dist/components/avatars/DefaultAvatar.d.ts +2 -0
  39. package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
  40. package/dist/components/bubbles/GuestBubble.d.ts +10 -0
  41. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
  42. package/dist/components/bubbles/HostBubble.d.ts +12 -0
  43. package/dist/components/bubbles/HostBubble.d.ts.map +1 -0
  44. package/dist/components/bubbles/LoadingBubble.d.ts +2 -0
  45. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
  46. package/dist/components/bubbles/StreamingBubble.d.ts +8 -0
  47. package/dist/components/bubbles/StreamingBubble.d.ts.map +1 -0
  48. package/dist/components/icons/CameraIcon.d.ts +3 -0
  49. package/dist/components/icons/CameraIcon.d.ts.map +1 -0
  50. package/dist/components/icons/CheckIcon.d.ts +3 -0
  51. package/dist/components/icons/CheckIcon.d.ts.map +1 -0
  52. package/dist/components/icons/ChevronDownIcon.d.ts +3 -0
  53. package/dist/components/icons/ChevronDownIcon.d.ts.map +1 -0
  54. package/dist/components/icons/CloseIcon.d.ts +3 -0
  55. package/dist/components/icons/CloseIcon.d.ts.map +1 -0
  56. package/dist/components/icons/FileIcon.d.ts +3 -0
  57. package/dist/components/icons/FileIcon.d.ts.map +1 -0
  58. package/dist/components/icons/MicrophoneIcon.d.ts +3 -0
  59. package/dist/components/icons/MicrophoneIcon.d.ts.map +1 -0
  60. package/dist/components/icons/PaperClipIcon.d.ts +3 -0
  61. package/dist/components/icons/PaperClipIcon.d.ts.map +1 -0
  62. package/dist/components/icons/PictureIcon.d.ts +3 -0
  63. package/dist/components/icons/PictureIcon.d.ts.map +1 -0
  64. package/dist/components/icons/PlusIcon.d.ts +3 -0
  65. package/dist/components/icons/PlusIcon.d.ts.map +1 -0
  66. package/dist/components/icons/SendIcon.d.ts +3 -0
  67. package/dist/components/icons/SendIcon.d.ts.map +1 -0
  68. package/dist/components/icons/TypebotLogo.d.ts +2 -0
  69. package/dist/components/icons/TypebotLogo.d.ts.map +1 -0
  70. package/dist/components/icons/index.d.ts +2 -0
  71. package/dist/components/icons/index.d.ts.map +1 -0
  72. package/dist/components/index.d.ts +4 -0
  73. package/dist/components/index.d.ts.map +1 -0
  74. package/dist/components/inputs/SearchInput.d.ts +9 -0
  75. package/dist/components/inputs/SearchInput.d.ts.map +1 -0
  76. package/dist/components/inputs/ShortTextInput.d.ts +8 -0
  77. package/dist/components/inputs/ShortTextInput.d.ts.map +1 -0
  78. package/dist/components/inputs/Textarea.d.ts +8 -0
  79. package/dist/components/inputs/Textarea.d.ts.map +1 -0
  80. package/dist/components/inputs/index.d.ts +3 -0
  81. package/dist/components/inputs/index.d.ts.map +1 -0
  82. package/dist/constants.d.ts +7 -0
  83. package/dist/constants.d.ts.map +1 -0
  84. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts +8 -0
  85. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +1 -0
  86. package/dist/features/blocks/bubbles/audio/components/index.d.ts +2 -0
  87. package/dist/features/blocks/bubbles/audio/components/index.d.ts.map +1 -0
  88. package/dist/features/blocks/bubbles/audio/index.d.ts +2 -0
  89. package/dist/features/blocks/bubbles/audio/index.d.ts.map +1 -0
  90. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts +11 -0
  91. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts.map +1 -0
  92. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts +11 -0
  93. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +1 -0
  94. package/dist/features/blocks/bubbles/embed/components/index.d.ts +2 -0
  95. package/dist/features/blocks/bubbles/embed/components/index.d.ts.map +1 -0
  96. package/dist/features/blocks/bubbles/embed/index.d.ts +2 -0
  97. package/dist/features/blocks/bubbles/embed/index.d.ts.map +1 -0
  98. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts +10 -0
  99. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +1 -0
  100. package/dist/features/blocks/bubbles/image/index.d.ts +2 -0
  101. package/dist/features/blocks/bubbles/image/index.d.ts.map +1 -0
  102. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts +11 -0
  103. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +1 -0
  104. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts +9 -0
  105. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts.map +1 -0
  106. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts +9 -0
  107. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts.map +1 -0
  108. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts +3 -0
  109. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts.map +1 -0
  110. package/dist/features/blocks/bubbles/textBubble/index.d.ts +2 -0
  111. package/dist/features/blocks/bubbles/textBubble/index.d.ts.map +1 -0
  112. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts +9 -0
  113. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +1 -0
  114. package/dist/features/blocks/bubbles/video/index.d.ts +2 -0
  115. package/dist/features/blocks/bubbles/video/index.d.ts.map +1 -0
  116. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +11 -0
  117. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -0
  118. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts +7 -0
  119. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts.map +1 -0
  120. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts +10 -0
  121. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts.map +1 -0
  122. package/dist/features/blocks/inputs/date/components/DateForm.d.ts +10 -0
  123. package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +1 -0
  124. package/dist/features/blocks/inputs/date/index.d.ts +2 -0
  125. package/dist/features/blocks/inputs/date/index.d.ts.map +1 -0
  126. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +10 -0
  127. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +1 -0
  128. package/dist/features/blocks/inputs/email/index.d.ts +2 -0
  129. package/dist/features/blocks/inputs/email/index.d.ts.map +1 -0
  130. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts +8 -0
  131. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts.map +1 -0
  132. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts +11 -0
  133. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -0
  134. package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts +6 -0
  135. package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts.map +1 -0
  136. package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts +14 -0
  137. package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts.map +1 -0
  138. package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts +21 -0
  139. package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts.map +1 -0
  140. package/dist/features/blocks/inputs/fileUpload/index.d.ts +2 -0
  141. package/dist/features/blocks/inputs/fileUpload/index.d.ts.map +1 -0
  142. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts +10 -0
  143. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +1 -0
  144. package/dist/features/blocks/inputs/number/index.d.ts +2 -0
  145. package/dist/features/blocks/inputs/number/index.d.ts.map +1 -0
  146. package/dist/features/blocks/inputs/number/numberInputHelper.d.ts +2 -0
  147. package/dist/features/blocks/inputs/number/numberInputHelper.d.ts.map +1 -0
  148. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts +11 -0
  149. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts.map +1 -0
  150. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts +11 -0
  151. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts.map +1 -0
  152. package/dist/features/blocks/inputs/payment/components/index.d.ts +2 -0
  153. package/dist/features/blocks/inputs/payment/components/index.d.ts.map +1 -0
  154. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts +5 -0
  155. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts.map +1 -0
  156. package/dist/features/blocks/inputs/payment/index.d.ts +2 -0
  157. package/dist/features/blocks/inputs/payment/index.d.ts.map +1 -0
  158. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +9 -0
  159. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +1 -0
  160. package/dist/features/blocks/inputs/phone/index.d.ts +2 -0
  161. package/dist/features/blocks/inputs/phone/index.d.ts.map +1 -0
  162. package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts +11 -0
  163. package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts.map +1 -0
  164. package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts +11 -0
  165. package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts.map +1 -0
  166. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts +10 -0
  167. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +1 -0
  168. package/dist/features/blocks/inputs/rating/index.d.ts +2 -0
  169. package/dist/features/blocks/inputs/rating/index.d.ts.map +1 -0
  170. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts +11 -0
  171. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts.map +1 -0
  172. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts +10 -0
  173. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts.map +1 -0
  174. package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts +2 -0
  175. package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts.map +1 -0
  176. package/dist/features/blocks/inputs/textInput/index.d.ts +2 -0
  177. package/dist/features/blocks/inputs/textInput/index.d.ts.map +1 -0
  178. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +10 -0
  179. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +1 -0
  180. package/dist/features/blocks/inputs/url/index.d.ts +2 -0
  181. package/dist/features/blocks/inputs/url/index.d.ts.map +1 -0
  182. package/dist/features/blocks/integrations/chatwoot/index.d.ts +2 -0
  183. package/dist/features/blocks/integrations/chatwoot/index.d.ts.map +1 -0
  184. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts +5 -0
  185. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts.map +1 -0
  186. package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts +2 -0
  187. package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts.map +1 -0
  188. package/dist/features/blocks/integrations/googleAnalytics/index.d.ts +2 -0
  189. package/dist/features/blocks/integrations/googleAnalytics/index.d.ts.map +1 -0
  190. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts +3 -0
  191. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map +1 -0
  192. package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts +2 -0
  193. package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts.map +1 -0
  194. package/dist/features/blocks/integrations/openai/streamChat.d.ts +17 -0
  195. package/dist/features/blocks/integrations/openai/streamChat.d.ts.map +1 -0
  196. package/dist/features/blocks/integrations/pixel/executePixel.d.ts +3 -0
  197. package/dist/features/blocks/integrations/pixel/executePixel.d.ts.map +1 -0
  198. package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts +3 -0
  199. package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts.map +1 -0
  200. package/dist/features/blocks/logic/redirect/index.d.ts +2 -0
  201. package/dist/features/blocks/logic/redirect/index.d.ts.map +1 -0
  202. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts +5 -0
  203. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts.map +1 -0
  204. package/dist/features/blocks/logic/redirect/utils/index.d.ts +2 -0
  205. package/dist/features/blocks/logic/redirect/utils/index.d.ts.map +1 -0
  206. package/dist/features/blocks/logic/script/executeScript.d.ts +9 -0
  207. package/dist/features/blocks/logic/script/executeScript.d.ts.map +1 -0
  208. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts +6 -0
  209. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts.map +1 -0
  210. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts +6 -0
  211. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts.map +1 -0
  212. package/dist/features/bubble/components/Bubble.d.ts +9 -0
  213. package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
  214. package/dist/features/bubble/components/BubbleButton.d.ts +9 -0
  215. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
  216. package/dist/features/bubble/components/PreviewMessage.d.ts +9 -0
  217. package/dist/features/bubble/components/PreviewMessage.d.ts.map +1 -0
  218. package/dist/features/bubble/components/index.d.ts +2 -0
  219. package/dist/features/bubble/components/index.d.ts.map +1 -0
  220. package/dist/features/bubble/index.d.ts +2 -0
  221. package/dist/features/bubble/index.d.ts.map +1 -0
  222. package/dist/features/bubble/types.d.ts +35 -0
  223. package/dist/features/bubble/types.d.ts.map +1 -0
  224. package/dist/features/commands/index.d.ts +3 -0
  225. package/dist/features/commands/index.d.ts.map +1 -0
  226. package/dist/features/commands/types.d.ts +19 -0
  227. package/dist/features/commands/types.d.ts.map +1 -0
  228. package/dist/features/commands/utils/close.d.ts +2 -0
  229. package/dist/features/commands/utils/close.d.ts.map +1 -0
  230. package/dist/features/commands/utils/hidePreviewMessage.d.ts +2 -0
  231. package/dist/features/commands/utils/hidePreviewMessage.d.ts.map +1 -0
  232. package/dist/features/commands/utils/index.d.ts +9 -0
  233. package/dist/features/commands/utils/index.d.ts.map +1 -0
  234. package/dist/features/commands/utils/open.d.ts +2 -0
  235. package/dist/features/commands/utils/open.d.ts.map +1 -0
  236. package/dist/features/commands/utils/setInputValue.d.ts +2 -0
  237. package/dist/features/commands/utils/setInputValue.d.ts.map +1 -0
  238. package/dist/features/commands/utils/setPrefilledVariables.d.ts +2 -0
  239. package/dist/features/commands/utils/setPrefilledVariables.d.ts.map +1 -0
  240. package/dist/features/commands/utils/showPreviewMessage.d.ts +3 -0
  241. package/dist/features/commands/utils/showPreviewMessage.d.ts.map +1 -0
  242. package/dist/features/commands/utils/toggle.d.ts +2 -0
  243. package/dist/features/commands/utils/toggle.d.ts.map +1 -0
  244. package/dist/features/commands/utils/unmount.d.ts +2 -0
  245. package/dist/features/commands/utils/unmount.d.ts.map +1 -0
  246. package/dist/features/popup/components/Popup.d.ts +10 -0
  247. package/dist/features/popup/components/Popup.d.ts.map +1 -0
  248. package/dist/features/popup/components/index.d.ts +2 -0
  249. package/dist/features/popup/components/index.d.ts.map +1 -0
  250. package/dist/features/popup/index.d.ts +2 -0
  251. package/dist/features/popup/index.d.ts.map +1 -0
  252. package/dist/features/popup/types.d.ts +9 -0
  253. package/dist/features/popup/types.d.ts.map +1 -0
  254. package/dist/features/standard/components/Standard.d.ts +5 -0
  255. package/dist/features/standard/components/Standard.d.ts.map +1 -0
  256. package/dist/features/standard/components/index.d.ts +2 -0
  257. package/dist/features/standard/components/index.d.ts.map +1 -0
  258. package/dist/features/standard/index.d.ts +2 -0
  259. package/dist/features/standard/index.d.ts.map +1 -0
  260. package/dist/index.d.ts +7 -0
  261. package/dist/index.d.ts.map +1 -0
  262. package/dist/index.js +2 -0
  263. package/dist/lib/gtag.d.ts +4 -0
  264. package/dist/lib/gtag.d.ts.map +1 -0
  265. package/dist/lib/gtm.d.ts +3 -0
  266. package/dist/lib/gtm.d.ts.map +1 -0
  267. package/dist/lib/pixel.d.ts +4 -0
  268. package/dist/lib/pixel.d.ts.map +1 -0
  269. package/dist/lib/stripe.d.ts +3 -0
  270. package/dist/lib/stripe.d.ts.map +1 -0
  271. package/dist/queries/continueChatQuery.d.ts +554 -0
  272. package/dist/queries/continueChatQuery.d.ts.map +1 -0
  273. package/dist/queries/saveClientLogsQuery.d.ts +7 -0
  274. package/dist/queries/saveClientLogsQuery.d.ts.map +1 -0
  275. package/dist/queries/startChatQuery.d.ts +723 -0
  276. package/dist/queries/startChatQuery.d.ts.map +1 -0
  277. package/dist/register.d.ts +2 -0
  278. package/dist/register.d.ts.map +1 -0
  279. package/dist/types.d.ts +37 -0
  280. package/dist/types.d.ts.map +1 -0
  281. package/dist/utils/CorsError.d.ts +4 -0
  282. package/dist/utils/CorsError.d.ts.map +1 -0
  283. package/dist/utils/botContainerHeightSignal.d.ts +2 -0
  284. package/dist/utils/botContainerHeightSignal.d.ts.map +1 -0
  285. package/dist/utils/botContainerSignal.d.ts +2 -0
  286. package/dist/utils/botContainerSignal.d.ts.map +1 -0
  287. package/dist/utils/executeClientSideActions.d.ts +20 -0
  288. package/dist/utils/executeClientSideActions.d.ts.map +1 -0
  289. package/dist/utils/formattedMessagesSignal.d.ts +8 -0
  290. package/dist/utils/formattedMessagesSignal.d.ts.map +1 -0
  291. package/dist/utils/getAnswerContent.d.ts +3 -0
  292. package/dist/utils/getAnswerContent.d.ts.map +1 -0
  293. package/dist/utils/guessApiHost.d.ts +6 -0
  294. package/dist/utils/guessApiHost.d.ts.map +1 -0
  295. package/dist/utils/injectFont.d.ts +3 -0
  296. package/dist/utils/injectFont.d.ts.map +1 -0
  297. package/dist/utils/injectStartProps.d.ts +3 -0
  298. package/dist/utils/injectStartProps.d.ts.map +1 -0
  299. package/dist/utils/isMobileSignal.d.ts +2 -0
  300. package/dist/utils/isMobileSignal.d.ts.map +1 -0
  301. package/dist/utils/persist.d.ts +9 -0
  302. package/dist/utils/persist.d.ts.map +1 -0
  303. package/dist/utils/setCssVariablesValue.d.ts +3 -0
  304. package/dist/utils/setCssVariablesValue.d.ts.map +1 -0
  305. package/dist/utils/storage.d.ts +717 -0
  306. package/dist/utils/storage.d.ts.map +1 -0
  307. package/dist/utils/streamingMessageSignal.d.ts +8 -0
  308. package/dist/utils/streamingMessageSignal.d.ts.map +1 -0
  309. package/dist/utils/toaster.d.ts +2 -0
  310. package/dist/utils/toaster.d.ts.map +1 -0
  311. package/dist/web.d.ts +17 -0
  312. package/dist/web.d.ts.map +1 -0
  313. package/dist/web.js +14 -0
  314. package/dist/window.d.ts +40 -0
  315. package/dist/window.d.ts.map +1 -0
  316. package/package.json +57 -0
package/README.md ADDED
@@ -0,0 +1,169 @@
1
+ # Typebot JS library
2
+
3
+ Frontend library to embed typebots from [Typebot](https://quick.bot/).
4
+
5
+ ## Installation
6
+
7
+ ### Using npm
8
+
9
+ To install, simply run:
10
+
11
+ ```bash
12
+ npm install @typebot.io/js
13
+ ```
14
+
15
+ ### Directly in your HTML
16
+
17
+ ```
18
+ <script type="module">
19
+ import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/js@0.3/dist/web.js'
20
+
21
+ Typebot.initStandard({
22
+ typebot: 'my-typebot',
23
+ })
24
+ </script>
25
+
26
+ <typebot-standard style="width: 100%; height: 600px; "></typebot-standard>
27
+ ```
28
+
29
+ ## Standard
30
+
31
+ You can get the standard HTML and Javascript code by clicking on the "HTML & Javascript" button in the "Share" tab of your typebot.
32
+
33
+ There, you can change the container dimensions. Here is a code example:
34
+
35
+ ```html
36
+ <script type="module">
37
+ import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/js@0.3/dist/web.js'
38
+
39
+ Typebot.initStandard({
40
+ typebot: 'my-typebot',
41
+ })
42
+ </script>
43
+
44
+ <typebot-standard style="width: 100%; height: 600px; "></typebot-standard>
45
+ ```
46
+
47
+ This code is creating a container with a 100% width (will match parent width) and 600px height.
48
+
49
+ ## Popup
50
+
51
+ You can get the popup HTML and Javascript code by clicking on the "HTML & Javascript" button in the "Share" tab of your typebot.
52
+
53
+ Here is an example:
54
+
55
+ ```html
56
+ <script type="module">
57
+ import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/js@0.3/dist/web.js'
58
+
59
+ Typebot.initPopup({
60
+ typebot: 'my-typebot',
61
+ apiHost: 'http://localhost:3001',
62
+ autoShowDelay: 3000,
63
+ })
64
+ </script>
65
+ ```
66
+
67
+ This code will automatically trigger the popup window after 3 seconds.
68
+
69
+ ### Open or Close a popup
70
+
71
+ You can use these commands:
72
+
73
+ ```js
74
+ Typebot.open()
75
+ ```
76
+
77
+ ```js
78
+ Typebot.close()
79
+ ```
80
+
81
+ ```js
82
+ Typebot.toggle()
83
+ ```
84
+
85
+ You can bind these commands on a button element, for example:
86
+
87
+ ```html
88
+ <button onclick="Typebot.open()">Contact us</button>
89
+ ```
90
+
91
+ ## Bubble
92
+
93
+ You can get the bubble HTML and Javascript code by clicking on the "HTML & Javascript" button in the "Share" tab of your typebot.
94
+
95
+ Here is an example:
96
+
97
+ ```html
98
+ <script type="module">
99
+ import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/js@0.3/dist/web.js'
100
+
101
+ Typebot.initBubble({
102
+ typebot: 'my-typebot',
103
+ previewMessage: {
104
+ message: 'I have a question for you!',
105
+ autoShowDelay: 5000,
106
+ avatarUrl: 'https://avatars.githubusercontent.com/u/6652831?v=4',
107
+ },
108
+ theme: {
109
+ button: { backgroundColor: '#0042DA', iconColor: '#FFFFFF' },
110
+ previewMessage: { backgroundColor: '#ffffff', textColor: 'black' },
111
+ chatWindow: { backgroundColor: '#ffffff' },
112
+ },
113
+ })
114
+ </script>
115
+ ```
116
+
117
+ This code will show the bubble and let a preview message appear after 5 seconds.
118
+
119
+ ### Open or close the preview message
120
+
121
+ You can use these commands:
122
+
123
+ ```js
124
+ Typebot.showPreviewMessage()
125
+ ```
126
+
127
+ ```js
128
+ Typebot.hidePreviewMessage()
129
+ ```
130
+
131
+ ### Open or close the typebot
132
+
133
+ You can use these commands:
134
+
135
+ ```js
136
+ Typebot.open()
137
+ ```
138
+
139
+ ```js
140
+ Typebot.close()
141
+ ```
142
+
143
+ ```js
144
+ Typebot.toggle()
145
+ ```
146
+
147
+ You can bind these commands on a button element, for example:
148
+
149
+ ```html
150
+ <button onclick="Typebot.open()">Contact us</button>
151
+ ```
152
+
153
+ ## Additional configuration
154
+
155
+ You can prefill the bot variable values in your embed code by adding the `prefilledVariables` option. Here is an example:
156
+
157
+ ```js
158
+ Typebot.initStandard({
159
+ typebot: 'my-typebot',
160
+ prefilledVariables: {
161
+ 'Current URL': 'https://my-site/account',
162
+ 'User name': 'Francisco',
163
+ },
164
+ })
165
+ ```
166
+
167
+ It will prefill the `Current URL` variable with "https://my-site/account" and the `User name` variable with "Francisco". More info about variables: [here](/editor/variables).
168
+
169
+ Note that if your site URL contains query params (i.e. https://quick.bot?User%20name=John%20Doe), the variables will automatically be injected to the typebot. So you don't need to manually transfer query params to the bot embed configuration.
@@ -0,0 +1,26 @@
1
+ import { OutgoingLog } from '@/types';
2
+ import { Font, InputBlock, StartFrom } from '@typebot.io/schemas';
3
+ export type BotProps = {
4
+ typebot: string | any;
5
+ isPreview?: boolean;
6
+ resultId?: string;
7
+ prefilledVariables?: Record<string, unknown>;
8
+ apiHost?: string;
9
+ font?: Font;
10
+ progressBarRef?: HTMLDivElement;
11
+ startFrom?: StartFrom;
12
+ sessionId?: string;
13
+ onNewInputBlock?: (inputBlock: InputBlock) => void;
14
+ onAnswer?: (answer: {
15
+ message: string;
16
+ blockId: string;
17
+ }) => void;
18
+ onInit?: () => void;
19
+ onEnd?: () => void;
20
+ onNewLogs?: (logs: OutgoingLog[]) => void;
21
+ onChatStatePersisted?: (isEnabled: boolean) => void;
22
+ };
23
+ export declare const Bot: (props: BotProps & {
24
+ class?: string;
25
+ }) => import("solid-js").JSX.Element;
26
+ //# sourceMappingURL=Bot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAc,WAAW,EAAE,MAAM,SAAS,CAAA;AAWjD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAqB,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAoBpF,MAAM,MAAM,QAAQ,GAAG;IAErB,OAAO,EAAE,MAAM,GAAG,GAAG,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IACzC,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,eAAO,MAAM,GAAG,UAAW,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mCA8LvD,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { JSX } from 'solid-js';
2
+ type Props = {
3
+ variant?: 'primary' | 'secondary';
4
+ children: JSX.Element;
5
+ isDisabled?: boolean;
6
+ isLoading?: boolean;
7
+ } & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
8
+ export declare const Button: (props: Props) => JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,GAAG,EAAoB,MAAM,UAAU,CAAA;AAG1D,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IACjC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;AAE/C,eAAO,MAAM,MAAM,UAAW,KAAK,gBAoBlC,CAAA"}
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ hostAvatarSrc?: string;
3
+ hideAvatar?: boolean;
4
+ isTransitionDisabled?: boolean;
5
+ };
6
+ export declare const AvatarSideContainer: (props: Props) => import("solid-js").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=AvatarSideContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvatarSideContainer.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/AvatarSideContainer.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,mBAAmB,UAAW,KAAK,mCA6C/C,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { InputSubmitContent, BotContext, ChatChunk as ChatChunkType } from '@/types';
2
+ import { ContinueChatResponse, Settings, Theme } from '@typebot.io/schemas';
3
+ type Props = Pick<ContinueChatResponse, 'messages' | 'input'> & {
4
+ theme: Theme;
5
+ settings: Settings;
6
+ index: number;
7
+ context: BotContext;
8
+ hasError: boolean;
9
+ hideAvatar: boolean;
10
+ streamingMessageId: ChatChunkType['streamingMessageId'];
11
+ isTransitionDisabled?: boolean;
12
+ onNewBubbleDisplayed: (blockId: string) => Promise<void>;
13
+ onScrollToBottom: (ref?: HTMLDivElement, offset?: number) => void;
14
+ onSubmit: (answer?: InputSubmitContent) => void;
15
+ onSkip: () => void;
16
+ onAllBubblesDisplayed: () => void;
17
+ };
18
+ export declare const ChatChunk: (props: Props) => import("solid-js").JSX.Element;
19
+ export {};
20
+ //# sourceMappingURL=ChatChunk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatChunk.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ChatChunk.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAEpF,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAY3E,KAAK,KAAK,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IAC9D,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,QAAQ,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,UAAU,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,kBAAkB,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAA;IACvD,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxD,gBAAgB,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC/C,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,qBAAqB,EAAE,MAAM,IAAI,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,SAAS,UAAW,KAAK,mCAwIrC,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { InputBlock, StartChatResponse } from '@typebot.io/schemas';
2
+ import { BotContext, OutgoingLog } from '@/types';
3
+ type Props = {
4
+ initialChatReply: StartChatResponse;
5
+ context: BotContext;
6
+ onNewInputBlock?: (inputBlock: InputBlock) => void;
7
+ onAnswer?: (answer: {
8
+ message: string;
9
+ blockId: string;
10
+ }) => void;
11
+ onEnd?: () => void;
12
+ onNewLogs?: (logs: OutgoingLog[]) => void;
13
+ onProgressUpdate?: (progress: number) => void;
14
+ };
15
+ export declare const ConversationContainer: (props: Props) => import("solid-js").JSX.Element;
16
+ export {};
17
+ //# sourceMappingURL=ConversationContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationContainer.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAGV,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B,OAAO,EAAE,UAAU,EAAkD,WAAW,EAAE,MAAM,SAAS,CAAA;AAuCjG,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,iBAAiB,CAAA;IACnC,OAAO,EAAE,UAAU,CAAA;IACnB,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IACzC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,qBAAqB,UAAW,KAAK,mCAmRjD,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { Theme } from '@typebot.io/schemas';
2
+ type Props = {
3
+ theme: Theme;
4
+ };
5
+ export declare const LoadingChunk: (props: Props) => import("solid-js").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=LoadingChunk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingChunk.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/LoadingChunk.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAM3C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,eAAO,MAAM,YAAY,UAAW,KAAK,mCAWxC,CAAA"}
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ url: string;
3
+ onLinkClick: () => void;
4
+ };
5
+ export declare const PopupBlockedToast: (props: Props) => import("solid-js").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=PopupBlockedToast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopupBlockedToast.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/PopupBlockedToast.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,iBAAiB,UAAW,KAAK,mCAyB7C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './ConversationContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA"}
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ error: Error;
3
+ };
4
+ export declare const ErrorMessage: (props: Props) => import("solid-js").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=ErrorMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../src/components/ErrorMessage.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AACD,eAAO,MAAM,YAAY,UAAW,KAAK,mCAOxC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { ContinueChatResponse, Theme } from '@typebot.io/schemas';
2
+ import { BotContext, InputSubmitContent } from '@/types';
3
+ type Props = {
4
+ ref: HTMLDivElement | undefined;
5
+ block: NonNullable<ContinueChatResponse['input']>;
6
+ hasHostAvatar: boolean;
7
+ guestAvatar?: NonNullable<Theme['chat']>['guestAvatar'];
8
+ chunkIndex: number;
9
+ context: BotContext;
10
+ isInputPrefillEnabled: boolean;
11
+ hasError: boolean;
12
+ onTransitionEnd: () => void;
13
+ onSubmit: (content: InputSubmitContent) => void;
14
+ onSkip: () => void;
15
+ };
16
+ export declare const InputChatBlock: (props: Props) => import("solid-js").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=InputChatBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputChatBlock.d.ts","sourceRoot":"","sources":["../../src/components/InputChatBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EASpB,KAAK,EAKN,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAuBxD,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,cAAc,GAAG,SAAS,CAAA;IAC/B,KAAK,EAAE,WAAW,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAA;IACjD,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAA;IACvD,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,UAAU,CAAA;IACnB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,OAAO,CAAA;IACjB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC/C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,cAAc,UAAW,KAAK,mCA6D1C,CAAA"}
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ botContainer: HTMLDivElement | undefined;
3
+ };
4
+ export declare const LiteBadge: (props: Props) => import("solid-js").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=LiteBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiteBadge.d.ts","sourceRoot":"","sources":["../../src/components/LiteBadge.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,cAAc,GAAG,SAAS,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,SAAS,UAAW,KAAK,mCAyCrC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { JSX } from 'solid-js';
2
+ type Props = {
3
+ isOpen?: boolean;
4
+ onClose?: () => void;
5
+ children: JSX.Element;
6
+ };
7
+ export declare const Modal: (props: Props) => JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=Modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/components/Modal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAG9B,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;CACtB,CAAA;AACD,eAAO,MAAM,KAAK,UAAW,KAAK,gBAiBjC,CAAA"}
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ value: number;
3
+ };
4
+ export declare const ProgressBar: (props: Props) => import("solid-js").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=ProgressBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../src/components/ProgressBar.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,KAAK,mCASvC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ type SendButtonProps = {
3
+ isDisabled?: boolean;
4
+ isLoading?: boolean;
5
+ disableIcon?: boolean;
6
+ class?: string;
7
+ } & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
8
+ export declare const SendButton: (props: SendButtonProps) => JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=SendButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../src/components/SendButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAM1C,KAAK,eAAe,GAAG;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;AAE/C,eAAO,MAAM,UAAU,UAAW,eAAe,gBAqBhD,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js';
2
+ export declare const Spinner: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=Spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAA"}
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ onNewFiles: (files: FileList) => void;
3
+ class?: string;
4
+ };
5
+ export declare const TextInputAddFileButton: (props: Props) => import("solid-js").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=TextInputAddFileButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInputAddFileButton.d.ts","sourceRoot":"","sources":["../../src/components/TextInputAddFileButton.tsx"],"names":[],"mappings":"AAQA,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAA;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,eAAO,MAAM,sBAAsB,UAAW,KAAK,mCAkFlD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const TypingBubble: () => import("solid-js").JSX.Element;
2
+ //# sourceMappingURL=TypingBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypingBubble.d.ts","sourceRoot":"","sources":["../../src/components/TypingBubble.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,sCAMxB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const Avatar: (props: {
2
+ initialAvatarSrc?: string;
3
+ }) => import("solid-js").JSX.Element;
4
+ //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/Avatar.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,UAAW;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,mCA6B1D,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const DefaultAvatar: () => import("solid-js").JSX.Element;
2
+ //# sourceMappingURL=DefaultAvatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/DefaultAvatar.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCA4CzB,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { InputSubmitContent } from '@/types';
2
+ type Props = {
3
+ answer?: InputSubmitContent;
4
+ showAvatar: boolean;
5
+ avatarSrc?: string;
6
+ hasHostAvatar: boolean;
7
+ };
8
+ export declare const GuestBubble: (props: Props) => import("solid-js").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=GuestBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GuestBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/GuestBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAuD,MAAM,SAAS,CAAA;AAMjG,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B,UAAU,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,KAAK,mCAsBvC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { InputSubmitContent } from '@/types';
2
+ import type { ChatMessage, Settings } from '@typebot.io/schemas';
3
+ type Props = {
4
+ message: ChatMessage;
5
+ typingEmulation: Settings['typingEmulation'];
6
+ isTypingSkipped: boolean;
7
+ onTransitionEnd?: (ref?: HTMLDivElement) => void;
8
+ onCompleted: (reply?: InputSubmitContent) => void;
9
+ };
10
+ export declare const HostBubble: (props: Props) => import("solid-js").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=HostBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HostBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/HostBubble.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAEV,WAAW,EAIX,QAAQ,EAGT,MAAM,qBAAqB,CAAA;AAI5B,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAA;IACpB,eAAe,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAA;IAC5C,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IAChD,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAClD,CAAA;AAED,eAAO,MAAM,UAAU,UAAW,KAAK,mCA2CtC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const LoadingBubble: () => import("solid-js").JSX.Element;
2
+ //# sourceMappingURL=LoadingBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCAsBzB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { BotContext } from '@/types';
2
+ type Props = {
3
+ streamingMessageId: string;
4
+ context: BotContext;
5
+ };
6
+ export declare const StreamingBubble: (props: Props) => import("solid-js").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=StreamingBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StreamingBubble.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,KAAK,KAAK,GAAG;IACX,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,UAAU,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,eAAe,UAAW,KAAK,mCAwE3C,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const CameraIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=CameraIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CameraIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CameraIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAcpE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const CheckIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=CheckIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CheckIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAanE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const ChevronDownIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=ChevronDownIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChevronDownIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ChevronDownIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,eAAe,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAazE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const CloseIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=CloseIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloseIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CloseIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAcnE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const FileIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=FileIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/FileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAclE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const MicrophoneIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=MicrophoneIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MicrophoneIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/MicrophoneIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAIxE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const PaperClipIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=PaperClipIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaperClipIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/PaperClipIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,aAAa,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAevE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const PictureIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=PictureIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PictureIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/PictureIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,WAAW,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBrE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const PlusIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=PlusIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/PlusIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAclE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { JSX } from 'solid-js/jsx-runtime';
2
+ export declare const SendIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
3
+ //# sourceMappingURL=SendIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SendIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAUlE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const TypebotLogo: () => import("solid-js").JSX.Element;
2
+ //# sourceMappingURL=TypebotLogo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypebotLogo.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TypebotLogo.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,sCAoCvB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './SendIcon';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './SendButton';
2
+ export * from './TypingBubble';
3
+ export * from './inputs';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA"}