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
@@ -185,6 +185,10 @@ export namespace Components {
185
185
  "imageSrc": string;
186
186
  "imageTextColor": string;
187
187
  "imageWidth": string;
188
+ /**
189
+ * When true, tile menu shows Unblock and emits unblock (see isDmBlockedByCurrentUser).
190
+ */
191
+ "isBlockedByMe": boolean;
188
192
  "isDelivered": string;
189
193
  "isGroup": boolean;
190
194
  "isPending": boolean;
@@ -395,6 +399,11 @@ export namespace Components {
395
399
  "borderStyle": string;
396
400
  "borderWidth": string;
397
401
  "deliveryStatus": string;
402
+ "downloadFileName": string;
403
+ /**
404
+ * Full-size URL for download (defaults to imageSrc).
405
+ */
406
+ "downloadUrl": string;
398
407
  "height": string;
399
408
  "imageSrc": string;
400
409
  "isDelivered": string;
@@ -407,6 +416,7 @@ export namespace Components {
407
416
  "message": string;
408
417
  "messageId": string;
409
418
  "messageType": number;
419
+ "mimeType": string;
410
420
  "onImageClick": (e: Event) => void;
411
421
  "padding": string;
412
422
  "reactions": Record<string, string[]>;
@@ -440,6 +450,17 @@ export namespace Components {
440
450
  "userMetaData": any;
441
451
  "width": string;
442
452
  }
453
+ interface InfoPanelMedia {
454
+ "allAttachments": any[];
455
+ "allLinks": any;
456
+ "allLinksCount": number;
457
+ "closeMediaList": () => Promise<void>;
458
+ "conversationId": any;
459
+ /**
460
+ * Parent panels call before closing the drawer (e.g. contact-info back).
461
+ */
462
+ "isMediaListOpen": () => Promise<boolean>;
463
+ }
443
464
  interface IsoGroupInfo {
444
465
  "afterCreate": () => void;
445
466
  "closeGroupInfo": () => void;
@@ -684,6 +705,10 @@ export namespace Components {
684
705
  "fontSize": any;
685
706
  "fontStyle": any;
686
707
  "fontWeight": any;
708
+ /**
709
+ * When true, back returns to group contact-info instead of closing the rail.
710
+ */
711
+ "fromContactInfo": boolean;
687
712
  "groupMembers": any;
688
713
  "handleChatSelect": any;
689
714
  "hasMoreEligibleMembers": any;
@@ -792,6 +817,10 @@ export namespace Components {
792
817
  "messageInfo": any;
793
818
  "messageTime": string;
794
819
  "onMediaClick": (e: Event) => void;
820
+ /**
821
+ * Scroll / navigate to the quoted parent message (wired from WebChatBody).
822
+ */
823
+ "onQuoteClick": (parentMessageId: string, event: Event) => void;
795
824
  "padding": string;
796
825
  "parentMessageBody": string;
797
826
  "parentMessageId": string;
@@ -899,6 +928,7 @@ export namespace Components {
899
928
  "borderStyle": string;
900
929
  "borderWidth": string;
901
930
  "deliveryStatus": string;
931
+ "downloadFileName": string;
902
932
  "height": string;
903
933
  "isDelivered": string;
904
934
  "isRead": boolean;
@@ -941,6 +971,14 @@ export namespace Components {
941
971
  */
942
972
  "customParts"?: WebChatCustomParts;
943
973
  "defaultTheme": string;
974
+ /**
975
+ * Public: delete every file this user sent in a conversation (for everyone).
976
+ */
977
+ "deleteConversationStorageMedia": (conversationId: string) => Promise<import("/Users/3embed/Desktop/isometrik-webchat/src/lib/chat/storage-quota").MediaDeleteResult>;
978
+ /**
979
+ * Public: delete the messages that own `mediaIds` (for everyone) + free bytes.
980
+ */
981
+ "deleteStorageMedia": (mediaIds: string[]) => Promise<import("/Users/3embed/Desktop/isometrik-webchat/src/lib/chat/storage-quota").MediaDeleteResult>;
944
982
  /**
945
983
  * When false, skip inbound local message alerts. Default true.
946
984
  */
@@ -953,6 +991,14 @@ export namespace Components {
953
991
  * Public: snapshot of current SDK UI state.
954
992
  */
955
993
  "getChatState": () => Promise<{ userMetaData: any; conversations: any; messages: any; selectedConversationId: string; conversationMetaData: any; replyMessage: any; isLoading: boolean; isMqttConnected: boolean; unreadConversationsCount: number; }>;
994
+ /**
995
+ * Public: list the user's charged media (newest first).
996
+ */
997
+ "getStorageMedia": (opts?: { conversationId?: string; limit?: number; skip?: number; }) => Promise<import("/Users/3embed/Desktop/isometrik-webchat/src/lib/chat/storage-quota").QuotaMediaResponse>;
998
+ /**
999
+ * Public: server-authoritative media storage usage (null until ready).
1000
+ */
1001
+ "getStorageUsage": (forceRefresh?: boolean) => Promise<import("/Users/3embed/Desktop/isometrik-webchat/src/lib/chat/storage-quota").StorageUsage>;
956
1002
  /**
957
1003
  * When false, groupcast entry points are disabled. Default true.
958
1004
  */
@@ -984,6 +1030,10 @@ export namespace Components {
984
1030
  messageId?: string;
985
1031
  data: Record<string, any>;
986
1032
  }) => void;
1033
+ /**
1034
+ * Public: open the built-in Manage Storage panel (optionally scoped).
1035
+ */
1036
+ "openStorageManagement": (conversationId?: string) => Promise<void>;
987
1037
  "projectId": string;
988
1038
  /**
989
1039
  * Public: open a conversation (or clear with null).
@@ -1127,10 +1177,21 @@ export namespace Components {
1127
1177
  "onSearchHandler": (text: string) => void;
1128
1178
  "onSearchResultClick": (messageId: string) => Promise<void>;
1129
1179
  "openOwnProfile": () => void;
1180
+ "pendingProfileMember": {
1181
+ userId?: string;
1182
+ userName?: string;
1183
+ userProfileImageUrl?: string;
1184
+ userIdentifier?: string;
1185
+ } | null;
1186
+ "profileOpenedFromContactInfo": boolean;
1130
1187
  "searchedMessageDetails": any[];
1131
1188
  "selectedConversationId": string | null;
1132
1189
  "userMetaData": any;
1133
1190
  }
1191
+ interface WebChatStorage {
1192
+ "conversationId": string;
1193
+ "goBack": () => void;
1194
+ }
1134
1195
  }
1135
1196
  export interface AttachmentPreviewCustomEvent<T> extends CustomEvent<T> {
1136
1197
  detail: T;
@@ -1176,6 +1237,10 @@ export interface IncomingTextMessageBubbleCustomEvent<T> extends CustomEvent<T>
1176
1237
  detail: T;
1177
1238
  target: HTMLIncomingTextMessageBubbleElement;
1178
1239
  }
1240
+ export interface InfoPanelMediaCustomEvent<T> extends CustomEvent<T> {
1241
+ detail: T;
1242
+ target: HTMLInfoPanelMediaElement;
1243
+ }
1179
1244
  export interface IsoGroupInfoCustomEvent<T> extends CustomEvent<T> {
1180
1245
  detail: T;
1181
1246
  target: HTMLIsoGroupInfoElement;
@@ -1340,7 +1405,7 @@ declare global {
1340
1405
  };
1341
1406
  interface HTMLChatTileElementEventMap {
1342
1407
  "chat-tile-menu": {
1343
- action: 'block' | 'clear' | 'delete';
1408
+ action: 'block' | 'unblock' | 'clear' | 'delete' | 'exit';
1344
1409
  conversationId: string;
1345
1410
  };
1346
1411
  }
@@ -1515,6 +1580,23 @@ declare global {
1515
1580
  prototype: HTMLIncomingTextMessageBubbleElement;
1516
1581
  new (): HTMLIncomingTextMessageBubbleElement;
1517
1582
  };
1583
+ interface HTMLInfoPanelMediaElementEventMap {
1584
+ "mediaListOpenChange": { open: boolean };
1585
+ }
1586
+ interface HTMLInfoPanelMediaElement extends Components.InfoPanelMedia, HTMLStencilElement {
1587
+ addEventListener<K extends keyof HTMLInfoPanelMediaElementEventMap>(type: K, listener: (this: HTMLInfoPanelMediaElement, ev: InfoPanelMediaCustomEvent<HTMLInfoPanelMediaElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1588
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1589
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1590
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1591
+ removeEventListener<K extends keyof HTMLInfoPanelMediaElementEventMap>(type: K, listener: (this: HTMLInfoPanelMediaElement, ev: InfoPanelMediaCustomEvent<HTMLInfoPanelMediaElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1592
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1593
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1594
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1595
+ }
1596
+ var HTMLInfoPanelMediaElement: {
1597
+ prototype: HTMLInfoPanelMediaElement;
1598
+ new (): HTMLInfoPanelMediaElement;
1599
+ };
1518
1600
  interface HTMLIsoGroupInfoElementEventMap {
1519
1601
  "create-group-submitted": any;
1520
1602
  "create-group-cast-submitted": any;
@@ -1926,6 +2008,12 @@ declare global {
1926
2008
  prototype: HTMLWebChatRightSidebarElement;
1927
2009
  new (): HTMLWebChatRightSidebarElement;
1928
2010
  };
2011
+ interface HTMLWebChatStorageElement extends Components.WebChatStorage, HTMLStencilElement {
2012
+ }
2013
+ var HTMLWebChatStorageElement: {
2014
+ prototype: HTMLWebChatStorageElement;
2015
+ new (): HTMLWebChatStorageElement;
2016
+ };
1929
2017
  interface HTMLElementTagNameMap {
1930
2018
  "admin-transfer-dialog": HTMLAdminTransferDialogElement;
1931
2019
  "attachment-preview": HTMLAttachmentPreviewElement;
@@ -1950,6 +2038,7 @@ declare global {
1950
2038
  "group-chat-contacts": HTMLGroupChatContactsElement;
1951
2039
  "image-message": HTMLImageMessageElement;
1952
2040
  "incoming-text-message-bubble": HTMLIncomingTextMessageBubbleElement;
2041
+ "info-panel-media": HTMLInfoPanelMediaElement;
1953
2042
  "iso-group-info": HTMLIsoGroupInfoElement;
1954
2043
  "link-preview": HTMLLinkPreviewElement;
1955
2044
  "login-page": HTMLLoginPageElement;
@@ -1981,6 +2070,7 @@ declare global {
1981
2070
  "web-chat-body": HTMLWebChatBodyElement;
1982
2071
  "web-chat-header": HTMLWebChatHeaderElement;
1983
2072
  "web-chat-right-sidebar": HTMLWebChatRightSidebarElement;
2073
+ "web-chat-storage": HTMLWebChatStorageElement;
1984
2074
  }
1985
2075
  }
1986
2076
  declare namespace LocalJSX {
@@ -2153,6 +2243,10 @@ declare namespace LocalJSX {
2153
2243
  "imageSrc"?: string;
2154
2244
  "imageTextColor"?: string;
2155
2245
  "imageWidth"?: string;
2246
+ /**
2247
+ * When true, tile menu shows Unblock and emits unblock (see isDmBlockedByCurrentUser).
2248
+ */
2249
+ "isBlockedByMe"?: boolean;
2156
2250
  "isDelivered"?: string;
2157
2251
  "isGroup"?: boolean;
2158
2252
  "isPending"?: boolean;
@@ -2170,7 +2264,7 @@ declare namespace LocalJSX {
2170
2264
  "messageDateFontWeight"?: string;
2171
2265
  "messageDatePadding"?: string;
2172
2266
  "onChat-tile-menu"?: (event: ChatTileCustomEvent<{
2173
- action: 'block' | 'clear' | 'delete';
2267
+ action: 'block' | 'unblock' | 'clear' | 'delete' | 'exit';
2174
2268
  conversationId: string;
2175
2269
  }>) => void;
2176
2270
  "onClick"?: (e: Event) => void;
@@ -2377,6 +2471,11 @@ declare namespace LocalJSX {
2377
2471
  "borderStyle"?: string;
2378
2472
  "borderWidth"?: string;
2379
2473
  "deliveryStatus"?: string;
2474
+ "downloadFileName"?: string;
2475
+ /**
2476
+ * Full-size URL for download (defaults to imageSrc).
2477
+ */
2478
+ "downloadUrl"?: string;
2380
2479
  "height"?: string;
2381
2480
  "imageSrc"?: string;
2382
2481
  "isDelivered"?: string;
@@ -2389,6 +2488,7 @@ declare namespace LocalJSX {
2389
2488
  "message"?: string;
2390
2489
  "messageId"?: string;
2391
2490
  "messageType"?: number;
2491
+ "mimeType"?: string;
2392
2492
  "onImageClick"?: (e: Event) => void;
2393
2493
  "onTagUserClick"?: (event: ImageMessageCustomEvent<{ userId?: string; userName?: string }>) => void;
2394
2494
  "padding"?: string;
@@ -2424,6 +2524,13 @@ declare namespace LocalJSX {
2424
2524
  "userMetaData"?: any;
2425
2525
  "width"?: string;
2426
2526
  }
2527
+ interface InfoPanelMedia {
2528
+ "allAttachments"?: any[];
2529
+ "allLinks"?: any;
2530
+ "allLinksCount"?: number;
2531
+ "conversationId"?: any;
2532
+ "onMediaListOpenChange"?: (event: InfoPanelMediaCustomEvent<{ open: boolean }>) => void;
2533
+ }
2427
2534
  interface IsoGroupInfo {
2428
2535
  "afterCreate"?: () => void;
2429
2536
  "closeGroupInfo"?: () => void;
@@ -2686,6 +2793,10 @@ declare namespace LocalJSX {
2686
2793
  "fontSize"?: any;
2687
2794
  "fontStyle"?: any;
2688
2795
  "fontWeight"?: any;
2796
+ /**
2797
+ * When true, back returns to group contact-info instead of closing the rail.
2798
+ */
2799
+ "fromContactInfo"?: boolean;
2689
2800
  "groupMembers"?: any;
2690
2801
  "handleChatSelect"?: any;
2691
2802
  "hasMoreEligibleMembers"?: any;
@@ -2793,6 +2904,10 @@ declare namespace LocalJSX {
2793
2904
  "messageInfo"?: any;
2794
2905
  "messageTime"?: string;
2795
2906
  "onMediaClick"?: (e: Event) => void;
2907
+ /**
2908
+ * Scroll / navigate to the quoted parent message (wired from WebChatBody).
2909
+ */
2910
+ "onQuoteClick"?: (parentMessageId: string, event: Event) => void;
2796
2911
  "padding"?: string;
2797
2912
  "parentMessageBody"?: string;
2798
2913
  "parentMessageId"?: string;
@@ -2899,6 +3014,7 @@ declare namespace LocalJSX {
2899
3014
  "borderStyle"?: string;
2900
3015
  "borderWidth"?: string;
2901
3016
  "deliveryStatus"?: string;
3017
+ "downloadFileName"?: string;
2902
3018
  "height"?: string;
2903
3019
  "isDelivered"?: string;
2904
3020
  "isRead"?: boolean;
@@ -3139,10 +3255,21 @@ declare namespace LocalJSX {
3139
3255
  "onSearchHandler"?: (text: string) => void;
3140
3256
  "onSearchResultClick"?: (messageId: string) => Promise<void>;
3141
3257
  "openOwnProfile"?: () => void;
3258
+ "pendingProfileMember"?: {
3259
+ userId?: string;
3260
+ userName?: string;
3261
+ userProfileImageUrl?: string;
3262
+ userIdentifier?: string;
3263
+ } | null;
3264
+ "profileOpenedFromContactInfo"?: boolean;
3142
3265
  "searchedMessageDetails"?: any[];
3143
3266
  "selectedConversationId"?: string | null;
3144
3267
  "userMetaData"?: any;
3145
3268
  }
3269
+ interface WebChatStorage {
3270
+ "conversationId"?: string;
3271
+ "goBack"?: () => void;
3272
+ }
3146
3273
  interface IntrinsicElements {
3147
3274
  "admin-transfer-dialog": AdminTransferDialog;
3148
3275
  "attachment-preview": AttachmentPreview;
@@ -3167,6 +3294,7 @@ declare namespace LocalJSX {
3167
3294
  "group-chat-contacts": GroupChatContacts;
3168
3295
  "image-message": ImageMessage;
3169
3296
  "incoming-text-message-bubble": IncomingTextMessageBubble;
3297
+ "info-panel-media": InfoPanelMedia;
3170
3298
  "iso-group-info": IsoGroupInfo;
3171
3299
  "link-preview": LinkPreview;
3172
3300
  "login-page": LoginPage;
@@ -3198,6 +3326,7 @@ declare namespace LocalJSX {
3198
3326
  "web-chat-body": WebChatBody;
3199
3327
  "web-chat-header": WebChatHeader;
3200
3328
  "web-chat-right-sidebar": WebChatRightSidebar;
3329
+ "web-chat-storage": WebChatStorage;
3201
3330
  }
3202
3331
  }
3203
3332
  export { LocalJSX as JSX };
@@ -3233,6 +3362,7 @@ declare module "@stencil/core" {
3233
3362
  "group-chat-contacts": LocalJSX.GroupChatContacts & JSXBase.HTMLAttributes<HTMLGroupChatContactsElement>;
3234
3363
  "image-message": LocalJSX.ImageMessage & JSXBase.HTMLAttributes<HTMLImageMessageElement>;
3235
3364
  "incoming-text-message-bubble": LocalJSX.IncomingTextMessageBubble & JSXBase.HTMLAttributes<HTMLIncomingTextMessageBubbleElement>;
3365
+ "info-panel-media": LocalJSX.InfoPanelMedia & JSXBase.HTMLAttributes<HTMLInfoPanelMediaElement>;
3236
3366
  "iso-group-info": LocalJSX.IsoGroupInfo & JSXBase.HTMLAttributes<HTMLIsoGroupInfoElement>;
3237
3367
  /**
3238
3368
  * Link / URL preview bubble — Stencil (simplified from Lit link-preview-ui).
@@ -3290,6 +3420,7 @@ declare module "@stencil/core" {
3290
3420
  "web-chat-body": LocalJSX.WebChatBody & JSXBase.HTMLAttributes<HTMLWebChatBodyElement>;
3291
3421
  "web-chat-header": LocalJSX.WebChatHeader & JSXBase.HTMLAttributes<HTMLWebChatHeaderElement>;
3292
3422
  "web-chat-right-sidebar": LocalJSX.WebChatRightSidebar & JSXBase.HTMLAttributes<HTMLWebChatRightSidebarElement>;
3423
+ "web-chat-storage": LocalJSX.WebChatStorage & JSXBase.HTMLAttributes<HTMLWebChatStorageElement>;
3293
3424
  }
3294
3425
  }
3295
3426
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * DM block state for menus and tiles.
3
+ * Uses the latest system message on the conversation row; patchListAfterBlockToggle keeps this accurate after local block/unblock.
4
+ */
5
+ /** True when the current user initiated the most recent block on this DM (not when they were blocked by the opponent). */
6
+ export declare function isDmBlockedByCurrentUser(conversation: {
7
+ lastMessageDetails?: {
8
+ action?: string;
9
+ initiatorId?: string;
10
+ };
11
+ } | null | undefined, currentUserId: string | undefined): boolean;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Clipboard image paste for the chat composer (ChatFooter).
3
+ * Reuse via `filesFromClipboardData` + `normalizePastedImageFile` before `handleFileUpload`.
4
+ */
5
+ /** Extension for common image MIME types when the clipboard File has no name. */
6
+ export declare function extensionFromImageMime(mime: string): string;
7
+ /**
8
+ * Collect image files from a ClipboardEvent `clipboardData` / DataTransfer.
9
+ * Prefers `items` (standard for screenshots); falls back to `files` when empty.
10
+ */
11
+ export declare function filesFromClipboardData(data: DataTransfer | null | undefined): File[];
12
+ /**
13
+ * Screenshots often arrive as unnamed blobs; give uploads a stable filename for UI + API.
14
+ */
15
+ export declare function normalizePastedImageFile(file: File, now?: number): File;
16
+ export declare function normalizePastedImageFiles(files: File[]): File[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Save chat media (images/videos) from preview UI.
3
+ * Prefer fetch+blob when CORS allows; otherwise fall back to a download/open link.
4
+ */
5
+ /** Basename from URL path, or timestamp + mime extension when unknown. */
6
+ export declare function defaultDownloadFileName(url: string, mimeType?: string): string;
7
+ /**
8
+ * Trigger a browser download for a media URL.
9
+ * Cross-origin URLs without CORS may only open in a new tab (fallback).
10
+ */
11
+ export declare function downloadMediaFromUrl(url: string, fileName?: string, mimeType?: string): Promise<void>;
@@ -2,12 +2,15 @@
2
2
  * Chat data helpers used by <web-chat>.
3
3
  * Plain functions — no Stencil. WebChat owns @State and calls these.
4
4
  */
5
- export { sortConversationsByLatestMessage, fetchConversationsPage, fetchConversationDetails, mergeUniqueConversations } from './conversations';
5
+ export { sortConversationsByLatestMessage, fetchConversationsPage, fetchConversationDetails, mergeUniqueConversations, normalizeConversationSearchTag, conversationMatchesSearch, filterConversationsBySearch, } from './conversations';
6
+ export { isDmBlockedByCurrentUser } from './block-status';
6
7
  export { fetchMessagesPage, markConversationRead, mergeMessagesById, searchMessages, fetchLinkMessages, fetchMediaCount, fetchMediaAttachments, filterMediaMessages, attachmentBucket, splitSharedMessages, mediaPreviewUrl, mediaPreviewUrls, docIconKind, } from './messages';
7
8
  export { initializeChatSdk, fetchUserDetails, type ChatSdkInitConfig } from './session';
8
9
  export { fetchGroupcastDetails, fetchGroupcastMembersPage, fetchGroupcastContactsPage } from './groupcast';
9
- export { ATTACHMENT_BODY_PLACEHOLDER, mediaTypeFromMime, customTypeFromMime, isAttachmentBodyPlaceholder, attachmentCaption, attachmentBodyForApi, attachmentBodyForOutgoing, resolveCustomTypeForUpload, resolveMimeType, extensionFromFileName, mimeTypeForAttachmentExtension, prepareMediaAttachments, buildLocalMediaAttachments, buildReplyMetaData, captureVideoThumbnailBlob, capturePdfThumbnailBlob, captureOfficeThumbnailBlob, isPdfFileAttachment, isOfficeFileAttachment, documentThumbnailUrl, uploadPresignedMediaAttachment, uploadAndPostMediaMessage, } from './send-media';
10
+ export { ATTACHMENT_BODY_PLACEHOLDER, mediaTypeFromMime, customTypeFromMime, isAttachmentBodyPlaceholder, attachmentCaption, attachmentFileLabel, suppressDuplicateFileCaption, attachmentBodyForApi, attachmentBodyForOutgoing, resolveCustomTypeForUpload, resolveMimeType, extensionFromFileName, mimeTypeForAttachmentExtension, prepareMediaAttachments, buildLocalMediaAttachments, buildReplyMetaData, captureVideoThumbnailBlob, capturePdfThumbnailBlob, captureOfficeThumbnailBlob, isPdfFileAttachment, isOfficeFileAttachment, documentThumbnailUrl, uploadPresignedMediaAttachment, uploadAndPostMediaMessage, resolveAttachmentPayloads, fetchPresignedUrlSlots, buildReshareAttachmentPayload, mapOutgoingAttachmentsForApi, isPresignDuplicateSlot, presignedSlotsByMediaId, SameNameUploadCancelledError, isSameNameUploadCancelledError, } from './send-media';
11
+ export { promptSameNameUpload, SAME_NAME_UPLOAD_WARNING, type SameNameUploadChoice, } from './same-name-upload';
10
12
  export { MAX_MEDIA_PER_MESSAGE, takeMediaFiles, mediaLimitToastMessage, } from './media-limits';
13
+ export { extensionFromImageMime, filesFromClipboardData, normalizePastedImageFile, normalizePastedImageFiles, } from './clipboard-paste';
11
14
  export { filesToOutboxMedia, outboxMediaToFiles, MAX_OUTBOX_MEDIA_BYTES } from './media-outbox';
12
15
  export { isPdfAttachment, previewKindFromAttachment, deliveryUiState } from './preview-kind';
13
16
  export { toMentionedUsersPayload, type MentionedUserPayload, } from './mentioned-users';
@@ -15,3 +18,4 @@ export { normalizeGroupTitle } from './group-title';
15
18
  export { senderDisplayName, messagePushContextFrom, findConversationForPush, resolveNotificationBody, resolveNotificationTitle, withMessagePushFields, type MessagePushContext, } from './message-notification';
16
19
  export { isPushNotificationsEnabled, isLocalNotificationsEnabled, withHostMessagePushFields, showLocalMessageNotification, buildLocalNotificationDetail, type LocalNotificationDetail, } from './local-notification';
17
20
  export { buildConversationNotificationsPatch, updateConversationNotifications, withConversationPushFlag, type ConversationNotificationsPatch, } from './conversation-notifications';
21
+ export { defaultDownloadFileName, downloadMediaFromUrl } from './download-media';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Same-name storage upload UX (quota feature).
3
+ *
4
+ * Contract: see SAME_NAME_UPLOAD_FRONTEND.md in product docs — presign returns
5
+ * `duplicate: true` without PUT URLs; user picks reshare vs `forceUpload: true`.
6
+ * Reused from send-media.ts, ChatFooter, and uploadAndPostMediaMessage.
7
+ */
8
+ export declare const SAME_NAME_UPLOAD_WARNING = "A file with the same name is already in your storage.";
9
+ export type SameNameUploadChoice = 'reshare' | 'forceUpload' | 'cancel';
10
+ export declare class SameNameUploadCancelledError extends Error {
11
+ constructor(message?: string);
12
+ }
13
+ export declare function isSameNameUploadCancelledError(err: unknown): boolean;
14
+ export type SameNameUploadPromptArgs = {
15
+ fileName: string;
16
+ warning?: string;
17
+ };
18
+ /**
19
+ * Modal: primary = new copy (forceUpload path), secondary = reshare older file.
20
+ * Drawer dismiss → cancel (caller removes optimistic message).
21
+ *
22
+ * Dynamic-imports drawer so unit tests that import send-media do not load Stencil shells.
23
+ */
24
+ export declare function promptSameNameUpload(args: SameNameUploadPromptArgs): Promise<SameNameUploadChoice>;
@@ -1,7 +1,13 @@
1
1
  import type { MessagePushContext } from './message-notification';
2
2
  import { captureOfficeThumbnailBlob } from './document-thumbnail';
3
+ import { type SameNameUploadChoice, type SameNameUploadPromptArgs } from './same-name-upload';
3
4
  export { captureOfficeThumbnailBlob };
4
5
  export declare const ATTACHMENT_BODY_PLACEHOLDER = "AttachmentMessage:Multiple";
6
+ /** Display/download filename on an attachment record (API may use `name` or `nameWithExtension`). */
7
+ export declare function attachmentFileLabel(attachment?: {
8
+ name?: string;
9
+ nameWithExtension?: string;
10
+ } | null): string;
5
11
  export declare function mediaTypeFromMime(mime: string): number;
6
12
  export declare function customTypeFromMime(mime: string): string;
7
13
  export declare function isAttachmentBodyPlaceholder(body?: string | null): boolean;
@@ -10,6 +16,15 @@ export declare function attachmentCaption(message?: {
10
16
  body?: string;
11
17
  metaData?: Record<string, any>;
12
18
  customType?: string;
19
+ attachments?: Array<{
20
+ name?: string;
21
+ nameWithExtension?: string;
22
+ }>;
23
+ } | null): string;
24
+ /** Document bubble caption — drop text that only repeats the attachment filename. */
25
+ export declare function suppressDuplicateFileCaption(caption: string | undefined | null, attachment?: {
26
+ name?: string;
27
+ nameWithExtension?: string;
13
28
  } | null): string;
14
29
  /** @deprecated Prefer attachmentBodyForOutgoing — kept for callers that only pass caption. */
15
30
  export declare function attachmentBodyForApi(caption?: string | null): string;
@@ -52,7 +67,82 @@ export type UploadAndPostMediaArgs = {
52
67
  mentionedUsers?: any[];
53
68
  /** Flutter parity — title/body for FCM when posting the media message. */
54
69
  pushContext?: MessagePushContext;
70
+ /** Injectable for tests; default opens confirm-dialog (reshare vs forceUpload). */
71
+ sameNameUploadPrompt?: (args: SameNameUploadPromptArgs) => Promise<SameNameUploadChoice>;
55
72
  };
73
+ /** Presign slot fields used for same-name / quota uploads. */
74
+ export type PresignedUrlSlot = {
75
+ mediaId?: string;
76
+ duplicate?: boolean;
77
+ warning?: string;
78
+ mediaPresignedUrl?: string;
79
+ presignedUrl?: string;
80
+ mediaUrl?: string;
81
+ thumbnailUrl?: string;
82
+ thumbnailPresignedUrl?: string;
83
+ existingMediaId?: string;
84
+ };
85
+ export type OutgoingMediaAttachment = {
86
+ mediaId: string;
87
+ mediaUrl: string;
88
+ thumbnailUrl: string;
89
+ mediaType: number;
90
+ nameWithExtension: string;
91
+ name: string;
92
+ mimeType: string;
93
+ extension: string;
94
+ size: number;
95
+ attachmentType: number;
96
+ forceUpload?: boolean;
97
+ };
98
+ export { SameNameUploadCancelledError, isSameNameUploadCancelledError, promptSameNameUpload, } from './same-name-upload';
99
+ export declare function isPresignDuplicateSlot(slot: PresignedUrlSlot | null | undefined): boolean;
100
+ export declare function presignedSlotsByMediaId(slots: PresignedUrlSlot[]): Map<string, PresignedUrlSlot>;
101
+ export declare function fetchPresignedUrlSlots(conversationId: string, attachments: PreparedMediaAttachment[], forceUploadMediaIds?: Set<string>): Promise<PresignedUrlSlot[]>;
102
+ /**
103
+ * Build message attachment for reshare after `duplicate: true` — no PUT.
104
+ * Presign request uses client `attachment.mediaId` to match the slot; POST /chat/message
105
+ * must use `slot.existingMediaId` so the server reuses the stored object (0 quota bytes).
106
+ */
107
+ export declare function buildReshareAttachmentPayload(slot: PresignedUrlSlot, attachment: PreparedMediaAttachment): OutgoingMediaAttachment;
108
+ export declare function mapOutgoingAttachmentsForApi(payloads: OutgoingMediaAttachment[]): ({
109
+ mediaId: string;
110
+ mediaUrl: string;
111
+ thumbnailUrl: string;
112
+ mediaType: number;
113
+ nameWithExtension: string;
114
+ name: string;
115
+ mimeType: string;
116
+ extension: string;
117
+ size: number;
118
+ attachmentType: number;
119
+ } | {
120
+ forceUpload: boolean;
121
+ mediaId: string;
122
+ mediaUrl: string;
123
+ thumbnailUrl: string;
124
+ mediaType: number;
125
+ nameWithExtension: string;
126
+ name: string;
127
+ mimeType: string;
128
+ extension: string;
129
+ size: number;
130
+ attachmentType: number;
131
+ })[];
132
+ export type ResolveAttachmentPayloadsArgs = {
133
+ conversationId: string;
134
+ attachments: PreparedMediaAttachment[];
135
+ /** When omitted, performs the initial presign call. */
136
+ presignedSlots?: PresignedUrlSlot[];
137
+ sameNameUploadPrompt?: (args: SameNameUploadPromptArgs) => Promise<SameNameUploadChoice>;
138
+ renderPdfThumbnail?: (file: File) => Promise<Blob | null>;
139
+ renderOfficeThumbnail?: (file: File) => Promise<Blob | null>;
140
+ };
141
+ /**
142
+ * Presign → (optional same-name prompt) → PUT or reshare → payloads for postMessages.
143
+ * Processes duplicates sequentially so the user can choose per file.
144
+ */
145
+ export declare function resolveAttachmentPayloads(args: ResolveAttachmentPayloadsArgs): Promise<OutgoingMediaAttachment[]>;
56
146
  /** PDF (or a file named *.pdf). The app cannot paint these bytes with Image.network. */
57
147
  export declare function isPdfFileAttachment(file: {
58
148
  mimeType?: string;
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Per-user media storage quota — data layer for <web-chat>.
3
+ *
4
+ * The core `test-iso-chat-sdk` does not expose the `/chat/quota/*` endpoints,
5
+ * so these are plain `fetch` calls (same approach as the presigned-URL PUTs in
6
+ * send-media.ts), authenticated with the standard chat headers.
7
+ *
8
+ * Usage is **server-authoritative** — never compute it on-device. The feature
9
+ * is dormant until an admin turns quota on for the project (`quotaEnabled`
10
+ * false), in which case uploads are never gated and the storage screen shows a
11
+ * neutral "not limited" state.
12
+ *
13
+ * Mirrors the Flutter SDK's `IsmChatStorageQuota*` surface.
14
+ */
15
+ export type StorageQuotaTier = 'free' | 'paid';
16
+ export interface StorageUsage {
17
+ quotaEnabled: boolean;
18
+ usedBytes: number | null;
19
+ quotaBytes: number | null;
20
+ remainingBytes: number | null;
21
+ tier: StorageQuotaTier | null;
22
+ canUpload: boolean;
23
+ }
24
+ export interface QuotaMediaItem {
25
+ mediaId: string;
26
+ messageId: string;
27
+ conversationId: string;
28
+ /** 0 image, 1 video, 2 audio, 3 document, 8 custom … (matches message API). */
29
+ attachmentType: number;
30
+ name: string;
31
+ size: number;
32
+ mediaUrl: string | null;
33
+ thumbnailUrl: string | null;
34
+ restricted: boolean;
35
+ }
36
+ export interface QuotaMediaResponse {
37
+ quotaEnabled: boolean;
38
+ media: QuotaMediaItem[];
39
+ msg?: string;
40
+ }
41
+ export interface MediaDeleteResult {
42
+ freedBytes: number;
43
+ usedBytes: number | null;
44
+ quotaBytes: number | null;
45
+ msg?: string;
46
+ }
47
+ /** App-level error code the API returns for an over-quota presign/send. */
48
+ export declare const QUOTA_EXCEEDED_CODE = 6;
49
+ type StorageQuotaConfig = {
50
+ baseUrl: string;
51
+ licenseKey: string;
52
+ appSecret: string;
53
+ userToken: string;
54
+ };
55
+ /** Called once during <web-chat> bootstrap (same creds as ChatSDK init). */
56
+ export declare function setStorageQuotaConfig(next: StorageQuotaConfig): void;
57
+ export declare function getStorageQuotaConfig(): StorageQuotaConfig | null;
58
+ export declare function clearStorageQuotaConfig(): void;
59
+ /** `GET /chat/quota/storage/usage`. Returns `null` on a transport error. */
60
+ export declare function fetchStorageUsage(): Promise<StorageUsage | null>;
61
+ /** `GET /chat/quota/storage/media`. `limit` is clamped to 1..20. */
62
+ export declare function fetchStorageMedia(opts?: {
63
+ conversationId?: string | null;
64
+ limit?: number;
65
+ skip?: number;
66
+ }): Promise<QuotaMediaResponse | null>;
67
+ export type MediaDeleteOutcome = {
68
+ result: MediaDeleteResult | null;
69
+ status: number;
70
+ error?: string;
71
+ };
72
+ /** `DELETE /chat/quota/media` with `{ mediaIds }` (1..50). For everyone. */
73
+ export declare function deleteStorageMediaApi(mediaIds: string[]): Promise<MediaDeleteOutcome>;
74
+ /** `DELETE /chat/quota/storage/conversation/{id}/media`. For everyone. */
75
+ export declare function deleteConversationStorageMediaApi(conversationId: string): Promise<MediaDeleteOutcome>;
76
+ /** Fraction of the allowance used, 0..1. `0` when quota is off/unknown. */
77
+ export declare function usedFraction(usage: StorageUsage | null): number;
78
+ /** At/over the allowance (uploads blocked). Always false when quota is off. */
79
+ export declare function isOverLimit(usage: StorageUsage | null): boolean;
80
+ /**
81
+ * True when usage is at or above `threshold` of the allowance (default `0.9` = 90%).
82
+ * Used by the conversation-list warning banner — mirrors Flutter's
83
+ * `IsmChatStorageUsageModel.shouldWarnNearQuota`.
84
+ * Always false when quota is off or quota size is unknown/zero.
85
+ */
86
+ export declare function shouldWarnNearQuota(usage: StorageUsage | null, threshold?: number): boolean;
87
+ /** Whether an upload of `size` bytes fits. Always true when quota is off. */
88
+ export declare function canUploadBytes(usage: StorageUsage | null, size: number): boolean;
89
+ /** Whether an error/response is the storage-quota rejection (errorCode 6). */
90
+ export declare function isQuotaExceededError(err: any): boolean;
91
+ /**
92
+ * Human-readable byte sizes for UI copy (e.g. `24.14 MB`, `1.07 GB`).
93
+ *
94
+ * Uses **decimal SI** steps (1 KB = 1_000 B, 1 MB = 1_000_000 B) so numbers match
95
+ * common product/dashboard expectations. API fields are still raw byte counts.
96
+ */
97
+ export declare function formatBytes(bytes: number | null | undefined, fractionDigits?: number): string;
98
+ export {};
@@ -28,5 +28,5 @@ export type ChatErrorDetail = {
28
28
  export declare const WEB_CHAT_PUBLIC_EVENTS: readonly ["chatReady", "conversationsChange", "messagesChange", "conversationSelect", "replyChange", "chatError", "unreadMessageCountUpdated", "conversationNotFound", "messageReadStatusUpdated"];
29
29
  export type WebChatPublicEvent = (typeof WEB_CHAT_PUBLIC_EVENTS)[number];
30
30
  /** Documented public @Method names on <web-chat>. */
31
- export declare const WEB_CHAT_PUBLIC_METHODS: readonly ["selectConversation", "sendText", "sendMedia", "setReply", "clearReply", "loadMoreMessages", "loadMoreConversations", "getChatState", "setCustomParts"];
31
+ export declare const WEB_CHAT_PUBLIC_METHODS: readonly ["selectConversation", "sendText", "sendMedia", "setReply", "clearReply", "loadMoreMessages", "loadMoreConversations", "getChatState", "setCustomParts", "getStorageUsage", "getStorageMedia", "deleteStorageMedia", "deleteConversationStorageMedia", "openStorageManagement"];
32
32
  export type WebChatPublicMethod = (typeof WEB_CHAT_PUBLIC_METHODS)[number];
@@ -4,6 +4,7 @@ import '../components/ChatUIComponent/shared/delete-message/delete-message';
4
4
  import '../components/ChatUIComponent/shared/share-popup/share-popup';
5
5
  import '../components/ChatUIComponent/AddMember';
6
6
  import '../components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList';
7
+ import '../components/ChatUIComponent/shared/storage/storage-manager';
7
8
  type DialogItem = {
8
9
  id: string;
9
10
  name: string;