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
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement, F as Fragment, a as createEvent } from './index-bc463197.js';
|
|
2
2
|
import { M as MQTT_CREDS, i as isometrikFlutterAppSecrets, C as CHAT_CREDS } from './chat-creds-aafad4d0.js';
|
|
3
3
|
import { i as isometrikLogo } from './IsometrikLogo-36cb0542.js';
|
|
4
|
-
import { W as WEB_CONTENT } from './content-
|
|
4
|
+
import { W as WEB_CONTENT } from './content-fd0af283.js';
|
|
5
5
|
import { b as ChatBg, L as Login_banner } from './chat-assets-27beb552.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { M
|
|
10
|
-
import { c as createStore, g as groupMembersStore, w as withConversationPushFlag } from './
|
|
11
|
-
import { d as getGroupcastMessage, r as removeGroupcastMember, e as deleteGroupCast } from './groupcast-
|
|
12
|
-
import { t as takeMediaFiles, M as MAX_MEDIA_PER_MESSAGE,
|
|
13
|
-
import { f as findConversationForPush, s as showLocalMessageNotification, m as messagePushContextFrom, w as withHostMessagePushFields } from './local-notification-
|
|
6
|
+
import { d as applyThemeObjectToElement, n as normalizeThemeObject, i as initializeChatSdk, f as fetchUserDetails, a as fetchGroupcastDetails, b as fetchGroupcastMembersPage, c as fetchGroupcastContactsPage, e as resolveRegionMode } from './groupcast-4f15b050.js';
|
|
7
|
+
import { drawerDialogService } from './drawer-a457d820.js';
|
|
8
|
+
import { b as getDeviceID, c as getGroupcastUrlQuery } from './helpers-1632a4c7.js';
|
|
9
|
+
import { M } from './index.m-8c70037f.js';
|
|
10
|
+
import { c as createStore, s as storageQuotaStore, g as groupMembersStore, w as withConversationPushFlag } from './storage-quota-6329fabe.js';
|
|
11
|
+
import { d as getGroupcastMessage, r as removeGroupcastMember, e as deleteGroupCast } from './groupcast-c6da3918.js';
|
|
12
|
+
import { t as takeMediaFiles, M as MAX_MEDIA_PER_MESSAGE, k as attachmentBodyForApi, p as prepareMediaAttachments, u as uploadAndPostMediaMessage, l as isAttachmentBodyPlaceholder, n as isSameNameUploadCancelledError, o as normalizeConversationSearchTag, f as fetchConversationsPage, m as mergeUniqueConversations, q as filterConversationsBySearch, a as fetchConversationDetails, r as mediaLimitToastMessage, v as buildLocalMediaAttachments, w as attachmentBodyForOutgoing, x as resolveCustomTypeForUpload, d as buildReplyMetaData, s as sortConversationsByLatestMessage, g as fetchStorageMedia } from './send-media-04f7ca0a.js';
|
|
13
|
+
import { f as findConversationForPush, s as showLocalMessageNotification, m as messagePushContextFrom, w as withHostMessagePushFields } from './local-notification-f9ae9062.js';
|
|
14
14
|
import { g as getOfflineClient, m as mergeMessagesById, i as isBrowserOnline } from './client-de7fbead.js';
|
|
15
|
-
import {
|
|
15
|
+
import { f as fetchMessagesPage, s as searchMessages, b as fetchLinkMessages, c as fetchMediaCount, d as fetchMediaAttachments, m as markConversationRead } from './messages-057dbecb.js';
|
|
16
|
+
import { s as showToast } from './toast-f681e916.js';
|
|
17
|
+
import { r as removeConversationMember, g as getConversationEligibleMembers } from './group-members-d603f29f.js';
|
|
16
18
|
import { h as hasNamedSlot } from './index-142896ce.js';
|
|
17
19
|
import './destroy-chat-d0ee28d6.js';
|
|
18
20
|
|
|
@@ -142,7 +144,7 @@ const ThemeProvider = class {
|
|
|
142
144
|
return normalized;
|
|
143
145
|
}
|
|
144
146
|
render() {
|
|
145
|
-
return (h("div", { key: '
|
|
147
|
+
return (h("div", { key: 'ddc877fc0b261d97342892a276cc1e6cf7619f96', class: `theme-provider-container theme-${this.mode}` }, h("slot", { key: '30b675dd020350dbdbfdce76bcf3f82b12855527' })));
|
|
146
148
|
}
|
|
147
149
|
get hostElement() { return getElement(this); }
|
|
148
150
|
static get watchers() { return {
|
|
@@ -518,12 +520,16 @@ async function dispatchMqttMessage(parsedMessage, ctx) {
|
|
|
518
520
|
ctx.allMessages = ctx.allMessages.map(message => {
|
|
519
521
|
var _a, _b;
|
|
520
522
|
if (message.messageId == parsedMessage.messageId) {
|
|
521
|
-
|
|
523
|
+
const mergedAttachments = Array.isArray(parsedMessage === null || parsedMessage === void 0 ? void 0 : parsedMessage.attachments) && parsedMessage.attachments.length
|
|
524
|
+
? parsedMessage.attachments
|
|
525
|
+
: message.attachments;
|
|
526
|
+
return Object.assign(Object.assign({}, parsedMessage), { attachments: mergedAttachments, customType: (parsedMessage === null || parsedMessage === void 0 ? void 0 : parsedMessage.customType) || message.customType, mentionedUsers: ((_a = parsedMessage === null || parsedMessage === void 0 ? void 0 : parsedMessage.mentionedUsers) === null || _a === void 0 ? void 0 : _a.length)
|
|
522
527
|
? (_b = parsedMessage === null || parsedMessage === void 0 ? void 0 : parsedMessage.mentionedUsers) === null || _b === void 0 ? void 0 : _b.map(pmUser => {
|
|
523
|
-
|
|
528
|
+
var _a;
|
|
529
|
+
const matchingUser = (_a = message.mentionedUsers) === null || _a === void 0 ? void 0 : _a.find((mUser) => mUser.userId === pmUser.userId);
|
|
524
530
|
return Object.assign(Object.assign({}, pmUser), { userName: matchingUser ? matchingUser === null || matchingUser === void 0 ? void 0 : matchingUser.userName : undefined });
|
|
525
531
|
})
|
|
526
|
-
: [] });
|
|
532
|
+
: message.mentionedUsers || [] });
|
|
527
533
|
}
|
|
528
534
|
return message;
|
|
529
535
|
});
|
|
@@ -1155,23 +1161,37 @@ async function sendOutboxItem(host, item) {
|
|
|
1155
1161
|
userMetaData: host.userMetaData,
|
|
1156
1162
|
conversation: findConversationForPush(item.conversationId, host.allConversationList, host.conversationMetaData),
|
|
1157
1163
|
});
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
(
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1164
|
+
try {
|
|
1165
|
+
const apiId = await uploadAndPostMediaMessage({
|
|
1166
|
+
conversationId: item.conversationId,
|
|
1167
|
+
deviceId,
|
|
1168
|
+
attachments,
|
|
1169
|
+
caption: ((_a = item.caption) === null || _a === void 0 ? void 0 : _a.trim()) ||
|
|
1170
|
+
(isAttachmentBodyPlaceholder(item.body) ? undefined : item.body),
|
|
1171
|
+
replyMessage: item.parentMessageId
|
|
1172
|
+
? { messageId: item.parentMessageId }
|
|
1173
|
+
: null,
|
|
1174
|
+
pushContext,
|
|
1175
|
+
});
|
|
1176
|
+
if (apiId && item.conversationId === host.selectedConversationId) {
|
|
1177
|
+
host.allMessages = (host.allMessages || []).map((m) => m.messageId === item.localId
|
|
1178
|
+
? Object.assign(Object.assign({}, m), { messageId: apiId, deliveredToAll: false, outbox: false, deliveryStatus: 'sent' }) : m);
|
|
1179
|
+
await hostPersistMessages(host, item.conversationId);
|
|
1180
|
+
}
|
|
1181
|
+
return apiId || null;
|
|
1182
|
+
}
|
|
1183
|
+
catch (e) {
|
|
1184
|
+
if (isSameNameUploadCancelledError(e)) {
|
|
1185
|
+
await getOfflineClient().removeOutbox(item.localId);
|
|
1186
|
+
if (item.conversationId === host.selectedConversationId) {
|
|
1187
|
+
host.allMessages = (host.allMessages || []).filter((m) => m.messageId !== item.localId);
|
|
1188
|
+
await hostPersistMessages(host, item.conversationId);
|
|
1189
|
+
}
|
|
1190
|
+
// Truthy so flushOutbox drops the item without treating it as a retryable failure.
|
|
1191
|
+
return 'cancelled';
|
|
1192
|
+
}
|
|
1193
|
+
throw e;
|
|
1173
1194
|
}
|
|
1174
|
-
return apiId || null;
|
|
1175
1195
|
}
|
|
1176
1196
|
const payload = {
|
|
1177
1197
|
showInConversation: true,
|
|
@@ -1245,6 +1265,7 @@ async function bootstrapWebChat(host, generation) {
|
|
|
1245
1265
|
}
|
|
1246
1266
|
try {
|
|
1247
1267
|
host.updateLoading(25, 'Loading chat engine…');
|
|
1268
|
+
// initializeChatSdk also configures the media storage quota calls.
|
|
1248
1269
|
initializeChatSdk({
|
|
1249
1270
|
baseUrl: host.baseUrl,
|
|
1250
1271
|
licenseKey: host.licenseKey,
|
|
@@ -1398,8 +1419,12 @@ async function hostGetConversations(host, skip = 0, searchTag = null, showLoader
|
|
|
1398
1419
|
if (showLoader)
|
|
1399
1420
|
host.isLoadingConversationList = true;
|
|
1400
1421
|
try {
|
|
1401
|
-
const
|
|
1402
|
-
|
|
1422
|
+
const normalizedSearch = normalizeConversationSearchTag(searchTag);
|
|
1423
|
+
const conversations = await fetchConversationsPage({ skip, searchTag: normalizedSearch !== null && normalizedSearch !== void 0 ? normalizedSearch : null });
|
|
1424
|
+
const merged = mergeUniqueConversations(host.allConversationList, conversations);
|
|
1425
|
+
host.allConversationList = normalizedSearch
|
|
1426
|
+
? filterConversationsBySearch(merged, normalizedSearch)
|
|
1427
|
+
: merged;
|
|
1403
1428
|
void hostPersistConversations(host);
|
|
1404
1429
|
}
|
|
1405
1430
|
catch (error) {
|
|
@@ -1549,7 +1574,8 @@ async function hostGetAllAttachments(host, conversationId, from) {
|
|
|
1549
1574
|
try {
|
|
1550
1575
|
const filteredMessages = await fetchMediaAttachments(conversationId);
|
|
1551
1576
|
// merge in-chat media so a just-sent image shows before API catch-up
|
|
1552
|
-
const
|
|
1577
|
+
const liveSource = from === 'Profile-info' ? host.selectConversationMessages : host.allMessages;
|
|
1578
|
+
const live = (liveSource || []).filter((m) => Array.isArray(m === null || m === void 0 ? void 0 : m.attachments) &&
|
|
1553
1579
|
m.attachments.some((a) => (a === null || a === void 0 ? void 0 : a.mediaUrl) || (a === null || a === void 0 ? void 0 : a.thumbnailUrl)));
|
|
1554
1580
|
const byId = new Map();
|
|
1555
1581
|
[...filteredMessages, ...live].forEach((m) => {
|
|
@@ -1767,6 +1793,11 @@ async function hostSendMedia(host, files, conversationId, caption) {
|
|
|
1767
1793
|
return apiId || localId;
|
|
1768
1794
|
}
|
|
1769
1795
|
catch (error) {
|
|
1796
|
+
if (isSameNameUploadCancelledError(error)) {
|
|
1797
|
+
host.allMessages = (host.allMessages || []).filter(m => m.messageId !== localId);
|
|
1798
|
+
bumpConversationPreview();
|
|
1799
|
+
return null;
|
|
1800
|
+
}
|
|
1770
1801
|
console.error('web-chat sendMedia failed', error);
|
|
1771
1802
|
await hostEnqueueFailedMedia(host, {
|
|
1772
1803
|
localId,
|
|
@@ -2166,11 +2197,30 @@ async function apiBlockUser(opponentId) {
|
|
|
2166
2197
|
async function apiUnblockUser(opponentId) {
|
|
2167
2198
|
await M.getInstance().user.postUserUnblock({ opponentId });
|
|
2168
2199
|
}
|
|
2200
|
+
/** Optimistic row update after block/unblock (matches MQTT lastMessageDetails shape). */
|
|
2201
|
+
function patchListAfterBlockToggle(list, opts) {
|
|
2202
|
+
const now = Date.now();
|
|
2203
|
+
const action = opts.blocked ? 'userBlockConversation' : 'userUnblockConversation';
|
|
2204
|
+
const body = opts.blocked
|
|
2205
|
+
? `🚫 You blocked ${opts.opponentName}`
|
|
2206
|
+
: `You unblocked ${opts.opponentName}`;
|
|
2207
|
+
return sortConversationsByLatestMessage((list || []).map(conversation => {
|
|
2208
|
+
if (conversation.conversationId !== opts.conversationId)
|
|
2209
|
+
return conversation;
|
|
2210
|
+
return Object.assign(Object.assign({}, conversation), { lastMessageDetails: Object.assign(Object.assign({}, conversation.lastMessageDetails), { body, updatedAt: now, action, initiatorName: opts.userName, initiatorId: opts.userId, opponentName: opts.opponentName }) });
|
|
2211
|
+
}));
|
|
2212
|
+
}
|
|
2169
2213
|
async function apiDeleteMessageSelf(payload) {
|
|
2170
|
-
await M.getInstance().message.deleteMessageSelf(payload);
|
|
2214
|
+
const res = await M.getInstance().message.deleteMessageSelf(payload);
|
|
2215
|
+
// Media storage quota: when quota is on the delete frees bytes — keep the
|
|
2216
|
+
// cached usage in sync (no-op when quota is off / no figures returned).
|
|
2217
|
+
storageQuotaStore.syncUsageFromResponse(res);
|
|
2218
|
+
return res;
|
|
2171
2219
|
}
|
|
2172
2220
|
async function apiDeleteMessageEveryone(payload) {
|
|
2173
|
-
await M.getInstance().message.deleteMessagesEveryone(payload);
|
|
2221
|
+
const res = await M.getInstance().message.deleteMessagesEveryone(payload);
|
|
2222
|
+
storageQuotaStore.syncUsageFromResponse(res);
|
|
2223
|
+
return res;
|
|
2174
2224
|
}
|
|
2175
2225
|
function removeMessageById(messages, messageId) {
|
|
2176
2226
|
return (messages || []).filter((m) => m.messageId !== messageId);
|
|
@@ -2263,14 +2313,20 @@ async function hostMembersListScrolledToBottom(host, event) {
|
|
|
2263
2313
|
event.target.isLoading = false;
|
|
2264
2314
|
}
|
|
2265
2315
|
}
|
|
2316
|
+
/** Contact info, profile info, message search — closes the right rail without a DOM event. */
|
|
2317
|
+
function hostDismissRightSidebar(host) {
|
|
2318
|
+
host.showRightSideBar = false;
|
|
2319
|
+
host.isOpenSearchBar = false;
|
|
2320
|
+
host.isContactInfoOpen = false;
|
|
2321
|
+
host.isProfileInfoOpen = false;
|
|
2322
|
+
host.profileOpenedFromContactInfo = false;
|
|
2323
|
+
host.pendingProfileMember = null;
|
|
2324
|
+
host.searchedMessageDetails = [];
|
|
2325
|
+
}
|
|
2266
2326
|
function hostCloseRightSidebar(host, event) {
|
|
2267
2327
|
var _a;
|
|
2268
2328
|
if (((_a = event.detail) === null || _a === void 0 ? void 0 : _a.type) === 'close-right-Sidebar') {
|
|
2269
|
-
host
|
|
2270
|
-
host.isOpenSearchBar = false;
|
|
2271
|
-
host.isContactInfoOpen = false;
|
|
2272
|
-
host.isProfileInfoOpen = false;
|
|
2273
|
-
host.searchedMessageDetails = [];
|
|
2329
|
+
hostDismissRightSidebar(host);
|
|
2274
2330
|
}
|
|
2275
2331
|
}
|
|
2276
2332
|
function hostCloseContactInfo(host, event) {
|
|
@@ -2279,22 +2335,30 @@ function hostCloseContactInfo(host, event) {
|
|
|
2279
2335
|
host.showRightSideBar = true;
|
|
2280
2336
|
host.isContactInfoOpen = true;
|
|
2281
2337
|
host.isProfileInfoOpen = false;
|
|
2338
|
+
host.profileOpenedFromContactInfo = false;
|
|
2339
|
+
host.pendingProfileMember = null;
|
|
2282
2340
|
host.searchedMessageDetails = [];
|
|
2283
2341
|
}
|
|
2284
2342
|
}
|
|
2285
|
-
|
|
2343
|
+
/** Clears shell Message Info state and syncs web-chat-body (read receipts dock). */
|
|
2344
|
+
function hostCloseMessageInfoPanel(host) {
|
|
2286
2345
|
var _a, _b;
|
|
2287
|
-
|
|
2346
|
+
host.messageInfoPanel = null;
|
|
2347
|
+
(_b = (_a = host.chatBodyRef) === null || _a === void 0 ? void 0 : _a.closeMessageInfo) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
2348
|
+
}
|
|
2349
|
+
async function hostOpenRightSidebar(host, event) {
|
|
2350
|
+
const { type, renderComponent, userId, userName, fromContactInfo, userProfileImageUrl, userIdentifier, } = event.detail || {};
|
|
2288
2351
|
const { isGroupcast, groupcastId } = await getGroupcastUrlQuery();
|
|
2289
2352
|
if (type !== 'open-right-Sidebar')
|
|
2290
2353
|
return;
|
|
2291
2354
|
host.showRightSideBar = true;
|
|
2292
|
-
host
|
|
2293
|
-
(_b = (_a = host.chatBodyRef) === null || _a === void 0 ? void 0 : _a.closeMessageInfo) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
2355
|
+
hostCloseMessageInfoPanel(host);
|
|
2294
2356
|
if (renderComponent === 'message-search-container') {
|
|
2295
2357
|
host.isOpenSearchBar = true;
|
|
2296
2358
|
host.isContactInfoOpen = false;
|
|
2297
2359
|
host.isProfileInfoOpen = false;
|
|
2360
|
+
host.profileOpenedFromContactInfo = false;
|
|
2361
|
+
host.pendingProfileMember = null;
|
|
2298
2362
|
}
|
|
2299
2363
|
else if (renderComponent === 'contact-info' || renderComponent === 'contact-info-ui') {
|
|
2300
2364
|
host.isContactInfoOpen = true;
|
|
@@ -2306,12 +2370,28 @@ async function hostOpenRightSidebar(host, event) {
|
|
|
2306
2370
|
if (isGroupcast)
|
|
2307
2371
|
host.getGroupcastMembers(groupcastId);
|
|
2308
2372
|
host.isOpenSearchBar = false;
|
|
2373
|
+
host.isProfileInfoOpen = false;
|
|
2374
|
+
host.profileOpenedFromContactInfo = false;
|
|
2375
|
+
host.pendingProfileMember = null;
|
|
2309
2376
|
}
|
|
2310
2377
|
else if (renderComponent === 'profile-info' || renderComponent === 'profile-info-ui') {
|
|
2378
|
+
host.profileOpenedFromContactInfo = !!fromContactInfo;
|
|
2379
|
+
host.pendingProfileMember =
|
|
2380
|
+
userId && userName
|
|
2381
|
+
? {
|
|
2382
|
+
userId,
|
|
2383
|
+
userName,
|
|
2384
|
+
userProfileImageUrl: userProfileImageUrl || '',
|
|
2385
|
+
userIdentifier: userIdentifier || '',
|
|
2386
|
+
}
|
|
2387
|
+
: null;
|
|
2311
2388
|
host.isContactInfoOpen = false;
|
|
2312
2389
|
host.isProfileInfoOpen = true;
|
|
2313
2390
|
host.isOpenSearchBar = false;
|
|
2314
|
-
host.
|
|
2391
|
+
host.conversationIdFromContactinfo = '';
|
|
2392
|
+
host.selectConverSationAttachments = [];
|
|
2393
|
+
if (userId && userName)
|
|
2394
|
+
host.getConversationId(userId, userName);
|
|
2315
2395
|
}
|
|
2316
2396
|
}
|
|
2317
2397
|
async function hostGetConversationId(host, selectedContactId, selectedContactName) {
|
|
@@ -2328,6 +2408,8 @@ async function hostGetConversationId(host, selectedContactId, selectedContactNam
|
|
|
2328
2408
|
if (res.conversationId) {
|
|
2329
2409
|
host.conversationIdFromContactinfo = res.conversationId;
|
|
2330
2410
|
host.getUserConversationDetails(res.conversationId);
|
|
2411
|
+
host.getAllLinksCount(res.conversationId);
|
|
2412
|
+
host.getAllLinks(res.conversationId);
|
|
2331
2413
|
host.getAllAttachments(res.conversationId, 'Profile-info');
|
|
2332
2414
|
host.getMessages(0, res.conversationId);
|
|
2333
2415
|
}
|
|
@@ -2518,6 +2600,15 @@ async function hostCreateDmAndSelect(host, selectedContactId, selectedContactNam
|
|
|
2518
2600
|
console.error('Error creating conversation:', error);
|
|
2519
2601
|
}
|
|
2520
2602
|
}
|
|
2603
|
+
async function hostMemberMessageClicked(host, event) {
|
|
2604
|
+
const { userId, userName } = event.detail || {};
|
|
2605
|
+
if (!userId || !userName)
|
|
2606
|
+
return;
|
|
2607
|
+
await hostCreateDmAndSelect(host, userId, userName);
|
|
2608
|
+
hostDismissRightSidebar(host);
|
|
2609
|
+
host.profileOpenedFromContactInfo = false;
|
|
2610
|
+
host.pendingProfileMember = null;
|
|
2611
|
+
}
|
|
2521
2612
|
async function hostFindBlockedUser(host) {
|
|
2522
2613
|
var _a, _b, _c, _d;
|
|
2523
2614
|
host.isBlocked = 'loading';
|
|
@@ -2570,29 +2661,59 @@ async function hostDeleteConversation(host, conversationId) {
|
|
|
2570
2661
|
drawerDialogService.closeDialog('confirm-dialog');
|
|
2571
2662
|
}
|
|
2572
2663
|
}
|
|
2573
|
-
async function hostBlockUser(host,
|
|
2664
|
+
async function hostBlockUser(host, opponentId, userName) {
|
|
2665
|
+
var _a, _b;
|
|
2574
2666
|
try {
|
|
2575
|
-
await apiBlockUser(
|
|
2576
|
-
host.isBlocked =
|
|
2667
|
+
await apiBlockUser(opponentId);
|
|
2668
|
+
host.isBlocked = true;
|
|
2669
|
+
const conv = (host.allConversationList || []).find((c) => { var _a; return ((_a = c.opponentDetails) === null || _a === void 0 ? void 0 : _a.userId) === opponentId; });
|
|
2670
|
+
if (conv) {
|
|
2671
|
+
const me = host.userMetaData;
|
|
2672
|
+
host.allConversationList = patchListAfterBlockToggle(host.allConversationList, {
|
|
2673
|
+
conversationId: conv.conversationId,
|
|
2674
|
+
userId: me === null || me === void 0 ? void 0 : me.userId,
|
|
2675
|
+
userName: (me === null || me === void 0 ? void 0 : me.userName) || 'You',
|
|
2676
|
+
opponentName: userName,
|
|
2677
|
+
blocked: true,
|
|
2678
|
+
});
|
|
2679
|
+
}
|
|
2680
|
+
if (((_b = (_a = host.conversationMetaData) === null || _a === void 0 ? void 0 : _a.opponentDetails) === null || _b === void 0 ? void 0 : _b.userId) === opponentId) {
|
|
2681
|
+
host.conversationMetaData = Object.assign(Object.assign({}, host.conversationMetaData), { messagingDisabled: true, updateBlockStatus: Date.now() });
|
|
2682
|
+
}
|
|
2577
2683
|
showToast({ message: `${userName} blocked`, type: 'info', duration: 3000, position: 'bottom-left' });
|
|
2578
2684
|
}
|
|
2579
2685
|
catch (error) {
|
|
2580
2686
|
host.isConversationLoading = false;
|
|
2581
|
-
console.error(`Failed to block user with ID ${
|
|
2687
|
+
console.error(`Failed to block user with ID ${opponentId}:`, error);
|
|
2582
2688
|
}
|
|
2583
2689
|
finally {
|
|
2584
2690
|
drawerDialogService.closeDialog('confirm-dialog');
|
|
2585
2691
|
}
|
|
2586
2692
|
}
|
|
2587
|
-
async function hostUnblockUser(host,
|
|
2693
|
+
async function hostUnblockUser(host, opponentId, userName) {
|
|
2694
|
+
var _a, _b;
|
|
2588
2695
|
try {
|
|
2589
|
-
await apiUnblockUser(
|
|
2696
|
+
await apiUnblockUser(opponentId);
|
|
2590
2697
|
host.isBlocked = null;
|
|
2698
|
+
const conv = (host.allConversationList || []).find((c) => { var _a; return ((_a = c.opponentDetails) === null || _a === void 0 ? void 0 : _a.userId) === opponentId; });
|
|
2699
|
+
if (conv) {
|
|
2700
|
+
const me = host.userMetaData;
|
|
2701
|
+
host.allConversationList = patchListAfterBlockToggle(host.allConversationList, {
|
|
2702
|
+
conversationId: conv.conversationId,
|
|
2703
|
+
userId: me === null || me === void 0 ? void 0 : me.userId,
|
|
2704
|
+
userName: (me === null || me === void 0 ? void 0 : me.userName) || 'You',
|
|
2705
|
+
opponentName: userName,
|
|
2706
|
+
blocked: false,
|
|
2707
|
+
});
|
|
2708
|
+
}
|
|
2709
|
+
if (((_b = (_a = host.conversationMetaData) === null || _a === void 0 ? void 0 : _a.opponentDetails) === null || _b === void 0 ? void 0 : _b.userId) === opponentId) {
|
|
2710
|
+
host.conversationMetaData = Object.assign(Object.assign({}, host.conversationMetaData), { messagingDisabled: false, updateBlockStatus: Date.now() });
|
|
2711
|
+
}
|
|
2591
2712
|
showToast({ message: `${userName} unblocked`, type: 'success', duration: 3000, position: 'bottom-left' });
|
|
2592
2713
|
}
|
|
2593
2714
|
catch (error) {
|
|
2594
2715
|
host.isConversationLoading = false;
|
|
2595
|
-
console.error(`Failed to unblock user with ID ${
|
|
2716
|
+
console.error(`Failed to unblock user with ID ${opponentId}:`, error);
|
|
2596
2717
|
}
|
|
2597
2718
|
finally {
|
|
2598
2719
|
drawerDialogService.closeDialog('confirm-dialog');
|
|
@@ -2649,6 +2770,9 @@ const selectChatPlaceholderSvg = `
|
|
|
2649
2770
|
`;
|
|
2650
2771
|
|
|
2651
2772
|
/** Presentational shell tree for <web-chat> — keeps WebChat.tsx thin. */
|
|
2773
|
+
function shouldShowRightPanelScrim(host) {
|
|
2774
|
+
return host.showRightPanel !== false && host.showRightSideBar && !!host.selectedConversationId;
|
|
2775
|
+
}
|
|
2652
2776
|
/** show / custom-slot / default matrix for any named region. */
|
|
2653
2777
|
function renderRegion(host, slotName, show, renderDefault) {
|
|
2654
2778
|
const mode = resolveRegionMode({
|
|
@@ -2772,21 +2896,20 @@ function renderDefaultMessages(host) {
|
|
|
2772
2896
|
return (h("web-chat-body", { ref: el => (host.chatBodyRef = el), allAttachments: host.allAttachments, isMessagesLoading: host.isMessagesLoading, updateSkip: host.updateSkip, isMessageLimitEnd: host.isMessageLimitEnd, allMessages: host.allMessages, userMetaData: host.userMetaData, skip: host.skip, isScrollToBottom: host.isScrollToBottom, changeScrollToBottomState: host.changeScrollToBottomState, isMessageSending: host.isMessageSending, isScrollToTop: host.isScrollToTop, changeScrollToTopState: host.changeScrollToTopState, deleteForSelf: host.deleteMessageFromSelf, deleteForAll: host.deleteMeassageFromEveryOne, isChatClosed: host.isChatClosed, isChatMinimized: host.isChatMinimized, updateAllMessages: host.updateAllMessages, selectedConversationId: host.selectedConversationId, highlightedMessageId: host.highlightedMessageId, onMediaClick: () => host.getAllAttachments(host.selectedConversationId), onReplyMessageDetails: host.handleReplyMessage, conversationList: host.allConversationList, newMessageNotification: host.newMessageNotification, onNewMessageCountReset: () => host.resetNewMessageNotification(), conversationDetails: host.conversationMetaData, loadingMediaGallery: host.loadingMediaGallery, customParts: (_a = host.customParts) !== null && _a !== void 0 ? _a : {} }, hasNamedSlot(host.el, 'message-info') ? h("slot", { name: "message-info", slot: "message-info" }) : null));
|
|
2773
2897
|
}
|
|
2774
2898
|
function renderActiveChat(host) {
|
|
2775
|
-
const info = host.
|
|
2776
|
-
|
|
2899
|
+
const info = host.messageInfoPanel;
|
|
2900
|
+
const infoOpen = !!(info === null || info === void 0 ? void 0 : info.open);
|
|
2901
|
+
return (h("div", { class: { 'chat-pane-row': true, 'info-open': infoOpen } },
|
|
2777
2902
|
h("div", { class: "chat-main-stack" },
|
|
2903
|
+
infoOpen ? (h("div", { class: "panel-dismiss-scrim message-info-scrim", role: "button", "aria-label": "Close message info", onClick: () => hostCloseMessageInfoPanel(host) })) : null,
|
|
2778
2904
|
renderRegion(host, 'header', host.showHeader, () => renderDefaultHeader(host)),
|
|
2779
2905
|
renderRegion(host, 'messages', true, () => renderDefaultMessages(host)),
|
|
2780
2906
|
renderComposerOrBanner(host)),
|
|
2781
|
-
|
|
2782
|
-
h("spinner-loader", { height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "var(--brand, #2563eb)", spinnerSecondaryColor: "var(--border, #e5e7eb)", spinnerBorderWidth: "2px" }))) : (h("message-info", { selectedMessage: info.selectedMessage, messageDeliveryTime: info.messageDeliveryTime, messageReadTime: info.messageReadTime, readUserList: info.readUserList || [], deliveryUserList: info.deliveryUserList || [], isGroup: info.isGroup, pendingReadCount: info.pendingReadCount, pendingDeliveryCount: info.pendingDeliveryCount, allAttachments: host.allAttachments, onMediaClick: () => host.getAllAttachments(host.selectedConversationId), closePopup: () =>
|
|
2783
|
-
var _a, _b;
|
|
2784
|
-
host.messageInfoView = null;
|
|
2785
|
-
(_b = (_a = host.chatBodyRef) === null || _a === void 0 ? void 0 : _a.closeMessageInfo) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
2786
|
-
} })))) : null));
|
|
2907
|
+
infoOpen ? (h("div", { class: "message-info-dock", onClick: (e) => e.stopPropagation() }, info.isLoading ? (h("div", { class: "message-info-loading" },
|
|
2908
|
+
h("spinner-loader", { height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "var(--brand, #2563eb)", spinnerSecondaryColor: "var(--border, #e5e7eb)", spinnerBorderWidth: "2px" }))) : (h("message-info", { selectedMessage: info.selectedMessage, messageDeliveryTime: info.messageDeliveryTime, messageReadTime: info.messageReadTime, readUserList: info.readUserList || [], deliveryUserList: info.deliveryUserList || [], isGroup: info.isGroup, pendingReadCount: info.pendingReadCount, pendingDeliveryCount: info.pendingDeliveryCount, allAttachments: host.allAttachments, onMediaClick: () => host.getAllAttachments(host.selectedConversationId), closePopup: () => hostCloseMessageInfoPanel(host) })))) : null));
|
|
2787
2909
|
}
|
|
2788
2910
|
function renderChatPane(host) {
|
|
2789
2911
|
const wallpaper = host.showChatWallpaper !== false && host.selectedConversationId;
|
|
2912
|
+
const rightScrim = shouldShowRightPanelScrim(host);
|
|
2790
2913
|
return (h("div", { class: {
|
|
2791
2914
|
'chat-body-container': true,
|
|
2792
2915
|
'show': host.isMobileView && !!host.selectedConversationId && !host.showSidebar,
|
|
@@ -2799,10 +2922,12 @@ function renderChatPane(host) {
|
|
|
2799
2922
|
}
|
|
2800
2923
|
: host.selectedConversationId
|
|
2801
2924
|
? { background: 'var(--bg-tertiary, #f4f4f5)' }
|
|
2802
|
-
: undefined },
|
|
2925
|
+
: undefined },
|
|
2926
|
+
rightScrim ? (h("div", { class: "panel-dismiss-scrim right-panel-scrim", role: "button", "aria-label": "Close panel", onClick: () => hostDismissRightSidebar(host) })) : null,
|
|
2927
|
+
host.selectedConversationId ? (renderActiveChat(host)) : (renderRegion(host, 'empty', host.showEmptyState, () => renderDefaultEmptyChat()))));
|
|
2803
2928
|
}
|
|
2804
2929
|
function renderDefaultRightPanel(host) {
|
|
2805
|
-
return (h("web-chat-right-sidebar", { conversationMetaData: host.isProfileInfoOpen ? host.selctConversationMetaData : host.conversationMetaData, selectedConversationId: host.selectedConversationId, hasMoreEligibleMembers: host.hasMoreEligibleMembers, eligibleMembers: host.eligibleMembers, allAttachments: host.isProfileInfoOpen ? host.selectConverSationAttachments : host.allAttachments, userMetaData: host.userMetaData, messageAction: host.messageAction, searchedMessageDetails: host.searchedMessageDetails, onSearchHandler: (text) => host.getMessagesByQuery(text), onSearchResultClick: host.handleSearchResultClick, isContactInfoOpen: host.isContactInfoOpen, isProfileInfoOpen: host.isProfileInfoOpen, isOpenSearchBar: host.isOpenSearchBar, chatBodyRef: host.chatBodyRef, isLoadingMessage: host.isLoadingMessage, conversationIdFromContactinfo: host.conversationIdFromContactinfo, openOwnProfile: () => (host.activeTab = 'Profile'), handleChatSelect: conversationId => host.handleChatSelect(conversationId), allLinks: host.allLinks, allLinksCount: host.allLinksCount, isBlocked: host.isBlocked, groupcastMembers: host.groupcastMembers },
|
|
2930
|
+
return (h("web-chat-right-sidebar", { conversationMetaData: host.isProfileInfoOpen ? host.selctConversationMetaData : host.conversationMetaData, selectedConversationId: host.selectedConversationId, hasMoreEligibleMembers: host.hasMoreEligibleMembers, eligibleMembers: host.eligibleMembers, allAttachments: host.isProfileInfoOpen ? host.selectConverSationAttachments : host.allAttachments, userMetaData: host.userMetaData, messageAction: host.messageAction, searchedMessageDetails: host.searchedMessageDetails, onSearchHandler: (text) => host.getMessagesByQuery(text), onSearchResultClick: host.handleSearchResultClick, isContactInfoOpen: host.isContactInfoOpen, isProfileInfoOpen: host.isProfileInfoOpen, isOpenSearchBar: host.isOpenSearchBar, chatBodyRef: host.chatBodyRef, isLoadingMessage: host.isLoadingMessage, conversationIdFromContactinfo: host.conversationIdFromContactinfo, profileOpenedFromContactInfo: host.profileOpenedFromContactInfo, pendingProfileMember: host.pendingProfileMember, openOwnProfile: () => (host.activeTab = 'Profile'), handleChatSelect: conversationId => host.handleChatSelect(conversationId), allLinks: host.allLinks, allLinksCount: host.allLinksCount, isBlocked: host.isBlocked, groupcastMembers: host.groupcastMembers },
|
|
2806
2931
|
hasNamedSlot(host.el, 'contact-info') ? h("slot", { name: "contact-info", slot: "contact-info" }) : null,
|
|
2807
2932
|
hasNamedSlot(host.el, 'profile-info') ? h("slot", { name: "profile-info", slot: "profile-info" }) : null,
|
|
2808
2933
|
hasNamedSlot(host.el, 'message-search') ? h("slot", { name: "message-search", slot: "message-search" }) : null));
|
|
@@ -2812,10 +2937,10 @@ function renderRightRail(host) {
|
|
|
2812
2937
|
return null;
|
|
2813
2938
|
if (!host.showRightSideBar)
|
|
2814
2939
|
return null;
|
|
2815
|
-
return (h("div", { class: "chat-sidebar-right" }, renderRegion(host, 'right-panel', true, () => renderDefaultRightPanel(host))));
|
|
2940
|
+
return (h("div", { class: "chat-sidebar-right", onClick: (e) => e.stopPropagation() }, renderRegion(host, 'right-panel', true, () => renderDefaultRightPanel(host))));
|
|
2816
2941
|
}
|
|
2817
2942
|
|
|
2818
|
-
const webChatCss = ":host{display:flex;flex:1;width:var(--w-full);min-height:0;height:100%}web-chat{display:flex;flex:1;width:var(--w-full);min-height:0;height:100%}.boot-loader-shell{display:flex;flex:1;width:var(--w-full);min-height:0;height:100%;align-items:stretch;justify-content:stretch}.boot-loader-shell>chat-loading-placeholder,.boot-loader-shell>slot[name='boot-loader']{display:flex;flex:1;width:var(--w-full);min-height:0;height:100%}.isometrik-quickchat{box-shadow:none;display:flex;flex:1 1 auto;height:100%;min-height:0;width:var(--w-full);max-height:100%;overflow:hidden}.chat-sidebar-container{width:30%;min-width:var(--sidebar-width);transition:all 0.3s ease;border-right:1px solid var(--border);display:flex;flex-direction:row;background-color:var(--bg-primary);overflow:hidden;min-height:0}profile-sidebar,profile-sidebar-ui{display:flex;height:var(--h-full);flex-shrink:0}.chat-sidebar-right{width:30%;min-width:var(--sidebar-width);transition:all 0.3s ease;border-left:1px solid var(--border);background-color:var(--bg-primary)}.loaderoverlay{width:var(--w-full);position:absolute;margin:auto;background:var(--overlay);z-index:1400}.sidebar-tab{flex:1;min-width:0;height:var(--h-full);min-height:0;background-color:var(--bg-primary);display:flex;flex-direction:column;overflow:hidden}.sidebar-tab>*{flex:1;min-height:0;min-width:0;width:var(--w-full);max-width:var(--w-full)}.chat-body-container{flex:1;display:flex;flex-direction:column;transition:all 0.3s ease;background-color:var(--bg-secondary);position:relative;min-height:0;min-width:0}.chat-pane-row{flex:1;min-height:0;min-width:0;display:flex;flex-direction:row;align-items:stretch;overflow:hidden}.chat-main-stack{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.message-info-dock{flex:0 0 clamp(280px, 36%, 380px);height:var(--h-full);min-height:0;display:flex;flex-direction:column;background:var(--bg-primary);border-left:1px solid var(--border);overflow:hidden}.message-info-dock message-info{flex:1;min-height:0;height:var(--h-full);display:block}.message-info-loading{flex:1;display:flex;align-items:center;justify-content:center}.chat-sidebar-container>slot[name='sidebar'],.chat-sidebar-container slot[name='profile-rail'],.sidebar-tab>slot[name='conversation-list'],.sidebar-tab>slot[name='profile-page'],.sidebar-tab>slot[name='group-cast'],.chat-body-container>slot[name='empty'],.chat-main-stack>slot[name='header'],.chat-main-stack>slot[name='messages'],.chat-main-stack>slot[name='composer'],.chat-sidebar-right>slot[name='right-panel']{display:contents}::slotted([slot='sidebar']),::slotted([slot='profile-rail']),::slotted([slot='conversation-list']),::slotted([slot='profile-page']),::slotted([slot='group-cast']),::slotted([slot='empty']),::slotted([slot='messages']),::slotted([slot='right-panel']),::slotted([slot='contact-info']),::slotted([slot='profile-info']),::slotted([slot='message-search']),::slotted([slot='boot-loader']){display:flex;flex-direction:column;flex:1;min-height:0;width:var(--w-full);height:var(--h-full)}::slotted([slot='header']),::slotted([slot='composer']),::slotted([slot='composer-input']),::slotted([slot='reply-preview']),::slotted([slot='attachment-preview']){display:block;width:var(--w-full);flex-shrink:0}.noChatSelectedPlaceholder{height:var(--h-full);width:var(--w-full);display:flex;align-items:center;justify-content:center;font-size:var(--text-20);flex-direction:column;gap:var(--gap-4);color:var(--text-primary)}.noChatSelectedPlaceholder span:nth-child(2){font-size:var(--text-24);font-weight:var(--fw-700);margin-top:var(--space-16)}.noChatSelectedPlaceholder span:nth-child(3){font-size:var(--text-18);text-align:center;color:var(--text-secondary)}.loadingPlaceholder{height:var(--h-full);width:var(--w-full);z-index:12839283}.back-button{display:none;padding:0;background:none;border:none;cursor:pointer;align-items:center;gap:var(--gap-4)}spinner-loader{display:flex;height:100%}.blockMessageContainer{text-align:center;padding:var(--space-16) 0;margin:0;background-color:var(--bg-secondary);color:var(--text-secondary)}.exited-group-banner{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.4rem;padding:0.875rem 1rem 1rem;border-top:1px solid var(--border-subtle, var(--bg-secondary));background:var(--bg-surface, var(--bg-primary));text-align:center}.exited-group-banner-pill{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:0.4rem 0.85rem;border-radius:999px;background:var(--bg-secondary, #f4f4f5);color:var(--text-secondary, #52525b);font-size:0.8125rem;font-weight:500;letter-spacing:-0.01em;line-height:1.3}.exited-group-banner-hint{margin:0;max-width:18rem;font-size:0.75rem;line-height:1.35;color:var(--text-tertiary, #71717a)}@media (max-width: 768px){.isometrik-quickchat{position:relative;overflow:hidden}.chat-sidebar-right{width:
|
|
2943
|
+
const webChatCss = ":host{display:flex;flex:1;width:var(--w-full);min-height:0;height:100%}web-chat{display:flex;flex:1;width:var(--w-full);min-height:0;height:100%}.boot-loader-shell{display:flex;flex:1;width:var(--w-full);min-height:0;height:100%;align-items:stretch;justify-content:stretch}.boot-loader-shell>chat-loading-placeholder,.boot-loader-shell>slot[name='boot-loader']{display:flex;flex:1;width:var(--w-full);min-height:0;height:100%}.isometrik-quickchat{box-shadow:none;display:flex;flex:1 1 auto;height:100%;min-height:0;width:var(--w-full);max-height:100%;overflow:hidden}.chat-sidebar-container{width:30%;min-width:var(--sidebar-width);transition:all 0.3s ease;border-right:1px solid var(--border);display:flex;flex-direction:row;background-color:var(--bg-primary);overflow:hidden;min-height:0}profile-sidebar,profile-sidebar-ui{display:flex;height:var(--h-full);flex-shrink:0}.chat-sidebar-right{width:30%;min-width:var(--sidebar-width);transition:all 0.3s ease;border-left:1px solid var(--border);background-color:var(--bg-primary)}.loaderoverlay{width:var(--w-full);position:absolute;margin:auto;background:var(--overlay);z-index:1400}.sidebar-tab{flex:1;min-width:0;height:var(--h-full);min-height:0;background-color:var(--bg-primary);display:flex;flex-direction:column;overflow:hidden}.sidebar-tab>*{flex:1;min-height:0;min-width:0;width:var(--w-full);max-width:var(--w-full)}.chat-body-container{flex:1;display:flex;flex-direction:column;transition:all 0.3s ease;background-color:var(--bg-secondary);position:relative;min-height:0;min-width:0}.chat-pane-row{flex:1;min-height:0;min-width:0;display:flex;flex-direction:row;align-items:stretch;overflow:hidden}.chat-main-stack{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;position:relative}.panel-dismiss-scrim,.message-info-scrim,.right-panel-scrim{position:absolute;inset:0;z-index:30;background:var(--overlay, rgba(0, 0, 0, 0.35));cursor:default;border:none;padding:0}.chat-body-container>.right-panel-scrim{z-index:25}.message-info-dock{flex:0 0 clamp(280px, 36%, 380px);height:var(--h-full);min-height:0;display:flex;flex-direction:column;background:var(--bg-primary);border-left:1px solid var(--border);overflow:hidden}.message-info-dock message-info{flex:1;min-height:0;height:var(--h-full);display:block}.message-info-loading{flex:1;display:flex;align-items:center;justify-content:center}.chat-sidebar-container>slot[name='sidebar'],.chat-sidebar-container slot[name='profile-rail'],.sidebar-tab>slot[name='conversation-list'],.sidebar-tab>slot[name='profile-page'],.sidebar-tab>slot[name='group-cast'],.chat-body-container>slot[name='empty'],.chat-main-stack>slot[name='header'],.chat-main-stack>slot[name='messages'],.chat-main-stack>slot[name='composer'],.chat-sidebar-right>slot[name='right-panel']{display:contents}::slotted([slot='sidebar']),::slotted([slot='profile-rail']),::slotted([slot='conversation-list']),::slotted([slot='profile-page']),::slotted([slot='group-cast']),::slotted([slot='empty']),::slotted([slot='messages']),::slotted([slot='right-panel']),::slotted([slot='contact-info']),::slotted([slot='profile-info']),::slotted([slot='message-search']),::slotted([slot='boot-loader']){display:flex;flex-direction:column;flex:1;min-height:0;width:var(--w-full);height:var(--h-full)}::slotted([slot='header']),::slotted([slot='composer']),::slotted([slot='composer-input']),::slotted([slot='reply-preview']),::slotted([slot='attachment-preview']){display:block;width:var(--w-full);flex-shrink:0}.noChatSelectedPlaceholder{height:var(--h-full);width:var(--w-full);display:flex;align-items:center;justify-content:center;font-size:var(--text-20);flex-direction:column;gap:var(--gap-4);color:var(--text-primary)}.noChatSelectedPlaceholder span:nth-child(2){font-size:var(--text-24);font-weight:var(--fw-700);margin-top:var(--space-16)}.noChatSelectedPlaceholder span:nth-child(3){font-size:var(--text-18);text-align:center;color:var(--text-secondary)}.loadingPlaceholder{height:var(--h-full);width:var(--w-full);z-index:12839283}.back-button{display:none;padding:0;background:none;border:none;cursor:pointer;align-items:center;gap:var(--gap-4)}spinner-loader{display:flex;height:100%}.blockMessageContainer{text-align:center;padding:var(--space-16) 0;margin:0;background-color:var(--bg-secondary);color:var(--text-secondary)}.exited-group-banner{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.4rem;padding:0.875rem 1rem 1rem;border-top:1px solid var(--border-subtle, var(--bg-secondary));background:var(--bg-surface, var(--bg-primary));text-align:center}.exited-group-banner-pill{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:0.4rem 0.85rem;border-radius:999px;background:var(--bg-secondary, #f4f4f5);color:var(--text-secondary, #52525b);font-size:0.8125rem;font-weight:500;letter-spacing:-0.01em;line-height:1.3}.exited-group-banner-hint{margin:0;max-width:18rem;font-size:0.75rem;line-height:1.35;color:var(--text-tertiary, #71717a)}@media (max-width: 768px){.isometrik-quickchat{position:relative;overflow:hidden}.chat-sidebar-right{width:min(380px, 92vw);max-width:92vw;height:var(--h-full);min-width:0 !important;position:absolute;left:auto;right:0;top:0;z-index:20;display:flex;flex-direction:column;background-color:var(--bg-primary);transition:all 0.3s ease;border:none;box-shadow:-4px 0 24px var(--overlay, rgba(0, 0, 0, 0.2))}.chat-sidebar-right>*{flex:1;min-height:0;width:var(--w-full);height:var(--h-full)}.chat-sidebar-container{width:var(--w-full);height:var(--h-full);position:absolute;left:0;top:0;transform:translateX(0);transition:transform 0.3s ease;z-index:2;min-width:100% !important}.chat-sidebar-container.hidden{transform:translateX(-100%)}.chat-body-container{width:var(--w-full);height:var(--h-full);position:absolute;left:0;top:0;transform:translateX(100%);transition:transform 0.3s ease;z-index:1}.chat-body-container.hidden{transform:translateX(0)}.chat-body-container.show{transform:translateX(0);z-index:3}.back-button{display:flex;align-items:center;justify-content:center;position:absolute;right:var(--rail-width);z-index:10;top:var(--space-16)}.chat-pane-row.info-open{position:relative}.chat-pane-row.info-open .message-info-dock{position:absolute;top:0;right:0;bottom:0;flex:none;width:min(380px, 92vw);max-width:92vw;z-index:31;box-shadow:-4px 0 24px var(--overlay, rgba(0, 0, 0, 0.2))}}";
|
|
2819
2944
|
const WebChatStyle0 = webChatCss;
|
|
2820
2945
|
|
|
2821
2946
|
const WebChat = class {
|
|
@@ -3040,6 +3165,8 @@ const WebChat = class {
|
|
|
3040
3165
|
this.activeTab = 'Chat';
|
|
3041
3166
|
this.showRightSideBar = false;
|
|
3042
3167
|
this.conversationIdFromContactinfo = '';
|
|
3168
|
+
this.profileOpenedFromContactInfo = false;
|
|
3169
|
+
this.pendingProfileMember = null;
|
|
3043
3170
|
this.exitedGroupIds = new Set();
|
|
3044
3171
|
this.conversationCountSkip = 0;
|
|
3045
3172
|
this.typingConversationId = null;
|
|
@@ -3160,6 +3287,28 @@ const WebChat = class {
|
|
|
3160
3287
|
unreadConversationsCount: this.unreadConversationsCount,
|
|
3161
3288
|
};
|
|
3162
3289
|
}
|
|
3290
|
+
/** Public: server-authoritative media storage usage (null until ready). */
|
|
3291
|
+
async getStorageUsage(forceRefresh = false) {
|
|
3292
|
+
if (!forceRefresh && storageQuotaStore.state.usage)
|
|
3293
|
+
return storageQuotaStore.state.usage;
|
|
3294
|
+
return storageQuotaStore.loadUsage();
|
|
3295
|
+
}
|
|
3296
|
+
/** Public: list the user's charged media (newest first). */
|
|
3297
|
+
async getStorageMedia(opts) {
|
|
3298
|
+
return fetchStorageMedia(opts || {});
|
|
3299
|
+
}
|
|
3300
|
+
/** Public: delete the messages that own `mediaIds` (for everyone) + free bytes. */
|
|
3301
|
+
async deleteStorageMedia(mediaIds) {
|
|
3302
|
+
return storageQuotaStore.deleteMedia(mediaIds);
|
|
3303
|
+
}
|
|
3304
|
+
/** Public: delete every file this user sent in a conversation (for everyone). */
|
|
3305
|
+
async deleteConversationStorageMedia(conversationId) {
|
|
3306
|
+
return storageQuotaStore.deleteAllInConversation(conversationId);
|
|
3307
|
+
}
|
|
3308
|
+
/** Public: open the built-in Manage Storage panel (optionally scoped). */
|
|
3309
|
+
async openStorageManagement(conversationId) {
|
|
3310
|
+
drawerDialogService.openDrawer('storage', { conversationId: conversationId || '' }, { id: 'storage' });
|
|
3311
|
+
}
|
|
3163
3312
|
// Session identity: props from initializeChat / chat-app, cookies as session fallback
|
|
3164
3313
|
get sessionUserToken() {
|
|
3165
3314
|
return this.userToken || this.userTokenFromCookie;
|
|
@@ -3230,6 +3379,8 @@ const WebChat = class {
|
|
|
3230
3379
|
this.isProfileInfoOpen = false;
|
|
3231
3380
|
this.isContactInfoOpen = false;
|
|
3232
3381
|
this.isOpenSearchBar = false;
|
|
3382
|
+
this.profileOpenedFromContactInfo = false;
|
|
3383
|
+
this.pendingProfileMember = null;
|
|
3233
3384
|
this.conversationMetaData = metaFromConversationList(this.allConversationList, conversationId);
|
|
3234
3385
|
// Show cached thread instantly while network fetch runs
|
|
3235
3386
|
void hostHydrateMessagesFromCache(this, conversationId);
|
|
@@ -3324,6 +3475,9 @@ const WebChat = class {
|
|
|
3324
3475
|
handleTaguserClick(event) {
|
|
3325
3476
|
hostTagUserClick(this, event);
|
|
3326
3477
|
}
|
|
3478
|
+
handleMemberMessageClicked(event) {
|
|
3479
|
+
return hostMemberMessageClicked(this, event);
|
|
3480
|
+
}
|
|
3327
3481
|
async createConversation(selectedContactId, selectedContactName) {
|
|
3328
3482
|
return hostCreateDmAndSelect(this, selectedContactId, selectedContactName);
|
|
3329
3483
|
}
|
|
@@ -3462,7 +3616,7 @@ const Login = class {
|
|
|
3462
3616
|
document.cookie = `${name}=${value};${expires};path=/;SameSite=Lax${secure}`;
|
|
3463
3617
|
}
|
|
3464
3618
|
render() {
|
|
3465
|
-
return (h("div", { key: '
|
|
3619
|
+
return (h("div", { key: '1c805a53d802bb6bfd584459bcc94f45e6295596', class: "login-page-container" }, h("div", { key: 'b3507c3e002a5ec3e8fdbd86bcbcc3c615b81684', class: "login-banner-container" }, h("div", { key: '9d1c8aa4505e6ea45295f9d14a55c75fc8b73723', class: "login-banner-logo", innerHTML: isometrikLogo }), h("div", { key: '8d088dc93d89de64dcb14c0528a59ec01e61be6b', class: "login-banner-text" }, h("h1", { key: '0ebd4515c85e10a98326212368ae3b9e06a7b3e9' }, "\"Revolutionizing How You Chat.\""), h("p", { key: '58785a2099c4dfb1dc0d087e74d926d2d5ef2da7' }, "\"Welcome to the future of chatting \u2013 simple, fast, and inclusive. Start connecting like never before!\""), h("img", { key: 'efda6b621bd25a8561f8a8929a9df6809ef01cb3', src: Login_banner, alt: "Login Page", style: { width: '300px', height: '300px' } }))), h("div", { key: '232ccc2889e10743accfef48814eb4a5b5cdb8f5', class: "login-container" }, h("div", { key: '58ce05fd2a3e3d880fcfa2c7a56d4beccc76194d', class: "login-container-logo", innerHTML: isometrikLogo }), h("div", { key: 'fd229272f656b5c0bf642d72e710feba12594e54', class: "login-container-inner" }, h("div", { key: 'b0b76010d8429451416913e629c8447d5eb47654', class: "login-header" }, h("h2", { key: 'd6195442816118c4106eee722a5f6d1098fc9170' }, WEB_CONTENT.LOGIN), h("p", { key: '70554da79372c0dc7f398d1bdb8c35c85a66c173' }, WEB_CONTENT.LOGIN_DESC)), h("form", { key: '25e8c0d701b99e105c6d3ccf4d1915a5eeb30741', class: "login-form", onSubmit: this.handleSubmit }, h("div", { key: '47d28c5811f50eebaa8b9341f8ed09ef25d029cf', class: "form-group" }, h("label", { key: 'af19d8efcb050e41088c2e6aed10fdf705d2625c', htmlFor: "username" }, WEB_CONTENT.EMAIL), h("input", { key: '38d4b933223ae857f3ca19654f5974c26960ec8d', type: "email", id: "username", value: this.username, onInput: (e) => (this.username = e.target.value), placeholder: WEB_CONTENT.EMAIL })), h("div", { key: '0d3c18d50190e8311c24338ab7bd828c7696e79f', class: "form-group" }, h("label", { key: 'ae5aaad3bb2391e3498f3f66d9ab94ec90f94654', htmlFor: "password" }, WEB_CONTENT.PASSWORD), h("div", { key: 'c357c16672b8482e09b83891e4051d5fa9cbe7e5', class: "password-input-wrapper" }, h("input", { key: 'a95f29640996b7649d3f938d33029a0fb837146d', type: this.showPassword ? 'text' : 'password', id: "password", value: this.password, onInput: (e) => (this.password = e.target.value), placeholder: WEB_CONTENT.PASSWORD }), h("button", { key: '4fb456d6f323a6f5d76ffe7d16dc0a054861594c', type: "button", class: "password-toggle-button", onClick: () => (this.showPassword = !this.showPassword), "aria-label": this.showPassword ? 'Hide password' : 'Show password' }, this.showPassword ? (h("svg", { class: "password-toggle-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), h("line", { x1: "1", y1: "1", x2: "23", y2: "23" }))) : (h("svg", { class: "password-toggle-icon", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), h("circle", { cx: "12", cy: "12", r: "3" })))))), this.errorMessage && h("div", { key: '27612c0ea5f34146ae6126d39af45d85623c493e', class: "error-message" }, this.errorMessage), h("button", { key: '2f4c4392a46d996bffe9ebaff01ada5c26e24258', type: "submit", class: "login-button", disabled: !this.username || !this.password || this.isLoading }, this.isLoading ? 'Logging in...' : 'Log In'))))));
|
|
3466
3620
|
}
|
|
3467
3621
|
};
|
|
3468
3622
|
Login.style = ":host {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100dvh;\n background: var(--bg-primary-color);\n font-family: 'Simpli Norm', sans-serif;\n }\n\n .login-container {\n padding: 2rem;\n border-radius: 10px;\n width: 50%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background:var(--bg-secondary-color);\n }\n\n .login-header {\n text-align: center;\n color: var(--text-primary-color);\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 2rem;\n }\n\n .login-form {\n display: flex;\n flex-direction: column;\n gap: 1.5rem;\n width: 100%;\n max-width: 400px;\n }\n\n .form-group {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n }\n\n .form-group label {\n color: var(--text-primary-color);\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.01em;\n }\n\n .form-group input {\n padding: 0.875rem 1rem;\n border: 1.5px solid var(--bg-grey-color);\n border-radius: 12px;\n background: var(--bg-primary-color);\n color: var(--text-primary-color);\n outline: none;\n font-size: 15px;\n transition: all 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n }\n\n .password-input-wrapper {\n position: relative;\n display: flex;\n align-items: center;\n }\n\n .password-input-wrapper input {\n padding-right: 3rem;\n }\n\n .password-toggle-button {\n position: absolute;\n right: 0.75rem;\n background: none;\n border: none;\n cursor: pointer;\n padding: 0.25rem;\n display: flex;\n align-items: center;\n justify-content: center;\n color: rgba(0, 0, 0, 0.5);\n transition: color 0.2s ease;\n outline: none;\n }\n\n .password-toggle-button:hover {\n color: var(--base-color);\n }\n\n .password-toggle-button:focus {\n color: var(--base-color);\n }\n\n .password-toggle-icon {\n width: 20px;\n height: 20px;\n stroke: currentColor;\n fill: none;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n\n .form-group input::placeholder {\n color: rgba(0, 0, 0, 0.4);\n opacity: 0.6;\n }\n\n .form-group input:focus {\n border-color: var(--base-color);\n box-shadow: 0 0 0 3px rgba(122, 144, 247, 0.1);\n transform: translateY(-1px);\n }\n\n .form-group input:hover:not(:focus) {\n border-color: rgba(122, 144, 247, 0.5);\n }\n\n .login-button {\n background: var(--base-color);\n color: white;\n padding: 0.875rem 2rem;\n border: none;\n border-radius: 12px;\n cursor: pointer;\n font-weight: 600;\n font-size: 15px;\n transition: all 0.2s ease;\n width: 100%;\n margin-top: 0.5rem;\n box-shadow: 0 2px 8px rgba(122, 144, 247, 0.3);\n }\n\n .login-button:hover:not(:disabled) {\n background: rgba(122, 144, 247, 0.9);\n transform: translateY(-2px);\n box-shadow: 0 4px 12px rgba(122, 144, 247, 0.4);\n }\n\n .login-button:active:not(:disabled) {\n transform: translateY(0);\n box-shadow: 0 2px 6px rgba(122, 144, 247, 0.3);\n }\n\n .login-button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n transform: none;\n box-shadow: none;\n }\n\n .error-message {\n color: var(--text-danger-color);\n font-size: 0.875rem;\n text-align: center;\n margin-top: 0.5rem;\n padding: 0.75rem;\n background: rgba(220, 53, 69, 0.1);\n border-radius: 8px;\n border: 1px solid rgba(220, 53, 69, 0.2);\n }\n\n .login-page-container {\n display: flex;\n align-items: center;\n height: 100%;\n width: 100%;\n overflow: hidden;\n }\n .login-banner-container {\n background: var(--bg-primary-light);\n width: 50%;\n height: 100%;\n position: relative;\n padding: 20px;\n overflow: hidden;\n }\n\n .login-banner-logo {\n padding: 30px 20px;\n }\n\n .login-container-logo {\n padding: 30px 20px;\n position: absolute;\n top: 0;\n margin:auto;\n display: none;\n }\n\n\n .login-header h2 {\n font-size: 2rem;\n font-weight: 700;\n color: var(--text-primary-color);\n margin: 0 0 0.5rem 0;\n letter-spacing: -0.02em;\n }\n\n .login-header p {\n font-size: 0.95rem;\n font-weight: 400;\n color: rgba(0, 0, 0, 0.6);\n width: 90%;\n text-align: center;\n line-height: 1.5;\n margin: 0;\n }\n .login-banner-text {\n padding: 20px;\n display:flex;\n align-items:center;\n flex-direction:column;\n }\n .login-banner-text h1 {\n font-size: 2.5rem;\n font-weight: 600;\n color: var(--base-color);\n width: 70%;\n }\n\n .login-banner-text p {\n font-size: 1.2rem;\n font-weight: 400;\n color: var(--text-primary-color);\n width: 70%;\n line-height: 1.4rem;\n }\n\n \n\n .login-image-overlay div {\n position: absolute;\n width: 187px;\n height: 187px;\n filter: blur(14px);\n border-radius: 50%;\n background: linear-gradient(225.81deg, #d8dffe 15.93%, #7a90f7 100%);\n \n \n }\n /* Style for WebKit browsers (Chrome, Safari, newer versions of Opera) */\n input:-webkit-autofill,\n input:-webkit-autofill:hover,\n input:-webkit-autofill:focus,\n input:-webkit-autofill:active {\n -webkit-text-fill-color: var(--text-primary-color) !important;\n transition: background-color 5000s ease-in-out 0s;\n border: 0.5px solid var(--bg-grey-color);\n }\n\n input:autofill {\n background-color: var(--bg-primary-color) !important;\n color: var(--text-primary-color) !important;\n border: 0.5px solid var(--bg-grey-color);\n }\n\n input:-internal-autofill-selected {\n background-color: var(--bg-primary-color) !important;\n color: var(--text-primary-color) !important;\n border: 0.5px solid var(--bg-grey-color);\n }\n\n .login-image-overlay div:first-child {\n top: -52px;\n right: -63px;\n }\n\n .login-container-inner {\n padding: 2.5rem 2rem;\n border-radius: 24px;\n background: var(--bg-primary-color);\n box-shadow: 0px 10px 40px 0px var(--shadow-color);\n width: 100%;\n max-width: 450px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .login-image-overlay div:nth-child(2) {\n bottom: -102px;\n left: -103px;\n height: 359px;\n width: 359px;\n }\n\n .login-footer {\n text-align: center;\n font-size: 14px;\n }\n\n .login-footer a {\n cursor: pointer;\n text-decoration: underline;\n\n }\n @media (max-width: 768px) {\n .login-banner-container {\n display: none;\n }\n\n .login-container {\n width: 100%;\n padding:1rem;\n }\n\n .login-container-logo {\n display: block;\n }\n }";
|