@mobilon-dev/chotto 0.3.92 → 0.3.93
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_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +202 -189
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +2 -2
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +128 -120
- package/dist/hooks/useMessageDraft.js +84 -62
- package/dist/index.js +98 -97
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/hooks/useMessageDraft.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { default as x } from "./components/1_atoms/LinkPreview/LinkPreview.vue.j
|
|
|
8
8
|
import { default as n } from "./components/1_atoms/Tooltip/Tooltip.vue.js";
|
|
9
9
|
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
|
-
import { default as
|
|
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 T } from "./components/1_icons/MenuIcon.vue.js";
|
|
14
14
|
import { default as P } from "./components/1_icons/SearchIcon.vue.js";
|
|
@@ -35,7 +35,7 @@ import { default as xe } from "./components/2_chatinput_elements/StickerPicker/S
|
|
|
35
35
|
import { default as ne } from "./components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js";
|
|
36
36
|
import { default as Me } from "./components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js";
|
|
37
37
|
import { default as Ce } from "./components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js";
|
|
38
|
-
import { default as
|
|
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 Te } from "./components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js";
|
|
41
41
|
import { default as Pe } from "./components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js";
|
|
@@ -62,7 +62,7 @@ import { default as xt } from "./components/2_feed_elements/EditTextMessage/Edit
|
|
|
62
62
|
import { default as nt } from "./components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js";
|
|
63
63
|
import { default as Mt } from "./components/2_feed_elements/FileMessage/FileMessage.vue.js";
|
|
64
64
|
import { default as Ct } from "./components/2_feed_elements/ImageMessage/ImageMessage.vue.js";
|
|
65
|
-
import { default as
|
|
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
67
|
import { default as Tt } from "./components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
68
68
|
import { default as Pt } from "./components/2_feed_elements/StickerMessage/StickerMessage.vue.js";
|
|
@@ -89,7 +89,7 @@ import { default as io } from "./components/3_compounds/ChatList/ChatList.vue.js
|
|
|
89
89
|
import { default as co } from "./components/3_compounds/Feed/Feed.vue.js";
|
|
90
90
|
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
|
-
import { default as
|
|
92
|
+
import { default as yo } from "./components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js";
|
|
93
93
|
import { default as Io } from "./components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js";
|
|
94
94
|
import { default as Ao } from "./components/4_layouts/FeedLayout/FeedLayout.vue.js";
|
|
95
95
|
import { default as Bo } from "./components/4_layouts/ChatWrapper/ChatWrapper.vue.js";
|
|
@@ -100,45 +100,45 @@ import { getTypeFileByMime as Lo } from "./hooks/uploadFile/getTypeFileByMime.js
|
|
|
100
100
|
import { uploadFile as Uo } from "./hooks/uploadFile/uploadFile.js";
|
|
101
101
|
import { useDelayDebouncedRef as No } from "./hooks/useDelayDebouncedRef.js";
|
|
102
102
|
import { useImmediateDebouncedRef as Ko } from "./hooks/useImmediateDebouncedRef.js";
|
|
103
|
-
import {
|
|
104
|
-
import { useSearchModel as
|
|
105
|
-
import { useTheme as
|
|
106
|
-
import { useEmojiNative as
|
|
107
|
-
import { useModalCreateChat as
|
|
108
|
-
import { useModalCreateChat2 as
|
|
109
|
-
import { useModalCreateDialog as
|
|
110
|
-
import { useConfirmDeleteMessage as
|
|
111
|
-
import { useModalSelectUser2 as
|
|
112
|
-
import { useModalVideoRecorder as
|
|
113
|
-
import { getValidationReport as
|
|
114
|
-
import { useChatValidator as
|
|
115
|
-
import { getMessageValidationReport as
|
|
116
|
-
import { useMessageValidator as
|
|
117
|
-
import { getSidebarValidationReport as
|
|
118
|
-
import { useSidebarValidator as
|
|
119
|
-
import { useValidation as
|
|
120
|
-
import { useMessageActions as
|
|
121
|
-
import { calculateMessageMenuPosition as
|
|
122
|
-
import { useMessageMenuActions as
|
|
123
|
-
import { useMessageLinks as
|
|
124
|
-
import { useChannelAccentColor as
|
|
125
|
-
import { useSubtextTooltip as
|
|
126
|
-
import { hideReplyPreview as
|
|
127
|
-
import { hideEditPreview as
|
|
128
|
-
import { buildReplyPayload as
|
|
129
|
-
import { buildEditPayload as
|
|
130
|
-
import { getEditTooltipLines as
|
|
131
|
-
import { getDeletedOriginalText as
|
|
132
|
-
import { getStatus as
|
|
133
|
-
import { formatTimestamp as
|
|
134
|
-
import { playNotificationAudio as
|
|
135
|
-
import { insertDaySeparators as
|
|
136
|
-
import { sortByTimestamp as
|
|
137
|
-
import { getMessageClass as
|
|
138
|
-
import { createReactionHandlers as
|
|
103
|
+
import { commitChatDraftToList as Qo, getChatDraft as qo, useMessageDraft as zo } from "./hooks/useMessageDraft.js";
|
|
104
|
+
import { useSearchModel as Jo } from "./hooks/useSearchModel.js";
|
|
105
|
+
import { useTheme as Yo } from "./hooks/useTheme.js";
|
|
106
|
+
import { useEmojiNative as _o } from "./hooks/useEmojiNative.js";
|
|
107
|
+
import { useModalCreateChat as ea } from "./hooks/modals/useCreateChat.js";
|
|
108
|
+
import { useModalCreateChat2 as oa } from "./hooks/modals/useCreateChat2.js";
|
|
109
|
+
import { useModalCreateDialog as ra } from "./hooks/modals/useCreateDialog.js";
|
|
110
|
+
import { useConfirmDeleteMessage as fa } from "./hooks/modals/useConfirmDeleteMessage.js";
|
|
111
|
+
import { useModalSelectUser2 as pa } from "./hooks/modals/useModalSelectUser2.js";
|
|
112
|
+
import { useModalVideoRecorder as ma } from "./hooks/modals/useVideoRecorder.js";
|
|
113
|
+
import { getValidationReport as xa, validateChats as ia } from "./hooks/validators/chats/chatValidator.js";
|
|
114
|
+
import { useChatValidator as ca } from "./hooks/validators/chats/useChatValidator.js";
|
|
115
|
+
import { getMessageValidationReport as ga, validateMessages as Ca } from "./hooks/validators/messages/messageValidator.js";
|
|
116
|
+
import { useMessageValidator as ha } from "./hooks/validators/messages/useMessageValidator.js";
|
|
117
|
+
import { getSidebarValidationReport as Ra, validateSidebarItems as Ia } from "./hooks/validators/sidebar/sidebarValidator.js";
|
|
118
|
+
import { useSidebarValidator as Aa } from "./hooks/validators/sidebar/useSidebarValidator.js";
|
|
119
|
+
import { useValidation as Ba } from "./hooks/validators/useValidation.js";
|
|
120
|
+
import { useMessageActions as ba } from "./hooks/messages/useMessageActions.js";
|
|
121
|
+
import { calculateMessageMenuPosition as Da, findAppBoundsRect as Ea } from "./hooks/messages/calculateMessageMenuPosition.js";
|
|
122
|
+
import { useMessageMenuActions as wa } from "./hooks/messages/useMessageMenuActions.js";
|
|
123
|
+
import { useMessageLinks as La } from "./hooks/messages/useMessageLinks.js";
|
|
124
|
+
import { useChannelAccentColor as Ua } from "./hooks/messages/useChannelAccentColor.js";
|
|
125
|
+
import { useSubtextTooltip as Na } from "./hooks/messages/useSubtextTooltip.js";
|
|
126
|
+
import { hideReplyPreview as Ka, showReplyPreview as Oa, useStartReply as Qa } from "./hooks/messages/useStartReply.js";
|
|
127
|
+
import { hideEditPreview as za, showEditPreview as Ga, useStartEdit as Ja } from "./hooks/messages/useStartEdit.js";
|
|
128
|
+
import { buildReplyPayload as Ya } from "./hooks/messages/buildReplyPayload.js";
|
|
129
|
+
import { buildEditPayload as _a } from "./hooks/messages/buildEditPayload.js";
|
|
130
|
+
import { getEditTooltipLines as er } from "./hooks/messages/getEditTooltipLines.js";
|
|
131
|
+
import { getDeletedOriginalText as or, getDeletedTooltipLines as ar } from "./hooks/messages/getDeletedOriginalText.js";
|
|
132
|
+
import { getStatus as sr, getStatusTitle as fr, statuses as lr } from "./functions/getStatusMessage.js";
|
|
133
|
+
import { formatTimestamp as dr } from "./functions/formatTimestamp.js";
|
|
134
|
+
import { playNotificationAudio as ur } from "./functions/playNotificationAudio.js";
|
|
135
|
+
import { insertDaySeparators as ir } from "./functions/insertDaySeparators.js";
|
|
136
|
+
import { sortByTimestamp as cr } from "./functions/sortByTimestamp.js";
|
|
137
|
+
import { getMessageClass as gr } from "./functions/getMessageClass.js";
|
|
138
|
+
import { createReactionHandlers as Sr } from "./functions/createReactionHandlers.js";
|
|
139
139
|
import { getChannelAccentColor as yr } from "./functions/getChannelAccentColor.js";
|
|
140
|
-
import { parseMarkdown as
|
|
141
|
-
import { safeMediaPlay as
|
|
140
|
+
import { parseMarkdown as Ir } from "./functions/parseMarkdown.js";
|
|
141
|
+
import { safeMediaPlay as Ar, safeMediaPlayVoid as Pr } from "./functions/safeMediaPlay.js";
|
|
142
142
|
export {
|
|
143
143
|
Io as AdaptiveExtendedLayout,
|
|
144
144
|
Je as AudioMessage,
|
|
@@ -165,7 +165,7 @@ export {
|
|
|
165
165
|
ve as ChatTabs,
|
|
166
166
|
Bo as ChatWrapper,
|
|
167
167
|
C as CheckIcon,
|
|
168
|
-
|
|
168
|
+
h as CloseButtonIcon,
|
|
169
169
|
Q as CommunicationPanel,
|
|
170
170
|
ro as ConfirmDeleteMessage,
|
|
171
171
|
R as ContactCRMIcon,
|
|
@@ -179,7 +179,7 @@ export {
|
|
|
179
179
|
xt as EditTextMessage,
|
|
180
180
|
m as EmbedPreview,
|
|
181
181
|
w as ErrorStatusIcon,
|
|
182
|
-
|
|
182
|
+
yo as ExtendedLayout,
|
|
183
183
|
co as Feed,
|
|
184
184
|
z as FeedFoundItem,
|
|
185
185
|
J as FeedFoundObjects,
|
|
@@ -193,7 +193,7 @@ export {
|
|
|
193
193
|
Ct as ImageMessage,
|
|
194
194
|
x as LinkPreview,
|
|
195
195
|
T as MenuIcon,
|
|
196
|
-
|
|
196
|
+
ht as MessageKeyboard,
|
|
197
197
|
Rt as MessageReactions,
|
|
198
198
|
Tt as MessageStatusIndicator,
|
|
199
199
|
ft as MissedCallMessage,
|
|
@@ -231,66 +231,67 @@ export {
|
|
|
231
231
|
Yt as VideoMessage,
|
|
232
232
|
ze as VideoRecorder,
|
|
233
233
|
Ce as WABAAttachmentSection,
|
|
234
|
-
|
|
234
|
+
he as WABAQuickReplyButtons,
|
|
235
235
|
Re as WABASeparatedQuickButtons,
|
|
236
236
|
Te as WABATemplateSelector,
|
|
237
237
|
E as WhatsAppIcon,
|
|
238
|
-
|
|
238
|
+
_a as buildEditPayload,
|
|
239
239
|
ko as buildFilePreview,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
Ya as buildReplyPayload,
|
|
241
|
+
Da as calculateMessageMenuPosition,
|
|
242
|
+
Qo as commitChatDraftToList,
|
|
243
|
+
Sr as createReactionHandlers,
|
|
244
|
+
Ea as findAppBoundsRect,
|
|
245
|
+
dr as formatTimestamp,
|
|
245
246
|
wo as generatePreview,
|
|
246
247
|
yr as getChannelAccentColor,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
qo as getChatDraft,
|
|
249
|
+
or as getDeletedOriginalText,
|
|
250
|
+
ar as getDeletedTooltipLines,
|
|
251
|
+
er as getEditTooltipLines,
|
|
252
|
+
gr as getMessageClass,
|
|
253
|
+
ga as getMessageValidationReport,
|
|
254
|
+
Ra as getSidebarValidationReport,
|
|
255
|
+
sr as getStatus,
|
|
256
|
+
fr as getStatusTitle,
|
|
256
257
|
Lo as getTypeFileByMime,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
258
|
+
xa as getValidationReport,
|
|
259
|
+
za as hideEditPreview,
|
|
260
|
+
Ka as hideReplyPreview,
|
|
261
|
+
ir as insertDaySeparators,
|
|
262
|
+
Ir as parseMarkdown,
|
|
263
|
+
ur as playNotificationAudio,
|
|
264
|
+
Ar as safeMediaPlay,
|
|
265
|
+
Pr as safeMediaPlayVoid,
|
|
266
|
+
Ga as showEditPreview,
|
|
267
|
+
Oa as showReplyPreview,
|
|
268
|
+
cr as sortByTimestamp,
|
|
269
|
+
lr as statuses,
|
|
269
270
|
Uo as uploadFile,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
Ua as useChannelAccentColor,
|
|
272
|
+
ca as useChatValidator,
|
|
273
|
+
fa as useConfirmDeleteMessage,
|
|
273
274
|
No as useDelayDebouncedRef,
|
|
274
|
-
|
|
275
|
+
_o as useEmojiNative,
|
|
275
276
|
Ko as useImmediateDebouncedRef,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
277
|
+
ba as useMessageActions,
|
|
278
|
+
zo as useMessageDraft,
|
|
279
|
+
La as useMessageLinks,
|
|
280
|
+
wa as useMessageMenuActions,
|
|
281
|
+
ha as useMessageValidator,
|
|
282
|
+
ea as useModalCreateChat,
|
|
283
|
+
oa as useModalCreateChat2,
|
|
284
|
+
ra as useModalCreateDialog,
|
|
285
|
+
pa as useModalSelectUser2,
|
|
286
|
+
ma as useModalVideoRecorder,
|
|
287
|
+
Jo as useSearchModel,
|
|
288
|
+
Aa as useSidebarValidator,
|
|
289
|
+
Ja as useStartEdit,
|
|
290
|
+
Qa as useStartReply,
|
|
291
|
+
Na as useSubtextTooltip,
|
|
292
|
+
Yo as useTheme,
|
|
293
|
+
Ba as useValidation,
|
|
294
|
+
ia as validateChats,
|
|
295
|
+
Ca as validateMessages,
|
|
296
|
+
Ia as validateSidebarItems
|
|
296
297
|
};
|