@botonic/react 0.44.1-alpha.3 → 0.45.0-alpha.0

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
@@ -1,5 +1,6 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React, { useContext, useEffect, useRef, useState } from 'react'
2
+ import type React from 'react'
3
+ import { useContext, useEffect, useRef, useState } from 'react'
3
4
 
4
5
  import { WebchatContext } from '../../webchat/context'
5
6
  import {
@@ -28,7 +29,7 @@ import {
28
29
  StyledDebugIcon,
29
30
  StyledDebugTitle,
30
31
  } from './styles'
31
- import { DebugEvent, DebugEventConfig } from './types'
32
+ import type { DebugEvent, DebugEventConfig } from './types'
32
33
 
33
34
  const getEventConfig = (
34
35
  debugEvent: DebugEvent
@@ -1,5 +1,5 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React, { useContext, useMemo } from 'react'
2
+ import { useContext, useMemo } from 'react'
3
3
 
4
4
  import { WebchatContext } from '../../../webchat/context'
5
5
  import { useKnowledgeBaseInfo } from '../hooks/use-knowledge-base-info'
@@ -10,10 +10,10 @@ import {
10
10
  StyledDebugLabel,
11
11
  StyledDebugValue,
12
12
  } from '../styles'
13
- import { DebugEventConfig } from '../types'
13
+ import type { DebugEventConfig } from '../types'
14
14
  import { GuardrailList, SourcesSection } from './components'
15
15
  import { LABELS } from './constants'
16
- import { ChunkIdsGroupedBySourceData } from './knowledge-bases-types'
16
+ import type { ChunkIdsGroupedBySourceData } from './knowledge-bases-types'
17
17
 
18
18
  interface ToolExecuted {
19
19
  tool_name: string
@@ -1,8 +1,7 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { CodeSvg } from '../icons/code'
5
- import { DebugEventConfig } from '../types'
4
+ import type { DebugEventConfig } from '../types'
6
5
 
7
6
  export interface BotActionDebugEvent {
8
7
  action: EventAction.BotAction
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import type React from 'react'
2
2
 
3
3
  import { HandSvg } from '../../icons'
4
4
  import {
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import type React from 'react'
2
2
 
3
3
  import {
4
4
  StyledDebugDetail,
@@ -9,7 +9,7 @@ import {
9
9
  StyledUrlSourceValue,
10
10
  } from '../../styles'
11
11
  import { LABELS } from '../constants'
12
- import { HubtypeChunk, HubtypeSource } from '../knowledge-bases-types'
12
+ import type { HubtypeChunk, HubtypeSource } from '../knowledge-bases-types'
13
13
 
14
14
  interface SourcesSectionProps {
15
15
  sources: HubtypeSource[]
@@ -26,7 +26,9 @@ export const SourcesSection = ({
26
26
  onSeeChunks,
27
27
  label = LABELS.SOURCES,
28
28
  }: SourcesSectionProps) => {
29
- if (sources.length === 0) return null
29
+ if (sources.length === 0) {
30
+ return null
31
+ }
30
32
 
31
33
  return (
32
34
  <StyledDebugDetail>
@@ -1,8 +1,7 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { SplitSvg } from '../icons/split'
5
- import { DebugEventConfig } from '../types'
4
+ import type { DebugEventConfig } from '../types'
6
5
 
7
6
  export interface ConditionalChannelDebugEvent {
8
7
  action: EventAction.ConditionalChannel
@@ -1,8 +1,7 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { SplitSvg } from '../icons/split'
5
- import { DebugEventConfig } from '../types'
4
+ import type { DebugEventConfig } from '../types'
6
5
 
7
6
  export interface ConditionalCountryDebugEvent {
8
7
  action: EventAction.ConditionalCountry
@@ -1,8 +1,7 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { SplitSvg } from '../icons/split'
5
- import { DebugEventConfig } from '../types'
4
+ import type { DebugEventConfig } from '../types'
6
5
 
7
6
  export interface ConditionalCustomDebugEvent {
8
7
  action: EventAction.ConditionalCustom
@@ -1,5 +1,4 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { SplitSvg } from '../icons/split'
5
4
  import {
@@ -7,7 +6,7 @@ import {
7
6
  StyledDebugLabel,
8
7
  StyledDebugValue,
9
8
  } from '../styles'
10
- import { DebugEventConfig } from '../types'
9
+ import type { DebugEventConfig } from '../types'
11
10
  import { LABELS } from './constants'
12
11
 
13
12
  export interface ConditionalQueueStatusDebugEvent {
@@ -1,8 +1,7 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { LifeRingSvg } from '../icons/life-ring'
5
- import { DebugEventConfig } from '../types'
4
+ import type { DebugEventConfig } from '../types'
6
5
 
7
6
  export interface FallbackDebugEvent {
8
7
  action: EventAction.Fallback
@@ -1,5 +1,5 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React, { useContext, useEffect, useState } from 'react'
2
+ import { useContext, useEffect, useState } from 'react'
3
3
 
4
4
  import { WebchatContext } from '../../../webchat/context'
5
5
  import { HeadSetSvg } from '../icons'
@@ -8,7 +8,7 @@ import {
8
8
  StyledDebugLabel,
9
9
  StyledDebugValue,
10
10
  } from '../styles'
11
- import { DebugEventConfig } from '../types'
11
+ import type { DebugEventConfig } from '../types'
12
12
  import { LABELS } from './constants'
13
13
 
14
14
  export interface HandoffSuccessDebugEvent {
@@ -1,8 +1,7 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { QuoteRightSvg } from '../icons/quote-right'
5
- import { DebugEventConfig } from '../types'
4
+ import type { DebugEventConfig } from '../types'
6
5
 
7
6
  export interface KeywordDebugEvent {
8
7
  action: EventAction.Keyword
@@ -1,5 +1,5 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React, { useContext } from 'react'
2
+ import { useContext } from 'react'
3
3
 
4
4
  import { WebchatContext } from '../../../webchat/context'
5
5
  import { useKnowledgeBaseInfo } from '../hooks/use-knowledge-base-info'
@@ -11,10 +11,10 @@ import {
11
11
  StyledGuardrailItem,
12
12
  StyledGuardrailLabel,
13
13
  } from '../styles'
14
- import { DebugEventConfig } from '../types'
14
+ import type { DebugEventConfig } from '../types'
15
15
  import { SourcesSection } from './components'
16
16
  import { LABELS } from './constants'
17
- import { ChunkIdsGroupedBySourceData } from './knowledge-bases-types'
17
+ import type { ChunkIdsGroupedBySourceData } from './knowledge-bases-types'
18
18
 
19
19
  export interface KnowledgeBaseDebugEvent {
20
20
  action: EventAction.Knowledgebase
@@ -1,8 +1,7 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { ArrowProgressSvg } from '../icons/arrow-progress'
5
- import { DebugEventConfig } from '../types'
4
+ import type { DebugEventConfig } from '../types'
6
5
 
7
6
  export interface RedirectFlowDebugEvent {
8
7
  action: EventAction.RedirectFlow
@@ -1,8 +1,7 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { BrainSvg } from '../icons'
5
- import { DebugEventConfig } from '../types'
4
+ import type { DebugEventConfig } from '../types'
6
5
 
7
6
  export interface SmartIntentDebugEvent {
8
7
  action: EventAction.IntentSmart
@@ -1,8 +1,7 @@
1
1
  import { EventAction } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { WindowRestoreSvg } from '../icons/window-restore'
5
- import { DebugEventConfig } from '../types'
4
+ import type { DebugEventConfig } from '../types'
6
5
 
7
6
  export interface WebviewActionTriggeredDebugEvent {
8
7
  action: EventAction.WebviewActionTriggered
@@ -1,9 +1,12 @@
1
1
  import { KnowledgebaseFailReason } from '@botonic/core'
2
- import React, { useContext, useEffect, useMemo, useState } from 'react'
2
+ import { useContext, useEffect, useMemo, useState } from 'react'
3
3
 
4
- import { ChunkIdsGroupedBySourceData } from '../../../index-types'
4
+ import type { ChunkIdsGroupedBySourceData } from '../../../index-types'
5
5
  import { WebchatContext } from '../../../webchat/context'
6
- import { HubtypeChunk, HubtypeSource } from '../events/knowledge-bases-types'
6
+ import type {
7
+ HubtypeChunk,
8
+ HubtypeSource,
9
+ } from '../events/knowledge-bases-types'
7
10
  import { FilePdfSvg, FileWordSvg, LinkSvg } from '../icons'
8
11
 
9
12
  interface UseKnowledgeBaseInfoParams {
@@ -74,7 +77,9 @@ export const useKnowledgeBaseInfo = ({
74
77
  }
75
78
 
76
79
  const fetchChunksWithSources = async () => {
77
- if (chunkIds.length === 0 || !previewUtils) return []
80
+ if (chunkIds.length === 0 || !previewUtils) {
81
+ return []
82
+ }
78
83
  setIsLoading(true)
79
84
  try {
80
85
  const fetchedChunksWithSources =
@@ -155,7 +160,6 @@ export const useKnowledgeBaseInfo = ({
155
160
  }
156
161
 
157
162
  fetchData()
158
- // eslint-disable-next-line react-hooks/exhaustive-deps
159
163
  }, [])
160
164
 
161
165
  return {
@@ -1,4 +1,4 @@
1
- import { RefObject, useEffect } from 'react'
1
+ import { type RefObject, useEffect } from 'react'
2
2
 
3
3
  interface UseLastLabelPositionProps {
4
4
  wrapperRef: RefObject<HTMLDivElement>
@@ -28,7 +28,9 @@ export function useLastLabelPosition({
28
28
 
29
29
  const measure = () => {
30
30
  const wrapper = wrapperRef.current
31
- if (!wrapper) return
31
+ if (!wrapper) {
32
+ return
33
+ }
32
34
 
33
35
  // Check if visible
34
36
  const parent = wrapper.parentElement
@@ -41,7 +43,9 @@ export function useLastLabelPosition({
41
43
  const allElements = wrapper.querySelectorAll<HTMLElement>('strong, span')
42
44
  const allLabels = Array.from(allElements).filter(el => {
43
45
  // Include all <strong> elements (they're DebugLabels)
44
- if (el.tagName === 'STRONG') return true
46
+ if (el.tagName === 'STRONG') {
47
+ return true
48
+ }
45
49
 
46
50
  // For <span>, only include if it's a direct child of a flex container (GuardrailLabel pattern)
47
51
  // and has no child elements (just text)
@@ -60,7 +64,9 @@ export function useLastLabelPosition({
60
64
  return false
61
65
  })
62
66
 
63
- if (allLabels.length === 0) return
67
+ if (allLabels.length === 0) {
68
+ return
69
+ }
64
70
 
65
71
  // Get the last label
66
72
  const lastLabel = allLabels[allLabels.length - 1]
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const ArrowProgressSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill={color}>
9
8
  <path
10
9
  d='M294.8 97.8C303.8 94.1 314.1 96.1 321 103L361 143C370.4 152.4 370.4 167.6 361 176.9L321 216.9C314.1 223.8 303.8 225.8 294.8 222.1C285.8 218.4 280 209.7 280 200L280 192L176 192C149.5 192 128 213.5 128 240C128 266.5 149.5 288 176 288L464 288C525.9 288 576 338.1 576 400C576 446.4 547.8 486.1 507.7 503.2C498.4 527.1 475.2 544 448 544C412.7 544 384 515.3 384 480C384 444.7 412.7 416 448 416C466.6 416 483.4 423.9 495 436.6C505.4 427.8 512 414.7 512 400C512 373.5 490.5 352 464 352L176 352C114.1 352 64 301.9 64 240C64 178.1 114.1 128 176 128L280 128L280 120C280 110.3 285.8 101.5 294.8 97.8zM480 96C515.3 96 544 124.7 544 160C544 195.3 515.3 224 480 224C444.7 224 416 195.3 416 160C416 124.7 444.7 96 480 96zM215.4 512C204.3 531.1 183.7 544 160 544C124.7 544 96 515.3 96 480C96 444.7 124.7 416 160 416C183.7 416 204.4 428.9 215.4 448L248 448L248 440C248 430.3 253.8 421.5 262.8 417.8C271.8 414.1 282.1 416.1 289 423L329 463C338.4 472.4 338.4 487.6 329 496.9L289 536.9C282.1 543.8 271.8 545.8 262.8 542.1C253.8 538.4 248 529.7 248 520L248 512L215.4 512z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const BrainSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill={color}>
9
8
  <path
10
9
  d='M184 120C184 89.1 209.1 64 240 64L264 64C281.7 64 296 78.3 296 96L296 544C296 561.7 281.7 576 264 576L232 576C202.2 576 177.1 555.6 170 528C169.3 528 168.7 528 168 528C123.8 528 88 492.2 88 448C88 430 94 413.4 104 400C84.6 385.4 72 362.2 72 336C72 305.1 89.6 278.2 115.2 264.9C108.1 252.9 104 238.9 104 224C104 179.8 139.8 144 184 144L184 120zM456 120L456 144C500.2 144 536 179.8 536 224C536 239 531.9 253 524.8 264.9C550.5 278.2 568 305 568 336C568 362.2 555.4 385.4 536 400C546 413.4 552 430 552 448C552 492.2 516.2 528 472 528C471.3 528 470.7 528 470 528C462.9 555.6 437.8 576 408 576L376 576C358.3 576 344 561.7 344 544L344 96C344 78.3 358.3 64 376 64L400 64C430.9 64 456 89.1 456 120z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const CaretDownSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' color={color}>
9
8
  <path
10
9
  d='M300.3 440.8C312.9 451 331.4 450.3 343.1 438.6L471.1 310.6C480.3 301.4 483 287.7 478 275.7C473 263.7 461.4 256 448.5 256L192.5 256C179.6 256 167.9 263.8 162.9 275.8C157.9 287.8 160.7 301.5 169.9 310.6L297.9 438.6L300.3 440.8z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const CaretUpSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' color={color}>
9
8
  <path
10
9
  d='M300.3 199.2C312.9 188.9 331.4 189.7 343.1 201.4L471.1 329.4C480.3 338.6 483 352.3 478 364.3C473 376.3 461.4 384 448.5 384L192.5 384C179.6 384 167.9 376.2 162.9 364.2C157.9 352.2 160.7 338.5 169.9 329.4L297.9 201.4L300.3 199.2z'
@@ -1,7 +1,6 @@
1
- import React from 'react'
2
-
1
+ /** biome-ignore-all lint/a11y/noSvgWithoutTitle: This is a SVG icon */
3
2
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
3
+ import type { IconProps } from '../types'
5
4
 
6
5
  export const CircleCheckSvg = ({ color = COLORS.N500 }: IconProps) => {
7
6
  return (
@@ -1,7 +1,6 @@
1
- import React from 'react'
2
-
1
+ /** biome-ignore-all lint/a11y/noSvgWithoutTitle: This is a SVG icon */
3
2
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
3
+ import type { IconProps } from '../types'
5
4
 
6
5
  export const CodeSvg = ({ color = COLORS.N500 }: IconProps) => {
7
6
  return (
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const FilePdfSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill={color}>
9
8
  <path
10
9
  d='M128 64C92.7 64 64 92.7 64 128L64 512C64 547.3 92.7 576 128 576L208 576L208 464C208 428.7 236.7 400 272 400L448 400L448 234.5C448 217.5 441.3 201.2 429.3 189.2L322.7 82.7C310.7 70.7 294.5 64 277.5 64L128 64zM389.5 240L296 240C282.7 240 272 229.3 272 216L272 122.5L389.5 240zM272 444C261 444 252 453 252 464L252 592C252 603 261 612 272 612C283 612 292 603 292 592L292 564L304 564C337.1 564 364 537.1 364 504C364 470.9 337.1 444 304 444L272 444zM304 524L292 524L292 484L304 484C315 484 324 493 324 504C324 515 315 524 304 524zM400 444C389 444 380 453 380 464L380 592C380 603 389 612 400 612L432 612C460.7 612 484 588.7 484 560L484 496C484 467.3 460.7 444 432 444L400 444zM420 572L420 484L432 484C438.6 484 444 489.4 444 496L444 560C444 566.6 438.6 572 432 572L420 572zM508 464L508 592C508 603 517 612 528 612C539 612 548 603 548 592L548 548L576 548C587 548 596 539 596 528C596 517 587 508 576 508L548 508L548 484L576 484C587 484 596 475 596 464C596 453 587 444 576 444L528 444C517 444 508 453 508 464z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const FileWordSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill={color}>
9
8
  <path
10
9
  d='M128 128C128 92.7 156.7 64 192 64L341.5 64C358.5 64 374.8 70.7 386.8 82.7L493.3 189.3C505.3 201.3 512 217.6 512 234.6L512 512C512 547.3 483.3 576 448 576L192 576C156.7 576 128 547.3 128 512L128 128zM336 122.5L336 216C336 229.3 346.7 240 360 240L453.5 240L336 122.5zM263.4 338.8C260.5 325.9 247.7 317.7 234.8 320.6C221.9 323.5 213.7 336.3 216.6 349.2L248.6 493.2C250.9 503.7 260 511.4 270.8 512C281.6 512.6 291.4 505.9 294.8 495.6L320 419.9L345.2 495.6C348.6 505.8 358.4 512.5 369.2 512C380 511.5 389.1 503.8 391.4 493.2L423.4 349.2C426.3 336.3 418.1 323.4 405.2 320.6C392.3 317.8 379.4 325.9 376.6 338.8L363.4 398.2L342.8 336.4C339.5 326.6 330.4 320 320 320C309.6 320 300.5 326.6 297.2 336.4L276.6 398.2L263.4 338.8z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const HandSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill={color}>
9
8
  <path
10
9
  d='M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V336c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64H304c97.2 0 176-78.8 176-176V128c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V32z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const HeadSetSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill={color}>
9
8
  <path
10
9
  d='M320 128C241 128 175.3 185.3 162.3 260.7C171.6 257.7 181.6 256 192 256L208 256C234.5 256 256 277.5 256 304L256 400C256 426.5 234.5 448 208 448L192 448C139 448 96 405 96 352L96 288C96 164.3 196.3 64 320 64C443.7 64 544 164.3 544 288L544 456.1C544 522.4 490.2 576.1 423.9 576.1L336 576L304 576C277.5 576 256 554.5 256 528C256 501.5 277.5 480 304 480L336 480C362.5 480 384 501.5 384 528L384 528L424 528C463.8 528 496 495.8 496 456L496 435.1C481.9 443.3 465.5 447.9 448 447.9L432 447.9C405.5 447.9 384 426.4 384 399.9L384 303.9C384 277.4 405.5 255.9 432 255.9L448 255.9C458.4 255.9 468.3 257.5 477.7 260.6C464.7 185.3 399.1 127.9 320 127.9z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const LifeRingSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' color={color}>
9
8
  <path
10
9
  d='M431.2 476.5C399.9 498.9 361.5 512 320 512C278.5 512 240.1 498.9 208.8 476.5L266.8 418.5C282.6 427.1 300.8 432 320.1 432C339.4 432 357.5 427.1 373.4 418.5L431.4 476.5zM521.9 477.3C555.7 433.9 575.9 379.3 575.9 320C575.9 260.7 555.8 206.1 522 162.7C531 150.2 529.9 132.6 518.6 121.4C507.3 110.2 489.8 109 477.3 118C433.9 84.2 379.3 64 320 64C260.7 64 206.1 84.2 162.7 118C150.2 109 132.6 110.1 121.4 121.4C110.2 132.7 109 150.2 118 162.7C84.2 206.1 64 260.7 64 320C64 379.3 84.2 433.9 118 477.3C109 489.8 110.1 507.4 121.4 518.6C132.7 529.8 150.2 531 162.7 522C206.1 555.8 260.7 576 320 576C379.3 576 433.9 555.8 477.3 522C489.8 531 507.4 529.9 518.6 518.6C529.8 507.3 531 489.8 522 477.3zM476.4 431.2L418.4 373.2C427 357.4 431.9 339.2 431.9 319.9C431.9 300.6 427 282.5 418.4 266.6L476.4 208.6C498.9 240.1 512 278.5 512 320C512 361.5 498.9 399.9 476.5 431.2zM431.2 163.5L373.2 221.5C357.4 212.9 339.2 208 319.9 208C300.6 208 282.5 212.9 266.6 221.5L208.6 163.5C240.1 141.1 278.5 128 320 128C361.5 128 399.9 141.1 431.2 163.5zM221.5 373.3L163.5 431.3C141.1 399.9 128 361.5 128 320C128 278.5 141.1 240.1 163.5 208.8L221.5 266.8C212.9 282.6 208 300.8 208 320.1C208 339.4 212.9 357.5 221.5 373.4zM272 320C272 293.5 293.5 272 320 272C346.5 272 368 293.5 368 320C368 346.5 346.5 368 320 368C293.5 368 272 346.5 272 320z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const LinkSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill={color}>
9
8
  <path
10
9
  d='M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const QuoteRightSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' color={color}>
9
8
  <path
10
9
  d='M544 360C544 426.3 490.3 480 424 480L416 480C398.3 480 384 465.7 384 448C384 430.3 398.3 416 416 416L424 416C454.9 416 480 390.9 480 360L480 352L416 352C380.7 352 352 323.3 352 288L352 224C352 188.7 380.7 160 416 160L480 160C515.3 160 544 188.7 544 224L544 360zM288 360C288 426.3 234.3 480 168 480L160 480C142.3 480 128 465.7 128 448C128 430.3 142.3 416 160 416L168 416C198.9 416 224 390.9 224 360L224 352L160 352C124.7 352 96 323.3 96 288L96 224C96 188.7 124.7 160 160 160L224 160C259.3 160 288 188.7 288 224L288 360z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const ScrewdriverWrenchSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill={color}>
9
8
  <path
10
9
  d='M102.8 57.3C108.2 51.9 116.6 51.1 123 55.3L241.9 134.5C250.8 140.4 256.1 150.4 256.1 161.1L256.1 210.7L346.9 301.5C380.2 286.5 420.8 292.6 448.1 320L574.2 446.1C592.9 464.8 592.9 495.2 574.2 514L514.1 574.1C495.4 592.8 465 592.8 446.2 574.1L320.1 448C292.7 420.6 286.6 380.1 301.6 346.8L210.8 256L161.2 256C150.5 256 140.5 250.7 134.6 241.8L55.4 122.9C51.2 116.6 52 108.1 57.4 102.7L102.8 57.3zM247.8 360.8C241.5 397.7 250.1 436.7 274 468L179.1 563C151 591.1 105.4 591.1 77.3 563C49.2 534.9 49.2 489.3 77.3 461.2L212.7 325.7L247.9 360.8zM416.1 64C436.2 64 455.5 67.7 473.2 74.5C483.2 78.3 485 91 477.5 98.6L420.8 155.3C417.8 158.3 416.1 162.4 416.1 166.6L416.1 208C416.1 216.8 423.3 224 432.1 224L473.5 224C477.7 224 481.8 222.3 484.8 219.3L541.5 162.6C549.1 155.1 561.8 156.9 565.6 166.9C572.4 184.6 576.1 203.9 576.1 224C576.1 267.2 558.9 306.3 531.1 335.1L482 286C448.9 253 403.5 240.3 360.9 247.6L304.1 190.8L304.1 161.1L303.9 156.1C303.1 143.7 299.5 131.8 293.4 121.2C322.8 86.2 366.8 64 416.1 63.9z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const SplitSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill={color}>
9
8
  <path
10
9
  d='M467.8 66.4C479.8 61.4 493.5 64.2 502.7 73.3L566.7 137.3C572.7 143.3 576.1 151.4 576.1 159.9C576.1 168.4 572.7 176.5 566.7 182.5L502.7 246.5C493.5 255.7 479.8 258.4 467.8 253.4C455.8 248.4 448 236.9 448 224L448 192L410.5 192C402 192 393.9 195.4 387.9 201.4L269.3 320L387.9 438.6C393.9 444.6 402 448 410.5 448L448 448L448 416C448 403.1 455.8 391.4 467.8 386.4C479.8 381.4 493.5 384.2 502.7 393.3L566.7 457.3C572.7 463.3 576.1 471.4 576.1 479.9C576.1 488.4 572.7 496.5 566.7 502.5L502.7 566.5C493.5 575.7 479.8 578.4 467.8 573.4C455.8 568.4 448 556.9 448 544L448 512L410.5 512C385 512 360.6 501.9 342.6 483.9L210.7 352L96 352C78.3 352 64 337.7 64 320C64 302.3 78.3 288 96 288L210.7 288L342.6 156.1C360.6 138.1 385 128 410.5 128L448 128L448 96C448 83.1 455.8 71.4 467.8 66.4z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const WandSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' fill={color}>
9
8
  <path
10
9
  d='M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0L46.1 395.4zM484.6 82.6l-105 105-23.3-23.3 105-105 23.3 23.3zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zm352 256c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 416l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 416l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 352l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 352l-56.5 21.2z'
@@ -1,10 +1,9 @@
1
- import React from 'react'
2
-
3
1
  import { COLORS } from '../../../constants'
4
- import { IconProps } from '../types'
2
+ import type { IconProps } from '../types'
5
3
 
6
4
  export const WindowRestoreSvg = ({ color = COLORS.N500 }: IconProps) => {
7
5
  return (
6
+ // biome-ignore lint/a11y/noSvgWithoutTitle: This is a SVG icon
8
7
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill={color}>
9
8
  <path
10
9
  d='M544 160L192 160C192 124.7 220.7 96 256 96L544 96C579.3 96 608 124.7 608 160L608 352C608 387.3 579.3 416 544 416L496 416L496 352L544 352L544 160zM32 288C32 252.7 60.7 224 96 224L384 224C419.3 224 448 252.7 448 288L448 480C448 515.3 419.3 544 384 544L96 544C60.7 544 32 515.3 32 480L32 288zM96 328C96 341.3 106.7 352 120 352L360 352C373.3 352 384 341.3 384 328C384 314.7 373.3 304 360 304L120 304C106.7 304 96 314.7 96 328z'
@@ -1,5 +1,4 @@
1
1
  import { INPUT, isBrowser } from '@botonic/core'
2
- import React from 'react'
3
2
 
4
3
  import { ROLES } from '../../constants'
5
4
  import { Message } from '../message'
@@ -1,6 +1,6 @@
1
- import React from 'react'
1
+ import type React from 'react'
2
2
 
3
- import {
3
+ import type {
4
4
  AiAgentDebugEvent,
5
5
  BotActionDebugEvent,
6
6
  ConditionalChannelDebugEvent,
@@ -1,9 +1,9 @@
1
1
  import { INPUT } from '@botonic/core'
2
- import React, { Children } from 'react'
2
+ import { Children } from 'react'
3
3
 
4
4
  import { mapObjectNonBooleanValues } from '../util/react'
5
5
  import { COMPONENT_DISPLAY_NAMES } from './constants'
6
- import { TextProps } from './index-types'
6
+ import type { TextProps } from './index-types'
7
7
  import { serializeMarkdown, toMarkdownChildren } from './markdown'
8
8
  import { Message } from './message'
9
9
 
@@ -12,18 +12,22 @@ const serializeText = children => {
12
12
  const text = children
13
13
  .filter(e => !e.type)
14
14
  .map(e => {
15
- if (Array.isArray(e)) return serializeText(e)
16
- else return String(e)
15
+ if (Array.isArray(e)) {
16
+ return serializeText(e)
17
+ } else {
18
+ return String(e)
19
+ }
17
20
  })
18
21
  .join('')
19
22
  return text
20
23
  }
21
24
 
22
25
  const serialize = (textProps: TextProps) => {
23
- if (!textProps.markdown)
26
+ if (!textProps.markdown) {
24
27
  return {
25
28
  text: serializeText(textProps.children),
26
29
  }
30
+ }
27
31
  return { text: serializeMarkdown(textProps.children) }
28
32
  }
29
33
 
@@ -41,12 +45,13 @@ export const Text = (props: TextProps) => {
41
45
  ...{ children: Children.toArray(props.children) },
42
46
  })
43
47
 
44
- if (!textProps.markdown)
48
+ if (!textProps.markdown) {
45
49
  return (
46
50
  <Message json={serialize(textProps)} {...textProps} type={INPUT.TEXT}>
47
51
  {textProps.children}
48
52
  </Message>
49
53
  )
54
+ }
50
55
  return (
51
56
  <Message json={serialize(textProps)} {...textProps} type={INPUT.TEXT}>
52
57
  {toMarkdownChildren(textProps.children)}
@@ -1,4 +1,4 @@
1
- import React from 'react'
1
+ import type React from 'react'
2
2
  import styled from 'styled-components'
3
3
 
4
4
  import { renderComponent } from '../util/react'