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
package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.js
ADDED
|
@@ -0,0 +1,708 @@
|
|
|
1
|
+
import { css, html, LitElement } from 'lit';
|
|
2
|
+
import { Image } from '../../Image/Image';
|
|
3
|
+
import '../../Inputbox/Input';
|
|
4
|
+
import '../CameraPreview';
|
|
5
|
+
import '../../../Components/TestFooter/MentionUserList';
|
|
6
|
+
import imagePlaceholder from '../../../../assets/images/imagePlaceholder.svg';
|
|
7
|
+
import videoPlaceholder from '../../../../assets/images/videoThumbnail.svg';
|
|
8
|
+
|
|
9
|
+
export class AttachmentPreview extends LitElement {
|
|
10
|
+
static properties = {
|
|
11
|
+
content: { type: Array },
|
|
12
|
+
contentType: { type: Array },
|
|
13
|
+
selectedIndex: { type: Number },
|
|
14
|
+
caption: { type: String },
|
|
15
|
+
onClose: { type: Function },
|
|
16
|
+
onSend: { type: Function },
|
|
17
|
+
inputValue: { type: String },
|
|
18
|
+
inputBorderColor: { type: String },
|
|
19
|
+
inputBorderWidth: { type: String },
|
|
20
|
+
inputBorderStyle: { type: String },
|
|
21
|
+
inputPlaceholder: { type: String },
|
|
22
|
+
inputBgColor: { type: String },
|
|
23
|
+
inputFontSize: { type: String },
|
|
24
|
+
inputFontColor: { type: String },
|
|
25
|
+
inputBorderRadius: { type: String },
|
|
26
|
+
inputContainerBorderColor: { type: String },
|
|
27
|
+
inputContainerBorderWidth: { type: String },
|
|
28
|
+
inputContainerBorderRadius: { type: String },
|
|
29
|
+
inputPlaceholderColor: { type: String },
|
|
30
|
+
inputContainerPadding: { type: String },
|
|
31
|
+
showCloseIcon: { type: String },
|
|
32
|
+
sendButtonIconHeight: { type: String },
|
|
33
|
+
sendButtonIconWidth: { type: String },
|
|
34
|
+
conversationDetails: { type: Object },
|
|
35
|
+
showMentionList: { type: Boolean },
|
|
36
|
+
mentionSearchQuery: { type: String },
|
|
37
|
+
cursorPosition: { type: Number },
|
|
38
|
+
userMetaData: { type: Object },
|
|
39
|
+
showCamera: { type: Boolean },
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
constructor() {
|
|
43
|
+
super();
|
|
44
|
+
this.content = [];
|
|
45
|
+
this.selectedIndex = 0;
|
|
46
|
+
this.caption = '';
|
|
47
|
+
this.inputValue = '';
|
|
48
|
+
this.showCamera = false;
|
|
49
|
+
this.showMentionList = false;
|
|
50
|
+
this.mentionSearchQuery = '';
|
|
51
|
+
this.cursorPosition = 0;
|
|
52
|
+
this.sendButtonIconHeight = '48px';
|
|
53
|
+
this.sendButtonIconWidth = '48px';
|
|
54
|
+
this.sendButtonIconRadius = '50%';
|
|
55
|
+
this.imagePlaceholder = imagePlaceholder;
|
|
56
|
+
this.videoPlaceholder = videoPlaceholder;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static styles = css`
|
|
60
|
+
:host {
|
|
61
|
+
display: block;
|
|
62
|
+
background-color: var(--bg-primary-color);
|
|
63
|
+
color: var(--text-primary-color);
|
|
64
|
+
height: calc(100dvh - 75px);
|
|
65
|
+
width: 100%;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.preview-container {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
height: 100%;
|
|
73
|
+
padding: 12px 12px 10px;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
gap: 10px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.toolbar {
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: space-between;
|
|
81
|
+
align-items: center;
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.toolbar-title {
|
|
86
|
+
font-size: 0.9375rem;
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
color: var(--text-primary-color);
|
|
89
|
+
margin: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.tool-btn {
|
|
93
|
+
background: color-mix(in srgb, var(--text-primary-color) 8%, transparent);
|
|
94
|
+
border: none;
|
|
95
|
+
color: var(--text-primary-color);
|
|
96
|
+
width: 36px;
|
|
97
|
+
height: 36px;
|
|
98
|
+
border-radius: 10px;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
display: grid;
|
|
101
|
+
place-items: center;
|
|
102
|
+
font-size: 16px;
|
|
103
|
+
transition: background-color 0.15s ease, transform 0.1s ease;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.tool-btn:hover {
|
|
107
|
+
background: color-mix(in srgb, var(--text-primary-color) 14%, transparent);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.tool-btn:active {
|
|
111
|
+
transform: scale(0.96);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.preview-area {
|
|
115
|
+
flex: 1;
|
|
116
|
+
min-height: 0;
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
position: relative;
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
border-radius: 14px;
|
|
124
|
+
background:
|
|
125
|
+
radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--base-color, var(--primary)) 8%, transparent), transparent 42%),
|
|
126
|
+
color-mix(in srgb, var(--bg-secondary-color, #f5f5f5) 80%, transparent);
|
|
127
|
+
border: 1px solid var(--border-subtle, color-mix(in srgb, var(--text-primary-color) 8%, transparent));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.preview-image,
|
|
131
|
+
.preview-video {
|
|
132
|
+
max-width: calc(100% - 24px);
|
|
133
|
+
max-height: calc(100% - 24px);
|
|
134
|
+
width: auto;
|
|
135
|
+
height: auto !important;
|
|
136
|
+
object-fit: contain;
|
|
137
|
+
border-radius: 8px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.preview-video {
|
|
141
|
+
width: min(100%, 720px);
|
|
142
|
+
background: #000;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.doc-card {
|
|
146
|
+
width: min(100%, 360px);
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
align-items: center;
|
|
150
|
+
gap: 14px;
|
|
151
|
+
padding: 28px 24px;
|
|
152
|
+
border-radius: 16px;
|
|
153
|
+
background: var(--bg-primary-color);
|
|
154
|
+
border: 1px solid var(--border-subtle, color-mix(in srgb, var(--text-primary-color) 10%, transparent));
|
|
155
|
+
box-shadow: 0 10px 30px color-mix(in srgb, #000 8%, transparent);
|
|
156
|
+
text-align: center;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.doc-icon-wrap {
|
|
160
|
+
width: 72px;
|
|
161
|
+
height: 72px;
|
|
162
|
+
border-radius: 16px;
|
|
163
|
+
display: grid;
|
|
164
|
+
place-items: center;
|
|
165
|
+
background: color-mix(in srgb, var(--base-color, var(--primary)) 10%, transparent);
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
color: var(--base-color, var(--primary));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.doc-icon-wrap img,
|
|
171
|
+
.doc-icon-wrap svg {
|
|
172
|
+
width: 36px;
|
|
173
|
+
height: 36px;
|
|
174
|
+
object-fit: contain;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.thumbnail.is-doc {
|
|
178
|
+
color: var(--base-color, var(--primary));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.thumbnail.is-doc svg {
|
|
182
|
+
width: 22px;
|
|
183
|
+
height: 22px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.doc-type {
|
|
187
|
+
font-size: 0.6875rem;
|
|
188
|
+
font-weight: 700;
|
|
189
|
+
letter-spacing: 0.04em;
|
|
190
|
+
text-transform: uppercase;
|
|
191
|
+
color: var(--base-color, var(--primary));
|
|
192
|
+
margin: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.doc-name {
|
|
196
|
+
margin: 0;
|
|
197
|
+
font-size: 0.9375rem;
|
|
198
|
+
font-weight: 600;
|
|
199
|
+
color: var(--text-primary-color);
|
|
200
|
+
word-break: break-word;
|
|
201
|
+
line-height: 1.35;
|
|
202
|
+
max-width: 100%;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.doc-meta {
|
|
206
|
+
margin: 0;
|
|
207
|
+
font-size: 0.75rem;
|
|
208
|
+
color: var(--text-secondary-color);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.loading-state,
|
|
212
|
+
.empty-state {
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
align-items: center;
|
|
216
|
+
gap: 10px;
|
|
217
|
+
color: var(--text-secondary-color);
|
|
218
|
+
font-size: 0.875rem;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.loading-pulse {
|
|
222
|
+
width: 56px;
|
|
223
|
+
height: 56px;
|
|
224
|
+
border-radius: 14px;
|
|
225
|
+
background: color-mix(in srgb, var(--text-secondary-color) 14%, transparent);
|
|
226
|
+
animation: pulse 1.1s ease-in-out infinite;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@keyframes pulse {
|
|
230
|
+
0%,
|
|
231
|
+
100% {
|
|
232
|
+
opacity: 0.55;
|
|
233
|
+
}
|
|
234
|
+
50% {
|
|
235
|
+
opacity: 1;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@media (prefers-reduced-motion: reduce) {
|
|
240
|
+
.loading-pulse {
|
|
241
|
+
animation: none;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.caption-container {
|
|
246
|
+
margin: 0 8px;
|
|
247
|
+
background-color: transparent;
|
|
248
|
+
border-radius: 12px;
|
|
249
|
+
position: relative;
|
|
250
|
+
flex-shrink: 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.caption-container my-input {
|
|
254
|
+
display: block;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.send-btn {
|
|
258
|
+
width: 48px;
|
|
259
|
+
height: 48px;
|
|
260
|
+
border: none;
|
|
261
|
+
border-radius: 50%;
|
|
262
|
+
background-color: var(--success, #0070f3);
|
|
263
|
+
color: #ffffff;
|
|
264
|
+
display: flex;
|
|
265
|
+
align-items: center;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
padding: 0;
|
|
269
|
+
flex-shrink: 0;
|
|
270
|
+
transition: transform 0.12s ease, filter 0.15s ease, opacity 0.15s ease;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.send-btn:hover {
|
|
274
|
+
filter: brightness(1.08);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.send-btn:active {
|
|
278
|
+
transform: scale(0.96);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.send-btn:disabled {
|
|
282
|
+
opacity: 0.45;
|
|
283
|
+
cursor: not-allowed;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.send-btn svg {
|
|
287
|
+
stroke: currentColor;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.thumbnail-strip {
|
|
291
|
+
display: flex;
|
|
292
|
+
align-items: center;
|
|
293
|
+
gap: 10px;
|
|
294
|
+
padding: 8px 4px 2px;
|
|
295
|
+
flex-shrink: 0;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.thumbnails {
|
|
299
|
+
display: flex;
|
|
300
|
+
gap: 8px;
|
|
301
|
+
align-items: center;
|
|
302
|
+
flex: 1;
|
|
303
|
+
overflow-x: auto;
|
|
304
|
+
padding: 2px;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.thumbnail {
|
|
308
|
+
width: 52px;
|
|
309
|
+
height: 52px;
|
|
310
|
+
border-radius: 10px;
|
|
311
|
+
overflow: hidden;
|
|
312
|
+
cursor: pointer;
|
|
313
|
+
opacity: 0.72;
|
|
314
|
+
transition: opacity 0.15s ease, transform 0.12s ease;
|
|
315
|
+
border: 2px solid transparent;
|
|
316
|
+
background: color-mix(in srgb, var(--bg-secondary-color, #f5f5f5) 90%, transparent);
|
|
317
|
+
flex-shrink: 0;
|
|
318
|
+
display: grid;
|
|
319
|
+
place-items: center;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.thumbnail:hover {
|
|
323
|
+
opacity: 0.9;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.thumbnail.selected {
|
|
327
|
+
opacity: 1;
|
|
328
|
+
border-color: var(--base-color);
|
|
329
|
+
transform: translateY(-1px);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.thumbnail img {
|
|
333
|
+
width: 100%;
|
|
334
|
+
height: 100%;
|
|
335
|
+
object-fit: cover;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.thumbnail.is-doc img {
|
|
339
|
+
width: 28px;
|
|
340
|
+
height: 28px;
|
|
341
|
+
object-fit: contain;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.add-media-btn {
|
|
345
|
+
display: none;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@media (max-width: 768px) {
|
|
349
|
+
.caption-container {
|
|
350
|
+
margin: 0;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.preview-container {
|
|
354
|
+
padding: 10px;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
`;
|
|
358
|
+
|
|
359
|
+
handleThumbnailClick(index) {
|
|
360
|
+
this.selectedIndex = index;
|
|
361
|
+
this.dispatchEvent(
|
|
362
|
+
new CustomEvent('thumbnailSelect', {
|
|
363
|
+
detail: { index },
|
|
364
|
+
})
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
handleCameraCapture(captureData) {
|
|
369
|
+
const { file, type } = captureData;
|
|
370
|
+
this.showCamera = false;
|
|
371
|
+
this.dispatchEvent(
|
|
372
|
+
new CustomEvent('file-uploaded', {
|
|
373
|
+
detail: {
|
|
374
|
+
files: [file],
|
|
375
|
+
fileTypes: [type],
|
|
376
|
+
totalFiles: 1,
|
|
377
|
+
},
|
|
378
|
+
bubbles: true,
|
|
379
|
+
composed: true,
|
|
380
|
+
})
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
getPlaceholder(type = '') {
|
|
385
|
+
const t = String(type).toLowerCase();
|
|
386
|
+
if (t === 'image' || t.startsWith('image/')) return this.imagePlaceholder;
|
|
387
|
+
if (t === 'video' || t.startsWith('video/')) return this.videoPlaceholder;
|
|
388
|
+
return null;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
renderFileIcon() {
|
|
392
|
+
return html`
|
|
393
|
+
<svg viewBox="0 0 24 24" width="36" height="36" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
394
|
+
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
395
|
+
<polyline points="14 2 14 8 20 8"></polyline>
|
|
396
|
+
<line x1="8" y1="13" x2="16" y2="13"></line>
|
|
397
|
+
<line x1="8" y1="17" x2="14" y2="17"></line>
|
|
398
|
+
</svg>
|
|
399
|
+
`;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
getFileExtension(file) {
|
|
403
|
+
const name = file?.name || '';
|
|
404
|
+
const parts = name.split('.');
|
|
405
|
+
if (parts.length > 1) return parts.pop().toUpperCase();
|
|
406
|
+
const mime = file?.type || '';
|
|
407
|
+
if (mime.includes('pdf')) return 'PDF';
|
|
408
|
+
if (mime.startsWith('image/')) return 'IMG';
|
|
409
|
+
if (mime.startsWith('video/')) return 'VIDEO';
|
|
410
|
+
if (mime.startsWith('audio/')) return 'AUDIO';
|
|
411
|
+
return 'FILE';
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
formatFileSize(bytes) {
|
|
415
|
+
if (!bytes && bytes !== 0) return '';
|
|
416
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
417
|
+
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
418
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
renderToolbar() {
|
|
422
|
+
const count = this.content?.length || 0;
|
|
423
|
+
return html`
|
|
424
|
+
<div class="toolbar">
|
|
425
|
+
<button class="tool-btn" @click="${this.onClose}" aria-label="Close preview" title="Close">✕</button>
|
|
426
|
+
<h2 class="toolbar-title">${count > 1 ? `${count} files` : 'Preview'}</h2>
|
|
427
|
+
<span style="width:36px"></span>
|
|
428
|
+
</div>
|
|
429
|
+
`;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
renderPreviewArea() {
|
|
433
|
+
if (!this.content?.length) {
|
|
434
|
+
return html`
|
|
435
|
+
<div class="preview-area">
|
|
436
|
+
<div class="loading-state">
|
|
437
|
+
<div class="loading-pulse" aria-hidden="true"></div>
|
|
438
|
+
<span>Preparing preview…</span>
|
|
439
|
+
</div>
|
|
440
|
+
</div>
|
|
441
|
+
`;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
const safeIndex = Math.min(this.selectedIndex, this.content.length - 1);
|
|
445
|
+
const currentContent = this.content[safeIndex];
|
|
446
|
+
const type = currentContent?.type;
|
|
447
|
+
|
|
448
|
+
if (type === 'image') {
|
|
449
|
+
return html`
|
|
450
|
+
<div class="preview-area">
|
|
451
|
+
${Image({
|
|
452
|
+
src: currentContent?.src || this.imagePlaceholder,
|
|
453
|
+
alt: currentContent?.file?.name || 'Image preview',
|
|
454
|
+
className: 'preview-image',
|
|
455
|
+
placeholderImage: this.imagePlaceholder,
|
|
456
|
+
objectFit: 'contain',
|
|
457
|
+
})}
|
|
458
|
+
</div>
|
|
459
|
+
`;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
if (type === 'video') {
|
|
463
|
+
return html`
|
|
464
|
+
<div class="preview-area">
|
|
465
|
+
<video src="${currentContent?.src}" controls class="preview-video" playsinline></video>
|
|
466
|
+
</div>
|
|
467
|
+
`;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
const mime = currentContent?.file?.type || type || '';
|
|
471
|
+
const placeholder = this.getPlaceholder(mime);
|
|
472
|
+
const ext = this.getFileExtension(currentContent?.file);
|
|
473
|
+
const sizeLabel = this.formatFileSize(currentContent?.file?.size);
|
|
474
|
+
|
|
475
|
+
return html`
|
|
476
|
+
<div class="preview-area">
|
|
477
|
+
<div class="doc-card">
|
|
478
|
+
<div class="doc-icon-wrap">
|
|
479
|
+
${placeholder
|
|
480
|
+
? Image({
|
|
481
|
+
src: placeholder,
|
|
482
|
+
alt: ext,
|
|
483
|
+
width: '44px',
|
|
484
|
+
height: '44px',
|
|
485
|
+
objectFit: 'contain',
|
|
486
|
+
placeholderImage: this.imagePlaceholder,
|
|
487
|
+
})
|
|
488
|
+
: this.renderFileIcon()}
|
|
489
|
+
</div>
|
|
490
|
+
<p class="doc-type">${ext}</p>
|
|
491
|
+
<p class="doc-name">${currentContent?.file?.name || 'File'}</p>
|
|
492
|
+
${sizeLabel ? html`<p class="doc-meta">${sizeLabel}</p>` : null}
|
|
493
|
+
</div>
|
|
494
|
+
</div>
|
|
495
|
+
`;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
handleInputChange(event) {
|
|
499
|
+
const newValue = event.target.value;
|
|
500
|
+
const inputElement = this.shadowRoot.querySelector('my-input');
|
|
501
|
+
const textArea = inputElement?.shadowRoot?.querySelector('textarea');
|
|
502
|
+
if (textArea) {
|
|
503
|
+
this.cursorPosition = textArea.selectionStart;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
this.checkForMentionTrigger(newValue);
|
|
507
|
+
this.inputValue = newValue;
|
|
508
|
+
this.lastInputValue = newValue;
|
|
509
|
+
this.dispatchMentionEvent(newValue);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
dispatchMentionEvent(text) {
|
|
513
|
+
const mentionedUsers = this.extractMentions(text, this.conversationDetails?.members || []);
|
|
514
|
+
this.dispatchEvent(
|
|
515
|
+
new CustomEvent('mention-user', {
|
|
516
|
+
detail: {
|
|
517
|
+
value: text,
|
|
518
|
+
mentionUsersList: mentionedUsers,
|
|
519
|
+
},
|
|
520
|
+
bubbles: true,
|
|
521
|
+
composed: true,
|
|
522
|
+
})
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
checkForMentionTrigger(value) {
|
|
527
|
+
const textBeforeCursor = value.substring(0, this.cursorPosition);
|
|
528
|
+
const lastAtIndex = textBeforeCursor.lastIndexOf('@');
|
|
529
|
+
|
|
530
|
+
if (lastAtIndex !== -1) {
|
|
531
|
+
const textAfterAt = textBeforeCursor.substring(lastAtIndex + 1);
|
|
532
|
+
const nextChar = value.charAt(lastAtIndex + 1);
|
|
533
|
+
|
|
534
|
+
if (lastAtIndex === textBeforeCursor.length - 1 || (!textAfterAt.includes(' ') && nextChar !== '@')) {
|
|
535
|
+
this.showMentionList = true;
|
|
536
|
+
this.mentionSearchQuery = textAfterAt;
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
this.showMentionList = false;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
handleUserSelect(user) {
|
|
545
|
+
const textBeforeCursor = this.inputValue.substring(0, this.cursorPosition);
|
|
546
|
+
const lastAtIndex = textBeforeCursor.lastIndexOf('@');
|
|
547
|
+
const textBeforeAt = this.inputValue.substring(0, lastAtIndex);
|
|
548
|
+
const textAfterCursor = this.inputValue.substring(this.cursorPosition);
|
|
549
|
+
const newValue = `${textBeforeAt}@${user.userName} ${textAfterCursor}`;
|
|
550
|
+
this.inputValue = newValue;
|
|
551
|
+
const newCursorPosition = lastAtIndex + user.userName.length + 2;
|
|
552
|
+
this.cursorPosition = newCursorPosition;
|
|
553
|
+
this.updateInputWithMention(newValue, newCursorPosition);
|
|
554
|
+
this.showMentionList = false;
|
|
555
|
+
|
|
556
|
+
this.dispatchEvent(
|
|
557
|
+
new CustomEvent('input-change', {
|
|
558
|
+
detail: { value: newValue },
|
|
559
|
+
bubbles: true,
|
|
560
|
+
composed: true,
|
|
561
|
+
})
|
|
562
|
+
);
|
|
563
|
+
this.dispatchMentionEvent(newValue);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
extractMentions(text, members) {
|
|
567
|
+
let mentionedUsers = [];
|
|
568
|
+
let order = 1;
|
|
569
|
+
|
|
570
|
+
for (const member of members) {
|
|
571
|
+
if (!member?.userName) continue;
|
|
572
|
+
const mentionText = `@${member.userName}`;
|
|
573
|
+
let startIndex = 0;
|
|
574
|
+
|
|
575
|
+
while (true) {
|
|
576
|
+
const index = text.indexOf(mentionText, startIndex);
|
|
577
|
+
if (index === -1) break;
|
|
578
|
+
|
|
579
|
+
const isAtStart = index === 0 || /\s/.test(text[index - 1]);
|
|
580
|
+
const endIndex = index + mentionText.length;
|
|
581
|
+
const isAtEnd = endIndex >= text.length || /[\s,.!?;:]/.test(text[endIndex]);
|
|
582
|
+
|
|
583
|
+
if (isAtStart && isAtEnd) {
|
|
584
|
+
mentionedUsers.push({
|
|
585
|
+
wordCount: member.userName.length,
|
|
586
|
+
userId: member.userId,
|
|
587
|
+
userName: member.userName,
|
|
588
|
+
order: order++,
|
|
589
|
+
position: index,
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
startIndex = index + 1;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
mentionedUsers.sort((a, b) => a.position - b.position);
|
|
598
|
+
return mentionedUsers.map(({ position, ...user }) => user);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
updateInputWithMention(value, cursorPos) {
|
|
602
|
+
setTimeout(() => {
|
|
603
|
+
const inputElement = this.shadowRoot.querySelector('my-input');
|
|
604
|
+
const textArea = inputElement?.shadowRoot?.querySelector('textarea');
|
|
605
|
+
if (textArea) {
|
|
606
|
+
textArea.value = value;
|
|
607
|
+
textArea.focus();
|
|
608
|
+
textArea.setSelectionRange(cursorPos, cursorPos);
|
|
609
|
+
}
|
|
610
|
+
}, 0);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
renderSendOrMicButton() {
|
|
614
|
+
return html`
|
|
615
|
+
<button class="send-btn" @click=${() => this.onSend()} aria-label="Send" title="Send" ?disabled=${!this.content?.length}>
|
|
616
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
617
|
+
<path d="M22 2L11 13"></path>
|
|
618
|
+
<path d="M22 2L15 22L11 13L2 9L22 2Z"></path>
|
|
619
|
+
</svg>
|
|
620
|
+
</button>
|
|
621
|
+
`;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
renderThumbnails() {
|
|
625
|
+
if (!this.content?.length) return null;
|
|
626
|
+
|
|
627
|
+
return html`
|
|
628
|
+
<div class="thumbnail-strip">
|
|
629
|
+
<div class="thumbnails">
|
|
630
|
+
${this.content.map((item, index) => {
|
|
631
|
+
const isDoc = item.type !== 'image' && item.type !== 'video';
|
|
632
|
+
const src =
|
|
633
|
+
item.type === 'image'
|
|
634
|
+
? item?.src || this.imagePlaceholder
|
|
635
|
+
: item.type === 'video'
|
|
636
|
+
? this.videoPlaceholder
|
|
637
|
+
: null;
|
|
638
|
+
|
|
639
|
+
return html`
|
|
640
|
+
<div
|
|
641
|
+
class="thumbnail ${index === this.selectedIndex ? 'selected' : ''} ${isDoc ? 'is-doc' : ''}"
|
|
642
|
+
@click="${() => this.handleThumbnailClick(index)}"
|
|
643
|
+
title="${item?.file?.name || `File ${index + 1}`}"
|
|
644
|
+
>
|
|
645
|
+
${src
|
|
646
|
+
? Image({
|
|
647
|
+
src,
|
|
648
|
+
alt: item?.file?.name || `File ${index + 1}`,
|
|
649
|
+
height: '100%',
|
|
650
|
+
width: '100%',
|
|
651
|
+
objectFit: isDoc ? 'contain' : 'cover',
|
|
652
|
+
placeholderImage: this.imagePlaceholder,
|
|
653
|
+
})
|
|
654
|
+
: this.renderFileIcon()}
|
|
655
|
+
</div>
|
|
656
|
+
`;
|
|
657
|
+
})}
|
|
658
|
+
<button class="add-media-btn" type="button">+</button>
|
|
659
|
+
</div>
|
|
660
|
+
${this.renderSendOrMicButton()}
|
|
661
|
+
</div>
|
|
662
|
+
`;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
render() {
|
|
666
|
+
if (this.showCamera) {
|
|
667
|
+
return html`
|
|
668
|
+
<camera-preview .onCapture="${data => this.handleCameraCapture(data)}" .onClose="${this.onClose}"></camera-preview>
|
|
669
|
+
`;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
return html`
|
|
673
|
+
<div class="preview-container">
|
|
674
|
+
${this.renderToolbar()} ${this.renderPreviewArea()}
|
|
675
|
+
<div class="caption-container">
|
|
676
|
+
<my-input
|
|
677
|
+
.value="${this.inputValue}"
|
|
678
|
+
.borderColor="${this.inputBorderColor || 'var(--border-subtle, #333)'}"
|
|
679
|
+
.borderWidth="${this.inputBorderWidth || '1px'}"
|
|
680
|
+
.borderRadius="${this.inputBorderRadius || '12px'}"
|
|
681
|
+
.backgroundColor="${this.inputBgColor || 'var(--bg-message-input-color, var(--bg-secondary-color, #111))'}"
|
|
682
|
+
.fontSize="${this.inputFontSize || '14px'}"
|
|
683
|
+
.padding="10px"
|
|
684
|
+
.placeholder="${this.inputPlaceholder || 'Type your message'}"
|
|
685
|
+
.color=${this.inputFontColor || 'var(--text-primary-color)'}
|
|
686
|
+
.placeholderColor=${this.inputPlaceholderColor || 'var(--text-secondary-color, #a1a1a1)'}
|
|
687
|
+
.isSearchSvg=${false}
|
|
688
|
+
.disabled=${this.showCloseIcon}
|
|
689
|
+
@input="${this.handleInputChange}"
|
|
690
|
+
></my-input>
|
|
691
|
+
${this.conversationDetails?.isGroup
|
|
692
|
+
? html`<mention-user-list
|
|
693
|
+
.users=${this.conversationDetails?.members || []}
|
|
694
|
+
.isVisible=${this.showMentionList}
|
|
695
|
+
.searchQuery=${this.mentionSearchQuery}
|
|
696
|
+
.onSelectUser=${user => this.handleUserSelect(user)}
|
|
697
|
+
.userMetaData=${this.userMetaData}
|
|
698
|
+
.fromAttachment=${true}
|
|
699
|
+
></mention-user-list>`
|
|
700
|
+
: null}
|
|
701
|
+
</div>
|
|
702
|
+
${this.renderThumbnails()}
|
|
703
|
+
</div>
|
|
704
|
+
`;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
customElements.define('attachment-preview', AttachmentPreview);
|