isometrik-plugin-chat-sdk 1.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/LICENSE +21 -0
- package/dist/cjs/BlockChatList-720a703e.js +423 -0
- package/dist/cjs/BlockChatList-720a703e.js.map +1 -0
- package/dist/cjs/DocumentMessageBubble-c79bfbe5.js +493 -0
- package/dist/cjs/DocumentMessageBubble-c79bfbe5.js.map +1 -0
- package/dist/cjs/Image-67c52acd.js +135 -0
- package/dist/cjs/Image-67c52acd.js.map +1 -0
- package/dist/cjs/ImageMessageBubble-1218fb66.js +675 -0
- package/dist/cjs/ImageMessageBubble-1218fb66.js.map +1 -0
- package/dist/cjs/IsometrikLogo-976b1c34.js +44 -0
- package/dist/cjs/IsometrikLogo-976b1c34.js.map +1 -0
- package/dist/cjs/MessageSearch-5fc9dc00.js +5892 -0
- package/dist/cjs/MessageSearch-5fc9dc00.js.map +1 -0
- package/dist/cjs/ReactionsContainer-a6ce9059.js +375 -0
- package/dist/cjs/ReactionsContainer-a6ce9059.js.map +1 -0
- package/dist/cjs/Text-fedf6eab.js +60 -0
- package/dist/cjs/Text-fedf6eab.js.map +1 -0
- package/dist/cjs/VideoMessageBubble-c4694a78.js +571 -0
- package/dist/cjs/VideoMessageBubble-c4694a78.js.map +1 -0
- package/dist/cjs/WebChat-403e7ab1.js +2884 -0
- package/dist/cjs/WebChat-403e7ab1.js.map +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/audio-bubble_8.cjs.entry.js +21011 -0
- package/dist/cjs/audio-bubble_8.cjs.entry.js.map +1 -0
- package/dist/cjs/block-chat-list.cjs.entry.js +16 -0
- package/dist/cjs/block-chat-list.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-app.cjs.entry.js +55 -0
- package/dist/cjs/chat-app.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-assets-6ab1faa6.js +9 -0
- package/dist/cjs/chat-assets-6ab1faa6.js.map +1 -0
- package/dist/cjs/chat-creds-f4cbf400.js +38 -0
- package/dist/cjs/chat-creds-f4cbf400.js.map +1 -0
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js +24 -0
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js +26 -0
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js +24 -0
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/content-eca5336c.js +81 -0
- package/dist/cjs/content-eca5336c.js.map +1 -0
- package/dist/cjs/dialog-drawer-9d04911c.js +5313 -0
- package/dist/cjs/dialog-drawer-9d04911c.js.map +1 -0
- package/dist/cjs/forward-memebers.cjs.entry.js +128 -0
- package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -0
- package/dist/cjs/group-members-a60fb1cb.js +41 -0
- package/dist/cjs/group-members-a60fb1cb.js.map +1 -0
- package/dist/cjs/groupcast-49dae5ab.js +202 -0
- package/dist/cjs/groupcast-49dae5ab.js.map +1 -0
- package/dist/cjs/imagePlaceholder-030cc566.js +4365 -0
- package/dist/cjs/imagePlaceholder-030cc566.js.map +1 -0
- package/dist/cjs/index-9afe62b6.js +3129 -0
- package/dist/cjs/index-9afe62b6.js.map +1 -0
- package/dist/cjs/index.cjs.js +148 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/isometrik-webchat.cjs.js +54 -0
- package/dist/cjs/isometrik-webchat.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/login-page.cjs.entry.js +85 -0
- package/dist/cjs/login-page.cjs.entry.js.map +1 -0
- package/dist/cjs/member-add.cjs.entry.js +122 -0
- package/dist/cjs/member-add.cjs.entry.js.map +1 -0
- package/dist/cjs/message-reaction-976f6261.js +24 -0
- package/dist/cjs/message-reaction-976f6261.js.map +1 -0
- package/dist/cjs/my-component.cjs.entry.js +29 -0
- package/dist/cjs/my-component.cjs.entry.js.map +1 -0
- package/dist/cjs/reaction-container.cjs.entry.js +52 -0
- package/dist/cjs/reaction-container.cjs.entry.js.map +1 -0
- package/dist/cjs/shadow-css-7c4dbc43.js +336 -0
- package/dist/cjs/shadow-css-7c4dbc43.js.map +1 -0
- package/dist/cjs/signup-page.cjs.entry.js +143 -0
- package/dist/cjs/signup-page.cjs.entry.js.map +1 -0
- package/dist/cjs/taguser-aca04ed9.js +512 -0
- package/dist/cjs/taguser-aca04ed9.js.map +1 -0
- package/dist/cjs/theme-provider_2.cjs.entry.js +113 -0
- package/dist/cjs/theme-provider_2.cjs.entry.js.map +1 -0
- package/dist/cjs/toast-helper-defae4a5.js +84 -0
- package/dist/cjs/toast-helper-defae4a5.js.map +1 -0
- package/dist/cjs/utils-bcad3386.js +9 -0
- package/dist/cjs/utils-bcad3386.js.map +1 -0
- package/dist/collection/api/conversations.js +12 -0
- package/dist/collection/api/group-members.js +36 -0
- package/dist/collection/api/groupcast.js +183 -0
- package/dist/collection/api/membership-control.js +13 -0
- package/dist/collection/api/message-reaction.js +16 -0
- package/dist/collection/api/social-accounts.js +282 -0
- package/dist/collection/app-root.js +51 -0
- package/dist/collection/app-root.js.map +1 -0
- package/dist/collection/assets/images/avatar.svg +1 -0
- package/dist/collection/assets/images/chatdefaultbg.svg +6140 -0
- package/dist/collection/assets/images/equalizer.svg +1 -0
- package/dist/collection/assets/images/imagePlaceholder.svg +2 -0
- package/dist/collection/assets/images/link.svg +1 -0
- package/dist/collection/assets/images/videoPlaceholder.svg +4 -0
- package/dist/collection/assets/images/videoThumbnail.svg +1 -0
- package/dist/collection/assets/svg/ExcelDocument.js +2 -0
- package/dist/collection/assets/svg/IsometrikLogo.js +38 -0
- package/dist/collection/assets/svg/Moon.svg +1 -0
- package/dist/collection/assets/svg/NoChatPlaceholder.js +16 -0
- package/dist/collection/assets/svg/NoContactsPlaceholder.js +9 -0
- package/dist/collection/assets/svg/NoMessagePlaceholder.svg +13 -0
- package/dist/collection/assets/svg/PdfDocument.js +2 -0
- package/dist/collection/assets/svg/ProfilePlaceholder.js +1 -0
- package/dist/collection/assets/svg/SelectChatPlaceholder.js +13 -0
- package/dist/collection/assets/svg/Sun.svg +1 -0
- package/dist/collection/assets/svg/broadcast-selected.svg +4 -0
- package/dist/collection/assets/svg/broadcst-default.svg +4 -0
- package/dist/collection/assets/svg/close.svg +1 -0
- package/dist/collection/assets/svg/group.svg +7 -0
- package/dist/collection/assets/svg/login.svg +3051 -0
- package/dist/collection/assets/svg/message-add.svg +5 -0
- package/dist/collection/assets/svg/message-bold.svg +3 -0
- package/dist/collection/assets/svg/message-outline.svg +5 -0
- package/dist/collection/collection-manifest.json +32 -0
- package/dist/collection/components/ChatUIComponent/AddMember.js +144 -0
- package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/AudioBubble.js +528 -0
- package/dist/collection/components/ChatUIComponent/AudioBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/BlockChatList.js +114 -0
- package/dist/collection/components/ChatUIComponent/BlockChatList.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +540 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/profile-page.css +252 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +1175 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +790 -0
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +152 -0
- package/dist/collection/components/ChatUIComponent/ForwardMessageList.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/GroupCast.js +218 -0
- package/dist/collection/components/ChatUIComponent/GroupCast.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +590 -0
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js +103 -0
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +1352 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +277 -0
- package/dist/collection/components/Login.js +118 -0
- package/dist/collection/components/Login.js.map +1 -0
- package/dist/collection/components/Signup.js +177 -0
- package/dist/collection/components/Signup.js.map +1 -0
- package/dist/collection/components/chat-main.js +131 -0
- package/dist/collection/components/chat-main.js.map +1 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +83 -0
- package/dist/collection/components/my-component/my-component.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/WebChat.js +2686 -0
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +675 -0
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/web-chat.css +336 -0
- package/dist/collection/components/theme-provider.js +182 -0
- package/dist/collection/components/theme-provider.js.map +1 -0
- package/dist/collection/constants/chat-assets.js +12 -0
- package/dist/collection/constants/chat-creds.js +31 -0
- package/dist/collection/constants/content.js +75 -0
- package/dist/collection/constants/urls.js +1 -0
- package/dist/collection/index.js +135 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/lib/helpers.js +205 -0
- package/dist/collection/lib/taguser.js +123 -0
- package/dist/collection/store/conversation.js +25 -0
- package/dist/collection/store/conversation.js.map +1 -0
- package/dist/collection/store/group-members.js +24 -0
- package/dist/collection/store/group-members.js.map +1 -0
- package/dist/collection/store/unread-count.js +18 -0
- package/dist/collection/store/unread-count.js.map +1 -0
- package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.js +222 -0
- package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.stories.js +148 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentBox.js +211 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.js +708 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.stories.js +57 -0
- package/dist/collection/stories/Components/AttachmentBox/Attachmentbox.stories.js +74 -0
- package/dist/collection/stories/Components/AttachmentBox/CameraPreview.js +231 -0
- package/dist/collection/stories/Components/BlockUsers/BlockUsers.js +337 -0
- package/dist/collection/stories/Components/Body/Body.js +48 -0
- package/dist/collection/stories/Components/Body/Body.stories.js +33 -0
- package/dist/collection/stories/Components/Buttons/Buttons.js +65 -0
- package/dist/collection/stories/Components/Buttons/Buttons.stories.js +132 -0
- package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.js +951 -0
- package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.stories.js +75 -0
- package/dist/collection/stories/Components/ChatSidebar/ContextMenu.js +109 -0
- package/dist/collection/stories/Components/ChatTile/ChatTile.js +290 -0
- package/dist/collection/stories/Components/ChatTile/ChatTile.stories.js +180 -0
- package/dist/collection/stories/Components/Chip/Chip.js +111 -0
- package/dist/collection/stories/Components/Chip/Chip.stories.js +149 -0
- package/dist/collection/stories/Components/ContactInfo/ContactInfo.js +1491 -0
- package/dist/collection/stories/Components/ContactInfo/ContactInfo.stories.js +118 -0
- package/dist/collection/stories/Components/ContactInfo/MediaList.js +147 -0
- package/dist/collection/stories/Components/ContactInfo/ProfileInfo.js +1219 -0
- package/dist/collection/stories/Components/ContactTile/ContactTile.js +416 -0
- package/dist/collection/stories/Components/ContactTile/ContactTile.stories.js +60 -0
- package/dist/collection/stories/Components/Dialog-Drawer/confirm.js +113 -0
- package/dist/collection/stories/Components/Dialog-Drawer/deletemessage.js +97 -0
- package/dist/collection/stories/Components/Dialog-Drawer/dialog-drawer.js +264 -0
- package/dist/collection/stories/Components/EmojiReactions/EmojiReactions.js +179 -0
- package/dist/collection/stories/Components/Footer/Footer.js +4 -0
- package/dist/collection/stories/Components/Footer/Footer.stories.js +155 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.js +433 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.stories.js +110 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardUi.js +46 -0
- package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.js +546 -0
- package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.stories.js +56 -0
- package/dist/collection/stories/Components/GroupInfo/GroupInfo.js +394 -0
- package/dist/collection/stories/Components/GroupInfo/GroupInfo.stories.js +107 -0
- package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.js +129 -0
- package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.stories.js +78 -0
- package/dist/collection/stories/Components/Head/Head.js +672 -0
- package/dist/collection/stories/Components/Head/Head.stories.js +91 -0
- package/dist/collection/stories/Components/Icon/Icon.js +115 -0
- package/dist/collection/stories/Components/Image/Image.js +41 -0
- package/dist/collection/stories/Components/Image/Image.stories.js +49 -0
- package/dist/collection/stories/Components/Image/Img.stories.js +178 -0
- package/dist/collection/stories/Components/Inputbox/Input.js +206 -0
- package/dist/collection/stories/Components/Inputbox/Input.stories.js +87 -0
- package/dist/collection/stories/Components/InstagramAccounts/InstagramAccountsPanel.js +605 -0
- package/dist/collection/stories/Components/Loader/Spinner/Spinner.js +60 -0
- package/dist/collection/stories/Components/Loader/Spinner/Spinner.stories.js +38 -0
- package/dist/collection/stories/Components/MainPlaceHolder/MainChatPlaceHolder.js +78 -0
- package/dist/collection/stories/Components/MainPlaceHolder/MainPlaceHolder.stories.js +130 -0
- package/dist/collection/stories/Components/MediaGallery/MediaGallery.js +868 -0
- package/dist/collection/stories/Components/MediaGallery/MediaGallery.stories.js +81 -0
- package/dist/collection/stories/Components/MembersList/MembersList.js +348 -0
- package/dist/collection/stories/Components/MessageBubble/AudioMessageBubble/AudioMesaageBubble.js +533 -0
- package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.js +484 -0
- package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.stories.js +54 -0
- package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.js +683 -0
- package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.stories.js +49 -0
- package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.js +450 -0
- package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.stories.js +56 -0
- package/dist/collection/stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble.js +721 -0
- package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.js +139 -0
- package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.stories.js +63 -0
- package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js +576 -0
- package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.stories.js +50 -0
- package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.js +66 -0
- package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.stories.js +48 -0
- package/dist/collection/stories/Components/MessageInfo/MessageInfo.js +465 -0
- package/dist/collection/stories/Components/MessageInfo/MessageInfo.stories.js +111 -0
- package/dist/collection/stories/Components/MessageSearch/MessageSearch.js +242 -0
- package/dist/collection/stories/Components/MessageSearchBar/SearchBar.js +523 -0
- package/dist/collection/stories/Components/MessageSearchBar/SearchBar.stories.js +98 -0
- package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.js +51 -0
- package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.stories.js +79 -0
- package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.js +560 -0
- package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.stories.js +56 -0
- package/dist/collection/stories/Components/Placeholder/NoContactsPlaceholder.js +57 -0
- package/dist/collection/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js +114 -0
- package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.js +166 -0
- package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.stories.js +125 -0
- package/dist/collection/stories/Components/ProfileTab/ProfileTab.js +939 -0
- package/dist/collection/stories/Components/ProfileTab/ProfileTab.stories.js +144 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.js +166 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.stories.js +115 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js +98 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.stories.js +55 -0
- package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.js +27 -0
- package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.stories.js +28 -0
- package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.js +26 -0
- package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.stories.js +33 -0
- package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.js +27 -0
- package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.stories.js +28 -0
- package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.js +38 -0
- package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.stories.js +33 -0
- package/dist/collection/stories/Components/ReplyBlock/MediaIcons.js +16 -0
- package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.js +196 -0
- package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.stories.js +57 -0
- package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.js +645 -0
- package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.stories.js +58 -0
- package/dist/collection/stories/Components/SearchableList/SearchableList.js +393 -0
- package/dist/collection/stories/Components/SearchableList/SearchableList.stories.js +65 -0
- package/dist/collection/stories/Components/SharePopup/SharePopup.js +152 -0
- package/dist/collection/stories/Components/SharePopup/SharePopup.stories.js +47 -0
- package/dist/collection/stories/Components/Splitscreen/Splitscreen.js +157 -0
- package/dist/collection/stories/Components/Splitscreen/Splitscreen.stories.js +100 -0
- package/dist/collection/stories/Components/TestFooter/MentionUserList.js +194 -0
- package/dist/collection/stories/Components/TestFooter/TestFooter.js +1339 -0
- package/dist/collection/stories/Components/TestFooter/TestFooter.stories.js +89 -0
- package/dist/collection/stories/Components/Text/Text.js +57 -0
- package/dist/collection/stories/Components/Text/Text.stories.js +83 -0
- package/dist/collection/stories/Components/TextStyle/TextStyle.js +38 -0
- package/dist/collection/stories/Components/TextStyle/TextStyle.stories.js +50 -0
- package/dist/collection/stories/Components/Time/Timestamp.js +50 -0
- package/dist/collection/stories/Components/Time/Timestamp.stories.js +34 -0
- package/dist/collection/stories/Components/Toaster/Toaster.js +94 -0
- package/dist/collection/stories/Components/Toaster/Toaster.stories.js +108 -0
- package/dist/collection/stories/Components/Toaster/toast-helper.js +79 -0
- package/dist/collection/stories/Components/Toaster/toast-helper.js.map +1 -0
- package/dist/collection/stories/Components/final/final.js +86 -0
- package/dist/collection/stories/Components/final/final.stories.js +30 -0
- package/dist/collection/stories/assets/SEARCH ICON.svg +1 -0
- package/dist/collection/types/ConversationDetailsTypes.js +2 -0
- package/dist/collection/types/ConversationDetailsTypes.js.map +1 -0
- package/dist/collection/utils/chatSdk.js +14 -0
- package/dist/collection/utils/getFomattedDate.js +34 -0
- package/dist/collection/utils/getFomattedDate.js.map +1 -0
- package/dist/collection/utils/unixTimeConverter.js +28 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/esm/BlockChatList-9fc3a42b.js +421 -0
- package/dist/esm/BlockChatList-9fc3a42b.js.map +1 -0
- package/dist/esm/DocumentMessageBubble-b67726f2.js +491 -0
- package/dist/esm/DocumentMessageBubble-b67726f2.js.map +1 -0
- package/dist/esm/Image-bb9efda3.js +121 -0
- package/dist/esm/Image-bb9efda3.js.map +1 -0
- package/dist/esm/ImageMessageBubble-0e473f6e.js +673 -0
- package/dist/esm/ImageMessageBubble-0e473f6e.js.map +1 -0
- package/dist/esm/IsometrikLogo-14db76af.js +42 -0
- package/dist/esm/IsometrikLogo-14db76af.js.map +1 -0
- package/dist/esm/MessageSearch-4101a627.js +5875 -0
- package/dist/esm/MessageSearch-4101a627.js.map +1 -0
- package/dist/esm/ReactionsContainer-bdd74a3c.js +373 -0
- package/dist/esm/ReactionsContainer-bdd74a3c.js.map +1 -0
- package/dist/esm/Text-3b0b3898.js +58 -0
- package/dist/esm/Text-3b0b3898.js.map +1 -0
- package/dist/esm/VideoMessageBubble-88a7a53e.js +569 -0
- package/dist/esm/VideoMessageBubble-88a7a53e.js.map +1 -0
- package/dist/esm/WebChat-5448d615.js +2882 -0
- package/dist/esm/WebChat-5448d615.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/audio-bubble_8.entry.js +21001 -0
- package/dist/esm/audio-bubble_8.entry.js.map +1 -0
- package/dist/esm/block-chat-list.entry.js +8 -0
- package/dist/esm/block-chat-list.entry.js.map +1 -0
- package/dist/esm/chat-app.entry.js +51 -0
- package/dist/esm/chat-app.entry.js.map +1 -0
- package/dist/esm/chat-assets-bd8778d5.js +6 -0
- package/dist/esm/chat-assets-bd8778d5.js.map +1 -0
- package/dist/esm/chat-creds-ff086f05.js +35 -0
- package/dist/esm/chat-creds-ff086f05.js.map +1 -0
- package/dist/esm/chat-document-message-bubble.entry.js +20 -0
- package/dist/esm/chat-document-message-bubble.entry.js.map +1 -0
- package/dist/esm/chat-image-message-bubble.entry.js +22 -0
- package/dist/esm/chat-image-message-bubble.entry.js.map +1 -0
- package/dist/esm/chat-video-message-bubble.entry.js +20 -0
- package/dist/esm/chat-video-message-bubble.entry.js.map +1 -0
- package/dist/esm/content-5aea5e39.js +79 -0
- package/dist/esm/content-5aea5e39.js.map +1 -0
- package/dist/esm/dialog-drawer-9fa083b1.js +5304 -0
- package/dist/esm/dialog-drawer-9fa083b1.js.map +1 -0
- package/dist/esm/forward-memebers.entry.js +124 -0
- package/dist/esm/forward-memebers.entry.js.map +1 -0
- package/dist/esm/group-members-bb3c8db7.js +37 -0
- package/dist/esm/group-members-bb3c8db7.js.map +1 -0
- package/dist/esm/groupcast-d1c54a27.js +187 -0
- package/dist/esm/groupcast-d1c54a27.js.map +1 -0
- package/dist/esm/imagePlaceholder-e544f70b.js +4360 -0
- package/dist/esm/imagePlaceholder-e544f70b.js.map +1 -0
- package/dist/esm/index-fddf30b7.js +3093 -0
- package/dist/esm/index-fddf30b7.js.map +1 -0
- package/dist/esm/index.js +139 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isometrik-webchat.js +49 -0
- package/dist/esm/isometrik-webchat.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/login-page.entry.js +81 -0
- package/dist/esm/login-page.entry.js.map +1 -0
- package/dist/esm/member-add.entry.js +118 -0
- package/dist/esm/member-add.entry.js.map +1 -0
- package/dist/esm/message-reaction-ad47ea1a.js +20 -0
- package/dist/esm/message-reaction-ad47ea1a.js.map +1 -0
- package/dist/esm/my-component.entry.js +25 -0
- package/dist/esm/my-component.entry.js.map +1 -0
- package/dist/esm/reaction-container.entry.js +48 -0
- package/dist/esm/reaction-container.entry.js.map +1 -0
- package/dist/esm/shadow-css-7ad5caf8.js +334 -0
- package/dist/esm/shadow-css-7ad5caf8.js.map +1 -0
- package/dist/esm/signup-page.entry.js +139 -0
- package/dist/esm/signup-page.entry.js.map +1 -0
- package/dist/esm/taguser-e9032d65.js +510 -0
- package/dist/esm/taguser-e9032d65.js.map +1 -0
- package/dist/esm/theme-provider_2.entry.js +108 -0
- package/dist/esm/theme-provider_2.entry.js.map +1 -0
- package/dist/esm/toast-helper-840fd8dc.js +82 -0
- package/dist/esm/toast-helper-840fd8dc.js.map +1 -0
- package/dist/esm/utils-11fcde98.js +7 -0
- package/dist/esm/utils-11fcde98.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/isometrik-webchat/index.esm.js +2 -0
- package/dist/isometrik-webchat/index.esm.js.map +1 -0
- package/dist/isometrik-webchat/isometrik-webchat.css +2 -0
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +2 -0
- package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -0
- package/dist/isometrik-webchat/p-12774661.js +2 -0
- package/dist/isometrik-webchat/p-12774661.js.map +1 -0
- package/dist/isometrik-webchat/p-12e56271.js +549 -0
- package/dist/isometrik-webchat/p-12e56271.js.map +1 -0
- package/dist/isometrik-webchat/p-1415e589.js +2 -0
- package/dist/isometrik-webchat/p-1415e589.js.map +1 -0
- package/dist/isometrik-webchat/p-18f8d210.js +13 -0
- package/dist/isometrik-webchat/p-18f8d210.js.map +1 -0
- package/dist/isometrik-webchat/p-1b2461f4.js +357 -0
- package/dist/isometrik-webchat/p-1b2461f4.js.map +1 -0
- package/dist/isometrik-webchat/p-229095d4.js +2 -0
- package/dist/isometrik-webchat/p-229095d4.js.map +1 -0
- package/dist/isometrik-webchat/p-2953d06a.entry.js +2 -0
- package/dist/isometrik-webchat/p-2953d06a.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-3004a123.js +2 -0
- package/dist/isometrik-webchat/p-3004a123.js.map +1 -0
- package/dist/isometrik-webchat/p-3044698a.js +2 -0
- package/dist/isometrik-webchat/p-3044698a.js.map +1 -0
- package/dist/isometrik-webchat/p-40517d7f.js +1098 -0
- package/dist/isometrik-webchat/p-40517d7f.js.map +1 -0
- package/dist/isometrik-webchat/p-42a62cf2.js +2 -0
- package/dist/isometrik-webchat/p-42a62cf2.js.map +1 -0
- package/dist/isometrik-webchat/p-48e1d174.js +45 -0
- package/dist/isometrik-webchat/p-48e1d174.js.map +1 -0
- package/dist/isometrik-webchat/p-48e243ec.entry.js +2 -0
- package/dist/isometrik-webchat/p-48e243ec.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-4d2aca06.js +257 -0
- package/dist/isometrik-webchat/p-4d2aca06.js.map +1 -0
- package/dist/isometrik-webchat/p-610bfd8a.js +2 -0
- package/dist/isometrik-webchat/p-610bfd8a.js.map +1 -0
- package/dist/isometrik-webchat/p-674e4bb0.js +9 -0
- package/dist/isometrik-webchat/p-674e4bb0.js.map +1 -0
- package/dist/isometrik-webchat/p-8490e13d.js +192 -0
- package/dist/isometrik-webchat/p-8490e13d.js.map +1 -0
- package/dist/isometrik-webchat/p-858b0da8.entry.js +2 -0
- package/dist/isometrik-webchat/p-858b0da8.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-89108249.entry.js +5010 -0
- package/dist/isometrik-webchat/p-89108249.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-8dcdea59.js +2963 -0
- package/dist/isometrik-webchat/p-8dcdea59.js.map +1 -0
- package/dist/isometrik-webchat/p-92d0b21c.js +2 -0
- package/dist/isometrik-webchat/p-92d0b21c.js.map +1 -0
- package/dist/isometrik-webchat/p-ada9c8e8.entry.js +2 -0
- package/dist/isometrik-webchat/p-ada9c8e8.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-adbb398d.entry.js +2 -0
- package/dist/isometrik-webchat/p-adbb398d.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-b07dd267.js +2 -0
- package/dist/isometrik-webchat/p-b07dd267.js.map +1 -0
- package/dist/isometrik-webchat/p-bf0aeb22.entry.js +2 -0
- package/dist/isometrik-webchat/p-bf0aeb22.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-bfd51dd4.entry.js +2 -0
- package/dist/isometrik-webchat/p-bfd51dd4.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-c50aa410.entry.js +2 -0
- package/dist/isometrik-webchat/p-c50aa410.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-cd34448c.entry.js +2 -0
- package/dist/isometrik-webchat/p-cd34448c.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-d4b8ece6.entry.js +2 -0
- package/dist/isometrik-webchat/p-d4b8ece6.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-de8a8642.js +197 -0
- package/dist/isometrik-webchat/p-de8a8642.js.map +1 -0
- package/dist/isometrik-webchat/p-e09b32eb.js +591 -0
- package/dist/isometrik-webchat/p-e09b32eb.js.map +1 -0
- package/dist/isometrik-webchat/p-e1255160.js +2 -0
- package/dist/isometrik-webchat/p-e1255160.js.map +1 -0
- package/dist/isometrik-webchat/p-e3731295.js +274 -0
- package/dist/isometrik-webchat/p-e3731295.js.map +1 -0
- package/dist/isometrik-webchat/p-e4efea64.entry.js +2 -0
- package/dist/isometrik-webchat/p-e4efea64.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-ef6e482a.entry.js +2 -0
- package/dist/isometrik-webchat/p-ef6e482a.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-f1f5d5bd.js +3 -0
- package/dist/isometrik-webchat/p-f1f5d5bd.js.map +1 -0
- package/dist/isometrik-webchat/p-ff9f3dfe.js +203 -0
- package/dist/isometrik-webchat/p-ff9f3dfe.js.map +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/app-root.d.ts +0 -0
- package/dist/types/components/ChatUIComponent/AddMember.d.ts +13 -0
- package/dist/types/components/ChatUIComponent/AudioBubble.d.ts +39 -0
- package/dist/types/components/ChatUIComponent/BlockChatList.d.ts +13 -0
- package/dist/types/components/ChatUIComponent/ChatDocumentMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/ChatImageMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +42 -0
- package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +85 -0
- package/dist/types/components/ChatUIComponent/ChatVideoMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +154 -0
- package/dist/types/components/ChatUIComponent/ForwardMessageList.d.ts +15 -0
- package/dist/types/components/ChatUIComponent/GroupCast.d.ts +26 -0
- package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +45 -0
- package/dist/types/components/ChatUIComponent/ReactionContainer.d.ts +12 -0
- package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +120 -0
- package/dist/types/components/Login.d.ts +13 -0
- package/dist/types/components/Signup.d.ts +17 -0
- package/dist/types/components/chat-main.d.ts +15 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +42 -0
- package/dist/types/components/theme-provider.d.ts +44 -0
- package/dist/types/components.d.ts +838 -0
- package/dist/types/index.d.ts +37 -0
- package/dist/types/stencil-public-runtime.d.ts +1678 -0
- package/dist/types/store/conversation.d.ts +17 -0
- package/dist/types/store/group-members.d.ts +18 -0
- package/dist/types/store/unread-count.d.ts +10 -0
- package/dist/types/stories/Components/Toaster/toast-helper.d.ts +8 -0
- package/dist/types/types/ConversationDetailsTypes.d.ts +52 -0
- package/dist/types/utils/getFomattedDate.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +89 -0
- package/readme.md +569 -0
|
@@ -0,0 +1,1352 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import "../../../stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble";
|
|
3
|
+
import "../../../stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble";
|
|
4
|
+
import "../../../stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble";
|
|
5
|
+
import "../../../stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble";
|
|
6
|
+
import "../../../stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble";
|
|
7
|
+
import { getDeviceID, getGroupcastUrlQuery } from "../../../lib/helpers";
|
|
8
|
+
import { formatMessageDateFromTimestamp } from "../../../utils/getFomattedDate";
|
|
9
|
+
import "../../../stories/Components/MessageDatePill/MessageDatePill";
|
|
10
|
+
import "../../../stories/Components/Loader/Spinner/Spinner";
|
|
11
|
+
import ChatSDK from "test-iso-chat-sdk";
|
|
12
|
+
import "../../../stories/Components/ReplyBlock/ReplyBlock";
|
|
13
|
+
import "../../../stories/Components/ReplyMessageContainer/ReplyMessageContainer";
|
|
14
|
+
import { formatUnixTimestamp } from "../../../utils/unixTimeConverter.js";
|
|
15
|
+
import "../../../stories/Components/SearchableList/SearchableList";
|
|
16
|
+
import "../../../stories/Components/ForwardMessage/ForwardMessageContainer";
|
|
17
|
+
import "../../../stories/Components/MessageInfo/MessageInfo";
|
|
18
|
+
import NoMessagePlaceholder from "../../../assets/svg/NoMessagePlaceholder.svg";
|
|
19
|
+
import "../../../stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble";
|
|
20
|
+
import { WEB_CONTENT } from "../../../constants/content";
|
|
21
|
+
import ProfilePlaceholder from "../../../assets/images/avatar.svg";
|
|
22
|
+
import { postReaction, deleteReaction } from "../../../api/message-reaction.js";
|
|
23
|
+
import "../../ChatUIComponent/AudioBubble";
|
|
24
|
+
import { drawerDialogService } from "../../../stories/Components/Dialog-Drawer/dialog-drawer.js";
|
|
25
|
+
import { deleteGroupcastMessageSelf, deleteGroupcastMessageEveryone, getGroupcastMessageReadStatus, getGroupcastMessageDeliveryStatus } from "../../../api/groupcast.js";
|
|
26
|
+
class WebChatBody {
|
|
27
|
+
constructor() {
|
|
28
|
+
this.isScrolledToBottom = () => {
|
|
29
|
+
const chatBodyDiv = this.el.shadowRoot.querySelector('.chat-body');
|
|
30
|
+
if (chatBodyDiv) {
|
|
31
|
+
const threshold = 200; // pixels from bottom to consider "at bottom"
|
|
32
|
+
return chatBodyDiv.scrollHeight - chatBodyDiv.scrollTop - chatBodyDiv.clientHeight < threshold;
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
};
|
|
36
|
+
this.openForwardPopup = async (event, messageId, message) => {
|
|
37
|
+
event.stopPropagation();
|
|
38
|
+
drawerDialogService.openDialog('forward-memebers', {
|
|
39
|
+
allMessages: this.allMessages,
|
|
40
|
+
conversationList: this.conversationList,
|
|
41
|
+
deviceId: this.deviceId,
|
|
42
|
+
messageId,
|
|
43
|
+
message,
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
this.openDeletePopup = (event, messageId, isSelf) => {
|
|
47
|
+
event.stopPropagation();
|
|
48
|
+
drawerDialogService.openDialog('delete-message', {
|
|
49
|
+
deleteMessageForEveryone: () => this.deleteMessageForEveryone(messageId),
|
|
50
|
+
deleteMessageForSelf: () => this.deleteMessageForSelf(messageId),
|
|
51
|
+
isSelf: isSelf,
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
this.openMessageActionsPopup = (event, messageId) => {
|
|
55
|
+
event.stopPropagation();
|
|
56
|
+
// If clicking on already open popup, close it
|
|
57
|
+
if (this.isMessageActionOpen === messageId) {
|
|
58
|
+
this.isMessageActionOpen = null;
|
|
59
|
+
this.isChatBodyUnscrollable = false;
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
this.isMessageActionOpen = messageId;
|
|
63
|
+
// Dispatch event to close item menu when kebab menu opens
|
|
64
|
+
document.dispatchEvent(new CustomEvent('kebab-menu-opened', { bubbles: true }));
|
|
65
|
+
const messageElement = this.el.shadowRoot.querySelector(`[data-message-id="${messageId}"]`);
|
|
66
|
+
if (!messageElement)
|
|
67
|
+
return;
|
|
68
|
+
const kebabMenu = messageElement.querySelector('.kebab-menu');
|
|
69
|
+
const chatBodyDiv = this.el.shadowRoot.querySelector('.chat-body');
|
|
70
|
+
if (!kebabMenu || !chatBodyDiv)
|
|
71
|
+
return;
|
|
72
|
+
// Create an observer to wait for the popup to be added
|
|
73
|
+
const observer = new MutationObserver((_, observerInstance) => {
|
|
74
|
+
const popup = messageElement.querySelector('.messageActionPopup');
|
|
75
|
+
if (popup) {
|
|
76
|
+
// Once found, disconnect the observer
|
|
77
|
+
observerInstance.disconnect();
|
|
78
|
+
// Calculate available space and apply positioning classes using toggle
|
|
79
|
+
const kebabRect = kebabMenu.getBoundingClientRect();
|
|
80
|
+
const chatBodyRect = chatBodyDiv.getBoundingClientRect();
|
|
81
|
+
const popupHeight = 160;
|
|
82
|
+
const spaceBelow = chatBodyRect.bottom - kebabRect.bottom;
|
|
83
|
+
popup.classList.toggle('position-bottom', spaceBelow > popupHeight);
|
|
84
|
+
popup.classList.toggle('position-top', spaceBelow <= popupHeight);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
this.isChatBodyUnscrollable = true; // chat body is unscrollable when message action popup is open
|
|
88
|
+
// Observe changes to the messageElement's children
|
|
89
|
+
observer.observe(messageElement, { childList: true, subtree: true });
|
|
90
|
+
};
|
|
91
|
+
// Function to handle scroll event and trigger API call when scrolled near the bottom
|
|
92
|
+
this.handleScroll = () => {
|
|
93
|
+
const chatBodyDiv = this.el.shadowRoot.querySelector('.chat-body');
|
|
94
|
+
if (chatBodyDiv) {
|
|
95
|
+
const scrollTop = chatBodyDiv.scrollTop;
|
|
96
|
+
if (scrollTop === 0 && !this.isMessageLimitEnd) {
|
|
97
|
+
this.updateSkip();
|
|
98
|
+
}
|
|
99
|
+
// Update showScrollButton based on scroll position
|
|
100
|
+
this.showScrollButton = !this.isScrolledToBottom();
|
|
101
|
+
if (this.scrollTimeout) {
|
|
102
|
+
clearTimeout(this.scrollTimeout);
|
|
103
|
+
}
|
|
104
|
+
this.scrollTimeout = setTimeout(() => {
|
|
105
|
+
this.onScrollEnd();
|
|
106
|
+
}, 300);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
this.onScrollEnd = () => {
|
|
110
|
+
const chatBodyDiv = this.el.shadowRoot.querySelector('.chat-body');
|
|
111
|
+
const scrollTop = chatBodyDiv.scrollTop;
|
|
112
|
+
this.previousTotalScrollHeight = chatBodyDiv.scrollHeight - scrollTop;
|
|
113
|
+
};
|
|
114
|
+
this.scrollToBottom = () => {
|
|
115
|
+
requestAnimationFrame(() => {
|
|
116
|
+
const chatBodyDiv = this.el.shadowRoot.querySelector('.chat-body');
|
|
117
|
+
if (!chatBodyDiv)
|
|
118
|
+
return;
|
|
119
|
+
chatBodyDiv.scrollTop = chatBodyDiv.scrollHeight;
|
|
120
|
+
this.showScrollButton = false;
|
|
121
|
+
this.unreadMessageCount = 0;
|
|
122
|
+
this.newMessageCountReset.emit();
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
this.scrollToTop = () => {
|
|
126
|
+
const chatBodyDiv = this.el.shadowRoot.querySelector('.chat-body');
|
|
127
|
+
if (!chatBodyDiv)
|
|
128
|
+
return;
|
|
129
|
+
requestAnimationFrame(() => {
|
|
130
|
+
const toScroll = chatBodyDiv.scrollHeight - this.previousTotalScrollHeight;
|
|
131
|
+
chatBodyDiv.scrollTop = toScroll;
|
|
132
|
+
this.previousTotalScrollHeight = chatBodyDiv.scrollHeight;
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
this.putReadAll = async () => {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
const hasUnreadMessages = (_a = this.allMessages) === null || _a === void 0 ? void 0 : _a.some(message => { var _a, _b; return ((message === null || message === void 0 ? void 0 : message.senderId) || ((_a = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _a === void 0 ? void 0 : _a.userId)) != ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) && !(message === null || message === void 0 ? void 0 : message.readByAll); });
|
|
138
|
+
if (hasUnreadMessages) {
|
|
139
|
+
await ChatSDK.getInstance().message.putRead({ conversationId: this.selectedConversationId });
|
|
140
|
+
const newUpdatedAllMessages = (_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.map(message => { var _a, _b; return (message === null || message === void 0 ? void 0 : message.readByAll) != true && ((message === null || message === void 0 ? void 0 : message.senderId) || ((_a = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _a === void 0 ? void 0 : _a.userId)) != ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) ? Object.assign(Object.assign({}, message), { readByAll: true }) : message; });
|
|
141
|
+
this.updateAllMessages(newUpdatedAllMessages);
|
|
142
|
+
this.el.dispatchEvent(new CustomEvent('message-read-status-updated', {
|
|
143
|
+
bubbles: true,
|
|
144
|
+
composed: true,
|
|
145
|
+
detail: {
|
|
146
|
+
conversationId: this.selectedConversationId,
|
|
147
|
+
isRead: true,
|
|
148
|
+
isDelivered: true,
|
|
149
|
+
},
|
|
150
|
+
}));
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
this.handleVisibilityChange = async () => {
|
|
154
|
+
if (document.visibilityState === 'visible') {
|
|
155
|
+
this.isTabActive = true;
|
|
156
|
+
this.putReadAll();
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
this.isTabActive = false;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
// Update the handleDocumentClick method to handle all popup types
|
|
163
|
+
this.handleDocumentClick = (event) => {
|
|
164
|
+
const target = event.target;
|
|
165
|
+
// Close message action popup if clicking outside
|
|
166
|
+
if (!target.closest('.messageActionPopup') && !target.closest('.kebab-menu')) {
|
|
167
|
+
this.isMessageActionOpen = null;
|
|
168
|
+
this.isChatBodyUnscrollable = false;
|
|
169
|
+
}
|
|
170
|
+
// Close delete popup if clicking outside
|
|
171
|
+
if (!target.closest('.popup') && !target.closest('.messageActionPopup')) {
|
|
172
|
+
this.isDeletePopupOpen = null;
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
this.handleHeadMenuOpened = () => {
|
|
176
|
+
// Close kebab menu when head menu is opened
|
|
177
|
+
this.isMessageActionOpen = null;
|
|
178
|
+
this.isChatBodyUnscrollable = false;
|
|
179
|
+
};
|
|
180
|
+
this.handleItemMenuOpened = () => {
|
|
181
|
+
this.isMessageActionOpen = null;
|
|
182
|
+
this.isChatBodyUnscrollable = false;
|
|
183
|
+
};
|
|
184
|
+
this.getMessageReadStatus = async (messageId, conversationId) => {
|
|
185
|
+
var _a, _b;
|
|
186
|
+
try {
|
|
187
|
+
// Get read status
|
|
188
|
+
const statusRead = await ChatSDK.getInstance().message.getStatusRead({
|
|
189
|
+
conversationId: conversationId,
|
|
190
|
+
messageId: messageId,
|
|
191
|
+
});
|
|
192
|
+
if ((statusRead === null || statusRead === void 0 ? void 0 : statusRead.users) && ((_a = statusRead === null || statusRead === void 0 ? void 0 : statusRead.users) === null || _a === void 0 ? void 0 : _a.length) === 1) {
|
|
193
|
+
this.messageReadTime = (_b = statusRead === null || statusRead === void 0 ? void 0 : statusRead.users[0]) === null || _b === void 0 ? void 0 : _b.timestamp;
|
|
194
|
+
this.readUserList = [statusRead === null || statusRead === void 0 ? void 0 : statusRead.users[0]];
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
this.readUserList = [...statusRead === null || statusRead === void 0 ? void 0 : statusRead.users];
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
catch (error) {
|
|
201
|
+
if (error.response && error.response.status === 404) {
|
|
202
|
+
this.messageReadTime = null;
|
|
203
|
+
this.readUserList = [];
|
|
204
|
+
}
|
|
205
|
+
console.error('Error fetching read status', error);
|
|
206
|
+
}
|
|
207
|
+
// Separately get pending read count
|
|
208
|
+
if (this.conversationDetails.isGroup) {
|
|
209
|
+
try {
|
|
210
|
+
const statusReadPending = await ChatSDK.getInstance().message.getStatusReadPending({
|
|
211
|
+
conversationId: conversationId,
|
|
212
|
+
messageId: messageId,
|
|
213
|
+
});
|
|
214
|
+
this.pendingReadCount = (statusReadPending === null || statusReadPending === void 0 ? void 0 : statusReadPending.users.length) - 1 || 0;
|
|
215
|
+
}
|
|
216
|
+
catch (error) {
|
|
217
|
+
console.error('Error fetching pending read count', error);
|
|
218
|
+
this.pendingReadCount = 0;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return this.readUserList;
|
|
222
|
+
};
|
|
223
|
+
this.getMessageDeliveryStatus = async (messageId, conversationId, readUserIds) => {
|
|
224
|
+
var _a, _b, _c;
|
|
225
|
+
try {
|
|
226
|
+
// Get delivery status
|
|
227
|
+
const statusDelivered = await ChatSDK.getInstance().message.getStatusDelivery({
|
|
228
|
+
conversationId: conversationId,
|
|
229
|
+
messageId: messageId,
|
|
230
|
+
});
|
|
231
|
+
// Filter out users who have already read the message
|
|
232
|
+
const unreadDeliveredUsers = (_a = statusDelivered === null || statusDelivered === void 0 ? void 0 : statusDelivered.users) === null || _a === void 0 ? void 0 : _a.filter(user => !readUserIds.includes(user.userId));
|
|
233
|
+
if (((_b = statusDelivered.users) === null || _b === void 0 ? void 0 : _b.length) === 1) {
|
|
234
|
+
this.messageDeliveryTime = (_c = statusDelivered.users[0]) === null || _c === void 0 ? void 0 : _c.timestamp;
|
|
235
|
+
this.deliveryUserList = [statusDelivered.users[0]];
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
this.deliveryUserList = [...unreadDeliveredUsers];
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
catch (error) {
|
|
242
|
+
if (error.response && error.response.status === 404) {
|
|
243
|
+
this.messageDeliveryTime = null;
|
|
244
|
+
this.deliveryUserList = [];
|
|
245
|
+
}
|
|
246
|
+
console.error('Error fetching delivery status', error);
|
|
247
|
+
}
|
|
248
|
+
if (this.conversationDetails.isGroup) {
|
|
249
|
+
try {
|
|
250
|
+
const statusDeliveryPending = await ChatSDK.getInstance().message.getStatusDeliveryPending({
|
|
251
|
+
conversationId: conversationId,
|
|
252
|
+
messageId: messageId,
|
|
253
|
+
});
|
|
254
|
+
this.pendingDeliveryCount = (statusDeliveryPending === null || statusDeliveryPending === void 0 ? void 0 : statusDeliveryPending.users.length) - 1 || 0;
|
|
255
|
+
}
|
|
256
|
+
catch (error) {
|
|
257
|
+
console.error('Error fetching pending delivery count', error);
|
|
258
|
+
this.pendingDeliveryCount = 0;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
this.logMessageInfo = async () => {
|
|
263
|
+
var _a;
|
|
264
|
+
try {
|
|
265
|
+
// Set initial loading state
|
|
266
|
+
this.isLoadingInfo = true;
|
|
267
|
+
// Reset states
|
|
268
|
+
this.messageReadTime = 0;
|
|
269
|
+
this.messageDeliveryTime = 0;
|
|
270
|
+
this.messageInfoOpen = true;
|
|
271
|
+
this.pendingReadCount = 0;
|
|
272
|
+
this.pendingDeliveryCount = 0;
|
|
273
|
+
const message = (_a = this.allMessages) === null || _a === void 0 ? void 0 : _a.find(msg => (msg === null || msg === void 0 ? void 0 : msg.messageId) === this.isMessageActionOpen);
|
|
274
|
+
this.messagePreviewText = message === null || message === void 0 ? void 0 : message.body;
|
|
275
|
+
this.messageDate = formatMessageDateFromTimestamp(message === null || message === void 0 ? void 0 : message.sentAt);
|
|
276
|
+
// Get read and delivery status for this specific message
|
|
277
|
+
if (message) {
|
|
278
|
+
const { isGroupcast, groupcastId } = await getGroupcastUrlQuery();
|
|
279
|
+
if (isGroupcast && groupcastId) {
|
|
280
|
+
// Handle groupcast message status
|
|
281
|
+
const readUsers = await getGroupcastMessageReadStatus({
|
|
282
|
+
messageId: message === null || message === void 0 ? void 0 : message.messageId,
|
|
283
|
+
groupcastId: groupcastId
|
|
284
|
+
});
|
|
285
|
+
this.readUserList = readUsers;
|
|
286
|
+
const deliveryStatus = await getGroupcastMessageDeliveryStatus({
|
|
287
|
+
messageId: message === null || message === void 0 ? void 0 : message.messageId,
|
|
288
|
+
groupcastId: groupcastId
|
|
289
|
+
});
|
|
290
|
+
this.deliveryUserList = (deliveryStatus === null || deliveryStatus === void 0 ? void 0 : deliveryStatus.users) || [];
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
// Handle regular conversation message status
|
|
294
|
+
const readUsers = await this.getMessageReadStatus(message === null || message === void 0 ? void 0 : message.messageId, message === null || message === void 0 ? void 0 : message.conversationId);
|
|
295
|
+
const readUserIds = readUsers.map(user => user.userId);
|
|
296
|
+
await this.getMessageDeliveryStatus(message === null || message === void 0 ? void 0 : message.messageId, message === null || message === void 0 ? void 0 : message.conversationId, readUserIds);
|
|
297
|
+
}
|
|
298
|
+
this.selectedMessage = message;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
catch (error) {
|
|
302
|
+
console.error('Error loading message info:', error);
|
|
303
|
+
}
|
|
304
|
+
finally {
|
|
305
|
+
// Always set loading state to false when done
|
|
306
|
+
this.isLoadingInfo = false;
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
this.renderAttachmentMessage = (message, isSelf) => {
|
|
310
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
311
|
+
// Common props for all message types
|
|
312
|
+
const commonOutgoingProps = {
|
|
313
|
+
time: message === null || message === void 0 ? void 0 : message.sentAt,
|
|
314
|
+
isSelf: isSelf,
|
|
315
|
+
isRead: message === null || message === void 0 ? void 0 : message.readByAll,
|
|
316
|
+
isDelivered: `${message === null || message === void 0 ? void 0 : message.deliveredToAll}`,
|
|
317
|
+
textColor: 'var(--text-outgoing-message)',
|
|
318
|
+
timeColor: 'var(--text-outgoing-time)',
|
|
319
|
+
message: message === null || message === void 0 ? void 0 : message.body,
|
|
320
|
+
mentionedUsers: message === null || message === void 0 ? void 0 : message.mentionedUsers,
|
|
321
|
+
bgColor: 'var(--bg-outgoing-message)',
|
|
322
|
+
borderRadius: 'var(--radius-bubble)',
|
|
323
|
+
messageType: message.messageType,
|
|
324
|
+
};
|
|
325
|
+
const commonIncomingProps = {
|
|
326
|
+
time: message === null || message === void 0 ? void 0 : message.sentAt,
|
|
327
|
+
isSelf: isSelf,
|
|
328
|
+
textColor: 'var(--text-incoming-message)',
|
|
329
|
+
timeColor: 'var(--text-incoming-time)',
|
|
330
|
+
message: message === null || message === void 0 ? void 0 : message.body,
|
|
331
|
+
mentionedUsers: message === null || message === void 0 ? void 0 : message.mentionedUsers,
|
|
332
|
+
bgColor: 'var(--bg-incoming-message)',
|
|
333
|
+
borderRadius: 'var(--radius-bubble)',
|
|
334
|
+
borderWidth: '1px',
|
|
335
|
+
borderColor: 'var(--bubble-border, var(--primary))',
|
|
336
|
+
borderStyle: 'solid',
|
|
337
|
+
messageId: message === null || message === void 0 ? void 0 : message.messageId,
|
|
338
|
+
reactions: message === null || message === void 0 ? void 0 : message.reactions,
|
|
339
|
+
messageType: message.messageType,
|
|
340
|
+
userMetaData: this.userMetaData,
|
|
341
|
+
};
|
|
342
|
+
const props = isSelf ? commonOutgoingProps : commonIncomingProps;
|
|
343
|
+
const mediaBorder = isSelf
|
|
344
|
+
? { borderWidth: '0px', borderColor: 'transparent', borderStyle: 'solid' }
|
|
345
|
+
: { borderWidth: '1px', borderColor: 'var(--bubble-border, var(--primary))', borderStyle: 'solid' };
|
|
346
|
+
const mediaBg = isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)';
|
|
347
|
+
if (((_a = message === null || message === void 0 ? void 0 : message.attachments) === null || _a === void 0 ? void 0 : _a.length) > 1 && !((_d = (_c = (_b = message === null || message === void 0 ? void 0 : message.attachments) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.mimeType) === null || _d === void 0 ? void 0 : _d.startsWith('application/'))) {
|
|
348
|
+
return (h("image-message", Object.assign({}, props, { height: '240px', width: '100%', padding: "3px", imageSrc: (_f = (_e = message === null || message === void 0 ? void 0 : message.attachments) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.mediaUrl }, mediaBorder, { borderRadius: 'var(--radius-bubble)', bgColor: mediaBg, allAttachments: this.allAttachments, onImageClick: this.onMediaClick, totalMedia: ((_g = message === null || message === void 0 ? void 0 : message.attachments) === null || _g === void 0 ? void 0 : _g.length) - 1, mediaType: (_j = (_h = message.attachments) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.mediaType, loadingMediaGallery: this.loadingMediaGallery })));
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
return (_k = message === null || message === void 0 ? void 0 : message.attachments) === null || _k === void 0 ? void 0 : _k.map(attachment => {
|
|
352
|
+
var _a, _b, _c, _d;
|
|
353
|
+
if (((_a = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _a === void 0 ? void 0 : _a.startsWith('application/')) || (message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:File') {
|
|
354
|
+
return (h("document-message", Object.assign({}, props, mediaBorder, { bgColor: mediaBg, docType: attachment === null || attachment === void 0 ? void 0 : attachment.mimeType, fileName: attachment === null || attachment === void 0 ? void 0 : attachment.name, href: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, width: "220px", padding: "10px 10px 40px 10px", docName: attachment === null || attachment === void 0 ? void 0 : attachment.name })));
|
|
355
|
+
}
|
|
356
|
+
if (((_b = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _b === void 0 ? void 0 : _b.startsWith('video/')) || (message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:Video') {
|
|
357
|
+
return (h("video-message", Object.assign({}, props, mediaBorder, { height: '240px', width: '100%', padding: "3px", type: attachment === null || attachment === void 0 ? void 0 : attachment.mimeType, videoSrc: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, borderRadius: 'var(--radius-bubble)', bgColor: mediaBg })));
|
|
358
|
+
}
|
|
359
|
+
if (((_c = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _c === void 0 ? void 0 : _c.startsWith('image/')) || (message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:Image') {
|
|
360
|
+
return (h("image-message", Object.assign({}, props, mediaBorder, { height: '240px', width: '100%', padding: "3px", imageSrc: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, borderRadius: 'var(--radius-bubble)', bgColor: mediaBg, allAttachments: this.allAttachments, onImageClick: this.onMediaClick, loadingMediaGallery: this.loadingMediaGallery })));
|
|
361
|
+
}
|
|
362
|
+
if (((_d = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _d === void 0 ? void 0 : _d.startsWith('audio/')) || (message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:Audio') {
|
|
363
|
+
return h("audio-bubble", Object.assign({}, props, { isRead: message.readByAll, isDelivered: message.deliveredToAll, audioUrl: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, showFooter: true }));
|
|
364
|
+
}
|
|
365
|
+
// Unknown / missing mime: still try image if URL exists, else empty media card
|
|
366
|
+
if (attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl) {
|
|
367
|
+
return (h("image-message", Object.assign({}, props, mediaBorder, { height: '240px', width: '100%', padding: "3px", imageSrc: attachment.mediaUrl, borderRadius: 'var(--radius-bubble)', bgColor: mediaBg, allAttachments: this.allAttachments, onImageClick: this.onMediaClick, loadingMediaGallery: this.loadingMediaGallery })));
|
|
368
|
+
}
|
|
369
|
+
return (h("image-message", Object.assign({}, props, mediaBorder, { height: '180px', width: '100%', padding: "3px", imageSrc: '', borderRadius: 'var(--radius-bubble)', bgColor: mediaBg, allAttachments: this.allAttachments, loadingMediaGallery: this.loadingMediaGallery })));
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
this.skip = undefined;
|
|
374
|
+
this.allMessages = undefined;
|
|
375
|
+
this.userMetaData = undefined;
|
|
376
|
+
this.isMessagesLoading = undefined;
|
|
377
|
+
this.isMessageSending = undefined;
|
|
378
|
+
this.isMessageLimitEnd = undefined;
|
|
379
|
+
this.updateSkip = undefined;
|
|
380
|
+
this.isScrollToBottom = undefined;
|
|
381
|
+
this.isScrollToTop = undefined;
|
|
382
|
+
this.deleteForAll = undefined;
|
|
383
|
+
this.deleteForSelf = undefined;
|
|
384
|
+
this.changeScrollToBottomState = undefined;
|
|
385
|
+
this.changeScrollToTopState = undefined;
|
|
386
|
+
this.updateAllMessages = undefined;
|
|
387
|
+
this.isChatClosed = undefined;
|
|
388
|
+
this.isChatMinimized = undefined;
|
|
389
|
+
this.selectedConversationId = undefined;
|
|
390
|
+
this.allAttachments = undefined;
|
|
391
|
+
this.highlightedMessageId = undefined;
|
|
392
|
+
this.onMediaClick = undefined;
|
|
393
|
+
this.conversationList = [];
|
|
394
|
+
this.conversationDetails = {};
|
|
395
|
+
this.newMessageNotification = null;
|
|
396
|
+
this.loadingMediaGallery = undefined;
|
|
397
|
+
this.previousTotalScrollHeight = 0;
|
|
398
|
+
this.deviceId = '';
|
|
399
|
+
this.scrollTimeout = null;
|
|
400
|
+
this.isDeletePopupOpen = null;
|
|
401
|
+
this.isMessageActionOpen = null;
|
|
402
|
+
this.deletedMessages = new Set();
|
|
403
|
+
this.isTabActive = true;
|
|
404
|
+
this.isForwardPopupOpen = null;
|
|
405
|
+
this.isSelf = false;
|
|
406
|
+
this.isReplyBlockOpen = null;
|
|
407
|
+
this.messageActionPopupElement = undefined;
|
|
408
|
+
this.popupRef = undefined;
|
|
409
|
+
this.messageInfoOpen = false;
|
|
410
|
+
this.messagePreviewText = '';
|
|
411
|
+
this.messageDate = '';
|
|
412
|
+
this.messageDeliveryTime = 0;
|
|
413
|
+
this.messageReadTime = 0;
|
|
414
|
+
this.showScrollButton = true;
|
|
415
|
+
this.isScrolling = false;
|
|
416
|
+
this.unreadMessageCount = 0;
|
|
417
|
+
this.isChatBodyUnscrollable = false;
|
|
418
|
+
this.selectedMessage = {};
|
|
419
|
+
this.readUserList = [];
|
|
420
|
+
this.deliveryUserList = [];
|
|
421
|
+
this.pendingDeliveryCount = 0;
|
|
422
|
+
this.pendingReadCount = 0;
|
|
423
|
+
this.isLoadingInfo = true;
|
|
424
|
+
}
|
|
425
|
+
extractUrls(text) {
|
|
426
|
+
if (!text)
|
|
427
|
+
return [];
|
|
428
|
+
const urlRegex = /(https?:\/\/[^\s]+)/g;
|
|
429
|
+
return text.match(urlRegex) || [];
|
|
430
|
+
}
|
|
431
|
+
getReactionEmoji(reactionType) {
|
|
432
|
+
const emojiMap = {
|
|
433
|
+
star: '⭐',
|
|
434
|
+
crying_with_laughter: '😂',
|
|
435
|
+
yes: '👍',
|
|
436
|
+
no: '❌',
|
|
437
|
+
party: '🥳',
|
|
438
|
+
high_five: '✋',
|
|
439
|
+
rock: '🪨',
|
|
440
|
+
facepal: '🤦',
|
|
441
|
+
sarcastic: '🙄',
|
|
442
|
+
talking_too_much: '🤫',
|
|
443
|
+
crying: '😭',
|
|
444
|
+
heart: '❤️',
|
|
445
|
+
surprised: '😮',
|
|
446
|
+
bowing: '🙇',
|
|
447
|
+
};
|
|
448
|
+
return emojiMap[reactionType.toLowerCase()] || reactionType;
|
|
449
|
+
}
|
|
450
|
+
deleteMessageForSelf(messageId) {
|
|
451
|
+
var _a;
|
|
452
|
+
const { isGroupcast, groupcastId } = getGroupcastUrlQuery();
|
|
453
|
+
const memberId = (_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId;
|
|
454
|
+
if (isGroupcast && groupcastId) {
|
|
455
|
+
deleteGroupcastMessageSelf({ groupcastId, messageId, memberId });
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
this.deleteForSelf({ conversationId: this.selectedConversationId, messageIds: messageId });
|
|
459
|
+
}
|
|
460
|
+
this.isDeletePopupOpen = null;
|
|
461
|
+
}
|
|
462
|
+
deleteMessageForEveryone(messageId) {
|
|
463
|
+
const { isGroupcast, groupcastId } = getGroupcastUrlQuery();
|
|
464
|
+
if (isGroupcast && groupcastId) {
|
|
465
|
+
deleteGroupcastMessageEveryone({ groupcastId, messageId });
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
this.deleteForAll({ conversationId: this.selectedConversationId, messageIds: messageId });
|
|
469
|
+
}
|
|
470
|
+
this.isDeletePopupOpen = null;
|
|
471
|
+
}
|
|
472
|
+
async componentWillLoad() {
|
|
473
|
+
const deviceId = await getDeviceID();
|
|
474
|
+
this.deviceId = deviceId;
|
|
475
|
+
}
|
|
476
|
+
async handleReactionAdd(event) {
|
|
477
|
+
try {
|
|
478
|
+
const { messageId, emojiId } = event.detail;
|
|
479
|
+
await postReaction(emojiId, messageId, this.selectedConversationId);
|
|
480
|
+
// Update the UI to show the reaction
|
|
481
|
+
const updatedMessages = this.allMessages.map(message => {
|
|
482
|
+
if (message.messageId === messageId) {
|
|
483
|
+
return Object.assign(Object.assign({}, message), { reactions: [...(message.reactions || []), { type: emojiId, count: 1 }] });
|
|
484
|
+
}
|
|
485
|
+
return message;
|
|
486
|
+
});
|
|
487
|
+
this.updateAllMessages(updatedMessages);
|
|
488
|
+
}
|
|
489
|
+
catch (error) {
|
|
490
|
+
console.error('Error adding reaction:', error);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
async findAndScrollToMessage(messageId, isReplyClick = false) {
|
|
494
|
+
let messageElement = this.el.shadowRoot.querySelector(`[data-message-id="${messageId}"]`);
|
|
495
|
+
if (!messageElement && isReplyClick) {
|
|
496
|
+
await this.updateSkip();
|
|
497
|
+
messageElement = this.el.shadowRoot.querySelector(`[data-message-id="${messageId}"]`);
|
|
498
|
+
let attempts = 0;
|
|
499
|
+
const maxAttempts = 10;
|
|
500
|
+
while (!messageElement && attempts < maxAttempts && !this.isMessageLimitEnd) {
|
|
501
|
+
await this.updateSkip();
|
|
502
|
+
messageElement = this.el.shadowRoot.querySelector(`[data-message-id="${messageId}"]`);
|
|
503
|
+
attempts++;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
if (messageElement) {
|
|
507
|
+
setTimeout(() => {
|
|
508
|
+
this.scrollToMessage(messageId);
|
|
509
|
+
}, 100);
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
console.log('Message not found after multiple attempts');
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
// Attach the scroll listener after the component has loaded
|
|
516
|
+
async componentDidLoad() {
|
|
517
|
+
document.addEventListener('visibilitychange', this.handleVisibilityChange);
|
|
518
|
+
document.addEventListener('click', this.handleDocumentClick);
|
|
519
|
+
// Listen for item menu open event to close kebab menu
|
|
520
|
+
document.addEventListener('item-menu-opened', this.handleItemMenuOpened);
|
|
521
|
+
this.el.addEventListener('reaction-added', (event) => {
|
|
522
|
+
this.handleReactionAdd(event);
|
|
523
|
+
});
|
|
524
|
+
this.el.addEventListener('reaction-removed', (event) => {
|
|
525
|
+
this.handleReactionRemove(event);
|
|
526
|
+
});
|
|
527
|
+
const chatBodyDiv = this.el.shadowRoot.querySelector('.chat-body');
|
|
528
|
+
if (chatBodyDiv) {
|
|
529
|
+
chatBodyDiv.addEventListener('scroll', this.handleScroll); // Listen to the scroll event
|
|
530
|
+
}
|
|
531
|
+
this.el.addEventListener('find-and-scroll-to-message', async (event) => {
|
|
532
|
+
// @ts-ignore
|
|
533
|
+
const { messageId, isReplyClick } = event.detail;
|
|
534
|
+
await this.findAndScrollToMessage(messageId, isReplyClick);
|
|
535
|
+
});
|
|
536
|
+
this.scrollToBottom();
|
|
537
|
+
this.putReadAll();
|
|
538
|
+
}
|
|
539
|
+
async handleDataChange() {
|
|
540
|
+
var _a, _b, _c, _d;
|
|
541
|
+
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
542
|
+
if (this.isScrollToBottom && ((_a = this.allMessages) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId)) {
|
|
543
|
+
this.scrollToBottom();
|
|
544
|
+
requestAnimationFrame(() => {
|
|
545
|
+
this.changeScrollToBottomState(false);
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
else if (((_c = this.allMessages) === null || _c === void 0 ? void 0 : _c.length) > 0 && ((_d = this.userMetaData) === null || _d === void 0 ? void 0 : _d.userId) && this.isScrollToTop) {
|
|
549
|
+
this.scrollToTop();
|
|
550
|
+
requestAnimationFrame(() => {
|
|
551
|
+
this.changeScrollToTopState(false);
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
if (!this.isChatMinimized && !this.isChatClosed && this.isTabActive) {
|
|
555
|
+
this.putReadAll();
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
async handleReactionRemove(event) {
|
|
559
|
+
try {
|
|
560
|
+
const { messageId, emojiId } = event.detail;
|
|
561
|
+
await deleteReaction(this.selectedConversationId, messageId, emojiId);
|
|
562
|
+
}
|
|
563
|
+
catch (error) {
|
|
564
|
+
console.error('Error removing reaction:', error);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
// Clean up the scroll listener when the component is removed
|
|
568
|
+
disconnectedCallback() {
|
|
569
|
+
document.removeEventListener('visibilitychange', this.handleVisibilityChange);
|
|
570
|
+
document.removeEventListener('click', this.handleDocumentClick);
|
|
571
|
+
document.removeEventListener('item-menu-opened', this.handleItemMenuOpened);
|
|
572
|
+
this.el.removeEventListener('reaction-added', (event) => {
|
|
573
|
+
this.handleReactionAdd(event);
|
|
574
|
+
});
|
|
575
|
+
this.el.removeEventListener('reaction-removed', (event) => {
|
|
576
|
+
this.handleReactionRemove(event);
|
|
577
|
+
});
|
|
578
|
+
const chatBodyDiv = this.el.shadowRoot.querySelector('.chat-body');
|
|
579
|
+
if (chatBodyDiv) {
|
|
580
|
+
chatBodyDiv.removeEventListener('scroll', this.handleScroll); // Remove the scroll listener
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
openReplyBlock(messageId) {
|
|
584
|
+
var _a;
|
|
585
|
+
const message = (_a = this.allMessages) === null || _a === void 0 ? void 0 : _a.find(msg => (msg === null || msg === void 0 ? void 0 : msg.messageId) === messageId);
|
|
586
|
+
if (message) {
|
|
587
|
+
this.replyMessageDetails.emit(message);
|
|
588
|
+
}
|
|
589
|
+
// this.isReplyBlockOpen = this.isReplyBlockOpen === messageId ? null : messageId;
|
|
590
|
+
}
|
|
591
|
+
closeReplyBlock() {
|
|
592
|
+
this.isReplyBlockOpen = null;
|
|
593
|
+
}
|
|
594
|
+
closeMessageActionPopup() {
|
|
595
|
+
this.isMessageActionOpen = null;
|
|
596
|
+
}
|
|
597
|
+
async scrollToMessage(messageId) {
|
|
598
|
+
const messageElement = this.el.shadowRoot.querySelector(`[data-message-id="${messageId}"]`);
|
|
599
|
+
if (messageElement) {
|
|
600
|
+
messageElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
601
|
+
messageElement.classList.add('highlighted');
|
|
602
|
+
setTimeout(() => {
|
|
603
|
+
messageElement.classList.remove('highlighted');
|
|
604
|
+
}, 2000);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
updateMessageStatus(messageId, conversationId, isRead, isDelivered) {
|
|
608
|
+
if (isRead) {
|
|
609
|
+
this.el.dispatchEvent(new CustomEvent('conversation-unread-count-changed', {
|
|
610
|
+
bubbles: true,
|
|
611
|
+
composed: true,
|
|
612
|
+
}));
|
|
613
|
+
}
|
|
614
|
+
// Update local message state
|
|
615
|
+
this.allMessages = this.allMessages.map(msg => {
|
|
616
|
+
if (msg.messageId === messageId) {
|
|
617
|
+
return Object.assign(Object.assign({}, msg), { readByAll: isRead, deliveredToAll: isDelivered });
|
|
618
|
+
}
|
|
619
|
+
return msg;
|
|
620
|
+
});
|
|
621
|
+
// Emit event for sidebar to update
|
|
622
|
+
this.messageReadStatusUpdated.emit({
|
|
623
|
+
messageId,
|
|
624
|
+
conversationId,
|
|
625
|
+
isRead,
|
|
626
|
+
isDelivered,
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
async closeMessageInfo() {
|
|
630
|
+
this.messageInfoOpen = false;
|
|
631
|
+
this.readUserList = [];
|
|
632
|
+
this.deliveryUserList = [];
|
|
633
|
+
this.pendingReadCount = 0;
|
|
634
|
+
this.pendingDeliveryCount = 0;
|
|
635
|
+
}
|
|
636
|
+
async handleChnageChangeConversationId() {
|
|
637
|
+
this.closeMessageInfo();
|
|
638
|
+
}
|
|
639
|
+
renderMessageAction(message, isSelf, position) {
|
|
640
|
+
const actionButtons = [
|
|
641
|
+
{
|
|
642
|
+
icon: (h("svg", { width: "14px", height: "14px", viewBox: "-0.5 0 28 28", version: "1.1", xmlns: "http://www.w3.org/2000/svg", fill: "var(--popup-label-color)" }, h("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { id: "SVGRepo_iconCarrier" }, h("g", { id: "Page-1", stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, h("g", { id: "Icon-Set", transform: "translate(-100.000000, -1193.000000)", fill: "var(--popup-label-color)" }, h("path", { d: "M113,1208 C112.346,1208 109.98,1208.02 109.98,1208.02 L109.98,1213.39 L102.323,1205 L109.98,1196.6 L109.98,1202.01 C109.98,1202.01 112.48,1201.98 113,1202 C120.062,1202.22 124.966,1210.26 124.998,1214.02 C122.84,1211.25 117.17,1208 113,1208 L113,1208 Z M111.983,1200.01 L111.983,1194.11 C112.017,1193.81 111.936,1193.51 111.708,1193.28 C111.312,1192.89 110.67,1192.89 110.274,1193.28 L100.285,1204.24 C100.074,1204.45 99.984,1204.72 99.998,1205 C99.984,1205.27 100.074,1205.55 100.285,1205.76 L110.219,1216.65 C110.403,1216.88 110.67,1217.03 110.981,1217.03 C111.265,1217.03 111.518,1216.91 111.7,1216.72 C111.702,1216.72 111.706,1216.72 111.708,1216.71 C111.936,1216.49 112.017,1216.18 111.983,1215.89 C111.983,1215.89 112,1210.34 112,1210 C118.6,1210 124.569,1214.75 125.754,1221.01 C126.552,1219.17 127,1217.15 127,1215.02 C127,1206.73 120.276,1200.01 111.983,1200.01 L111.983,1200.01 Z", id: "reply" })))))),
|
|
643
|
+
label: WEB_CONTENT.MESSAGE_ACTIONS.REPLY,
|
|
644
|
+
onClick: () => {
|
|
645
|
+
this.openReplyBlock(message.messageId);
|
|
646
|
+
this.closeMessageActionPopup();
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
icon: (h("svg", { width: "14px", height: "14px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M14.554 3.9974L19.2301 8.13188C21.0767 9.76455 22 10.5809 22 11.6325C22 12.6842 21.0767 13.5005 19.2301 15.1332L14.554 19.2677C13.7111 20.0129 13.2897 20.3856 12.9422 20.2303C12.5947 20.0751 12.5947 19.5143 12.5947 18.3925V15.6472C8.35683 15.6472 3.76579 17.6545 2 21C2 10.2943 8.27835 7.61792 12.5947 7.61792V4.87257C12.5947 3.75082 12.5947 3.18995 12.9422 3.03474C13.2897 2.87953 13.7111 3.25215 14.554 3.9974Z", stroke: "var(--popup-label-color)", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))),
|
|
651
|
+
label: WEB_CONTENT.MESSAGE_ACTIONS.FORWARD,
|
|
652
|
+
onClick: e => {
|
|
653
|
+
this.openForwardPopup(e, message === null || message === void 0 ? void 0 : message.messageId, message);
|
|
654
|
+
this.closeMessageActionPopup();
|
|
655
|
+
},
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
icon: (h("svg", { fill: "var(--popup-label-color)", width: "14px", height: "14px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M5.755,20.283,4,8H20L18.245,20.283A2,2,0,0,1,16.265,22H7.735A2,2,0,0,1,5.755,20.283ZM21,4H16V3a1,1,0,0,0-1-1H9A1,1,0,0,0,8,3V4H3A1,1,0,0,0,3,6H21a1,1,0,0,0,0-2Z" }))),
|
|
659
|
+
label: WEB_CONTENT.MESSAGE_ACTIONS.DELETE,
|
|
660
|
+
onClick: e => {
|
|
661
|
+
this.openDeletePopup(e, message === null || message === void 0 ? void 0 : message.messageId, isSelf);
|
|
662
|
+
this.closeMessageActionPopup();
|
|
663
|
+
},
|
|
664
|
+
},
|
|
665
|
+
];
|
|
666
|
+
const selfOnlyButtons = [
|
|
667
|
+
{
|
|
668
|
+
icon: (h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "14px", viewBox: "0 -960 960 960", width: "14px", fill: "var(--popup-label-color)" }, h("path", { d: "M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-640q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-640Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" }))),
|
|
669
|
+
label: WEB_CONTENT.MESSAGE_ACTIONS.INFO,
|
|
670
|
+
onClick: () => {
|
|
671
|
+
this.logMessageInfo();
|
|
672
|
+
this.closeMessageActionPopup();
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
];
|
|
676
|
+
return (h("div", { class: `messageActionPopup ${position === 'top' ? 'position-top' : ''}` }, actionButtons.map((button, index) => (h("button", { key: index, onClick: button.onClick }, button.icon, button.label))), isSelf &&
|
|
677
|
+
selfOnlyButtons.map((button, index) => (h("button", { key: `self-${index}`, onClick: button.onClick }, button.icon, button.label)))));
|
|
678
|
+
}
|
|
679
|
+
render() {
|
|
680
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
681
|
+
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);
|
|
682
|
+
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'));
|
|
683
|
+
return (h("div", { key: '3b94b327766c714ff6fc300d258fca3f040cd166', style: {
|
|
684
|
+
backgroundColor: 'var(--chat-bg-tint)',
|
|
685
|
+
backgroundImage: 'none',
|
|
686
|
+
}, class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, this.showScrollButton || this.newMessageNotification && (h("div", { key: '18f4595bc4521f4062301be50223829ef3e3f1ae', onClick: this.scrollToBottom, style: {
|
|
687
|
+
position: 'sticky',
|
|
688
|
+
top: '90%',
|
|
689
|
+
left: '95%',
|
|
690
|
+
backgroundColor: 'var(--bg-secondary-color)',
|
|
691
|
+
borderRadius: '50%',
|
|
692
|
+
width: '30px',
|
|
693
|
+
height: '30px',
|
|
694
|
+
display: 'flex',
|
|
695
|
+
alignItems: 'center',
|
|
696
|
+
justifyContent: 'center',
|
|
697
|
+
cursor: 'pointer',
|
|
698
|
+
boxShadow: '0 2px 5px rgba(0,0,0,0.2)',
|
|
699
|
+
zIndex: '100',
|
|
700
|
+
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '8d6f3387464317e549402145bdf679eb1d3d69a6', style: {
|
|
701
|
+
position: 'absolute',
|
|
702
|
+
bottom: '22px',
|
|
703
|
+
right: '-2px',
|
|
704
|
+
backgroundColor: 'var(--text-primary-color)',
|
|
705
|
+
color: 'var(--bg-primary-color)',
|
|
706
|
+
borderRadius: '50%',
|
|
707
|
+
width: '4px',
|
|
708
|
+
height: '12px',
|
|
709
|
+
display: 'flex',
|
|
710
|
+
alignItems: 'center',
|
|
711
|
+
justifyContent: 'center',
|
|
712
|
+
fontSize: '12px',
|
|
713
|
+
padding: '0 4px',
|
|
714
|
+
} })), h("svg", { key: '5d3d474718c3fe6ccdc371c31883038e00cb2503', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'e39daf794a2f0c89a932d851fef793a1818eca4c', 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: '77dd903a0373d334aabf9c9e2eddc8fc9d281430', style: {
|
|
715
|
+
display: 'flex',
|
|
716
|
+
flexDirection: 'column',
|
|
717
|
+
alignItems: 'center',
|
|
718
|
+
height: '100%',
|
|
719
|
+
justifyContent: 'center',
|
|
720
|
+
gap: '20px',
|
|
721
|
+
textAlign: 'center',
|
|
722
|
+
color: 'var(--text-secondary-color)',
|
|
723
|
+
marginTop: '20px',
|
|
724
|
+
} }, h("img", { key: '9db055b2d45db6caeac02ac18c58d4cc3321018f', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), h("div", { key: 'e377a040b675e7685a957834fac544fab8ce8644', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, h("span", { key: '08519c53c9eb457a4c789073428e9128d269f9e8', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), h("span", { key: '3d6b4151f2d2b910c0ac9ecbbe8ec235bd96d934', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (h("spinner-loader", { key: '4840d9ec8e2ae77114ddc1f644537f13baf3d66a', height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "#000", spinnerSecondaryColor: "var(--bg-grey-color)", spinnerBorderWidth: "3px" })), this.messageInfoOpen && (h("div", { key: '0e06ec45d9bf0069d2b6ee5080d019d0410b4039', class: "message-info-container" }, this.isLoadingInfo ? (h("div", { class: "spinner-wrapper" }, h("spinner-loader", { height: "15px", width: "15px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary-color)", spinnerSecondaryColor: "var(--text-primary-color)", spinnerBorderWidth: "2px" }))) : (h("message-info", { height: "100%", width: "100%", padding: "10px", backgroundColor: "var(--bg-primary-color)", messageBackgroundColor: "var(--bg-secondary-color)", statusBackgroundColor: "var(--bg-secondary-color)", selectedMessage: this.selectedMessage, onMediaClick: this.onMediaClick, allAttachments: this.allAttachments, messageDeliveryTime: this.messageDeliveryTime, messageReadTime: this.messageReadTime, readUserList: this.readUserList, deliveryUserList: this.deliveryUserList, isGroup: currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.isGroup, pendingReadCount: this.pendingReadCount, pendingDeliveryCount: this.pendingDeliveryCount, closePopup: () => this.closeMessageInfo(), fontSize: "16px" })))), ((_g = this.allMessages) === null || _g === void 0 ? void 0 : _g.length) > 0 &&
|
|
725
|
+
((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
|
|
726
|
+
((_j = this.allMessages) === null || _j === void 0 ? void 0 : _j.map((message, index) => {
|
|
727
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
728
|
+
const currentMessageDate = formatMessageDateFromTimestamp((_b = (_a = this.allMessages) === null || _a === void 0 ? void 0 : _a[index]) === null || _b === void 0 ? void 0 : _b.sentAt);
|
|
729
|
+
const previousMessageDate = formatMessageDateFromTimestamp(((_d = (_c = this.allMessages) === null || _c === void 0 ? void 0 : _c[index - 1]) === null || _d === void 0 ? void 0 : _d.sentAt) || '');
|
|
730
|
+
const showDatePill = currentMessageDate !== previousMessageDate;
|
|
731
|
+
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);
|
|
732
|
+
if (message.messageType === 2) {
|
|
733
|
+
return (h("div", { style: {
|
|
734
|
+
position: 'relative',
|
|
735
|
+
flexGrow: '1 1 100%',
|
|
736
|
+
display: 'flex',
|
|
737
|
+
justifyContent: isSelf ? 'end' : 'start',
|
|
738
|
+
}, "data-message-id": message === null || message === void 0 ? void 0 : message.messageId }, h("div", { id: "reply-message-container", style: { display: 'flex', gap: '4px', maxWidth: '88%' } }, (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.isGroup) && ((message === null || message === void 0 ? void 0 : message.senderId) || ((_g = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _g === void 0 ? void 0 : _g.userId)) !== ((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) && (h("div", { style: { width: 'auto' } }, h("img", { src: ((_j = message.senderInfo) === null || _j === void 0 ? void 0 : _j.userProfileImageUrl) || message.senderProfileImageUrl, alt: "Sender", style: {
|
|
739
|
+
width: '30px',
|
|
740
|
+
height: '30px',
|
|
741
|
+
borderRadius: '50%',
|
|
742
|
+
}, onError: e => {
|
|
743
|
+
const target = e.target;
|
|
744
|
+
target.src = ProfilePlaceholder;
|
|
745
|
+
} }))), h("reply-message-container", { parentMessageId: message === null || message === void 0 ? void 0 : message.parentMessageId, messageBody: message === null || message === void 0 ? void 0 : message.body, parentmessageBody: (_k = message === null || message === void 0 ? void 0 : message.metaData) === null || _k === void 0 ? void 0 : _k.parentMessage, senderName: (_l = message.senderInfo) === null || _l === void 0 ? void 0 : _l.userName, parentMessageSenderName: (_m = message === null || message === void 0 ? void 0 : message.metaData) === null || _m === void 0 ? void 0 : _m.parentMessageSenderName, messageTime: message === null || message === void 0 ? void 0 : message.sentAt, parentMessageSenderIdentifier: (_o = message === null || message === void 0 ? void 0 : message.metaData) === null || _o === void 0 ? void 0 : _o.parentMessageSenderId, parentMessageTime: formatUnixTimestamp((_p = message === null || message === void 0 ? void 0 : message.metaData) === null || _p === void 0 ? void 0 : _p.parentMessageTime), repliedMessage: message === null || message === void 0 ? void 0 : message.body, isRead: message === null || message === void 0 ? void 0 : message.readByAll, isDelivered: message === null || message === void 0 ? void 0 : message.deliveredToAll, userMetaData: this.userMetaData, messageInfo: message, backgroundColor: isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)', color: isSelf ? 'var(--text-outgoing-message)' : 'var(--text-incoming-message)', timeColor: isSelf ? 'var(--text-outgoing-time)' : 'var(--text-incoming-time)', parentMessageMediaUrl: (_q = message === null || message === void 0 ? void 0 : message.metaData) === null || _q === void 0 ? void 0 : _q.parentMessageMediaUrl, parentMessageType: (_r = message === null || message === void 0 ? void 0 : message.metaData) === null || _r === void 0 ? void 0 : _r.parentMessageType, isSelf: isSelf, messageId: message === null || message === void 0 ? void 0 : message.messageId, reactions: message === null || message === void 0 ? void 0 : message.reactions }), h("span", { class: `kebab-menu ${isSelf ? 'kebab-menu-right' : 'kebab-menu-left'}`, onClick: e => this.openMessageActionsPopup(e, message === null || message === void 0 ? void 0 : message.messageId) }, h("svg", { width: "14px", height: "14px", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "var(--text-primary-color)", class: "bi bi-three-dots-vertical" }, h("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { id: "SVGRepo_iconCarrier" }, h("path", { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" }))))), this.isMessageActionOpen === (message === null || message === void 0 ? void 0 : message.messageId) ? this.renderMessageAction(message, isSelf, 'top') : null));
|
|
746
|
+
}
|
|
747
|
+
if (message.attachments) {
|
|
748
|
+
return (h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', gap: '8px' }, "data-message-id": message.messageId }, showDatePill && (h("div", { style: { display: 'flex', width: '100%', justifyContent: 'center' } }, h("message-date-pill", { textColor: 'var(--text-secondary-color)', borderRadius: 'var(--radius-pill)', bgColor: 'var(--card)', borderColor: 'var(--border-subtle)', borderWidth: '1px', padding: '4px 12px', fontSize: '11px', fontWeight: '500', content: currentMessageDate }))), h("div", { id: isSelf ? 'outgoing-message' : 'incoming-message', style: { position: 'relative', display: 'flex', width: '100%', justifyContent: isSelf ? 'right' : 'left' }, "data-message-id": message.messageId }, (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.isGroup) && !isSelf && (h("div", { style: { width: 'auto' } }, h("img", { src: ((_s = message.senderInfo) === null || _s === void 0 ? void 0 : _s.userProfileImageUrl) || message.senderProfileImageUrl, alt: "Sender", style: {
|
|
749
|
+
width: '30px',
|
|
750
|
+
height: '30px',
|
|
751
|
+
borderRadius: '50%',
|
|
752
|
+
marginRight: '10px',
|
|
753
|
+
}, onError: e => {
|
|
754
|
+
const target = e.target;
|
|
755
|
+
target.src = ProfilePlaceholder;
|
|
756
|
+
} }))), this.renderAttachmentMessage(message, isSelf), h("span", { class: `kebab-menu ${isSelf ? 'kebab-menu-right' : 'kebab-menu-left'}`, onClick: e => this.openMessageActionsPopup(e, message === null || message === void 0 ? void 0 : message.messageId) }, h("svg", { width: "14px", height: "14px", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "var(--text-primary-color)", class: "bi bi-three-dots-vertical" }, h("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { id: "SVGRepo_iconCarrier" }, h("path", { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" })))), this.isMessageActionOpen === (message === null || message === void 0 ? void 0 : message.messageId) ? this.renderMessageAction(message, isSelf, 'top') : null)));
|
|
757
|
+
}
|
|
758
|
+
else if (message.body) {
|
|
759
|
+
const urls = this.extractUrls(message.body);
|
|
760
|
+
const hasLinks = urls.length > 0;
|
|
761
|
+
if (hasLinks) {
|
|
762
|
+
// For outgoing messages with links
|
|
763
|
+
if (isSelf) {
|
|
764
|
+
return (h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', gap: '8px' }, "data-message-id": message.messageId }, showDatePill && (h("div", { style: { display: 'flex', width: '100%', justifyContent: 'center' } }, h("message-date-pill", { textColor: 'var(--text-secondary-color)', borderRadius: 'var(--radius-pill)', bgColor: 'var(--card)', padding: '4px 12px', fontSize: '11px', content: currentMessageDate, fontWeight: '500' }))), h("div", { id: "outgoing-message", style: { position: 'relative', display: 'flex', width: '100%', justifyContent: 'end' } }, h("link-preview", { url: urls[0], isRead: message.readByAll, isDelivered: message.deliveredToAll, time: message.sentAt, textColor: "var(--text-outgoing-message)", backgroundColor: "var(--bg-outgoing-message)", message: message.body, isSelf: true, mentionedUsers: message === null || message === void 0 ? void 0 : message.mentionedUsers, messageId: message === null || message === void 0 ? void 0 : message.messageId, reactions: message === null || message === void 0 ? void 0 : message.reactions, messageType: message === null || message === void 0 ? void 0 : message.messageType, timeColor: "var(--text-outgoing-time)", userMetaData: this.userMetaData }), h("span", { class: "kebab-menu", style: { cursor: 'pointer', position: 'absolute', right: '-12px ', top: '5px' }, onClick: e => this.openMessageActionsPopup(e, message === null || message === void 0 ? void 0 : message.messageId) }, h("svg", { width: "14px", height: "14px", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "var(--text-primary-color)", class: "bi bi-three-dots-vertical" }, h("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { id: "SVGRepo_iconCarrier" }, h("path", { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" })))), this.isMessageActionOpen === (message === null || message === void 0 ? void 0 : message.messageId) ? this.renderMessageAction(message, isSelf, null) : null)));
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
// For incoming messages with links
|
|
768
|
+
return (h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', gap: '8px' }, "data-message-id": message.messageId }, showDatePill && (h("div", { style: { display: 'flex', width: '100%', justifyContent: 'center' } }, h("message-date-pill", { textColor: 'var(--text-secondary-color)', borderRadius: 'var(--radius-pill)', bgColor: 'var(--card)', padding: '4px 12px', fontSize: '11px', content: currentMessageDate }))), h("div", { style: (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.isGroup) ? { display: 'flex' } : {}, id: "incoming-message" }, (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.isGroup) && (h("div", { style: { width: 'auto' } }, h("img", { src: ((_t = message.senderInfo) === null || _t === void 0 ? void 0 : _t.userProfileImageUrl) || message.senderProfileImageUrl, alt: "Sender", style: {
|
|
769
|
+
width: '30px',
|
|
770
|
+
height: '30px',
|
|
771
|
+
borderRadius: '50%',
|
|
772
|
+
marginRight: '10px',
|
|
773
|
+
}, onError: e => {
|
|
774
|
+
const target = e.target;
|
|
775
|
+
target.src = ProfilePlaceholder;
|
|
776
|
+
} }))), h("link-preview", { url: urls[0], isRead: message.readByAll, isDelivered: message.deliveredToAll, time: message.sentAt, message: message.body, isSelf: false, textColor: "var(--text-incoming-message)", backgroundColor: "var(--bg-incoming-message)", mentionedUsers: message === null || message === void 0 ? void 0 : message.mentionedUsers, messageId: message === null || message === void 0 ? void 0 : message.messageId, reactions: message === null || message === void 0 ? void 0 : message.reactions, messageType: message === null || message === void 0 ? void 0 : message.messageType, timeColor: "var(--text-incoming-time)", userMetaData: this.userMetaData }), h("span", { class: "kebab-menu", style: { cursor: 'pointer', position: 'absolute', left: '-12px ', top: '5px' }, onClick: e => this.openMessageActionsPopup(e, message === null || message === void 0 ? void 0 : message.messageId) }, h("svg", { width: "14px", height: "14px", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "var(--text-primary-color)", class: "bi bi-three-dots-vertical" }, h("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { id: "SVGRepo_iconCarrier" }, h("path", { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" })))), this.isMessageActionOpen === (message === null || message === void 0 ? void 0 : message.messageId) ? this.renderMessageAction(message, isSelf, 'top') : null)));
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
else {
|
|
780
|
+
// Existing code for regular text messages
|
|
781
|
+
if (isSelf) {
|
|
782
|
+
return (h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', gap: '8px' }, "data-message-id": message.messageId }, showDatePill && (h("div", { style: { display: 'flex', width: '100%', justifyContent: 'center' } }, h("message-date-pill", { textColor: 'var(--text-secondary-color)', borderRadius: 'var(--radius-pill)', bgColor: 'var(--card)', padding: '4px 12px', fontSize: '11px', fontWeight: '500', content: currentMessageDate }))), h("div", { id: "outgoing-message", style: { position: 'relative', display: 'flex', width: '100%', justifyContent: 'end' }, "data-message-id": message.messageId }, h("outgoing-text-message-bubble", { isRead: message.readByAll, padding: "10px 14px 8px", borderRadius: "var(--radius-bubble)", textContent: message === null || message === void 0 ? void 0 : message.body, time: message === null || message === void 0 ? void 0 : message.sentAt, bgColor: "var(--bg-outgoing-message)", textColor: "var(--text-outgoing-message)", isDelivered: `${message === null || message === void 0 ? void 0 : message.deliveredToAll}`, mentionedUsers: message === null || message === void 0 ? void 0 : message.mentionedUsers, messageId: message === null || message === void 0 ? void 0 : message.messageId, reactions: message === null || message === void 0 ? void 0 : message.reactions, messageType: message === null || message === void 0 ? void 0 : message.messageType, timeColor: "var(--text-outgoing-time)" }), h("span", { class: `kebab-menu ${isSelf ? 'kebab-menu-right' : 'kebab-menu-left'}`, onClick: e => this.openMessageActionsPopup(e, message === null || message === void 0 ? void 0 : message.messageId) }, h("svg", { width: "14px", height: "14px", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "var(--text-primary-color)", class: "bi bi-three-dots-vertical" }, h("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { id: "SVGRepo_iconCarrier" }, h("path", { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" })))), this.isMessageActionOpen === (message === null || message === void 0 ? void 0 : message.messageId) ? this.renderMessageAction(message, isSelf, 'top') : null)));
|
|
783
|
+
}
|
|
784
|
+
else {
|
|
785
|
+
return (h("div", { style: { display: 'flex', width: '100%', flexDirection: 'column', gap: '8px' }, "data-message-id": message.messageId }, showDatePill && (h("div", { style: { display: 'flex', width: '100%', justifyContent: 'center' } }, h("message-date-pill", { textColor: 'var(--text-secondary-color)', borderRadius: 'var(--radius-pill)', bgColor: 'var(--card)', padding: '4px 12px', fontSize: '11px', fontWeight: '500', content: currentMessageDate }))), h("div", { style: (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.isGroup) ? { display: 'flex' } : {}, id: "incoming-message" }, (currentConversation === null || currentConversation === void 0 ? void 0 : currentConversation.isGroup) && (h("div", { style: { width: 'auto' } }, h("img", { src: ((_u = message.senderInfo) === null || _u === void 0 ? void 0 : _u.userProfileImageUrl) || message.senderProfileImageUrl, alt: "Sender", style: {
|
|
786
|
+
width: '30px',
|
|
787
|
+
height: '30px',
|
|
788
|
+
borderRadius: '50%',
|
|
789
|
+
marginRight: '10px',
|
|
790
|
+
}, onError: e => {
|
|
791
|
+
const target = e.target;
|
|
792
|
+
target.src = ProfilePlaceholder;
|
|
793
|
+
} }))), h("incoming-text-message-bubble", { color: "var(--text-incoming-message)", bgColor: "var(--bg-incoming-message)", timeColor: "var(--text-incoming-time)", borderRadius: "var(--radius-bubble)", borderWidth: "1px", borderColor: "var(--bubble-border, var(--primary))", borderStyle: "solid", time: message === null || message === void 0 ? void 0 : message.sentAt, textContent: message === null || message === void 0 ? void 0 : message.body, mentionedUsers: message === null || message === void 0 ? void 0 : message.mentionedUsers, messageId: message === null || message === void 0 ? void 0 : message.messageId, reactions: message === null || message === void 0 ? void 0 : message.reactions, padding: "10px 14px 8px", userMetaData: this.userMetaData, messageType: message === null || message === void 0 ? void 0 : message.messageType }), h("span", { class: `kebab-menu ${isSelf ? 'kebab-menu-right' : 'kebab-menu-left'}`, onClick: e => this.openMessageActionsPopup(e, message === null || message === void 0 ? void 0 : message.messageId) }, h("svg", { width: "14px", height: "14px", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", fill: "var(--text-primary-color)", class: "bi bi-three-dots-vertical" }, h("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { id: "SVGRepo_iconCarrier" }, h("path", { d: "M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" })))), this.isMessageActionOpen === (message === null || message === void 0 ? void 0 : message.messageId) ? this.renderMessageAction(message, isSelf, 'top') : null)));
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
else if (message.action == 'conversationCreated' ||
|
|
798
|
+
message.action == 'clearConversation' ||
|
|
799
|
+
message.action == 'deleteConversationLocally' ||
|
|
800
|
+
message.action == 'membersAdd' ||
|
|
801
|
+
message.action == 'membersRemove' ||
|
|
802
|
+
message.action == 'addAdmin' ||
|
|
803
|
+
message.action == 'removeAdmin' ||
|
|
804
|
+
message.action == 'userBlockConversation' ||
|
|
805
|
+
message.action == 'userUnblockConversation' ||
|
|
806
|
+
message.action == 'reactionAdd') {
|
|
807
|
+
return (h("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: '10px' } }, showDatePill && (h("message-date-pill", { textColor: 'var(--text-secondary-color)', borderRadius: 'var(--radius-pill)', bgColor: 'var(--card)', padding: '4px 12px', fontSize: '15px', fontWeight: '500', content: currentMessageDate })), message.action == 'conversationCreated' && (h("div", { class: "messagePillContainer" }, "Conversation Created by ", ((_v = this.userMetaData) === null || _v === void 0 ? void 0 : _v.userId) === message.userId ? 'You' : message.userName)), message.action == 'clearConversation' && (h("div", { class: "messagePillContainer" }, "Conversation Cleared by ", ((_w = this.userMetaData) === null || _w === void 0 ? void 0 : _w.userId) === message.userId ? 'You' : message.userName)), message.action === 'membersAdd' && (h("div", { class: "messagePillContainer" }, (message === null || message === void 0 ? void 0 : message.userId) === ((_x = this.userMetaData) === null || _x === void 0 ? void 0 : _x.userId) ? 'You' : message === null || message === void 0 ? void 0 : message.userName, " added ", message.members.map(member => member.memberName).join(', '))), message.action === 'reactionAdd' && (h("div", { class: "messagePillContainer" }, message.userId === ((_y = this.userMetaData) === null || _y === void 0 ? void 0 : _y.userId)
|
|
808
|
+
? `You reacted ${this.getReactionEmoji(message.reactionType)} to a message`
|
|
809
|
+
: `${message.userName} ${this.getReactionEmoji(message.reactionType)} reacted to a message`)), message.action === 'userUnblockConversation' && (h("div", { class: "messagePillContainer" }, message.initiatorId === ((_z = this.userMetaData) === null || _z === void 0 ? void 0 : _z.userId) ? 'You unblocked' + ' ' + message.opponentName : message.initiatorName + ' ' + 'unblocked you')), message.action === 'userBlockConversation' && (h("div", { class: "messagePillContainer" }, message.initiatorId === ((_0 = this.userMetaData) === null || _0 === void 0 ? void 0 : _0.userId) ? '🚫 You blocked' + ' ' + message.opponentName : '🚫' + message.initiatorName + ' ' + 'blocked you', "`")), message.action === 'membersRemove' && (h("div", { class: "messagePillContainer" }, (message === null || message === void 0 ? void 0 : message.userId) === ((_1 = this.userMetaData) === null || _1 === void 0 ? void 0 : _1.userId) ? 'You' : message === null || message === void 0 ? void 0 : message.userName, " removed ", message.members.map(member => member.memberName).join(', '))), message.action === 'addAdmin' && (h("div", { class: "messagePillContainer" }, (message === null || message === void 0 ? void 0 : message.initiatorId) === ((_2 = this.userMetaData) === null || _2 === void 0 ? void 0 : _2.userId) ? 'You' : message === null || message === void 0 ? void 0 : message.initiatorName, " made ", message.memberName, " an admin")), message.action === 'removeAdmin' && (h("div", { class: "messagePillContainer" }, (message === null || message === void 0 ? void 0 : message.initiatorId) === ((_3 = this.userMetaData) === null || _3 === void 0 ? void 0 : _3.userId) ? 'You' : message === null || message === void 0 ? void 0 : message.initiatorName, " removed ", message.memberName, " as an admin"))));
|
|
810
|
+
}
|
|
811
|
+
else if (message.action == 'conversationTitleUpdated') {
|
|
812
|
+
return (h("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: '10px' }, "data-message-id": message === null || message === void 0 ? void 0 : message.messageId }, showDatePill && currentMessageDate && (h("message-date-pill", { textColor: 'var(--text-secondary-color)', borderRadius: 'var(--radius-pill)', bgColor: 'var(--card)', padding: '4px 12px', content: currentMessageDate, fontSize: '15px', fontWeight: '500' })), h("div", { class: "messagePillContainer" }, ((_4 = this.userMetaData) === null || _4 === void 0 ? void 0 : _4.userId) === message.userId ? 'You' : message === null || message === void 0 ? void 0 : message.userName, " updated the conversation title to ", message.conversationTitle)));
|
|
813
|
+
}
|
|
814
|
+
else if (message.action == 'memberLeave') {
|
|
815
|
+
return (h("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: '10px' } }, showDatePill && (h("message-date-pill", { textColor: 'var(--text-secondary-color)', borderRadius: 'var(--radius-pill)', bgColor: 'var(--card)', padding: '4px 12px', fontSize: '15px', fontWeight: '500', content: currentMessageDate })), h("div", { class: "messagePillContainer" }, ((_5 = this.userMetaData) === null || _5 === void 0 ? void 0 : _5.userId) === message.userId ? 'You' : message.userName, " left the conversation")));
|
|
816
|
+
}
|
|
817
|
+
else if (message.action == 'memberRemove') {
|
|
818
|
+
return (h("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: '10px' } }, showDatePill && (h("message-date-pill", { textColor: 'var(--text-secondary-color)', borderRadius: 'var(--radius-pill)', bgColor: 'var(--card)', padding: '4px 12px', fontSize: '15px', fontWeight: '500', content: currentMessageDate })), h("div", { class: "messagePillContainer" }, message.userName, " removed ", message.members.map(member => member.memberName).join(', '))));
|
|
819
|
+
}
|
|
820
|
+
}))));
|
|
821
|
+
}
|
|
822
|
+
static get is() { return "web-chat-body"; }
|
|
823
|
+
static get encapsulation() { return "shadow"; }
|
|
824
|
+
static get originalStyleUrls() {
|
|
825
|
+
return {
|
|
826
|
+
"$": ["web-chat-body.css"]
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
static get styleUrls() {
|
|
830
|
+
return {
|
|
831
|
+
"$": ["web-chat-body.css"]
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
static get properties() {
|
|
835
|
+
return {
|
|
836
|
+
"skip": {
|
|
837
|
+
"type": "number",
|
|
838
|
+
"mutable": false,
|
|
839
|
+
"complexType": {
|
|
840
|
+
"original": "number",
|
|
841
|
+
"resolved": "number",
|
|
842
|
+
"references": {}
|
|
843
|
+
},
|
|
844
|
+
"required": false,
|
|
845
|
+
"optional": false,
|
|
846
|
+
"docs": {
|
|
847
|
+
"tags": [],
|
|
848
|
+
"text": ""
|
|
849
|
+
},
|
|
850
|
+
"attribute": "skip",
|
|
851
|
+
"reflect": false
|
|
852
|
+
},
|
|
853
|
+
"allMessages": {
|
|
854
|
+
"type": "any",
|
|
855
|
+
"mutable": false,
|
|
856
|
+
"complexType": {
|
|
857
|
+
"original": "any",
|
|
858
|
+
"resolved": "any",
|
|
859
|
+
"references": {}
|
|
860
|
+
},
|
|
861
|
+
"required": false,
|
|
862
|
+
"optional": false,
|
|
863
|
+
"docs": {
|
|
864
|
+
"tags": [],
|
|
865
|
+
"text": ""
|
|
866
|
+
},
|
|
867
|
+
"attribute": "all-messages",
|
|
868
|
+
"reflect": false
|
|
869
|
+
},
|
|
870
|
+
"userMetaData": {
|
|
871
|
+
"type": "any",
|
|
872
|
+
"mutable": false,
|
|
873
|
+
"complexType": {
|
|
874
|
+
"original": "any",
|
|
875
|
+
"resolved": "any",
|
|
876
|
+
"references": {}
|
|
877
|
+
},
|
|
878
|
+
"required": false,
|
|
879
|
+
"optional": false,
|
|
880
|
+
"docs": {
|
|
881
|
+
"tags": [],
|
|
882
|
+
"text": ""
|
|
883
|
+
},
|
|
884
|
+
"attribute": "user-meta-data",
|
|
885
|
+
"reflect": false
|
|
886
|
+
},
|
|
887
|
+
"isMessagesLoading": {
|
|
888
|
+
"type": "boolean",
|
|
889
|
+
"mutable": false,
|
|
890
|
+
"complexType": {
|
|
891
|
+
"original": "boolean",
|
|
892
|
+
"resolved": "boolean",
|
|
893
|
+
"references": {}
|
|
894
|
+
},
|
|
895
|
+
"required": false,
|
|
896
|
+
"optional": false,
|
|
897
|
+
"docs": {
|
|
898
|
+
"tags": [],
|
|
899
|
+
"text": ""
|
|
900
|
+
},
|
|
901
|
+
"attribute": "is-messages-loading",
|
|
902
|
+
"reflect": false
|
|
903
|
+
},
|
|
904
|
+
"isMessageSending": {
|
|
905
|
+
"type": "boolean",
|
|
906
|
+
"mutable": false,
|
|
907
|
+
"complexType": {
|
|
908
|
+
"original": "boolean",
|
|
909
|
+
"resolved": "boolean",
|
|
910
|
+
"references": {}
|
|
911
|
+
},
|
|
912
|
+
"required": false,
|
|
913
|
+
"optional": false,
|
|
914
|
+
"docs": {
|
|
915
|
+
"tags": [],
|
|
916
|
+
"text": ""
|
|
917
|
+
},
|
|
918
|
+
"attribute": "is-message-sending",
|
|
919
|
+
"reflect": false
|
|
920
|
+
},
|
|
921
|
+
"isMessageLimitEnd": {
|
|
922
|
+
"type": "boolean",
|
|
923
|
+
"mutable": false,
|
|
924
|
+
"complexType": {
|
|
925
|
+
"original": "boolean",
|
|
926
|
+
"resolved": "boolean",
|
|
927
|
+
"references": {}
|
|
928
|
+
},
|
|
929
|
+
"required": false,
|
|
930
|
+
"optional": false,
|
|
931
|
+
"docs": {
|
|
932
|
+
"tags": [],
|
|
933
|
+
"text": ""
|
|
934
|
+
},
|
|
935
|
+
"attribute": "is-message-limit-end",
|
|
936
|
+
"reflect": false
|
|
937
|
+
},
|
|
938
|
+
"updateSkip": {
|
|
939
|
+
"type": "unknown",
|
|
940
|
+
"mutable": false,
|
|
941
|
+
"complexType": {
|
|
942
|
+
"original": "() => void",
|
|
943
|
+
"resolved": "() => void",
|
|
944
|
+
"references": {}
|
|
945
|
+
},
|
|
946
|
+
"required": false,
|
|
947
|
+
"optional": false,
|
|
948
|
+
"docs": {
|
|
949
|
+
"tags": [],
|
|
950
|
+
"text": ""
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
"isScrollToBottom": {
|
|
954
|
+
"type": "boolean",
|
|
955
|
+
"mutable": false,
|
|
956
|
+
"complexType": {
|
|
957
|
+
"original": "boolean",
|
|
958
|
+
"resolved": "boolean",
|
|
959
|
+
"references": {}
|
|
960
|
+
},
|
|
961
|
+
"required": false,
|
|
962
|
+
"optional": false,
|
|
963
|
+
"docs": {
|
|
964
|
+
"tags": [],
|
|
965
|
+
"text": ""
|
|
966
|
+
},
|
|
967
|
+
"attribute": "is-scroll-to-bottom",
|
|
968
|
+
"reflect": false
|
|
969
|
+
},
|
|
970
|
+
"isScrollToTop": {
|
|
971
|
+
"type": "boolean",
|
|
972
|
+
"mutable": false,
|
|
973
|
+
"complexType": {
|
|
974
|
+
"original": "boolean",
|
|
975
|
+
"resolved": "boolean",
|
|
976
|
+
"references": {}
|
|
977
|
+
},
|
|
978
|
+
"required": false,
|
|
979
|
+
"optional": false,
|
|
980
|
+
"docs": {
|
|
981
|
+
"tags": [],
|
|
982
|
+
"text": ""
|
|
983
|
+
},
|
|
984
|
+
"attribute": "is-scroll-to-top",
|
|
985
|
+
"reflect": false
|
|
986
|
+
},
|
|
987
|
+
"deleteForAll": {
|
|
988
|
+
"type": "unknown",
|
|
989
|
+
"mutable": false,
|
|
990
|
+
"complexType": {
|
|
991
|
+
"original": "({ conversationId, messageIds }) => void",
|
|
992
|
+
"resolved": "({ conversationId, messageIds }: { conversationId: any; messageIds: any; }) => void",
|
|
993
|
+
"references": {}
|
|
994
|
+
},
|
|
995
|
+
"required": false,
|
|
996
|
+
"optional": false,
|
|
997
|
+
"docs": {
|
|
998
|
+
"tags": [],
|
|
999
|
+
"text": ""
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
"deleteForSelf": {
|
|
1003
|
+
"type": "unknown",
|
|
1004
|
+
"mutable": false,
|
|
1005
|
+
"complexType": {
|
|
1006
|
+
"original": "({ conversationId, messageIds }) => void",
|
|
1007
|
+
"resolved": "({ conversationId, messageIds }: { conversationId: any; messageIds: any; }) => void",
|
|
1008
|
+
"references": {}
|
|
1009
|
+
},
|
|
1010
|
+
"required": false,
|
|
1011
|
+
"optional": false,
|
|
1012
|
+
"docs": {
|
|
1013
|
+
"tags": [],
|
|
1014
|
+
"text": ""
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
"changeScrollToBottomState": {
|
|
1018
|
+
"type": "unknown",
|
|
1019
|
+
"mutable": false,
|
|
1020
|
+
"complexType": {
|
|
1021
|
+
"original": "(newState: boolean) => void",
|
|
1022
|
+
"resolved": "(newState: boolean) => void",
|
|
1023
|
+
"references": {}
|
|
1024
|
+
},
|
|
1025
|
+
"required": false,
|
|
1026
|
+
"optional": false,
|
|
1027
|
+
"docs": {
|
|
1028
|
+
"tags": [],
|
|
1029
|
+
"text": ""
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"changeScrollToTopState": {
|
|
1033
|
+
"type": "unknown",
|
|
1034
|
+
"mutable": false,
|
|
1035
|
+
"complexType": {
|
|
1036
|
+
"original": "(newState: boolean) => void",
|
|
1037
|
+
"resolved": "(newState: boolean) => void",
|
|
1038
|
+
"references": {}
|
|
1039
|
+
},
|
|
1040
|
+
"required": false,
|
|
1041
|
+
"optional": false,
|
|
1042
|
+
"docs": {
|
|
1043
|
+
"tags": [],
|
|
1044
|
+
"text": ""
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
"updateAllMessages": {
|
|
1048
|
+
"type": "unknown",
|
|
1049
|
+
"mutable": false,
|
|
1050
|
+
"complexType": {
|
|
1051
|
+
"original": "(newMessages: any) => void",
|
|
1052
|
+
"resolved": "(newMessages: any) => void",
|
|
1053
|
+
"references": {}
|
|
1054
|
+
},
|
|
1055
|
+
"required": false,
|
|
1056
|
+
"optional": false,
|
|
1057
|
+
"docs": {
|
|
1058
|
+
"tags": [],
|
|
1059
|
+
"text": ""
|
|
1060
|
+
}
|
|
1061
|
+
},
|
|
1062
|
+
"isChatClosed": {
|
|
1063
|
+
"type": "boolean",
|
|
1064
|
+
"mutable": false,
|
|
1065
|
+
"complexType": {
|
|
1066
|
+
"original": "boolean",
|
|
1067
|
+
"resolved": "boolean",
|
|
1068
|
+
"references": {}
|
|
1069
|
+
},
|
|
1070
|
+
"required": false,
|
|
1071
|
+
"optional": false,
|
|
1072
|
+
"docs": {
|
|
1073
|
+
"tags": [],
|
|
1074
|
+
"text": ""
|
|
1075
|
+
},
|
|
1076
|
+
"attribute": "is-chat-closed",
|
|
1077
|
+
"reflect": false
|
|
1078
|
+
},
|
|
1079
|
+
"isChatMinimized": {
|
|
1080
|
+
"type": "boolean",
|
|
1081
|
+
"mutable": false,
|
|
1082
|
+
"complexType": {
|
|
1083
|
+
"original": "boolean",
|
|
1084
|
+
"resolved": "boolean",
|
|
1085
|
+
"references": {}
|
|
1086
|
+
},
|
|
1087
|
+
"required": false,
|
|
1088
|
+
"optional": false,
|
|
1089
|
+
"docs": {
|
|
1090
|
+
"tags": [],
|
|
1091
|
+
"text": ""
|
|
1092
|
+
},
|
|
1093
|
+
"attribute": "is-chat-minimized",
|
|
1094
|
+
"reflect": false
|
|
1095
|
+
},
|
|
1096
|
+
"selectedConversationId": {
|
|
1097
|
+
"type": "string",
|
|
1098
|
+
"mutable": false,
|
|
1099
|
+
"complexType": {
|
|
1100
|
+
"original": "string",
|
|
1101
|
+
"resolved": "string",
|
|
1102
|
+
"references": {}
|
|
1103
|
+
},
|
|
1104
|
+
"required": false,
|
|
1105
|
+
"optional": false,
|
|
1106
|
+
"docs": {
|
|
1107
|
+
"tags": [],
|
|
1108
|
+
"text": ""
|
|
1109
|
+
},
|
|
1110
|
+
"attribute": "selected-conversation-id",
|
|
1111
|
+
"reflect": false
|
|
1112
|
+
},
|
|
1113
|
+
"allAttachments": {
|
|
1114
|
+
"type": "any",
|
|
1115
|
+
"mutable": false,
|
|
1116
|
+
"complexType": {
|
|
1117
|
+
"original": "any",
|
|
1118
|
+
"resolved": "any",
|
|
1119
|
+
"references": {}
|
|
1120
|
+
},
|
|
1121
|
+
"required": false,
|
|
1122
|
+
"optional": false,
|
|
1123
|
+
"docs": {
|
|
1124
|
+
"tags": [],
|
|
1125
|
+
"text": ""
|
|
1126
|
+
},
|
|
1127
|
+
"attribute": "all-attachments",
|
|
1128
|
+
"reflect": false
|
|
1129
|
+
},
|
|
1130
|
+
"highlightedMessageId": {
|
|
1131
|
+
"type": "string",
|
|
1132
|
+
"mutable": false,
|
|
1133
|
+
"complexType": {
|
|
1134
|
+
"original": "string | null",
|
|
1135
|
+
"resolved": "string",
|
|
1136
|
+
"references": {}
|
|
1137
|
+
},
|
|
1138
|
+
"required": false,
|
|
1139
|
+
"optional": false,
|
|
1140
|
+
"docs": {
|
|
1141
|
+
"tags": [],
|
|
1142
|
+
"text": ""
|
|
1143
|
+
},
|
|
1144
|
+
"attribute": "highlighted-message-id",
|
|
1145
|
+
"reflect": false
|
|
1146
|
+
},
|
|
1147
|
+
"onMediaClick": {
|
|
1148
|
+
"type": "unknown",
|
|
1149
|
+
"mutable": false,
|
|
1150
|
+
"complexType": {
|
|
1151
|
+
"original": "() => void",
|
|
1152
|
+
"resolved": "() => void",
|
|
1153
|
+
"references": {}
|
|
1154
|
+
},
|
|
1155
|
+
"required": false,
|
|
1156
|
+
"optional": false,
|
|
1157
|
+
"docs": {
|
|
1158
|
+
"tags": [],
|
|
1159
|
+
"text": ""
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"conversationList": {
|
|
1163
|
+
"type": "any",
|
|
1164
|
+
"mutable": false,
|
|
1165
|
+
"complexType": {
|
|
1166
|
+
"original": "any",
|
|
1167
|
+
"resolved": "any",
|
|
1168
|
+
"references": {}
|
|
1169
|
+
},
|
|
1170
|
+
"required": false,
|
|
1171
|
+
"optional": false,
|
|
1172
|
+
"docs": {
|
|
1173
|
+
"tags": [],
|
|
1174
|
+
"text": ""
|
|
1175
|
+
},
|
|
1176
|
+
"attribute": "conversation-list",
|
|
1177
|
+
"reflect": false,
|
|
1178
|
+
"defaultValue": "[]"
|
|
1179
|
+
},
|
|
1180
|
+
"conversationDetails": {
|
|
1181
|
+
"type": "any",
|
|
1182
|
+
"mutable": false,
|
|
1183
|
+
"complexType": {
|
|
1184
|
+
"original": "any",
|
|
1185
|
+
"resolved": "any",
|
|
1186
|
+
"references": {}
|
|
1187
|
+
},
|
|
1188
|
+
"required": false,
|
|
1189
|
+
"optional": false,
|
|
1190
|
+
"docs": {
|
|
1191
|
+
"tags": [],
|
|
1192
|
+
"text": ""
|
|
1193
|
+
},
|
|
1194
|
+
"attribute": "conversation-details",
|
|
1195
|
+
"reflect": false,
|
|
1196
|
+
"defaultValue": "{}"
|
|
1197
|
+
},
|
|
1198
|
+
"newMessageNotification": {
|
|
1199
|
+
"type": "unknown",
|
|
1200
|
+
"mutable": false,
|
|
1201
|
+
"complexType": {
|
|
1202
|
+
"original": "{ messageId: string; count: number; conversationId: string } | null",
|
|
1203
|
+
"resolved": "{ messageId: string; count: number; conversationId: string; }",
|
|
1204
|
+
"references": {}
|
|
1205
|
+
},
|
|
1206
|
+
"required": false,
|
|
1207
|
+
"optional": false,
|
|
1208
|
+
"docs": {
|
|
1209
|
+
"tags": [],
|
|
1210
|
+
"text": ""
|
|
1211
|
+
},
|
|
1212
|
+
"defaultValue": "null"
|
|
1213
|
+
},
|
|
1214
|
+
"loadingMediaGallery": {
|
|
1215
|
+
"type": "boolean",
|
|
1216
|
+
"mutable": false,
|
|
1217
|
+
"complexType": {
|
|
1218
|
+
"original": "boolean",
|
|
1219
|
+
"resolved": "boolean",
|
|
1220
|
+
"references": {}
|
|
1221
|
+
},
|
|
1222
|
+
"required": false,
|
|
1223
|
+
"optional": false,
|
|
1224
|
+
"docs": {
|
|
1225
|
+
"tags": [],
|
|
1226
|
+
"text": ""
|
|
1227
|
+
},
|
|
1228
|
+
"attribute": "loading-media-gallery",
|
|
1229
|
+
"reflect": false
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
static get states() {
|
|
1234
|
+
return {
|
|
1235
|
+
"previousTotalScrollHeight": {},
|
|
1236
|
+
"deviceId": {},
|
|
1237
|
+
"scrollTimeout": {},
|
|
1238
|
+
"isDeletePopupOpen": {},
|
|
1239
|
+
"isMessageActionOpen": {},
|
|
1240
|
+
"deletedMessages": {},
|
|
1241
|
+
"isTabActive": {},
|
|
1242
|
+
"isForwardPopupOpen": {},
|
|
1243
|
+
"isSelf": {},
|
|
1244
|
+
"isReplyBlockOpen": {},
|
|
1245
|
+
"messageActionPopupElement": {},
|
|
1246
|
+
"popupRef": {},
|
|
1247
|
+
"messageInfoOpen": {},
|
|
1248
|
+
"messagePreviewText": {},
|
|
1249
|
+
"messageDate": {},
|
|
1250
|
+
"messageDeliveryTime": {},
|
|
1251
|
+
"messageReadTime": {},
|
|
1252
|
+
"showScrollButton": {},
|
|
1253
|
+
"isScrolling": {},
|
|
1254
|
+
"unreadMessageCount": {},
|
|
1255
|
+
"isChatBodyUnscrollable": {},
|
|
1256
|
+
"selectedMessage": {},
|
|
1257
|
+
"readUserList": {},
|
|
1258
|
+
"deliveryUserList": {},
|
|
1259
|
+
"pendingDeliveryCount": {},
|
|
1260
|
+
"pendingReadCount": {},
|
|
1261
|
+
"isLoadingInfo": {}
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1264
|
+
static get events() {
|
|
1265
|
+
return [{
|
|
1266
|
+
"method": "replyMessageDetails",
|
|
1267
|
+
"name": "replyMessageDetails",
|
|
1268
|
+
"bubbles": true,
|
|
1269
|
+
"cancelable": true,
|
|
1270
|
+
"composed": true,
|
|
1271
|
+
"docs": {
|
|
1272
|
+
"tags": [],
|
|
1273
|
+
"text": ""
|
|
1274
|
+
},
|
|
1275
|
+
"complexType": {
|
|
1276
|
+
"original": "any",
|
|
1277
|
+
"resolved": "any",
|
|
1278
|
+
"references": {}
|
|
1279
|
+
}
|
|
1280
|
+
}, {
|
|
1281
|
+
"method": "newMessageCountReset",
|
|
1282
|
+
"name": "newMessageCountReset",
|
|
1283
|
+
"bubbles": true,
|
|
1284
|
+
"cancelable": true,
|
|
1285
|
+
"composed": true,
|
|
1286
|
+
"docs": {
|
|
1287
|
+
"tags": [],
|
|
1288
|
+
"text": ""
|
|
1289
|
+
},
|
|
1290
|
+
"complexType": {
|
|
1291
|
+
"original": "any",
|
|
1292
|
+
"resolved": "any",
|
|
1293
|
+
"references": {}
|
|
1294
|
+
}
|
|
1295
|
+
}, {
|
|
1296
|
+
"method": "messageReadStatusUpdated",
|
|
1297
|
+
"name": "messageReadStatusUpdated",
|
|
1298
|
+
"bubbles": true,
|
|
1299
|
+
"cancelable": true,
|
|
1300
|
+
"composed": true,
|
|
1301
|
+
"docs": {
|
|
1302
|
+
"tags": [],
|
|
1303
|
+
"text": ""
|
|
1304
|
+
},
|
|
1305
|
+
"complexType": {
|
|
1306
|
+
"original": "any",
|
|
1307
|
+
"resolved": "any",
|
|
1308
|
+
"references": {}
|
|
1309
|
+
}
|
|
1310
|
+
}];
|
|
1311
|
+
}
|
|
1312
|
+
static get methods() {
|
|
1313
|
+
return {
|
|
1314
|
+
"scrollToMessage": {
|
|
1315
|
+
"complexType": {
|
|
1316
|
+
"signature": "(messageId: string) => Promise<void>",
|
|
1317
|
+
"parameters": [{
|
|
1318
|
+
"name": "messageId",
|
|
1319
|
+
"type": "string",
|
|
1320
|
+
"docs": ""
|
|
1321
|
+
}],
|
|
1322
|
+
"references": {
|
|
1323
|
+
"Promise": {
|
|
1324
|
+
"location": "global",
|
|
1325
|
+
"id": "global::Promise"
|
|
1326
|
+
}
|
|
1327
|
+
},
|
|
1328
|
+
"return": "Promise<void>"
|
|
1329
|
+
},
|
|
1330
|
+
"docs": {
|
|
1331
|
+
"text": "",
|
|
1332
|
+
"tags": []
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
static get elementRef() { return "el"; }
|
|
1338
|
+
static get watchers() {
|
|
1339
|
+
return [{
|
|
1340
|
+
"propName": "allMessages",
|
|
1341
|
+
"methodName": "handleDataChange"
|
|
1342
|
+
}, {
|
|
1343
|
+
"propName": "userMetaData",
|
|
1344
|
+
"methodName": "handleDataChange"
|
|
1345
|
+
}, {
|
|
1346
|
+
"propName": "selectedConversationId",
|
|
1347
|
+
"methodName": "handleChnageChangeConversationId"
|
|
1348
|
+
}];
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
export { WebChatBody };
|
|
1352
|
+
//# sourceMappingURL=WebChatBody.js.map
|