isometrik-plugin-chat-sdk 2.0.21 → 2.0.22

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,40 +1,42 @@
1
1
  import { proxyCustomElement, HTMLElement as HTMLElement$1, h } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$7 } from './theme-provider2.js';
3
- import { d as defineCustomElement$5 } from './WebChat.js';
4
- import { d as defineCustomElement$m } from './Login.js';
5
- import { d as defineCustomElement$B } from './attachment-preview2.js';
6
- import { d as defineCustomElement$A } from './AudioBubble.js';
7
- import { d as defineCustomElement$z } from './BlockChatList.js';
8
- import { d as defineCustomElement$y } from './ChatFooter.js';
9
- import { d as defineCustomElement$x } from './chat-loading-placeholder2.js';
10
- import { d as defineCustomElement$w } from './ChatSidebar.js';
11
- import { d as defineCustomElement$v } from './chat-tile2.js';
12
- import { d as defineCustomElement$u } from './contact-info2.js';
13
- import { d as defineCustomElement$t } from './context-menu2.js';
14
- import { d as defineCustomElement$s } from './document-message2.js';
15
- import { d as defineCustomElement$r } from './GroupCast2.js';
16
- import { d as defineCustomElement$q } from './image-message2.js';
17
- import { d as defineCustomElement$p } from './incoming-text-message-bubble2.js';
18
- import { d as defineCustomElement$o } from './group-info.js';
19
- import { d as defineCustomElement$n } from './link-preview2.js';
20
- import { d as defineCustomElement$l } from './message-bubble2.js';
21
- import { d as defineCustomElement$k } from './message-date-pill2.js';
22
- import { d as defineCustomElement$j } from './message-info2.js';
23
- import { d as defineCustomElement$i } from './message-search2.js';
24
- import { d as defineCustomElement$h } from './new-chat2.js';
25
- import { d as defineCustomElement$g } from './outgoing-text-message-bubble2.js';
26
- import { d as defineCustomElement$f } from './profile-avatar2.js';
27
- import { d as defineCustomElement$e } from './profile-info2.js';
28
- import { d as defineCustomElement$d } from './Profile.js';
29
- import { d as defineCustomElement$c } from './profile-sidebar2.js';
30
- import { d as defineCustomElement$b } from './reply-block2.js';
31
- import { d as defineCustomElement$a } from './reply-message-container2.js';
32
- import { d as defineCustomElement$9 } from './searchable-list2.js';
33
- import { d as defineCustomElement$8 } from './spinner-loader2.js';
34
- import { d as defineCustomElement$6 } from './video-message2.js';
35
- import { d as defineCustomElement$4 } from './WebChatBody.js';
36
- import { d as defineCustomElement$3 } from './WebChatHeader.js';
37
- import { d as defineCustomElement$2 } from './WebchatRightSide.js';
2
+ import { d as defineCustomElement$8 } from './theme-provider2.js';
3
+ import { d as defineCustomElement$6 } from './WebChat.js';
4
+ import { d as defineCustomElement$n } from './Login.js';
5
+ import { d as defineCustomElement$D } from './attachment-preview2.js';
6
+ import { d as defineCustomElement$C } from './AudioBubble.js';
7
+ import { d as defineCustomElement$B } from './BlockChatList.js';
8
+ import { d as defineCustomElement$A } from './ChatFooter.js';
9
+ import { d as defineCustomElement$z } from './chat-loading-placeholder2.js';
10
+ import { d as defineCustomElement$y } from './ChatSidebar.js';
11
+ import { d as defineCustomElement$x } from './chat-tile2.js';
12
+ import { d as defineCustomElement$w } from './contact-info2.js';
13
+ import { d as defineCustomElement$v } from './context-menu2.js';
14
+ import { d as defineCustomElement$u } from './document-message2.js';
15
+ import { d as defineCustomElement$t } from './GroupCast2.js';
16
+ import { d as defineCustomElement$s } from './image-message2.js';
17
+ import { d as defineCustomElement$r } from './incoming-text-message-bubble2.js';
18
+ import { d as defineCustomElement$q } from './info-panel-media2.js';
19
+ import { d as defineCustomElement$p } from './group-info.js';
20
+ import { d as defineCustomElement$o } from './link-preview2.js';
21
+ import { d as defineCustomElement$m } from './message-bubble2.js';
22
+ import { d as defineCustomElement$l } from './message-date-pill2.js';
23
+ import { d as defineCustomElement$k } from './message-info2.js';
24
+ import { d as defineCustomElement$j } from './message-search2.js';
25
+ import { d as defineCustomElement$i } from './new-chat2.js';
26
+ import { d as defineCustomElement$h } from './outgoing-text-message-bubble2.js';
27
+ import { d as defineCustomElement$g } from './profile-avatar2.js';
28
+ import { d as defineCustomElement$f } from './profile-info2.js';
29
+ import { d as defineCustomElement$e } from './Profile.js';
30
+ import { d as defineCustomElement$d } from './profile-sidebar2.js';
31
+ import { d as defineCustomElement$c } from './reply-block2.js';
32
+ import { d as defineCustomElement$b } from './reply-message-container2.js';
33
+ import { d as defineCustomElement$a } from './searchable-list2.js';
34
+ import { d as defineCustomElement$9 } from './spinner-loader2.js';
35
+ import { d as defineCustomElement$7 } from './video-message2.js';
36
+ import { d as defineCustomElement$5 } from './WebChatBody.js';
37
+ import { d as defineCustomElement$4 } from './WebChatHeader.js';
38
+ import { d as defineCustomElement$3 } from './WebchatRightSide.js';
39
+ import { d as defineCustomElement$2 } from './storage-manager.js';
38
40
 
39
41
  /**
40
42
  * Demo customParts CEs for ?demoCustomUi=1 — props + callbacks showcase.
@@ -268,7 +270,7 @@ const ChatApp$1 = /*@__PURE__*/ proxyCustomElement(class ChatApp extends HTMLEle
268
270
  return this.changeTheme(newTheme);
269
271
  }
