isometrik-plugin-chat-sdk 2.0.20 → 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.
- package/dist/cjs/admin-transfer-dialog.cjs.entry.js +2 -2
- package/dist/cjs/{app-globals-2824b330.js → app-globals-0e7848be.js} +3 -3
- package/dist/cjs/{app-globals-2824b330.js.map → app-globals-0e7848be.js.map} +1 -1
- package/dist/cjs/{attachment-preview_22.cjs.entry.js → attachment-preview_23.cjs.entry.js} +692 -388
- package/dist/cjs/attachment-preview_23.cjs.entry.js.map +1 -0
- package/dist/cjs/audio-bubble_4.cjs.entry.js +66 -22
- package/dist/cjs/audio-bubble_4.cjs.entry.js.map +1 -1
- package/dist/cjs/chat-app.cjs.entry.js +1 -1
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js +1 -1
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js +1 -1
- package/dist/cjs/chat-tile_3.cjs.entry.js +14 -10
- package/dist/cjs/chat-tile_3.cjs.entry.js.map +1 -1
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js +1 -1
- package/dist/cjs/confirm-dialog.cjs.entry.js +1 -1
- package/dist/cjs/{content-ebca062a.js → content-8b271b56.js} +3 -1
- package/dist/cjs/content-8b271b56.js.map +1 -0
- package/dist/cjs/delete-message.cjs.entry.js +1 -1
- package/dist/cjs/download-9ccc0a6c.js +120 -0
- package/dist/cjs/download-9ccc0a6c.js.map +1 -0
- package/dist/cjs/{drawer-00a2323a.js → drawer-3f9c87b4.js} +42 -5
- package/dist/cjs/drawer-3f9c87b4.js.map +1 -0
- package/dist/cjs/forward-memebers.cjs.entry.js +61 -24
- package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -1
- package/dist/cjs/forward-message.cjs.entry.js +2 -2
- package/dist/cjs/group-chat-contacts.cjs.entry.js +2 -2
- package/dist/cjs/{group-members-b3bea06e.js → group-members-1205fc4c.js} +5 -5
- package/dist/cjs/{group-members-b3bea06e.js.map → group-members-1205fc4c.js.map} +1 -1
- package/dist/cjs/{groupcast-8441b4df.js → groupcast-bb393c81.js} +14 -54
- package/dist/cjs/groupcast-bb393c81.js.map +1 -0
- package/dist/cjs/{groupcast-f24da720.js → groupcast-e1e52bd1.js} +16 -16
- package/dist/cjs/{groupcast-f24da720.js.map → groupcast-e1e52bd1.js.map} +1 -1
- package/dist/cjs/{helpers-154861e9.js → helpers-877a7116.js} +30 -1
- package/dist/cjs/helpers-877a7116.js.map +1 -0
- package/dist/cjs/index.cjs.js +8 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/{toast-91093c84.js → index.m-ff115b26.js} +1 -156
- package/dist/cjs/{toast-91093c84.js.map → index.m-ff115b26.js.map} +1 -1
- package/dist/cjs/info-panel-media_2.cjs.entry.js +244 -0
- package/dist/cjs/info-panel-media_2.cjs.entry.js.map +1 -0
- package/dist/cjs/isometrik-webchat.cjs.js +11 -9
- package/dist/cjs/isometrik-webchat.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +11 -9
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{local-notification-bdd04d7a.js → local-notification-a86a2b34.js} +3 -3
- package/dist/cjs/local-notification-a86a2b34.js.map +1 -0
- package/dist/cjs/login-page_3.cjs.entry.js +258 -104
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/cjs/media-gallery.cjs.entry.js +10 -2
- package/dist/cjs/media-gallery.cjs.entry.js.map +1 -1
- package/dist/cjs/member-add.cjs.entry.js +20 -11
- package/dist/cjs/member-add.cjs.entry.js.map +1 -1
- package/dist/cjs/message-bubble.cjs.entry.js +2 -2
- package/dist/cjs/{message-reaction-82a4f93c.js → message-reaction-8f93a048.js} +5 -5
- package/dist/cjs/{message-reaction-82a4f93c.js.map → message-reaction-8f93a048.js.map} +1 -1
- package/dist/cjs/messages-e129b34d.js +179 -0
- package/dist/cjs/messages-e129b34d.js.map +1 -0
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/new-chat-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/play-b473e0ab.js +13 -0
- package/dist/cjs/play-b473e0ab.js.map +1 -0
- package/dist/cjs/profile-avatar.cjs.entry.js +1 -1
- package/dist/cjs/reaction-container.cjs.entry.js +5 -4
- package/dist/cjs/reaction-container.cjs.entry.js.map +1 -1
- package/dist/cjs/{runtime-controls-cfc8fc31.js → runtime-controls-a70872fe.js} +33 -15
- package/dist/cjs/runtime-controls-a70872fe.js.map +1 -0
- package/dist/cjs/{send-media-4ee967d4.js → send-media-8a841e50.js} +559 -192
- package/dist/cjs/send-media-8a841e50.js.map +1 -0
- package/dist/cjs/share-popup.cjs.entry.js +1 -1
- package/dist/cjs/signup-page.cjs.entry.js +2 -2
- package/dist/cjs/spinner-loader.cjs.entry.js +1 -1
- package/dist/cjs/{group-members-cef1198e.js → storage-quota-2e81fb71.js} +254 -10
- package/dist/cjs/storage-quota-2e81fb71.js.map +1 -0
- package/dist/cjs/toast-a75f822c.js +159 -0
- package/dist/cjs/toast-a75f822c.js.map +1 -0
- package/dist/collection/collection-manifest.json +10 -8
- package/dist/collection/components/ChatUIComponent/AddMember.js +14 -7
- package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +8 -2
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +90 -47
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +105 -37
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +45 -11
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js +2 -2
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +38 -13
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +1 -0
- package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js +22 -10
- package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js +55 -19
- package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.js +2 -2
- package/dist/collection/components/ChatUIComponent/shared/attachment-preview/attachment-preview.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/block chatlist/BlockChatList.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/chat-loading-placeholder/chat-loading-placeholder.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/chat-tile/chat-tile.js +31 -9
- package/dist/collection/components/ChatUIComponent/shared/chat-tile/chat-tile.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/confirm-dialog/confirm-dialog.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +66 -157
- package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/delete-message/delete-message.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js +14 -4
- package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/forward-message/forward-message.js +2 -2
- package/dist/collection/components/ChatUIComponent/shared/group-info/group-info.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js +65 -2
- package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/incoming-text-message-bubble/incoming-text-message-bubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/info-panel-media/info-panel-media.js +335 -0
- package/dist/collection/components/ChatUIComponent/shared/info-panel-media/info-panel-media.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/shared/link-preview/link-preview.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/media-gallery/media-gallery.js +11 -2
- package/dist/collection/components/ChatUIComponent/shared/media-gallery/media-gallery.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/message-bubble/message-bubble.js +2 -2
- package/dist/collection/components/ChatUIComponent/shared/message-date-pill/message-date-pill.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/message-info/message-info.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/message-search/message-search.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/new chat/new-chat.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble/outgoing-text-message-bubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/profile sidebar/profile-sidebar.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/profile-avatar/profile-avatar.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/profile-info/profile-info.js +70 -3
- package/dist/collection/components/ChatUIComponent/shared/profile-info/profile-info.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/reply-block/reply-block.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js +31 -2
- package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.stories.js +10 -6
- package/dist/collection/components/ChatUIComponent/shared/searchable list/searchable-list.js +3 -3
- package/dist/collection/components/ChatUIComponent/shared/share-popup/share-popup.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/spinner-loader/spinner-loader.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/storage/storage-manager.js +140 -0
- package/dist/collection/components/ChatUIComponent/shared/storage/storage-manager.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js +35 -3
- package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js.map +1 -1
- package/dist/collection/components/Login.js +1 -1
- package/dist/collection/components/Signup.js +2 -2
- package/dist/collection/components/chat-main.js +1 -1
- package/dist/collection/components/my-component/my-component.js +1 -1
- package/dist/collection/components/my-component/web-chat/WebChat.js +145 -1
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +44 -2
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/bootstrap.js +1 -0
- package/dist/collection/components/my-component/web-chat/bootstrap.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/conversation-ops.js +22 -2
- package/dist/collection/components/my-component/web-chat/conversation-ops.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/data-fetch.js +9 -4
- package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/event-handlers.js +51 -10
- package/dist/collection/components/my-component/web-chat/event-handlers.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/mutations.js +38 -8
- package/dist/collection/components/my-component/web-chat/mutations.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/offline-host.js +31 -17
- package/dist/collection/components/my-component/web-chat/offline-host.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/public-send.js +6 -1
- package/dist/collection/components/my-component/web-chat/public-send.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/shell-render.js +11 -9
- package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/web-chat.css +40 -3
- package/dist/collection/components/theme-provider.js +1 -1
- package/dist/collection/constants/content.js +2 -0
- package/dist/collection/lib/chat/block-status.js +12 -0
- package/dist/collection/lib/chat/block-status.js.map +1 -0
- package/dist/collection/lib/chat/clipboard-paste.js +68 -0
- package/dist/collection/lib/chat/clipboard-paste.js.map +1 -0
- package/dist/collection/lib/chat/conversations.js +47 -3
- package/dist/collection/lib/chat/conversations.js.map +1 -1
- package/dist/collection/lib/chat/download-media.js +112 -0
- package/dist/collection/lib/chat/download-media.js.map +1 -0
- package/dist/collection/lib/chat/index.js +6 -2
- package/dist/collection/lib/chat/index.js.map +1 -1
- package/dist/collection/lib/chat/local-notification.js +1 -1
- package/dist/collection/lib/chat/local-notification.js.map +1 -1
- package/dist/collection/lib/chat/same-name-upload.js +53 -0
- package/dist/collection/lib/chat/same-name-upload.js.map +1 -0
- package/dist/collection/lib/chat/send-media.js +194 -27
- package/dist/collection/lib/chat/send-media.js.map +1 -1
- package/dist/collection/lib/chat/session.js +9 -3
- package/dist/collection/lib/chat/session.js.map +1 -1
- package/dist/collection/lib/chat/storage-quota.js +226 -0
- package/dist/collection/lib/chat/storage-quota.js.map +1 -0
- package/dist/collection/lib/custom-ui/public-api.js +5 -0
- package/dist/collection/lib/custom-ui/public-api.js.map +1 -1
- package/dist/collection/lib/drawer.js +42 -4
- package/dist/collection/lib/drawer.js.map +1 -1
- package/dist/collection/lib/helpers.js +29 -1
- package/dist/collection/lib/mqtt/dispatch.js +7 -3
- package/dist/collection/lib/mqtt/dispatch.js.map +1 -1
- package/dist/collection/sdk/headless-api.js +8 -0
- package/dist/collection/sdk/headless-api.js.map +1 -1
- package/dist/collection/sdk/index.js +1 -0
- package/dist/collection/sdk/index.js.map +1 -1
- package/dist/collection/sdk/webchat-api.js +5 -0
- package/dist/collection/sdk/webchat-api.js.map +1 -1
- package/dist/collection/store/storage-quota.js +244 -0
- package/dist/collection/store/storage-quota.js.map +1 -0
- package/dist/collection/testing/iso-chat-sdk-mock.js +10 -6
- package/dist/components/AudioBubble.js +22 -10
- package/dist/components/AudioBubble.js.map +1 -1
- package/dist/components/BlockChatList.js +2 -2
- package/dist/components/ChatFooter.js +172 -37
- package/dist/components/ChatFooter.js.map +1 -1
- package/dist/components/ChatSidebar.js +102 -49
- package/dist/components/ChatSidebar.js.map +1 -1
- package/dist/components/GroupCast2.js +1 -1
- package/dist/components/Login.js +1 -1
- package/dist/components/Profile.js +20 -9
- package/dist/components/Profile.js.map +1 -1
- package/dist/components/WebChat.js +301 -126
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/WebChatBody.js +39 -14
- package/dist/components/WebChatBody.js.map +1 -1
- package/dist/components/WebChatHeader.js +48 -15
- package/dist/components/WebChatHeader.js.map +1 -1
- package/dist/components/WebchatRightSide.js +22 -7
- package/dist/components/WebchatRightSide.js.map +1 -1
- package/dist/components/admin-transfer-dialog.js +2 -2
- package/dist/components/attachment-preview2.js +1 -1
- package/dist/components/chat-app.js +85 -73
- package/dist/components/chat-app.js.map +1 -1
- package/dist/components/chat-assets.js +1 -1
- package/dist/components/chat-document-message-bubble.js +1 -1
- package/dist/components/chat-image-message-bubble.js +1 -1
- package/dist/components/chat-loading-placeholder2.js +1 -1
- package/dist/components/chat-tile2.js +12 -7
- package/dist/components/chat-tile2.js.map +1 -1
- package/dist/components/chat-video-message-bubble.js +1 -1
- package/dist/components/client.js +11 -47
- package/dist/components/client.js.map +1 -1
- package/dist/components/confirm-dialog.js +1 -1
- package/dist/components/contact-info2.js +73 -162
- package/dist/components/contact-info2.js.map +1 -1
- package/dist/components/content.js +2 -0
- package/dist/components/content.js.map +1 -1
- package/dist/components/conversation.js +1 -1
- package/dist/components/conversations.js +91 -0
- package/dist/components/conversations.js.map +1 -0
- package/dist/components/delete-message.js +1 -1
- package/dist/components/document-message2.js +15 -6
- package/dist/components/document-message2.js.map +1 -1
- package/dist/components/download-media.js +115 -0
- package/dist/components/download-media.js.map +1 -0
- package/dist/components/download.js +5 -0
- package/dist/components/download.js.map +1 -0
- package/dist/components/drawer.js +42 -5
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/forward-memebers.js +56 -20
- package/dist/components/forward-memebers.js.map +1 -1
- package/dist/components/forward-message.js +2 -2
- package/dist/components/group-chat-contacts2.js +1 -1
- package/dist/components/group-info.js +1 -1
- package/dist/components/group-members.js +26 -298
- package/dist/components/group-members.js.map +1 -1
- package/dist/components/helpers.js +28 -1
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/image-message2.js +17 -2
- package/dist/components/image-message2.js.map +1 -1
- package/dist/components/incoming-text-message-bubble2.js +1 -1
- package/dist/components/index.js +21 -2
- package/dist/components/index.js.map +1 -1
- package/dist/{esm/group-members-7909941c.js → components/index3.js} +3 -52
- package/dist/components/index3.js.map +1 -0
- package/dist/components/info-panel-media.d.ts +11 -0
- package/dist/components/info-panel-media.js +8 -0
- package/dist/components/info-panel-media.js.map +1 -0
- package/dist/components/info-panel-media2.js +242 -0
- package/dist/components/info-panel-media2.js.map +1 -0
- package/dist/components/link-preview2.js +1 -1
- package/dist/components/local-notification.js +1 -1
- package/dist/components/local-notification.js.map +1 -1
- package/dist/components/media-gallery.js +11 -2
- package/dist/components/media-gallery.js.map +1 -1
- package/dist/components/member-add.js +16 -9
- package/dist/components/member-add.js.map +1 -1
- package/dist/components/message-bubble2.js +2 -2
- package/dist/components/message-date-pill2.js +1 -1
- package/dist/components/message-info2.js +2 -2
- package/dist/components/message-search2.js +1 -1
- package/dist/components/messages.js +1 -1
- package/dist/components/my-component.js +1 -1
- package/dist/components/new-chat-sidebar.js +1 -1
- package/dist/components/new-chat2.js +1 -1
- package/dist/components/outgoing-text-message-bubble2.js +1 -1
- package/dist/components/profile-avatar2.js +1 -1
- package/dist/components/profile-info2.js +69 -6
- package/dist/components/profile-info2.js.map +1 -1
- package/dist/components/profile-sidebar2.js +2 -2
- package/dist/components/prompt-exit-group.js +26 -3
- package/dist/components/prompt-exit-group.js.map +1 -1
- package/dist/components/reaction-container.js +2 -2
- package/dist/components/reply-block2.js +1 -1
- package/dist/components/reply-message-container2.js +12 -2
- package/dist/components/reply-message-container2.js.map +1 -1
- package/dist/components/searchable-list2.js +3 -3
- package/dist/components/send-media.js +242 -33
- package/dist/components/send-media.js.map +1 -1
- package/dist/components/share-popup.js +1 -1
- package/dist/components/signup-page.js +2 -2
- package/dist/components/spinner-loader2.js +1 -1
- package/dist/components/storage-manager.js +125 -0
- package/dist/components/storage-manager.js.map +1 -0
- package/dist/components/storage-quota.js +223 -0
- package/dist/components/storage-quota.js.map +1 -0
- package/dist/components/storage-quota2.js +248 -0
- package/dist/components/storage-quota2.js.map +1 -0
- package/dist/components/theme-provider2.js +1 -1
- package/dist/components/video-message2.js +19 -3
- package/dist/components/video-message2.js.map +1 -1
- package/dist/components/web-chat-storage.d.ts +11 -0
- package/dist/components/web-chat-storage.js +8 -0
- package/dist/components/web-chat-storage.js.map +1 -0
- package/dist/esm/admin-transfer-dialog.entry.js +2 -2
- package/dist/esm/{app-globals-e3f4717b.js → app-globals-eba1ca0c.js} +3 -3
- package/dist/esm/{app-globals-e3f4717b.js.map → app-globals-eba1ca0c.js.map} +1 -1
- package/dist/esm/{attachment-preview_22.entry.js → attachment-preview_23.entry.js} +657 -354
- package/dist/esm/attachment-preview_23.entry.js.map +1 -0
- package/dist/esm/audio-bubble_4.entry.js +66 -22
- package/dist/esm/audio-bubble_4.entry.js.map +1 -1
- package/dist/esm/chat-app.entry.js +1 -1
- package/dist/esm/chat-document-message-bubble.entry.js +1 -1
- package/dist/esm/chat-image-message-bubble.entry.js +1 -1
- package/dist/esm/chat-tile_3.entry.js +15 -11
- package/dist/esm/chat-tile_3.entry.js.map +1 -1
- package/dist/esm/chat-video-message-bubble.entry.js +1 -1
- package/dist/esm/confirm-dialog.entry.js +1 -1
- package/dist/esm/{content-fb138a93.js → content-fd0af283.js} +3 -1
- package/dist/esm/content-fd0af283.js.map +1 -0
- package/dist/esm/delete-message.entry.js +1 -1
- package/dist/esm/download-5368a10f.js +117 -0
- package/dist/esm/download-5368a10f.js.map +1 -0
- package/dist/esm/{drawer-7de04622.js → drawer-a457d820.js} +43 -6
- package/dist/esm/drawer-a457d820.js.map +1 -0
- package/dist/esm/forward-memebers.entry.js +59 -22
- package/dist/esm/forward-memebers.entry.js.map +1 -1
- package/dist/esm/forward-message.entry.js +2 -2
- package/dist/esm/group-chat-contacts.entry.js +2 -2
- package/dist/esm/{group-members-36cf9395.js → group-members-d603f29f.js} +2 -2
- package/dist/esm/{group-members-36cf9395.js.map → group-members-d603f29f.js.map} +1 -1
- package/dist/esm/{groupcast-5fb19ec3.js → groupcast-4f15b050.js} +14 -50
- package/dist/esm/groupcast-4f15b050.js.map +1 -0
- package/dist/esm/{groupcast-f96c1d9e.js → groupcast-c6da3918.js} +2 -2
- package/dist/esm/{groupcast-f96c1d9e.js.map → groupcast-c6da3918.js.map} +1 -1
- package/dist/esm/{helpers-f33b895c.js → helpers-1632a4c7.js} +29 -2
- package/dist/esm/helpers-1632a4c7.js.map +1 -0
- package/dist/esm/index.js +9 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{toast-a1531088.js → index.m-8c70037f.js} +2 -156
- package/dist/esm/{toast-a1531088.js.map → index.m-8c70037f.js.map} +1 -1
- package/dist/esm/info-panel-media_2.entry.js +239 -0
- package/dist/esm/info-panel-media_2.entry.js.map +1 -0
- package/dist/esm/isometrik-webchat.js +11 -9
- package/dist/esm/isometrik-webchat.js.map +1 -1
- package/dist/esm/loader.js +11 -9
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/{local-notification-4c1e166d.js → local-notification-f9ae9062.js} +3 -3
- package/dist/esm/local-notification-f9ae9062.js.map +1 -0
- package/dist/esm/login-page_3.entry.js +219 -65
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/esm/media-gallery.entry.js +10 -2
- package/dist/esm/media-gallery.entry.js.map +1 -1
- package/dist/esm/member-add.entry.js +20 -11
- package/dist/esm/member-add.entry.js.map +1 -1
- package/dist/esm/message-bubble.entry.js +2 -2
- package/dist/esm/{message-reaction-0d2ef75f.js → message-reaction-0a2bb115.js} +2 -2
- package/dist/esm/{message-reaction-0d2ef75f.js.map → message-reaction-0a2bb115.js.map} +1 -1
- package/dist/esm/messages-057dbecb.js +167 -0
- package/dist/esm/messages-057dbecb.js.map +1 -0
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/new-chat-sidebar.entry.js +2 -2
- package/dist/esm/play-05ae077a.js +9 -0
- package/dist/esm/play-05ae077a.js.map +1 -0
- package/dist/esm/profile-avatar.entry.js +1 -1
- package/dist/esm/reaction-container.entry.js +5 -4
- package/dist/esm/reaction-container.entry.js.map +1 -1
- package/dist/esm/{runtime-controls-ff81e90a.js → runtime-controls-bdb84aeb.js} +21 -3
- package/dist/esm/runtime-controls-bdb84aeb.js.map +1 -0
- package/dist/esm/{send-media-58e7145b.js → send-media-04f7ca0a.js} +533 -180
- package/dist/esm/send-media-04f7ca0a.js.map +1 -0
- package/dist/esm/share-popup.entry.js +1 -1
- package/dist/esm/signup-page.entry.js +2 -2
- package/dist/esm/spinner-loader.entry.js +1 -1
- package/dist/esm/storage-quota-6329fabe.js +578 -0
- package/dist/esm/storage-quota-6329fabe.js.map +1 -0
- package/dist/esm/toast-f681e916.js +157 -0
- package/dist/esm/toast-f681e916.js.map +1 -0
- package/dist/isometrik-webchat/index.esm.js +1 -1
- package/dist/isometrik-webchat/index.esm.js.map +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
- package/dist/isometrik-webchat/p-0161f40b.js +2 -0
- package/dist/isometrik-webchat/p-0161f40b.js.map +1 -0
- package/dist/isometrik-webchat/{p-d892b4d4.entry.js → p-02db2116.entry.js} +2 -2
- package/dist/isometrik-webchat/p-03933431.entry.js +2 -0
- package/dist/isometrik-webchat/{p-352b589e.entry.js.map → p-03933431.entry.js.map} +1 -1
- package/dist/isometrik-webchat/{p-c591fa45.js → p-04fdbd0a.js} +2 -2
- package/dist/isometrik-webchat/p-0bb42151.entry.js +2 -0
- package/dist/isometrik-webchat/p-0bb42151.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-c5bff6a1.entry.js → p-119fc683.entry.js} +2 -2
- package/dist/isometrik-webchat/p-19d37e1f.js +2 -0
- package/dist/isometrik-webchat/p-19d37e1f.js.map +1 -0
- package/dist/isometrik-webchat/{p-925decda.js → p-1dc52239.js} +2 -2
- package/dist/isometrik-webchat/p-1f0e8230.entry.js +2 -0
- package/dist/isometrik-webchat/p-1f0e8230.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-7b25f234.entry.js → p-35f2b9ae.entry.js} +2 -2
- package/dist/isometrik-webchat/p-3a0409fc.js +2 -0
- package/dist/isometrik-webchat/p-3a0409fc.js.map +1 -0
- package/dist/isometrik-webchat/{p-9982fa21.js → p-3dca1e56.js} +2 -2
- package/dist/isometrik-webchat/p-3dca1e56.js.map +1 -0
- package/dist/isometrik-webchat/p-40217f22.js +2 -0
- package/dist/isometrik-webchat/p-40217f22.js.map +1 -0
- package/dist/isometrik-webchat/{p-3b3dc33e.js → p-46be73c5.js} +2 -2
- package/dist/isometrik-webchat/p-56521ea4.entry.js +2 -0
- package/dist/isometrik-webchat/{p-f7d05551.entry.js → p-57f97cef.entry.js} +2 -2
- package/dist/isometrik-webchat/p-5f7eebbf.entry.js +2 -0
- package/dist/isometrik-webchat/p-605cb14e.entry.js +2 -0
- package/dist/isometrik-webchat/p-605cb14e.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-640e2c03.entry.js +2 -0
- package/dist/isometrik-webchat/p-69d953cb.entry.js +2 -0
- package/dist/isometrik-webchat/p-69d953cb.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-6c5eb178.js +2 -0
- package/dist/isometrik-webchat/{p-d8b65cf4.entry.js → p-6eadaa6c.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-161fcb35.entry.js → p-7130f547.entry.js} +2 -2
- package/dist/isometrik-webchat/p-782d1bd2.js +2 -0
- package/dist/isometrik-webchat/p-782d1bd2.js.map +1 -0
- package/dist/isometrik-webchat/p-8142a54d.js +2 -0
- package/dist/isometrik-webchat/p-8142a54d.js.map +1 -0
- package/dist/isometrik-webchat/{p-cbb1179b.entry.js → p-89a8fc58.entry.js} +2 -2
- package/dist/isometrik-webchat/p-8f17345f.js +7 -0
- package/dist/isometrik-webchat/p-8f17345f.js.map +1 -0
- package/dist/isometrik-webchat/p-991d5437.js +2 -0
- package/dist/isometrik-webchat/p-991d5437.js.map +1 -0
- package/dist/isometrik-webchat/p-9b70e93f.entry.js +2 -0
- package/dist/isometrik-webchat/p-a5faa465.entry.js +2 -0
- package/dist/isometrik-webchat/p-a5faa465.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-a83932d4.js +2 -0
- package/dist/isometrik-webchat/p-a83932d4.js.map +1 -0
- package/dist/isometrik-webchat/p-b0f6f9ab.entry.js +2 -0
- package/dist/isometrik-webchat/p-b0f6f9ab.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-3664e0ad.entry.js → p-b431d864.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-0ccfbe90.entry.js → p-b516938b.entry.js} +2 -2
- package/dist/isometrik-webchat/p-be09cdc8.js +2 -0
- package/dist/isometrik-webchat/p-be09cdc8.js.map +1 -0
- package/dist/isometrik-webchat/{p-5b965e04.js → p-c4b7babb.js} +2 -2
- package/dist/isometrik-webchat/{p-5b965e04.js.map → p-c4b7babb.js.map} +1 -1
- package/dist/isometrik-webchat/p-d0f6679d.entry.js +2 -0
- package/dist/isometrik-webchat/p-d0f6679d.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-d44c612a.entry.js +2 -0
- package/dist/isometrik-webchat/p-dc963574.entry.js +2 -0
- package/dist/isometrik-webchat/{p-5d1877d1.entry.js.map → p-dc963574.entry.js.map} +1 -1
- package/dist/isometrik-webchat/p-eb1f3118.entry.js +2 -0
- package/dist/isometrik-webchat/p-f18fa23d.js +2 -0
- package/dist/isometrik-webchat/p-f18fa23d.js.map +1 -0
- package/dist/isometrik-webchat/{p-08ba6153.entry.js → p-f5502a63.entry.js} +2 -2
- package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +2 -0
- package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +10 -0
- package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +3 -0
- package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +3 -0
- package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.d.ts +5 -2
- package/dist/types/components/ChatUIComponent/shared/chat-tile/chat-tile.d.ts +4 -1
- package/dist/types/components/ChatUIComponent/shared/contact-info/contact-info.d.ts +8 -22
- package/dist/types/components/ChatUIComponent/shared/image-message/image-message.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/shared/info-panel-media/info-panel-media.d.ts +45 -0
- package/dist/types/components/ChatUIComponent/shared/media-gallery/media-gallery.d.ts +1 -0
- package/dist/types/components/ChatUIComponent/shared/profile-info/profile-info.d.ts +8 -0
- package/dist/types/components/ChatUIComponent/shared/reply-message-container/reply-message-container.d.ts +3 -0
- package/dist/types/components/ChatUIComponent/shared/storage/storage-manager.d.ts +17 -0
- package/dist/types/components/ChatUIComponent/shared/video-message/video-message.d.ts +3 -0
- package/dist/types/components/my-component/web-chat/WebChat.d.ts +22 -0
- package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +7 -0
- package/dist/types/components/my-component/web-chat/conversation-ops.d.ts +10 -2
- package/dist/types/components/my-component/web-chat/event-handlers.d.ts +5 -0
- package/dist/types/components/my-component/web-chat/mutations.d.ts +2 -2
- package/dist/types/components.d.ts +133 -2
- package/dist/types/lib/chat/block-status.d.ts +11 -0
- package/dist/types/lib/chat/clipboard-paste.d.ts +16 -0
- package/dist/types/lib/chat/download-media.d.ts +11 -0
- package/dist/types/lib/chat/index.d.ts +6 -2
- package/dist/types/lib/chat/same-name-upload.d.ts +24 -0
- package/dist/types/lib/chat/send-media.d.ts +90 -0
- package/dist/types/lib/chat/storage-quota.d.ts +98 -0
- package/dist/types/lib/custom-ui/public-api.d.ts +1 -1
- package/dist/types/lib/drawer.d.ts +1 -0
- package/dist/types/sdk/headless-api.d.ts +7 -0
- package/dist/types/sdk/index.d.ts +1 -0
- package/dist/types/sdk/webchat-api.d.ts +14 -0
- package/dist/types/store/storage-quota.d.ts +64 -0
- package/docs/MEDIA_STORAGE_QUOTA.md +130 -0
- package/package.json +3 -2
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +0 -1
- package/dist/cjs/content-ebca062a.js.map +0 -1
- package/dist/cjs/drawer-00a2323a.js.map +0 -1
- package/dist/cjs/group-members-cef1198e.js.map +0 -1
- package/dist/cjs/groupcast-8441b4df.js.map +0 -1
- package/dist/cjs/helpers-154861e9.js.map +0 -1
- package/dist/cjs/link-preview.cjs.entry.js +0 -49
- package/dist/cjs/link-preview.cjs.entry.js.map +0 -1
- package/dist/cjs/local-notification-bdd04d7a.js.map +0 -1
- package/dist/cjs/runtime-controls-cfc8fc31.js.map +0 -1
- package/dist/cjs/send-media-4ee967d4.js.map +0 -1
- package/dist/components/group-members2.js +0 -37
- package/dist/components/group-members2.js.map +0 -1
- package/dist/esm/attachment-preview_22.entry.js.map +0 -1
- package/dist/esm/content-fb138a93.js.map +0 -1
- package/dist/esm/drawer-7de04622.js.map +0 -1
- package/dist/esm/group-members-7909941c.js.map +0 -1
- package/dist/esm/groupcast-5fb19ec3.js.map +0 -1
- package/dist/esm/helpers-f33b895c.js.map +0 -1
- package/dist/esm/link-preview.entry.js +0 -45
- package/dist/esm/link-preview.entry.js.map +0 -1
- package/dist/esm/local-notification-4c1e166d.js.map +0 -1
- package/dist/esm/runtime-controls-ff81e90a.js.map +0 -1
- package/dist/esm/send-media-58e7145b.js.map +0 -1
- package/dist/isometrik-webchat/p-09980c53.entry.js +0 -2
- package/dist/isometrik-webchat/p-09980c53.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-1eecc7c5.entry.js +0 -2
- package/dist/isometrik-webchat/p-1eecc7c5.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-2cf296e6.entry.js +0 -2
- package/dist/isometrik-webchat/p-2e9974e1.entry.js +0 -2
- package/dist/isometrik-webchat/p-343f50b4.js +0 -7
- package/dist/isometrik-webchat/p-343f50b4.js.map +0 -1
- package/dist/isometrik-webchat/p-352b589e.entry.js +0 -2
- package/dist/isometrik-webchat/p-44da28d3.entry.js +0 -2
- package/dist/isometrik-webchat/p-44da28d3.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-48ce4dca.entry.js +0 -2
- package/dist/isometrik-webchat/p-52a575c0.entry.js +0 -2
- package/dist/isometrik-webchat/p-52a575c0.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-5cfb953d.js +0 -2
- package/dist/isometrik-webchat/p-5cfb953d.js.map +0 -1
- package/dist/isometrik-webchat/p-5d1877d1.entry.js +0 -2
- package/dist/isometrik-webchat/p-6f5037b2.js +0 -2
- package/dist/isometrik-webchat/p-6f5037b2.js.map +0 -1
- package/dist/isometrik-webchat/p-78fb47c4.js +0 -2
- package/dist/isometrik-webchat/p-78fb47c4.js.map +0 -1
- package/dist/isometrik-webchat/p-9982fa21.js.map +0 -1
- package/dist/isometrik-webchat/p-a9efcf1c.entry.js +0 -2
- package/dist/isometrik-webchat/p-a9efcf1c.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-ad02a8ca.entry.js +0 -2
- package/dist/isometrik-webchat/p-b0baa9ad.entry.js +0 -2
- package/dist/isometrik-webchat/p-b0baa9ad.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-b385ac4b.js +0 -2
- package/dist/isometrik-webchat/p-b385ac4b.js.map +0 -1
- package/dist/isometrik-webchat/p-c83e2d5d.entry.js +0 -2
- package/dist/isometrik-webchat/p-d758e431.js +0 -2
- package/dist/isometrik-webchat/p-d864bb9f.entry.js +0 -2
- package/dist/isometrik-webchat/p-d864bb9f.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-dab06d54.js +0 -2
- package/dist/isometrik-webchat/p-dab06d54.js.map +0 -1
- package/dist/isometrik-webchat/p-e40e8866.js +0 -2
- package/dist/isometrik-webchat/p-e40e8866.js.map +0 -1
- package/dist/isometrik-webchat/p-e48a1217.entry.js +0 -2
- /package/dist/isometrik-webchat/{p-d892b4d4.entry.js.map → p-02db2116.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-c591fa45.js.map → p-04fdbd0a.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-c5bff6a1.entry.js.map → p-119fc683.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-925decda.js.map → p-1dc52239.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-7b25f234.entry.js.map → p-35f2b9ae.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-3b3dc33e.js.map → p-46be73c5.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-2cf296e6.entry.js.map → p-56521ea4.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-f7d05551.entry.js.map → p-57f97cef.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-ad02a8ca.entry.js.map → p-5f7eebbf.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-c83e2d5d.entry.js.map → p-640e2c03.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-d758e431.js.map → p-6c5eb178.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-d8b65cf4.entry.js.map → p-6eadaa6c.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-161fcb35.entry.js.map → p-7130f547.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-cbb1179b.entry.js.map → p-89a8fc58.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-e48a1217.entry.js.map → p-9b70e93f.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-3664e0ad.entry.js.map → p-b431d864.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-0ccfbe90.entry.js.map → p-b516938b.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-48ce4dca.entry.js.map → p-d44c612a.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-2e9974e1.entry.js.map → p-eb1f3118.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-08ba6153.entry.js.map → p-f5502a63.entry.js.map} +0 -0
|
@@ -14,12 +14,14 @@ import "../../ChatUIComponent/shared/chat-loading-placeholder/chat-loading-place
|
|
|
14
14
|
import { drawerDialogService } from "../../../lib/drawer";
|
|
15
15
|
import "./FLOW";
|
|
16
16
|
import { bootstrapWebChat } from "./bootstrap";
|
|
17
|
+
import { storageQuotaStore } from "../../../store/storage-quota";
|
|
18
|
+
import { fetchStorageMedia } from "../../../lib/chat/storage-quota";
|
|
17
19
|
import { metaFromConversationList, pushConversationUrl, pushGroupcastUrl, clearChatUrls, zeroUnreadInList, } from "./navigation";
|
|
18
20
|
import { hostGetUserDetails, hostGetConversations, hostGetGroupCastConversationDetails, hostGetUserConversationDetails, hostGetMessages, hostGetMessageUnreadCount, hostGetMessagesByQuery, hostGetAllLinks, hostGetGroupcastMembers, hostGetAllLinksCount, hostGetAllAttachments, hostGetGroupCastContacts, } from "./data-fetch";
|
|
19
21
|
import { hostSendText, hostSendMedia } from "./public-send";
|
|
20
22
|
import { hostHydrateMessagesFromCache, hostTeardownOffline, } from "./offline-host";
|
|
21
23
|
import { hostSetupMqttClient, } from "./mqtt-host";
|
|
22
|
-
import { hostRemoveMemberClicked, hostMembersListScrolledToBottom, hostCloseRightSidebar, hostCloseContactInfo, hostOpenRightSidebar, hostGetConversationId, hostSelectedConversationChange, hostContactAction, hostConversationUpdate, hostDeleteGroupcast, hostGroupExited, hostTagUserClick, hostCreateDmAndSelect, hostFindBlockedUser, } from "./event-handlers";
|
|
24
|
+
import { hostRemoveMemberClicked, hostMembersListScrolledToBottom, hostCloseRightSidebar, hostCloseContactInfo, hostOpenRightSidebar, hostGetConversationId, hostSelectedConversationChange, hostContactAction, hostConversationUpdate, hostDeleteGroupcast, hostGroupExited, hostTagUserClick, hostCreateDmAndSelect, hostMemberMessageClicked, hostFindBlockedUser, } from "./event-handlers";
|
|
23
25
|
import { hostClearConversation, hostDeleteConversation, hostBlockUser, hostUnblockUser, hostDeleteMessageSelf, hostDeleteMessageEveryone, } from "./mutations";
|
|
24
26
|
import { renderBootLoader, renderBusyOverlay, renderLeftRail, renderChatPane, renderRightRail, } from "./shell-render";
|
|
25
27
|
/**
|
|
@@ -239,6 +241,8 @@ export class WebChat {
|
|
|
239
241
|
this.activeTab = 'Chat';
|
|
240
242
|
this.showRightSideBar = false;
|
|
241
243
|
this.conversationIdFromContactinfo = '';
|
|
244
|
+
this.profileOpenedFromContactInfo = false;
|
|
245
|
+
this.pendingProfileMember = null;
|
|
242
246
|
this.exitedGroupIds = new Set();
|
|
243
247
|
this.conversationCountSkip = 0;
|
|
244
248
|
this.typingConversationId = null;
|
|
@@ -359,6 +363,28 @@ export class WebChat {
|
|
|
359
363
|
unreadConversationsCount: this.unreadConversationsCount,
|
|
360
364
|
};
|
|
361
365
|
}
|
|
366
|
+
/** Public: server-authoritative media storage usage (null until ready). */
|
|
367
|
+
async getStorageUsage(forceRefresh = false) {
|
|
368
|
+
if (!forceRefresh && storageQuotaStore.state.usage)
|
|
369
|
+
return storageQuotaStore.state.usage;
|
|
370
|
+
return storageQuotaStore.loadUsage();
|
|
371
|
+
}
|
|
372
|
+
/** Public: list the user's charged media (newest first). */
|
|
373
|
+
async getStorageMedia(opts) {
|
|
374
|
+
return fetchStorageMedia(opts || {});
|
|
375
|
+
}
|
|
376
|
+
/** Public: delete the messages that own `mediaIds` (for everyone) + free bytes. */
|
|
377
|
+
async deleteStorageMedia(mediaIds) {
|
|
378
|
+
return storageQuotaStore.deleteMedia(mediaIds);
|
|
379
|
+
}
|
|
380
|
+
/** Public: delete every file this user sent in a conversation (for everyone). */
|
|
381
|
+
async deleteConversationStorageMedia(conversationId) {
|
|
382
|
+
return storageQuotaStore.deleteAllInConversation(conversationId);
|
|
383
|
+
}
|
|
384
|
+
/** Public: open the built-in Manage Storage panel (optionally scoped). */
|
|
385
|
+
async openStorageManagement(conversationId) {
|
|
386
|
+
drawerDialogService.openDrawer('storage', { conversationId: conversationId || '' }, { id: 'storage' });
|
|
387
|
+
}
|
|
362
388
|
// Session identity: props from initializeChat / chat-app, cookies as session fallback
|
|
363
389
|
get sessionUserToken() {
|
|
364
390
|
return this.userToken || this.userTokenFromCookie;
|
|
@@ -429,6 +455,8 @@ export class WebChat {
|
|
|
429
455
|
this.isProfileInfoOpen = false;
|
|
430
456
|
this.isContactInfoOpen = false;
|
|
431
457
|
this.isOpenSearchBar = false;
|
|
458
|
+
this.profileOpenedFromContactInfo = false;
|
|
459
|
+
this.pendingProfileMember = null;
|
|
432
460
|
this.conversationMetaData = metaFromConversationList(this.allConversationList, conversationId);
|
|
433
461
|
// Show cached thread instantly while network fetch runs
|
|
434
462
|
void hostHydrateMessagesFromCache(this, conversationId);
|
|
@@ -523,6 +551,9 @@ export class WebChat {
|
|
|
523
551
|
handleTaguserClick(event) {
|
|
524
552
|
hostTagUserClick(this, event);
|
|
525
553
|
}
|
|
554
|
+
handleMemberMessageClicked(event) {
|
|
555
|
+
return hostMemberMessageClicked(this, event);
|
|
556
|
+
}
|
|
526
557
|
async createConversation(selectedContactId, selectedContactName) {
|
|
527
558
|
return hostCreateDmAndSelect(this, selectedContactId, selectedContactName);
|
|
528
559
|
}
|
|
@@ -1276,6 +1307,8 @@ export class WebChat {
|
|
|
1276
1307
|
"activeTab": {},
|
|
1277
1308
|
"showRightSideBar": {},
|
|
1278
1309
|
"conversationIdFromContactinfo": {},
|
|
1310
|
+
"profileOpenedFromContactInfo": {},
|
|
1311
|
+
"pendingProfileMember": {},
|
|
1279
1312
|
"exitedGroupIds": {},
|
|
1280
1313
|
"conversationCountSkip": {},
|
|
1281
1314
|
"typingConversationId": {},
|
|
@@ -1661,6 +1694,111 @@ export class WebChat {
|
|
|
1661
1694
|
"text": "Public: snapshot of current SDK UI state.",
|
|
1662
1695
|
"tags": []
|
|
1663
1696
|
}
|
|
1697
|
+
},
|
|
1698
|
+
"getStorageUsage": {
|
|
1699
|
+
"complexType": {
|
|
1700
|
+
"signature": "(forceRefresh?: boolean) => Promise<import(\"/Users/3embed/Desktop/isometrik-webchat/src/lib/chat/storage-quota\").StorageUsage>",
|
|
1701
|
+
"parameters": [{
|
|
1702
|
+
"name": "forceRefresh",
|
|
1703
|
+
"type": "boolean",
|
|
1704
|
+
"docs": ""
|
|
1705
|
+
}],
|
|
1706
|
+
"references": {
|
|
1707
|
+
"Promise": {
|
|
1708
|
+
"location": "global",
|
|
1709
|
+
"id": "global::Promise"
|
|
1710
|
+
}
|
|
1711
|
+
},
|
|
1712
|
+
"return": "Promise<StorageUsage>"
|
|
1713
|
+
},
|
|
1714
|
+
"docs": {
|
|
1715
|
+
"text": "Public: server-authoritative media storage usage (null until ready).",
|
|
1716
|
+
"tags": []
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
"getStorageMedia": {
|
|
1720
|
+
"complexType": {
|
|
1721
|
+
"signature": "(opts?: { conversationId?: string; limit?: number; skip?: number; }) => Promise<import(\"/Users/3embed/Desktop/isometrik-webchat/src/lib/chat/storage-quota\").QuotaMediaResponse>",
|
|
1722
|
+
"parameters": [{
|
|
1723
|
+
"name": "opts",
|
|
1724
|
+
"type": "{ conversationId?: string; limit?: number; skip?: number; }",
|
|
1725
|
+
"docs": ""
|
|
1726
|
+
}],
|
|
1727
|
+
"references": {
|
|
1728
|
+
"Promise": {
|
|
1729
|
+
"location": "global",
|
|
1730
|
+
"id": "global::Promise"
|
|
1731
|
+
}
|
|
1732
|
+
},
|
|
1733
|
+
"return": "Promise<QuotaMediaResponse>"
|
|
1734
|
+
},
|
|
1735
|
+
"docs": {
|
|
1736
|
+
"text": "Public: list the user's charged media (newest first).",
|
|
1737
|
+
"tags": []
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
"deleteStorageMedia": {
|
|
1741
|
+
"complexType": {
|
|
1742
|
+
"signature": "(mediaIds: string[]) => Promise<import(\"/Users/3embed/Desktop/isometrik-webchat/src/lib/chat/storage-quota\").MediaDeleteResult>",
|
|
1743
|
+
"parameters": [{
|
|
1744
|
+
"name": "mediaIds",
|
|
1745
|
+
"type": "string[]",
|
|
1746
|
+
"docs": ""
|
|
1747
|
+
}],
|
|
1748
|
+
"references": {
|
|
1749
|
+
"Promise": {
|
|
1750
|
+
"location": "global",
|
|
1751
|
+
"id": "global::Promise"
|
|
1752
|
+
}
|
|
1753
|
+
},
|
|
1754
|
+
"return": "Promise<MediaDeleteResult>"
|
|
1755
|
+
},
|
|
1756
|
+
"docs": {
|
|
1757
|
+
"text": "Public: delete the messages that own `mediaIds` (for everyone) + free bytes.",
|
|
1758
|
+
"tags": []
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
"deleteConversationStorageMedia": {
|
|
1762
|
+
"complexType": {
|
|
1763
|
+
"signature": "(conversationId: string) => Promise<import(\"/Users/3embed/Desktop/isometrik-webchat/src/lib/chat/storage-quota\").MediaDeleteResult>",
|
|
1764
|
+
"parameters": [{
|
|
1765
|
+
"name": "conversationId",
|
|
1766
|
+
"type": "string",
|
|
1767
|
+
"docs": ""
|
|
1768
|
+
}],
|
|
1769
|
+
"references": {
|
|
1770
|
+
"Promise": {
|
|
1771
|
+
"location": "global",
|
|
1772
|
+
"id": "global::Promise"
|
|
1773
|
+
}
|
|
1774
|
+
},
|
|
1775
|
+
"return": "Promise<MediaDeleteResult>"
|
|
1776
|
+
},
|
|
1777
|
+
"docs": {
|
|
1778
|
+
"text": "Public: delete every file this user sent in a conversation (for everyone).",
|
|
1779
|
+
"tags": []
|
|
1780
|
+
}
|
|
1781
|
+
},
|
|
1782
|
+
"openStorageManagement": {
|
|
1783
|
+
"complexType": {
|
|
1784
|
+
"signature": "(conversationId?: string) => Promise<void>",
|
|
1785
|
+
"parameters": [{
|
|
1786
|
+
"name": "conversationId",
|
|
1787
|
+
"type": "string",
|
|
1788
|
+
"docs": ""
|
|
1789
|
+
}],
|
|
1790
|
+
"references": {
|
|
1791
|
+
"Promise": {
|
|
1792
|
+
"location": "global",
|
|
1793
|
+
"id": "global::Promise"
|
|
1794
|
+
}
|
|
1795
|
+
},
|
|
1796
|
+
"return": "Promise<void>"
|
|
1797
|
+
},
|
|
1798
|
+
"docs": {
|
|
1799
|
+
"text": "Public: open the built-in Manage Storage panel (optionally scoped).",
|
|
1800
|
+
"tags": []
|
|
1801
|
+
}
|
|
1664
1802
|
}
|
|
1665
1803
|
};
|
|
1666
1804
|
}
|
|
@@ -1762,6 +1900,12 @@ export class WebChat {
|
|
|
1762
1900
|
"target": undefined,
|
|
1763
1901
|
"capture": false,
|
|
1764
1902
|
"passive": false
|
|
1903
|
+
}, {
|
|
1904
|
+
"name": "member-message-clicked",
|
|
1905
|
+
"method": "handleMemberMessageClicked",
|
|
1906
|
+
"target": undefined,
|
|
1907
|
+
"capture": false,
|
|
1908
|
+
"passive": false
|
|
1765
1909
|
}, {
|
|
1766
1910
|
"name": "contact-action",
|
|
1767
1911
|
"method": "handleContactAction",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebChat.js","sourceRoot":"","sources":["../../../../src/components/my-component/web-chat/WebChat.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAgB,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACzH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,4DAA4D,CAAC;AACpE,OAAO,+CAA+C,CAAC;AACvD,OAAO,kDAAkD,CAAC;A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, State, h, Watch, Fragment, Event, Listen, EventEmitter, Element, Method } from '@stencil/core';\nimport { MqttSession } from '../../../lib/mqtt';\nimport { sortConversationsByLatestMessage } from '../../../lib/chat';\nimport '../../ChatUIComponent/shared/spinner-loader/spinner-loader';\nimport '../../ChatUIComponent/ChatSidebar/ChatSidebar';\nimport '../../ChatUIComponent/shared/GroupCast/GroupCast';\nimport '../../ChatUIComponent/Header/WebChatHeader';\nimport '../../ChatUIComponent/Footer/ChatFooter';\nimport '../../ChatUIComponent/ChatOwnProfile/Profile';\nimport '../../ChatUIComponent/shared/profile sidebar/profile-sidebar';\nimport '../../ChatUIComponent/shared/contact-info/contact-info';\nimport './WebchatRightSide';\nimport '../../ChatUIComponent/shared/chat-loading-placeholder/chat-loading-placeholder';\nimport { drawerDialogService } from '../../../lib/drawer';\nimport type { WebChatCustomParts } from '../../../lib/custom-ui';\nimport type {\n ChatReadyDetail,\n ConversationsChangeDetail,\n MessagesChangeDetail,\n SelectionChangeDetail,\n ReplyChangeDetail,\n ChatErrorDetail,\n} from '../../../lib/custom-ui/public-api';\nimport './FLOW';\nimport { bootstrapWebChat } from './bootstrap';\nimport {\n metaFromConversationList,\n pushConversationUrl,\n pushGroupcastUrl,\n clearChatUrls,\n zeroUnreadInList,\n} from './navigation';\nimport {\n hostGetUserDetails,\n hostGetConversations,\n hostGetGroupCastConversationDetails,\n hostGetUserConversationDetails,\n hostGetMessages,\n hostGetMessageUnreadCount,\n hostGetMessagesByQuery,\n hostGetAllLinks,\n hostGetGroupcastMembers,\n hostGetAllLinksCount,\n hostGetAllAttachments,\n hostGetGroupCastContacts,\n} from './data-fetch';\nimport { hostSendText, hostSendMedia } from './public-send';\nimport {\n hostHydrateMessagesFromCache,\n hostTeardownOffline,\n} from './offline-host';\nimport {\n hostSetupMqttClient,\n} from './mqtt-host';\nimport {\n hostRemoveMemberClicked,\n hostMembersListScrolledToBottom,\n hostCloseRightSidebar,\n hostCloseContactInfo,\n hostOpenRightSidebar,\n hostGetConversationId,\n hostSelectedConversationChange,\n hostContactAction,\n hostConversationUpdate,\n hostDeleteGroupcast,\n hostGroupExited,\n hostTagUserClick,\n hostCreateDmAndSelect,\n hostFindBlockedUser,\n} from './event-handlers';\nimport {\n hostClearConversation,\n hostDeleteConversation,\n hostBlockUser,\n hostUnblockUser,\n hostDeleteMessageSelf,\n hostDeleteMessageEveryone,\n} from './mutations';\nimport {\n renderBootLoader,\n renderBusyOverlay,\n renderLeftRail,\n renderChatPane,\n renderRightRail,\n} from './shell-render';\n\n/**\n * <web-chat> shell — props/state, @Listen, render.\n * Logic map: see FLOW.ts\n * Custom UI: named slots (panels) + customParts (list item CE tags). See lib/custom-ui.\n */\n@Component({\n tag: 'web-chat',\n shadow: true,\n styleUrl: 'web-chat.css',\n})\nexport class WebChat {\n @Element() el: HTMLElement;\n\n /**\n * Host CE tags for rows/overlays (messageBubble, chatTile, …).\n * Set once on <web-chat> — shell forwards to body/sidebar. Do not poke child DOM.\n * Prefer assign before appendChild, or call setCustomParts() after componentOnReady.\n */\n @Prop({ mutable: true }) customParts?: WebChatCustomParts;\n\n @Prop() name: string;\n @Prop() baseUrl: string;\n @Prop() licenseKey: string;\n @Prop() appSecret: string;\n @Prop() userSecret: string;\n @Prop() userToken: string;\n @Prop() themeUrl: string;\n @Prop() defaultTheme: string;\n @Prop() isometrikUserId: string;\n @Prop() projectId: string;\n @Prop() keysetId: string;\n @Prop() accountId: string;\n @Prop() conversationId: string;\n @Prop() hostUrl?: string;\n /** When false, groupcast entry points are disabled. Default true. */\n @Prop() groupcastEnabled: boolean = true;\n /**\n * Show the left profile icon rail (Chat / Profile / Groupcast).\n * - `false` → hidden (wins over a custom `slot=\"profile-rail\"`)\n * - `true` + `slot=\"profile-rail\"` → host UI\n * - `true` + no slot → default `<profile-sidebar>`\n * Init alias: `showProfileSidebar` maps to this prop.\n * Default true for backward compatibility.\n */\n @Prop() showProfileRail: boolean = true;\n /**\n * When false, chat pane uses a flat surface (no doodle wallpaper).\n * Default true for backward compatibility.\n */\n @Prop() showChatWallpaper: boolean = true;\n /** When false, hide the conversation header. Default true. */\n @Prop() showHeader: boolean = true;\n /** When false, hide the composer / footer. Default true. */\n @Prop() showComposer: boolean = true;\n /** When false, hide the empty-state panel. Default true. */\n @Prop() showEmptyState: boolean = true;\n /** When false, hide the conversation list (Chat tab). Default true. */\n @Prop() showConversationList: boolean = true;\n /** When false, never show the right info rail. Default true. */\n @Prop() showRightPanel: boolean = true;\n /**\n * When false, hide the MQTT connection status dot in the conversation list header.\n * Default true so hosts/users can verify realtime without digging into logs.\n */\n @Prop() showMqttStatus: boolean = true;\n /**\n * When false, outbound `events.sendPushNotification` is forced false.\n * Default true.\n */\n @Prop() enablePushNotifications: boolean = true;\n /**\n * When false, skip inbound local message alerts.\n * Default true.\n */\n @Prop() enableLocalNotifications: boolean = true;\n /**\n * Host callback for inbound local alerts (Flutter showNotification parity).\n * Wins over customParts.messageNotification / default toast.\n */\n @Prop() onLocalNotification?: (detail: {\n title: string;\n body: string;\n conversationId: string;\n messageId?: string;\n data: Record<string, any>;\n }) => void;\n @State() unreadConversations: any = [];\n @State() allLinks: any;\n @State() allLinksCount: any;\n @State() isInitialized: boolean = false;\n @State() findUserId: any = {};\n @State() mqttClient: any = null;\n @State() mqttInitialized: boolean = false;\n @State() isMqttConnected: boolean = false;\n @State() allMessages: any = [];\n @State() selectConversationMessages: any = [];\n @State() userMetaData: any = null;\n @State() allConversationList: any = [];\n @State() conversationMetaData: any = {};\n @State() selctConversationMetaData: any = {};\n @State() isMessageLimitEnd: boolean = false;\n @State() skip: number = 0;\n @State() isMessagesLoading: boolean = false;\n @State() isMessageSending: boolean = false;\n @State() deviceId: string = '';\n @State() isScrollToBottom: boolean = true;\n @State() isScrollToTop: boolean = false;\n @State() isConversationLoading: boolean = false;\n @State() isLoadingConversationList: boolean = false;\n @State() unreadConversationsCount: number = 0;\n @State() isChatClosed: boolean = false;\n @State() isChatMinimized: boolean = false;\n @State() isSubscribedToTopic: boolean = false;\n @State() isMessageListenerAttached: boolean = false;\n @State() isInitialCallDone: boolean = false;\n @State() isTyping: boolean = false;\n @State() typingUserName: string = '';\n @State() selectedConversationId: string | null = null;\n @State() unreadMessageCount: any = null;\n @State() unreadMessageCountFromApi: any = null;\n @State() isLoading: boolean = true;\n @State() loadingProgress: number = 0;\n @State() loadingStatus: string = 'Initializing...';\n @State() isLoadingMessage: boolean = false;\n @State() hasMoreConversations: boolean = false;\n @State() eligibleMembers: any[] = [];\n @State() membersListSkip: number = 0;\n @State() hasMoreEligibleMembers: boolean = true;\n @Event() unreadMessageCountUpdated: EventEmitter;\n @Event() conversationNotFound: EventEmitter;\n /** Fired once bootstrap finishes (SDK ready for custom UI). */\n @Event() chatReady: EventEmitter<ChatReadyDetail>;\n /** Conversation list updates (REST + MQTT). */\n @Event() conversationsChange: EventEmitter<ConversationsChangeDetail>;\n /** Active thread messages updates. */\n @Event() messagesChange: EventEmitter<MessagesChangeDetail>;\n /** Selected conversation changed. */\n @Event({ eventName: 'conversationSelect' }) conversationSelect: EventEmitter<SelectionChangeDetail>;\n /** Reply-target changed (null = cleared). */\n @Event() replyChange: EventEmitter<ReplyChangeDetail>;\n /** Public error surface for host UIs. */\n @Event() chatError: EventEmitter<ChatErrorDetail>;\n @State() isMobileView: boolean = false;\n @State() showSidebar: boolean = false;\n @State() isContactInfoOpen: boolean = false;\n @State() isProfileInfoOpen: boolean = false;\n @State() isOpenSearchBar: boolean = false;\n @Prop() isChatFilter: boolean = false;\n @Prop() isAllChatButton: boolean = true;\n @Prop() isSidebarHeaderLabel: boolean = true;\n @Prop() sidebarHeaderLabel: string = 'Chats';\n @Prop() isSidebarHeaderSearch: boolean = true;\n @Prop() sidebarColor: string = 'var(--bg-primary)';\n @Prop() sidebarSelectedColor: string = 'var(--brand-soft)';\n @State() messageSearchText: string = '';\n @State() searchedMessageDetails: any = [];\n @State() initialConversationIdFromURL: string = '';\n @State() allAttachments: any = [];\n @State() selectConverSationAttachments: any = [];\n @State() highlightedMessageId: string | null = null;\n @State() messageAction: { action: string; initiator: boolean } = { action: '', initiator: false };\n @State() replyMessage: any = null;\n @State() messageInfoPanel: {\n open: boolean;\n selectedMessage?: any;\n messageDeliveryTime?: any;\n messageReadTime?: any;\n readUserList?: any[];\n deliveryUserList?: any[];\n pendingReadCount?: any;\n pendingDeliveryCount?: any;\n isGroup?: boolean;\n isLoading?: boolean;\n } | null = null;\n @State() loadingMediaGallery: boolean = false;\n @State() activeTab: string = 'Chat';\n @State() showRightSideBar: boolean = false;\n @State() conversationIdFromContactinfo: string = '';\n private chatBodyRef: HTMLWebChatBodyElement | null = null;\n private conversationDetailsInterval: NodeJS.Timeout | null = null;\n @State() exitedGroupIds: Set<string> = new Set();\n @State() conversationCountSkip: number = 0;\n @State() typingConversationId: string = null;\n @Event() messageReadStatusUpdated: EventEmitter;\n @State() newMessageNotification: { messageId: string; count: number; conversationId: string } | null = null;\n @State() isBlocked: boolean | string = null;\n @State() allGroupCastContacts: any = [];\n @Prop() toggleTheme: () => void;\n @State() groupcastSkip: number = 0;\n @State() isLoadingMoreGroupcast: boolean = false;\n @State() hasMoreGroupcast: boolean = true;\n @State() groupcastMembers: any = [];\n private mqttSession = new MqttSession();\n private boundCheckMobileView = () => this.checkMobileView();\n private mqttRefetchInterval: ReturnType<typeof setInterval> | null = null;\n /** How many successful MQTT connects this mount (0 = first, >0 = reconnect). Used by mqtt-host. */\n mqttConnectCount = 0;\n private typingClearTimeout: ReturnType<typeof setTimeout> | null = null;\n private initGeneration = 0;\n\n private chatReadyEmitted = false;\n\n handleReplyMessage = (e: CustomEvent) => {\n this.replyMessage = e.detail;\n };\n\n handleremoveReplyMessage = () => {\n this.replyMessage = null;\n };\n\n private emitConversationsChange() {\n this.conversationsChange.emit({ conversations: this.allConversationList });\n }\n\n private emitMessagesChange() {\n this.messagesChange.emit({\n conversationId: this.selectedConversationId,\n messages: this.allMessages,\n });\n }\n\n emitSelectionChange() {\n const conversation =\n this.allConversationList.find(c => c.conversationId === this.selectedConversationId) ||\n this.conversationMetaData ||\n null;\n this.conversationSelect.emit({\n conversationId: this.selectedConversationId,\n conversation,\n });\n }\n\n private emitReplyChange() {\n this.replyChange.emit({ replyMessage: this.replyMessage });\n }\n\n private emitChatReadyOnce() {\n if (this.chatReadyEmitted) return;\n this.chatReadyEmitted = true;\n this.chatReady.emit({\n userMetaData: this.userMetaData,\n conversations: this.allConversationList,\n });\n }\n\n emitChatError(code: string, message: string, cause?: unknown) {\n this.chatError.emit({ code, message, cause });\n }\n\n @Watch('isLoading')\n onLoadingChange(isLoading: boolean) {\n if (!isLoading) this.emitChatReadyOnce();\n }\n\n @Watch('allConversationList')\n onConversationListChange() {\n this.emitConversationsChange();\n }\n\n @Watch('allMessages')\n onMessagesChange() {\n this.emitMessagesChange();\n }\n\n @Watch('replyMessage')\n onReplyMessageChange() {\n this.emitReplyChange();\n }\n\n /**\n * Public: set customParts after the shell is ready (prop-style API).\n * Hosts should prefer this over poking web-chat-body / chat-side-bar in the DOM.\n */\n @Method()\n async setCustomParts(parts: WebChatCustomParts): Promise<WebChatCustomParts> {\n this.customParts = { ...(parts || {}) };\n return this.customParts;\n }\n\n /** Public: open a conversation (or clear with null). */\n @Method()\n async selectConversation(conversationId: string | null) {\n if (!conversationId) {\n this.handleBackButton();\n return;\n }\n this.handleChatSelect(conversationId);\n }\n\n /** Public: set / clear reply target for next sendText. */\n @Method()\n async setReply(message: any | null) {\n this.replyMessage = message;\n }\n\n @Method()\n async clearReply() {\n this.replyMessage = null;\n }\n\n /** Public: send a text message in the active (or given) conversation. */\n @Method()\n async sendText(body: string, conversationId?: string) {\n return hostSendText(this, body, conversationId);\n }\n\n /**\n * Public: send one or more media files in the active (or given) conversation.\n * Uses the same presign → upload → postMessages path as the default composer.\n */\n @Method()\n async sendMedia(files: File[] | FileList, conversationId?: string, caption?: string) {\n return hostSendMedia(this, files, conversationId, caption);\n }\n\n /** Public: paginate messages upward. */\n @Method()\n async loadMoreMessages() {\n if (this.isMessageLimitEnd || this.isMessagesLoading) return;\n this.skip += 20;\n await this.getMessages(this.skip);\n }\n\n /** Public: paginate conversation list. */\n @Method()\n async loadMoreConversations() {\n if (!this.hasMoreConversations || this.isLoadingConversationList) return;\n this.conversationCountSkip += 20;\n await this.getConversations(this.conversationCountSkip);\n }\n\n /** Public: snapshot of current SDK UI state. */\n @Method()\n async getChatState() {\n return {\n userMetaData: this.userMetaData,\n conversations: this.allConversationList,\n messages: this.allMessages,\n selectedConversationId: this.selectedConversationId,\n conversationMetaData: this.conversationMetaData,\n replyMessage: this.replyMessage,\n isLoading: this.isLoading,\n isMqttConnected: this.isMqttConnected,\n unreadConversationsCount: this.unreadConversationsCount,\n };\n }\n\n handleMessageSearchTextChange = (e: CustomEvent<string>) => {\n this.messageSearchText = e.detail;\n };\n\n getCookie = (name: string) => {\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) return parts.pop().split(';').shift();\n };\n\n userTokenFromCookie = this.getCookie('userToken');\n isometrikUserIdFromCookie = this.getCookie('isometrikUserId');\n\n // Session identity: props from initializeChat / chat-app, cookies as session fallback\n get sessionUserToken() {\n return this.userToken || this.userTokenFromCookie;\n }\n get sessionUserId() {\n return this.isometrikUserId || this.isometrikUserIdFromCookie;\n }\n\n checkMobileView() {\n this.isMobileView = window.innerWidth <= 768;\n }\n componentWillLoad() {\n const urlParams = new URLSearchParams(window.location.search);\n const isGroupcast = urlParams.has('groupcast');\n const conversationId = urlParams.get('conversation');\n const groupcastId = urlParams.get('groupcast');\n this.initialConversationIdFromURL = (isGroupcast ? groupcastId : conversationId) ?? '';\n this.isMobileView = window.innerWidth <= 768;\n this.selectedConversationId = isGroupcast ? groupcastId : conversationId;\n if (this.isMobileView && (conversationId || groupcastId)) {\n this.showSidebar = false;\n } else {\n this.showSidebar = true;\n }\n }\n\n componentDidLoad() {\n const generation = ++this.initGeneration;\n // Yield so loading state is not written inside componentDidLoad.\n queueMicrotask(() => {\n void bootstrapWebChat(this as any, generation);\n });\n }\n\n updateLoading(progress: number, status: string) {\n this.loadingProgress = progress;\n this.loadingStatus = status;\n }\n\n disconnectedCallback() {\n this.initGeneration += 1;\n window.removeEventListener('resize', this.boundCheckMobileView);\n if (this.conversationDetailsInterval) {\n clearInterval(this.conversationDetailsInterval);\n this.conversationDetailsInterval = null;\n }\n if (this.mqttRefetchInterval) {\n clearInterval(this.mqttRefetchInterval);\n this.mqttRefetchInterval = null;\n }\n if (this.typingClearTimeout) {\n clearTimeout(this.typingClearTimeout);\n this.typingClearTimeout = null;\n }\n hostTeardownOffline(this);\n this.mqttSession.teardown();\n this.mqttClient = null;\n this.isMqttConnected = false;\n this.isSubscribedToTopic = false;\n this.isMessageListenerAttached = false;\n }\n\n // ─── MQTT connect / subscribe (realtime → mqtt-host → mqtt-bridge → lib/mqtt) ───\n async setupMqttClient() {\n return hostSetupMqttClient(this);\n }\n\n // ─── Open chat / URL (navigation.ts) ───\n handleChatSelect(param: string | { groupcastId: string }) {\n const conversationId = typeof param === 'string' ? param : param.groupcastId;\n this.selectedConversationId = conversationId;\n this.isProfileInfoOpen = false;\n this.isContactInfoOpen = false;\n this.isOpenSearchBar = false;\n this.conversationMetaData = metaFromConversationList(this.allConversationList, conversationId);\n // Show cached thread instantly while network fetch runs\n void hostHydrateMessagesFromCache(this, conversationId);\n\n if (typeof param === 'string') {\n this.getAllAttachments(conversationId);\n pushConversationUrl(conversationId || null);\n if (conversationId) {\n if (this.isMobileView) this.showSidebar = false;\n } else {\n this.showSidebar = true;\n }\n } else {\n pushGroupcastUrl(param.groupcastId);\n this.activeTab = 'GroupCast';\n this.getGroupCastContacts();\n this.conversationMetaData = null;\n }\n\n this.allConversationList = zeroUnreadInList(this.allConversationList, conversationId);\n this.unreadMessageCountUpdated.emit({\n detail: { conversationId, count: 0 },\n });\n }\n\n handleBackButton() {\n this.showSidebar = true;\n this.selectedConversationId = null;\n pushConversationUrl(null);\n }\n\n sortConversationsByLatestMessage(conversations: any[]) {\n return sortConversationsByLatestMessage(conversations);\n }\n\n @Listen('remove-member-clicked')\n async handleRemoveMemberClicked(event) {\n return hostRemoveMemberClicked(this, event);\n }\n\n @Listen('profile-clicked')\n async onProfileClick(event) {\n if (event.type === 'profile-clicked') {\n this.activeTab = 'Profile';\n }\n }\n\n @Listen('members-list-scrolled-to-bottom')\n async handleMembersListScrolledToBottom(event) {\n return hostMembersListScrolledToBottom(this, event);\n }\n\n @Listen('close-right-Sidebar')\n async handleContactInfo(event: CustomEvent) {\n hostCloseRightSidebar(this, event);\n }\n\n @Listen('close-contact-info')\n async handleProfileInfo(event: CustomEvent) {\n hostCloseContactInfo(this, event);\n }\n\n @Listen('message-info-panel-change')\n handleMessageInfoPanelChange(event: CustomEvent) {\n const detail = event.detail || {};\n this.messageInfoPanel = detail.open ? detail : null;\n if (detail.open) this.showRightSideBar = false;\n }\n\n @Listen('open-right-Sidebar')\n async handleOpen(event: CustomEvent) {\n return hostOpenRightSidebar(this, event);\n }\n\n async getConversationId(selectedContactId, selectedContactName) {\n return hostGetConversationId(this, selectedContactId, selectedContactName);\n }\n\n @Listen('get-links')\n async handleGetLinks(event: CustomEvent) {\n const { conversationId } = event.detail;\n this.getAllLinks(conversationId);\n }\n\n /// for get user details start\n // ─── Data fetch (thin wrappers → data-fetch.ts → lib/chat) ───\n getUserDetails = async () => hostGetUserDetails(this);\n getConversations = async (skip: number = 0, searchTag: string | null = null, showLoader: boolean = false) =>\n hostGetConversations(this, skip, searchTag, showLoader);\n getGroupCastConversationDetails = async (groupcastId?: string) =>\n hostGetGroupCastConversationDetails(this, groupcastId);\n getUserConversationDetails = async (conversationId?: string) =>\n hostGetUserConversationDetails(this, conversationId);\n getMessages = async (skip: number, conversationId?: string) => hostGetMessages(this, skip, conversationId);\n getMessageUnreadCount = async () => hostGetMessageUnreadCount(this);\n getMessagesByQuery = async (searchText: string) => hostGetMessagesByQuery(this, searchText);\n getAllLinks = async selectedConversationIDForAttachments =>\n hostGetAllLinks(this, selectedConversationIDForAttachments);\n getGroupcastMembers = async groupcastId => hostGetGroupcastMembers(this, groupcastId);\n getAllLinksCount = async selectedConversationIDForAttachments =>\n hostGetAllLinksCount(this, selectedConversationIDForAttachments);\n getAllAttachments = async (selectedConversationIDForAttachments: string, from?: string) =>\n hostGetAllAttachments(this, selectedConversationIDForAttachments, from);\n getGroupCastContacts = async (skip: number = 0) => hostGetGroupCastContacts(this, skip);\n\n // ─── Mutations (mutations.ts → conversation-ops.ts) ───\n clearConversation = async (conversationId?: string) => hostClearConversation(this, conversationId);\n deleteConversation = async (conversationId: string) => hostDeleteConversation(this, conversationId);\n blockUser = async (conversationId: string, userName: string) => hostBlockUser(this, conversationId, userName);\n unblockUser = async (conversationId: string, userName: string) => hostUnblockUser(this, conversationId, userName);\n\n changeScrollToBottomState = (newState: boolean) => {\n this.isScrollToBottom = newState;\n };\n\n changeScrollToTopState = (newState: boolean) => {\n this.isScrollToTop = newState;\n };\n\n updateSkip = () => {\n if (this.isMessageLimitEnd || this.isMessagesLoading) return;\n this.skip += 20;\n };\n\n updateAllMessages = (newMessages: any) => {\n this.allMessages = newMessages;\n };\n\n refetchMessages = () => {\n this.isScrollToBottom = true;\n this.isMessageLimitEnd = true;\n this.messageAction = { action: '', initiator: false };\n this.skip = 0;\n this.allMessages = [];\n this.getMessages(0);\n this.getMessageAction();\n };\n\n changeMessageSendingState = (newState: boolean) => {\n this.isMessageSending = newState;\n };\n\n getMessageAction = () => {\n const lastMessage = this.isProfileInfoOpen\n ? this.selectConversationMessages?.[this.selectConversationMessages?.length - 1]\n : this.allMessages?.[this.allMessages?.length - 1];\n if (lastMessage && ['userBlockConversation', 'userUnblockConversation'].includes(lastMessage?.action)) {\n this.messageAction = {\n action: lastMessage?.action,\n initiator: lastMessage?.initiatorId == this.userMetaData?.userId,\n };\n }\n };\n\n deleteMessageFromSelf = async (payload: { conversationId: string; messageIds: string }) =>\n hostDeleteMessageSelf(this, payload);\n\n deleteMeassageFromEveryOne = async (payload: { conversationId: string; messageIds: string }) =>\n hostDeleteMessageEveryone(this, payload);\n\n @Watch('skip')\n handleSkipChange() {\n if (!this.isMessageLimitEnd) {\n this.getMessages(this.skip);\n }\n }\n\n private typingTimeout: NodeJS.Timeout | null = null;\n @Watch('isTyping')\n handleTypingChange() {\n if (this.isTyping) {\n if (this.typingTimeout) {\n clearTimeout(this.typingTimeout);\n }\n this.typingTimeout = setTimeout(() => {\n this.isTyping = false;\n this.typingUserName = '';\n }, 10000);\n }\n }\n\n handleChatOpen = () => {\n this.isChatClosed = false;\n };\n @Watch('selectedConversationId')\n @Watch('initialConversationIdFromURL')\n async handleSelectedConversationChange(newValue: string | null) {\n return hostSelectedConversationChange(this, newValue);\n }\n\n @Watch('allMessages')\n @Watch('selectConversationMessages')\n async handlemessageAction() {\n this.getMessageAction();\n }\n\n handleSearchResultClick = async (messageId: string) => {\n this.highlightedMessageId = messageId;\n const messageExists = this.allMessages.some(message => message.messageId === messageId);\n if (!messageExists) {\n while (!this.allMessages.some(message => message.messageId === messageId)) {\n await this.getMessages(this.skip);\n this.skip += 20;\n }\n }\n\n const chatBody = this.chatBodyRef as any;\n if (chatBody?.scrollToMessage) {\n chatBody.scrollToMessage(messageId);\n }\n };\n\n @Listen('groupExited')\n handleGroupExited(event: CustomEvent) {\n hostGroupExited(this, event);\n }\n\n @Listen('tagUserClick')\n handleTaguserClick(event: CustomEvent) {\n hostTagUserClick(this, event);\n }\n\n async createConversation(selectedContactId: string, selectedContactName: string) {\n return hostCreateDmAndSelect(this, selectedContactId, selectedContactName);\n }\n\n @Listen('contact-action', { target: 'body' })\n handleContactAction(event: CustomEvent) {\n hostContactAction(this, event);\n }\n\n @Listen('chat-tile-list-scrolled-to-bottom')\n handleChatTileScrolledToBottom() {\n this.conversationCountSkip += 20;\n if (this.hasMoreConversations) {\n this.getConversations(this.conversationCountSkip);\n }\n }\n\n handleCloseChat = () => {\n this.selectedConversationId = null;\n this.showSidebar = true;\n clearChatUrls();\n this.activeTab = 'Chat';\n drawerDialogService.closeDialog('confirm-dialog');\n };\n\n resetNewMessageNotification() {\n this.newMessageNotification = null;\n }\n\n @Listen('conversation-updated')\n async handleConversationUpdate(event: CustomEvent) {\n return hostConversationUpdate(this, event);\n }\n\n @Watch('conversationMetaData')\n async watchPropHandler(newValue: any) {\n if (newValue?.updateBlockStatus || (newValue?.messagingDisabled && this.isBlocked === null)) {\n await this.findBlokedUser();\n }\n }\n\n async findBlokedUser() {\n return hostFindBlockedUser(this);\n }\n\n updateConversationList = (updatedList: any[]): any[] => {\n const sortedList = sortConversationsByLatestMessage(updatedList);\n this.allConversationList = sortedList;\n return sortedList;\n };\n\n @Listen('groupcastScrolledToBottom')\n handleGroupcastScroll() {\n if (this.hasMoreGroupcast && !this.isLoadingMoreGroupcast) {\n this.getGroupCastContacts(this.groupcastSkip + 20);\n }\n }\n\n @Listen('delete-groupcast')\n async handleDeleteGroupcast(e) {\n return hostDeleteGroupcast(this, e);\n }\n\n\n // ─── UI tree (delegates to shell-render.tsx) ───\n private renderBootLoader() {\n return renderBootLoader(this);\n }\n\n private renderBusyOverlay() {\n return renderBusyOverlay(this);\n }\n\n private renderLeftRail() {\n return renderLeftRail(this);\n }\n\n private renderChatPane() {\n return renderChatPane(this);\n }\n\n private renderRightRail() {\n return renderRightRail(this);\n }\n\n render() {\n // shell-render writes chatBodyRef via host; keep a read so TS sees usage\n void this.chatBodyRef;\n if (this.isLoading) return this.renderBootLoader();\n\n return (\n <Fragment>\n {this.renderBusyOverlay()}\n <div class=\"isometrik-quickchat\">\n {this.renderLeftRail()}\n {this.renderChatPane()}\n {this.renderRightRail()}\n </div>\n </Fragment>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"WebChat.js","sourceRoot":"","sources":["../../../../src/components/my-component/web-chat/WebChat.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAgB,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACzH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,4DAA4D,CAAC;AACpE,OAAO,+CAA+C,CAAC;AACvD,OAAO,kDAAkD,CAAC;AAC1D,OAAO,4CAA4C,CAAC;AACpD,OAAO,yCAAyC,CAAC;AACjD,OAAO,8CAA8C,CAAC;AACtD,OAAO,8DAA8D,CAAC;AACtE,OAAO,wDAAwD,CAAC;AAChE,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gFAAgF,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAU1D,OAAO,QAAQ,CAAC;AAChB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,mCAAmC,EACn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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, State, h, Watch, Fragment, Event, Listen, EventEmitter, Element, Method } from '@stencil/core';\nimport { MqttSession } from '../../../lib/mqtt';\nimport { sortConversationsByLatestMessage } from '../../../lib/chat';\nimport '../../ChatUIComponent/shared/spinner-loader/spinner-loader';\nimport '../../ChatUIComponent/ChatSidebar/ChatSidebar';\nimport '../../ChatUIComponent/shared/GroupCast/GroupCast';\nimport '../../ChatUIComponent/Header/WebChatHeader';\nimport '../../ChatUIComponent/Footer/ChatFooter';\nimport '../../ChatUIComponent/ChatOwnProfile/Profile';\nimport '../../ChatUIComponent/shared/profile sidebar/profile-sidebar';\nimport '../../ChatUIComponent/shared/contact-info/contact-info';\nimport './WebchatRightSide';\nimport '../../ChatUIComponent/shared/chat-loading-placeholder/chat-loading-placeholder';\nimport { drawerDialogService } from '../../../lib/drawer';\nimport type { WebChatCustomParts } from '../../../lib/custom-ui';\nimport type {\n ChatReadyDetail,\n ConversationsChangeDetail,\n MessagesChangeDetail,\n SelectionChangeDetail,\n ReplyChangeDetail,\n ChatErrorDetail,\n} from '../../../lib/custom-ui/public-api';\nimport './FLOW';\nimport { bootstrapWebChat } from './bootstrap';\nimport { storageQuotaStore } from '../../../store/storage-quota';\nimport { fetchStorageMedia } from '../../../lib/chat/storage-quota';\nimport {\n metaFromConversationList,\n pushConversationUrl,\n pushGroupcastUrl,\n clearChatUrls,\n zeroUnreadInList,\n} from './navigation';\nimport {\n hostGetUserDetails,\n hostGetConversations,\n hostGetGroupCastConversationDetails,\n hostGetUserConversationDetails,\n hostGetMessages,\n hostGetMessageUnreadCount,\n hostGetMessagesByQuery,\n hostGetAllLinks,\n hostGetGroupcastMembers,\n hostGetAllLinksCount,\n hostGetAllAttachments,\n hostGetGroupCastContacts,\n} from './data-fetch';\nimport { hostSendText, hostSendMedia } from './public-send';\nimport {\n hostHydrateMessagesFromCache,\n hostTeardownOffline,\n} from './offline-host';\nimport {\n hostSetupMqttClient,\n} from './mqtt-host';\nimport {\n hostRemoveMemberClicked,\n hostMembersListScrolledToBottom,\n hostCloseRightSidebar,\n hostCloseContactInfo,\n hostOpenRightSidebar,\n hostGetConversationId,\n hostSelectedConversationChange,\n hostContactAction,\n hostConversationUpdate,\n hostDeleteGroupcast,\n hostGroupExited,\n hostTagUserClick,\n hostCreateDmAndSelect,\n hostMemberMessageClicked,\n hostFindBlockedUser,\n} from './event-handlers';\nimport {\n hostClearConversation,\n hostDeleteConversation,\n hostBlockUser,\n hostUnblockUser,\n hostDeleteMessageSelf,\n hostDeleteMessageEveryone,\n} from './mutations';\nimport {\n renderBootLoader,\n renderBusyOverlay,\n renderLeftRail,\n renderChatPane,\n renderRightRail,\n} from './shell-render';\n\n/**\n * <web-chat> shell — props/state, @Listen, render.\n * Logic map: see FLOW.ts\n * Custom UI: named slots (panels) + customParts (list item CE tags). See lib/custom-ui.\n */\n@Component({\n tag: 'web-chat',\n shadow: true,\n styleUrl: 'web-chat.css',\n})\nexport class WebChat {\n @Element() el: HTMLElement;\n\n /**\n * Host CE tags for rows/overlays (messageBubble, chatTile, …).\n * Set once on <web-chat> — shell forwards to body/sidebar. Do not poke child DOM.\n * Prefer assign before appendChild, or call setCustomParts() after componentOnReady.\n */\n @Prop({ mutable: true }) customParts?: WebChatCustomParts;\n\n @Prop() name: string;\n @Prop() baseUrl: string;\n @Prop() licenseKey: string;\n @Prop() appSecret: string;\n @Prop() userSecret: string;\n @Prop() userToken: string;\n @Prop() themeUrl: string;\n @Prop() defaultTheme: string;\n @Prop() isometrikUserId: string;\n @Prop() projectId: string;\n @Prop() keysetId: string;\n @Prop() accountId: string;\n @Prop() conversationId: string;\n @Prop() hostUrl?: string;\n /** When false, groupcast entry points are disabled. Default true. */\n @Prop() groupcastEnabled: boolean = true;\n /**\n * Show the left profile icon rail (Chat / Profile / Groupcast).\n * - `false` → hidden (wins over a custom `slot=\"profile-rail\"`)\n * - `true` + `slot=\"profile-rail\"` → host UI\n * - `true` + no slot → default `<profile-sidebar>`\n * Init alias: `showProfileSidebar` maps to this prop.\n * Default true for backward compatibility.\n */\n @Prop() showProfileRail: boolean = true;\n /**\n * When false, chat pane uses a flat surface (no doodle wallpaper).\n * Default true for backward compatibility.\n */\n @Prop() showChatWallpaper: boolean = true;\n /** When false, hide the conversation header. Default true. */\n @Prop() showHeader: boolean = true;\n /** When false, hide the composer / footer. Default true. */\n @Prop() showComposer: boolean = true;\n /** When false, hide the empty-state panel. Default true. */\n @Prop() showEmptyState: boolean = true;\n /** When false, hide the conversation list (Chat tab). Default true. */\n @Prop() showConversationList: boolean = true;\n /** When false, never show the right info rail. Default true. */\n @Prop() showRightPanel: boolean = true;\n /**\n * When false, hide the MQTT connection status dot in the conversation list header.\n * Default true so hosts/users can verify realtime without digging into logs.\n */\n @Prop() showMqttStatus: boolean = true;\n /**\n * When false, outbound `events.sendPushNotification` is forced false.\n * Default true.\n */\n @Prop() enablePushNotifications: boolean = true;\n /**\n * When false, skip inbound local message alerts.\n * Default true.\n */\n @Prop() enableLocalNotifications: boolean = true;\n /**\n * Host callback for inbound local alerts (Flutter showNotification parity).\n * Wins over customParts.messageNotification / default toast.\n */\n @Prop() onLocalNotification?: (detail: {\n title: string;\n body: string;\n conversationId: string;\n messageId?: string;\n data: Record<string, any>;\n }) => void;\n @State() unreadConversations: any = [];\n @State() allLinks: any;\n @State() allLinksCount: any;\n @State() isInitialized: boolean = false;\n @State() findUserId: any = {};\n @State() mqttClient: any = null;\n @State() mqttInitialized: boolean = false;\n @State() isMqttConnected: boolean = false;\n @State() allMessages: any = [];\n @State() selectConversationMessages: any = [];\n @State() userMetaData: any = null;\n @State() allConversationList: any = [];\n @State() conversationMetaData: any = {};\n @State() selctConversationMetaData: any = {};\n @State() isMessageLimitEnd: boolean = false;\n @State() skip: number = 0;\n @State() isMessagesLoading: boolean = false;\n @State() isMessageSending: boolean = false;\n @State() deviceId: string = '';\n @State() isScrollToBottom: boolean = true;\n @State() isScrollToTop: boolean = false;\n @State() isConversationLoading: boolean = false;\n @State() isLoadingConversationList: boolean = false;\n @State() unreadConversationsCount: number = 0;\n @State() isChatClosed: boolean = false;\n @State() isChatMinimized: boolean = false;\n @State() isSubscribedToTopic: boolean = false;\n @State() isMessageListenerAttached: boolean = false;\n @State() isInitialCallDone: boolean = false;\n @State() isTyping: boolean = false;\n @State() typingUserName: string = '';\n @State() selectedConversationId: string | null = null;\n @State() unreadMessageCount: any = null;\n @State() unreadMessageCountFromApi: any = null;\n @State() isLoading: boolean = true;\n @State() loadingProgress: number = 0;\n @State() loadingStatus: string = 'Initializing...';\n @State() isLoadingMessage: boolean = false;\n @State() hasMoreConversations: boolean = false;\n @State() eligibleMembers: any[] = [];\n @State() membersListSkip: number = 0;\n @State() hasMoreEligibleMembers: boolean = true;\n @Event() unreadMessageCountUpdated: EventEmitter;\n @Event() conversationNotFound: EventEmitter;\n /** Fired once bootstrap finishes (SDK ready for custom UI). */\n @Event() chatReady: EventEmitter<ChatReadyDetail>;\n /** Conversation list updates (REST + MQTT). */\n @Event() conversationsChange: EventEmitter<ConversationsChangeDetail>;\n /** Active thread messages updates. */\n @Event() messagesChange: EventEmitter<MessagesChangeDetail>;\n /** Selected conversation changed. */\n @Event({ eventName: 'conversationSelect' }) conversationSelect: EventEmitter<SelectionChangeDetail>;\n /** Reply-target changed (null = cleared). */\n @Event() replyChange: EventEmitter<ReplyChangeDetail>;\n /** Public error surface for host UIs. */\n @Event() chatError: EventEmitter<ChatErrorDetail>;\n @State() isMobileView: boolean = false;\n @State() showSidebar: boolean = false;\n @State() isContactInfoOpen: boolean = false;\n @State() isProfileInfoOpen: boolean = false;\n @State() isOpenSearchBar: boolean = false;\n @Prop() isChatFilter: boolean = false;\n @Prop() isAllChatButton: boolean = true;\n @Prop() isSidebarHeaderLabel: boolean = true;\n @Prop() sidebarHeaderLabel: string = 'Chats';\n @Prop() isSidebarHeaderSearch: boolean = true;\n @Prop() sidebarColor: string = 'var(--bg-primary)';\n @Prop() sidebarSelectedColor: string = 'var(--brand-soft)';\n @State() messageSearchText: string = '';\n @State() searchedMessageDetails: any = [];\n @State() initialConversationIdFromURL: string = '';\n @State() allAttachments: any = [];\n @State() selectConverSationAttachments: any = [];\n @State() highlightedMessageId: string | null = null;\n @State() messageAction: { action: string; initiator: boolean } = { action: '', initiator: false };\n @State() replyMessage: any = null;\n @State() messageInfoPanel: {\n open: boolean;\n selectedMessage?: any;\n messageDeliveryTime?: any;\n messageReadTime?: any;\n readUserList?: any[];\n deliveryUserList?: any[];\n pendingReadCount?: any;\n pendingDeliveryCount?: any;\n isGroup?: boolean;\n isLoading?: boolean;\n } | null = null;\n @State() loadingMediaGallery: boolean = false;\n @State() activeTab: string = 'Chat';\n @State() showRightSideBar: boolean = false;\n @State() conversationIdFromContactinfo: string = '';\n @State() profileOpenedFromContactInfo: boolean = false;\n @State() pendingProfileMember: {\n userId: string;\n userName: string;\n userProfileImageUrl?: string;\n userIdentifier?: string;\n } | null = null;\n private chatBodyRef: HTMLWebChatBodyElement | null = null;\n private conversationDetailsInterval: NodeJS.Timeout | null = null;\n @State() exitedGroupIds: Set<string> = new Set();\n @State() conversationCountSkip: number = 0;\n @State() typingConversationId: string = null;\n @Event() messageReadStatusUpdated: EventEmitter;\n @State() newMessageNotification: { messageId: string; count: number; conversationId: string } | null = null;\n @State() isBlocked: boolean | string = null;\n @State() allGroupCastContacts: any = [];\n @Prop() toggleTheme: () => void;\n @State() groupcastSkip: number = 0;\n @State() isLoadingMoreGroupcast: boolean = false;\n @State() hasMoreGroupcast: boolean = true;\n @State() groupcastMembers: any = [];\n private mqttSession = new MqttSession();\n private boundCheckMobileView = () => this.checkMobileView();\n private mqttRefetchInterval: ReturnType<typeof setInterval> | null = null;\n /** How many successful MQTT connects this mount (0 = first, >0 = reconnect). Used by mqtt-host. */\n mqttConnectCount = 0;\n private typingClearTimeout: ReturnType<typeof setTimeout> | null = null;\n private initGeneration = 0;\n\n private chatReadyEmitted = false;\n\n handleReplyMessage = (e: CustomEvent) => {\n this.replyMessage = e.detail;\n };\n\n handleremoveReplyMessage = () => {\n this.replyMessage = null;\n };\n\n private emitConversationsChange() {\n this.conversationsChange.emit({ conversations: this.allConversationList });\n }\n\n private emitMessagesChange() {\n this.messagesChange.emit({\n conversationId: this.selectedConversationId,\n messages: this.allMessages,\n });\n }\n\n emitSelectionChange() {\n const conversation =\n this.allConversationList.find(c => c.conversationId === this.selectedConversationId) ||\n this.conversationMetaData ||\n null;\n this.conversationSelect.emit({\n conversationId: this.selectedConversationId,\n conversation,\n });\n }\n\n private emitReplyChange() {\n this.replyChange.emit({ replyMessage: this.replyMessage });\n }\n\n private emitChatReadyOnce() {\n if (this.chatReadyEmitted) return;\n this.chatReadyEmitted = true;\n this.chatReady.emit({\n userMetaData: this.userMetaData,\n conversations: this.allConversationList,\n });\n }\n\n emitChatError(code: string, message: string, cause?: unknown) {\n this.chatError.emit({ code, message, cause });\n }\n\n @Watch('isLoading')\n onLoadingChange(isLoading: boolean) {\n if (!isLoading) this.emitChatReadyOnce();\n }\n\n @Watch('allConversationList')\n onConversationListChange() {\n this.emitConversationsChange();\n }\n\n @Watch('allMessages')\n onMessagesChange() {\n this.emitMessagesChange();\n }\n\n @Watch('replyMessage')\n onReplyMessageChange() {\n this.emitReplyChange();\n }\n\n /**\n * Public: set customParts after the shell is ready (prop-style API).\n * Hosts should prefer this over poking web-chat-body / chat-side-bar in the DOM.\n */\n @Method()\n async setCustomParts(parts: WebChatCustomParts): Promise<WebChatCustomParts> {\n this.customParts = { ...(parts || {}) };\n return this.customParts;\n }\n\n /** Public: open a conversation (or clear with null). */\n @Method()\n async selectConversation(conversationId: string | null) {\n if (!conversationId) {\n this.handleBackButton();\n return;\n }\n this.handleChatSelect(conversationId);\n }\n\n /** Public: set / clear reply target for next sendText. */\n @Method()\n async setReply(message: any | null) {\n this.replyMessage = message;\n }\n\n @Method()\n async clearReply() {\n this.replyMessage = null;\n }\n\n /** Public: send a text message in the active (or given) conversation. */\n @Method()\n async sendText(body: string, conversationId?: string) {\n return hostSendText(this, body, conversationId);\n }\n\n /**\n * Public: send one or more media files in the active (or given) conversation.\n * Uses the same presign → upload → postMessages path as the default composer.\n */\n @Method()\n async sendMedia(files: File[] | FileList, conversationId?: string, caption?: string) {\n return hostSendMedia(this, files, conversationId, caption);\n }\n\n /** Public: paginate messages upward. */\n @Method()\n async loadMoreMessages() {\n if (this.isMessageLimitEnd || this.isMessagesLoading) return;\n this.skip += 20;\n await this.getMessages(this.skip);\n }\n\n /** Public: paginate conversation list. */\n @Method()\n async loadMoreConversations() {\n if (!this.hasMoreConversations || this.isLoadingConversationList) return;\n this.conversationCountSkip += 20;\n await this.getConversations(this.conversationCountSkip);\n }\n\n /** Public: snapshot of current SDK UI state. */\n @Method()\n async getChatState() {\n return {\n userMetaData: this.userMetaData,\n conversations: this.allConversationList,\n messages: this.allMessages,\n selectedConversationId: this.selectedConversationId,\n conversationMetaData: this.conversationMetaData,\n replyMessage: this.replyMessage,\n isLoading: this.isLoading,\n isMqttConnected: this.isMqttConnected,\n unreadConversationsCount: this.unreadConversationsCount,\n };\n }\n\n /** Public: server-authoritative media storage usage (null until ready). */\n @Method()\n async getStorageUsage(forceRefresh: boolean = false) {\n if (!forceRefresh && storageQuotaStore.state.usage) return storageQuotaStore.state.usage;\n return storageQuotaStore.loadUsage();\n }\n\n /** Public: list the user's charged media (newest first). */\n @Method()\n async getStorageMedia(opts?: { conversationId?: string; limit?: number; skip?: number }) {\n return fetchStorageMedia(opts || {});\n }\n\n /** Public: delete the messages that own `mediaIds` (for everyone) + free bytes. */\n @Method()\n async deleteStorageMedia(mediaIds: string[]) {\n return storageQuotaStore.deleteMedia(mediaIds);\n }\n\n /** Public: delete every file this user sent in a conversation (for everyone). */\n @Method()\n async deleteConversationStorageMedia(conversationId: string) {\n return storageQuotaStore.deleteAllInConversation(conversationId);\n }\n\n /** Public: open the built-in Manage Storage panel (optionally scoped). */\n @Method()\n async openStorageManagement(conversationId?: string) {\n drawerDialogService.openDrawer('storage', { conversationId: conversationId || '' }, { id: 'storage' });\n }\n\n handleMessageSearchTextChange = (e: CustomEvent<string>) => {\n this.messageSearchText = e.detail;\n };\n\n getCookie = (name: string) => {\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) return parts.pop().split(';').shift();\n };\n\n userTokenFromCookie = this.getCookie('userToken');\n isometrikUserIdFromCookie = this.getCookie('isometrikUserId');\n\n // Session identity: props from initializeChat / chat-app, cookies as session fallback\n get sessionUserToken() {\n return this.userToken || this.userTokenFromCookie;\n }\n get sessionUserId() {\n return this.isometrikUserId || this.isometrikUserIdFromCookie;\n }\n\n checkMobileView() {\n this.isMobileView = window.innerWidth <= 768;\n }\n componentWillLoad() {\n const urlParams = new URLSearchParams(window.location.search);\n const isGroupcast = urlParams.has('groupcast');\n const conversationId = urlParams.get('conversation');\n const groupcastId = urlParams.get('groupcast');\n this.initialConversationIdFromURL = (isGroupcast ? groupcastId : conversationId) ?? '';\n this.isMobileView = window.innerWidth <= 768;\n this.selectedConversationId = isGroupcast ? groupcastId : conversationId;\n if (this.isMobileView && (conversationId || groupcastId)) {\n this.showSidebar = false;\n } else {\n this.showSidebar = true;\n }\n }\n\n componentDidLoad() {\n const generation = ++this.initGeneration;\n // Yield so loading state is not written inside componentDidLoad.\n queueMicrotask(() => {\n void bootstrapWebChat(this as any, generation);\n });\n }\n\n updateLoading(progress: number, status: string) {\n this.loadingProgress = progress;\n this.loadingStatus = status;\n }\n\n disconnectedCallback() {\n this.initGeneration += 1;\n window.removeEventListener('resize', this.boundCheckMobileView);\n if (this.conversationDetailsInterval) {\n clearInterval(this.conversationDetailsInterval);\n this.conversationDetailsInterval = null;\n }\n if (this.mqttRefetchInterval) {\n clearInterval(this.mqttRefetchInterval);\n this.mqttRefetchInterval = null;\n }\n if (this.typingClearTimeout) {\n clearTimeout(this.typingClearTimeout);\n this.typingClearTimeout = null;\n }\n hostTeardownOffline(this);\n this.mqttSession.teardown();\n this.mqttClient = null;\n this.isMqttConnected = false;\n this.isSubscribedToTopic = false;\n this.isMessageListenerAttached = false;\n }\n\n // ─── MQTT connect / subscribe (realtime → mqtt-host → mqtt-bridge → lib/mqtt) ───\n async setupMqttClient() {\n return hostSetupMqttClient(this);\n }\n\n // ─── Open chat / URL (navigation.ts) ───\n handleChatSelect(param: string | { groupcastId: string }) {\n const conversationId = typeof param === 'string' ? param : param.groupcastId;\n this.selectedConversationId = conversationId;\n this.isProfileInfoOpen = false;\n this.isContactInfoOpen = false;\n this.isOpenSearchBar = false;\n this.profileOpenedFromContactInfo = false;\n this.pendingProfileMember = null;\n this.conversationMetaData = metaFromConversationList(this.allConversationList, conversationId);\n // Show cached thread instantly while network fetch runs\n void hostHydrateMessagesFromCache(this, conversationId);\n\n if (typeof param === 'string') {\n this.getAllAttachments(conversationId);\n pushConversationUrl(conversationId || null);\n if (conversationId) {\n if (this.isMobileView) this.showSidebar = false;\n } else {\n this.showSidebar = true;\n }\n } else {\n pushGroupcastUrl(param.groupcastId);\n this.activeTab = 'GroupCast';\n this.getGroupCastContacts();\n this.conversationMetaData = null;\n }\n\n this.allConversationList = zeroUnreadInList(this.allConversationList, conversationId);\n this.unreadMessageCountUpdated.emit({\n detail: { conversationId, count: 0 },\n });\n }\n\n handleBackButton() {\n this.showSidebar = true;\n this.selectedConversationId = null;\n pushConversationUrl(null);\n }\n\n sortConversationsByLatestMessage(conversations: any[]) {\n return sortConversationsByLatestMessage(conversations);\n }\n\n @Listen('remove-member-clicked')\n async handleRemoveMemberClicked(event) {\n return hostRemoveMemberClicked(this, event);\n }\n\n @Listen('profile-clicked')\n async onProfileClick(event) {\n if (event.type === 'profile-clicked') {\n this.activeTab = 'Profile';\n }\n }\n\n @Listen('members-list-scrolled-to-bottom')\n async handleMembersListScrolledToBottom(event) {\n return hostMembersListScrolledToBottom(this, event);\n }\n\n @Listen('close-right-Sidebar')\n async handleContactInfo(event: CustomEvent) {\n hostCloseRightSidebar(this, event);\n }\n\n @Listen('close-contact-info')\n async handleProfileInfo(event: CustomEvent) {\n hostCloseContactInfo(this, event);\n }\n\n @Listen('message-info-panel-change')\n handleMessageInfoPanelChange(event: CustomEvent) {\n const detail = event.detail || {};\n this.messageInfoPanel = detail.open ? detail : null;\n if (detail.open) this.showRightSideBar = false;\n }\n\n @Listen('open-right-Sidebar')\n async handleOpen(event: CustomEvent) {\n return hostOpenRightSidebar(this, event);\n }\n\n async getConversationId(selectedContactId, selectedContactName) {\n return hostGetConversationId(this, selectedContactId, selectedContactName);\n }\n\n @Listen('get-links')\n async handleGetLinks(event: CustomEvent) {\n const { conversationId } = event.detail;\n this.getAllLinks(conversationId);\n }\n\n /// for get user details start\n // ─── Data fetch (thin wrappers → data-fetch.ts → lib/chat) ───\n getUserDetails = async () => hostGetUserDetails(this);\n getConversations = async (skip: number = 0, searchTag: string | null = null, showLoader: boolean = false) =>\n hostGetConversations(this, skip, searchTag, showLoader);\n getGroupCastConversationDetails = async (groupcastId?: string) =>\n hostGetGroupCastConversationDetails(this, groupcastId);\n getUserConversationDetails = async (conversationId?: string) =>\n hostGetUserConversationDetails(this, conversationId);\n getMessages = async (skip: number, conversationId?: string) => hostGetMessages(this, skip, conversationId);\n getMessageUnreadCount = async () => hostGetMessageUnreadCount(this);\n getMessagesByQuery = async (searchText: string) => hostGetMessagesByQuery(this, searchText);\n getAllLinks = async selectedConversationIDForAttachments =>\n hostGetAllLinks(this, selectedConversationIDForAttachments);\n getGroupcastMembers = async groupcastId => hostGetGroupcastMembers(this, groupcastId);\n getAllLinksCount = async selectedConversationIDForAttachments =>\n hostGetAllLinksCount(this, selectedConversationIDForAttachments);\n getAllAttachments = async (selectedConversationIDForAttachments: string, from?: string) =>\n hostGetAllAttachments(this, selectedConversationIDForAttachments, from);\n getGroupCastContacts = async (skip: number = 0) => hostGetGroupCastContacts(this, skip);\n\n // ─── Mutations (mutations.ts → conversation-ops.ts) ───\n clearConversation = async (conversationId?: string) => hostClearConversation(this, conversationId);\n deleteConversation = async (conversationId: string) => hostDeleteConversation(this, conversationId);\n blockUser = async (conversationId: string, userName: string) => hostBlockUser(this, conversationId, userName);\n unblockUser = async (conversationId: string, userName: string) => hostUnblockUser(this, conversationId, userName);\n\n changeScrollToBottomState = (newState: boolean) => {\n this.isScrollToBottom = newState;\n };\n\n changeScrollToTopState = (newState: boolean) => {\n this.isScrollToTop = newState;\n };\n\n updateSkip = () => {\n if (this.isMessageLimitEnd || this.isMessagesLoading) return;\n this.skip += 20;\n };\n\n updateAllMessages = (newMessages: any) => {\n this.allMessages = newMessages;\n };\n\n refetchMessages = () => {\n this.isScrollToBottom = true;\n this.isMessageLimitEnd = true;\n this.messageAction = { action: '', initiator: false };\n this.skip = 0;\n this.allMessages = [];\n this.getMessages(0);\n this.getMessageAction();\n };\n\n changeMessageSendingState = (newState: boolean) => {\n this.isMessageSending = newState;\n };\n\n getMessageAction = () => {\n const lastMessage = this.isProfileInfoOpen\n ? this.selectConversationMessages?.[this.selectConversationMessages?.length - 1]\n : this.allMessages?.[this.allMessages?.length - 1];\n if (lastMessage && ['userBlockConversation', 'userUnblockConversation'].includes(lastMessage?.action)) {\n this.messageAction = {\n action: lastMessage?.action,\n initiator: lastMessage?.initiatorId == this.userMetaData?.userId,\n };\n }\n };\n\n deleteMessageFromSelf = async (payload: { conversationId: string; messageIds: string }) =>\n hostDeleteMessageSelf(this, payload);\n\n deleteMeassageFromEveryOne = async (payload: { conversationId: string; messageIds: string }) =>\n hostDeleteMessageEveryone(this, payload);\n\n @Watch('skip')\n handleSkipChange() {\n if (!this.isMessageLimitEnd) {\n this.getMessages(this.skip);\n }\n }\n\n private typingTimeout: NodeJS.Timeout | null = null;\n @Watch('isTyping')\n handleTypingChange() {\n if (this.isTyping) {\n if (this.typingTimeout) {\n clearTimeout(this.typingTimeout);\n }\n this.typingTimeout = setTimeout(() => {\n this.isTyping = false;\n this.typingUserName = '';\n }, 10000);\n }\n }\n\n handleChatOpen = () => {\n this.isChatClosed = false;\n };\n @Watch('selectedConversationId')\n @Watch('initialConversationIdFromURL')\n async handleSelectedConversationChange(newValue: string | null) {\n return hostSelectedConversationChange(this, newValue);\n }\n\n @Watch('allMessages')\n @Watch('selectConversationMessages')\n async handlemessageAction() {\n this.getMessageAction();\n }\n\n handleSearchResultClick = async (messageId: string) => {\n this.highlightedMessageId = messageId;\n const messageExists = this.allMessages.some(message => message.messageId === messageId);\n if (!messageExists) {\n while (!this.allMessages.some(message => message.messageId === messageId)) {\n await this.getMessages(this.skip);\n this.skip += 20;\n }\n }\n\n const chatBody = this.chatBodyRef as any;\n if (chatBody?.scrollToMessage) {\n chatBody.scrollToMessage(messageId);\n }\n };\n\n @Listen('groupExited')\n handleGroupExited(event: CustomEvent) {\n hostGroupExited(this, event);\n }\n\n @Listen('tagUserClick')\n handleTaguserClick(event: CustomEvent) {\n hostTagUserClick(this, event);\n }\n\n @Listen('member-message-clicked')\n handleMemberMessageClicked(event: CustomEvent) {\n return hostMemberMessageClicked(this, event);\n }\n\n async createConversation(selectedContactId: string, selectedContactName: string) {\n return hostCreateDmAndSelect(this, selectedContactId, selectedContactName);\n }\n\n @Listen('contact-action', { target: 'body' })\n handleContactAction(event: CustomEvent) {\n hostContactAction(this, event);\n }\n\n @Listen('chat-tile-list-scrolled-to-bottom')\n handleChatTileScrolledToBottom() {\n this.conversationCountSkip += 20;\n if (this.hasMoreConversations) {\n this.getConversations(this.conversationCountSkip);\n }\n }\n\n handleCloseChat = () => {\n this.selectedConversationId = null;\n this.showSidebar = true;\n clearChatUrls();\n this.activeTab = 'Chat';\n drawerDialogService.closeDialog('confirm-dialog');\n };\n\n resetNewMessageNotification() {\n this.newMessageNotification = null;\n }\n\n @Listen('conversation-updated')\n async handleConversationUpdate(event: CustomEvent) {\n return hostConversationUpdate(this, event);\n }\n\n @Watch('conversationMetaData')\n async watchPropHandler(newValue: any) {\n if (newValue?.updateBlockStatus || (newValue?.messagingDisabled && this.isBlocked === null)) {\n await this.findBlokedUser();\n }\n }\n\n async findBlokedUser() {\n return hostFindBlockedUser(this);\n }\n\n updateConversationList = (updatedList: any[]): any[] => {\n const sortedList = sortConversationsByLatestMessage(updatedList);\n this.allConversationList = sortedList;\n return sortedList;\n };\n\n @Listen('groupcastScrolledToBottom')\n handleGroupcastScroll() {\n if (this.hasMoreGroupcast && !this.isLoadingMoreGroupcast) {\n this.getGroupCastContacts(this.groupcastSkip + 20);\n }\n }\n\n @Listen('delete-groupcast')\n async handleDeleteGroupcast(e) {\n return hostDeleteGroupcast(this, e);\n }\n\n\n // ─── UI tree (delegates to shell-render.tsx) ───\n private renderBootLoader() {\n return renderBootLoader(this);\n }\n\n private renderBusyOverlay() {\n return renderBusyOverlay(this);\n }\n\n private renderLeftRail() {\n return renderLeftRail(this);\n }\n\n private renderChatPane() {\n return renderChatPane(this);\n }\n\n private renderRightRail() {\n return renderRightRail(this);\n }\n\n render() {\n // shell-render writes chatBodyRef via host; keep a read so TS sees usage\n void this.chatBodyRef;\n if (this.isLoading) return this.renderBootLoader();\n\n return (\n <Fragment>\n {this.renderBusyOverlay()}\n <div class=\"isometrik-quickchat\">\n {this.renderLeftRail()}\n {this.renderChatPane()}\n {this.renderRightRail()}\n </div>\n </Fragment>\n );\n }\n}\n"]}
|
|
@@ -79,6 +79,8 @@ export class WebChatRightSide {
|
|
|
79
79
|
this.allLinksCount = undefined;
|
|
80
80
|
this.isBlocked = null;
|
|
81
81
|
this.groupcastMembers = [];
|
|
82
|
+
this.profileOpenedFromContactInfo = false;
|
|
83
|
+
this.pendingProfileMember = null;
|
|
82
84
|
}
|
|
83
85
|
async handleRemoveAdmin(event) {
|
|
84
86
|
const { userId, username } = event.detail;
|
|
@@ -248,13 +250,19 @@ export class WebChatRightSide {
|
|
|
248
250
|
}));
|
|
249
251
|
}
|
|
250
252
|
render() {
|
|
251
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y
|
|
253
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
252
254
|
// Return the right sidebar content or null if nothing should be displayed
|
|
253
255
|
if (this.isContactInfoOpen) {
|
|
254
256
|
return (h("slot", { name: "contact-info" }, h("contact-info", { height: "var(--h-full)", width: "var(--w-full)", boxShadow: "none", backgroundColor: "var(--bg-primary)", textColor: "var(--text-primary)", contactName: ((_a = this.conversationMetaData) === null || _a === void 0 ? void 0 : _a.groupcastId) ? (_b = this.conversationMetaData) === null || _b === void 0 ? void 0 : _b.groupcastTitle : ((_c = this.conversationMetaData) === null || _c === void 0 ? void 0 : _c.conversationTitle) || ((_e = (_d = this.conversationMetaData) === null || _d === void 0 ? void 0 : _d.opponentDetails) === null || _e === void 0 ? void 0 : _e.userName), contactEmail: (_g = (_f = this.conversationMetaData) === null || _f === void 0 ? void 0 : _f.opponentDetails) === null || _g === void 0 ? void 0 : _g.userIdentifier, oppenentId: (_j = (_h = this.conversationMetaData) === null || _h === void 0 ? void 0 : _h.opponentDetails) === null || _j === void 0 ? void 0 : _j.userId, messageAction: this.messageAction, isGroup: (_k = this.conversationMetaData) === null || _k === void 0 ? void 0 : _k.isGroup, contactImage: ((_l = this.conversationMetaData) === null || _l === void 0 ? void 0 : _l.groupcastId) ? (_m = this.conversationMetaData) === null || _m === void 0 ? void 0 : _m.groupcastImageUrl : ((_o = this.conversationMetaData) === null || _o === void 0 ? void 0 : _o.isGroup) ? this.conversationMetaData.conversationImageUrl : (_q = (_p = this.conversationMetaData) === null || _p === void 0 ? void 0 : _p.opponentDetails) === null || _q === void 0 ? void 0 : _q.userProfileImageUrl, groupMembers: ((_r = this.conversationMetaData) === null || _r === void 0 ? void 0 : _r.members) || ((_t = (_s = this.conversationMetaData) === null || _s === void 0 ? void 0 : _s.metaData) === null || _t === void 0 ? void 0 : _t.members), allAttachments: this.allAttachments, closeContactInfo: () => (this.isContactInfoOpen = false), conversationId: this.selectedConversationId, userMetaData: this.userMetaData, eligibleMembers: this.eligibleMembers, hasMoreEligibleMembers: this.hasMoreEligibleMembers, openOwnProfile: this.openOwnProfile, allLinks: this.allLinks, allLinksCount: this.allLinksCount, isBlocked: this.isBlocked, conversationMetaData: this.conversationMetaData, groupcastMembers: this.groupcastMembers })));
|
|
255
257
|
}
|
|
256
258
|
if (this.isProfileInfoOpen) {
|
|
257
|
-
|
|
259
|
+
const pending = this.pendingProfileMember;
|
|
260
|
+
const meta = this.conversationMetaData;
|
|
261
|
+
const profileName = ((_u = meta === null || meta === void 0 ? void 0 : meta.opponentDetails) === null || _u === void 0 ? void 0 : _u.userName) || (pending === null || pending === void 0 ? void 0 : pending.userName) || (meta === null || meta === void 0 ? void 0 : meta.conversationTitle) || '';
|
|
262
|
+
const profileEmail = ((_v = meta === null || meta === void 0 ? void 0 : meta.opponentDetails) === null || _v === void 0 ? void 0 : _v.userIdentifier) || (pending === null || pending === void 0 ? void 0 : pending.userIdentifier) || '';
|
|
263
|
+
const profileImage = ((_w = meta === null || meta === void 0 ? void 0 : meta.opponentDetails) === null || _w === void 0 ? void 0 : _w.userProfileImageUrl) || (pending === null || pending === void 0 ? void 0 : pending.userProfileImageUrl) || '';
|
|
264
|
+
const profileOpponentId = ((_x = meta === null || meta === void 0 ? void 0 : meta.opponentDetails) === null || _x === void 0 ? void 0 : _x.userId) || (pending === null || pending === void 0 ? void 0 : pending.userId) || '';
|
|
265
|
+
return (h("slot", { name: "profile-info" }, h("profile-info", { height: "var(--h-full)", width: "var(--w-full)", boxShadow: "none", backgroundColor: "var(--bg-primary)", textColor: "var(--text-primary)", contactName: profileName, contactEmail: profileEmail, oppenentId: profileOpponentId, messageAction: this.messageAction, isGroup: false, contactImage: profileImage, groupMembers: (_y = this.conversationMetaData) === null || _y === void 0 ? void 0 : _y.members, allAttachments: this.allAttachments, allLinks: this.allLinks, allLinksCount: this.allLinksCount, closeContactInfo: () => (this.isProfileInfoOpen = false), fromContactInfo: this.profileOpenedFromContactInfo, conversationId: this.conversationIdFromContactinfo, userMetaData: this.userMetaData, eligibleMembers: this.eligibleMembers, hasMoreEligibleMembers: this.hasMoreEligibleMembers, handleChatSelect: this.handleChatSelect, isBlocked: this.isBlocked, conversationMetaData: this.conversationMetaData })));
|
|
258
266
|
}
|
|
259
267
|
if (this.isOpenSearchBar) {
|
|
260
268
|
return (h("slot", { name: "message-search" }, h("message-search", { onSearchResultClick: this.onSearchResultClick, onSearchHandler: this.onSearchHandler, searchedMessageDetails: this.searchedMessageDetails, onSearchInput: this.handleSearchInput, chatBodyRef: this.chatBodyRef, isLoadingMessage: this.isLoadingMessage })));
|
|
@@ -646,6 +654,40 @@ export class WebChatRightSide {
|
|
|
646
654
|
"attribute": "groupcast-members",
|
|
647
655
|
"reflect": false,
|
|
648
656
|
"defaultValue": "[]"
|
|
657
|
+
},
|
|
658
|
+
"profileOpenedFromContactInfo": {
|
|
659
|
+
"type": "boolean",
|
|
660
|
+
"mutable": false,
|
|
661
|
+
"complexType": {
|
|
662
|
+
"original": "boolean",
|
|
663
|
+
"resolved": "boolean",
|
|
664
|
+
"references": {}
|
|
665
|
+
},
|
|
666
|
+
"required": false,
|
|
667
|
+
"optional": false,
|
|
668
|
+
"docs": {
|
|
669
|
+
"tags": [],
|
|
670
|
+
"text": ""
|
|
671
|
+
},
|
|
672
|
+
"attribute": "profile-opened-from-contact-info",
|
|
673
|
+
"reflect": false,
|
|
674
|
+
"defaultValue": "false"
|
|
675
|
+
},
|
|
676
|
+
"pendingProfileMember": {
|
|
677
|
+
"type": "unknown",
|
|
678
|
+
"mutable": false,
|
|
679
|
+
"complexType": {
|
|
680
|
+
"original": "{\n userId?: string;\n userName?: string;\n userProfileImageUrl?: string;\n userIdentifier?: string;\n} | null",
|
|
681
|
+
"resolved": "{ userId?: string; userName?: string; userProfileImageUrl?: string; userIdentifier?: string; }",
|
|
682
|
+
"references": {}
|
|
683
|
+
},
|
|
684
|
+
"required": false,
|
|
685
|
+
"optional": false,
|
|
686
|
+
"docs": {
|
|
687
|
+
"tags": [],
|
|
688
|
+
"text": ""
|
|
689
|
+
},
|
|
690
|
+
"defaultValue": "null"
|
|
649
691
|
}
|
|
650
692
|
};
|
|
651
693
|
}
|