@botonic/react 0.44.1 → 0.45.0-alpha.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 (787) hide show
  1. package/lib/cjs/botonic-tester.js +0 -1
  2. package/lib/cjs/botonic-tester.js.map +1 -1
  3. package/lib/cjs/components/audio.d.ts +1 -1
  4. package/lib/cjs/components/audio.js +2 -1
  5. package/lib/cjs/components/audio.js.map +1 -1
  6. package/lib/cjs/components/button/index.d.ts +1 -1
  7. package/lib/cjs/components/button/index.js +5 -8
  8. package/lib/cjs/components/button/index.js.map +1 -1
  9. package/lib/cjs/components/buttons-disabler.d.ts +2 -2
  10. package/lib/cjs/components/buttons-disabler.js +12 -6
  11. package/lib/cjs/components/buttons-disabler.js.map +1 -1
  12. package/lib/cjs/components/carousel.d.ts +1 -1
  13. package/lib/cjs/components/carousel.js +5 -4
  14. package/lib/cjs/components/carousel.js.map +1 -1
  15. package/lib/cjs/components/custom-message.d.ts +1 -1
  16. package/lib/cjs/components/custom-message.js +1 -2
  17. package/lib/cjs/components/custom-message.js.map +1 -1
  18. package/lib/cjs/components/document.d.ts +1 -1
  19. package/lib/cjs/components/document.js +2 -1
  20. package/lib/cjs/components/document.js.map +1 -1
  21. package/lib/cjs/components/element.d.ts +1 -1
  22. package/lib/cjs/components/element.js +7 -5
  23. package/lib/cjs/components/element.js.map +1 -1
  24. package/lib/cjs/components/handoff.d.ts +1 -1
  25. package/lib/cjs/components/handoff.js +2 -2
  26. package/lib/cjs/components/handoff.js.map +1 -1
  27. package/lib/cjs/components/image.d.ts +1 -1
  28. package/lib/cjs/components/image.js.map +1 -1
  29. package/lib/cjs/components/index-types.d.ts +2 -2
  30. package/lib/cjs/components/location.js +2 -3
  31. package/lib/cjs/components/location.js.map +1 -1
  32. package/lib/cjs/components/markdown.d.ts +1 -1
  33. package/lib/cjs/components/markdown.js +24 -16
  34. package/lib/cjs/components/markdown.js.map +1 -1
  35. package/lib/cjs/components/message/index.js +25 -20
  36. package/lib/cjs/components/message/index.js.map +1 -1
  37. package/lib/cjs/components/message/message-feedback.js.map +1 -1
  38. package/lib/cjs/components/message/message-footer.js.map +1 -1
  39. package/lib/cjs/components/message/message-image.js.map +1 -1
  40. package/lib/cjs/components/message/timestamps.js +1 -1
  41. package/lib/cjs/components/message/timestamps.js.map +1 -1
  42. package/lib/cjs/components/message-template.js +3 -4
  43. package/lib/cjs/components/message-template.js.map +1 -1
  44. package/lib/cjs/components/multichannel/facebook/facebook.js +3 -2
  45. package/lib/cjs/components/multichannel/facebook/facebook.js.map +1 -1
  46. package/lib/cjs/components/multichannel/multichannel-button.js +6 -6
  47. package/lib/cjs/components/multichannel/multichannel-button.js.map +1 -1
  48. package/lib/cjs/components/multichannel/multichannel-carousel.js +11 -7
  49. package/lib/cjs/components/multichannel/multichannel-carousel.js.map +1 -1
  50. package/lib/cjs/components/multichannel/multichannel-reply.js +3 -3
  51. package/lib/cjs/components/multichannel/multichannel-reply.js.map +1 -1
  52. package/lib/cjs/components/multichannel/multichannel-text.js +15 -9
  53. package/lib/cjs/components/multichannel/multichannel-text.js.map +1 -1
  54. package/lib/cjs/components/multichannel/multichannel-utils.js +8 -4
  55. package/lib/cjs/components/multichannel/multichannel-utils.js.map +1 -1
  56. package/lib/cjs/components/multichannel/multichannel.js +1 -2
  57. package/lib/cjs/components/multichannel/multichannel.js.map +1 -1
  58. package/lib/cjs/components/pic.js +1 -1
  59. package/lib/cjs/components/pic.js.map +1 -1
  60. package/lib/cjs/components/raw.js +3 -2
  61. package/lib/cjs/components/raw.js.map +1 -1
  62. package/lib/cjs/components/reply.d.ts +1 -1
  63. package/lib/cjs/components/reply.js +6 -4
  64. package/lib/cjs/components/reply.js.map +1 -1
  65. package/lib/cjs/components/share-button.js +3 -4
  66. package/lib/cjs/components/share-button.js.map +1 -1
  67. package/lib/cjs/components/subtitle.d.ts +1 -1
  68. package/lib/cjs/components/system-debug-trace/debug-message.d.ts +1 -1
  69. package/lib/cjs/components/system-debug-trace/debug-message.js.map +1 -1
  70. package/lib/cjs/components/system-debug-trace/events/ai-agent.d.ts +2 -2
  71. package/lib/cjs/components/system-debug-trace/events/ai-agent.js.map +1 -1
  72. package/lib/cjs/components/system-debug-trace/events/bot-action.d.ts +1 -1
  73. package/lib/cjs/components/system-debug-trace/events/bot-action.js.map +1 -1
  74. package/lib/cjs/components/system-debug-trace/events/components/guardrail-item.d.ts +1 -1
  75. package/lib/cjs/components/system-debug-trace/events/components/sources-section.d.ts +2 -2
  76. package/lib/cjs/components/system-debug-trace/events/components/sources-section.js +2 -1
  77. package/lib/cjs/components/system-debug-trace/events/components/sources-section.js.map +1 -1
  78. package/lib/cjs/components/system-debug-trace/events/conditional-channel.d.ts +1 -1
  79. package/lib/cjs/components/system-debug-trace/events/conditional-channel.js.map +1 -1
  80. package/lib/cjs/components/system-debug-trace/events/conditional-country.d.ts +1 -1
  81. package/lib/cjs/components/system-debug-trace/events/conditional-country.js.map +1 -1
  82. package/lib/cjs/components/system-debug-trace/events/conditional-custom.d.ts +1 -1
  83. package/lib/cjs/components/system-debug-trace/events/conditional-custom.js.map +1 -1
  84. package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.d.ts +1 -1
  85. package/lib/cjs/components/system-debug-trace/events/conditional-queue-status.js.map +1 -1
  86. package/lib/cjs/components/system-debug-trace/events/fallback.d.ts +1 -1
  87. package/lib/cjs/components/system-debug-trace/events/fallback.js.map +1 -1
  88. package/lib/cjs/components/system-debug-trace/events/handoff-success.d.ts +1 -1
  89. package/lib/cjs/components/system-debug-trace/events/handoff-success.js.map +1 -1
  90. package/lib/cjs/components/system-debug-trace/events/keyword.d.ts +1 -1
  91. package/lib/cjs/components/system-debug-trace/events/keyword.js.map +1 -1
  92. package/lib/cjs/components/system-debug-trace/events/knowledge-base.d.ts +2 -2
  93. package/lib/cjs/components/system-debug-trace/events/knowledge-base.js.map +1 -1
  94. package/lib/cjs/components/system-debug-trace/events/redirect-flow.d.ts +1 -1
  95. package/lib/cjs/components/system-debug-trace/events/redirect-flow.js.map +1 -1
  96. package/lib/cjs/components/system-debug-trace/events/smart-intent.d.ts +1 -1
  97. package/lib/cjs/components/system-debug-trace/events/smart-intent.js.map +1 -1
  98. package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.d.ts +1 -1
  99. package/lib/cjs/components/system-debug-trace/events/webview-action-triggered.js.map +1 -1
  100. package/lib/cjs/components/system-debug-trace/hooks/use-knowledge-base-info.d.ts +2 -2
  101. package/lib/cjs/components/system-debug-trace/hooks/use-knowledge-base-info.js +2 -2
  102. package/lib/cjs/components/system-debug-trace/hooks/use-knowledge-base-info.js.map +1 -1
  103. package/lib/cjs/components/system-debug-trace/hooks/use-last-label-position.d.ts +1 -1
  104. package/lib/cjs/components/system-debug-trace/hooks/use-last-label-position.js +6 -3
  105. package/lib/cjs/components/system-debug-trace/hooks/use-last-label-position.js.map +1 -1
  106. package/lib/cjs/components/system-debug-trace/icons/arrow-progress.d.ts +1 -1
  107. package/lib/cjs/components/system-debug-trace/icons/arrow-progress.js +3 -1
  108. package/lib/cjs/components/system-debug-trace/icons/arrow-progress.js.map +1 -1
  109. package/lib/cjs/components/system-debug-trace/icons/brain.d.ts +1 -1
  110. package/lib/cjs/components/system-debug-trace/icons/brain.js +3 -1
  111. package/lib/cjs/components/system-debug-trace/icons/brain.js.map +1 -1
  112. package/lib/cjs/components/system-debug-trace/icons/caret-down.d.ts +1 -1
  113. package/lib/cjs/components/system-debug-trace/icons/caret-down.js +3 -1
  114. package/lib/cjs/components/system-debug-trace/icons/caret-down.js.map +1 -1
  115. package/lib/cjs/components/system-debug-trace/icons/caret-up.d.ts +1 -1
  116. package/lib/cjs/components/system-debug-trace/icons/caret-up.js +3 -1
  117. package/lib/cjs/components/system-debug-trace/icons/caret-up.js.map +1 -1
  118. package/lib/cjs/components/system-debug-trace/icons/circle-check.d.ts +1 -1
  119. package/lib/cjs/components/system-debug-trace/icons/circle-check.js +1 -0
  120. package/lib/cjs/components/system-debug-trace/icons/circle-check.js.map +1 -1
  121. package/lib/cjs/components/system-debug-trace/icons/code.d.ts +1 -1
  122. package/lib/cjs/components/system-debug-trace/icons/code.js +1 -0
  123. package/lib/cjs/components/system-debug-trace/icons/code.js.map +1 -1
  124. package/lib/cjs/components/system-debug-trace/icons/file-pdf.d.ts +1 -1
  125. package/lib/cjs/components/system-debug-trace/icons/file-pdf.js +3 -1
  126. package/lib/cjs/components/system-debug-trace/icons/file-pdf.js.map +1 -1
  127. package/lib/cjs/components/system-debug-trace/icons/file-word.d.ts +1 -1
  128. package/lib/cjs/components/system-debug-trace/icons/file-word.js +3 -1
  129. package/lib/cjs/components/system-debug-trace/icons/file-word.js.map +1 -1
  130. package/lib/cjs/components/system-debug-trace/icons/hand.d.ts +1 -1
  131. package/lib/cjs/components/system-debug-trace/icons/hand.js +3 -1
  132. package/lib/cjs/components/system-debug-trace/icons/hand.js.map +1 -1
  133. package/lib/cjs/components/system-debug-trace/icons/head-set.d.ts +1 -1
  134. package/lib/cjs/components/system-debug-trace/icons/head-set.js +3 -1
  135. package/lib/cjs/components/system-debug-trace/icons/head-set.js.map +1 -1
  136. package/lib/cjs/components/system-debug-trace/icons/life-ring.d.ts +1 -1
  137. package/lib/cjs/components/system-debug-trace/icons/life-ring.js +3 -1
  138. package/lib/cjs/components/system-debug-trace/icons/life-ring.js.map +1 -1
  139. package/lib/cjs/components/system-debug-trace/icons/link.d.ts +1 -1
  140. package/lib/cjs/components/system-debug-trace/icons/link.js +3 -1
  141. package/lib/cjs/components/system-debug-trace/icons/link.js.map +1 -1
  142. package/lib/cjs/components/system-debug-trace/icons/quote-right.d.ts +1 -1
  143. package/lib/cjs/components/system-debug-trace/icons/quote-right.js +3 -1
  144. package/lib/cjs/components/system-debug-trace/icons/quote-right.js.map +1 -1
  145. package/lib/cjs/components/system-debug-trace/icons/screwdriver-wrench.d.ts +1 -1
  146. package/lib/cjs/components/system-debug-trace/icons/screwdriver-wrench.js +3 -1
  147. package/lib/cjs/components/system-debug-trace/icons/screwdriver-wrench.js.map +1 -1
  148. package/lib/cjs/components/system-debug-trace/icons/split.d.ts +1 -1
  149. package/lib/cjs/components/system-debug-trace/icons/split.js +3 -1
  150. package/lib/cjs/components/system-debug-trace/icons/split.js.map +1 -1
  151. package/lib/cjs/components/system-debug-trace/icons/wand.d.ts +1 -1
  152. package/lib/cjs/components/system-debug-trace/icons/wand.js +3 -1
  153. package/lib/cjs/components/system-debug-trace/icons/wand.js.map +1 -1
  154. package/lib/cjs/components/system-debug-trace/icons/window-restore.d.ts +1 -1
  155. package/lib/cjs/components/system-debug-trace/icons/window-restore.js +3 -1
  156. package/lib/cjs/components/system-debug-trace/icons/window-restore.js.map +1 -1
  157. package/lib/cjs/components/system-debug-trace/index.js.map +1 -1
  158. package/lib/cjs/components/system-debug-trace/types.d.ts +2 -2
  159. package/lib/cjs/components/text.d.ts +1 -1
  160. package/lib/cjs/components/text.js +8 -4
  161. package/lib/cjs/components/text.js.map +1 -1
  162. package/lib/cjs/components/title.d.ts +1 -1
  163. package/lib/cjs/components/video.d.ts +1 -1
  164. package/lib/cjs/components/video.js +2 -1
  165. package/lib/cjs/components/video.js.map +1 -1
  166. package/lib/cjs/components/webchat-settings.d.ts +3 -3
  167. package/lib/cjs/components/webchat-settings.js +40 -35
  168. package/lib/cjs/components/webchat-settings.js.map +1 -1
  169. package/lib/cjs/components/whatsapp-button-list.js +1 -1
  170. package/lib/cjs/components/whatsapp-button-list.js.map +1 -1
  171. package/lib/cjs/components/whatsapp-catalog.js +1 -1
  172. package/lib/cjs/components/whatsapp-catalog.js.map +1 -1
  173. package/lib/cjs/components/whatsapp-cta-url-button.js +1 -1
  174. package/lib/cjs/components/whatsapp-cta-url-button.js.map +1 -1
  175. package/lib/cjs/components/whatsapp-interactive-media-carousel.js +1 -1
  176. package/lib/cjs/components/whatsapp-interactive-media-carousel.js.map +1 -1
  177. package/lib/cjs/components/whatsapp-media-carousel.js +1 -1
  178. package/lib/cjs/components/whatsapp-media-carousel.js.map +1 -1
  179. package/lib/cjs/components/whatsapp-product-carousel.js +1 -1
  180. package/lib/cjs/components/whatsapp-product-carousel.js.map +1 -1
  181. package/lib/cjs/components/whatsapp-product-list.js +1 -1
  182. package/lib/cjs/components/whatsapp-product-list.js.map +1 -1
  183. package/lib/cjs/components/whatsapp-product.js +1 -1
  184. package/lib/cjs/components/whatsapp-product.js.map +1 -1
  185. package/lib/cjs/components/whatsapp-template/index.js +1 -1
  186. package/lib/cjs/components/whatsapp-template/index.js.map +1 -1
  187. package/lib/cjs/contexts.d.ts +2 -2
  188. package/lib/cjs/dev-app.js +4 -7
  189. package/lib/cjs/dev-app.js.map +1 -1
  190. package/lib/cjs/index-types.d.ts +7 -7
  191. package/lib/cjs/message-utils.js +2 -1
  192. package/lib/cjs/message-utils.js.map +1 -1
  193. package/lib/cjs/msg-to-botonic.d.ts +0 -1
  194. package/lib/cjs/msg-to-botonic.js +16 -15
  195. package/lib/cjs/msg-to-botonic.js.map +1 -1
  196. package/lib/cjs/react-bot.d.ts +2 -2
  197. package/lib/cjs/util/dom.js +3 -3
  198. package/lib/cjs/util/dom.js.map +1 -1
  199. package/lib/cjs/util/environment.d.ts +1 -1
  200. package/lib/cjs/util/environment.js +17 -12
  201. package/lib/cjs/util/environment.js.map +1 -1
  202. package/lib/cjs/util/error-boundary.js +4 -5
  203. package/lib/cjs/util/error-boundary.js.map +1 -1
  204. package/lib/cjs/util/logs.js +2 -1
  205. package/lib/cjs/util/logs.js.map +1 -1
  206. package/lib/cjs/util/objects.js +4 -3
  207. package/lib/cjs/util/objects.js.map +1 -1
  208. package/lib/cjs/util/react.js +6 -3
  209. package/lib/cjs/util/react.js.map +1 -1
  210. package/lib/cjs/util/regexs.js +3 -2
  211. package/lib/cjs/util/regexs.js.map +1 -1
  212. package/lib/cjs/util/webchat.d.ts +2 -2
  213. package/lib/cjs/util/webchat.js +13 -7
  214. package/lib/cjs/util/webchat.js.map +1 -1
  215. package/lib/cjs/webchat/chat-area/index.js.map +1 -1
  216. package/lib/cjs/webchat/components/common.js +0 -1
  217. package/lib/cjs/webchat/components/common.js.map +1 -1
  218. package/lib/cjs/webchat/components/conditional-animation.js +1 -2
  219. package/lib/cjs/webchat/components/conditional-animation.js.map +1 -1
  220. package/lib/cjs/webchat/components/opened-persistent-menu.js +4 -2
  221. package/lib/cjs/webchat/components/opened-persistent-menu.js.map +1 -1
  222. package/lib/cjs/webchat/context/index.d.ts +1 -1
  223. package/lib/cjs/webchat/context/messages-reducer.d.ts +1 -1
  224. package/lib/cjs/webchat/context/messages-reducer.js +2 -2
  225. package/lib/cjs/webchat/context/messages-reducer.js.map +1 -1
  226. package/lib/cjs/webchat/context/types.d.ts +5 -5
  227. package/lib/cjs/webchat/context/use-webchat.d.ts +6 -6
  228. package/lib/cjs/webchat/context/use-webchat.js.map +1 -1
  229. package/lib/cjs/webchat/context/webchat-reducer.d.ts +1 -1
  230. package/lib/cjs/webchat/cover-component/index.js.map +1 -1
  231. package/lib/cjs/webchat/custom-messages/rating/icons/face-angry.d.ts +2 -1
  232. package/lib/cjs/webchat/custom-messages/rating/icons/face-angry.js.map +1 -1
  233. package/lib/cjs/webchat/custom-messages/rating/icons/face-frown.d.ts +2 -1
  234. package/lib/cjs/webchat/custom-messages/rating/icons/face-frown.js.map +1 -1
  235. package/lib/cjs/webchat/custom-messages/rating/icons/face-grin-beam.d.ts +2 -1
  236. package/lib/cjs/webchat/custom-messages/rating/icons/face-grin-beam.js.map +1 -1
  237. package/lib/cjs/webchat/custom-messages/rating/icons/face-meh.d.ts +2 -1
  238. package/lib/cjs/webchat/custom-messages/rating/icons/face-meh.js.map +1 -1
  239. package/lib/cjs/webchat/custom-messages/rating/icons/face-smile.d.ts +2 -1
  240. package/lib/cjs/webchat/custom-messages/rating/icons/face-smile.js.map +1 -1
  241. package/lib/cjs/webchat/custom-messages/rating/icons/star.d.ts +2 -1
  242. package/lib/cjs/webchat/custom-messages/rating/icons/star.js.map +1 -1
  243. package/lib/cjs/webchat/custom-messages/rating/index.js +2 -1
  244. package/lib/cjs/webchat/custom-messages/rating/index.js.map +1 -1
  245. package/lib/cjs/webchat/custom-messages/rating/rating-selector.js +5 -2
  246. package/lib/cjs/webchat/custom-messages/rating/rating-selector.js.map +1 -1
  247. package/lib/cjs/webchat/custom-messages/rating/smileys.d.ts +1 -1
  248. package/lib/cjs/webchat/custom-messages/rating/smileys.js.map +1 -1
  249. package/lib/cjs/webchat/custom-messages/rating/stars.d.ts +1 -1
  250. package/lib/cjs/webchat/custom-messages/rating/stars.js.map +1 -1
  251. package/lib/cjs/webchat/header/default-header.js +1 -1
  252. package/lib/cjs/webchat/header/default-header.js.map +1 -1
  253. package/lib/cjs/webchat/header/index.d.ts +1 -2
  254. package/lib/cjs/webchat/header/index.js.map +1 -1
  255. package/lib/cjs/webchat/hooks/use-device-adapter.d.ts +1 -1
  256. package/lib/cjs/webchat/hooks/use-device-adapter.js +8 -5
  257. package/lib/cjs/webchat/hooks/use-device-adapter.js.map +1 -1
  258. package/lib/cjs/webchat/hooks/use-scroll-to-bottom.js +4 -2
  259. package/lib/cjs/webchat/hooks/use-scroll-to-bottom.js.map +1 -1
  260. package/lib/cjs/webchat/hooks/use-scrollbar-controller.js +15 -11
  261. package/lib/cjs/webchat/hooks/use-scrollbar-controller.js.map +1 -1
  262. package/lib/cjs/webchat/hooks/use-typing.d.ts +2 -2
  263. package/lib/cjs/webchat/hooks/use-typing.js +11 -6
  264. package/lib/cjs/webchat/hooks/use-typing.js.map +1 -1
  265. package/lib/cjs/webchat/hooks/use-virtual-keyboard-detection.d.ts +1 -1
  266. package/lib/cjs/webchat/hooks/use-virtual-keyboard-detection.js +3 -5
  267. package/lib/cjs/webchat/hooks/use-virtual-keyboard-detection.js.map +1 -1
  268. package/lib/cjs/webchat/hooks/use-webchat-dimensions.js +5 -4
  269. package/lib/cjs/webchat/hooks/use-webchat-dimensions.js.map +1 -1
  270. package/lib/cjs/webchat/index-types.d.ts +1 -1
  271. package/lib/cjs/webchat/input-panel/attachment.js.map +1 -1
  272. package/lib/cjs/webchat/input-panel/emoji-picker.js +2 -0
  273. package/lib/cjs/webchat/input-panel/emoji-picker.js.map +1 -1
  274. package/lib/cjs/webchat/input-panel/index.d.ts +1 -1
  275. package/lib/cjs/webchat/input-panel/index.js +4 -2
  276. package/lib/cjs/webchat/input-panel/index.js.map +1 -1
  277. package/lib/cjs/webchat/input-panel/persistent-menu.js +2 -0
  278. package/lib/cjs/webchat/input-panel/persistent-menu.js.map +1 -1
  279. package/lib/cjs/webchat/input-panel/send-button.js +2 -0
  280. package/lib/cjs/webchat/input-panel/send-button.js.map +1 -1
  281. package/lib/cjs/webchat/input-panel/textarea.d.ts +1 -1
  282. package/lib/cjs/webchat/input-panel/textarea.js +10 -5
  283. package/lib/cjs/webchat/input-panel/textarea.js.map +1 -1
  284. package/lib/cjs/webchat/message-list/index.js.map +1 -1
  285. package/lib/cjs/webchat/message-list/intro-message.js.map +1 -1
  286. package/lib/cjs/webchat/message-list/scroll-button.js +2 -1
  287. package/lib/cjs/webchat/message-list/scroll-button.js.map +1 -1
  288. package/lib/cjs/webchat/message-list/unread-messages-banner.d.ts +2 -1
  289. package/lib/cjs/webchat/message-list/unread-messages-banner.js.map +1 -1
  290. package/lib/cjs/webchat/replies/index.js +1 -1
  291. package/lib/cjs/webchat/replies/index.js.map +1 -1
  292. package/lib/cjs/webchat/session-view.js +0 -2
  293. package/lib/cjs/webchat/session-view.js.map +1 -1
  294. package/lib/cjs/webchat/theme/default-theme.d.ts +1 -1
  295. package/lib/cjs/webchat/theme/types.d.ts +1 -1
  296. package/lib/cjs/webchat/tracking.d.ts +1 -1
  297. package/lib/cjs/webchat/trigger-button/index.js +2 -0
  298. package/lib/cjs/webchat/trigger-button/index.js.map +1 -1
  299. package/lib/cjs/webchat/typing-indicator/index.d.ts +1 -2
  300. package/lib/cjs/webchat/typing-indicator/index.js.map +1 -1
  301. package/lib/cjs/webchat/utils.d.ts +1 -1
  302. package/lib/cjs/webchat/utils.js +2 -1
  303. package/lib/cjs/webchat/utils.js.map +1 -1
  304. package/lib/cjs/webchat/webchat-dev.d.ts +2 -3
  305. package/lib/cjs/webchat/webchat-dev.js +1 -2
  306. package/lib/cjs/webchat/webchat-dev.js.map +1 -1
  307. package/lib/cjs/webchat/webchat.d.ts +2 -3
  308. package/lib/cjs/webchat/webchat.js +72 -45
  309. package/lib/cjs/webchat/webchat.js.map +1 -1
  310. package/lib/cjs/webchat/webview/header.js.map +1 -1
  311. package/lib/cjs/webchat/webview/index.d.ts +1 -1
  312. package/lib/cjs/webchat/webview/index.js.map +1 -1
  313. package/lib/cjs/webchat/webview/styles.js.map +1 -1
  314. package/lib/cjs/webchat-app.d.ts +6 -6
  315. package/lib/cjs/webchat-app.js +25 -22
  316. package/lib/cjs/webchat-app.js.map +1 -1
  317. package/lib/cjs/webview-app.js +7 -4
  318. package/lib/cjs/webview-app.js.map +1 -1
  319. package/lib/esm/botonic-tester.js +0 -1
  320. package/lib/esm/botonic-tester.js.map +1 -1
  321. package/lib/esm/components/audio.d.ts +1 -1
  322. package/lib/esm/components/audio.js +2 -1
  323. package/lib/esm/components/audio.js.map +1 -1
  324. package/lib/esm/components/button/index.d.ts +1 -1
  325. package/lib/esm/components/button/index.js +5 -8
  326. package/lib/esm/components/button/index.js.map +1 -1
  327. package/lib/esm/components/buttons-disabler.d.ts +2 -2
  328. package/lib/esm/components/buttons-disabler.js +12 -6
  329. package/lib/esm/components/buttons-disabler.js.map +1 -1
  330. package/lib/esm/components/carousel.d.ts +1 -1
  331. package/lib/esm/components/carousel.js +5 -4
  332. package/lib/esm/components/carousel.js.map +1 -1
  333. package/lib/esm/components/custom-message.d.ts +1 -1
  334. package/lib/esm/components/custom-message.js +1 -2
  335. package/lib/esm/components/custom-message.js.map +1 -1
  336. package/lib/esm/components/document.d.ts +1 -1
  337. package/lib/esm/components/document.js +2 -1
  338. package/lib/esm/components/document.js.map +1 -1
  339. package/lib/esm/components/element.d.ts +1 -1
  340. package/lib/esm/components/element.js +7 -5
  341. package/lib/esm/components/element.js.map +1 -1
  342. package/lib/esm/components/handoff.d.ts +1 -1
  343. package/lib/esm/components/handoff.js +2 -2
  344. package/lib/esm/components/handoff.js.map +1 -1
  345. package/lib/esm/components/image.d.ts +1 -1
  346. package/lib/esm/components/image.js.map +1 -1
  347. package/lib/esm/components/index-types.d.ts +2 -2
  348. package/lib/esm/components/location.js +2 -3
  349. package/lib/esm/components/location.js.map +1 -1
  350. package/lib/esm/components/markdown.d.ts +1 -1
  351. package/lib/esm/components/markdown.js +24 -16
  352. package/lib/esm/components/markdown.js.map +1 -1
  353. package/lib/esm/components/message/index.js +25 -20
  354. package/lib/esm/components/message/index.js.map +1 -1
  355. package/lib/esm/components/message/message-feedback.js.map +1 -1
  356. package/lib/esm/components/message/message-footer.js.map +1 -1
  357. package/lib/esm/components/message/message-image.js.map +1 -1
  358. package/lib/esm/components/message/timestamps.js +1 -1
  359. package/lib/esm/components/message/timestamps.js.map +1 -1
  360. package/lib/esm/components/message-template.js +3 -4
  361. package/lib/esm/components/message-template.js.map +1 -1
  362. package/lib/esm/components/multichannel/facebook/facebook.js +3 -2
  363. package/lib/esm/components/multichannel/facebook/facebook.js.map +1 -1
  364. package/lib/esm/components/multichannel/multichannel-button.js +6 -6
  365. package/lib/esm/components/multichannel/multichannel-button.js.map +1 -1
  366. package/lib/esm/components/multichannel/multichannel-carousel.js +11 -7
  367. package/lib/esm/components/multichannel/multichannel-carousel.js.map +1 -1
  368. package/lib/esm/components/multichannel/multichannel-reply.js +3 -3
  369. package/lib/esm/components/multichannel/multichannel-reply.js.map +1 -1
  370. package/lib/esm/components/multichannel/multichannel-text.js +15 -9
  371. package/lib/esm/components/multichannel/multichannel-text.js.map +1 -1
  372. package/lib/esm/components/multichannel/multichannel-utils.js +8 -4
  373. package/lib/esm/components/multichannel/multichannel-utils.js.map +1 -1
  374. package/lib/esm/components/multichannel/multichannel.js +1 -2
  375. package/lib/esm/components/multichannel/multichannel.js.map +1 -1
  376. package/lib/esm/components/pic.js +1 -1
  377. package/lib/esm/components/pic.js.map +1 -1
  378. package/lib/esm/components/raw.js +3 -2
  379. package/lib/esm/components/raw.js.map +1 -1
  380. package/lib/esm/components/reply.d.ts +1 -1
  381. package/lib/esm/components/reply.js +6 -4
  382. package/lib/esm/components/reply.js.map +1 -1
  383. package/lib/esm/components/share-button.js +3 -4
  384. package/lib/esm/components/share-button.js.map +1 -1
  385. package/lib/esm/components/subtitle.d.ts +1 -1
  386. package/lib/esm/components/system-debug-trace/debug-message.d.ts +1 -1
  387. package/lib/esm/components/system-debug-trace/debug-message.js.map +1 -1
  388. package/lib/esm/components/system-debug-trace/events/ai-agent.d.ts +2 -2
  389. package/lib/esm/components/system-debug-trace/events/ai-agent.js.map +1 -1
  390. package/lib/esm/components/system-debug-trace/events/bot-action.d.ts +1 -1
  391. package/lib/esm/components/system-debug-trace/events/bot-action.js.map +1 -1
  392. package/lib/esm/components/system-debug-trace/events/components/guardrail-item.d.ts +1 -1
  393. package/lib/esm/components/system-debug-trace/events/components/sources-section.d.ts +2 -2
  394. package/lib/esm/components/system-debug-trace/events/components/sources-section.js +2 -1
  395. package/lib/esm/components/system-debug-trace/events/components/sources-section.js.map +1 -1
  396. package/lib/esm/components/system-debug-trace/events/conditional-channel.d.ts +1 -1
  397. package/lib/esm/components/system-debug-trace/events/conditional-channel.js.map +1 -1
  398. package/lib/esm/components/system-debug-trace/events/conditional-country.d.ts +1 -1
  399. package/lib/esm/components/system-debug-trace/events/conditional-country.js.map +1 -1
  400. package/lib/esm/components/system-debug-trace/events/conditional-custom.d.ts +1 -1
  401. package/lib/esm/components/system-debug-trace/events/conditional-custom.js.map +1 -1
  402. package/lib/esm/components/system-debug-trace/events/conditional-queue-status.d.ts +1 -1
  403. package/lib/esm/components/system-debug-trace/events/conditional-queue-status.js.map +1 -1
  404. package/lib/esm/components/system-debug-trace/events/fallback.d.ts +1 -1
  405. package/lib/esm/components/system-debug-trace/events/fallback.js.map +1 -1
  406. package/lib/esm/components/system-debug-trace/events/handoff-success.d.ts +1 -1
  407. package/lib/esm/components/system-debug-trace/events/handoff-success.js.map +1 -1
  408. package/lib/esm/components/system-debug-trace/events/keyword.d.ts +1 -1
  409. package/lib/esm/components/system-debug-trace/events/keyword.js.map +1 -1
  410. package/lib/esm/components/system-debug-trace/events/knowledge-base.d.ts +2 -2
  411. package/lib/esm/components/system-debug-trace/events/knowledge-base.js.map +1 -1
  412. package/lib/esm/components/system-debug-trace/events/redirect-flow.d.ts +1 -1
  413. package/lib/esm/components/system-debug-trace/events/redirect-flow.js.map +1 -1
  414. package/lib/esm/components/system-debug-trace/events/smart-intent.d.ts +1 -1
  415. package/lib/esm/components/system-debug-trace/events/smart-intent.js.map +1 -1
  416. package/lib/esm/components/system-debug-trace/events/webview-action-triggered.d.ts +1 -1
  417. package/lib/esm/components/system-debug-trace/events/webview-action-triggered.js.map +1 -1
  418. package/lib/esm/components/system-debug-trace/hooks/use-knowledge-base-info.d.ts +2 -2
  419. package/lib/esm/components/system-debug-trace/hooks/use-knowledge-base-info.js +2 -2
  420. package/lib/esm/components/system-debug-trace/hooks/use-knowledge-base-info.js.map +1 -1
  421. package/lib/esm/components/system-debug-trace/hooks/use-last-label-position.d.ts +1 -1
  422. package/lib/esm/components/system-debug-trace/hooks/use-last-label-position.js +6 -3
  423. package/lib/esm/components/system-debug-trace/hooks/use-last-label-position.js.map +1 -1
  424. package/lib/esm/components/system-debug-trace/icons/arrow-progress.d.ts +1 -1
  425. package/lib/esm/components/system-debug-trace/icons/arrow-progress.js +3 -1
  426. package/lib/esm/components/system-debug-trace/icons/arrow-progress.js.map +1 -1
  427. package/lib/esm/components/system-debug-trace/icons/brain.d.ts +1 -1
  428. package/lib/esm/components/system-debug-trace/icons/brain.js +3 -1
  429. package/lib/esm/components/system-debug-trace/icons/brain.js.map +1 -1
  430. package/lib/esm/components/system-debug-trace/icons/caret-down.d.ts +1 -1
  431. package/lib/esm/components/system-debug-trace/icons/caret-down.js +3 -1
  432. package/lib/esm/components/system-debug-trace/icons/caret-down.js.map +1 -1
  433. package/lib/esm/components/system-debug-trace/icons/caret-up.d.ts +1 -1
  434. package/lib/esm/components/system-debug-trace/icons/caret-up.js +3 -1
  435. package/lib/esm/components/system-debug-trace/icons/caret-up.js.map +1 -1
  436. package/lib/esm/components/system-debug-trace/icons/circle-check.d.ts +1 -1
  437. package/lib/esm/components/system-debug-trace/icons/circle-check.js +1 -0
  438. package/lib/esm/components/system-debug-trace/icons/circle-check.js.map +1 -1
  439. package/lib/esm/components/system-debug-trace/icons/code.d.ts +1 -1
  440. package/lib/esm/components/system-debug-trace/icons/code.js +1 -0
  441. package/lib/esm/components/system-debug-trace/icons/code.js.map +1 -1
  442. package/lib/esm/components/system-debug-trace/icons/file-pdf.d.ts +1 -1
  443. package/lib/esm/components/system-debug-trace/icons/file-pdf.js +3 -1
  444. package/lib/esm/components/system-debug-trace/icons/file-pdf.js.map +1 -1
  445. package/lib/esm/components/system-debug-trace/icons/file-word.d.ts +1 -1
  446. package/lib/esm/components/system-debug-trace/icons/file-word.js +3 -1
  447. package/lib/esm/components/system-debug-trace/icons/file-word.js.map +1 -1
  448. package/lib/esm/components/system-debug-trace/icons/hand.d.ts +1 -1
  449. package/lib/esm/components/system-debug-trace/icons/hand.js +3 -1
  450. package/lib/esm/components/system-debug-trace/icons/hand.js.map +1 -1
  451. package/lib/esm/components/system-debug-trace/icons/head-set.d.ts +1 -1
  452. package/lib/esm/components/system-debug-trace/icons/head-set.js +3 -1
  453. package/lib/esm/components/system-debug-trace/icons/head-set.js.map +1 -1
  454. package/lib/esm/components/system-debug-trace/icons/life-ring.d.ts +1 -1
  455. package/lib/esm/components/system-debug-trace/icons/life-ring.js +3 -1
  456. package/lib/esm/components/system-debug-trace/icons/life-ring.js.map +1 -1
  457. package/lib/esm/components/system-debug-trace/icons/link.d.ts +1 -1
  458. package/lib/esm/components/system-debug-trace/icons/link.js +3 -1
  459. package/lib/esm/components/system-debug-trace/icons/link.js.map +1 -1
  460. package/lib/esm/components/system-debug-trace/icons/quote-right.d.ts +1 -1
  461. package/lib/esm/components/system-debug-trace/icons/quote-right.js +3 -1
  462. package/lib/esm/components/system-debug-trace/icons/quote-right.js.map +1 -1
  463. package/lib/esm/components/system-debug-trace/icons/screwdriver-wrench.d.ts +1 -1
  464. package/lib/esm/components/system-debug-trace/icons/screwdriver-wrench.js +3 -1
  465. package/lib/esm/components/system-debug-trace/icons/screwdriver-wrench.js.map +1 -1
  466. package/lib/esm/components/system-debug-trace/icons/split.d.ts +1 -1
  467. package/lib/esm/components/system-debug-trace/icons/split.js +3 -1
  468. package/lib/esm/components/system-debug-trace/icons/split.js.map +1 -1
  469. package/lib/esm/components/system-debug-trace/icons/wand.d.ts +1 -1
  470. package/lib/esm/components/system-debug-trace/icons/wand.js +3 -1
  471. package/lib/esm/components/system-debug-trace/icons/wand.js.map +1 -1
  472. package/lib/esm/components/system-debug-trace/icons/window-restore.d.ts +1 -1
  473. package/lib/esm/components/system-debug-trace/icons/window-restore.js +3 -1
  474. package/lib/esm/components/system-debug-trace/icons/window-restore.js.map +1 -1
  475. package/lib/esm/components/system-debug-trace/index.js.map +1 -1
  476. package/lib/esm/components/system-debug-trace/types.d.ts +2 -2
  477. package/lib/esm/components/text.d.ts +1 -1
  478. package/lib/esm/components/text.js +8 -4
  479. package/lib/esm/components/text.js.map +1 -1
  480. package/lib/esm/components/title.d.ts +1 -1
  481. package/lib/esm/components/video.d.ts +1 -1
  482. package/lib/esm/components/video.js +2 -1
  483. package/lib/esm/components/video.js.map +1 -1
  484. package/lib/esm/components/webchat-settings.d.ts +3 -3
  485. package/lib/esm/components/webchat-settings.js +40 -35
  486. package/lib/esm/components/webchat-settings.js.map +1 -1
  487. package/lib/esm/components/whatsapp-button-list.js +1 -1
  488. package/lib/esm/components/whatsapp-button-list.js.map +1 -1
  489. package/lib/esm/components/whatsapp-catalog.js +1 -1
  490. package/lib/esm/components/whatsapp-catalog.js.map +1 -1
  491. package/lib/esm/components/whatsapp-cta-url-button.js +1 -1
  492. package/lib/esm/components/whatsapp-cta-url-button.js.map +1 -1
  493. package/lib/esm/components/whatsapp-interactive-media-carousel.js +1 -1
  494. package/lib/esm/components/whatsapp-interactive-media-carousel.js.map +1 -1
  495. package/lib/esm/components/whatsapp-media-carousel.js +1 -1
  496. package/lib/esm/components/whatsapp-media-carousel.js.map +1 -1
  497. package/lib/esm/components/whatsapp-product-carousel.js +1 -1
  498. package/lib/esm/components/whatsapp-product-carousel.js.map +1 -1
  499. package/lib/esm/components/whatsapp-product-list.js +1 -1
  500. package/lib/esm/components/whatsapp-product-list.js.map +1 -1
  501. package/lib/esm/components/whatsapp-product.js +1 -1
  502. package/lib/esm/components/whatsapp-product.js.map +1 -1
  503. package/lib/esm/components/whatsapp-template/index.js +1 -1
  504. package/lib/esm/components/whatsapp-template/index.js.map +1 -1
  505. package/lib/esm/contexts.d.ts +2 -2
  506. package/lib/esm/dev-app.js +4 -7
  507. package/lib/esm/dev-app.js.map +1 -1
  508. package/lib/esm/index-types.d.ts +7 -7
  509. package/lib/esm/message-utils.js +2 -1
  510. package/lib/esm/message-utils.js.map +1 -1
  511. package/lib/esm/msg-to-botonic.d.ts +0 -1
  512. package/lib/esm/msg-to-botonic.js +16 -15
  513. package/lib/esm/msg-to-botonic.js.map +1 -1
  514. package/lib/esm/react-bot.d.ts +2 -2
  515. package/lib/esm/util/dom.js +3 -3
  516. package/lib/esm/util/dom.js.map +1 -1
  517. package/lib/esm/util/environment.d.ts +1 -1
  518. package/lib/esm/util/environment.js +17 -12
  519. package/lib/esm/util/environment.js.map +1 -1
  520. package/lib/esm/util/error-boundary.js +4 -5
  521. package/lib/esm/util/error-boundary.js.map +1 -1
  522. package/lib/esm/util/logs.js +2 -1
  523. package/lib/esm/util/logs.js.map +1 -1
  524. package/lib/esm/util/objects.js +4 -3
  525. package/lib/esm/util/objects.js.map +1 -1
  526. package/lib/esm/util/react.js +6 -3
  527. package/lib/esm/util/react.js.map +1 -1
  528. package/lib/esm/util/regexs.js +3 -2
  529. package/lib/esm/util/regexs.js.map +1 -1
  530. package/lib/esm/util/webchat.d.ts +2 -2
  531. package/lib/esm/util/webchat.js +13 -7
  532. package/lib/esm/util/webchat.js.map +1 -1
  533. package/lib/esm/webchat/chat-area/index.js.map +1 -1
  534. package/lib/esm/webchat/components/common.js +0 -1
  535. package/lib/esm/webchat/components/common.js.map +1 -1
  536. package/lib/esm/webchat/components/conditional-animation.js +1 -2
  537. package/lib/esm/webchat/components/conditional-animation.js.map +1 -1
  538. package/lib/esm/webchat/components/opened-persistent-menu.js +4 -2
  539. package/lib/esm/webchat/components/opened-persistent-menu.js.map +1 -1
  540. package/lib/esm/webchat/context/index.d.ts +1 -1
  541. package/lib/esm/webchat/context/messages-reducer.d.ts +1 -1
  542. package/lib/esm/webchat/context/messages-reducer.js +2 -2
  543. package/lib/esm/webchat/context/messages-reducer.js.map +1 -1
  544. package/lib/esm/webchat/context/types.d.ts +5 -5
  545. package/lib/esm/webchat/context/use-webchat.d.ts +6 -6
  546. package/lib/esm/webchat/context/use-webchat.js.map +1 -1
  547. package/lib/esm/webchat/context/webchat-reducer.d.ts +1 -1
  548. package/lib/esm/webchat/cover-component/index.js.map +1 -1
  549. package/lib/esm/webchat/custom-messages/rating/icons/face-angry.d.ts +2 -1
  550. package/lib/esm/webchat/custom-messages/rating/icons/face-angry.js.map +1 -1
  551. package/lib/esm/webchat/custom-messages/rating/icons/face-frown.d.ts +2 -1
  552. package/lib/esm/webchat/custom-messages/rating/icons/face-frown.js.map +1 -1
  553. package/lib/esm/webchat/custom-messages/rating/icons/face-grin-beam.d.ts +2 -1
  554. package/lib/esm/webchat/custom-messages/rating/icons/face-grin-beam.js.map +1 -1
  555. package/lib/esm/webchat/custom-messages/rating/icons/face-meh.d.ts +2 -1
  556. package/lib/esm/webchat/custom-messages/rating/icons/face-meh.js.map +1 -1
  557. package/lib/esm/webchat/custom-messages/rating/icons/face-smile.d.ts +2 -1
  558. package/lib/esm/webchat/custom-messages/rating/icons/face-smile.js.map +1 -1
  559. package/lib/esm/webchat/custom-messages/rating/icons/star.d.ts +2 -1
  560. package/lib/esm/webchat/custom-messages/rating/icons/star.js.map +1 -1
  561. package/lib/esm/webchat/custom-messages/rating/index.js +2 -1
  562. package/lib/esm/webchat/custom-messages/rating/index.js.map +1 -1
  563. package/lib/esm/webchat/custom-messages/rating/rating-selector.js +5 -2
  564. package/lib/esm/webchat/custom-messages/rating/rating-selector.js.map +1 -1
  565. package/lib/esm/webchat/custom-messages/rating/smileys.d.ts +1 -1
  566. package/lib/esm/webchat/custom-messages/rating/smileys.js.map +1 -1
  567. package/lib/esm/webchat/custom-messages/rating/stars.d.ts +1 -1
  568. package/lib/esm/webchat/custom-messages/rating/stars.js.map +1 -1
  569. package/lib/esm/webchat/header/default-header.js +1 -1
  570. package/lib/esm/webchat/header/default-header.js.map +1 -1
  571. package/lib/esm/webchat/header/index.d.ts +1 -2
  572. package/lib/esm/webchat/header/index.js.map +1 -1
  573. package/lib/esm/webchat/hooks/use-device-adapter.d.ts +1 -1
  574. package/lib/esm/webchat/hooks/use-device-adapter.js +8 -5
  575. package/lib/esm/webchat/hooks/use-device-adapter.js.map +1 -1
  576. package/lib/esm/webchat/hooks/use-scroll-to-bottom.js +4 -2
  577. package/lib/esm/webchat/hooks/use-scroll-to-bottom.js.map +1 -1
  578. package/lib/esm/webchat/hooks/use-scrollbar-controller.js +15 -11
  579. package/lib/esm/webchat/hooks/use-scrollbar-controller.js.map +1 -1
  580. package/lib/esm/webchat/hooks/use-typing.d.ts +2 -2
  581. package/lib/esm/webchat/hooks/use-typing.js +11 -6
  582. package/lib/esm/webchat/hooks/use-typing.js.map +1 -1
  583. package/lib/esm/webchat/hooks/use-virtual-keyboard-detection.d.ts +1 -1
  584. package/lib/esm/webchat/hooks/use-virtual-keyboard-detection.js +3 -5
  585. package/lib/esm/webchat/hooks/use-virtual-keyboard-detection.js.map +1 -1
  586. package/lib/esm/webchat/hooks/use-webchat-dimensions.js +5 -4
  587. package/lib/esm/webchat/hooks/use-webchat-dimensions.js.map +1 -1
  588. package/lib/esm/webchat/index-types.d.ts +1 -1
  589. package/lib/esm/webchat/input-panel/attachment.js.map +1 -1
  590. package/lib/esm/webchat/input-panel/emoji-picker.js +2 -0
  591. package/lib/esm/webchat/input-panel/emoji-picker.js.map +1 -1
  592. package/lib/esm/webchat/input-panel/index.d.ts +1 -1
  593. package/lib/esm/webchat/input-panel/index.js +4 -2
  594. package/lib/esm/webchat/input-panel/index.js.map +1 -1
  595. package/lib/esm/webchat/input-panel/persistent-menu.js +2 -0
  596. package/lib/esm/webchat/input-panel/persistent-menu.js.map +1 -1
  597. package/lib/esm/webchat/input-panel/send-button.js +2 -0
  598. package/lib/esm/webchat/input-panel/send-button.js.map +1 -1
  599. package/lib/esm/webchat/input-panel/textarea.d.ts +1 -1
  600. package/lib/esm/webchat/input-panel/textarea.js +10 -5
  601. package/lib/esm/webchat/input-panel/textarea.js.map +1 -1
  602. package/lib/esm/webchat/message-list/index.js.map +1 -1
  603. package/lib/esm/webchat/message-list/intro-message.js.map +1 -1
  604. package/lib/esm/webchat/message-list/scroll-button.js +2 -1
  605. package/lib/esm/webchat/message-list/scroll-button.js.map +1 -1
  606. package/lib/esm/webchat/message-list/unread-messages-banner.d.ts +2 -1
  607. package/lib/esm/webchat/message-list/unread-messages-banner.js.map +1 -1
  608. package/lib/esm/webchat/replies/index.js +1 -1
  609. package/lib/esm/webchat/replies/index.js.map +1 -1
  610. package/lib/esm/webchat/session-view.js +0 -2
  611. package/lib/esm/webchat/session-view.js.map +1 -1
  612. package/lib/esm/webchat/theme/default-theme.d.ts +1 -1
  613. package/lib/esm/webchat/theme/types.d.ts +1 -1
  614. package/lib/esm/webchat/tracking.d.ts +1 -1
  615. package/lib/esm/webchat/trigger-button/index.js +2 -0
  616. package/lib/esm/webchat/trigger-button/index.js.map +1 -1
  617. package/lib/esm/webchat/typing-indicator/index.d.ts +1 -2
  618. package/lib/esm/webchat/typing-indicator/index.js.map +1 -1
  619. package/lib/esm/webchat/utils.d.ts +1 -1
  620. package/lib/esm/webchat/utils.js +2 -1
  621. package/lib/esm/webchat/utils.js.map +1 -1
  622. package/lib/esm/webchat/webchat-dev.d.ts +2 -3
  623. package/lib/esm/webchat/webchat-dev.js +1 -2
  624. package/lib/esm/webchat/webchat-dev.js.map +1 -1
  625. package/lib/esm/webchat/webchat.d.ts +2 -3
  626. package/lib/esm/webchat/webchat.js +72 -45
  627. package/lib/esm/webchat/webchat.js.map +1 -1
  628. package/lib/esm/webchat/webview/header.js.map +1 -1
  629. package/lib/esm/webchat/webview/index.d.ts +1 -1
  630. package/lib/esm/webchat/webview/index.js.map +1 -1
  631. package/lib/esm/webchat/webview/styles.js.map +1 -1
  632. package/lib/esm/webchat-app.d.ts +6 -6
  633. package/lib/esm/webchat-app.js +25 -22
  634. package/lib/esm/webchat-app.js.map +1 -1
  635. package/lib/esm/webview-app.js +7 -4
  636. package/lib/esm/webview-app.js.map +1 -1
  637. package/package.json +5 -5
  638. package/src/botonic-tester.jsx +0 -1
  639. package/src/components/audio.tsx +3 -3
  640. package/src/components/button/index.tsx +7 -10
  641. package/src/components/buttons-disabler.ts +16 -8
  642. package/src/components/carousel.tsx +8 -8
  643. package/src/components/custom-message.tsx +2 -3
  644. package/src/components/document.tsx +4 -3
  645. package/src/components/element.tsx +10 -6
  646. package/src/components/handoff.jsx +2 -2
  647. package/src/components/image.tsx +2 -2
  648. package/src/components/index-types.ts +2 -2
  649. package/src/components/location.jsx +0 -1
  650. package/src/components/markdown.js +26 -22
  651. package/src/components/message/index.jsx +72 -64
  652. package/src/components/message/message-feedback.tsx +1 -1
  653. package/src/components/message/message-footer.tsx +1 -1
  654. package/src/components/message/message-image.tsx +1 -1
  655. package/src/components/message/timestamps.tsx +2 -1
  656. package/src/components/message-template.jsx +1 -2
  657. package/src/components/multichannel/facebook/facebook.jsx +3 -3
  658. package/src/components/multichannel/multichannel-button.jsx +7 -5
  659. package/src/components/multichannel/multichannel-carousel.jsx +16 -6
  660. package/src/components/multichannel/multichannel-reply.jsx +4 -2
  661. package/src/components/multichannel/multichannel-text.jsx +17 -9
  662. package/src/components/multichannel/multichannel-utils.ts +12 -4
  663. package/src/components/multichannel/multichannel.jsx +1 -1
  664. package/src/components/pic.tsx +1 -2
  665. package/src/components/raw.jsx +3 -2
  666. package/src/components/reply.tsx +11 -7
  667. package/src/components/share-button.jsx +1 -2
  668. package/src/components/subtitle.tsx +1 -1
  669. package/src/components/system-debug-trace/debug-message.tsx +3 -2
  670. package/src/components/system-debug-trace/events/ai-agent.tsx +3 -3
  671. package/src/components/system-debug-trace/events/bot-action.tsx +1 -2
  672. package/src/components/system-debug-trace/events/components/guardrail-item.tsx +1 -1
  673. package/src/components/system-debug-trace/events/components/sources-section.tsx +5 -3
  674. package/src/components/system-debug-trace/events/conditional-channel.tsx +1 -2
  675. package/src/components/system-debug-trace/events/conditional-country.tsx +1 -2
  676. package/src/components/system-debug-trace/events/conditional-custom.tsx +1 -2
  677. package/src/components/system-debug-trace/events/conditional-queue-status.tsx +1 -2
  678. package/src/components/system-debug-trace/events/fallback.tsx +1 -2
  679. package/src/components/system-debug-trace/events/handoff-success.tsx +2 -2
  680. package/src/components/system-debug-trace/events/keyword.tsx +1 -2
  681. package/src/components/system-debug-trace/events/knowledge-base.tsx +3 -3
  682. package/src/components/system-debug-trace/events/redirect-flow.tsx +1 -2
  683. package/src/components/system-debug-trace/events/smart-intent.tsx +1 -2
  684. package/src/components/system-debug-trace/events/webview-action-triggered.tsx +1 -2
  685. package/src/components/system-debug-trace/hooks/use-knowledge-base-info.tsx +9 -5
  686. package/src/components/system-debug-trace/hooks/use-last-label-position.ts +10 -4
  687. package/src/components/system-debug-trace/icons/arrow-progress.tsx +2 -3
  688. package/src/components/system-debug-trace/icons/brain.tsx +2 -3
  689. package/src/components/system-debug-trace/icons/caret-down.tsx +2 -3
  690. package/src/components/system-debug-trace/icons/caret-up.tsx +2 -3
  691. package/src/components/system-debug-trace/icons/circle-check.tsx +2 -3
  692. package/src/components/system-debug-trace/icons/code.tsx +2 -3
  693. package/src/components/system-debug-trace/icons/file-pdf.tsx +2 -3
  694. package/src/components/system-debug-trace/icons/file-word.tsx +2 -3
  695. package/src/components/system-debug-trace/icons/hand.tsx +2 -3
  696. package/src/components/system-debug-trace/icons/head-set.tsx +2 -3
  697. package/src/components/system-debug-trace/icons/life-ring.tsx +2 -3
  698. package/src/components/system-debug-trace/icons/link.tsx +2 -3
  699. package/src/components/system-debug-trace/icons/quote-right.tsx +2 -3
  700. package/src/components/system-debug-trace/icons/screwdriver-wrench.tsx +2 -3
  701. package/src/components/system-debug-trace/icons/split.tsx +2 -3
  702. package/src/components/system-debug-trace/icons/wand.tsx +2 -3
  703. package/src/components/system-debug-trace/icons/window-restore.tsx +2 -3
  704. package/src/components/system-debug-trace/index.tsx +0 -1
  705. package/src/components/system-debug-trace/types.ts +2 -2
  706. package/src/components/text.tsx +11 -6
  707. package/src/components/title.tsx +1 -1
  708. package/src/components/video.tsx +3 -3
  709. package/src/components/webchat-settings.tsx +51 -40
  710. package/src/components/whatsapp-button-list.tsx +1 -2
  711. package/src/components/whatsapp-catalog.tsx +1 -2
  712. package/src/components/whatsapp-cta-url-button.tsx +1 -2
  713. package/src/components/whatsapp-interactive-media-carousel.tsx +5 -4
  714. package/src/components/whatsapp-media-carousel.tsx +1 -2
  715. package/src/components/whatsapp-product-carousel.tsx +1 -2
  716. package/src/components/whatsapp-product-list.tsx +1 -2
  717. package/src/components/whatsapp-product.tsx +1 -2
  718. package/src/components/whatsapp-template/index.tsx +1 -2
  719. package/src/contexts.tsx +2 -2
  720. package/src/dev-app.jsx +4 -6
  721. package/src/index-types.ts +9 -9
  722. package/src/message-utils.js +3 -1
  723. package/src/msg-to-botonic.jsx +19 -20
  724. package/src/react-bot.tsx +2 -2
  725. package/src/util/dom.js +3 -3
  726. package/src/util/environment.js +18 -8
  727. package/src/util/error-boundary.jsx +4 -4
  728. package/src/util/logs.js +2 -1
  729. package/src/util/objects.js +5 -3
  730. package/src/util/react.js +8 -3
  731. package/src/util/regexs.js +4 -2
  732. package/src/util/webchat.ts +20 -9
  733. package/src/webchat/chat-area/index.tsx +1 -1
  734. package/src/webchat/components/common.jsx +0 -1
  735. package/src/webchat/components/conditional-animation.jsx +1 -1
  736. package/src/webchat/components/opened-persistent-menu.jsx +4 -2
  737. package/src/webchat/context/index.tsx +3 -3
  738. package/src/webchat/context/messages-reducer.ts +3 -5
  739. package/src/webchat/context/types.ts +5 -5
  740. package/src/webchat/context/use-webchat.ts +11 -6
  741. package/src/webchat/context/webchat-reducer.ts +1 -1
  742. package/src/webchat/cover-component/index.tsx +1 -1
  743. package/src/webchat/custom-messages/rating/icons/face-angry.tsx +2 -3
  744. package/src/webchat/custom-messages/rating/icons/face-frown.tsx +2 -3
  745. package/src/webchat/custom-messages/rating/icons/face-grin-beam.tsx +2 -3
  746. package/src/webchat/custom-messages/rating/icons/face-meh.tsx +2 -3
  747. package/src/webchat/custom-messages/rating/icons/face-smile.tsx +2 -3
  748. package/src/webchat/custom-messages/rating/icons/star.tsx +2 -3
  749. package/src/webchat/custom-messages/rating/index.tsx +7 -4
  750. package/src/webchat/custom-messages/rating/rating-selector.tsx +7 -3
  751. package/src/webchat/custom-messages/rating/smileys.tsx +1 -3
  752. package/src/webchat/custom-messages/rating/stars.tsx +1 -3
  753. package/src/webchat/header/default-header.tsx +2 -2
  754. package/src/webchat/header/index.tsx +1 -1
  755. package/src/webchat/hooks/use-device-adapter.ts +17 -4
  756. package/src/webchat/hooks/use-scroll-to-bottom.ts +6 -2
  757. package/src/webchat/hooks/use-scrollbar-controller.ts +18 -11
  758. package/src/webchat/hooks/use-typing.ts +14 -8
  759. package/src/webchat/hooks/use-virtual-keyboard-detection.ts +4 -5
  760. package/src/webchat/hooks/use-webchat-dimensions.ts +7 -5
  761. package/src/webchat/index-types.ts +1 -1
  762. package/src/webchat/input-panel/attachment.tsx +1 -1
  763. package/src/webchat/input-panel/emoji-picker.tsx +3 -1
  764. package/src/webchat/input-panel/index.tsx +8 -3
  765. package/src/webchat/input-panel/opened-emoji-picker.tsx +1 -1
  766. package/src/webchat/input-panel/persistent-menu.tsx +3 -1
  767. package/src/webchat/input-panel/send-button.tsx +3 -1
  768. package/src/webchat/input-panel/textarea.tsx +16 -7
  769. package/src/webchat/message-list/index.tsx +1 -1
  770. package/src/webchat/message-list/intro-message.tsx +1 -1
  771. package/src/webchat/message-list/scroll-button.tsx +8 -11
  772. package/src/webchat/message-list/unread-messages-banner.tsx +3 -1
  773. package/src/webchat/replies/index.tsx +2 -2
  774. package/src/webchat/session-view.jsx +0 -2
  775. package/src/webchat/theme/default-theme.ts +1 -1
  776. package/src/webchat/theme/types.ts +1 -1
  777. package/src/webchat/tracking.ts +2 -2
  778. package/src/webchat/trigger-button/index.tsx +3 -1
  779. package/src/webchat/typing-indicator/index.tsx +1 -1
  780. package/src/webchat/utils.ts +4 -2
  781. package/src/webchat/webchat-dev.jsx +1 -2
  782. package/src/webchat/webchat.tsx +99 -49
  783. package/src/webchat/webview/header.tsx +1 -1
  784. package/src/webchat/webview/index.tsx +7 -6
  785. package/src/webchat/webview/styles.ts +1 -1
  786. package/src/webchat-app.tsx +46 -38
  787. package/src/webview-app.tsx +12 -6
