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,375 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Image = require('./Image-67c52acd.js');
|
|
4
|
+
const content = require('./content-eca5336c.js');
|
|
5
|
+
|
|
6
|
+
class DeletePopup extends Image.h {
|
|
7
|
+
static properties = {
|
|
8
|
+
bgColor: {type: String},
|
|
9
|
+
borderRadius: {type: String},
|
|
10
|
+
height: {type: String},
|
|
11
|
+
width: {type: String},
|
|
12
|
+
title: {type: String},
|
|
13
|
+
message: {type: String},
|
|
14
|
+
primaryButtonBgColor: {type: String},
|
|
15
|
+
primaryButtonTextColor: {type: String},
|
|
16
|
+
primaryButtonText: {type: String},
|
|
17
|
+
secondaryButtonText: {type: String},
|
|
18
|
+
secondaryButtonBgColor : {type: String},
|
|
19
|
+
secondaryButtonTextColor: {type: String},
|
|
20
|
+
handleConfirmRemove: {type: Function},
|
|
21
|
+
closeConfirmationPopup: {type: Function},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
static styles = Image.i`
|
|
25
|
+
.confirmation-popup {
|
|
26
|
+
position: fixed;
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
padding: 12px;
|
|
29
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
30
|
+
z-index: 1000;
|
|
31
|
+
top: 50%;
|
|
32
|
+
left: 50%;
|
|
33
|
+
transform: translate(-50%, -50%);
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.confirmation-popup svg {
|
|
41
|
+
align-self: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.confirmation-popup-title {
|
|
45
|
+
width: 75%;
|
|
46
|
+
display: block;
|
|
47
|
+
font-size: 22px;
|
|
48
|
+
color: var(--text-primary-color);
|
|
49
|
+
text-align: center;
|
|
50
|
+
}
|
|
51
|
+
.confirmation-popup-message {
|
|
52
|
+
width: 75%;
|
|
53
|
+
display: block;
|
|
54
|
+
font-size: 16px;
|
|
55
|
+
color: #a5a4a7;
|
|
56
|
+
text-align: center;
|
|
57
|
+
}
|
|
58
|
+
.confirmation-buttons {
|
|
59
|
+
display: flex;
|
|
60
|
+
gap: 8px;
|
|
61
|
+
margin-top: 30px;
|
|
62
|
+
width: 100%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.confirm-btn {
|
|
66
|
+
padding: 6px 26px;
|
|
67
|
+
border-radius: 4px;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
border: none;
|
|
70
|
+
width: 50%;
|
|
71
|
+
font-size: 18px;
|
|
72
|
+
height: 50px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
.background-overlay {
|
|
77
|
+
background: var(--popup-overlay);
|
|
78
|
+
width: 100vw;
|
|
79
|
+
height: 100vh;
|
|
80
|
+
position: fixed;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
top: 0;
|
|
85
|
+
left: 0;
|
|
86
|
+
z-index: 100;
|
|
87
|
+
}
|
|
88
|
+
@media (max-width: 768px) {
|
|
89
|
+
.confirmation-popup {
|
|
90
|
+
width: 90%;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
render() {
|
|
96
|
+
return Image.ke`
|
|
97
|
+
<div class="background-overlay">
|
|
98
|
+
<div class="confirmation-popup" style="background-color: ${this.bgColor}; height: ${this.height}; width: ${this.width}">
|
|
99
|
+
<svg width="40px" height="40px" viewBox="-6.96 -6.96 37.92 37.92" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="" transform="matrix(-1, 0, 0, 1, 0, 0)rotate(180)"><g id="SVGRepo_bgCarrier" stroke-width="0" transform="translate(0,0), scale(1)"><rect x="-6.96" y="-6.96" width="37.92" height="37.92" rx="18.96" fill="#ffc2ca" strokewidth="0"></rect></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#CCCCCC" stroke-width="0.24000000000000005"></g><g id="SVGRepo_iconCarrier"> <circle cx="12" cy="12" r="10" stroke="#d15e6d" stroke-width="1.7280000000000002"></circle> <path d="M12 17V11" stroke="#d15e6d" stroke-width="1.7280000000000002" stroke-linecap="round"></path> <circle cx="1" cy="1" r="1" transform="matrix(1 0 0 -1 11 9)" fill="#d15e6d"></circle> </g></svg>
|
|
100
|
+
<span class="confirmation-popup-title">${this.title}</span>
|
|
101
|
+
<span class="confirmation-popup-message">${this.message}</span>
|
|
102
|
+
|
|
103
|
+
<div class="confirmation-buttons">
|
|
104
|
+
<button class="confirm-btn yes-btn" @click="${this.handleConfirmRemove}" style="background-color: ${this.primaryButtonBgColor}; color: ${this.primaryButtonTextColor}">
|
|
105
|
+
${this.primaryButtonText}
|
|
106
|
+
</button>
|
|
107
|
+
<button class="confirm-btn no-btn" @click="${this.closeConfirmationPopup}" style="background-color: ${this.secondaryButtonBgColor}; color: ${this.secondaryButtonTextColor}">
|
|
108
|
+
${this.secondaryButtonText}
|
|
109
|
+
</button>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
`;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
customElements.define('delete-popup', DeletePopup);
|
|
118
|
+
|
|
119
|
+
class ReactionsInfoCard extends Image.h {
|
|
120
|
+
static properties = {
|
|
121
|
+
reactionType: { type: String },
|
|
122
|
+
userName: { type: String },
|
|
123
|
+
userProfileImage: { type: String },
|
|
124
|
+
isSelfReaction: { type: String },
|
|
125
|
+
|
|
126
|
+
bgColor: { type: String },
|
|
127
|
+
color: { type: String },
|
|
128
|
+
borderRadius: { type: String },
|
|
129
|
+
border: { type: String },
|
|
130
|
+
fontSize: { type: String },
|
|
131
|
+
height: { type: String },
|
|
132
|
+
width: { type: String },
|
|
133
|
+
|
|
134
|
+
imageRadius: { type: String },
|
|
135
|
+
imageHeight: { type: String },
|
|
136
|
+
imageWidth: { type: String },
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
static styles = Image.i`
|
|
140
|
+
.reaction-info-card-container {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: space-between;
|
|
144
|
+
padding: 12px;
|
|
145
|
+
border-radius: 4px;
|
|
146
|
+
gap: 10px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.reaction-info-username-container {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
flex: 1;
|
|
153
|
+
}
|
|
154
|
+
`;
|
|
155
|
+
|
|
156
|
+
handleRemoveClick() {
|
|
157
|
+
this.dispatchEvent(new CustomEvent('remove-click', {
|
|
158
|
+
detail: {
|
|
159
|
+
reactionType: this.reactionType,
|
|
160
|
+
},
|
|
161
|
+
bubbles: true,
|
|
162
|
+
composed: true
|
|
163
|
+
}));
|
|
164
|
+
}
|
|
165
|
+
render() {
|
|
166
|
+
const emojis = [
|
|
167
|
+
{ id: 'star', src: '⭐' },
|
|
168
|
+
{ id: 'crying_with_laughter', src: '😂' },
|
|
169
|
+
{ id: 'yes', src: '👍' },
|
|
170
|
+
{ id: 'no', src: '❌' },
|
|
171
|
+
{ id: 'party', src: '🥳' },
|
|
172
|
+
{ id: 'high_five', src: '✋' },
|
|
173
|
+
{ id: 'rock', src: '🪨' },
|
|
174
|
+
{ id: 'facepal', src: '🤦' },
|
|
175
|
+
{ id: 'sarcastic', src: '🙄' },
|
|
176
|
+
{ id: 'talking_too_much', src: '🤫' },
|
|
177
|
+
{ id: 'crying', src: '😭' },
|
|
178
|
+
{ id: 'heart', src: '❤️' },
|
|
179
|
+
{ id: 'surprised', src: '😮' },
|
|
180
|
+
{ id: 'bowing', src: '🙇' },
|
|
181
|
+
];
|
|
182
|
+
const matchingEmoji = emojis.find(emoji => emoji.id === this.reactionType)?.src || '';
|
|
183
|
+
|
|
184
|
+
const emojiSize = `calc(${this.fontSize} + 4px)`;
|
|
185
|
+
const seondarySize = `calc(${this.fontSize} - 6px)`;
|
|
186
|
+
return Image.ke`
|
|
187
|
+
<div
|
|
188
|
+
class="reaction-info-card-container"
|
|
189
|
+
style="background-color: ${this.bgColor}; color: ${this.color}; border: ${this.border};
|
|
190
|
+
border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};"
|
|
191
|
+
>
|
|
192
|
+
<div class="reaction-info-user-image">
|
|
193
|
+
${Image.Image({
|
|
194
|
+
src: this.userProfileImage,
|
|
195
|
+
height: this.imageHeight,
|
|
196
|
+
width: this.imageWidth,
|
|
197
|
+
borderRadius: this.imageRadius,
|
|
198
|
+
objectFit: 'cover',
|
|
199
|
+
})}
|
|
200
|
+
</div>
|
|
201
|
+
<div class="reaction-info-username-container">
|
|
202
|
+
<div class="reaction-info-username" style="font-size: ${this.fontSize}">${this.userName}</div>
|
|
203
|
+
${this.isSelfReaction
|
|
204
|
+
? Image.ke`<div @click=${this.handleRemoveClick} style="cursor: pointer; font-size: ${seondarySize}">${content.WEB_CONTENT.REACTIONS.REMOVE_REACTION_ON_TAP}</div>`
|
|
205
|
+
: null}
|
|
206
|
+
</div>
|
|
207
|
+
<div class="reaction-info-emoji" style="font-size: ${emojiSize}">${matchingEmoji}</div>
|
|
208
|
+
</div>
|
|
209
|
+
`;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
customElements.define('reactions-info-card', ReactionsInfoCard);
|
|
214
|
+
|
|
215
|
+
class ReactionsContainer extends Image.h {
|
|
216
|
+
static properties = {
|
|
217
|
+
bgColor: { type: String },
|
|
218
|
+
border: { type: String },
|
|
219
|
+
borderRadius: { type: String },
|
|
220
|
+
color: { type: String },
|
|
221
|
+
height: { type: String },
|
|
222
|
+
width: { type: String },
|
|
223
|
+
reactions: { type: Array },
|
|
224
|
+
fontSize: { type: String },
|
|
225
|
+
reactionsUser: { type: Array },
|
|
226
|
+
showConfirmationPopup: { type: Boolean },
|
|
227
|
+
handleConfirmDelete: { type: Function },
|
|
228
|
+
handleClosePopup: { type: Function },
|
|
229
|
+
userMetaData: { type: Object },
|
|
230
|
+
selectedEmojiToRemove: { type: Object },
|
|
231
|
+
selectedEmojiId: { type: String },
|
|
232
|
+
messageId: { type: String },
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
constructor() {
|
|
236
|
+
super();
|
|
237
|
+
this.showConfirmationPopup = false;
|
|
238
|
+
this.addEventListener('remove-click', this.handleRemoveReactionClick);
|
|
239
|
+
this.selectedEmojiToRemove = null;
|
|
240
|
+
this.selectedEmojiId = null; // Initialize the selected emoji ID
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
handleRemoveReactionClick(e) {
|
|
244
|
+
this.showConfirmationPopup = true;
|
|
245
|
+
this.selectedEmojiToRemove = e.detail;
|
|
246
|
+
}
|
|
247
|
+
static styles = Image.i`
|
|
248
|
+
.reactions-container {
|
|
249
|
+
display: flex;
|
|
250
|
+
flex-direction: column;
|
|
251
|
+
padding: 10px;
|
|
252
|
+
box-shadow:
|
|
253
|
+
2px 2px 2px var(--bg-senary-color),
|
|
254
|
+
-2px -2px 2px var(--bg-senary-color);
|
|
255
|
+
}
|
|
256
|
+
.reactions-list-container {
|
|
257
|
+
margin-top: 10px;
|
|
258
|
+
display: flex;
|
|
259
|
+
flex-direction: column;
|
|
260
|
+
gap: 8px;
|
|
261
|
+
}
|
|
262
|
+
.reactions-tab-container {
|
|
263
|
+
display: flex;
|
|
264
|
+
gap: 8px;
|
|
265
|
+
padding: 0;
|
|
266
|
+
}
|
|
267
|
+
.emoji-tab {
|
|
268
|
+
cursor: pointer;
|
|
269
|
+
padding: 4px 8px;
|
|
270
|
+
background: transparent;
|
|
271
|
+
border-bottom: 1px solid var(--text-primary-color);
|
|
272
|
+
}
|
|
273
|
+
.emoji-tab:hover {
|
|
274
|
+
background: var(--bg-tertiary-color);
|
|
275
|
+
}
|
|
276
|
+
.emoji-tab.selected {
|
|
277
|
+
background: var(--bg-tertiary-color);
|
|
278
|
+
}
|
|
279
|
+
`;
|
|
280
|
+
|
|
281
|
+
handleEmojiClick(emojiId) {
|
|
282
|
+
this.selectedEmojiId = emojiId;
|
|
283
|
+
const event = new CustomEvent('emojiTabClick', {
|
|
284
|
+
detail: emojiId,
|
|
285
|
+
bubbles: true,
|
|
286
|
+
composed: true,
|
|
287
|
+
});
|
|
288
|
+
this.dispatchEvent(event);
|
|
289
|
+
|
|
290
|
+
this.requestUpdate();
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
handleConfirmRemove() {
|
|
294
|
+
if (this.selectedEmojiToRemove) {
|
|
295
|
+
this.dispatchEvent(
|
|
296
|
+
new CustomEvent('reaction-removed', {
|
|
297
|
+
detail: {
|
|
298
|
+
messageId: this.messageId,
|
|
299
|
+
emojiId: this.selectedEmojiToRemove.reactionType,
|
|
300
|
+
},
|
|
301
|
+
bubbles: true,
|
|
302
|
+
composed: true,
|
|
303
|
+
}),
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
this.closeConfirmationPopup();
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
closeConfirmationPopup() {
|
|
310
|
+
this.showConfirmationPopup = false;
|
|
311
|
+
this.selectedEmojiToRemove = null;
|
|
312
|
+
}
|
|
313
|
+
render() {
|
|
314
|
+
const updatedData = this.reactions?.map(item => ({
|
|
315
|
+
...item,
|
|
316
|
+
messageId: item.messageId[0],
|
|
317
|
+
}));
|
|
318
|
+
|
|
319
|
+
return Image.ke`
|
|
320
|
+
<div
|
|
321
|
+
class="reactions-container"
|
|
322
|
+
style="background-color: ${this.bgColor}; color: ${this.color};
|
|
323
|
+
font-size: ${this.fontSize}; border: ${this.border}; border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};
|
|
324
|
+
"
|
|
325
|
+
>
|
|
326
|
+
<div class="reactions-tab-container">
|
|
327
|
+
${updatedData?.map(
|
|
328
|
+
data => Image.ke` <div class="emoji-tab ${this.selectedEmojiId === data.emojiId ? 'selected' : ''}" @click=${() => this.handleEmojiClick(data.emojiId)}>${data.src}</div> `,
|
|
329
|
+
)}
|
|
330
|
+
</div>
|
|
331
|
+
<div class="reactions-list-container">
|
|
332
|
+
${this.selectedEmojiId && this.reactionsUser?.length > 0
|
|
333
|
+
? this.reactionsUser.map(
|
|
334
|
+
user => Image.ke`
|
|
335
|
+
<reactions-info-card
|
|
336
|
+
.userName=${user.userName}
|
|
337
|
+
.userProfileImage=${user.userProfileImageUrl}
|
|
338
|
+
.imageRadius=${'50%'}
|
|
339
|
+
.imageHeight=${'40px'}
|
|
340
|
+
.imageWidth=${'40px'}
|
|
341
|
+
.isSelfReaction=${user.userId === this.userMetaData?.userId}
|
|
342
|
+
.fontSize=${this.fontSize}
|
|
343
|
+
.reactionType=${this.selectedEmojiId}
|
|
344
|
+
></reactions-info-card>
|
|
345
|
+
`,
|
|
346
|
+
)
|
|
347
|
+
: Image.ke`<div style="font-size: 14px ; padding: 10px" >Tap on any tab to see list</div>`}
|
|
348
|
+
</div>
|
|
349
|
+
${this.showConfirmationPopup
|
|
350
|
+
? Image.ke`
|
|
351
|
+
<delete-popup
|
|
352
|
+
.bgColor=${'var(--bg-primary-color)'}
|
|
353
|
+
.height=${'200px'}
|
|
354
|
+
.width=${'400px'}
|
|
355
|
+
primaryButtonBgColor=${' var(--text-danger-color)'}
|
|
356
|
+
primaryButtonTextColor=${'var(--text-incoming-message)'}
|
|
357
|
+
primaryButtonText="Delete"
|
|
358
|
+
secondaryButtonText="Cancel"
|
|
359
|
+
secondaryButtonBgColor=${' var(--bg-outgoing-message)'}
|
|
360
|
+
secondaryButtonTextColor=${'var(--text-primary-color)'}
|
|
361
|
+
title="Delete Reaction"
|
|
362
|
+
message="Are you sure you want to remove as a reaction?"
|
|
363
|
+
.handleConfirmRemove=${() => this.handleConfirmRemove()}
|
|
364
|
+
.closeConfirmationPopup=${() => this.closeConfirmationPopup()}
|
|
365
|
+
></delete-popup>
|
|
366
|
+
`
|
|
367
|
+
: ''}
|
|
368
|
+
</div>
|
|
369
|
+
`;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
customElements.define('reactions-container', ReactionsContainer);
|
|
374
|
+
|
|
375
|
+
//# sourceMappingURL=ReactionsContainer-a6ce9059.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"ReactionsContainer-a6ce9059.js","mappings":";;;;;AAEA,MAAM,WAAW,SAASA,OAAU,CAAC;AACrC,EAAE,OAAO,UAAU,GAAG;AACtB,KAAK,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC5B,KAAK,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AACjC,KAAK,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC3B,KAAK,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC1B,KAAK,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC1B,KAAK,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC5B,KAAK,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AACzC,KAAK,sBAAsB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC3C,KAAK,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AACtC,KAAK,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AACxC,KAAK,sBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC;AAC5C,KAAK,wBAAwB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC7C,KAAK,mBAAmB,EAAE,CAAC,I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C,QAAQ,CAAC;AAC9C,sCAAsC,EAAE,IAAI,CAAC,mBAAmB,CAAC;AACjE,iCAAiC,EAAE,KAAK,CAAC;AACzC,iCAAiC,EAAE,MAAM,CAAC;AAC1C,gCAAgC,EAAE,MAAM,CAAC;AACzC,oCAAoC,EAAE,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC;AAChF,8BAA8B,EAAE,IAAI,CAAC,QAAQ,CAAC;AAC9C,kCAAkC,EAAE,IAAI,CAAC,eAAe,CAAC;AACzD;AACA,gBAAgB,CAAC;AACjB,eAAe;AACf,cAAcA,QAAI,CAAC,8EAA8E,CAAC,CAAC;AACnG;AACA,QAAQ,EAAE,IAAI,CAAC,qBAAqB;AACpC,YAAYA,QAAI,CAAC;AACjB;AACA,yBAAyB,EAAE,yBAAyB,CAAC;AACrD,wBAAwB,EAAE,OAAO,CAAC;AAClC,uBAAuB,EAAE,OAAO,CAAC;AACjC,qCAAqC,EAAE,2BAA2B,CAAC;AACnE,uCAAuC,EAAE,8BAA8B,CAAC;AACxE;AACA;AACA,uCAAuC,EAAE,6BAA6B,CAAC;AACvE,yCAAyC,EAAE,2BAA2B,CAAC;AACvE;AACA;AACA,qCAAqC,EAAE,MAAM,IAAI,CAAC,mBAAmB,EAAE,CAAC;AACxE,wCAAwC,EAAE,MAAM,IAAI,CAAC,sBAAsB,EAAE,CAAC;AAC9E;AACA,YAAY,CAAC;AACb,YAAY,EAAE,CAAC;AACf;AACA,IAAI,CAAC,CAAC;AACN,GAAG;AACH,CAAC;AACD;AACA,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,kBAAkB,CAAC;;","names":["LitElement","css","html","Image","WEB_CONTENT"],"sources":["src/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js","src/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js","src/stories/Components/ReactionsContainer/ReactionsContainer.js"],"sourcesContent":["import { LitElement, html, css } from 'lit';\n\nclass DeletePopup extends LitElement {\n static properties = {\n bgColor: {type: String},\n borderRadius: {type: String},\n height: {type: String},\n width: {type: String},\n title: {type: String},\n message: {type: String},\n primaryButtonBgColor: {type: String},\n primaryButtonTextColor: {type: String},\n primaryButtonText: {type: String},\n secondaryButtonText: {type: String},\n secondaryButtonBgColor : {type: String},\n secondaryButtonTextColor: {type: String},\n handleConfirmRemove: {type: Function},\n closeConfirmationPopup: {type: Function},\n };\n\n static styles = css`\n .confirmation-popup {\n position: fixed;\n border-radius: 8px;\n padding: 12px;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n\n .confirmation-popup svg {\n align-self: center;\n }\n\n .confirmation-popup-title {\n width: 75%;\n display: block;\n font-size: 22px;\n color: var(--text-primary-color);\n text-align: center;\n }\n .confirmation-popup-message {\n width: 75%;\n display: block;\n font-size: 16px;\n color: #a5a4a7;\n text-align: center;\n }\n .confirmation-buttons {\n display: flex;\n gap: 8px;\n margin-top: 30px;\n width: 100%;\n }\n\n .confirm-btn {\n padding: 6px 26px;\n border-radius: 4px;\n cursor: pointer;\n border: none;\n width: 50%;\n font-size: 18px;\n height: 50px;\n }\n\n\n .background-overlay {\n background: var(--popup-overlay);\n width: 100vw;\n height: 100vh;\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 100;\n }\n @media (max-width: 768px) {\n .confirmation-popup {\n width: 90%;\n }\n }\n `;\n\n render() {\n return html`\n <div class=\"background-overlay\">\n <div class=\"confirmation-popup\" style=\"background-color: ${this.bgColor}; height: ${this.height}; width: ${this.width}\">\n <svg width=\"40px\" height=\"40px\" viewBox=\"-6.96 -6.96 37.92 37.92\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" stroke=\"\" transform=\"matrix(-1, 0, 0, 1, 0, 0)rotate(180)\"><g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\" transform=\"translate(0,0), scale(1)\"><rect x=\"-6.96\" y=\"-6.96\" width=\"37.92\" height=\"37.92\" rx=\"18.96\" fill=\"#ffc2ca\" strokewidth=\"0\"></rect></g><g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"#CCCCCC\" stroke-width=\"0.24000000000000005\"></g><g id=\"SVGRepo_iconCarrier\"> <circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"#d15e6d\" stroke-width=\"1.7280000000000002\"></circle> <path d=\"M12 17V11\" stroke=\"#d15e6d\" stroke-width=\"1.7280000000000002\" stroke-linecap=\"round\"></path> <circle cx=\"1\" cy=\"1\" r=\"1\" transform=\"matrix(1 0 0 -1 11 9)\" fill=\"#d15e6d\"></circle> </g></svg>\n <span class=\"confirmation-popup-title\">${this.title}</span> \n <span class=\"confirmation-popup-message\">${this.message}</span>\n \n <div class=\"confirmation-buttons\">\n <button class=\"confirm-btn yes-btn\" @click=\"${this.handleConfirmRemove}\" style=\"background-color: ${this.primaryButtonBgColor}; color: ${this.primaryButtonTextColor}\">\n ${this.primaryButtonText}\n </button>\n <button class=\"confirm-btn no-btn\" @click=\"${this.closeConfirmationPopup}\" style=\"background-color: ${this.secondaryButtonBgColor}; color: ${this.secondaryButtonTextColor}\">\n ${this.secondaryButtonText}\n </button>\n </div>\n </div>\n </div>\n `;\n }\n}\n\ncustomElements.define('delete-popup', DeletePopup);\n","import { css, html, LitElement } from 'lit';\nimport { WEB_CONTENT } from '../../../../constants/content';\nimport { Image } from '../../Image/Image';\nclass ReactionsInfoCard extends LitElement {\n static properties = {\n reactionType: { type: String },\n userName: { type: String },\n userProfileImage: { type: String },\n isSelfReaction: { type: String },\n\n bgColor: { type: String },\n color: { type: String },\n borderRadius: { type: String },\n border: { type: String },\n fontSize: { type: String },\n height: { type: String },\n width: { type: String },\n\n imageRadius: { type: String },\n imageHeight: { type: String },\n imageWidth: { type: String },\n };\n\n static styles = css`\n .reaction-info-card-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px;\n border-radius: 4px;\n gap: 10px;\n }\n\n .reaction-info-username-container {\n display: flex;\n flex-direction: column;\n flex: 1;\n }\n `;\n\n handleRemoveClick() {\n this.dispatchEvent(new CustomEvent('remove-click', {\n detail: {\n reactionType: this.reactionType,\n },\n bubbles: true,\n composed: true\n }));\n }\n render() {\n const emojis = [\n { id: 'star', src: '⭐' },\n { id: 'crying_with_laughter', src: '😂' },\n { id: 'yes', src: '👍' },\n { id: 'no', src: '❌' },\n { id: 'party', src: '🥳' },\n { id: 'high_five', src: '✋' },\n { id: 'rock', src: '🪨' },\n { id: 'facepal', src: '🤦' },\n { id: 'sarcastic', src: '🙄' },\n { id: 'talking_too_much', src: '🤫' },\n { id: 'crying', src: '😭' },\n { id: 'heart', src: '❤️' },\n { id: 'surprised', src: '😮' },\n { id: 'bowing', src: '🙇' },\n ];\n const matchingEmoji = emojis.find(emoji => emoji.id === this.reactionType)?.src || '';\n\n const emojiSize = `calc(${this.fontSize} + 4px)`;\n const seondarySize = `calc(${this.fontSize} - 6px)`;\n return html`\n <div\n class=\"reaction-info-card-container\"\n style=\"background-color: ${this.bgColor}; color: ${this.color}; border: ${this.border};\n border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};\"\n >\n <div class=\"reaction-info-user-image\">\n ${Image({\n src: this.userProfileImage,\n height: this.imageHeight,\n width: this.imageWidth,\n borderRadius: this.imageRadius,\n objectFit: 'cover',\n })}\n </div>\n <div class=\"reaction-info-username-container\">\n <div class=\"reaction-info-username\" style=\"font-size: ${this.fontSize}\">${this.userName}</div>\n ${this.isSelfReaction\n ? html`<div @click=${this.handleRemoveClick} style=\"cursor: pointer; font-size: ${seondarySize}\">${WEB_CONTENT.REACTIONS.REMOVE_REACTION_ON_TAP}</div>`\n : null}\n </div>\n <div class=\"reaction-info-emoji\" style=\"font-size: ${emojiSize}\">${matchingEmoji}</div>\n </div>\n `;\n }\n}\n\ncustomElements.define('reactions-info-card', ReactionsInfoCard);\n","import { css, html, LitElement } from 'lit';\nimport { Text } from '../Text/Text';\nimport { Button } from '../Buttons/Buttons';\nimport { Image } from '../Image/Image';\nimport './ReactionsInfoCard/ReactionsInfoCard.js';\nimport '../Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js';\n\nclass ReactionsContainer extends LitElement {\n static properties = {\n bgColor: { type: String },\n border: { type: String },\n borderRadius: { type: String },\n color: { type: String },\n height: { type: String },\n width: { type: String },\n reactions: { type: Array },\n fontSize: { type: String },\n reactionsUser: { type: Array },\n showConfirmationPopup: { type: Boolean },\n handleConfirmDelete: { type: Function },\n handleClosePopup: { type: Function },\n userMetaData: { type: Object },\n selectedEmojiToRemove: { type: Object },\n selectedEmojiId: { type: String },\n messageId: { type: String },\n };\n\n constructor() {\n super();\n this.showConfirmationPopup = false;\n this.addEventListener('remove-click', this.handleRemoveReactionClick);\n this.selectedEmojiToRemove = null;\n this.selectedEmojiId = null; // Initialize the selected emoji ID\n }\n\n handleRemoveReactionClick(e) {\n this.showConfirmationPopup = true;\n this.selectedEmojiToRemove = e.detail;\n }\n static styles = css`\n .reactions-container {\n display: flex;\n flex-direction: column;\n padding: 10px;\n box-shadow:\n 2px 2px 2px var(--bg-senary-color),\n -2px -2px 2px var(--bg-senary-color);\n }\n .reactions-list-container {\n margin-top: 10px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .reactions-tab-container {\n display: flex;\n gap: 8px;\n padding: 0;\n }\n .emoji-tab {\n cursor: pointer;\n padding: 4px 8px;\n background: transparent;\n border-bottom: 1px solid var(--text-primary-color);\n }\n .emoji-tab:hover {\n background: var(--bg-tertiary-color);\n }\n .emoji-tab.selected {\n background: var(--bg-tertiary-color);\n }\n `;\n\n handleEmojiClick(emojiId) {\n this.selectedEmojiId = emojiId;\n const event = new CustomEvent('emojiTabClick', {\n detail: emojiId,\n bubbles: true,\n composed: true,\n });\n this.dispatchEvent(event);\n\n this.requestUpdate();\n }\n\n handleConfirmRemove() {\n if (this.selectedEmojiToRemove) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: this.selectedEmojiToRemove.reactionType,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n this.closeConfirmationPopup();\n }\n\n closeConfirmationPopup() {\n this.showConfirmationPopup = false;\n this.selectedEmojiToRemove = null;\n }\n render() {\n const updatedData = this.reactions?.map(item => ({\n ...item,\n messageId: item.messageId[0],\n }));\n\n return html`\n <div\n class=\"reactions-container\"\n style=\"background-color: ${this.bgColor}; color: ${this.color}; \n font-size: ${this.fontSize}; border: ${this.border}; border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};\n \"\n >\n <div class=\"reactions-tab-container\">\n ${updatedData?.map(\n data => html` <div class=\"emoji-tab ${this.selectedEmojiId === data.emojiId ? 'selected' : ''}\" @click=${() => this.handleEmojiClick(data.emojiId)}>${data.src}</div> `,\n )}\n </div>\n <div class=\"reactions-list-container\">\n ${this.selectedEmojiId && this.reactionsUser?.length > 0\n ? this.reactionsUser.map(\n user => html`\n <reactions-info-card\n .userName=${user.userName}\n .userProfileImage=${user.userProfileImageUrl}\n .imageRadius=${'50%'}\n .imageHeight=${'40px'}\n .imageWidth=${'40px'}\n .isSelfReaction=${user.userId === this.userMetaData?.userId}\n .fontSize=${this.fontSize}\n .reactionType=${this.selectedEmojiId}\n ></reactions-info-card>\n `,\n )\n : html`<div style=\"font-size: 14px ; padding: 10px\" >Tap on any tab to see list</div>`}\n </div>\n ${this.showConfirmationPopup\n ? html`\n <delete-popup\n .bgColor=${'var(--bg-primary-color)'}\n .height=${'200px'}\n .width=${'400px'}\n primaryButtonBgColor=${' var(--text-danger-color)'}\n primaryButtonTextColor=${'var(--text-incoming-message)'}\n primaryButtonText=\"Delete\"\n secondaryButtonText=\"Cancel\"\n secondaryButtonBgColor=${' var(--bg-outgoing-message)'}\n secondaryButtonTextColor=${'var(--text-primary-color)'}\n title=\"Delete Reaction\"\n message=\"Are you sure you want to remove as a reaction?\"\n .handleConfirmRemove=${() => this.handleConfirmRemove()}\n .closeConfirmationPopup=${() => this.closeConfirmationPopup()}\n ></delete-popup>\n `\n : ''}\n </div>\n `;\n }\n}\n\ncustomElements.define('reactions-container', ReactionsContainer);\n"],"version":3}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Image = require('./Image-67c52acd.js');
|
|
4
|
+
|
|
5
|
+
const Text = ({
|
|
6
|
+
content = '',
|
|
7
|
+
color = 'var(--text-primary-color)',
|
|
8
|
+
fontSize = '16px',
|
|
9
|
+
textAlign = 'center',
|
|
10
|
+
fontWeight = 'normal',
|
|
11
|
+
fontStyle = 'normal',
|
|
12
|
+
backgroundColor = 'transparent',
|
|
13
|
+
borderColor = 'transparent',
|
|
14
|
+
borderWidth = '1px',
|
|
15
|
+
borderStyle = 'solid',
|
|
16
|
+
borderRadius = '4px',
|
|
17
|
+
fontFamily = '',
|
|
18
|
+
width = "",
|
|
19
|
+
height = "auto",
|
|
20
|
+
lineHeight = "auto",
|
|
21
|
+
overflow= "hidden",
|
|
22
|
+
maxWidth="",
|
|
23
|
+
textOverflow="ellipsis",
|
|
24
|
+
whiteSpace="",
|
|
25
|
+
wordBreak='break-word'
|
|
26
|
+
|
|
27
|
+
}) => {
|
|
28
|
+
return Image.ke`
|
|
29
|
+
<div
|
|
30
|
+
class="storybook-text"
|
|
31
|
+
style=${Image.se({
|
|
32
|
+
color,
|
|
33
|
+
fontSize,
|
|
34
|
+
textAlign,
|
|
35
|
+
fontWeight,
|
|
36
|
+
fontStyle,
|
|
37
|
+
backgroundColor,
|
|
38
|
+
borderColor,
|
|
39
|
+
borderWidth,
|
|
40
|
+
borderStyle,
|
|
41
|
+
borderRadius,
|
|
42
|
+
fontFamily,
|
|
43
|
+
width,
|
|
44
|
+
height,
|
|
45
|
+
lineHeight,
|
|
46
|
+
overflow,
|
|
47
|
+
maxWidth,
|
|
48
|
+
textOverflow,
|
|
49
|
+
whiteSpace,
|
|
50
|
+
wordBreak
|
|
51
|
+
})}
|
|
52
|
+
>
|
|
53
|
+
${content}
|
|
54
|
+
</div>
|
|
55
|
+
`;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
exports.Text = Text;
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=Text-fedf6eab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"Text-fedf6eab.js","mappings":";;;;AAIY,MAAC,IAAI,GAAG,CAAC;AACrB,EAAE,OAAO,GAAG,EAAE;AACd,EAAE,KAAK,GAAG,2BAA2B;AACrC,EAAE,QAAQ,GAAG,MAAM;AACnB,EAAE,SAAS,GAAG,QAAQ;AACtB,EAAE,UAAU,GAAG,QAAQ;AACvB,EAAE,SAAS,GAAG,QAAQ;AACtB,EAAE,eAAe,GAAG,aAAa;AACjC,EAAE,WAAW,GAAG,aAAa;AAC7B,EAAE,WAAW,GAAG,KAAK;AACrB,EAAE,WAAW,GAAG,OAAO;AACvB,EAAE,YAAY,GAAG,KAAK;AACtB,EAAE,UAAU,GAAG,EAAE;AACjB,EAAE,KAAK,GAAG,EAAE;AACZ,EAAE,MAAM,GAAG,MAAM;AACjB,EAAE,UAAU,GAAG,MAAM;AACrB,EAAE,QAAQ,EAAE,QAAQ;AACpB,EAAE,QAAQ,CAAC,EAAE;AACb,EAAE,YAAY,CAAC,UAAU;AACzB,EAAE,UAAU,CAAC,EAAE;AACf,EAAE,SAAS,CAAC,YAAY;AACxB;AACA,CAAC,KAAK;AACN,EAAE,OAAOA,QAAI,CAAC;AACd;AACA;AACA,YAAY,EAAEC,QAAQ,CAAC;AACvB,QAAQ,KAAK;AACb,QAAQ,QAAQ;AAChB,QAAQ,SAAS;AACjB,QAAQ,UAAU;AAClB,QAAQ,SAAS;AACjB,QAAQ,eAAe;AACvB,QAAQ,WAAW;AACnB,QAAQ,WAAW;AACnB,QAAQ,WAAW;AACnB,QAAQ,YAAY;AACpB,QAAQ,UAAU;AAClB,QAAQ,KAAK;AACb,QAAQ,MAAM;AACd,QAAQ,UAAU;AAClB,QAAQ,QAAQ;AAChB,QAAQ,QAAQ;AAChB,QAAQ,YAAY;AACpB,QAAQ,UAAU;AAClB,QAAQ,SAAS;AACjB,OAAO,CAAC,CAAC;AACT;AACA,MAAM,EAAE,OAAO,CAAC;AAChB;AACA,EAAE,CAAC,CAAC;AACJ;;;;","names":["html","styleMap"],"sources":["src/stories/Components/Text/Text.js"],"sourcesContent":["import { html } from 'lit';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport './Text.css'; \n\nexport const Text = ({ \n content = '', \n color = 'var(--text-primary-color)', \n fontSize = '16px', \n textAlign = 'center', \n fontWeight = 'normal', \n fontStyle = 'normal', \n backgroundColor = 'transparent', \n borderColor = 'transparent', \n borderWidth = '1px', \n borderStyle = 'solid', \n borderRadius = '4px',\n fontFamily = '',\n width = \"\",\n height = \"auto\",\n lineHeight = \"auto\",\n overflow= \"hidden\",\n maxWidth=\"\",\n textOverflow=\"ellipsis\",\n whiteSpace=\"\",\n wordBreak='break-word'\n \n}) => {\n return html`\n <div\n class=\"storybook-text\"\n style=${styleMap({ \n color, \n fontSize, \n textAlign, \n fontWeight, \n fontStyle, \n backgroundColor,\n borderColor, \n borderWidth, \n borderStyle,\n borderRadius,\n fontFamily,\n width,\n height,\n lineHeight,\n overflow,\n maxWidth,\n textOverflow,\n whiteSpace,\n wordBreak\n })}\n >\n ${content}\n </div>\n `;\n};\n\n"],"version":3}
|