@mobilon-dev/chotto 0.3.96 → 0.3.98
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/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -38
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -2
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +26 -13
- package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
- package/dist/components/1_icons/CloseIcon.vue.js +16 -10
- package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
- package/dist/components/1_icons/MenuIcon.vue.js +16 -10
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
- package/dist/components/1_icons/SearchIcon.vue.js +29 -17
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
- package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +31 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
- package/package.json +1 -1
|
@@ -1,48 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useMessageActions as
|
|
12
|
-
import { useMessageMenuActions as
|
|
13
|
-
import { useMessageLinks as
|
|
14
|
-
import { useChannelAccentColor as
|
|
15
|
-
import { useSubtextTooltip as
|
|
1
|
+
import { defineComponent as K, inject as Q, ref as X, computed as t } from "vue";
|
|
2
|
+
import Y from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import Z from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import $ from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import ee from "../BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
6
|
+
import te from "../MessageReactions/MessageReactions.vue.js";
|
|
7
|
+
import se from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
8
|
+
import oe from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
9
|
+
import ie from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
10
|
+
import ne from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
11
|
+
import { useMessageActions as re } from "../../../hooks/messages/useMessageActions.js";
|
|
12
|
+
import { useMessageMenuActions as ae } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
13
|
+
import { useMessageLinks as me } from "../../../hooks/messages/useMessageLinks.js";
|
|
14
|
+
import { useChannelAccentColor as le } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
15
|
+
import { useSubtextTooltip as ue } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
16
16
|
import { useStartReply as pe } from "../../../hooks/messages/useStartReply.js";
|
|
17
|
-
import { useStartEdit as
|
|
18
|
-
import { buildReplyPayload as
|
|
19
|
-
import { buildEditPayload as
|
|
20
|
-
import { getEditTooltipLines as
|
|
21
|
-
import { getDeletedTooltipLines as
|
|
22
|
-
import { getStatus as
|
|
23
|
-
import { getMessageClass as
|
|
24
|
-
import { createReactionHandlers as
|
|
17
|
+
import { useStartEdit as de } from "../../../hooks/messages/useStartEdit.js";
|
|
18
|
+
import { buildReplyPayload as p } from "../../../hooks/messages/buildReplyPayload.js";
|
|
19
|
+
import { buildEditPayload as ce } from "../../../hooks/messages/buildEditPayload.js";
|
|
20
|
+
import { getEditTooltipLines as ge } from "../../../hooks/messages/getEditTooltipLines.js";
|
|
21
|
+
import { getDeletedTooltipLines as fe } from "../../../hooks/messages/getDeletedOriginalText.js";
|
|
22
|
+
import { getStatus as be, getStatusTitle as ye } from "../../../functions/getStatusMessage.js";
|
|
23
|
+
import { getMessageClass as Me } from "../../../functions/getMessageClass.js";
|
|
24
|
+
import { createReactionHandlers as he } from "../../../functions/createReactionHandlers.js";
|
|
25
25
|
import "../../../functions/parseMarkdown.js";
|
|
26
|
-
import { useLocale as
|
|
27
|
-
const
|
|
28
|
-
key: 1,
|
|
29
|
-
class: "text-message__subtext"
|
|
30
|
-
}, Ue = { class: "text-message__footer" }, $e = { class: "text-message__info-container" }, ze = {
|
|
31
|
-
key: 0,
|
|
32
|
-
class: "text-message__time"
|
|
33
|
-
}, We = ["innerHTML"], Ge = { class: "text-message__footer" }, Je = { class: "text-message__info-container" }, Ke = { class: "text-message__edit-tooltip" }, Qe = {
|
|
34
|
-
key: 0,
|
|
35
|
-
class: "text-message__edit-tooltip-original"
|
|
36
|
-
}, Xe = {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: "text-message__edit-tooltip-original"
|
|
39
|
-
}, Ye = {
|
|
40
|
-
key: 1,
|
|
41
|
-
class: "text-message__edit-tooltip-meta"
|
|
42
|
-
}, Ze = {
|
|
43
|
-
key: 2,
|
|
44
|
-
class: "text-message__time"
|
|
45
|
-
}, It = /* @__PURE__ */ ue({
|
|
26
|
+
import { useLocale as ve } from "../../../locale/useLocale.js";
|
|
27
|
+
const Je = /* @__PURE__ */ K({
|
|
46
28
|
__name: "TextMessage",
|
|
47
29
|
props: {
|
|
48
30
|
message: {
|
|
@@ -64,7 +46,7 @@ const je = ["messageId"], qe = ["src"], Oe = {
|
|
|
64
46
|
reactionsMode: {
|
|
65
47
|
type: String,
|
|
66
48
|
default: "single",
|
|
67
|
-
validator: (
|
|
49
|
+
validator: (o) => ["single", "multi"].includes(o)
|
|
68
50
|
},
|
|
69
51
|
currentUserId: {
|
|
70
52
|
type: [String, Number],
|
|
@@ -86,243 +68,57 @@ const je = ["messageId"], qe = ["src"], Oe = {
|
|
|
86
68
|
}
|
|
87
69
|
},
|
|
88
70
|
emits: ["action", "reply", "sms-invite"],
|
|
89
|
-
setup(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
71
|
+
setup(o, { expose: d, emit: c }) {
|
|
72
|
+
d();
|
|
73
|
+
const e = o, s = c, { t: a } = ve(), { linkedHtml: g, inNewWindow: f } = me(() => e.message.text), { menuActions: b } = ae(() => e.message), i = Q("chatAppId"), { startReply: m } = pe(i || ""), { startEdit: l } = de(i || ""), n = X(!1), {
|
|
74
|
+
isOpenMenu: y,
|
|
75
|
+
buttonMenuVisible: M,
|
|
76
|
+
menuAnchorRef: h,
|
|
77
|
+
menuRef: v,
|
|
78
|
+
menuStyle: S,
|
|
79
|
+
menuTheme: R,
|
|
97
80
|
showMenu: T,
|
|
98
|
-
hideMenu:
|
|
99
|
-
openMenu:
|
|
100
|
-
toggleMenu:
|
|
101
|
-
onMenuMouseEnter:
|
|
102
|
-
onMenuMouseLeave:
|
|
103
|
-
clickAction:
|
|
104
|
-
viewsAction:
|
|
105
|
-
handleClickReplied:
|
|
106
|
-
} =
|
|
107
|
-
onReply: () =>
|
|
108
|
-
onEdit: () =>
|
|
109
|
-
}),
|
|
110
|
-
() => !!(
|
|
111
|
-
),
|
|
81
|
+
hideMenu: x,
|
|
82
|
+
openMenu: I,
|
|
83
|
+
toggleMenu: A,
|
|
84
|
+
onMenuMouseEnter: E,
|
|
85
|
+
onMenuMouseLeave: _,
|
|
86
|
+
clickAction: C,
|
|
87
|
+
viewsAction: L,
|
|
88
|
+
handleClickReplied: w
|
|
89
|
+
} = re(e.message, s, {
|
|
90
|
+
onReply: () => m(p(e.message, "message.text")),
|
|
91
|
+
onEdit: () => l(ce(e.message, "message.text"))
|
|
92
|
+
}), P = t(() => be(e.message.status)), j = t(() => ye(e.message.status, e.message.statusMsg)), k = t(() => a("component.TextMessage.edited")), r = t(() => ge(e.message.edited)), B = t(
|
|
93
|
+
() => !!(r.value.original || r.value.edits.length)
|
|
94
|
+
), F = t(() => fe(e.message)), O = {
|
|
112
95
|
"--chotto-tooltip-border": "1px solid #5F5F5F"
|
|
113
|
-
}, { bubbleStyle:
|
|
114
|
-
|
|
96
|
+
}, { bubbleStyle: q } = le(
|
|
97
|
+
t(() => e.message),
|
|
115
98
|
{ cssVariable: "--chotto-textmessage-right-bg", position: "right" }
|
|
116
99
|
);
|
|
117
|
-
function
|
|
118
|
-
return
|
|
100
|
+
function D(J) {
|
|
101
|
+
return Me(J.position, "text-message");
|
|
119
102
|
}
|
|
120
|
-
const { onToggleReaction:
|
|
121
|
-
() =>
|
|
103
|
+
const { onToggleReaction: H, onAddReaction: N, onRemoveReaction: U } = he(s), V = ue(() => e.message, () => e.subtextTooltipData), W = t(
|
|
104
|
+
() => e.message.status === "error" && e.message.hasMessengerAccount === !1
|
|
122
105
|
);
|
|
123
|
-
function
|
|
124
|
-
|
|
106
|
+
function z() {
|
|
107
|
+
s("sms-invite", e.message);
|
|
125
108
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
109
|
+
function G() {
|
|
110
|
+
n.value || !e.message.edited || (n.value = !0, s("action", {
|
|
128
111
|
action: "fetchEditInfo",
|
|
129
|
-
messageId:
|
|
112
|
+
messageId: e.message.messageId,
|
|
130
113
|
type: "editInfo"
|
|
131
114
|
}));
|
|
132
115
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
b(e.message),
|
|
138
|
-
e.applyStyle(e.message)
|
|
139
|
-
]]),
|
|
140
|
-
messageId: e.message.messageId,
|
|
141
|
-
style: h(t(ee)),
|
|
142
|
-
onMouseleave: n[4] || (n[4] = //@ts-ignore
|
|
143
|
-
(...i) => t(I) && t(I)(...i))
|
|
144
|
-
}, [
|
|
145
|
-
e.message.avatar && e.isFirstInSeries ? (s(), l("img", {
|
|
146
|
-
key: 0,
|
|
147
|
-
class: "text-message__avatar",
|
|
148
|
-
src: e.message.avatar,
|
|
149
|
-
height: "32",
|
|
150
|
-
width: "32",
|
|
151
|
-
style: h({ gridRow: e.message.subText && e.isFirstInSeries ? "2" : "1" })
|
|
152
|
-
}, null, 12, qe)) : o("", !0),
|
|
153
|
-
e.message.subText && e.isFirstInSeries ? (s(), l("p", Oe, [
|
|
154
|
-
f(B, {
|
|
155
|
-
text: t(ne),
|
|
156
|
-
position: e.message.position === "left" ? "right" : "left",
|
|
157
|
-
offset: 8
|
|
158
|
-
}, {
|
|
159
|
-
default: x(() => [
|
|
160
|
-
de(r(e.message.subText), 1)
|
|
161
|
-
]),
|
|
162
|
-
_: 1
|
|
163
|
-
}, 8, ["text", "position"])
|
|
164
|
-
])) : o("", !0),
|
|
165
|
-
m("div", {
|
|
166
|
-
class: c(["text-message__content", {
|
|
167
|
-
"is-first": e.isFirstInSeries,
|
|
168
|
-
"with-avatar-indent": !e.isFirstInSeries && e.message.avatar,
|
|
169
|
-
"has-reply": !!e.message.reply
|
|
170
|
-
}]),
|
|
171
|
-
onMouseenter: n[3] || (n[3] = //@ts-ignore
|
|
172
|
-
(...i) => t(T) && t(T)(...i))
|
|
173
|
-
}, [
|
|
174
|
-
n[7] || (n[7] = m("div", {
|
|
175
|
-
class: "text-message__bottom-shadow",
|
|
176
|
-
"aria-hidden": "true"
|
|
177
|
-
}, null, -1)),
|
|
178
|
-
e.message.deleted ? (s(), l(k, { key: 0 }, [
|
|
179
|
-
f(Se, {
|
|
180
|
-
"original-text": A.value.original,
|
|
181
|
-
meta: A.value.meta
|
|
182
|
-
}, null, 8, ["original-text", "meta"]),
|
|
183
|
-
m("div", Ue, [
|
|
184
|
-
m("div", $e, [
|
|
185
|
-
e.message.time ? (s(), l("span", ze, r(e.message.time), 1)) : o("", !0),
|
|
186
|
-
f(L, {
|
|
187
|
-
"base-class": "text-message",
|
|
188
|
-
"message-class": b(e.message),
|
|
189
|
-
"message-status": e.message.status,
|
|
190
|
-
"status-class": E.value,
|
|
191
|
-
"status-title": p.value
|
|
192
|
-
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
193
|
-
])
|
|
194
|
-
])
|
|
195
|
-
], 64)) : (s(), l(k, { key: 1 }, [
|
|
196
|
-
e.message.reply ? (s(), g(ke, {
|
|
197
|
-
key: 0,
|
|
198
|
-
class: c(e.message.position),
|
|
199
|
-
message: e.message.reply,
|
|
200
|
-
onReply: t(X)
|
|
201
|
-
}, null, 8, ["class", "message", "onReply"])) : o("", !0),
|
|
202
|
-
m("p", {
|
|
203
|
-
class: "text-message__text",
|
|
204
|
-
onClick: n[0] || (n[0] = //@ts-ignore
|
|
205
|
-
(...i) => t(M) && t(M)(...i)),
|
|
206
|
-
innerHTML: t(D)
|
|
207
|
-
}, null, 8, We),
|
|
208
|
-
e.message.linkPreview ? (s(), g(be, {
|
|
209
|
-
key: 1,
|
|
210
|
-
class: c(e.message.position),
|
|
211
|
-
"link-preview": e.message.linkPreview
|
|
212
|
-
}, null, 8, ["class", "link-preview"])) : o("", !0),
|
|
213
|
-
e.message.embed ? (s(), g(he, {
|
|
214
|
-
key: 2,
|
|
215
|
-
class: c(e.message.position),
|
|
216
|
-
embed: e.message.embed
|
|
217
|
-
}, null, 8, ["class", "embed"])) : o("", !0),
|
|
218
|
-
m("div", Ge, [
|
|
219
|
-
e.reactionsEnabled ? (s(), g(Me, {
|
|
220
|
-
key: 0,
|
|
221
|
-
reactions: e.message.reactions,
|
|
222
|
-
"message-id": e.message.messageId,
|
|
223
|
-
reply: t(N)(e.message, "message.text"),
|
|
224
|
-
enabled: e.reactionsEnabled,
|
|
225
|
-
mode: e.reactionsMode,
|
|
226
|
-
"current-user-id": e.currentUserId,
|
|
227
|
-
"reaction-user-names": e.reactionUserNames,
|
|
228
|
-
"menu-enabled": t(v).length > 0,
|
|
229
|
-
onToggleReaction: t(te),
|
|
230
|
-
onAddReaction: t(se),
|
|
231
|
-
onRemoveReaction: t(ae),
|
|
232
|
-
onMenu: t(G)
|
|
233
|
-
}, null, 8, ["reactions", "message-id", "reply", "enabled", "mode", "current-user-id", "reaction-user-names", "menu-enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction", "onMenu"])) : o("", !0),
|
|
234
|
-
m("div", Je, [
|
|
235
|
-
e.message.views ? (s(), l("div", {
|
|
236
|
-
key: 0,
|
|
237
|
-
class: "text-message__views",
|
|
238
|
-
onClick: n[1] || (n[1] = //@ts-ignore
|
|
239
|
-
(...i) => t(C) && t(C)(...i))
|
|
240
|
-
}, [
|
|
241
|
-
n[5] || (n[5] = m("span", { class: "pi pi-eye" }, null, -1)),
|
|
242
|
-
m("p", null, r(e.message.views), 1)
|
|
243
|
-
])) : o("", !0),
|
|
244
|
-
e.message.edited ? (s(), g(B, {
|
|
245
|
-
key: 1,
|
|
246
|
-
position: "bottom-right",
|
|
247
|
-
offset: 8,
|
|
248
|
-
delay: 400,
|
|
249
|
-
"max-width": "280px",
|
|
250
|
-
"bubble-style": _
|
|
251
|
-
}, ce({
|
|
252
|
-
default: x(() => [
|
|
253
|
-
m("span", {
|
|
254
|
-
class: "text-message__edited",
|
|
255
|
-
onMouseenter: le
|
|
256
|
-
}, r(Y.value), 33)
|
|
257
|
-
]),
|
|
258
|
-
_: 2
|
|
259
|
-
}, [
|
|
260
|
-
Z.value ? {
|
|
261
|
-
name: "content",
|
|
262
|
-
fn: x(() => [
|
|
263
|
-
m("div", Ke, [
|
|
264
|
-
d.value.original ? (s(), l("div", Qe, r(d.value.original), 1)) : o("", !0),
|
|
265
|
-
(s(!0), l(k, null, fe(d.value.edits, (i, me) => (s(), l("div", {
|
|
266
|
-
key: `${i.text}-${i.meta}-${me}`,
|
|
267
|
-
class: "text-message__edit-tooltip-entry"
|
|
268
|
-
}, [
|
|
269
|
-
i.text ? (s(), l("div", Xe, r(i.text), 1)) : o("", !0),
|
|
270
|
-
i.meta ? (s(), l("div", Ye, r(i.meta), 1)) : o("", !0)
|
|
271
|
-
]))), 128))
|
|
272
|
-
])
|
|
273
|
-
]),
|
|
274
|
-
key: "0"
|
|
275
|
-
} : void 0
|
|
276
|
-
]), 1024)) : o("", !0),
|
|
277
|
-
e.message.time ? (s(), l("span", Ze, r(e.message.time), 1)) : o("", !0),
|
|
278
|
-
f(L, {
|
|
279
|
-
"base-class": "text-message",
|
|
280
|
-
"message-class": b(e.message),
|
|
281
|
-
"message-status": e.message.status,
|
|
282
|
-
"status-class": E.value,
|
|
283
|
-
"status-title": p.value
|
|
284
|
-
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
285
|
-
])
|
|
286
|
-
]),
|
|
287
|
-
ie.value ? (s(), g(Re, {
|
|
288
|
-
key: 3,
|
|
289
|
-
status: e.message.status,
|
|
290
|
-
"has-messenger-account": e.message.hasMessengerAccount,
|
|
291
|
-
channel: e.channel,
|
|
292
|
-
onSmsInvite: oe
|
|
293
|
-
}, null, 8, ["status", "has-messenger-account", "channel"])) : o("", !0),
|
|
294
|
-
t(O) && t(v).length && !e.reactionsEnabled ? (s(), l("button", {
|
|
295
|
-
key: 4,
|
|
296
|
-
class: "text-message__menu-button",
|
|
297
|
-
onClick: n[2] || (n[2] = //@ts-ignore
|
|
298
|
-
(...i) => t(w) && t(w)(...i))
|
|
299
|
-
}, [...n[6] || (n[6] = [
|
|
300
|
-
m("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
301
|
-
])])) : o("", !0),
|
|
302
|
-
(s(), g(ye, { to: "body" }, [
|
|
303
|
-
f(ve, null, {
|
|
304
|
-
default: x(() => [
|
|
305
|
-
t(q) && t(v).length ? (s(), g(xe, {
|
|
306
|
-
key: 0,
|
|
307
|
-
ref_key: "menuRef",
|
|
308
|
-
ref: $,
|
|
309
|
-
class: "text-message__context-menu message-actions-menu",
|
|
310
|
-
style: h(t(z)),
|
|
311
|
-
"data-theme": t(W),
|
|
312
|
-
actions: t(v),
|
|
313
|
-
onClick: t(Q),
|
|
314
|
-
onMouseenter: t(J),
|
|
315
|
-
onMouseleave: t(K)
|
|
316
|
-
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter", "onMouseleave"])) : o("", !0)
|
|
317
|
-
]),
|
|
318
|
-
_: 1
|
|
319
|
-
})
|
|
320
|
-
]))
|
|
321
|
-
], 64))
|
|
322
|
-
], 34)
|
|
323
|
-
], 46, je));
|
|
116
|
+
const u = { props: e, emit: s, t: a, linkedHtml: g, inNewWindow: f, menuActions: b, chatAppId: i, startReply: m, startEdit: l, editInfoRequested: n, isOpenMenu: y, buttonMenuVisible: M, menuAnchorRef: h, menuRef: v, menuStyle: S, menuTheme: R, showMenu: T, hideMenu: x, openMenu: I, toggleMenu: A, onMenuMouseEnter: E, onMenuMouseLeave: _, clickAction: C, viewsAction: L, handleClickReplied: w, status: P, statusTitle: j, editedLabel: k, editTooltipLines: r, hasEditTooltip: B, deletedTooltip: F, editTooltipBubbleStyle: O, rightBubbleStyle: q, getClass: D, onToggleReaction: H, onAddReaction: N, onRemoveReaction: U, channelInfo: V, showSmsInvite: W, handleSmsInvite: z, onEditedHover: G, ContextMenu: Y, LinkPreview: Z, EmbedPreview: $, BaseReplyMessage: ee, MessageReactions: te, MessageStatusIndicator: se, MessageSmsInvite: oe, DeletedMessageContent: ie, Tooltip: ne, get buildReplyPayload() {
|
|
117
|
+
return p;
|
|
118
|
+
} };
|
|
119
|
+
return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
|
|
324
120
|
}
|
|
325
121
|
});
|
|
326
122
|
export {
|
|
327
|
-
|
|
123
|
+
Je as default
|
|
328
124
|
};
|
|
@@ -1,7 +1,40 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./TypingMessage.vue2.js";
|
|
2
|
+
import { createElementBlock as s, openBlock as t, createCommentVNode as o, createElementVNode as i, normalizeStyle as r, toDisplayString as c } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = { class: "typing-message__container" }, g = ["src"], d = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "typing-message__subtext"
|
|
8
|
+
};
|
|
9
|
+
function l(p, a, e, f, y, u) {
|
|
10
|
+
return t(), s("div", m, [
|
|
11
|
+
e.message.avatar ? (t(), s("img", {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "typing-message__avatar",
|
|
14
|
+
src: e.message.avatar,
|
|
15
|
+
height: "32",
|
|
16
|
+
width: "32",
|
|
17
|
+
style: r({ gridRow: e.message.subText ? "2" : "1" })
|
|
18
|
+
}, null, 12, g)) : o("v-if", !0),
|
|
19
|
+
e.message.subText ? (t(), s(
|
|
20
|
+
"p",
|
|
21
|
+
d,
|
|
22
|
+
c(e.message.subText),
|
|
23
|
+
1
|
|
24
|
+
/* TEXT */
|
|
25
|
+
)) : o("v-if", !0),
|
|
26
|
+
a[0] || (a[0] = i(
|
|
27
|
+
"div",
|
|
28
|
+
{ class: "typing-message__loader-container" },
|
|
29
|
+
[
|
|
30
|
+
i("div", { class: "typing-message__loader" })
|
|
31
|
+
],
|
|
32
|
+
-1
|
|
33
|
+
/* CACHED */
|
|
34
|
+
))
|
|
35
|
+
]);
|
|
36
|
+
}
|
|
37
|
+
const b = /* @__PURE__ */ _(n, [["render", l], ["__scopeId", "data-v-f4b94ea0"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/TypingMessage/TypingMessage.vue"]]);
|
|
5
38
|
export {
|
|
6
|
-
|
|
39
|
+
b as default
|
|
7
40
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
key: 1,
|
|
4
|
-
class: "typing-message__subtext"
|
|
5
|
-
}, y = /* @__PURE__ */ r({
|
|
1
|
+
import { defineComponent as t } from "vue";
|
|
2
|
+
const n = /* @__PURE__ */ t({
|
|
6
3
|
__name: "TypingMessage",
|
|
7
4
|
props: {
|
|
8
5
|
message: {
|
|
@@ -10,23 +7,12 @@ const o = { class: "typing-message__container" }, c = ["src"], l = {
|
|
|
10
7
|
required: !0
|
|
11
8
|
}
|
|
12
9
|
},
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class: "typing-message__avatar",
|
|
18
|
-
src: e.message.avatar,
|
|
19
|
-
height: "32",
|
|
20
|
-
width: "32",
|
|
21
|
-
style: g({ gridRow: e.message.subText ? "2" : "1" })
|
|
22
|
-
}, null, 12, c)) : n("", !0),
|
|
23
|
-
e.message.subText ? (t(), s("p", l, m(e.message.subText), 1)) : n("", !0),
|
|
24
|
-
a[0] || (a[0] = i("div", { class: "typing-message__loader-container" }, [
|
|
25
|
-
i("div", { class: "typing-message__loader" })
|
|
26
|
-
], -1))
|
|
27
|
-
]));
|
|
10
|
+
setup(p, { expose: r }) {
|
|
11
|
+
r();
|
|
12
|
+
const e = {};
|
|
13
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
28
14
|
}
|
|
29
15
|
});
|
|
30
16
|
export {
|
|
31
|
-
|
|
17
|
+
n as default
|
|
32
18
|
};
|