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,1175 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import "../../../stories/Components/ChatSidebar/ChatSidebar";
|
|
3
|
+
import ChatSDK from "test-iso-chat-sdk";
|
|
4
|
+
import "../../../stories/Components/Toaster/Toaster";
|
|
5
|
+
import "../../../stories/Components/Loader/Spinner/Spinner";
|
|
6
|
+
import { showToast } from "../../../stories/Components/Toaster/toast-helper";
|
|
7
|
+
import { GROUP_PROFILE_PLACEHOLDER_IMAGE } from "../../../constants/urls";
|
|
8
|
+
import { conversationStore } from "../../../store/conversation";
|
|
9
|
+
import { drawerDialogService } from "../../../stories/Components/Dialog-Drawer/dialog-drawer.js";
|
|
10
|
+
import { postGroupCast } from "../../../api/groupcast.js";
|
|
11
|
+
class ChatSidebar {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.getAllMemeber = async (searchTag = '', skip = 0) => {
|
|
14
|
+
if (skip === 0) {
|
|
15
|
+
this.isLoadingMember = true;
|
|
16
|
+
this.nonBlockedContacts = [];
|
|
17
|
+
}
|
|
18
|
+
if (skip >= 20) {
|
|
19
|
+
this.isPaginationMember = true;
|
|
20
|
+
}
|
|
21
|
+
this.hasMoreMembers = true;
|
|
22
|
+
try {
|
|
23
|
+
this.skip = skip;
|
|
24
|
+
const paramsForNonBlockedContacts = {
|
|
25
|
+
sort: 1,
|
|
26
|
+
limit: 20,
|
|
27
|
+
skip: skip,
|
|
28
|
+
context: 'new_chat',
|
|
29
|
+
};
|
|
30
|
+
if (searchTag === null || searchTag === void 0 ? void 0 : searchTag.trim()) {
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
paramsForNonBlockedContacts.searchTag = searchTag;
|
|
33
|
+
}
|
|
34
|
+
const res = await ChatSDK.getInstance().user.getUserNonblock(paramsForNonBlockedContacts);
|
|
35
|
+
if ((res === null || res === void 0 ? void 0 : res.users) && res.users.length > 0) {
|
|
36
|
+
this.isNoContactsFound = false;
|
|
37
|
+
if (skip === 0) {
|
|
38
|
+
this.nonBlockedContacts = [...res.users];
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
this.nonBlockedContacts = [...this.nonBlockedContacts, ...res.users];
|
|
42
|
+
}
|
|
43
|
+
if (res.users.length < paramsForNonBlockedContacts.limit) {
|
|
44
|
+
this.hasMoreMembers = false;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
if (searchTag === null || searchTag === void 0 ? void 0 : searchTag.trim()) {
|
|
49
|
+
this.isNoContactsFound = true;
|
|
50
|
+
}
|
|
51
|
+
this.hasMoreMembers = false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
console.error(error, 'error from get all non blocked contacts');
|
|
56
|
+
this.isNoContactsFound = true;
|
|
57
|
+
this.hasMoreMembers = false;
|
|
58
|
+
}
|
|
59
|
+
finally {
|
|
60
|
+
this.isLoadingMember = false;
|
|
61
|
+
this.isPaginationMember = false;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
this.getAllGroupMemeber = async (searchTag = '', skip = 0, selectedUserIds = []) => {
|
|
65
|
+
if (skip === 0) {
|
|
66
|
+
this.isLoadingMember = true;
|
|
67
|
+
this.nonBlockedContacts = [];
|
|
68
|
+
}
|
|
69
|
+
if (skip >= 20) {
|
|
70
|
+
this.isPaginationMember = true;
|
|
71
|
+
}
|
|
72
|
+
this.hasMoreMembers = true;
|
|
73
|
+
try {
|
|
74
|
+
this.skip = skip;
|
|
75
|
+
const paramsForNonBlockedContacts = {
|
|
76
|
+
sort: 1,
|
|
77
|
+
limit: 20,
|
|
78
|
+
skip: skip,
|
|
79
|
+
context: 'group_chat',
|
|
80
|
+
};
|
|
81
|
+
if (searchTag === null || searchTag === void 0 ? void 0 : searchTag.trim()) {
|
|
82
|
+
// @ts-ignore
|
|
83
|
+
paramsForNonBlockedContacts.searchTag = searchTag;
|
|
84
|
+
}
|
|
85
|
+
const res = await ChatSDK.getInstance().user.getUserNonblock(paramsForNonBlockedContacts);
|
|
86
|
+
if ((res === null || res === void 0 ? void 0 : res.users) && res.users.length > 0) {
|
|
87
|
+
this.isNoContactsFound = false;
|
|
88
|
+
// Filter out selected users from the results
|
|
89
|
+
const filteredUsers = res.users.filter(user => !(selectedUserIds === null || selectedUserIds === void 0 ? void 0 : selectedUserIds.includes(user.userId)));
|
|
90
|
+
if (skip === 0) {
|
|
91
|
+
this.nonBlockedContacts = [...filteredUsers];
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
// Add only unique contacts that aren't already in the list
|
|
95
|
+
const uniqueContacts = filteredUsers.filter(newContact => !this.nonBlockedContacts.some(existingContact => existingContact.userId === newContact.userId));
|
|
96
|
+
this.nonBlockedContacts = [...this.nonBlockedContacts, ...uniqueContacts];
|
|
97
|
+
}
|
|
98
|
+
if (res.users.length < paramsForNonBlockedContacts.limit) {
|
|
99
|
+
this.hasMoreMembers = false;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
if (searchTag === null || searchTag === void 0 ? void 0 : searchTag.trim()) {
|
|
104
|
+
this.isNoContactsFound = true;
|
|
105
|
+
}
|
|
106
|
+
this.hasMoreMembers = false;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
console.error(error, 'error from get all non blocked contacts');
|
|
111
|
+
this.isNoContactsFound = true;
|
|
112
|
+
this.hasMoreMembers = false;
|
|
113
|
+
}
|
|
114
|
+
finally {
|
|
115
|
+
this.isLoadingMember = false;
|
|
116
|
+
this.isPaginationMember = false;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
this.getPresignedUrl = async (file) => {
|
|
120
|
+
try {
|
|
121
|
+
const mediaExtension = file.name.split('.').pop();
|
|
122
|
+
const res = await ChatSDK.getInstance().user.getPresignedurlCreate({
|
|
123
|
+
userIdentifier: this.userMetaData.userIdentifier,
|
|
124
|
+
mediaExtension,
|
|
125
|
+
});
|
|
126
|
+
// Upload file to presigned URL
|
|
127
|
+
await fetch(res.presignedUrl, {
|
|
128
|
+
method: 'PUT',
|
|
129
|
+
body: file,
|
|
130
|
+
headers: {
|
|
131
|
+
'Content-Type': file.type,
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
// Return the final URL for the uploaded file
|
|
135
|
+
return res.mediaUrl;
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
console.error('Error getting presigned URL or uploading file:', error);
|
|
139
|
+
throw error;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
this.isMqttConnected = undefined;
|
|
143
|
+
this.conversationList = [];
|
|
144
|
+
this.isChatFilter = undefined;
|
|
145
|
+
this.isAllChatButton = undefined;
|
|
146
|
+
this.customTypes = {};
|
|
147
|
+
this.filterTabsContainer = null;
|
|
148
|
+
this.filterTab = null;
|
|
149
|
+
this.filterTabHover = null;
|
|
150
|
+
this.isSidebarHeaderLabel = undefined;
|
|
151
|
+
this.isSidebarHeaderSearch = undefined;
|
|
152
|
+
this.sidebarHeaderLabel = undefined;
|
|
153
|
+
this.sidebarColor = undefined;
|
|
154
|
+
this.sidebarSelectedColor = undefined;
|
|
155
|
+
this.onDeleteConversation = undefined;
|
|
156
|
+
this.handleSearchData = undefined;
|
|
157
|
+
this.userMetaData = undefined;
|
|
158
|
+
this.isTyping = undefined;
|
|
159
|
+
this.typingUserName = undefined;
|
|
160
|
+
this.typingConversationId = undefined;
|
|
161
|
+
this.allMessages = undefined;
|
|
162
|
+
this.isConversationLoading = undefined;
|
|
163
|
+
this.hasMoreConversations = undefined;
|
|
164
|
+
this.unreadConversationsCount = undefined;
|
|
165
|
+
this.conversationDetails = undefined;
|
|
166
|
+
this.sortedConversationList = [];
|
|
167
|
+
this.numberOfConversations = 0;
|
|
168
|
+
this.unreadCounts = {};
|
|
169
|
+
this.searchQuery = '';
|
|
170
|
+
this.selectedConversationID = null;
|
|
171
|
+
this.isLoading = false;
|
|
172
|
+
this.nonBlockedContacts = [];
|
|
173
|
+
this.skip = 0;
|
|
174
|
+
this.isNoContactsFound = false;
|
|
175
|
+
this.isGroupChat = false;
|
|
176
|
+
this.selectedGroupUserIds = [];
|
|
177
|
+
this.groupInfo = { title: '', imageUrl: '' };
|
|
178
|
+
this.isGroupCreationLoading = false;
|
|
179
|
+
this.displayTitle = '';
|
|
180
|
+
this.searchTagName = '';
|
|
181
|
+
this.hasMoreMembers = false;
|
|
182
|
+
this.isLoadingMember = false;
|
|
183
|
+
this.isPaginationMember = false;
|
|
184
|
+
}
|
|
185
|
+
componentWillLoad() {
|
|
186
|
+
var _a, _b;
|
|
187
|
+
this.numberOfConversations = this.conversationList.length;
|
|
188
|
+
if (this.conversationDetails) {
|
|
189
|
+
conversationStore.updateConversationDetails({
|
|
190
|
+
conversationTitle: this.conversationDetails.isGroup ? this.conversationDetails.conversationTitle : (_a = this.conversationDetails.opponentDetails) === null || _a === void 0 ? void 0 : _a.userName,
|
|
191
|
+
// @ts-ignore
|
|
192
|
+
conversationId: this.conversationDetails.conversationId,
|
|
193
|
+
isGroup: this.conversationDetails.isGroup,
|
|
194
|
+
conversationImageUrl: this.conversationDetails.isGroup ? this.conversationDetails.conversationImageUrl : (_b = this.conversationDetails.opponentDetails) === null || _b === void 0 ? void 0 : _b.userProfileImageUrl,
|
|
195
|
+
opponentDetails: this.conversationDetails.opponentDetails,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
// Initialize unread counts and sorted list
|
|
199
|
+
this.unreadCounts = this.conversationList.reduce((acc, conversation) => {
|
|
200
|
+
acc[conversation.conversationId] = conversation.unreadMessagesCount || 0;
|
|
201
|
+
return acc;
|
|
202
|
+
}, {});
|
|
203
|
+
this.sortConversations();
|
|
204
|
+
}
|
|
205
|
+
handleConversationListChange() {
|
|
206
|
+
this.sortConversations();
|
|
207
|
+
if (this.selectedConversationID) {
|
|
208
|
+
this.unreadCounts = Object.assign(Object.assign({}, this.unreadCounts), { [this.selectedConversationID]: 0 });
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
handleConversationDetailsChange(newValue) {
|
|
212
|
+
var _a, _b;
|
|
213
|
+
if (newValue) {
|
|
214
|
+
conversationStore.updateConversationDetails({
|
|
215
|
+
conversationTitle: newValue.isGroup ? newValue.conversationTitle : (_a = newValue.opponentDetails) === null || _a === void 0 ? void 0 : _a.userName,
|
|
216
|
+
// @ts-ignore
|
|
217
|
+
conversationId: newValue.conversationId,
|
|
218
|
+
isGroup: newValue.isGroup,
|
|
219
|
+
conversationImageUrl: newValue.isGroup ? newValue.conversationImageUrl : (_b = newValue.opponentDetails) === null || _b === void 0 ? void 0 : _b.userProfileImageUrl,
|
|
220
|
+
opponentDetails: newValue.opponentDetails,
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
sortConversations() {
|
|
225
|
+
this.sortedConversationList = [...this.conversationList].sort((a, b) => {
|
|
226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
227
|
+
if ((((_a = a === null || a === void 0 ? void 0 : a.lastMessageDetails) === null || _a === void 0 ? void 0 : _a.action) == 'chatMessageSent' || ((_b = a === null || a === void 0 ? void 0 : a.lastMessageDetails) === null || _b === void 0 ? void 0 : _b.action) == 'forward') &&
|
|
228
|
+
(((_c = a === null || a === void 0 ? void 0 : a.lastMessageDetails) === null || _c === void 0 ? void 0 : _c.body) === '' || ((_d = a === null || a === void 0 ? void 0 : a.lastMessageDetails) === null || _d === void 0 ? void 0 : _d.action) === 'clearConversation'))
|
|
229
|
+
return;
|
|
230
|
+
if ((((_e = b === null || b === void 0 ? void 0 : b.lastMessageDetails) === null || _e === void 0 ? void 0 : _e.action) == 'chatMessageSent' || ((_f = b === null || b === void 0 ? void 0 : b.lastMessageDetails) === null || _f === void 0 ? void 0 : _f.action) == 'forward') &&
|
|
231
|
+
(((_g = b === null || b === void 0 ? void 0 : b.lastMessageDetails) === null || _g === void 0 ? void 0 : _g.body) === '' || ((_h = b === null || b === void 0 ? void 0 : b.lastMessageDetails) === null || _h === void 0 ? void 0 : _h.action) === 'clearConversation'))
|
|
232
|
+
return;
|
|
233
|
+
const timeA = ((_j = a === null || a === void 0 ? void 0 : a.lastMessageDetails) === null || _j === void 0 ? void 0 : _j.action) === 'membersAdd' ? (_k = a === null || a === void 0 ? void 0 : a.lastMessageDetails) === null || _k === void 0 ? void 0 : _k.sentAt : ((_l = a === null || a === void 0 ? void 0 : a.lastMessageDetails) === null || _l === void 0 ? void 0 : _l.updatedAt) || ((_m = a === null || a === void 0 ? void 0 : a.lastMessageDetails) === null || _m === void 0 ? void 0 : _m.sentAt) || (a === null || a === void 0 ? void 0 : a.updatedAt) || 0;
|
|
234
|
+
const timeB = ((_o = b === null || b === void 0 ? void 0 : b.lastMessageDetails) === null || _o === void 0 ? void 0 : _o.action) === 'membersAdd' ? (_p = b === null || b === void 0 ? void 0 : b.lastMessageDetails) === null || _p === void 0 ? void 0 : _p.sentAt : ((_q = b === null || b === void 0 ? void 0 : b.lastMessageDetails) === null || _q === void 0 ? void 0 : _q.updatedAt) || ((_r = b === null || b === void 0 ? void 0 : b.lastMessageDetails) === null || _r === void 0 ? void 0 : _r.sentAt) || (b === null || b === void 0 ? void 0 : b.updatedAt) || 0;
|
|
235
|
+
return timeB - timeA;
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
handleGroupContactsInputChange(event) {
|
|
239
|
+
var _a;
|
|
240
|
+
const { inputValue, isDebounced, selectedUserIds } = event.detail;
|
|
241
|
+
// Reset pagination
|
|
242
|
+
this.skip = 0;
|
|
243
|
+
this.nonBlockedContacts = [];
|
|
244
|
+
this.isNoContactsFound = false;
|
|
245
|
+
this.searchTagName = inputValue;
|
|
246
|
+
// For empty input or non-debounced events (like clear), fetch immediately
|
|
247
|
+
if ((inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim()) === '' || !isDebounced) {
|
|
248
|
+
this.getAllGroupMemeber('', undefined, selectedUserIds);
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
// For debounced search with input
|
|
252
|
+
if (((_a = inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim()) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
253
|
+
this.getAllGroupMemeber(inputValue, undefined, selectedUserIds);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
handleNewChatInputChange(event) {
|
|
257
|
+
var _a;
|
|
258
|
+
const { inputValue } = event.detail;
|
|
259
|
+
this.skip = 0;
|
|
260
|
+
this.nonBlockedContacts = [];
|
|
261
|
+
this.isNoContactsFound = false;
|
|
262
|
+
if ((inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim()) === '') {
|
|
263
|
+
this.getAllMemeber('');
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
if (((_a = inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim()) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
267
|
+
this.getAllMemeber(inputValue);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
handleCloseGroupMemberList() {
|
|
271
|
+
this.isPaginationMember = false;
|
|
272
|
+
this.isLoadingMember = false;
|
|
273
|
+
this.nonBlockedContacts = [];
|
|
274
|
+
this.searchTagName = '';
|
|
275
|
+
this.hasMoreMembers = false;
|
|
276
|
+
this.getAllMemeber('');
|
|
277
|
+
}
|
|
278
|
+
handleUnreadMessageCountUpdate(event) {
|
|
279
|
+
const { conversationId, count } = event.detail;
|
|
280
|
+
if (count > 0 && conversationId !== this.selectedConversationID) {
|
|
281
|
+
const currentCount = this.unreadCounts[conversationId] || 0;
|
|
282
|
+
this.unreadCounts = Object.assign(Object.assign({}, this.unreadCounts), { [conversationId]: currentCount + count });
|
|
283
|
+
// Update the conversation list to reflect the new message
|
|
284
|
+
this.conversationList = this.conversationList.map(conversation => {
|
|
285
|
+
if (conversation.conversationId === conversationId) {
|
|
286
|
+
return Object.assign(Object.assign({}, conversation), { unreadMessagesCount: currentCount + count, lastMessageDetails: Object.assign(Object.assign({}, conversation.lastMessageDetails), { updatedAt: Date.now() }) });
|
|
287
|
+
}
|
|
288
|
+
return conversation;
|
|
289
|
+
});
|
|
290
|
+
this.sortConversations(); // Ensure conversations are sorted after update
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
handleChatTileSelected(event) {
|
|
294
|
+
const selectedConversation = event.detail;
|
|
295
|
+
const selectedConvoId = selectedConversation.conversationId;
|
|
296
|
+
this.selectedConversationID = selectedConvoId;
|
|
297
|
+
this.conversationList = this.sortedConversationList.map(conversation => {
|
|
298
|
+
if (conversation.conversationId === selectedConvoId) {
|
|
299
|
+
return Object.assign(Object.assign({}, conversation), { unreadMessagesCount: 0 });
|
|
300
|
+
}
|
|
301
|
+
return conversation;
|
|
302
|
+
});
|
|
303
|
+
this.unreadCounts[selectedConvoId] = 0;
|
|
304
|
+
this.chatTileSelected.emit(selectedConvoId);
|
|
305
|
+
}
|
|
306
|
+
handleSearch(e) {
|
|
307
|
+
var _a;
|
|
308
|
+
const input = e.target;
|
|
309
|
+
this.searchQuery = (_a = input === null || input === void 0 ? void 0 : input.value) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
310
|
+
}
|
|
311
|
+
handleDeleteConversation(event) {
|
|
312
|
+
const { conversationId } = event.detail;
|
|
313
|
+
this.onDeleteConversation(conversationId);
|
|
314
|
+
}
|
|
315
|
+
handleNewChatContactSelected(event) {
|
|
316
|
+
const { userName, userId } = event.detail;
|
|
317
|
+
this.createConversation(userId, userName);
|
|
318
|
+
}
|
|
319
|
+
handleNewChatClick() {
|
|
320
|
+
this.getAllMemeber();
|
|
321
|
+
}
|
|
322
|
+
async createConversation(selectedContactId, selectedContactName) {
|
|
323
|
+
try {
|
|
324
|
+
const paramsForCreateConversation = {
|
|
325
|
+
typingEvents: true,
|
|
326
|
+
readEvents: true,
|
|
327
|
+
pushNotifications: true,
|
|
328
|
+
members: [selectedContactId],
|
|
329
|
+
isGroup: false,
|
|
330
|
+
conversationType: 0,
|
|
331
|
+
searchableTags: [selectedContactName],
|
|
332
|
+
};
|
|
333
|
+
const res = await ChatSDK.getInstance().Conversation.postConversation(paramsForCreateConversation);
|
|
334
|
+
if (res.conversationId) {
|
|
335
|
+
this.sortConversations();
|
|
336
|
+
this.selectedConversationID = res.conversationId;
|
|
337
|
+
// Update URL and emit events
|
|
338
|
+
const url = new URL(window.location.href);
|
|
339
|
+
url.searchParams.set('conversation', res.conversationId);
|
|
340
|
+
window.history.pushState({}, '', url);
|
|
341
|
+
this.chatTileSelected.emit(res.conversationId);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
catch (error) {
|
|
345
|
+
console.error('Error creating conversation:', error);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
handleNewChatTileListScrolledToBottom() {
|
|
349
|
+
if (this.isGroupChat) {
|
|
350
|
+
this.getAllGroupMemeber(this.searchTagName, (this.skip += 20));
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
this.getAllMemeber(this.searchTagName, (this.skip += 20));
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
handleCreateGroupClick(event) {
|
|
357
|
+
const { isGroup } = event.detail;
|
|
358
|
+
this.isGroupChat = isGroup;
|
|
359
|
+
this.nonBlockedContacts = [];
|
|
360
|
+
this.isLoadingMember = false;
|
|
361
|
+
this.hasMoreConversations = false;
|
|
362
|
+
this.isPaginationMember = false;
|
|
363
|
+
this.searchTagName = '';
|
|
364
|
+
this.getAllGroupMemeber('');
|
|
365
|
+
}
|
|
366
|
+
handleGroupContactsSelected(event) {
|
|
367
|
+
const { selectedUserIds } = event.detail;
|
|
368
|
+
this.selectedGroupUserIds = selectedUserIds;
|
|
369
|
+
}
|
|
370
|
+
handleGroupInfoSubmitted(event) {
|
|
371
|
+
const { conversationTitle, conversationImageUrl } = event.detail;
|
|
372
|
+
this.groupInfo = {
|
|
373
|
+
title: conversationTitle,
|
|
374
|
+
imageUrl: conversationImageUrl,
|
|
375
|
+
};
|
|
376
|
+
// Now create the group conversation with all collected information
|
|
377
|
+
this.createGroupConversation();
|
|
378
|
+
}
|
|
379
|
+
async createGroupConversation() {
|
|
380
|
+
try {
|
|
381
|
+
const paramsForCreateConversation = {
|
|
382
|
+
typingEvents: true,
|
|
383
|
+
readEvents: true,
|
|
384
|
+
pushNotifications: true,
|
|
385
|
+
members: this.selectedGroupUserIds,
|
|
386
|
+
isGroup: true,
|
|
387
|
+
conversationType: 0,
|
|
388
|
+
conversationTitle: this.groupInfo.title,
|
|
389
|
+
conversationImageUrl: this.groupInfo.imageUrl,
|
|
390
|
+
};
|
|
391
|
+
const res = await ChatSDK.getInstance().Conversation.postConversation(paramsForCreateConversation);
|
|
392
|
+
// Add the new group conversation to the list
|
|
393
|
+
const newConversation = {
|
|
394
|
+
conversationId: res.conversationId,
|
|
395
|
+
lastMessageDetails: {
|
|
396
|
+
updatedAt: Date.now(),
|
|
397
|
+
body: '',
|
|
398
|
+
},
|
|
399
|
+
unreadMessagesCount: 0,
|
|
400
|
+
isGroup: true,
|
|
401
|
+
conversationTitle: this.groupInfo.title,
|
|
402
|
+
conversationImageUrl: this.groupInfo.imageUrl,
|
|
403
|
+
};
|
|
404
|
+
this.conversationList = [newConversation, ...this.conversationList];
|
|
405
|
+
// this.sortConversations();
|
|
406
|
+
this.selectedConversationID = res.conversationId;
|
|
407
|
+
// Update URL and emit events
|
|
408
|
+
const url = new URL(window.location.href);
|
|
409
|
+
url.searchParams.set('conversation', res.conversationId);
|
|
410
|
+
window.history.pushState({}, '', url);
|
|
411
|
+
this.chatTileSelected.emit(res.conversationId);
|
|
412
|
+
}
|
|
413
|
+
catch (error) {
|
|
414
|
+
console.error('Error creating group conversation:', error);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
async handleGroupSubmitted(event) {
|
|
418
|
+
const { conversationTitle, imageFile, selectedUserIds, isGroupCast, selectedUsers } = event.detail;
|
|
419
|
+
try {
|
|
420
|
+
this.isGroupCreationLoading = true;
|
|
421
|
+
let conversationImageUrl = '';
|
|
422
|
+
if (imageFile) {
|
|
423
|
+
// @ts-ignore
|
|
424
|
+
conversationImageUrl = await this.getPresignedUrl(imageFile);
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
conversationImageUrl = GROUP_PROFILE_PLACEHOLDER_IMAGE;
|
|
428
|
+
}
|
|
429
|
+
const paramsForCreateConversation = {
|
|
430
|
+
typingEvents: true,
|
|
431
|
+
readEvents: true,
|
|
432
|
+
pushNotifications: true,
|
|
433
|
+
members: selectedUserIds,
|
|
434
|
+
isGroup: true,
|
|
435
|
+
conversationType: 1,
|
|
436
|
+
conversationTitle,
|
|
437
|
+
conversationImageUrl,
|
|
438
|
+
searchableTags: [conversationTitle],
|
|
439
|
+
};
|
|
440
|
+
const members = selectedUserIds.map(id => ({
|
|
441
|
+
newConversationTypingEvents: true,
|
|
442
|
+
newConversationReadEvents: true,
|
|
443
|
+
newConversationPushNotificationsEvents: true,
|
|
444
|
+
newConversationMetadata: {},
|
|
445
|
+
memberId: id,
|
|
446
|
+
newConversationCustomType: 'Groupcast',
|
|
447
|
+
userName: id.userName
|
|
448
|
+
}));
|
|
449
|
+
const paramsForCreateGroupCastConversation = {
|
|
450
|
+
groupcastTitle: conversationTitle,
|
|
451
|
+
groupcastImageUrl: conversationImageUrl,
|
|
452
|
+
searchableTags: [conversationTitle],
|
|
453
|
+
metaData: { description: 'groupcast created',
|
|
454
|
+
members: selectedUsers
|
|
455
|
+
},
|
|
456
|
+
customType: 'groupcast',
|
|
457
|
+
members,
|
|
458
|
+
};
|
|
459
|
+
if (isGroupCast) {
|
|
460
|
+
const res = await postGroupCast(paramsForCreateGroupCastConversation);
|
|
461
|
+
this.selectedConversationID = res.groupcastId;
|
|
462
|
+
const url = new URL(window.location.href);
|
|
463
|
+
url.searchParams.set('groupcast', res.groupcastId);
|
|
464
|
+
window.history.pushState({}, '', url);
|
|
465
|
+
this.chatTileSelected.emit({ groupcastId: res.groupcastId });
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
const res = await ChatSDK.getInstance().Conversation.postConversation(paramsForCreateConversation);
|
|
469
|
+
const newConversation = {
|
|
470
|
+
conversationId: res.conversationId,
|
|
471
|
+
lastMessageDetails: {
|
|
472
|
+
updatedAt: Date.now(),
|
|
473
|
+
body: '',
|
|
474
|
+
},
|
|
475
|
+
unreadMessagesCount: 0,
|
|
476
|
+
isGroup: true,
|
|
477
|
+
conversationTitle,
|
|
478
|
+
conversationImageUrl,
|
|
479
|
+
members: selectedUserIds,
|
|
480
|
+
};
|
|
481
|
+
this.conversationList = [newConversation, ...this.conversationList];
|
|
482
|
+
// this.sortConversations();
|
|
483
|
+
this.selectedConversationID = res.conversationId;
|
|
484
|
+
// Update URL
|
|
485
|
+
const url = new URL(window.location.href);
|
|
486
|
+
url.searchParams.set('conversation', res.conversationId);
|
|
487
|
+
window.history.pushState({}, '', url);
|
|
488
|
+
// Emit chat tile selected event
|
|
489
|
+
this.chatTileSelected.emit(res.conversationId);
|
|
490
|
+
showToast({
|
|
491
|
+
message: 'Group created successfully',
|
|
492
|
+
type: 'success',
|
|
493
|
+
position: 'bottom-right',
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
catch (error) {
|
|
498
|
+
console.error('Error creating group conversation:', error);
|
|
499
|
+
// Show error toaster
|
|
500
|
+
showToast({
|
|
501
|
+
message: 'Failed to create group',
|
|
502
|
+
type: 'error',
|
|
503
|
+
position: 'bottom-right',
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
finally {
|
|
507
|
+
this.isGroupCreationLoading = false;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
async handleExitGroup(event) {
|
|
511
|
+
var _a;
|
|
512
|
+
const conversationId = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.conversationId;
|
|
513
|
+
if (!conversationId) {
|
|
514
|
+
console.error('No conversation ID received in exit-group event');
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
await this.exitGroup(conversationId);
|
|
518
|
+
}
|
|
519
|
+
async handleContactAction(event) {
|
|
520
|
+
const { action, conversationId } = event.detail;
|
|
521
|
+
if (action === 'exit-group') {
|
|
522
|
+
if (!conversationId) {
|
|
523
|
+
console.error('No conversation ID provided for exit-group action');
|
|
524
|
+
return;
|
|
525
|
+
}
|
|
526
|
+
await this.exitGroup(conversationId);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
async exitGroup(conversationId) {
|
|
530
|
+
try {
|
|
531
|
+
this.isLoading = true;
|
|
532
|
+
await ChatSDK.getInstance().Conversation.deleteConversationLeave({ conversationId });
|
|
533
|
+
this.conversationList = this.conversationList.filter(conversation => conversation.conversationId !== conversationId);
|
|
534
|
+
// this.sortConversations();
|
|
535
|
+
const url = new URL(window.location.href);
|
|
536
|
+
url.searchParams.delete('conversation');
|
|
537
|
+
window.history.replaceState({}, '', url.toString());
|
|
538
|
+
showToast({
|
|
539
|
+
message: 'Successfully exited group',
|
|
540
|
+
type: 'success',
|
|
541
|
+
position: 'bottom-right',
|
|
542
|
+
});
|
|
543
|
+
this.groupExited.emit({ conversationId });
|
|
544
|
+
}
|
|
545
|
+
catch (error) {
|
|
546
|
+
console.error('Error exiting group:', error);
|
|
547
|
+
showToast({
|
|
548
|
+
message: 'Failed to exit group',
|
|
549
|
+
type: 'error',
|
|
550
|
+
position: 'bottom-right',
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
finally {
|
|
554
|
+
this.isLoading = false;
|
|
555
|
+
drawerDialogService.closeDialog('confirm-dialog');
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
handleMessageReadStatusUpdate(event) {
|
|
559
|
+
const { conversationId, isRead, isDelivered } = event.detail;
|
|
560
|
+
// Update the conversation list to reflect new read status
|
|
561
|
+
this.conversationList = this.conversationList.map(conversation => {
|
|
562
|
+
if (conversation.conversationId === conversationId) {
|
|
563
|
+
return Object.assign(Object.assign({}, conversation), { lastMessageDetails: Object.assign(Object.assign({}, conversation.lastMessageDetails), { readByAll: isRead, deliveredToAll: isDelivered }) });
|
|
564
|
+
}
|
|
565
|
+
return conversation;
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
render() {
|
|
569
|
+
return (h("div", { key: 'c1d63b161c2e21c624075177f08fec49a4cd59af', class: "chat-sidebar-container", style: { height: '100%' } }, this.isGroupCreationLoading && (h("div", { key: '8cf1b991cc8d117aa6539c7e195456bf94314926', class: "loader" }, h("spinner-loader", { key: '30bfb3506c112622ba9785ded1ce33b127b2a037', height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary-color)", spinnerSecondaryColor: "var(--text-primary-color)", spinnerBorderWidth: "2px" }))), h("chat-sidebar", { key: '3d3651657db6fbd1dfa77e7c389a67be7167375d', isMqttConnected: this.isMqttConnected, unreadConversationsCount: this.unreadConversationsCount, hasMoreConversations: this.hasMoreConversations, typingConversationId: this.typingConversationId, nonBlockedContacts: this.nonBlockedContacts, isChatFilter: this.isChatFilter, conversationData: this.sortedConversationList, onChatTileSelected: (event) => this.handleChatTileSelected(event), unreadMessageCount: undefined, customTypes: this.customTypes, isAllChats: this.isAllChatButton, filterTabsContainer: this.filterTabsContainer, displayTitle: this.displayTitle, filterTab: this.filterTab, filterTabHover: this.filterTabHover, filterTabActive: {
|
|
570
|
+
// backgroundColor: '#d9d9d9',
|
|
571
|
+
// fontWeight: 'bold',
|
|
572
|
+
borderBottom: '2px solid var(--bg-primary-light)'
|
|
573
|
+
}, isSidebarHeaderSearch: this.isSidebarHeaderSearch, isSidebarHeaderLabel: this.isSidebarHeaderLabel, sidebarHeaderLabel: this.sidebarHeaderLabel, sidebarColor: this.sidebarColor, sidebarSelectedColor: this.sidebarSelectedColor, isNoContactsFound: this.isNoContactsFound, isLoading: this.isLoading, isGroupCreationLoading: this.isGroupCreationLoading, handleSearchData: (serachText) => this.handleSearchData(serachText), isTyping: this.isTyping, typingUserName: this.typingUserName, allMessages: this.allMessages, userMetaData: this.userMetaData, isConversationLoading: this.isConversationLoading, isPaginationMember: this.isPaginationMember, isLoadingMember: this.isLoadingMember, hasMoreMembers: this.hasMoreMembers })));
|
|
574
|
+
}
|
|
575
|
+
static get is() { return "chat-side-bar"; }
|
|
576
|
+
static get encapsulation() { return "shadow"; }
|
|
577
|
+
static get styles() { return ":host {\n display: block;\n height: 100%;\n min-height: 0;\n }\n\n .loader {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 20px;\n border-radius: 5px;\n z-index: 10000;\n height: 100%;\n width: 100%;\n background: rgb(0, 0, 0, 0.3);\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .toaster {\n position: fixed;\n bottom: 20px;\n right: 20px;\n\n z-index: 1000;\n }\n\n chat-sidebar {\n display: block;\n height: 100%;\n }"; }
|
|
578
|
+
static get properties() {
|
|
579
|
+
return {
|
|
580
|
+
"isMqttConnected": {
|
|
581
|
+
"type": "boolean",
|
|
582
|
+
"mutable": false,
|
|
583
|
+
"complexType": {
|
|
584
|
+
"original": "boolean",
|
|
585
|
+
"resolved": "boolean",
|
|
586
|
+
"references": {}
|
|
587
|
+
},
|
|
588
|
+
"required": false,
|
|
589
|
+
"optional": false,
|
|
590
|
+
"docs": {
|
|
591
|
+
"tags": [],
|
|
592
|
+
"text": ""
|
|
593
|
+
},
|
|
594
|
+
"attribute": "is-mqtt-connected",
|
|
595
|
+
"reflect": false
|
|
596
|
+
},
|
|
597
|
+
"conversationList": {
|
|
598
|
+
"type": "any",
|
|
599
|
+
"mutable": false,
|
|
600
|
+
"complexType": {
|
|
601
|
+
"original": "any",
|
|
602
|
+
"resolved": "any",
|
|
603
|
+
"references": {}
|
|
604
|
+
},
|
|
605
|
+
"required": false,
|
|
606
|
+
"optional": false,
|
|
607
|
+
"docs": {
|
|
608
|
+
"tags": [],
|
|
609
|
+
"text": ""
|
|
610
|
+
},
|
|
611
|
+
"attribute": "conversation-list",
|
|
612
|
+
"reflect": false,
|
|
613
|
+
"defaultValue": "[]"
|
|
614
|
+
},
|
|
615
|
+
"isChatFilter": {
|
|
616
|
+
"type": "boolean",
|
|
617
|
+
"mutable": false,
|
|
618
|
+
"complexType": {
|
|
619
|
+
"original": "boolean",
|
|
620
|
+
"resolved": "boolean",
|
|
621
|
+
"references": {}
|
|
622
|
+
},
|
|
623
|
+
"required": false,
|
|
624
|
+
"optional": false,
|
|
625
|
+
"docs": {
|
|
626
|
+
"tags": [],
|
|
627
|
+
"text": ""
|
|
628
|
+
},
|
|
629
|
+
"attribute": "is-chat-filter",
|
|
630
|
+
"reflect": false
|
|
631
|
+
},
|
|
632
|
+
"isAllChatButton": {
|
|
633
|
+
"type": "boolean",
|
|
634
|
+
"mutable": false,
|
|
635
|
+
"complexType": {
|
|
636
|
+
"original": "boolean",
|
|
637
|
+
"resolved": "boolean",
|
|
638
|
+
"references": {}
|
|
639
|
+
},
|
|
640
|
+
"required": false,
|
|
641
|
+
"optional": false,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [],
|
|
644
|
+
"text": ""
|
|
645
|
+
},
|
|
646
|
+
"attribute": "is-all-chat-button",
|
|
647
|
+
"reflect": false
|
|
648
|
+
},
|
|
649
|
+
"customTypes": {
|
|
650
|
+
"type": "any",
|
|
651
|
+
"mutable": false,
|
|
652
|
+
"complexType": {
|
|
653
|
+
"original": "any",
|
|
654
|
+
"resolved": "any",
|
|
655
|
+
"references": {}
|
|
656
|
+
},
|
|
657
|
+
"required": false,
|
|
658
|
+
"optional": false,
|
|
659
|
+
"docs": {
|
|
660
|
+
"tags": [],
|
|
661
|
+
"text": ""
|
|
662
|
+
},
|
|
663
|
+
"attribute": "custom-types",
|
|
664
|
+
"reflect": false,
|
|
665
|
+
"defaultValue": "{}"
|
|
666
|
+
},
|
|
667
|
+
"filterTabsContainer": {
|
|
668
|
+
"type": "any",
|
|
669
|
+
"mutable": false,
|
|
670
|
+
"complexType": {
|
|
671
|
+
"original": "any",
|
|
672
|
+
"resolved": "any",
|
|
673
|
+
"references": {}
|
|
674
|
+
},
|
|
675
|
+
"required": false,
|
|
676
|
+
"optional": false,
|
|
677
|
+
"docs": {
|
|
678
|
+
"tags": [],
|
|
679
|
+
"text": ""
|
|
680
|
+
},
|
|
681
|
+
"attribute": "filter-tabs-container",
|
|
682
|
+
"reflect": false,
|
|
683
|
+
"defaultValue": "null"
|
|
684
|
+
},
|
|
685
|
+
"filterTab": {
|
|
686
|
+
"type": "any",
|
|
687
|
+
"mutable": false,
|
|
688
|
+
"complexType": {
|
|
689
|
+
"original": "any",
|
|
690
|
+
"resolved": "any",
|
|
691
|
+
"references": {}
|
|
692
|
+
},
|
|
693
|
+
"required": false,
|
|
694
|
+
"optional": false,
|
|
695
|
+
"docs": {
|
|
696
|
+
"tags": [],
|
|
697
|
+
"text": ""
|
|
698
|
+
},
|
|
699
|
+
"attribute": "filter-tab",
|
|
700
|
+
"reflect": false,
|
|
701
|
+
"defaultValue": "null"
|
|
702
|
+
},
|
|
703
|
+
"filterTabHover": {
|
|
704
|
+
"type": "any",
|
|
705
|
+
"mutable": false,
|
|
706
|
+
"complexType": {
|
|
707
|
+
"original": "any",
|
|
708
|
+
"resolved": "any",
|
|
709
|
+
"references": {}
|
|
710
|
+
},
|
|
711
|
+
"required": false,
|
|
712
|
+
"optional": false,
|
|
713
|
+
"docs": {
|
|
714
|
+
"tags": [],
|
|
715
|
+
"text": ""
|
|
716
|
+
},
|
|
717
|
+
"attribute": "filter-tab-hover",
|
|
718
|
+
"reflect": false,
|
|
719
|
+
"defaultValue": "null"
|
|
720
|
+
},
|
|
721
|
+
"isSidebarHeaderLabel": {
|
|
722
|
+
"type": "boolean",
|
|
723
|
+
"mutable": false,
|
|
724
|
+
"complexType": {
|
|
725
|
+
"original": "boolean",
|
|
726
|
+
"resolved": "boolean",
|
|
727
|
+
"references": {}
|
|
728
|
+
},
|
|
729
|
+
"required": false,
|
|
730
|
+
"optional": false,
|
|
731
|
+
"docs": {
|
|
732
|
+
"tags": [],
|
|
733
|
+
"text": ""
|
|
734
|
+
},
|
|
735
|
+
"attribute": "is-sidebar-header-label",
|
|
736
|
+
"reflect": false
|
|
737
|
+
},
|
|
738
|
+
"isSidebarHeaderSearch": {
|
|
739
|
+
"type": "boolean",
|
|
740
|
+
"mutable": false,
|
|
741
|
+
"complexType": {
|
|
742
|
+
"original": "boolean",
|
|
743
|
+
"resolved": "boolean",
|
|
744
|
+
"references": {}
|
|
745
|
+
},
|
|
746
|
+
"required": false,
|
|
747
|
+
"optional": false,
|
|
748
|
+
"docs": {
|
|
749
|
+
"tags": [],
|
|
750
|
+
"text": ""
|
|
751
|
+
},
|
|
752
|
+
"attribute": "is-sidebar-header-search",
|
|
753
|
+
"reflect": false
|
|
754
|
+
},
|
|
755
|
+
"sidebarHeaderLabel": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"mutable": false,
|
|
758
|
+
"complexType": {
|
|
759
|
+
"original": "string",
|
|
760
|
+
"resolved": "string",
|
|
761
|
+
"references": {}
|
|
762
|
+
},
|
|
763
|
+
"required": false,
|
|
764
|
+
"optional": false,
|
|
765
|
+
"docs": {
|
|
766
|
+
"tags": [],
|
|
767
|
+
"text": ""
|
|
768
|
+
},
|
|
769
|
+
"attribute": "sidebar-header-label",
|
|
770
|
+
"reflect": false
|
|
771
|
+
},
|
|
772
|
+
"sidebarColor": {
|
|
773
|
+
"type": "string",
|
|
774
|
+
"mutable": false,
|
|
775
|
+
"complexType": {
|
|
776
|
+
"original": "string",
|
|
777
|
+
"resolved": "string",
|
|
778
|
+
"references": {}
|
|
779
|
+
},
|
|
780
|
+
"required": false,
|
|
781
|
+
"optional": false,
|
|
782
|
+
"docs": {
|
|
783
|
+
"tags": [],
|
|
784
|
+
"text": ""
|
|
785
|
+
},
|
|
786
|
+
"attribute": "sidebar-color",
|
|
787
|
+
"reflect": false
|
|
788
|
+
},
|
|
789
|
+
"sidebarSelectedColor": {
|
|
790
|
+
"type": "string",
|
|
791
|
+
"mutable": false,
|
|
792
|
+
"complexType": {
|
|
793
|
+
"original": "string",
|
|
794
|
+
"resolved": "string",
|
|
795
|
+
"references": {}
|
|
796
|
+
},
|
|
797
|
+
"required": false,
|
|
798
|
+
"optional": false,
|
|
799
|
+
"docs": {
|
|
800
|
+
"tags": [],
|
|
801
|
+
"text": ""
|
|
802
|
+
},
|
|
803
|
+
"attribute": "sidebar-selected-color",
|
|
804
|
+
"reflect": false
|
|
805
|
+
},
|
|
806
|
+
"onDeleteConversation": {
|
|
807
|
+
"type": "unknown",
|
|
808
|
+
"mutable": false,
|
|
809
|
+
"complexType": {
|
|
810
|
+
"original": "(conversationId: string) => void",
|
|
811
|
+
"resolved": "(conversationId: string) => void",
|
|
812
|
+
"references": {}
|
|
813
|
+
},
|
|
814
|
+
"required": false,
|
|
815
|
+
"optional": false,
|
|
816
|
+
"docs": {
|
|
817
|
+
"tags": [],
|
|
818
|
+
"text": ""
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"handleSearchData": {
|
|
822
|
+
"type": "unknown",
|
|
823
|
+
"mutable": false,
|
|
824
|
+
"complexType": {
|
|
825
|
+
"original": "(searchTag: string) => void",
|
|
826
|
+
"resolved": "(searchTag: string) => void",
|
|
827
|
+
"references": {}
|
|
828
|
+
},
|
|
829
|
+
"required": false,
|
|
830
|
+
"optional": false,
|
|
831
|
+
"docs": {
|
|
832
|
+
"tags": [],
|
|
833
|
+
"text": ""
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"userMetaData": {
|
|
837
|
+
"type": "any",
|
|
838
|
+
"mutable": false,
|
|
839
|
+
"complexType": {
|
|
840
|
+
"original": "any",
|
|
841
|
+
"resolved": "any",
|
|
842
|
+
"references": {}
|
|
843
|
+
},
|
|
844
|
+
"required": false,
|
|
845
|
+
"optional": false,
|
|
846
|
+
"docs": {
|
|
847
|
+
"tags": [],
|
|
848
|
+
"text": ""
|
|
849
|
+
},
|
|
850
|
+
"attribute": "user-meta-data",
|
|
851
|
+
"reflect": false
|
|
852
|
+
},
|
|
853
|
+
"isTyping": {
|
|
854
|
+
"type": "boolean",
|
|
855
|
+
"mutable": false,
|
|
856
|
+
"complexType": {
|
|
857
|
+
"original": "boolean",
|
|
858
|
+
"resolved": "boolean",
|
|
859
|
+
"references": {}
|
|
860
|
+
},
|
|
861
|
+
"required": false,
|
|
862
|
+
"optional": false,
|
|
863
|
+
"docs": {
|
|
864
|
+
"tags": [],
|
|
865
|
+
"text": ""
|
|
866
|
+
},
|
|
867
|
+
"attribute": "is-typing",
|
|
868
|
+
"reflect": false
|
|
869
|
+
},
|
|
870
|
+
"typingUserName": {
|
|
871
|
+
"type": "unknown",
|
|
872
|
+
"mutable": false,
|
|
873
|
+
"complexType": {
|
|
874
|
+
"original": "String",
|
|
875
|
+
"resolved": "String",
|
|
876
|
+
"references": {
|
|
877
|
+
"String": {
|
|
878
|
+
"location": "global",
|
|
879
|
+
"id": "global::String"
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
"required": false,
|
|
884
|
+
"optional": false,
|
|
885
|
+
"docs": {
|
|
886
|
+
"tags": [],
|
|
887
|
+
"text": ""
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
"typingConversationId": {
|
|
891
|
+
"type": "string",
|
|
892
|
+
"mutable": false,
|
|
893
|
+
"complexType": {
|
|
894
|
+
"original": "string",
|
|
895
|
+
"resolved": "string",
|
|
896
|
+
"references": {}
|
|
897
|
+
},
|
|
898
|
+
"required": false,
|
|
899
|
+
"optional": false,
|
|
900
|
+
"docs": {
|
|
901
|
+
"tags": [],
|
|
902
|
+
"text": ""
|
|
903
|
+
},
|
|
904
|
+
"attribute": "typing-conversation-id",
|
|
905
|
+
"reflect": false
|
|
906
|
+
},
|
|
907
|
+
"allMessages": {
|
|
908
|
+
"type": "any",
|
|
909
|
+
"mutable": false,
|
|
910
|
+
"complexType": {
|
|
911
|
+
"original": "any",
|
|
912
|
+
"resolved": "any",
|
|
913
|
+
"references": {}
|
|
914
|
+
},
|
|
915
|
+
"required": false,
|
|
916
|
+
"optional": false,
|
|
917
|
+
"docs": {
|
|
918
|
+
"tags": [],
|
|
919
|
+
"text": ""
|
|
920
|
+
},
|
|
921
|
+
"attribute": "all-messages",
|
|
922
|
+
"reflect": false
|
|
923
|
+
},
|
|
924
|
+
"isConversationLoading": {
|
|
925
|
+
"type": "unknown",
|
|
926
|
+
"mutable": false,
|
|
927
|
+
"complexType": {
|
|
928
|
+
"original": "Boolean",
|
|
929
|
+
"resolved": "Boolean",
|
|
930
|
+
"references": {
|
|
931
|
+
"Boolean": {
|
|
932
|
+
"location": "global",
|
|
933
|
+
"id": "global::Boolean"
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
"required": false,
|
|
938
|
+
"optional": false,
|
|
939
|
+
"docs": {
|
|
940
|
+
"tags": [],
|
|
941
|
+
"text": ""
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
"hasMoreConversations": {
|
|
945
|
+
"type": "boolean",
|
|
946
|
+
"mutable": false,
|
|
947
|
+
"complexType": {
|
|
948
|
+
"original": "boolean",
|
|
949
|
+
"resolved": "boolean",
|
|
950
|
+
"references": {}
|
|
951
|
+
},
|
|
952
|
+
"required": false,
|
|
953
|
+
"optional": false,
|
|
954
|
+
"docs": {
|
|
955
|
+
"tags": [],
|
|
956
|
+
"text": ""
|
|
957
|
+
},
|
|
958
|
+
"attribute": "has-more-conversations",
|
|
959
|
+
"reflect": false
|
|
960
|
+
},
|
|
961
|
+
"unreadConversationsCount": {
|
|
962
|
+
"type": "number",
|
|
963
|
+
"mutable": false,
|
|
964
|
+
"complexType": {
|
|
965
|
+
"original": "number",
|
|
966
|
+
"resolved": "number",
|
|
967
|
+
"references": {}
|
|
968
|
+
},
|
|
969
|
+
"required": false,
|
|
970
|
+
"optional": false,
|
|
971
|
+
"docs": {
|
|
972
|
+
"tags": [],
|
|
973
|
+
"text": ""
|
|
974
|
+
},
|
|
975
|
+
"attribute": "unread-conversations-count",
|
|
976
|
+
"reflect": false
|
|
977
|
+
},
|
|
978
|
+
"conversationDetails": {
|
|
979
|
+
"type": "any",
|
|
980
|
+
"mutable": true,
|
|
981
|
+
"complexType": {
|
|
982
|
+
"original": "any",
|
|
983
|
+
"resolved": "any",
|
|
984
|
+
"references": {}
|
|
985
|
+
},
|
|
986
|
+
"required": false,
|
|
987
|
+
"optional": false,
|
|
988
|
+
"docs": {
|
|
989
|
+
"tags": [],
|
|
990
|
+
"text": ""
|
|
991
|
+
},
|
|
992
|
+
"attribute": "conversation-details",
|
|
993
|
+
"reflect": false
|
|
994
|
+
}
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
static get states() {
|
|
998
|
+
return {
|
|
999
|
+
"sortedConversationList": {},
|
|
1000
|
+
"numberOfConversations": {},
|
|
1001
|
+
"unreadCounts": {},
|
|
1002
|
+
"searchQuery": {},
|
|
1003
|
+
"selectedConversationID": {},
|
|
1004
|
+
"isLoading": {},
|
|
1005
|
+
"nonBlockedContacts": {},
|
|
1006
|
+
"skip": {},
|
|
1007
|
+
"isNoContactsFound": {},
|
|
1008
|
+
"isGroupChat": {},
|
|
1009
|
+
"selectedGroupUserIds": {},
|
|
1010
|
+
"groupInfo": {},
|
|
1011
|
+
"isGroupCreationLoading": {},
|
|
1012
|
+
"displayTitle": {},
|
|
1013
|
+
"searchTagName": {},
|
|
1014
|
+
"hasMoreMembers": {},
|
|
1015
|
+
"isLoadingMember": {},
|
|
1016
|
+
"isPaginationMember": {}
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
static get events() {
|
|
1020
|
+
return [{
|
|
1021
|
+
"method": "chatTileSelected",
|
|
1022
|
+
"name": "chatTileSelected",
|
|
1023
|
+
"bubbles": true,
|
|
1024
|
+
"cancelable": true,
|
|
1025
|
+
"composed": true,
|
|
1026
|
+
"docs": {
|
|
1027
|
+
"tags": [],
|
|
1028
|
+
"text": ""
|
|
1029
|
+
},
|
|
1030
|
+
"complexType": {
|
|
1031
|
+
"original": "any",
|
|
1032
|
+
"resolved": "any",
|
|
1033
|
+
"references": {}
|
|
1034
|
+
}
|
|
1035
|
+
}, {
|
|
1036
|
+
"method": "groupExited",
|
|
1037
|
+
"name": "groupExited",
|
|
1038
|
+
"bubbles": true,
|
|
1039
|
+
"cancelable": true,
|
|
1040
|
+
"composed": true,
|
|
1041
|
+
"docs": {
|
|
1042
|
+
"tags": [],
|
|
1043
|
+
"text": ""
|
|
1044
|
+
},
|
|
1045
|
+
"complexType": {
|
|
1046
|
+
"original": "any",
|
|
1047
|
+
"resolved": "any",
|
|
1048
|
+
"references": {}
|
|
1049
|
+
}
|
|
1050
|
+
}];
|
|
1051
|
+
}
|
|
1052
|
+
static get elementRef() { return "el"; }
|
|
1053
|
+
static get watchers() {
|
|
1054
|
+
return [{
|
|
1055
|
+
"propName": "conversationList",
|
|
1056
|
+
"methodName": "handleConversationListChange"
|
|
1057
|
+
}, {
|
|
1058
|
+
"propName": "conversationDetails",
|
|
1059
|
+
"methodName": "handleConversationDetailsChange"
|
|
1060
|
+
}];
|
|
1061
|
+
}
|
|
1062
|
+
static get listeners() {
|
|
1063
|
+
return [{
|
|
1064
|
+
"name": "group-contacts-input-changed",
|
|
1065
|
+
"method": "handleGroupContactsInputChange",
|
|
1066
|
+
"target": undefined,
|
|
1067
|
+
"capture": false,
|
|
1068
|
+
"passive": false
|
|
1069
|
+
}, {
|
|
1070
|
+
"name": "new-chat-input-changed",
|
|
1071
|
+
"method": "handleNewChatInputChange",
|
|
1072
|
+
"target": undefined,
|
|
1073
|
+
"capture": false,
|
|
1074
|
+
"passive": false
|
|
1075
|
+
}, {
|
|
1076
|
+
"name": "close-group-member-list",
|
|
1077
|
+
"method": "handleCloseGroupMemberList",
|
|
1078
|
+
"target": undefined,
|
|
1079
|
+
"capture": false,
|
|
1080
|
+
"passive": false
|
|
1081
|
+
}, {
|
|
1082
|
+
"name": "unreadMessageCountUpdated",
|
|
1083
|
+
"method": "handleUnreadMessageCountUpdate",
|
|
1084
|
+
"target": undefined,
|
|
1085
|
+
"capture": false,
|
|
1086
|
+
"passive": false
|
|
1087
|
+
}, {
|
|
1088
|
+
"name": "delete-conversation",
|
|
1089
|
+
"method": "handleDeleteConversation",
|
|
1090
|
+
"target": undefined,
|
|
1091
|
+
"capture": false,
|
|
1092
|
+
"passive": false
|
|
1093
|
+
}, {
|
|
1094
|
+
"name": "new-chat-contact-selected",
|
|
1095
|
+
"method": "handleNewChatContactSelected",
|
|
1096
|
+
"target": undefined,
|
|
1097
|
+
"capture": false,
|
|
1098
|
+
"passive": false
|
|
1099
|
+
}, {
|
|
1100
|
+
"name": "new-chat-clicked",
|
|
1101
|
+
"method": "handleNewChatClick",
|
|
1102
|
+
"target": undefined,
|
|
1103
|
+
"capture": false,
|
|
1104
|
+
"passive": false
|
|
1105
|
+
}, {
|
|
1106
|
+
"name": "new-chat-tile-list-scrolled-to-bottom",
|
|
1107
|
+
"method": "handleNewChatTileListScrolledToBottom",
|
|
1108
|
+
"target": undefined,
|
|
1109
|
+
"capture": false,
|
|
1110
|
+
"passive": false
|
|
1111
|
+
}, {
|
|
1112
|
+
"name": "group-contacts-scrolled-to-bottom",
|
|
1113
|
+
"method": "handleNewChatTileListScrolledToBottom",
|
|
1114
|
+
"target": undefined,
|
|
1115
|
+
"capture": false,
|
|
1116
|
+
"passive": false
|
|
1117
|
+
}, {
|
|
1118
|
+
"name": "create-group-clicked",
|
|
1119
|
+
"method": "handleCreateGroupClick",
|
|
1120
|
+
"target": undefined,
|
|
1121
|
+
"capture": false,
|
|
1122
|
+
"passive": false
|
|
1123
|
+
}, {
|
|
1124
|
+
"name": "create-groupcast-clicked",
|
|
1125
|
+
"method": "handleCreateGroupClick",
|
|
1126
|
+
"target": undefined,
|
|
1127
|
+
"capture": false,
|
|
1128
|
+
"passive": false
|
|
1129
|
+
}, {
|
|
1130
|
+
"name": "group-contacts-selected",
|
|
1131
|
+
"method": "handleGroupContactsSelected",
|
|
1132
|
+
"target": undefined,
|
|
1133
|
+
"capture": false,
|
|
1134
|
+
"passive": false
|
|
1135
|
+
}, {
|
|
1136
|
+
"name": "group-info-submitted",
|
|
1137
|
+
"method": "handleGroupInfoSubmitted",
|
|
1138
|
+
"target": undefined,
|
|
1139
|
+
"capture": false,
|
|
1140
|
+
"passive": false
|
|
1141
|
+
}, {
|
|
1142
|
+
"name": "create-group-submitted",
|
|
1143
|
+
"method": "handleGroupSubmitted",
|
|
1144
|
+
"target": undefined,
|
|
1145
|
+
"capture": false,
|
|
1146
|
+
"passive": false
|
|
1147
|
+
}, {
|
|
1148
|
+
"name": "create-group-cast-submitted",
|
|
1149
|
+
"method": "handleGroupSubmitted",
|
|
1150
|
+
"target": undefined,
|
|
1151
|
+
"capture": false,
|
|
1152
|
+
"passive": false
|
|
1153
|
+
}, {
|
|
1154
|
+
"name": "exit-group",
|
|
1155
|
+
"method": "handleExitGroup",
|
|
1156
|
+
"target": undefined,
|
|
1157
|
+
"capture": false,
|
|
1158
|
+
"passive": false
|
|
1159
|
+
}, {
|
|
1160
|
+
"name": "contact-action",
|
|
1161
|
+
"method": "handleContactAction",
|
|
1162
|
+
"target": "body",
|
|
1163
|
+
"capture": false,
|
|
1164
|
+
"passive": false
|
|
1165
|
+
}, {
|
|
1166
|
+
"name": "message-read-status-updated",
|
|
1167
|
+
"method": "handleMessageReadStatusUpdate",
|
|
1168
|
+
"target": undefined,
|
|
1169
|
+
"capture": false,
|
|
1170
|
+
"passive": false
|
|
1171
|
+
}];
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
export { ChatSidebar };
|
|
1175
|
+
//# sourceMappingURL=ChatSidebar.js.map
|