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
package/dist/esm/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
export { W as WEB_CHAT_SLOTS, a as applyCustomPartProps, f as findWebChatHost } from './index-142896ce.js';
|
|
2
2
|
export { f as format } from './utils-11fcde98.js';
|
|
3
|
-
import { i as initializeIsometrikWebchat, d as destroyIsometrikWebchat, b as isometrikWebchatApi, k as customChatSidebar, s as switchChatTheme, g as applyCustomTheme, t as toggleTheme } from './runtime-controls-
|
|
4
|
-
export { W as WEB_CHAT_PUBLIC_EVENTS, l as WEB_CHAT_PUBLIC_METHODS, g as applyCustomTheme, n as buildWebchatSessionKey, v as clearWebChatSlot, w as createSlotHost, c as createWebChatApi, k as customChatSidebar, f as defineReactCustomPart, p as destroyChat, d as destroyIsometrikWebchat, e as ensureIsometrikWebchat, y as getChatStore, o as initializeChat, i as initializeIsometrikWebchat, b as isometrikWebchatApi, m as mountReactInSlot, a as releaseIsometrikWebchat, h as resolveThemeProvider, j as resolveWebChat, r as retainIsometrikWebchat, q as setWebChatSlot, x as setWebChatSlots, s as switchChatTheme, t as toggleTheme, u as unmountReactSlot } from './runtime-controls-
|
|
3
|
+
import { i as initializeIsometrikWebchat, d as destroyIsometrikWebchat, b as isometrikWebchatApi, k as customChatSidebar, s as switchChatTheme, g as applyCustomTheme, t as toggleTheme } from './runtime-controls-bdb84aeb.js';
|
|
4
|
+
export { W as WEB_CHAT_PUBLIC_EVENTS, l as WEB_CHAT_PUBLIC_METHODS, g as applyCustomTheme, n as buildWebchatSessionKey, v as clearWebChatSlot, w as createSlotHost, c as createWebChatApi, k as customChatSidebar, f as defineReactCustomPart, p as destroyChat, d as destroyIsometrikWebchat, e as ensureIsometrikWebchat, y as getChatStore, o as initializeChat, i as initializeIsometrikWebchat, b as isometrikWebchatApi, m as mountReactInSlot, a as releaseIsometrikWebchat, h as resolveThemeProvider, j as resolveWebChat, r as retainIsometrikWebchat, q as setWebChatSlot, x as setWebChatSlots, s as switchChatTheme, t as toggleTheme, u as unmountReactSlot } from './runtime-controls-bdb84aeb.js';
|
|
5
5
|
export { d as deriveMessageStatus } from './contracts-50f4ddae.js';
|
|
6
|
-
export { T as THEME_TOKEN_NAMES,
|
|
6
|
+
export { T as THEME_TOKEN_NAMES, d as applyThemeObjectToElement, n as normalizeThemeObject, g as resolveProfileRailMode, e as resolveRegionMode, r as resolveShowProfileRailProp } from './groupcast-4f15b050.js';
|
|
7
7
|
export { c as canUseIndexedDb, g as getOfflineClient, i as isBrowserOnline, m as mergeMessagesById } from './client-de7fbead.js';
|
|
8
8
|
import './destroy-chat-d0ee28d6.js';
|
|
9
|
-
import './send-media-
|
|
10
|
-
import './
|
|
11
|
-
import './local-notification-
|
|
9
|
+
import './send-media-04f7ca0a.js';
|
|
10
|
+
import './index.m-8c70037f.js';
|
|
11
|
+
import './local-notification-f9ae9062.js';
|
|
12
|
+
import './toast-f681e916.js';
|
|
13
|
+
import './messages-057dbecb.js';
|
|
12
14
|
import './chat-creds-aafad4d0.js';
|
|
13
|
-
import './groupcast-
|
|
15
|
+
import './groupcast-c6da3918.js';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* Tiny helper to define a reactive customPart CE.
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":"
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;AAAA;;;;SAIgB,wBAAwB,CACtC,GAAW,EACX,QAAkB,EAClB,MAAuD;IAEvD,IAAI,OAAO,cAAc,KAAK,WAAW,IAAI,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC;QAAE,OAAO;IAE7E,MAAM,YAAa,SAAQ,WAAW;QACpC,iBAAiB;YACf,MAAM,CAAC,IAAW,CAAC,CAAC;SACrB;KACF;IAED,QAAQ,CAAC,OAAO,CAAC,GAAG;QAClB,MAAM,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;QACxB,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,GAAG,EAAE;YACjD,GAAG;gBACD,OAAQ,IAAY,CAAC,KAAK,CAAC,CAAC;aAC7B;YACD,GAAG,CAAC,KAAK;gBACP,IAAK,IAAY,CAAC,KAAK,CAAC,KAAK,KAAK;oBAAE,OAAO;gBAC1C,IAAY,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;gBAC7B,IAAI,IAAI,CAAC,WAAW;oBAAE,MAAM,CAAC,IAAW,CAAC,CAAC;aAC3C;YACD,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;KACJ,CAAC,CAAC;;IAGF,YAAY,CAAC,SAAiB,CAAC,MAAM,GAAG,SAAS,YAAY;QAC5D,MAAM,CAAC,IAAI,CAAC,CAAC;KACd,CAAC;IAEF,cAAc,CAAC,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;AAC3C;;ACsEA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IAChC,MAAc,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;IACvE,MAAc,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;IACjE,MAAc,CAAC,cAAc,GAAG,0BAA0B,CAAC;IAC3D,MAAc,CAAC,WAAW,GAAG,uBAAuB,CAAC;IACrD,MAAc,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACzD,MAAc,CAAC,gBAAgB,GAAG,iBAAiB,CAAC;IACpD,MAAc,CAAC,eAAe,GAAG,eAAe,CAAC;IACjD,MAAc,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IACnD,MAAc,CAAC,WAAW,GAAG,WAAW,CAAC;AAC5C;;;;","names":[],"sources":["src/lib/custom-ui/define-part.ts","src/index.ts"],"sourcesContent":["/**\n * Tiny helper to define a reactive customPart CE.\n * Hosts get property setters that re-call `render` when SDK updates props.\n */\nexport function defineReactiveCustomPart(\n tag: string,\n propKeys: string[],\n render: (el: HTMLElement & Record<string, any>) => void,\n): void {\n if (typeof customElements === 'undefined' || customElements.get(tag)) return;\n\n class ReactivePart extends HTMLElement {\n connectedCallback() {\n render(this as any);\n }\n }\n\n propKeys.forEach(key => {\n const store = `_${key}`;\n Object.defineProperty(ReactivePart.prototype, key, {\n get() {\n return (this as any)[store];\n },\n set(value) {\n if ((this as any)[store] === value) return;\n (this as any)[store] = value;\n if (this.isConnected) render(this as any);\n },\n configurable: true,\n });\n });\n\n // Optional: SDK applyCustomPartProps looks for .render()\n (ReactivePart.prototype as any).render = function renderMethod() {\n render(this);\n };\n\n customElements.define(tag, ReactivePart);\n}\n","export type { WebChatSlotName, WebChatCustomParts } from './lib/custom-ui';\nexport type {\n ChatReadyDetail,\n ConversationsChangeDetail,\n MessagesChangeDetail,\n SelectionChangeDetail,\n ReplyChangeDetail,\n ChatErrorDetail,\n WebChatPublicEvent,\n WebChatPublicMethod,\n MessageDeliveryStatus,\n MessageBubbleProps,\n ChatTileProps,\n GroupcastTileProps,\n MessageDatePillProps,\n SearchResultProps,\n MemberRowProps,\n OverlayDialogProps,\n MediaGalleryProps,\n ContextMenuProps,\n BlockListProps,\n ToastPartProps,\n} from './lib/custom-ui';\nexport {\n WEB_CHAT_SLOTS,\n WEB_CHAT_PUBLIC_EVENTS,\n WEB_CHAT_PUBLIC_METHODS,\n deriveMessageStatus,\n findWebChatHost,\n applyCustomPartProps,\n defineReactiveCustomPart,\n} from './lib/custom-ui';\nexport { format } from './utils/utils';\n\nexport {\n initializeIsometrikWebchat,\n destroyIsometrikWebchat,\n ensureIsometrikWebchat,\n retainIsometrikWebchat,\n releaseIsometrikWebchat,\n buildWebchatSessionKey,\n initializeChat,\n destroyChat,\n THEME_TOKEN_NAMES,\n normalizeThemeObject,\n applyThemeObjectToElement,\n resolveRegionMode,\n resolveProfileRailMode,\n resolveShowProfileRailProp,\n createWebChatApi,\n isometrikWebchatApi,\n setWebChatSlot,\n clearWebChatSlot,\n createSlotHost,\n setWebChatSlots,\n defineReactCustomPart,\n mountReactInSlot,\n unmountReactSlot,\n resolveThemeProvider,\n resolveWebChat,\n getChatStore,\n getOfflineClient,\n mergeMessagesById,\n isBrowserOnline,\n canUseIndexedDb,\n} from './sdk';\nexport type {\n IsometrikWebchatInitProps,\n InitializeChatProps,\n IsometrikWebchatInstance,\n ThemeTokenName,\n ThemeTokenMap,\n RegionMode,\n ProfileRailMode,\n WebChatApi,\n IsometrikWebchatApi,\n ReactLike,\n CreateRootLike,\n ReactSlotHost,\n} from './sdk';\n\nexport {\n customChatSidebar,\n switchChatTheme,\n applyCustomTheme,\n toggleTheme,\n} from './sdk/runtime-controls';\n\nimport {\n initializeIsometrikWebchat,\n destroyIsometrikWebchat,\n} from './sdk';\nimport { isometrikWebchatApi } from './sdk/headless-api';\nimport {\n customChatSidebar,\n switchChatTheme,\n applyCustomTheme,\n toggleTheme,\n} from './sdk/runtime-controls';\n\n/**\n * Stencil-generated component types (full catalog).\n * Prefer the explicit custom-ui / InitializeChatProps exports above for host apps.\n * Lazy loader: `isometrik-webchat/loader`\n * Custom elements: `dist/components/` (dist-custom-elements output)\n */\nexport type * from './components.d.ts';\n\nif (typeof window !== 'undefined') {\n (window as any).initializeIsometrikWebchat = initializeIsometrikWebchat;\n (window as any).destroyIsometrikWebchat = destroyIsometrikWebchat;\n (window as any).initializeChat = initializeIsometrikWebchat;\n (window as any).destroyChat = destroyIsometrikWebchat;\n (window as any).isometrikWebchatApi = isometrikWebchatApi;\n (window as any).chatSidebarProps = customChatSidebar;\n (window as any).switchChatTheme = switchChatTheme;\n (window as any).applyCustomTheme = applyCustomTheme;\n (window as any).toggleTheme = toggleTheme;\n}\n"],"version":3}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { c as createCustomPartElement } from './index-142896ce.js';
|
|
2
|
-
|
|
3
1
|
function getAugmentedNamespace(n) {
|
|
4
2
|
if (n.__esModule) return n;
|
|
5
3
|
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
@@ -39,158 +37,6 @@ var ys=Object.defineProperty;var Kg=Object.getOwnPropertyDescriptor;var Gg=Objec
|
|
|
39
37
|
|
|
40
38
|
function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t);}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function o(e,t,n){return o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o},o.apply(null,arguments)}function i(e){var t="function"==typeof Map?new Map:void 0;return i=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n);}function n(){return o(e,arguments,r(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},i(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=/*#__PURE__*/function(e){function t(n,r){var s;return (s=e.call(this,r)||this).statusCode=void 0,Object.setPrototypeOf(a(s),(this instanceof t?this.constructor:void 0).prototype),s.name=Error.name,s.statusCode=n,Error.captureStackTrace(a(s)),s}return n(t,e),t}(/*#__PURE__*/i(Error)),u=/*#__PURE__*/function(e){function t(t,n){var r;return (r=e.call(this,400,"Conversation not found or not allowed to fetch messages count")||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n||0,r}return n(t,e),t}(c),h=/*#__PURE__*/function(e){function t(t,n){var r;return (r=e.call(this,404,t)||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n,r}return n(t,e),t}(c),p=/*#__PURE__*/function(e){function t(t){var n;return (n=e.call(this,503,"Service Unavailable")||this).errorMsg=void 0,n.errorMsg=t,n}return n(t,e),t}(c),f=/*#__PURE__*/function(e){function t(t,n){var r;return (r=e.call(this,422,"Unprocessable entity")||this).errorProperties=void 0,r.errorCode=void 0,r.errorProperties=t,r.errorCode=n||0,r}return n(t,e),t}(c),d=/*#__PURE__*/function(e){function t(t,n){var r;return (r=e.call(this,t,"Unknown Error Caught")||this).errorMsg=void 0,r.errorMsg=n,r}return n(t,e),t}(c),l=/*#__PURE__*/function(e){function t(t,n){var r;return (r=e.call(this,403,t)||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n,r}return n(t,e),t}(c),b=/*#__PURE__*/function(e){function t(t,n){var r;return (r=e.call(this,403,t)||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n,r}return n(t,e),t}(c),v=/*#__PURE__*/function(e){function t(t,n){var r;return (r=e.call(this,400,"Conversation not found or not allowed to fetch messages count")||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n||0,r}return n(t,e),t}(c),g=/*#__PURE__*/function(){function t(e){this.baseUrl=void 0,this.licenseKey=void 0,this.appSecret=void 0,this.userSecret=void 0,this.userToken=void 0,this.baseUrl=e.baseUrl,this.licenseKey=e.licenseKey,this.appSecret=e.appSecret,this.userSecret=e.userSecret,this.userToken=e.userToken||void 0;}var n=t.prototype;return n.updateUserToken=function(e){this.userToken=e;},n.invoke=function(t,n){try{return Promise.resolve(function(r,s){try{var o=Promise.resolve(browser(t,n)).then(function(e){if(e.ok)return e.json();var t=new Error(e.statusText);throw t.response=e,t});}catch(e){return s(e)}return o&&o.then?o.then(void 0,s):o}(0,function(e){var t=e.response.status;return Promise.resolve(e.response.json()).then(function(e){switch(t){case 400:throw new u(e.error);case 401:throw new b(e.error,e.errorCode);case 403:throw new l(e.error,e.errorCode);case 404:throw new h(e.error,e.errorCode);case 409:throw new v(e.error,e.errorCode);case 422:throw new f(e.errors);case 503:throw new p(e.error);default:throw new d(t,e.error)}})}))}catch(e){return Promise.reject(e)}},n.get=function(e,t){void 0===t&&(t=!1);var n=""+this.baseUrl+e,r={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};return t&&(r.userSecret=this.userSecret),this.invoke(n,{headers:r})},n.post=function(e,t,n){void 0===n&&(n=!1);var r=""+this.baseUrl+e,s={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};n&&(s.userSecret=this.userSecret);var o={method:"POST",body:JSON.stringify(t),headers:s};return this.invoke(r,o)},n.put=function(e,t,n){void 0===n&&(n=!1);var r=""+this.baseUrl+e,s={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};n&&(s.userSecret=this.userSecret);var o={method:"PUT",body:JSON.stringify(t),headers:s};return this.invoke(r,o)},n.patch=function(e,t,n){void 0===n&&(n=!1);var r=""+this.baseUrl+e,s={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};n&&(s.userSecret=this.userSecret);var o={method:"PATCH",body:JSON.stringify(t),headers:s};return this.invoke(r,o)},n.delete=function(e,t,n){void 0===n&&(n=!1);var r=""+this.baseUrl+e,s={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};n&&(s.userSecret=this.userSecret);var o={method:"DELETE",body:JSON.stringify(t),headers:s};return this.invoke(r,o)},t}(),m="chat/messages",y=/*#__PURE__*/function(){function e(e){this.base=void 0,this.base=new g(e);}var t=e.prototype;return t.getMessagesForUser=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+m+"/user?"+t)},t.getMessagesForMentioned=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+m+"/user?"+t)},t.getMessagesCount=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+m+"/count?"+t)},t.getMessages=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+m+"?"+t)},t.postMessages=function(e){return this.base.post("/chat/message",e)},t.patchMessages=function(e){return this.base.patch("/chat/message",e)},t.postMessagesPresignedurls=function(e){return this.base.post("/chat/messages/presignedurls",e)},t.getMessageReactionType=function(e,t){var n=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/reaction/"+t+"?"+n)},t.postReaction=function(e){return this.base.post("/chat/reaction",e)},t.deleteReactionType=function(e,t){var n=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/reaction/"+t+"?"+n)},t.postMessagesForward=function(e){return this.base.post("/chat/message/forward",e)},t.postMessagesbroadcast=function(e){return this.base.post("/chat/message/broadcast",e)},t.getStatus=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+m+"/status?"+t)},t.getStatusReadPending=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/message/status/read/pending?"+t)},t.getStatusRead=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/message/status/read?"+t)},t.getStatusDeliveryPending=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/message/status/delivery/pending?"+t)},t.getStatusDelivery=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/message/status/delivery?"+t)},t.postIndicateTyping=function(e){return this.base.post("/chat/indicator/typing",e)},t.putIndicateRead=function(e){return this.base.put("/chat/indicator/read",e)},t.putIndicateDelivered=function(e){return this.base.put("/chat/indicator/delivered",e)},t.getUnreadCount=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+m+"/unread/count?"+t)},t.getUnread=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+m+"/unread?"+t)},t.putRead=function(e){return this.base.put("/"+m+"/read",e)},t.deleteMessageSelf=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/"+m+"/self?"+t)},t.deleteMessagesEveryone=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/"+m+"/everyone?"+t)},e}(),j="chat/conversations",k=/*#__PURE__*/function(){function e(e){this.base=void 0,this.base=new g(e);}var t=e.prototype;return t.getWatchers=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+j+"/watchers?"+t)},t.getPublicOrOpen=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+j+"/watchers?"+t)},t.getConversationDetails=function(e,t){var n=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/conversation/details/"+t+"?"+n)},t.getConversationCount=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+j+"/count?"+t)},t.getConversations=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+j+"?"+t)},t.getUnreadConversations=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+j+"/unread?"+t)},t.getMessagingStatus=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/conversation/messaging/status?"+t)},t.postConversation=function(e){return this.base.post("/chat/conversation",e)},t.patchTitle=function(e){return this.base.patch("/chat/conversation/title",e)},t.patchSettings=function(e){return this.base.patch("/chat/conversation/settings",e)},t.patchImage=function(e){return this.base.patch("/chat/conversation/image",e)},t.patchDetails=function(e){return this.base.patch("/chat/conversation/details",e)},t.getConversationPresignedurl=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/conversation/presignedurl?"+t)},t.getStatusRead=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/conversation/status/read?"+t)},t.getObserver=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/conversation/members?"+t)},t.deleteObserverLeave=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/conversation/observer/leave?"+t)},t.putObserverJoin=function(e){return this.base.put("/chat/conversation/observer/join",e)},t.putMembers=function(e){return this.base.put("/chat/conversation/members",e)},t.getConversationMembers=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/conversation/members?"+t)},t.deleteConversationMembers=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/conversation/members?"+t)},t.getConversationMemberDetails=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/conversation/member/details?"+t)},t.getConversationEligibleMembers=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/conversation/eligible/members?"+t)},t.deleteConversationLeave=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/conversation/leave?"+t)},t.putConversationJoin=function(e){return this.base.put("/chat/conversation/join",e)},t.putConversationAdmin=function(e){return this.base.put("/chat/conversation/admin",e)},t.deleteConversationAdmin=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/conversation/admin?"+t)},t.getConversationUnreadCount=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/"+j+"/unread/count?"+t)},t.putConversationLastread=function(e){return this.base.put("/chat/conversation/lastread",e)},t.deleteConversationClear=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/conversation/local?"+t)},t.deleteConversationLocal=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/conversation/clear?"+t)},e}(),O=/*#__PURE__*/function(){function e(e){this.base=void 0,this.base=new g(e);}var t=e.prototype;return t.getUsers=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/users?"+t,!0)},t.getUserDetails=function(){return this.base.get("/chat/user/details")},t.postUserAuthenticate=function(e){var t=this,n=this.base.post("/chat/user/authenticate",e,!0);return n.then(function(e){t.base.updateUserToken(e.userToken);}),n},t.setUserToken=function(e){this.base.updateUserToken(e);},t.postUser=function(e){return this.base.post("/chat/user",e,!0)},t.patchUser=function(e){return this.base.patch("/chat/user",e)},t.deleteUser=function(){return this.base.delete("/chat/user")},t.postUserUnblock=function(e){return this.base.post("/chat/user/unblock",e)},t.getUserNonblock=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/user/nonblock?"+t)},t.getUserblockCount=function(){return this.base.get("/chat/user/block/count")},t.postUserBlock=function(e){return this.base.post("/chat/user/block",e)},t.getUserBlock=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/user/block?"+t)},t.getPresignedurlUpdate=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/user/presignedurl/update?"+t)},t.getPresignedurlCreate=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/user/presignedurl/update?"+t)},e}(),C=/*#__PURE__*/function(){function e(e){var n=this;this.hostUri=void 0,this.clientId=void 0,this.client=void 0,this.licenseKey=void 0,this.projectId=void 0,this.keysetId=void 0,this.accountId=void 0,this.deviceId=void 0,this.customUsername=void 0,this.customPassword=void 0,this.hostUri=e.hostUri,this.clientId=e.clientId,this.deviceId=e.deviceId,this.licenseKey=e.licenseKey,this.projectId=e.projectId,this.keysetId=e.keysetId,this.accountId=e.accountId,this.customUsername=e.customUsername||"",this.customPassword=e.customPassword||"",this.client=t.connect(this.hostUri,{clientId:this.clientId+this.deviceId,username:this.customUsername||"2"+this.accountId+this.projectId,password:this.customPassword||this.licenseKey+this.keysetId,keepalive:30,clean:!0}),this.client.on("connect",function(){console.log("Isometrick MQTT Connected !!",n.client);try{n.client.subscribe("/"+n.accountId+"/"+n.projectId+"/Message/"+n.clientId,{qos:0},function(e,t){e||console.log("Subscribed Successfully:: =>> Message",t),e&&console.log("Subscribed Failed || >>",e);}),n.client.subscribe("/"+n.accountId+"/"+n.projectId+"/Status/"+n.clientId,{qos:0},function(e,t){e||console.log("Subscribed Successfully:: =>> Message",t),e&&console.log("Subscribed Failed || >>",e);});}catch(e){console.error(e);}}),this.client.on("error",function(e){console.log("Isometrick MQTT Connection ERROR !!",e,{clientId:n.clientId+n.deviceId,username:n.customUsername||"2"+n.accountId+n.projectId,password:n.customPassword||n.licenseKey+n.keysetId,keepalive:30,clean:!0},n.hostUri);});}var n=e.prototype;return n.on=function(e,t){var n=this;switch(e){case"MESSAGE_RECEIVED":this.client.on("message",function(e,n){var r=Buffer.from(n).toString("utf8"),s=JSON.parse(r||"{}");t(s,e);});break;case"CONNECTION_LOST":this.client.stream.on("error",function(e){console.log("connection error",e),t(e),n.client.end();});}},n.disconnect=function(){this.client.end();},n.getInstance=function(){return this.client},e}(),S=/*#__PURE__*/function(){function e(e){this.base=void 0,this.base=new g(e);}var t=e.prototype;return t.getGroupCasts=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/groupcasts?"+t)},t.postGroupCast=function(e){return this.base.post("/chat/groupcast",e)},t.patchGroupCast=function(e){return this.base.patch("/chat/groupcast",e)},t.deleteGroupCastConversation=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/groupcast?"+t)},t.getGroupcastStatus=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/groupcast/messages/status}?"+t)},t.getGroupCastStatusReadPending=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/groupcast/message/status/read/pending?"+t)},t.getGroupCastStatusRead=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/groupcast/message/status/read?"+t)},t.getGroupCastStatusDeliveryPending=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/groupcast/message/status/delivery/pending?"+t)},t.getGroupCastStatusDelivery=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/groupcast/message/status/delivery?"+t)},t.getGroupCastMessages=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/groupcast/messages?"+t)},t.postGroupCastMessage=function(e){return this.base.post("/chat/groupcast/message",e)},t.deleteMessageSelf=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/groupcast/message/self?"+t)},t.deleteMessageEveryone=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.delete("/chat/groupcast/message/everyone?"+t)},t.getGroupCastMembers=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/groupcast/members?"+t)},t.addMembersToGroupCast=function(e){return this.base.put("/chat/groupcast/members",e)},t.removeMemebersFromGroupCast=function(e){return this.base.delete("/chat/groupcast/members",e)},t.getEligibleMembersForGroupCast=function(e){var t=e?Object.keys(e).map(function(t){return t+"="+e[t]}).join("&"):"";return this.base.get("/chat/groupcast/eligible/members?"+t)},e}(),w={BadRequestError:u,ConflictError:v,ForbiddenErrorRequest:l,NotFoundError:h,ServiceUnavailableError:p,UnauthorizedError:b,UnknownError:d,UnprocessableEntityError:f},M=/*#__PURE__*/function(){function e(e){this.message=void 0,this.Conversation=void 0,this.user=void 0,this.groupcast=void 0,this.error=void 0,this.message=new y(e),this.Conversation=new k(e),this.user=new O(e),this.error=w,this.groupcast=new S(e);}return e.getInstance=function(){if(null!==e.instance)return e.instance;throw new Error("Need to initialize instance first!")},e.getMqttInstance=function(){if(null!==e.mqttInstance)return e.mqttInstance;throw new Error("Need to initialize MQTT instance first!")},e.initializeInstance=function(t){return null===e.instance&&(e.instance=new e(t)),e.instance},e.prototype.initializeMqtt=function(t){return null===e.mqttInstance&&(e.mqttInstance=new C(t)),e.mqttInstance},e}();M.instance=null,M.mqttInstance=null;
|
|
41
39
|
|
|
42
|
-
|
|
43
|
-
* Map raw API / SDK errors to short user-facing copy.
|
|
44
|
-
* Never surface HTTP status phrases like "Unprocessable entity".
|
|
45
|
-
*/
|
|
46
|
-
function friendlyToastMessage(raw, fallback = 'Something went wrong. Try again.') {
|
|
47
|
-
var _a, _b;
|
|
48
|
-
const s = String((_b = (_a = raw === null || raw === void 0 ? void 0 : raw.message) !== null && _a !== void 0 ? _a : raw) !== null && _b !== void 0 ? _b : '')
|
|
49
|
-
.trim()
|
|
50
|
-
.replace(/\s+/g, ' ');
|
|
51
|
-
if (!s)
|
|
52
|
-
return fallback;
|
|
53
|
-
const lower = s.toLowerCase();
|
|
54
|
-
if (lower.includes('unprocessable') ||
|
|
55
|
-
lower.includes('422') ||
|
|
56
|
-
lower === 'bad request' ||
|
|
57
|
-
lower.includes('invalid payload')) {
|
|
58
|
-
return "Couldn't send that message. Please try again.";
|
|
59
|
-
}
|
|
60
|
-
if (lower.includes('network') ||
|
|
61
|
-
lower.includes('failed to fetch') ||
|
|
62
|
-
lower.includes('timeout')) {
|
|
63
|
-
return 'Network issue. Check your connection and try again.';
|
|
64
|
-
}
|
|
65
|
-
if (lower.includes('unauthorized') ||
|
|
66
|
-
lower.includes('401') ||
|
|
67
|
-
lower.includes('forbidden') ||
|
|
68
|
-
lower.includes('403')) {
|
|
69
|
-
return 'Session expired. Please refresh and try again.';
|
|
70
|
-
}
|
|
71
|
-
if (lower.includes('not found') || lower.includes('404')) {
|
|
72
|
-
return 'That chat is no longer available.';
|
|
73
|
-
}
|
|
74
|
-
// Keep short human messages; truncate giant stack/JSON blobs.
|
|
75
|
-
if (s.length > 120 || s.startsWith('{') || s.includes('\n'))
|
|
76
|
-
return fallback;
|
|
77
|
-
return s;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
class ToastHelper {
|
|
81
|
-
constructor() {
|
|
82
|
-
this.container = document.createElement('div');
|
|
83
|
-
this.container.id = 'isometrik-toast-root';
|
|
84
|
-
Object.assign(this.container.style, {
|
|
85
|
-
position: 'fixed',
|
|
86
|
-
zIndex: '100000',
|
|
87
|
-
display: 'flex',
|
|
88
|
-
flexDirection: 'column',
|
|
89
|
-
gap: '8px',
|
|
90
|
-
pointerEvents: 'none',
|
|
91
|
-
maxWidth: 'min(22rem, calc(100vw - 2rem))',
|
|
92
|
-
});
|
|
93
|
-
document.body.appendChild(this.container);
|
|
94
|
-
}
|
|
95
|
-
static getInstance() {
|
|
96
|
-
if (!ToastHelper.instance)
|
|
97
|
-
ToastHelper.instance = new ToastHelper();
|
|
98
|
-
return ToastHelper.instance;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Solid fallbacks — host themes often leave --danger / --bg-primary unset
|
|
102
|
-
* or map --bg-primary to a light surface (white-on-white toast).
|
|
103
|
-
*/
|
|
104
|
-
getTypeStyles(type = 'info') {
|
|
105
|
-
const styles = {
|
|
106
|
-
success: {
|
|
107
|
-
bgColor: 'var(--success, #15803d)',
|
|
108
|
-
color: '#ffffff',
|
|
109
|
-
progressBarColor: 'rgba(255,255,255,0.55)',
|
|
110
|
-
borderColor: 'transparent',
|
|
111
|
-
},
|
|
112
|
-
error: {
|
|
113
|
-
bgColor: 'var(--danger, #b91c1c)',
|
|
114
|
-
color: '#ffffff',
|
|
115
|
-
progressBarColor: 'rgba(255,255,255,0.55)',
|
|
116
|
-
borderColor: 'transparent',
|
|
117
|
-
},
|
|
118
|
-
warning: {
|
|
119
|
-
bgColor: 'var(--text-warning-color, #c2410c)',
|
|
120
|
-
color: '#ffffff',
|
|
121
|
-
progressBarColor: 'rgba(255,255,255,0.55)',
|
|
122
|
-
borderColor: 'transparent',
|
|
123
|
-
},
|
|
124
|
-
info: {
|
|
125
|
-
bgColor: 'var(--hoa-chat-ink, #18181b)',
|
|
126
|
-
color: '#ffffff',
|
|
127
|
-
progressBarColor: 'rgba(255,255,255,0.55)',
|
|
128
|
-
borderColor: 'transparent',
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
return styles[type] || styles.info;
|
|
132
|
-
}
|
|
133
|
-
setPosition(position = 'top-right') {
|
|
134
|
-
// Clear previous transform so center variants don't stick.
|
|
135
|
-
this.container.style.transform = '';
|
|
136
|
-
const positions = {
|
|
137
|
-
'top-right': { top: '1rem', right: '1rem', bottom: 'auto', left: 'auto' },
|
|
138
|
-
'top-left': { top: '1rem', right: 'auto', bottom: 'auto', left: '1rem' },
|
|
139
|
-
// Sit above typical chat composer (~5.5rem).
|
|
140
|
-
'bottom-right': { top: 'auto', right: '1rem', bottom: '5.5rem', left: 'auto' },
|
|
141
|
-
'bottom-left': { top: 'auto', right: 'auto', bottom: '5.5rem', left: '1rem' },
|
|
142
|
-
'top-center': {
|
|
143
|
-
top: '1rem',
|
|
144
|
-
right: 'auto',
|
|
145
|
-
bottom: 'auto',
|
|
146
|
-
left: '50%',
|
|
147
|
-
transform: 'translateX(-50%)',
|
|
148
|
-
},
|
|
149
|
-
'bottom-center': {
|
|
150
|
-
top: 'auto',
|
|
151
|
-
right: 'auto',
|
|
152
|
-
bottom: '5.5rem',
|
|
153
|
-
left: '50%',
|
|
154
|
-
transform: 'translateX(-50%)',
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
Object.assign(this.container.style, positions[position] || positions['top-right']);
|
|
158
|
-
}
|
|
159
|
-
show(options) {
|
|
160
|
-
const { duration = 3500, type = 'info', position = 'top-right' } = options;
|
|
161
|
-
const message = friendlyToastMessage(options.message);
|
|
162
|
-
this.setPosition(position);
|
|
163
|
-
const toast = document.createElement('toast-notification');
|
|
164
|
-
const styles = this.getTypeStyles(type);
|
|
165
|
-
toast.bgColor = styles.bgColor;
|
|
166
|
-
toast.color = styles.color;
|
|
167
|
-
toast.progressBarColor = styles.progressBarColor;
|
|
168
|
-
toast.progressBarBg = 'transparent';
|
|
169
|
-
toast.borderColor = styles.borderColor;
|
|
170
|
-
toast.borderWidth = '0';
|
|
171
|
-
toast.toastMessage = message;
|
|
172
|
-
toast.padding = '12px 14px';
|
|
173
|
-
toast.borderRadius = '0.5rem';
|
|
174
|
-
toast.width = '100%';
|
|
175
|
-
toast.fontWeight = '600';
|
|
176
|
-
toast.style.pointerEvents = 'auto';
|
|
177
|
-
toast.style.display = 'block';
|
|
178
|
-
toast.style.boxShadow = '0 8px 24px rgba(24, 24, 27, 0.18)';
|
|
179
|
-
this.container.appendChild(toast);
|
|
180
|
-
setTimeout(() => toast.remove(), duration);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
const showToast = (options) => {
|
|
184
|
-
var _a;
|
|
185
|
-
const custom = createCustomPartElement('toast', Object.assign(Object.assign({}, options), { message: friendlyToastMessage(options.message) }));
|
|
186
|
-
if (custom) {
|
|
187
|
-
document.body.appendChild(custom);
|
|
188
|
-
setTimeout(() => custom.remove(), (_a = options.duration) !== null && _a !== void 0 ? _a : 3500);
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
ToastHelper.getInstance().show(options);
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
export { M, showToast as s };
|
|
40
|
+
export { M };
|
|
195
41
|
|
|
196
|
-
//# sourceMappingURL=
|
|
42
|
+
//# sourceMappingURL=index.m-8c70037f.js.map
|