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,337 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit-element';
|
|
2
|
+
import { debounce, generateProfileImageByInitials } from '../../../lib/helpers';
|
|
3
|
+
import { Image } from '../Image/Image';
|
|
4
|
+
import { drawerDialogService } from '../Dialog-Drawer/dialog-drawer';
|
|
5
|
+
|
|
6
|
+
export class BlockedUsers extends LitElement {
|
|
7
|
+
static get properties() {
|
|
8
|
+
return {
|
|
9
|
+
blockedUsers: { type: Array },
|
|
10
|
+
isLoading: { type: Boolean },
|
|
11
|
+
paginationLoading: { type: Boolean },
|
|
12
|
+
hasMore: { type: Boolean },
|
|
13
|
+
handleUnblock: { type: Function },
|
|
14
|
+
goBack: { type: Function },
|
|
15
|
+
findBlokedUser: { type: Function },
|
|
16
|
+
skip: { type: Number },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
this.blockedUsers = [];
|
|
23
|
+
this.isLoading = false;
|
|
24
|
+
this.handleUnblock = () => {};
|
|
25
|
+
this.goBack = () => {};
|
|
26
|
+
this.searchTerm = '';
|
|
27
|
+
this.debouncedSearchHandler = debounce(query => {
|
|
28
|
+
this.findBlokedUser(query);
|
|
29
|
+
}, 500);
|
|
30
|
+
}
|
|
31
|
+
handleScroll(event) {
|
|
32
|
+
const element = event.target;
|
|
33
|
+
const threshold = 10;
|
|
34
|
+
if (element.scrollHeight - element.scrollTop <= element.clientHeight + threshold && this.hasMore && !this.paginationLoading) {
|
|
35
|
+
this.findBlokedUser(null, this.skip + 20);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
handleSearch(e) {
|
|
39
|
+
this.searchTerm = e.target.value;
|
|
40
|
+
this.debouncedSearchHandler(this.searchTerm);
|
|
41
|
+
}
|
|
42
|
+
unBlockUser(user){
|
|
43
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
44
|
+
title: `Unblock`,
|
|
45
|
+
description: `Are you sure you want to unblock ${user.userName} ?`,
|
|
46
|
+
handleConfirm:() => this.handleUnblock(user.userId)
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return html`
|
|
51
|
+
<div class="blocked-users-container">
|
|
52
|
+
<div class="header">
|
|
53
|
+
<button class="back-button" @click=${this.goBack}>
|
|
54
|
+
<svg
|
|
55
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
56
|
+
width="24"
|
|
57
|
+
height="24"
|
|
58
|
+
viewBox="0 0 24 24"
|
|
59
|
+
fill="none"
|
|
60
|
+
stroke="currentColor"
|
|
61
|
+
stroke-width="2"
|
|
62
|
+
stroke-linecap="round"
|
|
63
|
+
stroke-linejoin="round"
|
|
64
|
+
>
|
|
65
|
+
<line x1="19" y1="12" x2="5" y2="12"></line>
|
|
66
|
+
<polyline points="12 19 5 12 12 5"></polyline>
|
|
67
|
+
</svg>
|
|
68
|
+
</button>
|
|
69
|
+
<h2>Blocked Users</h2>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="search-container">
|
|
72
|
+
<div class="search-input-wrapper">
|
|
73
|
+
<svg
|
|
74
|
+
class="search-icon"
|
|
75
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
76
|
+
width="18"
|
|
77
|
+
height="18"
|
|
78
|
+
viewBox="0 0 24 24"
|
|
79
|
+
fill="none"
|
|
80
|
+
stroke="currentColor"
|
|
81
|
+
stroke-width="2"
|
|
82
|
+
stroke-linecap="round"
|
|
83
|
+
stroke-linejoin="round"
|
|
84
|
+
>
|
|
85
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
86
|
+
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
|
87
|
+
</svg>
|
|
88
|
+
<input type="text" class="search-input" placeholder="Search users..." .value=${this.searchTerm} @input=${this.handleSearch} />
|
|
89
|
+
${this.searchTerm
|
|
90
|
+
? html`
|
|
91
|
+
<button
|
|
92
|
+
class="clear-search"
|
|
93
|
+
@click=${() => {
|
|
94
|
+
this.searchTerm = '';
|
|
95
|
+
this.shadowRoot.querySelector('.search-input').value = '';
|
|
96
|
+
this.findBlokedUser();
|
|
97
|
+
}}
|
|
98
|
+
>
|
|
99
|
+
<svg
|
|
100
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
101
|
+
width="18"
|
|
102
|
+
height="18"
|
|
103
|
+
viewBox="0 0 24 24"
|
|
104
|
+
fill="none"
|
|
105
|
+
stroke="currentColor"
|
|
106
|
+
stroke-width="2"
|
|
107
|
+
stroke-linecap="round"
|
|
108
|
+
stroke-linejoin="round"
|
|
109
|
+
>
|
|
110
|
+
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
111
|
+
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
112
|
+
</svg>
|
|
113
|
+
</button>
|
|
114
|
+
`
|
|
115
|
+
: ''}
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
${this.isLoading
|
|
120
|
+
? html`
|
|
121
|
+
<div class="loading-spinner">
|
|
122
|
+
<spinner-loader
|
|
123
|
+
height="30px"
|
|
124
|
+
width="30px"
|
|
125
|
+
spinTime="1s"
|
|
126
|
+
spinnerPrimaryColor="var(--bg-primary-color)"
|
|
127
|
+
spinnerSecondaryColor="var(--text-primary-color)"
|
|
128
|
+
spinnerBorderWidth="2px"
|
|
129
|
+
>
|
|
130
|
+
</spinner-loader>
|
|
131
|
+
</div>
|
|
132
|
+
`
|
|
133
|
+
: this.blockedUsers?.length === 0
|
|
134
|
+
? html`<div class="empty-state">${this.searchTerm ? `No users found matching "${this.searchTerm}".` : "You haven't blocked any users yet."}</div>`
|
|
135
|
+
: html`
|
|
136
|
+
<div class="users-list" @scroll=${this.handleScroll}>
|
|
137
|
+
${this.blockedUsers?.map(
|
|
138
|
+
user => html`
|
|
139
|
+
<div class="user-item">
|
|
140
|
+
<div class="user-info">
|
|
141
|
+
<div class="user-avatar">
|
|
142
|
+
${user.userProfileImageUrl
|
|
143
|
+
? html`${Image({
|
|
144
|
+
src: user.userProfileImageUrl,
|
|
145
|
+
alt: `${user.userName}'s profile picture`,
|
|
146
|
+
width: '40px',
|
|
147
|
+
height: '40px',
|
|
148
|
+
objectFit: 'cover',
|
|
149
|
+
borderRadius: '50%',
|
|
150
|
+
placeholderImage: generateProfileImageByInitials(user.userName, 40, 40),
|
|
151
|
+
})}`
|
|
152
|
+
: html`<div class="avatar-placeholder">${generateProfileImageByInitials(user.userName)}</div>`}
|
|
153
|
+
</div>
|
|
154
|
+
<div class="user-name">${user.userName}</div>
|
|
155
|
+
</div>
|
|
156
|
+
<button class="unblock-button" @click=${() => this.unBlockUser(user)}>Unblock</button>
|
|
157
|
+
</div>
|
|
158
|
+
`,
|
|
159
|
+
)}
|
|
160
|
+
${this.paginationLoading
|
|
161
|
+
? html`
|
|
162
|
+
<div>
|
|
163
|
+
<spinner-loader
|
|
164
|
+
height="30px"
|
|
165
|
+
width="30px"
|
|
166
|
+
spinTime="1s"
|
|
167
|
+
spinnerPrimaryColor="var(--bg-primary-color)"
|
|
168
|
+
spinnerSecondaryColor="var(--text-primary-color)"
|
|
169
|
+
spinnerBorderWidth="2px"
|
|
170
|
+
>
|
|
171
|
+
</spinner-loader>
|
|
172
|
+
</div>
|
|
173
|
+
`
|
|
174
|
+
: null}
|
|
175
|
+
</div>
|
|
176
|
+
`}
|
|
177
|
+
</div>
|
|
178
|
+
`;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
static get styles() {
|
|
182
|
+
return css`
|
|
183
|
+
:host {
|
|
184
|
+
height: 96% !important;
|
|
185
|
+
}
|
|
186
|
+
.blocked-users-container {
|
|
187
|
+
padding: 5px;
|
|
188
|
+
height: 100%;
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.header {
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
padding: 10px 0;
|
|
197
|
+
margin-bottom: 20px;
|
|
198
|
+
border-bottom: 1px solid var(--bg-grey-color);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.back-button {
|
|
202
|
+
background: none;
|
|
203
|
+
border: none;
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
padding: 5px;
|
|
206
|
+
display: flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
color: var(--text-outgoing-message);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
h2 {
|
|
212
|
+
margin: 0 0 0 10px;
|
|
213
|
+
font-size: 22px;
|
|
214
|
+
font-weight: 500;
|
|
215
|
+
color: var(--text-outgoing-message);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.loading-spinner {
|
|
219
|
+
display: flex;
|
|
220
|
+
justify-content: center;
|
|
221
|
+
align-items: center;
|
|
222
|
+
height: 100%;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.empty-state {
|
|
226
|
+
text-align: center;
|
|
227
|
+
padding: 40px 20px;
|
|
228
|
+
color: var(--text-secondary-color);
|
|
229
|
+
font-size: 16px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.users-list {
|
|
233
|
+
display: flex;
|
|
234
|
+
flex-direction: column;
|
|
235
|
+
gap: 12px;
|
|
236
|
+
height: calc(100vh - 100px);
|
|
237
|
+
overflow-y: auto;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.user-item {
|
|
241
|
+
display: flex;
|
|
242
|
+
justify-content: space-between;
|
|
243
|
+
align-items: center;
|
|
244
|
+
padding: 8px;
|
|
245
|
+
border-bottom: 1px solid var(--bg-grey-color);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.user-info {
|
|
249
|
+
display: flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
gap: 12px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.user-avatar {
|
|
255
|
+
width: 40px;
|
|
256
|
+
height: 40px;
|
|
257
|
+
border-radius: 50%;
|
|
258
|
+
overflow: hidden;
|
|
259
|
+
}
|
|
260
|
+
.search-container {
|
|
261
|
+
margin-bottom: 20px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.search-input-wrapper {
|
|
265
|
+
position: relative;
|
|
266
|
+
display: flex;
|
|
267
|
+
align-items: center;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.search-icon {
|
|
271
|
+
position: absolute;
|
|
272
|
+
left: 10px;
|
|
273
|
+
color: var(--text-secondary-color);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.search-input {
|
|
277
|
+
width: 100%;
|
|
278
|
+
padding: 10px 10px 10px 36px;
|
|
279
|
+
border-radius: 8px;
|
|
280
|
+
border: 1px solid var(--bg-grey-color);
|
|
281
|
+
background-color: var(--bg-grey-color);
|
|
282
|
+
color: var(--text-outgoing-message);
|
|
283
|
+
font-size: 14px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.search-input:focus {
|
|
287
|
+
outline: none;
|
|
288
|
+
border-color: var(--bg-incoming-message);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.clear-search {
|
|
292
|
+
position: absolute;
|
|
293
|
+
right: 10px;
|
|
294
|
+
background: none;
|
|
295
|
+
border: none;
|
|
296
|
+
cursor: pointer;
|
|
297
|
+
color: var(--text-secondary-color);
|
|
298
|
+
display: flex;
|
|
299
|
+
align-items: center;
|
|
300
|
+
justify-content: center;
|
|
301
|
+
padding: 0;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.avatar-placeholder {
|
|
305
|
+
width: 100%;
|
|
306
|
+
height: 100%;
|
|
307
|
+
display: flex;
|
|
308
|
+
align-items: center;
|
|
309
|
+
justify-content: center;
|
|
310
|
+
background-color: var(--bg-incoming-message);
|
|
311
|
+
color: var(--text-incoming-message);
|
|
312
|
+
font-weight: 500;
|
|
313
|
+
font-size: 16px;
|
|
314
|
+
}
|
|
315
|
+
.user-name {
|
|
316
|
+
font-size: 16px;
|
|
317
|
+
color: var(--text-outgoing-message);
|
|
318
|
+
}
|
|
319
|
+
.unblock-button {
|
|
320
|
+
background-color: var(--base-color);
|
|
321
|
+
color: var(--text-outgoing-message);
|
|
322
|
+
border: none;
|
|
323
|
+
border-radius: 4px;
|
|
324
|
+
padding: 6px 12px;
|
|
325
|
+
font-size: 14px;
|
|
326
|
+
cursor: pointer;
|
|
327
|
+
transition: background-color 0.2s;
|
|
328
|
+
}
|
|
329
|
+
.unblock-button:hover {
|
|
330
|
+
background-color: var(--bg-incoming-message);
|
|
331
|
+
color: var(--text-incoming-message);
|
|
332
|
+
}
|
|
333
|
+
`;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
customElements.define('blocked-users-list', BlockedUsers);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { Text } from '../Text/Text.js'
|
|
3
|
+
import {Custom,Default } from '../Text/Text.stories.js';
|
|
4
|
+
import '../Time/Timestamp.js'
|
|
5
|
+
import './Body.css'
|
|
6
|
+
|
|
7
|
+
import { CenteredText } from '../TextStyle/TextStyle.stories.js'
|
|
8
|
+
import {Textcenter} from '../TextStyle/TextStyle.js'
|
|
9
|
+
|
|
10
|
+
export const AnotherComponent = () => html`
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<div class="body_section">
|
|
14
|
+
|
|
15
|
+
<section>
|
|
16
|
+
${Textcenter(CenteredText.args)}
|
|
17
|
+
</section>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
<section class="textstyle centertext">
|
|
21
|
+
${Text(Custom.args)}
|
|
22
|
+
<div class="text-box">
|
|
23
|
+
<timestamp-element
|
|
24
|
+
time=${new Date().toISOString()}
|
|
25
|
+
color="black"
|
|
26
|
+
fontSize="8px"
|
|
27
|
+
textAlign="right"
|
|
28
|
+
fontFamily="Arial, sans-serif"
|
|
29
|
+
></timestamp-element>
|
|
30
|
+
</div>
|
|
31
|
+
</section>
|
|
32
|
+
<section class="textstyle defaulttext">
|
|
33
|
+
${Text(Default.args)}
|
|
34
|
+
<div class="text-boxes">
|
|
35
|
+
<timestamp-element
|
|
36
|
+
time=${new Date().toISOString()}
|
|
37
|
+
color="black"
|
|
38
|
+
fontSize="8px"
|
|
39
|
+
textAlign="right"
|
|
40
|
+
fontFamily="Arial, sans-serif"
|
|
41
|
+
></timestamp-element>
|
|
42
|
+
</div>
|
|
43
|
+
</section>
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
export default AnotherComponent
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { AnotherComponent } from './Body';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Molecules/Body',
|
|
6
|
+
tags: ['autodocs'],
|
|
7
|
+
render: () => AnotherComponent(),
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const CustomView = {
|
|
12
|
+
render: () => html`
|
|
13
|
+
<div>
|
|
14
|
+
|
|
15
|
+
${AnotherComponent({
|
|
16
|
+
text: {
|
|
17
|
+
content: 'Need some photos. It will be helpful to assess the workload',
|
|
18
|
+
color: 'black',
|
|
19
|
+
fontSize: '16px',
|
|
20
|
+
textAlign: 'left',
|
|
21
|
+
fontWeight: 'bolder',
|
|
22
|
+
fontStyle: 'oblique',
|
|
23
|
+
backgroundColor: '#EFF1FA',
|
|
24
|
+
borderColor: '#EFF1FA',
|
|
25
|
+
borderWidth: '10px',
|
|
26
|
+
borderStyle: 'solid',
|
|
27
|
+
borderRadius: '4px',
|
|
28
|
+
fontFamily: 'Georgia, serif'
|
|
29
|
+
}
|
|
30
|
+
})}
|
|
31
|
+
</div>
|
|
32
|
+
`,
|
|
33
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
3
|
+
import './Buttons.css';
|
|
4
|
+
|
|
5
|
+
export const Button = ({
|
|
6
|
+
primary,
|
|
7
|
+
backgroundColor = null,
|
|
8
|
+
backgroundImage = null,
|
|
9
|
+
size,
|
|
10
|
+
label,
|
|
11
|
+
onClick,
|
|
12
|
+
fontSize,
|
|
13
|
+
fontFamily,
|
|
14
|
+
borderWidth,
|
|
15
|
+
borderColor,
|
|
16
|
+
borderRadius,
|
|
17
|
+
textColor,
|
|
18
|
+
textAlign,
|
|
19
|
+
width,
|
|
20
|
+
height,
|
|
21
|
+
fontStyle,
|
|
22
|
+
fontWeight,
|
|
23
|
+
cursor
|
|
24
|
+
}) => {
|
|
25
|
+
const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
|
|
26
|
+
|
|
27
|
+
const styles = {
|
|
28
|
+
backgroundColor,
|
|
29
|
+
backgroundImage: backgroundImage ? `url(${backgroundImage})` : 'none',
|
|
30
|
+
backgroundSize: 'cover',
|
|
31
|
+
backgroundPosition: 'center',
|
|
32
|
+
fontSize,
|
|
33
|
+
fontFamily,
|
|
34
|
+
borderWidth,
|
|
35
|
+
borderColor,
|
|
36
|
+
borderStyle: 'solid',
|
|
37
|
+
borderRadius,
|
|
38
|
+
color: textColor,
|
|
39
|
+
textAlign,
|
|
40
|
+
width,
|
|
41
|
+
height,
|
|
42
|
+
fontStyle,
|
|
43
|
+
fontWeight,
|
|
44
|
+
cursor: 'pointer'
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const handleKeyDown = (e) => {
|
|
48
|
+
if (e.key === 'Enter') {
|
|
49
|
+
console.log('enter is pressed')
|
|
50
|
+
onClick();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
return html`
|
|
55
|
+
<button
|
|
56
|
+
type="button"
|
|
57
|
+
class=${['storybook-button', `storybook-button--${size || 'medium'}`, mode].join(' ')}
|
|
58
|
+
style='${styleMap(styles)}'
|
|
59
|
+
@click=${onClick}
|
|
60
|
+
@keydown=${handleKeyDown}
|
|
61
|
+
>
|
|
62
|
+
${label}
|
|
63
|
+
</button>
|
|
64
|
+
`;
|
|
65
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { fn } from '@storybook/test';
|
|
2
|
+
import { Button } from './Buttons';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Atoms/Button',
|
|
6
|
+
tags: ['autodocs'],
|
|
7
|
+
render: (args) => Button(args),
|
|
8
|
+
argTypes: {
|
|
9
|
+
backgroundColor: { control: 'color' },
|
|
10
|
+
backgroundImage: { control: 'text' },
|
|
11
|
+
size: {
|
|
12
|
+
control: { type: 'select' },
|
|
13
|
+
options: ['small', 'medium', 'large'],
|
|
14
|
+
},
|
|
15
|
+
fontSize: {
|
|
16
|
+
control: 'text',
|
|
17
|
+
description: 'Set the font size of the button',
|
|
18
|
+
table: {
|
|
19
|
+
defaultValue: { summary: 'inherit' },
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
fontFamily: {
|
|
23
|
+
control: 'text',
|
|
24
|
+
description: 'Set the font family of the button',
|
|
25
|
+
table: {
|
|
26
|
+
defaultValue: { summary: 'inherit' },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
borderWidth: {
|
|
30
|
+
control: 'text',
|
|
31
|
+
description: 'Set the border width of the button',
|
|
32
|
+
table: {
|
|
33
|
+
defaultValue: { summary: '1px' },
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
borderColor: {
|
|
37
|
+
control: 'color',
|
|
38
|
+
description: 'Set the border color of the button',
|
|
39
|
+
table: {
|
|
40
|
+
defaultValue: { summary: 'transparent' },
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
borderRadius: {
|
|
44
|
+
control: 'text',
|
|
45
|
+
description: 'Set the border radius of the button',
|
|
46
|
+
table: {
|
|
47
|
+
defaultValue: { summary: '4px' },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
textColor: {
|
|
51
|
+
control: 'color',
|
|
52
|
+
description: 'Set the text color of the button',
|
|
53
|
+
table: {
|
|
54
|
+
defaultValue: { summary: 'inherit' },
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
textAlign: {
|
|
58
|
+
control: 'select',
|
|
59
|
+
options: ['left', 'center', 'right'],
|
|
60
|
+
description: 'Set the text alignment of the button',
|
|
61
|
+
table: {
|
|
62
|
+
defaultValue: { summary: 'center' },
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
width: {
|
|
66
|
+
control: 'text',
|
|
67
|
+
description: 'Set the width of the button',
|
|
68
|
+
table: {
|
|
69
|
+
defaultValue: { summary: 'auto' },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
height: {
|
|
73
|
+
control: 'text',
|
|
74
|
+
description: 'Set the height of the button',
|
|
75
|
+
table: {
|
|
76
|
+
defaultValue: { summary: 'auto' },
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
fontStyle: {
|
|
80
|
+
control: 'select',
|
|
81
|
+
options: ['normal', 'italic', 'oblique'],
|
|
82
|
+
description: 'Set the font style of the button',
|
|
83
|
+
table: {
|
|
84
|
+
defaultValue: { summary: 'normal' },
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
fontWeight: {
|
|
88
|
+
control: 'select',
|
|
89
|
+
options: ['normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
|
|
90
|
+
description: 'Set the font weight of the button',
|
|
91
|
+
table: {
|
|
92
|
+
defaultValue: { summary: 'normal' },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
},
|
|
97
|
+
args: {
|
|
98
|
+
onClick: fn(),
|
|
99
|
+
fontSize: 'inherit',
|
|
100
|
+
fontFamily: 'inherit',
|
|
101
|
+
borderWidth: '1px',
|
|
102
|
+
borderColor: 'transparent',
|
|
103
|
+
borderRadius: '4px',
|
|
104
|
+
textColor: 'inherit',
|
|
105
|
+
textAlign: 'center',
|
|
106
|
+
width: 'auto',
|
|
107
|
+
height: 'auto',
|
|
108
|
+
fontStyle: 'normal',
|
|
109
|
+
fontWeight: 'normal',
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export const Primary = {
|
|
114
|
+
args:{
|
|
115
|
+
primary:true,
|
|
116
|
+
label:'Button',
|
|
117
|
+
fontSize:"6px",
|
|
118
|
+
fontFamily:'Arial, sans-serif',
|
|
119
|
+
borderWidth:'5px',
|
|
120
|
+
borderColor:'#23ae37',
|
|
121
|
+
borderRadius:'40px',
|
|
122
|
+
textColor:'#d80541',
|
|
123
|
+
textAlign:'center',
|
|
124
|
+
width:'100px',
|
|
125
|
+
height:'50px',
|
|
126
|
+
size:'small',
|
|
127
|
+
fontStyle:'italic',
|
|
128
|
+
fontWeight:'bold',
|
|
129
|
+
backgroundImage:''
|
|
130
|
+
// https://images.unsplash.com/photo-1593642532973-d31b6557fa68
|
|
131
|
+
},
|
|
132
|
+
};
|