@@ -13,7 +13,7 @@ const Textarea = ({ host, textareaRef, sendChatEvent, sendTextAreaText, }) => {
13
13
  const { webchatState, setIsInputFocused } = (0, react_1.useContext)(context_1.WebchatContext);
14
14
  (0, hooks_1.useDeviceAdapter)(host, webchatState.isWebchatOpen);
15
15
  let isTyping = false;
16
- let typingTimeout;
16
+ let typingTimeout = null;
17
17
  const persistentMenuOptions = webchatState.theme.userInput?.persistentMenu;
18
18
  const placeholder = webchatState.theme.userInput?.box?.placeholder;
19
19
  const userInputBoxStyle = webchatState.theme.userInput?.box?.style;
@@ -25,8 +25,9 @@ const Textarea = ({ host, textareaRef, sendChatEvent, sendTextAreaText, }) => {
25
25
  }
26
26
  };
27
27
  const onKeyUp = () => {
28
- if (!textareaRef.current)
28
+ if (!textareaRef.current) {
29
29
  return;
30
+ }
30
31
  if (textareaRef.current.value === '') {
31
32
  stopTyping();
32
33
  return;
@@ -38,10 +39,12 @@ const Textarea = ({ host, textareaRef, sendChatEvent, sendTextAreaText, }) => {
38
39
  };
39
40
  const clearTimeoutWithReset = (reset) => {
40
41
  const waitTime = 20 * 1000;
41
- if (typingTimeout)
42
+ if (typingTimeout) {
42
43
  clearTimeout(typingTimeout);
43
- if (reset)
44
+ }
45
+ if (reset) {
44
46
  typingTimeout = setTimeout(stopTyping, waitTime);
47
+ }
45
48
  };
46
49
  const startTyping = () => {
47
50
  isTyping = true;
@@ -58,7 +61,9 @@ const Textarea = ({ host, textareaRef, sendChatEvent, sendTextAreaText, }) => {
58
61
  const handleBlur = () => {
59
62
  setIsInputFocused(false);
60
63
  };
61
- return ((0, jsx_runtime_1.jsx)(styles_1.TextAreaContainer, { children: (0, jsx_runtime_1.jsx)(react_textarea_autosize_1.default, { ref: (ref) => (textareaRef.current = ref), onFocus: handleFocus, onBlur: handleBlur, name: 'text', maxRows: 4, wrap: 'soft', maxLength: 1000, placeholder: placeholder, autoFocus: false, onKeyDown: e => onKeyDown(e), onKeyUp: onKeyUp, style: {
64
+ return ((0, jsx_runtime_1.jsx)(styles_1.TextAreaContainer, { children: (0, jsx_runtime_1.jsx)(react_textarea_autosize_1.default, { ref: (ref) => {
65
+ textareaRef.current = ref;
66
+ }, onFocus: handleFocus, onBlur: handleBlur, name: 'text', maxRows: 4, wrap: 'soft', maxLength: 1000, placeholder: placeholder, autoFocus: false, onKeyDown: e => onKeyDown(e), onKeyUp: onKeyUp, style: {
62
67
  display: 'flex',
63
68
  fontSize: 16,
64
69
  width: '100%',
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../../src/webchat/input-panel/textarea.tsx"],"names":[],"mappings":";;;;;AAAA,iCAAyC;AACzC,8FAAsD;AAGtD,mDAA0C;AAC1C,mDAAsD;AACtD,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C,0BAAiB,cAChB,uBAAC,iCAAgB,IACf,GAAG,EAAE,CAAC,GAAwB,EAAE,EAAE;gBAChC,WAAW,CAAC,OAAO,GAAG,GAAG,CAAA;YAC3B,CAAC,EACD,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,CAAC,EACV,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,IAAI,EACf,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,EAChB,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAC5B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM;gBACf,QAAQ,EAAE,EAAE;gBACZ,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE,MAAM;gBACd,QAAQ,EAAE,MAAM;gBAChB,OAAO,EAAE,MAAM;gBACf,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBAC3C,UAAU,EAAE,SAAS;gBACrB,GAAG,iBAAiB;aACrB,GACD,GACgB,CACrB,CAAA;AACH,CAAC,CAAA;AAxGY,QAAA,QAAQ,YAwGpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/webchat/message-list/index.tsx"],"names":[],"mappings":";;;;;AACA,uDAAsE;AAEtE,+CAAuC;AACvC,mDAA2C;AAC3C,mDAAsD;AACtD,4CAAiD;AACjD,mFAAiD;AACjD,mDAA8C;AAC9C,mDAA8C;AAC9C,qCAAkE;AAClE,qEAA+D;AAC/D,2DAAsD;AACtD,MAAM,cAAc,GAAG,GAAG,CAAA;AAC1B,MAAM,gBAAgB,GAA0B;IAC9C,KAAK,EAAE,KAAK;CACb,CAAA;AACD,MAAM,mBAAmB,GAA0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CAAC,MAAM,CAAA;wBAE9C,OAAO,CACL,wBAAC,eAAK,CAAC,QAAQ,eACb,wBAAC,yBAAgB,IACf,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,iBAAK,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAK,CAAC,OAAO,0BACnC,gCAAgC,aAErD,wBAAwB,CAAC,SAAS,CAAC,IAAI,CACtC,uBAAC,6CAAoB,IACnB,uBAAuB,EAAE,uBAAuB,GAChD,CACH,EACA,gBAAgB,IACA,EAClB,KAAK,KAAK,YAAY,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,IAAI,CACvD,gCACE,GAAG,EAAE,cAAc,EACnB,KAAK,EAAE;wCACL,OAAO,EAAE,EAAE;qCACZ,GACI,CACR,KAnBkB,SAAS,CAoBb,CAClB,CAAA;oBACH,CAAC,CAAC,EACD,YAAY,CAAC,MAAM,IAAI,uBAAC,0BAAe,IAAC,GAAG,EAAE,SAAS,GAAI,IACrC,EACvB,gBAAgB,IAAI,uBAAC,4BAAY,IAAC,WAAW,EAAE,oBAAoB,GAAI,IACvE,CACJ,CAAA;AACH,CAAC,CAAA;AA1JY,QAAA,kBAAkB,sBA0J9B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/webchat/message-list/index.tsx"],"names":[],"mappings":";;;;;AAAA,uDAAsE;AAEtE,+CAAuC;AACvC,mDAA2C;AAC3C,mDAAsD;AACtD,4CAAiD;AACjD,mFAAiD;AACjD,mDAA8C;AAC9C,mDAA8C;AAC9C,qCAAkE;AAClE,qEAA+D;AAC/D,2DAAsD;AAEtD,MAAM,cAAc,GAAG,GAAG,CAAA;AAC1B,MAAM,gBAAgB,GAA0B;IAC9C,KAAK,EAAE,KAAK;CACb,CAAA;AACD,MAAM,mBAAmB,GAA0B;IACjD,KAAK,EAAE,QAAQ;CAChB,CAAA;AAEM,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,EACJ,YAAY,EACZ,mBAAmB,EACn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AAC,iBAAK,CAAC,cAAc,CAAC,CAAC,CAAC,iBAAK,CAAC,OAAO,0BACnC,gCAAgC,aAErD,wBAAwB,CAAC,SAAS,CAAC,IAAI,CACtC,uBAAC,6CAAoB,IACnB,uBAAuB,EAAE,uBAAuB,GAChD,CACH,EACA,gBAAgB,IACA,EAClB,KAAK,KAAK,YAAY,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,IAAI,CACvD,gCACE,GAAG,EAAE,cAAc,EACnB,KAAK,EAAE;wCACL,OAAO,EAAE,EAAE;qCACZ,GACI,CACR,KAnBkB,SAAS,CAoBb,CAClB,CAAA;oBACH,CAAC,CAAC,EACD,YAAY,CAAC,MAAM,IAAI,uBAAC,0BAAe,IAAC,GAAG,EAAE,SAAS,GAAI,IACrC,EACvB,gBAAgB,IAAI,uBAAC,4BAAY,IAAC,WAAW,EAAE,oBAAoB,GAAI,IACvE,CACJ,CAAA;AACH,CAAC,CAAA;AA1JY,QAAA,kBAAkB,sBA0J9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"intro-message.js","sourceRoot":"","sources":["../../../../src/webchat/message-list/intro-message.tsx"],"names":[],"mappings":";;;;AAAA,iCAAyC;AAEzC,+CAAyC;AACzC,gDAA0C;AAC1C,wDAAqD;AACrD,4CAAqD;AACrD,mDAAsD;AACtD,qCAA4C;AAErC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAA,kBAAU,EAAC,wBAAc,CAAC,CAAA;IAEvD,MAAM,iBAAiB,GAAG,gBAAgB,CACxC,mBAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAC3C,CAAA;IACD,MAAM,WAAW,GAAG,gBAAgB,CAAC,mBAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC3E,MAAM,UAAU,GAAG,gBAAgB,CAAC,mBAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAA;IACzE,MAAM,UAAU,GAAG,gBAAgB,CA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IAAI,CACjC,uBAAC,0BAAiB,IAChB,KAAK,EAAE;YACL,GAAG,UAAU;SACd,EACD,GAAG,EAAE,IAAA,0BAAY,EAAC,UAAU,CAAC,GAC7B,CACH,CAAA;IAED,OAAO,WAAW,IAAI,YAAY,CAAC,CAAC,CAAC,CACnC,uBAAC,0BAAkB,IACjB,SAAS,EAAE,iBAAiB,EAC5B,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,uBAAC,aAAI,cAAE,QAAQ,GAAQ,YAE3C,WAAW,CAAC,CAAC,CAAC,uBAAC,WAAW,KAAG,CAAC,CAAC,CAAC,YAAY,GAC1B,CACtB,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC,CAAA;AA3BY,QAAA,YAAY,gBA2BxB"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ScrollButton = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
+ /** biome-ignore-all lint/a11y/useAltText: This is a SVG icon */
6
7
  const arrow_scroll_down_svg_1 = tslib_1.__importDefault(require("../../assets/arrow-scroll-down.svg"));
7
8
  const environment_1 = require("../../util/environment");
8
9
  const styles_1 = require("./styles");
@@ -11,7 +12,7 @@ const use_notifications_1 = require("./use-notifications");
11
12
  const ScrollButton = ({ handleClick, }) => {
12
13
  const { CustomScrollButton, scrollButtonEnabled } = (0, use_notifications_1.useNotifications)();
13
14
  const show = (0, use_debounce_1.useDebounce)();
14
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: scrollButtonEnabled && show ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: CustomScrollButton ? ((0, jsx_runtime_1.jsx)(CustomScrollButton, { handleScrollToBottom: handleClick })) : ((0, jsx_runtime_1.jsx)(styles_1.ContainerScrollButton, { onClick: handleClick, children: (0, jsx_runtime_1.jsx)("img", { src: (0, environment_1.resolveImage)(arrow_scroll_down_svg_1.default) }) })) })) : null }));
15
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: scrollButtonEnabled && show ? (CustomScrollButton ? ((0, jsx_runtime_1.jsx)(CustomScrollButton, { handleScrollToBottom: handleClick })) : ((0, jsx_runtime_1.jsx)(styles_1.ContainerScrollButton, { onClick: handleClick, children: (0, jsx_runtime_1.jsx)("img", { src: (0, environment_1.resolveImage)(arrow_scroll_down_svg_1.default) }) }))) : null }));
15
16
  };
16
17
  exports.ScrollButton = ScrollButton;
17
18
  //# sourceMappingURL=scroll-button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-button.js","sourceRoot":"","sources":["../../../../src/webchat/message-list/scroll-button.tsx"],"names":[],"mappings":";;;;;AAEA,uGAAgE;AAChE,wDAAqD;AACrD,qCAAgD;AAChD,iDAA4C;AAC5C,2DAAsD;AAM/C,MAAM,YAAY,GAAG,CAAC,EAC3B,WAAW,GACO,EAAe,EAAE;IACnC,MAAM,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,GAAG,IAAA,oCAAgB,GAAE,CAAA;IAEtE,MAAM,IAAI,GAAG,IAAA,0BAAW,GAAE,CAAA;IAE1B,OAAO,CACL,2DACG,mBAAmB,IAAI,IAAI,CAAC,CAAC,CAAC,CAC7B,2DACG,kBAAkB,CAAC,CAAC,CAAC,CACpB,uBAAC,kBAAkB,IAAC,oBAAoB,EAAE,WAAW,GAAI,CAC1D,CAAC,CAAC,CAAC,CACF,uBAAC,8BAAqB,IAAC,OAAO,EAAE,WAAW,YACzC,gCAAK,GAAG,EAAE,IAAA,0BAAY,EAAC,+BAAe,CAAC,GAAI,GACrB,CACzB,GACA,CACJ,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,YAAY,gBAsBxB"}
1
+ {"version":3,"file":"scroll-button.js","sourceRoot":"","sources":["../../../../src/webchat/message-list/scroll-button.tsx"],"names":[],"mappings":";;;;;AAAA,gEAAgE;AAChE,uGAAgE;AAChE,wDAAqD;AACrD,qCAAgD;AAChD,iDAA4C;AAC5C,2DAAsD;AAM/C,MAAM,YAAY,GAAG,CAAC,EAC3B,WAAW,GACO,EAAe,EAAE;IACnC,MAAM,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,GAAG,IAAA,oCAAgB,GAAE,CAAA;IAEtE,MAAM,IAAI,GAAG,IAAA,0BAAW,GAAE,CAAA;IAE1B,OAAO,CACL,2DACG,mBAAmB,IAAI,IAAI,CAAC,CAAC,CAAC,CAC7B,kBAAkB,CAAC,CAAC,CAAC,CACnB,uBAAC,kBAAkB,IAAC,oBAAoB,EAAE,WAAW,GAAI,CAC1D,CAAC,CAAC,CAAC,CACF,uBAAC,8BAAqB,IAAC,OAAO,EAAE,WAAW,YACzC,gCAAK,GAAG,EAAE,IAAA,0BAAY,EAAC,+BAAe,CAAC,GAAI,GACrB,CACzB,CACF,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,YAAY,gBAoBxB"}
@@ -1,4 +1,5 @@
1
- import React from 'react';
1
+ /** biome-ignore-all lint/a11y/useAltText: we need to use alt text for the unread messages banner */
2
+ import type React from 'react';
2
3
  interface UnreadMessagesBannerProps {
3
4
  unreadMessagesBannerRef: React.RefObject<HTMLDivElement>;
4
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"unread-messages-banner.js","sourceRoot":"","sources":["../../../../src/webchat/message-list/unread-messages-banner.tsx"],"names":[],"mappings":";;;;;AAAA,iCAAyC;AAEzC,yFAAmD;AACnD,wDAAqD;AACrD,mDAAsD;AACtD,qCAAwD;AACxD,2DAAsD;AAM/C,MAAM,oBAAoB,GAAG,CAAC,EACnC,uBAAuB,GACG,EAAe,EAAE;IAC3C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,kBAAU,EAAC,wBAAc,CAAC,CAAA;IAEnD,MAAM,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,UAAU,EAAE,GACpE,IAAA,oCAAgB,GAAE,CAAA;IAEpB,OAAO,CACL,2DACG,oBAAoB,CAAC,CAAC,CAAC,CACtB,gCAAK,GAAG,EAAE,uBAAuB,YAC9B,0BAA0B,CAAC,CAAC,CAAC,CAC5B,uBAAC,0BAA0B,KAAG,CAC/B,CAAC,CAAC,CAAC,CACF,wBAAC,sCAA6B,eAC5B,gCAAK,GAAG,EAAE,IAAA,0BAAY,EAAC,wBAAS,CAAC,GAAI,EACpC,YAAY,CAAC,iBAAiB,OAAG,UAAU,IACd,CACjC,GACG,CACP,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAA;AACH,CAAC,CAAA;AAxBY,QAAA,oBAAoB,wBAwBhC"}
1
+ {"version":3,"file":"unread-messages-banner.js","sourceRoot":"","sources":["../../../../src/webchat/message-list/unread-messages-banner.tsx"],"names":[],"mappings":";;;;;AAEA,iCAAkC;AAElC,yFAAmD;AACnD,wDAAqD;AACrD,mDAAsD;AACtD,qCAAwD;AACxD,2DAAsD;AAM/C,MAAM,oBAAoB,GAAG,CAAC,EACnC,uBAAuB,GACG,EAAe,EAAE;IAC3C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,kBAAU,EAAC,wBAAc,CAAC,CAAA;IAEnD,MAAM,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,UAAU,EAAE,GACpE,IAAA,oCAAgB,GAAE,CAAA;IAEpB,OAAO,CACL,2DACG,oBAAoB,CAAC,CAAC,CAAC,CACtB,gCAAK,GAAG,EAAE,uBAAuB,YAC9B,0BAA0B,CAAC,CAAC,CAAC,CAC5B,uBAAC,0BAA0B,KAAG,CAC/B,CAAC,CAAC,CAAC,CACF,wBAAC,sCAA6B,eAC5B,gCAAK,GAAG,EAAE,IAAA,0BAAY,EAAC,wBAAS,CAAC,GAAI,EACpC,YAAY,CAAC,iBAAiB,OAAG,UAAU,IACd,CACjC,GACG,CACP,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAA;AACH,CAAC,CAAA;AAxBY,QAAA,oBAAoB,wBAwBhC"}
@@ -24,7 +24,7 @@ const WebchatReplies = () => {
24
24
  options[getThemeProperty(constants_1.WEBCHAT.CUSTOM_PROPERTIES.alignReplies)];
25
25
  }
26
26
  return ((0, jsx_runtime_1.jsx)(styles_1.ScrollableReplies, { children: (0, jsx_runtime_1.jsx)(styles_1.RepliesContainer, { id: constants_2.BotonicContainerId.RepliesContainer, ref: repliesRef, className: 'replies-container', justify: justifyContent, wrap: flexWrap, children: webchatState.replies?.map((reply, i) => (
27
- // @ts-ignore TODO: In this point reply is the the component to render
27
+ // @ts-expect-error TODO: In this point reply is the the component to render
28
28
  (0, jsx_runtime_1.jsx)(styles_1.ReplyContainer, { children: reply }, `reply-${i}`))) }) }));
29
29
  };
30
30
  exports.WebchatReplies = WebchatReplies;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/webchat/replies/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAAyC;AAEzC,+CAAyC;AACzC,mDAAsD;AACtD,4CAAiD;AACjD,qCAA8E;AAE9E,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,UAAU;CAClB,CAAA;AAEM,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,GAClD,IAAA,kBAAU,EAAC,wBAAc,CAAC,CAAA;IAE5B,IAAI,cAAc,GAAG,QAAQ,CAAA;IAC7B,MAAM,QAAQ,GAAG,gBAAgB,CAC/B,mBAAO,CAAC,iBAAiB,CAAC,WAAW,EACrC,MAAM,CACP,CAAA;IAED,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC1B,cAAc,GAAG,YAAY,CAAA;IAC/B,CAAC;SAAM,IAAI,gBAAgB,CAAC,mBAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,CAAC;QACpE,cAAc;YACZ,OAAO,CAA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YACZ,OAAO,CAAC,gBAAgB,CAAC,mBAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAA;IACrE,CAAC;IAED,OAAO,CACL,uBAAC,0BAAiB,cAChB,uBAAC,yBAAgB,IACf,EAAE,EAAE,8BAAkB,CAAC,gBAAgB,EACvC,GAAG,EAAE,UAAU,EACf,SAAS,EAAC,mBAAmB,EAC7B,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,QAAQ,YAEb,YAAY,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;YACvC,4EAA4E;YAC5E,uBAAC,uBAAc,cAAqB,KAAK,IAApB,SAAS,CAAC,EAAE,CAA0B,CAC5D,CAAC,GACe,GACD,CACrB,CAAA;AACH,CAAC,CAAA;AAjCY,QAAA,cAAc,kBAiC1B"}
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SessionView = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const react_1 = tslib_1.__importDefault(require("react"));
7
6
  const react_json_tree_1 = require("react-json-tree");
8
7
  const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
9
8
  const constants_1 = require("../constants");
@@ -86,7 +85,6 @@ const KeepSessionContainer = styled_components_1.default.div `
86
85
  font-size: 12px;
87
86
  `;
88
87
  const SessionView = props => {
89
- // eslint-disable-next-line react-hooks/rules-of-hooks
90
88
  const { webchatState, updateDevSettings } = props.webchatHooks || (0, use_webchat_1.useWebchat)();
91
89
  const { latestInput: input, session, lastRoutePath } = webchatState;
92
90
  const toggleSessionView = () => updateDevSettings({
@@ -1 +1 @@
1
- {"version":3,"file":"session-view.js","sourceRoot":"","sources":["../../../src/webchat/session-view.jsx"],"names":[],"mappings":";;;;;AAAA,0DAAyB;AACzB,qDAA0C;AAC1C,kFAAsC;AAEtC,4CAAqC;AACrC,uDAAkD;AAElD,MAAM,kBAA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AC,KAAK,sCAA4B,EAClC,uBAAC,oBAAoB,IACnB,KAAK,EAAC,QAAQ,EACd,KAAK,EACH,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM;4BAChC,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE;4BACvC,CAAC,CAAC,EAAE,GAER,EACF,uBAAC,oBAAoB,IAAC,KAAK,EAAC,UAAU,EAAC,KAAK,EAAE,KAAK,CAAC,OAAO,GAAI,EAC/D,uBAAC,oBAAoB,IACnB,KAAK,EAAC,OAAO,EACb,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,IAAI,aAAa,EAAE,CAAC,CAAC,CAAC,GAAG,GAChD,EACF,uBAAC,oBAAoB,IAAC,KAAK,EAAC,UAAU,GAAG,EACzC,uBAAC,gBAAgB,cACf,uBAAC,0BAAQ,IAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,GAAI,GAC1B,EACnB,uBAAC,oBAAoB,cACnB,8CACE,kCACE,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,2BAA2B,EAChC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAC9D,QAAQ,EAAE,yBAAyB,GACnC,8BAEI,GACa,IACN,IACA,CACtB,CAAA;AACH,CAAC,CAAA;AAnDY,QAAA,WAAW,eAmDvB"}
@@ -1,2 +1,2 @@
1
- import { WebchatTheme } from './types';
1
+ import type { WebchatTheme } from './types';
2
2
  export declare const defaultTheme: WebchatTheme;
@@ -1,4 +1,4 @@
1
- import { BlockInputOption, ButtonProps, CustomMessageType } from '../../components/index-types';
1
+ import type { BlockInputOption, ButtonProps, CustomMessageType } from '../../components/index-types';
2
2
  export interface ImagePreviewerProps {
3
3
  src: string;
4
4
  isPreviewerOpened: boolean;
@@ -1,4 +1,4 @@
1
- import { EventCustom, EventFeedback } from '@botonic/core';
1
+ import type { EventCustom, EventFeedback } from '@botonic/core';
2
2
  export declare enum EventAction {
3
3
  FeedbackKnowledgebase = "feedback_knowledgebase"
4
4
  }
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TriggerButton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ /** biome-ignore-all lint/a11y/noStaticElementInteractions: we need to use static elements for the trigger button */
6
+ /** biome-ignore-all lint/a11y/useKeyWithClickEvents: we need to use key with click events for the trigger button */
5
7
  const react_1 = require("react");
6
8
  const constants_1 = require("../../constants");
7
9
  const environment_1 = require("../../util/environment");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/webchat/trigger-button/index.tsx"],"names":[],"mappings":";;;;AAAA,iCAAyC;AAEzC,+CAAgD;AAChD,wDAAqD;AACrD,mDAAsD;AACtD,qCAIiB;AAEV,MAAM,aAAa,GAAG,GAAgB,EAAE;IAC7C,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,GACrD,IAAA,kBAAU,EAAC,wBAAc,CAAC,CAAA;IAE5B,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,MAAM,KAAK,GAAG,gBAAgB,CAC5B,mBAAO,CAAC,iBAAiB,CAAC,kBAAkB,EAC5C,SAAS,CACV,CAAA;QAED,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,GAAG,mBAAO,CAAC,QAAQ,CAAC,IAAI,CAAA;YAC9D,OAAO,IAAI,CAAA;QACb,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC,CAAA;IAED,MAAM,kBAAkB,GAAG,eAAe,EAAE,CAAA;IAE5C,MAAM,kBAAkB,GAAG,gBAAgB,CACzC,mBAAO,CAAC,iBAAiB,CAAC,kBAAkB,CAC7C,CAAA;IAED,MAAM,iCAAiC,GAAG,gBAAgB,CACxD,mBAAO,CAAC,iBAAiB,CAAC,iCAAiC,CAC5D,CAAA;IAED,MAAM,oBAAoB,GAAG,gBAAgB,CAC3C,mBAAO,CAAC,iBAAiB,CAAC,oBAAoB,EAC9C,iCAAiC,CAClC,CAAA;IAED,MAAM,mBAAmB,GAAG,gBAAgB,CAC1C,mBAAO,CAAC,iBAAiB,CAAC,aAAa,CACxC,CAAA;IAED,MAAM,WAAW,GAAG,CAAC,KAAU,EAAE,EAAE;QACjC,aAAa,CAAC,IAAI,CAAC,CAAA;QACnB,KAAK,CAAC,cAAc,EAAE,CAAA;IACxB,CAAC,CAAA;IAED,OAAO,CACL,iCAAK,OAAO,EAAE,WAAW,aACtB,YAAY,CAAC,iBAAiB,KAAK,CAAC,IAAI,oBAAoB,IAAI,CAC/D,uBAAC,8BAAqB,IAAC,SAAS,EAAC,uBAAuB,YACrD,YAAY,CAAC,iBAAiB,GACT,CACzB,EACA,mBAAmB,CAAC,CAAC,CAAC,CACrB,uBAAC,mBAAmB,KAAG,CACxB,CAAC,CAAC,CAAC,CACF,uBAAC,4BAAmB,IAClB,IAAI,EAAE,iBAAK,CAAC,cAAc,EAC1B,KAAK,EAAE,kBAAkB,YAExB,kBAAkB,IAAI,CACrB,uBAAC,qBAAY,IAAC,GAAG,EAAE,IAAA,0BAAY,EAAC,kBAAkB,CAAC,GAAI,CACxD,GACmB,CACvB,IACG,CACP,CAAA;AACH,CAAC,CAAA;AA9DY,QAAA,aAAa,iBA8DzB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/webchat/trigger-button/index.tsx"],"names":[],"mappings":";;;;AAAA,oHAAoH;AACpH,oHAAoH;AACpH,iCAAkC;AAElC,+CAAgD;AAChD,wDAAqD;AACrD,mDAAsD;AACtD,qCAIiB;AAEV,MAAM,aAAa,GAAG,GAAgB,EAAE;IAC7C,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,GACrD,IAAA,kBAAU,EAAC,wBAAc,CAAC,CAAA;IAE5B,MAAM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kB,YAExB,kBAAkB,IAAI,CACrB,uBAAC,qBAAY,IAAC,GAAG,EAAE,IAAA,0BAAY,EAAC,kBAAkB,CAAC,GAAI,CACxD,GACmB,CACvB,IACG,CACP,CAAA;AACH,CAAC,CAAA;AA9DY,QAAA,aAAa,iBA8DzB"}
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const TypingIndicator: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLDivElement>>;
1
+ declare const TypingIndicator: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
3
2
  export default TypingIndicator;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/webchat/typing-indicator/index.tsx"],"names":[],"mappings":";;;AAAA,iCAAuD;AAEvD,+CAA+C;AAC/C,qCAAiE;AAEjE,MAAM,eAAe,GAAG,IAAA,kBAAU,EAChC,CAAC,MAAM,EAAE,GAAiC,EAAE,EAAE,CAAC,CAC7C,uBAAC,wBAAe,IAAC,GAAG,EAAE,GAAG,YACvB,wBAAC,yBAAgB,IACf,IAAI,EAAE,iBAAK,CAAC,gBAAgB,EAC5B,SAAS,EAAC,kBAAkB,EAC5B,eAAe,EAAE,kBAAM,CAAC,cAAc,aAEtC,uBAAC,YAAG,KAAG,EACP,uBAAC,YAAG,KAAG,EACP,uBAAC,YAAG,KAAG,IACU,GACH,CACnB,CACF,CAAA;AAED,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAA;AAE/C,kBAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/webchat/typing-indicator/index.tsx"],"names":[],"mappings":";;;AAAA,iCAAqD;AAErD,+CAA+C;AAC/C,qCAAiE;AAEjE,MAAM,eAAe,GAAG,IAAA,kBAAU,EAChC,CAAC,MAAM,EAAE,GAAiC,EAAE,EAAE,CAAC,CAC7C,uBAAC,wBAAe,IAAC,GAAG,EAAE,GAAG,YACvB,wBAAC,yBAAgB,IACf,IAAI,EAAE,iBAAK,CAAC,gBAAgB,EAC5B,SAAS,EAAC,kBAAkB,EAC5B,eAAe,EAAE,kBAAM,CAAC,cAAc,aAEtC,uBAAC,YAAG,KAAG,EACP,uBAAC,YAAG,KAAG,EACP,uBAAC,YAAG,KAAG,IACU,GACH,CACnB,CACF,CAAA;AAED,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAA;AAE/C,kBAAe,eAAe,CAAA"}
@@ -1,2 +1,2 @@
1
- import { BotonicActionType } from '@botonic/core';
1
+ import { type BotonicActionType } from '@botonic/core';
2
2
  export declare const getParsedAction: (botonicAction: BotonicActionType) => any;
@@ -4,8 +4,9 @@ exports.getParsedAction = void 0;
4
4
  const core_1 = require("@botonic/core");
5
5
  const getParsedAction = (botonicAction) => {
6
6
  const splittedAction = botonicAction.split(`${core_1.BotonicAction.CreateCase}:`);
7
- if (splittedAction.length <= 1)
7
+ if (splittedAction.length <= 1) {
8
8
  return undefined;
9
+ }
9
10
  return JSON.parse(splittedAction[1]);
10
11
  };
11
12
  exports.getParsedAction = getParsedAction;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/webchat/utils.ts"],"names":[],"mappings":";;;AAAA,wCAAgE;AAEzD,MAAM,eAAe,GAAG,CAAC,aAAgC,EAAE,EAAE;IAClE,MAAM,cAAc,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,oBAAa,CAAC,UAAU,GAAG,CAAC,CAAA;IAC1E,IAAI,cAAc,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,SAAS,CAAA;IAChD,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;AACtC,CAAC,CAAA;AAJY,QAAA,eAAe,mBAI3B"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/webchat/utils.ts"],"names":[],"mappings":";;;AAAA,wCAAqE;AAE9D,MAAM,eAAe,GAAG,CAAC,aAAgC,EAAE,EAAE;IAClE,MAAM,cAAc,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,oBAAa,CAAC,UAAU,GAAG,CAAC,CAAA;IAC1E,IAAI,cAAc,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;AACtC,CAAC,CAAA;AANY,QAAA,eAAe,mBAM3B"}
@@ -2,6 +2,5 @@ export const DebugTab: import("styled-components").StyledComponent<"div", import
2
2
  export function DebugTabPortal({ webchatHooks, ...props }: {
3
3
  [x: string]: any;
4
4
  webchatHooks: any;
5
- }): React.ReactPortal;
6
- export const WebchatDev: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
7
- import React from 'react';
5
+ }): import("react").ReactPortal;
6
+ export const WebchatDev: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const core_1 = require("@botonic/core");
7
7
  const lodash_merge_1 = tslib_1.__importDefault(require("lodash.merge"));
8
- const react_1 = tslib_1.__importStar(require("react"));
8
+ const react_1 = require("react");
9
9
  const react_dom_1 = require("react-dom");
10
10
  const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
11
11
  const use_webchat_1 = require("./context/use-webchat");
@@ -39,7 +39,6 @@ const initialSession = {
39
39
  name: 'botName',
40
40
  },
41
41
  };
42
- // eslint-disable-next-line react/display-name
43
42
  exports.WebchatDev = (0, react_1.forwardRef)((props, ref) => {
44
43
  const webchatHooks = (0, use_webchat_1.useWebchat)();
45
44
  const { webchatState, updateTheme } = webchatHooks;
@@ -1 +1 @@
1
- {"version":3,"file":"webchat-dev.js","sourceRoot":"","sources":["../../../src/webchat/webchat-dev.jsx"],"names":[],"mappings":";;;;;AAAA,wCAAwC;AACxC,wEAAgC;AAChC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YAAY,CAAC,WAAW,CAAC,mBAAmB;oBACjE,eAAe,EAAE,YAAY,CAAC,WAAW,CAAC,eAAe;iBAC1D,EACD,aAAa,EAAE,KAAK,CAAC,QAAQ,GAC7B,EACF,uBAAC,sBAAc,IACb,IAAI,EAAE,YAAY,CAAC,WAAW,CAAC,eAAe,EAC9C,YAAY,EAAE,YAAY,GAC1B,IACD,CACJ,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
- import { WebchatProps, WebchatRef } from '../index-types';
3
- declare const Webchat: React.ForwardRefExoticComponent<WebchatProps & React.RefAttributes<WebchatRef | null>>;
1
+ import { type WebchatProps, type WebchatRef } from '../index-types';
2
+ declare const Webchat: import("react").ForwardRefExoticComponent<WebchatProps & import("react").RefAttributes<WebchatRef | null>>;
4
3
  export { Webchat };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Webchat = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
+ /* eslint-disable @typescript-eslint/no-use-before-define */
6
7
  const core_1 = require("@botonic/core");
7
8
  const lodash_merge_1 = tslib_1.__importDefault(require("lodash.merge"));
8
9
  const react_1 = require("react");
@@ -29,11 +30,8 @@ const trigger_button_1 = require("./trigger-button");
29
30
  const use_storage_state_hook_1 = require("./use-storage-state-hook");
30
31
  const utils_1 = require("./utils");
31
32
  const index_1 = require("./webview/index");
32
- // eslint-disable-next-line complexity, react/display-name
33
33
  const Webchat = (0, react_1.forwardRef)((props, ref) => {
34
- const { addMessage, addMessageComponent, clearMessages, doRenderCustomComponent, resetUnreadMessages, setCurrentAttachment, setError, setIsInputFocused, setLastMessageVisible, setOnline, toggleCoverComponent, toggleEmojiPicker, togglePersistentMenu, toggleWebchat, updateCustomMessageProps, updateDevSettings, updateHandoff, updateLastMessageDate, updateLastRoutePath, updateLatestInput, updateMessage, updateReplies, updateSession, updateTheme, updateTyping, updateWebview, removeWebview, removeReplies, webchatState, webchatContainerRef, chatAreaRef, inputPanelRef, headerRef, repliesRef, scrollableMessagesListRef,
35
- // eslint-disable-next-line react-hooks/rules-of-hooks
36
- } = props.webchatHooks || (0, context_1.useWebchat)(props.theme);
34
+ const { addMessage, addMessageComponent, clearMessages, doRenderCustomComponent, resetUnreadMessages, setCurrentAttachment, setError, setIsInputFocused, setLastMessageVisible, setOnline, toggleCoverComponent, toggleEmojiPicker, togglePersistentMenu, toggleWebchat, updateCustomMessageProps, updateDevSettings, updateHandoff, updateLastMessageDate, updateLastRoutePath, updateLatestInput, updateMessage, updateReplies, updateSession, updateTheme, updateTyping, updateWebview, removeWebview, removeReplies, webchatState, webchatContainerRef, chatAreaRef, inputPanelRef, headerRef, repliesRef, scrollableMessagesListRef, } = props.webchatHooks || (0, context_1.useWebchat)(props.theme);
37
35
  const firstUpdate = (0, react_1.useRef)(true);
38
36
  const isOnline = () => webchatState.online;
39
37
  const currentDateString = () => new Date().toISOString();
@@ -79,7 +77,7 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
79
77
  user: webchatState.session.user,
80
78
  // TODO: Review if this input.sentBy exists in the frontend
81
79
  input: input,
82
- //@ts-ignore
80
+ //@ts-expect-error
83
81
  session: webchatState.session,
84
82
  // TODO: Review why we were passing lastRoutePath, is only for devMode?
85
83
  lastRoutePath: webchatState.lastRoutePath,
@@ -87,16 +85,18 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
87
85
  }
88
86
  };
89
87
  // Load styles stored in window._botonicInsertStyles by Webpack
88
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: this is a complex useEffect that needs to be refactored, but it's not a problem for now
90
89
  (0, hooks_1.useComponentWillMount)(() => {
91
- if (window._botonicInsertStyles && window._botonicInsertStyles.length) {
90
+ if (window._botonicInsertStyles?.length) {
92
91
  for (const botonicStyle of window._botonicInsertStyles) {
93
92
  // Injecting styles at head is needed even if we use shadowDOM
94
93
  // as some dependencies like simplebar rely on creating ephemeral elements
95
94
  // on document.body and assume styles will be available globally
96
95
  document.head.appendChild(botonicStyle);
97
96
  // injecting styles in host node too so that shadowDOM works
98
- if (props.shadowDOM)
97
+ if (props.shadowDOM) {
99
98
  host.appendChild(botonicStyle.cloneNode(true));
99
+ }
100
100
  }
101
101
  delete window._botonicInsertStyles;
102
102
  }
@@ -104,9 +104,9 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
104
104
  // emoji-picker-react injects styles in head, so we need to
105
105
  // re-inject them in our host node to make it work with shadowDOM
106
106
  for (const style of document.querySelectorAll('style')) {
107
- if (style.textContent &&
108
- style.textContent.includes('emoji-picker-react'))
107
+ if (style.textContent?.includes('emoji-picker-react')) {
109
108
  host.appendChild(style.cloneNode(true));
109
+ }
110
110
  }
111
111
  }
112
112
  });
@@ -120,22 +120,27 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
120
120
  messages.forEach(message => {
121
121
  addMessage(message);
122
122
  const newMessageComponent = (0, msg_to_botonic_1.msgToBotonic)({ ...message, delay: 0, typing: 0 }, props.theme?.message?.customTypes);
123
- //@ts-ignore
124
- if (newMessageComponent)
123
+ if (newMessageComponent) {
125
124
  addMessageComponent(newMessageComponent);
125
+ }
126
126
  });
127
127
  }
128
- if (initialSession)
128
+ if (initialSession) {
129
129
  updateSession((0, lodash_merge_1.default)(initialSession, session));
130
- if (lastRoutePath)
130
+ }
131
+ if (lastRoutePath) {
131
132
  updateLastRoutePath(lastRoutePath);
133
+ }
132
134
  }
133
- else
135
+ else {
134
136
  updateSession((0, lodash_merge_1.default)(initialSession, session));
135
- if (devSettings)
137
+ }
138
+ if (devSettings) {
136
139
  updateDevSettings(devSettings);
137
- else if (initialDevSettings)
140
+ }
141
+ else if (initialDevSettings) {
138
142
  updateDevSettings(initialDevSettings);
143
+ }
139
144
  if (lastMessageUpdate) {
140
145
  updateLastMessageDate(lastMessageUpdate);
141
146
  }
@@ -212,26 +217,28 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
212
217
  ? rule.preprocess(inputData)
213
218
  : inputData;
214
219
  return rule.match.some(regex => {
215
- if (typeof regex === 'string')
220
+ if (typeof regex === 'string') {
216
221
  regex = (0, regexs_1.deserializeRegex)(regex);
222
+ }
217
223
  return regex.test(processedInput);
218
224
  });
219
225
  };
220
226
  const checkBlockInput = input => {
221
227
  // if is a text we check if it is a serialized RE
222
228
  const blockInputs = webchatState.theme.userInput?.blockInputs;
223
- if (!Array.isArray(blockInputs))
229
+ if (!Array.isArray(blockInputs)) {
224
230
  return false;
231
+ }
225
232
  for (const rule of blockInputs) {
226
233
  if (getBlockInputs(rule, input.data)) {
227
234
  addMessageComponent((0, jsx_runtime_1.jsx)(components_1.Text
228
235
  // Is necessary to add the id of the input
229
236
  // to keep the input.id generated in the frontend as id of the message
230
- // @ts-ignore
237
+ // @ts-expect-error input.id is not typed
231
238
  , {
232
239
  // Is necessary to add the id of the input
233
240
  // to keep the input.id generated in the frontend as id of the message
234
- // @ts-ignore
241
+ // @ts-expect-error input.id is not typed
235
242
  id: input.id, sentBy: index_types_1.SENDERS.user, blob: false, style: {
236
243
  backgroundColor: constants_1.COLORS.SCORPION_GRAY,
237
244
  borderColor: constants_1.COLORS.SCORPION_GRAY,
@@ -252,26 +259,28 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
252
259
  const coverComponent = webchatState.theme.coverComponent;
253
260
  const coverComponentProps = webchatState.theme.coverComponent?.props;
254
261
  (0, react_1.useEffect)(() => {
255
- if (!coverComponent)
262
+ if (!coverComponent) {
256
263
  return;
264
+ }
257
265
  if (!botonicState ||
258
- (botonicState.messages && botonicState.messages.length === 0))
266
+ (botonicState.messages && botonicState.messages.length === 0)) {
259
267
  toggleCoverComponent(true);
268
+ }
260
269
  }, []);
270
+ // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: messageComponentFromInput is a complex
261
271
  const messageComponentFromInput = input => {
262
272
  let messageComponent = null;
263
273
  if ((0, message_utils_1.isText)(input)) {
264
274
  messageComponent = ((0, jsx_runtime_1.jsx)(components_1.Text
265
275
  // Is necessary to add the id of the input
266
276
  // to keep the input.id generated in the frontend as id of the message
267
- // @ts-ignore
277
+ // @ts-expect-error input.id is not typed
268
278
  , {
269
279
  // Is necessary to add the id of the input
270
280
  // to keep the input.id generated in the frontend as id of the message
271
- // @ts-ignore
281
+ // @ts-expect-error input.id is not typed
272
282
  id: input.id,
273
283
  // Is necessary to add the payload of the input when user clicks a button
274
- // @ts-ignore
275
284
  payload: input.payload, sentBy: index_types_1.SENDERS.user, children: input.data }));
276
285
  }
277
286
  else if ((0, message_utils_1.isMedia)(input)) {
@@ -287,29 +296,38 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
287
296
  mediaProps.input = input;
288
297
  messageComponent = (0, jsx_runtime_1.jsx)(components_1.Image, { ...mediaProps });
289
298
  }
290
- else if ((0, message_utils_1.isAudio)(input))
299
+ else if ((0, message_utils_1.isAudio)(input)) {
291
300
  messageComponent = (0, jsx_runtime_1.jsx)(components_1.Audio, { ...mediaProps });
292
- else if ((0, message_utils_1.isVideo)(input))
301
+ }
302
+ else if ((0, message_utils_1.isVideo)(input)) {
293
303
  messageComponent = (0, jsx_runtime_1.jsx)(components_1.Video, { ...mediaProps });
294
- else if ((0, message_utils_1.isDocument)(input))
304
+ }
305
+ else if ((0, message_utils_1.isDocument)(input)) {
295
306
  messageComponent = (0, jsx_runtime_1.jsx)(components_1.Document, { ...mediaProps });
307
+ }
296
308
  }
297
309
  return messageComponent;
298
310
  };
299
311
  const sendInput = async (input) => {
300
- if (!input || Object.keys(input).length == 0)
312
+ if (!input || Object.keys(input).length === 0) {
301
313
  return;
302
- if ((0, message_utils_1.isText)(input) && (!input.data || !input.data.trim()))
314
+ }
315
+ if ((0, message_utils_1.isText)(input) && (!input.data || !input.data.trim())) {
303
316
  return; // in case trim() doesn't work in a browser we can use !/\S/.test(input.data)
304
- if ((0, message_utils_1.isText)(input) && checkBlockInput(input))
317
+ }
318
+ if ((0, message_utils_1.isText)(input) && checkBlockInput(input)) {
305
319
  return;
306
- if (!input.id)
320
+ }
321
+ if (!input.id) {
307
322
  input.id = (0, uuid_1.v7)();
323
+ }
308
324
  const messageComponent = messageComponentFromInput(input);
309
- if (messageComponent)
325
+ if (messageComponent) {
310
326
  addMessageComponent(messageComponent);
311
- if ((0, message_utils_1.isMedia)(input))
327
+ }
328
+ if ((0, message_utils_1.isMedia)(input)) {
312
329
  input.data = await (0, message_utils_1.readDataURL)(input.data);
330
+ }
313
331
  sendUserInput(input);
314
332
  updateLatestInput(input);
315
333
  isOnline() && updateLastMessageDate(currentDateString());
@@ -342,12 +360,14 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
342
360
  updateSession((0, lodash_merge_1.default)(session, { user: webchatState.session.user }));
343
361
  const action = session._botonic_action || '';
344
362
  const handoff = action.startsWith(core_1.BotonicAction.CreateCase);
345
- if (handoff && environment_1.isDev)
363
+ if (handoff && environment_1.isDev) {
346
364
  addMessageComponent((0, jsx_runtime_1.jsx)(components_1.Handoff, {}));
365
+ }
347
366
  updateHandoff(handoff);
348
367
  }
349
- if (lastRoutePath)
368
+ if (lastRoutePath) {
350
369
  updateLastRoutePath(lastRoutePath);
370
+ }
351
371
  updateLastMessageDate(currentDateString());
352
372
  },
353
373
  addSystemResponse: ({ response }) => {
@@ -389,8 +409,9 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
389
409
  updateMessageInfo: (msgId, messageInfo) => {
390
410
  const messageToUpdate = webchatState.messagesJSON.filter(m => m.id === msgId)[0];
391
411
  const updatedMsg = (0, lodash_merge_1.default)(messageToUpdate, messageInfo);
392
- if (updatedMsg.ack === 1)
412
+ if (updatedMsg.ack === 1) {
393
413
  delete updatedMsg.unsentInput;
414
+ }
394
415
  updateMessage(updatedMsg);
395
416
  },
396
417
  updateWebchatSettings: (settings) => {
@@ -412,27 +433,31 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
412
433
  // Resume conversation after handoff
413
434
  if (prevSession?._botonic_action && !webchatState.session._botonic_action) {
414
435
  const action = (0, utils_1.getParsedAction)(prevSession._botonic_action);
415
- if (action?.on_finish)
436
+ if (action?.on_finish) {
416
437
  sendPayload(action.on_finish);
438
+ }
417
439
  }
418
440
  }, [webchatState.session._botonic_action]);
419
441
  const sendText = async (text, payload) => {
420
- if (!text)
442
+ if (!text) {
421
443
  return;
444
+ }
422
445
  const input = { type: core_1.INPUT.TEXT, data: text, payload };
423
446
  await sendInput(input);
424
447
  };
425
448
  const sendPayload = async (payload) => {
426
- if (!payload)
449
+ if (!payload) {
427
450
  return;
451
+ }
428
452
  const input = { type: core_1.INPUT.POSTBACK, payload };
429
453
  await sendInput(input);
430
454
  };
431
455
  const sendAttachment = async (attachment) => {
432
456
  if (attachment) {
433
457
  const attachmentType = (0, message_utils_1.getMediaType)(attachment.type);
434
- if (!attachmentType)
458
+ if (!attachmentType) {
435
459
  return;
460
+ }
436
461
  const input = {
437
462
  type: attachmentType,
438
463
  data: attachment,
@@ -446,8 +471,9 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
446
471
  firstUpdate.current = false;
447
472
  return;
448
473
  }
449
- if (webchatState.isWebchatOpen && props.onOpen)
474
+ if (webchatState.isWebchatOpen && props.onOpen) {
450
475
  props.onOpen();
476
+ }
451
477
  if (!webchatState.isWebchatOpen && props.onClose && !firstUpdate.current) {
452
478
  props.onClose();
453
479
  toggleEmojiPicker(false);
@@ -465,7 +491,6 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
465
491
  }, [webchatState.themeUpdates]);
466
492
  // Only needed for dev/serve mode
467
493
  const updateWebchatDevSettings = settings => {
468
- // eslint-disable-next-line react-hooks/rules-of-hooks
469
494
  (0, react_1.useEffect)(() => {
470
495
  const themeUpdates = (0, components_1.normalizeWebchatSettings)(settings);
471
496
  updateTheme((0, lodash_merge_1.default)(webchatState.theme, themeUpdates), themeUpdates);
@@ -477,10 +502,12 @@ const Webchat = (0, react_1.forwardRef)((props, ref) => {
477
502
  } })), component] }));
478
503
  };
479
504
  const _renderCustomComponent = () => {
480
- if (!customComponent)
505
+ if (!customComponent) {
481
506
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
482
- else
507
+ }
508
+ else {
483
509
  return customComponent;
510
+ }
484
511
  };
485
512
  const WebchatComponent = ((0, jsx_runtime_1.jsx)(context_1.WebchatContext.Provider, { value: {
486
513
  addMessage,