tuikit-atomicx-vue3 5.8.1 → 5.8.2
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/{PopoverPortal-BJ-dMQ1s.js → PopoverPortal-NF24jm90.js} +4 -4
- package/dist/{PopoverTrigger-CRYjB43D.js → PopoverTrigger-Q8GAhbK6.js} +4 -4
- package/dist/{PopperContent-DpeuB5j4.js → PopperContent-C7Uuo_Y2.js} +3 -3
- package/dist/{Teleport-B3_JYXPG.js → Teleport-C3oxnewF.js} +77 -75
- package/dist/baseComp/Modal/Modal.js +4 -4
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +2 -2
- package/dist/components/BarrageInput/MessageInputState.js +1 -1
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +16 -15
- package/dist/components/BarrageList/BarrageList.js +6 -6
- package/dist/components/BarrageList/BarrageListH5.js +4 -4
- package/dist/components/BarrageList/BarrageListState.js +3 -3
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/CoHostPanel/RecommendHostList.js +4 -4
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +16 -16
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/ConversationList/ConversationList.js +6 -6
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +5 -5
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +1 -1
- package/dist/components/FreeBeautyPanel/i18n/en-US/index.js +5 -5
- package/dist/components/LiveGift/LiveGiftH5/LiveGift.js +3 -3
- package/dist/components/LiveGift/LiveGiftPC/LiveGift.js +3 -3
- package/dist/components/LiveScenePanel/index.js +1 -1
- package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +1 -1
- package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +1 -1
- package/dist/components/LiveView/DefaultStreamViewUI.js +1 -1
- package/dist/components/LiveView/index.js +104 -103
- package/dist/components/MessageInput/AttachmentPicker/index.js +2 -2
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +3 -3
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +2 -2
- package/dist/components/MessageInput/QuickConferencePicker/QuickConferencePicker.js +137 -0
- package/dist/components/MessageInput/QuickConferencePicker/QuickConferencePicker.vue.d.ts +45 -0
- package/dist/components/MessageInput/QuickConferencePicker/index.d.ts +3 -0
- package/dist/components/MessageInput/QuickConferencePicker/index.js +4 -0
- package/dist/components/MessageInput/TextEditor/EditorCore.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +3 -3
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +2 -2
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +7 -7
- package/dist/components/MessageInput/TextEditor/index.js +1 -1
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +3 -3
- package/dist/components/MessageInput/i18n/en-US.d.ts +5 -0
- package/dist/components/MessageInput/i18n/en-US.js +8 -3
- package/dist/components/MessageInput/i18n/index.d.ts +10 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +5 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +7 -2
- package/dist/components/MessageInput/index.d.ts +69 -1
- package/dist/components/MessageInput/index.js +30 -26
- package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +29 -24
- package/dist/components/MessageList/Message/CustomMessage/QuickConferenceMessage/QuickConferenceMessage.js +203 -0
- package/dist/components/MessageList/Message/CustomMessage/QuickConferenceMessage/QuickConferenceMessage.vue.d.ts +17 -0
- package/dist/components/MessageList/Message/CustomMessage/QuickConferenceMessage/index.d.ts +3 -0
- package/dist/components/MessageList/Message/CustomMessage/QuickConferenceMessage/index.js +4 -0
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +13 -12
- package/dist/components/MessageList/MessageList.js +4 -4
- package/dist/components/MessageList/i18n/en-US.d.ts +16 -1
- package/dist/components/MessageList/i18n/en-US.js +16 -1
- package/dist/components/MessageList/i18n/index.d.ts +30 -0
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +16 -1
- package/dist/components/MessageList/i18n/zh-CN.js +16 -1
- package/dist/components/RoomParticipantList/i18n/en-US/index.js +7 -7
- package/dist/components/RoomParticipantList/useParticpantAction/index.js +1 -1
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.js +1 -1
- package/dist/components/ScheduleRoomPanel/RoomShare.js +6 -6
- package/dist/components/ScheduleRoomPanel/i18n/en-US/index.js +10 -10
- package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.js +9 -9
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +1 -1
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +3 -3
- package/dist/components/StreamMixer/LocalMixer/index.js +1 -1
- package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.js +64 -64
- package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.js +2 -2
- package/dist/hooks/useMessageActions.js +22 -21
- package/dist/{index-BQp2x0bs.js → index-DSsh0Axu.js} +90 -72
- package/dist/{index-D530fGkF.js → index-Dw7nlTSW.js} +1 -1
- package/dist/{index-Brmwu7bH.js → index-I6gZUWuE.js} +1 -1
- package/dist/{index-BKrl7QH3.js → index-ljqIpw2N.js} +1 -1
- package/dist/index.js +272 -271
- package/dist/states/BattleState/BattleState.js +5 -5
- package/dist/states/CoHostState/CoHostState.js +1 -1
- package/dist/states/FreeBeautyState/FreeBeautyState.js +1 -1
- package/dist/states/LiveAudienceState.js +1 -1
- package/dist/states/LiveMonitorState/api/http.js +592 -559
- package/dist/states/LiveMonitorState/index.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
- package/dist/states/MessageActionState/MessageActionState.js +7 -7
- package/dist/states/MessageInputState/MessageInputState.js +1 -1
- package/dist/states/RoomParticipantState/index.js +7 -7
- package/dist/states/RoomState/store.js +13 -8
- package/dist/states/UserState/store.js +1 -1
- package/dist/states/VideoMixerState/VideoMixerState.d.ts +12 -3
- package/dist/styles/index.css +1 -1
- package/dist/subEntry/chat/chat.d.ts +1 -1
- package/dist/subEntry/chat/chat.js +57 -56
- package/dist/subEntry/chat/index.js +81 -80
- package/dist/{useId-BNjJIKw1.js → useId-DNAhmykH.js} +1 -1
- package/dist/utils/room.d.ts +3 -0
- package/dist/utils/room.js +11 -0
- package/dist/{utils-Baw4KtVl.js → utils-mTO3-yuL.js} +1 -1
- package/package.json +5 -5
- package/src/components/FreeBeautyPanel/i18n/en-US/index.ts +5 -5
- package/src/components/LiveView/index.vue +1 -0
- package/src/components/MessageInput/QuickConferencePicker/QuickConferencePicker.vue +200 -0
- package/src/components/MessageInput/QuickConferencePicker/index.ts +3 -0
- package/src/components/MessageInput/i18n/en-US.ts +7 -0
- package/src/components/MessageInput/i18n/zh-CN.ts +7 -0
- package/src/components/MessageInput/index.ts +5 -0
- package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +13 -3
- package/src/components/MessageList/Message/CustomMessage/QuickConferenceMessage/QuickConferenceMessage.vue +468 -0
- package/src/components/MessageList/Message/CustomMessage/QuickConferenceMessage/images/room_default.svg +4 -0
- package/src/components/MessageList/Message/CustomMessage/QuickConferenceMessage/images/room_primary.svg +4 -0
- package/src/components/MessageList/Message/CustomMessage/QuickConferenceMessage/images/room_success.svg +4 -0
- package/src/components/MessageList/Message/CustomMessage/QuickConferenceMessage/index.ts +3 -0
- package/src/components/MessageList/i18n/en-US.ts +17 -0
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +18 -1
- package/src/components/RoomParticipantList/i18n/en-US/index.ts +5 -5
- package/src/components/RoomParticipantList/useParticpantAction/index.ts +8 -2
- package/src/components/ScheduleRoomPanel/RoomShare.vue +1 -0
- package/src/components/ScheduleRoomPanel/i18n/en-US/index.ts +10 -10
- package/src/components/ScheduleRoomPanel/i18n/zh-CN/index.ts +9 -9
- package/src/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue +4 -1
- package/src/components/VirtualBackgroundPanel/i18n/en-US/index.ts +2 -2
- package/src/hooks/useMessageActions.ts +3 -2
- package/src/subEntry/chat/chat.ts +1 -0
- package/src/utils/room.ts +22 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as D, a as k, r as A, u as b, F as N, D as E, b as R, d as I, e as M, T as $ } from "./Teleport-
|
|
2
|
-
import { a as K, u as L, b as j, c as z, d as w } from "./PopperContent-
|
|
3
|
-
import { u as T } from "./useId-
|
|
1
|
+
import { c as D, a as k, r as A, u as b, F as N, D as E, b as R, d as I, e as M, T as $ } from "./Teleport-C3oxnewF.js";
|
|
2
|
+
import { a as K, u as L, b as j, c as z, d as w } from "./PopperContent-C7Uuo_Y2.js";
|
|
3
|
+
import { u as T } from "./useId-DNAhmykH.js";
|
|
4
4
|
import { defineComponent as m, toRefs as U, ref as P, openBlock as c, createBlock as v, unref as e, withCtx as f, renderSlot as g, createVNode as h, mergeProps as _, withModifiers as C, normalizeProps as x, guardReactiveProps as W } from "vue";
|
|
5
|
-
const [B, V] = D("PopoverRoot");
|
|
5
|
+
const [B, V] = /* @__PURE__ */ D("PopoverRoot");
|
|
6
6
|
var G = /* @__PURE__ */ m({
|
|
7
7
|
__name: "PopoverRoot",
|
|
8
8
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as l, P as a } from "./Teleport-
|
|
2
|
-
import { u as d } from "./useId-
|
|
3
|
-
import { P as u } from "./PopperContent-
|
|
4
|
-
import { i as c } from "./PopoverPortal-
|
|
1
|
+
import { u as l, P as a } from "./Teleport-C3oxnewF.js";
|
|
2
|
+
import { u as d } from "./useId-DNAhmykH.js";
|
|
3
|
+
import { P as u } from "./PopperContent-C7Uuo_Y2.js";
|
|
4
|
+
import { i as c } from "./PopoverPortal-NF24jm90.js";
|
|
5
5
|
import { defineComponent as g, onMounted as f, openBlock as m, createBlock as v, resolveDynamicComponent as _, unref as r, withCtx as t, createVNode as h, renderSlot as P } from "vue";
|
|
6
6
|
var C = /* @__PURE__ */ g({
|
|
7
7
|
__name: "PopoverTrigger",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { watchEffect as It, getCurrentInstance as fe, toRef as ue, computed as P, camelize as de, ref as V, onMounted as pe, defineComponent as Ct, renderSlot as Pt, watchPostEffect as Xt, openBlock as Yt, createBlock as he, unref as M, withCtx as Ut, shallowRef as me, watch as mt, getCurrentScope as ge, onScopeDispose as we, shallowReadonly as tt, createElementBlock as ye, normalizeStyle as ve, createVNode as xe, mergeProps as be, mergeDefaults as Ae } from "vue";
|
|
2
|
-
import { h as Oe, f as Ce, j as Pe, c as Gt, u as Kt, P as Zt, k as Re } from "./Teleport-
|
|
2
|
+
import { h as Oe, f as Ce, j as Pe, c as Gt, u as Kt, P as Zt, k as Re } from "./Teleport-C3oxnewF.js";
|
|
3
3
|
let gt = 0;
|
|
4
4
|
function Fn() {
|
|
5
5
|
It((t) => {
|
|
@@ -72,7 +72,7 @@ function Ee(t) {
|
|
|
72
72
|
height: o
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
const [Jt, _e] = Gt("PopperRoot");
|
|
75
|
+
const [Jt, _e] = /* @__PURE__ */ Gt("PopperRoot");
|
|
76
76
|
var De = /* @__PURE__ */ Ct({
|
|
77
77
|
inheritAttrs: !1,
|
|
78
78
|
__name: "PopperRoot",
|
|
@@ -1394,7 +1394,7 @@ const Ln = {
|
|
|
1394
1394
|
positionStrategy: "fixed",
|
|
1395
1395
|
updatePositionStrategy: "optimized",
|
|
1396
1396
|
prioritizePosition: !1
|
|
1397
|
-
}, [Hn, Tn] = Gt("PopperContent");
|
|
1397
|
+
}, [Hn, Tn] = /* @__PURE__ */ Gt("PopperContent");
|
|
1398
1398
|
var kn = /* @__PURE__ */ Ct({
|
|
1399
1399
|
inheritAttrs: !1,
|
|
1400
1400
|
__name: "PopperContent",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as Ee, provide as be,
|
|
1
|
+
import { inject as Ee, provide as be, onBeforeUnmount as Oe, effectScope as se, getCurrentInstance as I, computed as w, shallowRef as ue, watchEffect as L, readonly as we, getCurrentScope as Se, onScopeDispose as Pe, isRef as K, reactive as R, unref as A, customRef as Ae, toValue as b, watch as _, toRefs as G, ref as E, nextTick as M, onMounted as Ce, Fragment as _e, toHandlerKey as De, camelize as Te, onUpdated as Le, triggerRef as Me, onUnmounted as ae, defineComponent as x, h as j, Comment as Ne, mergeProps as Fe, cloneVNode as Ie, openBlock as X, createBlock as Q, normalizeStyle as xe, withCtx as le, renderSlot as Z, Teleport as Be, createCommentVNode as ke } from "vue";
|
|
2
2
|
function $e(e, t) {
|
|
3
3
|
const n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
|
|
4
4
|
return [(a) => {
|
|
@@ -7,7 +7,7 @@ function $e(e, t) {
|
|
|
7
7
|
throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
|
|
8
8
|
}, (a) => (be(r, a), a)];
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function F() {
|
|
11
11
|
let e = document.activeElement;
|
|
12
12
|
if (e == null) return null;
|
|
13
13
|
for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null; ) e = e.shadowRoot.activeElement;
|
|
@@ -24,10 +24,6 @@ function ce(e, t, n) {
|
|
|
24
24
|
function je(e) {
|
|
25
25
|
return e == null;
|
|
26
26
|
}
|
|
27
|
-
function ee(e) {
|
|
28
|
-
return e ? e.flatMap((t) => t.type === Oe ? ee(t.children) : [t]) : [];
|
|
29
|
-
}
|
|
30
|
-
const [Ue] = $e("ConfigProvider");
|
|
31
27
|
function Tt(e, t) {
|
|
32
28
|
var n;
|
|
33
29
|
const r = ue();
|
|
@@ -36,10 +32,10 @@ function Tt(e, t) {
|
|
|
36
32
|
}, {
|
|
37
33
|
...t,
|
|
38
34
|
flush: (n = t == null ? void 0 : t.flush) !== null && n !== void 0 ? n : "sync"
|
|
39
|
-
}),
|
|
35
|
+
}), we(r);
|
|
40
36
|
}
|
|
41
37
|
function de(e, t) {
|
|
42
|
-
return
|
|
38
|
+
return Se() ? (Pe(e, t), !0) : !1;
|
|
43
39
|
}
|
|
44
40
|
// @__NO_SIDE_EFFECTS__
|
|
45
41
|
function Re(e) {
|
|
@@ -47,19 +43,19 @@ function Re(e) {
|
|
|
47
43
|
const r = se(!0);
|
|
48
44
|
return (...i) => (t || (n = r.run(() => e(...i)), t = !0), n);
|
|
49
45
|
}
|
|
50
|
-
const D = typeof window < "u" && typeof document < "u",
|
|
51
|
-
function
|
|
46
|
+
const D = typeof window < "u" && typeof document < "u", Ue = (e) => typeof e < "u", We = Object.prototype.toString, Ke = (e) => We.call(e) === "[object Object]", ne = /* @__PURE__ */ qe();
|
|
47
|
+
function qe() {
|
|
52
48
|
var e, t, n;
|
|
53
49
|
return D && !!(!((e = window) === null || e === void 0 || (e = e.navigator) === null || e === void 0) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) === null || t === void 0 || (t = t.navigator) === null || t === void 0 ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test((n = window) === null || n === void 0 ? void 0 : n.navigator.userAgent));
|
|
54
50
|
}
|
|
55
51
|
function q(e) {
|
|
56
52
|
return Array.isArray(e) ? e : [e];
|
|
57
53
|
}
|
|
58
|
-
function
|
|
54
|
+
function He(e) {
|
|
59
55
|
return I();
|
|
60
56
|
}
|
|
61
57
|
// @__NO_SIDE_EFFECTS__
|
|
62
|
-
function
|
|
58
|
+
function Ve(e) {
|
|
63
59
|
if (!D) return e;
|
|
64
60
|
let t = 0, n, r;
|
|
65
61
|
const i = () => {
|
|
@@ -67,8 +63,8 @@ function ze(e) {
|
|
|
67
63
|
};
|
|
68
64
|
return (...o) => (t += 1, r || (r = se(!0), n = r.run(() => e(...o))), de(i), n);
|
|
69
65
|
}
|
|
70
|
-
function
|
|
71
|
-
return K(e) ?
|
|
66
|
+
function ze(e) {
|
|
67
|
+
return K(e) ? R(new Proxy({}, {
|
|
72
68
|
get(t, n, r) {
|
|
73
69
|
return A(Reflect.get(e.value, n, r));
|
|
74
70
|
},
|
|
@@ -90,17 +86,17 @@ function Ye(e) {
|
|
|
90
86
|
configurable: !0
|
|
91
87
|
};
|
|
92
88
|
}
|
|
93
|
-
})) :
|
|
89
|
+
})) : R(e);
|
|
94
90
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
91
|
+
function Ye(e) {
|
|
92
|
+
return ze(w(e));
|
|
97
93
|
}
|
|
98
94
|
function Lt(e, ...t) {
|
|
99
95
|
const n = t.flat(), r = n[0];
|
|
100
|
-
return
|
|
96
|
+
return Ye(() => Object.fromEntries(typeof r == "function" ? Object.entries(G(e)).filter(([i, o]) => !r(b(o), i)) : Object.entries(G(e)).filter((i) => !n.includes(i[0]))));
|
|
101
97
|
}
|
|
102
98
|
function Mt(e, t = 1e4) {
|
|
103
|
-
return
|
|
99
|
+
return Ae((n, r) => {
|
|
104
100
|
let i = b(e), o;
|
|
105
101
|
const a = () => setTimeout(() => {
|
|
106
102
|
i = b(e), r();
|
|
@@ -117,17 +113,17 @@ function Mt(e, t = 1e4) {
|
|
|
117
113
|
};
|
|
118
114
|
});
|
|
119
115
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
116
|
+
function Ge(e, t) {
|
|
117
|
+
He() && Oe(e, t);
|
|
122
118
|
}
|
|
123
|
-
function
|
|
119
|
+
function Je(e, t, n) {
|
|
124
120
|
return _(e, t, {
|
|
125
121
|
...n,
|
|
126
122
|
immediate: !0
|
|
127
123
|
});
|
|
128
124
|
}
|
|
129
|
-
const
|
|
130
|
-
function
|
|
125
|
+
const ee = D ? window : void 0;
|
|
126
|
+
function U(e) {
|
|
131
127
|
var t;
|
|
132
128
|
const n = b(e);
|
|
133
129
|
return (t = n == null ? void 0 : n.$el) !== null && t !== void 0 ? t : n;
|
|
@@ -137,50 +133,50 @@ function fe(...e) {
|
|
|
137
133
|
const r = q(b(e[0])).filter((i) => i != null);
|
|
138
134
|
return r.every((i) => typeof i != "string") ? r : void 0;
|
|
139
135
|
});
|
|
140
|
-
return
|
|
136
|
+
return Je(() => {
|
|
141
137
|
var r, i;
|
|
142
138
|
return [
|
|
143
|
-
(r = (i = n.value) === null || i === void 0 ? void 0 : i.map((o) =>
|
|
139
|
+
(r = (i = n.value) === null || i === void 0 ? void 0 : i.map((o) => U(o))) !== null && r !== void 0 ? r : [ee].filter((o) => o != null),
|
|
144
140
|
q(b(n.value ? e[1] : e[0])),
|
|
145
141
|
q(A(n.value ? e[2] : e[1])),
|
|
146
142
|
b(n.value ? e[3] : e[2])
|
|
147
143
|
];
|
|
148
144
|
}, ([r, i, o, a], u, f) => {
|
|
149
145
|
if (!(r != null && r.length) || !(i != null && i.length) || !(o != null && o.length)) return;
|
|
150
|
-
const v =
|
|
146
|
+
const v = Ke(a) ? { ...a } : a, l = r.flatMap((s) => i.flatMap((c) => o.map((d) => t(s, c, d, v))));
|
|
151
147
|
f(() => {
|
|
152
148
|
l.forEach((s) => s());
|
|
153
149
|
});
|
|
154
150
|
}, { flush: "post" });
|
|
155
151
|
}
|
|
156
152
|
// @__NO_SIDE_EFFECTS__
|
|
157
|
-
function
|
|
153
|
+
function Xe() {
|
|
158
154
|
const e = ue(!1), t = I();
|
|
159
|
-
return t &&
|
|
155
|
+
return t && Ce(() => {
|
|
160
156
|
e.value = !0;
|
|
161
157
|
}, t), e;
|
|
162
158
|
}
|
|
163
|
-
function
|
|
159
|
+
function Qe(e) {
|
|
164
160
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
165
161
|
}
|
|
166
|
-
function
|
|
162
|
+
function Ze(...e) {
|
|
167
163
|
let t, n, r = {};
|
|
168
164
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
169
|
-
const { target: i =
|
|
165
|
+
const { target: i = ee, eventName: o = "keydown", passive: a = !1, dedupe: u = !1 } = r, f = Qe(t);
|
|
170
166
|
return fe(i, o, (l) => {
|
|
171
167
|
l.repeat && b(u) || f(l) && n(l);
|
|
172
168
|
}, a);
|
|
173
169
|
}
|
|
174
|
-
function
|
|
170
|
+
function et(e) {
|
|
175
171
|
return JSON.parse(JSON.stringify(e));
|
|
176
172
|
}
|
|
177
173
|
// @__NO_SIDE_EFFECTS__
|
|
178
|
-
function
|
|
174
|
+
function Nt(e, t, n, r = {}) {
|
|
179
175
|
var i, o;
|
|
180
176
|
const { clone: a = !1, passive: u = !1, eventName: f, deep: v = !1, defaultValue: l, shouldEmit: s } = r, c = I(), d = n || (c == null ? void 0 : c.emit) || (c == null || (i = c.$emit) === null || i === void 0 ? void 0 : i.bind(c)) || (c == null || (o = c.proxy) === null || o === void 0 || (o = o.$emit) === null || o === void 0 ? void 0 : o.bind(c == null ? void 0 : c.proxy));
|
|
181
177
|
let y = f;
|
|
182
178
|
t || (t = "modelValue"), y = y || `update:${t.toString()}`;
|
|
183
|
-
const h = (p) => a ? typeof a == "function" ? a(p) :
|
|
179
|
+
const h = (p) => a ? typeof a == "function" ? a(p) : et(p) : p, g = () => Ue(e[t]) ? h(e[t]) : l, m = (p) => {
|
|
184
180
|
s ? s(p) && d(y, p) : d(y, p);
|
|
185
181
|
};
|
|
186
182
|
if (u) {
|
|
@@ -200,6 +196,10 @@ function Ft(e, t, n, r = {}) {
|
|
|
200
196
|
}
|
|
201
197
|
});
|
|
202
198
|
}
|
|
199
|
+
function te(e) {
|
|
200
|
+
return e ? e.flatMap((t) => t.type === _e ? te(t.children) : [t]) : [];
|
|
201
|
+
}
|
|
202
|
+
const [tt] = /* @__PURE__ */ $e("ConfigProvider");
|
|
203
203
|
function H(e) {
|
|
204
204
|
if (e === null || typeof e != "object")
|
|
205
205
|
return !1;
|
|
@@ -209,8 +209,8 @@ function H(e) {
|
|
|
209
209
|
function J(e, t, n = ".", r) {
|
|
210
210
|
if (!H(t))
|
|
211
211
|
return J(e, {}, n, r);
|
|
212
|
-
const i =
|
|
213
|
-
for (const o
|
|
212
|
+
const i = { ...t };
|
|
213
|
+
for (const o of Object.keys(e)) {
|
|
214
214
|
if (o === "__proto__" || o === "constructor")
|
|
215
215
|
continue;
|
|
216
216
|
const a = e[o];
|
|
@@ -229,11 +229,11 @@ function nt(e) {
|
|
|
229
229
|
t.reduce((n, r) => J(n, r, "", e), {})
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const rt = nt(), ot = /* @__PURE__ */
|
|
232
|
+
const rt = nt(), ot = /* @__PURE__ */ Ve(() => {
|
|
233
233
|
const e = E(/* @__PURE__ */ new Map()), t = E(), n = w(() => {
|
|
234
234
|
for (const a of e.value.values()) if (a) return !0;
|
|
235
235
|
return !1;
|
|
236
|
-
}), r =
|
|
236
|
+
}), r = tt({ scrollBody: E(!0) });
|
|
237
237
|
let i = null;
|
|
238
238
|
const o = () => {
|
|
239
239
|
document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.documentElement.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", ne && (i == null || i()), t.value = void 0;
|
|
@@ -264,14 +264,14 @@ const rt = nt(), ot = /* @__PURE__ */ ze(() => {
|
|
|
264
264
|
flush: "sync"
|
|
265
265
|
}), e;
|
|
266
266
|
});
|
|
267
|
-
function
|
|
267
|
+
function Ft(e) {
|
|
268
268
|
const t = Math.random().toString(36).substring(2, 7), n = ot();
|
|
269
269
|
n.value.set(t, e ?? !1);
|
|
270
270
|
const r = w({
|
|
271
271
|
get: () => n.value.get(t) ?? !1,
|
|
272
272
|
set: (i) => n.value.set(t, i)
|
|
273
273
|
});
|
|
274
|
-
return
|
|
274
|
+
return Ge(() => {
|
|
275
275
|
n.value.delete(t);
|
|
276
276
|
}), r;
|
|
277
277
|
}
|
|
@@ -299,7 +299,7 @@ function pe() {
|
|
|
299
299
|
n.value !== r() && Me(t);
|
|
300
300
|
});
|
|
301
301
|
function r() {
|
|
302
|
-
return t.value && "$el" in t.value && ["#text", "#comment"].includes(t.value.$el.nodeName) ? t.value.$el.nextElementSibling :
|
|
302
|
+
return t.value && "$el" in t.value && ["#text", "#comment"].includes(t.value.$el.nodeName) ? t.value.$el.nextElementSibling : U(t);
|
|
303
303
|
}
|
|
304
304
|
const i = Object.assign({}, e.exposed), o = {};
|
|
305
305
|
for (const u in e.props) Object.defineProperty(o, u, {
|
|
@@ -322,7 +322,7 @@ function pe() {
|
|
|
322
322
|
enumerable: !0,
|
|
323
323
|
configurable: !0,
|
|
324
324
|
get: () => u instanceof Element ? u : u.$el
|
|
325
|
-
}), !(u instanceof Element) && !Object.
|
|
325
|
+
}), !(u instanceof Element) && !Object.hasOwn(u, "$el"))) {
|
|
326
326
|
const f = u.$.exposed, v = Object.assign({}, o);
|
|
327
327
|
for (const l in f) Object.defineProperty(v, l, {
|
|
328
328
|
enumerable: !0,
|
|
@@ -343,7 +343,7 @@ var st = function(e) {
|
|
|
343
343
|
return null;
|
|
344
344
|
var t = Array.isArray(e) ? e[0] : e;
|
|
345
345
|
return t.ownerDocument.body;
|
|
346
|
-
},
|
|
346
|
+
}, N = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), k = {}, V = 0, me = function(e) {
|
|
347
347
|
return e && (e.host || me(e.parentNode));
|
|
348
348
|
}, ut = function(e, t) {
|
|
349
349
|
return t.map(function(n) {
|
|
@@ -367,8 +367,8 @@ var st = function(e) {
|
|
|
367
367
|
l(c);
|
|
368
368
|
else
|
|
369
369
|
try {
|
|
370
|
-
var d = c.getAttribute(r), y = d !== null && d !== "false", h = (
|
|
371
|
-
|
|
370
|
+
var d = c.getAttribute(r), y = d !== null && d !== "false", h = (N.get(c) || 0) + 1, g = (o.get(c) || 0) + 1;
|
|
371
|
+
N.set(c, h), o.set(c, g), a.push(c), h === 1 && y && B.set(c, !0), g === 1 && c.setAttribute(n, "true"), y || c.setAttribute(r, "true");
|
|
372
372
|
} catch (m) {
|
|
373
373
|
console.error("aria-hidden: cannot operate on ", c, m);
|
|
374
374
|
}
|
|
@@ -376,9 +376,9 @@ var st = function(e) {
|
|
|
376
376
|
};
|
|
377
377
|
return l(t), u.clear(), V++, function() {
|
|
378
378
|
a.forEach(function(s) {
|
|
379
|
-
var c =
|
|
380
|
-
|
|
381
|
-
}), V--, V || (
|
|
379
|
+
var c = N.get(s) - 1, d = o.get(s) - 1;
|
|
380
|
+
N.set(s, c), o.set(s, d), c || (B.has(s) || s.removeAttribute(r), B.delete(s)), d || s.removeAttribute(n);
|
|
381
|
+
}), V--, V || (N = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), k = {});
|
|
382
382
|
};
|
|
383
383
|
}, lt = function(e, t, n) {
|
|
384
384
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -389,7 +389,7 @@ var st = function(e) {
|
|
|
389
389
|
};
|
|
390
390
|
function xt(e) {
|
|
391
391
|
let t;
|
|
392
|
-
_(() =>
|
|
392
|
+
_(() => U(e), (n) => {
|
|
393
393
|
let r = !1;
|
|
394
394
|
try {
|
|
395
395
|
r = !!(n != null && n.closest("[popover]:not(:popover-open)"));
|
|
@@ -416,7 +416,7 @@ function dt(e, t) {
|
|
|
416
416
|
var g;
|
|
417
417
|
const n = E({}), r = E("none"), i = E(e), o = e.value ? "mounted" : "unmounted";
|
|
418
418
|
let a;
|
|
419
|
-
const u = ((g = t.value) == null ? void 0 : g.ownerDocument.defaultView) ??
|
|
419
|
+
const u = ((g = t.value) == null ? void 0 : g.ownerDocument.defaultView) ?? ee, { state: f, dispatch: v } = ct(o, {
|
|
420
420
|
mounted: {
|
|
421
421
|
UNMOUNT: "unmounted",
|
|
422
422
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -469,7 +469,7 @@ function dt(e, t) {
|
|
|
469
469
|
function $(e) {
|
|
470
470
|
return e && getComputedStyle(e).animationName || "none";
|
|
471
471
|
}
|
|
472
|
-
var Bt = x({
|
|
472
|
+
var Bt = /* @__PURE__ */ x({
|
|
473
473
|
name: "Presence",
|
|
474
474
|
props: {
|
|
475
475
|
present: {
|
|
@@ -484,7 +484,7 @@ var Bt = x({
|
|
|
484
484
|
const { present: r, forceMount: i } = G(e), o = E(), { isPresent: a } = dt(r, o);
|
|
485
485
|
n({ present: a });
|
|
486
486
|
let u = t.default({ present: a.value });
|
|
487
|
-
u =
|
|
487
|
+
u = te(u || []);
|
|
488
488
|
const f = I();
|
|
489
489
|
if (u && (u == null ? void 0 : u.length) > 1) {
|
|
490
490
|
const l = (v = f == null ? void 0 : f.parent) != null && v.type.name ? `<${f.parent.type.name} />` : "component";
|
|
@@ -499,23 +499,23 @@ var Bt = x({
|
|
|
499
499
|
`));
|
|
500
500
|
}
|
|
501
501
|
return () => i.value || r.value || a.value ? j(t.default({ present: a.value })[0], { ref: (l) => {
|
|
502
|
-
const s =
|
|
502
|
+
const s = U(l);
|
|
503
503
|
return typeof (s == null ? void 0 : s.hasAttribute) > "u" || (s != null && s.hasAttribute("data-reka-popper-content-wrapper") ? o.value = s.firstElementChild : o.value = s), s;
|
|
504
504
|
} }) : null;
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
|
-
const ft = x({
|
|
507
|
+
const ft = /* @__PURE__ */ x({
|
|
508
508
|
name: "PrimitiveSlot",
|
|
509
509
|
inheritAttrs: !1,
|
|
510
510
|
setup(e, { attrs: t, slots: n }) {
|
|
511
511
|
return () => {
|
|
512
512
|
var f;
|
|
513
513
|
if (!n.default) return null;
|
|
514
|
-
const r =
|
|
514
|
+
const r = te(n.default()), i = r.findIndex((v) => v.type !== Ne);
|
|
515
515
|
if (i === -1) return r;
|
|
516
516
|
const o = r[i];
|
|
517
517
|
(f = o.props) == null || delete f.ref;
|
|
518
|
-
const a = o.props ?
|
|
518
|
+
const a = o.props ? Fe(t, o.props) : t, u = Ie({
|
|
519
519
|
...o,
|
|
520
520
|
props: {}
|
|
521
521
|
}, a);
|
|
@@ -526,7 +526,7 @@ const ft = x({
|
|
|
526
526
|
"area",
|
|
527
527
|
"img",
|
|
528
528
|
"input"
|
|
529
|
-
], ye = x({
|
|
529
|
+
], ye = /* @__PURE__ */ x({
|
|
530
530
|
name: "Primitive",
|
|
531
531
|
inheritAttrs: !1,
|
|
532
532
|
props: {
|
|
@@ -602,7 +602,7 @@ function ht(e, t, n = !0) {
|
|
|
602
602
|
}
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
|
-
const O =
|
|
605
|
+
const O = /* @__PURE__ */ R({
|
|
606
606
|
layersRoot: /* @__PURE__ */ new Set(),
|
|
607
607
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
608
608
|
originalBodyPointerEvents: void 0,
|
|
@@ -645,7 +645,7 @@ var gt = /* @__PURE__ */ x({
|
|
|
645
645
|
}, o), c = ht((d) => {
|
|
646
646
|
[...O.branches].some((h) => h == null ? void 0 : h.contains(d.target)) || (r("focusOutside", d), r("interactOutside", d), d.defaultPrevented || r("dismiss"));
|
|
647
647
|
}, o);
|
|
648
|
-
return
|
|
648
|
+
return Ze("Escape", (d) => {
|
|
649
649
|
f.value === u.value.size - 1 && (r("escapeKeyDown", d), d.defaultPrevented || r("dismiss"));
|
|
650
650
|
}), L((d) => {
|
|
651
651
|
o.value && (n.disableOutsidePointerEvents && (O.layersWithOutsidePointerEventsDisabled.size === 0 && (O.originalBodyPointerEvents = a.value.body.style.pointerEvents, a.value.body.style.pointerEvents = "none"), O.layersWithOutsidePointerEventsDisabled.add(o.value)), u.value.add(o.value), d(() => {
|
|
@@ -700,9 +700,9 @@ const z = "focusScope.autoFocusOnMount", Y = "focusScope.autoFocusOnUnmount", oe
|
|
|
700
700
|
cancelable: !0
|
|
701
701
|
};
|
|
702
702
|
function Ot(e, { select: t = !1 } = {}) {
|
|
703
|
-
const n =
|
|
703
|
+
const n = F();
|
|
704
704
|
for (const r of e)
|
|
705
|
-
if (C(r, { select: t }),
|
|
705
|
+
if (C(r, { select: t }), F() !== n) return !0;
|
|
706
706
|
}
|
|
707
707
|
function wt(e) {
|
|
708
708
|
const t = ge(e), n = ie(t, e), r = ie(t.reverse(), e);
|
|
@@ -733,7 +733,7 @@ function Pt(e) {
|
|
|
733
733
|
}
|
|
734
734
|
function C(e, { select: t = !1 } = {}) {
|
|
735
735
|
if (e && e.focus) {
|
|
736
|
-
const n =
|
|
736
|
+
const n = F();
|
|
737
737
|
e.focus({ preventScroll: !0 }), e !== n && Pt(e) && t && e.select();
|
|
738
738
|
}
|
|
739
739
|
}
|
|
@@ -761,7 +761,7 @@ var At = /* @__PURE__ */ x({
|
|
|
761
761
|
},
|
|
762
762
|
emits: ["mountAutoFocus", "unmountAutoFocus"],
|
|
763
763
|
setup(e, { emit: t }) {
|
|
764
|
-
const n = e, r = t, { currentRef: i, currentElement: o } = pe(), a = E(null), u = bt(), f =
|
|
764
|
+
const n = e, r = t, { currentRef: i, currentElement: o } = pe(), a = E(null), u = bt(), f = /* @__PURE__ */ R({
|
|
765
765
|
paused: !1,
|
|
766
766
|
pause() {
|
|
767
767
|
this.paused = !0;
|
|
@@ -785,7 +785,9 @@ var At = /* @__PURE__ */ x({
|
|
|
785
785
|
m !== null && (s.contains(m) || C(a.value, { select: !0 }));
|
|
786
786
|
}
|
|
787
787
|
function y(g) {
|
|
788
|
-
|
|
788
|
+
const m = a.value;
|
|
789
|
+
if (m === null || !g.some((P) => P.removedNodes.length > 0)) return;
|
|
790
|
+
s.contains(m) || C(s);
|
|
789
791
|
}
|
|
790
792
|
document.addEventListener("focusin", c), document.addEventListener("focusout", d);
|
|
791
793
|
const h = new MutationObserver(y);
|
|
@@ -799,10 +801,10 @@ var At = /* @__PURE__ */ x({
|
|
|
799
801
|
const s = o.value;
|
|
800
802
|
if (await M(), !s) return;
|
|
801
803
|
u.add(f);
|
|
802
|
-
const c =
|
|
804
|
+
const c = F();
|
|
803
805
|
if (!s.contains(c)) {
|
|
804
806
|
const y = new CustomEvent(z, oe);
|
|
805
|
-
s.addEventListener(z, (h) => r("mountAutoFocus", h)), s.dispatchEvent(y), y.defaultPrevented || (Ot(ge(s), { select: !0 }),
|
|
807
|
+
s.addEventListener(z, (h) => r("mountAutoFocus", h)), s.dispatchEvent(y), y.defaultPrevented || (Ot(ge(s), { select: !0 }), F() === c && C(s));
|
|
806
808
|
}
|
|
807
809
|
l(() => {
|
|
808
810
|
s.removeEventListener(z, (g) => r("mountAutoFocus", g));
|
|
@@ -816,7 +818,7 @@ var At = /* @__PURE__ */ x({
|
|
|
816
818
|
});
|
|
817
819
|
function v(l) {
|
|
818
820
|
if (!n.loop && !n.trapped || f.paused) return;
|
|
819
|
-
const s = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, c =
|
|
821
|
+
const s = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, c = F();
|
|
820
822
|
if (s && c) {
|
|
821
823
|
const d = l.currentTarget, [y, h] = wt(d);
|
|
822
824
|
y && h ? !l.shiftKey && c === h ? (l.preventDefault(), n.loop && C(y, { select: !0 })) : l.shiftKey && c === y && (l.preventDefault(), n.loop && C(h, { select: !0 })) : c === d && l.preventDefault();
|
|
@@ -856,7 +858,7 @@ var At = /* @__PURE__ */ x({
|
|
|
856
858
|
}
|
|
857
859
|
},
|
|
858
860
|
setup(e) {
|
|
859
|
-
const t = /* @__PURE__ */
|
|
861
|
+
const t = /* @__PURE__ */ Xe();
|
|
860
862
|
return (n, r) => A(t) || n.forceMount ? (X(), Q(Be, {
|
|
861
863
|
key: 0,
|
|
862
864
|
to: n.to,
|
|
@@ -875,19 +877,19 @@ export {
|
|
|
875
877
|
ye as P,
|
|
876
878
|
ft as S,
|
|
877
879
|
jt as T,
|
|
878
|
-
|
|
879
|
-
|
|
880
|
+
Nt as a,
|
|
881
|
+
Ft as b,
|
|
880
882
|
$e as c,
|
|
881
883
|
xt as d,
|
|
882
884
|
Bt as e,
|
|
883
885
|
It as f,
|
|
884
|
-
|
|
886
|
+
F as g,
|
|
885
887
|
D as h,
|
|
886
|
-
|
|
887
|
-
|
|
888
|
+
tt as i,
|
|
889
|
+
U as j,
|
|
888
890
|
Tt as k,
|
|
889
891
|
Mt as l,
|
|
890
|
-
|
|
892
|
+
Ve as m,
|
|
891
893
|
fe as n,
|
|
892
894
|
Lt as r,
|
|
893
895
|
pe as u
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as g, ref as E, toRefs as P, renderSlot as _, unref as t, onMounted as A, openBlock as v, createBlock as m, withCtx as f, createVNode as C, mergeProps as y, createCommentVNode as h, normalizeProps as $, guardReactiveProps as T, normalizeClass as R } from "vue";
|
|
2
|
-
import { c as k, a as N, u as D, g as I, F as S, D as L, f as q, d as K, e as F, b as V, P as U, T as W } from "../../Teleport-
|
|
3
|
-
import { u as w } from "../../useId-
|
|
4
|
-
import { g as z } from "../../utils-
|
|
2
|
+
import { c as k, a as N, u as D, g as I, F as S, D as L, f as q, d as K, e as F, b as V, P as U, T as W } from "../../Teleport-C3oxnewF.js";
|
|
3
|
+
import { u as w } from "../../useId-DNAhmykH.js";
|
|
4
|
+
import { g as z } from "../../utils-mTO3-yuL.js";
|
|
5
5
|
import { _ as G } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const [O, H] = k("DialogRoot");
|
|
6
|
+
const [O, H] = /* @__PURE__ */ k("DialogRoot");
|
|
7
7
|
var j = /* @__PURE__ */ g({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "DialogRoot",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as j, onMounted as x, openBlock as a, createElementBlock as c, createVNode as o, unref as e, withCtx as r, normalizeClass as i, normalizeStyle as v, createElementVNode as _, Fragment as b, renderList as E } from "vue";
|
|
2
2
|
import { useUIKit as y, IconEmoji as P } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
-
import { P as C, a as h, b as I } from "../../../PopoverPortal-
|
|
4
|
-
import { P as z } from "../../../PopoverTrigger-
|
|
3
|
+
import { P as C, a as h, b as I } from "../../../PopoverPortal-NF24jm90.js";
|
|
4
|
+
import { P as z } from "../../../PopoverTrigger-Q8GAhbK6.js";
|
|
5
5
|
import { emojiUrlMap as l, emojiBaseUrl as m } from "../../../constants/emoji.js";
|
|
6
6
|
import { transformTextWithEmojiKeyToName as M } from "../../../utils/emoji.js";
|
|
7
7
|
import { useMessageInputState as T } from "../MessageInputState.js";
|
|
@@ -4,8 +4,8 @@ import { BarrageType as T } from "../../types/barrage.js";
|
|
|
4
4
|
import { MessageContentType as m } from "./type.js";
|
|
5
5
|
import { convertInputContentToEditorNode as I } from "./utils.js";
|
|
6
6
|
import { useBarrageState as C } from "../../states/BarrageState/BarrageState.js";
|
|
7
|
-
import { useLiveListState as B } from "../../states/LiveListState/LiveListState.js";
|
|
8
7
|
import { transformTextWithEmojiNameToKey as y } from "../../utils/emoji.js";
|
|
8
|
+
import { useLiveListState as B } from "../../states/LiveListState/LiveListState.js";
|
|
9
9
|
const { sendTextMessage: h } = C(), { loginUserInfo: p } = S(), { currentLive: k } = B(), o = v(null), f = v(""), g = /* @__PURE__ */ new Map(), E = (e, n) => {
|
|
10
10
|
g.set(e, n);
|
|
11
11
|
}, M = (e) => {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { I as u } from "../../../index-
|
|
2
|
-
import { S as g, P as
|
|
3
|
-
import { E as
|
|
1
|
+
import { I as u } from "../../../index-ljqIpw2N.js";
|
|
2
|
+
import { S as g, P as p } from "../../../index-I6gZUWuE.js";
|
|
3
|
+
import { E as x } from "../../../index-Dw7nlTSW.js";
|
|
4
4
|
import { isMobile as y } from "../../../utils/environment.js";
|
|
5
5
|
import { CharacterCount as M } from "./CharacterCountExtension.js";
|
|
6
|
-
import { E as T } from "../../../index-
|
|
6
|
+
import { E as T } from "../../../index-DSsh0Axu.js";
|
|
7
7
|
import { MessageContentType as a } from "../../../states/MessageInputState/type.js";
|
|
8
|
+
import "../../../states/MessageInputState/MessageInputState.js";
|
|
8
9
|
function b() {
|
|
9
10
|
return u.extend({
|
|
10
11
|
name: a.EMOJI,
|
|
@@ -63,7 +64,7 @@ function I(t) {
|
|
|
63
64
|
}
|
|
64
65
|
function c(t) {
|
|
65
66
|
return t != null && t.content ? t.content.flatMap((e) => {
|
|
66
|
-
var r,
|
|
67
|
+
var r, i, s, n;
|
|
67
68
|
switch (e.type) {
|
|
68
69
|
case "text":
|
|
69
70
|
return e.text ? [
|
|
@@ -84,8 +85,8 @@ function c(t) {
|
|
|
84
85
|
{
|
|
85
86
|
type: a.EMOJI,
|
|
86
87
|
content: {
|
|
87
|
-
url: (
|
|
88
|
-
key: (
|
|
88
|
+
url: (i = e.attrs) == null ? void 0 : i.src,
|
|
89
|
+
key: (s = e.attrs) == null ? void 0 : s.alt,
|
|
89
90
|
text: (n = e.attrs) == null ? void 0 : n.title
|
|
90
91
|
}
|
|
91
92
|
}
|
|
@@ -103,12 +104,12 @@ function c(t) {
|
|
|
103
104
|
}
|
|
104
105
|
}) : [];
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
+
function J({
|
|
107
108
|
element: t,
|
|
108
109
|
placeholder: e = "",
|
|
109
110
|
autoFocus: r = !1,
|
|
110
|
-
disabled:
|
|
111
|
-
maxLength:
|
|
111
|
+
disabled: i = !1,
|
|
112
|
+
maxLength: s,
|
|
112
113
|
onUpdate: n,
|
|
113
114
|
onEnter: m,
|
|
114
115
|
onFocus: f,
|
|
@@ -117,16 +118,16 @@ function j({
|
|
|
117
118
|
const l = {
|
|
118
119
|
element: t,
|
|
119
120
|
autofocus: r,
|
|
120
|
-
editable: !
|
|
121
|
+
editable: !i,
|
|
121
122
|
extensions: ((o) => [
|
|
122
123
|
g,
|
|
123
124
|
M.configure({
|
|
124
|
-
limit:
|
|
125
|
+
limit: s
|
|
125
126
|
}),
|
|
126
127
|
I(o ? { onEnter: o } : void 0),
|
|
127
128
|
b(),
|
|
128
129
|
C(),
|
|
129
|
-
|
|
130
|
+
p.configure({
|
|
130
131
|
emptyEditorClass: "is-editor-empty",
|
|
131
132
|
placeholder: e
|
|
132
133
|
})
|
|
@@ -138,8 +139,8 @@ function j({
|
|
|
138
139
|
onFocus: f,
|
|
139
140
|
onBlur: E
|
|
140
141
|
};
|
|
141
|
-
return new
|
|
142
|
+
return new x(l);
|
|
142
143
|
}
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
+
J as createEditor
|
|
145
146
|
};
|