tuikit-atomicx-vue3 4.5.0 → 4.5.1
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/{PopoverTrigger-L8abAry7.js → PopoverPortal-DghpKKm8.js} +91 -136
- package/dist/PopoverTrigger-BajjNkGO.js +54 -0
- package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-SLoFuK7k.js} +6 -6
- package/dist/{Teleport-CSEuZbpM.js → Teleport-DFrneqLM.js} +4 -4
- package/dist/baseComp/Modal/Modal.js +3 -3
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +10 -9
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +16 -15
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +62 -40
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +29 -27
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +27 -23
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +67 -65
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +32 -30
- package/dist/components/ConversationList/ConversationPreview/utils.d.ts +2 -2
- package/dist/components/ConversationList/ConversationPreview/utils.js +81 -35
- package/dist/components/ConversationList/i18n/en-US.d.ts +10 -1
- package/dist/components/ConversationList/i18n/en-US.js +11 -2
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +10 -1
- package/dist/components/ConversationList/i18n/zh-CN.js +11 -2
- package/dist/components/LiveScenePanel/index.js +10 -9
- package/dist/components/MessageInput/AttachmentPicker/index.js +10 -9
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +17 -16
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +35 -35
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +13 -12
- package/dist/components/MessageInput/TextEditor/EditorCore.js +54 -89
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +229 -0
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue.d.ts +15 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.d.ts +1 -0
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +22 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.d.ts +3 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +15 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +2 -2
- package/dist/components/MessageInput/TextEditor/extensions/index.d.ts +8 -0
- package/dist/components/MessageInput/TextEditor/extensions/index.js +12 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.d.ts +5 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +330 -0
- package/dist/components/MessageInput/TextEditor/index.js +62 -62
- package/dist/components/MessageInput/i18n/en-US.d.ts +3 -0
- package/dist/components/MessageInput/i18n/en-US.js +4 -1
- package/dist/components/MessageInput/i18n/index.d.ts +6 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +3 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +4 -1
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +119 -89
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.js +142 -0
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.vue.d.ts +20 -0
- package/dist/components/MessageList/Message/Message.vue.d.ts +8 -0
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +69 -58
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +8 -0
- package/dist/components/MessageList/Message/index.js +8 -4
- package/dist/components/MessageList/MessageList.js +98 -90
- package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
- package/dist/components/MessageList/index.d.ts +21 -3
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +6 -6
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +1 -1
- package/dist/index-BvFYOUyz.js +2936 -0
- package/dist/{index-Do-2CngU.js → index-C8Jw_xE4.js} +1621 -1731
- package/dist/{index-7vNB_Vx8.js → index-CiYL_XsE.js} +1 -1
- package/dist/index-CzCDLp99.js +2174 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +103 -103
- package/dist/states/MessageActionState/MessageActionState.js +83 -223
- package/dist/states/MessageInputState/MessageInputState.js +115 -83
- package/dist/states/MessageInputState/type.d.ts +36 -10
- package/dist/states/MessageInputState/utils.d.ts +1 -5
- package/dist/states/MessageListState/MessageListState.d.ts +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/{chat/index.d.ts → subEntry/chat/chat.d.ts} +2112 -2087
- package/dist/subEntry/chat/chat.js +89 -0
- package/dist/subEntry/chat/index.d.ts +11 -0
- package/dist/subEntry/chat/index.js +81 -0
- package/dist/{chat → subEntry/chat}/server.js +4 -4
- package/dist/{useId-CtirfF0W.js → useId-D5WE76CM.js} +1 -1
- package/dist/{utils-DaB7eSu5.js → utils-CttDpxqz.js} +1 -1
- package/package.json +8 -6
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +8 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +32 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +3 -2
- package/src/components/ConversationList/ConversationPreview/utils.ts +98 -28
- package/src/components/ConversationList/i18n/en-US.ts +10 -1
- package/src/components/ConversationList/i18n/zh-CN.ts +10 -1
- package/src/components/LiveScenePanel/index.vue +1 -0
- package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +19 -22
- package/src/components/MessageInput/TextEditor/Editor.scss +25 -0
- package/src/components/MessageInput/TextEditor/EditorCore.ts +79 -99
- package/src/components/MessageInput/TextEditor/TextEditor.vue +64 -68
- package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +449 -0
- package/src/components/MessageInput/TextEditor/extensions/emojiExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/enterKeyExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/index.ts +8 -0
- package/src/components/MessageInput/TextEditor/extensions/mentionExtension.ts +87 -0
- package/src/components/MessageInput/i18n/en-US.ts +3 -0
- package/src/components/MessageInput/i18n/zh-CN.ts +3 -0
- package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +49 -0
- package/src/components/MessageList/Message/ImageMessage/ImagePreview.vue +344 -0
- package/src/components/MessageList/Message/Message.vue +6 -0
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -1
- package/src/components/MessageList/MessageList.vue +36 -14
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +30 -31
- package/src/index.ts +1 -1
- package/src/{chat/index.ts → subEntry/chat/chat.ts} +25 -18
- package/src/subEntry/chat/index.ts +13 -0
- package/src/{chat → subEntry/chat}/server.ts +3 -3
- package/dist/chat/index.js +0 -59
- package/dist/index-ZILx4LYk.js +0 -4826
- package/dist/states/SearchState.d.ts +0 -314
- /package/dist/{chat → subEntry/chat}/server.d.ts +0 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './styles/index.css';
|
|
2
|
-
import { AttachmentPicker as o, AudioCallPicker as r, ChatSetting as a, ContactInfo as i, ContactList as s, ContactListItem as n, ConversationActions as p, ConversationList as m, ConversationListContent as u, ConversationListHeader as T, ConversationPreview as f, ConversationPreviewUI as c, ConversationSearch as S, EmojiPicker as l, FilePicker as x, ImagePicker as v, Message as R, MessageAdvanced as d, MessageInput as C, MessageList as L, Search as U, SearchAdvanced as I, SearchBar as y, SearchResultItem as A, SearchResults as M, UserAdvanced as P, VideoCallPicker as g, VideoPicker as E, View as V, useC2CSettingState as B, useContactListState as k, useConversationListState as D, useGroupSettingState as _, useMessageActionState as G, useMessageActions as O, useMessageInputState as h, useMessageListState as F, useSearchState as w } from "./chat/
|
|
2
|
+
import { AttachmentPicker as o, AudioCallPicker as r, ChatSetting as a, ContactInfo as i, ContactList as s, ContactListItem as n, ConversationActions as p, ConversationList as m, ConversationListContent as u, ConversationListHeader as T, ConversationPreview as f, ConversationPreviewUI as c, ConversationSearch as S, EmojiPicker as l, FilePicker as x, ImagePicker as v, Message as R, MessageAdvanced as d, MessageInput as C, MessageList as L, Search as U, SearchAdvanced as I, SearchBar as y, SearchResultItem as A, SearchResults as M, UserAdvanced as P, VideoCallPicker as g, VideoPicker as E, View as V, useC2CSettingState as B, useContactListState as k, useConversationListState as D, useGroupSettingState as _, useMessageActionState as G, useMessageActions as O, useMessageInputState as h, useMessageListState as F, useSearchState as w } from "./subEntry/chat/chat.js";
|
|
3
3
|
import { addI18n as Q } from "./i18n/index.js";
|
|
4
4
|
import { useLoginState as N } from "./states/LoginState.js";
|
|
5
5
|
import { useUIKitModalState as q } from "./states/UIKitModalState/UIKitModalState.js";
|
|
@@ -12,46 +12,46 @@ import { useDeviceState as pe } from "./states/DeviceState/DeviceState.js";
|
|
|
12
12
|
import { useRoomEngine as ue } from "./hooks/useRoomEngine.js";
|
|
13
13
|
import { AudioSettingPanel as fe } from "./components/AudioSettingPanel/index.js";
|
|
14
14
|
import { VideoSettingPanel as Se } from "./components/VideoSettingPanel/index.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
15
|
+
import { QuoteTypeEnum as xe, TranslationStatusEnum as ve, VoiceToTextStatusEnum as Re } from "./types/message.js";
|
|
16
|
+
import { VariantType as Ce, defaultTypeLabels as Le } from "./types/search.js";
|
|
17
|
+
import { ConversationType as Ie, MessageType as ye, SearchType as Ae } from "./types/engine.js";
|
|
18
|
+
import { CreateConvTypes as Pe, GroupLabelTypes as ge, GroupType as Ee, PageStateTypes as Ve, PlaceHolderTypes as Be } from "./types/conversation.js";
|
|
19
|
+
import { ContactItemType as De, GroupApplicationType as _e } from "./types/contact.js";
|
|
20
|
+
import { CallMediaType as Oe } from "./types/call.js";
|
|
21
|
+
import { GroupInviteType as Fe, GroupMemberRole as we, GroupPermission as He } from "./states/GroupSettingState/types.js";
|
|
22
|
+
import { useBarrageState as Ke } from "./states/BarrageState/BarrageState.js";
|
|
23
|
+
import { useBattleState as be } from "./states/BattleState/BattleState.js";
|
|
24
|
+
import { useCoGuestState as je } from "./states/CoGuestState.js";
|
|
25
|
+
import { useCoHostState as ze } from "./states/CoHostState/CoHostState.js";
|
|
26
|
+
import { useLiveAudienceState as Xe } from "./states/LiveAudienceState.js";
|
|
27
|
+
import { useLiveListState as Ze } from "./states/LiveListState/LiveListState.js";
|
|
28
|
+
import { useLiveMonitorState as et } from "./states/LiveMonitorState/index.js";
|
|
29
|
+
import { useLiveSeatState as ot } from "./states/LiveSeatState/index.js";
|
|
30
|
+
import { useVideoMixerState as at } from "./states/VideoMixerState/VideoMixerState.js";
|
|
31
|
+
import { BarrageInput as st } from "./components/BarrageInput/index.js";
|
|
32
|
+
import { BarrageList as pt } from "./components/BarrageList/index.js";
|
|
33
|
+
import { CameraButton as ut } from "./components/CameraButton/index.js";
|
|
34
|
+
import { CoGuestPanel as ft } from "./components/CoGuestPanel/index.js";
|
|
35
|
+
import { CoHostPanel as St } from "./components/CoHostPanel/index.js";
|
|
36
|
+
import { LiveAudienceList as xt } from "./components/LiveAudienceList/index.js";
|
|
37
|
+
import { LiveList as Rt } from "./components/LiveList/index.js";
|
|
38
|
+
import { default as Ct } from "./components/LiveMonitorView/LiveMonitorView.js";
|
|
39
|
+
import { LiveScenePanel as Ut } from "./components/LiveScenePanel/index.js";
|
|
40
|
+
import { LiveCoreView as yt, LiveView as At } from "./components/LiveView/index.js";
|
|
41
|
+
import { MicButton as Pt } from "./components/MicButton/index.js";
|
|
42
|
+
import { StreamMixer as Et } from "./components/StreamMixer/index.js";
|
|
43
|
+
import { useASRState as Bt } from "./states/ASRState/ASRState.js";
|
|
44
|
+
import { useFreeBeautyState as Dt } from "./states/FreeBeautyState/FreeBeautyState.js";
|
|
45
|
+
import { useRoomParticipantState as Gt } from "./states/RoomParticipantState/index.js";
|
|
46
|
+
import { useRoomState as ht } from "./states/RoomState/index.js";
|
|
47
|
+
import { useVirtualBackgroundState as wt } from "./states/VirtualBackgroundState/VirtualBackgroundState.js";
|
|
48
|
+
import { RoomParticipantList as Qt } from "./components/RoomParticipantList/index.js";
|
|
49
|
+
import { RoomParticipantView as Nt } from "./components/RoomParticipantView/index.js";
|
|
50
|
+
import { RoomView as qt } from "./components/RoomView/index.js";
|
|
51
|
+
import { ScheduleRoomPanel as Wt, ScheduledRoomList as zt } from "./components/ScheduleRoomPanel/index.js";
|
|
52
|
+
import { VirtualBackgroundPanel as Xt } from "./components/VirtualBackgroundPanel/index.js";
|
|
53
|
+
import { FreeBeautyPanel as Zt } from "./components/FreeBeautyPanel/index.js";
|
|
54
|
+
import { AudioRoute as eo, DeviceError as to, DevicePermission as oo, DeviceStatus as ro, DeviceType as ao, MediaSettingDisplayMode as io, MirrorType as so, NetworkQuality as no, VideoQuality as po } from "./types/device.js";
|
|
55
55
|
import { TRTCRole as uo, TUIAudioQuality as To, TUIAudioRoute as fo, TUICaptureSourceType as co, TUIChangeReason as So, TUIConferenceCancelReason as lo, TUIConferenceInvitationManagerEvents as xo, TUIConferenceListManagerEvents as vo, TUIConferenceStatus as Ro, TUIErrorCode as Co, TUIInvitationCode as Lo, TUIInvitationRejectedReason as Uo, TUIInvitationStatus as Io, TUIKickedOutOfRoomReason as yo, TUILiveLayoutManagerEvents as Ao, TUILiveListManagerEvents as Mo, TUILiveModifyFlag as Po, TUIMediaDevice as go, TUIMediaDeviceState as Eo, TUIMediaDeviceType as Vo, TUINetworkQuality as Bo, TUIRequestAction as ko, TUIRequestCallbackType as Do, TUIResolutionMode as _o, TUIRole as Go, TUIRoomDismissedReason as Oo, TUIRoomEvents as ho, TUIRoomType as Fo, TUISeatMode as wo, TUIVideoQuality as Ho, TUIVideoStreamType as Qo } from "./types/types.js";
|
|
56
56
|
import { LiveEndedReason as No, LiveKickedOutReason as bo, LiveListEvent as qo, LiveOrientation as jo, LiveType as Wo } from "./types/live.js";
|
|
57
57
|
import { StreamPlayMode as Jo, StreamPlayQuality as Xo } from "./types/stream.js";
|
|
@@ -70,26 +70,26 @@ import { BattleStatus as Fr, ConnectionStatus as wr, RequestType as Hr, SeatStat
|
|
|
70
70
|
export {
|
|
71
71
|
o as AttachmentPicker,
|
|
72
72
|
r as AudioCallPicker,
|
|
73
|
-
|
|
73
|
+
eo as AudioRoute,
|
|
74
74
|
fe as AudioSettingPanel,
|
|
75
75
|
W as Avatar,
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
st as BarrageInput,
|
|
77
|
+
pt as BarrageList,
|
|
78
78
|
Rr as BarrageType,
|
|
79
79
|
lr as BattleEndedReason,
|
|
80
80
|
xr as BattleEvent,
|
|
81
81
|
Fr as BattleStatus,
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
Oe as CallMediaType,
|
|
83
|
+
ut as CameraButton,
|
|
84
84
|
a as ChatSetting,
|
|
85
|
-
|
|
85
|
+
ft as CoGuestPanel,
|
|
86
86
|
Tr as CoHostEvent,
|
|
87
87
|
fr as CoHostLayoutTemplate,
|
|
88
|
-
|
|
88
|
+
St as CoHostPanel,
|
|
89
89
|
cr as CoHostStatus,
|
|
90
90
|
wr as ConnectionStatus,
|
|
91
91
|
i as ContactInfo,
|
|
92
|
-
|
|
92
|
+
De as ContactItemType,
|
|
93
93
|
s as ContactList,
|
|
94
94
|
n as ContactListItem,
|
|
95
95
|
p as ConversationActions,
|
|
@@ -99,8 +99,8 @@ export {
|
|
|
99
99
|
f as ConversationPreview,
|
|
100
100
|
c as ConversationPreviewUI,
|
|
101
101
|
S as ConversationSearch,
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
Ie as ConversationType,
|
|
103
|
+
Pe as CreateConvTypes,
|
|
104
104
|
J as DEFAULT_GROUP_AVATAR_AVCHATROOM,
|
|
105
105
|
X as DEFAULT_GROUP_AVATAR_COMMON,
|
|
106
106
|
Y as DEFAULT_GROUP_AVATAR_MEETING,
|
|
@@ -108,52 +108,52 @@ export {
|
|
|
108
108
|
$ as DEFAULT_GROUP_AVATAR_WORK,
|
|
109
109
|
ee as DEFAULT_USER_AVATAR,
|
|
110
110
|
er as DeviceControlPolicy,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
to as DeviceError,
|
|
112
|
+
oo as DevicePermission,
|
|
113
|
+
ro as DeviceStatus,
|
|
114
|
+
ao as DeviceType,
|
|
115
115
|
l as EmojiPicker,
|
|
116
116
|
x as FilePicker,
|
|
117
117
|
Ar as FillMode,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
Zt as FreeBeautyPanel,
|
|
119
|
+
_e as GroupApplicationType,
|
|
120
|
+
Fe as GroupInviteType,
|
|
121
|
+
ge as GroupLabelTypes,
|
|
122
|
+
we as GroupMemberRole,
|
|
123
|
+
He as GroupPermission,
|
|
124
|
+
Ee as GroupType,
|
|
125
125
|
nr as GuestEvent,
|
|
126
126
|
pr as HostEvent,
|
|
127
127
|
v as ImagePicker,
|
|
128
128
|
Mr as KickedOutOfRoomReason,
|
|
129
129
|
Zo as LiveAudienceEvent,
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
xt as LiveAudienceList,
|
|
131
|
+
yt as LiveCoreView,
|
|
132
132
|
No as LiveEndedReason,
|
|
133
133
|
bo as LiveKickedOutReason,
|
|
134
|
-
|
|
134
|
+
Rt as LiveList,
|
|
135
135
|
qo as LiveListEvent,
|
|
136
|
-
|
|
136
|
+
Ct as LiveMonitorView,
|
|
137
137
|
jo as LiveOrientation,
|
|
138
|
-
|
|
138
|
+
Ut as LiveScenePanel,
|
|
139
139
|
tr as LiveSeatEvent,
|
|
140
140
|
Wo as LiveType,
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
At as LiveView,
|
|
142
|
+
io as MediaSettingDisplayMode,
|
|
143
143
|
R as Message,
|
|
144
144
|
d as MessageAdvanced,
|
|
145
145
|
C as MessageInput,
|
|
146
146
|
L as MessageList,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
ye as MessageType,
|
|
148
|
+
Pt as MicButton,
|
|
149
|
+
so as MirrorType,
|
|
150
150
|
ir as MonitorDeviceStatus,
|
|
151
151
|
or as MoveSeatPolicy,
|
|
152
|
-
|
|
152
|
+
no as NetworkQuality,
|
|
153
153
|
mr as NoResponseReason,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
Ve as PageStateTypes,
|
|
155
|
+
Be as PlaceHolderTypes,
|
|
156
|
+
xe as QuoteTypeEnum,
|
|
157
157
|
Hr as RequestType,
|
|
158
158
|
rr as Role,
|
|
159
159
|
Cr as RoomCallResult,
|
|
@@ -161,22 +161,22 @@ export {
|
|
|
161
161
|
Ur as RoomEvent,
|
|
162
162
|
Pr as RoomLayoutTemplate,
|
|
163
163
|
gr as RoomParticipantEvent,
|
|
164
|
-
|
|
164
|
+
Qt as RoomParticipantList,
|
|
165
165
|
Er as RoomParticipantRole,
|
|
166
166
|
Vr as RoomParticipantStatus,
|
|
167
|
-
|
|
167
|
+
Nt as RoomParticipantView,
|
|
168
168
|
Ir as RoomStatus,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
qt as RoomView,
|
|
170
|
+
Wt as ScheduleRoomPanel,
|
|
171
|
+
zt as ScheduledRoomList,
|
|
172
172
|
U as Search,
|
|
173
173
|
I as SearchAdvanced,
|
|
174
174
|
y as SearchBar,
|
|
175
175
|
A as SearchResultItem,
|
|
176
176
|
M as SearchResults,
|
|
177
|
-
|
|
177
|
+
Ae as SearchType,
|
|
178
178
|
Qr as SeatStatus,
|
|
179
|
-
|
|
179
|
+
Et as StreamMixer,
|
|
180
180
|
Jo as StreamPlayMode,
|
|
181
181
|
Xo as StreamPlayQuality,
|
|
182
182
|
Kr as StreamPlayStatus,
|
|
@@ -212,40 +212,40 @@ export {
|
|
|
212
212
|
wo as TUISeatMode,
|
|
213
213
|
Ho as TUIVideoQuality,
|
|
214
214
|
Qo as TUIVideoStreamType,
|
|
215
|
-
|
|
215
|
+
ve as TranslationStatusEnum,
|
|
216
216
|
ae as UIKitModal,
|
|
217
217
|
Nr as UserAction,
|
|
218
218
|
P as UserAdvanced,
|
|
219
219
|
oe as UserPicker,
|
|
220
220
|
br as UserRoomStatus,
|
|
221
|
-
|
|
221
|
+
Ce as VariantType,
|
|
222
222
|
g as VideoCallPicker,
|
|
223
223
|
E as VideoPicker,
|
|
224
|
-
|
|
224
|
+
po as VideoQuality,
|
|
225
225
|
Se as VideoSettingPanel,
|
|
226
226
|
Br as VideoStreamType,
|
|
227
227
|
V as View,
|
|
228
228
|
Gr as VirtualBackgroundEvent,
|
|
229
|
-
|
|
229
|
+
Xt as VirtualBackgroundPanel,
|
|
230
230
|
Or as VirtualBackgroundType,
|
|
231
|
-
|
|
231
|
+
Re as VoiceToTextStatusEnum,
|
|
232
232
|
Q as addI18n,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
Le as defaultTypeLabels,
|
|
234
|
+
Bt as useASRState,
|
|
235
|
+
Ke as useBarrageState,
|
|
236
|
+
be as useBattleState,
|
|
237
237
|
B as useC2CSettingState,
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
je as useCoGuestState,
|
|
239
|
+
ze as useCoHostState,
|
|
240
240
|
k as useContactListState,
|
|
241
241
|
D as useConversationListState,
|
|
242
242
|
pe as useDeviceState,
|
|
243
|
-
|
|
243
|
+
Dt as useFreeBeautyState,
|
|
244
244
|
_ as useGroupSettingState,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
Xe as useLiveAudienceState,
|
|
246
|
+
Ze as useLiveListState,
|
|
247
|
+
et as useLiveMonitorState,
|
|
248
|
+
ot as useLiveSeatState,
|
|
249
249
|
N as useLoginState,
|
|
250
250
|
G as useMessageActionState,
|
|
251
251
|
O as useMessageActions,
|
|
@@ -253,10 +253,10 @@ export {
|
|
|
253
253
|
F as useMessageListState,
|
|
254
254
|
ue as useRoomEngine,
|
|
255
255
|
se as useRoomModal,
|
|
256
|
-
|
|
257
|
-
|
|
256
|
+
Gt as useRoomParticipantState,
|
|
257
|
+
ht as useRoomState,
|
|
258
258
|
w as useSearchState,
|
|
259
259
|
q as useUIKitModalState,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
at as useVideoMixerState,
|
|
261
|
+
wt as useVirtualBackgroundState
|
|
262
262
|
};
|
|
@@ -1,18 +1,32 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { TUIStore as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { ref as d } from "vue";
|
|
2
|
+
import { TUIStore as o, StoreName as r, TUIChatService as C } from "@tencentcloud/chat-uikit-engine";
|
|
3
|
+
import { copyTextToClipboard as I } from "../../utils/copyText.js";
|
|
4
|
+
import { transformTextWithEmojiKeyToName as D } from "../../utils/emoji.js";
|
|
5
|
+
let g;
|
|
6
|
+
const n = d([]), c = d(!1), i = d([]), u = d(void 0);
|
|
7
|
+
function S(e) {
|
|
8
|
+
n.value = [
|
|
9
|
+
.../* @__PURE__ */ new Set([...n.value, ...e])
|
|
10
|
+
];
|
|
11
|
+
}
|
|
12
|
+
function T(e) {
|
|
13
|
+
c.value = e;
|
|
14
|
+
}
|
|
15
|
+
function L(e) {
|
|
16
|
+
i.value = [
|
|
17
|
+
.../* @__PURE__ */ new Set([...i.value, ...e])
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
function h(e) {
|
|
21
|
+
const { messageIDList: a, conversationIDList: t, isMergeForward: f } = e;
|
|
22
|
+
if (a.length === 0 || t.length === 0 || f === void 0)
|
|
9
23
|
throw new Error("Invalid forward message parameters");
|
|
10
|
-
const M =
|
|
11
|
-
(s) =>
|
|
24
|
+
const M = t.map((s) => o.getConversationModel(s)), m = a.map((s) => o.getMessageModel(s)).sort((s, w) => s.time - w.time), p = M.map(
|
|
25
|
+
(s) => C.sendForwardMessage(
|
|
12
26
|
[s],
|
|
13
|
-
|
|
27
|
+
m,
|
|
14
28
|
{
|
|
15
|
-
needMerge:
|
|
29
|
+
needMerge: f,
|
|
16
30
|
params: {
|
|
17
31
|
// Determine whether read receipt is needed based on configuration
|
|
18
32
|
needReadReceipt: !1
|
|
@@ -20,222 +34,68 @@ function I(e) {
|
|
|
20
34
|
}
|
|
21
35
|
)
|
|
22
36
|
);
|
|
23
|
-
return Promise.allSettled(
|
|
37
|
+
return Promise.allSettled(p);
|
|
24
38
|
}
|
|
25
|
-
function
|
|
39
|
+
function q(e) {
|
|
40
|
+
o.update(r.CHAT, "quoteMessage", {
|
|
41
|
+
message: e,
|
|
42
|
+
type: "quote"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function l() {
|
|
46
|
+
o.update(r.CHAT, "quoteMessage", {
|
|
47
|
+
message: void 0,
|
|
48
|
+
type: "quote"
|
|
49
|
+
}), u.value = void 0;
|
|
50
|
+
}
|
|
51
|
+
function y(e) {
|
|
52
|
+
return I(
|
|
53
|
+
D(e.payload.text || "")
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
function F(e) {
|
|
57
|
+
return e.deleteMessage();
|
|
58
|
+
}
|
|
59
|
+
function R(e) {
|
|
60
|
+
return e.revokeMessage();
|
|
61
|
+
}
|
|
62
|
+
function v() {
|
|
63
|
+
l(), n.value = [], c.value = !1, i.value = [];
|
|
64
|
+
}
|
|
65
|
+
function E() {
|
|
26
66
|
return {
|
|
27
67
|
// State
|
|
28
|
-
forwardMessageIDList:
|
|
29
|
-
isForwardMessageSelectionDone:
|
|
30
|
-
forwardConversationIDList:
|
|
31
|
-
quotedMessage:
|
|
68
|
+
forwardMessageIDList: n,
|
|
69
|
+
isForwardMessageSelectionDone: c,
|
|
70
|
+
forwardConversationIDList: i,
|
|
71
|
+
quotedMessage: u,
|
|
32
72
|
// Action methods
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* setForwardMessageIDList(['msg1', 'msg2', 'msg3']);
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
setForwardMessageIDList(e) {
|
|
47
|
-
t.value = [
|
|
48
|
-
.../* @__PURE__ */ new Set([...t.value, ...e])
|
|
49
|
-
];
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* 设置消息选择完成状态
|
|
53
|
-
* @memberof module:MessageActionState
|
|
54
|
-
* @description 设置转发消息选择是否完成的状态
|
|
55
|
-
* @param {boolean} isSelectionDone - 是否完成消息选择
|
|
56
|
-
* @example
|
|
57
|
-
* ```typescript
|
|
58
|
-
* const { setIsForwardMessageSelectionDone } = useMessageActionState();
|
|
59
|
-
*
|
|
60
|
-
* // 标记消息选择完成
|
|
61
|
-
* setIsForwardMessageSelectionDone(true);
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
setIsForwardMessageSelectionDone(e) {
|
|
65
|
-
n.value = e;
|
|
66
|
-
},
|
|
67
|
-
/**
|
|
68
|
-
* 设置转发目标会话ID列表
|
|
69
|
-
* @memberof module:MessageActionState
|
|
70
|
-
* @description 设置消息转发的目标会话ID列表,会与现有列表合并去重
|
|
71
|
-
* @param {string[]} conversationIDList - 目标会话ID数组
|
|
72
|
-
* @example
|
|
73
|
-
* ```typescript
|
|
74
|
-
* const { setForwardConversationIDList } = useMessageActionState();
|
|
75
|
-
*
|
|
76
|
-
* // 设置转发目标会话
|
|
77
|
-
* setForwardConversationIDList(['conv1', 'conv2']);
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
setForwardConversationIDList(e) {
|
|
81
|
-
o.value = [
|
|
82
|
-
.../* @__PURE__ */ new Set([...o.value, ...e])
|
|
83
|
-
];
|
|
84
|
-
},
|
|
85
|
-
/**
|
|
86
|
-
* 转发消息到指定会话
|
|
87
|
-
* @memberof module:MessageActionState
|
|
88
|
-
* @description 将选中的消息转发到指定的会话中,支持合并转发和逐条转发
|
|
89
|
-
* @param {IForwardMessageParams} params - 转发消息参数
|
|
90
|
-
* @param {string[]} params.messageIDList - 要转发的消息ID列表
|
|
91
|
-
* @param {string[]} params.conversationIDList - 目标会话ID列表
|
|
92
|
-
* @param {boolean} params.isMergeForward - 是否合并转发
|
|
93
|
-
* @returns {Promise<Array<PromiseSettledResult<unknown>>>} 转发操作的结果数组
|
|
94
|
-
* @example
|
|
95
|
-
* ```typescript
|
|
96
|
-
* const { forwardMessage } = useMessageActionState();
|
|
97
|
-
*
|
|
98
|
-
* // 合并转发消息
|
|
99
|
-
* const results = await forwardMessage({
|
|
100
|
-
* messageIDList: ['msg1', 'msg2'],
|
|
101
|
-
* conversationIDList: ['conv1', 'conv2'],
|
|
102
|
-
* isMergeForward: true
|
|
103
|
-
* });
|
|
104
|
-
* ```
|
|
105
|
-
*/
|
|
106
|
-
forwardMessage(e) {
|
|
107
|
-
return I(e);
|
|
108
|
-
},
|
|
109
|
-
/**
|
|
110
|
-
* 引用消息
|
|
111
|
-
* @memberof module:MessageActionState
|
|
112
|
-
* @description 设置要引用的消息,引用后可以在发送新消息时显示被引用的消息内容
|
|
113
|
-
* @param {MessageModel | undefined} message - 要引用的消息对象,传入undefined表示取消引用
|
|
114
|
-
* @example
|
|
115
|
-
* ```typescript
|
|
116
|
-
* const { quoteMessage } = useMessageActionState();
|
|
117
|
-
*
|
|
118
|
-
* // 引用一条消息
|
|
119
|
-
* quoteMessage(messageModel);
|
|
120
|
-
*
|
|
121
|
-
* // 取消引用
|
|
122
|
-
* quoteMessage(undefined);
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
quoteMessage(e) {
|
|
126
|
-
a.update(u.CHAT, "quoteMessage", {
|
|
127
|
-
message: e,
|
|
128
|
-
type: "quote"
|
|
129
|
-
}), i.value = e;
|
|
130
|
-
},
|
|
131
|
-
/**
|
|
132
|
-
* 清除引用消息
|
|
133
|
-
* @memberof module:MessageActionState
|
|
134
|
-
* @description 清除当前引用的消息,取消引用状态
|
|
135
|
-
* @example
|
|
136
|
-
* ```typescript
|
|
137
|
-
* const { clearQuotedMessage } = useMessageActionState();
|
|
138
|
-
*
|
|
139
|
-
* // 清除引用消息
|
|
140
|
-
* clearQuotedMessage();
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
clearQuotedMessage() {
|
|
144
|
-
a.update(u.CHAT, "quoteMessage", {
|
|
145
|
-
message: void 0,
|
|
146
|
-
type: "quote"
|
|
147
|
-
}), i.value = void 0;
|
|
148
|
-
},
|
|
149
|
-
/**
|
|
150
|
-
* 复制文本消息内容到剪贴板
|
|
151
|
-
* @memberof module:MessageActionState
|
|
152
|
-
* @description 将文本消息的内容复制到系统剪贴板,会自动处理表情符号转换
|
|
153
|
-
* @param {MessageModel} message - 要复制的消息对象
|
|
154
|
-
* @returns {Promise<boolean>} 复制操作的结果,成功返回true,失败返回false
|
|
155
|
-
* @throws {Error} 当消息不是文本类型或复制失败时抛出错误
|
|
156
|
-
* @example
|
|
157
|
-
* ```typescript
|
|
158
|
-
* const { copyTextMessage } = useMessageActionState();
|
|
159
|
-
*
|
|
160
|
-
* // 复制文本消息
|
|
161
|
-
* try {
|
|
162
|
-
* const success = await copyTextMessage(textMessage);
|
|
163
|
-
* if (success) {
|
|
164
|
-
* console.log('消息已复制到剪贴板');
|
|
165
|
-
* }
|
|
166
|
-
* } catch (error) {
|
|
167
|
-
* console.error('复制失败:', error);
|
|
168
|
-
* }
|
|
169
|
-
* ```
|
|
170
|
-
*/
|
|
171
|
-
copyTextMessage(e) {
|
|
172
|
-
return w(
|
|
173
|
-
p(e.payload.text || "")
|
|
174
|
-
);
|
|
175
|
-
},
|
|
176
|
-
/**
|
|
177
|
-
* 删除消息
|
|
178
|
-
* @memberof module:MessageActionState
|
|
179
|
-
* @description 删除指定的消息,删除后消息将从会话中移除
|
|
180
|
-
* @param {MessageModel} message - 要删除的消息对象
|
|
181
|
-
* @returns {Promise<unknown>} 删除操作的结果Promise
|
|
182
|
-
* @throws {Error} 当删除操作失败时抛出错误
|
|
183
|
-
* @example
|
|
184
|
-
* ```typescript
|
|
185
|
-
* const { deleteMessage } = useMessageActionState();
|
|
186
|
-
*
|
|
187
|
-
* // 删除消息
|
|
188
|
-
* try {
|
|
189
|
-
* await deleteMessage(messageModel);
|
|
190
|
-
* console.log('消息删除成功');
|
|
191
|
-
* } catch (error) {
|
|
192
|
-
* console.error('删除消息失败:', error);
|
|
193
|
-
* }
|
|
194
|
-
* ```
|
|
195
|
-
*/
|
|
196
|
-
deleteMessage(e) {
|
|
197
|
-
return e.deleteMessage();
|
|
198
|
-
},
|
|
199
|
-
/**
|
|
200
|
-
* 撤回消息
|
|
201
|
-
* @memberof module:MessageActionState
|
|
202
|
-
* @description 撤回已发送的消息,撤回后消息将显示为"已撤回"状态
|
|
203
|
-
* @param {MessageModel} message - 要撤回的消息对象
|
|
204
|
-
* @returns {Promise<unknown>} 撤回操作的结果Promise
|
|
205
|
-
* @throws {Error} 当撤回操作失败时抛出错误(如超过撤回时限)
|
|
206
|
-
* @example
|
|
207
|
-
* ```typescript
|
|
208
|
-
* const { recallMessage } = useMessageActionState();
|
|
209
|
-
*
|
|
210
|
-
* // 撤回消息
|
|
211
|
-
* try {
|
|
212
|
-
* await recallMessage(messageModel);
|
|
213
|
-
* console.log('消息撤回成功');
|
|
214
|
-
* } catch (error) {
|
|
215
|
-
* console.error('撤回消息失败:', error);
|
|
216
|
-
* }
|
|
217
|
-
* ```
|
|
218
|
-
*/
|
|
219
|
-
recallMessage(e) {
|
|
220
|
-
return e.revokeMessage();
|
|
221
|
-
},
|
|
222
|
-
/**
|
|
223
|
-
* 重置消息操作状态
|
|
224
|
-
* @memberof module:MessageActionState
|
|
225
|
-
* @description 重置所有消息操作相关的状态,包括清除引用消息、转发消息列表等
|
|
226
|
-
* @example
|
|
227
|
-
* ```typescript
|
|
228
|
-
* const { resetMessageActionState } = useMessageActionState();
|
|
229
|
-
*
|
|
230
|
-
* // 重置所有消息操作状态
|
|
231
|
-
* resetMessageActionState();
|
|
232
|
-
* ```
|
|
233
|
-
*/
|
|
234
|
-
resetMessageActionState() {
|
|
235
|
-
this.clearQuotedMessage(), t.value = [], n.value = !1, o.value = [];
|
|
236
|
-
}
|
|
73
|
+
setForwardMessageIDList: S,
|
|
74
|
+
setIsForwardMessageSelectionDone: T,
|
|
75
|
+
setForwardConversationIDList: L,
|
|
76
|
+
forwardMessage: h,
|
|
77
|
+
quoteMessage: q,
|
|
78
|
+
clearQuotedMessage: l,
|
|
79
|
+
copyTextMessage: y,
|
|
80
|
+
deleteMessage: F,
|
|
81
|
+
recallMessage: R,
|
|
82
|
+
resetMessageActionState: v
|
|
237
83
|
};
|
|
238
84
|
}
|
|
85
|
+
function x() {
|
|
86
|
+
function e(t) {
|
|
87
|
+
t.message === void 0 ? u.value = void 0 : u.value = t.message;
|
|
88
|
+
}
|
|
89
|
+
function a(t) {
|
|
90
|
+
t !== g && (v(), g = t);
|
|
91
|
+
}
|
|
92
|
+
o.watch(r.CHAT, {
|
|
93
|
+
quoteMessage: e
|
|
94
|
+
}), o.watch(r.CONV, {
|
|
95
|
+
currentConversationID: a
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
x();
|
|
239
99
|
export {
|
|
240
|
-
|
|
100
|
+
E as useMessageActionState
|
|
241
101
|
};
|