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
|
@@ -4,11 +4,11 @@ import { useLoginState as a } from "../../states/LoginState.js";
|
|
|
4
4
|
import { useUIKitModalState as n } from "../../states/UIKitModalState/UIKitModalState.js";
|
|
5
5
|
import { default as m } from "../../components/Avatar/Avatar.js";
|
|
6
6
|
import { DEFAULT_GROUP_AVATAR_AVCHATROOM as s, DEFAULT_GROUP_AVATAR_COMMON as u, DEFAULT_GROUP_AVATAR_MEETING as R, DEFAULT_GROUP_AVATAR_PUBLIC as l, DEFAULT_GROUP_AVATAR_WORK as f, DEFAULT_USER_AVATAR as U } from "../../components/Avatar/constants/avatar.js";
|
|
7
|
-
import { UserPicker as
|
|
7
|
+
import { UserPicker as y } from "../../components/UserPicker/index.js";
|
|
8
8
|
import { UIKitModal as d } from "../../components/UIKitModal/UIKitModal.js";
|
|
9
9
|
import { useRoomModal as S } from "../../components/UIKitModal/useRoomModal/index.js";
|
|
10
10
|
import { useDeviceState as A } from "../../states/DeviceState/DeviceState.js";
|
|
11
|
-
import { useRoomEngine as
|
|
11
|
+
import { useRoomEngine as C } from "../../hooks/useRoomEngine.js";
|
|
12
12
|
import { AudioSettingPanel as M } from "../../components/AudioSettingPanel/index.js";
|
|
13
13
|
import { VideoSettingPanel as g } from "../../components/VideoSettingPanel/index.js";
|
|
14
14
|
import { useASRState as D } from "../../states/ASRState/ASRState.js";
|
|
@@ -25,26 +25,26 @@ import { FreeBeautyPanel as Z } from "../../components/FreeBeautyPanel/index.js"
|
|
|
25
25
|
import { AudioRoute as ee, DeviceError as oe, DevicePermission as te, DeviceStatus as re, DeviceType as ae, MediaSettingDisplayMode as ie, MirrorType as ne, NetworkQuality as pe, VideoQuality as me } from "../../types/device.js";
|
|
26
26
|
import { QuoteTypeEnum as se, TranslationStatusEnum as ue, VoiceToTextStatusEnum as Re } from "../../types/message.js";
|
|
27
27
|
import { VariantType as fe, defaultTypeLabels as Ue } from "../../types/search.js";
|
|
28
|
-
import { ConversationType as
|
|
29
|
-
import { CreateConvTypes as Se, GroupLabelTypes as Ie, GroupType as Ae, PageStateTypes as Ee, PlaceHolderTypes as
|
|
28
|
+
import { ConversationType as ye, MessageType as xe, SearchType as de } from "../../types/engine.js";
|
|
29
|
+
import { CreateConvTypes as Se, GroupLabelTypes as Ie, GroupType as Ae, PageStateTypes as Ee, PlaceHolderTypes as Ce } from "../../types/conversation.js";
|
|
30
30
|
import { ContactItemType as Me, GroupApplicationType as Pe } from "../../types/contact.js";
|
|
31
31
|
import { CallMediaType as Ve } from "../../types/call.js";
|
|
32
32
|
import { GroupInviteType as _e, GroupMemberRole as Oe, GroupPermission as Ge } from "../../states/GroupSettingState/types.js";
|
|
33
33
|
import { TRTCRole as ke, TUIAudioQuality as Fe, TUIAudioRoute as Qe, TUICaptureSourceType as He, TUIChangeReason as Ke, TUIConferenceCancelReason as Ne, TUIConferenceInvitationManagerEvents as be, TUIConferenceListManagerEvents as he, TUIConferenceStatus as we, TUIErrorCode as qe, TUIInvitationCode as je, TUIInvitationRejectedReason as We, TUIInvitationStatus as ze, TUIKickedOutOfRoomReason as Je, TUILiveLayoutManagerEvents as Xe, TUILiveListManagerEvents as Ye, TUILiveModifyFlag as Ze, TUIMediaDevice as $e, TUIMediaDeviceState as eo, TUIMediaDeviceType as oo, TUINetworkQuality as to, TUIRequestAction as ro, TUIRequestCallbackType as ao, TUIResolutionMode as io, TUIRole as no, TUIRoomDismissedReason as po, TUIRoomEvents as mo, TUIRoomType as To, TUISeatMode as so, TUIVideoQuality as uo, TUIVideoStreamType as Ro } from "../../types/types.js";
|
|
34
|
-
import { LiveEndedReason as fo, LiveKickedOutReason as Uo, LiveListEvent as
|
|
34
|
+
import { LiveEndedReason as fo, LiveKickedOutReason as Uo, LiveListEvent as co, LiveOrientation as yo, LiveType as xo } from "../../types/live.js";
|
|
35
35
|
import { StreamPlayMode as So, StreamPlayQuality as Io } from "../../types/stream.js";
|
|
36
36
|
import { LiveAudienceEvent as Eo } from "../../types/audience.js";
|
|
37
|
-
import { DeviceControlPolicy as
|
|
37
|
+
import { DeviceControlPolicy as Lo, LiveSeatEvent as Mo, MoveSeatPolicy as Po, Role as go } from "../../types/seat.js";
|
|
38
38
|
import { MonitorDeviceStatus as Do } from "../../types/monitor.js";
|
|
39
39
|
import { GuestEvent as Oo, HostEvent as Go, NoResponseReason as Bo } from "../../types/coGuest.js";
|
|
40
40
|
import { CoHostEvent as Fo, CoHostLayoutTemplate as Qo, CoHostStatus as Ho } from "../../types/coHost.js";
|
|
41
41
|
import { BattleEndedReason as No, BattleEvent as bo } from "../../types/battle.js";
|
|
42
42
|
import { BarrageType as wo } from "../../types/barrage.js";
|
|
43
|
-
import {
|
|
44
|
-
import { FillMode as
|
|
45
|
-
import { TRTCBeautyStyle as
|
|
46
|
-
import { VirtualBackgroundEvent as
|
|
47
|
-
import { BattleStatus as
|
|
43
|
+
import { CallRejectReason as jo, RoomCallResult as Wo, RoomCallStatus as zo, RoomEvent as Jo, RoomStatus as Xo } from "../../types/room.js";
|
|
44
|
+
import { FillMode as Zo, KickedOutOfRoomReason as $o, RoomLayoutTemplate as et, RoomParticipantEvent as ot, RoomParticipantRole as tt, RoomParticipantStatus as rt, VideoStreamType as at } from "../../types/participant.js";
|
|
45
|
+
import { TRTCBeautyStyle as nt } from "../../types/beauty.js";
|
|
46
|
+
import { VirtualBackgroundEvent as mt, VirtualBackgroundType as Tt } from "../../types/virtualBackground.js";
|
|
47
|
+
import { BattleStatus as ut, ConnectionStatus as Rt, RequestType as lt, SeatStatus as ft, StreamPlayStatus as Ut, UserAction as ct, UserRoomStatus as yt } from "../../types/user.js";
|
|
48
48
|
e.getInstance().init();
|
|
49
49
|
export {
|
|
50
50
|
ee as AudioRoute,
|
|
@@ -53,14 +53,15 @@ export {
|
|
|
53
53
|
wo as BarrageType,
|
|
54
54
|
No as BattleEndedReason,
|
|
55
55
|
bo as BattleEvent,
|
|
56
|
-
|
|
56
|
+
ut as BattleStatus,
|
|
57
57
|
Ve as CallMediaType,
|
|
58
|
+
jo as CallRejectReason,
|
|
58
59
|
Fo as CoHostEvent,
|
|
59
60
|
Qo as CoHostLayoutTemplate,
|
|
60
61
|
Ho as CoHostStatus,
|
|
61
|
-
|
|
62
|
+
Rt as ConnectionStatus,
|
|
62
63
|
Me as ContactItemType,
|
|
63
|
-
|
|
64
|
+
ye as ConversationType,
|
|
64
65
|
Se as CreateConvTypes,
|
|
65
66
|
s as DEFAULT_GROUP_AVATAR_AVCHATROOM,
|
|
66
67
|
u as DEFAULT_GROUP_AVATAR_COMMON,
|
|
@@ -68,12 +69,12 @@ export {
|
|
|
68
69
|
l as DEFAULT_GROUP_AVATAR_PUBLIC,
|
|
69
70
|
f as DEFAULT_GROUP_AVATAR_WORK,
|
|
70
71
|
U as DEFAULT_USER_AVATAR,
|
|
71
|
-
|
|
72
|
+
Lo as DeviceControlPolicy,
|
|
72
73
|
oe as DeviceError,
|
|
73
74
|
te as DevicePermission,
|
|
74
75
|
re as DeviceStatus,
|
|
75
76
|
ae as DeviceType,
|
|
76
|
-
|
|
77
|
+
Zo as FillMode,
|
|
77
78
|
Z as FreeBeautyPanel,
|
|
78
79
|
Pe as GroupApplicationType,
|
|
79
80
|
_e as GroupInviteType,
|
|
@@ -83,12 +84,12 @@ export {
|
|
|
83
84
|
Ae as GroupType,
|
|
84
85
|
Oo as GuestEvent,
|
|
85
86
|
Go as HostEvent,
|
|
86
|
-
|
|
87
|
+
$o as KickedOutOfRoomReason,
|
|
87
88
|
Eo as LiveAudienceEvent,
|
|
88
89
|
fo as LiveEndedReason,
|
|
89
90
|
Uo as LiveKickedOutReason,
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
co as LiveListEvent,
|
|
92
|
+
yo as LiveOrientation,
|
|
92
93
|
Mo as LiveSeatEvent,
|
|
93
94
|
xo as LiveType,
|
|
94
95
|
ie as MediaSettingDisplayMode,
|
|
@@ -99,29 +100,29 @@ export {
|
|
|
99
100
|
pe as NetworkQuality,
|
|
100
101
|
Bo as NoResponseReason,
|
|
101
102
|
Ee as PageStateTypes,
|
|
102
|
-
|
|
103
|
+
Ce as PlaceHolderTypes,
|
|
103
104
|
se as QuoteTypeEnum,
|
|
104
|
-
|
|
105
|
+
lt as RequestType,
|
|
105
106
|
go as Role,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
Wo as RoomCallResult,
|
|
108
|
+
zo as RoomCallStatus,
|
|
109
|
+
Jo as RoomEvent,
|
|
110
|
+
et as RoomLayoutTemplate,
|
|
111
|
+
ot as RoomParticipantEvent,
|
|
111
112
|
N as RoomParticipantList,
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
tt as RoomParticipantRole,
|
|
114
|
+
rt as RoomParticipantStatus,
|
|
114
115
|
h as RoomParticipantView,
|
|
115
|
-
|
|
116
|
+
Xo as RoomStatus,
|
|
116
117
|
q as RoomView,
|
|
117
118
|
W as ScheduleRoomPanel,
|
|
118
119
|
z as ScheduledRoomList,
|
|
119
120
|
de as SearchType,
|
|
120
|
-
|
|
121
|
+
ft as SeatStatus,
|
|
121
122
|
So as StreamPlayMode,
|
|
122
123
|
Io as StreamPlayQuality,
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
Ut as StreamPlayStatus,
|
|
125
|
+
nt as TRTCBeautyStyle,
|
|
125
126
|
ke as TRTCRole,
|
|
126
127
|
Fe as TUIAudioQuality,
|
|
127
128
|
Qe as TUIAudioRoute,
|
|
@@ -155,23 +156,23 @@ export {
|
|
|
155
156
|
Ro as TUIVideoStreamType,
|
|
156
157
|
ue as TranslationStatusEnum,
|
|
157
158
|
d as UIKitModal,
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
ct as UserAction,
|
|
160
|
+
y as UserPicker,
|
|
160
161
|
yt as UserRoomStatus,
|
|
161
162
|
fe as VariantType,
|
|
162
163
|
me as VideoQuality,
|
|
163
164
|
g as VideoSettingPanel,
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
at as VideoStreamType,
|
|
166
|
+
mt as VirtualBackgroundEvent,
|
|
166
167
|
X as VirtualBackgroundPanel,
|
|
167
|
-
|
|
168
|
+
Tt as VirtualBackgroundType,
|
|
168
169
|
Re as VoiceToTextStatusEnum,
|
|
169
170
|
Ue as defaultTypeLabels,
|
|
170
171
|
D as useASRState,
|
|
171
172
|
A as useDeviceState,
|
|
172
173
|
O as useFreeBeautyState,
|
|
173
174
|
a as useLoginState,
|
|
174
|
-
|
|
175
|
+
C as useRoomEngine,
|
|
175
176
|
S as useRoomModal,
|
|
176
177
|
B as useRoomParticipantState,
|
|
177
178
|
F as useRoomState,
|
package/dist/types/beauty.d.ts
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module FreeBeautyConfigType
|
|
3
|
+
* @description 基础美颜配置
|
|
4
|
+
*
|
|
5
|
+
* 提供自由美颜相关的配置选项。
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import { FreeBeautyConfig } from '@tuikit-atomicx-vue3';
|
|
9
|
+
*
|
|
10
|
+
* const config: FreeBeautyConfig = {
|
|
11
|
+
* beautyLevel: 0.5,
|
|
12
|
+
* whitenessLevel: 0.5,
|
|
13
|
+
* ruddinessLevel: 0.5,
|
|
14
|
+
* };
|
|
15
|
+
*/
|
|
1
16
|
export type FreeBeautyConfig = {
|
|
2
17
|
beautyLevel: number;
|
|
3
18
|
whitenessLevel: number;
|
|
4
19
|
ruddinessLevel: number;
|
|
5
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* 美颜风格
|
|
23
|
+
* @enum {number}
|
|
24
|
+
* @description 表示美颜风格。
|
|
25
|
+
*/
|
|
6
26
|
export declare enum TRTCBeautyStyle {
|
|
7
27
|
TRTCBeautyStyleSmooth = 0,
|
|
8
28
|
TRTCBeautyStyleNature = 1
|
package/dist/types/index.js
CHANGED
|
@@ -2,54 +2,55 @@ import { AudioRoute as t, DeviceError as a, DevicePermission as r, DeviceStatus
|
|
|
2
2
|
import { QuoteTypeEnum as l, TranslationStatusEnum as y, VoiceToTextStatusEnum as v } from "./message.js";
|
|
3
3
|
import { VariantType as c, defaultTypeLabels as I } from "./search.js";
|
|
4
4
|
import { ConversationType as U, MessageType as f, SearchType as S } from "./engine.js";
|
|
5
|
-
import { CreateConvTypes as
|
|
5
|
+
import { CreateConvTypes as x, GroupLabelTypes as E, GroupType as M, PageStateTypes as L, PlaceHolderTypes as g } from "./conversation.js";
|
|
6
6
|
import { ContactItemType as D, GroupApplicationType as k } from "./contact.js";
|
|
7
7
|
import { CallMediaType as A } from "./call.js";
|
|
8
|
-
import { TRTCRole as G, TUIAudioQuality as Q, TUIAudioRoute as O, TUICaptureSourceType as H, TUIChangeReason as b, TUIConferenceCancelReason as q, TUIConferenceInvitationManagerEvents as K, TUIConferenceListManagerEvents as N, TUIConferenceStatus as h, TUIErrorCode as
|
|
8
|
+
import { TRTCRole as G, TUIAudioQuality as Q, TUIAudioRoute as O, TUICaptureSourceType as H, TUIChangeReason as b, TUIConferenceCancelReason as q, TUIConferenceInvitationManagerEvents as K, TUIConferenceListManagerEvents as N, TUIConferenceStatus as h, TUIErrorCode as j, TUIInvitationCode as w, TUIInvitationRejectedReason as F, TUIInvitationStatus as z, TUIKickedOutOfRoomReason as J, TUILiveLayoutManagerEvents as W, TUILiveListManagerEvents as X, TUILiveModifyFlag as Y, TUIMediaDevice as Z, TUIMediaDeviceState as _, TUIMediaDeviceType as $, TUINetworkQuality as ee, TUIRequestAction as oe, TUIRequestCallbackType as te, TUIResolutionMode as ae, TUIRole as re, TUIRoomDismissedReason as ie, TUIRoomEvents as ne, TUIRoomType as pe, TUISeatMode as Te, TUIVideoQuality as se, TUIVideoStreamType as ue } from "./types.js";
|
|
9
9
|
import { LiveEndedReason as le, LiveKickedOutReason as ye, LiveListEvent as ve, LiveOrientation as Re, LiveType as ce } from "./live.js";
|
|
10
10
|
import { StreamPlayMode as de, StreamPlayQuality as Ue } from "./stream.js";
|
|
11
11
|
import { LiveAudienceEvent as Se } from "./audience.js";
|
|
12
|
-
import { DeviceControlPolicy as
|
|
12
|
+
import { DeviceControlPolicy as xe, LiveSeatEvent as Ee, MoveSeatPolicy as Me, Role as Le } from "./seat.js";
|
|
13
13
|
import { MonitorDeviceStatus as Pe } from "./monitor.js";
|
|
14
14
|
import { GuestEvent as ke, HostEvent as Ve, NoResponseReason as Ae } from "./coGuest.js";
|
|
15
15
|
import { CoHostEvent as Ge, CoHostLayoutTemplate as Qe, CoHostStatus as Oe } from "./coHost.js";
|
|
16
16
|
import { BattleEndedReason as be, BattleEvent as qe } from "./battle.js";
|
|
17
17
|
import { BarrageType as Ne } from "./barrage.js";
|
|
18
|
-
import { RoomCallResult as we, RoomCallStatus as Fe, RoomEvent as
|
|
19
|
-
import { FillMode as
|
|
20
|
-
import { TRTCBeautyStyle as
|
|
21
|
-
import { VirtualBackgroundEvent as
|
|
22
|
-
import { BattleStatus as
|
|
23
|
-
import { GroupInviteType as
|
|
18
|
+
import { CallRejectReason as je, RoomCallResult as we, RoomCallStatus as Fe, RoomEvent as ze, RoomStatus as Je } from "./room.js";
|
|
19
|
+
import { FillMode as Xe, KickedOutOfRoomReason as Ye, RoomLayoutTemplate as Ze, RoomParticipantEvent as _e, RoomParticipantRole as $e, RoomParticipantStatus as eo, VideoStreamType as oo } from "./participant.js";
|
|
20
|
+
import { TRTCBeautyStyle as ao } from "./beauty.js";
|
|
21
|
+
import { VirtualBackgroundEvent as io, VirtualBackgroundType as no } from "./virtualBackground.js";
|
|
22
|
+
import { BattleStatus as To, ConnectionStatus as so, RequestType as uo, SeatStatus as mo, StreamPlayStatus as lo, UserAction as yo, UserRoomStatus as vo } from "./user.js";
|
|
23
|
+
import { GroupInviteType as co, GroupMemberRole as Io, GroupPermission as Uo } from "../states/GroupSettingState/types.js";
|
|
24
24
|
export {
|
|
25
25
|
t as AudioRoute,
|
|
26
26
|
Ne as BarrageType,
|
|
27
27
|
be as BattleEndedReason,
|
|
28
28
|
qe as BattleEvent,
|
|
29
|
-
|
|
29
|
+
To as BattleStatus,
|
|
30
30
|
A as CallMediaType,
|
|
31
|
+
je as CallRejectReason,
|
|
31
32
|
Ge as CoHostEvent,
|
|
32
33
|
Qe as CoHostLayoutTemplate,
|
|
33
34
|
Oe as CoHostStatus,
|
|
34
|
-
|
|
35
|
+
so as ConnectionStatus,
|
|
35
36
|
D as ContactItemType,
|
|
36
37
|
U as ConversationType,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
x as CreateConvTypes,
|
|
39
|
+
xe as DeviceControlPolicy,
|
|
39
40
|
a as DeviceError,
|
|
40
41
|
r as DevicePermission,
|
|
41
42
|
i as DeviceStatus,
|
|
42
43
|
n as DeviceType,
|
|
43
|
-
|
|
44
|
+
Xe as FillMode,
|
|
44
45
|
k as GroupApplicationType,
|
|
45
|
-
|
|
46
|
+
co as GroupInviteType,
|
|
46
47
|
E as GroupLabelTypes,
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
Io as GroupMemberRole,
|
|
49
|
+
Uo as GroupPermission,
|
|
49
50
|
M as GroupType,
|
|
50
51
|
ke as GuestEvent,
|
|
51
52
|
Ve as HostEvent,
|
|
52
|
-
|
|
53
|
+
Ye as KickedOutOfRoomReason,
|
|
53
54
|
Se as LiveAudienceEvent,
|
|
54
55
|
le as LiveEndedReason,
|
|
55
56
|
ye as LiveKickedOutReason,
|
|
@@ -67,22 +68,22 @@ export {
|
|
|
67
68
|
L as PageStateTypes,
|
|
68
69
|
g as PlaceHolderTypes,
|
|
69
70
|
l as QuoteTypeEnum,
|
|
70
|
-
|
|
71
|
+
uo as RequestType,
|
|
71
72
|
Le as Role,
|
|
72
73
|
we as RoomCallResult,
|
|
73
74
|
Fe as RoomCallStatus,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
ze as RoomEvent,
|
|
76
|
+
Ze as RoomLayoutTemplate,
|
|
77
|
+
_e as RoomParticipantEvent,
|
|
78
|
+
$e as RoomParticipantRole,
|
|
79
|
+
eo as RoomParticipantStatus,
|
|
80
|
+
Je as RoomStatus,
|
|
80
81
|
S as SearchType,
|
|
81
|
-
|
|
82
|
+
mo as SeatStatus,
|
|
82
83
|
de as StreamPlayMode,
|
|
83
84
|
Ue as StreamPlayQuality,
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
lo as StreamPlayStatus,
|
|
86
|
+
ao as TRTCBeautyStyle,
|
|
86
87
|
G as TRTCRole,
|
|
87
88
|
Q as TUIAudioQuality,
|
|
88
89
|
O as TUIAudioRoute,
|
|
@@ -92,9 +93,9 @@ export {
|
|
|
92
93
|
K as TUIConferenceInvitationManagerEvents,
|
|
93
94
|
N as TUIConferenceListManagerEvents,
|
|
94
95
|
h as TUIConferenceStatus,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
j as TUIErrorCode,
|
|
97
|
+
w as TUIInvitationCode,
|
|
98
|
+
F as TUIInvitationRejectedReason,
|
|
98
99
|
z as TUIInvitationStatus,
|
|
99
100
|
J as TUIKickedOutOfRoomReason,
|
|
100
101
|
W as TUILiveLayoutManagerEvents,
|
|
@@ -115,13 +116,13 @@ export {
|
|
|
115
116
|
se as TUIVideoQuality,
|
|
116
117
|
ue as TUIVideoStreamType,
|
|
117
118
|
y as TranslationStatusEnum,
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
yo as UserAction,
|
|
120
|
+
vo as UserRoomStatus,
|
|
120
121
|
c as VariantType,
|
|
121
122
|
u as VideoQuality,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
oo as VideoStreamType,
|
|
124
|
+
io as VirtualBackgroundEvent,
|
|
125
|
+
no as VirtualBackgroundType,
|
|
125
126
|
v as VoiceToTextStatusEnum,
|
|
126
127
|
I as defaultTypeLabels
|
|
127
128
|
};
|
|
@@ -139,6 +139,8 @@ export interface IRoomParticipantState {
|
|
|
139
139
|
userId: string;
|
|
140
140
|
device: DeviceType;
|
|
141
141
|
}): Promise<void>;
|
|
142
|
+
muteMicrophone(): Promise<void>;
|
|
143
|
+
unmuteMicrophone(): Promise<void>;
|
|
142
144
|
subscribeEvent(event: RoomParticipantEvent, callback: RoomParticipantEventPayloads[keyof RoomParticipantEventPayloads]): void;
|
|
143
145
|
unsubscribeEvent(event: RoomParticipantEvent, callback: RoomParticipantEventPayloads[keyof RoomParticipantEventPayloads]): void;
|
|
144
146
|
}
|
package/dist/types/room.d.ts
CHANGED
|
@@ -61,6 +61,22 @@ export declare enum RoomCallResult {
|
|
|
61
61
|
AlreadyInCalling = 1,
|
|
62
62
|
AlreadyInRoom = 2
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* 呼叫拒绝原因枚举
|
|
66
|
+
* @enum {number}
|
|
67
|
+
* @description 表示呼叫被拒绝的原因。
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
export declare enum CallRejectReason {
|
|
71
|
+
/**
|
|
72
|
+
* 用户拒绝呼叫
|
|
73
|
+
*/
|
|
74
|
+
Rejected = 0,
|
|
75
|
+
/**
|
|
76
|
+
* 用户已在其他房间中
|
|
77
|
+
*/
|
|
78
|
+
InOtherRoom = 1
|
|
79
|
+
}
|
|
64
80
|
export interface RoomCall {
|
|
65
81
|
caller: RoomUser;
|
|
66
82
|
callee: RoomUser;
|
|
@@ -157,6 +173,21 @@ export declare enum RoomEvent {
|
|
|
157
173
|
onCallCancelled = "onCallCancelled",
|
|
158
174
|
onCallTimeout = "onCallTimeout",
|
|
159
175
|
onCallAccepted = "onCallAccepted",
|
|
176
|
+
/**
|
|
177
|
+
* 当您发出的呼叫被被叫方拒绝时触发。
|
|
178
|
+
* @event
|
|
179
|
+
* @param {object} options - 事件参数对象
|
|
180
|
+
* @param {RoomInfo} options.roomInfo - 房间信息
|
|
181
|
+
* @param {RoomCall} options.call - 呼叫信息
|
|
182
|
+
* @param {string} options.extensionInfo - 被叫方拒绝的原因或附加信息
|
|
183
|
+
* @example
|
|
184
|
+
* import { useRoomState, RoomEvent } from 'tuikit-atomicx-vue3';
|
|
185
|
+
*
|
|
186
|
+
* const roomState = useRoomState();
|
|
187
|
+
* roomState.subscribeEvent(RoomEvent.onCallRejected, ({ roomInfo, call, reason }) => {
|
|
188
|
+
* console.log(`${call.callee.userName} 拒绝了您的呼叫: ${reason}`);
|
|
189
|
+
* });
|
|
190
|
+
*/
|
|
160
191
|
onCallRejected = "onCallRejected",
|
|
161
192
|
onCallHandledByOtherDevice = "onCallHandledByOtherDevice",
|
|
162
193
|
onCallRevokedByAdmin = "onCallRevokedByAdmin"
|
|
@@ -196,11 +227,24 @@ export interface RoomEventHandlers {
|
|
|
196
227
|
roomInfo: RoomInfo;
|
|
197
228
|
call: RoomCall;
|
|
198
229
|
}) => void;
|
|
230
|
+
/**
|
|
231
|
+
* onCallRejected 事件处理函数
|
|
232
|
+
* @param options - 事件数据
|
|
233
|
+
* @param options.roomInfo - 房间信息
|
|
234
|
+
* @param options.call - 呼叫信息
|
|
235
|
+
* @param options.reason - 被叫方拒绝原因
|
|
236
|
+
*/
|
|
199
237
|
onCallRejected: (options: {
|
|
200
238
|
roomInfo: RoomInfo;
|
|
201
239
|
call: RoomCall;
|
|
202
|
-
|
|
240
|
+
reason: CallRejectReason;
|
|
203
241
|
}) => void;
|
|
242
|
+
/**
|
|
243
|
+
* onCallHandledByOtherDevice 事件处理函数
|
|
244
|
+
* @param options - 事件数据
|
|
245
|
+
* @param options.roomInfo - 房间信息
|
|
246
|
+
* @param options.isAccepted - 呼叫是否在其他设备上被接受
|
|
247
|
+
*/
|
|
204
248
|
onCallHandledByOtherDevice: (options: {
|
|
205
249
|
roomInfo: RoomInfo;
|
|
206
250
|
isAccepted: boolean;
|
package/dist/types/room.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
var d = /* @__PURE__ */ ((e) => (e[e.Scheduled = 1] = "Scheduled", e[e.Running = 2] = "Running", e))(d || {}), n = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Calling = 1] = "Calling", e[e.Timeout = 2] = "Timeout", e[e.Rejected = 3] = "Rejected", e))(n || {}),
|
|
1
|
+
var d = /* @__PURE__ */ ((e) => (e[e.Scheduled = 1] = "Scheduled", e[e.Running = 2] = "Running", e))(d || {}), n = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Calling = 1] = "Calling", e[e.Timeout = 2] = "Timeout", e[e.Rejected = 3] = "Rejected", e))(n || {}), c = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.AlreadyInCalling = 1] = "AlreadyInCalling", e[e.AlreadyInRoom = 2] = "AlreadyInRoom", e))(c || {}), r = /* @__PURE__ */ ((e) => (e[e.Rejected = 0] = "Rejected", e[e.InOtherRoom = 1] = "InOtherRoom", e))(r || {}), l = /* @__PURE__ */ ((e) => (e.onAddedToScheduledRoom = "onAddedToScheduledRoom", e.onRemovedFromScheduledRoom = "onRemovedFromScheduledRoom", e.onScheduledRoomCancelled = "onScheduledRoomCancelled", e.onScheduledRoomStartingSoon = "onScheduledRoomStartingSoon", e.onRoomEnded = "onRoomEnded", e.onCallReceived = "onCallReceived", e.onCallCancelled = "onCallCancelled", e.onCallTimeout = "onCallTimeout", e.onCallAccepted = "onCallAccepted", e.onCallRejected = "onCallRejected", e.onCallHandledByOtherDevice = "onCallHandledByOtherDevice", e.onCallRevokedByAdmin = "onCallRevokedByAdmin", e))(l || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
r as CallRejectReason,
|
|
4
|
+
c as RoomCallResult,
|
|
4
5
|
n as RoomCallStatus,
|
|
5
|
-
|
|
6
|
+
l as RoomEvent,
|
|
6
7
|
d as RoomStatus
|
|
7
8
|
};
|