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,48 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import './MessageDatePill';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Atoms/MessageDatePill',
|
|
6
|
+
component: 'message-date-pill',
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
bgColor: { control: 'color' },
|
|
10
|
+
textColor: { control: 'color' },
|
|
11
|
+
width: { control: 'text' },
|
|
12
|
+
padding: { control: 'text' },
|
|
13
|
+
borderRadius: { control: 'text' },
|
|
14
|
+
borderColor: { control: 'color' },
|
|
15
|
+
borderWidth: { control: 'text' },
|
|
16
|
+
fontSize: { control: 'text' },
|
|
17
|
+
fontFamily: { control: 'text' },
|
|
18
|
+
fontWeight: { control: 'text' },
|
|
19
|
+
content: {control: 'text'},
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
render: args => html`
|
|
23
|
+
<message-date-pill
|
|
24
|
+
.bgColor=${args.bgColor}
|
|
25
|
+
.textColor=${args.textColor}
|
|
26
|
+
.width=${args.width}
|
|
27
|
+
.padding=${args.padding}
|
|
28
|
+
.borderRadius=${args.borderRadius}
|
|
29
|
+
.borderWidth=${args.borderWidth}
|
|
30
|
+
.borderColor=${args.borderColor}
|
|
31
|
+
.fontSize=${args.fontSize}
|
|
32
|
+
.fontWeight=${args.fontWeight}
|
|
33
|
+
.fontFamily=${args.fontFamily}
|
|
34
|
+
.content=${args.content}
|
|
35
|
+
>
|
|
36
|
+
</message-date-pill>
|
|
37
|
+
`,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const Default = {
|
|
41
|
+
args:{
|
|
42
|
+
bgColor:'#EFF1FA',
|
|
43
|
+
width:"fit-content",
|
|
44
|
+
padding:"10px 20px",
|
|
45
|
+
content:"Today",
|
|
46
|
+
borderRadius:"20px"
|
|
47
|
+
},
|
|
48
|
+
};
|
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import { css, html, LitElement } from 'lit';
|
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
3
|
+
import '../ChatTile/ChatTile';
|
|
4
|
+
import '../ReadMark/DoubleMark/DoubleMark';
|
|
5
|
+
import '../ReadMark/BlueReadMark/BlueReadMark';
|
|
6
|
+
import '../../../stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble';
|
|
7
|
+
import '../../../stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble';
|
|
8
|
+
import '../../../stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble';
|
|
9
|
+
import '../../../stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble';
|
|
10
|
+
import '../../../stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble';
|
|
11
|
+
import'../../../components/ChatUIComponent/AudioBubble'
|
|
12
|
+
import { generateProfileImageByInitials, getFormattedDeliveryTime } from '../../../lib/helpers';
|
|
13
|
+
import { Image } from '../Image/Image';
|
|
14
|
+
import { Text } from '../Text/Text';
|
|
15
|
+
|
|
16
|
+
class MessageInfo extends LitElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
}
|
|
20
|
+
static properties = {
|
|
21
|
+
padding: { type: String },
|
|
22
|
+
margin: { type: String },
|
|
23
|
+
width: { type: String },
|
|
24
|
+
height: { type: String },
|
|
25
|
+
borderRadius: { type: String },
|
|
26
|
+
borderWidth: { type: String },
|
|
27
|
+
borderColor: { type: String },
|
|
28
|
+
borderStyle: { type: String },
|
|
29
|
+
|
|
30
|
+
backgroundColor: { type: String },
|
|
31
|
+
messageBackgroundColor: { type: String },
|
|
32
|
+
statusBackgroundColor: { type: String },
|
|
33
|
+
textColor: { type: String },
|
|
34
|
+
fontSize: { type: String },
|
|
35
|
+
fontWeight: { type: String },
|
|
36
|
+
fontFamily: { type: String },
|
|
37
|
+
fontStyle: { type: String },
|
|
38
|
+
lineHeight: { type: String },
|
|
39
|
+
textAlign: { type: String },
|
|
40
|
+
|
|
41
|
+
contactImage: { type: String },
|
|
42
|
+
contactName: { type: String },
|
|
43
|
+
contactEmail: { type: String },
|
|
44
|
+
|
|
45
|
+
isGroup: { type: Boolean },
|
|
46
|
+
messageDate: { type: String },
|
|
47
|
+
messagePreviewText: { type: String },
|
|
48
|
+
messageDeliveryTime: { type: Number },
|
|
49
|
+
messageReadTime: { type: Number },
|
|
50
|
+
pendingReadCount: { type: Number },
|
|
51
|
+
pendingDeliveryCount: { type: Number },
|
|
52
|
+
renderAttachmentMessage: { type: Function },
|
|
53
|
+
selectedMessage: { type: Object },
|
|
54
|
+
onMediaClick: { type: Function },
|
|
55
|
+
closePopup: { type: Function },
|
|
56
|
+
allAttachments: { type: Array },
|
|
57
|
+
deliveryUserList: { type: Array },
|
|
58
|
+
readUserList: { type: Array },
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
static styles = css`
|
|
62
|
+
.message-info-container {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: 10px;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
background-color:var(--bg-primary-color)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.message-info-header {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: 10px;
|
|
74
|
+
padding-top: 15px;
|
|
75
|
+
padding-bottom: 15px;
|
|
76
|
+
color:var(--text-primary-color);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.message-info-body {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
gap: 10px;
|
|
83
|
+
overflow-y: auto;
|
|
84
|
+
overflow-x: hidden;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.message-delivery-status-mark,
|
|
88
|
+
.message-read-status-mark {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
double-mark,
|
|
94
|
+
blue-read-mark {
|
|
95
|
+
display: flex;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.message-preview-container {
|
|
99
|
+
padding: 10px;
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
border-radius: 5px;
|
|
103
|
+
}
|
|
104
|
+
.message-preview {
|
|
105
|
+
max-height: 250px;
|
|
106
|
+
overflow: auto;
|
|
107
|
+
display: flex;
|
|
108
|
+
align-self: end;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.message-delivery-status,
|
|
112
|
+
.message-read-status {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
padding: 5px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.message-date-label {
|
|
119
|
+
align-self: center;
|
|
120
|
+
padding: 5px 20px;
|
|
121
|
+
border-radius: 10px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.message-preview-text {
|
|
125
|
+
align-self: end;
|
|
126
|
+
padding: 10px;
|
|
127
|
+
}
|
|
128
|
+
.message-status {
|
|
129
|
+
padding: 5px;
|
|
130
|
+
}
|
|
131
|
+
.userTile {
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: row;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: 12px;
|
|
136
|
+
width: 100%;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.userdetail {
|
|
140
|
+
flex-grow: 1;
|
|
141
|
+
padding: 8px 0;
|
|
142
|
+
border-top: 1px solid var(--bg-secondary-color);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.messageTime {
|
|
146
|
+
display: block;
|
|
147
|
+
color: var(--text-secondary-color);
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
line-height: 20px;
|
|
150
|
+
margin-top: 2px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.image-container {
|
|
154
|
+
flex-shrink: 0;
|
|
155
|
+
}
|
|
156
|
+
`;
|
|
157
|
+
|
|
158
|
+
extractUrls(text) {
|
|
159
|
+
if (!text) return [];
|
|
160
|
+
const urlRegex = /(https?:\/\/[^\s]+)/g;
|
|
161
|
+
return text.match(urlRegex) || [];
|
|
162
|
+
}
|
|
163
|
+
renderMessage(message) {
|
|
164
|
+
const urls = this.extractUrls(message?.body);
|
|
165
|
+
const hasLinks = urls?.length > 0;
|
|
166
|
+
if (message?.body && !message?.attachments?.length) {
|
|
167
|
+
if (hasLinks) {
|
|
168
|
+
return html`
|
|
169
|
+
<link-preview
|
|
170
|
+
.isMessageInfo=${true}
|
|
171
|
+
.url=${urls[0]}
|
|
172
|
+
.isRead=${message?.readByAll}
|
|
173
|
+
.isDelivered=${message?.deliveredToAll}
|
|
174
|
+
.time=${message?.sentAt}
|
|
175
|
+
.timeColor=${'var(--text-outgoing-time)'}
|
|
176
|
+
.backgroundColor=${'var(--bg-outgoing-message)'}
|
|
177
|
+
.message=${message?.body}
|
|
178
|
+
.isSelf=${true}
|
|
179
|
+
.mentionedUsers=${message?.mentionedUsers}
|
|
180
|
+
.time=${message?.sentAt}
|
|
181
|
+
.isRead=${message?.readByAll}
|
|
182
|
+
.isDelivered=${message?.deliveredToAll}
|
|
183
|
+
.textColor=${'var(--text-outgoing-message)'}
|
|
184
|
+
.message=${message?.body}
|
|
185
|
+
.mentionedUsers=${message?.mentionedUsers}
|
|
186
|
+
.bgColor=${'var(--bg-outgoing-message)'}
|
|
187
|
+
.borderRadius=${'6px 6px 0 6px'}
|
|
188
|
+
></link-preview>
|
|
189
|
+
`;
|
|
190
|
+
} else {
|
|
191
|
+
return html`
|
|
192
|
+
<outgoing-text-message-bubble
|
|
193
|
+
.isRead=${message?.readByAll}
|
|
194
|
+
.padding=${'10px 10px 1px 10px'}
|
|
195
|
+
.borderRadius=${'10px 10px 0 10px'}
|
|
196
|
+
.textContent=${message?.body}
|
|
197
|
+
.time=${message?.sentAt}
|
|
198
|
+
.bgColor=${'var(--bg-outgoing-message)'}
|
|
199
|
+
.textColor=${'var(--text-outgoing-message)'}
|
|
200
|
+
.isDelivered=${message?.deliveredToAll}
|
|
201
|
+
.mentionedUsers=${message?.mentionedUsers}
|
|
202
|
+
.timeColor=${'var(--text-outgoing-time)'}
|
|
203
|
+
></outgoing-text-message-bubble>
|
|
204
|
+
`;
|
|
205
|
+
}
|
|
206
|
+
} else {
|
|
207
|
+
if (message?.attachments?.length > 1 && !message?.attachments?.[0]?.mimeType?.startsWith('application/')) {
|
|
208
|
+
return html`
|
|
209
|
+
<image-message
|
|
210
|
+
.height=${'220px'}
|
|
211
|
+
.width=${'250px'}
|
|
212
|
+
.padding=${'10px 10px 10px 10px'}
|
|
213
|
+
.imageSrc=${message?.attachments?.[0]?.mediaUrl}
|
|
214
|
+
.borderWidth=${'5px'}
|
|
215
|
+
.borderColor=${'var(--bg-grey-color)'}
|
|
216
|
+
.borderStyle=${'solid'}
|
|
217
|
+
.allAttachments=${this.allAttachments}
|
|
218
|
+
.onImageClick=${this.onMediaClick}
|
|
219
|
+
.totalMedia=${message?.attachments?.length - 1}
|
|
220
|
+
.mediaType=${message?.attachments?.[0]?.mediaType}
|
|
221
|
+
.time=${message?.sentAt}
|
|
222
|
+
.isSelf=${true}
|
|
223
|
+
.isRead=${message?.readByAll}
|
|
224
|
+
.isDelivered=${message?.deliveredToAll}
|
|
225
|
+
.textColor=${'var(--text-outgoing-message)'}
|
|
226
|
+
.message=${message?.body}
|
|
227
|
+
.mentionedUsers=${message?.mentionedUsers}
|
|
228
|
+
.bgColor=${'var(--bg-outgoing-message)'}
|
|
229
|
+
.borderRadius=${'6px 6px 0 6px'}
|
|
230
|
+
.timeColor=${'var(--text-outgoing-time)'}
|
|
231
|
+
></image-message>
|
|
232
|
+
`;
|
|
233
|
+
} else {
|
|
234
|
+
return message?.attachments?.map((attachment, index) => {
|
|
235
|
+
if (attachment?.mimeType?.startsWith('application/') || message?.customType === 'AttachmentMessage:File') {
|
|
236
|
+
return html`
|
|
237
|
+
<document-message
|
|
238
|
+
.docType=${attachment?.mimeType}
|
|
239
|
+
.fileName=${attachment?.name}
|
|
240
|
+
.href=${attachment?.mediaUrl}
|
|
241
|
+
.width=${'220px'}
|
|
242
|
+
.padding=${'10px 10px 20px 10px'}
|
|
243
|
+
.docName=${attachment?.name}
|
|
244
|
+
.time=${message?.sentAt}
|
|
245
|
+
.isSelf=${true}
|
|
246
|
+
.isRead=${message?.readByAll}
|
|
247
|
+
.isDelivered=${message?.deliveredToAll}
|
|
248
|
+
.textColor=${'var(--text-outgoing-message)'}
|
|
249
|
+
.message=${message?.body}
|
|
250
|
+
.mentionedUsers=${message?.mentionedUsers}
|
|
251
|
+
.bgColor=${'var(--bg-outgoing-message)'}
|
|
252
|
+
.borderRadius=${'6px 6px 0 6px'}
|
|
253
|
+
.timeColor=${'var(--text-outgoing-time)'}
|
|
254
|
+
></document-message>
|
|
255
|
+
`;
|
|
256
|
+
}
|
|
257
|
+
if (attachment?.mimeType?.startsWith('video/') || message?.customType === 'AttachmentMessage:Video') {
|
|
258
|
+
return html` <video-message
|
|
259
|
+
.height=${'220px'}
|
|
260
|
+
.width=${'250px'}
|
|
261
|
+
.padding=${'10px 10px 30px 10px'}
|
|
262
|
+
.type=${attachment?.mimeType}
|
|
263
|
+
.videoSrc=${attachment?.mediaUrl}
|
|
264
|
+
.time=${message?.sentAt}
|
|
265
|
+
.isSelf=${true}
|
|
266
|
+
.isRead=${message?.readByAll}
|
|
267
|
+
.isDelivered=${message?.deliveredToAll}
|
|
268
|
+
.textColor=${'var(--text-outgoing-message)'}
|
|
269
|
+
.message=${message?.body}
|
|
270
|
+
.mentionedUsers=${message?.mentionedUsers}
|
|
271
|
+
.bgColor=${'var(--bg-outgoing-message)'}
|
|
272
|
+
.borderRadius=${'6px 6px 0 6px'}
|
|
273
|
+
.timeColor=${'var(--text-outgoing-time)'}
|
|
274
|
+
></video-message>`;
|
|
275
|
+
}
|
|
276
|
+
if (attachment?.mimeType?.startsWith('image/') || message?.customType === 'AttachmentMessage:Image') {
|
|
277
|
+
return html` <image-message
|
|
278
|
+
.height=${'220px'}
|
|
279
|
+
.width=${'250px'}
|
|
280
|
+
.padding=${'10px 10px 10px 10px'}
|
|
281
|
+
.imageSrc=${attachment?.mediaUrl}
|
|
282
|
+
.borderWidth=${'5px'}
|
|
283
|
+
.borderColor=${'var(--bg-grey-color)'}
|
|
284
|
+
.borderStyle=${'solid'}
|
|
285
|
+
.allAttachments=${this.allAttachments}
|
|
286
|
+
.onImageClick=${this.onMediaClick}
|
|
287
|
+
.time=${message?.sentAt}
|
|
288
|
+
.isSelf=${true}
|
|
289
|
+
.isRead=${message?.readByAll}
|
|
290
|
+
.isDelivered=${message?.deliveredToAll}
|
|
291
|
+
.textColor=${'var(--text-outgoing-message)'}
|
|
292
|
+
.message=${message?.body}
|
|
293
|
+
.mentionedUsers=${message?.mentionedUsers}
|
|
294
|
+
.bgColor=${'var(--bg-outgoing-message)'}
|
|
295
|
+
.borderRadius=${'6px 6px 0 6px'}
|
|
296
|
+
.timeColor=${'var(--text-outgoing-time)'}
|
|
297
|
+
></image-message>`;
|
|
298
|
+
}
|
|
299
|
+
if (attachment?.mimeType?.startsWith('audio/') || message?.customType === 'AttachmentMessage:Image') {
|
|
300
|
+
return html` <audio-bubble
|
|
301
|
+
.audioUrl=${attachment?.mediaUrl}
|
|
302
|
+
.time=${message?.sentAt}
|
|
303
|
+
.isSelf=${true}
|
|
304
|
+
.isRead=${message?.readByAll}
|
|
305
|
+
.isDelivered=${message?.deliveredToAll}
|
|
306
|
+
.showFooter=${true}
|
|
307
|
+
.textColor=${'var(--text-outgoing-message)'}
|
|
308
|
+
.timeColor=${'var(--text-outgoing-time)'}
|
|
309
|
+
></audio-bubble>`;
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
renderDeliveryUser() {
|
|
317
|
+
return html`
|
|
318
|
+
<div style="padding: 16px 0;background-color:var(--bg-secondary-color);">
|
|
319
|
+
<div style="display: flex; justify-content: space-between; padding: 0 16px 8px 16px">
|
|
320
|
+
<span style="color: var(--text-secondary-color)">Delivered to</span>
|
|
321
|
+
<span>
|
|
322
|
+
<double-mark></double-mark>
|
|
323
|
+
</span>
|
|
324
|
+
</div>
|
|
325
|
+
${this.deliveryUserList.map(user => html`
|
|
326
|
+
<div class='userTile' style="padding: 0px 10px;">
|
|
327
|
+
<div class="image-container">
|
|
328
|
+
${Image({
|
|
329
|
+
src: user.userProfileImageUrl,
|
|
330
|
+
height: '40px',
|
|
331
|
+
width: '40px',
|
|
332
|
+
placeholderImage: generateProfileImageByInitials(user?.userName),
|
|
333
|
+
borderRadius: '50%',
|
|
334
|
+
objectFit: 'cover',
|
|
335
|
+
cursor: 'pointer',
|
|
336
|
+
})}
|
|
337
|
+
</div>
|
|
338
|
+
<div class='userdetail' style="width: 100%; border-color: var(--bg-secondary-color)">
|
|
339
|
+
<div style="display: flex; align-items: center;">
|
|
340
|
+
${Text({
|
|
341
|
+
fontSize: '16px',
|
|
342
|
+
fontWeight: '500',
|
|
343
|
+
content: user?.userName || '',
|
|
344
|
+
color: 'var(--text-primary-color)',
|
|
345
|
+
textAlign: 'left'
|
|
346
|
+
})}
|
|
347
|
+
${user.emoji ? html`<span style="margin-left: 4px">${user.emoji}</span>` : ''}
|
|
348
|
+
</div>
|
|
349
|
+
<span class='messageTime'>${getFormattedDeliveryTime(user?.timestamp)}</span>
|
|
350
|
+
</div>
|
|
351
|
+
</div>
|
|
352
|
+
`)}
|
|
353
|
+
<div style="display: flex; justify-content: space-between; padding: 0 16px 8px 16px" >
|
|
354
|
+
${this.pendingDeliveryCount > 0 ? html`<span style="color: var(--text-secondary-color);font-size:14px;" >${this.pendingDeliveryCount} remaining</span>` : null}
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
`;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
renderReadUser() {
|
|
361
|
+
return html`
|
|
362
|
+
<div style="padding: 16px 0;background-color:var(--bg-secondary-color);">
|
|
363
|
+
<div style="display: flex; justify-content: space-between; padding: 0 16px 8px 16px">
|
|
364
|
+
<span style="color: var(--text-secondary-color)">Read by</span>
|
|
365
|
+
<span>
|
|
366
|
+
<blue-read-mark></blue-read-mark>
|
|
367
|
+
</span>
|
|
368
|
+
</div>
|
|
369
|
+
${this.readUserList.map(user => html`
|
|
370
|
+
<div class='userTile' style="padding: 0px 10px;">
|
|
371
|
+
<div class="image-container">
|
|
372
|
+
${Image({
|
|
373
|
+
src: user.userProfileImageUrl,
|
|
374
|
+
height: '40px',
|
|
375
|
+
width: '40px',
|
|
376
|
+
placeholderImage: generateProfileImageByInitials(user?.userName),
|
|
377
|
+
borderRadius: '50%',
|
|
378
|
+
objectFit: 'cover',
|
|
379
|
+
cursor: 'pointer',
|
|
380
|
+
})}
|
|
381
|
+
</div>
|
|
382
|
+
<div class='userdetail' style="width: 100%; border-color: var(--bg-secondary-color)">
|
|
383
|
+
<div style="display: flex; align-items: center;">
|
|
384
|
+
${Text({
|
|
385
|
+
fontSize: '16px',
|
|
386
|
+
fontWeight: '500',
|
|
387
|
+
content: user?.userName || '',
|
|
388
|
+
color: 'var(--text-primary-color)',
|
|
389
|
+
textAlign: 'left'
|
|
390
|
+
})}
|
|
391
|
+
</div>
|
|
392
|
+
<span class='messageTime'>${getFormattedDeliveryTime(user?.timestamp)}</span>
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
`)}
|
|
396
|
+
<div style="display: flex; justify-content: space-between; padding: 0 16px 8px 16px">
|
|
397
|
+
${this.pendingReadCount > 0 ? html`<span style="color: var(--text-secondary-color);font-size:14px;" >${this.pendingReadCount} remaining</span>` : null}
|
|
398
|
+
</div>
|
|
399
|
+
</div>
|
|
400
|
+
`;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
render() {
|
|
405
|
+
return html`
|
|
406
|
+
<div
|
|
407
|
+
class="message-info-container"
|
|
408
|
+
style=${styleMap({
|
|
409
|
+
padding: this.padding,
|
|
410
|
+
margin: this.margin,
|
|
411
|
+
width: this.width,
|
|
412
|
+
height: this.height,
|
|
413
|
+
borderRadius: this.borderRadius,
|
|
414
|
+
borderWidth: this.borderWidth,
|
|
415
|
+
borderColor: this.borderColor,
|
|
416
|
+
borderStyle: this.borderStyle,
|
|
417
|
+
backgroundColor: this.backgroundColor,
|
|
418
|
+
color: this.textColor,
|
|
419
|
+
fontSize: '16px',
|
|
420
|
+
fontWeight: this.fontWeight,
|
|
421
|
+
fontFamily: this.fontFamily,
|
|
422
|
+
fontStyle: this.fontStyle,
|
|
423
|
+
lineHeight: this.lineHeight,
|
|
424
|
+
textAlign: this.textAlign,
|
|
425
|
+
})}
|
|
426
|
+
>
|
|
427
|
+
<div class="message-info-header">
|
|
428
|
+
<svg @click="${this.closePopup}" style="cursor: pointer" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="var(--text-primary-color)">
|
|
429
|
+
<path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" />
|
|
430
|
+
</svg>
|
|
431
|
+
<span class="message-info-label">Message Info</span>
|
|
432
|
+
</div>
|
|
433
|
+
|
|
434
|
+
<div class="message-info-body">
|
|
435
|
+
<div class="message-preview-container" style="font-size:14px; background-color: ${this.messageBackgroundColor}">
|
|
436
|
+
<div class="message-preview">${this.renderMessage(this.selectedMessage)}</div>
|
|
437
|
+
</div>
|
|
438
|
+
|
|
439
|
+
${this.isGroup ? html`
|
|
440
|
+
${this.renderReadUser()}
|
|
441
|
+
${this.renderDeliveryUser()}
|
|
442
|
+
` : html` <div class="message-status" style="background-color: ${this.statusBackgroundColor}">
|
|
443
|
+
<div class="message-delivery-status" style="border-bottom: 1px solid ${`var(--bg-secondary-color)`}">
|
|
444
|
+
<div class="message-delivery-status-mark">
|
|
445
|
+
<double-mark></double-mark>
|
|
446
|
+
<span class="message-delivery-status-label" style="font-size:16px">Delivered</span>
|
|
447
|
+
</div>
|
|
448
|
+
<span class="message-delivery-status-time" style="font-size: 14px">${getFormattedDeliveryTime(this.messageDeliveryTime)}</span>
|
|
449
|
+
</div>
|
|
450
|
+
|
|
451
|
+
<div class="message-read-status">
|
|
452
|
+
<div class="message-read-status-mark">
|
|
453
|
+
<blue-read-mark></blue-read-mark>
|
|
454
|
+
<span class="message-read-status-label" style="font-size:16px">Read</span>
|
|
455
|
+
</div>
|
|
456
|
+
<span class="message-read-status-time" style="font-size: 14px">${getFormattedDeliveryTime(this.messageReadTime)}</span>
|
|
457
|
+
</div>
|
|
458
|
+
</div>`}
|
|
459
|
+
</div>
|
|
460
|
+
</div>
|
|
461
|
+
`;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
customElements.define('message-info', MessageInfo);
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import './MessageInfo';
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/MessageInfo',
|
|
6
|
+
component: 'message-info',
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
label: { control: 'text' },
|
|
10
|
+
contactImage: { control: 'text' },
|
|
11
|
+
contactName: { control: 'text' },
|
|
12
|
+
contactEmail: { control: 'text' },
|
|
13
|
+
mediaArray: { control: 'array' },
|
|
14
|
+
isGroup: { control: 'boolean' },
|
|
15
|
+
padding: { control: 'text' },
|
|
16
|
+
margin: { control: 'text' },
|
|
17
|
+
width: { control: 'text' },
|
|
18
|
+
height: { control: 'text' },
|
|
19
|
+
borderRadius: { control: 'text' },
|
|
20
|
+
borderWidth: { control: 'text' },
|
|
21
|
+
borderColor: { control: 'color' },
|
|
22
|
+
borderStyle: { control: 'text' },
|
|
23
|
+
backgroundColor: { control: 'color' },
|
|
24
|
+
textColor: { control: 'color' },
|
|
25
|
+
fontSize: { control: 'text' },
|
|
26
|
+
fontWeight: { control: 'text' },
|
|
27
|
+
fontFamily: { control: 'text' },
|
|
28
|
+
fontStyle: { control: 'text' },
|
|
29
|
+
lineHeight: { control: 'text' },
|
|
30
|
+
textAlign: { control: 'text' },
|
|
31
|
+
messageDate: { control: 'text' },
|
|
32
|
+
messagePreviewText: { control: 'text' },
|
|
33
|
+
messageDeliveryTime: { control: 'text' },
|
|
34
|
+
messageReadTime: { control: 'text' },
|
|
35
|
+
messageBackgroundColor: { control: 'color' },
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
render: args => html`
|
|
39
|
+
<message-info
|
|
40
|
+
label=${args.label}
|
|
41
|
+
contactImage=${args.contactImage}
|
|
42
|
+
contactName=${args.contactName}
|
|
43
|
+
contactEmail=${args.contactEmail}
|
|
44
|
+
.mediaArray=${args.mediaArray}
|
|
45
|
+
?isGroup=${args.isGroup}
|
|
46
|
+
padding=${args.padding}
|
|
47
|
+
margin=${args.margin}
|
|
48
|
+
width=${args.width}
|
|
49
|
+
height=${args.height}
|
|
50
|
+
borderRadius=${args.borderRadius}
|
|
51
|
+
borderWidth=${args.borderWidth}
|
|
52
|
+
borderColor=${args.borderColor}
|
|
53
|
+
borderStyle=${args.borderStyle || 'solid'}
|
|
54
|
+
backgroundColor=${args.backgroundColor}
|
|
55
|
+
textColor=${args.textColor}
|
|
56
|
+
fontSize=${args.fontSize}
|
|
57
|
+
fontWeight=${args.fontWeight}
|
|
58
|
+
fontFamily=${args.fontFamily}
|
|
59
|
+
fontStyle=${args.fontStyle}
|
|
60
|
+
lineHeight=${args.lineHeight}
|
|
61
|
+
textAlign=${args.textAlign}
|
|
62
|
+
messageDate=${args.messageDate}
|
|
63
|
+
messagePreviewText=${args.messagePreviewText}
|
|
64
|
+
messageDeliveryTime=${args.messageDeliveryTime}
|
|
65
|
+
messageReadTime=${args.messageReadTime}
|
|
66
|
+
></message-info>
|
|
67
|
+
`,
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const Default = {
|
|
71
|
+
args: {
|
|
72
|
+
label: 'Contact Info',
|
|
73
|
+
contactImage: 'https://via.placeholder.com/150',
|
|
74
|
+
contactName: 'John Doe',
|
|
75
|
+
contactEmail: 'john.doe@example.com',
|
|
76
|
+
mediaArray: [
|
|
77
|
+
'https://via.placeholder.com/100',
|
|
78
|
+
'https://via.placeholder.com/100',
|
|
79
|
+
'https://via.placeholder.com/100',
|
|
80
|
+
'https://via.placeholder.com/100',
|
|
81
|
+
'https://via.placeholder.com/100',
|
|
82
|
+
'https://via.placeholder.com/100',
|
|
83
|
+
'https://via.placeholder.com/100',
|
|
84
|
+
'https://via.placeholder.com/100',
|
|
85
|
+
'https://via.placeholder.com/100',
|
|
86
|
+
'https://via.placeholder.com/100',
|
|
87
|
+
],
|
|
88
|
+
isGroup: true,
|
|
89
|
+
padding: '10px',
|
|
90
|
+
margin: '0px',
|
|
91
|
+
width: '300px',
|
|
92
|
+
height: '100dvh',
|
|
93
|
+
borderRadius: '0px',
|
|
94
|
+
borderWidth: '1px',
|
|
95
|
+
borderColor: '#000',
|
|
96
|
+
borderStyle: 'solid',
|
|
97
|
+
backgroundColor: '#fff',
|
|
98
|
+
textColor: '#000',
|
|
99
|
+
fontSize: '16px',
|
|
100
|
+
fontWeight: '400',
|
|
101
|
+
fontFamily: 'Arial, sans-serif',
|
|
102
|
+
fontStyle: 'normal',
|
|
103
|
+
lineHeight: '1.5',
|
|
104
|
+
textAlign: 'left',
|
|
105
|
+
messageDate: '12/30/2024',
|
|
106
|
+
messagePreviewText: 'Hello, how are you?',
|
|
107
|
+
messageDeliveryTime: '12:00 PM',
|
|
108
|
+
messageReadTime: '12:01 PM',
|
|
109
|
+
messageBackgroundColor: 'red',
|
|
110
|
+
},
|
|
111
|
+
};
|