isometrik-plugin-chat-sdk 1.0.8 → 1.3.13
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/LICENSE +21 -0
- package/dist/cjs/attachment-preview_22.cjs.entry.js +10 -9
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
- package/dist/cjs/audio-bubble_4.cjs.entry.js +1 -1
- package/dist/cjs/chat-assets-e32e80c0.js +73 -0
- package/dist/cjs/chat-assets-e32e80c0.js.map +1 -0
- package/dist/cjs/chat-tile_3.cjs.entry.js +1 -1
- package/dist/cjs/forward-memebers.cjs.entry.js +1 -1
- package/dist/cjs/isometrik-webchat.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/login-page_3.cjs.entry.js +23 -13
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/cjs/member-add.cjs.entry.js +1 -1
- package/dist/cjs/new-chat-sidebar.cjs.entry.js +1 -1
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +6 -7
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +12 -12
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/WebChat.js +39 -6
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/shell-render.js +4 -2
- package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
- package/dist/collection/components/theme-provider.js +9 -9
- package/dist/collection/components/theme-provider.js.map +1 -1
- package/dist/collection/constants/chat-assets.js +39 -123
- package/dist/components/ChatSidebar.js +2 -2
- package/dist/components/ChatSidebar.js.map +1 -1
- package/dist/components/WebChat.js +15 -4
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/WebChatBody.js +9 -8
- package/dist/components/WebChatBody.js.map +1 -1
- package/dist/components/chat-assets.js +34 -82
- package/dist/components/chat-assets.js.map +1 -1
- package/dist/components/theme-provider2.js +9 -9
- package/dist/components/theme-provider2.js.map +1 -1
- package/dist/esm/attachment-preview_22.entry.js +10 -9
- package/dist/esm/attachment-preview_22.entry.js.map +1 -1
- package/dist/esm/audio-bubble_4.entry.js +1 -1
- package/dist/esm/chat-assets-4dfb1106.js +38 -0
- package/dist/esm/chat-assets-4dfb1106.js.map +1 -0
- package/dist/esm/chat-tile_3.entry.js +1 -1
- package/dist/esm/forward-memebers.entry.js +1 -1
- package/dist/esm/isometrik-webchat.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/login-page_3.entry.js +23 -13
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/esm/member-add.entry.js +1 -1
- package/dist/esm/new-chat-sidebar.entry.js +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-188b2631.entry.js → p-0085b397.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-ab5e1e85.entry.js → p-1ad1127f.entry.js} +2 -2
- package/dist/isometrik-webchat/p-6d9f8cec.entry.js +2 -0
- package/dist/isometrik-webchat/p-6d9f8cec.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-b44f0bd1.entry.js → p-6ec350aa.entry.js} +2 -2
- package/dist/isometrik-webchat/p-6ffeb379.entry.js +2 -0
- package/dist/isometrik-webchat/p-6ffeb379.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-e589ff24.entry.js → p-71cc96a3.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-ff8f6bd2.entry.js → p-b8cef5e4.entry.js} +2 -2
- package/dist/isometrik-webchat/p-d424871c.js +2 -0
- package/dist/isometrik-webchat/p-d424871c.js.map +1 -0
- package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +2 -1
- package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +2 -2
- package/dist/types/components/theme-provider.d.ts +3 -2
- package/dist/types/components.d.ts +26 -8
- package/package.json +53 -10
- package/readme.md +428 -0
- package/dist/cjs/chat-assets-ff067e4d.js +0 -121
- package/dist/cjs/chat-assets-ff067e4d.js.map +0 -1
- package/dist/collection/assets/ExcelDocument.js +0 -2
- package/dist/collection/assets/IsometrikLogo.js +0 -38
- package/dist/collection/assets/Moon.svg +0 -1
- package/dist/collection/assets/New-Chat.svg +0 -5
- package/dist/collection/assets/NoChatPlaceholder.js +0 -16
- package/dist/collection/assets/NoContactsPlaceholder.js +0 -9
- package/dist/collection/assets/NoMessagePlaceholder.svg +0 -13
- package/dist/collection/assets/PdfDocument.js +0 -2
- package/dist/collection/assets/ProfilePlaceholder.js +0 -1
- package/dist/collection/assets/SelectChatPlaceholder.js +0 -13
- package/dist/collection/assets/Sun.svg +0 -1
- package/dist/collection/assets/add-user.svg +0 -6
- package/dist/collection/assets/attachment.svg +0 -4
- package/dist/collection/assets/avatar.svg +0 -1
- package/dist/collection/assets/block-user.svg +0 -4
- package/dist/collection/assets/camera-add.svg +0 -4
- package/dist/collection/assets/camera.svg +0 -17
- package/dist/collection/assets/cancel.svg +0 -12
- package/dist/collection/assets/chatBG.png +0 -0
- package/dist/collection/assets/chatdefaultbg.svg +0 -6140
- package/dist/collection/assets/clear-chat.svg +0 -4
- package/dist/collection/assets/close.svg +0 -4
- package/dist/collection/assets/dark-theme.svg +0 -12
- package/dist/collection/assets/delete.svg +0 -8
- package/dist/collection/assets/doc.png +0 -0
- package/dist/collection/assets/documents.svg +0 -15
- package/dist/collection/assets/doublecheck.svg +0 -1
- package/dist/collection/assets/download.svg +0 -4
- package/dist/collection/assets/drop-down.svg +0 -5
- package/dist/collection/assets/edit.svg +0 -4
- package/dist/collection/assets/equalizer.svg +0 -1
- package/dist/collection/assets/excel.svg +0 -2
- package/dist/collection/assets/forward.svg +0 -4
- package/dist/collection/assets/group-cast.svg +0 -1
- package/dist/collection/assets/group.svg +0 -13
- package/dist/collection/assets/imagePlaceholder.png +0 -0
- package/dist/collection/assets/imagePlaceholder.svg +0 -2
- package/dist/collection/assets/info.svg +0 -4
- package/dist/collection/assets/left-arrow.svg +0 -4
- package/dist/collection/assets/link.svg +0 -1
- package/dist/collection/assets/login.svg +0 -3051
- package/dist/collection/assets/logout.svg +0 -5
- package/dist/collection/assets/message-outline.svg +0 -5
- package/dist/collection/assets/message.svg +0 -1
- package/dist/collection/assets/microphone.svg +0 -2
- package/dist/collection/assets/new_group.svg +0 -9
- package/dist/collection/assets/odt-file.png +0 -0
- package/dist/collection/assets/onboarding.webp +0 -0
- package/dist/collection/assets/paper.svg +0 -5
- package/dist/collection/assets/pause.svg +0 -4
- package/dist/collection/assets/pdf.svg +0 -11
- package/dist/collection/assets/photos.svg +0 -4
- package/dist/collection/assets/play.svg +0 -19
- package/dist/collection/assets/profilePlaceholderImage.png +0 -0
- package/dist/collection/assets/reply.svg +0 -4
- package/dist/collection/assets/rtf.png +0 -0
- package/dist/collection/assets/search.svg +0 -4
- package/dist/collection/assets/send.svg +0 -4
- package/dist/collection/assets/singlecheck.svg +0 -1
- package/dist/collection/assets/smile.svg +0 -2
- package/dist/collection/assets/three-dots.svg +0 -5
- package/dist/collection/assets/txt.png +0 -0
- package/dist/collection/assets/videoPlaceholder.svg +0 -4
- package/dist/collection/assets/videoThumbnail.svg +0 -1
- package/dist/collection/components/ChatUIComponent/AudioBubble.js +0 -315
- package/dist/collection/components/ChatUIComponent/BlockChatList.js +0 -177
- package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +0 -152
- package/dist/collection/components/ChatUIComponent/GroupCast.js +0 -461
- package/dist/collection/components/ChatUIComponent/shared/attachment-preview.js +0 -230
- package/dist/collection/components/ChatUIComponent/shared/chat-loading-placeholder.js +0 -70
- package/dist/collection/components/ChatUIComponent/shared/confirm-dialog.js +0 -51
- package/dist/collection/components/ChatUIComponent/shared/contact-info.js +0 -255
- package/dist/collection/components/ChatUIComponent/shared/context-menu.js +0 -112
- package/dist/collection/components/ChatUIComponent/shared/delete-message.js +0 -49
- package/dist/collection/components/ChatUIComponent/shared/document-message.js +0 -161
- package/dist/collection/components/ChatUIComponent/shared/forward-message.js +0 -139
- package/dist/collection/components/ChatUIComponent/shared/group-chat-contacts.js +0 -201
- package/dist/collection/components/ChatUIComponent/shared/group-info.js +0 -170
- package/dist/collection/components/ChatUIComponent/shared/image-message.js +0 -156
- package/dist/collection/components/ChatUIComponent/shared/incoming-text-message-bubble.js +0 -98
- package/dist/collection/components/ChatUIComponent/shared/link-preview.js +0 -125
- package/dist/collection/components/ChatUIComponent/shared/media-gallery.js +0 -152
- package/dist/collection/components/ChatUIComponent/shared/message-body-render.js +0 -19
- package/dist/collection/components/ChatUIComponent/shared/message-bubble.js +0 -189
- package/dist/collection/components/ChatUIComponent/shared/message-date-pill.js +0 -86
- package/dist/collection/components/ChatUIComponent/shared/message-info.js +0 -188
- package/dist/collection/components/ChatUIComponent/shared/message-search.js +0 -125
- package/dist/collection/components/ChatUIComponent/shared/new-chat-sidebar.js +0 -181
- package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble.js +0 -98
- package/dist/collection/components/ChatUIComponent/shared/profile-avatar.js +0 -136
- package/dist/collection/components/ChatUIComponent/shared/profile-info.js +0 -220
- package/dist/collection/components/ChatUIComponent/shared/reply-block.js +0 -162
- package/dist/collection/components/ChatUIComponent/shared/reply-message-container.js +0 -193
- package/dist/collection/components/ChatUIComponent/shared/share-popup.js +0 -69
- package/dist/collection/components/ChatUIComponent/shared/spinner-loader.js +0 -74
- package/dist/collection/components/ChatUIComponent/shared/toast-notification.js +0 -106
- package/dist/collection/components/ChatUIComponent/shared/video-message.js +0 -165
- package/dist/collection/components/my-component/my-component.e2e.js +0 -25
- package/dist/collection/components/my-component/my-component.spec.js +0 -34
- package/dist/collection/components/my-component/web-chat/web-chat-split.spec.js +0 -40
- package/dist/collection/lib/chat/chat.spec.js +0 -28
- package/dist/collection/lib/custom-ui/custom-ui.spec.js +0 -49
- package/dist/collection/lib/message-body-segments.spec.js +0 -21
- package/dist/collection/lib/message-dedup.spec.js +0 -17
- package/dist/collection/lib/mqtt/mqtt.spec.js +0 -39
- package/dist/collection/utils/utils.spec.js +0 -15
- package/dist/esm/chat-assets-95633770.js +0 -86
- package/dist/esm/chat-assets-95633770.js.map +0 -1
- package/dist/isometrik-webchat/assets/ExcelDocument.js +0 -2
- package/dist/isometrik-webchat/assets/IsometrikLogo.js +0 -38
- package/dist/isometrik-webchat/assets/Moon.svg +0 -1
- package/dist/isometrik-webchat/assets/New-Chat.svg +0 -5
- package/dist/isometrik-webchat/assets/NoChatPlaceholder.js +0 -16
- package/dist/isometrik-webchat/assets/NoContactsPlaceholder.js +0 -9
- package/dist/isometrik-webchat/assets/NoMessagePlaceholder.svg +0 -13
- package/dist/isometrik-webchat/assets/PdfDocument.js +0 -2
- package/dist/isometrik-webchat/assets/ProfilePlaceholder.js +0 -1
- package/dist/isometrik-webchat/assets/SelectChatPlaceholder.js +0 -13
- package/dist/isometrik-webchat/assets/Sun.svg +0 -1
- package/dist/isometrik-webchat/assets/add-user.svg +0 -6
- package/dist/isometrik-webchat/assets/attachment.svg +0 -4
- package/dist/isometrik-webchat/assets/avatar.svg +0 -1
- package/dist/isometrik-webchat/assets/block-user.svg +0 -4
- package/dist/isometrik-webchat/assets/camera-add.svg +0 -4
- package/dist/isometrik-webchat/assets/camera.svg +0 -17
- package/dist/isometrik-webchat/assets/cancel.svg +0 -12
- package/dist/isometrik-webchat/assets/chatBG.png +0 -0
- package/dist/isometrik-webchat/assets/chatdefaultbg.svg +0 -6140
- package/dist/isometrik-webchat/assets/clear-chat.svg +0 -4
- package/dist/isometrik-webchat/assets/close.svg +0 -4
- package/dist/isometrik-webchat/assets/dark-theme.svg +0 -12
- package/dist/isometrik-webchat/assets/delete.svg +0 -8
- package/dist/isometrik-webchat/assets/doc.png +0 -0
- package/dist/isometrik-webchat/assets/documents.svg +0 -15
- package/dist/isometrik-webchat/assets/doublecheck.svg +0 -1
- package/dist/isometrik-webchat/assets/download.svg +0 -4
- package/dist/isometrik-webchat/assets/drop-down.svg +0 -5
- package/dist/isometrik-webchat/assets/edit.svg +0 -4
- package/dist/isometrik-webchat/assets/equalizer.svg +0 -1
- package/dist/isometrik-webchat/assets/excel.svg +0 -2
- package/dist/isometrik-webchat/assets/forward.svg +0 -4
- package/dist/isometrik-webchat/assets/group-cast.svg +0 -1
- package/dist/isometrik-webchat/assets/group.svg +0 -13
- package/dist/isometrik-webchat/assets/imagePlaceholder.png +0 -0
- package/dist/isometrik-webchat/assets/imagePlaceholder.svg +0 -2
- package/dist/isometrik-webchat/assets/info.svg +0 -4
- package/dist/isometrik-webchat/assets/left-arrow.svg +0 -4
- package/dist/isometrik-webchat/assets/link.svg +0 -1
- package/dist/isometrik-webchat/assets/login.svg +0 -3051
- package/dist/isometrik-webchat/assets/logout.svg +0 -5
- package/dist/isometrik-webchat/assets/message-outline.svg +0 -5
- package/dist/isometrik-webchat/assets/message.svg +0 -1
- package/dist/isometrik-webchat/assets/microphone.svg +0 -2
- package/dist/isometrik-webchat/assets/new_group.svg +0 -9
- package/dist/isometrik-webchat/assets/odt-file.png +0 -0
- package/dist/isometrik-webchat/assets/onboarding.webp +0 -0
- package/dist/isometrik-webchat/assets/paper.svg +0 -5
- package/dist/isometrik-webchat/assets/pause.svg +0 -4
- package/dist/isometrik-webchat/assets/pdf.svg +0 -11
- package/dist/isometrik-webchat/assets/photos.svg +0 -4
- package/dist/isometrik-webchat/assets/play.svg +0 -19
- package/dist/isometrik-webchat/assets/profilePlaceholderImage.png +0 -0
- package/dist/isometrik-webchat/assets/reply.svg +0 -4
- package/dist/isometrik-webchat/assets/rtf.png +0 -0
- package/dist/isometrik-webchat/assets/search.svg +0 -4
- package/dist/isometrik-webchat/assets/send.svg +0 -4
- package/dist/isometrik-webchat/assets/singlecheck.svg +0 -1
- package/dist/isometrik-webchat/assets/smile.svg +0 -2
- package/dist/isometrik-webchat/assets/three-dots.svg +0 -5
- package/dist/isometrik-webchat/assets/txt.png +0 -0
- package/dist/isometrik-webchat/assets/videoPlaceholder.svg +0 -4
- package/dist/isometrik-webchat/assets/videoThumbnail.svg +0 -1
- package/dist/isometrik-webchat/p-4bad6da9.entry.js +0 -2
- package/dist/isometrik-webchat/p-4bad6da9.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-8c73a5d5.entry.js +0 -2
- package/dist/isometrik-webchat/p-8c73a5d5.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-d6f0838c.js +0 -2
- package/dist/isometrik-webchat/p-d6f0838c.js.map +0 -1
- /package/dist/isometrik-webchat/{p-188b2631.entry.js.map → p-0085b397.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-ab5e1e85.entry.js.map → p-1ad1127f.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-b44f0bd1.entry.js.map → p-6ec350aa.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-e589ff24.entry.js.map → p-71cc96a3.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-ff8f6bd2.entry.js.map → p-b8cef5e4.entry.js.map} +0 -0
|
@@ -1,85 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return {
|
|
36
|
-
toString() {
|
|
37
|
-
return `${getAssetBase()}/${rel}`;
|
|
38
|
-
},
|
|
39
|
-
valueOf() {
|
|
40
|
-
return `${getAssetBase()}/${rel}`;
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const ChatBg = asset('../assets/images/chatdefaultbg.svg');
|
|
46
|
-
const CloseButton = asset('../assets/svg/close.svg');
|
|
47
|
-
const Cancel = asset('../assets/svg/cancel.svg');
|
|
48
|
-
asset('../assets/svg/Sun.svg');
|
|
49
|
-
asset('../assets/svg/Moon.svg');
|
|
50
|
-
const Message = asset('../assets/svg/message.svg');
|
|
51
|
-
asset('../assets/svg/message-outline.svg');
|
|
52
|
-
const Group = asset('../assets/svg/group.svg');
|
|
53
|
-
asset('../assets/svg/message-add.svg');
|
|
54
|
-
const Login_banner = asset('../assets/svg/login.svg');
|
|
55
|
-
const Group_cast = asset('../assets/svg/group-cast.svg');
|
|
56
|
-
const New_Chat = asset('../assets/svg/New-Chat.svg');
|
|
57
|
-
const Three_Dots = asset('../assets/svg/three-dots.svg');
|
|
58
|
-
const New_Group = asset('../assets/svg/new_group.svg');
|
|
59
|
-
const Dark_Theme = asset('../assets/svg/dark-theme.svg');
|
|
60
|
-
const Block_User = asset('../assets/svg/block-user.svg');
|
|
61
|
-
const Edit = asset('../assets/svg/edit.svg');
|
|
62
|
-
const Left_Arrow = asset('../assets/svg/left-arrow.svg');
|
|
63
|
-
const Logout = asset('../assets/svg/logout.svg');
|
|
64
|
-
const Camera_Add = asset('../assets/svg/camera-add.svg');
|
|
65
|
-
const Search = asset('../assets/svg/search.svg');
|
|
66
|
-
const Clear_Chat = asset('../assets/svg/clear-chat.svg');
|
|
67
|
-
const Delete = asset('../assets/svg/delete.svg');
|
|
68
|
-
const Drop_Down = asset('../assets/svg/drop-down.svg');
|
|
69
|
-
const Reply = asset('../assets/svg/reply.svg');
|
|
70
|
-
const Forward = asset('../assets/svg/forward.svg');
|
|
71
|
-
const Info = asset('../assets/svg/info.svg');
|
|
72
|
-
const Add_User = asset('../assets/svg/add-user.svg');
|
|
73
|
-
const Icon_Doc = asset('../assets/images/pdf.svg');
|
|
74
|
-
const Icon_Excel = asset('../assets/images/excel.svg');
|
|
75
|
-
const Icon_Txt = asset('../assets/images/txt.png');
|
|
76
|
-
const Icon_Rtf = asset('../assets/images/rtf.png');
|
|
77
|
-
const Icon_Link = asset('../assets/images/link.svg');
|
|
78
|
-
const Icon_Image = asset('../assets/images/imagePlaceholder.svg');
|
|
79
|
-
const Microphone = asset('../assets/svg/microphone.svg');
|
|
80
|
-
const Send = asset('../assets/svg/send.svg');
|
|
81
|
-
const Smile = asset('../assets/svg/smile.svg');
|
|
82
|
-
const Attachment = asset('../assets/svg/attachment.svg');
|
|
1
|
+
const ChatBg = '../assets/images/chatdefaultbg.svg';
|
|
2
|
+
const CloseButton = '../assets/svg/close.svg';
|
|
3
|
+
const Cancel = '../assets/svg/cancel.svg';
|
|
4
|
+
const Message = '../assets/svg/message.svg';
|
|
5
|
+
const Group = '../assets/svg/group.svg';
|
|
6
|
+
const Login_banner ='../assets/svg/login.svg';
|
|
7
|
+
const Group_cast = '../assets/svg/group-cast.svg';
|
|
8
|
+
const New_Chat = '../assets/svg/New-Chat.svg';
|
|
9
|
+
const Three_Dots = '../assets/svg/three-dots.svg';
|
|
10
|
+
const New_Group = '../assets/svg/new_group.svg';
|
|
11
|
+
const Dark_Theme = '../assets/svg/dark-theme.svg';
|
|
12
|
+
const Block_User = '../assets/svg/block-user.svg';
|
|
13
|
+
const Edit = '../assets/svg/edit.svg';
|
|
14
|
+
const Left_Arrow = '../assets/svg/left-arrow.svg';
|
|
15
|
+
const Logout = '../assets/svg/logout.svg';
|
|
16
|
+
const Camera_Add = '../assets/svg/camera-add.svg';
|
|
17
|
+
const Search = '../assets/svg/search.svg';
|
|
18
|
+
const Clear_Chat = '../assets/svg/clear-chat.svg';
|
|
19
|
+
const Delete = '../assets/svg/delete.svg';
|
|
20
|
+
const Drop_Down = '../assets/svg/drop-down.svg';
|
|
21
|
+
const Reply = '../assets/svg/reply.svg';
|
|
22
|
+
const Forward = '../assets/svg/forward.svg';
|
|
23
|
+
const Info = '../assets/svg/info.svg';
|
|
24
|
+
const Add_User = '../assets/svg/add-user.svg';
|
|
25
|
+
const Icon_Doc = '../assets/images/pdf.svg';
|
|
26
|
+
const Icon_Excel = '../assets/images/excel.svg';
|
|
27
|
+
const Icon_Txt = '../assets/images/txt.png';
|
|
28
|
+
const Icon_Rtf = '../assets/images/rtf.png';
|
|
29
|
+
const Icon_Link = '../assets/images/link.svg';
|
|
30
|
+
const Icon_Image = '../assets/images/imagePlaceholder.svg';
|
|
31
|
+
const Microphone = '../assets/svg/microphone.svg';
|
|
32
|
+
const Send = '../assets/svg/send.svg';
|
|
33
|
+
const Smile = '../assets/svg/smile.svg';
|
|
34
|
+
const Attachment = '../assets/svg/attachment.svg';
|
|
83
35
|
|
|
84
36
|
export { Attachment as A, Block_User as B, ChatBg as C, Delete as D, Edit as E, Forward as F, Group_cast as G, Icon_Excel as I, Left_Arrow as L, Microphone as M, New_Chat as N, Reply as R, Smile as S, Three_Dots as T, Icon_Rtf as a, Icon_Txt as b, Icon_Doc as c, Send as d, Login_banner as e, New_Group as f, Logout as g, Icon_Image as h, Icon_Link as i, Drop_Down as j, Clear_Chat as k, Search as l, Camera_Add as m, Dark_Theme as n, Message as o, CloseButton as p, Info as q, Add_User as r, Cancel as s, Group as t };
|
|
85
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"chat-assets.js","mappings":"
|
|
1
|
+
{"file":"chat-assets.js","mappings":"AAAY,MAAC,MAAM,GAAG,qCAAqC;AAC/C,MAAC,WAAW,GAAG,0BAA0B;AACzC,MAAC,MAAM,GAAG,2BAA2B;AAGrC,MAAC,OAAO,GAAG,4BAA4B;AAEvC,MAAC,KAAK,GAAG,0BAA0B;AAEnC,MAAC,YAAY,EAAE,0BAAyB;AACxC,MAAC,UAAU,GAAG,+BAA+B;AAC7C,MAAC,QAAQ,GAAG,6BAA6B;AACzC,MAAC,UAAU,GAAG,+BAA+B;AAC7C,MAAC,SAAS,GAAG,8BAA8B;AAC3C,MAAC,UAAU,GAAG,+BAA+B;AAC7C,MAAC,UAAU,GAAG,+BAA+B;AAC7C,MAAC,IAAI,GAAG,yBAAyB;AACjC,MAAC,UAAU,GAAG,+BAA+B;AAC7C,MAAC,MAAM,GAAG,2BAA2B;AACrC,MAAC,UAAU,GAAG,+BAA+B;AAC7C,MAAC,MAAM,GAAG,2BAA2B;AACrC,MAAC,UAAU,GAAG,+BAA+B;AAC7C,MAAC,MAAM,GAAG,2BAA2B;AACrC,MAAC,SAAS,GAAG,8BAA8B;AAC3C,MAAC,KAAK,GAAG,0BAA0B;AACnC,MAAC,OAAO,GAAG,4BAA4B;AACvC,MAAC,IAAI,GAAG,yBAAyB;AACjC,MAAC,QAAQ,GAAG,6BAA6B;AACzC,MAAC,QAAQ,GAAG,2BAA2B;AACvC,MAAC,UAAU,GAAG,6BAA6B;AAC3C,MAAC,QAAQ,GAAG,2BAA2B;AACvC,MAAC,QAAQ,GAAG,2BAA2B;AACvC,MAAC,SAAS,GAAG,4BAA4B;AACzC,MAAC,UAAU,GAAG,wCAAwC;AACtD,MAAC,UAAU,GAAG,+BAA+B;AAC7C,MAAC,IAAI,GAAG,yBAAyB;AACjC,MAAC,KAAK,GAAG,0BAA0B;AACnC,MAAC,UAAU,GAAG;;;;","names":[],"sources":["src/constants/chat-assets.js"],"sourcesContent":["export const ChatBg = '../assets/images/chatdefaultbg.svg';\nexport const CloseButton = '../assets/svg/close.svg';\nexport const Cancel = '../assets/svg/cancel.svg';\nexport const SUN = '../assets/svg/Sun.svg';\nexport const MOON = '../assets/svg/Moon.svg';\nexport const Message = '../assets/svg/message.svg';\nexport const Message_outline = '../assets/svg/message-outline.svg';\nexport const Group = '../assets/svg/group.svg';\nexport const Message_Add = '../assets/svg/message-add.svg';\nexport const Login_banner ='../assets/svg/login.svg'\nexport const Group_cast = '../assets/svg/group-cast.svg';\nexport const New_Chat = '../assets/svg/New-Chat.svg';\nexport const Three_Dots = '../assets/svg/three-dots.svg';\nexport const New_Group = '../assets/svg/new_group.svg';\nexport const Dark_Theme = '../assets/svg/dark-theme.svg';\nexport const Block_User = '../assets/svg/block-user.svg';\nexport const Edit = '../assets/svg/edit.svg';\nexport const Left_Arrow = '../assets/svg/left-arrow.svg';\nexport const Logout = '../assets/svg/logout.svg';\nexport const Camera_Add = '../assets/svg/camera-add.svg';\nexport const Search = '../assets/svg/search.svg';\nexport const Clear_Chat = '../assets/svg/clear-chat.svg';\nexport const Delete = '../assets/svg/delete.svg';\nexport const Drop_Down = '../assets/svg/drop-down.svg';\nexport const Reply = '../assets/svg/reply.svg';\nexport const Forward = '../assets/svg/forward.svg';\nexport const Info = '../assets/svg/info.svg';\nexport const Add_User = '../assets/svg/add-user.svg';\nexport const Icon_Doc = '../assets/images/pdf.svg';\nexport const Icon_Excel = '../assets/images/excel.svg';\nexport const Icon_Txt = '../assets/images/txt.png';\nexport const Icon_Rtf = '../assets/images/rtf.png';\nexport const Icon_Link = '../assets/images/link.svg';\nexport const Icon_Image = '../assets/images/imagePlaceholder.svg';\nexport const Microphone = '../assets/svg/microphone.svg';\nexport const Send = '../assets/svg/send.svg';\nexport const Smile = '../assets/svg/smile.svg';\nexport const Attachment = '../assets/svg/attachment.svg';\nexport default { ChatBg,Login_banner,CloseButton,Cancel,SUN,MOON,Message,Message_outline,Group,Message_Add,Group_cast,New_Chat,Three_Dots,New_Group,Dark_Theme,Block_User,Edit,Left_Arrow,Logout,Camera_Add,Search,Clear_Chat,Delete,Drop_Down,Reply,Forward,Info,Add_User,Icon_Doc,Icon_Excel,Icon_Txt,Icon_Rtf,Icon_Link,Icon_Image,Microphone,Send,Smile,Attachment };"],"version":3}
|
|
@@ -27,20 +27,21 @@ const ThemeProvider = /*@__PURE__*/ proxyCustomElement(class ThemeProvider exten
|
|
|
27
27
|
* Component lifecycle method that runs once after the component is first connected to the DOM
|
|
28
28
|
*/
|
|
29
29
|
componentDidLoad() {
|
|
30
|
+
// Load theme from path if provided
|
|
30
31
|
if (this.themePath) {
|
|
31
32
|
this.loadThemeFromPath(this.themePath);
|
|
32
33
|
}
|
|
34
|
+
// Set initial theme class
|
|
33
35
|
this.updateThemeClass(this.mode);
|
|
34
36
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
/** Scope chat theme to this provider — never mutate the host app <html>. */
|
|
37
|
+
/**
|
|
38
|
+
* Update the theme class on the document body
|
|
39
|
+
*/
|
|
40
40
|
updateThemeClass(mode) {
|
|
41
|
+
// Remove existing theme classes
|
|
41
42
|
document.documentElement.classList.remove('theme-light', 'theme-dark');
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
// Add the appropriate class
|
|
44
|
+
document.documentElement.classList.add(`theme-${mode}`);
|
|
44
45
|
// Dispatch a theme change event
|
|
45
46
|
const themeChangeEvent = new CustomEvent('themechange', {
|
|
46
47
|
detail: { mode },
|
|
@@ -81,14 +82,13 @@ const ThemeProvider = /*@__PURE__*/ proxyCustomElement(class ThemeProvider exten
|
|
|
81
82
|
return this.mode;
|
|
82
83
|
}
|
|
83
84
|
render() {
|
|
84
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: '437b7df4e9fb82384b7c7eedf6438fd3585f3827', class: `theme-provider-container theme-${this.mode}` }, h("slot", { key: '43c375abcf9c6bcbed267a5a436ab1bc329933d6' })));
|
|
85
86
|
}
|
|
86
87
|
get hostElement() { return this; }
|
|
87
88
|
static get watchers() { return {
|
|
88
89
|
"themePath": ["handleThemePathChange"],
|
|
89
90
|
"mode": ["handleModeChange"]
|
|
90
91
|
}; }
|
|
91
|
-
static get style() { return ":host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n }\n .theme-provider-container {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n width: 100%;\n height: 100%;\n min-height: 0;\n }\n ::slotted(*) {\n flex: 1 1 auto;\n width: 100%;\n height: 100%;\n min-height: 0;\n }\n :host(.theme-dark) {\n --bg-primary: #0e0a1f;\n --bg-secondary: #212936;\n --bg-tertiary: #1a1529;\n --text-primary: #ffffff;\n --text-secondary: #9ea4c3;\n --text-tertiary: #c5c0ff;\n --brand: #7062e9;\n --brand-soft: rgba(112, 98, 233, 0.25);\n --brand-muted: rgba(62, 51, 97, 0.7);\n --text-on-brand: #ffffff;\n --border: #293343;\n --border-subtle: #231e36;\n --hover-overlay: rgba(255, 255, 255, 0.06);\n --overlay: rgba(0, 0, 0, 0.5);\n --focus-ring: rgba(112, 98, 233, 0.5);\n --bg-input: #1d182f;\n --bg-row-hover: #231e36;\n --icon: #9ea4c3;\n --svg-icon-filter: brightness(0) invert(1);\n }"; }
|
|
92
92
|
}, [1, "theme-provider", {
|
|
93
93
|
"themePath": [1, "theme-path"],
|
|
94
94
|
"mode": [1537],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"theme-provider2.js","mappings":";;
|
|
1
|
+
{"file":"theme-provider2.js","mappings":";;MAMa,aAAa;;;;;;oBAWyC,OAAO;4BAKxB,IAAI;;;;;IAMpD,qBAAqB,CAAC,OAAe;QACnC,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;SACjC;KACF;;;;IAMD,gBAAgB,CAAC,OAAyB;QACxC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;KAChC;;;;IAKD,gBAAgB;;QAEd,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACxC;;QAGD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClC;;;;IAKO,gBAAgB,CAAC,IAAsB;;QAE7C,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;;QAGvE,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;;QAGxD,MAAM,gBAAgB,GAAG,IAAI,WAAW,CAAC,aAAa,EAAE;YACtD,MAAM,EAAE,EAAE,IAAI,EAAE;YAChB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;KAClD;;;;IAKO,iBAAiB,CAAC,IAAY;;QAEpC,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC9C;;QAGD,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC,YAAY,CAAC,GAAG,GAAG,YAAY,CAAC;QACrC,IAAI,CAAC,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;;QAG9B,IAAI,CAAC,YAAY,CAAC,EAAE,GAAG,4BAA4B,CAAC;;QAGpD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC9C;;;;IAMD,MAAM,WAAW;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;QACrD,OAAO,IAAI,CAAC,IAAI,CAAC;KAClB;;;;IAMD,MAAM,QAAQ,CAAC,IAAsB;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC;KAClB;IAED,MAAM;QACJ,QACE,4DAAK,KAAK,EAAE,kCAAkC,IAAI,CAAC,IAAI,EAAE,IACvD,8DAAa,CACT,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/theme-provider.tsx"],"sourcesContent":["import { Component, Prop, h, State, Watch, Element, Method } from '@stencil/core';\n\n@Component({\n tag: 'theme-provider',\n shadow: true,\n})\nexport class ThemeProvider {\n @Element() hostElement: HTMLElement;\n \n /**\n * Path to the CSS theme file\n */\n @Prop() themePath: string;\n \n /**\n * Current theme mode\n */\n @Prop({ mutable: true, reflect: true }) mode: 'light' | 'dark' = 'light';\n \n /**\n * Internal stylesheet element reference\n */\n @State() styleElement: HTMLLinkElement | null = null;\n \n /**\n * Watch for changes to the theme path and update the stylesheet\n */\n @Watch('themePath')\n handleThemePathChange(newPath: string) {\n if (newPath) {\n this.loadThemeFromPath(newPath);\n }\n }\n \n /**\n * Watch for changes to theme mode\n */\n @Watch('mode')\n handleModeChange(newMode: 'light' | 'dark') {\n this.updateThemeClass(newMode);\n }\n \n /**\n * Component lifecycle method that runs once after the component is first connected to the DOM\n */\n componentDidLoad() {\n // Load theme from path if provided\n if (this.themePath) {\n this.loadThemeFromPath(this.themePath);\n }\n \n // Set initial theme class\n this.updateThemeClass(this.mode);\n }\n \n /**\n * Update the theme class on the document body\n */\n private updateThemeClass(mode: 'light' | 'dark') {\n // Remove existing theme classes\n document.documentElement.classList.remove('theme-light', 'theme-dark');\n \n // Add the appropriate class\n document.documentElement.classList.add(`theme-${mode}`);\n \n // Dispatch a theme change event\n const themeChangeEvent = new CustomEvent('themechange', {\n detail: { mode },\n bubbles: true,\n composed: true\n });\n this.hostElement.dispatchEvent(themeChangeEvent);\n }\n \n /**\n * Load a theme from a CSS file path\n */\n private loadThemeFromPath(path: string) {\n // Remove any existing stylesheet if it exists\n if (this.styleElement) {\n document.head.removeChild(this.styleElement);\n }\n \n // Create a new link element for the CSS file\n this.styleElement = document.createElement('link');\n this.styleElement.rel = 'stylesheet';\n this.styleElement.href = path;\n \n // Add an ID to make it easier to find and remove later if needed\n this.styleElement.id = 'isometrik-theme-stylesheet';\n \n // Append the stylesheet to the document head\n document.head.appendChild(this.styleElement);\n }\n \n /**\n * Public method to toggle between light and dark themes\n */\n @Method()\n async toggleTheme() {\n this.mode = this.mode === 'light' ? 'dark' : 'light';\n return this.mode;\n }\n \n /**\n * Public method to set theme explicitly\n */\n @Method()\n async setTheme(mode: 'light' | 'dark') {\n this.mode = mode;\n return this.mode;\n }\n \n render() {\n return (\n <div class={`theme-provider-container theme-${this.mode}`}>\n <slot></slot>\n </div>\n );\n }\n}"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, a as createEvent, h, g as getElement, F as Fragment, f as Host } from './index-bc463197.js';
|
|
2
|
-
import { N as New_Group, c as Group_cast, d as Left_Arrow, e as New_Chat, T as Three_Dots, f as Logout, a as Search, A as Add_User, I as Info, g as CloseButton, h as Clear_Chat, B as Block_User, i as Icon_Excel, j as Icon_Rtf, k as Icon_Txt, l as Icon_Doc, m as Smile, S as Send, D as Delete, n as Attachment, M as Microphone, o as Camera_Add, E as Edit, p as Dark_Theme, q as Message, R as Reply, F as Forward } from './chat-assets-
|
|
2
|
+
import { N as New_Group, c as Group_cast, d as Left_Arrow, e as New_Chat, T as Three_Dots, f as Logout, a as Search, A as Add_User, I as Info, g as CloseButton, h as Clear_Chat, B as Block_User, i as Icon_Excel, j as Icon_Rtf, k as Icon_Txt, l as Icon_Doc, m as Smile, S as Send, D as Delete, n as Attachment, M as Microphone, o as Camera_Add, E as Edit, p as Dark_Theme, q as Message, R as Reply, F as Forward } from './chat-assets-4dfb1106.js';
|
|
3
3
|
import { C as CancelIcon } from './cancel-4f6541af.js';
|
|
4
4
|
import { M } from './index.m-8c70037f.js';
|
|
5
5
|
import { d as drawerDialogService } from './drawer-8f721119.js';
|
|
@@ -337,7 +337,7 @@ const ChatSidebar = class {
|
|
|
337
337
|
this.isConversationLoading = undefined;
|
|
338
338
|
this.hasMoreConversations = undefined;
|
|
339
339
|
this.unreadConversationsCount = undefined;
|
|
340
|
-
this.customParts =
|
|
340
|
+
this.customParts = undefined;
|
|
341
341
|
this.conversationDetails = undefined;
|
|
342
342
|
this.sortedConversationList = [];
|
|
343
343
|
this.numberOfConversations = 0;
|
|
@@ -7204,7 +7204,7 @@ const WebChatBody = class {
|
|
|
7204
7204
|
this.conversationDetails = {};
|
|
7205
7205
|
this.newMessageNotification = null;
|
|
7206
7206
|
this.loadingMediaGallery = undefined;
|
|
7207
|
-
this.customParts =
|
|
7207
|
+
this.customParts = undefined;
|
|
7208
7208
|
this.previousTotalScrollHeight = 0;
|
|
7209
7209
|
this.deviceId = '';
|
|
7210
7210
|
this.scrollTimeout = null;
|
|
@@ -7565,7 +7565,7 @@ const WebChatBody = class {
|
|
|
7565
7565
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7566
7566
|
const currentConversation = (_a = this.conversationList) === null || _a === void 0 ? void 0 : _a.find(conversation => (conversation === null || conversation === void 0 ? void 0 : conversation.conversationId) === this.selectedConversationId);
|
|
7567
7567
|
const shouldShowPlaceholder = ((_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.length) === 1 && ((_d = (_c = this.allMessages) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.action) !== 'clearConversation' && ((_e = this.allMessages) === null || _e === void 0 ? void 0 : _e.some(message => (message === null || message === void 0 ? void 0 : message.action) === 'clearConversation'));
|
|
7568
|
-
return (h("div", { key: '
|
|
7568
|
+
return (h("div", { key: '9f147a27411d99e67478ed1169154738a7684075', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, this.showScrollButton || this.newMessageNotification && (h("div", { key: '84a43fa0addeb46e253ab844844722360ba8e683', onClick: this.scrollToBottom, style: {
|
|
7569
7569
|
position: 'sticky',
|
|
7570
7570
|
top: '90%',
|
|
7571
7571
|
left: '95%',
|
|
@@ -7579,7 +7579,7 @@ const WebChatBody = class {
|
|
|
7579
7579
|
cursor: 'pointer',
|
|
7580
7580
|
boxShadow: '0 2px 5px rgba(0,0,0,0.2)',
|
|
7581
7581
|
zIndex: '100',
|
|
7582
|
-
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '
|
|
7582
|
+
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: 'd7cd08ce123942a40e9e86c89cb77aef57e9bcd7', style: {
|
|
7583
7583
|
position: 'absolute',
|
|
7584
7584
|
bottom: '22px',
|
|
7585
7585
|
right: '-2px',
|
|
@@ -7593,7 +7593,7 @@ const WebChatBody = class {
|
|
|
7593
7593
|
justifyContent: 'center',
|
|
7594
7594
|
fontSize: '12px',
|
|
7595
7595
|
padding: '0 4px',
|
|
7596
|
-
} })), h("svg", { key: '
|
|
7596
|
+
} })), h("svg", { key: '8f4bef505984399f6f378e7aff14ef51c7d0de90', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '0f501f068f298a4a340d72ec772d0bdc534729a8', d: "M12 5V19M12 19L19 12M12 19L5 12", stroke: "var(--text-primary-color)", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), shouldShowPlaceholder && (h("div", { key: 'c83d267957e4f0bab55a6da876ef00606f0c57b3', style: {
|
|
7597
7597
|
display: 'flex',
|
|
7598
7598
|
flexDirection: 'column',
|
|
7599
7599
|
alignItems: 'center',
|
|
@@ -7603,7 +7603,7 @@ const WebChatBody = class {
|
|
|
7603
7603
|
textAlign: 'center',
|
|
7604
7604
|
color: 'var(--text-secondary-color)',
|
|
7605
7605
|
marginTop: '20px',
|
|
7606
|
-
} }, h("img", { key: '
|
|
7606
|
+
} }, h("img", { key: '9bb44052d7b4dd104f1af44c80a8a23ef3761d6a', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), h("div", { key: '64542179541d638dd8bb3ae71fd9de2bde666224', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, h("span", { key: '3c843966b9a49b25edfc7d981fbf7037ca8ef32a', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), h("span", { key: '3c2ff4f8a47055a0297a2e62846c0d785d98187d', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (h("spinner-loader", { key: '5a8ac1823d00c7f4199a8eabc7c7db7ce4dc34f5', height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "#000", spinnerSecondaryColor: "var(--bg-grey-color)", spinnerBorderWidth: "3px" })), ((_g = this.allMessages) === null || _g === void 0 ? void 0 : _g.length) > 0 &&
|
|
7607
7607
|
((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
|
|
7608
7608
|
(() => {
|
|
7609
7609
|
const total = this.allMessages.length;
|
|
@@ -7623,10 +7623,11 @@ const WebChatBody = class {
|
|
|
7623
7623
|
const showDatePill = currentMessageDate !== previousMessageDate;
|
|
7624
7624
|
let isSelf = ((message === null || message === void 0 ? void 0 : message.senderId) || ((_e = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _e === void 0 ? void 0 : _e.userId)) === ((_f = this.userMetaData) === null || _f === void 0 ? void 0 : _f.userId);
|
|
7625
7625
|
// Rounit model: host CE + SDK props/callbacks (functionality stays in SDK)
|
|
7626
|
-
|
|
7626
|
+
const bubbleTag = (_g = this.customParts) === null || _g === void 0 ? void 0 : _g.messageBubble;
|
|
7627
|
+
if (bubbleTag) {
|
|
7627
7628
|
const status = deriveMessageStatus(message);
|
|
7628
7629
|
const msgId = message.messageId;
|
|
7629
|
-
return (h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', gap: '15px', position: 'relative' }, "data-message-id": msgId, key: msgId }, showDatePill && (h("div", { style: { display: 'flex', width: '100%', justifyContent: 'center' } }, this.renderDatePill(currentMessageDate))), h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', alignItems: isSelf ? 'flex-end' : 'flex-start', position: 'relative' } }, h(
|
|
7630
|
+
return (h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', gap: '15px', position: 'relative' }, "data-message-id": msgId, key: msgId }, showDatePill && (h("div", { style: { display: 'flex', width: '100%', justifyContent: 'center' } }, this.renderDatePill(currentMessageDate))), h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', alignItems: isSelf ? 'flex-end' : 'flex-start', position: 'relative' } }, h(bubbleTag, {
|
|
7630
7631
|
message,
|
|
7631
7632
|
isSelf,
|
|
7632
7633
|
status,
|