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 @@
|
|
|
1
|
+
{"version":3,"file":"toast-helper.js","sourceRoot":"","sources":["../../../../src/stories/Components/Toaster/toast-helper.ts"],"names":[],"mappings":"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","sourcesContent":["// toast-helper.ts\n\ninterface ToastOptions {\n message: string;\n duration?: number;\n type?: 'success' | 'error' | 'warning' | 'info';\n position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';\n}\n\nclass ToastHelper {\n private static instance: ToastHelper;\n private container: HTMLDivElement;\n\n private constructor() {\n // Create container for toasts\n this.container = document.createElement('div');\n this.container.style.position = 'fixed';\n this.container.style.zIndex = '9999';\n document.body.appendChild(this.container);\n }\n\n public static getInstance(): ToastHelper {\n if (!ToastHelper.instance) {\n ToastHelper.instance = new ToastHelper();\n }\n return ToastHelper.instance;\n }\n\n private getTypeStyles(type: string = 'info'): { bgColor: string; progressBarColor: string } {\n const styles = {\n success: {\n bgColor: 'var(--text-success-color)',\n progressBarColor: 'var(--bg-primary-color)'\n },\n error: {\n bgColor: 'var(--text-danger-color)',\n progressBarColor: '#da190b'\n },\n warning: {\n bgColor: 'var(--text-warning-color)',\n progressBarColor: '#e68900'\n },\n info: {\n bgColor: 'var(--text-info-color)',\n progressBarColor: '#0b7dda'\n }\n };\n return styles[type] || styles.info;\n }\n\n private setPosition(position: string = 'top-right'): void {\n const positions = {\n 'top-right': { top: '20px', right: '20px', bottom: 'auto', left: 'auto' },\n 'top-left': { top: '20px', right: 'auto', bottom: 'auto', left: '20px' },\n 'bottom-right': { top: 'auto', right: '20px', bottom: '20px', left: 'auto' },\n 'bottom-left': { top: 'auto', right: 'auto', bottom: '20px', left: '20px' },\n 'top-center': { top: '20px', right: 'auto', bottom: 'auto', left: '50%', transform: 'translateX(-50%)' },\n 'bottom-center': { top: 'auto', right: 'auto', bottom: '20px', left: '50%', transform: 'translateX(-50%)' }\n };\n\n Object.assign(this.container.style, positions[position]);\n }\n\n public show(options: ToastOptions): void {\n const {\n message,\n duration = 3000,\n type = 'info',\n position = 'top-right'\n } = options;\n\n // Set container position\n this.setPosition(position);\n\n // Create toast element\n const toast = document.createElement('toast-notification');\n const styles = this.getTypeStyles(type);\n\n // Set toast properties\n toast.setAttribute('bgColor', styles.bgColor);\n toast.setAttribute('color', 'var(--bg-primary-color)');\n toast.setAttribute('progressBarColor', 'var(--bg-primary-color)');\n toast.setAttribute('toastMessage', message);\n toast.setAttribute('padding', '12px');\n toast.setAttribute('borderRadius', '5px');\n toast.setAttribute('width', '300px');\n toast.style.marginBottom = '10px';\n toast.style.display = 'block';\n\n // Add toast to container\n this.container.appendChild(toast);\n\n // Remove toast after duration\n setTimeout(() => {\n if (toast && toast.parentNode) {\n toast.parentNode.removeChild(toast);\n }\n }, duration);\n }\n}\n\n// Export the helper function\nexport const showToast = (options: ToastOptions): void => {\n ToastHelper.getInstance().show(options);\n};"]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { html } from 'lit';
|
|
4
|
+
import '../Head/Head';
|
|
5
|
+
// import '../Body/Body';
|
|
6
|
+
import '../Footer/Footer';
|
|
7
|
+
|
|
8
|
+
export const MainLayout = ({ head, footer }) => html`
|
|
9
|
+
<div>
|
|
10
|
+
<my-head
|
|
11
|
+
.image=${head}
|
|
12
|
+
.text=${head}
|
|
13
|
+
></my-head>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<my-footer
|
|
18
|
+
.value=${footer}
|
|
19
|
+
.placeholder=${footer}
|
|
20
|
+
.width=${footer}
|
|
21
|
+
.height=${footer}
|
|
22
|
+
.borderColor=${footer}
|
|
23
|
+
.borderRadius=${footer}
|
|
24
|
+
.backgroundColor=${footer}
|
|
25
|
+
.fontSize=${footer}
|
|
26
|
+
.padding=${footer}
|
|
27
|
+
.color=${footer}
|
|
28
|
+
.placeholderColor=${footer}
|
|
29
|
+
></my-footer>
|
|
30
|
+
</div>
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
{/* <div>
|
|
34
|
+
<my-head
|
|
35
|
+
.image=${head.image}
|
|
36
|
+
.text=${head.text}
|
|
37
|
+
></my-head>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
<my-footer
|
|
42
|
+
.value=${footer.value}
|
|
43
|
+
.placeholder=${footer.placeholder}
|
|
44
|
+
.width=${footer.width}
|
|
45
|
+
.height=${footer.height}
|
|
46
|
+
.borderColor=${footer.borderColor}
|
|
47
|
+
.borderRadius=${footer.borderRadius}
|
|
48
|
+
.backgroundColor=${footer.backgroundColor}
|
|
49
|
+
.fontSize=${footer.fontSize}
|
|
50
|
+
.padding=${footer.padding}
|
|
51
|
+
.color=${footer.color}
|
|
52
|
+
.placeholderColor=${footer.placeholderColor}
|
|
53
|
+
></my-footer>
|
|
54
|
+
</div> */}
|
|
55
|
+
|
|
56
|
+
// import { html } from 'lit';
|
|
57
|
+
// import '../Head/Head';
|
|
58
|
+
// // import '../Body/Body';
|
|
59
|
+
// import '../Footer/Footer';
|
|
60
|
+
|
|
61
|
+
// export const MainLayout = ({ head, body, footer }) => html`
|
|
62
|
+
// <div>
|
|
63
|
+
// <my-head
|
|
64
|
+
// .image=${head.image}
|
|
65
|
+
// .text=${head.text}
|
|
66
|
+
// ></my-head>
|
|
67
|
+
|
|
68
|
+
// <section class="body-section">
|
|
69
|
+
// ${body}
|
|
70
|
+
// </section>
|
|
71
|
+
|
|
72
|
+
// <my-footer
|
|
73
|
+
// .value=${footer.value}
|
|
74
|
+
// .placeholder=${footer.placeholder}
|
|
75
|
+
// .width=${footer.width}
|
|
76
|
+
// .height=${footer.height}
|
|
77
|
+
// .borderColor=${footer.borderColor}
|
|
78
|
+
// .borderRadius=${footer.borderRadius}
|
|
79
|
+
// .backgroundColor=${footer.backgroundColor}
|
|
80
|
+
// .fontSize=${footer.fontSize}
|
|
81
|
+
// .padding=${footer.padding}
|
|
82
|
+
// .color=${footer.color}
|
|
83
|
+
// .placeholderColor=${footer.placeholderColor}
|
|
84
|
+
// ></my-footer>
|
|
85
|
+
// </div>
|
|
86
|
+
// `;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
import { MainLayout } from './final';
|
|
4
|
+
import { Default as HeadDefault } from '../Head/Head.stories';
|
|
5
|
+
// import { Default as BodyDefault } from '../Body/Body.stories';
|
|
6
|
+
import { Default as FooterDefault } from '../Footer/Footer.stories';
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Component/MainLayout',
|
|
10
|
+
// component: MainLayout,
|
|
11
|
+
render: (args) => MainLayout(args),
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
argTypes: {
|
|
14
|
+
head: { control: 'object' },
|
|
15
|
+
// body: { control: 'text' },
|
|
16
|
+
footer: { control: 'object' },
|
|
17
|
+
},
|
|
18
|
+
args: {
|
|
19
|
+
head: HeadDefault.args,
|
|
20
|
+
// body: BodyDefault.args.body,
|
|
21
|
+
footer: FooterDefault.args,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const Default = {
|
|
26
|
+
args: {
|
|
27
|
+
// More on composing args: https://storybook.js.org/docs/writing-stories/args#args-composition
|
|
28
|
+
...HeadDefault.args,
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M15.7955 15.8111L21 21M18 10.5C18 14.6421 14.6421 18 10.5 18C6.35786 18 3 14.6421 3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5Z" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationDetailsTypes.js","sourceRoot":"","sources":["../../src/types/ConversationDetailsTypes.ts"],"names":[],"mappings":"","sourcesContent":["export interface ConversationDetails {\n adminCount: number;\n config: Config;\n conversationImageUrl: string | null;\n conversationTitle: string | null;\n conversationType: number;\n createdAt: number;\n createdBy: string;\n createdByUserImageUrl: string;\n createdByUserName: string;\n customType: string;\n hiddenForCreator: boolean;\n isGroup: boolean;\n lastMessageSentAt: number;\n lastReadAt: LastReadAt;\n membersCount: number;\n metaData: MetaData;\n opponentDetails: OpponentDetails;\n privateOneToOne: boolean;\n searchableTags: string[];\n updatedAt: number;\n usersOwnDetails: UsersOwnDetails;\n groupcastImageUrl: string | null;\n groupcastTitle: string | null;\n groupcastId: string;\n }\n \n interface Config {\n typingEvents: boolean;\n readEvents: boolean;\n pushNotifications: boolean;\n }\n \n interface LastReadAt {\n [key: string]: number; // keys are user IDs, values are timestamps\n }\n \n interface MetaData {\n [key: string]: any;\n }\n \n interface OpponentDetails {\n userProfileImageUrl: string;\n userName: string;\n userIdentifier: string;\n userId: string;\n online: boolean;\n [key: string]: any;\n }\n \n interface UsersOwnDetails {\n memberId: string;\n lastMessageSentAt: number;\n isDeleted: boolean;\n isAdmin: boolean;\n }\n "]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import ChatSDK from 'test-iso-chat-sdk'
|
|
2
|
+
const client = () => ChatSDK.getInstance();
|
|
3
|
+
|
|
4
|
+
// export const postMessage = async ({conversationId, deviceId, body}) => {
|
|
5
|
+
// try {
|
|
6
|
+
// const res = await client().message.postMessages({showInConversation:true, messageType:0, searchableTags:['hello','hi'],encrypted:false, conversationId:conversationId, deviceId:deviceId,body:body});
|
|
7
|
+
// } catch (error) {
|
|
8
|
+
// console.log(error, '');
|
|
9
|
+
// }
|
|
10
|
+
|
|
11
|
+
// };
|
|
12
|
+
export default client;
|
|
13
|
+
|
|
14
|
+
//66d7f52c4aaeb0002d3921e3 -- convoID
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const formatMessageDateFromTimestamp = (timestamp) => {
|
|
2
|
+
if (!timestamp) {
|
|
3
|
+
return '';
|
|
4
|
+
}
|
|
5
|
+
const messageDate = new Date(timestamp);
|
|
6
|
+
const today = new Date();
|
|
7
|
+
today.setHours(0, 0, 0, 0);
|
|
8
|
+
const yesterday = new Date(today);
|
|
9
|
+
yesterday.setDate(today.getDate() - 1);
|
|
10
|
+
const day = messageDate.getDate();
|
|
11
|
+
const month = messageDate.toLocaleString(undefined, { month: 'long' });
|
|
12
|
+
// Function to determine the ordinal suffix (st, nd, rd, th)
|
|
13
|
+
const getOrdinalSuffix = (day) => {
|
|
14
|
+
if (day > 3 && day < 21)
|
|
15
|
+
return 'th';
|
|
16
|
+
switch (day % 10) {
|
|
17
|
+
case 1: return 'st';
|
|
18
|
+
case 2: return 'nd';
|
|
19
|
+
case 3: return 'rd';
|
|
20
|
+
default: return 'th';
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const formattedDate = `${day}${getOrdinalSuffix(day)} ${month}`;
|
|
24
|
+
if (messageDate >= today) {
|
|
25
|
+
return 'Today';
|
|
26
|
+
}
|
|
27
|
+
else if (messageDate >= yesterday && messageDate < today) {
|
|
28
|
+
return 'Yesterday';
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return formattedDate;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=getFomattedDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFomattedDate.js","sourceRoot":"","sources":["../../src/utils/getFomattedDate.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,SAAiB,EAAE,EAAE;IAChE,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;IACzB,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3B,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;IAEvC,MAAM,GAAG,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC;IAClC,MAAM,KAAK,GAAG,WAAW,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAEvE,4DAA4D;IAC5D,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,EAAE;QACvC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,EAAE;YAAE,OAAO,IAAI,CAAC;QACrC,QAAQ,GAAG,GAAG,EAAE,EAAE,CAAC;YACjB,KAAK,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC;YACpB,KAAK,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC;YACpB,KAAK,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC;YACpB,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC;QACvB,CAAC;IACH,CAAC,CAAC;IACF,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,gBAAgB,CAAC,GAAG,CAAC,IAAI,KAAK,EAAE,CAAC;IAEhE,IAAI,WAAW,IAAI,KAAK,EAAE,CAAC;QACzB,OAAO,OAAO,CAAC;IACjB,CAAC;SAAM,IAAI,WAAW,IAAI,SAAS,IAAI,WAAW,GAAG,KAAK,EAAE,CAAC;QAC3D,OAAO,WAAW,CAAC;IACrB,CAAC;SAAM,CAAC;QACN,OAAO,aAAa,CAAC;IACvB,CAAC;AACH,CAAC,CAAC","sourcesContent":["export const formatMessageDateFromTimestamp = (timestamp: number) => {\n if (!timestamp) {\n return '';\n }\n \n const messageDate = new Date(timestamp);\n const today = new Date();\n today.setHours(0, 0, 0, 0);\n \n const yesterday = new Date(today);\n yesterday.setDate(today.getDate() - 1);\n\n const day = messageDate.getDate();\n const month = messageDate.toLocaleString(undefined, { month: 'long' });\n \n // Function to determine the ordinal suffix (st, nd, rd, th)\n const getOrdinalSuffix = (day: number) => {\n if (day > 3 && day < 21) return 'th';\n switch (day % 10) {\n case 1: return 'st';\n case 2: return 'nd';\n case 3: return 'rd';\n default: return 'th';\n }\n };\n const formattedDate = `${day}${getOrdinalSuffix(day)} ${month}`;\n \n if (messageDate >= today) {\n return 'Today';\n } else if (messageDate >= yesterday && messageDate < today) {\n return 'Yesterday';\n } else {\n return formattedDate; \n }\n };\n "]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function formatUnixTimestamp(unixTimestamp) {
|
|
2
|
+
const date = new Date(unixTimestamp);
|
|
3
|
+
|
|
4
|
+
const localDate = new Date(date.toLocaleString('en-US', { timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone }));
|
|
5
|
+
|
|
6
|
+
const today = new Date();
|
|
7
|
+
const isToday = localDate.getDate() === today.getDate() &&
|
|
8
|
+
localDate.getMonth() === today.getMonth() &&
|
|
9
|
+
localDate.getFullYear() === today.getFullYear();
|
|
10
|
+
|
|
11
|
+
const formatTime = (date) => {
|
|
12
|
+
let hours = date.getHours();
|
|
13
|
+
const minutes = date.getMinutes().toString().padStart(2, '0');
|
|
14
|
+
const ampm = hours >= 12 ? 'PM' : 'AM';
|
|
15
|
+
hours = hours % 12 || 12; // Convert to 12-hour format
|
|
16
|
+
const formattedHours = hours.toString().padStart(2, '0'); // Ensure 2-digit hour format
|
|
17
|
+
return `${formattedHours}:${minutes} ${ampm}`;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const formatDate = (date) => {
|
|
21
|
+
const day = date.getDate().toString().padStart(2, '0');
|
|
22
|
+
const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
23
|
+
const year = date.getFullYear();
|
|
24
|
+
return `${day}/${month}/${year}`;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return isToday ? formatTime(localDate) : formatDate(localDate);
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAc,EAAE,MAAe,EAAE,IAAa;IACnE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC","sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n"]}
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-fddf30b7.js';
|
|
2
|
+
import { h, k as ke, I as Image, i, M } from './Image-bb9efda3.js';
|
|
3
|
+
import { d as debounce, a as drawerDialogService, g as generateProfileImageByInitials } from './dialog-drawer-9fa083b1.js';
|
|
4
|
+
|
|
5
|
+
class BlockedUsers extends h {
|
|
6
|
+
static get properties() {
|
|
7
|
+
return {
|
|
8
|
+
blockedUsers: { type: Array },
|
|
9
|
+
isLoading: { type: Boolean },
|
|
10
|
+
paginationLoading: { type: Boolean },
|
|
11
|
+
hasMore: { type: Boolean },
|
|
12
|
+
handleUnblock: { type: Function },
|
|
13
|
+
goBack: { type: Function },
|
|
14
|
+
findBlokedUser: { type: Function },
|
|
15
|
+
skip: { type: Number },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.blockedUsers = [];
|
|
22
|
+
this.isLoading = false;
|
|
23
|
+
this.handleUnblock = () => {};
|
|
24
|
+
this.goBack = () => {};
|
|
25
|
+
this.searchTerm = '';
|
|
26
|
+
this.debouncedSearchHandler = debounce(query => {
|
|
27
|
+
this.findBlokedUser(query);
|
|
28
|
+
}, 500);
|
|
29
|
+
}
|
|
30
|
+
handleScroll(event) {
|
|
31
|
+
const element = event.target;
|
|
32
|
+
const threshold = 10;
|
|
33
|
+
if (element.scrollHeight - element.scrollTop <= element.clientHeight + threshold && this.hasMore && !this.paginationLoading) {
|
|
34
|
+
this.findBlokedUser(null, this.skip + 20);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
handleSearch(e) {
|
|
38
|
+
this.searchTerm = e.target.value;
|
|
39
|
+
this.debouncedSearchHandler(this.searchTerm);
|
|
40
|
+
}
|
|
41
|
+
unBlockUser(user){
|
|
42
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
43
|
+
title: `Unblock`,
|
|
44
|
+
description: `Are you sure you want to unblock ${user.userName} ?`,
|
|
45
|
+
handleConfirm:() => this.handleUnblock(user.userId)
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
return ke`
|
|
50
|
+
<div class="blocked-users-container">
|
|
51
|
+
<div class="header">
|
|
52
|
+
<button class="back-button" @click=${this.goBack}>
|
|
53
|
+
<svg
|
|
54
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
55
|
+
width="24"
|
|
56
|
+
height="24"
|
|
57
|
+
viewBox="0 0 24 24"
|
|
58
|
+
fill="none"
|
|
59
|
+
stroke="currentColor"
|
|
60
|
+
stroke-width="2"
|
|
61
|
+
stroke-linecap="round"
|
|
62
|
+
stroke-linejoin="round"
|
|
63
|
+
>
|
|
64
|
+
<line x1="19" y1="12" x2="5" y2="12"></line>
|
|
65
|
+
<polyline points="12 19 5 12 12 5"></polyline>
|
|
66
|
+
</svg>
|
|
67
|
+
</button>
|
|
68
|
+
<h2>Blocked Users</h2>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="search-container">
|
|
71
|
+
<div class="search-input-wrapper">
|
|
72
|
+
<svg
|
|
73
|
+
class="search-icon"
|
|
74
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
75
|
+
width="18"
|
|
76
|
+
height="18"
|
|
77
|
+
viewBox="0 0 24 24"
|
|
78
|
+
fill="none"
|
|
79
|
+
stroke="currentColor"
|
|
80
|
+
stroke-width="2"
|
|
81
|
+
stroke-linecap="round"
|
|
82
|
+
stroke-linejoin="round"
|
|
83
|
+
>
|
|
84
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
85
|
+
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
|
86
|
+
</svg>
|
|
87
|
+
<input type="text" class="search-input" placeholder="Search users..." .value=${this.searchTerm} @input=${this.handleSearch} />
|
|
88
|
+
${this.searchTerm
|
|
89
|
+
? ke`
|
|
90
|
+
<button
|
|
91
|
+
class="clear-search"
|
|
92
|
+
@click=${() => {
|
|
93
|
+
this.searchTerm = '';
|
|
94
|
+
this.shadowRoot.querySelector('.search-input').value = '';
|
|
95
|
+
this.findBlokedUser();
|
|
96
|
+
}}
|
|
97
|
+
>
|
|
98
|
+
<svg
|
|
99
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
100
|
+
width="18"
|
|
101
|
+
height="18"
|
|
102
|
+
viewBox="0 0 24 24"
|
|
103
|
+
fill="none"
|
|
104
|
+
stroke="currentColor"
|
|
105
|
+
stroke-width="2"
|
|
106
|
+
stroke-linecap="round"
|
|
107
|
+
stroke-linejoin="round"
|
|
108
|
+
>
|
|
109
|
+
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
110
|
+
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
111
|
+
</svg>
|
|
112
|
+
</button>
|
|
113
|
+
`
|
|
114
|
+
: ''}
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
${this.isLoading
|
|
119
|
+
? ke`
|
|
120
|
+
<div class="loading-spinner">
|
|
121
|
+
<spinner-loader
|
|
122
|
+
height="30px"
|
|
123
|
+
width="30px"
|
|
124
|
+
spinTime="1s"
|
|
125
|
+
spinnerPrimaryColor="var(--bg-primary-color)"
|
|
126
|
+
spinnerSecondaryColor="var(--text-primary-color)"
|
|
127
|
+
spinnerBorderWidth="2px"
|
|
128
|
+
>
|
|
129
|
+
</spinner-loader>
|
|
130
|
+
</div>
|
|
131
|
+
`
|
|
132
|
+
: this.blockedUsers?.length === 0
|
|
133
|
+
? ke`<div class="empty-state">${this.searchTerm ? `No users found matching "${this.searchTerm}".` : "You haven't blocked any users yet."}</div>`
|
|
134
|
+
: ke`
|
|
135
|
+
<div class="users-list" @scroll=${this.handleScroll}>
|
|
136
|
+
${this.blockedUsers?.map(
|
|
137
|
+
user => ke`
|
|
138
|
+
<div class="user-item">
|
|
139
|
+
<div class="user-info">
|
|
140
|
+
<div class="user-avatar">
|
|
141
|
+
${user.userProfileImageUrl
|
|
142
|
+
? ke`${Image({
|
|
143
|
+
src: user.userProfileImageUrl,
|
|
144
|
+
alt: `${user.userName}'s profile picture`,
|
|
145
|
+
width: '40px',
|
|
146
|
+
height: '40px',
|
|
147
|
+
objectFit: 'cover',
|
|
148
|
+
borderRadius: '50%',
|
|
149
|
+
placeholderImage: generateProfileImageByInitials(user.userName, 40, 40),
|
|
150
|
+
})}`
|
|
151
|
+
: ke`<div class="avatar-placeholder">${generateProfileImageByInitials(user.userName)}</div>`}
|
|
152
|
+
</div>
|
|
153
|
+
<div class="user-name">${user.userName}</div>
|
|
154
|
+
</div>
|
|
155
|
+
<button class="unblock-button" @click=${() => this.unBlockUser(user)}>Unblock</button>
|
|
156
|
+
</div>
|
|
157
|
+
`,
|
|
158
|
+
)}
|
|
159
|
+
${this.paginationLoading
|
|
160
|
+
? ke`
|
|
161
|
+
<div>
|
|
162
|
+
<spinner-loader
|
|
163
|
+
height="30px"
|
|
164
|
+
width="30px"
|
|
165
|
+
spinTime="1s"
|
|
166
|
+
spinnerPrimaryColor="var(--bg-primary-color)"
|
|
167
|
+
spinnerSecondaryColor="var(--text-primary-color)"
|
|
168
|
+
spinnerBorderWidth="2px"
|
|
169
|
+
>
|
|
170
|
+
</spinner-loader>
|
|
171
|
+
</div>
|
|
172
|
+
`
|
|
173
|
+
: null}
|
|
174
|
+
</div>
|
|
175
|
+
`}
|
|
176
|
+
</div>
|
|
177
|
+
`;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
static get styles() {
|
|
181
|
+
return i`
|
|
182
|
+
:host {
|
|
183
|
+
height: 96% !important;
|
|
184
|
+
}
|
|
185
|
+
.blocked-users-container {
|
|
186
|
+
padding: 5px;
|
|
187
|
+
height: 100%;
|
|
188
|
+
display: flex;
|
|
189
|
+
flex-direction: column;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.header {
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
padding: 10px 0;
|
|
196
|
+
margin-bottom: 20px;
|
|
197
|
+
border-bottom: 1px solid var(--bg-grey-color);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.back-button {
|
|
201
|
+
background: none;
|
|
202
|
+
border: none;
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
padding: 5px;
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
color: var(--text-outgoing-message);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
h2 {
|
|
211
|
+
margin: 0 0 0 10px;
|
|
212
|
+
font-size: 22px;
|
|
213
|
+
font-weight: 500;
|
|
214
|
+
color: var(--text-outgoing-message);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.loading-spinner {
|
|
218
|
+
display: flex;
|
|
219
|
+
justify-content: center;
|
|
220
|
+
align-items: center;
|
|
221
|
+
height: 100%;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.empty-state {
|
|
225
|
+
text-align: center;
|
|
226
|
+
padding: 40px 20px;
|
|
227
|
+
color: var(--text-secondary-color);
|
|
228
|
+
font-size: 16px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.users-list {
|
|
232
|
+
display: flex;
|
|
233
|
+
flex-direction: column;
|
|
234
|
+
gap: 12px;
|
|
235
|
+
height: calc(100vh - 100px);
|
|
236
|
+
overflow-y: auto;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.user-item {
|
|
240
|
+
display: flex;
|
|
241
|
+
justify-content: space-between;
|
|
242
|
+
align-items: center;
|
|
243
|
+
padding: 8px;
|
|
244
|
+
border-bottom: 1px solid var(--bg-grey-color);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.user-info {
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
gap: 12px;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.user-avatar {
|
|
254
|
+
width: 40px;
|
|
255
|
+
height: 40px;
|
|
256
|
+
border-radius: 50%;
|
|
257
|
+
overflow: hidden;
|
|
258
|
+
}
|
|
259
|
+
.search-container {
|
|
260
|
+
margin-bottom: 20px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.search-input-wrapper {
|
|
264
|
+
position: relative;
|
|
265
|
+
display: flex;
|
|
266
|
+
align-items: center;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.search-icon {
|
|
270
|
+
position: absolute;
|
|
271
|
+
left: 10px;
|
|
272
|
+
color: var(--text-secondary-color);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.search-input {
|
|
276
|
+
width: 100%;
|
|
277
|
+
padding: 10px 10px 10px 36px;
|
|
278
|
+
border-radius: 8px;
|
|
279
|
+
border: 1px solid var(--bg-grey-color);
|
|
280
|
+
background-color: var(--bg-grey-color);
|
|
281
|
+
color: var(--text-outgoing-message);
|
|
282
|
+
font-size: 14px;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.search-input:focus {
|
|
286
|
+
outline: none;
|
|
287
|
+
border-color: var(--bg-incoming-message);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.clear-search {
|
|
291
|
+
position: absolute;
|
|
292
|
+
right: 10px;
|
|
293
|
+
background: none;
|
|
294
|
+
border: none;
|
|
295
|
+
cursor: pointer;
|
|
296
|
+
color: var(--text-secondary-color);
|
|
297
|
+
display: flex;
|
|
298
|
+
align-items: center;
|
|
299
|
+
justify-content: center;
|
|
300
|
+
padding: 0;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.avatar-placeholder {
|
|
304
|
+
width: 100%;
|
|
305
|
+
height: 100%;
|
|
306
|
+
display: flex;
|
|
307
|
+
align-items: center;
|
|
308
|
+
justify-content: center;
|
|
309
|
+
background-color: var(--bg-incoming-message);
|
|
310
|
+
color: var(--text-incoming-message);
|
|
311
|
+
font-weight: 500;
|
|
312
|
+
font-size: 16px;
|
|
313
|
+
}
|
|
314
|
+
.user-name {
|
|
315
|
+
font-size: 16px;
|
|
316
|
+
color: var(--text-outgoing-message);
|
|
317
|
+
}
|
|
318
|
+
.unblock-button {
|
|
319
|
+
background-color: var(--base-color);
|
|
320
|
+
color: var(--text-outgoing-message);
|
|
321
|
+
border: none;
|
|
322
|
+
border-radius: 4px;
|
|
323
|
+
padding: 6px 12px;
|
|
324
|
+
font-size: 14px;
|
|
325
|
+
cursor: pointer;
|
|
326
|
+
transition: background-color 0.2s;
|
|
327
|
+
}
|
|
328
|
+
.unblock-button:hover {
|
|
329
|
+
background-color: var(--bg-incoming-message);
|
|
330
|
+
color: var(--text-incoming-message);
|
|
331
|
+
}
|
|
332
|
+
`;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
customElements.define('blocked-users-list', BlockedUsers);
|
|
337
|
+
|
|
338
|
+
const BlockChatList = class {
|
|
339
|
+
constructor(hostRef) {
|
|
340
|
+
registerInstance(this, hostRef);
|
|
341
|
+
this.findBlokedUser = async (searchTag, skip = 0) => {
|
|
342
|
+
var _a;
|
|
343
|
+
if (skip === 0) {
|
|
344
|
+
this.isLoading = true;
|
|
345
|
+
this.blockUsers = [];
|
|
346
|
+
}
|
|
347
|
+
if (skip >= 20) {
|
|
348
|
+
this.paginationLoading = true;
|
|
349
|
+
}
|
|
350
|
+
this.hasMore = true;
|
|
351
|
+
try {
|
|
352
|
+
let payload = {
|
|
353
|
+
limit: 20,
|
|
354
|
+
skip: skip,
|
|
355
|
+
};
|
|
356
|
+
if (searchTag) {
|
|
357
|
+
payload['searchTag'] = searchTag;
|
|
358
|
+
}
|
|
359
|
+
const findRes = await M.getInstance().user.getUserBlock(payload);
|
|
360
|
+
if (findRes === null || findRes === void 0 ? void 0 : findRes.users) {
|
|
361
|
+
if (skip === 0) {
|
|
362
|
+
this.blockUsers = [...findRes.users];
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
this.blockUsers = [...this.blockUsers, ...findRes.users];
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if (((_a = findRes === null || findRes === void 0 ? void 0 : findRes.users) === null || _a === void 0 ? void 0 : _a.length) < payload.limit) {
|
|
369
|
+
this.hasMore = false;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
catch (error) {
|
|
373
|
+
if ((error === null || error === void 0 ? void 0 : error.status) === 404 || (error === null || error === void 0 ? void 0 : error.statusCode) === 404) {
|
|
374
|
+
this.hasMore = false;
|
|
375
|
+
}
|
|
376
|
+
if (((error === null || error === void 0 ? void 0 : error.status) === 404 || (error === null || error === void 0 ? void 0 : error.statusCode) === 404) && searchTag != null) {
|
|
377
|
+
this.blockUsers = [];
|
|
378
|
+
}
|
|
379
|
+
console.error(error);
|
|
380
|
+
}
|
|
381
|
+
finally {
|
|
382
|
+
this.isLoading = false;
|
|
383
|
+
this.paginationLoading = false;
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
this.handleUnblockUser = async (conversationId) => {
|
|
387
|
+
var _a;
|
|
388
|
+
this.isLoading = true;
|
|
389
|
+
try {
|
|
390
|
+
await M.getInstance().user.postUserUnblock({
|
|
391
|
+
opponentId: conversationId,
|
|
392
|
+
});
|
|
393
|
+
this.blockUsers = (_a = this.blockUsers) === null || _a === void 0 ? void 0 : _a.filter((user) => user.userId !== conversationId);
|
|
394
|
+
}
|
|
395
|
+
catch (error) {
|
|
396
|
+
console.error(`Failed to unblock user with ID ${conversationId}:`, error);
|
|
397
|
+
}
|
|
398
|
+
finally {
|
|
399
|
+
this.isLoading = false;
|
|
400
|
+
drawerDialogService.closeDialog('confirm-dialog');
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
this.goBack = undefined;
|
|
404
|
+
this.blockUsers = [];
|
|
405
|
+
this.isLoading = false;
|
|
406
|
+
this.skip = 0;
|
|
407
|
+
this.hasMore = false;
|
|
408
|
+
this.paginationLoading = false;
|
|
409
|
+
}
|
|
410
|
+
async componentWillLoad() {
|
|
411
|
+
await this.findBlokedUser();
|
|
412
|
+
}
|
|
413
|
+
render() {
|
|
414
|
+
return (h$1("blocked-users-list", { key: '2ba93236b2c8d8fd9558605eeaba80970abe1d25', blockedUsers: this.blockUsers, isLoading: this.isLoading, handleUnblock: this.handleUnblockUser, goBack: () => this.goBack(), findBlokedUser: this.findBlokedUser, skip: this.skip, hasMore: this.hasMore, paginationLoading: this.paginationLoading }));
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
BlockChatList.style = ":host{\n height:96%;\n }";
|
|
418
|
+
|
|
419
|
+
export { BlockChatList as B };
|
|
420
|
+
|
|
421
|
+
//# sourceMappingURL=BlockChatList-9fc3a42b.js.map
|