@mobilon-dev/chotto 0.3.37 → 0.3.38
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_chatinput_elements/StickerPicker/StickerPicker.vue.js +2 -2
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +28 -28
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +29 -29
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +2 -2
- package/package.json +16 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./StickerPicker.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3384ea35"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useMessageDraft as
|
|
1
|
+
import { defineComponent as Pe, ref as i, inject as Ee, computed as d, watchEffect as Fe, watch as z, onMounted as Le, onUnmounted as Ue, createElementBlock as a, openBlock as o, Fragment as X, createCommentVNode as C, createVNode as P, unref as E, normalizeClass as Q, createElementVNode as F, Transition as Z, withCtx as x, withDirectives as $e, renderList as ee, toDisplayString as te, vShow as Oe, normalizeStyle as Ae } from "vue";
|
|
2
|
+
import { useMessageDraft as Be } from "../../../hooks/useMessageDraft.js";
|
|
3
3
|
import "../../../hooks/useSearchModel.js";
|
|
4
4
|
import "../../../hooks/useTheme.js";
|
|
5
5
|
/* empty css */
|
|
@@ -9,7 +9,7 @@ import "../../../functions/parseMarkdown.js";
|
|
|
9
9
|
import se from "./icons/StickerIcon.vue.js";
|
|
10
10
|
import { isAnimatedSticker as L } from "../../2_feed_elements/StickerMessage/utils/stickerUtils.js";
|
|
11
11
|
import "../../2_feed_elements/StickerMessage/utils/suppress-lit-warning.js";
|
|
12
|
-
const
|
|
12
|
+
const De = { class: "sticker-picker__container" }, We = ["onClick", "onMouseenter", "onMouseleave"], Ne = ["src"], Ve = ["src", "alt"], Re = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "sticker-picker__tab-icon-placeholder"
|
|
15
15
|
}, He = { class: "sticker-picker__content" }, Ie = {
|
|
@@ -21,7 +21,7 @@ const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseente
|
|
|
21
21
|
}, ze = ["onClick", "onMouseenter"], Xe = ["src"], Ye = ["src", "alt"], Ge = ["src"], Ke = ["src", "alt"], qe = {
|
|
22
22
|
key: 2,
|
|
23
23
|
class: "sticker-picker__preview-label"
|
|
24
|
-
}, Je = 700, ct = /* @__PURE__ */
|
|
24
|
+
}, Je = 700, ct = /* @__PURE__ */ Pe({
|
|
25
25
|
__name: "StickerPicker",
|
|
26
26
|
props: {
|
|
27
27
|
state: { default: "active" },
|
|
@@ -30,7 +30,7 @@ const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseente
|
|
|
30
30
|
emptyText: { default: "Нет доступных стикеров" }
|
|
31
31
|
},
|
|
32
32
|
setup(U) {
|
|
33
|
-
const l = U, $ = i(null),
|
|
33
|
+
const l = U, $ = i(null), O = i(null), A = i(null), B = i(null), u = i(!1), p = i(0), m = Ee("chatAppId"), { getMessage: re, setMessageFile: le, setForceSendMessage: ae } = Be(m), y = i("#5F5F5F"), b = i("#404040"), D = i(!1);
|
|
34
34
|
let h = null;
|
|
35
35
|
const W = () => {
|
|
36
36
|
if (!m) {
|
|
@@ -44,8 +44,8 @@ const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseente
|
|
|
44
44
|
}
|
|
45
45
|
const t = window.getComputedStyle(e), s = t.getPropertyValue("--chotto-stickerpicker-button-span-color").trim(), r = t.getPropertyValue("--chotto-stickerpicker-button-span-hover-color").trim();
|
|
46
46
|
y.value = s || "#5F5F5F", b.value = r || "#404040";
|
|
47
|
-
}, oe = d(() =>
|
|
48
|
-
|
|
47
|
+
}, oe = d(() => D.value ? b.value : y.value);
|
|
48
|
+
Fe(() => {
|
|
49
49
|
W();
|
|
50
50
|
});
|
|
51
51
|
const n = i(null), N = i({}), w = i(null), v = i(/* @__PURE__ */ new Map()), k = i(/* @__PURE__ */ new Map());
|
|
@@ -173,9 +173,9 @@ const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseente
|
|
|
173
173
|
!M && !T && j();
|
|
174
174
|
}, 150));
|
|
175
175
|
}, we = () => {
|
|
176
|
-
|
|
176
|
+
D.value = !0, ye();
|
|
177
177
|
}, Te = () => {
|
|
178
|
-
|
|
178
|
+
D.value = !1, be();
|
|
179
179
|
}, Me = () => {
|
|
180
180
|
l.mode === "hover" && (M = !0);
|
|
181
181
|
}, Se = () => {
|
|
@@ -183,11 +183,11 @@ const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseente
|
|
|
183
183
|
!T && !M && j();
|
|
184
184
|
}, 150));
|
|
185
185
|
}, Ce = (e) => {
|
|
186
|
-
if (!
|
|
186
|
+
if (!A.value) return;
|
|
187
187
|
const t = e.shiftKey || Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;
|
|
188
|
-
|
|
188
|
+
A.value.scrollLeft += t;
|
|
189
189
|
}, J = (e) => {
|
|
190
|
-
l.mode === "click" && u.value &&
|
|
190
|
+
l.mode === "click" && u.value && O.value && $.value && e.target instanceof Node && !O.value.contains(e.target) && !$.value.contains(e.target) && j(), n.value && B.value && e.target instanceof Node && !B.value.contains(e.target) && g();
|
|
191
191
|
};
|
|
192
192
|
return Le(() => {
|
|
193
193
|
if (document.addEventListener("click", J), W(), m) {
|
|
@@ -209,35 +209,35 @@ const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseente
|
|
|
209
209
|
e && typeof e.pause == "function" && e.pause();
|
|
210
210
|
}), k.value.clear();
|
|
211
211
|
}), (e, t) => (o(), a(X, null, [
|
|
212
|
-
|
|
212
|
+
E(re)().isRecording ? C("", !0) : (o(), a("button", {
|
|
213
213
|
key: 0,
|
|
214
214
|
ref_key: "stickerButton",
|
|
215
|
-
ref:
|
|
215
|
+
ref: O,
|
|
216
216
|
class: Q(["button", { "button-disabled": U.state === "disabled" }]),
|
|
217
217
|
onClick: ge,
|
|
218
218
|
onMouseenter: we,
|
|
219
219
|
onMouseleave: Te
|
|
220
220
|
}, [
|
|
221
|
-
|
|
222
|
-
E(
|
|
221
|
+
F("span", null, [
|
|
222
|
+
P(E(se), { fill: oe.value }, null, 8, ["fill"])
|
|
223
223
|
])
|
|
224
224
|
], 34)),
|
|
225
|
-
|
|
225
|
+
P(Z, null, {
|
|
226
226
|
default: x(() => [
|
|
227
|
-
$e(
|
|
227
|
+
$e(F("div", {
|
|
228
228
|
ref_key: "stickerPicker",
|
|
229
229
|
ref: $,
|
|
230
230
|
class: "sticker-picker",
|
|
231
231
|
onMouseenter: Me,
|
|
232
232
|
onMouseleave: Se
|
|
233
233
|
}, [
|
|
234
|
-
|
|
234
|
+
F("div", De, [
|
|
235
235
|
ce.value ? (o(), a("div", {
|
|
236
236
|
key: 0,
|
|
237
237
|
ref_key: "tabsContainer",
|
|
238
|
-
ref:
|
|
238
|
+
ref: A,
|
|
239
239
|
class: "sticker-picker__tabs",
|
|
240
|
-
|
|
240
|
+
onWheelPassive: Ce
|
|
241
241
|
}, [
|
|
242
242
|
(o(!0), a(X, null, ee(_.value, (s, r) => (o(), a("button", {
|
|
243
243
|
key: r,
|
|
@@ -246,7 +246,7 @@ const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseente
|
|
|
246
246
|
onMouseenter: (c) => ve(r),
|
|
247
247
|
onMouseleave: (c) => fe(r)
|
|
248
248
|
}, [
|
|
249
|
-
s.iconUrl &&
|
|
249
|
+
s.iconUrl && E(L)(s.iconUrl) && f.value ? (o(), a("tgs-player", {
|
|
250
250
|
key: 0,
|
|
251
251
|
ref_for: !0,
|
|
252
252
|
ref: (c) => ue(r, c),
|
|
@@ -260,11 +260,11 @@ const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseente
|
|
|
260
260
|
alt: s.label || `Tab ${r + 1}`,
|
|
261
261
|
class: "sticker-picker__tab-icon"
|
|
262
262
|
}, null, 8, Ve)) : (o(), a("span", Re, [
|
|
263
|
-
E(
|
|
263
|
+
P(E(se))
|
|
264
264
|
]))
|
|
265
265
|
], 42, We))), 128))
|
|
266
266
|
], 544)) : C("", !0),
|
|
267
|
-
|
|
267
|
+
F("div", He, [
|
|
268
268
|
H.value.length === 0 ? (o(), a("div", Ie, te(U.emptyText), 1)) : (o(), a("div", je, [
|
|
269
269
|
(o(!0), a(X, null, ee(H.value, (s, r) => (o(), a("button", {
|
|
270
270
|
key: r,
|
|
@@ -292,19 +292,19 @@ const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseente
|
|
|
292
292
|
])
|
|
293
293
|
])
|
|
294
294
|
], 544), [
|
|
295
|
-
[
|
|
295
|
+
[Oe, u.value]
|
|
296
296
|
])
|
|
297
297
|
]),
|
|
298
298
|
_: 1
|
|
299
299
|
}),
|
|
300
|
-
|
|
300
|
+
P(Z, { name: "preview" }, {
|
|
301
301
|
default: x(() => [
|
|
302
302
|
n.value ? (o(), a("div", {
|
|
303
303
|
key: 0,
|
|
304
304
|
ref_key: "previewElement",
|
|
305
|
-
ref:
|
|
305
|
+
ref: B,
|
|
306
306
|
class: "sticker-picker__preview",
|
|
307
|
-
style:
|
|
307
|
+
style: Ae(N.value),
|
|
308
308
|
onClick: _e
|
|
309
309
|
}, [
|
|
310
310
|
I(n.value) && f.value ? (o(), a("tgs-player", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AudioMessage.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-21f09e5a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as pe, inject as we, ref as d, computed as w, watch as Ce, onMounted as ye, createElementBlock as c, openBlock as l, unref as
|
|
1
|
+
import { defineComponent as pe, inject as we, ref as d, computed as w, watch as Ce, onMounted as ye, createElementBlock as c, openBlock as l, unref as i, normalizeStyle as W, normalizeClass as b, createCommentVNode as m, createElementVNode as a, createVNode as h, withCtx as L, createTextVNode as be, toDisplayString as g, createBlock as k, withDirectives as N, vShow as G, vModelText as he, Transition as J, Teleport as ke } from "vue";
|
|
2
2
|
import xe from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
3
|
import Te from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
4
|
import Me from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
@@ -55,7 +55,7 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
55
55
|
},
|
|
56
56
|
emits: ["action", "reply"],
|
|
57
57
|
setup(e, { emit: K }) {
|
|
58
|
-
const Q = we("chatAppId"), { getTheme: A } = De(Q),
|
|
58
|
+
const Q = we("chatAppId"), { getTheme: A } = De(Q), n = e, R = d([
|
|
59
59
|
{
|
|
60
60
|
text: "1.0x",
|
|
61
61
|
speed: 1
|
|
@@ -82,18 +82,18 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
82
82
|
clickAction: _,
|
|
83
83
|
viewsAction: B,
|
|
84
84
|
handleClickReplied: ee
|
|
85
|
-
} = Ee(
|
|
85
|
+
} = Ee(n.message, $), x = d(!1), se = async () => {
|
|
86
86
|
var u, s, v;
|
|
87
|
-
if (
|
|
87
|
+
if (n.message.url)
|
|
88
88
|
try {
|
|
89
|
-
const o = await fetch(
|
|
89
|
+
const o = await fetch(n.message.url, {
|
|
90
90
|
headers: {
|
|
91
91
|
Accept: "audio/*"
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
if (!o.ok)
|
|
95
95
|
throw new Error(`HTTP error! status: ${o.status}`);
|
|
96
|
-
const H = o.headers.get("content-type") || "", ge = await o.blob(), T = ((s = (u =
|
|
96
|
+
const H = o.headers.get("content-type") || "", ge = await o.blob(), T = ((s = (u = n.message.url.split(".").pop()) == null ? void 0 : u.split("?")[0]) == null ? void 0 : s.toLowerCase()) || "", ve = {
|
|
97
97
|
"audio/mpeg": "mp3",
|
|
98
98
|
"audio/mp3": "mp3",
|
|
99
99
|
"audio/wav": "wav",
|
|
@@ -105,15 +105,15 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
105
105
|
"audio/m4a": "m4a",
|
|
106
106
|
"audio/x-m4a": "m4a",
|
|
107
107
|
"application/octet-stream": T || "mp3"
|
|
108
|
-
}, O = T && ["mp3", "wav", "ogg", "webm", "aac", "flac", "m4a"].includes(T) ? T : ve[H] || "mp3", q =
|
|
108
|
+
}, O = T && ["mp3", "wav", "ogg", "webm", "aac", "flac", "m4a"].includes(T) ? T : ve[H] || "mp3", q = n.message.url.split("/"), M = decodeURIComponent(((v = q[q.length - 1]) == null ? void 0 : v.split("?")[0]) || ""), fe = M ? M.includes(".") ? M : `${M}.${O}` : `audio-${n.message.messageId}.${O}`, z = window.URL.createObjectURL(ge), y = document.createElement("a");
|
|
109
109
|
y.href = z, y.download = fe, document.body.appendChild(y), y.click(), document.body.removeChild(y), window.URL.revokeObjectURL(z);
|
|
110
110
|
} catch (o) {
|
|
111
|
-
console.error("Ошибка при скачивании аудио:", o), window.open(
|
|
111
|
+
console.error("Ошибка при скачивании аудио:", o), window.open(n.message.url, "_blank");
|
|
112
112
|
}
|
|
113
113
|
}, te = (u) => {
|
|
114
114
|
u.action === "download" ? (se(), E()) : _(u);
|
|
115
|
-
}, { linkedHtml: ae, inNewWindow: P } = Le(() =>
|
|
116
|
-
w(() =>
|
|
115
|
+
}, { linkedHtml: ae, inNewWindow: P } = Le(() => n.message.text), oe = w(() => $e(n.message.status)), ie = w(() => Ve(n.message.status, n.message.statusMsg)), { bubbleStyle: ne } = Ne(
|
|
116
|
+
w(() => n.message),
|
|
117
117
|
{ cssVariable: "--chotto-audiomessage-right-background-color", position: "right" }
|
|
118
118
|
);
|
|
119
119
|
function D() {
|
|
@@ -135,7 +135,7 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
135
135
|
function j(u) {
|
|
136
136
|
return Be(u.position, "audio-message");
|
|
137
137
|
}
|
|
138
|
-
const { onToggleReaction: me, onAddReaction: re, onRemoveReaction: de } = Pe($), ce = Ae(() =>
|
|
138
|
+
const { onToggleReaction: me, onAddReaction: re, onRemoveReaction: de } = Pe($), ce = Ae(() => n.message, () => n.subtextTooltipData);
|
|
139
139
|
return ye(() => {
|
|
140
140
|
t.value != null && (t.value.playbackRate = I.value.speed, t.value.addEventListener("loadedmetadata", () => {
|
|
141
141
|
t.value != null && (t.value.duration == 1 / 0 || Number.isNaN(t.value.duration)) && (t.value.currentTime = 1e101, t.value.addEventListener("timeupdate", () => {
|
|
@@ -152,9 +152,9 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
152
152
|
e.applyStyle(e.message)
|
|
153
153
|
]]),
|
|
154
154
|
messageId: e.message.messageId,
|
|
155
|
-
style: W(
|
|
155
|
+
style: W(i(ne)),
|
|
156
156
|
onMouseleave: s[9] || (s[9] = //@ts-ignore
|
|
157
|
-
(...o) =>
|
|
157
|
+
(...o) => i(E) && i(E)(...o))
|
|
158
158
|
}, [
|
|
159
159
|
e.message.avatar && e.isFirstInSeries ? (l(), c("img", {
|
|
160
160
|
key: 0,
|
|
@@ -166,7 +166,7 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
166
166
|
}, null, 12, Ze)) : m("", !0),
|
|
167
167
|
e.message.subText && e.isFirstInSeries ? (l(), c("p", je, [
|
|
168
168
|
h(Fe, {
|
|
169
|
-
text:
|
|
169
|
+
text: i(ce),
|
|
170
170
|
position: e.message.position === "left" ? "right" : "left",
|
|
171
171
|
offset: 8
|
|
172
172
|
}, {
|
|
@@ -179,14 +179,14 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
179
179
|
a("div", {
|
|
180
180
|
class: b(["audio-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
181
181
|
onMouseenter: s[8] || (s[8] = //@ts-ignore
|
|
182
|
-
(...o) =>
|
|
182
|
+
(...o) => i(V) && i(V)(...o))
|
|
183
183
|
}, [
|
|
184
184
|
e.message.reply ? (l(), k(Re, {
|
|
185
185
|
key: 0,
|
|
186
186
|
style: { "grid-column": "1/3" },
|
|
187
187
|
message: e.message.reply,
|
|
188
188
|
class: b(e.message.position),
|
|
189
|
-
onReply:
|
|
189
|
+
onReply: i(ee)
|
|
190
190
|
}, null, 8, ["message", "class", "onReply"])) : m("", !0),
|
|
191
191
|
a("div", He, [
|
|
192
192
|
a("audio", {
|
|
@@ -247,8 +247,8 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
247
247
|
step: "0.1",
|
|
248
248
|
onMousedown: s[1] || (s[1] = (o) => p.value = !0),
|
|
249
249
|
onMouseup: Z,
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
onTouchstartPassive: s[2] || (s[2] = (o) => p.value = !0),
|
|
251
|
+
onTouchendPassive: Z
|
|
252
252
|
}, null, 40, ze), [
|
|
253
253
|
[he, r.value]
|
|
254
254
|
]),
|
|
@@ -273,8 +273,8 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
273
273
|
e.message.text ? (l(), c("div", Xe, [
|
|
274
274
|
a("p", {
|
|
275
275
|
onClick: s[4] || (s[4] = //@ts-ignore
|
|
276
|
-
(...o) =>
|
|
277
|
-
innerHTML:
|
|
276
|
+
(...o) => i(P) && i(P)(...o)),
|
|
277
|
+
innerHTML: i(ae)
|
|
278
278
|
}, null, 8, Ye)
|
|
279
279
|
])) : m("", !0),
|
|
280
280
|
e.message.linkPreview ? (l(), k(Te, {
|
|
@@ -291,16 +291,16 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
291
291
|
reactions: e.message.reactions,
|
|
292
292
|
"message-id": e.message.messageId,
|
|
293
293
|
enabled: e.reactionsEnabled,
|
|
294
|
-
onToggleReaction:
|
|
295
|
-
onAddReaction:
|
|
296
|
-
onRemoveReaction:
|
|
294
|
+
onToggleReaction: i(me),
|
|
295
|
+
onAddReaction: i(re),
|
|
296
|
+
onRemoveReaction: i(de)
|
|
297
297
|
}, null, 8, ["reactions", "message-id", "enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction"]),
|
|
298
298
|
a("div", _e, [
|
|
299
299
|
e.message.views ? (l(), c("div", {
|
|
300
300
|
key: 0,
|
|
301
301
|
class: "audio-message__views",
|
|
302
302
|
onClick: s[5] || (s[5] = //@ts-ignore
|
|
303
|
-
(...o) =>
|
|
303
|
+
(...o) => i(B) && i(B)(...o))
|
|
304
304
|
}, [
|
|
305
305
|
s[12] || (s[12] = a("span", { class: "pi pi-eye" }, null, -1)),
|
|
306
306
|
a("p", null, g(e.message.views), 1)
|
|
@@ -311,13 +311,13 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
311
311
|
"message-class": j(e.message),
|
|
312
312
|
"message-status": e.message.status,
|
|
313
313
|
"status-class": oe.value,
|
|
314
|
-
"status-title":
|
|
314
|
+
"status-title": ie.value
|
|
315
315
|
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
316
316
|
]),
|
|
317
|
-
|
|
317
|
+
i(Y) && e.message.actions ? (l(), c("button", {
|
|
318
318
|
key: 5,
|
|
319
319
|
class: "audio-message__menu-button",
|
|
320
|
-
onClick: s[6] || (s[6] = (o) => F.value = !
|
|
320
|
+
onClick: s[6] || (s[6] = (o) => F.value = !i(F))
|
|
321
321
|
}, [...s[13] || (s[13] = [
|
|
322
322
|
a("svg", {
|
|
323
323
|
width: "4",
|
|
@@ -334,7 +334,7 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
334
334
|
])])) : m("", !0),
|
|
335
335
|
h(J, null, {
|
|
336
336
|
default: L(() => [
|
|
337
|
-
|
|
337
|
+
i(F) && e.message.actions ? (l(), k(xe, {
|
|
338
338
|
key: 0,
|
|
339
339
|
class: "audio-message__context-menu",
|
|
340
340
|
actions: e.message.actions,
|
|
@@ -351,7 +351,7 @@ const Ue = ["messageId"], Ze = ["src"], je = {
|
|
|
351
351
|
x.value ? (l(), c("div", {
|
|
352
352
|
key: 0,
|
|
353
353
|
class: "audio-message__modal-overlay",
|
|
354
|
-
"data-theme":
|
|
354
|
+
"data-theme": i(A)().theme ? i(A)().theme : null
|
|
355
355
|
}, [
|
|
356
356
|
a("div", ts, [
|
|
357
357
|
a("button", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CallMessage.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1df0ddd1"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -371,8 +371,8 @@ const Be = ["messageId"], Ue = ["src"], Oe = {
|
|
|
371
371
|
step: "0.1",
|
|
372
372
|
onMousedown: e[1] || (e[1] = (u) => h.value = !0),
|
|
373
373
|
onMouseup: H,
|
|
374
|
-
|
|
375
|
-
|
|
374
|
+
onTouchstartPassive: e[2] || (e[2] = (u) => h.value = !0),
|
|
375
|
+
onTouchendPassive: H
|
|
376
376
|
}, null, 40, ot), [
|
|
377
377
|
[De, p.value]
|
|
378
378
|
]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobilon-dev/chotto",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -41,31 +41,31 @@
|
|
|
41
41
|
"linkifyjs": "^4.3.2",
|
|
42
42
|
"markdown-it": "^14.1.0",
|
|
43
43
|
"primeicons": "^7.0.0",
|
|
44
|
-
"sass-embedded": "^1.
|
|
45
|
-
"vue": "^3.5.
|
|
44
|
+
"sass-embedded": "^1.96.0",
|
|
45
|
+
"vue": "^3.5.25",
|
|
46
46
|
"vue3-emoji-picker-ru": "^1.1.9"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@chromatic-com/storybook": "^4.1.
|
|
50
|
-
"@eslint/js": "^9.
|
|
51
|
-
"@storybook/addon-docs": "^9.1.
|
|
52
|
-
"@storybook/addon-links": "^9.1.
|
|
53
|
-
"@storybook/vue3-vite": "^9.1.
|
|
49
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
50
|
+
"@eslint/js": "^9.39.2",
|
|
51
|
+
"@storybook/addon-docs": "^9.1.16",
|
|
52
|
+
"@storybook/addon-links": "^9.1.16",
|
|
53
|
+
"@storybook/vue3-vite": "^9.1.16",
|
|
54
54
|
"@types/glob": "^8.1.0",
|
|
55
55
|
"@types/markdown-it": "^14.1.2",
|
|
56
|
-
"@types/node": "^22.
|
|
56
|
+
"@types/node": "^22.19.3",
|
|
57
57
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
58
|
-
"eslint": "^9.
|
|
59
|
-
"eslint-plugin-storybook": "9.1.
|
|
58
|
+
"eslint": "^9.39.2",
|
|
59
|
+
"eslint-plugin-storybook": "9.1.16",
|
|
60
60
|
"eslint-plugin-vue": "^9.33.0",
|
|
61
|
-
"glob": "^11.0
|
|
61
|
+
"glob": "^11.1.0",
|
|
62
62
|
"moment": "^2.30.1",
|
|
63
63
|
"pinia": "^2.3.1",
|
|
64
|
-
"storybook": "^9.1.
|
|
65
|
-
"tsx": "^4.
|
|
64
|
+
"storybook": "^9.1.16",
|
|
65
|
+
"tsx": "^4.21.0",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
|
-
"typescript-eslint": "^8.
|
|
68
|
-
"vite": "^6.
|
|
67
|
+
"typescript-eslint": "^8.50.0",
|
|
68
|
+
"vite": "^6.4.1",
|
|
69
69
|
"vite-plugin-static-copy": "^2.3.2",
|
|
70
70
|
"vue-tsc": "^2.2.12"
|
|
71
71
|
}
|