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,75 @@
|
|
|
1
|
+
import "./ChatSidebar"
|
|
2
|
+
import {html, render} from "lit"
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/ChatSidebar',
|
|
6
|
+
component: 'chat-sidebar',
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
label: { control: 'text' },
|
|
10
|
+
labelColor: { control: 'color' },
|
|
11
|
+
labelFontFamily: { control: 'text' },
|
|
12
|
+
labelFontWeight: { control: 'text' },
|
|
13
|
+
labelFontSize: { control: 'text' },
|
|
14
|
+
labelFontStyle: { control: 'text' },
|
|
15
|
+
labelLineHeight: { control: 'text' },
|
|
16
|
+
searchBarIcon: { control: 'text' },
|
|
17
|
+
searchBarIconAlt: { control: 'text' },
|
|
18
|
+
searchBarIconWidth: { control: 'text' },
|
|
19
|
+
searchBarIconHeight: { control: 'text' },
|
|
20
|
+
height: { control: 'text' },
|
|
21
|
+
width: { control: 'text' },
|
|
22
|
+
borderRadius: { control: 'text' },
|
|
23
|
+
borderWidth: { control: 'text' },
|
|
24
|
+
borderColor: { control: 'color' },
|
|
25
|
+
borderStyle: { control: 'text' },
|
|
26
|
+
padding: { control: 'text' },
|
|
27
|
+
margin: { control: 'text' },
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
render: (args) => html`
|
|
31
|
+
<chat-sidebar
|
|
32
|
+
label=${args.label}
|
|
33
|
+
labelColor=${args.labelColor}
|
|
34
|
+
labelFontFamily=${args.labelFontFamily}
|
|
35
|
+
labelFontWeight=${args.labelFontWeight}
|
|
36
|
+
labelFontSize=${args.labelFontSize}
|
|
37
|
+
labelFontStyle=${args.labelFontStyle}
|
|
38
|
+
labelLineHeight=${args.labelLineHeight}
|
|
39
|
+
searchBarIcon=${args.searchBarIcon}
|
|
40
|
+
searchBarIconAlt=${args.searchBarIconAlt}
|
|
41
|
+
searchBarIconWidth=${args.searchBarIconWidth}
|
|
42
|
+
searchBarIconHeight=${args.searchBarIconHeight}
|
|
43
|
+
height=${args.height}
|
|
44
|
+
width=${args.width}
|
|
45
|
+
borderRadius=${args.borderRadius}
|
|
46
|
+
borderWidth=${args.borderWidth}
|
|
47
|
+
borderColor=${args.borderColor}
|
|
48
|
+
borderStyle=${args.borderStyle || "solid"}
|
|
49
|
+
padding=${args.padding}
|
|
50
|
+
margin=${args.margin}
|
|
51
|
+
></chat-sidebar>
|
|
52
|
+
`,
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const Default = {
|
|
56
|
+
args: {
|
|
57
|
+
label: "Messages",
|
|
58
|
+
labelColor: "#000",
|
|
59
|
+
labelFontFamily: "sans-serif",
|
|
60
|
+
labelFontWeight: "600",
|
|
61
|
+
labelFontSize: "28px",
|
|
62
|
+
labelFontStyle: "normal",
|
|
63
|
+
searchBarIcon: "null",
|
|
64
|
+
searchBarIconAlt: "Search Icon",
|
|
65
|
+
searchBarIconWidth: "20px",
|
|
66
|
+
searchBarIconHeight: "20px",
|
|
67
|
+
borderRadius: "10px",
|
|
68
|
+
borderWidth: "1px",
|
|
69
|
+
borderColor: "#000",
|
|
70
|
+
padding: "10px",
|
|
71
|
+
margin: "0px",
|
|
72
|
+
width: "30%",
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { css, html, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
class ContextMenu extends LitElement {
|
|
4
|
+
static properties = {
|
|
5
|
+
x: { type: Number },
|
|
6
|
+
y: { type: Number },
|
|
7
|
+
isOpen: { type: Boolean },
|
|
8
|
+
menuItems: { type: Array }
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
static styles = css`
|
|
12
|
+
.context-menu {
|
|
13
|
+
position: fixed;
|
|
14
|
+
background: white;
|
|
15
|
+
border: 1px solid #ccc;
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
|
18
|
+
padding: 8px 0;
|
|
19
|
+
min-width: 150px;
|
|
20
|
+
z-index: 1000;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.menu-item {
|
|
24
|
+
padding: 8px 16px;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 8px;
|
|
29
|
+
color: #333;
|
|
30
|
+
transition: background-color 0.2s;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.menu-item:hover {
|
|
34
|
+
background-color: #f5f5f5;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.menu-item.danger {
|
|
38
|
+
color: #dc3545;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.menu-item.danger:hover {
|
|
42
|
+
background-color: #fff5f5;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
49
|
+
this.x = 0;
|
|
50
|
+
this.y = 0;
|
|
51
|
+
this.isOpen = false;
|
|
52
|
+
this.menuItems = [];
|
|
53
|
+
this._handleClickOutside = this._handleClickOutside.bind(this);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
connectedCallback() {
|
|
57
|
+
super.connectedCallback();
|
|
58
|
+
document.addEventListener('click', this._handleClickOutside);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
disconnectedCallback() {
|
|
62
|
+
super.disconnectedCallback();
|
|
63
|
+
document.removeEventListener('click', this._handleClickOutside);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
_handleClickOutside(e) {
|
|
67
|
+
if (this.isOpen && !this.renderRoot.contains(e.target)) {
|
|
68
|
+
this.close();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
close() {
|
|
73
|
+
this.isOpen = false;
|
|
74
|
+
this.dispatchEvent(new CustomEvent('menu-closed'));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
handleItemClick(item) {
|
|
78
|
+
this.dispatchEvent(new CustomEvent('menu-item-selected', {
|
|
79
|
+
detail: item,
|
|
80
|
+
bubbles: true,
|
|
81
|
+
composed: true
|
|
82
|
+
}));
|
|
83
|
+
this.close();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
render() {
|
|
87
|
+
if (!this.isOpen) return null;
|
|
88
|
+
|
|
89
|
+
return html`
|
|
90
|
+
<div
|
|
91
|
+
class="context-menu"
|
|
92
|
+
style="left: ${this.x}px; top: ${this.y}px;"
|
|
93
|
+
@click=${(e) => e.stopPropagation()}
|
|
94
|
+
>
|
|
95
|
+
${this.menuItems.map(item => html`
|
|
96
|
+
<div
|
|
97
|
+
class="menu-item ${item.type || ''}"
|
|
98
|
+
@click=${() => this.handleItemClick(item)}
|
|
99
|
+
>
|
|
100
|
+
${item.icon ? html`<span class="icon">${item.icon}</span>` : ''}
|
|
101
|
+
${item.label}
|
|
102
|
+
</div>
|
|
103
|
+
`)}
|
|
104
|
+
</div>
|
|
105
|
+
`;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
customElements.define('context-menu', ContextMenu);
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
import { Image } from '../Image/Image';
|
|
3
|
+
import { Text } from '../Text/Text';
|
|
4
|
+
import { MessageUnreadCount } from '../MessageUnreadCount/MessageUnreadCount';
|
|
5
|
+
import '../ReadMark/BlueReadMark/BlueReadMark'
|
|
6
|
+
import '../ReadMark/DoubleMark/DoubleMark'
|
|
7
|
+
import '../ReadMark/ClockMark/ClockMark'
|
|
8
|
+
import '../ReadMark/SingleMark/SingleMark'
|
|
9
|
+
import { generateProfileImageByInitials } from '../../../lib/helpers'
|
|
10
|
+
import { getMediaIcon } from '../ReplyBlock/MediaIcons';
|
|
11
|
+
|
|
12
|
+
class ChatTile extends LitElement {
|
|
13
|
+
static properties = {
|
|
14
|
+
imageSrc: { type: String },
|
|
15
|
+
imageAlt: { type: String },
|
|
16
|
+
imageHeight: { type: String },
|
|
17
|
+
imageWidth: { type: String },
|
|
18
|
+
imageRadius: { type: String },
|
|
19
|
+
imageFillColor: { type: String },
|
|
20
|
+
imageTextColor: { type: String },
|
|
21
|
+
// image property ends here
|
|
22
|
+
username: { type: String },
|
|
23
|
+
userNameColor: { type: String },
|
|
24
|
+
userNameFontFamily: { type: String },
|
|
25
|
+
userNameFontWeight: { type: String },
|
|
26
|
+
usernameFontSize: { type: String },
|
|
27
|
+
usernameFontStyle: { type: String },
|
|
28
|
+
// username properties ends here
|
|
29
|
+
chatPreview: { type: String },
|
|
30
|
+
chatPreviewColor: { type: String },
|
|
31
|
+
chatPreviewFontFamily: { type: String },
|
|
32
|
+
chatPreviewFontWeight: { type: String },
|
|
33
|
+
chatPreviewFontSize: { type: String },
|
|
34
|
+
chatPreviewFontStyle: { type: String },
|
|
35
|
+
// chat Preview properties ends here
|
|
36
|
+
unreadCount: { type: Number },
|
|
37
|
+
unreadCountColor: { type: String },
|
|
38
|
+
unreadCountFontSize: { type: String },
|
|
39
|
+
unreadCountBgColor: { type: String },
|
|
40
|
+
unreadCountBorderRadius: { type: String },
|
|
41
|
+
unreadCountWidth: { type: String },
|
|
42
|
+
unreadCountHeight: { type: String },
|
|
43
|
+
// unread count properties ends here
|
|
44
|
+
messageDate: { type: String },
|
|
45
|
+
messageDateColor: { type: String },
|
|
46
|
+
messageDateFontFamily: { type: String },
|
|
47
|
+
messageDateFontWeight: { type: String },
|
|
48
|
+
messageDateFontSize: { type: String },
|
|
49
|
+
messageDateFontStyle: { type: String },
|
|
50
|
+
// messageDate properties ends here
|
|
51
|
+
padding: { type: String },
|
|
52
|
+
usernamePadding: { type: String },
|
|
53
|
+
chatPreviewPadding: { type: String },
|
|
54
|
+
messageDatePadding: { type: String },
|
|
55
|
+
bgColor: { type: String },
|
|
56
|
+
borderWidth: { type: String },
|
|
57
|
+
borderColor: { type: String },
|
|
58
|
+
borderStyle: { type: String },
|
|
59
|
+
height: { type: String },
|
|
60
|
+
width: { type: String },
|
|
61
|
+
|
|
62
|
+
isSelected: { type: Boolean },
|
|
63
|
+
sidebarSelectedColor: { type: String },
|
|
64
|
+
|
|
65
|
+
suffix: { type: String },
|
|
66
|
+
suffixColor: { type: String },
|
|
67
|
+
suffixBgColor: { type: String },
|
|
68
|
+
gap: { type: String },
|
|
69
|
+
isTyping: { type: Boolean },
|
|
70
|
+
typingUserName: { type: String },
|
|
71
|
+
isRead: { type: Boolean },
|
|
72
|
+
isPending: { type: Boolean },
|
|
73
|
+
isDelivered: { type: String },
|
|
74
|
+
isSelfMessage: { type: Boolean },
|
|
75
|
+
mediaType: { type: Number },
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
static styles = css`
|
|
79
|
+
.chat-tile-container {
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: 12px;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
margin: 4px 12px;
|
|
86
|
+
padding: 14px 14px !important;
|
|
87
|
+
min-height: 72px;
|
|
88
|
+
border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
|
|
89
|
+
border-radius: var(--radius-sm);
|
|
90
|
+
background: var(--bg-primary-color);
|
|
91
|
+
transition: background-color var(--duration, 180ms) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
|
|
92
|
+
border-color var(--duration, 180ms) var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.chat-tile-container:hover {
|
|
96
|
+
background-color: color-mix(in srgb, var(--primary) 8%, var(--muted)) !important;
|
|
97
|
+
border-color: color-mix(in srgb, var(--primary) 28%, transparent);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.chat-tile-container:active {
|
|
101
|
+
transform: scale(0.99);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.chat-tile-container.is-selected {
|
|
105
|
+
background-color: color-mix(in srgb, var(--primary) 10%, var(--muted)) !important;
|
|
106
|
+
border-color: color-mix(in srgb, var(--primary) 40%, transparent);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.image-container {
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
border-radius: var(--radius-sm);
|
|
113
|
+
border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.image-container img,
|
|
117
|
+
.image-container > * {
|
|
118
|
+
border-radius: var(--radius-sm) !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.content-container {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
width: 100%;
|
|
125
|
+
min-width: 0;
|
|
126
|
+
gap: 4px;
|
|
127
|
+
}
|
|
128
|
+
.username-container {
|
|
129
|
+
display: flex;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
width: 100%;
|
|
132
|
+
gap: 8px;
|
|
133
|
+
}
|
|
134
|
+
.username {
|
|
135
|
+
max-width: 70%;
|
|
136
|
+
white-space: nowrap;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
text-overflow: ellipsis;
|
|
139
|
+
flex: 1;
|
|
140
|
+
display: flex;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.chat-preview-container {
|
|
144
|
+
display: grid;
|
|
145
|
+
grid-template-columns: 1fr auto;
|
|
146
|
+
gap: 10px;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
width: 100%;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.chat-preview {
|
|
153
|
+
white-space: nowrap;
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
text-overflow: ellipsis;
|
|
156
|
+
flex: 1;
|
|
157
|
+
text-align: left;
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.message-status {
|
|
163
|
+
display: inline-flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
height: 16px;
|
|
166
|
+
}
|
|
167
|
+
`;
|
|
168
|
+
|
|
169
|
+
constructor() {
|
|
170
|
+
super();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
updated(changedProperties) {
|
|
174
|
+
super.updated(changedProperties);
|
|
175
|
+
if (changedProperties.has('isRead') || changedProperties.has('isDelivered') || changedProperties.has('isPending')) {
|
|
176
|
+
this.requestUpdate();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
render() {
|
|
182
|
+
const mediaIcon = getMediaIcon(this.mediaType);
|
|
183
|
+
|
|
184
|
+
return html`
|
|
185
|
+
<div class="chat-tile-container ${this.isSelected ? 'is-selected' : ''}" style=" position: relative; background-color: ${this.isSelected ? (this.sidebarSelectedColor || 'var(--muted)') : (this.bgColor || 'var(--bg-primary-color)')}; border-width: ${
|
|
186
|
+
this.borderWidth || '1px'
|
|
187
|
+
};
|
|
188
|
+
border-color: ${this.borderColor || 'color-mix(in srgb, var(--primary) 16%, transparent)'};border-style: ${this.borderStyle || 'solid'};
|
|
189
|
+
height: ${this.height || 'auto'};width: ${this.width || 'auto'}; padding: ${this.padding || '14px 14px'}; gap: ${this.gap || '12px'};
|
|
190
|
+
">
|
|
191
|
+
${
|
|
192
|
+
this.suffix
|
|
193
|
+
? html`<div
|
|
194
|
+
class="suffix-container"
|
|
195
|
+
style=" padding: 3px 10px; border-radius: 12px; font-size: 14px; background-color: ${this.suffixBgColor}; color: ${this
|
|
196
|
+
.suffixColor}; position: absolute; top: 25%; right: 10px; "
|
|
197
|
+
>
|
|
198
|
+
${this.suffix}
|
|
199
|
+
</div>`
|
|
200
|
+
: ''
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
<div class="image-container" style="height: ${this.imageHeight || '48px'}; width: ${this.imageWidth || '48px'}">
|
|
204
|
+
${Image({
|
|
205
|
+
src: this.imageSrc,
|
|
206
|
+
alt: 'chat image',
|
|
207
|
+
height: this.imageHeight || '48px',
|
|
208
|
+
width: this.imageWidth || '48px',
|
|
209
|
+
borderRadius: this.imageRadius || 'var(--radius-sm)',
|
|
210
|
+
objectFit: 'cover',
|
|
211
|
+
placeholderImage: generateProfileImageByInitials(this.username )
|
|
212
|
+
})}
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
<div class="content-container">
|
|
216
|
+
<div class="username-container">
|
|
217
|
+
<div class="username" style="padding: ${this.usernamePadding};">
|
|
218
|
+
${Text({
|
|
219
|
+
content: this.username,
|
|
220
|
+
color: this.userNameColor,
|
|
221
|
+
fontFamily: this.userNameFontFamily,
|
|
222
|
+
fontWeight: this.userNameFontWeight,
|
|
223
|
+
fontSize: this.usernameFontSize,
|
|
224
|
+
fontStyle: this.usernameFontStyle,
|
|
225
|
+
textAlign: 'left',
|
|
226
|
+
overflow: 'hidden',
|
|
227
|
+
})}
|
|
228
|
+
</div>
|
|
229
|
+
${MessageUnreadCount({
|
|
230
|
+
content: this.unreadCount,
|
|
231
|
+
...(this.unreadCount > 0
|
|
232
|
+
? {
|
|
233
|
+
color: this.unreadCountColor,
|
|
234
|
+
fontSize: this.unreadCountFontSize,
|
|
235
|
+
backgroundColor: this.unreadCountBgColor,
|
|
236
|
+
borderRadius: this.unreadCountBorderRadius,
|
|
237
|
+
width: this.unreadCountWidth,
|
|
238
|
+
height: this.unreadCountHeight,
|
|
239
|
+
}
|
|
240
|
+
: {}), // Only pass these properties if unreadCount > 0
|
|
241
|
+
})}
|
|
242
|
+
|
|
243
|
+
</div>
|
|
244
|
+
|
|
245
|
+
<div class="chat-preview-container">
|
|
246
|
+
|
|
247
|
+
<div class="chat-preview"
|
|
248
|
+
style="padding: ${this.chatPreviewPadding};">
|
|
249
|
+
${this.isSelfMessage && !this.isTyping && this.chatPreview !== "" ? html`
|
|
250
|
+
<span class="message-status" style="margin-left: 4px;">
|
|
251
|
+
${this.isRead
|
|
252
|
+
? html`<blue-read-mark></blue-read-mark>`
|
|
253
|
+
: this.isDelivered === true
|
|
254
|
+
? html`<double-mark svgFillColor="${this.chatPreviewColor}"></double-mark>`
|
|
255
|
+
: this.isPending ? html`<clock-mark></clock-mark>` : html`<single-mark></single-mark>`
|
|
256
|
+
}
|
|
257
|
+
</span>
|
|
258
|
+
` : ''}
|
|
259
|
+
${mediaIcon}
|
|
260
|
+
${Text({
|
|
261
|
+
content: this.isTyping ? (this.typingUserName ? this.typingUserName + ' ' + 'Typing...' : 'Typing...') : this.chatPreview,
|
|
262
|
+
color: this.chatPreviewColor,
|
|
263
|
+
fontFamily: this.chatPreviewFontFamily,
|
|
264
|
+
fontWeight: this.chatPreviewFontWeight,
|
|
265
|
+
fontSize: this.chatPreviewFontSize,
|
|
266
|
+
fontStyle: this.chatPreviewFontStyle,
|
|
267
|
+
textAlign: 'left',
|
|
268
|
+
maxWidth: '100%',
|
|
269
|
+
})}
|
|
270
|
+
|
|
271
|
+
</div>
|
|
272
|
+
<div class="message-date" style="padding: ${this.messageDatePadding};">
|
|
273
|
+
${Text({
|
|
274
|
+
content: this.messageDate,
|
|
275
|
+
color: this.messageDateColor,
|
|
276
|
+
fontFamily: this.messageDateFontFamily,
|
|
277
|
+
fontWeight: this.messageDateFontWeight,
|
|
278
|
+
fontSize: this.messageDateFontSize,
|
|
279
|
+
fontStyle: this.messageDateFontStyle,
|
|
280
|
+
})}
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
`;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
customElements.define('chat-tile', ChatTile);
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import "./ChatTile"
|
|
2
|
+
import { html } from "lit"
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title:'Molecules/ChatTile',
|
|
6
|
+
component:'chat-tile',
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
imageSrc: {control :'text'},
|
|
10
|
+
imageAlt: {control :'text'},
|
|
11
|
+
imageHeight: {control :'text'},
|
|
12
|
+
imageWidth: {control :'text'},
|
|
13
|
+
imageRadius: {control :'text'},
|
|
14
|
+
|
|
15
|
+
username: {control :'text'},
|
|
16
|
+
usernameColor: {control :'color'},
|
|
17
|
+
userNameFontFamily: {control :'text'},
|
|
18
|
+
userNameFontWeight: {control :'text'},
|
|
19
|
+
usernameFontSize: {control :'text'},
|
|
20
|
+
usernameFontStyle: {control :'text'},
|
|
21
|
+
|
|
22
|
+
chatPreview: {control :'text'},
|
|
23
|
+
chatPreviewColor: {control :'color'},
|
|
24
|
+
chatPreviewFontFamily: {control :'text'},
|
|
25
|
+
chatPreviewFontWeight: {control :'text'},
|
|
26
|
+
chatPreviewFontSize: {control :'text'},
|
|
27
|
+
chatPreviewFontStyle: {control :'text'},
|
|
28
|
+
|
|
29
|
+
unreadCount: {control :'number'},
|
|
30
|
+
unreadCountColor: {control :'color'},
|
|
31
|
+
unreadCountFontSize: {control :'text'},
|
|
32
|
+
unreadCountBgColor: {control :'color'},
|
|
33
|
+
unreadCountBorderRadius: {control :'text'},
|
|
34
|
+
|
|
35
|
+
messageDate: {control :'text'},
|
|
36
|
+
messageDateColor: {control :'color'},
|
|
37
|
+
messageDateFontSize: {control :'text'},
|
|
38
|
+
messageDateFontFamily: {control :'text'},
|
|
39
|
+
messageDateFontWeight: {control :'text'},
|
|
40
|
+
messageDateFontStyle: {control :'text'},
|
|
41
|
+
|
|
42
|
+
padding: {control :'text'},
|
|
43
|
+
usernamePadding: {control :'text'},
|
|
44
|
+
chatPreviewPadding: {control :'text'},
|
|
45
|
+
messageDatePadding: {control :'text'},
|
|
46
|
+
bgColor: {control :'color'},
|
|
47
|
+
borderWidth: {control :'text'},
|
|
48
|
+
borderColor: {control :'color'},
|
|
49
|
+
borderStyle: {control :'text'},
|
|
50
|
+
height: {control :'text'},
|
|
51
|
+
width: {control :'text'},
|
|
52
|
+
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
render: (args) => html`
|
|
56
|
+
<chat-tile
|
|
57
|
+
imageSrc=${args.imageSrc || 'https://i.etsystatic.com/7251436/r/il/4fc56c/5398499035/il_570xN.5398499035_rnzx.jpg'}
|
|
58
|
+
.imageAlt=${args.imageAlt || 'image'}
|
|
59
|
+
.imageHeight=${args.imageHeight || '100px'}
|
|
60
|
+
.imageWidth=${args.imageWidth || '100px'}
|
|
61
|
+
.imageRadius=${args.imageRadius || '50%'}
|
|
62
|
+
.username=${args.username || 'username'}
|
|
63
|
+
.usernameColor=${args.usernameColor || 'black'}
|
|
64
|
+
.userNameFontFamily=${args.userNameFontFamily || 'sans-serif'}
|
|
65
|
+
.userNameFontWeight=${args.userNameFontWeight || 'normal'}
|
|
66
|
+
.usernameFontSize=${args.usernameFontSize || '18px'}
|
|
67
|
+
.usernameFontStyle=${args.usernameFontStyle || 'normal'}
|
|
68
|
+
.chatPreview=${args.chatPreview || 'chat preview'}
|
|
69
|
+
.chatPreviewColor=${args.chatPreviewColor || 'black'}
|
|
70
|
+
.chatPreviewFontFamily=${args.chatPreviewFontFamily || 'sans-serif'}
|
|
71
|
+
.chatPreviewFontWeight=${args.chatPreviewFontWeight || 'normal'}
|
|
72
|
+
.chatPreviewFontSize=${args.chatPreviewFontSize || '14px'}
|
|
73
|
+
.chatPreviewFontStyle=${args.chatPreviewFontStyle || 'normal'}
|
|
74
|
+
.unreadCount=${args.unreadCount }
|
|
75
|
+
.unreadCountColor=${args.unreadCountColor }
|
|
76
|
+
.unreadCountFontSize=${args.unreadCountFontSize }
|
|
77
|
+
.unreadCountBgColor=${args.unreadCountBgColor}
|
|
78
|
+
.unreadCountBorderRadius=${args.unreadCountBorderRadius || '50%'}
|
|
79
|
+
.messageDate=${args.messageDate || 'message date'}
|
|
80
|
+
.messageDateColor=${args.messageDateColor || 'black'}
|
|
81
|
+
.messageDateFontSize=${args.messageDateFontSize || '14px'}
|
|
82
|
+
.messageDateFontFamily=${args.messageDateFontFamily || 'sans-serif'}
|
|
83
|
+
.messageDateFontWeight=${args.messageDateFontWeight || 'normal'}
|
|
84
|
+
.messageDateFontStyle=${args.messageDateFontStyle || 'normal'}
|
|
85
|
+
.padding=${args.padding || '10px'}
|
|
86
|
+
.usernamePadding=${args.usernamePadding || '10px'}
|
|
87
|
+
.chatPreviewPadding=${args.chatPreviewPadding || '10px'}
|
|
88
|
+
.messageDatePadding=${args.messageDatePadding || '10px'}
|
|
89
|
+
.bgColor=${args.bgColor || 'white'}
|
|
90
|
+
.borderWidth=${args.borderWidth || '1px'}
|
|
91
|
+
.borderColor=${args.borderColor || 'black'}
|
|
92
|
+
.borderStyle=${args.borderStyle || 'solid'}
|
|
93
|
+
.height=${args.height || 'fit-content'}
|
|
94
|
+
.width=${args.width || 'fit-content'}
|
|
95
|
+
>
|
|
96
|
+
</chat-tile>
|
|
97
|
+
`
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export const AllMessageReadChat = {
|
|
101
|
+
args:{
|
|
102
|
+
imageSrc: "https://media.istockphoto.com/id/177391994/photo/ak-47.jpg?s=612x612&w=0&k=20&c=pQdMDkKBDPxNcGqarM2gZ2ySOAM5pXozSve8FmAPvW8=",
|
|
103
|
+
imageAlt: "image",
|
|
104
|
+
imageHeight: "64px",
|
|
105
|
+
imageWidth: "64px",
|
|
106
|
+
imageRadius: "50%",
|
|
107
|
+
username: "Elon musk Kanpur wale",
|
|
108
|
+
bgColor: "#fff",
|
|
109
|
+
height: "",
|
|
110
|
+
width: "500px",
|
|
111
|
+
unreadCount: "",
|
|
112
|
+
borderStyle: "solid",
|
|
113
|
+
borderColor: "#D7D7D7",
|
|
114
|
+
borderWidth: "0 0 2px 0",
|
|
115
|
+
messageDatePadding: "5px",
|
|
116
|
+
chatPreviewPadding: "5px",
|
|
117
|
+
usernamePadding: "5px",
|
|
118
|
+
padding: "10px",
|
|
119
|
+
messageDateFontStyle: "sans-serif",
|
|
120
|
+
messageDateFontWeight: "500",
|
|
121
|
+
messageDateFontFamily: "sans-serif",
|
|
122
|
+
messageDateFontSize: "18px",
|
|
123
|
+
messageDateColor: "#D7D7D7",
|
|
124
|
+
messageDate: "Yesterday",
|
|
125
|
+
chatPreviewFontStyle: "",
|
|
126
|
+
chatPreviewFontSize: "16px",
|
|
127
|
+
chatPreviewFontWeight: "400",
|
|
128
|
+
chatPreviewFontFamily: "sans-serif",
|
|
129
|
+
chatPreviewColor: "#5F596B",
|
|
130
|
+
chatPreview: "kjnkklkjlkjlkjjkjlkjlkjlkjlkjkljlkjkljkjlkjlkjlkjlkjkjjlkjlkjlkjlkjlkjlkjkjlkjlkjlkjlkjlkjlkjlkjlkjlkjlkjlkjlkjjjjjjjjj",
|
|
131
|
+
usernameFontStyle: "sans-serif",
|
|
132
|
+
usernameFontSize: "18px",
|
|
133
|
+
userNameFontWeight: "600",
|
|
134
|
+
userNameFontFamily: ""
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export const UnreadChat = {
|
|
139
|
+
args:{
|
|
140
|
+
imageSrc: "https://media.istockphoto.com/id/177391994/photo/ak-47.jpg?s=612x612&w=0&k=20&c=pQdMDkKBDPxNcGqarM2gZ2ySOAM5pXozSve8FmAPvW8=",
|
|
141
|
+
imageAlt: "image",
|
|
142
|
+
imageHeight: "64px",
|
|
143
|
+
imageWidth: "64px",
|
|
144
|
+
imageRadius: "50%",
|
|
145
|
+
username: "Elon musk Kanpur wale",
|
|
146
|
+
bgColor: "#fff",
|
|
147
|
+
height: "",
|
|
148
|
+
width: "500px",
|
|
149
|
+
unreadCount: 8,
|
|
150
|
+
borderStyle: "solid",
|
|
151
|
+
borderColor: "#D7D7D7",
|
|
152
|
+
borderWidth: "0 0 2px 0",
|
|
153
|
+
messageDatePadding: "5px",
|
|
154
|
+
chatPreviewPadding: "5px",
|
|
155
|
+
usernamePadding: "5px",
|
|
156
|
+
padding: "10px",
|
|
157
|
+
messageDateFontStyle: "sans-serif",
|
|
158
|
+
messageDateFontWeight: "500",
|
|
159
|
+
messageDateFontFamily: "sans-serif",
|
|
160
|
+
messageDateFontSize: "18px",
|
|
161
|
+
messageDateColor: "purple",
|
|
162
|
+
messageDatePadding: '0px',
|
|
163
|
+
messageDate: "Yesterday",
|
|
164
|
+
chatPreviewFontStyle: "",
|
|
165
|
+
chatPreviewFontSize: "16px",
|
|
166
|
+
chatPreviewFontWeight: "400",
|
|
167
|
+
chatPreviewFontFamily: "sans-serif",
|
|
168
|
+
chatPreviewColor: "#5F596B",
|
|
169
|
+
chatPreview: "kjnkklkjlkjlkjjkjlkjlkjlkjlkjkljlkjkljkjlkjlkjlkjlkjkjjlkjlkjlkjlkjlkjlkjkjlkjlkjlkjlkjlkjlkjlkjlkjlkjlkjlkjlkjjjjjjjjj",
|
|
170
|
+
usernameFontStyle: "sans-serif",
|
|
171
|
+
usernameFontSize: "18px",
|
|
172
|
+
userNameFontWeight: "600",
|
|
173
|
+
userNameFontFamily: "",
|
|
174
|
+
unreadCount: "9+",
|
|
175
|
+
unreadCountColor: "#fff",
|
|
176
|
+
unreadCountFontSize: "12px",
|
|
177
|
+
unreadCountBgColor: "purple",
|
|
178
|
+
unreadCountBorderRadius: "50%",
|
|
179
|
+
}
|
|
180
|
+
}
|