@mobilon-dev/chotto 0.3.83 → 0.3.85
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.vue2.js +3 -2
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +3 -2
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +38 -0
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +4 -0
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +1 -1
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +49 -36
- package/dist/components/1_icons/CloseIcon.vue.js +21 -0
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +351 -282
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +38 -33
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.js +64 -39
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationAttributes.js +116 -61
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationChannels.js +1 -1
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationMenu.js +30 -16
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationRecentSelection.js +47 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/{CommunicationPanelConfirmSpinner.vue2.js → CommunicationPanelConfirmSpinner.vue.js} +1 -1
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +19 -0
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +10 -9
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +8 -7
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +2 -2
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +48 -37
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +3 -2
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +7 -6
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +3 -2
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +3 -2
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +3 -2
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +27 -26
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +3 -2
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +3 -2
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +3 -2
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +3 -2
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +6 -5
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +10 -9
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +3 -2
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +169 -143
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -4
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +33 -32
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +8 -2
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +134 -108
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +116 -97
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +3 -2
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +2 -2
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +232 -113
- package/dist/components/2_feed_elements/MessageReactions/composables/usePositioning.js +77 -62
- package/dist/components/2_feed_elements/MessageReactions/composables/useReactions.js +62 -20
- package/dist/components/2_feed_elements/MessageReactions/composables/useReactionsPanel.js +91 -69
- package/dist/components/2_feed_elements/MessageReactions/composables/useReactionsState.js +46 -22
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +21 -0
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +21 -0
- package/dist/components/2_feed_elements/MessageReactions/utils/quickReactions.js +2 -8
- package/dist/components/2_feed_elements/MessageReactions/utils/reactionTooltip.js +39 -0
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +26 -20
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +27 -18
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +16 -15
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +27 -18
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +16 -12
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -4
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +74 -65
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +20 -11
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +13 -9
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +74 -55
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +102 -76
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +74 -55
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +2 -2
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +99 -82
- package/dist/components/3_compounds/Feed/Feed.vue.js +3 -3
- package/dist/components/3_compounds/Feed/Feed.vue2.js +159 -139
- package/dist/components/3_compounds/Feed/composables/useFeedReply.js +22 -25
- package/dist/functions/renderAppleEmojis.js +92 -0
- package/dist/hooks/messages/buildReplyPayload.js +14 -0
- package/dist/hooks/messages/useMessageLinks.js +60 -50
- package/dist/hooks/messages/useStartReply.js +29 -0
- package/dist/hooks/useEmojiNative.js +19 -0
- package/dist/index.js +130 -122
- 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/apps/data/messages.d.ts +20 -18
- package/dist/types/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.d.ts +12 -0
- package/dist/types/components/1_atoms/Tooltip/stories/Tooltip.stories.d.ts +3 -0
- package/dist/types/components/1_icons/CloseIcon.vue.d.ts +2 -0
- package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +2 -0
- package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.d.ts +2 -2
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.d.ts +10 -1
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationAttributes.d.ts +23 -2
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationMenu.d.ts +1 -0
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationRecentSelection.d.ts +20 -0
- package/dist/types/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.d.ts +2 -0
- package/dist/types/components/2_blocks/CommunicationPanel/icons/index.d.ts +1 -0
- package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +2 -0
- package/dist/types/components/2_blocks/CommunicationPanel/styles/types.d.ts +42 -10
- package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.d.ts +9 -1
- package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +29 -0
- package/dist/types/components/2_feed_elements/AudioMessage/styles/types.d.ts +24 -16
- package/dist/types/components/2_feed_elements/BaseReplyMessage/styles/types.d.ts +8 -4
- package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +29 -0
- package/dist/types/components/2_feed_elements/FileMessage/styles/types.d.ts +20 -0
- package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +29 -0
- package/dist/types/components/2_feed_elements/ImageMessage/styles/types.d.ts +2 -0
- package/dist/types/components/2_feed_elements/MessageReactions/MessageReactions.vue.d.ts +64 -1
- package/dist/types/components/2_feed_elements/MessageReactions/composables/index.d.ts +2 -2
- package/dist/types/components/2_feed_elements/MessageReactions/composables/usePositioning.d.ts +11 -1
- package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactions.d.ts +20 -12
- package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactionsPanel.d.ts +3 -3
- package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactionsState.d.ts +13 -22
- package/dist/types/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.d.ts +2 -0
- package/dist/types/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.d.ts +2 -0
- package/dist/types/components/2_feed_elements/MessageReactions/styles/types.d.ts +14 -74
- package/dist/types/components/2_feed_elements/MessageReactions/utils/quickReactions.d.ts +1 -1
- package/dist/types/components/2_feed_elements/MessageReactions/utils/reactionTooltip.d.ts +14 -0
- package/dist/types/components/2_feed_elements/ReplyAudioMessage/styles/types.d.ts +6 -0
- package/dist/types/components/2_feed_elements/ReplyCallMessage/styles/types.d.ts +6 -0
- package/dist/types/components/2_feed_elements/ReplyFileMessage/styles/types.d.ts +6 -0
- package/dist/types/components/2_feed_elements/ReplyImageMessage/styles/types.d.ts +6 -0
- package/dist/types/components/2_feed_elements/ReplyStickerMessage/styles/types.d.ts +6 -0
- package/dist/types/components/2_feed_elements/ReplyTextMessage/styles/types.d.ts +4 -0
- package/dist/types/components/2_feed_elements/ReplyVideoMessage/styles/types.d.ts +6 -0
- package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +29 -0
- package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +29 -0
- package/dist/types/components/2_feed_elements/TextMessage/styles/types.d.ts +22 -0
- package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +29 -0
- package/dist/types/components/2_feed_elements/types/messages.d.ts +11 -6
- package/dist/types/components/3_compounds/ChatInput/styles/types.d.ts +2 -0
- package/dist/types/components/3_compounds/Feed/Feed.vue.d.ts +33 -0
- package/dist/types/functions/renderAppleEmojis.d.ts +16 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/messages/buildReplyPayload.d.ts +11 -0
- package/dist/types/hooks/messages/index.d.ts +2 -0
- package/dist/types/hooks/messages/useStartReply.d.ts +6 -0
- package/dist/types/hooks/useEmojiNative.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,56 +1,66 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { tokenize as
|
|
3
|
-
import
|
|
4
|
-
import { parseMarkdown as
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { inject as E, computed as T } from "vue";
|
|
2
|
+
import { tokenize as k } from "../../node_modules/linkifyjs/dist/linkify.js";
|
|
3
|
+
import w from "../../node_modules/linkify-string/dist/linkify-string.js";
|
|
4
|
+
import { parseMarkdown as g } from "../../functions/parseMarkdown.js";
|
|
5
|
+
import { replaceEmojisInHtml as C } from "../../functions/renderAppleEmojis.js";
|
|
6
|
+
import { useEmojiNative as F } from "../useEmojiNative.js";
|
|
7
|
+
function H(t) {
|
|
8
|
+
return t.includes("**") || t.includes("`") || t.includes("~~") || t.includes(`
|
|
7
9
|
|
|
8
|
-
`) ||
|
|
10
|
+
`) || t.includes(">") && t.trimStart().startsWith(">") || /<\/(u|s|b|i)>|<(u|s|b|i)[\s>]/.test(t);
|
|
9
11
|
}
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
12
|
+
const A = (t) => {
|
|
13
|
+
const u = E("chatAppId", ""), { isNative: f } = F(u);
|
|
14
|
+
return { linkedHtml: T(() => {
|
|
15
|
+
const n = t();
|
|
16
|
+
if (!n) return "";
|
|
17
|
+
let e;
|
|
18
|
+
if (!H(n))
|
|
19
|
+
e = w(n);
|
|
20
|
+
else {
|
|
21
|
+
e = g(n);
|
|
22
|
+
const i = document.createElement("div");
|
|
23
|
+
i.innerHTML = e;
|
|
24
|
+
const h = (o) => {
|
|
25
|
+
var p;
|
|
26
|
+
const r = o.textContent || "", d = k(r);
|
|
27
|
+
if (d.length === 1 && !d[0].isLink)
|
|
28
|
+
return;
|
|
29
|
+
const l = document.createDocumentFragment();
|
|
30
|
+
d.forEach((s) => {
|
|
31
|
+
if (s.isLink) {
|
|
32
|
+
const c = document.createElement("a");
|
|
33
|
+
c.href = s.toHref(), c.target = "_blank", c.textContent = s.toString(), l.appendChild(c);
|
|
34
|
+
} else
|
|
35
|
+
l.appendChild(document.createTextNode(s.toString()));
|
|
36
|
+
}), (p = o.parentNode) == null || p.replaceChild(l, o);
|
|
37
|
+
}, N = document.createTreeWalker(
|
|
38
|
+
i,
|
|
39
|
+
NodeFilter.SHOW_TEXT,
|
|
40
|
+
{
|
|
41
|
+
acceptNode: (o) => {
|
|
42
|
+
let r = o.parentNode;
|
|
43
|
+
for (; r && r !== i; ) {
|
|
44
|
+
if (r.nodeName === "A")
|
|
45
|
+
return NodeFilter.FILTER_REJECT;
|
|
46
|
+
r = r.parentNode;
|
|
47
|
+
}
|
|
48
|
+
return NodeFilter.FILTER_ACCEPT;
|
|
49
|
+
}
|
|
40
50
|
}
|
|
41
|
-
|
|
42
|
-
|
|
51
|
+
), m = [];
|
|
52
|
+
let a;
|
|
53
|
+
for (; a = N.nextNode(); )
|
|
54
|
+
a.nodeType === Node.TEXT_NODE && m.push(a);
|
|
55
|
+
m.reverse().forEach(h), e = i.innerHTML;
|
|
43
56
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const r = t.target;
|
|
52
|
-
r && "href" in r && r.href && window.open(r.href, "_blank");
|
|
53
|
-
} });
|
|
57
|
+
return f.value || (e = C(e)), e;
|
|
58
|
+
}), inNewWindow: (n) => {
|
|
59
|
+
n.preventDefault();
|
|
60
|
+
const e = n.target;
|
|
61
|
+
e && "href" in e && e.href && window.open(e.href, "_blank");
|
|
62
|
+
} };
|
|
63
|
+
};
|
|
54
64
|
export {
|
|
55
|
-
|
|
65
|
+
A as useMessageLinks
|
|
56
66
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
import { useMessageDraft as r } from "../useMessageDraft.js";
|
|
3
|
+
import "../useSearchModel.js";
|
|
4
|
+
import "../useTheme.js";
|
|
5
|
+
import "../useEmojiNative.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
import "../../node_modules/linkifyjs/dist/linkify.js";
|
|
9
|
+
import "../../node_modules/linkify-string/dist/linkify-string.js";
|
|
10
|
+
import "../../functions/parseMarkdown.js";
|
|
11
|
+
function n(e) {
|
|
12
|
+
const t = document.getElementById("chat-input-reply-line-" + e);
|
|
13
|
+
t && (t.style.display = "inherit");
|
|
14
|
+
}
|
|
15
|
+
function R(e) {
|
|
16
|
+
const t = document.getElementById("chat-input-reply-line-" + e);
|
|
17
|
+
t && (t.style.display = "none");
|
|
18
|
+
}
|
|
19
|
+
function w(e) {
|
|
20
|
+
const { setReply: t } = r(e);
|
|
21
|
+
return { startReply: (i) => {
|
|
22
|
+
n(e), t(i);
|
|
23
|
+
} };
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
R as hideReplyPreview,
|
|
27
|
+
n as showReplyPreview,
|
|
28
|
+
w as useStartReply
|
|
29
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ref as u, computed as n } from "vue";
|
|
2
|
+
const t = u([]), c = (v) => {
|
|
3
|
+
const a = u(0), i = t.value.find(({ id: e }) => e === v);
|
|
4
|
+
return i !== void 0 ? a.value = t.value.indexOf(i) : (t.value.push({
|
|
5
|
+
id: v,
|
|
6
|
+
native: !0
|
|
7
|
+
}), a.value = t.value.length - 1), { isNative: n(() => {
|
|
8
|
+
var e;
|
|
9
|
+
return ((e = t.value[a.value]) == null ? void 0 : e.native) ?? !0;
|
|
10
|
+
}), getNative: () => {
|
|
11
|
+
var e;
|
|
12
|
+
return ((e = t.value[a.value]) == null ? void 0 : e.native) ?? !0;
|
|
13
|
+
}, setNative: (e) => {
|
|
14
|
+
t.value[a.value] && (t.value[a.value].native = e);
|
|
15
|
+
} };
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
c as useEmojiNative
|
|
19
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -8,18 +8,18 @@ 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
|
|
12
|
-
import { default as
|
|
11
|
+
import { default as y } from "./components/1_icons/CloseButtonIcon.vue.js";
|
|
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
14
|
import { default as T } from "./components/1_icons/SearchIcon.vue.js";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
15
|
+
import { default as P } from "./components/1_icons/SettingsIcon.vue.js";
|
|
16
|
+
import { default as v } from "./components/1_icons/TelegramIcon.vue.js";
|
|
17
|
+
import { default as V } from "./components/1_icons/WhatsAppIcon.vue.js";
|
|
18
|
+
import { default as w } from "./components/1_icons/MessageStatus/ErrorStatusIcon.vue.js";
|
|
19
|
+
import { default as W } from "./components/1_icons/MessageStatus/PendingStatusIcon.vue.js";
|
|
20
20
|
import { default as U } from "./components/1_icons/MessageStatus/ReadStatusIcon.vue.js";
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
21
|
+
import { default as N } from "./components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js";
|
|
22
|
+
import { default as K } from "./components/1_icons/MessageStatus/SentStatusIcon.vue.js";
|
|
23
23
|
import { default as O } from "./components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js";
|
|
24
24
|
import { default as z } from "./components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js";
|
|
25
25
|
import { default as J } from "./components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js";
|
|
@@ -35,18 +35,18 @@ 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
|
|
39
|
-
import { default as
|
|
38
|
+
import { default as ye } from "./components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js";
|
|
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
41
|
import { default as Te } from "./components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js";
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
42
|
+
import { default as Pe } from "./components/2_chatlist_elements/ChatItem/ChatItem.vue.js";
|
|
43
|
+
import { default as ve } from "./components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js";
|
|
44
|
+
import { default as Ve } from "./components/2_elements/AudioRecorder/AudioRecorder.vue.js";
|
|
45
|
+
import { default as we } from "./components/2_elements/ChannelSelector/ChannelSelector.vue.js";
|
|
46
|
+
import { default as We } from "./components/2_elements/ChatInfo/ChatInfo.vue.js";
|
|
47
47
|
import { default as Ue } from "./components/2_elements/ChatPanel/ChatPanel.vue.js";
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
48
|
+
import { default as Ne } from "./components/2_elements/ContactInfo/ContactInfo.vue.js";
|
|
49
|
+
import { default as Ke } from "./components/2_elements/ThemeMode/ThemeMode.vue.js";
|
|
50
50
|
import { default as Oe } from "./components/2_elements/UserProfile/UserProfile.vue.js";
|
|
51
51
|
import { default as ze } from "./components/2_elements/VideoRecorder/VideoRecorder.vue.js";
|
|
52
52
|
import { default as Je } from "./components/2_feed_elements/AudioMessage/AudioMessage.vue.js";
|
|
@@ -62,18 +62,18 @@ import { default as xt } from "./components/2_feed_elements/ImageMessage/ImageMe
|
|
|
62
62
|
import { default as nt } from "./components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
|
|
63
63
|
import { default as Mt } from "./components/2_feed_elements/MessageReactions/MessageReactions.vue.js";
|
|
64
64
|
import { default as Ct } from "./components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
65
|
+
import { default as yt } from "./components/2_feed_elements/StickerMessage/StickerMessage.vue.js";
|
|
66
|
+
import { default as Rt } from "./components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js";
|
|
67
67
|
import { default as At } from "./components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js";
|
|
68
68
|
import { default as Tt } from "./components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js";
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
69
|
+
import { default as Pt } from "./components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js";
|
|
70
|
+
import { default as vt } from "./components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js";
|
|
71
|
+
import { default as Vt } from "./components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js";
|
|
72
|
+
import { default as wt } from "./components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js";
|
|
73
|
+
import { default as Wt } from "./components/2_feed_elements/SplashScreen/SplashScreen.vue.js";
|
|
74
74
|
import { default as Ut } from "./components/2_feed_elements/SystemMessage/SystemMessage.vue.js";
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
75
|
+
import { default as Nt } from "./components/2_feed_elements/TextMessage/TextMessage.vue.js";
|
|
76
|
+
import { default as Kt } from "./components/2_feed_elements/TypingMessage/TypingMessage.vue.js";
|
|
77
77
|
import { default as Ot } from "./components/2_feed_elements/VideoMessage/VideoMessage.vue.js";
|
|
78
78
|
import { default as zt } from "./components/2_modals/Modal/Modal.vue.js";
|
|
79
79
|
import { default as Jt } from "./components/2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
@@ -89,48 +89,51 @@ import { default as io } from "./components/4_layouts/ExtendedLayout/ExtendedLay
|
|
|
89
89
|
import { default as co } from "./components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js";
|
|
90
90
|
import { default as go } from "./components/4_layouts/FeedLayout/FeedLayout.vue.js";
|
|
91
91
|
import { default as So } from "./components/4_layouts/ChatWrapper/ChatWrapper.vue.js";
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
92
|
+
import { default as ho } from "./components/5_containers/BaseContainer/BaseContainer.vue.js";
|
|
93
|
+
import { default as Io } from "./components/5_containers/FloatContainer/FloatContainer.vue.js";
|
|
94
94
|
import { generatePreview as Fo } from "./hooks/uploadFile/generatePreview.js";
|
|
95
95
|
import { getTypeFileByMime as Bo } from "./hooks/uploadFile/getTypeFileByMime.js";
|
|
96
|
-
import { uploadFile as
|
|
97
|
-
import { useDelayDebouncedRef as
|
|
96
|
+
import { uploadFile as bo } from "./hooks/uploadFile/uploadFile.js";
|
|
97
|
+
import { useDelayDebouncedRef as ko } from "./hooks/useDelayDebouncedRef.js";
|
|
98
98
|
import { useImmediateDebouncedRef as Do } from "./hooks/useImmediateDebouncedRef.js";
|
|
99
|
-
import { useMessageDraft as
|
|
99
|
+
import { useMessageDraft as Lo } from "./hooks/useMessageDraft.js";
|
|
100
100
|
import { useSearchModel as Eo } from "./hooks/useSearchModel.js";
|
|
101
101
|
import { useTheme as jo } from "./hooks/useTheme.js";
|
|
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 {
|
|
102
|
+
import { useEmojiNative as Ho } from "./hooks/useEmojiNative.js";
|
|
103
|
+
import { useModalCreateChat as Qo } from "./hooks/modals/useCreateChat.js";
|
|
104
|
+
import { useModalCreateChat2 as qo } from "./hooks/modals/useCreateChat2.js";
|
|
105
|
+
import { useModalCreateDialog as Go } from "./hooks/modals/useCreateDialog.js";
|
|
106
|
+
import { useModalSelectUser2 as Xo } from "./hooks/modals/useModalSelectUser2.js";
|
|
107
|
+
import { useModalVideoRecorder as Zo } from "./hooks/modals/useVideoRecorder.js";
|
|
108
|
+
import { getValidationReport as $o, validateChats as ea } from "./hooks/validators/chats/chatValidator.js";
|
|
109
|
+
import { useChatValidator as oa } from "./hooks/validators/chats/useChatValidator.js";
|
|
110
|
+
import { getMessageValidationReport as ra, validateMessages as fa } from "./hooks/validators/messages/messageValidator.js";
|
|
111
|
+
import { useMessageValidator as la } from "./hooks/validators/messages/useMessageValidator.js";
|
|
112
|
+
import { getSidebarValidationReport as da, validateSidebarItems as ma } from "./hooks/validators/sidebar/sidebarValidator.js";
|
|
113
|
+
import { useSidebarValidator as xa } from "./hooks/validators/sidebar/useSidebarValidator.js";
|
|
114
|
+
import { useValidation as na } from "./hooks/validators/useValidation.js";
|
|
115
|
+
import { useMessageActions as Ma } from "./hooks/messages/useMessageActions.js";
|
|
116
|
+
import { useMessageLinks as Ca } from "./hooks/messages/useMessageLinks.js";
|
|
117
|
+
import { useChannelAccentColor as ya } from "./hooks/messages/useChannelAccentColor.js";
|
|
118
|
+
import { useSubtextTooltip as Ra } from "./hooks/messages/useSubtextTooltip.js";
|
|
119
|
+
import { hideReplyPreview as Aa, showReplyPreview as Fa, useStartReply as Ta } from "./hooks/messages/useStartReply.js";
|
|
120
|
+
import { buildReplyPayload as Pa } from "./hooks/messages/buildReplyPayload.js";
|
|
121
|
+
import { getStatus as va, getStatusTitle as ka, statuses as Va } from "./functions/getStatusMessage.js";
|
|
122
|
+
import { formatTimestamp as wa } from "./functions/formatTimestamp.js";
|
|
123
|
+
import { playNotificationAudio as Wa } from "./functions/playNotificationAudio.js";
|
|
124
|
+
import { insertDaySeparators as Ua } from "./functions/insertDaySeparators.js";
|
|
125
|
+
import { sortByTimestamp as Na } from "./functions/sortByTimestamp.js";
|
|
126
|
+
import { getMessageClass as Ka } from "./functions/getMessageClass.js";
|
|
127
|
+
import { createReactionHandlers as Oa } from "./functions/createReactionHandlers.js";
|
|
128
|
+
import { getChannelAccentColor as za } from "./functions/getChannelAccentColor.js";
|
|
129
|
+
import { parseMarkdown as Ja } from "./functions/parseMarkdown.js";
|
|
130
|
+
import { safeMediaPlay as Ya, safeMediaPlayVoid as Za } from "./functions/safeMediaPlay.js";
|
|
128
131
|
export {
|
|
129
132
|
co as AdaptiveExtendedLayout,
|
|
130
133
|
Je as AudioMessage,
|
|
131
|
-
|
|
134
|
+
Ve as AudioRecorder,
|
|
132
135
|
M as AvatarIcon,
|
|
133
|
-
|
|
136
|
+
ho as BaseContainer,
|
|
134
137
|
uo as BaseLayout,
|
|
135
138
|
Ye as BaseReplyMessage,
|
|
136
139
|
_ as ButtonCommandsSelector,
|
|
@@ -139,28 +142,28 @@ export {
|
|
|
139
142
|
oe as ButtonTemplateSelector,
|
|
140
143
|
re as ButtonWabaTemplateSelector,
|
|
141
144
|
_e as CallMessage,
|
|
142
|
-
|
|
145
|
+
we as ChannelSelector,
|
|
143
146
|
Te as ChatFilter,
|
|
144
|
-
|
|
147
|
+
We as ChatInfo,
|
|
145
148
|
eo as ChatInput,
|
|
146
|
-
|
|
149
|
+
Pe as ChatItem,
|
|
147
150
|
ro as ChatList,
|
|
148
151
|
oo as ChatListHeader,
|
|
149
152
|
Ue as ChatPanel,
|
|
150
|
-
|
|
153
|
+
ve as ChatTabs,
|
|
151
154
|
So as ChatWrapper,
|
|
152
155
|
C as CheckIcon,
|
|
153
|
-
|
|
156
|
+
y as CloseButtonIcon,
|
|
154
157
|
O as CommunicationPanel,
|
|
155
|
-
|
|
158
|
+
R as ContactCRMIcon,
|
|
156
159
|
s as ContactContextMenu,
|
|
157
|
-
|
|
160
|
+
Ne as ContactInfo,
|
|
158
161
|
p as ContextMenu,
|
|
159
162
|
et as DateMessage,
|
|
160
163
|
rt as DateMessageSticky,
|
|
161
164
|
st as DelimiterMessage,
|
|
162
165
|
m as EmbedPreview,
|
|
163
|
-
|
|
166
|
+
w as ErrorStatusIcon,
|
|
164
167
|
io as ExtendedLayout,
|
|
165
168
|
so as Feed,
|
|
166
169
|
z as FeedFoundItem,
|
|
@@ -171,7 +174,7 @@ export {
|
|
|
171
174
|
mt as FileMessage,
|
|
172
175
|
se as FilePreview,
|
|
173
176
|
pe as FileUploader,
|
|
174
|
-
|
|
177
|
+
Io as FloatContainer,
|
|
175
178
|
xt as ImageMessage,
|
|
176
179
|
x as LinkPreview,
|
|
177
180
|
A as MenuIcon,
|
|
@@ -182,79 +185,84 @@ export {
|
|
|
182
185
|
zt as Modal,
|
|
183
186
|
Jt as ModalFullscreen,
|
|
184
187
|
Yt as ModalNoFooter,
|
|
185
|
-
|
|
188
|
+
W as PendingStatusIcon,
|
|
186
189
|
me as PlaceholderComponent,
|
|
187
190
|
U as ReadStatusIcon,
|
|
188
|
-
|
|
189
|
-
|
|
191
|
+
N as ReceivedStatusIcon,
|
|
192
|
+
Rt as ReplyAudioMessage,
|
|
190
193
|
At as ReplyCallMessage,
|
|
191
194
|
Tt as ReplyFileMessage,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
Pt as ReplyImageMessage,
|
|
196
|
+
vt as ReplyStickerMessage,
|
|
197
|
+
Vt as ReplyTextMessage,
|
|
198
|
+
wt as ReplyVideoMessage,
|
|
196
199
|
T as SearchIcon,
|
|
197
200
|
_t as SelectUser,
|
|
198
|
-
|
|
199
|
-
|
|
201
|
+
K as SentStatusIcon,
|
|
202
|
+
P as SettingsIcon,
|
|
200
203
|
po as SideBar,
|
|
201
|
-
|
|
202
|
-
|
|
204
|
+
Wt as SplashScreen,
|
|
205
|
+
yt as StickerMessage,
|
|
203
206
|
xe as StickerPicker,
|
|
204
207
|
Ut as SystemMessage,
|
|
205
|
-
|
|
208
|
+
v as TelegramIcon,
|
|
206
209
|
ne as TemplateSelector,
|
|
207
210
|
Me as TextFormatToolbar,
|
|
208
|
-
|
|
209
|
-
|
|
211
|
+
Nt as TextMessage,
|
|
212
|
+
Ke as ThemeMode,
|
|
210
213
|
n as Tooltip,
|
|
211
|
-
|
|
214
|
+
Kt as TypingMessage,
|
|
212
215
|
Oe as UserProfile,
|
|
213
216
|
Ot as VideoMessage,
|
|
214
217
|
ze as VideoRecorder,
|
|
215
218
|
Ce as WABAAttachmentSection,
|
|
216
|
-
|
|
217
|
-
|
|
219
|
+
ye as WABAQuickReplyButtons,
|
|
220
|
+
Re as WABASeparatedQuickButtons,
|
|
218
221
|
Ae as WABATemplateSelector,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
+
V as WhatsAppIcon,
|
|
223
|
+
Pa as buildReplyPayload,
|
|
224
|
+
Oa as createReactionHandlers,
|
|
225
|
+
wa as formatTimestamp,
|
|
222
226
|
Fo as generatePreview,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
za as getChannelAccentColor,
|
|
228
|
+
Ka as getMessageClass,
|
|
229
|
+
ra as getMessageValidationReport,
|
|
230
|
+
da as getSidebarValidationReport,
|
|
231
|
+
va as getStatus,
|
|
232
|
+
ka as getStatusTitle,
|
|
229
233
|
Bo as getTypeFileByMime,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
234
|
+
$o as getValidationReport,
|
|
235
|
+
Aa as hideReplyPreview,
|
|
236
|
+
Ua as insertDaySeparators,
|
|
237
|
+
Ja as parseMarkdown,
|
|
238
|
+
Wa as playNotificationAudio,
|
|
239
|
+
Ya as safeMediaPlay,
|
|
240
|
+
Za as safeMediaPlayVoid,
|
|
241
|
+
Fa as showReplyPreview,
|
|
242
|
+
Na as sortByTimestamp,
|
|
243
|
+
Va as statuses,
|
|
244
|
+
bo as uploadFile,
|
|
245
|
+
ya as useChannelAccentColor,
|
|
246
|
+
oa as useChatValidator,
|
|
247
|
+
ko as useDelayDebouncedRef,
|
|
248
|
+
Ho as useEmojiNative,
|
|
242
249
|
Do as useImmediateDebouncedRef,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
Ma as useMessageActions,
|
|
251
|
+
Lo as useMessageDraft,
|
|
252
|
+
Ca as useMessageLinks,
|
|
253
|
+
la as useMessageValidator,
|
|
254
|
+
Qo as useModalCreateChat,
|
|
255
|
+
qo as useModalCreateChat2,
|
|
256
|
+
Go as useModalCreateDialog,
|
|
257
|
+
Xo as useModalSelectUser2,
|
|
258
|
+
Zo as useModalVideoRecorder,
|
|
252
259
|
Eo as useSearchModel,
|
|
253
|
-
|
|
254
|
-
|
|
260
|
+
xa as useSidebarValidator,
|
|
261
|
+
Ta as useStartReply,
|
|
262
|
+
Ra as useSubtextTooltip,
|
|
255
263
|
jo as useTheme,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
264
|
+
na as useValidation,
|
|
265
|
+
ea as validateChats,
|
|
266
|
+
fa as validateMessages,
|
|
267
|
+
ma as validateSidebarItems
|
|
260
268
|
};
|