isometrik-plugin-chat-sdk 2.0.21 → 2.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { M } from './index.m.js';
|
|
3
|
-
import {
|
|
3
|
+
import { drawerDialogService } from './drawer.js';
|
|
4
4
|
import { d as debounce } from './helpers.js';
|
|
5
5
|
import { L as Left_Arrow } from './chat-assets.js';
|
|
6
6
|
import { d as defineCustomElement$1 } from './spinner-loader2.js';
|
|
@@ -90,7 +90,7 @@ const BlockChatList = /*@__PURE__*/ proxyCustomElement(class BlockChatList exten
|
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
92
|
var _a, _b;
|
|
93
|
-
return (h("div", { key: '
|
|
93
|
+
return (h("div", { key: '7cbd6b4279f35ef4d996cf3d84ab9f789d751aad', class: "blocked-users-container" }, h("div", { key: '5ee28a4f1f50937a6ed9b872461c510634cc9459', class: "header" }, h("button", { key: '347682bd7d807d7b29aa7333dc1d3f28a9666b0e', class: "back-button", type: "button", onClick: () => { var _a; return (_a = this.goBack) === null || _a === void 0 ? void 0 : _a.call(this); }, "aria-label": "Back" }, h("img", { key: 'e5b6b887a3f76fa27e6d742bf61602fbca7e2d11', class: "theme-icon", src: Left_Arrow, alt: "" })), h("h2", { key: '8da9e43ebfc3b35f7700fdd2e6cfd080657cfed0', style: { margin: '0', fontSize: '18px' } }, "Blocked Users")), h("div", { key: '002e096cb9fe29049888081f215ccd6d9cc9a4c5', class: "search-container" }, h("input", { key: 'fed61d10d3b820b43ba42f1ebcfcccf1fe0e2ce8', class: "search-input", type: "text", placeholder: "Search users...", value: this.searchTerm, onInput: (e) => {
|
|
94
94
|
this.searchTerm = e.target.value;
|
|
95
95
|
this.debouncedSearch(this.searchTerm);
|
|
96
96
|
} })), this.isLoading ? (h("div", { class: "loading-spinner" }, h("spinner-loader", { height: "30px", width: "30px" }))) : ((_a = this.blockUsers) === null || _a === void 0 ? void 0 : _a.length) === 0 ? (h("div", { class: "empty-state" }, this.searchTerm
|
|
@@ -6,13 +6,83 @@ import { g as getDeviceID, a as getGroupcastUrlQuery } from './helpers.js';
|
|
|
6
6
|
import { d as defineCustomElement$1 } from './reply-block2.js';
|
|
7
7
|
import { s as showToast } from './toast.js';
|
|
8
8
|
import { t as takeMediaFiles, m as mediaLimitToastMessage, M as MAX_MEDIA_PER_MESSAGE } from './media-limits.js';
|
|
9
|
-
import {
|
|
9
|
+
import { s as storageQuotaStore } from './storage-quota2.js';
|
|
10
|
+
import { c as canUploadBytes, i as isQuotaExceededError } from './storage-quota.js';
|
|
11
|
+
import { p as prepareMediaAttachments, d as isSameNameUploadCancelledError, r as resolveCustomTypeForUpload, f as attachmentBodyForOutgoing, b as buildReplyMetaData, g as presignedSlotsByMediaId, h as uploadPresignedMediaAttachment, j as resolveAttachmentPayloads, k as mapOutgoingAttachmentsForApi, l as isPresignDuplicateSlot } from './send-media.js';
|
|
10
12
|
import { m as messagePushContextFrom, w as withHostMessagePushFields } from './local-notification.js';
|
|
11
13
|
import { c as getPresignedUrlForGroupcastMedia, p as postGroupCastMessage } from './groupcast.js';
|
|
12
14
|
import { D as Delete, d as Send, A as Attachment, S as Smile, M as Microphone } from './chat-assets.js';
|
|
13
15
|
import { P as PlayIcon, D as DocumentsIcon, a as PhotosIcon } from './play.js';
|
|
14
16
|
import { d as defineCustomElement$2 } from './AudioBubble.js';
|
|
15
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Clipboard image paste for the chat composer (ChatFooter).
|
|
20
|
+
* Reuse via `filesFromClipboardData` + `normalizePastedImageFile` before `handleFileUpload`.
|
|
21
|
+
*/
|
|
22
|
+
const IMAGE_MIME_PREFIX = 'image/';
|
|
23
|
+
/** Extension for common image MIME types when the clipboard File has no name. */
|
|
24
|
+
function extensionFromImageMime(mime) {
|
|
25
|
+
const m = (mime || '').toLowerCase();
|
|
26
|
+
if (m === 'image/jpeg' || m === 'image/jpg')
|
|
27
|
+
return 'jpg';
|
|
28
|
+
if (m === 'image/png')
|
|
29
|
+
return 'png';
|
|
30
|
+
if (m === 'image/gif')
|
|
31
|
+
return 'gif';
|
|
32
|
+
if (m === 'image/webp')
|
|
33
|
+
return 'webp';
|
|
34
|
+
if (m === 'image/bmp')
|
|
35
|
+
return 'bmp';
|
|
36
|
+
if (m === 'image/heic' || m === 'image/heif')
|
|
37
|
+
return 'heic';
|
|
38
|
+
if (m.startsWith(IMAGE_MIME_PREFIX))
|
|
39
|
+
return 'png';
|
|
40
|
+
return 'png';
|
|
41
|
+
}
|
|
42
|
+
function isImageMime(type) {
|
|
43
|
+
return (type || '').toLowerCase().startsWith(IMAGE_MIME_PREFIX);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Collect image files from a ClipboardEvent `clipboardData` / DataTransfer.
|
|
47
|
+
* Prefers `items` (standard for screenshots); falls back to `files` when empty.
|
|
48
|
+
*/
|
|
49
|
+
function filesFromClipboardData(data) {
|
|
50
|
+
if (!data)
|
|
51
|
+
return [];
|
|
52
|
+
const fromItems = [];
|
|
53
|
+
const items = data.items;
|
|
54
|
+
if (items === null || items === void 0 ? void 0 : items.length) {
|
|
55
|
+
for (let i = 0; i < items.length; i++) {
|
|
56
|
+
const item = items[i];
|
|
57
|
+
if (item.kind !== 'file' || !isImageMime(item.type))
|
|
58
|
+
continue;
|
|
59
|
+
const file = item.getAsFile();
|
|
60
|
+
if (file)
|
|
61
|
+
fromItems.push(file);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (fromItems.length)
|
|
65
|
+
return fromItems;
|
|
66
|
+
const files = data.files;
|
|
67
|
+
if (!(files === null || files === void 0 ? void 0 : files.length))
|
|
68
|
+
return [];
|
|
69
|
+
return Array.from(files).filter(f => isImageMime(f.type));
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Screenshots often arrive as unnamed blobs; give uploads a stable filename for UI + API.
|
|
73
|
+
*/
|
|
74
|
+
function normalizePastedImageFile(file, now = Date.now()) {
|
|
75
|
+
const name = (file.name || '').trim();
|
|
76
|
+
if (name)
|
|
77
|
+
return file;
|
|
78
|
+
const ext = extensionFromImageMime(file.type || 'image/png');
|
|
79
|
+
return new File([file], `pasted-image-${now}.${ext}`, { type: file.type || `image/${ext === 'jpg' ? 'jpeg' : ext}` });
|
|
80
|
+
}
|
|
81
|
+
function normalizePastedImageFiles(files) {
|
|
82
|
+
const ts = Date.now();
|
|
83
|
+
return files.map((file, i) => normalizePastedImageFile(file, ts + i));
|
|
84
|
+
}
|
|
85
|
+
|
|
16
86
|
/**
|
|
17
87
|
* API `mentionedUsers` shape for postMessages.
|
|
18
88
|
* Callers (custom UI / HOA) may pass `{ userId, userName }`; we map to
|
|
@@ -212,6 +282,19 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
|
|
|
212
282
|
this.handleSendMessage();
|
|
213
283
|
}
|
|
214
284
|
};
|
|
285
|
+
/** Paste screenshot / copied image into the same attach flow as the file picker. */
|
|
286
|
+
this.handleComposerPaste = (event) => {
|
|
287
|
+
if (this.isRecording || this.showCamera)
|
|
288
|
+
return;
|
|
289
|
+
const raw = filesFromClipboardData(event.clipboardData);
|
|
290
|
+
if (!raw.length)
|
|
291
|
+
return;
|
|
292
|
+
event.preventDefault();
|
|
293
|
+
const files = normalizePastedImageFiles(raw);
|
|
294
|
+
this.handleFileUpload({
|
|
295
|
+
detail: { files, fileTypes: files.map(f => (f.type || '').split('/')[0]), totalFiles: files.length },
|
|
296
|
+
});
|
|
297
|
+
};
|
|
215
298
|
this.handleAttachClick = () => {
|
|
216
299
|
const next = !this.showAttachMenu;
|
|
217
300
|
this.showAttachMenu = next;
|
|
@@ -390,14 +473,7 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
|
|
|
390
473
|
this.changeMessageSendingState(true);
|
|
391
474
|
const conversationId = this.selectedConversationId;
|
|
392
475
|
let messageId = Date.now().toString() + Math.random() * 100;
|
|
393
|
-
const attachment =
|
|
394
|
-
nameWithExtension: audioFile.name,
|
|
395
|
-
mediaType: 2, // Audio type
|
|
396
|
-
mediaId: audioFile.lastModified + '',
|
|
397
|
-
mimeType: audioFile.type,
|
|
398
|
-
size: audioFile.size,
|
|
399
|
-
file: audioFile,
|
|
400
|
-
};
|
|
476
|
+
const attachment = prepareMediaAttachments([audioFile])[0];
|
|
401
477
|
const localAttachment = {
|
|
402
478
|
name: audioFile.name,
|
|
403
479
|
size: audioFile.size,
|
|
@@ -433,6 +509,10 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
|
|
|
433
509
|
}
|
|
434
510
|
catch (error) {
|
|
435
511
|
console.error(error, 'Error while uploading the audio');
|
|
512
|
+
if (isSameNameUploadCancelledError(error)) {
|
|
513
|
+
this.removeLocalMessage(messageId);
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
436
516
|
showToast({
|
|
437
517
|
message: error === null || error === void 0 ? void 0 : error.message,
|
|
438
518
|
type: 'error',
|
|
@@ -679,7 +759,7 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
|
|
|
679
759
|
}
|
|
680
760
|
}
|
|
681
761
|
async sendMediaMessage(conversationId) {
|
|
682
|
-
var _a, _b;
|
|
762
|
+
var _a, _b, _c, _d;
|
|
683
763
|
this.changeMessageSendingState(true);
|
|
684
764
|
let messageId = Date.now().toString() + Math.random() * 100;
|
|
685
765
|
const files = takeMediaFiles(this.attachmentDetails || [], 0).accepted;
|
|
@@ -718,12 +798,47 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
|
|
|
718
798
|
attachments: attachments,
|
|
719
799
|
};
|
|
720
800
|
try {
|
|
801
|
+
let quotaUsage = storageQuotaStore.state.usage;
|
|
802
|
+
if (quotaUsage === null)
|
|
803
|
+
quotaUsage = await storageQuotaStore.loadUsage();
|
|
721
804
|
let resForPresignedUrl;
|
|
722
805
|
if (this.isGroupcast) {
|
|
723
|
-
resForPresignedUrl = await getPresignedUrlForGroupcastMedia((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userIdentifier, attachments === null || attachments === void 0 ? void 0 : attachments.mimeType);
|
|
806
|
+
resForPresignedUrl = await getPresignedUrlForGroupcastMedia((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userIdentifier, (_c = attachments === null || attachments === void 0 ? void 0 : attachments[0]) === null || _c === void 0 ? void 0 : _c.mimeType);
|
|
807
|
+
const totalBytes = files.reduce((sum, f) => sum + (f.size || 0), 0);
|
|
808
|
+
if (!canUploadBytes(quotaUsage, totalBytes)) {
|
|
809
|
+
this.removeLocalMessage(messageId);
|
|
810
|
+
showToast({
|
|
811
|
+
message: 'Storage full. Delete some media to upload new files. Text messages still work.',
|
|
812
|
+
type: 'error',
|
|
813
|
+
position: 'bottom-right',
|
|
814
|
+
});
|
|
815
|
+
return;
|
|
816
|
+
}
|
|
724
817
|
}
|
|
725
818
|
else {
|
|
726
819
|
resForPresignedUrl = await M.getInstance().message.postMessagesPresignedurls(payload);
|
|
820
|
+
const slots = (resForPresignedUrl === null || resForPresignedUrl === void 0 ? void 0 : resForPresignedUrl.presignedUrls)
|
|
821
|
+
? resForPresignedUrl.presignedUrls
|
|
822
|
+
: (resForPresignedUrl === null || resForPresignedUrl === void 0 ? void 0 : resForPresignedUrl.presignedUrl)
|
|
823
|
+
? [resForPresignedUrl]
|
|
824
|
+
: [];
|
|
825
|
+
const slotById = presignedSlotsByMediaId(slots);
|
|
826
|
+
let newUploadBytes = 0;
|
|
827
|
+
for (const att of attachments) {
|
|
828
|
+
const slot = (_d = slotById.get(att.mediaId)) !== null && _d !== void 0 ? _d : slots[attachments.indexOf(att)];
|
|
829
|
+
if (!slot || !isPresignDuplicateSlot(slot)) {
|
|
830
|
+
newUploadBytes += att.size || 0;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
if (newUploadBytes > 0 && !canUploadBytes(quotaUsage, newUploadBytes)) {
|
|
834
|
+
this.removeLocalMessage(messageId);
|
|
835
|
+
showToast({
|
|
836
|
+
message: 'Storage full. Delete some media to upload new files. Text messages still work.',
|
|
837
|
+
type: 'error',
|
|
838
|
+
position: 'bottom-right',
|
|
839
|
+
});
|
|
840
|
+
return;
|
|
841
|
+
}
|
|
727
842
|
}
|
|
728
843
|
if (resForPresignedUrl === null || resForPresignedUrl === void 0 ? void 0 : resForPresignedUrl.presignedUrls) {
|
|
729
844
|
await this.uploadAndSendMedia(resForPresignedUrl.presignedUrls, attachments, conversationId, messageId);
|
|
@@ -734,37 +849,57 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
|
|
|
734
849
|
}
|
|
735
850
|
catch (error) {
|
|
736
851
|
console.error(error, 'Error while uploading the media for Presignedurls');
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
852
|
+
if (isSameNameUploadCancelledError(error)) {
|
|
853
|
+
this.removeLocalMessage(messageId);
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
if (isQuotaExceededError(error)) {
|
|
857
|
+
// Server blocked the send for being over quota — refresh usage + prompt.
|
|
858
|
+
void storageQuotaStore.loadUsage();
|
|
859
|
+
showToast({ message: 'Storage quota exceeded.', type: 'error', position: 'bottom-right' });
|
|
860
|
+
}
|
|
861
|
+
else {
|
|
862
|
+
showToast({
|
|
863
|
+
message: error === null || error === void 0 ? void 0 : error.message,
|
|
864
|
+
type: 'error',
|
|
865
|
+
position: 'bottom-right',
|
|
866
|
+
});
|
|
867
|
+
}
|
|
742
868
|
}
|
|
743
869
|
finally {
|
|
744
870
|
this.changeMessageSendingState(false);
|
|
745
871
|
this.messageBody = '';
|
|
746
872
|
}
|
|
747
873
|
}
|
|
874
|
+
removeLocalMessage(messageId) {
|
|
875
|
+
this.allMessages = (this.allMessages || []).filter(m => m.messageId !== messageId);
|
|
876
|
+
}
|
|
748
877
|
async uploadAndSendMedia(presignedUrls, attachments, conversationId, oldMessageId) {
|
|
749
878
|
var _a, _b;
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
879
|
+
let allPayloads;
|
|
880
|
+
if (this.isGroupcast) {
|
|
881
|
+
allPayloads = [];
|
|
882
|
+
const uploadPromises = presignedUrls.map(async (urlDetails, index) => {
|
|
883
|
+
const attachmentPayload = attachments[index];
|
|
884
|
+
if (!attachmentPayload)
|
|
885
|
+
return;
|
|
886
|
+
const normalized = Object.assign(Object.assign({}, urlDetails), { mediaPresignedUrl: (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.presignedUrl) || (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.mediaPresignedUrl), mediaId: (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.mediaId) || (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.mediaUrl), thumbnailUrl: (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.thumbnailUrl) || (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.mediaUrl), thumbnailPresignedUrl: urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.thumbnailPresignedUrl });
|
|
887
|
+
const payload = await uploadPresignedMediaAttachment({
|
|
888
|
+
urlDetails: normalized,
|
|
889
|
+
attachment: attachmentPayload,
|
|
890
|
+
});
|
|
891
|
+
if (payload)
|
|
892
|
+
allPayloads.push(payload);
|
|
763
893
|
});
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
894
|
+
await Promise.all(uploadPromises);
|
|
895
|
+
}
|
|
896
|
+
else {
|
|
897
|
+
allPayloads = await resolveAttachmentPayloads({
|
|
898
|
+
conversationId,
|
|
899
|
+
attachments,
|
|
900
|
+
presignedSlots: presignedUrls,
|
|
901
|
+
});
|
|
902
|
+
}
|
|
768
903
|
const customType = resolveCustomTypeForUpload(attachments);
|
|
769
904
|
const caption = ((_a = this.messageBody) === null || _a === void 0 ? void 0 : _a.trim()) || '';
|
|
770
905
|
const pushContext = messagePushContextFrom({
|
|
@@ -780,7 +915,7 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
|
|
|
780
915
|
// API rejects empty body; caption text or placeholder. Real caption also in metaData.caption
|
|
781
916
|
body: attachmentBodyForOutgoing(caption, attachments),
|
|
782
917
|
customType: customType,
|
|
783
|
-
attachments: allPayloads,
|
|
918
|
+
attachments: mapOutgoingAttachmentsForApi(allPayloads),
|
|
784
919
|
deviceId: this.deviceId,
|
|
785
920
|
metaData: this.getReplyMetadata(),
|
|
786
921
|
}, pushContext, this.el);
|
|
@@ -850,9 +985,9 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
|
|
|
850
985
|
const webChat = findWebChatHost(this.el);
|
|
851
986
|
const hasCustomReply = (webChat ? hasNamedSlot(webChat, 'reply-preview') : false) || hasNamedSlot(this.el, 'reply-preview');
|
|
852
987
|
const showAttachment = this.attachmentDetails || this.showCamera;
|
|
853
|
-
return (h(Host, { key: '
|
|
988
|
+
return (h(Host, { key: '2027c6442c93f1edefb0ef6fae8e12396a637ae3', class: { 'attachment-open': !!showAttachment } }, h("div", { key: '80681229f6adff5168ccb2c331ba4323f7907143', class: "chat-footer-container" }, showAttachment ? (h("slot", { name: "attachment-preview" }, h("attachment-preview", { showCamera: this.showCamera, onClose: this.handleClearAttachment, width: "150px", height: "150px", bgColor: "var(--bg-primary-light)", padding: "3px", margin: "10px 0 0 0", contentType: contentType, content: this.mediaPreviews, onSend: this.handleSendMessage, "onfile-uploaded": this.handleFileUpload, "onattachment-removed": this.handleRemoveAttachment, "oncamera-retake": this.handleCameraRetake, key: this.inputKey, inputValue: this.messageBody, "oninput-change": this.handleInputChange, backgroundColor: "var(--bg-primary-color)", containerBoxShadow: "none", inputFontColor: "var(--text-primary-color)", inputBorderRadius: "10px", conversationDetails: this.conversationDetails, userMetaData: this.userMetaData }))) : (h(Fragment, null, hasCustomReply ? h("slot", { name: "reply-preview" }) : null, h("slot", { name: "composer-input" }, !hasCustomReply && this.replyMessage ? (h("reply-block", { messageBody: (_a = this.replyMessage) === null || _a === void 0 ? void 0 : _a.body, messageInfo: this.replyMessage, senderName: ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) === ((_d = (_c = this.replyMessage) === null || _c === void 0 ? void 0 : _c.senderInfo) === null || _d === void 0 ? void 0 : _d.userId)
|
|
854
989
|
? 'You'
|
|
855
|
-
: (_f = (_e = this.replyMessage) === null || _e === void 0 ? void 0 : _e.senderInfo) === null || _f === void 0 ? void 0 : _f.userName, onIconClick: this.handleremoveReplyMessage })) : null, h("div", { class: "composer-wrap", key: this.inputKey, ref: el => (this.composerWrapRef = el) }, this.showEmojiPicker ? (h("div", { class: "emoji-panel", style: this.emojiPanelStyle }, h("div", { class: "emoji-panel-header" }, h("span", null, "Emoji"), h("button", { class: "emoji-panel-close", type: "button", "aria-label": "Close", onClick: this.handleEmojiToggle }, "\u00D7")), h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, h("div", { class: { composer: true, recording: this.isRecording } }, this.isRecording ? (h("div", { class: "rec-body" }, h("div", { class: "rec-left" }, h("button", { class: "rec-icon-btn danger", type: "button", title: "Delete recording", "aria-label": "Delete recording", onClick: this.handleRecDelete }, h("img", { class: "theme-icon", src: Delete, alt: "" })), h("div", { class: "rec-timer-wrap" }, h("span", { class: { 'rec-dot': true, live: !this.isPaused } }), h("span", { class: "rec-timer" }, this.formatRecTime(this.recordingSeconds)))), h("div", { class: "rec-wave" }, h("audio-bubble", { liveRecord: true, audioProgressColor: "#2563eb", audioWaveColor: "#2563eb", ref: el => (this.recBubble = el), onRecordingProgress: this.onRecordingProgress, onRecordingError: this.onRecordingError })), h("button", { class: { 'rec-icon-btn': true, 'rec-toggle': true, pause: !this.isPaused }, type: "button", title: this.isPaused ? 'Resume recording' : 'Pause recording', "aria-label": this.isPaused ? 'Resume recording' : 'Pause recording', onClick: this.handleRecPauseToggle }, h("img", { class: "theme-icon", src: this.isPaused ? PlayIcon : PauseIcon, alt: "" })), h("button", { class: "rec-send", type: "button", title: "Send voice note", "aria-label": "Send voice note", onClick: this.handleRecSend }, h("img", { src: Send, alt: "" })))) : (h(Fragment, null, h("div", { class: "attach-wrap" }, h("button", { class: "icon-btn", type: "button", title: "Attach file", "aria-label": "Attach", onClick: this.handleAttachClick }, h("img", { src: Attachment, alt: "" })), this.showAttachMenu ? (h("div", { class: "attach-menu", style: this.attachMenuStyle }, h("button", { class: "attach-opt", type: "button", onClick: this.pickDocument }, h("span", { class: "attach-opt-icon attach-opt-icon--doc" }, h("img", { src: DocumentsIcon, alt: "" })), h("span", null, "Document")), h("button", { class: "attach-opt", type: "button", onClick: this.pickPhotos }, h("span", { class: "attach-opt-icon attach-opt-icon--photos" }, h("img", { class: "theme-icon", src: PhotosIcon, alt: "" })), h("span", null, "Photos & videos")), h("button", { class: "attach-opt", type: "button", onClick: this.pickCamera }, h("span", { class: "attach-opt-icon attach-opt-icon--camera" }, h("img", { class: "theme-icon", src: CameraIcon, alt: "" })), h("span", null, "Camera")))) : null), h("button", { class: "icon-btn", type: "button", title: "Emojis", "aria-label": "Emojis", onClick: this.handleEmojiToggle }, h("img", { src: Smile, alt: "" })), h("input", { class: "file-input", type: "file", multiple: true, accept: ".jpg,.jpeg,.png,.gif,.webp,.bmp,.heic,.mp4,.mov,.webm,.mkv,.mp3,.wav,.m4a,.aac,.ogg", ref: el => (this.mediaInputRef = el), onChange: this.handleNativeFileChange }), h("input", { class: "file-input", type: "file", multiple: true, accept: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.rtf,application/*", ref: el => (this.docInputRef = el), onChange: this.handleNativeFileChange }), h("textarea", { class: "composer-input", rows: 1, placeholder: "Type a message", value: this.messageBody, ref: el => (this.inputRef = el), onInput: this.handleComposerInput, onKeyDown: this.handleComposerKeyDown }), this.messageBody.trim() ? (h("button", { class: "icon-btn", type: "button", title: "Send", "aria-label": "Send", onClick: this.handleSendMessage }, h("img", { src: Send, alt: "" }))) : (h("button", { class: "icon-btn", type: "button", title: "Voice note", "aria-label": "Voice note", onClick: this.handleMicClick }, h("img", { src: Microphone, alt: "" })))))))))))));
|
|
990
|
+
: (_f = (_e = this.replyMessage) === null || _e === void 0 ? void 0 : _e.senderInfo) === null || _f === void 0 ? void 0 : _f.userName, onIconClick: this.handleremoveReplyMessage })) : null, h("div", { class: "composer-wrap", key: this.inputKey, ref: el => (this.composerWrapRef = el) }, this.showEmojiPicker ? (h("div", { class: "emoji-panel", style: this.emojiPanelStyle }, h("div", { class: "emoji-panel-header" }, h("span", null, "Emoji"), h("button", { class: "emoji-panel-close", type: "button", "aria-label": "Close", onClick: this.handleEmojiToggle }, "\u00D7")), h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, h("div", { class: { composer: true, recording: this.isRecording } }, this.isRecording ? (h("div", { class: "rec-body" }, h("div", { class: "rec-left" }, h("button", { class: "rec-icon-btn danger", type: "button", title: "Delete recording", "aria-label": "Delete recording", onClick: this.handleRecDelete }, h("img", { class: "theme-icon", src: Delete, alt: "" })), h("div", { class: "rec-timer-wrap" }, h("span", { class: { 'rec-dot': true, live: !this.isPaused } }), h("span", { class: "rec-timer" }, this.formatRecTime(this.recordingSeconds)))), h("div", { class: "rec-wave" }, h("audio-bubble", { liveRecord: true, audioProgressColor: "#2563eb", audioWaveColor: "#2563eb", ref: el => (this.recBubble = el), onRecordingProgress: this.onRecordingProgress, onRecordingError: this.onRecordingError })), h("button", { class: { 'rec-icon-btn': true, 'rec-toggle': true, pause: !this.isPaused }, type: "button", title: this.isPaused ? 'Resume recording' : 'Pause recording', "aria-label": this.isPaused ? 'Resume recording' : 'Pause recording', onClick: this.handleRecPauseToggle }, h("img", { class: "theme-icon", src: this.isPaused ? PlayIcon : PauseIcon, alt: "" })), h("button", { class: "rec-send", type: "button", title: "Send voice note", "aria-label": "Send voice note", onClick: this.handleRecSend }, h("img", { src: Send, alt: "" })))) : (h(Fragment, null, h("div", { class: "attach-wrap" }, h("button", { class: "icon-btn", type: "button", title: "Attach file", "aria-label": "Attach", onClick: this.handleAttachClick }, h("img", { src: Attachment, alt: "" })), this.showAttachMenu ? (h("div", { class: "attach-menu", style: this.attachMenuStyle }, h("button", { class: "attach-opt", type: "button", onClick: this.pickDocument }, h("span", { class: "attach-opt-icon attach-opt-icon--doc" }, h("img", { src: DocumentsIcon, alt: "" })), h("span", null, "Document")), h("button", { class: "attach-opt", type: "button", onClick: this.pickPhotos }, h("span", { class: "attach-opt-icon attach-opt-icon--photos" }, h("img", { class: "theme-icon", src: PhotosIcon, alt: "" })), h("span", null, "Photos & videos")), h("button", { class: "attach-opt", type: "button", onClick: this.pickCamera }, h("span", { class: "attach-opt-icon attach-opt-icon--camera" }, h("img", { class: "theme-icon", src: CameraIcon, alt: "" })), h("span", null, "Camera")))) : null), h("button", { class: "icon-btn", type: "button", title: "Emojis", "aria-label": "Emojis", onClick: this.handleEmojiToggle }, h("img", { src: Smile, alt: "" })), h("input", { class: "file-input", type: "file", multiple: true, accept: ".jpg,.jpeg,.png,.gif,.webp,.bmp,.heic,.mp4,.mov,.webm,.mkv,.mp3,.wav,.m4a,.aac,.ogg", ref: el => (this.mediaInputRef = el), onChange: this.handleNativeFileChange }), h("input", { class: "file-input", type: "file", multiple: true, accept: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.rtf,application/*", ref: el => (this.docInputRef = el), onChange: this.handleNativeFileChange }), h("textarea", { class: "composer-input", rows: 1, placeholder: "Type a message", value: this.messageBody, ref: el => (this.inputRef = el), onInput: this.handleComposerInput, onKeyDown: this.handleComposerKeyDown, onPaste: this.handleComposerPaste }), this.messageBody.trim() ? (h("button", { class: "icon-btn", type: "button", title: "Send", "aria-label": "Send", onClick: this.handleSendMessage }, h("img", { src: Send, alt: "" }))) : (h("button", { class: "icon-btn", type: "button", title: "Voice note", "aria-label": "Voice note", onClick: this.handleMicClick }, h("img", { src: Microphone, alt: "" })))))))))))));
|
|
856
991
|
}
|
|
857
992
|
get el() { return this; }
|
|
858
993
|
static get watchers() { return {
|
|
@@ -860,7 +995,7 @@ const ChatFooter = /*@__PURE__*/ proxyCustomElement(class ChatFooter extends HTM
|
|
|
860
995
|
"selectedConversationId": ["handleDataChange"],
|
|
861
996
|
"replyMessage": ["replyFocusHandler"]
|
|
862
997
|
}; }
|
|
863
|
-
static get style() { return ":host {\n display: block;\n width: var(--w-full);\n flex-shrink: 0;\n overflow: visible;\n position: relative;\n z-index: 40;\n font-family: var(--font-primary);\n }\n :host(.attachment-open) {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 4rem; /* keep web-chat-header visible */\n z-index: 60;\n flex-shrink: 0;\n overflow: hidden;\n }\n .chat-footer-container {\n position: relative;\n width: var(--w-full);\n padding: var(--space-12) var(--space-16);\n box-sizing: border-box;\n background: transparent;\n overflow: visible;\n }\n :host(.attachment-open) .chat-footer-container {\n height: var(--h-full);\n padding: 0;\n background: var(--bg-primary);\n overflow: hidden;\n }\n :host(.attachment-open) attachment-preview {\n display: block;\n height: var(--h-full);\n }\n .toaster {\n position: fixed;\n bottom: var(--space-16);\n right: var(--space-16);\n z-index: 1000;\n }\n .composer-wrap {\n position: relative;\n width: var(--w-full);\n overflow: visible;\n }\n .composer {\n display: flex;\n align-items: flex-end;\n gap: var(--gap-10);\n width: var(--w-full);\n box-sizing: border-box;\n padding: var(--space-8) var(--gap-14);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n border-radius: 1.5rem;\n box-shadow: 0 1px 2px var(--overlay);\n }\n .composer-input {\n flex: 1;\n min-height: var(--icon-md);\n max-height: 10rem;\n resize: none;\n overflow-y: auto;\n border: none;\n outline: none;\n background: transparent;\n color: var(--text-primary);\n font-size: var(--text-14);\n font-family: inherit;\n line-height: 1.4;\n padding: var(--gap-4);\n box-sizing: border-box;\n }\n .composer-input::placeholder {\n color: var(--text-tertiary);\n }\n .icon-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0 0 var(--gap-4);\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n opacity: 0.85;\n }\n .icon-btn:hover {\n opacity: 1;\n color: var(--brand);\n }\n .icon-btn img {\n width: var(--icon-md);\n height: var(--icon-md);\n display: block;\n object-fit: contain;\n }\n .emoji-panel {\n position: fixed;\n width: min(380px, calc(100vw - 24px));\n background: var(--bg-tertiary);\n border-radius: var(--rounded-12);\n box-shadow: 0 12px 40px var(--overlay);\n overflow: hidden;\n z-index: 9999;\n display: flex;\n flex-direction: column;\n isolation: isolate;\n }\n .emoji-panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-8);\n padding: var(--space-12) var(--space-12) var(--space-8) var(--space-16);\n background: var(--bg-tertiary);\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--text-primary);\n flex-shrink: 0;\n }\n .emoji-panel-close {\n border: none;\n background: transparent;\n cursor: pointer;\n width: var(--control);\n height: var(--control);\n border-radius: var(--rounded-8);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n font-size: var(--text-22);\n line-height: 1;\n padding: 0;\n flex-shrink: 0;\n }\n .emoji-panel-close:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n emoji-picker.emoji-picker {\n --background: var(--bg-tertiary);\n --border-color: transparent;\n --border-size: 0;\n --border-radius: 0;\n --indicator-color: var(--brand);\n --indicator-height: 3px;\n --input-border-radius: var(--rounded-8);\n --input-border-color: var(--border);\n --input-placeholder-color: var(--text-secondary);\n --input-font-color: var(--text-primary);\n --button-hover-background: var(--hover-overlay);\n --button-active-background: var(--bg-row-hover);\n --num-columns: 8;\n --emoji-size: 1.5rem;\n width: var(--w-full);\n height: 320px;\n }\n .file-input { display: none; }\n .attach-wrap {\n position: relative;\n flex-shrink: 0;\n }\n /* Fixed + JS coords \u2014 absolute left:0 breaks in split hosts (sidebar+pane). */\n .attach-menu {\n position: fixed;\n min-width: 12.5rem;\n background: var(--bg-primary);\n border-radius: var(--rounded-12);\n box-shadow: 0 2px 16px var(--overlay);\n border: 1px solid var(--border-subtle);\n padding: var(--space-8) 0;\n display: flex;\n flex-direction: column;\n z-index: 10050;\n }\n .attach-opt {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n width: var(--w-full);\n padding: var(--space-8) var(--space-16);\n border: none;\n background: transparent;\n cursor: pointer;\n text-align: left;\n font-family: inherit;\n font-size: var(--text-14);\n font-weight: var(--fw-400);\n color: var(--text-primary);\n white-space: nowrap;\n }\n .attach-opt:hover {\n background: var(--hover-overlay);\n }\n .attach-opt-icon {\n width: var(--text-16);\n height: var(--text-16);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n .attach-opt-icon img {\n width: var(--text-16);\n height: var(--text-16);\n object-fit: contain;\n display: block;\n }\n .attach-opt-icon--doc img {\n filter: none;\n }\n .attach-opt-icon--photos img {\n /* maps to --brand */\n filter: invert(32%) sepia(98%) saturate(1800%) hue-rotate(204deg) brightness(95%) contrast(95%);\n }\n .attach-opt-icon--camera img {\n /* maps to --danger */\n filter: invert(14%) sepia(98%) saturate(7400%) hue-rotate(0deg) brightness(100%) contrast(118%);\n }\n .composer.recording {\n align-items: center;\n justify-content: center;\n gap: var(--gap-16);\n padding: var(--space-8) var(--space-16);\n }\n .rec-body {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--gap-16);\n min-width: 0;\n width: auto;\n flex: 0 1 auto;\n max-width: 100%;\n }\n .rec-left, .rec-right {\n display: flex;\n align-items: center;\n gap: var(--gap-10);\n flex-shrink: 0;\n }\n .rec-timer-wrap {\n display: flex;\n align-items: center;\n gap: var(--gap-8);\n padding-left: var(--gap-4);\n }\n .rec-dot {\n width: 0.625rem;\n height: 0.625rem;\n border-radius: 9999px;\n background: var(--danger, #ef4444);\n flex-shrink: 0;\n }\n .rec-dot.live {\n animation: rec-pulse 1s ease-in-out infinite;\n }\n @keyframes rec-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.35; }\n }\n .rec-timer {\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n font-variant-numeric: tabular-nums;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n color: var(--text-primary);\n letter-spacing: -0.02em;\n }\n .rec-wave {\n flex: none;\n width: min(18rem, 42vw);\n min-width: 8rem;\n display: flex;\n align-items: center;\n justify-content: center;\n height:
|
|
998
|
+
static get style() { return ":host {\n display: block;\n width: var(--w-full);\n flex-shrink: 0;\n overflow: visible;\n position: relative;\n z-index: 40;\n font-family: var(--font-primary);\n }\n :host(.attachment-open) {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 4rem; /* keep web-chat-header visible */\n z-index: 60;\n flex-shrink: 0;\n overflow: hidden;\n }\n .chat-footer-container {\n position: relative;\n width: var(--w-full);\n padding: var(--space-12) var(--space-16);\n box-sizing: border-box;\n background: transparent;\n overflow: visible;\n }\n :host(.attachment-open) .chat-footer-container {\n height: var(--h-full);\n padding: 0;\n background: var(--bg-primary);\n overflow: hidden;\n }\n :host(.attachment-open) attachment-preview {\n display: block;\n height: var(--h-full);\n }\n .toaster {\n position: fixed;\n bottom: var(--space-16);\n right: var(--space-16);\n z-index: 1000;\n }\n .composer-wrap {\n position: relative;\n width: var(--w-full);\n overflow: visible;\n }\n .composer {\n display: flex;\n align-items: flex-end;\n gap: var(--gap-10);\n width: var(--w-full);\n box-sizing: border-box;\n padding: var(--space-8) var(--gap-14);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n border-radius: 1.5rem;\n box-shadow: 0 1px 2px var(--overlay);\n }\n .composer-input {\n flex: 1;\n min-height: var(--icon-md);\n max-height: 10rem;\n resize: none;\n overflow-y: auto;\n border: none;\n outline: none;\n background: transparent;\n color: var(--text-primary);\n font-size: var(--text-14);\n font-family: inherit;\n line-height: 1.4;\n padding: var(--gap-4);\n box-sizing: border-box;\n }\n .composer-input::placeholder {\n color: var(--text-tertiary);\n }\n .icon-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0 0 var(--gap-4);\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n opacity: 0.85;\n }\n .icon-btn:hover {\n opacity: 1;\n color: var(--brand);\n }\n .icon-btn img {\n width: var(--icon-md);\n height: var(--icon-md);\n display: block;\n object-fit: contain;\n }\n .emoji-panel {\n position: fixed;\n width: min(380px, calc(100vw - 24px));\n background: var(--bg-tertiary);\n border-radius: var(--rounded-12);\n box-shadow: 0 12px 40px var(--overlay);\n overflow: hidden;\n z-index: 9999;\n display: flex;\n flex-direction: column;\n isolation: isolate;\n }\n .emoji-panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-8);\n padding: var(--space-12) var(--space-12) var(--space-8) var(--space-16);\n background: var(--bg-tertiary);\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--text-primary);\n flex-shrink: 0;\n }\n .emoji-panel-close {\n border: none;\n background: transparent;\n cursor: pointer;\n width: var(--control);\n height: var(--control);\n border-radius: var(--rounded-8);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n font-size: var(--text-22);\n line-height: 1;\n padding: 0;\n flex-shrink: 0;\n }\n .emoji-panel-close:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n emoji-picker.emoji-picker {\n --background: var(--bg-tertiary);\n --border-color: transparent;\n --border-size: 0;\n --border-radius: 0;\n --indicator-color: var(--brand);\n --indicator-height: 3px;\n --input-border-radius: var(--rounded-8);\n --input-border-color: var(--border);\n --input-placeholder-color: var(--text-secondary);\n --input-font-color: var(--text-primary);\n --button-hover-background: var(--hover-overlay);\n --button-active-background: var(--bg-row-hover);\n --num-columns: 8;\n --emoji-size: 1.5rem;\n width: var(--w-full);\n height: 320px;\n }\n .file-input { display: none; }\n .attach-wrap {\n position: relative;\n flex-shrink: 0;\n }\n /* Fixed + JS coords \u2014 absolute left:0 breaks in split hosts (sidebar+pane). */\n .attach-menu {\n position: fixed;\n min-width: 12.5rem;\n background: var(--bg-primary);\n border-radius: var(--rounded-12);\n box-shadow: 0 2px 16px var(--overlay);\n border: 1px solid var(--border-subtle);\n padding: var(--space-8) 0;\n display: flex;\n flex-direction: column;\n z-index: 10050;\n }\n .attach-opt {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n width: var(--w-full);\n padding: var(--space-8) var(--space-16);\n border: none;\n background: transparent;\n cursor: pointer;\n text-align: left;\n font-family: inherit;\n font-size: var(--text-14);\n font-weight: var(--fw-400);\n color: var(--text-primary);\n white-space: nowrap;\n }\n .attach-opt:hover {\n background: var(--hover-overlay);\n }\n .attach-opt-icon {\n width: var(--text-16);\n height: var(--text-16);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n .attach-opt-icon img {\n width: var(--text-16);\n height: var(--text-16);\n object-fit: contain;\n display: block;\n }\n .attach-opt-icon--doc img {\n filter: none;\n }\n .attach-opt-icon--photos img {\n /* maps to --brand */\n filter: invert(32%) sepia(98%) saturate(1800%) hue-rotate(204deg) brightness(95%) contrast(95%);\n }\n .attach-opt-icon--camera img {\n /* maps to --danger */\n filter: invert(14%) sepia(98%) saturate(7400%) hue-rotate(0deg) brightness(100%) contrast(118%);\n }\n .composer.recording {\n align-items: center;\n justify-content: center;\n gap: var(--gap-16);\n padding: var(--space-8) var(--space-16);\n }\n .rec-body {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--gap-16);\n min-width: 0;\n width: auto;\n flex: 0 1 auto;\n max-width: 100%;\n }\n .rec-left, .rec-right {\n display: flex;\n align-items: center;\n gap: var(--gap-10);\n flex-shrink: 0;\n }\n .rec-timer-wrap {\n display: flex;\n align-items: center;\n gap: var(--gap-8);\n padding-left: var(--gap-4);\n }\n .rec-dot {\n width: 0.625rem;\n height: 0.625rem;\n border-radius: 9999px;\n background: var(--danger, #ef4444);\n flex-shrink: 0;\n }\n .rec-dot.live {\n animation: rec-pulse 1s ease-in-out infinite;\n }\n @keyframes rec-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.35; }\n }\n .rec-timer {\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n font-variant-numeric: tabular-nums;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n color: var(--text-primary);\n letter-spacing: -0.02em;\n }\n /* 2.5rem = AudioBubble LIVE_RECORD_WAVE_HEIGHT_PX (40) */\n .rec-wave {\n flex: none;\n width: min(18rem, 42vw);\n min-width: 8rem;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 2.5rem;\n overflow: hidden;\n padding: 0 var(--space-8);\n }\n .rec-wave audio-bubble {\n display: block;\n width: 100%;\n height: 2.5rem;\n min-width: 0;\n }\n .rec-icon-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0.375rem;\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n flex-shrink: 0;\n }\n .rec-icon-btn:hover {\n background: var(--hover-overlay);\n }\n .rec-icon-btn.danger {\n color: var(--danger, #ef4444);\n }\n .rec-icon-btn.danger:hover {\n background: color-mix(in srgb, var(--danger, #ef4444) 10%, transparent);\n }\n .rec-icon-btn img {\n width: 1.25rem;\n height: 1.25rem;\n display: block;\n object-fit: contain;\n }\n .rec-icon-btn.danger img {\n filter: invert(27%) sepia(98%) saturate(2800%) hue-rotate(346deg) brightness(95%) contrast(95%);\n }\n .rec-icon-btn.pause img {\n filter: invert(27%) sepia(98%) saturate(2800%) hue-rotate(346deg) brightness(95%) contrast(95%);\n }\n .rec-toggle {\n padding: 0.25rem;\n }\n .rec-toggle img {\n width: 1rem;\n height: 1rem;\n }\n .rec-send {\n width: 2.5rem;\n height: 2.5rem;\n border: none;\n border-radius: 9999px;\n background: var(--brand, #2563eb);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n box-shadow: 0 1px 2px var(--overlay);\n padding: 0;\n margin-left: var(--gap-4);\n }\n .rec-send:hover {\n filter: brightness(0.92);\n }\n .rec-send:active {\n transform: scale(0.95);\n }\n .rec-send img {\n width: 1.25rem;\n height: 1.25rem;\n display: block;\n object-fit: contain;\n filter: brightness(0) invert(1);\n }\n .theme-icon { filter: var(--svg-icon-filter); }"; }
|
|
864
999
|
}, [1, "chat-footer", {
|
|
865
1000
|
"userMetaData": [8, "user-meta-data"],
|
|
866
1001
|
"refetchMessages": [16],
|