isometrik-plugin-chat-sdk 1.3.19 → 2.0.0
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/app-globals-61a8bfde.js +38 -0
- package/dist/cjs/app-globals-61a8bfde.js.map +1 -0
- package/dist/cjs/attachment-preview_22.cjs.entry.js +122 -44
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
- package/dist/cjs/audio-bubble_4.cjs.entry.js +38 -8
- package/dist/cjs/audio-bubble_4.cjs.entry.js.map +1 -1
- package/dist/cjs/chat-app.cjs.entry.js +2 -2
- package/dist/cjs/chat-app.cjs.entry.js.map +1 -1
- package/dist/cjs/{chat-creds-cf537d4b.js → chat-creds-2dbc4087.js} +3 -3
- package/dist/cjs/chat-creds-2dbc4087.js.map +1 -0
- 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-video-message-bubble.cjs.entry.js +1 -1
- package/dist/cjs/client-80851676.js +482 -0
- package/dist/cjs/client-80851676.js.map +1 -0
- package/dist/cjs/{contracts-31632812.js → contracts-dfc84075.js} +2 -2
- package/dist/cjs/contracts-dfc84075.js.map +1 -0
- package/dist/cjs/destroy-chat-7ae8fc99.js +24 -0
- package/dist/cjs/destroy-chat-7ae8fc99.js.map +1 -0
- package/dist/cjs/doublecheck-c2461adc.js +36 -0
- package/dist/cjs/doublecheck-c2461adc.js.map +1 -0
- package/dist/cjs/{drawer-28cc94a4.js → drawer-811d2ce8.js} +2 -2
- package/dist/cjs/{drawer-28cc94a4.js.map → drawer-811d2ce8.js.map} +1 -1
- package/dist/cjs/forward-memebers.cjs.entry.js +2 -2
- 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-73ad1074.js → group-members-5a82ec8a.js} +1 -125
- package/dist/cjs/group-members-5a82ec8a.js.map +1 -0
- package/dist/cjs/{helpers-8061ec7d.js → helpers-154861e9.js} +2 -2
- package/dist/cjs/{helpers-8061ec7d.js.map → helpers-154861e9.js.map} +1 -1
- package/dist/cjs/{index-1a26d11d.js → index-66f98408.js} +2 -2
- package/dist/cjs/index-66f98408.js.map +1 -0
- package/dist/cjs/index.cjs.js +55 -182
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/isometrik-webchat.cjs.js +10 -2
- package/dist/cjs/isometrik-webchat.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +10 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/login-page_3.cjs.entry.js +689 -369
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/cjs/media-gallery.cjs.entry.js +1 -1
- package/dist/cjs/media-limits-eba42629.js +165 -0
- package/dist/cjs/media-limits-eba42629.js.map +1 -0
- package/dist/cjs/member-add.cjs.entry.js +3 -3
- package/dist/cjs/message-bubble.cjs.entry.js +30 -8
- package/dist/cjs/message-bubble.cjs.entry.js.map +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/new-chat-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/reaction-container.cjs.entry.js +4 -4
- package/dist/cjs/runtime-controls-201c71ba.js +650 -0
- package/dist/cjs/runtime-controls-201c71ba.js.map +1 -0
- package/dist/cjs/send-media-14908d4b.js +375 -0
- package/dist/cjs/send-media-14908d4b.js.map +1 -0
- package/dist/cjs/signup-page.cjs.entry.js +1 -1
- package/dist/cjs/{toast-0bf1e688.js → toast-f810e550.js} +8 -8
- package/dist/cjs/toast-f810e550.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +61 -14
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js +2 -2
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +7 -6
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/attachment-preview/attachment-preview.js +39 -8
- package/dist/collection/components/ChatUIComponent/shared/attachment-preview/attachment-preview.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js +53 -3
- 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/image-message/image-message.js +19 -1
- 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/message-bubble/message-bubble.js +47 -7
- package/dist/collection/components/ChatUIComponent/shared/message-bubble/message-bubble.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/message-date-pill/message-date-pill.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/new chat/new-chat.stories.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble/outgoing-text-message-bubble.js +19 -1
- package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble/outgoing-text-message-bubble.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js +20 -2
- package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js.map +1 -1
- package/dist/collection/components/my-component/my-component.js +1 -1
- package/dist/collection/components/my-component/web-chat/FLOW.js +1 -1
- package/dist/collection/components/my-component/web-chat/FLOW.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/WebChat.js +113 -12
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/bootstrap.js +7 -0
- package/dist/collection/components/my-component/web-chat/bootstrap.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/data-fetch.js +14 -5
- package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/mqtt-host.js +133 -34
- package/dist/collection/components/my-component/web-chat/mqtt-host.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/offline-host.js +212 -0
- package/dist/collection/components/my-component/web-chat/offline-host.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/public-send.js +96 -21
- 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 +47 -28
- package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
- package/dist/collection/components/theme-provider.js +114 -45
- package/dist/collection/components/theme-provider.js.map +1 -1
- package/dist/collection/constants/chat-creds.js +2 -2
- package/dist/collection/demos/custom-ui-demo-elements.js +2 -2
- package/dist/collection/demos/custom-ui-demo-elements.js.map +1 -1
- package/dist/collection/global/expose-sdk.js +29 -0
- package/dist/collection/global/expose-sdk.js.map +1 -0
- package/dist/collection/index.js +10 -141
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/lib/chat/index.js +3 -0
- package/dist/collection/lib/chat/index.js.map +1 -1
- package/dist/collection/lib/chat/media-limits.js +21 -0
- package/dist/collection/lib/chat/media-limits.js.map +1 -0
- package/dist/collection/lib/chat/media-outbox.js +43 -0
- package/dist/collection/lib/chat/media-outbox.js.map +1 -0
- package/dist/collection/lib/chat/preview-kind.js +41 -0
- package/dist/collection/lib/chat/preview-kind.js.map +1 -0
- package/dist/collection/lib/chat/send-media.js +5 -2
- package/dist/collection/lib/chat/send-media.js.map +1 -1
- package/dist/collection/lib/custom-ui/contracts.js +1 -1
- package/dist/collection/lib/custom-ui/contracts.js.map +1 -1
- package/dist/collection/lib/custom-ui/index.js +1 -1
- package/dist/collection/lib/custom-ui/index.js.map +1 -1
- package/dist/collection/lib/custom-ui/public-api.js +1 -0
- package/dist/collection/lib/custom-ui/public-api.js.map +1 -1
- package/dist/collection/lib/destroy-chat.js +15 -16
- package/dist/collection/lib/destroy-chat.js.map +1 -0
- package/dist/collection/lib/mqtt/inbound-queue.js +17 -0
- package/dist/collection/lib/mqtt/inbound-queue.js.map +1 -0
- package/dist/collection/lib/mqtt/index.js +2 -1
- package/dist/collection/lib/mqtt/index.js.map +1 -1
- package/dist/collection/lib/mqtt/session.js +50 -6
- package/dist/collection/lib/mqtt/session.js.map +1 -1
- package/dist/collection/lib/offline/client.js +167 -0
- package/dist/collection/lib/offline/client.js.map +1 -0
- package/dist/collection/lib/offline/idb.js +181 -0
- package/dist/collection/lib/offline/idb.js.map +1 -0
- package/dist/collection/lib/offline/index.js +10 -0
- package/dist/collection/lib/offline/index.js.map +1 -0
- package/dist/collection/lib/offline/memory-db.js +64 -0
- package/dist/collection/lib/offline/memory-db.js.map +1 -0
- package/dist/collection/lib/offline/merge.js +24 -0
- package/dist/collection/lib/offline/merge.js.map +1 -0
- package/dist/collection/lib/offline/multitab.js +47 -0
- package/dist/collection/lib/offline/multitab.js.map +1 -0
- package/dist/collection/lib/offline/types.js +2 -0
- package/dist/collection/lib/offline/types.js.map +1 -0
- package/dist/collection/lib/toast.js +6 -6
- package/dist/collection/lib/toast.js.map +1 -1
- package/dist/collection/sdk/api.js +4 -0
- package/dist/collection/sdk/api.js.map +1 -0
- package/dist/collection/sdk/composition.js +43 -0
- package/dist/collection/sdk/composition.js.map +1 -0
- package/dist/collection/sdk/headless-api.js +37 -0
- package/dist/collection/sdk/headless-api.js.map +1 -0
- package/dist/collection/sdk/index.js +11 -0
- package/dist/collection/sdk/index.js.map +1 -0
- package/dist/collection/sdk/init.js +207 -0
- package/dist/collection/sdk/init.js.map +1 -0
- package/dist/collection/sdk/instance.js +63 -0
- package/dist/collection/sdk/instance.js.map +1 -0
- package/dist/collection/sdk/react-bridge.js +145 -0
- package/dist/collection/sdk/react-bridge.js.map +1 -0
- package/dist/collection/sdk/runtime-controls.js +54 -0
- package/dist/collection/sdk/runtime-controls.js.map +1 -0
- package/dist/collection/sdk/slots.js +57 -0
- package/dist/collection/sdk/slots.js.map +1 -0
- package/dist/collection/sdk/theme-tokens.js +99 -0
- package/dist/collection/sdk/theme-tokens.js.map +1 -0
- package/dist/collection/sdk/webchat-api.js +36 -0
- package/dist/collection/sdk/webchat-api.js.map +1 -0
- package/dist/collection/testing/chat-assets-mock.js +45 -0
- package/dist/collection/testing/chat-creds-mock.js +18 -0
- package/dist/collection/testing/emoji-picker-mock.js +2 -0
- package/dist/collection/testing/file-mock.js +1 -0
- package/dist/collection/testing/groupcast-mock.js +7 -0
- package/dist/collection/testing/helpers-mock.js +4 -0
- package/dist/collection/testing/iso-chat-sdk-mock.js +19 -0
- package/dist/collection/testing/toast-mock.js +2 -0
- package/dist/components/ChatFooter.js +62 -15
- package/dist/components/ChatFooter.js.map +1 -1
- package/dist/components/ChatSidebar.js +1 -1
- package/dist/components/{GroupCast.js → GroupCast2.js} +2 -2
- package/dist/components/GroupCast2.js.map +1 -0
- package/dist/components/WebChat.js +624 -305
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/WebChatBody.js +8 -7
- package/dist/components/WebChatBody.js.map +1 -1
- package/dist/components/attachment-preview2.js +40 -9
- package/dist/components/attachment-preview2.js.map +1 -1
- package/dist/components/chat-app.js +3 -3
- package/dist/components/chat-app.js.map +1 -1
- package/dist/components/chat-assets.js +1 -1
- package/dist/components/chat-creds.js +2 -2
- package/dist/components/chat-creds.js.map +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-tile2.js +1 -1
- package/dist/components/chat-video-message-bubble.js +1 -1
- package/dist/components/client.js +728 -0
- package/dist/components/client.js.map +1 -0
- package/dist/components/contact-info2.js +2 -117
- package/dist/components/contact-info2.js.map +1 -1
- package/dist/components/contracts.js +1 -1
- package/dist/components/contracts.js.map +1 -1
- package/dist/components/destroy-chat.js +14 -16
- package/dist/components/destroy-chat.js.map +1 -1
- package/dist/components/document-message2.js +35 -5
- package/dist/components/document-message2.js.map +1 -1
- package/dist/components/forward-message.js +2 -2
- package/dist/components/group-cast.js +1 -1
- package/dist/components/{groupcast2.js → groupcast.js} +1 -1
- package/dist/components/groupcast.js.map +1 -0
- package/dist/components/image-message2.js +3 -1
- package/dist/components/image-message2.js.map +1 -1
- package/dist/components/incoming-text-message-bubble2.js +1 -1
- package/dist/components/index.js +551 -60
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/media-limits.js +24 -0
- package/dist/components/media-limits.js.map +1 -0
- package/dist/components/member-add.js +1 -1
- package/dist/components/message-bubble2.js +31 -7
- package/dist/components/message-bubble2.js.map +1 -1
- package/dist/components/message-date-pill2.js +1 -1
- package/dist/components/messages.js +131 -0
- package/dist/components/messages.js.map +1 -0
- package/dist/components/my-component.js +1 -1
- package/dist/components/outgoing-text-message-bubble2.js +3 -1
- package/dist/components/outgoing-text-message-bubble2.js.map +1 -1
- package/dist/components/preview-kind.js +30 -0
- package/dist/components/preview-kind.js.map +1 -0
- package/dist/components/reaction-container.js +2 -2
- package/dist/components/reply-message-container2.js +1 -1
- package/dist/components/theme-provider2.js +56 -44
- package/dist/components/theme-provider2.js.map +1 -1
- package/dist/components/theme-tokens.js +102 -0
- package/dist/components/theme-tokens.js.map +1 -0
- package/dist/components/toast.js +6 -6
- package/dist/components/toast.js.map +1 -1
- package/dist/components/video-message2.js +4 -2
- package/dist/components/video-message2.js.map +1 -1
- package/dist/esm/app-globals-2beecb81.js +36 -0
- package/dist/esm/app-globals-2beecb81.js.map +1 -0
- package/dist/esm/attachment-preview_22.entry.js +120 -42
- package/dist/esm/attachment-preview_22.entry.js.map +1 -1
- package/dist/esm/audio-bubble_4.entry.js +39 -9
- package/dist/esm/audio-bubble_4.entry.js.map +1 -1
- package/dist/esm/chat-app.entry.js +2 -2
- package/dist/esm/chat-app.entry.js.map +1 -1
- package/dist/esm/{chat-assets-e3173222.js → chat-assets-bb056958.js} +2 -2
- package/dist/esm/{chat-assets-e3173222.js.map → chat-assets-bb056958.js.map} +1 -1
- package/dist/esm/{chat-creds-5d0982fc.js → chat-creds-aafad4d0.js} +3 -3
- package/dist/esm/chat-creds-aafad4d0.js.map +1 -0
- 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 +1 -1
- package/dist/esm/chat-video-message-bubble.entry.js +1 -1
- package/dist/esm/client-4a3e00da.js +477 -0
- package/dist/esm/client-4a3e00da.js.map +1 -0
- package/dist/esm/{contracts-614be4db.js → contracts-50f4ddae.js} +2 -2
- package/dist/esm/contracts-50f4ddae.js.map +1 -0
- package/dist/esm/destroy-chat-d0ee28d6.js +22 -0
- package/dist/esm/destroy-chat-d0ee28d6.js.map +1 -0
- package/dist/esm/doublecheck-261763ef.js +32 -0
- package/dist/esm/doublecheck-261763ef.js.map +1 -0
- package/dist/esm/{drawer-8f721119.js → drawer-74c188f1.js} +2 -2
- package/dist/esm/{drawer-8f721119.js.map → drawer-74c188f1.js.map} +1 -1
- package/dist/esm/forward-memebers.entry.js +3 -3
- package/dist/esm/forward-message.entry.js +2 -2
- package/dist/esm/group-chat-contacts.entry.js +2 -2
- package/dist/esm/{group-members-806fd7a2.js → group-members-05414da2.js} +2 -118
- package/dist/esm/group-members-05414da2.js.map +1 -0
- package/dist/esm/{groupcast-2ce7187f.js → groupcast-9c7d2a32.js} +2 -2
- package/dist/esm/{groupcast-2ce7187f.js.map → groupcast-9c7d2a32.js.map} +1 -1
- package/dist/esm/{helpers-4c6d09a7.js → helpers-f33b895c.js} +2 -2
- package/dist/esm/{helpers-4c6d09a7.js.map → helpers-f33b895c.js.map} +1 -1
- package/dist/esm/{index-beb184c6.js → index-4c865e34.js} +2 -2
- package/dist/esm/index-4c865e34.js.map +1 -0
- package/dist/esm/index.js +17 -171
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isometrik-webchat.js +10 -2
- package/dist/esm/isometrik-webchat.js.map +1 -1
- package/dist/esm/loader.js +10 -2
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/login-page_3.entry.js +672 -352
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/esm/media-gallery.entry.js +1 -1
- package/dist/esm/media-limits-3fa07c09.js +152 -0
- package/dist/esm/media-limits-3fa07c09.js.map +1 -0
- package/dist/esm/member-add.entry.js +5 -5
- package/dist/esm/message-bubble.entry.js +30 -8
- package/dist/esm/message-bubble.entry.js.map +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/new-chat-sidebar.entry.js +3 -3
- package/dist/esm/reaction-container.entry.js +4 -4
- package/dist/esm/runtime-controls-cf599fe2.js +623 -0
- package/dist/esm/runtime-controls-cf599fe2.js.map +1 -0
- package/dist/esm/send-media-917dcc2f.js +353 -0
- package/dist/esm/send-media-917dcc2f.js.map +1 -0
- package/dist/esm/signup-page.entry.js +1 -1
- package/dist/esm/{toast-d8ea763c.js → toast-533dd183.js} +8 -8
- package/dist/esm/toast-533dd183.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.css +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-0731d488.js +2 -0
- package/dist/isometrik-webchat/p-0731d488.js.map +1 -0
- package/dist/isometrik-webchat/{p-a15092d9.entry.js → p-1854b156.entry.js} +2 -2
- package/dist/isometrik-webchat/p-1854b156.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-5fea3fd2.entry.js → p-2d3e8cd4.entry.js} +2 -2
- package/dist/isometrik-webchat/p-315eee9a.js +2 -0
- package/dist/isometrik-webchat/p-315eee9a.js.map +1 -0
- package/dist/isometrik-webchat/{p-e7f58d3f.entry.js → p-39b626ed.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-eb1f3118.entry.js → p-3c70c22c.entry.js} +2 -2
- package/dist/isometrik-webchat/p-4cb54460.js +2 -0
- package/dist/isometrik-webchat/p-4cb54460.js.map +1 -0
- package/dist/isometrik-webchat/{p-f24cdbbb.js → p-5162774c.js} +1 -1
- package/dist/isometrik-webchat/p-5162774c.js.map +1 -0
- package/dist/isometrik-webchat/p-53ee98a7.entry.js +2 -0
- package/dist/isometrik-webchat/p-53ee98a7.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-5cbc1a16.entry.js → p-586f6978.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-5f7eebbf.entry.js → p-5d243250.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-23df1c24.js → p-5d98a8a0.js} +2 -2
- package/dist/isometrik-webchat/p-7f415f28.js +2 -0
- package/dist/isometrik-webchat/p-7f415f28.js.map +1 -0
- package/dist/isometrik-webchat/{p-d386acfe.js → p-7fd2c1ad.js} +1 -1
- package/dist/isometrik-webchat/p-7fd2c1ad.js.map +1 -0
- package/dist/isometrik-webchat/{p-e5884258.js → p-9982fa21.js} +2 -2
- package/dist/isometrik-webchat/{p-4db39c93.js → p-a5707f12.js} +2 -2
- package/dist/isometrik-webchat/{p-af775c83.entry.js → p-a876991d.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-7b80b0b2.js → p-adc45831.js} +1 -1
- package/dist/isometrik-webchat/p-adc45831.js.map +1 -0
- package/dist/isometrik-webchat/p-ae168135.js +2 -0
- package/dist/isometrik-webchat/p-ae168135.js.map +1 -0
- package/dist/isometrik-webchat/{p-a6897edc.js → p-b1330793.js} +1 -1
- package/dist/isometrik-webchat/p-b1330793.js.map +1 -0
- package/dist/isometrik-webchat/p-b61d6c0c.entry.js +2 -0
- package/dist/isometrik-webchat/p-b61d6c0c.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-b667a9fc.js +2 -0
- package/dist/isometrik-webchat/p-b667a9fc.js.map +1 -0
- package/dist/isometrik-webchat/p-b857775d.entry.js +2 -0
- package/dist/isometrik-webchat/p-bdcdf1c5.js +2 -0
- package/dist/isometrik-webchat/p-bdcdf1c5.js.map +1 -0
- package/dist/isometrik-webchat/p-c0c19621.entry.js +2 -0
- package/dist/isometrik-webchat/{p-064d6200.entry.js → p-ca47d693.entry.js} +2 -2
- package/dist/isometrik-webchat/p-d720cf14.entry.js +2 -0
- package/dist/isometrik-webchat/{p-53695fc6.entry.js.map → p-d720cf14.entry.js.map} +1 -1
- package/dist/isometrik-webchat/{p-5c22ee37.entry.js → p-d892b4d4.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-7eb12da3.js → p-dd62bd69.js} +2 -2
- package/dist/isometrik-webchat/p-eb54f75d.js +2 -0
- package/dist/isometrik-webchat/p-eb54f75d.js.map +1 -0
- package/dist/isometrik-webchat/p-f1fbf3be.entry.js +2 -0
- package/dist/isometrik-webchat/p-f1fbf3be.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-fb705915.entry.js +2 -0
- package/dist/isometrik-webchat/p-fb705915.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-2f6bb0a4.entry.js → p-fd6ce589.entry.js} +2 -2
- package/dist/isometrik-webchat/p-fdd327f5.entry.js +2 -0
- package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +1 -0
- package/dist/types/components/ChatUIComponent/shared/attachment-preview/attachment-preview.d.ts +2 -0
- package/dist/types/components/ChatUIComponent/shared/document-message/document-message.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/shared/image-message/image-message.d.ts +1 -0
- package/dist/types/components/ChatUIComponent/shared/message-bubble/message-bubble.d.ts +3 -0
- package/dist/types/components/ChatUIComponent/shared/outgoing-text-message-bubble/outgoing-text-message-bubble.d.ts +1 -0
- package/dist/types/components/ChatUIComponent/shared/video-message/video-message.d.ts +1 -0
- package/dist/types/components/my-component/web-chat/FLOW.d.ts +1 -1
- package/dist/types/components/my-component/web-chat/mqtt-host.d.ts +5 -0
- package/dist/types/components/my-component/web-chat/offline-host.d.ts +22 -0
- package/dist/types/components/theme-provider.d.ts +22 -27
- package/dist/types/components.d.ts +84 -11
- package/dist/types/demos/custom-ui-demo-elements.d.ts +1 -1
- package/dist/types/global/expose-sdk.d.ts +1 -0
- package/dist/types/index.d.ts +3 -44
- package/dist/types/lib/chat/index.d.ts +3 -0
- package/dist/types/lib/chat/media-limits.d.ts +11 -0
- package/dist/types/lib/chat/media-outbox.d.ts +8 -0
- package/dist/types/lib/chat/preview-kind.d.ts +30 -0
- package/dist/types/lib/custom-ui/contracts.d.ts +1 -1
- package/dist/types/lib/custom-ui/index.d.ts +1 -1
- package/dist/types/lib/custom-ui/public-api.d.ts +1 -1
- package/dist/types/lib/destroy-chat.d.ts +2 -0
- package/dist/types/lib/mqtt/inbound-queue.d.ts +7 -0
- package/dist/types/lib/mqtt/index.d.ts +2 -1
- package/dist/types/lib/mqtt/session.d.ts +22 -0
- package/dist/types/lib/offline/client.d.ts +44 -0
- package/dist/types/lib/offline/idb.d.ts +36 -0
- package/dist/types/lib/offline/index.d.ts +10 -0
- package/dist/types/lib/offline/memory-db.d.ts +20 -0
- package/dist/types/lib/offline/merge.d.ts +3 -0
- package/dist/types/lib/offline/multitab.d.ts +13 -0
- package/dist/types/lib/offline/types.d.ts +63 -0
- package/dist/types/sdk/api.d.ts +3 -0
- package/dist/types/sdk/composition.d.ts +32 -0
- package/dist/types/sdk/headless-api.d.ts +37 -0
- package/dist/types/sdk/index.d.ts +10 -0
- package/dist/types/sdk/init.d.ts +87 -0
- package/dist/types/sdk/instance.d.ts +15 -0
- package/dist/types/sdk/react-bridge.d.ts +64 -0
- package/dist/types/sdk/runtime-controls.d.ts +14 -0
- package/dist/types/sdk/slots.d.ts +15 -0
- package/dist/types/sdk/theme-tokens.d.ts +22 -0
- package/dist/types/sdk/webchat-api.d.ts +22 -0
- package/docs/ARCHITECTURE.md +272 -0
- package/docs/CUSTOMIZATION.md +236 -0
- package/docs/INTEGRATION.md +286 -0
- package/docs/RELIABILITY.md +51 -0
- package/docs/theme-tokens.template.css +72 -0
- package/package.json +8 -2
- package/readme.md +38 -17
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/chat-creds-cf537d4b.js.map +0 -1
- package/dist/cjs/contracts-31632812.js.map +0 -1
- package/dist/cjs/destroy-chat-be25dec7.js +0 -26
- package/dist/cjs/destroy-chat-be25dec7.js.map +0 -1
- package/dist/cjs/doublecheck-997afc94.js +0 -7
- package/dist/cjs/doublecheck-997afc94.js.map +0 -1
- package/dist/cjs/group-members-73ad1074.js.map +0 -1
- package/dist/cjs/index-1a26d11d.js.map +0 -1
- package/dist/cjs/toast-0bf1e688.js.map +0 -1
- package/dist/components/GroupCast.js.map +0 -1
- package/dist/components/groupcast2.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/chat-creds-5d0982fc.js.map +0 -1
- package/dist/esm/contracts-614be4db.js.map +0 -1
- package/dist/esm/destroy-chat-e2ebe165.js +0 -24
- package/dist/esm/destroy-chat-e2ebe165.js.map +0 -1
- package/dist/esm/doublecheck-5e208ef0.js +0 -5
- package/dist/esm/doublecheck-5e208ef0.js.map +0 -1
- package/dist/esm/group-members-806fd7a2.js.map +0 -1
- package/dist/esm/index-beb184c6.js.map +0 -1
- package/dist/esm/toast-d8ea763c.js.map +0 -1
- package/dist/isometrik-webchat/p-01fd0eb4.entry.js +0 -2
- package/dist/isometrik-webchat/p-01fd0eb4.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-0f9c3f95.entry.js +0 -2
- package/dist/isometrik-webchat/p-0f9c3f95.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-1c53e658.js +0 -2
- package/dist/isometrik-webchat/p-1c53e658.js.map +0 -1
- package/dist/isometrik-webchat/p-1df58381.entry.js +0 -2
- package/dist/isometrik-webchat/p-1df58381.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-3c690532.entry.js +0 -2
- package/dist/isometrik-webchat/p-3c690532.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-3c8cbd5f.js +0 -2
- package/dist/isometrik-webchat/p-3c8cbd5f.js.map +0 -1
- package/dist/isometrik-webchat/p-4e762019.js +0 -2
- package/dist/isometrik-webchat/p-4e762019.js.map +0 -1
- package/dist/isometrik-webchat/p-53695fc6.entry.js +0 -2
- package/dist/isometrik-webchat/p-7b80b0b2.js.map +0 -1
- package/dist/isometrik-webchat/p-9924b1bf.entry.js +0 -2
- package/dist/isometrik-webchat/p-a15092d9.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-a6897edc.js.map +0 -1
- package/dist/isometrik-webchat/p-b2bf55b1.entry.js +0 -2
- package/dist/isometrik-webchat/p-bfecfa97.entry.js +0 -2
- package/dist/isometrik-webchat/p-d386acfe.js.map +0 -1
- package/dist/isometrik-webchat/p-e1255160.js +0 -2
- package/dist/isometrik-webchat/p-e1255160.js.map +0 -1
- package/dist/isometrik-webchat/p-f24cdbbb.js.map +0 -1
- /package/dist/isometrik-webchat/{p-5fea3fd2.entry.js.map → p-2d3e8cd4.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-e7f58d3f.entry.js.map → p-39b626ed.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-eb1f3118.entry.js.map → p-3c70c22c.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-5cbc1a16.entry.js.map → p-586f6978.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-5f7eebbf.entry.js.map → p-5d243250.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-23df1c24.js.map → p-5d98a8a0.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-e5884258.js.map → p-9982fa21.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-4db39c93.js.map → p-a5707f12.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-af775c83.entry.js.map → p-a876991d.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-bfecfa97.entry.js.map → p-b857775d.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-9924b1bf.entry.js.map → p-c0c19621.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-064d6200.entry.js.map → p-ca47d693.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-5c22ee37.entry.js.map → p-d892b4d4.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-7eb12da3.js.map → p-dd62bd69.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-2f6bb0a4.entry.js.map → p-fd6ce589.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-b2bf55b1.entry.js.map → p-fdd327f5.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as n,a as e,h as i,g as t}from"./p-17a96a2a.js";import{i as r,j as a,k as s,l as o,r as d,M as l,s as h,t as c,B as u,h as f,D as p,S as b,d as v}from"./p-4db39c93.js";import{C as g}from"./p-8fea0c86.js";const m=class{constructor(i){n(this,i);this.tileMenu=e(this,"chat-tile-menu",7);this.toggleMenu=n=>{n.stopPropagation();if(this.menuOpen){this.menuOpen=false;this.menuPos=null;return}const e=n.currentTarget;const i=e.getBoundingClientRect();this.menuPos={top:i.bottom+2,left:i.right-8};this.menuOpen=true};this.emitAction=(n,e)=>{n.stopPropagation();this.menuOpen=false;this.menuPos=null;this.tileMenu.emit({action:e,conversationId:this.conversationId})};this.imageSrc=undefined;this.imageAlt=undefined;this.imageHeight=undefined;this.imageWidth=undefined;this.imageRadius=undefined;this.imageFillColor=undefined;this.imageTextColor=undefined;this.username="";this.userNameColor=undefined;this.userNameFontFamily=undefined;this.userNameFontWeight=undefined;this.usernameFontSize=undefined;this.usernameFontStyle=undefined;this.chatPreview="";this.chatPreviewColor=undefined;this.chatPreviewFontFamily=undefined;this.chatPreviewFontWeight=undefined;this.chatPreviewFontSize=undefined;this.chatPreviewFontStyle=undefined;this.unreadCount=0;this.unreadCountColor=undefined;this.unreadCountFontSize=undefined;this.unreadCountBgColor=undefined;this.unreadCountBorderRadius=undefined;this.unreadCountWidth=undefined;this.unreadCountHeight=undefined;this.messageDate="";this.messageDateColor=undefined;this.messageDateFontFamily=undefined;this.messageDateFontWeight=undefined;this.messageDateFontSize=undefined;this.messageDateFontStyle=undefined;this.padding=undefined;this.usernamePadding=undefined;this.chatPreviewPadding=undefined;this.messageDatePadding=undefined;this.bgColor=undefined;this.borderWidth=undefined;this.borderColor=undefined;this.borderStyle=undefined;this.height=undefined;this.width=undefined;this.isSelected=undefined;this.sidebarSelectedColor=undefined;this.suffix=undefined;this.suffixColor=undefined;this.suffixBgColor=undefined;this.gap=undefined;this.isTyping=undefined;this.typingUserName=undefined;this.isRead=undefined;this.isPending=undefined;this.isDelivered=undefined;this.isSelfMessage=undefined;this.mediaType=undefined;this.mediaLabel=undefined;this.isGroup=false;this.conversationId=undefined;this.onClick=undefined;this.onContextmenu=undefined;this.title=undefined;this.subtitle=undefined;this.time=undefined;this.menuOpen=false;this.menuPos=null}onDocClick(n){if(!this.menuOpen)return;if(!n.composedPath().includes(this.el)){this.menuOpen=false;this.menuPos=null}}docIcon(n){const e=(n||"").toLowerCase();if(/\.xlsx?$/.test(e)||e.endsWith(".csv"))return r;if(e.endsWith(".rtf"))return a;if(e.endsWith(".txt"))return s;return o}previewMeta(){if(this.isTyping)return{label:`${this.typingUserName||"Someone"} typing…`};if(this.mediaType===1)return{icon:d,label:"Image"};if(this.mediaType===2)return{label:"Video"};if(this.mediaType===3)return{icon:this.docIcon(this.mediaLabel),label:this.mediaLabel||"Document"};if(this.mediaType===4)return{icon:l,label:"Audio"};if(this.mediaType===5)return{icon:h,label:"Link"};return null}previewText(){const n=this.previewMeta();if(n)return n.label;return this.chatPreview||this.subtitle||""}render(){const n=this.imageWidth||this.imageHeight||undefined;return i("div",{key:"fb68abaeb105b737e02e35c2a7edb2470d98100a",class:`chat-tile-container${this.isSelected?" selected":""}${this.menuOpen?" menu-open":""}`,style:{background:this.bgColor||undefined,padding:this.padding,gap:this.gap,height:this.height,width:this.width||undefined,borderWidth:this.borderWidth,borderColor:this.borderColor,borderStyle:this.borderStyle},onClick:n=>{var e;return(e=this.onClick)===null||e===void 0?void 0:e.call(this,n)},onContextMenu:n=>{var e;return(e=this.onContextmenu)===null||e===void 0?void 0:e.call(this,n)}},i("div",{key:"60b69a4c90397e361bbcaf6c20573116a74b47d8",class:"avatar-slot"},i("profile-avatar",{key:"665e4f470a3086958e9d869e4af4bba2e0e05191",src:this.imageSrc||"",name:this.username||this.title||"",size:n,radius:this.imageRadius,isGroup:this.isGroup})),i("div",{key:"e318c8bbb1d473a604f5ac9dfdacd67fb5c32ad8",class:"meta"},i("span",{key:"32cda6250be984de9cf274222e33488e504be30a",class:"username",style:{color:this.userNameColor,fontFamily:this.userNameFontFamily,fontWeight:this.userNameFontWeight,fontSize:this.usernameFontSize,fontStyle:this.usernameFontStyle,padding:this.usernamePadding}},this.username||this.title,this.suffix?i("span",{class:"suffix",style:{color:this.suffixColor,background:this.suffixBgColor}},this.suffix):null),i("span",{key:"2598f879334e2f161aaf7587d56c480f8463183e",class:"date",style:{color:this.messageDateColor,fontFamily:this.messageDateFontFamily,fontWeight:this.messageDateFontWeight,fontSize:this.messageDateFontSize,fontStyle:this.messageDateFontStyle,padding:this.messageDatePadding}},this.messageDate||this.time),i("span",{key:"067228a761a7c81d0f13713247e557b1dde07938",class:"preview",style:{color:this.chatPreviewColor,fontFamily:this.chatPreviewFontFamily,fontWeight:this.chatPreviewFontWeight,fontSize:this.chatPreviewFontSize,fontStyle:this.chatPreviewFontStyle,padding:this.chatPreviewPadding}},(()=>{const n=this.previewMeta();if(n===null||n===void 0?void 0:n.icon){return[i("img",{class:"preview-icon",src:n.icon,alt:""}),i("span",{class:"preview-label"},n.label)]}return i("span",{class:"preview-label"},this.previewText())})()),i("div",{key:"b9e5838d6ee8d0036a259868c1233039f3c35620",class:"trailing"},i("button",{key:"ec2e0c0b60f09afb51929b3c539a14bc64794acf",type:"button",class:"menu-btn",title:"Chat options","aria-label":"Chat options",onClick:this.toggleMenu},i("img",{key:"79cec1837f6d1d23282b91b6f985a028c56536f5",class:"theme-icon",src:c,alt:""})),this.unreadCount>0?i("span",{class:"unread",style:{color:this.unreadCountColor,background:this.unreadCountBgColor,fontSize:this.unreadCountFontSize,borderRadius:this.unreadCountBorderRadius,width:this.unreadCountWidth,height:this.unreadCountHeight}},this.unreadCount):null,this.menuOpen&&this.menuPos?i("div",{class:"tile-menu",role:"menu",style:{top:`${this.menuPos.top}px`,left:`${this.menuPos.left}px`},onClick:n=>n.stopPropagation()},!this.isGroup?i("button",{type:"button",class:"tile-menu-item",role:"menuitem",onClick:n=>this.emitAction(n,"block")},i("img",{class:"theme-icon",src:u,alt:""}),i("span",null,"Block")):null,i("button",{type:"button",class:"tile-menu-item",role:"menuitem",onClick:n=>this.emitAction(n,"clear")},i("img",{class:"theme-icon",src:f,alt:""}),i("span",null,"Clear chat")),i("button",{type:"button",class:"tile-menu-item danger",role:"menuitem",onClick:n=>this.emitAction(n,"delete")},i("img",{class:"theme-icon",src:p,alt:""}),i("span",null,"Delete chat"))):null)))}get el(){return t(this)}};m.style=":host {\n display: block;\n cursor: pointer;\n font-family: var(--font-primary);\n min-width: 0;\n max-width: var(--w-full);\n overflow: hidden;\n }\n .chat-tile-container {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-12) var(--space-16);\n width: var(--w-full);\n max-width: var(--w-full);\n min-width: 0;\n overflow: hidden;\n border-left: var(--strip) solid transparent;\n background: transparent;\n transition: background-color 0.15s;\n position: relative;\n }\n .chat-tile-container:hover {\n background-color: var(--bg-row-hover);\n }\n .chat-tile-container.selected {\n background-color: var(--bg-row-hover);\n border-left-color: var(--brand);\n }\n .chat-tile-container.selected:hover {\n background-color: var(--bg-row-hover);\n }\n .avatar-slot { flex-shrink: 0; }\n .meta {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n grid-template-rows: auto auto;\n column-gap: var(--gap-8);\n row-gap: var(--gap-2);\n align-items: center;\n }\n .username {\n grid-column: 1;\n grid-row: 1;\n font-weight: 600;\n font-size: var(--text-14);\n color: var(--text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n }\n .date {\n grid-column: 2;\n grid-row: 1;\n font-size: var(--text-10);\n color: var(--text-tertiary);\n white-space: nowrap;\n line-height: 1.2;\n }\n .chat-tile-container.selected .date {\n color: var(--brand);\n font-weight: 500;\n }\n .preview {\n grid-column: 1;\n grid-row: 2;\n font-size: var(--text-12);\n color: var(--text-secondary);\n white-space: nowrap;\n overflow: hidden;\n display: flex;\n align-items: center;\n gap: var(--gap-4);\n min-width: 0;\n }\n .preview-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n flex: 1;\n }\n .preview-icon {\n width: 1em;\n height: 1em;\n flex-shrink: 0;\n object-fit: contain;\n }\n .trailing {\n grid-column: 2;\n grid-row: 2;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n min-width: var(--icon-md);\n min-height: var(--icon-md);\n position: relative;\n }\n .menu-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background: transparent;\n border-radius: var(--rounded-full);\n cursor: pointer;\n color: var(--text-tertiary);\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.15s, background-color 0.15s, color 0.15s;\n }\n .chat-tile-container:hover .menu-btn,\n .chat-tile-container.menu-open .menu-btn {\n opacity: 1;\n pointer-events: auto;\n }\n .chat-tile-container:hover .unread,\n .chat-tile-container.menu-open .unread {\n display: none;\n }\n .menu-btn:hover {\n color: var(--text-primary);\n background: var(--hover-overlay);\n }\n .menu-btn img {\n width: 1rem;\n height: 1rem;\n display: block;\n }\n .tile-menu {\n position: fixed;\n width: 10rem;\n background: var(--bg-primary);\n border-radius: var(--rounded-8);\n box-shadow: 0 2px 16px var(--overlay);\n border: 1px solid var(--border-subtle);\n padding: var(--gap-6) 0;\n z-index: 1000;\n }\n .tile-menu-item {\n width: calc(100% - 12px);\n margin: 0 6px;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--gap-6) var(--space-12);\n border: none;\n background: transparent;\n border-radius: var(--rounded-8);\n cursor: pointer;\n text-align: left;\n font-size: var(--text-12);\n font-weight: 200;\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .tile-menu-item:hover {\n background: var(--brand-soft);\n color: var(--brand);\n }\n .tile-menu-item.danger {\n color: var(--danger);\n }\n .tile-menu-item.danger:hover {\n background: var(--hover-overlay);\n color: var(--danger);\n }\n .tile-menu-item img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n flex-shrink: 0;\n object-fit: contain;\n }\n .unread {\n min-width: var(--badge);\n height: var(--badge);\n border-radius: var(--rounded-full);\n padding: 0 var(--gap-6);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: var(--text-10);\n color: var(--text-on-brand);\n background: var(--brand);\n }\n .suffix {\n font-size: var(--text-10);\n padding: var(--gap-2) var(--gap-6);\n border-radius: var(--rounded-4);\n margin-left: var(--gap-4);\n }\n .theme-icon { filter: var(--svg-icon-filter); }";const y=class{constructor(e){n(this,e);this.onSearch=n=>{const e=n.target.value;this.searchText=e;clearTimeout(this.debounceTimer);this.debounceTimer=setTimeout((()=>{if(typeof this.getForwardMessageMemberList==="function"){this.getForwardMessageMemberList(e||null,0)}}),400)};this.clearSelected=n=>{n.stopPropagation();this.selectedIds=[];this.selectedContacts=[]};this.onScroll=n=>{const e=n.target;if(e.scrollHeight-e.scrollTop<=e.clientHeight+10&&this.hasMore&&!this.paginationLoading){if(typeof this.getForwardMessageMemberList==="function"){this.getForwardMessageMemberList(this.searchText||null,(this.skip||0)+20)}}};this.bgColor=undefined;this.padding=undefined;this.height=undefined;this.width=undefined;this.label=undefined;this.hideTopbar=false;this.fontFamily=undefined;this.textColor=undefined;this.fontSize=undefined;this.selectedContacts=[];this.contactList=[];this.conversationList=[];this.isSearching=false;this.getForwardMessageMemberList=undefined;this.onSend=undefined;this.isLoading=false;this.paginationLoading=false;this.hasMore=false;this.skip=0;this.searchText="";this.selectedIds=[]}items(){return this.isSearching?this.contactList||[]:this.conversationList||this.contactList||[]}nameOf(n){var e;return((e=n===null||n===void 0?void 0:n.opponentDetails)===null||e===void 0?void 0:e.userName)||(n===null||n===void 0?void 0:n.userName)||(n===null||n===void 0?void 0:n.conversationTitle)||"Unknown"}idOf(n){var e;return((e=n===null||n===void 0?void 0:n.opponentDetails)===null||e===void 0?void 0:e.userId)||(n===null||n===void 0?void 0:n.userId)||(n===null||n===void 0?void 0:n.conversationId)||this.nameOf(n)}imageOf(n){var e;return((e=n===null||n===void 0?void 0:n.opponentDetails)===null||e===void 0?void 0:e.userProfileImageUrl)||(n===null||n===void 0?void 0:n.userProfileImageUrl)||(n===null||n===void 0?void 0:n.conversationImageUrl)}toggle(n){const e=this.idOf(n);const i=this.nameOf(n);if(this.selectedIds.includes(e)){this.selectedIds=this.selectedIds.filter((n=>n!==e));this.selectedContacts=(this.selectedContacts||[]).filter((n=>n!==i&&n!==e))}else{this.selectedIds=[...this.selectedIds,e];this.selectedContacts=[...this.selectedContacts||[],i]}}send(){if(typeof this.onSend==="function")this.onSend(this.selectedIds,this.selectedContacts)}render(){var n,e,t,r;const a=this.items();return i("div",{key:"ca1f00269cf3960fb3c00241208e37e28d9081f0",class:"searchable-list-container",style:{backgroundColor:this.bgColor,color:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,height:this.height,width:this.width,padding:this.padding}},this.hideTopbar?null:i("div",{class:"searchable-list-topbar"},this.label||"Forward to…"),i("div",{key:"d651729750222ab241c2962a5e0447024e95f23e",class:"searchable-list-searchbar"},i("input",{key:"83c58c3d9ee2a3ec3366c478d0e54fc47c5a5f88",type:"text",placeholder:"Search",value:this.searchText,onInput:this.onSearch})),this.isLoading?i("div",{class:"empty"},i("spinner-loader",{height:"24px",width:"24px"})):a.length===0?i("div",{class:"empty"},"No results"):i("div",{class:"searchable-list-tile",onScroll:this.onScroll},a.map((n=>{const e=this.idOf(n);const t=this.selectedIds.includes(e);return i("div",{class:`row ${t?"selected":""}`,onClick:()=>this.toggle(n)},i("profile-avatar",{src:this.imageOf(n)||"",name:this.nameOf(n),size:"var(--control)"}),i("span",{class:"row-name"},this.nameOf(n)),i("input",{class:"row-check",type:"checkbox",checked:t,readOnly:true}))})),this.paginationLoading?i("div",{class:"empty"},i("spinner-loader",{height:"20px",width:"20px"})):null),i("div",{key:"38bf55281f5ade607128775ef71dd9e24b6ad9ed",class:`footer ${this.selectedIds.length?"":"hidden"}`},i("div",{key:"16f1df42887adf956b771001bd90e7f3ddbec4e0",class:"chip"},i("span",{key:"6e998baf178c0e155cb9c05473be59e8677a5e12",class:"chip-dot"}),i("span",{key:"ca8ec9fb4ad583afe1599508b80f8e7850b0b45d"},this.selectedIds.length," selected"),i("button",{key:"38b8fa1ec1cecec1d9c6dc1e300994fff6fc128b",class:"chip-clear",type:"button","aria-label":"Clear selection",onClick:this.clearSelected},i("img",{key:"df487e92908efe0afe656bc205031a1ff66ca668",class:"theme-icon",src:g,alt:""}))),i("button",{key:"57a28e88ca1d4c6480c0c970cae416d721d1a3ae",class:"send-btn",type:"button","aria-label":((r=(e=(n=this.label)===null||n===void 0?void 0:n.toString)===null||e===void 0?void 0:(t=e.call(n)).toLowerCase)===null||r===void 0?void 0:r.call(t).includes("group"))?"Next":"Send",onClick:()=>this.send()},i("img",{key:"0142ca2b330d42ac124f2b98c3d112ce49f592dc",src:b,alt:""}))))}};y.style=":host { display: block; }\n .searchable-list-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n background: var(--bg-primary);\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .searchable-list-topbar {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n padding: 0 var(--space-16);\n height: 4rem;\n box-sizing: border-box;\n border-bottom: 1px solid var(--border);\n font-size: var(--text-16);\n font-weight: 600;\n font-family: var(--font-primary);\n color: var(--text-primary);\n }\n .searchable-list-topbar:empty { display: none; }\n .searchable-list-searchbar {\n display: flex;\n align-items: center;\n gap: var(--gap-8);\n padding: var(--gap-6) var(--space-12);\n border-radius: var(--rounded-8);\n background-color: var(--bg-input);\n margin: var(--space-8) var(--space-16);\n }\n input {\n border: none;\n outline: none;\n padding: var(--gap-4);\n width: var(--w-full);\n background: transparent;\n color: var(--text-primary);\n font-size: var(--text-14);\n }\n input::placeholder { color: var(--text-tertiary); }\n .searchable-list-tile { width: 100%; flex: 1; min-height: 0; overflow-y: auto; }\n .row {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-12) var(--space-16);\n cursor: pointer;\n border-bottom: 1px solid var(--border-subtle);\n }\n .row.selected { background: var(--brand-muted); }\n .row:hover { background: var(--bg-row-hover); }\n .row-name {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--text-14);\n }\n .row-check {\n width: 1.25rem;\n height: 1.25rem;\n flex-shrink: 0;\n margin: 0;\n accent-color: var(--brand);\n cursor: pointer;\n }\n .avatar {\n width: var(--control);\n height: var(--control);\n border-radius: var(--rounded-full);\n object-fit: cover;\n background: var(--brand-soft);\n flex-shrink: 0;\n }\n .footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-12);\n padding: 0.875rem 1.25rem;\n background: var(--bg-input);\n border-top: 1px solid var(--border-subtle);\n flex-shrink: 0;\n }\n .footer.hidden { display: none; }\n .chip {\n display: inline-flex;\n align-items: center;\n gap: var(--gap-6);\n padding: var(--gap-4) 0.625rem;\n border-radius: var(--rounded-full);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .chip-dot {\n width: 0.5rem;\n height: 0.5rem;\n border-radius: var(--rounded-full);\n background: var(--brand);\n }\n .chip-clear {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0;\n display: flex;\n line-height: 0;\n }\n .chip-clear img { width: 0.875rem; height: 0.875rem; display: block; }\n .send-btn {\n width: 2.75rem;\n height: 2.75rem;\n border: none;\n border-radius: var(--rounded-full);\n background: var(--brand);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n box-shadow: 0 8px 16px rgba(37, 99, 235, 0.28);\n }\n .send-btn:active { transform: scale(0.95); }\n .send-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n filter: brightness(0) invert(1);\n }\n .empty { padding: var(--space-16); text-align: center; color: var(--text-secondary); }\n .theme-icon { filter: var(--svg-icon-filter); }";const x=class{constructor(i){n(this,i);this.createGroupSubmitted=e(this,"create-group-submitted",7);this.createGroupCastSubmitted=e(this,"create-group-cast-submitted",7);this.onTitle=n=>{this.groupTitle=n.target.value};this.onFile=n=>{var e;const i=(e=n.target.files)===null||e===void 0?void 0:e[0];if(!i)return;this.imageFile=i;const t=new FileReader;t.onload=n=>{this.imageSrc=String(n.target.result||"")};t.readAsDataURL(i)};this.triggerFile=()=>{var n,e;(e=(n=this.el.shadowRoot)===null||n===void 0?void 0:n.querySelector(".image-upload-input"))===null||e===void 0?void 0:e.click()};this.submit=()=>{var n;if(!this.groupTitle.trim())return;const e={conversationTitle:this.groupTitle.trim(),imageFile:this.imageFile,selectedUserIds:this.selectedUserIds,selectedUsers:this.selectedUsers,isGroupCast:this.isGroupCast,closeAll:true};if(this.isGroupCast)this.createGroupCastSubmitted.emit(e);else this.createGroupSubmitted.emit(e);if(this.afterCreate)this.afterCreate();else(n=this.closeGroupInfo)===null||n===void 0?void 0:n.call(this)};this.label="Create New Group";this.selectedUserIds=[];this.selectedUsers=[];this.isGroupCast=false;this.closeGroupInfo=undefined;this.afterCreate=undefined;this.groupTitle="";this.imageSrc="";this.imageFile=null}render(){return i("div",{key:"24510d38063e0367f9c24af7d23d5281a70f01c7",class:"group-info-container"},i("div",{key:"a95678648b1e56598c15de1fd3304ec973fb1f3f",class:"group-info-topbar"},i("button",{key:"fad910417832d6c1b436db19f67d67776b3e9dae",type:"button",onClick:()=>{var n;return(n=this.closeGroupInfo)===null||n===void 0?void 0:n.call(this)},"aria-label":"Back"},i("img",{key:"010ba7a258dbcb1b45228ceb05caa71897a29dc5",class:"theme-icon",src:v,alt:""})),i("h2",{key:"7f505918244d7a2c790c495bc714fe93279aa868",class:"header-title"},this.label)),i("div",{key:"d46d619ba1c3729effbdf7996ad6b98cb1d8e3f9",class:"group-info-content"},i("div",{key:"35a39f90a70308109239d612d947ad5e6ba5a052",class:"group-info-image",onClick:this.triggerFile},this.imageSrc?i("img",{class:"preview-image",src:this.imageSrc,alt:"Group"}):i("div",{class:"upload-hint"},"Add ",this.isGroupCast?"Groupcast":"Group",i("br",null),"Photo"),i("input",{key:"d0df7bc0c7811b9183c5bcd30ff8f444b150b0b0",type:"file",class:"image-upload-input",accept:"image/*",onChange:this.onFile})),i("div",{key:"c073080821cd0b4bd4340d6566688a10cd0acd5e",class:"group-info-title"},i("input",{key:"03f6b2980374eefb3f44eaefda81567e34355219",type:"text",placeholder:this.isGroupCast?"Groupcast Name":"Group Name",value:this.groupTitle,onInput:this.onTitle})),i("div",{key:"c31584fbbc1a41bfb52bf4f8462dc97d31f96931",class:"create-group-button"},i("button",{key:"33098ee68b567f0c06a80c43b576d6b1b3ee6d6f",type:"button",disabled:!this.groupTitle.trim(),onClick:this.submit},"Create ",this.isGroupCast?"Groupcast":"Group"))))}get el(){return t(this)}};x.style=":host { display: block; height: var(--h-full); }\n .group-info-container {\n display: flex; flex-direction: column; height: 100%;\n background: var(--bg-primary);\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .group-info-topbar {\n display: flex; align-items: center; gap: var(--gap-12);\n height: 4rem; box-sizing: border-box; padding: 0 var(--space-16);\n border-bottom: 1px solid var(--border);\n flex-shrink: 0;\n }\n .group-info-topbar button {\n width: 2.25rem; height: 2.25rem;\n display: flex; align-items: center; justify-content: center;\n background: none; border: none; cursor: pointer; padding: 0;\n border-radius: var(--rounded-full);\n }\n .group-info-topbar button:hover { background: var(--hover-overlay); }\n .group-info-topbar button img {\n width: var(--icon-md); height: var(--icon-md); display: block;\n }\n .group-info-topbar .header-title {\n margin: 0; font-size: var(--text-16); font-weight: 600; color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .group-info-content {\n display: flex; flex-direction: column; align-items: center; gap: var(--space-16);\n padding: var(--space-16);\n font-family: var(--font-primary);\n }\n .group-info-image {\n position: relative; width: 10rem; height: 10rem; border-radius: var(--rounded-full);\n overflow: hidden; background: var(--bg-secondary); cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n border: 2px dashed var(--border);\n }\n .preview-image { width: 100%; height: 100%; object-fit: cover; }\n .upload-hint { text-align: center; font-size: var(--text-12); color: var(--text-secondary); }\n .image-upload-input { display: none; }\n .group-info-title {\n width: 100%; border-bottom: 1px solid var(--border); padding-bottom: 4px;\n }\n .group-info-title input {\n width: 100%; border: none; outline: none; background: transparent;\n color: var(--text-primary); font-size: var(--text-16); padding: 8px 0;\n font-family: var(--font-primary);\n }\n .create-group-button { width: 100%; }\n .create-group-button button {\n width: 100%; padding: 12px; border: none; border-radius: var(--rounded-8); cursor: pointer;\n background: var(--brand); color: var(--text-on-brand); font-weight: 600;\n font-family: var(--font-primary);\n }\n .create-group-button button:disabled { opacity: 0.5; cursor: not-allowed; }\n .theme-icon { filter: var(--svg-icon-filter); }";export{m as chat_tile,x as iso_group_info,y as searchable_list};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as n,a as e,h as i,g as t}from"./p-17a96a2a.js";import{j as r,k as a,l as s,i as o,r as d,M as l,s as h,t as c,B as u,h as f,D as p,S as b,d as v}from"./p-a5707f12.js";import{C as g}from"./p-8fea0c86.js";const m=class{constructor(i){n(this,i);this.tileMenu=e(this,"chat-tile-menu",7);this.toggleMenu=n=>{n.stopPropagation();if(this.menuOpen){this.menuOpen=false;this.menuPos=null;return}const e=n.currentTarget;const i=e.getBoundingClientRect();this.menuPos={top:i.bottom+2,left:i.right-8};this.menuOpen=true};this.emitAction=(n,e)=>{n.stopPropagation();this.menuOpen=false;this.menuPos=null;this.tileMenu.emit({action:e,conversationId:this.conversationId})};this.imageSrc=undefined;this.imageAlt=undefined;this.imageHeight=undefined;this.imageWidth=undefined;this.imageRadius=undefined;this.imageFillColor=undefined;this.imageTextColor=undefined;this.username="";this.userNameColor=undefined;this.userNameFontFamily=undefined;this.userNameFontWeight=undefined;this.usernameFontSize=undefined;this.usernameFontStyle=undefined;this.chatPreview="";this.chatPreviewColor=undefined;this.chatPreviewFontFamily=undefined;this.chatPreviewFontWeight=undefined;this.chatPreviewFontSize=undefined;this.chatPreviewFontStyle=undefined;this.unreadCount=0;this.unreadCountColor=undefined;this.unreadCountFontSize=undefined;this.unreadCountBgColor=undefined;this.unreadCountBorderRadius=undefined;this.unreadCountWidth=undefined;this.unreadCountHeight=undefined;this.messageDate="";this.messageDateColor=undefined;this.messageDateFontFamily=undefined;this.messageDateFontWeight=undefined;this.messageDateFontSize=undefined;this.messageDateFontStyle=undefined;this.padding=undefined;this.usernamePadding=undefined;this.chatPreviewPadding=undefined;this.messageDatePadding=undefined;this.bgColor=undefined;this.borderWidth=undefined;this.borderColor=undefined;this.borderStyle=undefined;this.height=undefined;this.width=undefined;this.isSelected=undefined;this.sidebarSelectedColor=undefined;this.suffix=undefined;this.suffixColor=undefined;this.suffixBgColor=undefined;this.gap=undefined;this.isTyping=undefined;this.typingUserName=undefined;this.isRead=undefined;this.isPending=undefined;this.isDelivered=undefined;this.isSelfMessage=undefined;this.mediaType=undefined;this.mediaLabel=undefined;this.isGroup=false;this.conversationId=undefined;this.onClick=undefined;this.onContextmenu=undefined;this.title=undefined;this.subtitle=undefined;this.time=undefined;this.menuOpen=false;this.menuPos=null}onDocClick(n){if(!this.menuOpen)return;if(!n.composedPath().includes(this.el)){this.menuOpen=false;this.menuPos=null}}docIcon(n){const e=(n||"").toLowerCase();if(/\.xlsx?$/.test(e)||e.endsWith(".csv"))return r;if(e.endsWith(".rtf"))return a;if(e.endsWith(".txt"))return s;return o}previewMeta(){if(this.isTyping)return{label:`${this.typingUserName||"Someone"} typing…`};if(this.mediaType===1)return{icon:d,label:"Image"};if(this.mediaType===2)return{label:"Video"};if(this.mediaType===3)return{icon:this.docIcon(this.mediaLabel),label:this.mediaLabel||"Document"};if(this.mediaType===4)return{icon:l,label:"Audio"};if(this.mediaType===5)return{icon:h,label:"Link"};return null}previewText(){const n=this.previewMeta();if(n)return n.label;return this.chatPreview||this.subtitle||""}render(){const n=this.imageWidth||this.imageHeight||undefined;return i("div",{key:"fb68abaeb105b737e02e35c2a7edb2470d98100a",class:`chat-tile-container${this.isSelected?" selected":""}${this.menuOpen?" menu-open":""}`,style:{background:this.bgColor||undefined,padding:this.padding,gap:this.gap,height:this.height,width:this.width||undefined,borderWidth:this.borderWidth,borderColor:this.borderColor,borderStyle:this.borderStyle},onClick:n=>{var e;return(e=this.onClick)===null||e===void 0?void 0:e.call(this,n)},onContextMenu:n=>{var e;return(e=this.onContextmenu)===null||e===void 0?void 0:e.call(this,n)}},i("div",{key:"60b69a4c90397e361bbcaf6c20573116a74b47d8",class:"avatar-slot"},i("profile-avatar",{key:"665e4f470a3086958e9d869e4af4bba2e0e05191",src:this.imageSrc||"",name:this.username||this.title||"",size:n,radius:this.imageRadius,isGroup:this.isGroup})),i("div",{key:"e318c8bbb1d473a604f5ac9dfdacd67fb5c32ad8",class:"meta"},i("span",{key:"32cda6250be984de9cf274222e33488e504be30a",class:"username",style:{color:this.userNameColor,fontFamily:this.userNameFontFamily,fontWeight:this.userNameFontWeight,fontSize:this.usernameFontSize,fontStyle:this.usernameFontStyle,padding:this.usernamePadding}},this.username||this.title,this.suffix?i("span",{class:"suffix",style:{color:this.suffixColor,background:this.suffixBgColor}},this.suffix):null),i("span",{key:"2598f879334e2f161aaf7587d56c480f8463183e",class:"date",style:{color:this.messageDateColor,fontFamily:this.messageDateFontFamily,fontWeight:this.messageDateFontWeight,fontSize:this.messageDateFontSize,fontStyle:this.messageDateFontStyle,padding:this.messageDatePadding}},this.messageDate||this.time),i("span",{key:"067228a761a7c81d0f13713247e557b1dde07938",class:"preview",style:{color:this.chatPreviewColor,fontFamily:this.chatPreviewFontFamily,fontWeight:this.chatPreviewFontWeight,fontSize:this.chatPreviewFontSize,fontStyle:this.chatPreviewFontStyle,padding:this.chatPreviewPadding}},(()=>{const n=this.previewMeta();if(n===null||n===void 0?void 0:n.icon){return[i("img",{class:"preview-icon",src:n.icon,alt:""}),i("span",{class:"preview-label"},n.label)]}return i("span",{class:"preview-label"},this.previewText())})()),i("div",{key:"b9e5838d6ee8d0036a259868c1233039f3c35620",class:"trailing"},i("button",{key:"ec2e0c0b60f09afb51929b3c539a14bc64794acf",type:"button",class:"menu-btn",title:"Chat options","aria-label":"Chat options",onClick:this.toggleMenu},i("img",{key:"79cec1837f6d1d23282b91b6f985a028c56536f5",class:"theme-icon",src:c,alt:""})),this.unreadCount>0?i("span",{class:"unread",style:{color:this.unreadCountColor,background:this.unreadCountBgColor,fontSize:this.unreadCountFontSize,borderRadius:this.unreadCountBorderRadius,width:this.unreadCountWidth,height:this.unreadCountHeight}},this.unreadCount):null,this.menuOpen&&this.menuPos?i("div",{class:"tile-menu",role:"menu",style:{top:`${this.menuPos.top}px`,left:`${this.menuPos.left}px`},onClick:n=>n.stopPropagation()},!this.isGroup?i("button",{type:"button",class:"tile-menu-item",role:"menuitem",onClick:n=>this.emitAction(n,"block")},i("img",{class:"theme-icon",src:u,alt:""}),i("span",null,"Block")):null,i("button",{type:"button",class:"tile-menu-item",role:"menuitem",onClick:n=>this.emitAction(n,"clear")},i("img",{class:"theme-icon",src:f,alt:""}),i("span",null,"Clear chat")),i("button",{type:"button",class:"tile-menu-item danger",role:"menuitem",onClick:n=>this.emitAction(n,"delete")},i("img",{class:"theme-icon",src:p,alt:""}),i("span",null,"Delete chat"))):null)))}get el(){return t(this)}};m.style=":host {\n display: block;\n cursor: pointer;\n font-family: var(--font-primary);\n min-width: 0;\n max-width: var(--w-full);\n overflow: hidden;\n }\n .chat-tile-container {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-12) var(--space-16);\n width: var(--w-full);\n max-width: var(--w-full);\n min-width: 0;\n overflow: hidden;\n border-left: var(--strip) solid transparent;\n background: transparent;\n transition: background-color 0.15s;\n position: relative;\n }\n .chat-tile-container:hover {\n background-color: var(--bg-row-hover);\n }\n .chat-tile-container.selected {\n background-color: var(--bg-row-hover);\n border-left-color: var(--brand);\n }\n .chat-tile-container.selected:hover {\n background-color: var(--bg-row-hover);\n }\n .avatar-slot { flex-shrink: 0; }\n .meta {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n grid-template-rows: auto auto;\n column-gap: var(--gap-8);\n row-gap: var(--gap-2);\n align-items: center;\n }\n .username {\n grid-column: 1;\n grid-row: 1;\n font-weight: 600;\n font-size: var(--text-14);\n color: var(--text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n }\n .date {\n grid-column: 2;\n grid-row: 1;\n font-size: var(--text-10);\n color: var(--text-tertiary);\n white-space: nowrap;\n line-height: 1.2;\n }\n .chat-tile-container.selected .date {\n color: var(--brand);\n font-weight: 500;\n }\n .preview {\n grid-column: 1;\n grid-row: 2;\n font-size: var(--text-12);\n color: var(--text-secondary);\n white-space: nowrap;\n overflow: hidden;\n display: flex;\n align-items: center;\n gap: var(--gap-4);\n min-width: 0;\n }\n .preview-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n flex: 1;\n }\n .preview-icon {\n width: 1em;\n height: 1em;\n flex-shrink: 0;\n object-fit: contain;\n }\n .trailing {\n grid-column: 2;\n grid-row: 2;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n min-width: var(--icon-md);\n min-height: var(--icon-md);\n position: relative;\n }\n .menu-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background: transparent;\n border-radius: var(--rounded-full);\n cursor: pointer;\n color: var(--text-tertiary);\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.15s, background-color 0.15s, color 0.15s;\n }\n .chat-tile-container:hover .menu-btn,\n .chat-tile-container.menu-open .menu-btn {\n opacity: 1;\n pointer-events: auto;\n }\n .chat-tile-container:hover .unread,\n .chat-tile-container.menu-open .unread {\n display: none;\n }\n .menu-btn:hover {\n color: var(--text-primary);\n background: var(--hover-overlay);\n }\n .menu-btn img {\n width: 1rem;\n height: 1rem;\n display: block;\n }\n .tile-menu {\n position: fixed;\n width: 10rem;\n background: var(--bg-primary);\n border-radius: var(--rounded-8);\n box-shadow: 0 2px 16px var(--overlay);\n border: 1px solid var(--border-subtle);\n padding: var(--gap-6) 0;\n z-index: 1000;\n }\n .tile-menu-item {\n width: calc(100% - 12px);\n margin: 0 6px;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--gap-6) var(--space-12);\n border: none;\n background: transparent;\n border-radius: var(--rounded-8);\n cursor: pointer;\n text-align: left;\n font-size: var(--text-12);\n font-weight: 200;\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .tile-menu-item:hover {\n background: var(--brand-soft);\n color: var(--brand);\n }\n .tile-menu-item.danger {\n color: var(--danger);\n }\n .tile-menu-item.danger:hover {\n background: var(--hover-overlay);\n color: var(--danger);\n }\n .tile-menu-item img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n flex-shrink: 0;\n object-fit: contain;\n }\n .unread {\n min-width: var(--badge);\n height: var(--badge);\n border-radius: var(--rounded-full);\n padding: 0 var(--gap-6);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: var(--text-10);\n color: var(--text-on-brand);\n background: var(--brand);\n }\n .suffix {\n font-size: var(--text-10);\n padding: var(--gap-2) var(--gap-6);\n border-radius: var(--rounded-4);\n margin-left: var(--gap-4);\n }\n .theme-icon { filter: var(--svg-icon-filter); }";const y=class{constructor(e){n(this,e);this.onSearch=n=>{const e=n.target.value;this.searchText=e;clearTimeout(this.debounceTimer);this.debounceTimer=setTimeout((()=>{if(typeof this.getForwardMessageMemberList==="function"){this.getForwardMessageMemberList(e||null,0)}}),400)};this.clearSelected=n=>{n.stopPropagation();this.selectedIds=[];this.selectedContacts=[]};this.onScroll=n=>{const e=n.target;if(e.scrollHeight-e.scrollTop<=e.clientHeight+10&&this.hasMore&&!this.paginationLoading){if(typeof this.getForwardMessageMemberList==="function"){this.getForwardMessageMemberList(this.searchText||null,(this.skip||0)+20)}}};this.bgColor=undefined;this.padding=undefined;this.height=undefined;this.width=undefined;this.label=undefined;this.hideTopbar=false;this.fontFamily=undefined;this.textColor=undefined;this.fontSize=undefined;this.selectedContacts=[];this.contactList=[];this.conversationList=[];this.isSearching=false;this.getForwardMessageMemberList=undefined;this.onSend=undefined;this.isLoading=false;this.paginationLoading=false;this.hasMore=false;this.skip=0;this.searchText="";this.selectedIds=[]}items(){return this.isSearching?this.contactList||[]:this.conversationList||this.contactList||[]}nameOf(n){var e;return((e=n===null||n===void 0?void 0:n.opponentDetails)===null||e===void 0?void 0:e.userName)||(n===null||n===void 0?void 0:n.userName)||(n===null||n===void 0?void 0:n.conversationTitle)||"Unknown"}idOf(n){var e;return((e=n===null||n===void 0?void 0:n.opponentDetails)===null||e===void 0?void 0:e.userId)||(n===null||n===void 0?void 0:n.userId)||(n===null||n===void 0?void 0:n.conversationId)||this.nameOf(n)}imageOf(n){var e;return((e=n===null||n===void 0?void 0:n.opponentDetails)===null||e===void 0?void 0:e.userProfileImageUrl)||(n===null||n===void 0?void 0:n.userProfileImageUrl)||(n===null||n===void 0?void 0:n.conversationImageUrl)}toggle(n){const e=this.idOf(n);const i=this.nameOf(n);if(this.selectedIds.includes(e)){this.selectedIds=this.selectedIds.filter((n=>n!==e));this.selectedContacts=(this.selectedContacts||[]).filter((n=>n!==i&&n!==e))}else{this.selectedIds=[...this.selectedIds,e];this.selectedContacts=[...this.selectedContacts||[],i]}}send(){if(typeof this.onSend==="function")this.onSend(this.selectedIds,this.selectedContacts)}render(){var n,e,t,r;const a=this.items();return i("div",{key:"ca1f00269cf3960fb3c00241208e37e28d9081f0",class:"searchable-list-container",style:{backgroundColor:this.bgColor,color:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,height:this.height,width:this.width,padding:this.padding}},this.hideTopbar?null:i("div",{class:"searchable-list-topbar"},this.label||"Forward to…"),i("div",{key:"d651729750222ab241c2962a5e0447024e95f23e",class:"searchable-list-searchbar"},i("input",{key:"83c58c3d9ee2a3ec3366c478d0e54fc47c5a5f88",type:"text",placeholder:"Search",value:this.searchText,onInput:this.onSearch})),this.isLoading?i("div",{class:"empty"},i("spinner-loader",{height:"24px",width:"24px"})):a.length===0?i("div",{class:"empty"},"No results"):i("div",{class:"searchable-list-tile",onScroll:this.onScroll},a.map((n=>{const e=this.idOf(n);const t=this.selectedIds.includes(e);return i("div",{class:`row ${t?"selected":""}`,onClick:()=>this.toggle(n)},i("profile-avatar",{src:this.imageOf(n)||"",name:this.nameOf(n),size:"var(--control)"}),i("span",{class:"row-name"},this.nameOf(n)),i("input",{class:"row-check",type:"checkbox",checked:t,readOnly:true}))})),this.paginationLoading?i("div",{class:"empty"},i("spinner-loader",{height:"20px",width:"20px"})):null),i("div",{key:"38bf55281f5ade607128775ef71dd9e24b6ad9ed",class:`footer ${this.selectedIds.length?"":"hidden"}`},i("div",{key:"16f1df42887adf956b771001bd90e7f3ddbec4e0",class:"chip"},i("span",{key:"6e998baf178c0e155cb9c05473be59e8677a5e12",class:"chip-dot"}),i("span",{key:"ca8ec9fb4ad583afe1599508b80f8e7850b0b45d"},this.selectedIds.length," selected"),i("button",{key:"38b8fa1ec1cecec1d9c6dc1e300994fff6fc128b",class:"chip-clear",type:"button","aria-label":"Clear selection",onClick:this.clearSelected},i("img",{key:"df487e92908efe0afe656bc205031a1ff66ca668",class:"theme-icon",src:g,alt:""}))),i("button",{key:"57a28e88ca1d4c6480c0c970cae416d721d1a3ae",class:"send-btn",type:"button","aria-label":((r=(e=(n=this.label)===null||n===void 0?void 0:n.toString)===null||e===void 0?void 0:(t=e.call(n)).toLowerCase)===null||r===void 0?void 0:r.call(t).includes("group"))?"Next":"Send",onClick:()=>this.send()},i("img",{key:"0142ca2b330d42ac124f2b98c3d112ce49f592dc",src:b,alt:""}))))}};y.style=":host { display: block; }\n .searchable-list-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n background: var(--bg-primary);\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .searchable-list-topbar {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n padding: 0 var(--space-16);\n height: 4rem;\n box-sizing: border-box;\n border-bottom: 1px solid var(--border);\n font-size: var(--text-16);\n font-weight: 600;\n font-family: var(--font-primary);\n color: var(--text-primary);\n }\n .searchable-list-topbar:empty { display: none; }\n .searchable-list-searchbar {\n display: flex;\n align-items: center;\n gap: var(--gap-8);\n padding: var(--gap-6) var(--space-12);\n border-radius: var(--rounded-8);\n background-color: var(--bg-input);\n margin: var(--space-8) var(--space-16);\n }\n input {\n border: none;\n outline: none;\n padding: var(--gap-4);\n width: var(--w-full);\n background: transparent;\n color: var(--text-primary);\n font-size: var(--text-14);\n }\n input::placeholder { color: var(--text-tertiary); }\n .searchable-list-tile { width: 100%; flex: 1; min-height: 0; overflow-y: auto; }\n .row {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-12) var(--space-16);\n cursor: pointer;\n border-bottom: 1px solid var(--border-subtle);\n }\n .row.selected { background: var(--brand-muted); }\n .row:hover { background: var(--bg-row-hover); }\n .row-name {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--text-14);\n }\n .row-check {\n width: 1.25rem;\n height: 1.25rem;\n flex-shrink: 0;\n margin: 0;\n accent-color: var(--brand);\n cursor: pointer;\n }\n .avatar {\n width: var(--control);\n height: var(--control);\n border-radius: var(--rounded-full);\n object-fit: cover;\n background: var(--brand-soft);\n flex-shrink: 0;\n }\n .footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-12);\n padding: 0.875rem 1.25rem;\n background: var(--bg-input);\n border-top: 1px solid var(--border-subtle);\n flex-shrink: 0;\n }\n .footer.hidden { display: none; }\n .chip {\n display: inline-flex;\n align-items: center;\n gap: var(--gap-6);\n padding: var(--gap-4) 0.625rem;\n border-radius: var(--rounded-full);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .chip-dot {\n width: 0.5rem;\n height: 0.5rem;\n border-radius: var(--rounded-full);\n background: var(--brand);\n }\n .chip-clear {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0;\n display: flex;\n line-height: 0;\n }\n .chip-clear img { width: 0.875rem; height: 0.875rem; display: block; }\n .send-btn {\n width: 2.75rem;\n height: 2.75rem;\n border: none;\n border-radius: var(--rounded-full);\n background: var(--brand);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n box-shadow: 0 8px 16px rgba(37, 99, 235, 0.28);\n }\n .send-btn:active { transform: scale(0.95); }\n .send-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n filter: brightness(0) invert(1);\n }\n .empty { padding: var(--space-16); text-align: center; color: var(--text-secondary); }\n .theme-icon { filter: var(--svg-icon-filter); }";const x=class{constructor(i){n(this,i);this.createGroupSubmitted=e(this,"create-group-submitted",7);this.createGroupCastSubmitted=e(this,"create-group-cast-submitted",7);this.onTitle=n=>{this.groupTitle=n.target.value};this.onFile=n=>{var e;const i=(e=n.target.files)===null||e===void 0?void 0:e[0];if(!i)return;this.imageFile=i;const t=new FileReader;t.onload=n=>{this.imageSrc=String(n.target.result||"")};t.readAsDataURL(i)};this.triggerFile=()=>{var n,e;(e=(n=this.el.shadowRoot)===null||n===void 0?void 0:n.querySelector(".image-upload-input"))===null||e===void 0?void 0:e.click()};this.submit=()=>{var n;if(!this.groupTitle.trim())return;const e={conversationTitle:this.groupTitle.trim(),imageFile:this.imageFile,selectedUserIds:this.selectedUserIds,selectedUsers:this.selectedUsers,isGroupCast:this.isGroupCast,closeAll:true};if(this.isGroupCast)this.createGroupCastSubmitted.emit(e);else this.createGroupSubmitted.emit(e);if(this.afterCreate)this.afterCreate();else(n=this.closeGroupInfo)===null||n===void 0?void 0:n.call(this)};this.label="Create New Group";this.selectedUserIds=[];this.selectedUsers=[];this.isGroupCast=false;this.closeGroupInfo=undefined;this.afterCreate=undefined;this.groupTitle="";this.imageSrc="";this.imageFile=null}render(){return i("div",{key:"24510d38063e0367f9c24af7d23d5281a70f01c7",class:"group-info-container"},i("div",{key:"a95678648b1e56598c15de1fd3304ec973fb1f3f",class:"group-info-topbar"},i("button",{key:"fad910417832d6c1b436db19f67d67776b3e9dae",type:"button",onClick:()=>{var n;return(n=this.closeGroupInfo)===null||n===void 0?void 0:n.call(this)},"aria-label":"Back"},i("img",{key:"010ba7a258dbcb1b45228ceb05caa71897a29dc5",class:"theme-icon",src:v,alt:""})),i("h2",{key:"7f505918244d7a2c790c495bc714fe93279aa868",class:"header-title"},this.label)),i("div",{key:"d46d619ba1c3729effbdf7996ad6b98cb1d8e3f9",class:"group-info-content"},i("div",{key:"35a39f90a70308109239d612d947ad5e6ba5a052",class:"group-info-image",onClick:this.triggerFile},this.imageSrc?i("img",{class:"preview-image",src:this.imageSrc,alt:"Group"}):i("div",{class:"upload-hint"},"Add ",this.isGroupCast?"Groupcast":"Group",i("br",null),"Photo"),i("input",{key:"d0df7bc0c7811b9183c5bcd30ff8f444b150b0b0",type:"file",class:"image-upload-input",accept:"image/*",onChange:this.onFile})),i("div",{key:"c073080821cd0b4bd4340d6566688a10cd0acd5e",class:"group-info-title"},i("input",{key:"03f6b2980374eefb3f44eaefda81567e34355219",type:"text",placeholder:this.isGroupCast?"Groupcast Name":"Group Name",value:this.groupTitle,onInput:this.onTitle})),i("div",{key:"c31584fbbc1a41bfb52bf4f8462dc97d31f96931",class:"create-group-button"},i("button",{key:"33098ee68b567f0c06a80c43b576d6b1b3ee6d6f",type:"button",disabled:!this.groupTitle.trim(),onClick:this.submit},"Create ",this.isGroupCast?"Groupcast":"Group"))))}get el(){return t(this)}};x.style=":host { display: block; height: var(--h-full); }\n .group-info-container {\n display: flex; flex-direction: column; height: 100%;\n background: var(--bg-primary);\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .group-info-topbar {\n display: flex; align-items: center; gap: var(--gap-12);\n height: 4rem; box-sizing: border-box; padding: 0 var(--space-16);\n border-bottom: 1px solid var(--border);\n flex-shrink: 0;\n }\n .group-info-topbar button {\n width: 2.25rem; height: 2.25rem;\n display: flex; align-items: center; justify-content: center;\n background: none; border: none; cursor: pointer; padding: 0;\n border-radius: var(--rounded-full);\n }\n .group-info-topbar button:hover { background: var(--hover-overlay); }\n .group-info-topbar button img {\n width: var(--icon-md); height: var(--icon-md); display: block;\n }\n .group-info-topbar .header-title {\n margin: 0; font-size: var(--text-16); font-weight: 600; color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .group-info-content {\n display: flex; flex-direction: column; align-items: center; gap: var(--space-16);\n padding: var(--space-16);\n font-family: var(--font-primary);\n }\n .group-info-image {\n position: relative; width: 10rem; height: 10rem; border-radius: var(--rounded-full);\n overflow: hidden; background: var(--bg-secondary); cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n border: 2px dashed var(--border);\n }\n .preview-image { width: 100%; height: 100%; object-fit: cover; }\n .upload-hint { text-align: center; font-size: var(--text-12); color: var(--text-secondary); }\n .image-upload-input { display: none; }\n .group-info-title {\n width: 100%; border-bottom: 1px solid var(--border); padding-bottom: 4px;\n }\n .group-info-title input {\n width: 100%; border: none; outline: none; background: transparent;\n color: var(--text-primary); font-size: var(--text-16); padding: 8px 0;\n font-family: var(--font-primary);\n }\n .create-group-button { width: 100%; }\n .create-group-button button {\n width: 100%; padding: 12px; border: none; border-radius: var(--rounded-8); cursor: pointer;\n background: var(--brand); color: var(--text-on-brand); font-weight: 600;\n font-family: var(--font-primary);\n }\n .create-group-button button:disabled { opacity: 0.5; cursor: not-allowed; }\n .theme-icon { filter: var(--svg-icon-filter); }";export{m as chat_tile,x as iso_group_info,y as searchable_list};
|
|
2
|
+
//# sourceMappingURL=p-fd6ce589.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,a as i,h as a}from"./p-17a96a2a.js";import{g as e}from"./p-1dc52239.js";import{s as o}from"./p-4cb54460.js";import"./p-8f17345f.js";import"./p-b1330793.js";const r=class{constructor(a){t(this,a);this.reactionRemoved=i(this,"reaction-removed",7);this.messageId=undefined;this.reactionUsers=[];this.userMetaData=undefined;this.reactions=[];this.selectedEmojiId=undefined}async componentWillLoad(){var t;const i=new URLSearchParams(window.location.search);this.conversationId=i.get("conversation");if(this.reactions&&this.reactions.length>0){const i=(t=this.reactions[0])===null||t===void 0?void 0:t.emojiId;this.selectedEmojiId=i;await this.handleReactionTabClick(i)}}async handleReactionTabClick(t){this.selectedEmojiId=t;try{const i=await e(this.conversationId,this.messageId,t);this.reactionUsers=(i===null||i===void 0?void 0:i.reactions)||[]}catch(t){o({message:"Error while getting reaction",type:"error",duration:3e3,position:"bottom-left"})}}render(){var t;const i=(this.reactions||[]).map((t=>Object.assign(Object.assign({},t),{messageId:Array.isArray(t.messageId)?t.messageId[0]:t.messageId})));return a("div",{key:"e76cc34af57ee0899200efe26b3bbd683ea6e75c",class:"reactions-container",style:{backgroundColor:"var(--bg-secondary-color)",borderRadius:"10px",color:"var(--text-primary-color)",fontSize:"20px"}},a("div",{key:"99432de95e0c03ec5e588826e57ff490098a9a64",class:"reactions-tab-container"},i.map((t=>a("button",{type:"button",class:`emoji-tab ${this.selectedEmojiId===t.emojiId?"selected":""}`,onClick:()=>this.handleReactionTabClick(t.emojiId)},t.src||t.emojiId)))),a("div",{key:"eb1cbb408175b91e039e13f26e151ca4b6778fd2",class:"reactions-list-container"},this.selectedEmojiId&&((t=this.reactionUsers)===null||t===void 0?void 0:t.length)>0?this.reactionUsers.map((t=>{var i;return a("div",{class:"user-row"},t.userProfileImageUrl?a("img",{class:"avatar",src:t.userProfileImageUrl,alt:""}):a("div",{class:"avatar"}),a("span",{style:{fontSize:"14px"}},t.userId===((i=this.userMetaData)===null||i===void 0?void 0:i.userId)?"You":t.userName))})):a("div",{class:"hint"},"Tap on any tab to see list")))}};r.style=":host { display: block; }\n .reactions-container {\n display: flex; flex-direction: column; padding: 10px;\n box-shadow: 2px 2px 2px var(--bg-senary-color), -2px -2px 2px var(--bg-senary-color);\n }\n .reactions-list-container { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }\n .reactions-tab-container { display: flex; gap: 8px; padding: 0; flex-wrap: wrap; }\n .emoji-tab {\n cursor: pointer; padding: 4px 8px; background: transparent;\n border: none; border-bottom: 1px solid var(--text-primary-color); color: inherit; font-size: inherit;\n }\n .emoji-tab:hover, .emoji-tab.selected { background: var(--bg-tertiary-color); }\n .user-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }\n .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-primary-light); }\n .hint { font-size: 14px; padding: 10px; opacity: 0.7; }";export{r as reaction_container};
|
|
2
|
+
//# sourceMappingURL=p-fdd327f5.entry.js.map
|
|
@@ -186,6 +186,7 @@ declare class ChatFooter {
|
|
|
186
186
|
parentMessageSenderId: any;
|
|
187
187
|
parentMessageSenderName: any;
|
|
188
188
|
};
|
|
189
|
+
private revokePreviewSrc;
|
|
189
190
|
handleRemoveAttachment: (event: CustomEvent<number>) => void;
|
|
190
191
|
handleClearAttachment: () => void;
|
|
191
192
|
handleDataChange(): Promise<void>;
|
|
@@ -15,6 +15,7 @@ export declare class DocumentMessage {
|
|
|
15
15
|
isRead: boolean;
|
|
16
16
|
isSelf: boolean;
|
|
17
17
|
isDelivered: string;
|
|
18
|
+
deliveryStatus: string;
|
|
18
19
|
docType: string;
|
|
19
20
|
textColor: string;
|
|
20
21
|
message: string;
|
|
@@ -28,11 +29,15 @@ export declare class DocumentMessage {
|
|
|
28
29
|
borderWidth: string;
|
|
29
30
|
borderColor: string;
|
|
30
31
|
borderStyle: string;
|
|
32
|
+
showPdfPreview: boolean;
|
|
31
33
|
tagUserClick: EventEmitter<{
|
|
32
34
|
userId?: string;
|
|
33
35
|
userName?: string;
|
|
34
36
|
}>;
|
|
35
37
|
private truncateDocName;
|
|
38
|
+
private isPdf;
|
|
36
39
|
private iconSrc;
|
|
40
|
+
private openPreview;
|
|
41
|
+
private closePreview;
|
|
37
42
|
render(): any;
|
|
38
43
|
}
|
|
@@ -9,6 +9,8 @@ export declare class MessageBubble {
|
|
|
9
9
|
timeColor: string;
|
|
10
10
|
isRead: boolean;
|
|
11
11
|
isDelivered: string | boolean;
|
|
12
|
+
/** Optional: sending | outbox | sent | failed — drives outbox UI when set */
|
|
13
|
+
deliveryStatus: string;
|
|
12
14
|
reactions: Record<string, string[]>;
|
|
13
15
|
messageId: string;
|
|
14
16
|
userMetaData: any;
|
|
@@ -31,6 +33,7 @@ export declare class MessageBubble {
|
|
|
31
33
|
private onReactionClick;
|
|
32
34
|
private ticksIcon;
|
|
33
35
|
private renderTicks;
|
|
36
|
+
private renderOutboxLabel;
|
|
34
37
|
private renderReactions;
|
|
35
38
|
render(): any;
|
|
36
39
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* Shell UI: shell-render.tsx → layout slots tree
|
|
23
23
|
* MQTT wire: ../../../lib/mqtt → session, parse, dispatch
|
|
24
24
|
*
|
|
25
|
-
* Custom UI
|
|
25
|
+
* Custom UI:
|
|
26
26
|
* PRIMARY customParts + props — see lib/custom-ui/contracts.ts + docs/CUSTOMIZATION.md
|
|
27
27
|
* SECONDARY slots (layout panels only)
|
|
28
28
|
* ADVANCED events/methods (headless)
|
|
@@ -11,5 +11,10 @@ export declare function hostAppendInboundMessage(host: WebChatMqttOpsHost, parse
|
|
|
11
11
|
export declare function hostCreateMqttContext(host: WebChatMqttOpsHost): import("../../../lib/mqtt").MqttChatContext;
|
|
12
12
|
export declare function hostHandleMqttMessage(host: WebChatMqttOpsHost, message: any): Promise<void>;
|
|
13
13
|
export declare function hostSubscribeToMqtt(host: WebChatMqttOpsHost): void;
|
|
14
|
+
/**
|
|
15
|
+
* Soft gap-fill: fetch latest page and merge by messageId — no clearing the thread
|
|
16
|
+
* (avoids flicker after reconnect).
|
|
17
|
+
*/
|
|
18
|
+
export declare function hostGapFillMessages(host: WebChatMqttOpsHost): Promise<void>;
|
|
14
19
|
export declare function hostSetupMqttClient(host: WebChatMqttOpsHost): Promise<void>;
|
|
15
20
|
export declare function hostHandleForwardMessage(host: WebChatMqttOpsHost, parsedMessage: any): Promise<void>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type WebChatOfflineHost = any;
|
|
2
|
+
export declare function hostInitOffline(host: WebChatOfflineHost): void;
|
|
3
|
+
export declare function hostTeardownOffline(host: WebChatOfflineHost): void;
|
|
4
|
+
/** Paint cached conversations immediately (before network). */
|
|
5
|
+
export declare function hostHydrateConversationsFromCache(host: WebChatOfflineHost): Promise<void>;
|
|
6
|
+
export declare function hostHydrateMessagesFromCache(host: WebChatOfflineHost, conversationId?: string): Promise<void>;
|
|
7
|
+
export declare function hostPersistConversations(host: WebChatOfflineHost): Promise<void>;
|
|
8
|
+
export declare function hostPersistMessages(host: WebChatOfflineHost, conversationId?: string): Promise<void>;
|
|
9
|
+
export declare function hostEnqueueFailedText(host: WebChatOfflineHost, opts: {
|
|
10
|
+
localId: string;
|
|
11
|
+
conversationId: string;
|
|
12
|
+
body: string;
|
|
13
|
+
localMessage: any;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
export declare function hostEnqueueFailedMedia(host: WebChatOfflineHost, opts: {
|
|
16
|
+
localId: string;
|
|
17
|
+
conversationId: string;
|
|
18
|
+
files: File[];
|
|
19
|
+
caption?: string;
|
|
20
|
+
localMessage: any;
|
|
21
|
+
}): Promise<void>;
|
|
22
|
+
export declare function hostFlushOutbox(host: WebChatOfflineHost): Promise<void>;
|
|
@@ -1,44 +1,39 @@
|
|
|
1
1
|
export declare class ThemeProvider {
|
|
2
2
|
hostElement: HTMLElement;
|
|
3
|
-
/**
|
|
4
|
-
* Path to the CSS theme file
|
|
5
|
-
*/
|
|
3
|
+
/** Path / URL to a CSS theme file (CDN or local). */
|
|
6
4
|
themePath: string;
|
|
7
|
-
/**
|
|
8
|
-
* Current theme mode
|
|
9
|
-
*/
|
|
5
|
+
/** light | dark — drives `.theme-*` class on this host only (scoped). */
|
|
10
6
|
mode: 'light' | 'dark';
|
|
11
7
|
/**
|
|
12
|
-
*
|
|
8
|
+
* Inline CSS variable overrides. Keys may be `--brand` or `brand`.
|
|
9
|
+
* Applied on this host so values inherit into nested shadow trees.
|
|
13
10
|
*/
|
|
14
|
-
|
|
11
|
+
themeObject?: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
15
|
+
* When true, also mirror mode onto <html> (legacy). Default false so
|
|
16
|
+
* embeds do not restyle the host page or fight sibling chats.
|
|
17
17
|
*/
|
|
18
|
+
mirrorToDocument: boolean;
|
|
19
|
+
styleElement: HTMLLinkElement | null;
|
|
20
|
+
private stylesheetId;
|
|
18
21
|
handleThemePathChange(newPath: string): void;
|
|
19
|
-
/**
|
|
20
|
-
* Watch for changes to theme mode
|
|
21
|
-
*/
|
|
22
22
|
handleModeChange(newMode: 'light' | 'dark'): void;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
handleThemeObjectChange(next?: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
}): void;
|
|
26
|
+
handleMirrorChange(): void;
|
|
26
27
|
componentDidLoad(): void;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
disconnectedCallback(): void;
|
|
29
|
+
private applyThemeObject;
|
|
30
|
+
/** Mode class on this host only — CSS vars inherit into <web-chat> shadow. */
|
|
30
31
|
private updateThemeClass;
|
|
31
|
-
/**
|
|
32
|
-
* Load a theme from a CSS file path
|
|
33
|
-
*/
|
|
34
32
|
private loadThemeFromPath;
|
|
35
|
-
/**
|
|
36
|
-
* Public method to toggle between light and dark themes
|
|
37
|
-
*/
|
|
38
33
|
toggleTheme(): Promise<"dark" | "light">;
|
|
39
|
-
/**
|
|
40
|
-
* Public method to set theme explicitly
|
|
41
|
-
*/
|
|
42
34
|
setTheme(mode: 'light' | 'dark'): Promise<"dark" | "light">;
|
|
35
|
+
setThemeObject(theme: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
} | null): Promise<Record<string, string>>;
|
|
43
38
|
render(): any;
|
|
44
39
|
}
|
|
@@ -290,6 +290,7 @@ export namespace Components {
|
|
|
290
290
|
"borderRadius": string;
|
|
291
291
|
"borderStyle": string;
|
|
292
292
|
"borderWidth": string;
|
|
293
|
+
"deliveryStatus": string;
|
|
293
294
|
"docName": string;
|
|
294
295
|
"docType": string;
|
|
295
296
|
"documentNameBg": string;
|
|
@@ -375,6 +376,7 @@ export namespace Components {
|
|
|
375
376
|
"borderRadius": string;
|
|
376
377
|
"borderStyle": string;
|
|
377
378
|
"borderWidth": string;
|
|
379
|
+
"deliveryStatus": string;
|
|
378
380
|
"height": string;
|
|
379
381
|
"imageSrc": string;
|
|
380
382
|
"isDelivered": string;
|
|
@@ -481,6 +483,10 @@ export namespace Components {
|
|
|
481
483
|
interface MessageBubble {
|
|
482
484
|
"backgroundColor": string;
|
|
483
485
|
"borderRadius": string;
|
|
486
|
+
/**
|
|
487
|
+
* Optional: sending | outbox | sent | failed — drives outbox UI when set
|
|
488
|
+
*/
|
|
489
|
+
"deliveryStatus": string;
|
|
484
490
|
"isDelivered": string | boolean;
|
|
485
491
|
"isForwarded": boolean;
|
|
486
492
|
"isRead": boolean;
|
|
@@ -599,6 +605,7 @@ export namespace Components {
|
|
|
599
605
|
"borderRadius": string;
|
|
600
606
|
"borderStyle": string;
|
|
601
607
|
"borderWidth": string;
|
|
608
|
+
"deliveryStatus": string;
|
|
602
609
|
"fontFamily": string;
|
|
603
610
|
"height": string;
|
|
604
611
|
"isDelivered": string;
|
|
@@ -827,20 +834,23 @@ export namespace Components {
|
|
|
827
834
|
}
|
|
828
835
|
interface ThemeProvider {
|
|
829
836
|
/**
|
|
830
|
-
*
|
|
837
|
+
* When true, also mirror mode onto <html> (legacy). Default false so embeds do not restyle the host page or fight sibling chats.
|
|
831
838
|
*/
|
|
832
|
-
"
|
|
839
|
+
"mirrorToDocument": boolean;
|
|
833
840
|
/**
|
|
834
|
-
*
|
|
841
|
+
* light | dark — drives `.theme-*` class on this host only (scoped).
|
|
835
842
|
*/
|
|
843
|
+
"mode": 'light' | 'dark';
|
|
836
844
|
"setTheme": (mode: "light" | "dark") => Promise<"dark" | "light">;
|
|
845
|
+
"setThemeObject": (theme: { [key: string]: string; } | null) => Promise<Record<string, string>>;
|
|
837
846
|
/**
|
|
838
|
-
*
|
|
847
|
+
* Inline CSS variable overrides. Keys may be `--brand` or `brand`. Applied on this host so values inherit into nested shadow trees.
|
|
839
848
|
*/
|
|
840
|
-
"
|
|
849
|
+
"themeObject"?: { [key: string]: string };
|
|
841
850
|
/**
|
|
842
|
-
*
|
|
851
|
+
* Path / URL to a CSS theme file (CDN or local).
|
|
843
852
|
*/
|
|
853
|
+
"themePath": string;
|
|
844
854
|
"toggleTheme": () => Promise<"dark" | "light">;
|
|
845
855
|
}
|
|
846
856
|
interface ToastNotification {
|
|
@@ -866,6 +876,7 @@ export namespace Components {
|
|
|
866
876
|
"borderRadius": string;
|
|
867
877
|
"borderStyle": string;
|
|
868
878
|
"borderWidth": string;
|
|
879
|
+
"deliveryStatus": string;
|
|
869
880
|
"height": string;
|
|
870
881
|
"isDelivered": string;
|
|
871
882
|
"isRead": boolean;
|
|
@@ -908,7 +919,10 @@ export namespace Components {
|
|
|
908
919
|
* Public: snapshot of current SDK UI state.
|
|
909
920
|
*/
|
|
910
921
|
"getChatState": () => Promise<{ userMetaData: any; conversations: any; messages: any; selectedConversationId: string; conversationMetaData: any; replyMessage: any; isLoading: boolean; isMqttConnected: boolean; unreadConversationsCount: number; }>;
|
|
911
|
-
|
|
922
|
+
/**
|
|
923
|
+
* When false, groupcast entry points are disabled. Default true.
|
|
924
|
+
*/
|
|
925
|
+
"groupcastEnabled": boolean;
|
|
912
926
|
"hostUrl"?: string;
|
|
913
927
|
"isAllChatButton": boolean;
|
|
914
928
|
"isChatFilter": boolean;
|
|
@@ -952,9 +966,29 @@ export namespace Components {
|
|
|
952
966
|
*/
|
|
953
967
|
"showChatWallpaper": boolean;
|
|
954
968
|
/**
|
|
955
|
-
*
|
|
969
|
+
* When false, hide the composer / footer. Default true.
|
|
970
|
+
*/
|
|
971
|
+
"showComposer": boolean;
|
|
972
|
+
/**
|
|
973
|
+
* When false, hide the conversation list (Chat tab). Default true.
|
|
974
|
+
*/
|
|
975
|
+
"showConversationList": boolean;
|
|
976
|
+
/**
|
|
977
|
+
* When false, hide the empty-state panel. Default true.
|
|
978
|
+
*/
|
|
979
|
+
"showEmptyState": boolean;
|
|
980
|
+
/**
|
|
981
|
+
* When false, hide the conversation header. Default true.
|
|
982
|
+
*/
|
|
983
|
+
"showHeader": boolean;
|
|
984
|
+
/**
|
|
985
|
+
* Show the left profile icon rail (Chat / Profile / Groupcast). - `false` → hidden (wins over a custom `slot="profile-rail"`) - `true` + `slot="profile-rail"` → host UI - `true` + no slot → default `<profile-sidebar>` Init alias: `showProfileSidebar` maps to this prop. Default true for backward compatibility.
|
|
956
986
|
*/
|
|
957
987
|
"showProfileRail": boolean;
|
|
988
|
+
/**
|
|
989
|
+
* When false, never show the right info rail. Default true.
|
|
990
|
+
*/
|
|
991
|
+
"showRightPanel": boolean;
|
|
958
992
|
"sidebarColor": string;
|
|
959
993
|
"sidebarHeaderLabel": string;
|
|
960
994
|
"sidebarSelectedColor": string;
|
|
@@ -2178,6 +2212,7 @@ declare namespace LocalJSX {
|
|
|
2178
2212
|
"borderRadius"?: string;
|
|
2179
2213
|
"borderStyle"?: string;
|
|
2180
2214
|
"borderWidth"?: string;
|
|
2215
|
+
"deliveryStatus"?: string;
|
|
2181
2216
|
"docName"?: string;
|
|
2182
2217
|
"docType"?: string;
|
|
2183
2218
|
"documentNameBg"?: string;
|
|
@@ -2270,6 +2305,7 @@ declare namespace LocalJSX {
|
|
|
2270
2305
|
"borderRadius"?: string;
|
|
2271
2306
|
"borderStyle"?: string;
|
|
2272
2307
|
"borderWidth"?: string;
|
|
2308
|
+
"deliveryStatus"?: string;
|
|
2273
2309
|
"height"?: string;
|
|
2274
2310
|
"imageSrc"?: string;
|
|
2275
2311
|
"isDelivered"?: string;
|
|
@@ -2384,6 +2420,10 @@ declare namespace LocalJSX {
|
|
|
2384
2420
|
interface MessageBubble {
|
|
2385
2421
|
"backgroundColor"?: string;
|
|
2386
2422
|
"borderRadius"?: string;
|
|
2423
|
+
/**
|
|
2424
|
+
* Optional: sending | outbox | sent | failed — drives outbox UI when set
|
|
2425
|
+
*/
|
|
2426
|
+
"deliveryStatus"?: string;
|
|
2387
2427
|
"isDelivered"?: string | boolean;
|
|
2388
2428
|
"isForwarded"?: boolean;
|
|
2389
2429
|
"isRead"?: boolean;
|
|
@@ -2513,6 +2553,7 @@ declare namespace LocalJSX {
|
|
|
2513
2553
|
"borderRadius"?: string;
|
|
2514
2554
|
"borderStyle"?: string;
|
|
2515
2555
|
"borderWidth"?: string;
|
|
2556
|
+
"deliveryStatus"?: string;
|
|
2516
2557
|
"fontFamily"?: string;
|
|
2517
2558
|
"height"?: string;
|
|
2518
2559
|
"isDelivered"?: string;
|
|
@@ -2743,11 +2784,19 @@ declare namespace LocalJSX {
|
|
|
2743
2784
|
}
|
|
2744
2785
|
interface ThemeProvider {
|
|
2745
2786
|
/**
|
|
2746
|
-
*
|
|
2787
|
+
* When true, also mirror mode onto <html> (legacy). Default false so embeds do not restyle the host page or fight sibling chats.
|
|
2788
|
+
*/
|
|
2789
|
+
"mirrorToDocument"?: boolean;
|
|
2790
|
+
/**
|
|
2791
|
+
* light | dark — drives `.theme-*` class on this host only (scoped).
|
|
2747
2792
|
*/
|
|
2748
2793
|
"mode"?: 'light' | 'dark';
|
|
2749
2794
|
/**
|
|
2750
|
-
*
|
|
2795
|
+
* Inline CSS variable overrides. Keys may be `--brand` or `brand`. Applied on this host so values inherit into nested shadow trees.
|
|
2796
|
+
*/
|
|
2797
|
+
"themeObject"?: { [key: string]: string };
|
|
2798
|
+
/**
|
|
2799
|
+
* Path / URL to a CSS theme file (CDN or local).
|
|
2751
2800
|
*/
|
|
2752
2801
|
"themePath"?: string;
|
|
2753
2802
|
}
|
|
@@ -2774,6 +2823,7 @@ declare namespace LocalJSX {
|
|
|
2774
2823
|
"borderRadius"?: string;
|
|
2775
2824
|
"borderStyle"?: string;
|
|
2776
2825
|
"borderWidth"?: string;
|
|
2826
|
+
"deliveryStatus"?: string;
|
|
2777
2827
|
"height"?: string;
|
|
2778
2828
|
"isDelivered"?: string;
|
|
2779
2829
|
"isRead"?: boolean;
|
|
@@ -2812,6 +2862,9 @@ declare namespace LocalJSX {
|
|
|
2812
2862
|
*/
|
|
2813
2863
|
"customParts"?: WebChatCustomParts;
|
|
2814
2864
|
"defaultTheme"?: string;
|
|
2865
|
+
/**
|
|
2866
|
+
* When false, groupcast entry points are disabled. Default true.
|
|
2867
|
+
*/
|
|
2815
2868
|
"groupcastEnabled"?: boolean;
|
|
2816
2869
|
"hostUrl"?: string;
|
|
2817
2870
|
"isAllChatButton"?: boolean;
|
|
@@ -2855,9 +2908,29 @@ declare namespace LocalJSX {
|
|
|
2855
2908
|
*/
|
|
2856
2909
|
"showChatWallpaper"?: boolean;
|
|
2857
2910
|
/**
|
|
2858
|
-
*
|
|
2911
|
+
* When false, hide the composer / footer. Default true.
|
|
2912
|
+
*/
|
|
2913
|
+
"showComposer"?: boolean;
|
|
2914
|
+
/**
|
|
2915
|
+
* When false, hide the conversation list (Chat tab). Default true.
|
|
2916
|
+
*/
|
|
2917
|
+
"showConversationList"?: boolean;
|
|
2918
|
+
/**
|
|
2919
|
+
* When false, hide the empty-state panel. Default true.
|
|
2920
|
+
*/
|
|
2921
|
+
"showEmptyState"?: boolean;
|
|
2922
|
+
/**
|
|
2923
|
+
* When false, hide the conversation header. Default true.
|
|
2924
|
+
*/
|
|
2925
|
+
"showHeader"?: boolean;
|
|
2926
|
+
/**
|
|
2927
|
+
* Show the left profile icon rail (Chat / Profile / Groupcast). - `false` → hidden (wins over a custom `slot="profile-rail"`) - `true` + `slot="profile-rail"` → host UI - `true` + no slot → default `<profile-sidebar>` Init alias: `showProfileSidebar` maps to this prop. Default true for backward compatibility.
|
|
2859
2928
|
*/
|
|
2860
2929
|
"showProfileRail"?: boolean;
|
|
2930
|
+
/**
|
|
2931
|
+
* When false, never show the right info rail. Default true.
|
|
2932
|
+
*/
|
|
2933
|
+
"showRightPanel"?: boolean;
|
|
2861
2934
|
"sidebarColor"?: string;
|
|
2862
2935
|
"sidebarHeaderLabel"?: string;
|
|
2863
2936
|
"sidebarSelectedColor"?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Demo customParts CEs for ?demoCustomUi=1 —
|
|
2
|
+
* Demo customParts CEs for ?demoCustomUi=1 — props + callbacks showcase.
|
|
3
3
|
* Property setters call render() so Stencil/Lit prop updates re-paint.
|
|
4
4
|
*/
|
|
5
5
|
export declare function registerCustomUiDemoElements(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { WebChatSlotName, WebChatCustomParts } from './lib/custom-ui';
|
|
2
1
|
export type { WebChatSlotName, WebChatCustomParts } from './lib/custom-ui';
|
|
3
2
|
export type { ChatReadyDetail, ConversationsChangeDetail, MessagesChangeDetail, SelectionChangeDetail, ReplyChangeDetail, ChatErrorDetail, WebChatPublicEvent, WebChatPublicMethod, MessageDeliveryStatus, MessageBubbleProps, ChatTileProps, GroupcastTileProps, MessageDatePillProps, SearchResultProps, MemberRowProps, OverlayDialogProps, MediaGalleryProps, ContextMenuProps, BlockListProps, ToastPartProps, } from './lib/custom-ui';
|
|
4
3
|
export { WEB_CHAT_SLOTS, WEB_CHAT_PUBLIC_EVENTS, WEB_CHAT_PUBLIC_METHODS, deriveMessageStatus, findWebChatHost, applyCustomPartProps, defineReactiveCustomPart, } from './lib/custom-ui';
|
|
5
4
|
export { format } from './utils/utils';
|
|
5
|
+
export { initializeIsometrikWebchat, destroyIsometrikWebchat, ensureIsometrikWebchat, retainIsometrikWebchat, releaseIsometrikWebchat, buildWebchatSessionKey, initializeChat, destroyChat, THEME_TOKEN_NAMES, normalizeThemeObject, applyThemeObjectToElement, resolveRegionMode, resolveProfileRailMode, resolveShowProfileRailProp, createWebChatApi, isometrikWebchatApi, setWebChatSlot, clearWebChatSlot, createSlotHost, setWebChatSlots, defineReactCustomPart, mountReactInSlot, unmountReactSlot, resolveThemeProvider, resolveWebChat, getChatStore, getOfflineClient, mergeMessagesById, isBrowserOnline, canUseIndexedDb, } from './sdk';
|
|
6
|
+
export type { IsometrikWebchatInitProps, InitializeChatProps, IsometrikWebchatInstance, ThemeTokenName, ThemeTokenMap, RegionMode, ProfileRailMode, WebChatApi, IsometrikWebchatApi, ReactLike, CreateRootLike, ReactSlotHost, } from './sdk';
|
|
7
|
+
export { customChatSidebar, switchChatTheme, applyCustomTheme, toggleTheme, } from './sdk/runtime-controls';
|
|
6
8
|
/**
|
|
7
9
|
* Stencil-generated component types (full catalog).
|
|
8
10
|
* Prefer the explicit custom-ui / InitializeChatProps exports above for host apps.
|
|
@@ -10,46 +12,3 @@ export { format } from './utils/utils';
|
|
|
10
12
|
* Custom elements: `dist/components/` (dist-custom-elements output)
|
|
11
13
|
*/
|
|
12
14
|
export type * from './components.d.ts';
|
|
13
|
-
export type InitializeChatProps = {
|
|
14
|
-
baseUrl?: string;
|
|
15
|
-
hostUrl?: string;
|
|
16
|
-
licenseKey: string;
|
|
17
|
-
appSecret: string;
|
|
18
|
-
userSecret: string;
|
|
19
|
-
userToken: string;
|
|
20
|
-
isometrikUserId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
keysetId: string;
|
|
23
|
-
accountId: string;
|
|
24
|
-
defaultTheme?: 'dark' | 'light';
|
|
25
|
-
themeUrl?: string;
|
|
26
|
-
containerId?: string;
|
|
27
|
-
/** Optional custom UI nodes — each gets `slot="<name>"` and is appended to <web-chat>. */
|
|
28
|
-
slots?: Partial<Record<WebChatSlotName, HTMLElement>>;
|
|
29
|
-
/** Custom element tags for list rows / dialogs. See WebChatCustomParts. */
|
|
30
|
-
customParts?: WebChatCustomParts;
|
|
31
|
-
/** When false, hide the left profile icon rail. Default true. */
|
|
32
|
-
showProfileRail?: boolean;
|
|
33
|
-
/** When false, no doodle wallpaper behind messages. Default true. */
|
|
34
|
-
showChatWallpaper?: boolean;
|
|
35
|
-
/** When false, hide groupcast entry points. Default true. */
|
|
36
|
-
groupcastEnabled?: boolean;
|
|
37
|
-
};
|
|
38
|
-
/** Tear down existing chat instance (MQTT via disconnectedCallback, DOM). */
|
|
39
|
-
export declare const destroyChat: () => void;
|
|
40
|
-
export declare const initializeChat: (props: InitializeChatProps) => {
|
|
41
|
-
themeProvider: HTMLThemeProviderElement;
|
|
42
|
-
chatComponent: any;
|
|
43
|
-
destroy: () => void;
|
|
44
|
-
};
|
|
45
|
-
export declare const customChatSidebar: (props: {
|
|
46
|
-
isChatFilter?: boolean;
|
|
47
|
-
}) => void;
|
|
48
|
-
export declare const switchChatTheme: (theme: "dark" | "light") => void;
|
|
49
|
-
export declare const applyCustomTheme: (customTheme: {
|
|
50
|
-
themePath?: string;
|
|
51
|
-
themeObject?: {
|
|
52
|
-
[key: string]: string;
|
|
53
|
-
};
|
|
54
|
-
}) => void;
|
|
55
|
-
export declare const toggleTheme: () => void;
|