@mobilon-dev/chotto 0.3.105 → 0.3.106
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/2_feed_elements/AudioMessage/AudioMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +39 -39
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +7 -0
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +73 -0
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +28 -28
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +39 -39
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +41 -41
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +28 -28
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +26 -26
- package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
- package/dist/components/3_compounds/Feed/Feed.vue2.js +249 -211
- package/dist/components/3_compounds/Feed/composables/useFeedGrouping.js +23 -20
- package/dist/components/3_compounds/Feed/composables/useFeedProgressiveRender.js +79 -0
- package/dist/index.js +212 -210
- package/dist/types/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.d.ts +19 -0
- package/dist/types/components/3_compounds/Feed/Feed.vue.d.ts +6 -0
- package/dist/types/components/3_compounds/Feed/composables/index.d.ts +1 -0
- package/dist/types/components/3_compounds/Feed/composables/useFeedGrouping.d.ts +3 -22
- package/dist/types/components/3_compounds/Feed/composables/useFeedProgressiveRender.d.ts +22 -0
- package/dist/types/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ref as y, computed as H, watch as C, onUnmounted as I, nextTick as p } from "vue";
|
|
2
|
+
const K = 28, B = 24;
|
|
3
|
+
function F(a, s) {
|
|
4
|
+
var t;
|
|
5
|
+
return ((t = a[s]) == null ? void 0 : t.messageId) ?? "";
|
|
6
|
+
}
|
|
7
|
+
function _({
|
|
8
|
+
objectsRef: a,
|
|
9
|
+
feedRef: s
|
|
10
|
+
}) {
|
|
11
|
+
const t = y(0);
|
|
12
|
+
let u = "", g = "", r = 0, v = 0, i = 0;
|
|
13
|
+
const k = H(() => a.value.slice(t.value)), A = H(() => t.value > 0);
|
|
14
|
+
function h() {
|
|
15
|
+
v += 1, i && (cancelAnimationFrame(i), i = 0);
|
|
16
|
+
}
|
|
17
|
+
function d(e, o, l) {
|
|
18
|
+
const n = s.value;
|
|
19
|
+
if (!n) return;
|
|
20
|
+
const c = n.style.scrollBehavior;
|
|
21
|
+
n.style.scrollBehavior = "auto", l ? n.scrollTop = n.scrollHeight : n.scrollTop = o + (n.scrollHeight - e), requestAnimationFrame(() => {
|
|
22
|
+
n.style.scrollBehavior = c;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function f() {
|
|
26
|
+
const e = ++v, o = () => {
|
|
27
|
+
if (i = 0, e !== v || t.value <= 0) return;
|
|
28
|
+
const l = s.value, n = (l == null ? void 0 : l.scrollHeight) ?? 0, c = (l == null ? void 0 : l.scrollTop) ?? 0, m = l ? l.scrollHeight - l.scrollTop - l.clientHeight < 140 : !0;
|
|
29
|
+
t.value = Math.max(0, t.value - B), p(() => {
|
|
30
|
+
d(n, c, m), e === v && t.value > 0 && (i = requestAnimationFrame(o));
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
i = requestAnimationFrame(o);
|
|
34
|
+
}
|
|
35
|
+
function T(e) {
|
|
36
|
+
t.value = Math.max(0, e - K), t.value > 0 && f();
|
|
37
|
+
}
|
|
38
|
+
function E(e) {
|
|
39
|
+
if (e < 0) return;
|
|
40
|
+
const o = Math.max(0, e - 8);
|
|
41
|
+
o < t.value && (t.value = o, t.value > 0 && f());
|
|
42
|
+
}
|
|
43
|
+
function L() {
|
|
44
|
+
if (t.value <= 0) return;
|
|
45
|
+
const e = s.value, o = (e == null ? void 0 : e.scrollHeight) ?? 0, l = (e == null ? void 0 : e.scrollTop) ?? 0, n = e ? e.scrollHeight - e.scrollTop - e.clientHeight < 140 : !1;
|
|
46
|
+
t.value = Math.max(0, t.value - B * 2), p(() => {
|
|
47
|
+
d(o, l, n), t.value > 0 && f();
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return C(
|
|
51
|
+
() => a.value,
|
|
52
|
+
(e) => {
|
|
53
|
+
const o = F(e, 0), l = F(e, e.length - 1), n = r > 0 && e.length > r && l === g && o !== u, c = r > 0 && e.length > r && o === u, m = o === u && l === g && e.length === r;
|
|
54
|
+
if (e.length === 0)
|
|
55
|
+
h(), t.value = 0;
|
|
56
|
+
else if (!m) if (n) {
|
|
57
|
+
const q = e.length - r;
|
|
58
|
+
t.value > 0 && (t.value += q, f());
|
|
59
|
+
} else c || (r === 0 ? (h(), T(e.length)) : (h(), t.value = e.length, p(() => {
|
|
60
|
+
requestAnimationFrame(() => {
|
|
61
|
+
T(a.value.length);
|
|
62
|
+
});
|
|
63
|
+
})));
|
|
64
|
+
u = o, g = l, r = e.length;
|
|
65
|
+
},
|
|
66
|
+
{ immediate: !0 }
|
|
67
|
+
), I(h), {
|
|
68
|
+
visibleObjects: k,
|
|
69
|
+
renderStart: t,
|
|
70
|
+
isBackfilling: A,
|
|
71
|
+
revealThroughIndex: E,
|
|
72
|
+
accelerateBackfill: L
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
B as FEED_BACKFILL_CHUNK,
|
|
77
|
+
K as FEED_TAIL_CHUNK,
|
|
78
|
+
_ as useFeedProgressiveRender
|
|
79
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { default as C } from "./components/1_icons/CheckIcon.vue.js";
|
|
|
11
11
|
import { default as h } from "./components/1_icons/CloseButtonIcon.vue.js";
|
|
12
12
|
import { default as R } from "./components/1_icons/ContactCRMIcon.vue.js";
|
|
13
13
|
import { default as A } from "./components/1_icons/MenuIcon.vue.js";
|
|
14
|
-
import { default as
|
|
14
|
+
import { default as I } from "./components/1_icons/SearchIcon.vue.js";
|
|
15
15
|
import { default as B } from "./components/1_icons/SettingsIcon.vue.js";
|
|
16
16
|
import { default as b } from "./components/1_icons/TelegramIcon.vue.js";
|
|
17
17
|
import { default as E } from "./components/1_icons/WhatsAppIcon.vue.js";
|
|
@@ -20,7 +20,7 @@ import { default as V } from "./components/1_icons/MessageStatus/PendingStatusIc
|
|
|
20
20
|
import { default as H } from "./components/1_icons/MessageStatus/ReadStatusIcon.vue.js";
|
|
21
21
|
import { default as j } from "./components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js";
|
|
22
22
|
import { default as O } from "./components/1_icons/MessageStatus/SentStatusIcon.vue.js";
|
|
23
|
-
import { default as
|
|
23
|
+
import { default as K } from "./components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js";
|
|
24
24
|
import { default as X } from "./components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js";
|
|
25
25
|
import { default as z } from "./components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js";
|
|
26
26
|
import { default as J } from "./components/2_blocks/FeedSearch/FeedSearch.vue.js";
|
|
@@ -38,7 +38,7 @@ import { default as Ce } from "./components/2_chatinput_elements/WABAAttachmentS
|
|
|
38
38
|
import { default as he } from "./components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js";
|
|
39
39
|
import { default as Re } from "./components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js";
|
|
40
40
|
import { default as Ae } from "./components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js";
|
|
41
|
-
import { default as
|
|
41
|
+
import { default as Ie } from "./components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js";
|
|
42
42
|
import { default as Be } from "./components/2_chatlist_elements/ChatItem/ChatItem.vue.js";
|
|
43
43
|
import { default as be } from "./components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js";
|
|
44
44
|
import { default as Ee } from "./components/2_elements/AudioRecorder/AudioRecorder.vue.js";
|
|
@@ -47,262 +47,264 @@ import { default as Ve } from "./components/2_elements/ChatInfo/ChatInfo.vue.js"
|
|
|
47
47
|
import { default as He } from "./components/2_elements/ChatPanel/ChatPanel.vue.js";
|
|
48
48
|
import { default as je } from "./components/2_elements/ContactInfo/ContactInfo.vue.js";
|
|
49
49
|
import { default as Oe } from "./components/2_elements/ThemeMode/ThemeMode.vue.js";
|
|
50
|
-
import { default as
|
|
50
|
+
import { default as Ke } from "./components/2_elements/UserProfile/UserProfile.vue.js";
|
|
51
51
|
import { default as Xe } from "./components/2_elements/VideoRecorder/VideoRecorder.vue.js";
|
|
52
52
|
import { default as ze } from "./components/2_feed_elements/AudioMessage/AudioMessage.vue.js";
|
|
53
53
|
import { default as Je } from "./components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
54
|
-
import { default as Ze } from "./components/2_feed_elements/
|
|
55
|
-
import { default as et } from "./components/2_feed_elements/
|
|
56
|
-
import { default as ot } from "./components/2_feed_elements/
|
|
57
|
-
import { default as rt } from "./components/2_feed_elements/
|
|
58
|
-
import { default as ft } from "./components/2_feed_elements/
|
|
59
|
-
import { default as dt } from "./components/2_feed_elements/
|
|
60
|
-
import { default as mt } from "./components/2_feed_elements/
|
|
61
|
-
import { default as xt } from "./components/2_feed_elements/
|
|
62
|
-
import { default as nt } from "./components/2_feed_elements/
|
|
63
|
-
import { default as Mt } from "./components/2_feed_elements/
|
|
64
|
-
import { default as Ct } from "./components/2_feed_elements/
|
|
65
|
-
import { default as ht } from "./components/2_feed_elements/
|
|
66
|
-
import { default as Rt } from "./components/2_feed_elements/
|
|
67
|
-
import { default as At } from "./components/2_feed_elements/
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as Bt } from "./components/2_feed_elements/
|
|
70
|
-
import { default as bt } from "./components/2_feed_elements/
|
|
71
|
-
import { default as Et } from "./components/2_feed_elements/
|
|
72
|
-
import { default as kt } from "./components/2_feed_elements/
|
|
73
|
-
import { default as Vt } from "./components/2_feed_elements/
|
|
74
|
-
import { default as Ht } from "./components/2_feed_elements/
|
|
75
|
-
import { default as jt } from "./components/2_feed_elements/
|
|
76
|
-
import { default as Ot } from "./components/2_feed_elements/
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as Xt } from "./components/2_feed_elements/
|
|
79
|
-
import { default as zt } from "./components/2_feed_elements/
|
|
80
|
-
import { default as Jt } from "./components/2_feed_elements/
|
|
81
|
-
import { default as Zt } from "./components/
|
|
82
|
-
import { default as eo } from "./components/2_modals/
|
|
83
|
-
import { default as oo } from "./components/2_modals/
|
|
84
|
-
import { default as ro } from "./components/2_modals/
|
|
85
|
-
import { default as fo } from "./components/2_modals/
|
|
86
|
-
import { default as po } from "./components/
|
|
87
|
-
import { default as uo } from "./components/3_compounds/
|
|
88
|
-
import { default as io } from "./components/3_compounds/ChatList/
|
|
89
|
-
import { default as co } from "./components/3_compounds/
|
|
90
|
-
import { default as go } from "./components/3_compounds/
|
|
91
|
-
import { default as So } from "./components/
|
|
92
|
-
import { default as yo } from "./components/4_layouts/
|
|
93
|
-
import { default as To } from "./components/4_layouts/
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as Po } from "./components/4_layouts/
|
|
96
|
-
import { default as Do } from "./components/
|
|
97
|
-
import { default as vo } from "./components/5_containers/
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
54
|
+
import { default as Ze } from "./components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js";
|
|
55
|
+
import { default as et } from "./components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js";
|
|
56
|
+
import { default as ot } from "./components/2_feed_elements/CallMessage/CallMessage.vue.js";
|
|
57
|
+
import { default as rt } from "./components/2_feed_elements/DateMessage/DateMessage.vue.js";
|
|
58
|
+
import { default as ft } from "./components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
59
|
+
import { default as dt } from "./components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js";
|
|
60
|
+
import { default as mt } from "./components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js";
|
|
61
|
+
import { default as xt } from "./components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js";
|
|
62
|
+
import { default as nt } from "./components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js";
|
|
63
|
+
import { default as Mt } from "./components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js";
|
|
64
|
+
import { default as Ct } from "./components/2_feed_elements/FileMessage/FileMessage.vue.js";
|
|
65
|
+
import { default as ht } from "./components/2_feed_elements/ImageMessage/ImageMessage.vue.js";
|
|
66
|
+
import { default as Rt } from "./components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
|
|
67
|
+
import { default as At } from "./components/2_feed_elements/MessageReactions/MessageReactions.vue.js";
|
|
68
|
+
import { default as It } from "./components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
69
|
+
import { default as Bt } from "./components/2_feed_elements/StickerMessage/StickerMessage.vue.js";
|
|
70
|
+
import { default as bt } from "./components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js";
|
|
71
|
+
import { default as Et } from "./components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js";
|
|
72
|
+
import { default as kt } from "./components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js";
|
|
73
|
+
import { default as Vt } from "./components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js";
|
|
74
|
+
import { default as Ht } from "./components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js";
|
|
75
|
+
import { default as jt } from "./components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js";
|
|
76
|
+
import { default as Ot } from "./components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js";
|
|
77
|
+
import { default as Kt } from "./components/2_feed_elements/SplashScreen/SplashScreen.vue.js";
|
|
78
|
+
import { default as Xt } from "./components/2_feed_elements/SystemMessage/SystemMessage.vue.js";
|
|
79
|
+
import { default as zt } from "./components/2_feed_elements/TextMessage/TextMessage.vue.js";
|
|
80
|
+
import { default as Jt } from "./components/2_feed_elements/TypingMessage/TypingMessage.vue.js";
|
|
81
|
+
import { default as Zt } from "./components/2_feed_elements/VideoMessage/VideoMessage.vue.js";
|
|
82
|
+
import { default as eo } from "./components/2_modals/Modal/Modal.vue.js";
|
|
83
|
+
import { default as oo } from "./components/2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
84
|
+
import { default as ro } from "./components/2_modals/ModalNoFooter/ModalNoFooter.vue.js";
|
|
85
|
+
import { default as fo } from "./components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js";
|
|
86
|
+
import { default as po } from "./components/2_modals/SelectUser/SelectUser.vue.js";
|
|
87
|
+
import { default as uo } from "./components/3_compounds/ChatInput/ChatInput.vue.js";
|
|
88
|
+
import { default as io } from "./components/3_compounds/ChatList/ChatListHeader.vue.js";
|
|
89
|
+
import { default as co } from "./components/3_compounds/ChatList/ChatList.vue.js";
|
|
90
|
+
import { default as go } from "./components/3_compounds/Feed/Feed.vue.js";
|
|
91
|
+
import { default as So } from "./components/3_compounds/SideBar/SideBar.vue.js";
|
|
92
|
+
import { default as yo } from "./components/4_layouts/BaseLayout/BaseLayout.vue.js";
|
|
93
|
+
import { default as To } from "./components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js";
|
|
94
|
+
import { default as Fo } from "./components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js";
|
|
95
|
+
import { default as Po } from "./components/4_layouts/FeedLayout/FeedLayout.vue.js";
|
|
96
|
+
import { default as Do } from "./components/4_layouts/ChatWrapper/ChatWrapper.vue.js";
|
|
97
|
+
import { default as vo } from "./components/5_containers/BaseContainer/BaseContainer.vue.js";
|
|
98
|
+
import { default as Lo } from "./components/5_containers/FloatContainer/FloatContainer.vue.js";
|
|
99
|
+
import { buildFilePreview as wo, generatePreview as Vo } from "./hooks/uploadFile/generatePreview.js";
|
|
100
|
+
import { getTypeFileByMime as Ho } from "./hooks/uploadFile/getTypeFileByMime.js";
|
|
101
|
+
import { uploadFile as jo } from "./hooks/uploadFile/uploadFile.js";
|
|
102
|
+
import { useDelayDebouncedRef as Oo } from "./hooks/useDelayDebouncedRef.js";
|
|
103
|
+
import { useImmediateDebouncedRef as Ko } from "./hooks/useImmediateDebouncedRef.js";
|
|
104
|
+
import { MAX_ATTACHED_FILES as Xo, commitChatDraftToList as qo, getChatDraft as zo, getDraftFiles as Go, useMessageDraft as Jo } from "./hooks/useMessageDraft.js";
|
|
105
|
+
import { useSearchModel as Zo } from "./hooks/useSearchModel.js";
|
|
106
|
+
import { useTheme as ea } from "./hooks/useTheme.js";
|
|
107
|
+
import { useEmojiNative as oa } from "./hooks/useEmojiNative.js";
|
|
108
|
+
import { useModalCreateChat as ra } from "./hooks/modals/useCreateChat.js";
|
|
109
|
+
import { useModalCreateChat2 as fa } from "./hooks/modals/useCreateChat2.js";
|
|
110
|
+
import { useModalCreateDialog as da } from "./hooks/modals/useCreateDialog.js";
|
|
111
|
+
import { useConfirmDeleteMessage as ma } from "./hooks/modals/useConfirmDeleteMessage.js";
|
|
112
|
+
import { useModalSelectUser2 as xa } from "./hooks/modals/useModalSelectUser2.js";
|
|
113
|
+
import { useModalVideoRecorder as na } from "./hooks/modals/useVideoRecorder.js";
|
|
114
|
+
import { getValidationReport as Ma, validateChats as ga } from "./hooks/validators/chats/chatValidator.js";
|
|
115
|
+
import { useChatValidator as Sa } from "./hooks/validators/chats/useChatValidator.js";
|
|
116
|
+
import { getMessageValidationReport as ya, validateMessages as Ra } from "./hooks/validators/messages/messageValidator.js";
|
|
117
|
+
import { useMessageValidator as Aa } from "./hooks/validators/messages/useMessageValidator.js";
|
|
118
|
+
import { getSidebarValidationReport as Ia, validateSidebarItems as Pa } from "./hooks/validators/sidebar/sidebarValidator.js";
|
|
119
|
+
import { useSidebarValidator as Da } from "./hooks/validators/sidebar/useSidebarValidator.js";
|
|
120
|
+
import { useValidation as va } from "./hooks/validators/useValidation.js";
|
|
121
|
+
import { useMessageActions as La } from "./hooks/messages/useMessageActions.js";
|
|
122
|
+
import { useMessageHoverActions as wa } from "./hooks/messages/useMessageHoverActions.js";
|
|
123
|
+
import { calculateMessageMenuPosition as Wa, findAppBoundsRect as Ha } from "./hooks/messages/calculateMessageMenuPosition.js";
|
|
124
|
+
import { useMessageMenuActions as ja } from "./hooks/messages/useMessageMenuActions.js";
|
|
125
|
+
import { useMessageLinks as Oa } from "./hooks/messages/useMessageLinks.js";
|
|
126
|
+
import { useChannelAccentColor as Ka } from "./hooks/messages/useChannelAccentColor.js";
|
|
127
|
+
import { useSubtextTooltip as Xa } from "./hooks/messages/useSubtextTooltip.js";
|
|
128
|
+
import { hideReplyPreview as za, showReplyPreview as Ga, useStartReply as Ja } from "./hooks/messages/useStartReply.js";
|
|
129
|
+
import { hideEditPreview as Za, showEditPreview as $a, useStartEdit as er } from "./hooks/messages/useStartEdit.js";
|
|
130
|
+
import { canStartEditLastSent as or, isCursorOnFirstLine as ar, isEditableLastSentCandidate as rr } from "./hooks/messages/canStartEditLastSent.js";
|
|
131
|
+
import { buildReplyPayload as fr } from "./hooks/messages/buildReplyPayload.js";
|
|
132
|
+
import { buildEditPayload as dr } from "./hooks/messages/buildEditPayload.js";
|
|
133
|
+
import { getEditTooltipLines as mr } from "./hooks/messages/getEditTooltipLines.js";
|
|
134
|
+
import { getDeletedOriginalText as xr, getDeletedTooltipLines as ir } from "./hooks/messages/getDeletedOriginalText.js";
|
|
135
|
+
import { getStatus as cr, getStatusTitle as Mr, statuses as gr } from "./functions/getStatusMessage.js";
|
|
136
|
+
import { formatTimestamp as Sr } from "./functions/formatTimestamp.js";
|
|
137
|
+
import { playNotificationAudio as yr } from "./functions/playNotificationAudio.js";
|
|
138
|
+
import { insertDaySeparators as Tr } from "./functions/insertDaySeparators.js";
|
|
139
|
+
import { sortByTimestamp as Fr } from "./functions/sortByTimestamp.js";
|
|
140
|
+
import { getMessageClass as Pr } from "./functions/getMessageClass.js";
|
|
141
|
+
import { createReactionHandlers as Dr } from "./functions/createReactionHandlers.js";
|
|
142
|
+
import { getChannelAccentColor as vr } from "./functions/getChannelAccentColor.js";
|
|
143
|
+
import { isSmsChannel as Lr, isSmsFeedMessage as kr } from "./functions/isSmsChannel.js";
|
|
144
|
+
import { parseMarkdown as Vr } from "./functions/parseMarkdown.js";
|
|
145
|
+
import { safeMediaPlay as Hr, safeMediaPlayVoid as Ur } from "./functions/safeMediaPlay.js";
|
|
145
146
|
export {
|
|
146
|
-
|
|
147
|
+
Fo as AdaptiveExtendedLayout,
|
|
147
148
|
ze as AudioMessage,
|
|
148
149
|
Ee as AudioRecorder,
|
|
149
150
|
M as AvatarIcon,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
vo as BaseContainer,
|
|
152
|
+
et as BaseEditMessage,
|
|
153
|
+
yo as BaseLayout,
|
|
153
154
|
Je as BaseReplyMessage,
|
|
154
155
|
Z as ButtonCommandsSelector,
|
|
155
156
|
r as ButtonContextMenu,
|
|
156
157
|
ee as ButtonEmojiPicker,
|
|
157
158
|
oe as ButtonTemplateSelector,
|
|
158
159
|
re as ButtonWabaTemplateSelector,
|
|
159
|
-
|
|
160
|
+
ot as CallMessage,
|
|
160
161
|
ke as ChannelSelector,
|
|
161
|
-
|
|
162
|
+
Ie as ChatFilter,
|
|
162
163
|
Ve as ChatInfo,
|
|
163
|
-
|
|
164
|
+
uo as ChatInput,
|
|
164
165
|
Be as ChatItem,
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
co as ChatList,
|
|
167
|
+
io as ChatListHeader,
|
|
167
168
|
He as ChatPanel,
|
|
168
169
|
be as ChatTabs,
|
|
169
|
-
|
|
170
|
+
Do as ChatWrapper,
|
|
170
171
|
C as CheckIcon,
|
|
171
172
|
h as CloseButtonIcon,
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
K as CommunicationPanel,
|
|
174
|
+
fo as ConfirmDeleteMessage,
|
|
174
175
|
R as ContactCRMIcon,
|
|
175
176
|
f as ContactContextMenu,
|
|
176
177
|
je as ContactInfo,
|
|
177
178
|
d as ContextMenu,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
rt as DateMessage,
|
|
180
|
+
mt as DateMessageSticky,
|
|
181
|
+
ft as DeletedMessageContent,
|
|
182
|
+
xt as DelimiterMessage,
|
|
183
|
+
nt as EditTextMessage,
|
|
183
184
|
m as EmbedPreview,
|
|
184
185
|
k as ErrorStatusIcon,
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
To as ExtendedLayout,
|
|
187
|
+
go as Feed,
|
|
187
188
|
X as FeedFoundItem,
|
|
188
189
|
z as FeedFoundObjects,
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
Mt as FeedKeyboard,
|
|
191
|
+
Po as FeedLayout,
|
|
192
|
+
Ze as FeedReplyQuote,
|
|
191
193
|
J as FeedSearch,
|
|
192
|
-
|
|
194
|
+
Ct as FileMessage,
|
|
193
195
|
fe as FilePreview,
|
|
194
196
|
de as FileUploader,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
+
Lo as FloatContainer,
|
|
198
|
+
ht as ImageMessage,
|
|
197
199
|
x as LinkPreview,
|
|
198
|
-
|
|
200
|
+
Xo as MAX_ATTACHED_FILES,
|
|
199
201
|
A as MenuIcon,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
Rt as MessageKeyboard,
|
|
203
|
+
At as MessageReactions,
|
|
204
|
+
It as MessageStatusIndicator,
|
|
205
|
+
dt as MissedCallMessage,
|
|
206
|
+
eo as Modal,
|
|
207
|
+
oo as ModalFullscreen,
|
|
208
|
+
ro as ModalNoFooter,
|
|
207
209
|
V as PendingStatusIcon,
|
|
208
210
|
me as PlaceholderComponent,
|
|
209
211
|
H as ReadStatusIcon,
|
|
210
212
|
j as ReceivedStatusIcon,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
213
|
+
bt as ReplyAudioMessage,
|
|
214
|
+
Et as ReplyCallMessage,
|
|
215
|
+
kt as ReplyFileMessage,
|
|
216
|
+
Vt as ReplyImageMessage,
|
|
217
|
+
Ht as ReplyStickerMessage,
|
|
218
|
+
jt as ReplyTextMessage,
|
|
219
|
+
Ot as ReplyVideoMessage,
|
|
220
|
+
I as SearchIcon,
|
|
221
|
+
po as SelectUser,
|
|
220
222
|
O as SentStatusIcon,
|
|
221
223
|
B as SettingsIcon,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
So as SideBar,
|
|
225
|
+
Kt as SplashScreen,
|
|
226
|
+
Bt as StickerMessage,
|
|
225
227
|
xe as StickerPicker,
|
|
226
|
-
|
|
228
|
+
Xt as SystemMessage,
|
|
227
229
|
b as TelegramIcon,
|
|
228
230
|
ne as TemplateSelector,
|
|
229
231
|
Me as TextFormatToolbar,
|
|
230
|
-
|
|
232
|
+
zt as TextMessage,
|
|
231
233
|
Oe as ThemeMode,
|
|
232
234
|
n as Tooltip,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
Jt as TypingMessage,
|
|
236
|
+
Ke as UserProfile,
|
|
237
|
+
Zt as VideoMessage,
|
|
236
238
|
Xe as VideoRecorder,
|
|
237
239
|
Ce as WABAAttachmentSection,
|
|
238
240
|
he as WABAQuickReplyButtons,
|
|
239
241
|
Re as WABASeparatedQuickButtons,
|
|
240
242
|
Ae as WABATemplateSelector,
|
|
241
243
|
E as WhatsAppIcon,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
244
|
+
dr as buildEditPayload,
|
|
245
|
+
wo as buildFilePreview,
|
|
246
|
+
fr as buildReplyPayload,
|
|
247
|
+
Wa as calculateMessageMenuPosition,
|
|
248
|
+
or as canStartEditLastSent,
|
|
249
|
+
qo as commitChatDraftToList,
|
|
250
|
+
Dr as createReactionHandlers,
|
|
251
|
+
Ha as findAppBoundsRect,
|
|
252
|
+
Sr as formatTimestamp,
|
|
253
|
+
Vo as generatePreview,
|
|
254
|
+
vr as getChannelAccentColor,
|
|
255
|
+
zo as getChatDraft,
|
|
256
|
+
xr as getDeletedOriginalText,
|
|
257
|
+
ir as getDeletedTooltipLines,
|
|
258
|
+
Go as getDraftFiles,
|
|
259
|
+
mr as getEditTooltipLines,
|
|
260
|
+
Pr as getMessageClass,
|
|
261
|
+
ya as getMessageValidationReport,
|
|
262
|
+
Ia as getSidebarValidationReport,
|
|
263
|
+
cr as getStatus,
|
|
264
|
+
Mr as getStatusTitle,
|
|
265
|
+
Ho as getTypeFileByMime,
|
|
266
|
+
Ma as getValidationReport,
|
|
267
|
+
Za as hideEditPreview,
|
|
268
|
+
za as hideReplyPreview,
|
|
269
|
+
Tr as insertDaySeparators,
|
|
270
|
+
ar as isCursorOnFirstLine,
|
|
271
|
+
rr as isEditableLastSentCandidate,
|
|
272
|
+
Lr as isSmsChannel,
|
|
273
|
+
kr as isSmsFeedMessage,
|
|
274
|
+
Vr as parseMarkdown,
|
|
275
|
+
yr as playNotificationAudio,
|
|
276
|
+
Hr as safeMediaPlay,
|
|
277
|
+
Ur as safeMediaPlayVoid,
|
|
278
|
+
$a as showEditPreview,
|
|
279
|
+
Ga as showReplyPreview,
|
|
280
|
+
Fr as sortByTimestamp,
|
|
281
|
+
gr as statuses,
|
|
282
|
+
jo as uploadFile,
|
|
283
|
+
Ka as useChannelAccentColor,
|
|
284
|
+
Sa as useChatValidator,
|
|
285
|
+
ma as useConfirmDeleteMessage,
|
|
286
|
+
Oo as useDelayDebouncedRef,
|
|
287
|
+
oa as useEmojiNative,
|
|
288
|
+
Ko as useImmediateDebouncedRef,
|
|
289
|
+
La as useMessageActions,
|
|
290
|
+
Jo as useMessageDraft,
|
|
291
|
+
wa as useMessageHoverActions,
|
|
292
|
+
Oa as useMessageLinks,
|
|
293
|
+
ja as useMessageMenuActions,
|
|
294
|
+
Aa as useMessageValidator,
|
|
295
|
+
ra as useModalCreateChat,
|
|
296
|
+
fa as useModalCreateChat2,
|
|
297
|
+
da as useModalCreateDialog,
|
|
298
|
+
xa as useModalSelectUser2,
|
|
299
|
+
na as useModalVideoRecorder,
|
|
300
|
+
Zo as useSearchModel,
|
|
301
|
+
Da as useSidebarValidator,
|
|
302
|
+
er as useStartEdit,
|
|
303
|
+
Ja as useStartReply,
|
|
304
|
+
Xa as useSubtextTooltip,
|
|
305
|
+
ea as useTheme,
|
|
306
|
+
va as useValidation,
|
|
307
|
+
ga as validateChats,
|
|
308
|
+
Ra as validateMessages,
|
|
309
|
+
Pa as validateSidebarItems
|
|
308
310
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Reply } from '@/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
message: {
|
|
4
|
+
type: () => Reply;
|
|
5
|
+
default: () => Reply;
|
|
6
|
+
};
|
|
7
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
reply: (...args: any[]) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
message: {
|
|
11
|
+
type: () => Reply;
|
|
12
|
+
default: () => Reply;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
onReply?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
message: Reply;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -6,6 +6,9 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
'empty-feed'?: (props: typeof __VLS_47) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
|
+
/**
|
|
10
|
+
* Объекты ленты. При смене чата сначала рисуется хвост, остальное дорисовывается пачками.
|
|
11
|
+
*/
|
|
9
12
|
objects: {
|
|
10
13
|
type: {
|
|
11
14
|
(arrayLength: number): IFeedObject[];
|
|
@@ -124,6 +127,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
124
127
|
forceScrollToBottom: (...args: any[]) => void;
|
|
125
128
|
delimiterRead: (...args: any[]) => void;
|
|
126
129
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
130
|
+
/**
|
|
131
|
+
* Объекты ленты. При смене чата сначала рисуется хвост, остальное дорисовывается пачками.
|
|
132
|
+
*/
|
|
127
133
|
objects: {
|
|
128
134
|
type: {
|
|
129
135
|
(arrayLength: number): IFeedObject[];
|