isometrik-plugin-chat-sdk 2.0.21 → 2.0.23

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 (576) hide show
  1. package/dist/cjs/admin-transfer-dialog.cjs.entry.js +2 -2
  2. package/dist/cjs/{app-globals-2824b330.js → app-globals-0e7848be.js} +3 -3
  3. package/dist/cjs/{app-globals-2824b330.js.map → app-globals-0e7848be.js.map} +1 -1
  4. package/dist/cjs/{attachment-preview_22.cjs.entry.js → attachment-preview_23.cjs.entry.js} +692 -388
  5. package/dist/cjs/attachment-preview_23.cjs.entry.js.map +1 -0
  6. package/dist/cjs/audio-bubble_4.cjs.entry.js +66 -22
  7. package/dist/cjs/audio-bubble_4.cjs.entry.js.map +1 -1
  8. package/dist/cjs/chat-app.cjs.entry.js +1 -1
  9. package/dist/cjs/chat-document-message-bubble.cjs.entry.js +1 -1
  10. package/dist/cjs/chat-image-message-bubble.cjs.entry.js +1 -1
  11. package/dist/cjs/chat-tile_3.cjs.entry.js +14 -10
  12. package/dist/cjs/chat-tile_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/chat-video-message-bubble.cjs.entry.js +1 -1
  14. package/dist/cjs/confirm-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/{content-ebca062a.js → content-8b271b56.js} +3 -1
  16. package/dist/cjs/content-8b271b56.js.map +1 -0
  17. package/dist/cjs/delete-message.cjs.entry.js +1 -1
  18. package/dist/cjs/download-9ccc0a6c.js +120 -0
  19. package/dist/cjs/download-9ccc0a6c.js.map +1 -0
  20. package/dist/cjs/{drawer-00a2323a.js → drawer-3f9c87b4.js} +42 -5
  21. package/dist/cjs/drawer-3f9c87b4.js.map +1 -0
  22. package/dist/cjs/forward-memebers.cjs.entry.js +61 -24
  23. package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -1
  24. package/dist/cjs/forward-message.cjs.entry.js +2 -2
  25. package/dist/cjs/group-chat-contacts.cjs.entry.js +2 -2
  26. package/dist/cjs/{group-members-b3bea06e.js → group-members-1205fc4c.js} +5 -5
  27. package/dist/cjs/{group-members-b3bea06e.js.map → group-members-1205fc4c.js.map} +1 -1
  28. package/dist/cjs/{groupcast-8441b4df.js → groupcast-bb393c81.js} +14 -54
  29. package/dist/cjs/groupcast-bb393c81.js.map +1 -0
  30. package/dist/cjs/{groupcast-f24da720.js → groupcast-e1e52bd1.js} +16 -16
  31. package/dist/cjs/{groupcast-f24da720.js.map → groupcast-e1e52bd1.js.map} +1 -1
  32. package/dist/cjs/{helpers-154861e9.js → helpers-877a7116.js} +30 -1
  33. package/dist/cjs/helpers-877a7116.js.map +1 -0
  34. package/dist/cjs/index.cjs.js +8 -6
  35. package/dist/cjs/index.cjs.js.map +1 -1
  36. package/dist/cjs/{toast-91093c84.js → index.m-ff115b26.js} +1 -156
  37. package/dist/cjs/{toast-91093c84.js.map → index.m-ff115b26.js.map} +1 -1
  38. package/dist/cjs/info-panel-media_2.cjs.entry.js +244 -0
  39. package/dist/cjs/info-panel-media_2.cjs.entry.js.map +1 -0
  40. package/dist/cjs/isometrik-webchat.cjs.js +11 -9
  41. package/dist/cjs/isometrik-webchat.cjs.js.map +1 -1
  42. package/dist/cjs/loader.cjs.js +11 -9
  43. package/dist/cjs/loader.cjs.js.map +1 -1
  44. package/dist/cjs/{local-notification-bdd04d7a.js → local-notification-a86a2b34.js} +3 -3
  45. package/dist/cjs/local-notification-a86a2b34.js.map +1 -0
  46. package/dist/cjs/login-page_3.cjs.entry.js +258 -104
  47. package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
  48. package/dist/cjs/media-gallery.cjs.entry.js +10 -2
  49. package/dist/cjs/media-gallery.cjs.entry.js.map +1 -1
  50. package/dist/cjs/member-add.cjs.entry.js +20 -11
  51. package/dist/cjs/member-add.cjs.entry.js.map +1 -1
  52. package/dist/cjs/message-bubble.cjs.entry.js +2 -2
  53. package/dist/cjs/{message-reaction-82a4f93c.js → message-reaction-8f93a048.js} +5 -5
  54. package/dist/cjs/{message-reaction-82a4f93c.js.map → message-reaction-8f93a048.js.map} +1 -1
  55. package/dist/cjs/messages-e129b34d.js +179 -0
  56. package/dist/cjs/messages-e129b34d.js.map +1 -0
  57. package/dist/cjs/my-component.cjs.entry.js +1 -1
  58. package/dist/cjs/new-chat-sidebar.cjs.entry.js +2 -2
  59. package/dist/cjs/play-b473e0ab.js +13 -0
  60. package/dist/cjs/play-b473e0ab.js.map +1 -0
  61. package/dist/cjs/profile-avatar.cjs.entry.js +1 -1
  62. package/dist/cjs/reaction-container.cjs.entry.js +5 -4
  63. package/dist/cjs/reaction-container.cjs.entry.js.map +1 -1
  64. package/dist/cjs/{runtime-controls-cfc8fc31.js → runtime-controls-a70872fe.js} +33 -15
  65. package/dist/cjs/runtime-controls-a70872fe.js.map +1 -0
  66. package/dist/cjs/{send-media-4ee967d4.js → send-media-8a841e50.js} +559 -192
  67. package/dist/cjs/send-media-8a841e50.js.map +1 -0
  68. package/dist/cjs/share-popup.cjs.entry.js +1 -1
  69. package/dist/cjs/signup-page.cjs.entry.js +2 -2
  70. package/dist/cjs/spinner-loader.cjs.entry.js +1 -1
  71. package/dist/cjs/{group-members-cef1198e.js → storage-quota-2e81fb71.js} +254 -10
  72. package/dist/cjs/storage-quota-2e81fb71.js.map +1 -0
  73. package/dist/cjs/toast-a75f822c.js +159 -0
  74. package/dist/cjs/toast-a75f822c.js.map +1 -0
  75. package/dist/collection/collection-manifest.json +10 -8
  76. package/dist/collection/components/ChatUIComponent/AddMember.js +14 -7
  77. package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -1
  78. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +1 -1
  79. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +1 -1
  80. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +8 -2
  81. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -1
  82. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +90 -47
  83. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
  84. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +1 -1
  85. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +105 -37
  86. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
  87. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +45 -11
  88. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
  89. package/dist/collection/components/ChatUIComponent/ReactionContainer.js +2 -2
  90. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +38 -13
  91. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
  92. package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +1 -0
  93. package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js +22 -10
  94. package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js.map +1 -1
  95. package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js +55 -19
  96. package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js.map +1 -1
  97. package/dist/collection/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.js +2 -2
  98. package/dist/collection/components/ChatUIComponent/shared/attachment-preview/attachment-preview.js +1 -1
  99. package/dist/collection/components/ChatUIComponent/shared/block chatlist/BlockChatList.js +1 -1
  100. package/dist/collection/components/ChatUIComponent/shared/chat-loading-placeholder/chat-loading-placeholder.js +1 -1
  101. package/dist/collection/components/ChatUIComponent/shared/chat-tile/chat-tile.js +31 -9
  102. package/dist/collection/components/ChatUIComponent/shared/chat-tile/chat-tile.js.map +1 -1
  103. package/dist/collection/components/ChatUIComponent/shared/confirm-dialog/confirm-dialog.js +1 -1
  104. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +66 -157
  105. package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
  106. package/dist/collection/components/ChatUIComponent/shared/delete-message/delete-message.js +1 -1
  107. package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js +14 -4
  108. package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js.map +1 -1
  109. package/dist/collection/components/ChatUIComponent/shared/forward-message/forward-message.js +2 -2
  110. package/dist/collection/components/ChatUIComponent/shared/group-info/group-info.js +1 -1
  111. package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js +65 -2
  112. package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js.map +1 -1
  113. package/dist/collection/components/ChatUIComponent/shared/incoming-text-message-bubble/incoming-text-message-bubble.js +1 -1
  114. package/dist/collection/components/ChatUIComponent/shared/info-panel-media/info-panel-media.js +335 -0
  115. package/dist/collection/components/ChatUIComponent/shared/info-panel-media/info-panel-media.js.map +1 -0
  116. package/dist/collection/components/ChatUIComponent/shared/link-preview/link-preview.js +1 -1
  117. package/dist/collection/components/ChatUIComponent/shared/media-gallery/media-gallery.js +11 -2
  118. package/dist/collection/components/ChatUIComponent/shared/media-gallery/media-gallery.js.map +1 -1
  119. package/dist/collection/components/ChatUIComponent/shared/message-bubble/message-bubble.js +2 -2
  120. package/dist/collection/components/ChatUIComponent/shared/message-date-pill/message-date-pill.js +1 -1
  121. package/dist/collection/components/ChatUIComponent/shared/message-info/message-info.js +1 -1
  122. package/dist/collection/components/ChatUIComponent/shared/message-search/message-search.js +1 -1
  123. package/dist/collection/components/ChatUIComponent/shared/new chat/new-chat.js +1 -1
  124. package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble/outgoing-text-message-bubble.js +1 -1
  125. package/dist/collection/components/ChatUIComponent/shared/profile sidebar/profile-sidebar.js +1 -1
  126. package/dist/collection/components/ChatUIComponent/shared/profile-avatar/profile-avatar.js +1 -1
  127. package/dist/collection/components/ChatUIComponent/shared/profile-info/profile-info.js +70 -3
  128. package/dist/collection/components/ChatUIComponent/shared/profile-info/profile-info.js.map +1 -1
  129. package/dist/collection/components/ChatUIComponent/shared/reply-block/reply-block.js +1 -1
  130. package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js +31 -2
  131. package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js.map +1 -1
  132. package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.stories.js +10 -6
  133. package/dist/collection/components/ChatUIComponent/shared/searchable list/searchable-list.js +3 -3
  134. package/dist/collection/components/ChatUIComponent/shared/share-popup/share-popup.js +1 -1
  135. package/dist/collection/components/ChatUIComponent/shared/spinner-loader/spinner-loader.js +1 -1
  136. package/dist/collection/components/ChatUIComponent/shared/storage/storage-manager.js +140 -0
  137. package/dist/collection/components/ChatUIComponent/shared/storage/storage-manager.js.map +1 -0
  138. package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js +35 -3
  139. package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js.map +1 -1
  140. package/dist/collection/components/Login.js +1 -1
  141. package/dist/collection/components/Signup.js +2 -2
  142. package/dist/collection/components/chat-main.js +1 -1
  143. package/dist/collection/components/my-component/my-component.js +1 -1
  144. package/dist/collection/components/my-component/web-chat/WebChat.js +145 -1
  145. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
  146. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +44 -2
  147. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -1
  148. package/dist/collection/components/my-component/web-chat/bootstrap.js +1 -0
  149. package/dist/collection/components/my-component/web-chat/bootstrap.js.map +1 -1
  150. package/dist/collection/components/my-component/web-chat/conversation-ops.js +22 -2
  151. package/dist/collection/components/my-component/web-chat/conversation-ops.js.map +1 -1
  152. package/dist/collection/components/my-component/web-chat/data-fetch.js +9 -4
  153. package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
  154. package/dist/collection/components/my-component/web-chat/event-handlers.js +51 -10
  155. package/dist/collection/components/my-component/web-chat/event-handlers.js.map +1 -1
  156. package/dist/collection/components/my-component/web-chat/mutations.js +38 -8
  157. package/dist/collection/components/my-component/web-chat/mutations.js.map +1 -1
  158. package/dist/collection/components/my-component/web-chat/offline-host.js +31 -17
  159. package/dist/collection/components/my-component/web-chat/offline-host.js.map +1 -1
  160. package/dist/collection/components/my-component/web-chat/public-send.js +6 -1
  161. package/dist/collection/components/my-component/web-chat/public-send.js.map +1 -1
  162. package/dist/collection/components/my-component/web-chat/shell-render.js +11 -9
  163. package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
  164. package/dist/collection/components/my-component/web-chat/web-chat.css +40 -3
  165. package/dist/collection/components/theme-provider.js +1 -1
  166. package/dist/collection/constants/content.js +2 -0
  167. package/dist/collection/lib/chat/block-status.js +12 -0
  168. package/dist/collection/lib/chat/block-status.js.map +1 -0
  169. package/dist/collection/lib/chat/clipboard-paste.js +68 -0
  170. package/dist/collection/lib/chat/clipboard-paste.js.map +1 -0
  171. package/dist/collection/lib/chat/conversations.js +47 -3
  172. package/dist/collection/lib/chat/conversations.js.map +1 -1
  173. package/dist/collection/lib/chat/download-media.js +112 -0
  174. package/dist/collection/lib/chat/download-media.js.map +1 -0
  175. package/dist/collection/lib/chat/index.js +6 -2
  176. package/dist/collection/lib/chat/index.js.map +1 -1
  177. package/dist/collection/lib/chat/local-notification.js +1 -1
  178. package/dist/collection/lib/chat/local-notification.js.map +1 -1
  179. package/dist/collection/lib/chat/same-name-upload.js +53 -0
  180. package/dist/collection/lib/chat/same-name-upload.js.map +1 -0
  181. package/dist/collection/lib/chat/send-media.js +194 -27
  182. package/dist/collection/lib/chat/send-media.js.map +1 -1
  183. package/dist/collection/lib/chat/session.js +9 -3
  184. package/dist/collection/lib/chat/session.js.map +1 -1
  185. package/dist/collection/lib/chat/storage-quota.js +226 -0
  186. package/dist/collection/lib/chat/storage-quota.js.map +1 -0
  187. package/dist/collection/lib/custom-ui/public-api.js +5 -0
  188. package/dist/collection/lib/custom-ui/public-api.js.map +1 -1
  189. package/dist/collection/lib/drawer.js +42 -4
  190. package/dist/collection/lib/drawer.js.map +1 -1
  191. package/dist/collection/lib/helpers.js +29 -1
  192. package/dist/collection/lib/mqtt/dispatch.js +7 -3
  193. package/dist/collection/lib/mqtt/dispatch.js.map +1 -1
  194. package/dist/collection/sdk/headless-api.js +8 -0
  195. package/dist/collection/sdk/headless-api.js.map +1 -1
  196. package/dist/collection/sdk/index.js +1 -0
  197. package/dist/collection/sdk/index.js.map +1 -1
  198. package/dist/collection/sdk/webchat-api.js +5 -0
  199. package/dist/collection/sdk/webchat-api.js.map +1 -1
  200. package/dist/collection/store/storage-quota.js +244 -0
  201. package/dist/collection/store/storage-quota.js.map +1 -0
  202. package/dist/collection/testing/iso-chat-sdk-mock.js +10 -6
  203. package/dist/components/AudioBubble.js +22 -10
  204. package/dist/components/AudioBubble.js.map +1 -1
  205. package/dist/components/BlockChatList.js +2 -2
  206. package/dist/components/ChatFooter.js +172 -37
  207. package/dist/components/ChatFooter.js.map +1 -1
  208. package/dist/components/ChatSidebar.js +102 -49
  209. package/dist/components/ChatSidebar.js.map +1 -1
  210. package/dist/components/GroupCast2.js +1 -1
  211. package/dist/components/Login.js +1 -1
  212. package/dist/components/Profile.js +20 -9
  213. package/dist/components/Profile.js.map +1 -1
  214. package/dist/components/WebChat.js +301 -126
  215. package/dist/components/WebChat.js.map +1 -1
  216. package/dist/components/WebChatBody.js +39 -14
  217. package/dist/components/WebChatBody.js.map +1 -1
  218. package/dist/components/WebChatHeader.js +48 -15
  219. package/dist/components/WebChatHeader.js.map +1 -1
  220. package/dist/components/WebchatRightSide.js +22 -7
  221. package/dist/components/WebchatRightSide.js.map +1 -1
  222. package/dist/components/admin-transfer-dialog.js +2 -2
  223. package/dist/components/attachment-preview2.js +1 -1
  224. package/dist/components/chat-app.js +85 -73
  225. package/dist/components/chat-app.js.map +1 -1
  226. package/dist/components/chat-assets.js +1 -1
  227. package/dist/components/chat-document-message-bubble.js +1 -1
  228. package/dist/components/chat-image-message-bubble.js +1 -1
  229. package/dist/components/chat-loading-placeholder2.js +1 -1
  230. package/dist/components/chat-tile2.js +12 -7
  231. package/dist/components/chat-tile2.js.map +1 -1
  232. package/dist/components/chat-video-message-bubble.js +1 -1
  233. package/dist/components/client.js +11 -47
  234. package/dist/components/client.js.map +1 -1
  235. package/dist/components/confirm-dialog.js +1 -1
  236. package/dist/components/contact-info2.js +73 -162
  237. package/dist/components/contact-info2.js.map +1 -1
  238. package/dist/components/content.js +2 -0
  239. package/dist/components/content.js.map +1 -1
  240. package/dist/components/conversation.js +1 -1
  241. package/dist/components/conversations.js +91 -0
  242. package/dist/components/conversations.js.map +1 -0
  243. package/dist/components/delete-message.js +1 -1
  244. package/dist/components/document-message2.js +15 -6
  245. package/dist/components/document-message2.js.map +1 -1
  246. package/dist/components/download-media.js +115 -0
  247. package/dist/components/download-media.js.map +1 -0
  248. package/dist/components/download.js +5 -0
  249. package/dist/components/download.js.map +1 -0
  250. package/dist/components/drawer.js +42 -5
  251. package/dist/components/drawer.js.map +1 -1
  252. package/dist/components/forward-memebers.js +56 -20
  253. package/dist/components/forward-memebers.js.map +1 -1
  254. package/dist/components/forward-message.js +2 -2
  255. package/dist/components/group-chat-contacts2.js +1 -1
  256. package/dist/components/group-info.js +1 -1
  257. package/dist/components/group-members.js +26 -298
  258. package/dist/components/group-members.js.map +1 -1
  259. package/dist/components/helpers.js +28 -1
  260. package/dist/components/helpers.js.map +1 -1
  261. package/dist/components/image-message2.js +17 -2
  262. package/dist/components/image-message2.js.map +1 -1
  263. package/dist/components/incoming-text-message-bubble2.js +1 -1
  264. package/dist/components/index.js +21 -2
  265. package/dist/components/index.js.map +1 -1
  266. package/dist/{esm/group-members-7909941c.js → components/index3.js} +3 -52
  267. package/dist/components/index3.js.map +1 -0
  268. package/dist/components/info-panel-media.d.ts +11 -0
  269. package/dist/components/info-panel-media.js +8 -0
  270. package/dist/components/info-panel-media.js.map +1 -0
  271. package/dist/components/info-panel-media2.js +242 -0
  272. package/dist/components/info-panel-media2.js.map +1 -0
  273. package/dist/components/link-preview2.js +1 -1
  274. package/dist/components/local-notification.js +1 -1
  275. package/dist/components/local-notification.js.map +1 -1
  276. package/dist/components/media-gallery.js +11 -2
  277. package/dist/components/media-gallery.js.map +1 -1
  278. package/dist/components/member-add.js +16 -9
  279. package/dist/components/member-add.js.map +1 -1
  280. package/dist/components/message-bubble2.js +2 -2
  281. package/dist/components/message-date-pill2.js +1 -1
  282. package/dist/components/message-info2.js +2 -2
  283. package/dist/components/message-search2.js +1 -1
  284. package/dist/components/messages.js +1 -1
  285. package/dist/components/my-component.js +1 -1
  286. package/dist/components/new-chat-sidebar.js +1 -1
  287. package/dist/components/new-chat2.js +1 -1
  288. package/dist/components/outgoing-text-message-bubble2.js +1 -1
  289. package/dist/components/profile-avatar2.js +1 -1
  290. package/dist/components/profile-info2.js +69 -6
  291. package/dist/components/profile-info2.js.map +1 -1
  292. package/dist/components/profile-sidebar2.js +2 -2
  293. package/dist/components/prompt-exit-group.js +26 -3
  294. package/dist/components/prompt-exit-group.js.map +1 -1
  295. package/dist/components/reaction-container.js +2 -2
  296. package/dist/components/reply-block2.js +1 -1
  297. package/dist/components/reply-message-container2.js +12 -2
  298. package/dist/components/reply-message-container2.js.map +1 -1
  299. package/dist/components/searchable-list2.js +3 -3
  300. package/dist/components/send-media.js +242 -33
  301. package/dist/components/send-media.js.map +1 -1
  302. package/dist/components/share-popup.js +1 -1
  303. package/dist/components/signup-page.js +2 -2
  304. package/dist/components/spinner-loader2.js +1 -1
  305. package/dist/components/storage-manager.js +125 -0
  306. package/dist/components/storage-manager.js.map +1 -0
  307. package/dist/components/storage-quota.js +223 -0
  308. package/dist/components/storage-quota.js.map +1 -0
  309. package/dist/components/storage-quota2.js +248 -0
  310. package/dist/components/storage-quota2.js.map +1 -0
  311. package/dist/components/theme-provider2.js +1 -1
  312. package/dist/components/video-message2.js +19 -3
  313. package/dist/components/video-message2.js.map +1 -1
  314. package/dist/components/web-chat-storage.d.ts +11 -0
  315. package/dist/components/web-chat-storage.js +8 -0
  316. package/dist/components/web-chat-storage.js.map +1 -0
  317. package/dist/esm/admin-transfer-dialog.entry.js +2 -2
  318. package/dist/esm/{app-globals-e3f4717b.js → app-globals-eba1ca0c.js} +3 -3
  319. package/dist/esm/{app-globals-e3f4717b.js.map → app-globals-eba1ca0c.js.map} +1 -1
  320. package/dist/esm/{attachment-preview_22.entry.js → attachment-preview_23.entry.js} +657 -354
  321. package/dist/esm/attachment-preview_23.entry.js.map +1 -0
  322. package/dist/esm/audio-bubble_4.entry.js +66 -22
  323. package/dist/esm/audio-bubble_4.entry.js.map +1 -1
  324. package/dist/esm/chat-app.entry.js +1 -1
  325. package/dist/esm/chat-document-message-bubble.entry.js +1 -1
  326. package/dist/esm/chat-image-message-bubble.entry.js +1 -1
  327. package/dist/esm/chat-tile_3.entry.js +15 -11
  328. package/dist/esm/chat-tile_3.entry.js.map +1 -1
  329. package/dist/esm/chat-video-message-bubble.entry.js +1 -1
  330. package/dist/esm/confirm-dialog.entry.js +1 -1
  331. package/dist/esm/{content-fb138a93.js → content-fd0af283.js} +3 -1
  332. package/dist/esm/content-fd0af283.js.map +1 -0
  333. package/dist/esm/delete-message.entry.js +1 -1
  334. package/dist/esm/download-5368a10f.js +117 -0
  335. package/dist/esm/download-5368a10f.js.map +1 -0
  336. package/dist/esm/{drawer-7de04622.js → drawer-a457d820.js} +43 -6
  337. package/dist/esm/drawer-a457d820.js.map +1 -0
  338. package/dist/esm/forward-memebers.entry.js +59 -22
  339. package/dist/esm/forward-memebers.entry.js.map +1 -1
  340. package/dist/esm/forward-message.entry.js +2 -2
  341. package/dist/esm/group-chat-contacts.entry.js +2 -2
  342. package/dist/esm/{group-members-36cf9395.js → group-members-d603f29f.js} +2 -2
  343. package/dist/esm/{group-members-36cf9395.js.map → group-members-d603f29f.js.map} +1 -1
  344. package/dist/esm/{groupcast-5fb19ec3.js → groupcast-4f15b050.js} +14 -50
  345. package/dist/esm/groupcast-4f15b050.js.map +1 -0
  346. package/dist/esm/{groupcast-f96c1d9e.js → groupcast-c6da3918.js} +2 -2
  347. package/dist/esm/{groupcast-f96c1d9e.js.map → groupcast-c6da3918.js.map} +1 -1
  348. package/dist/esm/{helpers-f33b895c.js → helpers-1632a4c7.js} +29 -2
  349. package/dist/esm/helpers-1632a4c7.js.map +1 -0
  350. package/dist/esm/index.js +9 -7
  351. package/dist/esm/index.js.map +1 -1
  352. package/dist/esm/{toast-a1531088.js → index.m-8c70037f.js} +2 -156
  353. package/dist/esm/{toast-a1531088.js.map → index.m-8c70037f.js.map} +1 -1
  354. package/dist/esm/info-panel-media_2.entry.js +239 -0
  355. package/dist/esm/info-panel-media_2.entry.js.map +1 -0
  356. package/dist/esm/isometrik-webchat.js +11 -9
  357. package/dist/esm/isometrik-webchat.js.map +1 -1
  358. package/dist/esm/loader.js +11 -9
  359. package/dist/esm/loader.js.map +1 -1
  360. package/dist/esm/{local-notification-4c1e166d.js → local-notification-f9ae9062.js} +3 -3
  361. package/dist/esm/local-notification-f9ae9062.js.map +1 -0
  362. package/dist/esm/login-page_3.entry.js +219 -65
  363. package/dist/esm/login-page_3.entry.js.map +1 -1
  364. package/dist/esm/media-gallery.entry.js +10 -2
  365. package/dist/esm/media-gallery.entry.js.map +1 -1
  366. package/dist/esm/member-add.entry.js +20 -11
  367. package/dist/esm/member-add.entry.js.map +1 -1
  368. package/dist/esm/message-bubble.entry.js +2 -2
  369. package/dist/esm/{message-reaction-0d2ef75f.js → message-reaction-0a2bb115.js} +2 -2
  370. package/dist/esm/{message-reaction-0d2ef75f.js.map → message-reaction-0a2bb115.js.map} +1 -1
  371. package/dist/esm/messages-057dbecb.js +167 -0
  372. package/dist/esm/messages-057dbecb.js.map +1 -0
  373. package/dist/esm/my-component.entry.js +1 -1
  374. package/dist/esm/new-chat-sidebar.entry.js +2 -2
  375. package/dist/esm/play-05ae077a.js +9 -0
  376. package/dist/esm/play-05ae077a.js.map +1 -0
  377. package/dist/esm/profile-avatar.entry.js +1 -1
  378. package/dist/esm/reaction-container.entry.js +5 -4
  379. package/dist/esm/reaction-container.entry.js.map +1 -1
  380. package/dist/esm/{runtime-controls-ff81e90a.js → runtime-controls-bdb84aeb.js} +21 -3
  381. package/dist/esm/runtime-controls-bdb84aeb.js.map +1 -0
  382. package/dist/esm/{send-media-58e7145b.js → send-media-04f7ca0a.js} +533 -180
  383. package/dist/esm/send-media-04f7ca0a.js.map +1 -0
  384. package/dist/esm/share-popup.entry.js +1 -1
  385. package/dist/esm/signup-page.entry.js +2 -2
  386. package/dist/esm/spinner-loader.entry.js +1 -1
  387. package/dist/esm/storage-quota-6329fabe.js +578 -0
  388. package/dist/esm/storage-quota-6329fabe.js.map +1 -0
  389. package/dist/esm/toast-f681e916.js +157 -0
  390. package/dist/esm/toast-f681e916.js.map +1 -0
  391. package/dist/isometrik-webchat/index.esm.js +1 -1
  392. package/dist/isometrik-webchat/index.esm.js.map +1 -1
  393. package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
  394. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
  395. package/dist/isometrik-webchat/p-0161f40b.js +2 -0
  396. package/dist/isometrik-webchat/p-0161f40b.js.map +1 -0
  397. package/dist/isometrik-webchat/{p-d892b4d4.entry.js → p-02db2116.entry.js} +2 -2
  398. package/dist/isometrik-webchat/p-03933431.entry.js +2 -0
  399. package/dist/isometrik-webchat/{p-352b589e.entry.js.map → p-03933431.entry.js.map} +1 -1
  400. package/dist/isometrik-webchat/{p-c591fa45.js → p-04fdbd0a.js} +2 -2
  401. package/dist/isometrik-webchat/p-0bb42151.entry.js +2 -0
  402. package/dist/isometrik-webchat/p-0bb42151.entry.js.map +1 -0
  403. package/dist/isometrik-webchat/{p-c5bff6a1.entry.js → p-119fc683.entry.js} +2 -2
  404. package/dist/isometrik-webchat/p-19d37e1f.js +2 -0
  405. package/dist/isometrik-webchat/p-19d37e1f.js.map +1 -0
  406. package/dist/isometrik-webchat/{p-925decda.js → p-1dc52239.js} +2 -2
  407. package/dist/isometrik-webchat/p-1f0e8230.entry.js +2 -0
  408. package/dist/isometrik-webchat/p-1f0e8230.entry.js.map +1 -0
  409. package/dist/isometrik-webchat/{p-7b25f234.entry.js → p-35f2b9ae.entry.js} +2 -2
  410. package/dist/isometrik-webchat/p-3a0409fc.js +2 -0
  411. package/dist/isometrik-webchat/p-3a0409fc.js.map +1 -0
  412. package/dist/isometrik-webchat/{p-9982fa21.js → p-3dca1e56.js} +2 -2
  413. package/dist/isometrik-webchat/p-3dca1e56.js.map +1 -0
  414. package/dist/isometrik-webchat/p-40217f22.js +2 -0
  415. package/dist/isometrik-webchat/p-40217f22.js.map +1 -0
  416. package/dist/isometrik-webchat/{p-3b3dc33e.js → p-46be73c5.js} +2 -2
  417. package/dist/isometrik-webchat/p-56521ea4.entry.js +2 -0
  418. package/dist/isometrik-webchat/{p-f7d05551.entry.js → p-57f97cef.entry.js} +2 -2
  419. package/dist/isometrik-webchat/p-5f7eebbf.entry.js +2 -0
  420. package/dist/isometrik-webchat/p-605cb14e.entry.js +2 -0
  421. package/dist/isometrik-webchat/p-605cb14e.entry.js.map +1 -0
  422. package/dist/isometrik-webchat/p-640e2c03.entry.js +2 -0
  423. package/dist/isometrik-webchat/p-69d953cb.entry.js +2 -0
  424. package/dist/isometrik-webchat/p-69d953cb.entry.js.map +1 -0
  425. package/dist/isometrik-webchat/p-6c5eb178.js +2 -0
  426. package/dist/isometrik-webchat/{p-d8b65cf4.entry.js → p-6eadaa6c.entry.js} +2 -2
  427. package/dist/isometrik-webchat/{p-161fcb35.entry.js → p-7130f547.entry.js} +2 -2
  428. package/dist/isometrik-webchat/p-782d1bd2.js +2 -0
  429. package/dist/isometrik-webchat/p-782d1bd2.js.map +1 -0
  430. package/dist/isometrik-webchat/p-8142a54d.js +2 -0
  431. package/dist/isometrik-webchat/p-8142a54d.js.map +1 -0
  432. package/dist/isometrik-webchat/{p-cbb1179b.entry.js → p-89a8fc58.entry.js} +2 -2
  433. package/dist/isometrik-webchat/p-8f17345f.js +7 -0
  434. package/dist/isometrik-webchat/p-8f17345f.js.map +1 -0
  435. package/dist/isometrik-webchat/p-991d5437.js +2 -0
  436. package/dist/isometrik-webchat/p-991d5437.js.map +1 -0
  437. package/dist/isometrik-webchat/p-9b70e93f.entry.js +2 -0
  438. package/dist/isometrik-webchat/p-a5faa465.entry.js +2 -0
  439. package/dist/isometrik-webchat/p-a5faa465.entry.js.map +1 -0
  440. package/dist/isometrik-webchat/p-a83932d4.js +2 -0
  441. package/dist/isometrik-webchat/p-a83932d4.js.map +1 -0
  442. package/dist/isometrik-webchat/p-b0f6f9ab.entry.js +2 -0
  443. package/dist/isometrik-webchat/p-b0f6f9ab.entry.js.map +1 -0
  444. package/dist/isometrik-webchat/{p-3664e0ad.entry.js → p-b431d864.entry.js} +2 -2
  445. package/dist/isometrik-webchat/{p-0ccfbe90.entry.js → p-b516938b.entry.js} +2 -2
  446. package/dist/isometrik-webchat/p-be09cdc8.js +2 -0
  447. package/dist/isometrik-webchat/p-be09cdc8.js.map +1 -0
  448. package/dist/isometrik-webchat/{p-5b965e04.js → p-c4b7babb.js} +2 -2
  449. package/dist/isometrik-webchat/{p-5b965e04.js.map → p-c4b7babb.js.map} +1 -1
  450. package/dist/isometrik-webchat/p-d0f6679d.entry.js +2 -0
  451. package/dist/isometrik-webchat/p-d0f6679d.entry.js.map +1 -0
  452. package/dist/isometrik-webchat/p-d44c612a.entry.js +2 -0
  453. package/dist/isometrik-webchat/p-dc963574.entry.js +2 -0
  454. package/dist/isometrik-webchat/{p-5d1877d1.entry.js.map → p-dc963574.entry.js.map} +1 -1
  455. package/dist/isometrik-webchat/p-eb1f3118.entry.js +2 -0
  456. package/dist/isometrik-webchat/p-f18fa23d.js +2 -0
  457. package/dist/isometrik-webchat/p-f18fa23d.js.map +1 -0
  458. package/dist/isometrik-webchat/{p-08ba6153.entry.js → p-f5502a63.entry.js} +2 -2
  459. package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +2 -0
  460. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +10 -0
  461. package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +3 -0
  462. package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +3 -0
  463. package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +5 -0
  464. package/dist/types/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.d.ts +5 -2
  465. package/dist/types/components/ChatUIComponent/shared/chat-tile/chat-tile.d.ts +4 -1
  466. package/dist/types/components/ChatUIComponent/shared/contact-info/contact-info.d.ts +8 -22
  467. package/dist/types/components/ChatUIComponent/shared/image-message/image-message.d.ts +5 -0
  468. package/dist/types/components/ChatUIComponent/shared/info-panel-media/info-panel-media.d.ts +45 -0
  469. package/dist/types/components/ChatUIComponent/shared/media-gallery/media-gallery.d.ts +1 -0
  470. package/dist/types/components/ChatUIComponent/shared/profile-info/profile-info.d.ts +8 -0
  471. package/dist/types/components/ChatUIComponent/shared/reply-message-container/reply-message-container.d.ts +3 -0
  472. package/dist/types/components/ChatUIComponent/shared/storage/storage-manager.d.ts +17 -0
  473. package/dist/types/components/ChatUIComponent/shared/video-message/video-message.d.ts +3 -0
  474. package/dist/types/components/my-component/web-chat/WebChat.d.ts +22 -0
  475. package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +7 -0
  476. package/dist/types/components/my-component/web-chat/conversation-ops.d.ts +10 -2
  477. package/dist/types/components/my-component/web-chat/event-handlers.d.ts +5 -0
  478. package/dist/types/components/my-component/web-chat/mutations.d.ts +2 -2
  479. package/dist/types/components.d.ts +133 -2
  480. package/dist/types/lib/chat/block-status.d.ts +11 -0
  481. package/dist/types/lib/chat/clipboard-paste.d.ts +16 -0
  482. package/dist/types/lib/chat/download-media.d.ts +11 -0
  483. package/dist/types/lib/chat/index.d.ts +6 -2
  484. package/dist/types/lib/chat/same-name-upload.d.ts +24 -0
  485. package/dist/types/lib/chat/send-media.d.ts +90 -0
  486. package/dist/types/lib/chat/storage-quota.d.ts +98 -0
  487. package/dist/types/lib/custom-ui/public-api.d.ts +1 -1
  488. package/dist/types/lib/drawer.d.ts +1 -0
  489. package/dist/types/sdk/headless-api.d.ts +7 -0
  490. package/dist/types/sdk/index.d.ts +1 -0
  491. package/dist/types/sdk/webchat-api.d.ts +14 -0
  492. package/dist/types/store/storage-quota.d.ts +64 -0
  493. package/docs/MEDIA_STORAGE_QUOTA.md +130 -0
  494. package/package.json +3 -2
  495. package/dist/cjs/attachment-preview_22.cjs.entry.js.map +0 -1
  496. package/dist/cjs/content-ebca062a.js.map +0 -1
  497. package/dist/cjs/drawer-00a2323a.js.map +0 -1
  498. package/dist/cjs/group-members-cef1198e.js.map +0 -1
  499. package/dist/cjs/groupcast-8441b4df.js.map +0 -1
  500. package/dist/cjs/helpers-154861e9.js.map +0 -1
  501. package/dist/cjs/link-preview.cjs.entry.js +0 -49
  502. package/dist/cjs/link-preview.cjs.entry.js.map +0 -1
  503. package/dist/cjs/local-notification-bdd04d7a.js.map +0 -1
  504. package/dist/cjs/runtime-controls-cfc8fc31.js.map +0 -1
  505. package/dist/cjs/send-media-4ee967d4.js.map +0 -1
  506. package/dist/components/group-members2.js +0 -37
  507. package/dist/components/group-members2.js.map +0 -1
  508. package/dist/esm/attachment-preview_22.entry.js.map +0 -1
  509. package/dist/esm/content-fb138a93.js.map +0 -1
  510. package/dist/esm/drawer-7de04622.js.map +0 -1
  511. package/dist/esm/group-members-7909941c.js.map +0 -1
  512. package/dist/esm/groupcast-5fb19ec3.js.map +0 -1
  513. package/dist/esm/helpers-f33b895c.js.map +0 -1
  514. package/dist/esm/link-preview.entry.js +0 -45
  515. package/dist/esm/link-preview.entry.js.map +0 -1
  516. package/dist/esm/local-notification-4c1e166d.js.map +0 -1
  517. package/dist/esm/runtime-controls-ff81e90a.js.map +0 -1
  518. package/dist/esm/send-media-58e7145b.js.map +0 -1
  519. package/dist/isometrik-webchat/p-09980c53.entry.js +0 -2
  520. package/dist/isometrik-webchat/p-09980c53.entry.js.map +0 -1
  521. package/dist/isometrik-webchat/p-1eecc7c5.entry.js +0 -2
  522. package/dist/isometrik-webchat/p-1eecc7c5.entry.js.map +0 -1
  523. package/dist/isometrik-webchat/p-2cf296e6.entry.js +0 -2
  524. package/dist/isometrik-webchat/p-2e9974e1.entry.js +0 -2
  525. package/dist/isometrik-webchat/p-343f50b4.js +0 -7
  526. package/dist/isometrik-webchat/p-343f50b4.js.map +0 -1
  527. package/dist/isometrik-webchat/p-352b589e.entry.js +0 -2
  528. package/dist/isometrik-webchat/p-44da28d3.entry.js +0 -2
  529. package/dist/isometrik-webchat/p-44da28d3.entry.js.map +0 -1
  530. package/dist/isometrik-webchat/p-48ce4dca.entry.js +0 -2
  531. package/dist/isometrik-webchat/p-52a575c0.entry.js +0 -2
  532. package/dist/isometrik-webchat/p-52a575c0.entry.js.map +0 -1
  533. package/dist/isometrik-webchat/p-5cfb953d.js +0 -2
  534. package/dist/isometrik-webchat/p-5cfb953d.js.map +0 -1
  535. package/dist/isometrik-webchat/p-5d1877d1.entry.js +0 -2
  536. package/dist/isometrik-webchat/p-6f5037b2.js +0 -2
  537. package/dist/isometrik-webchat/p-6f5037b2.js.map +0 -1
  538. package/dist/isometrik-webchat/p-78fb47c4.js +0 -2
  539. package/dist/isometrik-webchat/p-78fb47c4.js.map +0 -1
  540. package/dist/isometrik-webchat/p-9982fa21.js.map +0 -1
  541. package/dist/isometrik-webchat/p-a9efcf1c.entry.js +0 -2
  542. package/dist/isometrik-webchat/p-a9efcf1c.entry.js.map +0 -1
  543. package/dist/isometrik-webchat/p-ad02a8ca.entry.js +0 -2
  544. package/dist/isometrik-webchat/p-b0baa9ad.entry.js +0 -2
  545. package/dist/isometrik-webchat/p-b0baa9ad.entry.js.map +0 -1
  546. package/dist/isometrik-webchat/p-b385ac4b.js +0 -2
  547. package/dist/isometrik-webchat/p-b385ac4b.js.map +0 -1
  548. package/dist/isometrik-webchat/p-c83e2d5d.entry.js +0 -2
  549. package/dist/isometrik-webchat/p-d758e431.js +0 -2
  550. package/dist/isometrik-webchat/p-d864bb9f.entry.js +0 -2
  551. package/dist/isometrik-webchat/p-d864bb9f.entry.js.map +0 -1
  552. package/dist/isometrik-webchat/p-dab06d54.js +0 -2
  553. package/dist/isometrik-webchat/p-dab06d54.js.map +0 -1
  554. package/dist/isometrik-webchat/p-e40e8866.js +0 -2
  555. package/dist/isometrik-webchat/p-e40e8866.js.map +0 -1
  556. package/dist/isometrik-webchat/p-e48a1217.entry.js +0 -2
  557. /package/dist/isometrik-webchat/{p-d892b4d4.entry.js.map → p-02db2116.entry.js.map} +0 -0
  558. /package/dist/isometrik-webchat/{p-c591fa45.js.map → p-04fdbd0a.js.map} +0 -0
  559. /package/dist/isometrik-webchat/{p-c5bff6a1.entry.js.map → p-119fc683.entry.js.map} +0 -0
  560. /package/dist/isometrik-webchat/{p-925decda.js.map → p-1dc52239.js.map} +0 -0
  561. /package/dist/isometrik-webchat/{p-7b25f234.entry.js.map → p-35f2b9ae.entry.js.map} +0 -0
  562. /package/dist/isometrik-webchat/{p-3b3dc33e.js.map → p-46be73c5.js.map} +0 -0
  563. /package/dist/isometrik-webchat/{p-2cf296e6.entry.js.map → p-56521ea4.entry.js.map} +0 -0
  564. /package/dist/isometrik-webchat/{p-f7d05551.entry.js.map → p-57f97cef.entry.js.map} +0 -0
  565. /package/dist/isometrik-webchat/{p-ad02a8ca.entry.js.map → p-5f7eebbf.entry.js.map} +0 -0
  566. /package/dist/isometrik-webchat/{p-c83e2d5d.entry.js.map → p-640e2c03.entry.js.map} +0 -0
  567. /package/dist/isometrik-webchat/{p-d758e431.js.map → p-6c5eb178.js.map} +0 -0
  568. /package/dist/isometrik-webchat/{p-d8b65cf4.entry.js.map → p-6eadaa6c.entry.js.map} +0 -0
  569. /package/dist/isometrik-webchat/{p-161fcb35.entry.js.map → p-7130f547.entry.js.map} +0 -0
  570. /package/dist/isometrik-webchat/{p-cbb1179b.entry.js.map → p-89a8fc58.entry.js.map} +0 -0
  571. /package/dist/isometrik-webchat/{p-e48a1217.entry.js.map → p-9b70e93f.entry.js.map} +0 -0
  572. /package/dist/isometrik-webchat/{p-3664e0ad.entry.js.map → p-b431d864.entry.js.map} +0 -0
  573. /package/dist/isometrik-webchat/{p-0ccfbe90.entry.js.map → p-b516938b.entry.js.map} +0 -0
  574. /package/dist/isometrik-webchat/{p-48ce4dca.entry.js.map → p-d44c612a.entry.js.map} +0 -0
  575. /package/dist/isometrik-webchat/{p-2e9974e1.entry.js.map → p-eb1f3118.entry.js.map} +0 -0
  576. /package/dist/isometrik-webchat/{p-08ba6153.entry.js.map → p-f5502a63.entry.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"names":["WEB_CHAT_PUBLIC_EVENTS","WEB_CHAT_PUBLIC_METHODS","callMethod","el","name","args","fn","Promise","reject","Error","resolve","apply","createWebChatApi","chatComponent","selectConversation","id","sendText","body","conversationId","sendMedia","files","caption","setReply","message","clearReply","loadMoreMessages","loadMoreConversations","getChatState","setCustomParts","parts","on","event","handler","addEventListener","removeEventListener","methods","events","isElement","node","nodeType","slotNameOf","getAttribute","slot","setWebChatSlot","slotName","element","clearWebChatSlot","setAttribute","appendChild","Array","from","children","forEach","remove","createSlotHost","className","document","createElement","style","height","width","display","setWebChatSlots","slots","Object","entries","getChatStore","window","__isometrikChatComponents","setChatStore","partial","store","themeProvider","undefined","clearChatStore","resolveThemeProvider","tagName","closest","_a","call","host","findWebChatHost","_b","parentElement","stored","querySelector","resolveWebChat","DEFAULT_THEME_URL","buildWebchatSessionKey","props","containerId","isometrikUserId","userToken","projectId","accountId","keysetId","join","getRetainState","count","sessionKey","instance","pendingDestroy","w","__isometrikChatRetain","resolveThemeObject","merged","assign","themeObject","theme","normalized","normalizeThemeObject","keys","length","applyOptionalBool","key","value","isLiveInstance","destroyIsometrikWebchat","retain","clearTimeout","destroyChatDom","querySelectorAll","childNodes","destroyChat","initializeIsometrikWebchat","licenseKey","appSecret","userSecret","console","error","themeUrl","defaultTheme","baseUrl","hostUrl","customParts","resolveShowProfileRailProp","showChatWallpaper","groupcastEnabled","showHeader","showComposer","showEmptyState","showConversationList","showRightPanel","isSidebarHeaderSearch","showMqttStatus","enablePushNotifications","enableLocalNotifications","onLocalNotification","container","getElementById","api","destroy","Math","max","ensureIsometrikWebchat","retainIsometrikWebchat","releaseIsometrikWebchat","delayMs","setTimeout","initializeChat","isometrikWebchatApi","session","init","config","initializeChatSdk","fetchUserDetails","conversations","list","fetchConversationsPage","details","fetchConversationDetails","sortByLatest","sortConversationsByLatestMessage","mergeUnique","mergeUniqueConversations","messages","fetchMessagesPage","markRead","markConversationRead","mergeById","mergeMessagesById","search","searchMessages","links","fetchLinkMessages","mediaCount","fetchMediaCount","mediaAttachments","fetchMediaAttachments","filterMedia","filterMediaMessages","groupcast","fetchGroupcastDetails","members","fetchGroupcastMembersPage","contacts","fetchGroupcastContactsPage","media","mediaTypeFromMime","customTypeFromMime","prepareMediaAttachments","buildReplyMetaData","ROOT_KEY","paint","react","propsFromHost","root","render","Component","extraProps","defineReactCustomPart","tag","opts","customElements","get","createRoot","propKeys","ReactPart","HTMLElement","constructor","this","_store","connectedCallback","disconnectedCallback","unmount","isConnected","fromSetters","defineProperty","prototype","set","configurable","define","mountReactInSlot","updateProps","next","unmountReactSlot","anyHost","customChatSidebar","isChatFilter","switchChatTheme","chat","setTheme","applyCustomTheme","customTheme","themePath","toggleTheme"],"sources":["src/lib/custom-ui/public-api.ts","src/sdk/webchat-api.ts","src/sdk/slots.ts","src/sdk/instance.ts","src/sdk/init.ts","src/sdk/headless-api.ts","src/sdk/react-bridge.ts","src/sdk/runtime-controls.ts"],"sourcesContent":["/**\n * Public host-facing events + method contract for <web-chat>.\n * Slots/customParts = UI. These = data + actions (fully functional custom UI).\n */\n\nexport type ChatReadyDetail = {\n userMetaData: any;\n conversations: any[];\n};\n\nexport type ConversationsChangeDetail = {\n conversations: any[];\n};\n\nexport type MessagesChangeDetail = {\n conversationId: string | null;\n messages: any[];\n};\n\nexport type SelectionChangeDetail = {\n conversationId: string | null;\n conversation: any | null;\n};\n\nexport type ReplyChangeDetail = {\n replyMessage: any | null;\n};\n\nexport type ChatErrorDetail = {\n code: string;\n message: string;\n cause?: unknown;\n};\n\nexport const WEB_CHAT_PUBLIC_EVENTS = [\n 'chatReady',\n 'conversationsChange',\n 'messagesChange',\n 'conversationSelect',\n 'replyChange',\n 'chatError',\n 'unreadMessageCountUpdated',\n 'conversationNotFound',\n 'messageReadStatusUpdated',\n] as const;\n\nexport type WebChatPublicEvent = (typeof WEB_CHAT_PUBLIC_EVENTS)[number];\n\n/** Documented public @Method names on <web-chat>. */\nexport const WEB_CHAT_PUBLIC_METHODS = [\n 'selectConversation',\n 'sendText',\n 'sendMedia',\n 'setReply',\n 'clearReply',\n 'loadMoreMessages',\n 'loadMoreConversations',\n 'getChatState',\n 'setCustomParts',\n] as const;\n\nexport type WebChatPublicMethod = (typeof WEB_CHAT_PUBLIC_METHODS)[number];\n","/**\n * Bound actions/events for a live <web-chat> instance.\n * No REST imports — safe for unit tests without ChatSDK.\n */\n\nimport { WEB_CHAT_PUBLIC_EVENTS, WEB_CHAT_PUBLIC_METHODS } from '../lib/custom-ui';\nimport type { WebChatPublicEvent, WebChatPublicMethod } from '../lib/custom-ui';\n\nexport type WebChatApi = {\n selectConversation: (conversationId: string | null) => Promise<void>;\n sendText: (body: string, conversationId?: string) => Promise<unknown>;\n sendMedia: (files: File[] | FileList, conversationId?: string, caption?: string) => Promise<unknown>;\n setReply: (message: any | null) => Promise<void>;\n clearReply: () => Promise<void>;\n loadMoreMessages: () => Promise<void>;\n loadMoreConversations: () => Promise<void>;\n getChatState: () => Promise<Record<string, unknown>>;\n setCustomParts: (parts: Record<string, string>) => Promise<unknown>;\n on: (event: WebChatPublicEvent, handler: (ev: Event) => void) => () => void;\n methods: typeof WEB_CHAT_PUBLIC_METHODS;\n events: typeof WEB_CHAT_PUBLIC_EVENTS;\n};\n\nfunction callMethod(el: any, name: WebChatPublicMethod | 'setCustomParts', ...args: any[]) {\n const fn = el?.[name];\n if (typeof fn !== 'function') {\n return Promise.reject(new Error(`[isometrik-webchat] method \"${name}\" is not available`));\n }\n return Promise.resolve(fn.apply(el, args));\n}\n\n/** Bind public methods/events to a mounted <web-chat> element. */\nexport function createWebChatApi(chatComponent: HTMLElement | null | undefined): WebChatApi | null {\n if (!chatComponent) return null;\n const el = chatComponent as any;\n\n return {\n selectConversation: id => callMethod(el, 'selectConversation', id),\n sendText: (body, conversationId) => callMethod(el, 'sendText', body, conversationId),\n sendMedia: (files, conversationId, caption) => callMethod(el, 'sendMedia', files, conversationId, caption),\n setReply: message => callMethod(el, 'setReply', message),\n clearReply: () => callMethod(el, 'clearReply'),\n loadMoreMessages: () => callMethod(el, 'loadMoreMessages'),\n loadMoreConversations: () => callMethod(el, 'loadMoreConversations'),\n getChatState: () => callMethod(el, 'getChatState'),\n setCustomParts: parts => callMethod(el, 'setCustomParts', parts),\n on(event, handler) {\n el.addEventListener(event, handler);\n return () => el.removeEventListener(event, handler);\n },\n methods: WEB_CHAT_PUBLIC_METHODS,\n events: WEB_CHAT_PUBLIC_EVENTS,\n };\n}\n","/**\n * Framework-agnostic slot helpers.\n * React / Angular / Vue / vanilla all end up calling these with real HTMLElements.\n *\n * Note: avoid `instanceof HTMLElement` — it fails across jsdom realms in Jest.\n */\n\nimport type { WebChatSlotName } from '../lib/custom-ui';\n\nfunction isElement(node: ChildNode | null | undefined): node is HTMLElement {\n return !!node && node.nodeType === 1;\n}\n\nfunction slotNameOf(el: HTMLElement): string | null {\n return el.getAttribute('slot') || el.slot || null;\n}\n\n/** Attach (or replace) a named slot on <web-chat>. */\nexport function setWebChatSlot(\n chatComponent: HTMLElement | null | undefined,\n slotName: WebChatSlotName,\n element: HTMLElement,\n): HTMLElement | null {\n if (!chatComponent || !element) return null;\n clearWebChatSlot(chatComponent, slotName);\n element.slot = slotName;\n element.setAttribute('slot', slotName);\n chatComponent.appendChild(element);\n return element;\n}\n\n/** Remove host content for a named slot. */\nexport function clearWebChatSlot(\n chatComponent: HTMLElement | null | undefined,\n slotName: WebChatSlotName,\n): void {\n if (!chatComponent) return;\n Array.from(chatComponent.children).forEach(node => {\n if (!isElement(node)) return;\n if (slotNameOf(node) === slotName) {\n node.remove();\n }\n });\n}\n\n/** Create a plain wrapper element ready to receive framework content (e.g. React portal target). */\nexport function createSlotHost(slotName: WebChatSlotName, className?: string): HTMLElement {\n const el = document.createElement('div');\n el.slot = slotName;\n el.setAttribute('slot', slotName);\n el.setAttribute('data-isometrik-slot', slotName);\n if (className) el.className = className;\n el.style.height = '100%';\n el.style.width = '100%';\n el.style.display = 'contents';\n return el;\n}\n\n/** Attach many slots at once (same shape as initialize props.slots). */\nexport function setWebChatSlots(\n chatComponent: HTMLElement | null | undefined,\n slots?: Partial<Record<WebChatSlotName, HTMLElement>>,\n): void {\n if (!chatComponent || !slots) return;\n (Object.entries(slots) as [WebChatSlotName, HTMLElement | undefined][]).forEach(([name, el]) => {\n if (el) setWebChatSlot(chatComponent, name, el);\n });\n}\n","/**\n * Last-mounted chat instance registry + resolvers.\n * Prefer explicit elements; fall back to store; querySelector is last resort.\n */\n\nimport { findWebChatHost } from '../lib/custom-ui';\n\nexport type StoredChatComponents = {\n themeProvider?: HTMLElement;\n chatComponent?: HTMLElement;\n};\n\nexport function getChatStore(): StoredChatComponents {\n if (typeof window === 'undefined') return {};\n (window as any).__isometrikChatComponents = (window as any).__isometrikChatComponents || {};\n return (window as any).__isometrikChatComponents;\n}\n\nexport function setChatStore(partial: StoredChatComponents): void {\n const store = getChatStore();\n if (partial.themeProvider !== undefined) store.themeProvider = partial.themeProvider;\n if (partial.chatComponent !== undefined) store.chatComponent = partial.chatComponent;\n}\n\nexport function clearChatStore(): void {\n if (typeof window === 'undefined') return;\n (window as any).__isometrikChatComponents = {};\n}\n\n/** Resolve <theme-provider> from an explicit node, store, or (last) DOM. */\nexport function resolveThemeProvider(from?: Element | null): HTMLElement | null {\n if (from) {\n const el = from as HTMLElement;\n if (el.tagName === 'THEME-PROVIDER') return el;\n const closest = el.closest?.('theme-provider');\n if (closest) return closest as HTMLElement;\n const host = findWebChatHost(el);\n if (host?.parentElement?.tagName === 'THEME-PROVIDER') {\n return host.parentElement;\n }\n }\n const stored = getChatStore().themeProvider;\n if (stored) return stored;\n if (typeof document === 'undefined') return null;\n return document.querySelector('theme-provider');\n}\n\n/** Resolve <web-chat> from an explicit node, store, or (last) DOM. */\nexport function resolveWebChat(from?: Element | null): HTMLElement | null {\n if (from) {\n const el = from as HTMLElement;\n if (el.tagName === 'WEB-CHAT') return el;\n const host = findWebChatHost(el);\n if (host) return host;\n }\n const stored = getChatStore().chatComponent;\n if (stored) return stored;\n if (typeof document === 'undefined') return null;\n return document.querySelector('web-chat');\n}\n","import { destroyChatDom } from '../lib/destroy-chat';\nimport type { WebChatSlotName, WebChatCustomParts } from '../lib/custom-ui';\nimport type { ThemeTokenMap } from './theme-tokens';\nimport { normalizeThemeObject } from './theme-tokens';\nimport { resolveShowProfileRailProp } from './composition';\nimport { createWebChatApi, type WebChatApi } from './webchat-api';\nimport { setWebChatSlots } from './slots';\nimport { clearChatStore, getChatStore, setChatStore } from './instance';\n\nconst DEFAULT_THEME_URL =\n 'https://isometrik-website-bucket.s3.ap-south-1.amazonaws.com/styles/chat-combined-theme.css';\n\nexport type IsometrikWebchatInitProps = {\n baseUrl?: string;\n hostUrl?: string;\n licenseKey: string;\n appSecret: string;\n userSecret: string;\n userToken: string;\n isometrikUserId: string;\n projectId: string;\n keysetId: string;\n accountId: string;\n defaultTheme?: 'dark' | 'light';\n /** CSS file from CDN or same-origin path. */\n themeUrl?: string;\n /** Inline CSS variable overrides (wins over themeUrl for same keys). */\n theme?: ThemeTokenMap;\n /** @deprecated Use `theme`. Kept for applyCustomTheme / older hosts. */\n themeObject?: Record<string, string>;\n containerId?: string;\n /** Optional custom UI nodes — each gets `slot=\"<name>\"` and is appended to <web-chat>. */\n slots?: Partial<Record<WebChatSlotName, HTMLElement>>;\n /** Custom element tags for list rows / dialogs. */\n customParts?: WebChatCustomParts;\n /** When false, hide the left profile icon rail. Default true. */\n showProfileRail?: boolean;\n /** Alias of showProfileRail for clearer host DX. Default true. */\n showProfileSidebar?: boolean;\n /** When false, no doodle wallpaper behind messages. Default true. */\n showChatWallpaper?: boolean;\n /** When false, hide groupcast entry points. Default true. */\n groupcastEnabled?: boolean;\n /** When false, hide conversation header. Default true. */\n showHeader?: boolean;\n /** When false, hide composer. Default true. */\n showComposer?: boolean;\n /** When false, hide empty state. Default true. */\n showEmptyState?: boolean;\n /** When false, hide conversation list. Default true. */\n showConversationList?: boolean;\n /** When false, never show right info panel. Default true. */\n showRightPanel?: boolean;\n /** When false, hide conversation-list search. Default true. */\n isSidebarHeaderSearch?: boolean;\n /**\n * When false, hide the MQTT green/red status dot in the conversation list header.\n * Default true.\n */\n showMqttStatus?: boolean;\n /**\n * When false, outbound messages set `events.sendPushNotification: false`\n * (backend will not FCM/APNs). Default true.\n */\n enablePushNotifications?: boolean;\n /**\n * When false, skip inbound MQTT local alerts (toast / customParts / callback).\n * Default true.\n */\n enableLocalNotifications?: boolean;\n /**\n * Flutter `showNotification` parity — host owns the UI when set.\n * Called for inbound messages when local notifications are enabled.\n */\n onLocalNotification?: (detail: {\n title: string;\n body: string;\n conversationId: string;\n messageId?: string;\n data: Record<string, any>;\n }) => void;\n};\n\n/** @deprecated Use IsometrikWebchatInitProps */\nexport type InitializeChatProps = IsometrikWebchatInitProps;\n\nexport type IsometrikWebchatInstance = {\n themeProvider: HTMLElement;\n chatComponent: HTMLElement;\n /** Bound actions/events for the live instance. */\n api: WebChatApi;\n /** Session key used by ensure/retain. */\n sessionKey: string;\n destroy: () => void;\n};\n\n/** Identity for reuse — same user + project + mount target → skip re-bootstrap. */\nexport function buildWebchatSessionKey(props: IsometrikWebchatInitProps): string {\n return [\n props.containerId || '__body__',\n props.isometrikUserId,\n props.userToken,\n props.projectId,\n props.accountId,\n props.keysetId,\n ].join('|');\n}\n\ntype RetainState = {\n count: number;\n sessionKey: string;\n instance: IsometrikWebchatInstance | null;\n pendingDestroy: ReturnType<typeof setTimeout> | null;\n};\n\nfunction getRetainState(): RetainState {\n if (typeof window === 'undefined') {\n return { count: 0, sessionKey: '', instance: null, pendingDestroy: null };\n }\n const w = window as any;\n if (!w.__isometrikChatRetain) {\n w.__isometrikChatRetain = {\n count: 0,\n sessionKey: '',\n instance: null,\n pendingDestroy: null,\n } as RetainState;\n }\n return w.__isometrikChatRetain;\n}\n\nfunction resolveThemeObject(props: IsometrikWebchatInitProps): Record<string, string> | undefined {\n const merged = { ...(props.themeObject || {}), ...(props.theme || {}) };\n const normalized = normalizeThemeObject(merged as Record<string, string>);\n return Object.keys(normalized).length ? normalized : undefined;\n}\n\nfunction applyOptionalBool(el: any, key: string, value: boolean | undefined) {\n if (value !== undefined) el[key] = value;\n}\n\nfunction isLiveInstance(instance: IsometrikWebchatInstance | null): boolean {\n if (!instance) return false;\n const { themeProvider, chatComponent } = instance;\n if (!themeProvider || !chatComponent) return false;\n // isConnected may be false in some test envs; also accept store match\n const store = getChatStore();\n return store.chatComponent === chatComponent && store.themeProvider === themeProvider;\n}\n\n/** Tear down existing chat instance (MQTT via disconnectedCallback, DOM). */\nexport function destroyIsometrikWebchat(): void {\n const retain = getRetainState();\n if (retain.pendingDestroy) {\n clearTimeout(retain.pendingDestroy);\n retain.pendingDestroy = null;\n }\n retain.count = 0;\n retain.sessionKey = '';\n retain.instance = null;\n\n destroyChatDom();\n document.querySelectorAll('theme-provider').forEach(el => {\n if (!el.querySelector('web-chat') && el.childNodes.length === 0) {\n el.remove();\n }\n });\n clearChatStore();\n}\n\n/** @deprecated Use destroyIsometrikWebchat */\nexport const destroyChat = destroyIsometrikWebchat;\n\n/**\n * Force mount: always tears down previous instance then creates a new one.\n * Prefer `retainIsometrikWebchat` / `ensureIsometrikWebchat` in React/SPA hosts\n * to avoid double bootstrap (Strict Mode / remount).\n */\nexport function initializeIsometrikWebchat(\n props: IsometrikWebchatInitProps,\n): IsometrikWebchatInstance | null {\n if (\n !props.licenseKey ||\n !props.appSecret ||\n !props.userSecret ||\n !props.userToken ||\n !props.isometrikUserId ||\n !props.projectId ||\n !props.keysetId ||\n !props.accountId\n ) {\n console.error('Missing required props to Initialize chat!');\n return null;\n }\n\n destroyIsometrikWebchat();\n\n const sessionKey = buildWebchatSessionKey(props);\n const themeProvider = document.createElement('theme-provider') as any;\n const themeUrl = props.themeUrl || DEFAULT_THEME_URL;\n const themeObject = resolveThemeObject(props);\n\n if (props.defaultTheme) {\n themeProvider.setAttribute('mode', props.defaultTheme);\n }\n themeProvider.setAttribute('theme-path', themeUrl);\n if (themeObject) {\n themeProvider.themeObject = themeObject;\n }\n\n const chatComponent = document.createElement('web-chat') as any;\n\n chatComponent.baseUrl = props.baseUrl || 'https://apis.isometrik.io';\n chatComponent.hostUrl = props.hostUrl || 'wss://connections.isometrik.io:2053/mqtt';\n chatComponent.licenseKey = props.licenseKey;\n chatComponent.appSecret = props.appSecret;\n chatComponent.userSecret = props.userSecret;\n chatComponent.userToken = props.userToken;\n chatComponent.isometrikUserId = props.isometrikUserId;\n chatComponent.projectId = props.projectId;\n chatComponent.keysetId = props.keysetId;\n chatComponent.accountId = props.accountId;\n chatComponent.defaultTheme = props.defaultTheme || 'light';\n chatComponent.themeUrl = themeUrl;\n\n chatComponent.style.width = '100%';\n chatComponent.style.height = '100%';\n\n if (props.customParts) {\n chatComponent.customParts = props.customParts;\n }\n\n applyOptionalBool(chatComponent, 'showProfileRail', resolveShowProfileRailProp(props));\n applyOptionalBool(chatComponent, 'showChatWallpaper', props.showChatWallpaper);\n applyOptionalBool(chatComponent, 'groupcastEnabled', props.groupcastEnabled);\n applyOptionalBool(chatComponent, 'showHeader', props.showHeader);\n applyOptionalBool(chatComponent, 'showComposer', props.showComposer);\n applyOptionalBool(chatComponent, 'showEmptyState', props.showEmptyState);\n applyOptionalBool(chatComponent, 'showConversationList', props.showConversationList);\n applyOptionalBool(chatComponent, 'showRightPanel', props.showRightPanel);\n applyOptionalBool(chatComponent, 'isSidebarHeaderSearch', props.isSidebarHeaderSearch);\n applyOptionalBool(chatComponent, 'showMqttStatus', props.showMqttStatus);\n applyOptionalBool(chatComponent, 'enablePushNotifications', props.enablePushNotifications);\n applyOptionalBool(chatComponent, 'enableLocalNotifications', props.enableLocalNotifications);\n if (typeof props.onLocalNotification === 'function') {\n chatComponent.onLocalNotification = props.onLocalNotification;\n }\n\n setWebChatSlots(chatComponent, props.slots);\n\n themeProvider.appendChild(chatComponent);\n themeProvider.style.width = '100%';\n themeProvider.style.height = '100%';\n themeProvider.style.display = 'block';\n\n const container = props.containerId ? document.getElementById(props.containerId) : document.body;\n if (container) {\n container.appendChild(themeProvider);\n } else {\n console.error('Container with the specified ID not found. Appending to body instead.');\n document.body.appendChild(themeProvider);\n }\n\n setChatStore({ themeProvider, chatComponent });\n\n const api = createWebChatApi(chatComponent)!;\n const instance: IsometrikWebchatInstance = {\n themeProvider,\n chatComponent,\n api,\n sessionKey,\n destroy: destroyIsometrikWebchat,\n };\n\n const retain = getRetainState();\n retain.instance = instance;\n retain.sessionKey = sessionKey;\n retain.count = Math.max(retain.count, 1);\n\n return instance;\n}\n\n/**\n * Reuse live instance when session key matches (same user/token/container).\n * Otherwise mounts fresh. Does not bump retain count — use `retainIsometrikWebchat` in React.\n */\nexport function ensureIsometrikWebchat(\n props: IsometrikWebchatInitProps,\n): IsometrikWebchatInstance | null {\n const retain = getRetainState();\n if (retain.pendingDestroy) {\n clearTimeout(retain.pendingDestroy);\n retain.pendingDestroy = null;\n }\n\n const key = buildWebchatSessionKey(props);\n if (retain.sessionKey === key && isLiveInstance(retain.instance)) {\n return retain.instance;\n }\n return initializeIsometrikWebchat(props);\n}\n\n/**\n * React / SPA friendly: acquire a chat instance.\n * Pair with `releaseIsometrikWebchat` in effect cleanup.\n * Survives React 18 Strict Mode double-mount without a second bootstrap.\n */\nexport function retainIsometrikWebchat(\n props: IsometrikWebchatInitProps,\n): IsometrikWebchatInstance | null {\n const retain = getRetainState();\n if (retain.pendingDestroy) {\n clearTimeout(retain.pendingDestroy);\n retain.pendingDestroy = null;\n }\n retain.count += 1;\n return ensureIsometrikWebchat(props);\n}\n\n/**\n * Release a retain from `retainIsometrikWebchat`.\n * Destroy is deferred so Strict Mode remount can cancel it.\n * @param delayMs default 0 (macrotask) — enough for React 18 Strict Mode\n */\nexport function releaseIsometrikWebchat(delayMs: number = 0): void {\n const retain = getRetainState();\n retain.count = Math.max(0, retain.count - 1);\n if (retain.count > 0) return;\n\n if (retain.pendingDestroy) clearTimeout(retain.pendingDestroy);\n retain.pendingDestroy = setTimeout(() => {\n retain.pendingDestroy = null;\n if (retain.count > 0) return;\n destroyIsometrikWebchat();\n }, delayMs);\n}\n\n/** @deprecated Use initializeIsometrikWebchat */\nexport const initializeChat = initializeIsometrikWebchat;\n","/**\n * Headless REST helpers — same paths the shell uses.\n * Call session.init before other methods when not mounting <web-chat>.\n */\n\nimport {\n fetchConversationsPage,\n fetchConversationDetails,\n sortConversationsByLatestMessage,\n mergeUniqueConversations,\n fetchMessagesPage,\n markConversationRead,\n mergeMessagesById,\n searchMessages,\n fetchLinkMessages,\n fetchMediaCount,\n fetchMediaAttachments,\n filterMediaMessages,\n initializeChatSdk,\n fetchUserDetails,\n fetchGroupcastDetails,\n fetchGroupcastMembersPage,\n fetchGroupcastContactsPage,\n mediaTypeFromMime,\n customTypeFromMime,\n prepareMediaAttachments,\n buildReplyMetaData,\n type ChatSdkInitConfig,\n} from '../lib/chat';\n\nexport const isometrikWebchatApi = {\n session: {\n init: (config: ChatSdkInitConfig) => initializeChatSdk(config),\n fetchUserDetails,\n },\n conversations: {\n list: fetchConversationsPage,\n details: fetchConversationDetails,\n sortByLatest: sortConversationsByLatestMessage,\n mergeUnique: mergeUniqueConversations,\n },\n messages: {\n list: fetchMessagesPage,\n markRead: markConversationRead,\n mergeById: mergeMessagesById,\n search: searchMessages,\n links: fetchLinkMessages,\n mediaCount: fetchMediaCount,\n mediaAttachments: fetchMediaAttachments,\n filterMedia: filterMediaMessages,\n },\n groupcast: {\n details: fetchGroupcastDetails,\n members: fetchGroupcastMembersPage,\n contacts: fetchGroupcastContactsPage,\n },\n media: {\n mediaTypeFromMime,\n customTypeFromMime,\n prepareMediaAttachments,\n buildReplyMetaData,\n },\n};\n\nexport type IsometrikWebchatApi = typeof isometrikWebchatApi;\n","/**\n * React → WebChat bridge (no React dependency in this package).\n *\n * Hosts pass their own `createElement` + `createRoot` so the core SDK stays\n * framework-agnostic.\n *\n * 1) Panels (slots): mountReactInSlot → HTMLElement for `slots['profile-rail']`\n * 2) Rows/overlays (customParts): defineReactCustomPart → CE tag for customParts\n */\n\nimport type { WebChatSlotName } from '../lib/custom-ui';\nimport { createSlotHost } from './slots';\n\nexport type ReactLike = {\n createElement: (type: any, props: any, ...children: any[]) => any;\n};\n\nexport type ReactRootLike = {\n render: (node: any) => void;\n unmount: () => void;\n};\n\nexport type CreateRootLike = (container: Element) => ReactRootLike;\n\ntype BridgeRootStore = {\n root: ReactRootLike;\n Component: any;\n extraProps?: Record<string, unknown>;\n};\n\nconst ROOT_KEY = '__isometrikReactBridge';\n\nfunction paint(store: BridgeRootStore, react: ReactLike, propsFromHost: Record<string, unknown>) {\n store.root.render(\n react.createElement(store.Component, {\n ...(store.extraProps || {}),\n ...propsFromHost,\n }),\n );\n}\n\n/**\n * Wrap a React component as a custom element for `customParts`.\n * SDK assigns props (conversation, onSelect, …); we re-render React.\n *\n * @example\n * import { createElement } from 'react';\n * import { createRoot } from 'react-dom/client';\n * defineReactCustomPart('app-chat-tile', MyTile, {\n * react: { createElement },\n * createRoot,\n * propKeys: ['conversation', 'isSelected', 'unreadCount', 'previewText', 'onSelect'],\n * });\n * initializeIsometrikWebchat({ customParts: { chatTile: 'app-chat-tile' }, … });\n */\nexport function defineReactCustomPart(\n tag: string,\n Component: any,\n opts: {\n react: ReactLike;\n createRoot: CreateRootLike;\n /** Prop names the SDK writes on the CE (see lib/custom-ui/contracts.ts). */\n propKeys: string[];\n /** Static props merged into every render. */\n extraProps?: Record<string, unknown>;\n },\n): string {\n if (typeof customElements === 'undefined') return tag;\n if (customElements.get(tag)) return tag;\n\n const { react, createRoot, propKeys, extraProps } = opts;\n\n class ReactPart extends HTMLElement {\n private _store: BridgeRootStore | null = null;\n\n connectedCallback() {\n if (!this._store) {\n this._store = { root: createRoot(this), Component, extraProps };\n }\n this.render();\n }\n\n disconnectedCallback() {\n try {\n this._store?.root.unmount();\n } catch {\n /* unmount is best-effort */\n }\n this._store = null;\n }\n\n /** Called by applyCustomPartProps after Object.assign. */\n render() {\n if (!this._store || !this.isConnected) return;\n const fromSetters: Record<string, unknown> = {};\n propKeys.forEach(key => {\n fromSetters[key] = (this as any)[`_${key}`];\n });\n paint(this._store, react, fromSetters);\n }\n }\n\n propKeys.forEach(key => {\n const store = `_${key}`;\n Object.defineProperty(ReactPart.prototype, key, {\n get() {\n return (this as any)[store];\n },\n set(value) {\n if ((this as any)[store] === value) return;\n (this as any)[store] = value;\n if (this.isConnected) (this as HTMLElement & { render: () => void }).render();\n },\n configurable: true,\n });\n });\n\n customElements.define(tag, ReactPart);\n return tag;\n}\n\nexport type ReactSlotHost = HTMLElement & {\n updateProps: (props: Record<string, unknown>) => void;\n unmount: () => void;\n};\n\n/**\n * Mount a React component into a slot host for panel overrides.\n * Pass the returned element in `slots: { 'profile-rail': el }`.\n *\n * @example\n * const rail = mountReactInSlot('profile-rail', MyProfileRail, {\n * react: { createElement },\n * createRoot,\n * props: { userId: '…' },\n * });\n * initializeIsometrikWebchat({ slots: { 'profile-rail': rail }, … });\n * // later: rail.updateProps({ badge: 3 }); rail.unmount();\n */\nexport function mountReactInSlot(\n slotName: WebChatSlotName,\n Component: any,\n opts: {\n react: ReactLike;\n createRoot: CreateRootLike;\n props?: Record<string, unknown>;\n className?: string;\n },\n): ReactSlotHost {\n const host = createSlotHost(slotName, opts.className) as ReactSlotHost;\n // display:contents can break React roots — use block for React mounts.\n host.style.display = 'block';\n host.style.height = '100%';\n\n const store: BridgeRootStore = {\n root: opts.createRoot(host),\n Component,\n extraProps: opts.props,\n };\n (host as any)[ROOT_KEY] = store;\n paint(store, opts.react, {});\n\n host.updateProps = (next: Record<string, unknown>) => {\n store.extraProps = { ...(store.extraProps || {}), ...next };\n paint(store, opts.react, {});\n };\n host.unmount = () => {\n try {\n store.root.unmount();\n } catch {\n /* ignore */\n }\n delete (host as any)[ROOT_KEY];\n };\n return host;\n}\n\nexport function unmountReactSlot(host: HTMLElement | null | undefined): void {\n if (!host) return;\n const anyHost = host as ReactSlotHost;\n if (typeof anyHost.unmount === 'function') {\n anyHost.unmount();\n return;\n }\n const store = (host as any)[ROOT_KEY] as BridgeRootStore | undefined;\n if (!store) return;\n try {\n store.root.unmount();\n } catch {\n /* ignore */\n }\n delete (host as any)[ROOT_KEY];\n}\n","/**\n * Theme / sidebar controls — instance-first (no bare querySelector in happy path).\n */\n\nimport { normalizeThemeObject } from './theme-tokens';\nimport { resolveThemeProvider, resolveWebChat } from './instance';\n\nexport function customChatSidebar(\n props: { isChatFilter?: boolean },\n from?: Element | null,\n): void {\n const chatComponent = resolveWebChat(from) as any;\n if (!chatComponent) {\n console.error('Isometrik chat is not initialized');\n return;\n }\n if (props.isChatFilter !== undefined) {\n chatComponent.isChatFilter = props.isChatFilter;\n }\n}\n\nexport function switchChatTheme(theme: 'dark' | 'light', from?: Element | null): void {\n const themeProvider = resolveThemeProvider(from) as any;\n const chat = resolveWebChat(from) as any;\n\n if (chat) {\n chat.defaultTheme = theme;\n }\n if (themeProvider) {\n themeProvider.setAttribute('mode', theme);\n if (typeof themeProvider.setTheme === 'function') {\n themeProvider.setTheme(theme);\n }\n return;\n }\n console.error('Theme provider is not initialized');\n}\n\nexport function applyCustomTheme(\n customTheme: {\n themePath?: string;\n themeObject?: { [key: string]: string };\n },\n from?: Element | null,\n): void {\n const themeProvider = resolveThemeProvider(from) as any;\n if (!themeProvider) {\n console.error('Theme provider is not initialized');\n return;\n }\n\n if (customTheme.themePath) {\n themeProvider.setAttribute('theme-path', customTheme.themePath);\n }\n\n if (customTheme.themeObject) {\n themeProvider.themeObject = normalizeThemeObject(customTheme.themeObject);\n }\n}\n\nexport function toggleTheme(from?: Element | null): void {\n const themeProvider = resolveThemeProvider(from) as any;\n if (!themeProvider) {\n console.error('Theme provider is not initialized');\n return;\n }\n if (typeof themeProvider.toggleTheme === 'function') {\n themeProvider.toggleTheme();\n }\n}\n"],"mappings":"+RAkCaA,EAAyB,CACpC,YACA,sBACA,iBACA,qBACA,cACA,YACA,4BACA,uBACA,4B,MAMWC,EAA0B,CACrC,qBACA,WACA,YACA,WACA,aACA,mBACA,wBACA,eACA,kBCnCF,SAASC,EAAWC,EAASC,KAAiDC,GAC5E,MAAMC,EAAKH,IAAE,MAAFA,SAAE,SAAFA,EAAKC,GAChB,UAAWE,IAAO,WAAY,CAC5B,OAAOC,QAAQC,OAAO,IAAIC,MAAM,+BAA+BL,uB,CAEjE,OAAOG,QAAQG,QAAQJ,EAAGK,MAAMR,EAAIE,GACtC,C,SAGgBO,EAAiBC,GAC/B,IAAKA,EAAe,OAAO,KAC3B,MAAMV,EAAKU,EAEX,MAAO,CACLC,mBAAoBC,GAAMb,EAAWC,EAAI,qBAAsBY,GAC/DC,SAAU,CAACC,EAAMC,IAAmBhB,EAAWC,EAAI,WAAYc,EAAMC,GACrEC,UAAW,CAACC,EAAOF,EAAgBG,IAAYnB,EAAWC,EAAI,YAAaiB,EAAOF,EAAgBG,GAClGC,SAAUC,GAAWrB,EAAWC,EAAI,WAAYoB,GAChDC,WAAY,IAAMtB,EAAWC,EAAI,cACjCsB,iBAAkB,IAAMvB,EAAWC,EAAI,oBACvCuB,sBAAuB,IAAMxB,EAAWC,EAAI,yBAC5CwB,aAAc,IAAMzB,EAAWC,EAAI,gBACnCyB,eAAgBC,GAAS3B,EAAWC,EAAI,iBAAkB0B,GAC1D,EAAAC,CA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