270
272
  render() {
271
- return (h("theme-provider", { key: 'ccc80dfea2ef7de37d8fcc8ce9c728a8ff77c57e', ref: (el) => this.themeProviderRef = el, themePath: this.themePath, mode: this.mode }, !this.isLoggedIn ? (h("login-page", { onLoginSuccess: this.handleLoginSuccess })) : (h("web-chat", { toggleTheme: this.toggleTheme, defaultTheme: this.mode, customParts: this.demoCustomUi
273
+ return (h("theme-provider", { key: 'efcf2c9089d91645cca88dea02f1c52355b50f7f', ref: (el) => this.themeProviderRef = el, themePath: this.themePath, mode: this.mode }, !this.isLoggedIn ? (h("login-page", { onLoginSuccess: this.handleLoginSuccess })) : (h("web-chat", { toggleTheme: this.toggleTheme, defaultTheme: this.mode, customParts: this.demoCustomUi
272
274
  ? { chatTile: 'demo-chat-tile', messageBubble: 'demo-message-bubble' }
273
275
  : undefined, ref: el => {
274
276
  if (!el || !this.demoCustomUi)
@@ -297,7 +299,7 @@ function defineCustomElement$1() {
297
299
  if (typeof customElements === "undefined") {
298
300
  return;
299
301
  }
300
- const components = ["chat-app", "attachment-preview", "audio-bubble", "block-chat-list", "chat-footer", "chat-loading-placeholder", "chat-side-bar", "chat-tile", "contact-info", "context-menu", "document-message", "group-cast", "image-message", "incoming-text-message-bubble", "iso-group-info", "link-preview", "login-page", "message-bubble", "message-date-pill", "message-info", "message-search", "new-chat", "outgoing-text-message-bubble", "profile-avatar", "profile-info", "profile-page", "profile-sidebar", "reply-block", "reply-message-container", "searchable-list", "spinner-loader", "theme-provider", "video-message", "web-chat", "web-chat-body", "web-chat-header", "web-chat-right-sidebar"];
302
+ const components = ["chat-app", "attachment-preview", "audio-bubble", "block-chat-list", "chat-footer", "chat-loading-placeholder", "chat-side-bar", "chat-tile", "contact-info", "context-menu", "document-message", "group-cast", "image-message", "incoming-text-message-bubble", "info-panel-media", "iso-group-info", "link-preview", "login-page", "message-bubble", "message-date-pill", "message-info", "message-search", "new-chat", "outgoing-text-message-bubble", "profile-avatar", "profile-info", "profile-page", "profile-sidebar", "reply-block", "reply-message-container", "searchable-list", "spinner-loader", "theme-provider", "video-message", "web-chat", "web-chat-body", "web-chat-header", "web-chat-right-sidebar", "web-chat-storage"];
301
303
  components.forEach(tagName => { switch (tagName) {
302
304
  case "chat-app":
303
305
  if (!customElements.get(tagName)) {
@@ -306,180 +308,190 @@ function defineCustomElement$1() {
306
308
  break;
307
309
  case "attachment-preview":
308
310
  if (!customElements.get(tagName)) {
309
- defineCustomElement$B();
311
+ defineCustomElement$D();
310
312
  }
311
313
  break;
312
314
  case "audio-bubble":
313
315
  if (!customElements.get(tagName)) {
314
- defineCustomElement$A();
316
+ defineCustomElement$C();
315
317
  }
316
318
  break;
317
319
  case "block-chat-list":
318
320
  if (!customElements.get(tagName)) {
319
- defineCustomElement$z();
321
+ defineCustomElement$B();
320
322
  }
321
323
  break;
322
324
  case "chat-footer":
323
325
  if (!customElements.get(tagName)) {
324
- defineCustomElement$y();
326
+ defineCustomElement$A();
325
327
  }
326
328
  break;
327
329
  case "chat-loading-placeholder":
328
330
  if (!customElements.get(tagName)) {
329
- defineCustomElement$x();
331
+ defineCustomElement$z();
330
332
  }
331
333
  break;
332
334
  case "chat-side-bar":
333
335
  if (!customElements.get(tagName)) {
334
- defineCustomElement$w();
336
+ defineCustomElement$y();
335
337
  }
336
338
  break;
337
339
  case "chat-tile":
338
340
  if (!customElements.get(tagName)) {
339
- defineCustomElement$v();
341
+ defineCustomElement$x();
340
342
  }
341
343
  break;
342
344
  case "contact-info":
343
345
  if (!customElements.get(tagName)) {
344
- defineCustomElement$u();
346
+ defineCustomElement$w();
345
347
  }
346
348
  break;
347
349
  case "context-menu":
348
350
  if (!customElements.get(tagName)) {
349
- defineCustomElement$t();
351
+ defineCustomElement$v();
350
352
  }
351
353
  break;
352
354
  case "document-message":
353
355
  if (!customElements.get(tagName)) {
354
- defineCustomElement$s();
356
+ defineCustomElement$u();
355
357
  }
356
358
  break;
357
359
  case "group-cast":
358
360
  if (!customElements.get(tagName)) {
359
- defineCustomElement$r();
361
+ defineCustomElement$t();
360
362
  }
361
363
  break;
362
364
  case "image-message":
363
365
  if (!customElements.get(tagName)) {
364
- defineCustomElement$q();
366
+ defineCustomElement$s();
365
367
  }
366
368
  break;
367
369
  case "incoming-text-message-bubble":
368
370
  if (!customElements.get(tagName)) {
369
- defineCustomElement$p();
371
+ defineCustomElement$r();
372
+ }
373
+ break;
374
+ case "info-panel-media":
375
+ if (!customElements.get(tagName)) {
376
+ defineCustomElement$q();
370
377
  }
371
378
  break;
372
379
  case "iso-group-info":
373
380
  if (!customElements.get(tagName)) {
374
- defineCustomElement$o();
381
+ defineCustomElement$p();
375
382
  }
376
383
  break;
377
384
  case "link-preview":
378
385
  if (!customElements.get(tagName)) {
379
- defineCustomElement$n();
386
+ defineCustomElement$o();
380
387
  }
381
388
  break;
382
389
  case "login-page":
383
390
  if (!customElements.get(tagName)) {
384
- defineCustomElement$m();
391
+ defineCustomElement$n();
385
392
  }
386
393
  break;
387
394
  case "message-bubble":
388
395
  if (!customElements.get(tagName)) {
389
- defineCustomElement$l();
396
+ defineCustomElement$m();
390
397
  }
391
398
  break;
392
399
  case "message-date-pill":
393
400
  if (!customElements.get(tagName)) {
394
- defineCustomElement$k();
401
+ defineCustomElement$l();
395
402
  }
396
403
  break;
397
404
  case "message-info":
398
405
  if (!customElements.get(tagName)) {
399
- defineCustomElement$j();
406
+ defineCustomElement$k();
400
407
  }
401
408
  break;
402
409
  case "message-search":
403
410
  if (!customElements.get(tagName)) {
404
- defineCustomElement$i();
411
+ defineCustomElement$j();
405
412
  }
406
413
  break;
407
414
  case "new-chat":
408
415
  if (!customElements.get(tagName)) {
409
- defineCustomElement$h();
416
+ defineCustomElement$i();
410
417
  }
411
418
  break;
412
419
  case "outgoing-text-message-bubble":
413
420
  if (!customElements.get(tagName)) {
414
- defineCustomElement$g();
421
+ defineCustomElement$h();
415
422
  }
416
423
  break;
417
424
  case "profile-avatar":
418
425
  if (!customElements.get(tagName)) {
419
- defineCustomElement$f();
426
+ defineCustomElement$g();
420
427
  }
421
428
  break;
422
429
  case "profile-info":
423
430
  if (!customElements.get(tagName)) {
424
- defineCustomElement$e();
431
+ defineCustomElement$f();
425
432
  }
426
433
  break;
427
434
  case "profile-page":
428
435
  if (!customElements.get(tagName)) {
429
- defineCustomElement$d();
436
+ defineCustomElement$e();
430
437
  }
431
438
  break;
432
439
  case "profile-sidebar":
433
440
  if (!customElements.get(tagName)) {
434
- defineCustomElement$c();
441
+ defineCustomElement$d();
435
442
  }
436
443
  break;
437
444
  case "reply-block":
438
445
  if (!customElements.get(tagName)) {
439
- defineCustomElement$b();
446
+ defineCustomElement$c();
440
447
  }
441
448
  break;
442
449
  case "reply-message-container":
443
450
  if (!customElements.get(tagName)) {
444
- defineCustomElement$a();
451
+ defineCustomElement$b();
445
452
  }
446
453
  break;
447
454
  case "searchable-list":
448
455
  if (!customElements.get(tagName)) {
449
- defineCustomElement$9();
456
+ defineCustomElement$a();
450
457
  }
451
458
  break;
452
459
  case "spinner-loader":
453
460
  if (!customElements.get(tagName)) {
454
- defineCustomElement$8();
461
+ defineCustomElement$9();
455
462
  }
456
463
  break;
457
464
  case "theme-provider":
458
465
  if (!customElements.get(tagName)) {
459
- defineCustomElement$7();
466
+ defineCustomElement$8();
460
467
  }
461
468
  break;
462
469
  case "video-message":
463
470
  if (!customElements.get(tagName)) {
464
- defineCustomElement$6();
471
+ defineCustomElement$7();
465
472
  }
466
473
  break;
467
474
  case "web-chat":
468
475
  if (!customElements.get(tagName)) {
469
- defineCustomElement$5();
476
+ defineCustomElement$6();
470
477
  }
471
478
  break;
472
479
  case "web-chat-body":
473
480
  if (!customElements.get(tagName)) {
474
- defineCustomElement$4();
481
+ defineCustomElement$5();
475
482
  }
476
483
  break;
477
484
  case "web-chat-header":
478
485
  if (!customElements.get(tagName)) {
479
- defineCustomElement$3();
486
+ defineCustomElement$4();
480
487
  }
481
488
  break;
482
489
  case "web-chat-right-sidebar":
490
+ if (!customElements.get(tagName)) {
491
+ defineCustomElement$3();
492
+ }
493
+ break;
494
+ case "web-chat-storage":
483
495
  if (!customElements.get(tagName)) {
484
496
  defineCustomElement$2();
485
497
  }
@@ -1 +1 @@
1
- {"file":"chat-app.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;SAIgB,4BAA4B;IAC1C,IAAI,OAAO,cAAc,KAAK,WAAW;QAAE,OAAO;IAElD,MAAM,mBAAmB,GAAG,CAAC,KAAU,EAAE,IAAc;QACrD,IAAI,CAAC,OAAO,CAAC,GAAG;YACd,MAAM,KAAK,GAAG,IAAI,G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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ChatApp"],"sources":["src/demos/custom-ui-demo-elements.ts","src/components/chat-main.tsx"],"sourcesContent":["/**\n * Demo customParts CEs for ?demoCustomUi=1 — props + callbacks showcase.\n * Property setters call render() so Stencil/Lit prop updates re-paint.\n */\nexport function registerCustomUiDemoElements() {\n if (typeof customElements === 'undefined') return;\n\n const defineReactiveProps = (proto: any, keys: string[]) => {\n keys.forEach(key => {\n const store = `_${key}`;\n Object.defineProperty(proto, key, {\n get() {\n return this[store];\n },\n set(value) {\n if (this[store] === value) return;\n this[store] = value;\n if (this.isConnected && typeof this.render === 'function') this.render();\n },\n configurable: true,\n });\n });\n };\n\n if (!customElements.get('demo-chat-tile')) {\n class DemoChatTile extends HTMLElement {\n onSelect: (conversationId: string) => void;\n\n connectedCallback() {\n this.render();\n this.onclick = () => {\n const c = (this as any).conversation || {};\n const id = c.conversationId || c.groupcastId;\n if (typeof this.onSelect === 'function' && id) this.onSelect(id);\n };\n }\n\n render() {\n const c = (this as any).conversation || {};\n const meta = c.metaData || {};\n const title = c.isGroup\n ? c.conversationTitle\n : c.groupcastTitle ||\n c.opponentDetails?.userName ||\n c.lastMessageDetails?.userName ||\n 'Chat';\n const preview = (this as any).previewText || c.lastMessageDetails?.body || c.lastMessageDetails?.customType || '';\n const unread = (this as any).unreadCount || c.unreadMessagesCount || '';\n const isSelected = !!(this as any).isSelected;\n const isTyping = !!(this as any).isTyping;\n const typingUserName = (this as any).typingUserName;\n\n this.style.display = 'block';\n this.style.padding = '12px 14px';\n this.style.margin = '4px 8px';\n this.style.borderRadius = '10px';\n this.style.cursor = 'pointer';\n this.style.border = isSelected\n ? '2px solid var(--bg-primary-light)'\n : '1px solid var(--bg-secondary-color)';\n this.style.background = isSelected\n ? 'var(--bg-primary-light)'\n : 'var(--bg-primary-color)';\n\n this.innerHTML = `\n <div style=\"display:flex;justify-content:space-between;gap:8px;align-items:flex-start\">\n <div>\n <div style=\"font-weight:600;color:var(--text-primary-color)\">${title || 'Untitled'}</div>\n ${meta.orderId ? `<div style=\"font-size:11px;color:var(--text-info-color);margin-top:2px\">Order #${meta.orderId}</div>` : ''}\n <div style=\"font-size:12px;color:var(--text-tertiary-color);margin-top:4px\">\n ${isTyping ? `typing${typingUserName ? `: ${typingUserName}` : '…'}` : `[demo tile] ${preview || 'No messages'}`}\n </div>\n </div>\n ${unread ? `<span style=\"background:var(--bg-primary-light);border-radius:999px;padding:2px 8px;font-size:11px\">${unread}</span>` : ''}\n </div>`;\n }\n }\n defineReactiveProps(DemoChatTile.prototype, [\n 'conversation',\n 'isSelected',\n 'userMetaData',\n 'unreadCount',\n 'previewText',\n 'isTyping',\n 'typingUserName',\n ]);\n customElements.define('demo-chat-tile', DemoChatTile);\n }\n\n if (!customElements.get('demo-message-bubble')) {\n class DemoMessageBubble extends HTMLElement {\n onTap: (message: any) => void;\n onReply: (message: any) => void;\n onForward: (message: any) => void;\n onDelete: (message: any) => void;\n onInfo: (message: any) => void;\n\n connectedCallback() {\n this.render();\n }\n\n render() {\n const m = (this as any).message || {};\n const meta = m.metaData || {};\n const isSelf = !!(this as any).isSelf;\n const status = (this as any).status || 'sent';\n const align = isSelf ? 'flex-end' : 'flex-start';\n const bg = isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)';\n this.style.display = 'flex';\n this.style.justifyContent = align;\n this.style.width = '100%';\n this.style.margin = '6px 0';\n\n this.innerHTML = `\n <div class=\"demo-bubble\" style=\"max-width:75%;padding:10px 12px;border-radius:12px;background:${bg};color:var(--text-primary-color)\">\n <div style=\"font-size:11px;opacity:.7;margin-bottom:4px\">demo · ${status}${meta.orderId ? ` · #${meta.orderId}` : ''}</div>\n <div style=\"cursor:pointer\" data-action=\"tap\">${m.body || m.customType || '[media/system]'}</div>\n <div style=\"margin-top:6px;display:flex;gap:8px;flex-wrap:wrap\">\n <button type=\"button\" data-action=\"reply\" style=\"font-size:11px;border:none;background:transparent;color:inherit;text-decoration:underline;cursor:pointer\">Reply</button>\n <button type=\"button\" data-action=\"forward\" style=\"font-size:11px;border:none;background:transparent;color:inherit;text-decoration:underline;cursor:pointer\">Forward</button>\n <button type=\"button\" data-action=\"delete\" style=\"font-size:11px;border:none;background:transparent;color:inherit;text-decoration:underline;cursor:pointer\">Delete</button>\n ${isSelf ? `<button type=\"button\" data-action=\"info\" style=\"font-size:11px;border:none;background:transparent;color:inherit;text-decoration:underline;cursor:pointer\">Info</button>` : ''}\n </div>\n </div>`;\n\n this.querySelector('.demo-bubble')?.addEventListener('click', (e: Event) => {\n const t = e.target as HTMLElement;\n const action = t?.dataset?.action;\n const msg = (this as any).message;\n if (action === 'reply') {\n e.stopPropagation();\n this.onReply?.(msg);\n return;\n }\n if (action === 'forward') {\n e.stopPropagation();\n this.onForward?.(msg);\n return;\n }\n if (action === 'delete') {\n e.stopPropagation();\n this.onDelete?.(msg);\n return;\n }\n if (action === 'info') {\n e.stopPropagation();\n this.onInfo?.(msg);\n return;\n }\n if (action === 'tap' || t?.classList?.contains('demo-bubble')) {\n this.onTap?.(msg);\n }\n });\n }\n }\n defineReactiveProps(DemoMessageBubble.prototype, [\n 'message',\n 'isSelf',\n 'status',\n 'userMetaData',\n 'conversationDetails',\n 'allAttachments',\n ]);\n customElements.define('demo-message-bubble', DemoMessageBubble);\n }\n}\n\nexport function buildDemoEmptySlot(): HTMLElement {\n const el = document.createElement('div');\n el.slot = 'empty';\n el.style.cssText =\n 'height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--bg-secondary-color);color:var(--text-primary-color);padding:24px;text-align:center';\n el.innerHTML = `<strong>Custom empty slot (layout-only)</strong><span style=\"opacity:.75\">Tiles/bubbles use customParts props. Slots = panels.</span>`;\n return el;\n}\n\n/** Log public events so hosts can see the fully-functional data bus. */\nexport function attachCustomUiDemoEventLog(chat: HTMLElement) {\n const log = (name: string) => (e: Event) => {\n const detail = (e as CustomEvent).detail;\n // eslint-disable-next-line no-console\n console.log(`[web-chat:${name}]`, detail);\n };\n ['chatReady', 'conversationsChange', 'messagesChange', 'conversationSelect', 'replyChange', 'chatError'].forEach(\n name => chat.addEventListener(name, log(name)),\n );\n}\n","import { Component, h, State, Prop, Method } from '@stencil/core';\nimport '../components/theme-provider';\nimport '../components/my-component/web-chat/WebChat';\nimport '../components/Login';\nimport { registerCustomUiDemoElements, buildDemoEmptySlot, attachCustomUiDemoEventLog } from '../demos/custom-ui-demo-elements';\n\n@Component({\n tag: 'chat-app',\n shadow: false\n})\nexport class ChatApp {\n @Prop() themePath: string;\n @Prop({ mutable: true, reflect: true }) mode: 'light' | 'dark' = 'light';\n @Prop() themeObject: { [key: string]: string };\n \n @State() isLoggedIn: boolean = false;\n @State() userToken: string = null;\n @State() userId: string = null;\n @State() demoCustomUi: boolean = false;\n \n private themeProviderRef?: HTMLThemeProviderElement;\n \n constructor() {\n this.toggleTheme = this.toggleTheme.bind(this);\n this.changeTheme = this.changeTheme.bind(this);\n }\n \n componentWillLoad() {\n const savedTheme = localStorage.getItem('preferred-theme');\n if (savedTheme && (savedTheme === 'light' || savedTheme === 'dark')) {\n this.mode = savedTheme;\n }\n \n const userToken = this.getCookie('userToken');\n const userId = this.getCookie('isometrikUserId');\n \n if (userToken && userId) {\n this.isLoggedIn = true;\n this.userToken = userToken;\n this.userId = userId;\n }\n\n if (typeof window !== 'undefined') {\n this.demoCustomUi = new URLSearchParams(window.location.search).has('demoCustomUi');\n if (this.demoCustomUi) {\n registerCustomUiDemoElements();\n }\n }\n }\n \n private getCookie(name: string): string {\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) return parts.pop().split(';').shift();\n return null;\n }\n \n private handleLoginSuccess = (event: CustomEvent) => {\n this.userToken = event.detail;\n this.isLoggedIn = true;\n this.userId = this.getCookie('isometrikUserId');\n }\n \n @Method()\n async changeTheme(newTheme: 'light' | 'dark') {\n this.mode = newTheme;\n localStorage.setItem('preferred-theme', newTheme);\n if (this.themeProviderRef) {\n await this.themeProviderRef.setTheme(newTheme);\n }\n return this.mode;\n }\n \n @Method()\n async toggleTheme() {\n const newTheme = this.mode === 'light' ? 'dark' : 'light';\n return this.changeTheme(newTheme);\n }\n \n render() {\n return (\n <theme-provider \n ref={(el) => this.themeProviderRef = el as HTMLThemeProviderElement}\n themePath={this.themePath} \n mode={this.mode}\n >\n {!this.isLoggedIn ? (\n <login-page onLoginSuccess={this.handleLoginSuccess} />\n ) : (\n <web-chat\n toggleTheme={this.toggleTheme}\n defaultTheme={this.mode}\n customParts={\n this.demoCustomUi\n ? { chatTile: 'demo-chat-tile', messageBubble: 'demo-message-bubble' }\n : undefined\n }\n ref={el => {\n if (!el || !this.demoCustomUi) return;\n if (!el.querySelector('[slot=\"empty\"]')) {\n el.appendChild(buildDemoEmptySlot());\n }\n if (!(el as any).__demoEventsAttached) {\n attachCustomUiDemoEventLog(el as any);\n (el as any).__demoEventsAttached = true;\n }\n }}\n /> \n )}\n </theme-provider>\n );\n }\n}\n"],"version":3}
1
+ {"file":"chat-app.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;SAIgB,4BAA4B;IAC1C,IAAI,OAAO,cAAc,KAAK,WAAW;QAAE,OAAO;IAElD,MAAM,mBAAmB,GAAG,CAAC,KAAU,EAAE,IAAc;QACrD,IAAI,CAAC,OAAO,CAAC,GAAG;YACd,MAAM,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;YACxB,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,EAAE;gBAChC,GAAG;oBACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;iBACpB;gBACD,GAAG,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ChatApp"],"sources":["src/demos/custom-ui-demo-elements.ts","src/components/chat-main.tsx"],"sourcesContent":["/**\n * Demo customParts CEs for ?demoCustomUi=1 — props + callbacks showcase.\n * Property setters call render() so Stencil/Lit prop updates re-paint.\n */\nexport function registerCustomUiDemoElements() {\n if (typeof customElements === 'undefined') return;\n\n const defineReactiveProps = (proto: any, keys: string[]) => {\n keys.forEach(key => {\n const store = `_${key}`;\n Object.defineProperty(proto, key, {\n get() {\n return this[store];\n },\n set(value) {\n if (this[store] === value) return;\n this[store] = value;\n if (this.isConnected && typeof this.render === 'function') this.render();\n },\n configurable: true,\n });\n });\n };\n\n if (!customElements.get('demo-chat-tile')) {\n class DemoChatTile extends HTMLElement {\n onSelect: (conversationId: string) => void;\n\n connectedCallback() {\n this.render();\n this.onclick = () => {\n const c = (this as any).conversation || {};\n const id = c.conversationId || c.groupcastId;\n if (typeof this.onSelect === 'function' && id) this.onSelect(id);\n };\n }\n\n render() {\n const c = (this as any).conversation || {};\n const meta = c.metaData || {};\n const title = c.isGroup\n ? c.conversationTitle\n : c.groupcastTitle ||\n c.opponentDetails?.userName ||\n c.lastMessageDetails?.userName ||\n 'Chat';\n const preview = (this as any).previewText || c.lastMessageDetails?.body || c.lastMessageDetails?.customType || '';\n const unread = (this as any).unreadCount || c.unreadMessagesCount || '';\n const isSelected = !!(this as any).isSelected;\n const isTyping = !!(this as any).isTyping;\n const typingUserName = (this as any).typingUserName;\n\n this.style.display = 'block';\n this.style.padding = '12px 14px';\n this.style.margin = '4px 8px';\n this.style.borderRadius = '10px';\n this.style.cursor = 'pointer';\n this.style.border = isSelected\n ? '2px solid var(--bg-primary-light)'\n : '1px solid var(--bg-secondary-color)';\n this.style.background = isSelected\n ? 'var(--bg-primary-light)'\n : 'var(--bg-primary-color)';\n\n this.innerHTML = `\n <div style=\"display:flex;justify-content:space-between;gap:8px;align-items:flex-start\">\n <div>\n <div style=\"font-weight:600;color:var(--text-primary-color)\">${title || 'Untitled'}</div>\n ${meta.orderId ? `<div style=\"font-size:11px;color:var(--text-info-color);margin-top:2px\">Order #${meta.orderId}</div>` : ''}\n <div style=\"font-size:12px;color:var(--text-tertiary-color);margin-top:4px\">\n ${isTyping ? `typing${typingUserName ? `: ${typingUserName}` : '…'}` : `[demo tile] ${preview || 'No messages'}`}\n </div>\n </div>\n ${unread ? `<span style=\"background:var(--bg-primary-light);border-radius:999px;padding:2px 8px;font-size:11px\">${unread}</span>` : ''}\n </div>`;\n }\n }\n defineReactiveProps(DemoChatTile.prototype, [\n 'conversation',\n 'isSelected',\n 'userMetaData',\n 'unreadCount',\n 'previewText',\n 'isTyping',\n 'typingUserName',\n ]);\n customElements.define('demo-chat-tile', DemoChatTile);\n }\n\n if (!customElements.get('demo-message-bubble')) {\n class DemoMessageBubble extends HTMLElement {\n onTap: (message: any) => void;\n onReply: (message: any) => void;\n onForward: (message: any) => void;\n onDelete: (message: any) => void;\n onInfo: (message: any) => void;\n\n connectedCallback() {\n this.render();\n }\n\n render() {\n const m = (this as any).message || {};\n const meta = m.metaData || {};\n const isSelf = !!(this as any).isSelf;\n const status = (this as any).status || 'sent';\n const align = isSelf ? 'flex-end' : 'flex-start';\n const bg = isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)';\n this.style.display = 'flex';\n this.style.justifyContent = align;\n this.style.width = '100%';\n this.style.margin = '6px 0';\n\n this.innerHTML = `\n <div class=\"demo-bubble\" style=\"max-width:75%;padding:10px 12px;border-radius:12px;background:${bg};color:var(--text-primary-color)\">\n <div style=\"font-size:11px;opacity:.7;margin-bottom:4px\">demo · ${status}${meta.orderId ? ` · #${meta.orderId}` : ''}</div>\n <div style=\"cursor:pointer\" data-action=\"tap\">${m.body || m.customType || '[media/system]'}</div>\n <div style=\"margin-top:6px;display:flex;gap:8px;flex-wrap:wrap\">\n <button type=\"button\" data-action=\"reply\" style=\"font-size:11px;border:none;background:transparent;color:inherit;text-decoration:underline;cursor:pointer\">Reply</button>\n <button type=\"button\" data-action=\"forward\" style=\"font-size:11px;border:none;background:transparent;color:inherit;text-decoration:underline;cursor:pointer\">Forward</button>\n <button type=\"button\" data-action=\"delete\" style=\"font-size:11px;border:none;background:transparent;color:inherit;text-decoration:underline;cursor:pointer\">Delete</button>\n ${isSelf ? `<button type=\"button\" data-action=\"info\" style=\"font-size:11px;border:none;background:transparent;color:inherit;text-decoration:underline;cursor:pointer\">Info</button>` : ''}\n </div>\n </div>`;\n\n this.querySelector('.demo-bubble')?.addEventListener('click', (e: Event) => {\n const t = e.target as HTMLElement;\n const action = t?.dataset?.action;\n const msg = (this as any).message;\n if (action === 'reply') {\n e.stopPropagation();\n this.onReply?.(msg);\n return;\n }\n if (action === 'forward') {\n e.stopPropagation();\n this.onForward?.(msg);\n return;\n }\n if (action === 'delete') {\n e.stopPropagation();\n this.onDelete?.(msg);\n return;\n }\n if (action === 'info') {\n e.stopPropagation();\n this.onInfo?.(msg);\n return;\n }\n if (action === 'tap' || t?.classList?.contains('demo-bubble')) {\n this.onTap?.(msg);\n }\n });\n }\n }\n defineReactiveProps(DemoMessageBubble.prototype, [\n 'message',\n 'isSelf',\n 'status',\n 'userMetaData',\n 'conversationDetails',\n 'allAttachments',\n ]);\n customElements.define('demo-message-bubble', DemoMessageBubble);\n }\n}\n\nexport function buildDemoEmptySlot(): HTMLElement {\n const el = document.createElement('div');\n el.slot = 'empty';\n el.style.cssText =\n 'height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--bg-secondary-color);color:var(--text-primary-color);padding:24px;text-align:center';\n el.innerHTML = `<strong>Custom empty slot (layout-only)</strong><span style=\"opacity:.75\">Tiles/bubbles use customParts props. Slots = panels.</span>`;\n return el;\n}\n\n/** Log public events so hosts can see the fully-functional data bus. */\nexport function attachCustomUiDemoEventLog(chat: HTMLElement) {\n const log = (name: string) => (e: Event) => {\n const detail = (e as CustomEvent).detail;\n // eslint-disable-next-line no-console\n console.log(`[web-chat:${name}]`, detail);\n };\n ['chatReady', 'conversationsChange', 'messagesChange', 'conversationSelect', 'replyChange', 'chatError'].forEach(\n name => chat.addEventListener(name, log(name)),\n );\n}\n","import { Component, h, State, Prop, Method } from '@stencil/core';\nimport '../components/theme-provider';\nimport '../components/my-component/web-chat/WebChat';\nimport '../components/Login';\nimport { registerCustomUiDemoElements, buildDemoEmptySlot, attachCustomUiDemoEventLog } from '../demos/custom-ui-demo-elements';\n\n@Component({\n tag: 'chat-app',\n shadow: false\n})\nexport class ChatApp {\n @Prop() themePath: string;\n @Prop({ mutable: true, reflect: true }) mode: 'light' | 'dark' = 'light';\n @Prop() themeObject: { [key: string]: string };\n \n @State() isLoggedIn: boolean = false;\n @State() userToken: string = null;\n @State() userId: string = null;\n @State() demoCustomUi: boolean = false;\n \n private themeProviderRef?: HTMLThemeProviderElement;\n \n constructor() {\n this.toggleTheme = this.toggleTheme.bind(this);\n this.changeTheme = this.changeTheme.bind(this);\n }\n \n componentWillLoad() {\n const savedTheme = localStorage.getItem('preferred-theme');\n if (savedTheme && (savedTheme === 'light' || savedTheme === 'dark')) {\n this.mode = savedTheme;\n }\n \n const userToken = this.getCookie('userToken');\n const userId = this.getCookie('isometrikUserId');\n \n if (userToken && userId) {\n this.isLoggedIn = true;\n this.userToken = userToken;\n this.userId = userId;\n }\n\n if (typeof window !== 'undefined') {\n this.demoCustomUi = new URLSearchParams(window.location.search).has('demoCustomUi');\n if (this.demoCustomUi) {\n registerCustomUiDemoElements();\n }\n }\n }\n \n private getCookie(name: string): string {\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) return parts.pop().split(';').shift();\n return null;\n }\n \n private handleLoginSuccess = (event: CustomEvent) => {\n this.userToken = event.detail;\n this.isLoggedIn = true;\n this.userId = this.getCookie('isometrikUserId');\n }\n \n @Method()\n async changeTheme(newTheme: 'light' | 'dark') {\n this.mode = newTheme;\n localStorage.setItem('preferred-theme', newTheme);\n if (this.themeProviderRef) {\n await this.themeProviderRef.setTheme(newTheme);\n }\n return this.mode;\n }\n \n @Method()\n async toggleTheme() {\n const newTheme = this.mode === 'light' ? 'dark' : 'light';\n return this.changeTheme(newTheme);\n }\n \n render() {\n return (\n <theme-provider \n ref={(el) => this.themeProviderRef = el as HTMLThemeProviderElement}\n themePath={this.themePath} \n mode={this.mode}\n >\n {!this.isLoggedIn ? (\n <login-page onLoginSuccess={this.handleLoginSuccess} />\n ) : (\n <web-chat\n toggleTheme={this.toggleTheme}\n defaultTheme={this.mode}\n customParts={\n this.demoCustomUi\n ? { chatTile: 'demo-chat-tile', messageBubble: 'demo-message-bubble' }\n : undefined\n }\n ref={el => {\n if (!el || !this.demoCustomUi) return;\n if (!el.querySelector('[slot=\"empty\"]')) {\n el.appendChild(buildDemoEmptySlot());\n }\n if (!(el as any).__demoEventsAttached) {\n attachCustomUiDemoEventLog(el as any);\n (el as any).__demoEventsAttached = true;\n }\n }}\n /> \n )}\n </theme-provider>\n );\n }\n}\n"],"version":3}
@@ -93,6 +93,6 @@ const Send = asset('assets/svg/send.svg');
93
93
  const Smile = asset('assets/svg/smile.svg');
94
94
  const Attachment = asset('assets/svg/attachment.svg');
95
95
 
96
- export { Attachment as A, Block_User as B, ChatBg as C, Delete as D, Edit as E, Forward as F, Group_cast as G, Icon_Doc as I, Left_Arrow as L, Microphone as M, New_Chat as N, Reply as R, Smile as S, Three_Dots as T, Icon_Excel as a, Icon_Rtf as b, Icon_Txt as c, Send as d, Login_banner as e, New_Group as f, Logout as g, Icon_Image as h, Icon_Link as i, Drop_Down as j, Clear_Chat as k, Search as l, Camera_Add as m, Dark_Theme as n, Message as o, CloseButton as p, Info as q, Add_User as r, Cancel as s, Group as t };
96
+ export { Attachment as A, Block_User as B, ChatBg as C, Delete as D, Edit as E, Forward as F, Group_cast as G, Icon_Doc as I, Left_Arrow as L, Microphone as M, New_Chat as N, Reply as R, Smile as S, Three_Dots as T, Icon_Excel as a, Icon_Rtf as b, Icon_Txt as c, Send as d, Login_banner as e, New_Group as f, Logout as g, Icon_Image as h, Icon_Link as i, Drop_Down as j, Clear_Chat as k, Search as l, Message as m, Camera_Add as n, Dark_Theme as o, CloseButton as p, Info as q, Add_User as r, Cancel as s, Group as t };
97
97
 
98
98
  //# sourceMappingURL=chat-assets.js.map
@@ -9,7 +9,7 @@ const ChatDocumentMessageBubble$1 = /*@__PURE__*/ proxyCustomElement(class ChatD
9
9
  this.__attachShadow();
10
10
  }
11
11
  render() {
12
- return (h("div", { key: '566020d70d20c1ef1b4bb0f016432c69d5808812' }, h("document-message", { key: '9acc60f2ed92332bdf71343e699f382dbde3fcf2', bgColor: '#EFF1FA', borderRadius: "6px", time: new Date().toISOString(), docName: 'Somesomsomesomesome', width: "200px", height: "80px", documentNamePadding: "10px 7px", padding: "10px" })));
12
+ return (h("div", { key: '779a2b2139b99a2f671790a9df36b005156d24a6' }, h("document-message", { key: 'fd684ac875648a0216399f51ddefbda9bb0f978f', bgColor: '#EFF1FA', borderRadius: "6px", time: new Date().toISOString(), docName: 'Somesomsomesomesome', width: "200px", height: "80px", documentNamePadding: "10px 7px", padding: "10px" })));
13
13
  }
14
14
  }, [1, "chat-document-message-bubble"]);
15
15
  function defineCustomElement$1() {
@@ -9,7 +9,7 @@ const ChatImageMessageBubble$1 = /*@__PURE__*/ proxyCustomElement(class ChatImag
9
9
  this.__attachShadow();
10
10
  }
11
11
  render() {
12
- return (h("div", { key: 'ed683102debbd0e984754be052b24ddc3d5ca92f' }, h("image-message", { key: '2a53b46313c0f17dbe41b4054e9b18ddc915fcea', bgColor: '#EFF1FA', imageSrc: 'https://i.etsystatic.com/7251436/r/il/4fc56c/5398499035/il_570xN.5398499035_rnzx.jpg', width: '200px', height: 'fit-content', padding: '10px 10px 15px 10px', borderRadius: "6px", time: new Date().toISOString() })));
12
+ return (h("div", { key: '0fb0b714241ef6c19622555feeb8c22c68c28b2f' }, h("image-message", { key: 'a67191fa3f8011fc64029645ac7c2ff3105a9187', bgColor: '#EFF1FA', imageSrc: 'https://i.etsystatic.com/7251436/r/il/4fc56c/5398499035/il_570xN.5398499035_rnzx.jpg', width: '200px', height: 'fit-content', padding: '10px 10px 15px 10px', borderRadius: "6px", time: new Date().toISOString() })));
13
13
  }
14
14
  }, [1, "chat-image-message-bubble"]);
15
15
  function defineCustomElement$1() {
@@ -11,7 +11,7 @@ const ChatLoadingPlaceholder = /*@__PURE__*/ proxyCustomElement(class ChatLoadin
11
11
  }
12
12
  render() {
13
13
  const pct = Math.max(0, Math.min(100, Number(this.progress) || 0));
14
- return (h("div", { key: '1d94ae77a3b84334f8baccfc56ce2626d49fbe5c', class: "box" }, h("div", { key: 'c5e6ee763f846855de73c4dfd3a11712ab67e179', class: "logo", innerHTML: isometrikLogo }), h("div", { key: 'b0406f8e134260c4a6ca950d86628c4206a51e0e', class: "bar" }, h("div", { key: '3f1e832c8a3c18bcf627562b31a742f77f99f893', class: "fill", style: { width: `${pct}%` } })), h("div", { key: '01787478f77aa07380c661e54e7144a335252224', class: "pct" }, pct, "%")));
14
+ return (h("div", { key: 'f65fb2cef8d2642dfae594d5224415b81e7d6f11', class: "box" }, h("div", { key: '04396f25abd20a86cce72d96112b6773c876f59d', class: "logo", innerHTML: isometrikLogo }), h("div", { key: '48880af3a787a1b513bb1fa64da82f06e9f1fe5b', class: "bar" }, h("div", { key: '191778e44d60daef3aab92da1ddfa8121497d5f3', class: "fill", style: { width: `${pct}%` } })), h("div", { key: '4cc45d5652ba08937a897f3169a6342e1f98e74a', class: "pct" }, pct, "%")));
15
15
  }
16
16
  static get style() { return ":host {\n display: flex;\n box-sizing: border-box;\n width: var(--w-full);\n min-height: var(--h-screen);\n height: var(--h-full);\n align-items: center;\n justify-content: center;\n background: var(--bg-secondary);\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .box {\n display: flex;\n flex-direction: column;\n gap: var(--gap-16);\n align-items: center;\n min-width: 220px;\n max-width: 320px;\n width: min(320px, 80vw);\n padding: calc(var(--space-16) + var(--space-8));\n }\n .logo {\n width: 180px;\n max-width: 70vw;\n }\n .logo svg {\n width: var(--w-full);\n height: var(--h-auto);\n display: block;\n }\n .bar {\n width: var(--w-full);\n height: var(--gap-6);\n border-radius: var(--rounded-full);\n background: var(--bg-primary);\n overflow: hidden;\n }\n .fill {\n height: var(--h-full);\n background: var(--brand);\n transition: width 0.2s ease;\n }\n .pct {\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n color: var(--text-secondary);\n text-align: center;\n }"; }
17
17
  }, [1, "chat-loading-placeholder", {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { a as Icon_Excel, b as Icon_Rtf, c as Icon_Txt, I as Icon_Doc, h as Icon_Image, M as Microphone, i as Icon_Link, j as Drop_Down, B as Block_User, k as Clear_Chat, D as Delete } from './chat-assets.js';
2
+ import { a as Icon_Excel, b as Icon_Rtf, c as Icon_Txt, I as Icon_Doc, h as Icon_Image, M as Microphone, i as Icon_Link, j as Drop_Down, B as Block_User, k as Clear_Chat, g as Logout, D as Delete } from './chat-assets.js';
3
3
  import { d as defineCustomElement$1 } from './profile-avatar2.js';
4
4
 
5
5
  const ChatTile = /*@__PURE__*/ proxyCustomElement(class ChatTile extends HTMLElement {
@@ -27,6 +27,9 @@ const ChatTile = /*@__PURE__*/ proxyCustomElement(class ChatTile extends HTMLEle
27
27
  this.menuPos = null;
28
28
  this.tileMenu.emit({ action, conversationId: this.conversationId });
29
29
  };
30
+ this.emitBlockToggle = (e) => {
31
+ this.emitAction(e, this.isBlockedByMe ? 'unblock' : 'block');
32
+ };
30
33
  this.imageSrc = undefined;
31
34
  this.imageAlt = undefined;
32
35
  this.imageHeight = undefined;
@@ -84,6 +87,7 @@ const ChatTile = /*@__PURE__*/ proxyCustomElement(class ChatTile extends HTMLEle
84
87
  this.mediaType = undefined;
85
88
  this.mediaLabel = undefined;
86
89
  this.isGroup = false;
90
+ this.isBlockedByMe = false;
87
91
  this.conversationId = undefined;
88
92
  this.onClick = undefined;
89
93
  this.onContextmenu = undefined;
@@ -134,7 +138,7 @@ const ChatTile = /*@__PURE__*/ proxyCustomElement(class ChatTile extends HTMLEle
134
138
  }
135
139
  render() {
136
140
  const size = this.imageWidth || this.imageHeight || undefined;
137
- return (h("div", { key: 'fb68abaeb105b737e02e35c2a7edb2470d98100a', class: `chat-tile-container${this.isSelected ? ' selected' : ''}${this.menuOpen ? ' menu-open' : ''}`, style: {
141
+ return (h("div", { key: '50ac0e7ea61c1d570bae6ddf316cb99a86943dd8', class: `chat-tile-container${this.isSelected ? ' selected' : ''}${this.menuOpen ? ' menu-open' : ''}`, style: {
138
142
  background: this.bgColor || undefined,
139
143
  padding: this.padding,
140
144
  gap: this.gap,
@@ -143,21 +147,21 @@ const ChatTile = /*@__PURE__*/ proxyCustomElement(class ChatTile extends HTMLEle
143
147
  borderWidth: this.borderWidth,
144
148
  borderColor: this.borderColor,
145
149
  borderStyle: this.borderStyle,
146
- }, onClick: e => { var _a; return (_a = this.onClick) === null || _a === void 0 ? void 0 : _a.call(this, e); }, onContextMenu: e => { var _a; return (_a = this.onContextmenu) === null || _a === void 0 ? void 0 : _a.call(this, e); } }, h("div", { key: '60b69a4c90397e361bbcaf6c20573116a74b47d8', class: "avatar-slot" }, h("profile-avatar", { key: '665e4f470a3086958e9d869e4af4bba2e0e05191', src: this.imageSrc || '', name: this.username || this.title || '', size: size, radius: this.imageRadius, isGroup: this.isGroup })), h("div", { key: 'e318c8bbb1d473a604f5ac9dfdacd67fb5c32ad8', class: "meta" }, h("span", { key: '32cda6250be984de9cf274222e33488e504be30a', class: "username", style: {
150
+ }, onClick: e => { var _a; return (_a = this.onClick) === null || _a === void 0 ? void 0 : _a.call(this, e); }, onContextMenu: e => { var _a; return (_a = this.onContextmenu) === null || _a === void 0 ? void 0 : _a.call(this, e); } }, h("div", { key: '0e73b0b8868b0ac58d1eb70260719e38aa0d870c', class: "avatar-slot" }, h("profile-avatar", { key: 'f5b5d1c0ed04a4d97cbc42c4297fe7161659dc2b', src: this.imageSrc || '', name: this.username || this.title || '', size: size, radius: this.imageRadius, isGroup: this.isGroup })), h("div", { key: 'bf6fd1fe59f9543dd0c09f353b7acf83e810cb92', class: "meta" }, h("span", { key: 'f2dec4b78b9669e1e50615710bf1bfd0760fd24d', class: "username", style: {
147
151
  color: this.userNameColor,
148
152
  fontFamily: this.userNameFontFamily,
149
153
  fontWeight: this.userNameFontWeight,
150
154
  fontSize: this.usernameFontSize,
151
155
  fontStyle: this.usernameFontStyle,
152
156
  padding: this.usernamePadding,
153
- } }, this.username || this.title, this.suffix ? (h("span", { class: "suffix", style: { color: this.suffixColor, background: this.suffixBgColor } }, this.suffix)) : null), h("span", { key: '2598f879334e2f161aaf7587d56c480f8463183e', class: "date", style: {
157
+ } }, this.username || this.title, this.suffix ? (h("span", { class: "suffix", style: { color: this.suffixColor, background: this.suffixBgColor } }, this.suffix)) : null), h("span", { key: '2b9d4a920d1124c8930f433d69a76594f2421c47', class: "date", style: {
154
158
  color: this.messageDateColor,
155
159
  fontFamily: this.messageDateFontFamily,
156
160
  fontWeight: this.messageDateFontWeight,
157
161
  fontSize: this.messageDateFontSize,
158
162
  fontStyle: this.messageDateFontStyle,
159
163
  padding: this.messageDatePadding,
160
- } }, this.messageDate || this.time), h("span", { key: '067228a761a7c81d0f13713247e557b1dde07938', class: "preview", style: {
164
+ } }, this.messageDate || this.time), h("span", { key: '15cb594cdb7e11285640a40250462e69ae596dfc', class: "preview", style: {
161
165
  color: this.chatPreviewColor,
162
166
  fontFamily: this.chatPreviewFontFamily,
163
167
  fontWeight: this.chatPreviewFontWeight,
@@ -170,14 +174,14 @@ const ChatTile = /*@__PURE__*/ proxyCustomElement(class ChatTile extends HTMLEle
170
174
  return [h("img", { class: "preview-icon", src: meta.icon, alt: "" }), h("span", { class: "preview-label" }, meta.label)];
171
175
  }
172
176
  return h("span", { class: "preview-label" }, this.previewText());
173
- })()), h("div", { key: 'b9e5838d6ee8d0036a259868c1233039f3c35620', class: "trailing" }, h("button", { key: 'ec2e0c0b60f09afb51929b3c539a14bc64794acf', type: "button", class: "menu-btn", title: "Chat options", "aria-label": "Chat options", onClick: this.toggleMenu }, h("img", { key: '79cec1837f6d1d23282b91b6f985a028c56536f5', class: "theme-icon", src: Drop_Down, alt: "" })), this.unreadCount > 0 ? (h("span", { class: "unread", style: {
177
+ })()), h("div", { key: '0532a117aec4ecf1abf256aa0db4626f8a90e03b', class: "trailing" }, h("button", { key: '50788bea9bdabf364376a18d0e7d94860c08fa29', type: "button", class: "menu-btn", title: "Chat options", "aria-label": "Chat options", onClick: this.toggleMenu }, h("img", { key: 'c89e9bfcd7066906ac9be7698c8b061a342690d8', class: "theme-icon", src: Drop_Down, alt: "" })), this.unreadCount > 0 ? (h("span", { class: "unread", style: {
174
178
  color: this.unreadCountColor,
175
179
  background: this.unreadCountBgColor,
176
180
  fontSize: this.unreadCountFontSize,
177
181
  borderRadius: this.unreadCountBorderRadius,
178
182
  width: this.unreadCountWidth,
179
183
  height: this.unreadCountHeight,
180
- } }, this.unreadCount)) : null, this.menuOpen && this.menuPos ? (h("div", { class: "tile-menu", role: "menu", style: { top: `${this.menuPos.top}px`, left: `${this.menuPos.left}px` }, onClick: e => e.stopPropagation() }, !this.isGroup ? (h("button", { type: "button", class: "tile-menu-item", role: "menuitem", onClick: e => this.emitAction(e, 'block') }, h("img", { class: "theme-icon", src: Block_User, alt: "" }), h("span", null, "Block"))) : null, h("button", { type: "button", class: "tile-menu-item", role: "menuitem", onClick: e => this.emitAction(e, 'clear') }, h("img", { class: "theme-icon", src: Clear_Chat, alt: "" }), h("span", null, "Clear chat")), h("button", { type: "button", class: "tile-menu-item danger", role: "menuitem", onClick: e => this.emitAction(e, 'delete') }, h("img", { class: "theme-icon", src: Delete, alt: "" }), h("span", null, "Delete chat")))) : null))));
184
+ } }, this.unreadCount)) : null, this.menuOpen && this.menuPos ? (h("div", { class: "tile-menu", role: "menu", style: { top: `${this.menuPos.top}px`, left: `${this.menuPos.left}px` }, onClick: e => e.stopPropagation() }, !this.isGroup ? (h("button", { type: "button", class: "tile-menu-item", role: "menuitem", onClick: this.emitBlockToggle }, h("img", { class: "theme-icon", src: Block_User, alt: "" }), h("span", null, this.isBlockedByMe ? 'Unblock' : 'Block'))) : null, h("button", { type: "button", class: "tile-menu-item", role: "menuitem", onClick: e => this.emitAction(e, 'clear') }, h("img", { class: "theme-icon", src: Clear_Chat, alt: "" }), h("span", null, "Clear chat")), this.isGroup ? (h("button", { type: "button", class: "tile-menu-item danger", role: "menuitem", onClick: e => this.emitAction(e, 'exit') }, h("img", { class: "theme-icon", src: Logout, alt: "" }), h("span", null, "Exit group"))) : (h("button", { type: "button", class: "tile-menu-item danger", role: "menuitem", onClick: e => this.emitAction(e, 'delete') }, h("img", { class: "theme-icon", src: Delete, alt: "" }), h("span", null, "Delete chat"))))) : null))));
181
185
  }
182
186
  get el() { return this; }
183
187
  static get style() { return ":host {\n display: block;\n cursor: pointer;\n font-family: var(--font-primary);\n min-width: 0;\n max-width: var(--w-full);\n overflow: hidden;\n }\n .chat-tile-container {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-12) var(--space-16);\n width: var(--w-full);\n max-width: var(--w-full);\n min-width: 0;\n overflow: hidden;\n border-left: var(--strip) solid transparent;\n background: transparent;\n transition: background-color 0.15s;\n position: relative;\n }\n .chat-tile-container:hover {\n background-color: var(--bg-row-hover);\n }\n .chat-tile-container.selected {\n background-color: var(--bg-row-hover);\n border-left-color: var(--brand);\n }\n .chat-tile-container.selected:hover {\n background-color: var(--bg-row-hover);\n }\n .avatar-slot { flex-shrink: 0; }\n .meta {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n grid-template-rows: auto auto;\n column-gap: var(--gap-8);\n row-gap: var(--gap-2);\n align-items: center;\n }\n .username {\n grid-column: 1;\n grid-row: 1;\n font-weight: 600;\n font-size: var(--text-14);\n color: var(--text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n }\n .date {\n grid-column: 2;\n grid-row: 1;\n font-size: var(--text-10);\n color: var(--text-tertiary);\n white-space: nowrap;\n line-height: 1.2;\n }\n .chat-tile-container.selected .date {\n color: var(--brand);\n font-weight: 500;\n }\n .preview {\n grid-column: 1;\n grid-row: 2;\n font-size: var(--text-12);\n color: var(--text-secondary);\n white-space: nowrap;\n overflow: hidden;\n display: flex;\n align-items: center;\n gap: var(--gap-4);\n min-width: 0;\n }\n .preview-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n flex: 1;\n }\n .preview-icon {\n width: 1em;\n height: 1em;\n flex-shrink: 0;\n object-fit: contain;\n }\n .trailing {\n grid-column: 2;\n grid-row: 2;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n min-width: var(--icon-md);\n min-height: var(--icon-md);\n position: relative;\n }\n .menu-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background: transparent;\n border-radius: var(--rounded-full);\n cursor: pointer;\n color: var(--text-tertiary);\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.15s, background-color 0.15s, color 0.15s;\n }\n .chat-tile-container:hover .menu-btn,\n .chat-tile-container.menu-open .menu-btn {\n opacity: 1;\n pointer-events: auto;\n }\n .chat-tile-container:hover .unread,\n .chat-tile-container.menu-open .unread {\n display: none;\n }\n .menu-btn:hover {\n color: var(--text-primary);\n background: var(--hover-overlay);\n }\n .menu-btn img {\n width: 1rem;\n height: 1rem;\n display: block;\n }\n .tile-menu {\n position: fixed;\n width: 10rem;\n background: var(--bg-primary);\n border-radius: var(--rounded-8);\n box-shadow: 0 2px 16px var(--overlay);\n border: 1px solid var(--border-subtle);\n padding: var(--gap-6) 0;\n z-index: 1000;\n }\n .tile-menu-item {\n width: calc(100% - 12px);\n margin: 0 6px;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--gap-6) var(--space-12);\n border: none;\n background: transparent;\n border-radius: var(--rounded-8);\n cursor: pointer;\n text-align: left;\n font-size: var(--text-12);\n font-weight: 200;\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .tile-menu-item:hover {\n background: var(--brand-soft);\n color: var(--brand);\n }\n .tile-menu-item.danger {\n color: var(--danger);\n }\n .tile-menu-item.danger:hover {\n background: var(--hover-overlay);\n color: var(--danger);\n }\n .tile-menu-item img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n flex-shrink: 0;\n object-fit: contain;\n }\n .unread {\n min-width: var(--badge);\n height: var(--badge);\n border-radius: var(--rounded-full);\n padding: 0 var(--gap-6);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: var(--text-10);\n color: var(--text-on-brand);\n background: var(--brand);\n }\n .suffix {\n font-size: var(--text-10);\n padding: var(--gap-2) var(--gap-6);\n border-radius: var(--rounded-4);\n margin-left: var(--gap-4);\n }\n .theme-icon { filter: var(--svg-icon-filter); }"; }
@@ -239,6 +243,7 @@ const ChatTile = /*@__PURE__*/ proxyCustomElement(class ChatTile extends HTMLEle
239
243
  "mediaType": [2, "media-type"],
240
244
  "mediaLabel": [1, "media-label"],
241
245
  "isGroup": [4, "is-group"],
246
+ "isBlockedByMe": [4, "is-blocked-by-me"],
242
247
  "conversationId": [1, "conversation-id"],
243
248
  "onClick": [16],
244
249
  "onContextmenu": [16],