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,433 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
import { Text } from '../Text/Text';
|
|
3
|
+
import '../Time/Timestamp';
|
|
4
|
+
import '../ReadMark/BlueReadMark/BlueReadMark';
|
|
5
|
+
import '../ReadMark/ClockMark/ClockMark';
|
|
6
|
+
import '../ReadMark/DoubleMark/DoubleMark';
|
|
7
|
+
import '../ReadMark/SingleMark/SingleMark';
|
|
8
|
+
import '../MessageBubble/DocumentMessageBubble/DocumentMessageBubble';
|
|
9
|
+
import '../EmojiReactions/EmojiReactions.js';
|
|
10
|
+
import '../Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js';
|
|
11
|
+
|
|
12
|
+
import '../../../components/ChatUIComponent/ReactionContainer.tsx'
|
|
13
|
+
class ForwardMessageContainer extends LitElement {
|
|
14
|
+
static properties = {
|
|
15
|
+
bgColor: { type: String },
|
|
16
|
+
width: { type: String },
|
|
17
|
+
height: { type: String },
|
|
18
|
+
borderWidth: { type: String },
|
|
19
|
+
borderColor: { type: String },
|
|
20
|
+
color: { type: String },
|
|
21
|
+
fontSize: { type: String },
|
|
22
|
+
borderRadius: { type: String },
|
|
23
|
+
fontWeight: { type: String },
|
|
24
|
+
progressBarBg: { type: String },
|
|
25
|
+
progressBarHeight: { type: String },
|
|
26
|
+
progressBarColor: { type: String },
|
|
27
|
+
progressBarBorderRadius: { type: String },
|
|
28
|
+
messageBody: { type: String },
|
|
29
|
+
padding: { type: String },
|
|
30
|
+
isRead: { type: Boolean },
|
|
31
|
+
isDelivered: { type: Boolean },
|
|
32
|
+
time: { type: String },
|
|
33
|
+
messageBodyBg: { type: String },
|
|
34
|
+
messageAttachment: { type: Array },
|
|
35
|
+
isSelf: { type: Boolean },
|
|
36
|
+
messageId: { type: String },
|
|
37
|
+
reactions: { type: Object },
|
|
38
|
+
showConfirmationPopup: { type: Boolean },
|
|
39
|
+
selectedEmojiToRemove: { type: Object },
|
|
40
|
+
showAllReactionsPopup: {type: Boolean},
|
|
41
|
+
showReactionButton: {type: Boolean},
|
|
42
|
+
showEmojiReactions: {type: Boolean},
|
|
43
|
+
userMetaData: {type: Object},
|
|
44
|
+
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
49
|
+
this.bgColor = 'white';
|
|
50
|
+
this.width = '200px';
|
|
51
|
+
this.height = 'auto';
|
|
52
|
+
this.borderWidth = '1px';
|
|
53
|
+
this.borderColor = 'black';
|
|
54
|
+
this.color = 'black';
|
|
55
|
+
this.fontSize = '14px';
|
|
56
|
+
this.borderRadius = '5px';
|
|
57
|
+
this.fontWeight = 'normal';
|
|
58
|
+
this.progressBarBg = 'white';
|
|
59
|
+
this.progressBarHeight = '5px';
|
|
60
|
+
this.progressBarColor = 'yellow';
|
|
61
|
+
this.progressBarBorderRadius = '5px';
|
|
62
|
+
this.messageBody = 'Default message';
|
|
63
|
+
this.time = '1733124564435';
|
|
64
|
+
this.showReactionButton = false;
|
|
65
|
+
this.showEmojiReactions = false;
|
|
66
|
+
this.reactions = {};
|
|
67
|
+
this.showAllReactionsPopup = false;
|
|
68
|
+
this.showReactionButton = false;
|
|
69
|
+
this.showEmojiReactions = false;
|
|
70
|
+
this.reactions = {};
|
|
71
|
+
this.showAllReactionsPopup = false;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
static styles = css`
|
|
75
|
+
.forward-message-container {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
position: relative;
|
|
79
|
+
width: fit-content;
|
|
80
|
+
max-width: 72% !important;
|
|
81
|
+
align-self: center;
|
|
82
|
+
overflow-wrap: break-word;
|
|
83
|
+
min-width: 200px;
|
|
84
|
+
border-radius: 6px;
|
|
85
|
+
min-width: 100%;
|
|
86
|
+
padding: 0 0 10px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.forward-label {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
font-style: italic;
|
|
93
|
+
padding: 5px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.forward-label span {
|
|
97
|
+
font-style: italic;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.forward-message-body {
|
|
101
|
+
padding: 3px 15px;
|
|
102
|
+
margin: 0 6px;
|
|
103
|
+
border-radius: 6px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.forward-message-info {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
align-self: end;
|
|
110
|
+
padding: 2px 4px;
|
|
111
|
+
gap: 2px;
|
|
112
|
+
}
|
|
113
|
+
.emoji-slider {
|
|
114
|
+
position: absolute;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
emoji-reactions {
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: 15px;
|
|
120
|
+
z-index: 99;
|
|
121
|
+
left: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.reaction-button {
|
|
125
|
+
position: absolute;
|
|
126
|
+
top: 50%;
|
|
127
|
+
right: -25px;
|
|
128
|
+
transform: translateY(-50%);
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
z-index: 100;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.remaining-count {
|
|
134
|
+
background-color: var(--bg-primary-light);
|
|
135
|
+
font-size: 14px;
|
|
136
|
+
display: flex;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
color: var(--text-primary-color);
|
|
139
|
+
width: 25px;
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.reactions-display {
|
|
144
|
+
position: absolute;
|
|
145
|
+
bottom: -10px;
|
|
146
|
+
right: 10px;
|
|
147
|
+
display: grid;
|
|
148
|
+
grid-template-columns: repeat(3, auto);
|
|
149
|
+
gap: 0;
|
|
150
|
+
margin-top: 4px;
|
|
151
|
+
background-color: transparent;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.reaction-item {
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: 2px;
|
|
158
|
+
border-radius: 12px;
|
|
159
|
+
font-size: 20px;
|
|
160
|
+
background: var(--bg-secondary-color);
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
reaction-container {
|
|
165
|
+
display: block;
|
|
166
|
+
min-height: 150px;
|
|
167
|
+
max-height: fit-content;
|
|
168
|
+
min-width: 300px;
|
|
169
|
+
max-width: 400px;
|
|
170
|
+
position: absolute;
|
|
171
|
+
z-index: 100;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
`;
|
|
175
|
+
|
|
176
|
+
handleMouseEnter() {
|
|
177
|
+
// ponytail: reaction add icon hidden for now
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
handleReactionRemove(reaction) {
|
|
182
|
+
this.showConfirmationPopup = true;
|
|
183
|
+
this.selectedEmojiToRemove = reaction;
|
|
184
|
+
setTimeout(() => {
|
|
185
|
+
document.addEventListener('click', this.handleOutsideClick)
|
|
186
|
+
}, 100)
|
|
187
|
+
}
|
|
188
|
+
handleMouseLeave(e) {
|
|
189
|
+
const messageContainer = this.renderRoot.querySelector('.message-container');
|
|
190
|
+
const emojiReactions = this.renderRoot.querySelector('emoji-reactions');
|
|
191
|
+
const reactionButton = this.renderRoot.querySelector('.reaction-button');
|
|
192
|
+
|
|
193
|
+
const isEmojiSliderOpen = this.showEmojiReactions;
|
|
194
|
+
|
|
195
|
+
const isMovingToMessage = messageContainer?.contains(e.relatedTarget);
|
|
196
|
+
const isMovingToEmoji = emojiReactions && emojiReactions?.contains(e.relatedTarget);
|
|
197
|
+
const isMovingToReactionButton = reactionButton && reactionButton?.contains(e.relatedTarget);
|
|
198
|
+
|
|
199
|
+
if (!isMovingToMessage && !isMovingToEmoji && !isMovingToReactionButton) {
|
|
200
|
+
this.showReactionButton = false;
|
|
201
|
+
|
|
202
|
+
if (!isEmojiSliderOpen) {
|
|
203
|
+
this.showEmojiReactions = false;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
handleOutsideClick = (e) => {
|
|
209
|
+
const emojiReactions = this.renderRoot.querySelector('emoji-reactions');
|
|
210
|
+
const messageContainer = this.renderRoot.querySelector('.message-container');
|
|
211
|
+
const reactionContainer = this.renderRoot.querySelector('reaction-container');
|
|
212
|
+
|
|
213
|
+
const path = e.composedPath();
|
|
214
|
+
|
|
215
|
+
if ((this.showEmojiReactions &&
|
|
216
|
+
!path.includes(emojiReactions) &&
|
|
217
|
+
!path.includes(messageContainer)) ||
|
|
218
|
+
(this.showConfirmationPopup &&
|
|
219
|
+
!path.includes(reactionContainer) &&
|
|
220
|
+
!path.includes(messageContainer))
|
|
221
|
+
) {
|
|
222
|
+
this.showEmojiReactions = false;
|
|
223
|
+
this.showConfirmationPopup = false;
|
|
224
|
+
document.removeEventListener('click', this.handleOutsideClick);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
toggleEmojiReactions() {
|
|
228
|
+
this.showConfirmationPopup = false;
|
|
229
|
+
this.showEmojiReactions = !this.showEmojiReactions;
|
|
230
|
+
|
|
231
|
+
if (this.showEmojiReactions) {
|
|
232
|
+
setTimeout(() => {
|
|
233
|
+
document.addEventListener('click', this.handleOutsideClick);
|
|
234
|
+
}, 100);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
handleEmojiClick(emoji) {
|
|
238
|
+
const currentUserId = this.userMetaData?.userId;
|
|
239
|
+
const usersForEmoji = this.reactions[emoji.id] || [];
|
|
240
|
+
const hasReaction = usersForEmoji.includes(currentUserId);
|
|
241
|
+
|
|
242
|
+
let existingReactionEmojiId = null;
|
|
243
|
+
|
|
244
|
+
for (const [emojiId, userIds] of Object.entries(this.reactions)) {
|
|
245
|
+
if (userIds.includes(currentUserId)) {
|
|
246
|
+
existingReactionEmojiId = emojiId;
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (existingReactionEmojiId && existingReactionEmojiId !== emoji.id) {
|
|
252
|
+
this.dispatchEvent(
|
|
253
|
+
new CustomEvent('reaction-removed', {
|
|
254
|
+
detail: {
|
|
255
|
+
messageId: this.messageId,
|
|
256
|
+
emojiId: existingReactionEmojiId,
|
|
257
|
+
},
|
|
258
|
+
bubbles: true,
|
|
259
|
+
composed: true,
|
|
260
|
+
}),
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (hasReaction) {
|
|
265
|
+
this.dispatchEvent(
|
|
266
|
+
new CustomEvent('reaction-removed', {
|
|
267
|
+
detail: {
|
|
268
|
+
messageId: this.messageId,
|
|
269
|
+
emojiId: emoji.id,
|
|
270
|
+
},
|
|
271
|
+
bubbles: true,
|
|
272
|
+
composed: true,
|
|
273
|
+
}),
|
|
274
|
+
);
|
|
275
|
+
} else {
|
|
276
|
+
this.dispatchEvent(
|
|
277
|
+
new CustomEvent('reaction-added', {
|
|
278
|
+
detail: {
|
|
279
|
+
messageId: this.messageId,
|
|
280
|
+
emojiId: emoji.id,
|
|
281
|
+
},
|
|
282
|
+
bubbles: true,
|
|
283
|
+
composed: true,
|
|
284
|
+
}),
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
this.showEmojiReactions = false;
|
|
289
|
+
document.removeEventListener('click', this.handleOutsideClick);
|
|
290
|
+
}
|
|
291
|
+
handleConfirmRemove() {
|
|
292
|
+
if (this.selectedEmojiToRemove) {
|
|
293
|
+
this.dispatchEvent(
|
|
294
|
+
new CustomEvent('reaction-removed', {
|
|
295
|
+
detail: {
|
|
296
|
+
messageId: this.messageId,
|
|
297
|
+
emojiId: this.selectedEmojiToRemove.emojiId,
|
|
298
|
+
},
|
|
299
|
+
bubbles: true,
|
|
300
|
+
composed: true,
|
|
301
|
+
}),
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
this.closeConfirmationPopup();
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
closeConfirmationPopup() {
|
|
308
|
+
this.showConfirmationPopup = false;
|
|
309
|
+
this.selectedEmojiToRemove = null;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
render() {
|
|
314
|
+
const svgSize = parseInt(this.fontSize) - 2;
|
|
315
|
+
const emojiList = document.createElement('emoji-reactions').emojis;
|
|
316
|
+
const allReactions = Object.keys(this.reactions)
|
|
317
|
+
.map(reaction => {
|
|
318
|
+
const matchingEmoji = emojiList.find(emoji => emoji.id === reaction);
|
|
319
|
+
return {
|
|
320
|
+
emojiId: reaction,
|
|
321
|
+
messageId: this.reactions[reaction],
|
|
322
|
+
src: matchingEmoji?.src,
|
|
323
|
+
};
|
|
324
|
+
})
|
|
325
|
+
.filter(reaction => Array.isArray(reaction.messageId) && reaction.messageId.length > 0);
|
|
326
|
+
|
|
327
|
+
const visibleReactions = allReactions.slice(0, 2);
|
|
328
|
+
const remainingCount = allReactions.length > 2 ? allReactions.length - 2 : 0;
|
|
329
|
+
const mediaContent =
|
|
330
|
+
this.messageAttachment && this.messageAttachment.length > 0
|
|
331
|
+
? this.messageAttachment.map(attachment => {
|
|
332
|
+
if (attachment.mimeType.startsWith('image/')) {
|
|
333
|
+
return html`<img src="${attachment.mediaUrl}" alt="Image attachment" style="width: 250px; height: 220px; object-fit: cover;" />`;
|
|
334
|
+
} else if (attachment.mimeType.startsWith('video/')) {
|
|
335
|
+
return html`<video controls style="width: 250px; height: 220px; object-fit: cover;">
|
|
336
|
+
<source src="${attachment.mediaUrl}" type="${attachment.mimeType}" />
|
|
337
|
+
Your browser does not support the video tag.
|
|
338
|
+
</video>`;
|
|
339
|
+
} else if (attachment.mimeType.startsWith('application/')) {
|
|
340
|
+
return html`<document-message
|
|
341
|
+
docName="${attachment.fileName}"
|
|
342
|
+
href="${attachment.mediaUrl}"
|
|
343
|
+
fileName="${attachment.fileName}"
|
|
344
|
+
docType="${attachment.mimeType}"
|
|
345
|
+
textColor="${this.color}"
|
|
346
|
+
width="200px"
|
|
347
|
+
bgColor="var(--bg--message)"
|
|
348
|
+
></document-message>`;
|
|
349
|
+
}
|
|
350
|
+
return null;
|
|
351
|
+
})
|
|
352
|
+
: html`${Text({
|
|
353
|
+
content: this.messageBody,
|
|
354
|
+
color: this.color,
|
|
355
|
+
textAlign: 'left',
|
|
356
|
+
})}`;
|
|
357
|
+
|
|
358
|
+
return html`
|
|
359
|
+
<div
|
|
360
|
+
@mouseover="${() => this.handleMouseEnter()}"
|
|
361
|
+
@mouseout="${e => this.handleMouseLeave(e)}"
|
|
362
|
+
class="forward-message-container"
|
|
363
|
+
style="border: ${this.borderWidth} solid ${this.borderColor};
|
|
364
|
+
background-color: ${this.bgColor}
|
|
365
|
+
"
|
|
366
|
+
>
|
|
367
|
+
${!this.isSelf && this.showReactionButton
|
|
368
|
+
? html`
|
|
369
|
+
<div class="reaction-button" @click="${() => this.toggleEmojiReactions()}" ">
|
|
370
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="var(--text-primary-color)">
|
|
371
|
+
<path d="M612-516q25 0 42.5-17.5T672-576q0-25-17.5-42.5T612-636q-25 0-42.5 17.5T552-576q0 25 17.5 42.5T612-516Zm-264 0q25 0 42.5-17.5T408-576q0-25-17.5-42.5T348-636q-25 0-42.5 17.5T288-576q0 25 17.5 42.5T348-516Zm132 228q60 0 110.5-31t79.5-84H290q29 53 79.5 84T480-288Zm.28 192Q401-96 331-126t-122.5-82.5Q156-261 126-330.96t-30-149.5Q96-560 126-629.5q30-69.5 82.5-122T330.96-834q69.96-30 149.5-30t149.04 30q69.5 30 122 82.5T834-629.28q30 69.73 30 149Q864-401 834-331t-82.5 122.5Q699-156 629.28-126q-69.73 30-149 30ZM480-480Zm0 312q130 0 221-91t91-221q0-130-91-221t-221-91q-130 0-221 91t-91 221q0 130 91 221t221 91Z"/>
|
|
372
|
+
</svg>
|
|
373
|
+
</div>
|
|
374
|
+
`
|
|
375
|
+
: ''}
|
|
376
|
+
|
|
377
|
+
${this.showConfirmationPopup
|
|
378
|
+
? html`
|
|
379
|
+
<reaction-container .messageId=${this.messageId} .userMetaData=${this.userMetaData} .reactions=${allReactions}></reaction-container>
|
|
380
|
+
`
|
|
381
|
+
: ''}
|
|
382
|
+
${this.showEmojiReactions
|
|
383
|
+
? html`
|
|
384
|
+
<emoji-reactions .isOpen="${this.showEmojiReactions}" .onEmojiSelect="${emoji => this.handleEmojiClick(emoji)}" .selectedEmojis="${this.reactions}"></emoji-reactions>
|
|
385
|
+
`
|
|
386
|
+
: ''}
|
|
387
|
+
|
|
388
|
+
<div class="reactions-display">
|
|
389
|
+
${visibleReactions?.map(
|
|
390
|
+
reaction => html`
|
|
391
|
+
<span class="reaction-item" @click="${() => this.handleReactionRemove(reaction)}"> ${reaction.src ? html`<span>${reaction.src}</span>` : ''} </span>
|
|
392
|
+
`,
|
|
393
|
+
)}
|
|
394
|
+
${remainingCount > 0
|
|
395
|
+
? html`
|
|
396
|
+
<span @click="${() => this.handleReactionRemove(visibleReactions[0])}" class="reaction-item remaining-count" "> +${remainingCount} </span>
|
|
397
|
+
|
|
398
|
+
`
|
|
399
|
+
: ''}
|
|
400
|
+
</div>
|
|
401
|
+
<div class="forward-label">
|
|
402
|
+
<svg width="${svgSize}" height="${svgSize}" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
403
|
+
<mask id="mask0_1512_27751" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="25" height="25">
|
|
404
|
+
<rect x="0.15625" y="0.21582" width="24" height="24" fill="${this.color}" />
|
|
405
|
+
</mask>
|
|
406
|
+
<g mask="url(#mask0_1512_27751)">
|
|
407
|
+
<path
|
|
408
|
+
d="M19.5333 11.2156L15.4755 7.15783C15.3203 7.00266 15.2428 6.8245 15.2428 6.62333C15.2428 6.422 15.3203 6.24374 15.4755 6.08858C15.6307 5.94374 15.8105 5.87291 16.015 5.87608C16.2193 5.87941 16.3908 5.95024 16.5293 6.08858L21.0235 10.5828C21.1172 10.6765 21.1832 10.7752 21.2215 10.8791C21.26 10.9829 21.2792 11.0951 21.2792 11.2156C21.2792 11.3361 21.26 11.4482 21.2215 11.5521C21.1832 11.6559 21.1172 11.7547 21.0235 11.8483L16.5293 16.3426C16.3741 16.4976 16.1985 16.5726 16.0025 16.5676C15.8063 16.5624 15.6307 16.4874 15.4755 16.3426C15.3203 16.1874 15.2418 16.0102 15.24 15.8108C15.238 15.6115 15.3113 15.4374 15.46 15.2886L19.5333 11.2156ZM14.2255 11.9656H7.40625C6.50875 11.9656 5.74275 12.2829 5.10825 12.9176C4.47358 13.5521 4.15625 14.3181 4.15625 15.2156V17.9656C4.15625 18.1784 4.08442 18.3566 3.94075 18.5001C3.79725 18.6437 3.61908 18.7156 3.40625 18.7156C3.19342 18.7156 3.01525 18.6437 2.87175 18.5001C2.72808 18.3566 2.65625 18.1784 2.65625 17.9656V15.2156C2.65625 13.9027 3.11975 12.7829 4.04675 11.8561C4.97358 10.9291 6.09342 10.4656 7.40625 10.4656H14.2255L10.9178 7.15783C10.7628 7.00266 10.6853 6.8245 10.6853 6.62333C10.6853 6.422 10.7628 6.24374 10.9178 6.08858C11.0729 5.94374 11.2528 5.87291 11.4573 5.87608C11.6618 5.87941 11.8333 5.95024 11.9718 6.08858L16.4658 10.5828C16.5594 10.6765 16.6255 10.7752 16.664 10.8791C16.7025 10.9829 16.7218 11.0951 16.7218 11.2156C16.7218 11.3361 16.7025 11.4482 16.664 11.5521C16.6255 11.6559 16.5594 11.7547 16.4658 11.8483L11.9718 16.3426C11.8166 16.4976 11.6409 16.5726 11.4448 16.5676C11.2486 16.5624 11.0729 16.4874 10.9178 16.3426C10.7628 16.1874 10.6843 16.0102 10.6823 15.8108C10.6803 15.6115 10.7537 15.4374 10.9025 15.2886L14.2255 11.9656Z"
|
|
409
|
+
fill="${this.color}"
|
|
410
|
+
/>
|
|
411
|
+
</g>
|
|
412
|
+
</svg>
|
|
413
|
+
<span style="color: ${this.color};font-size: ${parseInt(this.fontSize) - 2}px">forwarded</span>
|
|
414
|
+
</div>
|
|
415
|
+
<div class="forward-message-body" style="font-size: ${this.fontSize}; background-color: ${this.messageBodyBg}">${mediaContent}</div>
|
|
416
|
+
<div class="forward-message-info">
|
|
417
|
+
<div><timestamp-element .color="${this.color}" .time="${this.time || new Date().toISOString()}"></timestamp-element></div>
|
|
418
|
+
${this.isSelf
|
|
419
|
+
? this.isRead == true
|
|
420
|
+
? html`<blue-read-mark svgFillColor="${this.color}"></blue-read-mark>`
|
|
421
|
+
: this.isDelivered == 'true'
|
|
422
|
+
? html`<double-mark svgFillColor="${this.color}"></double-mark>`
|
|
423
|
+
: this.isDelivered == 'pending'
|
|
424
|
+
? html`<clock-mark svgFillColor="${this.color}"></clock-mark>`
|
|
425
|
+
: html`<single-mark></single-mark>`
|
|
426
|
+
: null}
|
|
427
|
+
</div>
|
|
428
|
+
</div>
|
|
429
|
+
`;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
customElements.define('forward-message', ForwardMessageContainer);
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import "./ForwardMessageContainer";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Molecules/ForwardMessageContainer',
|
|
5
|
+
component: 'forward-message',
|
|
6
|
+
tags: ['autodocs'],
|
|
7
|
+
argTypes: {
|
|
8
|
+
bgColor: { control: 'color' },
|
|
9
|
+
width: { control: 'text' },
|
|
10
|
+
height: { control: 'text' },
|
|
11
|
+
borderWidth: { control: 'text' },
|
|
12
|
+
borderColor: { control: 'color' },
|
|
13
|
+
color: { control: 'color' },
|
|
14
|
+
fontSize: { control: 'text' },
|
|
15
|
+
borderRadius: { control: 'text' },
|
|
16
|
+
fontWeight: { control: 'select', options: ['normal', 'bold', 'bolder', 'lighter'] },
|
|
17
|
+
progressBarBg: { control: 'color' },
|
|
18
|
+
progressBarHeight: { control: 'text' },
|
|
19
|
+
progressBarColor: { control: 'color' },
|
|
20
|
+
progressBarBorderRadius: { control: 'text' },
|
|
21
|
+
messageBody: { control: 'text' },
|
|
22
|
+
padding: {control: "text"},
|
|
23
|
+
messageBodyBg: {control: "text"}
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const Default = {
|
|
28
|
+
args:{
|
|
29
|
+
bgColor:"wheat",
|
|
30
|
+
width:'200px',
|
|
31
|
+
height:'auto',
|
|
32
|
+
borderWidth:'1px',
|
|
33
|
+
borderColor:'black',
|
|
34
|
+
color:'black',
|
|
35
|
+
fontSize:'14px',
|
|
36
|
+
borderRadius:'5px',
|
|
37
|
+
fontWeight:'normal',
|
|
38
|
+
progressBarBg:"green",
|
|
39
|
+
progressBarHeight:'5px',
|
|
40
|
+
progressBarColor:'yellow',
|
|
41
|
+
progressBarBorderRadius:'5px',
|
|
42
|
+
messageBody:'Default message',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const SuccessNotification = {
|
|
47
|
+
args:{
|
|
48
|
+
bgColor:'#d4edda',
|
|
49
|
+
borderColor:'#c3e6cb',
|
|
50
|
+
color:'#155724',
|
|
51
|
+
messageBody:'Operation successful!',
|
|
52
|
+
progressBarColor:'#28a745',
|
|
53
|
+
progressBarBg:"green",
|
|
54
|
+
width:"200px",
|
|
55
|
+
messageBodyBg:"red"
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const ErrorNotification = {
|
|
60
|
+
args:{
|
|
61
|
+
bgColor:'#f8d7da',
|
|
62
|
+
borderColor:'#f5c6cb',
|
|
63
|
+
color:'#721c24',
|
|
64
|
+
messageBody:'An error occurred!',
|
|
65
|
+
progressBarColor:'#dc3545',
|
|
66
|
+
progressBarBg:"red",
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const WarningNotification = {
|
|
71
|
+
args:{
|
|
72
|
+
bgColor:'#fff3cd',
|
|
73
|
+
borderColor:'#ffeeba',
|
|
74
|
+
color:'#856404',
|
|
75
|
+
messageBody:'Warning: Check your input!',
|
|
76
|
+
progressBarColor:'#ffc107',
|
|
77
|
+
progressBarBg:"gold",
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export const InfoNotification = {
|
|
82
|
+
args:{
|
|
83
|
+
bgColor:'#d1ecf1',
|
|
84
|
+
borderColor:'#bee5eb',
|
|
85
|
+
color:'#0c5460',
|
|
86
|
+
messageBody:'Here is some information.',
|
|
87
|
+
progressBarColor:'#17a2b8',
|
|
88
|
+
progressBarBg:"blue",
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const CustomStyledNotification = {
|
|
93
|
+
args:{
|
|
94
|
+
bgColor:'#343a40',
|
|
95
|
+
borderColor:'#6c757d',
|
|
96
|
+
color:'#ffffff',
|
|
97
|
+
fontSize:'16px',
|
|
98
|
+
borderRadius:"1px",
|
|
99
|
+
fontWeight:"normal",
|
|
100
|
+
messageBody:'Custom styled notification!',
|
|
101
|
+
progressBarColor:'#007bff',
|
|
102
|
+
progressBarBg:"white",
|
|
103
|
+
progressBarBorderRadius:"0px",
|
|
104
|
+
padding:"10px"
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
import { Text } from '../Text/Text';
|
|
3
|
+
|
|
4
|
+
class ForwardMessage extends LitElement {
|
|
5
|
+
static properties = {
|
|
6
|
+
textColor: { type: String}
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.textColor = 'var(--text-incoming-time)'
|
|
12
|
+
}
|
|
13
|
+
static styles = css`
|
|
14
|
+
.forwardcontainer{
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
padding-bottom:5px;
|
|
18
|
+
}
|
|
19
|
+
`
|
|
20
|
+
render() {
|
|
21
|
+
return html`
|
|
22
|
+
<span class="forwardcontainer">
|
|
23
|
+
<svg width="12px" height="12px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
24
|
+
<path
|
|
25
|
+
d="M14.554 3.9974L19.2301 8.13188C21.0767 9.76455 22 10.5809 22 11.6325C22 12.6842 21.0767 13.5005 19.2301 15.1332L14.554 19.2677C13.7111 20.0129 13.2897 20.3856 12.9422 20.2303C12.5947 20.0751 12.5947 19.5143 12.5947 18.3925V15.6472C8.35683 15.6472 3.76579 17.6545 2 21C2 10.2943 8.27835 7.61792 12.5947 7.61792V4.87257C12.5947 3.75082 12.5947 3.18995 12.9422 3.03474C13.2897 2.87953 13.7111 3.25215 14.554 3.9974Z"
|
|
26
|
+
stroke=${this.textColor}
|
|
27
|
+
stroke-width="1.5"
|
|
28
|
+
stroke-linecap="round"
|
|
29
|
+
stroke-linejoin="round"
|
|
30
|
+
/>
|
|
31
|
+
</svg>
|
|
32
|
+
<span>
|
|
33
|
+
${Text({
|
|
34
|
+
content: 'Forwarded',
|
|
35
|
+
color: this.textColor,
|
|
36
|
+
fontSize: '12px',
|
|
37
|
+
textAlign: 'left',
|
|
38
|
+
fontStyle: 'italic',
|
|
39
|
+
fontWeight: '400',
|
|
40
|
+
width: '200px'
|
|
41
|
+
})}
|
|
42
|
+
</span>
|
|
43
|
+
</span> `;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
customElements.define('forward-ui', ForwardMessage);
|