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,87 @@
|
|
|
1
|
+
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
import './Input.js';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Atoms/Input',
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
render: (args) => html`<my-input .value=${args.value} .placeholder=${args.placeholder} .width=${args.width} .height=${args.height} .borderColor=${args.borderColor} .borderRadius=${args.borderRadius} .backgroundColor=${args.backgroundColor} .fontSize=${args.fontSize} .padding=${args.padding} .color=${args.color} .placeholderColor=${args.placeholderColor} .borderWidth=${args.borderWidth}></my-input>`,
|
|
9
|
+
argTypes: {
|
|
10
|
+
value: { control: 'text' },
|
|
11
|
+
placeholder: { control: 'text' },
|
|
12
|
+
width: { control: 'text' },
|
|
13
|
+
height: { control: 'text' },
|
|
14
|
+
borderColor: { control: 'color' },
|
|
15
|
+
borderRadius: { control: 'text' },
|
|
16
|
+
backgroundColor: { control: 'color' },
|
|
17
|
+
fontSize: { control: 'text' },
|
|
18
|
+
padding: { control: 'text' },
|
|
19
|
+
color: { control: 'color' },
|
|
20
|
+
placeholderColor: { control: 'color' },
|
|
21
|
+
borderWidth: { control: 'text' },
|
|
22
|
+
focusStyles: { control: 'text' },
|
|
23
|
+
},
|
|
24
|
+
args: {
|
|
25
|
+
value: '',
|
|
26
|
+
placeholder: 'Enter text',
|
|
27
|
+
width: '300px',
|
|
28
|
+
height: '50px',
|
|
29
|
+
borderColor: 'gray',
|
|
30
|
+
borderRadius: '4px',
|
|
31
|
+
backgroundColor: 'white',
|
|
32
|
+
fontSize: '16px',
|
|
33
|
+
padding: '0 12px',
|
|
34
|
+
color: 'black',
|
|
35
|
+
placeholderColor: '#aaa',
|
|
36
|
+
borderWidth: '1px',
|
|
37
|
+
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const Default = {
|
|
42
|
+
args: {
|
|
43
|
+
value: '',
|
|
44
|
+
placeholder: 'Enter text',
|
|
45
|
+
width: '300px',
|
|
46
|
+
height: '40px',
|
|
47
|
+
borderColor: 'gray',
|
|
48
|
+
borderRadius: '4px',
|
|
49
|
+
backgroundColor: 'white',
|
|
50
|
+
fontSize: '16px',
|
|
51
|
+
padding: '0 12px',
|
|
52
|
+
placeholderColor: '#aaa',
|
|
53
|
+
borderWidth: '1px',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export const Tall = {
|
|
58
|
+
args: {
|
|
59
|
+
value: '',
|
|
60
|
+
placeholder: 'Need some photos. It will be helpful to assess the workload',
|
|
61
|
+
width: '300px',
|
|
62
|
+
height: '60px',
|
|
63
|
+
borderColor: 'gray',
|
|
64
|
+
borderRadius: '4px',
|
|
65
|
+
backgroundColor: '#EFF1FA',
|
|
66
|
+
fontSize: '16px',
|
|
67
|
+
padding: '0 12px',
|
|
68
|
+
placeholderColor: '#888',
|
|
69
|
+
borderWidth: '2px',
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export const InputBox = {
|
|
74
|
+
args: {
|
|
75
|
+
value: '',
|
|
76
|
+
placeholder: 'Enter text',
|
|
77
|
+
width: '100%',
|
|
78
|
+
height: '60px',
|
|
79
|
+
borderColor: 'gray',
|
|
80
|
+
borderRadius: '4px',
|
|
81
|
+
backgroundColor: 'white',
|
|
82
|
+
fontSize: '14px',
|
|
83
|
+
padding: '0 10px',
|
|
84
|
+
placeholderColor: '#666',
|
|
85
|
+
borderWidth: '1px',
|
|
86
|
+
},
|
|
87
|
+
};
|
|
@@ -0,0 +1,605 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
import {
|
|
3
|
+
connectSocialAccount,
|
|
4
|
+
connectSocialAccountCallback,
|
|
5
|
+
deleteSocialAccount,
|
|
6
|
+
getConnectedInstagramAccounts,
|
|
7
|
+
getSocialAccounts,
|
|
8
|
+
getSocialRedirectUrl,
|
|
9
|
+
openSocialAuthPopup,
|
|
10
|
+
} from '../../../api/social-accounts';
|
|
11
|
+
import { drawerDialogService } from '../Dialog-Drawer/dialog-drawer';
|
|
12
|
+
import { showToast } from '../Toaster/toast-helper';
|
|
13
|
+
|
|
14
|
+
export class InstagramAccountsPanel extends LitElement {
|
|
15
|
+
static properties = {
|
|
16
|
+
agentUserId: { type: String },
|
|
17
|
+
defaultTheme: { type: String },
|
|
18
|
+
toggleTheme: { type: Function },
|
|
19
|
+
closeDrawer: { type: Function },
|
|
20
|
+
/** Optional callback (prefer CustomEvent for Stencil hosts). */
|
|
21
|
+
accountsChange: { type: Function },
|
|
22
|
+
/** When true, hide the X close (e.g. Instagram gate — no chat to return to). */
|
|
23
|
+
hideClose: { type: Boolean },
|
|
24
|
+
socialAccounts: { type: Array },
|
|
25
|
+
isSocialLoading: { type: Boolean },
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
constructor() {
|
|
29
|
+
super();
|
|
30
|
+
this.agentUserId = '';
|
|
31
|
+
this.defaultTheme = 'light';
|
|
32
|
+
this.toggleTheme = () => {};
|
|
33
|
+
this.closeDrawer = () => {};
|
|
34
|
+
this.accountsChange = null;
|
|
35
|
+
this.hideClose = false;
|
|
36
|
+
this.socialAccounts = [];
|
|
37
|
+
this.isSocialLoading = false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get connectedAccounts() {
|
|
41
|
+
return getConnectedInstagramAccounts(this.socialAccounts);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
connectedCallback() {
|
|
45
|
+
super.connectedCallback();
|
|
46
|
+
this.loadSocialAccounts();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
notifyAccountsChange(accounts = this.socialAccounts) {
|
|
50
|
+
const list = accounts || [];
|
|
51
|
+
// Stencil listens via onInstagramAccountsChange → event name "instagramAccountsChange"
|
|
52
|
+
this.dispatchEvent(
|
|
53
|
+
new CustomEvent('instagramAccountsChange', {
|
|
54
|
+
detail: list,
|
|
55
|
+
bubbles: true,
|
|
56
|
+
composed: true,
|
|
57
|
+
})
|
|
58
|
+
);
|
|
59
|
+
if (typeof this.accountsChange === 'function') {
|
|
60
|
+
this.accountsChange(list);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async loadSocialAccounts() {
|
|
65
|
+
this.isSocialLoading = true;
|
|
66
|
+
try {
|
|
67
|
+
const data = await getSocialAccounts({ platform: 'instagram' });
|
|
68
|
+
this.socialAccounts = data?.accounts || [];
|
|
69
|
+
this.notifyAccountsChange(this.socialAccounts);
|
|
70
|
+
} catch (error) {
|
|
71
|
+
console.error('Failed to load social accounts:', error);
|
|
72
|
+
this.socialAccounts = [];
|
|
73
|
+
this.notifyAccountsChange([]);
|
|
74
|
+
} finally {
|
|
75
|
+
this.isSocialLoading = false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
formatSocialDate(ts) {
|
|
80
|
+
if (!ts) return '-';
|
|
81
|
+
try {
|
|
82
|
+
return new Date(ts).toLocaleDateString(undefined, {
|
|
83
|
+
day: 'numeric',
|
|
84
|
+
month: 'short',
|
|
85
|
+
year: 'numeric',
|
|
86
|
+
});
|
|
87
|
+
} catch {
|
|
88
|
+
return String(ts);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
async completeSocialCallback(payload) {
|
|
93
|
+
await connectSocialAccountCallback({
|
|
94
|
+
platform: payload.platform || 'instagram',
|
|
95
|
+
username: payload.username || '',
|
|
96
|
+
displayName: payload.displayName || '',
|
|
97
|
+
loginMethod: 'instagram_login',
|
|
98
|
+
});
|
|
99
|
+
await this.loadSocialAccounts();
|
|
100
|
+
showToast({
|
|
101
|
+
message: 'Instagram connected',
|
|
102
|
+
type: 'success',
|
|
103
|
+
position: 'bottom-right',
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
async handleConnectInstagram() {
|
|
108
|
+
this.isSocialLoading = true;
|
|
109
|
+
try {
|
|
110
|
+
const data = await connectSocialAccount({
|
|
111
|
+
platform: 'instagram',
|
|
112
|
+
redirectUrl: getSocialRedirectUrl(),
|
|
113
|
+
loginMethod: 'instagram_login',
|
|
114
|
+
});
|
|
115
|
+
if (!data?.authUrl) throw new Error('No auth URL returned');
|
|
116
|
+
|
|
117
|
+
const result = await openSocialAuthPopup(data.authUrl);
|
|
118
|
+
if (result?.redirected) return;
|
|
119
|
+
if (result?.cancelled) {
|
|
120
|
+
await this.loadSocialAccounts();
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
await this.completeSocialCallback(result || {});
|
|
124
|
+
} catch (error) {
|
|
125
|
+
console.error('Failed to connect Instagram:', error);
|
|
126
|
+
showToast({
|
|
127
|
+
message: error?.message || 'Failed to connect Instagram',
|
|
128
|
+
type: 'error',
|
|
129
|
+
position: 'bottom-right',
|
|
130
|
+
});
|
|
131
|
+
} finally {
|
|
132
|
+
this.isSocialLoading = false;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
handleDisconnectInstagram(accountId, username) {
|
|
137
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
138
|
+
title: 'Disconnect Instagram',
|
|
139
|
+
description: `Disconnect @${username || 'this account'}?`,
|
|
140
|
+
handleConfirm: async () => {
|
|
141
|
+
drawerDialogService.closeDialog('confirm-dialog');
|
|
142
|
+
this.isSocialLoading = true;
|
|
143
|
+
try {
|
|
144
|
+
await deleteSocialAccount({ accountId });
|
|
145
|
+
// API soft-disconnects (status=disconnected) — reload truth from server
|
|
146
|
+
await this.loadSocialAccounts();
|
|
147
|
+
showToast({
|
|
148
|
+
message: 'Instagram disconnected',
|
|
149
|
+
type: 'success',
|
|
150
|
+
position: 'bottom-right',
|
|
151
|
+
});
|
|
152
|
+
} catch (error) {
|
|
153
|
+
console.error('Failed to disconnect Instagram:', error);
|
|
154
|
+
showToast({
|
|
155
|
+
message: error?.message || 'Failed to disconnect Instagram',
|
|
156
|
+
type: 'error',
|
|
157
|
+
position: 'bottom-right',
|
|
158
|
+
});
|
|
159
|
+
} finally {
|
|
160
|
+
this.isSocialLoading = false;
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
renderSocialAccount(account) {
|
|
167
|
+
const name = account.displayName || account.username || 'Instagram';
|
|
168
|
+
const handle = account.username ? `@${account.username}` : '';
|
|
169
|
+
const isConnected = account.status === 'connected';
|
|
170
|
+
const gradId = `igGrad-${account.zernioAccountId || account.username || 'acc'}`;
|
|
171
|
+
|
|
172
|
+
return html`
|
|
173
|
+
<article class="ig-card">
|
|
174
|
+
<div class="ig-card-top">
|
|
175
|
+
<div class="ig-mark" aria-hidden="true">
|
|
176
|
+
<svg viewBox="0 0 24 24" width="22" height="22" fill="none">
|
|
177
|
+
<defs>
|
|
178
|
+
<linearGradient id=${gradId} x1="0%" y1="100%" x2="100%" y2="0%">
|
|
179
|
+
<stop offset="0%" stop-color="#f58529" />
|
|
180
|
+
<stop offset="50%" stop-color="#dd2a7b" />
|
|
181
|
+
<stop offset="100%" stop-color="#8134af" />
|
|
182
|
+
</linearGradient>
|
|
183
|
+
</defs>
|
|
184
|
+
<rect x="2" y="2" width="20" height="20" rx="5.5" stroke="url(#${gradId})" stroke-width="1.75" />
|
|
185
|
+
<circle cx="12" cy="12" r="4.25" stroke="url(#${gradId})" stroke-width="1.75" />
|
|
186
|
+
<circle cx="17.35" cy="6.65" r="1.15" fill="url(#${gradId})" />
|
|
187
|
+
</svg>
|
|
188
|
+
</div>
|
|
189
|
+
<div class="ig-identity">
|
|
190
|
+
<div class="ig-name-row">
|
|
191
|
+
<h3 class="ig-name">${name}</h3>
|
|
192
|
+
${isConnected
|
|
193
|
+
? html`<span class="ig-badge">Connected</span>`
|
|
194
|
+
: html`<span class="ig-badge is-muted">${account.status || 'Unknown'}</span>`}
|
|
195
|
+
</div>
|
|
196
|
+
${handle ? html`<p class="ig-handle">${handle}</p>` : null}
|
|
197
|
+
<p class="ig-connected-on">Connected ${this.formatSocialDate(account.connectedAt)}</p>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
<div class="ig-actions">
|
|
201
|
+
${account.profileUrl
|
|
202
|
+
? html`<a class="ig-link" href=${account.profileUrl} target="_blank" rel="noopener noreferrer">View profile</a>`
|
|
203
|
+
: html`<span></span>`}
|
|
204
|
+
<button
|
|
205
|
+
type="button"
|
|
206
|
+
class="ig-disconnect"
|
|
207
|
+
@click=${() => this.handleDisconnectInstagram(account.zernioAccountId, account.username)}
|
|
208
|
+
>
|
|
209
|
+
Disconnect
|
|
210
|
+
</button>
|
|
211
|
+
</div>
|
|
212
|
+
</article>
|
|
213
|
+
`;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
renderConnectInstagram() {
|
|
217
|
+
return html`
|
|
218
|
+
<div class="ig-empty">
|
|
219
|
+
<p class="ig-empty-title">Connect Instagram to see chats</p>
|
|
220
|
+
<p class="ig-empty-copy">
|
|
221
|
+
Link your Instagram account first. After you disconnect, chats stay hidden until you connect again.
|
|
222
|
+
</p>
|
|
223
|
+
<button type="button" class="ig-connect" @click=${() => this.handleConnectInstagram()} ?disabled=${this.isSocialLoading}>
|
|
224
|
+
<span class="ig-mark" aria-hidden="true">
|
|
225
|
+
<svg viewBox="0 0 24 24" width="22" height="22" fill="none">
|
|
226
|
+
<defs>
|
|
227
|
+
<linearGradient id="igGradEmpty" x1="0%" y1="100%" x2="100%" y2="0%">
|
|
228
|
+
<stop offset="0%" stop-color="#f58529" />
|
|
229
|
+
<stop offset="50%" stop-color="#dd2a7b" />
|
|
230
|
+
<stop offset="100%" stop-color="#8134af" />
|
|
231
|
+
</linearGradient>
|
|
232
|
+
</defs>
|
|
233
|
+
<rect x="2" y="2" width="20" height="20" rx="5.5" stroke="url(#igGradEmpty)" stroke-width="1.75" />
|
|
234
|
+
<circle cx="12" cy="12" r="4.25" stroke="url(#igGradEmpty)" stroke-width="1.75" />
|
|
235
|
+
<circle cx="17.35" cy="6.65" r="1.15" fill="url(#igGradEmpty)" />
|
|
236
|
+
</svg>
|
|
237
|
+
</span>
|
|
238
|
+
<span class="ig-connect-copy">
|
|
239
|
+
<span class="ig-connect-title">${this.isSocialLoading ? 'Connecting…' : 'Connect Instagram'}</span>
|
|
240
|
+
<span class="ig-connect-sub">Link your business account to manage DMs here</span>
|
|
241
|
+
</span>
|
|
242
|
+
</button>
|
|
243
|
+
</div>
|
|
244
|
+
`;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
render() {
|
|
248
|
+
return html`
|
|
249
|
+
<div class="panel">
|
|
250
|
+
<div class="header">
|
|
251
|
+
${this.hideClose
|
|
252
|
+
? null
|
|
253
|
+
: html`<div class="close-btn" @click=${this.closeDrawer} title="Close">
|
|
254
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 -960 960 960" width="30" fill="var(--text-primary-color)">
|
|
255
|
+
<path d="m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231-231 231Z" />
|
|
256
|
+
</svg>
|
|
257
|
+
</div>`}
|
|
258
|
+
<h1 class="title">Instagram connected accounts</h1>
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
<div class="body">
|
|
262
|
+
${this.isSocialLoading
|
|
263
|
+
? html`<div class="ig-skeleton" aria-hidden="true">
|
|
264
|
+
<div class="ig-skeleton-mark"></div>
|
|
265
|
+
<div class="ig-skeleton-lines">
|
|
266
|
+
<div class="ig-skeleton-line wide"></div>
|
|
267
|
+
<div class="ig-skeleton-line"></div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>`
|
|
270
|
+
: this.connectedAccounts.length
|
|
271
|
+
? this.connectedAccounts.map(account => this.renderSocialAccount(account))
|
|
272
|
+
: this.renderConnectInstagram()}
|
|
273
|
+
</div>
|
|
274
|
+
|
|
275
|
+
<div class="bottom-actions">
|
|
276
|
+
<button type="button" class="action-button" @click=${this.toggleTheme}>
|
|
277
|
+
${this.defaultTheme === 'dark'
|
|
278
|
+
? html`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
279
|
+
<circle cx="12" cy="12" r="4"></circle>
|
|
280
|
+
<path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"></path>
|
|
281
|
+
</svg>`
|
|
282
|
+
: html`<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
283
|
+
<path d="M21 14.5A8.5 8.5 0 0 1 9.5 3 7 7 0 1 0 21 14.5z"></path>
|
|
284
|
+
</svg>`}
|
|
285
|
+
<span>${this.defaultTheme === 'dark' ? 'Light Theme' : 'Dark Theme'}</span>
|
|
286
|
+
</button>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
`;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
static styles = css`
|
|
293
|
+
:host {
|
|
294
|
+
display: block;
|
|
295
|
+
height: 100%;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.panel {
|
|
299
|
+
padding: 16px 20px 24px;
|
|
300
|
+
display: flex;
|
|
301
|
+
flex-direction: column;
|
|
302
|
+
height: 100%;
|
|
303
|
+
box-sizing: border-box;
|
|
304
|
+
overflow-y: auto;
|
|
305
|
+
background-color: var(--bg-primary-color);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.header {
|
|
309
|
+
display: flex;
|
|
310
|
+
align-items: center;
|
|
311
|
+
margin-bottom: 24px;
|
|
312
|
+
flex-shrink: 0;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.close-btn {
|
|
316
|
+
cursor: pointer;
|
|
317
|
+
display: flex;
|
|
318
|
+
align-items: center;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.title {
|
|
322
|
+
font-size: 1.25rem;
|
|
323
|
+
font-weight: 600;
|
|
324
|
+
margin: 0 0 0 8px;
|
|
325
|
+
color: var(--text-primary-color);
|
|
326
|
+
line-height: 1.3;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.body {
|
|
330
|
+
flex: 1;
|
|
331
|
+
min-height: 0;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.ig-card {
|
|
335
|
+
display: flex;
|
|
336
|
+
flex-direction: column;
|
|
337
|
+
gap: 14px;
|
|
338
|
+
padding: 14px;
|
|
339
|
+
border-radius: 12px;
|
|
340
|
+
border: 1px solid var(--border-subtle, color-mix(in srgb, var(--text-primary-color) 10%, transparent));
|
|
341
|
+
background: color-mix(in srgb, var(--bg-secondary-color, #f5f5f5) 70%, transparent);
|
|
342
|
+
margin-bottom: 12px;
|
|
343
|
+
animation: ig-in 280ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@keyframes ig-in {
|
|
347
|
+
from {
|
|
348
|
+
opacity: 0;
|
|
349
|
+
transform: translateY(6px);
|
|
350
|
+
}
|
|
351
|
+
to {
|
|
352
|
+
opacity: 1;
|
|
353
|
+
transform: translateY(0);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@media (prefers-reduced-motion: reduce) {
|
|
358
|
+
.ig-card {
|
|
359
|
+
animation: none;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.ig-card-top {
|
|
364
|
+
display: flex;
|
|
365
|
+
align-items: flex-start;
|
|
366
|
+
gap: 12px;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.ig-mark {
|
|
370
|
+
width: 40px;
|
|
371
|
+
height: 40px;
|
|
372
|
+
border-radius: 12px;
|
|
373
|
+
display: grid;
|
|
374
|
+
place-items: center;
|
|
375
|
+
flex-shrink: 0;
|
|
376
|
+
background: color-mix(in srgb, #dd2a7b 8%, var(--bg-primary-color, #fff));
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.ig-identity {
|
|
380
|
+
min-width: 0;
|
|
381
|
+
flex: 1;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.ig-name-row {
|
|
385
|
+
display: flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
gap: 8px;
|
|
388
|
+
flex-wrap: wrap;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.ig-name {
|
|
392
|
+
margin: 0;
|
|
393
|
+
font-size: 0.9375rem;
|
|
394
|
+
font-weight: 600;
|
|
395
|
+
color: var(--text-primary-color);
|
|
396
|
+
line-height: 1.3;
|
|
397
|
+
overflow: hidden;
|
|
398
|
+
text-overflow: ellipsis;
|
|
399
|
+
white-space: nowrap;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.ig-badge {
|
|
403
|
+
font-size: 0.6875rem;
|
|
404
|
+
font-weight: 600;
|
|
405
|
+
letter-spacing: 0.01em;
|
|
406
|
+
padding: 3px 8px;
|
|
407
|
+
border-radius: 999px;
|
|
408
|
+
background: color-mix(in srgb, var(--success) 14%, transparent);
|
|
409
|
+
color: #15803d;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.ig-badge.is-muted {
|
|
413
|
+
background: color-mix(in srgb, var(--text-secondary-color) 14%, transparent);
|
|
414
|
+
color: var(--text-secondary-color);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.ig-handle {
|
|
418
|
+
margin: 2px 0 0;
|
|
419
|
+
font-size: 0.8125rem;
|
|
420
|
+
color: var(--text-secondary-color);
|
|
421
|
+
overflow: hidden;
|
|
422
|
+
text-overflow: ellipsis;
|
|
423
|
+
white-space: nowrap;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.ig-connected-on {
|
|
427
|
+
margin: 6px 0 0;
|
|
428
|
+
font-size: 0.75rem;
|
|
429
|
+
color: var(--text-secondary-color);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.ig-actions {
|
|
433
|
+
display: flex;
|
|
434
|
+
align-items: center;
|
|
435
|
+
justify-content: space-between;
|
|
436
|
+
gap: 12px;
|
|
437
|
+
padding-top: 2px;
|
|
438
|
+
border-top: 1px solid var(--border-subtle, color-mix(in srgb, var(--text-primary-color) 8%, transparent));
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.ig-link {
|
|
442
|
+
font-size: 0.8125rem;
|
|
443
|
+
font-weight: 500;
|
|
444
|
+
color: var(--base-color, var(--primary));
|
|
445
|
+
text-decoration: none;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.ig-link:hover {
|
|
449
|
+
text-decoration: underline;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.ig-disconnect {
|
|
453
|
+
background: none;
|
|
454
|
+
border: none;
|
|
455
|
+
cursor: pointer;
|
|
456
|
+
color: var(--text-danger-color, #e53935);
|
|
457
|
+
font-size: 0.8125rem;
|
|
458
|
+
font-weight: 500;
|
|
459
|
+
padding: 4px 0;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.ig-disconnect:hover {
|
|
463
|
+
opacity: 0.85;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.ig-connect {
|
|
467
|
+
width: 100%;
|
|
468
|
+
display: flex;
|
|
469
|
+
align-items: center;
|
|
470
|
+
gap: 12px;
|
|
471
|
+
text-align: left;
|
|
472
|
+
padding: 12px 14px;
|
|
473
|
+
border-radius: 12px;
|
|
474
|
+
border: 1px dashed color-mix(in srgb, var(--text-primary-color) 18%, transparent);
|
|
475
|
+
background: transparent;
|
|
476
|
+
cursor: pointer;
|
|
477
|
+
box-sizing: border-box;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.ig-empty {
|
|
481
|
+
display: flex;
|
|
482
|
+
flex-direction: column;
|
|
483
|
+
gap: 12px;
|
|
484
|
+
padding: 8px 0 4px;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.ig-empty-title {
|
|
488
|
+
margin: 0;
|
|
489
|
+
font-size: 1rem;
|
|
490
|
+
font-weight: 600;
|
|
491
|
+
color: var(--text-primary-color);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.ig-empty-copy {
|
|
495
|
+
margin: 0;
|
|
496
|
+
font-size: 0.875rem;
|
|
497
|
+
line-height: 1.45;
|
|
498
|
+
color: var(--text-secondary-color);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.ig-connect:hover {
|
|
502
|
+
background: var(--bg-secondary-color, #f5f5f5);
|
|
503
|
+
border-style: solid;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.ig-connect:disabled {
|
|
507
|
+
opacity: 0.6;
|
|
508
|
+
cursor: not-allowed;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.ig-connect-copy {
|
|
512
|
+
display: flex;
|
|
513
|
+
flex-direction: column;
|
|
514
|
+
gap: 2px;
|
|
515
|
+
min-width: 0;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.ig-connect-title {
|
|
519
|
+
font-size: 0.875rem;
|
|
520
|
+
font-weight: 600;
|
|
521
|
+
color: var(--text-primary-color);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.ig-connect-sub {
|
|
525
|
+
font-size: 0.75rem;
|
|
526
|
+
color: var(--text-secondary-color);
|
|
527
|
+
line-height: 1.35;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.ig-skeleton {
|
|
531
|
+
display: flex;
|
|
532
|
+
align-items: center;
|
|
533
|
+
gap: 12px;
|
|
534
|
+
padding: 14px;
|
|
535
|
+
border-radius: 12px;
|
|
536
|
+
border: 1px solid var(--border-subtle, color-mix(in srgb, var(--text-primary-color) 10%, transparent));
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.ig-skeleton-mark {
|
|
540
|
+
width: 40px;
|
|
541
|
+
height: 40px;
|
|
542
|
+
border-radius: 12px;
|
|
543
|
+
background: color-mix(in srgb, var(--text-secondary-color) 12%, transparent);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.ig-skeleton-lines {
|
|
547
|
+
flex: 1;
|
|
548
|
+
display: flex;
|
|
549
|
+
flex-direction: column;
|
|
550
|
+
gap: 8px;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.ig-skeleton-line {
|
|
554
|
+
height: 10px;
|
|
555
|
+
width: 42%;
|
|
556
|
+
border-radius: 999px;
|
|
557
|
+
background: color-mix(in srgb, var(--text-secondary-color) 12%, transparent);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.ig-skeleton-line.wide {
|
|
561
|
+
width: 68%;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.bottom-actions {
|
|
565
|
+
margin-top: auto;
|
|
566
|
+
display: flex;
|
|
567
|
+
flex-direction: column;
|
|
568
|
+
gap: 2px;
|
|
569
|
+
padding-top: 16px;
|
|
570
|
+
border-top: 1px solid var(--border-subtle, #eaeaea);
|
|
571
|
+
flex-shrink: 0;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.action-button {
|
|
575
|
+
display: flex;
|
|
576
|
+
align-items: center;
|
|
577
|
+
gap: 12px;
|
|
578
|
+
background: none;
|
|
579
|
+
border: none;
|
|
580
|
+
cursor: pointer;
|
|
581
|
+
color: var(--text-primary-color, #111111);
|
|
582
|
+
font-size: 15px;
|
|
583
|
+
line-height: 1.3;
|
|
584
|
+
padding: 12px 8px;
|
|
585
|
+
text-align: left;
|
|
586
|
+
width: 100%;
|
|
587
|
+
box-sizing: border-box;
|
|
588
|
+
border-radius: 8px;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.action-button:hover {
|
|
592
|
+
background-color: var(--bg-secondary-color, #f5f5f5);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.action-button svg {
|
|
596
|
+
width: 18px;
|
|
597
|
+
height: 18px;
|
|
598
|
+
min-width: 18px;
|
|
599
|
+
flex-shrink: 0;
|
|
600
|
+
stroke: currentColor;
|
|
601
|
+
}
|
|
602
|
+
`;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
customElements.define('instagram-accounts-panel', InstagramAccountsPanel);
|