@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
|
@@ -4,12 +4,13 @@ import { useDelayDebouncedRef as b } from "../../../hooks/useDelayDebouncedRef.j
|
|
|
4
4
|
import "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import { useSearchModel as A } from "../../../hooks/useSearchModel.js";
|
|
6
6
|
import "../../../hooks/useTheme.js";
|
|
7
|
+
import "../../../hooks/useEmojiNative.js";
|
|
7
8
|
/* empty css */
|
|
8
9
|
/* empty css */
|
|
9
10
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
10
11
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
11
12
|
import "../../../functions/parseMarkdown.js";
|
|
12
|
-
const E = { class: "feed-search__container" }, N = { style: { "line-height": "40px" } }, T = ["placeholder"],
|
|
13
|
+
const E = { class: "feed-search__container" }, N = { style: { "line-height": "40px" } }, T = ["placeholder"], Q = /* @__PURE__ */ _({
|
|
13
14
|
__name: "FeedSearch",
|
|
14
15
|
props: {
|
|
15
16
|
isFeedLocation: {
|
|
@@ -19,19 +20,19 @@ const E = { class: "feed-search__container" }, N = { style: { "line-height": "40
|
|
|
19
20
|
},
|
|
20
21
|
emits: ["search", "cancel", "switch"],
|
|
21
22
|
setup(a, { emit: u }) {
|
|
22
|
-
const f = y("chatAppId"), { getModel: e } = A(f),
|
|
23
|
+
const f = y("chatAppId"), { getModel: e } = A(f), i = u, l = a, c = v(), s = b("", 500), h = S(() => l.isFeedLocation ? "40px" : (l.isFeedLocation, "20px"));
|
|
23
24
|
k(
|
|
24
25
|
() => [e().text, s.value],
|
|
25
26
|
() => {
|
|
26
|
-
s.value == e().text ?
|
|
27
|
+
s.value == e().text ? i("search", e().text) : s.value = e().text;
|
|
27
28
|
}
|
|
28
29
|
);
|
|
29
30
|
const x = () => {
|
|
30
|
-
const t = o(
|
|
31
|
-
t && (t.value = ""), e().text = "",
|
|
31
|
+
const t = o(c);
|
|
32
|
+
t && (t.value = ""), e().text = "", i("cancel");
|
|
32
33
|
};
|
|
33
34
|
return F(() => {
|
|
34
|
-
const t = o(
|
|
35
|
+
const t = o(c);
|
|
35
36
|
t == null || t.focus();
|
|
36
37
|
}), (t, n) => (m(), g(L, null, {
|
|
37
38
|
default: w(() => [
|
|
@@ -39,7 +40,7 @@ const E = { class: "feed-search__container" }, N = { style: { "line-height": "40
|
|
|
39
40
|
r("span", N, D(o(d)("component.FeedSearch.SearchLabel")), 1),
|
|
40
41
|
C(r("input", {
|
|
41
42
|
ref_key: "refInput",
|
|
42
|
-
ref:
|
|
43
|
+
ref: c,
|
|
43
44
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => o(e)().text = p),
|
|
44
45
|
class: "feed-search__input",
|
|
45
46
|
type: "text",
|
|
@@ -56,7 +57,7 @@ const E = { class: "feed-search__container" }, N = { style: { "line-height": "40
|
|
|
56
57
|
key: 0,
|
|
57
58
|
class: "pi pi-refresh",
|
|
58
59
|
style: { "margin-left": "5px", "margin-top": "10px", cursor: "pointer" },
|
|
59
|
-
onClick: n[1] || (n[1] = (p) =>
|
|
60
|
+
onClick: n[1] || (n[1] = (p) => i("switch"))
|
|
60
61
|
})) : B("", !0)
|
|
61
62
|
])
|
|
62
63
|
]),
|
|
@@ -65,5 +66,5 @@ const E = { class: "feed-search__container" }, N = { style: { "line-height": "40
|
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
Q as default
|
|
69
70
|
};
|
package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent as p, inject as g, useTemplateRef as C, watch as h, createBlock as n, openBlock as m, Transition as x, withCtx as i, createCommentVNode as y, unref as
|
|
1
|
+
import { defineComponent as p, inject as g, useTemplateRef as C, watch as h, createBlock as n, openBlock as m, Transition as x, withCtx as i, createCommentVNode as y, unref as r, createElementVNode as B, normalizeClass as M } from "vue";
|
|
2
2
|
import { useMessageDraft as b } from "../../../hooks/useMessageDraft.js";
|
|
3
3
|
import "../../../hooks/useSearchModel.js";
|
|
4
4
|
import "../../../hooks/useTheme.js";
|
|
5
|
+
import "../../../hooks/useEmojiNative.js";
|
|
5
6
|
/* empty css */
|
|
6
7
|
/* empty css */
|
|
7
8
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
8
9
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
9
10
|
import "../../../functions/parseMarkdown.js";
|
|
10
11
|
import k from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
|
|
11
|
-
const
|
|
12
|
+
const V = /* @__PURE__ */ p({
|
|
12
13
|
__name: "ButtonCommandsSelector",
|
|
13
14
|
props: {
|
|
14
15
|
commands: {
|
|
@@ -27,8 +28,8 @@ const T = /* @__PURE__ */ p({
|
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
30
|
emits: ["send"],
|
|
30
|
-
setup(e, { emit:
|
|
31
|
-
const c = e, l =
|
|
31
|
+
setup(e, { emit: d }) {
|
|
32
|
+
const c = e, l = d, u = g("chatAppId"), { getMessage: s } = b(u), a = C("refBCM"), f = (t) => {
|
|
32
33
|
console.log(t);
|
|
33
34
|
const o = {
|
|
34
35
|
type: "message.command",
|
|
@@ -50,13 +51,13 @@ const T = /* @__PURE__ */ p({
|
|
|
50
51
|
ref: a,
|
|
51
52
|
"menu-side": "top",
|
|
52
53
|
mode: e.mode,
|
|
53
|
-
disabled:
|
|
54
|
+
disabled: r(s)().isRecording || e.state == "disabled",
|
|
54
55
|
actions: e.commands,
|
|
55
56
|
onClick: f
|
|
56
57
|
}, {
|
|
57
58
|
default: i(() => [
|
|
58
59
|
B("span", {
|
|
59
|
-
class: M(["commands__trigger", { commands__disabled:
|
|
60
|
+
class: M(["commands__trigger", { commands__disabled: r(s)().isRecording || e.state == "disabled" }])
|
|
60
61
|
}, " / ", 2)
|
|
61
62
|
]),
|
|
62
63
|
_: 1
|
|
@@ -67,5 +68,5 @@ const T = /* @__PURE__ */ p({
|
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
V as default
|
|
71
72
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonEmojiPicker.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e67f8c2a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as D, ref as l, inject as W, watch as z, computed as R, watchEffect as U, onMounted as $, onUnmounted as q, createElementBlock as j, openBlock as C, Fragment as G, createCommentVNode as J, createVNode as g, unref as b, normalizeClass as K, createElementVNode as B, Transition as Q, withCtx as X, withDirectives as Y, vShow as Z } from "vue";
|
|
2
|
+
import ee from "../../../node_modules/vue3-emoji-picker-ru/dist/emoji-picker.es.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { useMessageDraft as
|
|
4
|
+
import { useMessageDraft as te } from "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import "../../../hooks/useSearchModel.js";
|
|
6
6
|
import "../../../hooks/useTheme.js";
|
|
7
|
+
import { useEmojiNative as oe } from "../../../hooks/useEmojiNative.js";
|
|
7
8
|
/* empty css */
|
|
8
9
|
/* empty css */
|
|
9
10
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
10
11
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
11
12
|
import "../../../functions/parseMarkdown.js";
|
|
12
|
-
import
|
|
13
|
-
const
|
|
13
|
+
import ne from "./icons/SmilesIcon.vue.js";
|
|
14
|
+
const ke = /* @__PURE__ */ D({
|
|
14
15
|
__name: "ButtonEmojiPicker",
|
|
15
16
|
props: {
|
|
16
17
|
state: {
|
|
@@ -23,63 +24,73 @@ const ve = /* @__PURE__ */ A({
|
|
|
23
24
|
// или 'hover'
|
|
24
25
|
validator: (r) => ["click", "hover"].includes(r)
|
|
25
26
|
},
|
|
27
|
+
/**
|
|
28
|
+
* true — системные эмодзи; false — 3D (Apple) в пикере, инпуте и ленте.
|
|
29
|
+
* Значение пишется в общий store чата (useEmojiNative).
|
|
30
|
+
*/
|
|
26
31
|
native: {
|
|
27
32
|
type: Boolean,
|
|
28
33
|
default: !0
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
setup(r) {
|
|
32
|
-
const t = r, v = l(null), f = l(null), o = l(!1),
|
|
37
|
+
const t = r, v = l(null), f = l(null), o = l(!1), E = l("light"), i = W("chatAppId"), { setMessageText: P, getMessage: M } = te(i), { setNative: w } = oe(i);
|
|
38
|
+
z(
|
|
39
|
+
() => t.native,
|
|
40
|
+
(e) => w(e),
|
|
41
|
+
{ immediate: !0 }
|
|
42
|
+
);
|
|
43
|
+
const c = l("#5F5F5F"), s = l("#404040"), h = l(!1);
|
|
33
44
|
let a = null;
|
|
34
45
|
const p = () => {
|
|
35
46
|
if (!i) {
|
|
36
|
-
c.value = "#5F5F5F",
|
|
47
|
+
c.value = "#5F5F5F", s.value = "#404040";
|
|
37
48
|
return;
|
|
38
49
|
}
|
|
39
50
|
const e = document.getElementById(i);
|
|
40
51
|
if (!e) {
|
|
41
|
-
c.value = "#5F5F5F",
|
|
52
|
+
c.value = "#5F5F5F", s.value = "#404040";
|
|
42
53
|
return;
|
|
43
54
|
}
|
|
44
|
-
const n = window.getComputedStyle(e), d = n.getPropertyValue("--chotto-buttonemojipicker-button-span-color").trim(),
|
|
45
|
-
c.value = d || "#5F5F5F",
|
|
46
|
-
},
|
|
47
|
-
|
|
55
|
+
const n = window.getComputedStyle(e), d = n.getPropertyValue("--chotto-buttonemojipicker-button-span-color").trim(), A = n.getPropertyValue("--chotto-buttonemojipicker-button-span-hover-color").trim();
|
|
56
|
+
c.value = d || "#5F5F5F", s.value = A || "#404040";
|
|
57
|
+
}, I = R(() => h.value ? s.value : c.value);
|
|
58
|
+
U(() => {
|
|
48
59
|
p();
|
|
49
60
|
});
|
|
50
|
-
let
|
|
51
|
-
const
|
|
61
|
+
let u = !1, m = !1;
|
|
62
|
+
const N = () => {
|
|
52
63
|
var n;
|
|
53
64
|
const e = document.getElementById(i);
|
|
54
65
|
return (n = e == null ? void 0 : e.getAttribute("data-theme")) != null && n.includes("dark") ? "dark" : "light";
|
|
55
66
|
}, S = (e) => {
|
|
56
|
-
P(
|
|
67
|
+
P(M().text + e.i), t.mode === "click" && (o.value = !1);
|
|
57
68
|
}, y = () => {
|
|
58
|
-
t.state === "active" && (
|
|
69
|
+
t.state === "active" && (E.value = N(), o.value = !0);
|
|
59
70
|
}, k = () => {
|
|
60
71
|
o.value = !1;
|
|
61
72
|
}, _ = () => {
|
|
62
73
|
t.mode === "click" && (o.value = !o.value, o.value && y());
|
|
63
74
|
}, T = () => {
|
|
64
|
-
t.mode === "hover" && (
|
|
75
|
+
t.mode === "hover" && (u = !0, y());
|
|
65
76
|
}, V = () => {
|
|
66
|
-
t.mode === "hover" && (
|
|
67
|
-
!m && !
|
|
77
|
+
t.mode === "hover" && (u = !1, setTimeout(() => {
|
|
78
|
+
!m && !u && k();
|
|
68
79
|
}, 150));
|
|
69
80
|
}, x = () => {
|
|
70
81
|
h.value = !0, T();
|
|
71
82
|
}, L = () => {
|
|
72
83
|
h.value = !1, V();
|
|
73
|
-
}, N = () => {
|
|
74
|
-
t.mode === "hover" && (m = !0);
|
|
75
84
|
}, O = () => {
|
|
85
|
+
t.mode === "hover" && (m = !0);
|
|
86
|
+
}, H = () => {
|
|
76
87
|
t.mode === "hover" && (m = !1, setTimeout(() => {
|
|
77
|
-
!
|
|
88
|
+
!u && !m && k();
|
|
78
89
|
}, 150));
|
|
79
90
|
}, F = (e) => {
|
|
80
91
|
t.mode === "click" && o.value && f.value && v.value && e.target instanceof Node && !f.value.contains(e.target) && !v.value.contains(e.target) && k();
|
|
81
92
|
};
|
|
82
|
-
return
|
|
93
|
+
return $(() => {
|
|
83
94
|
if (document.addEventListener("click", F), p(), i) {
|
|
84
95
|
const e = document.getElementById(i);
|
|
85
96
|
e && (a = new MutationObserver((n) => {
|
|
@@ -91,39 +102,39 @@ const ve = /* @__PURE__ */ A({
|
|
|
91
102
|
attributeFilter: ["data-theme"]
|
|
92
103
|
}));
|
|
93
104
|
}
|
|
94
|
-
}),
|
|
105
|
+
}), q(() => {
|
|
95
106
|
document.removeEventListener("click", F), a && (a.disconnect(), a = null);
|
|
96
|
-
}), (e, n) => (C(), j(
|
|
97
|
-
b(
|
|
107
|
+
}), (e, n) => (C(), j(G, null, [
|
|
108
|
+
b(M)().isRecording ? J("", !0) : (C(), j("button", {
|
|
98
109
|
key: 0,
|
|
99
110
|
ref_key: "emojiButton",
|
|
100
111
|
ref: f,
|
|
101
|
-
class:
|
|
112
|
+
class: K(["button", { "button-disabled": r.state === "disabled" }]),
|
|
102
113
|
onClick: _,
|
|
103
114
|
onMouseenter: x,
|
|
104
115
|
onMouseleave: L
|
|
105
116
|
}, [
|
|
106
117
|
B("span", null, [
|
|
107
|
-
g(b(
|
|
118
|
+
g(b(ne), { fill: I.value }, null, 8, ["fill"])
|
|
108
119
|
])
|
|
109
120
|
], 34)),
|
|
110
|
-
g(
|
|
111
|
-
default:
|
|
112
|
-
|
|
121
|
+
g(Q, null, {
|
|
122
|
+
default: X(() => [
|
|
123
|
+
Y(B("div", {
|
|
113
124
|
ref_key: "emoji",
|
|
114
125
|
ref: v,
|
|
115
126
|
class: "emoji",
|
|
116
|
-
onMouseenter:
|
|
117
|
-
onMouseleave:
|
|
127
|
+
onMouseenter: O,
|
|
128
|
+
onMouseleave: H
|
|
118
129
|
}, [
|
|
119
|
-
g(b(
|
|
130
|
+
g(b(ee), {
|
|
120
131
|
native: r.native,
|
|
121
|
-
theme:
|
|
132
|
+
theme: E.value,
|
|
122
133
|
"picker-type": "",
|
|
123
134
|
onSelect: S
|
|
124
135
|
}, null, 8, ["native", "theme"])
|
|
125
136
|
], 544), [
|
|
126
|
-
[
|
|
137
|
+
[Z, o.value]
|
|
127
138
|
])
|
|
128
139
|
]),
|
|
129
140
|
_: 1
|
|
@@ -132,5 +143,5 @@ const ve = /* @__PURE__ */ A({
|
|
|
132
143
|
}
|
|
133
144
|
});
|
|
134
145
|
export {
|
|
135
|
-
|
|
146
|
+
ke as default
|
|
136
147
|
};
|
package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js
CHANGED
|
@@ -4,13 +4,14 @@ import P from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
|
4
4
|
import { useMessageDraft as j } from "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import "../../../hooks/useSearchModel.js";
|
|
6
6
|
import "../../../hooks/useTheme.js";
|
|
7
|
+
import "../../../hooks/useEmojiNative.js";
|
|
7
8
|
/* empty css */
|
|
8
9
|
/* empty css */
|
|
9
10
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
10
11
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
11
12
|
import "../../../functions/parseMarkdown.js";
|
|
12
13
|
import z from "./icons/ChatTemplatesIcon.vue.js";
|
|
13
|
-
const R = { class: "" },
|
|
14
|
+
const R = { class: "" }, le = /* @__PURE__ */ T({
|
|
14
15
|
__name: "ButtonTemplateSelector",
|
|
15
16
|
props: {
|
|
16
17
|
templates: {
|
|
@@ -132,5 +133,5 @@ const R = { class: "" }, oe = /* @__PURE__ */ T({
|
|
|
132
133
|
}
|
|
133
134
|
});
|
|
134
135
|
export {
|
|
135
|
-
|
|
136
|
+
le as default
|
|
136
137
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { provide as h, inject as k, ref as
|
|
1
|
+
import { provide as h, inject as k, ref as s, onMounted as w, createElementBlock as i, openBlock as u, Fragment as B, createCommentVNode as W, createElementVNode as p, unref as S, normalizeClass as T, createVNode as M } from "vue";
|
|
2
2
|
import V from "../WABATemplateSelector/WABATemplateSelector.vue.js";
|
|
3
3
|
import { useMessageDraft as A } from "../../../hooks/useMessageDraft.js";
|
|
4
4
|
import "../../../hooks/useSearchModel.js";
|
|
5
5
|
import "../../../hooks/useTheme.js";
|
|
6
|
+
import "../../../hooks/useEmojiNative.js";
|
|
6
7
|
/* empty css */
|
|
7
8
|
import q from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
9
|
/* empty css */
|
|
@@ -49,7 +50,7 @@ const C = {
|
|
|
49
50
|
setup(a, { emit: d }) {
|
|
50
51
|
const t = a;
|
|
51
52
|
h("filebumpUrl", t.filebumpUrl);
|
|
52
|
-
const m = k("chatAppId"), { getMessage: c } = A(m), f =
|
|
53
|
+
const m = k("chatAppId"), { getMessage: c } = A(m), f = s(null), e = s(null), y = d, v = () => {
|
|
53
54
|
t.mode == "click" && t.state == "active" && (e.value.style.display == "none" ? e.value.style.display = "inherit" : e.value.style.display == "inherit" && (e.value.style.display = "none"));
|
|
54
55
|
}, o = () => {
|
|
55
56
|
t.mode == "hover" && t.state == "active" && (e.value.style.display = "inherit");
|
|
@@ -64,7 +65,7 @@ const C = {
|
|
|
64
65
|
const g = (n) => {
|
|
65
66
|
y("sendWabaValues", n);
|
|
66
67
|
};
|
|
67
|
-
return (n,
|
|
68
|
+
return (n, r) => (u(), i(B, null, [
|
|
68
69
|
S(c)().isRecording ? W("", !0) : (u(), i("button", {
|
|
69
70
|
key: 0,
|
|
70
71
|
ref_key: "templateButton",
|
|
@@ -73,7 +74,7 @@ const C = {
|
|
|
73
74
|
onClick: v,
|
|
74
75
|
onMouseover: o,
|
|
75
76
|
onMouseout: l
|
|
76
|
-
}, [...
|
|
77
|
+
}, [...r[0] || (r[0] = [
|
|
77
78
|
p("span", { class: "pi pi-code" }, null, -1)
|
|
78
79
|
])], 34)),
|
|
79
80
|
p("div", {
|
|
@@ -93,7 +94,7 @@ const C = {
|
|
|
93
94
|
], 544)
|
|
94
95
|
], 64));
|
|
95
96
|
}
|
|
96
|
-
},
|
|
97
|
+
}, K = /* @__PURE__ */ q(C, [["__scopeId", "data-v-e300d7b9"]]);
|
|
97
98
|
export {
|
|
98
|
-
|
|
99
|
+
K as default
|
|
99
100
|
};
|
|
@@ -3,6 +3,7 @@ import z from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
|
3
3
|
import "../../../hooks/useMessageDraft.js";
|
|
4
4
|
import "../../../hooks/useSearchModel.js";
|
|
5
5
|
import { useTheme as B } from "../../../hooks/useTheme.js";
|
|
6
|
+
import "../../../hooks/useEmojiNative.js";
|
|
6
7
|
/* empty css */
|
|
7
8
|
/* empty css */
|
|
8
9
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
@@ -21,7 +22,7 @@ const j = { class: "preview__container" }, F = { class: "preview__block" }, O =
|
|
|
21
22
|
}, ee = {
|
|
22
23
|
key: 2,
|
|
23
24
|
class: "preview__audio-time"
|
|
24
|
-
}, ie = { class: "preview__reset" }, te = ["src"], le = ["src"],
|
|
25
|
+
}, ie = { class: "preview__reset" }, te = ["src"], le = ["src"], _e = /* @__PURE__ */ V({
|
|
25
26
|
__name: "FilePreview",
|
|
26
27
|
props: {
|
|
27
28
|
fileInfo: {
|
|
@@ -156,5 +157,5 @@ const j = { class: "preview__container" }, F = { class: "preview__block" }, O =
|
|
|
156
157
|
}
|
|
157
158
|
});
|
|
158
159
|
export {
|
|
159
|
-
|
|
160
|
+
_e as default
|
|
160
161
|
};
|
|
@@ -4,6 +4,7 @@ import { uploadFile as J } from "../../../hooks/uploadFile/uploadFile.js";
|
|
|
4
4
|
import { useMessageDraft as K } from "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import "../../../hooks/useSearchModel.js";
|
|
6
6
|
import "../../../hooks/useTheme.js";
|
|
7
|
+
import "../../../hooks/useEmojiNative.js";
|
|
7
8
|
/* empty css */
|
|
8
9
|
/* empty css */
|
|
9
10
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
@@ -16,7 +17,7 @@ const W = {
|
|
|
16
17
|
}, X = {
|
|
17
18
|
key: 1,
|
|
18
19
|
class: "file-uploader__status file-uploader__status--error"
|
|
19
|
-
}, Y = ["disabled"],
|
|
20
|
+
}, Y = ["disabled"], de = /* @__PURE__ */ O({
|
|
20
21
|
__name: "FileUploader",
|
|
21
22
|
props: {
|
|
22
23
|
filebumpUrl: {
|
|
@@ -148,5 +149,5 @@ const W = {
|
|
|
148
149
|
}
|
|
149
150
|
});
|
|
150
151
|
export {
|
|
151
|
-
|
|
152
|
+
de as default
|
|
152
153
|
};
|
|
@@ -2,6 +2,7 @@ import { defineComponent as Ee, ref as i, inject as Fe, computed as p, watchEffe
|
|
|
2
2
|
import { useMessageDraft as De } from "../../../hooks/useMessageDraft.js";
|
|
3
3
|
import "../../../hooks/useSearchModel.js";
|
|
4
4
|
import "../../../hooks/useTheme.js";
|
|
5
|
+
import "../../../hooks/useEmojiNative.js";
|
|
5
6
|
/* empty css */
|
|
6
7
|
/* empty css */
|
|
7
8
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
@@ -22,7 +23,7 @@ const We = { class: "sticker-picker__container" }, Ne = ["onClick", "onMouseente
|
|
|
22
23
|
}, Xe = ["onClick", "onMouseenter"], Ye = ["src"], Ge = ["src", "alt"], Ke = ["src"], qe = ["src", "alt"], Je = {
|
|
23
24
|
key: 2,
|
|
24
25
|
class: "sticker-picker__preview-label"
|
|
25
|
-
}, Qe = 700,
|
|
26
|
+
}, Qe = 700, vt = /* @__PURE__ */ Ee({
|
|
26
27
|
__name: "StickerPicker",
|
|
27
28
|
props: {
|
|
28
29
|
state: { default: "active" },
|
|
@@ -331,5 +332,5 @@ const We = { class: "sticker-picker__container" }, Ne = ["onClick", "onMouseente
|
|
|
331
332
|
}
|
|
332
333
|
});
|
|
333
334
|
export {
|
|
334
|
-
|
|
335
|
+
vt as default
|
|
335
336
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { inject as j, ref as c, computed as m, onMounted as G, unref as p, createElementBlock as
|
|
1
|
+
import { inject as j, ref as c, computed as m, onMounted as G, unref as p, createElementBlock as s, openBlock as a, createElementVNode as e, normalizeClass as b, createCommentVNode as S, Fragment as V, renderList as x, withDirectives as E, vModelRadio as H, toDisplayString as w, vModelText as J, normalizeStyle as K } from "vue";
|
|
2
2
|
import { useMessageDraft as X } from "../../../hooks/useMessageDraft.js";
|
|
3
3
|
import "../../../hooks/useSearchModel.js";
|
|
4
4
|
import "../../../hooks/useTheme.js";
|
|
5
|
+
import "../../../hooks/useEmojiNative.js";
|
|
5
6
|
/* empty css */
|
|
6
7
|
import Y from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
8
|
/* empty css */
|
|
@@ -10,7 +11,7 @@ import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
|
10
11
|
import "../../../functions/parseMarkdown.js";
|
|
11
12
|
import Z from "../../3_compounds/Feed/assets/chat-background.svg.js";
|
|
12
13
|
/* empty css */
|
|
13
|
-
const ee = { class: "template-selector" }, te = ["id"], le = { style: { display: "flex" } },
|
|
14
|
+
const ee = { class: "template-selector" }, te = ["id"], le = { style: { display: "flex" } }, oe = { style: { display: "flex" } }, se = {
|
|
14
15
|
key: 0,
|
|
15
16
|
class: "template-selector__button-close"
|
|
16
17
|
}, ae = {
|
|
@@ -84,7 +85,7 @@ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display:
|
|
|
84
85
|
});
|
|
85
86
|
return G(() => {
|
|
86
87
|
y(), p(C) && Q.observe(p(C));
|
|
87
|
-
}), (t, l) => (a(),
|
|
88
|
+
}), (t, l) => (a(), s("div", ee, [
|
|
88
89
|
e("div", {
|
|
89
90
|
id: "template-selector-container-" + p(r),
|
|
90
91
|
ref_key: "refContainer",
|
|
@@ -95,14 +96,14 @@ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display:
|
|
|
95
96
|
})
|
|
96
97
|
}, [
|
|
97
98
|
e("div", le, [
|
|
98
|
-
e("div",
|
|
99
|
-
$.value ? (a(),
|
|
99
|
+
e("div", oe, [
|
|
100
|
+
$.value ? (a(), s("button", se, [
|
|
100
101
|
e("span", {
|
|
101
102
|
class: "pi pi-arrow-left",
|
|
102
103
|
onClick: A
|
|
103
104
|
})
|
|
104
105
|
])) : S("", !0),
|
|
105
|
-
z.value ? (a(),
|
|
106
|
+
z.value ? (a(), s("button", ae, [
|
|
106
107
|
e("span", {
|
|
107
108
|
class: "pi pi-arrow-right",
|
|
108
109
|
onClick: q
|
|
@@ -112,7 +113,7 @@ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display:
|
|
|
112
113
|
e("button", re, [
|
|
113
114
|
e("span", {
|
|
114
115
|
class: "pi pi-times",
|
|
115
|
-
onClick: l[0] || (l[0] = (
|
|
116
|
+
onClick: l[0] || (l[0] = (o) => t.$emit("closeTemplateWindow"))
|
|
116
117
|
})
|
|
117
118
|
])
|
|
118
119
|
]),
|
|
@@ -122,28 +123,28 @@ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display:
|
|
|
122
123
|
class: "template-selector__first-col"
|
|
123
124
|
}, [
|
|
124
125
|
e("ul", ie, [
|
|
125
|
-
(a(!0),
|
|
126
|
+
(a(!0), s(V, null, x(_.groupTemplates, (o, g) => (a(), s("li", {
|
|
126
127
|
key: g,
|
|
127
|
-
class: b(["template-selector__item-group", { "template-selector__item-selected": u.value ===
|
|
128
|
+
class: b(["template-selector__item-group", { "template-selector__item-selected": u.value === o }]),
|
|
128
129
|
onClick: O
|
|
129
130
|
}, [
|
|
130
131
|
e("label", pe, [
|
|
131
|
-
|
|
132
|
+
o.iconUrl ? (a(), s("img", {
|
|
132
133
|
key: 0,
|
|
133
134
|
class: "template-selector__item-group-icon",
|
|
134
|
-
src:
|
|
135
|
-
alt:
|
|
135
|
+
src: o.iconUrl,
|
|
136
|
+
alt: o.title
|
|
136
137
|
}, null, 8, de)) : S("", !0),
|
|
137
138
|
E(e("input", {
|
|
138
139
|
id: g,
|
|
139
140
|
"onUpdate:modelValue": l[1] || (l[1] = (P) => u.value = P),
|
|
140
|
-
value:
|
|
141
|
+
value: o,
|
|
141
142
|
class: "template-selector__input-group",
|
|
142
143
|
type: "radio"
|
|
143
144
|
}, null, 8, ue), [
|
|
144
145
|
[H, u.value]
|
|
145
146
|
]),
|
|
146
|
-
e("span", null, w(
|
|
147
|
+
e("span", null, w(o.title), 1)
|
|
147
148
|
])
|
|
148
149
|
], 2))), 128))
|
|
149
150
|
])
|
|
@@ -154,7 +155,7 @@ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display:
|
|
|
154
155
|
}, [
|
|
155
156
|
e("div", _e, [
|
|
156
157
|
E(e("input", {
|
|
157
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
158
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => k.value = o),
|
|
158
159
|
class: "template-selector__searching-input",
|
|
159
160
|
type: "text",
|
|
160
161
|
placeholder: "Поиск шаблона"
|
|
@@ -163,18 +164,18 @@ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display:
|
|
|
163
164
|
])
|
|
164
165
|
]),
|
|
165
166
|
e("div", ve, [
|
|
166
|
-
I.value.length !== 0 ? (a(),
|
|
167
|
-
(a(!0),
|
|
167
|
+
I.value.length !== 0 ? (a(), s("ul", fe, [
|
|
168
|
+
(a(!0), s(V, null, x(I.value, (o, g) => (a(), s("li", {
|
|
168
169
|
key: g,
|
|
169
|
-
class: b(["template-selector__item-template", { "template-selector__item-selected":
|
|
170
|
-
onClick: (P) => F(
|
|
170
|
+
class: b(["template-selector__item-template", { "template-selector__item-selected": o.isSelected }]),
|
|
171
|
+
onClick: (P) => F(o)
|
|
171
172
|
}, [
|
|
172
173
|
e("div", ye, [
|
|
173
|
-
e("p", ge, w(
|
|
174
|
-
e("p", we, w(
|
|
174
|
+
e("p", ge, w(o.title), 1),
|
|
175
|
+
e("p", we, w(o.template), 1)
|
|
175
176
|
])
|
|
176
177
|
], 10, he))), 128))
|
|
177
|
-
])) : (a(),
|
|
178
|
+
])) : (a(), s("p", ke, " Шаблоны отсутствуют "))
|
|
178
179
|
])
|
|
179
180
|
], 8, me),
|
|
180
181
|
e("div", {
|
|
@@ -185,12 +186,12 @@ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display:
|
|
|
185
186
|
class: "template-selector__preview-container",
|
|
186
187
|
style: K({ backgroundImage: `url(${U.value})` })
|
|
187
188
|
}, [
|
|
188
|
-
v.value ? (a(),
|
|
189
|
+
v.value ? (a(), s("div", Te, [
|
|
189
190
|
e("div", be, [
|
|
190
191
|
e("p", Se, w(v.value.template), 1),
|
|
191
192
|
l[3] || (l[3] = e("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
|
192
193
|
])
|
|
193
|
-
])) : (a(),
|
|
194
|
+
])) : (a(), s("p", Be, " Предпросмотр шаблона "))
|
|
194
195
|
], 4),
|
|
195
196
|
e("button", {
|
|
196
197
|
class: "template-selector__button-paste",
|
|
@@ -201,7 +202,7 @@ const ee = { class: "template-selector" }, te = ["id"], le = { style: { display:
|
|
|
201
202
|
], 10, te)
|
|
202
203
|
]));
|
|
203
204
|
}
|
|
204
|
-
},
|
|
205
|
+
}, De = /* @__PURE__ */ Y(Ie, [["__scopeId", "data-v-23622175"]]);
|
|
205
206
|
export {
|
|
206
|
-
|
|
207
|
+
De as default
|
|
207
208
|
};
|
|
@@ -2,13 +2,14 @@ import { defineComponent as N, inject as O, ref as c, watch as U, onMounted as W
|
|
|
2
2
|
import "../../../hooks/useMessageDraft.js";
|
|
3
3
|
import "../../../hooks/useSearchModel.js";
|
|
4
4
|
import { useTheme as oe } from "../../../hooks/useTheme.js";
|
|
5
|
+
import "../../../hooks/useEmojiNative.js";
|
|
5
6
|
/* empty css */
|
|
6
7
|
/* empty css */
|
|
7
8
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
8
9
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
9
10
|
import "../../../functions/parseMarkdown.js";
|
|
10
11
|
import { t as f } from "../../../locale/useLocale.js";
|
|
11
|
-
const ne = ["data-theme"], ie = ["title"], se = ["title"], re = ["title"], le = ["title"], ae = ["title"], ue = ["title"],
|
|
12
|
+
const ne = ["data-theme"], ie = ["title"], se = ["title"], re = ["title"], le = ["title"], ae = ["title"], ue = ["title"], Ce = /* @__PURE__ */ N({
|
|
12
13
|
__name: "TextFormatToolbar",
|
|
13
14
|
props: {
|
|
14
15
|
textarea: {
|
|
@@ -207,5 +208,5 @@ const ne = ["data-theme"], ie = ["title"], se = ["title"], re = ["title"], le =
|
|
|
207
208
|
}
|
|
208
209
|
});
|
|
209
210
|
export {
|
|
210
|
-
|
|
211
|
+
Ce as default
|
|
211
212
|
};
|
package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js
CHANGED
|
@@ -4,6 +4,7 @@ import { uploadFile as N } from "../../../hooks/uploadFile/uploadFile.js";
|
|
|
4
4
|
import "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import "../../../hooks/useSearchModel.js";
|
|
6
6
|
import "../../../hooks/useTheme.js";
|
|
7
|
+
import "../../../hooks/useEmojiNative.js";
|
|
7
8
|
/* empty css */
|
|
8
9
|
/* empty css */
|
|
9
10
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
@@ -12,7 +13,7 @@ import "../../../functions/parseMarkdown.js";
|
|
|
12
13
|
const O = ["accept"], B = { class: "attachment-section__info" }, G = {
|
|
13
14
|
key: 2,
|
|
14
15
|
class: "attachment-section__error-text"
|
|
15
|
-
},
|
|
16
|
+
}, Y = /* @__PURE__ */ E({
|
|
16
17
|
__name: "WABAAttachmentSection",
|
|
17
18
|
props: {
|
|
18
19
|
type: {
|
|
@@ -123,5 +124,5 @@ const O = ["accept"], B = { class: "attachment-section__info" }, G = {
|
|
|
123
124
|
}
|
|
124
125
|
});
|
|
125
126
|
export {
|
|
126
|
-
|
|
127
|
+
Y as default
|
|
127
128
|
};
|