@mobilon-dev/chotto 0.3.104 → 0.3.105
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 +164 -160
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +106 -102
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +121 -116
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +116 -111
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +153 -149
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +131 -126
- package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
- package/dist/components/3_compounds/Feed/Feed.vue2.js +174 -170
- package/dist/components/3_compounds/Feed/composables/useFeedReply.js +10 -10
- package/dist/functions/isSmsChannel.js +19 -0
- package/dist/hooks/messages/useMessageHoverActions.js +13 -0
- package/dist/index.js +97 -92
- package/dist/types/components/3_compounds/Feed/composables/useFeedReply.d.ts +2 -1
- package/dist/types/functions/index.d.ts +1 -0
- package/dist/types/functions/isSmsChannel.d.ts +8 -0
- package/dist/types/hooks/messages/index.d.ts +1 -0
- package/dist/types/hooks/messages/useMessageHoverActions.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,15 +10,15 @@ import { default as M } from "./components/1_icons/AvatarIcon.vue.js";
|
|
|
10
10
|
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
|
-
import { default as
|
|
13
|
+
import { default as A } from "./components/1_icons/MenuIcon.vue.js";
|
|
14
14
|
import { default as F } 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
|
-
import { default as
|
|
17
|
+
import { default as E } from "./components/1_icons/WhatsAppIcon.vue.js";
|
|
18
18
|
import { default as k } from "./components/1_icons/MessageStatus/ErrorStatusIcon.vue.js";
|
|
19
19
|
import { default as V } from "./components/1_icons/MessageStatus/PendingStatusIcon.vue.js";
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
20
|
+
import { default as H } from "./components/1_icons/MessageStatus/ReadStatusIcon.vue.js";
|
|
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
23
|
import { default as Q } from "./components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js";
|
|
24
24
|
import { default as X } from "./components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js";
|
|
@@ -37,15 +37,15 @@ import { default as Me } from "./components/2_chatinput_elements/TextFormatToolb
|
|
|
37
37
|
import { default as Ce } from "./components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js";
|
|
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
|
-
import { default as
|
|
40
|
+
import { default as Ae } from "./components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js";
|
|
41
41
|
import { default as Fe } 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
|
-
import { default as
|
|
44
|
+
import { default as Ee } from "./components/2_elements/AudioRecorder/AudioRecorder.vue.js";
|
|
45
45
|
import { default as ke } from "./components/2_elements/ChannelSelector/ChannelSelector.vue.js";
|
|
46
46
|
import { default as Ve } from "./components/2_elements/ChatInfo/ChatInfo.vue.js";
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
47
|
+
import { default as He } from "./components/2_elements/ChatPanel/ChatPanel.vue.js";
|
|
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
50
|
import { default as Qe } from "./components/2_elements/UserProfile/UserProfile.vue.js";
|
|
51
51
|
import { default as Xe } from "./components/2_elements/VideoRecorder/VideoRecorder.vue.js";
|
|
@@ -64,15 +64,15 @@ import { default as Mt } from "./components/2_feed_elements/FileMessage/FileMess
|
|
|
64
64
|
import { default as Ct } from "./components/2_feed_elements/ImageMessage/ImageMessage.vue.js";
|
|
65
65
|
import { default as ht } from "./components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
|
|
66
66
|
import { default as Rt } from "./components/2_feed_elements/MessageReactions/MessageReactions.vue.js";
|
|
67
|
-
import { default as
|
|
67
|
+
import { default as At } from "./components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
68
68
|
import { default as Ft } from "./components/2_feed_elements/StickerMessage/StickerMessage.vue.js";
|
|
69
69
|
import { default as Bt } from "./components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js";
|
|
70
70
|
import { default as bt } from "./components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js";
|
|
71
|
-
import { default as
|
|
71
|
+
import { default as Et } from "./components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js";
|
|
72
72
|
import { default as kt } from "./components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js";
|
|
73
73
|
import { default as Vt } from "./components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js";
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
74
|
+
import { default as Ht } from "./components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js";
|
|
75
|
+
import { default as jt } from "./components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js";
|
|
76
76
|
import { default as Ot } from "./components/2_feed_elements/SplashScreen/SplashScreen.vue.js";
|
|
77
77
|
import { default as Qt } from "./components/2_feed_elements/SystemMessage/SystemMessage.vue.js";
|
|
78
78
|
import { default as Xt } from "./components/2_feed_elements/TextMessage/TextMessage.vue.js";
|
|
@@ -91,14 +91,14 @@ import { default as go } from "./components/3_compounds/SideBar/SideBar.vue.js";
|
|
|
91
91
|
import { default as So } from "./components/4_layouts/BaseLayout/BaseLayout.vue.js";
|
|
92
92
|
import { default as yo } from "./components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js";
|
|
93
93
|
import { default as To } from "./components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js";
|
|
94
|
-
import { default as
|
|
94
|
+
import { default as Io } from "./components/4_layouts/FeedLayout/FeedLayout.vue.js";
|
|
95
95
|
import { default as Po } from "./components/4_layouts/ChatWrapper/ChatWrapper.vue.js";
|
|
96
96
|
import { default as Do } from "./components/5_containers/BaseContainer/BaseContainer.vue.js";
|
|
97
|
-
import { default as
|
|
97
|
+
import { default as vo } from "./components/5_containers/FloatContainer/FloatContainer.vue.js";
|
|
98
98
|
import { buildFilePreview as Lo, generatePreview as ko } from "./hooks/uploadFile/generatePreview.js";
|
|
99
99
|
import { getTypeFileByMime as Vo } from "./hooks/uploadFile/getTypeFileByMime.js";
|
|
100
|
-
import { uploadFile as
|
|
101
|
-
import { useDelayDebouncedRef as
|
|
100
|
+
import { uploadFile as Ho } from "./hooks/uploadFile/uploadFile.js";
|
|
101
|
+
import { useDelayDebouncedRef as jo } from "./hooks/useDelayDebouncedRef.js";
|
|
102
102
|
import { useImmediateDebouncedRef as Oo } from "./hooks/useImmediateDebouncedRef.js";
|
|
103
103
|
import { MAX_ATTACHED_FILES as Qo, commitChatDraftToList as _o, getChatDraft as Xo, getDraftFiles as qo, useMessageDraft as zo } from "./hooks/useMessageDraft.js";
|
|
104
104
|
import { useSearchModel as Jo } from "./hooks/useSearchModel.js";
|
|
@@ -114,36 +114,38 @@ import { getValidationReport as na, validateChats as ca } from "./hooks/validato
|
|
|
114
114
|
import { useChatValidator as ga } from "./hooks/validators/chats/useChatValidator.js";
|
|
115
115
|
import { getMessageValidationReport as Sa, validateMessages as ha } from "./hooks/validators/messages/messageValidator.js";
|
|
116
116
|
import { useMessageValidator as Ra } from "./hooks/validators/messages/useMessageValidator.js";
|
|
117
|
-
import { getSidebarValidationReport as
|
|
117
|
+
import { getSidebarValidationReport as Aa, validateSidebarItems as Ia } from "./hooks/validators/sidebar/sidebarValidator.js";
|
|
118
118
|
import { useSidebarValidator as Pa } from "./hooks/validators/sidebar/useSidebarValidator.js";
|
|
119
119
|
import { useValidation as Da } from "./hooks/validators/useValidation.js";
|
|
120
|
-
import { useMessageActions as
|
|
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 {
|
|
120
|
+
import { useMessageActions as va } from "./hooks/messages/useMessageActions.js";
|
|
121
|
+
import { useMessageHoverActions as La } from "./hooks/messages/useMessageHoverActions.js";
|
|
122
|
+
import { calculateMessageMenuPosition as wa, findAppBoundsRect as Va } from "./hooks/messages/calculateMessageMenuPosition.js";
|
|
123
|
+
import { useMessageMenuActions as Ha } from "./hooks/messages/useMessageMenuActions.js";
|
|
124
|
+
import { useMessageLinks as ja } from "./hooks/messages/useMessageLinks.js";
|
|
125
|
+
import { useChannelAccentColor as Oa } from "./hooks/messages/useChannelAccentColor.js";
|
|
126
|
+
import { useSubtextTooltip as Qa } from "./hooks/messages/useSubtextTooltip.js";
|
|
127
|
+
import { hideReplyPreview as Xa, showReplyPreview as qa, useStartReply as za } from "./hooks/messages/useStartReply.js";
|
|
128
|
+
import { hideEditPreview as Ja, showEditPreview as Ya, useStartEdit as Za } from "./hooks/messages/useStartEdit.js";
|
|
129
|
+
import { canStartEditLastSent as er, isCursorOnFirstLine as tr, isEditableLastSentCandidate as or } from "./hooks/messages/canStartEditLastSent.js";
|
|
130
|
+
import { buildReplyPayload as rr } from "./hooks/messages/buildReplyPayload.js";
|
|
131
|
+
import { buildEditPayload as fr } from "./hooks/messages/buildEditPayload.js";
|
|
132
|
+
import { getEditTooltipLines as dr } from "./hooks/messages/getEditTooltipLines.js";
|
|
133
|
+
import { getDeletedOriginalText as mr, getDeletedTooltipLines as ur } from "./hooks/messages/getDeletedOriginalText.js";
|
|
134
|
+
import { getStatus as ir, getStatusTitle as nr, statuses as cr } from "./functions/getStatusMessage.js";
|
|
135
|
+
import { formatTimestamp as gr } from "./functions/formatTimestamp.js";
|
|
136
|
+
import { playNotificationAudio as Sr } from "./functions/playNotificationAudio.js";
|
|
137
|
+
import { insertDaySeparators as yr } from "./functions/insertDaySeparators.js";
|
|
138
|
+
import { sortByTimestamp as Tr } from "./functions/sortByTimestamp.js";
|
|
139
|
+
import { getMessageClass as Ir } from "./functions/getMessageClass.js";
|
|
140
|
+
import { createReactionHandlers as Pr } from "./functions/createReactionHandlers.js";
|
|
141
|
+
import { getChannelAccentColor as Dr } from "./functions/getChannelAccentColor.js";
|
|
142
|
+
import { isSmsChannel as vr, isSmsFeedMessage as Er } from "./functions/isSmsChannel.js";
|
|
143
|
+
import { parseMarkdown as kr } from "./functions/parseMarkdown.js";
|
|
144
|
+
import { safeMediaPlay as Vr, safeMediaPlayVoid as Wr } from "./functions/safeMediaPlay.js";
|
|
143
145
|
export {
|
|
144
146
|
To as AdaptiveExtendedLayout,
|
|
145
147
|
ze as AudioMessage,
|
|
146
|
-
|
|
148
|
+
Ee as AudioRecorder,
|
|
147
149
|
M as AvatarIcon,
|
|
148
150
|
Do as BaseContainer,
|
|
149
151
|
Ze as BaseEditMessage,
|
|
@@ -162,7 +164,7 @@ export {
|
|
|
162
164
|
Be as ChatItem,
|
|
163
165
|
io as ChatList,
|
|
164
166
|
uo as ChatListHeader,
|
|
165
|
-
|
|
167
|
+
He as ChatPanel,
|
|
166
168
|
be as ChatTabs,
|
|
167
169
|
Po as ChatWrapper,
|
|
168
170
|
C as CheckIcon,
|
|
@@ -171,7 +173,7 @@ export {
|
|
|
171
173
|
ro as ConfirmDeleteMessage,
|
|
172
174
|
R as ContactCRMIcon,
|
|
173
175
|
f as ContactContextMenu,
|
|
174
|
-
|
|
176
|
+
je as ContactInfo,
|
|
175
177
|
d as ContextMenu,
|
|
176
178
|
ot as DateMessage,
|
|
177
179
|
dt as DateMessageSticky,
|
|
@@ -185,34 +187,34 @@ export {
|
|
|
185
187
|
X as FeedFoundItem,
|
|
186
188
|
z as FeedFoundObjects,
|
|
187
189
|
nt as FeedKeyboard,
|
|
188
|
-
|
|
190
|
+
Io as FeedLayout,
|
|
189
191
|
J as FeedSearch,
|
|
190
192
|
Mt as FileMessage,
|
|
191
193
|
fe as FilePreview,
|
|
192
194
|
de as FileUploader,
|
|
193
|
-
|
|
195
|
+
vo as FloatContainer,
|
|
194
196
|
Ct as ImageMessage,
|
|
195
197
|
x as LinkPreview,
|
|
196
198
|
Qo as MAX_ATTACHED_FILES,
|
|
197
|
-
|
|
199
|
+
A as MenuIcon,
|
|
198
200
|
ht as MessageKeyboard,
|
|
199
201
|
Rt as MessageReactions,
|
|
200
|
-
|
|
202
|
+
At as MessageStatusIndicator,
|
|
201
203
|
ft as MissedCallMessage,
|
|
202
204
|
Zt as Modal,
|
|
203
205
|
eo as ModalFullscreen,
|
|
204
206
|
oo as ModalNoFooter,
|
|
205
207
|
V as PendingStatusIcon,
|
|
206
208
|
me as PlaceholderComponent,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
+
H as ReadStatusIcon,
|
|
210
|
+
j as ReceivedStatusIcon,
|
|
209
211
|
Bt as ReplyAudioMessage,
|
|
210
212
|
bt as ReplyCallMessage,
|
|
211
|
-
|
|
213
|
+
Et as ReplyFileMessage,
|
|
212
214
|
kt as ReplyImageMessage,
|
|
213
215
|
Vt as ReplyStickerMessage,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
+
Ht as ReplyTextMessage,
|
|
217
|
+
jt as ReplyVideoMessage,
|
|
216
218
|
F as SearchIcon,
|
|
217
219
|
fo as SelectUser,
|
|
218
220
|
O as SentStatusIcon,
|
|
@@ -235,55 +237,58 @@ export {
|
|
|
235
237
|
Ce as WABAAttachmentSection,
|
|
236
238
|
he as WABAQuickReplyButtons,
|
|
237
239
|
Re as WABASeparatedQuickButtons,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
240
|
+
Ae as WABATemplateSelector,
|
|
241
|
+
E as WhatsAppIcon,
|
|
242
|
+
fr as buildEditPayload,
|
|
241
243
|
Lo as buildFilePreview,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
244
|
+
rr as buildReplyPayload,
|
|
245
|
+
wa as calculateMessageMenuPosition,
|
|
246
|
+
er as canStartEditLastSent,
|
|
245
247
|
_o as commitChatDraftToList,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
Pr as createReactionHandlers,
|
|
249
|
+
Va as findAppBoundsRect,
|
|
250
|
+
gr as formatTimestamp,
|
|
249
251
|
ko as generatePreview,
|
|
250
|
-
|
|
252
|
+
Dr as getChannelAccentColor,
|
|
251
253
|
Xo as getChatDraft,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
mr as getDeletedOriginalText,
|
|
255
|
+
ur as getDeletedTooltipLines,
|
|
254
256
|
qo as getDraftFiles,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
+
dr as getEditTooltipLines,
|
|
258
|
+
Ir as getMessageClass,
|
|
257
259
|
Sa as getMessageValidationReport,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
260
|
+
Aa as getSidebarValidationReport,
|
|
261
|
+
ir as getStatus,
|
|
262
|
+
nr as getStatusTitle,
|
|
261
263
|
Vo as getTypeFileByMime,
|
|
262
264
|
na as getValidationReport,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
265
|
+
Ja as hideEditPreview,
|
|
266
|
+
Xa as hideReplyPreview,
|
|
267
|
+
yr as insertDaySeparators,
|
|
268
|
+
tr as isCursorOnFirstLine,
|
|
269
|
+
or as isEditableLastSentCandidate,
|
|
270
|
+
vr as isSmsChannel,
|
|
271
|
+
Er as isSmsFeedMessage,
|
|
272
|
+
kr as parseMarkdown,
|
|
273
|
+
Sr as playNotificationAudio,
|
|
274
|
+
Vr as safeMediaPlay,
|
|
275
|
+
Wr as safeMediaPlayVoid,
|
|
276
|
+
Ya as showEditPreview,
|
|
277
|
+
qa as showReplyPreview,
|
|
278
|
+
Tr as sortByTimestamp,
|
|
279
|
+
cr as statuses,
|
|
280
|
+
Ho as uploadFile,
|
|
281
|
+
Oa as useChannelAccentColor,
|
|
278
282
|
ga as useChatValidator,
|
|
279
283
|
da as useConfirmDeleteMessage,
|
|
280
|
-
|
|
284
|
+
jo as useDelayDebouncedRef,
|
|
281
285
|
ea as useEmojiNative,
|
|
282
286
|
Oo as useImmediateDebouncedRef,
|
|
283
|
-
|
|
287
|
+
va as useMessageActions,
|
|
284
288
|
zo as useMessageDraft,
|
|
285
|
-
|
|
286
|
-
|
|
289
|
+
La as useMessageHoverActions,
|
|
290
|
+
ja as useMessageLinks,
|
|
291
|
+
Ha as useMessageMenuActions,
|
|
287
292
|
Ra as useMessageValidator,
|
|
288
293
|
oa as useModalCreateChat,
|
|
289
294
|
ra as useModalCreateChat2,
|
|
@@ -292,12 +297,12 @@ export {
|
|
|
292
297
|
xa as useModalVideoRecorder,
|
|
293
298
|
Jo as useSearchModel,
|
|
294
299
|
Pa as useSidebarValidator,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
300
|
+
Za as useStartEdit,
|
|
301
|
+
za as useStartReply,
|
|
302
|
+
Qa as useSubtextTooltip,
|
|
298
303
|
Zo as useTheme,
|
|
299
304
|
Da as useValidation,
|
|
300
305
|
ca as validateChats,
|
|
301
306
|
ha as validateMessages,
|
|
302
|
-
|
|
307
|
+
Ia as validateSidebarItems
|
|
303
308
|
};
|
|
@@ -2,11 +2,12 @@ import { IFeedObject } from '@/types';
|
|
|
2
2
|
interface UseFeedReplyOptions {
|
|
3
3
|
enableDoubleClickReply: boolean;
|
|
4
4
|
emit: (event: 'messageAction' | 'clickRepliedMessage', payload: IFeedObject | string) => void;
|
|
5
|
+
isReplyAllowed?: (object: IFeedObject) => boolean;
|
|
5
6
|
}
|
|
6
7
|
/**
|
|
7
8
|
* Композабл для обработки ответов и редактирования сообщений
|
|
8
9
|
*/
|
|
9
|
-
export declare function useFeedReply({ enableDoubleClickReply, emit }: UseFeedReplyOptions): {
|
|
10
|
+
export declare function useFeedReply({ enableDoubleClickReply, emit, isReplyAllowed }: UseFeedReplyOptions): {
|
|
10
11
|
getMessage: () => import("@/hooks").MessageDraft;
|
|
11
12
|
messageAction: (message: IFeedObject) => void;
|
|
12
13
|
handleClickReplied: (messageId: string) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SMS-канал: `channelId` начинается с `sms` (например `sms.M444`).
|
|
3
|
+
* В message-server на диалогах обычно `chn_*`, поэтому одного префикса недостаточно —
|
|
4
|
+
* см. `isSmsFeedMessage`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isSmsChannel(channelId?: string | null): boolean;
|
|
7
|
+
/** SMS в демо (`sms.M444`) и в message-server (`chn_*` + `meta.messageStyle: 'sms'`). */
|
|
8
|
+
export declare function isSmsFeedMessage(message?: object | null, channelId?: string | null): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Hover-панели сообщения (реакции и меню по трём точкам).
|
|
4
|
+
* Для SMS недоступны: канал не поддерживает реакции, ответ и редактирование.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useMessageHoverActions(channel: MaybeRefOrGetter<string | undefined>, reactionsEnabled?: MaybeRefOrGetter<boolean>, message?: MaybeRefOrGetter<unknown>): {
|
|
7
|
+
hoverActionsEnabled: import("vue").ComputedRef<boolean>;
|
|
8
|
+
reactionsActive: import("vue").ComputedRef<boolean>;
|
|
9
|
+
};
|