tuikit-atomicx-vue3 4.5.1 → 4.5.3
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/{MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js → MessageInput.vue_vue_type_script_setup_true_lang-3RVYOdkv.js} +38 -38
- package/dist/{PopoverPortal-DghpKKm8.js → PopoverPortal-DV6zFXcf.js} +3 -3
- package/dist/{PopoverTrigger-BajjNkGO.js → PopoverTrigger-DIjW4PKa.js} +4 -4
- package/dist/{PopperContent-SLoFuK7k.js → PopperContent-D__dbwpA.js} +1 -1
- package/dist/{Teleport-DFrneqLM.js → Teleport-98QrIYDI.js} +278 -268
- package/dist/baseComp/Modal/Modal.js +3 -3
- package/dist/components/AudioSettingPanel/index.js +14 -14
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +2 -2
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +4 -4
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +53 -50
- package/dist/components/ConversationList/ConversationActions/ConversationActions.vue.d.ts +2 -0
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +25 -25
- package/dist/components/ConversationList/ConversationList.vue.d.ts +16 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +16 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +18 -18
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +13 -13
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +11 -11
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +84 -75
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +4 -0
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +14 -14
- package/dist/components/ConversationList/i18n/en-US.d.ts +1 -0
- package/dist/components/ConversationList/i18n/en-US.js +2 -1
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +1 -0
- package/dist/components/ConversationList/i18n/zh-CN.js +2 -1
- package/dist/components/ConversationList/index.d.ts +48 -0
- package/dist/components/LiveScenePanel/index.js +9 -10
- package/dist/components/MessageInput/AttachmentPicker/index.js +2 -2
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +2 -2
- package/dist/components/MessageInput/MessageInput.js +1 -1
- 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 +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +1 -1
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +37 -28
- package/dist/components/MessageList/MessageList.js +77 -67
- package/dist/components/ScheduleRoomPanel/RoomDetail.js +22 -22
- package/dist/components/ScheduleRoomPanel/RoomEdit.js +1 -1
- package/dist/components/ScheduleRoomPanel/RoomShare.js +4 -4
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +1 -1
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.js +1 -1
- package/dist/components/UIKitModal/chatErrorModal/chatErrorModal.d.ts +72 -0
- package/dist/components/UIKitModal/chatErrorModal/chatErrorModal.js +95 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/en-US/index.d.ts +40 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/en-US/index.js +51 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/index.d.ts +4 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/index.js +6 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/zh-CN/index.d.ts +40 -0
- package/dist/components/UIKitModal/chatErrorModal/i18n/zh-CN/index.js +51 -0
- package/dist/components/UIKitModal/chatErrorModal/index.d.ts +3 -0
- package/dist/components/UIKitModal/chatErrorModal/index.js +11 -0
- package/dist/components/VideoSettingPanel/index.js +1 -1
- package/dist/hooks/useReadReceipt/useReadReceipt.js +44 -41
- package/dist/index-CTthrJb2.js +1461 -0
- package/dist/{index-CzCDLp99.js → index-DXC5bPY4.js} +32 -32
- package/dist/{index-C8Jw_xE4.js → index-DuAffztD.js} +1731 -1648
- package/dist/{index-CiYL_XsE.js → index-hHVD-MG2.js} +1 -1
- package/dist/index.js +59 -58
- package/dist/states/GroupSettingState/GroupSettingState.js +109 -102
- package/dist/states/LoginState.js +43 -43
- package/dist/states/MessageInputState/MessageInputState.js +75 -78
- package/dist/states/MessageListState/MessageListState.js +26 -23
- package/dist/states/RoomParticipantState/index.js +83 -24
- package/dist/states/RoomParticipantState/participantEventManager.d.ts +2 -2
- package/dist/states/RoomParticipantState/participantEventManager.js +217 -205
- package/dist/states/RoomParticipantState/participantManager.d.ts +4 -0
- package/dist/states/RoomParticipantState/participantManager.js +159 -127
- package/dist/states/RoomState/callManager.d.ts +3 -3
- package/dist/states/RoomState/callManager.js +20 -20
- package/dist/states/RoomState/common.d.ts +3 -2
- package/dist/states/RoomState/common.js +34 -24
- package/dist/states/RoomState/roomManager.d.ts +1 -1
- package/dist/states/RoomState/roomManager.js +37 -34
- package/dist/states/RoomState/scheduleManager.js +21 -27
- package/dist/styles/index.css +1 -1
- package/dist/subEntry/chat/chat.d.ts +48 -0
- package/dist/subEntry/live/index.js +46 -45
- package/dist/subEntry/room/index.js +39 -38
- package/dist/types/beauty.d.ts +20 -0
- package/dist/types/index.js +37 -36
- package/dist/types/participant.d.ts +2 -0
- package/dist/types/room.d.ts +45 -1
- package/dist/types/room.js +4 -3
- package/dist/{useId-D5WE76CM.js → useId-B1VwPJLm.js} +1 -1
- package/dist/utils/call.js +77 -71
- package/dist/{utils-CttDpxqz.js → utils-BU8IkP_V.js} +1 -1
- package/package.json +5 -6
- package/src/components/AudioSettingPanel/index.vue +4 -5
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +7 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +5 -1
- package/src/components/ConversationList/ConversationList.vue +0 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +2 -2
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +15 -0
- package/src/components/ConversationList/i18n/en-US.ts +1 -0
- package/src/components/ConversationList/i18n/zh-CN.ts +1 -0
- package/src/components/LiveScenePanel/index.vue +0 -1
- package/src/components/MessageInput/MessageInput.module.scss +1 -0
- package/src/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +12 -3
- package/src/components/MessageList/MessageList.vue +14 -0
- package/src/components/ScheduleRoomPanel/RoomDetail.vue +1 -0
- package/src/components/ScheduleRoomPanel/RoomEdit.vue +2 -1
- package/src/components/ScheduleRoomPanel/RoomShare.vue +1 -0
- package/src/components/ScheduleRoomPanel/ScheduleRoomPanel.vue +1 -0
- package/src/components/ScheduleRoomPanel/ScheduledRoomList.vue +1 -0
- package/src/components/UIKitModal/chatErrorModal/chatErrorModal.ts +205 -0
- package/src/components/UIKitModal/chatErrorModal/i18n/en-US/index.ts +56 -0
- package/src/components/UIKitModal/chatErrorModal/i18n/index.ts +4 -0
- package/src/components/UIKitModal/chatErrorModal/i18n/zh-CN/index.ts +56 -0
- package/src/components/UIKitModal/chatErrorModal/index.ts +16 -0
- package/src/components/VideoSettingPanel/index.vue +1 -0
- package/src/hooks/useReadReceipt/useReadReceipt.ts +5 -4
- package/src/types/beauty.ts +20 -0
- package/src/types/participant.ts +3 -0
- package/src/types/room.ts +49 -1
- package/src/utils/call.ts +8 -0
- package/dist/index-BvFYOUyz.js +0 -2936
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, computed as E, createElementBlock as f, openBlock as l, normalizeClass as s, unref as t, renderSlot as i, createElementVNode as m, Fragment as F, renderList as V, createBlock as d, resolveDynamicComponent as A, mergeProps as M, createVNode as T, withCtx as g, createCommentVNode as L } from "vue";
|
|
2
2
|
import { AttachmentPicker as k } from "./components/MessageInput/AttachmentPicker/index.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import w from "./components/MessageInput/AttachmentPicker/FilePicker.js";
|
|
4
|
+
import x from "./components/MessageInput/AttachmentPicker/ImagePicker.js";
|
|
5
|
+
import j from "./components/MessageInput/AttachmentPicker/VideoPicker.js";
|
|
6
|
+
import N from "./components/MessageInput/AudioCallPicker/AudioCallPicker.js";
|
|
7
|
+
import O from "./components/MessageInput/EmojiPicker/EmojiPicker.js";
|
|
8
8
|
import { QuotedMessagePreview as D } from "./components/MessageInput/QuotedMessagePreview/index.js";
|
|
9
9
|
import { SendButton as K } from "./components/MessageInput/SendButton/index.js";
|
|
10
10
|
import { TextEditor as Q } from "./components/MessageInput/TextEditor/index.js";
|
|
11
11
|
import R from "./components/MessageInput/VideoCallPicker/VideoCallPicker.js";
|
|
12
12
|
import { useMessageInputState as U } from "./states/MessageInputState/MessageInputState.js";
|
|
13
13
|
const a = {
|
|
14
|
-
"message-input": "_message-
|
|
15
|
-
"message-input__toolbar": "_message-
|
|
16
|
-
"message-input__wrapper": "_message-
|
|
17
|
-
"message-input__leftInline": "_message-
|
|
18
|
-
"message-input__rightInline": "_message-
|
|
19
|
-
"message-input__actions": "_message-
|
|
20
|
-
"message-input__footerToolbar": "_message-
|
|
21
|
-
}, se = /* @__PURE__ */
|
|
14
|
+
"message-input": "_message-input_2z5ho_1",
|
|
15
|
+
"message-input__toolbar": "_message-input__toolbar_2z5ho_12",
|
|
16
|
+
"message-input__wrapper": "_message-input__wrapper_2z5ho_20",
|
|
17
|
+
"message-input__leftInline": "_message-input__leftInline_2z5ho_25",
|
|
18
|
+
"message-input__rightInline": "_message-input__rightInline_2z5ho_25",
|
|
19
|
+
"message-input__actions": "_message-input__actions_2z5ho_29",
|
|
20
|
+
"message-input__footerToolbar": "_message-input__footerToolbar_2z5ho_35"
|
|
21
|
+
}, se = /* @__PURE__ */ B({
|
|
22
22
|
__name: "MessageInput",
|
|
23
23
|
props: {
|
|
24
24
|
autoFocus: { type: Boolean, default: !0 },
|
|
@@ -32,51 +32,51 @@ const a = {
|
|
|
32
32
|
},
|
|
33
33
|
setup(n) {
|
|
34
34
|
const u = [
|
|
35
|
-
{ key: "EmojiPicker", component:
|
|
35
|
+
{ key: "EmojiPicker", component: O },
|
|
36
36
|
{ key: "AttachmentPicker", component: k },
|
|
37
|
-
{ key: "FilePicker", component:
|
|
38
|
-
{ key: "ImagePicker", component:
|
|
39
|
-
{ key: "VideoPicker", component:
|
|
40
|
-
{ key: "AudioCallPicker", component:
|
|
37
|
+
{ key: "FilePicker", component: w },
|
|
38
|
+
{ key: "ImagePicker", component: x },
|
|
39
|
+
{ key: "VideoPicker", component: j },
|
|
40
|
+
{ key: "AudioCallPicker", component: N },
|
|
41
41
|
{ key: "VideoCallPicker", component: R }
|
|
42
|
-
], c = n, { inputRawValue:
|
|
43
|
-
r.map((
|
|
42
|
+
], c = n, { inputRawValue: h, setContent: P, sendMessage: b } = U(), C = (e, r) => Object.fromEntries(
|
|
43
|
+
r.map((o) => [o, e[o]]).filter(([, o]) => o !== void 0)
|
|
44
44
|
), y = (e) => {
|
|
45
|
-
const { component: r = () => null } = u.find(({ key:
|
|
45
|
+
const { component: r = () => null } = u.find(({ key: o }) => o === e) ?? {};
|
|
46
46
|
return { Component: r, props: { disabled: c.disabled } };
|
|
47
47
|
}, v = (e) => {
|
|
48
48
|
var _;
|
|
49
|
-
const { key: r, component:
|
|
49
|
+
const { key: r, component: o, ...p } = e, S = ((_ = u.find(({ key: z }) => z === r)) == null ? void 0 : _.component) ?? (() => null);
|
|
50
50
|
return {
|
|
51
|
-
Component:
|
|
52
|
-
props:
|
|
51
|
+
Component: o ?? S,
|
|
52
|
+
props: C(p, ["label", "className", "style", "iconSize"])
|
|
53
53
|
};
|
|
54
|
-
}, I =
|
|
54
|
+
}, I = E(
|
|
55
55
|
() => c.actions.map((e) => typeof e == "string" ? y(e) : v(e)).filter(({ Component: e }) => e !== null)
|
|
56
56
|
), $ = () => {
|
|
57
|
-
|
|
57
|
+
h.value && (b(), P(""));
|
|
58
58
|
};
|
|
59
59
|
return (e, r) => (l(), f("div", {
|
|
60
|
-
class: s([
|
|
60
|
+
class: s([t(a)["message-input"]])
|
|
61
61
|
}, [
|
|
62
62
|
i(e.$slots, "headerToolbar", {}, () => [
|
|
63
63
|
m("div", {
|
|
64
|
-
class: s(
|
|
64
|
+
class: s(t(a)["message-input__toolbar"])
|
|
65
65
|
}, [
|
|
66
|
-
(l(!0), f(
|
|
66
|
+
(l(!0), f(F, null, V(I.value, (o, p) => (l(), d(A(o.Component), M({ key: p }, { ref_for: !0 }, { ...o.props, ...o.Component === t(k) ? { attachmentPickerMode: n.attachmentPickerMode } : {} }), null, 16))), 128))
|
|
67
67
|
], 2)
|
|
68
68
|
]),
|
|
69
69
|
m("div", {
|
|
70
|
-
class: s(
|
|
70
|
+
class: s(t(a)["message-input__wrapper"])
|
|
71
71
|
}, [
|
|
72
|
-
|
|
72
|
+
T(t(D)),
|
|
73
73
|
m("div", {
|
|
74
|
-
class: s(
|
|
74
|
+
class: s(t(a)["message-input__leftInline"])
|
|
75
75
|
}, [
|
|
76
76
|
i(e.$slots, "leftInline")
|
|
77
77
|
], 2),
|
|
78
78
|
i(e.$slots, "textEditor", {}, () => [
|
|
79
|
-
(l(), d(
|
|
79
|
+
(l(), d(t(Q), {
|
|
80
80
|
key: n.disabled ? "disabled-editor" : "enabled-editor",
|
|
81
81
|
autoFocus: n.autoFocus,
|
|
82
82
|
disabled: n.disabled,
|
|
@@ -93,18 +93,18 @@ const a = {
|
|
|
93
93
|
}, 8, ["autoFocus", "disabled", "placeholder", "maxLength"]))
|
|
94
94
|
]),
|
|
95
95
|
m("div", {
|
|
96
|
-
class: s(
|
|
96
|
+
class: s(t(a)["message-input__rightInline"])
|
|
97
97
|
}, [
|
|
98
98
|
i(e.$slots, "rightInline")
|
|
99
99
|
], 2)
|
|
100
100
|
], 2),
|
|
101
101
|
i(e.$slots, "footerToolbar", {}, () => [
|
|
102
102
|
m("div", {
|
|
103
|
-
class: s(
|
|
103
|
+
class: s(t(a)["message-input__footerToolbar"])
|
|
104
104
|
}, [
|
|
105
|
-
n.hideSendButton ?
|
|
105
|
+
n.hideSendButton ? L("", !0) : (l(), d(t(K), {
|
|
106
106
|
key: 0,
|
|
107
|
-
class: s(
|
|
107
|
+
class: s(t(a)["message-input__send-button"]),
|
|
108
108
|
disabled: c.disabled,
|
|
109
109
|
onClick: $
|
|
110
110
|
}, null, 8, ["class", "disabled"]))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as D, c as k, r as N, u as B, F as E, D as A, 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 { a as D, c as k, r as N, u as B, F as E, D as A, b as R, d as I, e as M, T as $ } from "./Teleport-98QrIYDI.js";
|
|
2
|
+
import { a as K, u as L, b as j, c as z, d as w } from "./PopperContent-D__dbwpA.js";
|
|
3
|
+
import { u as T } from "./useId-B1VwPJLm.js";
|
|
4
4
|
import { defineComponent as m, toRefs as U, ref as P, createBlock as c, openBlock as v, unref as e, withCtx as f, renderSlot as q, createVNode as C, mergeProps as _, withModifiers as F, normalizeProps as x, guardReactiveProps as W } from "vue";
|
|
5
5
|
const [b, V] = k("PopoverRoot");
|
|
6
6
|
var G = /* @__PURE__ */ m({
|
|
@@ -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-98QrIYDI.js";
|
|
2
|
+
import { u as d } from "./useId-B1VwPJLm.js";
|
|
3
|
+
import { P as u } from "./PopperContent-D__dbwpA.js";
|
|
4
|
+
import { i as c } from "./PopoverPortal-DV6zFXcf.js";
|
|
5
5
|
import { defineComponent as g, onMounted as f, createBlock as m, openBlock 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 je, getCurrentInstance as ct, toRef as ft, computed as O, camelize as ut, ref as V, onMounted as dt, defineComponent as Ce, renderSlot as Oe, watchPostEffect as Ie, createBlock as pt, openBlock as Xe, unref as M, withCtx as Ye, shallowRef as mt, watch as he, getCurrentScope as ht, onScopeDispose as gt, shallowReadonly as Q, mergeDefaults as wt, createElementBlock as yt, normalizeStyle as vt, createVNode as xt, mergeProps as bt } from "vue";
|
|
2
|
-
import { h as At, f as Ct, j as Ot, c as Ue, u as Ge, P as Ke, k as Pt } from "./Teleport-
|
|
2
|
+
import { h as At, f as Ct, j as Ot, c as Ue, u as Ge, P as Ke, k as Pt } from "./Teleport-98QrIYDI.js";
|
|
3
3
|
let ge = 0;
|
|
4
4
|
function Vn() {
|
|
5
5
|
je((e) => {
|