tuikit-atomicx-vue3 4.4.0-beta.1 → 4.5.0
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/.eslintrc.cjs +6 -2
- package/dist/DurationSelector.vue_vue_type_script_setup_true_lang-RndH6NtJ.js +54 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +38 -36
- package/dist/TimezoneSelector.vue_vue_type_script_setup_true_lang-C-lovW-l.js +62 -0
- package/dist/baseComp/AudioIcon.js +7 -7
- package/dist/baseComp/Input/InputH5.vue.d.ts +1 -1
- package/dist/baseComp/Input/InputPC.vue.d.ts +1 -1
- package/dist/baseComp/Input/InputWX.vue.d.ts +1 -1
- package/dist/baseComp/Input/index.d.ts +15 -15
- package/dist/changeNameCardDialog.vue_vue_type_script_setup_true_lang-a4FmKskP.js +41 -0
- package/dist/chat/index.d.ts +521 -506
- package/dist/chat/server.js +15 -15
- package/dist/components/AudioSetting/AudioMediaControl.js +23 -23
- package/dist/components/AudioSetting/AudioRequestDialog.js +86 -2
- package/dist/components/AudioSetting/AudioSettingTab.js +32 -33
- package/dist/components/AudioSetting/MicrophoneSelect.js +14 -15
- package/dist/components/AudioSetting/SpeakerSelect.js +16 -17
- package/dist/components/AudioSetting/index.js +29 -3
- package/dist/components/AudioSettingPanel/MicrophoneSelect.js +61 -0
- package/dist/components/AudioSettingPanel/MicrophoneSelect.vue.d.ts +29 -0
- package/dist/components/AudioSettingPanel/SpeakerSelect.js +61 -0
- package/dist/components/AudioSettingPanel/SpeakerSelect.vue.d.ts +29 -0
- package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +12 -6
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +12 -6
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +12 -6
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +12 -6
- package/dist/components/AudioSettingPanel/index.d.ts +49 -2
- package/dist/components/AudioSettingPanel/index.js +127 -94
- package/dist/components/AudioSettingPanel/index.vue.d.ts +49 -1
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +5 -4
- package/dist/components/BarrageInput/TextEditor/TextEditor.vue.d.ts +1 -1
- package/dist/components/BarrageInput/index.d.ts +6 -6
- package/dist/components/BarrageList/BarrageList.js +7 -7
- package/dist/components/BarrageList/BarrageListH5.js +7 -7
- package/dist/components/BarrageList/BarrageListState.d.ts +5 -27
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +4 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +11 -11
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +4 -4
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +1 -1
- package/dist/components/CameraButton/index.js +7 -7
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
- package/dist/components/ChatSetting/SettingItem/SettingItem.vue.d.ts +2 -2
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
- package/dist/components/ContactList/ContactList.js +7 -7
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
- package/dist/components/ConversationList/ConversationList.js +4 -4
- package/dist/components/ConversationList/ConversationList.vue.d.ts +200 -200
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +92 -92
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +18 -18
- package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +36 -36
- package/dist/components/ConversationList/index.d.ts +470 -470
- package/dist/components/FreeBeautyPanel/FreeBeautyPanel.js +257 -0
- package/dist/components/FreeBeautyPanel/FreeBeautyPanel.vue.d.ts +6 -0
- package/dist/components/FreeBeautyPanel/i18n/en-US/index.d.ts +15 -0
- package/dist/components/FreeBeautyPanel/i18n/en-US/index.js +19 -0
- package/dist/components/FreeBeautyPanel/i18n/index.d.ts +4 -0
- package/dist/components/FreeBeautyPanel/i18n/index.js +6 -0
- package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.d.ts +15 -0
- package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.js +19 -0
- package/dist/components/FreeBeautyPanel/index.d.ts +6 -0
- package/dist/components/FreeBeautyPanel/index.js +10 -0
- package/dist/components/LiveMonitorView/LiveMonitorView.js +11 -11
- package/dist/components/LiveScenePanel/index.d.ts +1 -2
- package/dist/components/LiveScenePanel/index.js +44 -43
- package/dist/components/LiveView/DefaultStreamViewUI.js +10 -10
- package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
- package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
- package/dist/components/LiveView/PlayerControl/MultiResolution.js +58 -64
- package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +1 -7
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +82 -83
- package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +6 -6
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +153 -194
- package/dist/components/LiveView/index.d.ts +37 -2
- package/dist/components/LiveView/index.js +29 -29
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +6 -3
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +3 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.js +51 -63
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +7 -3
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
- package/dist/components/MessageInput/TextEditor/index.js +45 -35
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
- package/dist/components/MessageInput/i18n/index.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +5 -1
- package/dist/components/MessageInput/index.d.ts +60 -30
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
- package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +63 -69
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/MessageList.js +8 -6
- package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
- package/dist/components/MessageList/i18n/en-US.js +66 -2
- package/dist/components/MessageList/i18n/index.d.ts +128 -0
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
- package/dist/components/MessageList/i18n/zh-CN.js +64 -0
- package/dist/components/MessageList/index.d.ts +2 -2
- package/dist/components/MicButton/index.js +13 -13
- package/dist/components/RoomParticipantList/ParticipantAction.js +78 -0
- package/dist/components/RoomParticipantList/ParticipantAction.vue.d.ts +17 -0
- package/dist/components/RoomParticipantList/ParticipantItem.js +82 -0
- package/dist/components/RoomParticipantList/ParticipantItem.vue.d.ts +27 -0
- package/dist/components/RoomParticipantList/PendingParticipantItem.js +75 -0
- package/dist/components/RoomParticipantList/PendingParticipantItem.vue.d.ts +16 -0
- package/dist/components/RoomParticipantList/RoomAction.js +89 -0
- package/dist/components/RoomParticipantList/RoomAction.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/i18n/en-US/index.d.ts +66 -0
- package/dist/components/RoomParticipantList/i18n/en-US/index.js +69 -0
- package/dist/components/RoomParticipantList/i18n/index.d.ts +2 -0
- package/dist/components/RoomParticipantList/i18n/index.js +6 -0
- package/dist/components/RoomParticipantList/i18n/zh-CN/index.d.ts +66 -0
- package/dist/components/RoomParticipantList/i18n/zh-CN/index.js +69 -0
- package/dist/components/RoomParticipantList/index.d.ts +2 -0
- package/dist/components/RoomParticipantList/index.js +171 -0
- package/dist/components/RoomParticipantList/index.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/useParticpantAction/index.d.ts +15 -0
- package/dist/components/RoomParticipantList/useParticpantAction/index.js +71 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.js +36 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.js +42 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.js +34 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.js +31 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.js +4 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.vue.d.ts +17 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.js +61 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.js +54 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.js +40 -0
- package/dist/components/RoomParticipantList/useRoomAction/index.d.ts +8 -0
- package/dist/components/RoomParticipantList/useRoomAction/index.js +20 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.d.ts +5 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.js +51 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.d.ts +8 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.js +60 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.d.ts +5 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.js +50 -0
- package/dist/components/RoomParticipantView/StreamPlay.js +74 -0
- package/dist/components/RoomParticipantView/StreamPlay.vue.d.ts +66 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.d.ts +56 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.js +94 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.d.ts +58 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.js +97 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.d.ts +46 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.js +100 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.d.ts +92 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.js +177 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/index.d.ts +119 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/index.js +298 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/types.d.ts +14 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/types.js +4 -0
- package/dist/components/RoomParticipantView/index.d.ts +99 -0
- package/dist/components/RoomParticipantView/index.js +32 -0
- package/dist/components/RoomParticipantView/index.vue.d.ts +34 -0
- package/dist/components/RoomView/ArrowStroke.js +43 -0
- package/dist/components/RoomView/ArrowStroke.vue.d.ts +20 -0
- package/dist/components/RoomView/GridLayout.js +119 -0
- package/dist/components/RoomView/GridLayout.vue.d.ts +20 -0
- package/dist/components/RoomView/SpeakerLayout.js +141 -0
- package/dist/components/RoomView/SpeakerLayout.vue.d.ts +32 -0
- package/dist/components/RoomView/index.d.ts +52 -0
- package/dist/components/RoomView/index.js +49 -0
- package/dist/components/RoomView/index.vue.d.ts +46 -0
- package/dist/components/RoomView/useRoomToolbar.d.ts +5 -0
- package/dist/components/RoomView/useRoomToolbar.js +36 -0
- package/dist/components/RoomView/useRoomView.d.ts +13 -0
- package/dist/components/RoomView/useRoomView.js +40 -0
- package/dist/components/RoomView/useStreamItemDimensions.d.ts +30 -0
- package/dist/components/RoomView/useStreamItemDimensions.js +57 -0
- package/dist/components/ScheduleRoomPanel/Datepicker.js +162 -0
- package/dist/components/ScheduleRoomPanel/Datepicker.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/DurationSelector.js +4 -0
- package/dist/components/ScheduleRoomPanel/DurationSelector.vue.d.ts +39 -0
- package/dist/components/ScheduleRoomPanel/RoomDetail.js +113 -0
- package/dist/components/ScheduleRoomPanel/RoomDetail.vue.d.ts +31 -0
- package/dist/components/ScheduleRoomPanel/RoomEdit.js +281 -0
- package/dist/components/ScheduleRoomPanel/RoomEdit.vue.d.ts +23 -0
- package/dist/components/ScheduleRoomPanel/RoomShare.js +110 -0
- package/dist/components/ScheduleRoomPanel/RoomShare.vue.d.ts +16 -0
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +385 -0
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.vue.d.ts +40 -0
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.js +345 -0
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.vue.d.ts +8 -0
- package/dist/components/ScheduleRoomPanel/Timepicker.js +65 -0
- package/dist/components/ScheduleRoomPanel/Timepicker.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/TimezoneSelector.js +4 -0
- package/dist/components/ScheduleRoomPanel/TimezoneSelector.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/i18n/en-US/index.d.ts +108 -0
- package/dist/components/ScheduleRoomPanel/i18n/en-US/index.js +111 -0
- package/dist/components/ScheduleRoomPanel/i18n/index.d.ts +4 -0
- package/dist/components/ScheduleRoomPanel/i18n/index.js +6 -0
- package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.d.ts +108 -0
- package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.js +111 -0
- package/dist/components/ScheduleRoomPanel/index.d.ts +34 -0
- package/dist/components/ScheduleRoomPanel/index.js +12 -0
- package/dist/components/ScheduleRoomPanel/type.d.ts +7 -0
- package/dist/components/ScheduleRoomPanel/type.js +1 -0
- package/dist/components/ScheduleRoomPanel/utils.d.ts +46 -0
- package/dist/components/ScheduleRoomPanel/utils.js +123 -0
- package/dist/components/Search/Search.vue.d.ts +12 -12
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
- package/dist/components/Search/SearchBar/SearchBar.js +56 -58
- package/dist/components/Search/index.d.ts +18 -18
- package/dist/components/StreamMixer/LocalMixer/index.js +25 -22
- package/dist/components/StreamMixer/index.d.ts +1 -2
- package/dist/components/StreamMixer/index.js +9 -8
- package/dist/components/StreamView/Layout/CustomLayout.js +53 -53
- package/dist/components/StreamView/Layout/CustomLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/FloatLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/GridLayout.js +47 -51
- package/dist/components/StreamView/Layout/GridLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/MeetingLayout.js +10 -10
- package/dist/components/StreamView/Layout/MeetingLayout.vue.d.ts +1 -1
- package/dist/components/StreamView/common/StreamList/index.vue.d.ts +1 -1
- package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.vue.d.ts +2 -2
- package/dist/components/StreamView/index.d.ts +90 -3
- package/dist/components/StreamView/index.js +4 -4
- package/dist/components/StreamView/index.vue.d.ts +1 -1
- package/dist/components/StreamView/manager/mediaManager.js +9 -9
- package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
- package/dist/components/UIKitModal/UIKitModal.js +156 -0
- package/dist/components/UIKitModal/index.d.ts +2 -0
- package/dist/components/UIKitModal/index.js +6 -0
- package/dist/components/UIKitModal/index.vue.d.ts +45 -0
- package/dist/components/UIKitModal/type.d.ts +21 -0
- package/dist/components/UIKitModal/type.js +1 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.d.ts +17 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.js +21 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/index.d.ts +4 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/index.js +6 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.d.ts +17 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.js +21 -0
- package/dist/components/UIKitModal/useRoomModal/index.d.ts +6 -0
- package/dist/components/UIKitModal/useRoomModal/index.js +11 -0
- package/dist/components/UIKitModal/useRoomModal/useRoomModal.d.ts +21 -0
- package/dist/components/UIKitModal/useRoomModal/useRoomModal.js +79 -0
- package/dist/components/UserList/AllUserActions/indexH5.js +21 -21
- package/dist/components/UserList/AllUserActions/useIndexHooks.d.ts +0 -2
- package/dist/components/UserList/AllUserActions/useIndexHooks.js +24 -25
- package/dist/components/UserList/UserItem/UserInfo/index.js +19 -19
- package/dist/components/UserPicker/UserPicker.js +1 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
- package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
- package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
- package/dist/components/UserPicker/i18n/en-US.js +2 -1
- package/dist/components/UserPicker/i18n/index.d.ts +2 -0
- package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
- package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
- package/dist/components/UserPicker/index.d.ts +2 -2
- package/dist/components/UserPicker/type.d.ts +1 -1
- package/dist/components/VideoSetting/CameraSelect.js +6 -7
- package/dist/components/VideoSetting/VideoMediaControl.js +45 -44
- package/dist/components/VideoSetting/VideoPreview.js +24 -25
- package/dist/components/VideoSetting/VideoProfile.js +22 -23
- package/dist/components/VideoSetting/VideoSettingTab.js +24 -24
- package/dist/components/VideoSetting/index.js +32 -3
- package/dist/components/VideoSettingPanel/CameraSelect.js +28 -25
- package/dist/components/VideoSettingPanel/VideoPreview.js +13 -13
- package/dist/components/VideoSettingPanel/VideoProfile.js +27 -27
- package/dist/components/VideoSettingPanel/i18n/en-US/index.d.ts +13 -10
- package/dist/components/VideoSettingPanel/i18n/en-US/index.js +13 -10
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.d.ts +13 -10
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +13 -10
- package/dist/components/VideoSettingPanel/index.d.ts +9 -0
- package/dist/components/VideoSettingPanel/index.js +56 -44
- package/dist/components/VideoSettingPanel/index.vue.d.ts +9 -0
- package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.js +169 -0
- package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue.d.ts +33 -0
- package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.d.ts +10 -0
- package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.js +14 -0
- package/dist/components/VirtualBackgroundPanel/i18n/index.d.ts +4 -0
- package/dist/components/VirtualBackgroundPanel/i18n/index.js +6 -0
- package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.d.ts +10 -0
- package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.js +14 -0
- package/dist/components/VirtualBackgroundPanel/index.d.ts +20 -0
- package/dist/components/VirtualBackgroundPanel/index.js +10 -0
- package/dist/hooks/useAudioControl.d.ts +3 -3
- package/dist/hooks/useAudioControl.js +32 -30
- package/dist/hooks/useRoomActions/index.d.ts +1 -1
- package/dist/hooks/useRoomActions/index.js +10 -11
- package/dist/hooks/useRoomActions/useRoomAudioAction.d.ts +1 -3
- package/dist/hooks/useRoomActions/useRoomAudioAction.js +30 -31
- package/dist/hooks/useRoomActions/useRoomScreenAction.d.ts +0 -2
- package/dist/hooks/useRoomActions/useRoomScreenAction.js +20 -20
- package/dist/hooks/useRoomActions/useRoomVideoAction.d.ts +1 -8
- package/dist/hooks/useRoomActions/useRoomVideoAction.js +26 -28
- package/dist/hooks/useRoomEngine.d.ts +2 -2
- package/dist/hooks/useUserActions/index.d.ts +7 -23
- package/dist/hooks/useUserActions/index.js +11 -11
- package/dist/hooks/useUserActions/useChangeNameCardAction/index.d.ts +1 -9
- package/dist/hooks/useUserActions/useKickUserAction.d.ts +1 -9
- package/dist/hooks/useUserActions/useSeatAction.d.ts +1 -1
- package/dist/hooks/useUserActions/useSeatAction.js +3 -3
- package/dist/hooks/useUserActions/useTransferOwnerAction.d.ts +2 -10
- package/dist/hooks/useUserActions/useTransferOwnerAction.js +22 -20
- package/dist/hooks/useUserActions/useVideoAction.d.ts +1 -9
- package/dist/index-7vNB_Vx8.js +64 -0
- package/dist/{index-BfIEeWMg.js → index-Do-2CngU.js} +1894 -1759
- package/dist/{index-DTi1fL-x.js → index-ZILx4LYk.js} +1210 -1512
- package/dist/index.d.ts +3 -6
- package/dist/index.js +255 -194
- package/dist/report/MetricsKey.d.ts +27 -14
- package/dist/report/MetricsKey.js +1 -1
- package/dist/report/dataReport.js +12 -8
- package/dist/states/ASRState/ASRState.d.ts +61 -0
- package/dist/states/ASRState/ASRState.js +79 -0
- package/dist/states/ASRState/index.d.ts +1 -0
- package/dist/states/ASRState/index.js +4 -0
- package/dist/states/BarrageState/BarrageState.d.ts +70 -44
- package/dist/states/BarrageState/BarrageState.js +29 -31
- package/dist/states/BarrageState/index.js +2 -3
- package/dist/states/BattleState/BattleState.d.ts +101 -5
- package/dist/states/C2CSettingState/C2CSettingState.d.ts +107 -0
- package/dist/states/CoGuestState.d.ts +53 -1
- package/dist/states/CoGuestState.js +15 -15
- package/dist/states/CoHostState/CoHostState.d.ts +120 -0
- package/dist/states/ContactListState/ContactListState.d.ts +56 -0
- package/dist/states/ConversationListState/ConversationListState.d.ts +36 -0
- package/dist/states/DeviceState/DeviceState.d.ts +68 -10
- package/dist/states/DeviceState/DeviceState.js +233 -189
- package/dist/states/DeviceState/mediaAbality.d.ts +2 -0
- package/dist/states/DeviceState/mediaAbality.js +11 -0
- package/dist/states/FreeBeautyState/FreeBeautyState.d.ts +11 -0
- package/dist/states/FreeBeautyState/FreeBeautyState.js +103 -0
- package/dist/states/FreeBeautyState/index.d.ts +1 -0
- package/dist/states/FreeBeautyState/index.js +4 -0
- package/dist/states/GroupSettingState/GroupSettingState.d.ts +59 -0
- package/dist/states/LiveAudienceState.d.ts +42 -4
- package/dist/states/LiveListState/LiveListState.d.ts +2 -2
- package/dist/states/LiveListState/LiveListState.js +5 -5
- package/dist/states/LiveMonitorState/index.d.ts +42 -0
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
- package/dist/states/LiveSeatState/index.d.ts +58 -8
- package/dist/states/LiveSeatState/index.js +20 -18
- package/dist/states/LiveSeatState/seatManager.d.ts +293 -6
- package/dist/states/LiveSeatState/seatManager.js +283 -0
- package/dist/states/LiveSeatState/store.d.ts +0 -2
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +13 -13
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +7 -7
- package/dist/states/LiveSeatState/usePlayStream/index.d.ts +4 -7
- package/dist/states/LiveSeatState/usePlayStream/index.js +65 -54
- package/dist/states/LoginState.d.ts +68 -0
- package/dist/states/LoginState.js +34 -39
- package/dist/states/MessageActionState/MessageActionState.d.ts +36 -2
- package/dist/states/MessageActionState/MessageActionState.js +142 -22
- package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
- package/dist/states/MessageInputState/MessageInputState.js +60 -59
- package/dist/states/MessageInputState/utils.d.ts +8 -1
- package/dist/states/MessageInputState/utils.js +30 -10
- package/dist/states/MessageListState/MessageListState.d.ts +39 -0
- package/dist/states/RoomParticipantState/callEventManager.d.ts +10 -0
- package/dist/states/RoomParticipantState/callEventManager.js +49 -0
- package/dist/states/RoomParticipantState/common.d.ts +14 -0
- package/dist/states/RoomParticipantState/common.js +76 -0
- package/dist/states/RoomParticipantState/index.d.ts +4 -0
- package/dist/states/RoomParticipantState/index.js +93 -0
- package/dist/states/RoomParticipantState/participantEventManager.d.ts +66 -0
- package/dist/states/RoomParticipantState/participantEventManager.js +326 -0
- package/dist/states/RoomParticipantState/participantManager.d.ts +311 -0
- package/dist/states/RoomParticipantState/participantManager.js +440 -0
- package/dist/states/RoomParticipantState/scheduleEventManager.d.ts +7 -0
- package/dist/states/RoomParticipantState/scheduleEventManager.js +37 -0
- package/dist/states/RoomParticipantState/store.d.ts +38 -0
- package/dist/states/RoomParticipantState/store.js +102 -0
- package/dist/states/RoomState/callManager.d.ts +43 -0
- package/dist/states/RoomState/callManager.js +208 -0
- package/dist/states/RoomState/common.d.ts +25 -0
- package/dist/states/RoomState/common.js +101 -0
- package/dist/states/RoomState/index.d.ts +8 -0
- package/dist/states/RoomState/index.js +52 -0
- package/dist/states/RoomState/roomManager.d.ts +35 -0
- package/dist/states/RoomState/roomManager.js +129 -0
- package/dist/states/RoomState/scheduleManager.d.ts +48 -0
- package/dist/states/RoomState/scheduleManager.js +174 -0
- package/dist/states/RoomState/store.d.ts +103 -0
- package/dist/states/RoomState/store.js +12 -0
- package/dist/states/SearchState.d.ts +47 -0
- package/dist/states/SeatStore.d.ts +59 -52
- package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
- package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
- package/dist/states/UIKitModalState/index.d.ts +1 -0
- package/dist/states/UIKitModalState/index.js +4 -0
- package/dist/states/UserState/index.js +22 -28
- package/dist/states/UserState/store.d.ts +1 -1
- package/dist/states/UserState/store.js +55 -62
- package/dist/states/UserState/userManager.d.ts +2 -2
- package/dist/states/UserState/userManager.js +23 -25
- package/dist/states/VideoMixerState/VideoMixerState.d.ts +57 -1
- package/dist/states/VideoMixerState/VideoMixerState.js +91 -90
- package/dist/states/VideoMixerState/index.d.ts +1 -0
- package/dist/states/VideoMixerState/index.js +2 -1
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.d.ts +52 -0
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.js +99 -0
- package/dist/states/VirtualBackgroundState/index.d.ts +1 -0
- package/dist/states/VirtualBackgroundState/index.js +4 -0
- package/dist/styles/index.css +1 -1
- package/dist/subEntry/common/base.d.ts +5 -0
- package/dist/subEntry/common/base.js +21 -0
- package/dist/subEntry/common/index.d.ts +2 -0
- package/dist/subEntry/common/index.js +29 -0
- package/dist/subEntry/common/rtc.d.ts +4 -0
- package/dist/subEntry/common/rtc.js +10 -0
- package/dist/subEntry/live/index.d.ts +4 -0
- package/dist/subEntry/live/index.js +200 -0
- package/dist/subEntry/live/live.d.ts +21 -0
- package/dist/subEntry/live/live.js +45 -0
- package/dist/{rtc → subEntry/live}/server.d.ts +1 -1
- package/dist/subEntry/live/server.js +97 -0
- package/dist/subEntry/room/index.d.ts +4 -0
- package/dist/subEntry/room/index.js +180 -0
- package/dist/subEntry/room/room.d.ts +11 -0
- package/dist/subEntry/room/room.js +25 -0
- package/dist/subEntry/room/server.d.ts +19 -0
- package/dist/subEntry/room/server.js +97 -0
- package/dist/types/asr.d.ts +29 -0
- package/dist/types/asr.js +4 -0
- package/dist/types/barrage.d.ts +83 -0
- package/dist/types/barrage.js +4 -0
- package/dist/types/beauty.d.ts +9 -0
- package/dist/types/beauty.js +4 -0
- package/dist/types/device.d.ts +0 -1
- package/dist/types/index.d.ts +7 -3
- package/dist/types/index.js +125 -108
- package/dist/types/participant.d.ts +243 -0
- package/dist/types/participant.js +10 -0
- package/dist/types/room.d.ts +202 -55
- package/dist/types/room.js +5 -3
- package/dist/types/virtualBackground.d.ts +14 -0
- package/dist/types/virtualBackground.js +5 -0
- package/dist/utils/call.d.ts +1 -1
- package/dist/utils/call.js +78 -79
- package/dist/utils/compare.d.ts +10 -0
- package/dist/utils/compare.js +12 -0
- package/package.json +11 -7
- package/src/baseComp/AudioIcon.vue +11 -3
- package/src/chat/server.ts +0 -1
- package/src/components/AudioSetting/AudioMediaControl.vue +10 -9
- package/src/components/AudioSetting/AudioRequestDialog.vue +11 -11
- package/src/components/AudioSetting/AudioSettingTab.vue +14 -14
- package/src/components/AudioSetting/MicrophoneSelect.vue +11 -11
- package/src/components/AudioSetting/SpeakerSelect.vue +10 -11
- package/src/components/AudioSetting/index.ts +1 -1
- package/src/components/AudioSetting/index.vue +4 -7
- package/src/components/AudioSettingPanel/MicrophoneSelect.vue +77 -0
- package/src/components/AudioSettingPanel/SpeakerSelect.vue +78 -0
- package/src/components/AudioSettingPanel/i18n/en-US/index.ts +12 -6
- package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +12 -6
- package/src/components/AudioSettingPanel/index.ts +3 -1
- package/src/components/AudioSettingPanel/index.vue +150 -122
- package/src/components/BarrageList/BarrageList.vue +1 -1
- package/src/components/BarrageList/BarrageListH5.vue +1 -1
- package/src/components/BarrageList/BarrageListState.ts +1 -1
- package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
- package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +2 -2
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -1
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
- package/src/components/ContactList/ContactList.vue +1 -1
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
- package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -8
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
- package/src/components/ConversationList/ConversationList.vue +2 -2
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +4 -4
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -1
- package/src/components/FreeBeautyPanel/FreeBeautyPanel.vue +618 -0
- package/src/components/FreeBeautyPanel/i18n/en-US/index.ts +16 -0
- package/src/components/FreeBeautyPanel/i18n/index.ts +4 -0
- package/src/components/FreeBeautyPanel/i18n/zh-CN/index.ts +16 -0
- package/src/components/FreeBeautyPanel/index.ts +11 -0
- package/src/components/LiveScenePanel/index.ts +4 -1
- package/src/components/LiveView/PlayerControl/AudioControl.vue +72 -80
- package/src/components/LiveView/PlayerControl/MultiResolution.vue +29 -26
- package/src/components/LiveView/PlayerControl/PlayerControl.vue +10 -36
- package/src/components/LiveView/PlayerControl/PlayerControlState.ts +108 -286
- package/src/components/LiveView/index.ts +2 -1
- package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +8 -6
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +7 -3
- package/src/components/MessageInput/MessageInput.module.scss +1 -0
- package/src/components/MessageInput/MessageInput.vue +3 -1
- package/src/components/MessageInput/TextEditor/EditorCore.ts +17 -28
- package/src/components/MessageInput/TextEditor/TextEditor.vue +24 -4
- package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
- package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
- package/src/components/MessageInput/i18n/zh-CN.ts +4 -0
- package/src/components/MessageInput/types.d.ts +1 -0
- package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +5 -3
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
- package/src/components/MessageList/Message/Message.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -8
- package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
- package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
- package/src/components/MessageList/MessageList.vue +2 -0
- package/src/components/MessageList/i18n/en-US.ts +66 -0
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +66 -0
- package/src/components/RoomParticipantList/ParticipantAction.vue +196 -0
- package/src/components/RoomParticipantList/ParticipantItem.vue +205 -0
- package/src/components/RoomParticipantList/PendingParticipantItem.vue +142 -0
- package/src/components/RoomParticipantList/RoomAction.vue +141 -0
- package/src/components/RoomParticipantList/i18n/en-US/index.ts +74 -0
- package/src/components/RoomParticipantList/i18n/index.ts +2 -0
- package/src/components/RoomParticipantList/i18n/zh-CN/index.ts +74 -0
- package/src/components/RoomParticipantList/index.ts +10 -0
- package/src/components/RoomParticipantList/index.vue +285 -0
- package/src/components/RoomParticipantList/useParticpantAction/index.ts +94 -0
- package/src/components/RoomParticipantList/useParticpantAction/useAdminAction.ts +56 -0
- package/src/components/RoomParticipantList/useParticpantAction/useAudioAction.ts +66 -0
- package/src/components/RoomParticipantList/useParticpantAction/useKickAction.ts +46 -0
- package/src/components/RoomParticipantList/useParticpantAction/useMessageAction.ts +42 -0
- package/src/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.vue +51 -0
- package/src/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.ts +80 -0
- package/src/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.ts +77 -0
- package/src/components/RoomParticipantList/useParticpantAction/useVideoAction.ts +59 -0
- package/src/components/RoomParticipantList/useRoomAction/index.ts +23 -0
- package/src/components/RoomParticipantList/useRoomAction/useRoomAudioAction.ts +67 -0
- package/src/components/RoomParticipantList/useRoomAction/useRoomScreenAction.ts +69 -0
- package/src/components/RoomParticipantList/useRoomAction/useRoomVideoAction.ts +66 -0
- package/src/components/RoomParticipantView/StreamPlay.vue +127 -0
- package/src/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.ts +174 -0
- package/src/components/RoomParticipantView/StreamPlayManager/README.md +768 -0
- package/src/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.ts +209 -0
- package/src/components/RoomParticipantView/StreamPlayManager/StreamPlayer.ts +183 -0
- package/src/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.ts +357 -0
- package/src/components/RoomParticipantView/StreamPlayManager/index.ts +501 -0
- package/src/components/RoomParticipantView/StreamPlayManager/types.ts +13 -0
- package/src/components/RoomParticipantView/index.ts +5 -0
- package/src/components/RoomParticipantView/index.vue +43 -0
- package/src/components/RoomView/ArrowStroke.vue +265 -0
- package/src/components/RoomView/GridLayout.vue +236 -0
- package/src/components/RoomView/SpeakerLayout.vue +400 -0
- package/src/components/RoomView/index.ts +5 -0
- package/src/components/RoomView/index.vue +58 -0
- package/src/components/RoomView/useRoomToolbar.ts +97 -0
- package/src/components/RoomView/useRoomView.ts +48 -0
- package/src/components/RoomView/useStreamItemDimensions.ts +162 -0
- package/src/components/ScheduleRoomPanel/Datepicker.vue +332 -0
- package/src/components/ScheduleRoomPanel/DurationSelector.vue +92 -0
- package/src/components/ScheduleRoomPanel/RoomDetail.vue +240 -0
- package/src/components/ScheduleRoomPanel/RoomEdit.vue +473 -0
- package/src/components/ScheduleRoomPanel/RoomShare.vue +216 -0
- package/src/components/ScheduleRoomPanel/ScheduleRoomPanel.vue +625 -0
- package/src/components/ScheduleRoomPanel/ScheduledRoomList.vue +622 -0
- package/src/components/ScheduleRoomPanel/Timepicker.vue +86 -0
- package/src/components/ScheduleRoomPanel/TimezoneSelector.vue +70 -0
- package/src/components/ScheduleRoomPanel/i18n/en-US/index.ts +116 -0
- package/src/components/ScheduleRoomPanel/i18n/index.ts +4 -0
- package/src/components/ScheduleRoomPanel/i18n/zh-CN/index.ts +116 -0
- package/src/components/ScheduleRoomPanel/index.ts +14 -0
- package/src/components/ScheduleRoomPanel/type.ts +7 -0
- package/src/components/ScheduleRoomPanel/utils.ts +281 -0
- package/src/components/Search/Search.vue +1 -1
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
- package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
- package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
- package/src/components/Search/SearchBar/SearchBar.scss +3 -6
- package/src/components/Search/SearchBar/SearchBar.vue +1 -1
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
- package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
- package/src/components/Search/SearchResults/SearchResults.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
- package/src/components/StreamMixer/LocalMixer/index.vue +6 -1
- package/src/components/StreamMixer/index.ts +4 -1
- package/src/components/StreamView/Layout/CustomLayout.vue +40 -36
- package/src/components/StreamView/Layout/GridLayout.vue +31 -40
- package/src/components/StreamView/Layout/MeetingLayout.vue +34 -35
- package/src/components/StreamView/index.ts +5 -3
- package/src/components/StreamView/manager/mediaManager.ts +1 -2
- package/src/components/UIKitModal/UIKitModal.ts +71 -0
- package/src/components/UIKitModal/index.scss +134 -0
- package/src/components/UIKitModal/index.ts +2 -0
- package/src/components/UIKitModal/index.vue +160 -0
- package/src/components/UIKitModal/type.ts +24 -0
- package/src/components/UIKitModal/useRoomModal/i18n/en-US/index.ts +19 -0
- package/src/components/UIKitModal/useRoomModal/i18n/index.ts +4 -0
- package/src/components/UIKitModal/useRoomModal/i18n/zh-CN/index.ts +18 -0
- package/src/components/UIKitModal/useRoomModal/index.ts +11 -0
- package/src/components/UIKitModal/useRoomModal/useRoomModal.ts +103 -0
- package/src/components/UserList/AllUserActions/indexH5.vue +3 -3
- package/src/components/UserList/AllUserActions/useIndexHooks.ts +1 -1
- package/src/components/UserList/UserItem/UserInfo/index.vue +17 -12
- package/src/components/UserPicker/UserPicker.vue +1 -1
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -0
- package/src/components/UserPicker/hooks/useSearchFilter.ts +27 -18
- package/src/components/UserPicker/i18n/en-US.ts +1 -0
- package/src/components/UserPicker/i18n/zh-CN.ts +1 -0
- package/src/components/UserPicker/type.ts +1 -1
- package/src/components/VideoSetting/CameraSelect.vue +11 -11
- package/src/components/VideoSetting/VideoMediaControl.vue +22 -21
- package/src/components/VideoSetting/VideoPreview.vue +14 -8
- package/src/components/VideoSetting/VideoProfile.vue +13 -15
- package/src/components/VideoSetting/VideoSettingTab.vue +9 -9
- package/src/components/VideoSettingPanel/CameraSelect.vue +8 -3
- package/src/components/VideoSettingPanel/VideoPreview.vue +4 -4
- package/src/components/VideoSettingPanel/VideoProfile.vue +6 -6
- package/src/components/VideoSettingPanel/i18n/en-US/index.ts +13 -10
- package/src/components/VideoSettingPanel/i18n/zh-CN/index.ts +13 -10
- package/src/components/VideoSettingPanel/index.ts +2 -2
- package/src/components/VideoSettingPanel/index.vue +73 -74
- package/src/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue +337 -0
- package/src/components/VirtualBackgroundPanel/assets/blurred-background.png +0 -0
- package/src/components/VirtualBackgroundPanel/assets/close-virtual-background.png +0 -0
- package/src/components/VirtualBackgroundPanel/i18n/en-US/index.ts +11 -0
- package/src/components/VirtualBackgroundPanel/i18n/index.ts +4 -0
- package/src/components/VirtualBackgroundPanel/i18n/zh-CN/index.ts +11 -0
- package/src/components/VirtualBackgroundPanel/index.ts +11 -0
- package/src/hooks/useAudioControl.ts +17 -4
- package/src/hooks/useRoomActions/index.ts +3 -2
- package/src/hooks/useRoomActions/useRoomAudioAction.ts +11 -12
- package/src/hooks/useRoomActions/useRoomScreenAction.ts +12 -13
- package/src/hooks/useRoomActions/useRoomVideoAction.ts +10 -13
- package/src/hooks/useRoomEngine.ts +3 -2
- package/src/hooks/useUserActions/index.ts +38 -43
- package/src/hooks/useUserActions/useSeatAction.ts +10 -10
- package/src/hooks/useUserActions/useTransferOwnerAction.ts +10 -10
- package/src/index.ts +7 -9
- package/src/report/MetricsKey.ts +28 -14
- package/src/report/dataReport.ts +13 -9
- package/src/subEntry/common/base.ts +6 -0
- package/src/subEntry/common/index.ts +2 -0
- package/src/subEntry/common/rtc.ts +5 -0
- package/src/subEntry/live/index.ts +8 -0
- package/src/subEntry/live/live.ts +23 -0
- package/src/{rtc → subEntry/live}/server.ts +5 -1
- package/src/subEntry/room/index.ts +8 -0
- package/src/subEntry/room/room.ts +12 -0
- package/src/subEntry/room/server.ts +123 -0
- package/src/types/asr.ts +31 -0
- package/src/types/barrage.ts +86 -0
- package/src/types/beauty.ts +10 -0
- package/src/types/device.ts +3 -5
- package/src/types/index.ts +9 -3
- package/src/types/participant.ts +155 -0
- package/src/types/room.ts +122 -57
- package/src/types/user.ts +2 -0
- package/src/types/virtualBackground.ts +17 -0
- package/src/utils/call.ts +26 -27
- package/src/utils/compare.ts +34 -0
- package/tsconfig.eslint.json +15 -0
- package/tsconfig.json +7 -1
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +0 -89
- package/dist/index-DTq2ybsB.js +0 -33
- package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +0 -32
- package/dist/rtc/index.d.ts +0 -501
- package/dist/rtc/index.js +0 -67
- package/dist/rtc/server.js +0 -92
- package/dist/states/RoomState.d.ts +0 -173
- package/dist/states/RoomState.js +0 -272
- package/src/rtc/index.ts +0 -100
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="['participant-item', { 'hovered': isHovered }]"
|
|
4
|
+
@mouseenter="handleMouseEnter"
|
|
5
|
+
@mouseleave="handleMouseLeave"
|
|
6
|
+
>
|
|
7
|
+
<div class="user-info">
|
|
8
|
+
<Avatar :src="participant.avatarUrl" :size="40" />
|
|
9
|
+
<span class="user-name">{{ displayName }}</span>
|
|
10
|
+
<div class="role-info">
|
|
11
|
+
<IconUser
|
|
12
|
+
v-if="isOwner || isAdmin"
|
|
13
|
+
size="20"
|
|
14
|
+
:class="isAdmin ? 'admin-icon' : 'master-icon'"
|
|
15
|
+
/>
|
|
16
|
+
<div
|
|
17
|
+
:class="`user-extra-info ${isAdmin ? 'user-extra-info-admin' : ''}`"
|
|
18
|
+
>
|
|
19
|
+
{{ roleLabel }}
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div v-if="!isHovered" class="member-av-state">
|
|
25
|
+
<component
|
|
26
|
+
:is="item.icon"
|
|
27
|
+
v-for="(item, index) in iconList"
|
|
28
|
+
:key="index"
|
|
29
|
+
:class="['state-icon']"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div v-if="isHovered" class="action-area">
|
|
34
|
+
<slot name="actions" :participant="participant" />
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script setup lang="ts">
|
|
40
|
+
import { ref, computed, defineOptions } from 'vue';
|
|
41
|
+
import { IconUser, useUIKit,
|
|
42
|
+
IconVideoOpen,
|
|
43
|
+
IconVideoClose,
|
|
44
|
+
IconAudioOpen,
|
|
45
|
+
IconAudioClose,
|
|
46
|
+
IconScreenOpen,
|
|
47
|
+
} from '@tencentcloud/uikit-base-component-vue3';
|
|
48
|
+
import { useRoomParticipantState } from '../../states/RoomParticipantState';
|
|
49
|
+
import { RoomParticipantRole, DeviceStatus } from '../../types';
|
|
50
|
+
import { Avatar } from '../Avatar';
|
|
51
|
+
import type { RoomParticipant } from '../../types/participant';
|
|
52
|
+
|
|
53
|
+
defineOptions({
|
|
54
|
+
name: 'ParticipantItem',
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
interface Props {
|
|
58
|
+
participant: RoomParticipant;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const props = defineProps<Props>();
|
|
62
|
+
|
|
63
|
+
const { localParticipant } = useRoomParticipantState();
|
|
64
|
+
|
|
65
|
+
const { t } = useUIKit();
|
|
66
|
+
|
|
67
|
+
const displayName = computed(() => props.participant?.nameCard || props.participant?.userName || props.participant?.userId);
|
|
68
|
+
|
|
69
|
+
const isOwner = computed(() => props.participant?.role === RoomParticipantRole.Owner);
|
|
70
|
+
const isAdmin = computed(() => props.participant?.role === RoomParticipantRole.Admin);
|
|
71
|
+
const isMe = computed(() => localParticipant.value?.userId === props.participant.userId);
|
|
72
|
+
|
|
73
|
+
const roleLabel = computed(() => {
|
|
74
|
+
if (isOwner.value && isMe.value) {
|
|
75
|
+
return `${t('ParticipantList.Host')}, ${t('ParticipantList.Me')}`;
|
|
76
|
+
}
|
|
77
|
+
if (isOwner.value) {
|
|
78
|
+
return t('ParticipantList.Host');
|
|
79
|
+
}
|
|
80
|
+
if (isAdmin.value && isMe.value) {
|
|
81
|
+
return `${t('ParticipantList.Admin')}, ${t('ParticipantList.Me')}`;
|
|
82
|
+
}
|
|
83
|
+
if (isAdmin.value) {
|
|
84
|
+
return t('ParticipantList.Admin');
|
|
85
|
+
}
|
|
86
|
+
if (isMe.value) {
|
|
87
|
+
return t('ParticipantList.Me');
|
|
88
|
+
}
|
|
89
|
+
return '';
|
|
90
|
+
});
|
|
91
|
+
const isHovered = ref(false);
|
|
92
|
+
|
|
93
|
+
const handleMouseEnter = () => {
|
|
94
|
+
isHovered.value = true;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const handleMouseLeave = () => {
|
|
98
|
+
isHovered.value = false;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const iconList = computed(() => {
|
|
102
|
+
const list = [];
|
|
103
|
+
if (props.participant?.screenShareStatus && props.participant?.screenShareStatus === DeviceStatus.On) {
|
|
104
|
+
list.push({ icon: IconScreenOpen });
|
|
105
|
+
}
|
|
106
|
+
list.push({
|
|
107
|
+
icon: props.participant?.microphoneStatus && props.participant?.microphoneStatus === DeviceStatus.On ? IconAudioOpen : IconAudioClose,
|
|
108
|
+
});
|
|
109
|
+
list.push({
|
|
110
|
+
icon: props.participant?.cameraStatus && props.participant?.cameraStatus === DeviceStatus.On ? IconVideoOpen : IconVideoClose,
|
|
111
|
+
});
|
|
112
|
+
return list;
|
|
113
|
+
});
|
|
114
|
+
</script>
|
|
115
|
+
|
|
116
|
+
<style scoped lang="scss">
|
|
117
|
+
.participant-item {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
padding: 0px 20px;
|
|
121
|
+
height: 52px;
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
gap: 12px;
|
|
124
|
+
position: relative;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
|
|
127
|
+
&.hovered {
|
|
128
|
+
background: var(--list-color-hover);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.user-info {
|
|
133
|
+
flex: 1;
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: row;
|
|
136
|
+
align-items: center;
|
|
137
|
+
min-width: 0;
|
|
138
|
+
|
|
139
|
+
.user-name {
|
|
140
|
+
min-width: 0;
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
font-weight: 500;
|
|
143
|
+
color: var(--text-color-secondary);
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
margin-left: 12px;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.role-info {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
margin-left: 8px;
|
|
154
|
+
|
|
155
|
+
.master-icon,
|
|
156
|
+
.admin-icon {
|
|
157
|
+
display: flex;
|
|
158
|
+
color: var(--text-color-link);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.admin-icon {
|
|
162
|
+
color: var(--text-color-warning);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.user-extra-info,
|
|
166
|
+
.user-extra-info-admin {
|
|
167
|
+
margin-left: 4px;
|
|
168
|
+
font-size: 14px;
|
|
169
|
+
font-weight: 400;
|
|
170
|
+
line-height: 20px;
|
|
171
|
+
color: var(--text-color-link);
|
|
172
|
+
text-overflow: ellipsis;
|
|
173
|
+
white-space: nowrap;
|
|
174
|
+
overflow: hidden;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.user-extra-info-admin {
|
|
178
|
+
color: var(--text-color-warning);
|
|
179
|
+
transition: none;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.member-av-state {
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
height: 100%;
|
|
188
|
+
color: var(--uikit-color-gray-7);
|
|
189
|
+
|
|
190
|
+
.state-icon {
|
|
191
|
+
margin-left: 16px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.disable-icon {
|
|
195
|
+
opacity: 0.4;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.action-area {
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
gap: 8px;
|
|
203
|
+
margin-left: auto;
|
|
204
|
+
}
|
|
205
|
+
</style>
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="{ 'unjoined-user-item': true, 'hovered': isHovered }"
|
|
4
|
+
@mouseenter="handleMouseEnter"
|
|
5
|
+
@mouseleave="handleMouseLeave"
|
|
6
|
+
>
|
|
7
|
+
<div class="user-info">
|
|
8
|
+
<Avatar :src="userInfo.avatarUrl" :size="40" />
|
|
9
|
+
<span class="user-name">{{ displayName }}</span>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<div class="status-container">
|
|
13
|
+
<span v-if="showRejectedMessage">{{ t('ParticipantList.NotJoin') }}</span>
|
|
14
|
+
<span v-if="userInfo.roomStatus === RoomParticipantStatus.InCalling">{{ t('ParticipantList.Calling') }}</span>
|
|
15
|
+
<TUIButton
|
|
16
|
+
v-else
|
|
17
|
+
type="primary"
|
|
18
|
+
@click="handleInvite({ userId: userInfo.userId })"
|
|
19
|
+
>
|
|
20
|
+
{{ t('ParticipantList.Call') }}
|
|
21
|
+
</TUIButton>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script setup lang="ts">
|
|
27
|
+
import { ref, computed, defineOptions, watch } from 'vue';
|
|
28
|
+
import { useUIKit, TUIButton, TUIToast } from '@tencentcloud/uikit-base-component-vue3';
|
|
29
|
+
import { useRoomState } from '../../states/RoomState';
|
|
30
|
+
import { RoomParticipantStatus } from '../../types';
|
|
31
|
+
import { Avatar } from '../Avatar';
|
|
32
|
+
import type { RoomParticipant } from '../../types';
|
|
33
|
+
|
|
34
|
+
defineOptions({
|
|
35
|
+
name: 'ParticipantItem',
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
interface Props {
|
|
39
|
+
userInfo: RoomParticipant;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const props = defineProps<Props>();
|
|
43
|
+
|
|
44
|
+
const { currentRoom, callUserToRoom } = useRoomState();
|
|
45
|
+
const { t } = useUIKit();
|
|
46
|
+
|
|
47
|
+
const displayName = computed(() => props.userInfo?.userName || props.userInfo?.userId);
|
|
48
|
+
|
|
49
|
+
const isHovered = ref(false);
|
|
50
|
+
const showRejectedMessage = ref(false);
|
|
51
|
+
let rejectedTimer: ReturnType<typeof setTimeout> | null = null;
|
|
52
|
+
|
|
53
|
+
watch(
|
|
54
|
+
() => props.userInfo.roomStatus,
|
|
55
|
+
(newStatus) => {
|
|
56
|
+
if (rejectedTimer) {
|
|
57
|
+
clearTimeout(rejectedTimer);
|
|
58
|
+
rejectedTimer = null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (newStatus === RoomParticipantStatus.CallRejected) {
|
|
62
|
+
showRejectedMessage.value = true;
|
|
63
|
+
rejectedTimer = setTimeout(() => {
|
|
64
|
+
showRejectedMessage.value = false;
|
|
65
|
+
rejectedTimer = null;
|
|
66
|
+
}, 3000);
|
|
67
|
+
} else {
|
|
68
|
+
showRejectedMessage.value = false;
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
const handleMouseEnter = () => {
|
|
74
|
+
isHovered.value = true;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const handleMouseLeave = () => {
|
|
78
|
+
isHovered.value = false;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
async function handleInvite({ userId }: { userId: string }) {
|
|
82
|
+
if (!currentRoom.value?.roomId) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
try {
|
|
86
|
+
await callUserToRoom({
|
|
87
|
+
roomId: currentRoom.value?.roomId || '',
|
|
88
|
+
userIdList: [userId],
|
|
89
|
+
timeout: 60,
|
|
90
|
+
});
|
|
91
|
+
TUIToast.success({ message: t('ParticipantList.InviteSuccess') });
|
|
92
|
+
} catch (error) {
|
|
93
|
+
TUIToast.error({ message: t('ParticipantList.InviteFailed') });
|
|
94
|
+
console.error('Failed to invite user to room:', error);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<style scoped lang="scss">
|
|
100
|
+
.unjoined-user-item {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
padding: 0px 20px;
|
|
104
|
+
height: 52px;
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
gap: 12px;
|
|
107
|
+
position: relative;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
font-size: 14px;
|
|
110
|
+
font-weight: 500;
|
|
111
|
+
color: var(--text-color-secondary);
|
|
112
|
+
|
|
113
|
+
&.hovered {
|
|
114
|
+
background: var(--list-color-hover);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.user-info {
|
|
119
|
+
flex: 1;
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: row;
|
|
122
|
+
align-items: center;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.user-name {
|
|
126
|
+
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
margin-left: 12px;
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.status-container {
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: 8px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.status-text {
|
|
140
|
+
font-size: 12px;
|
|
141
|
+
}
|
|
142
|
+
</style>
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="canOperate" class="room-action-container">
|
|
3
|
+
<TUIButton
|
|
4
|
+
type="primary"
|
|
5
|
+
color="gray"
|
|
6
|
+
style="width: 112px"
|
|
7
|
+
@click="roomAudioAction.handler"
|
|
8
|
+
>
|
|
9
|
+
{{ roomAudioAction.label }}
|
|
10
|
+
</TUIButton>
|
|
11
|
+
<TUIButton
|
|
12
|
+
type="primary"
|
|
13
|
+
color="gray"
|
|
14
|
+
style="width: 112px"
|
|
15
|
+
@click="roomVideoAction.handler"
|
|
16
|
+
>
|
|
17
|
+
{{ roomVideoAction.label }}
|
|
18
|
+
</TUIButton>
|
|
19
|
+
<div ref="moreContainerRef" class="more-container">
|
|
20
|
+
<TUIButton
|
|
21
|
+
type="primary"
|
|
22
|
+
color="gray"
|
|
23
|
+
style="width: 112px"
|
|
24
|
+
@click="toggleClickMoreBtn"
|
|
25
|
+
>
|
|
26
|
+
{{ t('ParticipantList.More') }}
|
|
27
|
+
<IconArrowUp
|
|
28
|
+
size="12"
|
|
29
|
+
:class="['more-arrow', showMoreControl ? 'down' : 'up']"
|
|
30
|
+
/>
|
|
31
|
+
</TUIButton>
|
|
32
|
+
<div v-show="showMoreControl" class="drop-down">
|
|
33
|
+
<div
|
|
34
|
+
v-for="item in moreControlList"
|
|
35
|
+
:key="item.key"
|
|
36
|
+
class="user-operate-item"
|
|
37
|
+
@click="item.handler"
|
|
38
|
+
>
|
|
39
|
+
<TUIIcon v-if="item.icon" :icon="item.icon" />
|
|
40
|
+
<span class="operate-text">{{ item.label }}</span>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<script setup lang="ts">
|
|
48
|
+
import { ref, onMounted, onUnmounted, computed } from 'vue';
|
|
49
|
+
import {
|
|
50
|
+
TUIButton,
|
|
51
|
+
IconArrowUp,
|
|
52
|
+
useUIKit,
|
|
53
|
+
TUIIcon,
|
|
54
|
+
} from '@tencentcloud/uikit-base-component-vue3';
|
|
55
|
+
import useRoomActions from './useRoomAction';
|
|
56
|
+
|
|
57
|
+
const { t } = useUIKit();
|
|
58
|
+
const { canOperate, roomActionList } = useRoomActions();
|
|
59
|
+
|
|
60
|
+
const roomAudioAction = computed(() => roomActionList.value[0]);
|
|
61
|
+
const roomVideoAction = computed(() => roomActionList.value[1]);
|
|
62
|
+
const moreControlList = computed(() => roomActionList.value.slice(2));
|
|
63
|
+
|
|
64
|
+
const showMoreControl = ref(false);
|
|
65
|
+
const moreContainerRef = ref<HTMLElement | null>(null);
|
|
66
|
+
|
|
67
|
+
function toggleClickMoreBtn() {
|
|
68
|
+
showMoreControl.value = !showMoreControl.value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const handleClickOutside = (event: MouseEvent) => {
|
|
72
|
+
if (!showMoreControl.value) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const target = event.target as Node;
|
|
77
|
+
if (moreContainerRef.value && !moreContainerRef.value.contains(target)) {
|
|
78
|
+
showMoreControl.value = false;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
onMounted(() => {
|
|
83
|
+
document.addEventListener('click', handleClickOutside);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
onUnmounted(() => {
|
|
87
|
+
document.removeEventListener('click', handleClickOutside);
|
|
88
|
+
});
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
<style scoped lang="scss">
|
|
92
|
+
.room-action-container {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 12px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.more-container {
|
|
99
|
+
position: relative;
|
|
100
|
+
display: flex;
|
|
101
|
+
|
|
102
|
+
.more-arrow {
|
|
103
|
+
margin-left: 2px;
|
|
104
|
+
|
|
105
|
+
&.down {
|
|
106
|
+
transform: rotate(180deg);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.drop-down {
|
|
111
|
+
position: absolute;
|
|
112
|
+
right: 3px;
|
|
113
|
+
bottom: 40px;
|
|
114
|
+
z-index: 1;
|
|
115
|
+
padding: 8px 7px;
|
|
116
|
+
background-color: var(--dropdown-color-default);
|
|
117
|
+
border-radius: 8px;
|
|
118
|
+
box-shadow:
|
|
119
|
+
0 3px 8px var(--uikit-color-black-8),
|
|
120
|
+
0 6px 40px var(--uikit-color-black-8);
|
|
121
|
+
|
|
122
|
+
.user-operate-item {
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
height: 20px;
|
|
126
|
+
margin: 5px 7px;
|
|
127
|
+
color: var(--text-color-secondary);
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
|
|
130
|
+
.operate-text {
|
|
131
|
+
margin-left: 8px;
|
|
132
|
+
font-family: 'PingFang SC';
|
|
133
|
+
font-size: 14px;
|
|
134
|
+
font-weight: 400;
|
|
135
|
+
line-height: 22px;
|
|
136
|
+
white-space: nowrap;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
</style>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export const resource = {
|
|
2
|
+
ParticipantList: {
|
|
3
|
+
Members: 'Members',
|
|
4
|
+
Search: 'Search Member',
|
|
5
|
+
Joined: 'Joined',
|
|
6
|
+
NotJoined: 'Not Joined',
|
|
7
|
+
NoMember: 'No members',
|
|
8
|
+
Call: 'Call',
|
|
9
|
+
Calling: 'Calling...',
|
|
10
|
+
CallAll: 'Call all',
|
|
11
|
+
NotJoin: 'Not join now',
|
|
12
|
+
|
|
13
|
+
Host: 'Host',
|
|
14
|
+
Me: 'Me',
|
|
15
|
+
Admin: 'Admin',
|
|
16
|
+
|
|
17
|
+
More: 'More',
|
|
18
|
+
Mute: 'Mute',
|
|
19
|
+
Unmute: 'Unmute',
|
|
20
|
+
DisableVideo: 'Disable video',
|
|
21
|
+
EnableVideo: 'Enable video',
|
|
22
|
+
EnableChat: 'Enable chat',
|
|
23
|
+
DisableChat: 'Disable chat',
|
|
24
|
+
SetAdmin: 'Set as admin',
|
|
25
|
+
RemoveAdmin: 'Remove admin',
|
|
26
|
+
ChangeName: 'Change name',
|
|
27
|
+
TransferHost: 'Transfer host',
|
|
28
|
+
KickOut: 'Kick out',
|
|
29
|
+
InputUserName: 'Please enter user name',
|
|
30
|
+
|
|
31
|
+
MuteAll: 'Mute all',
|
|
32
|
+
UnmuteAll: 'Unmute all',
|
|
33
|
+
MuteAllTip: 'All current and new members will be muted',
|
|
34
|
+
UnmuteAllDesc: 'Users will be able to turn on the microphone after unlocking',
|
|
35
|
+
MicDisabledTip: 'Members will not be able to turn on the microphone',
|
|
36
|
+
AudioDisabled: 'All audios muted',
|
|
37
|
+
AudioEnabled: 'All audios unmuted',
|
|
38
|
+
|
|
39
|
+
DisableAllVideo: 'Disable all videos',
|
|
40
|
+
EnableAllVideo: 'Enable all videos',
|
|
41
|
+
DisableAllVideoTip: 'All current and new members will be banned from using the camera',
|
|
42
|
+
EnableAllVideoDesc: 'Users will be able to turn on the camera after unlocking',
|
|
43
|
+
CameraDisabledTip: 'Members will not be able to turn on the camera',
|
|
44
|
+
VideoDisabled: 'All videos disabled',
|
|
45
|
+
VideoEnabled: 'All videos enabled',
|
|
46
|
+
|
|
47
|
+
AllCanShare: 'All members can share screen',
|
|
48
|
+
HostAdminOnlyShare: 'Screen sharing for host/admin only',
|
|
49
|
+
ConfirmHostAdminOnlyShare: 'Enable screen sharing for host/admin only?',
|
|
50
|
+
TerminateOtherShare: 'Another member is currently sharing the screen. Their sharing will be terminated if you enable this.',
|
|
51
|
+
|
|
52
|
+
Confirm: 'Confirm',
|
|
53
|
+
Cancel: 'Cancel',
|
|
54
|
+
Note: 'Note',
|
|
55
|
+
ConfirmTransfer: 'Confirm transfer',
|
|
56
|
+
|
|
57
|
+
InviteMicSent: 'An invitation to turn on the microphone has been sent to {{ name }}',
|
|
58
|
+
InviteCameraSent: 'An invitation to turn on the camera has been sent to {{ name }}',
|
|
59
|
+
SetAdminSuccess: '{{ name }} has been set as an administrator',
|
|
60
|
+
RemoveAdminSuccess: 'The administrator status of {{ name }} has been withdrawn',
|
|
61
|
+
TransferHostTo: 'Transfer room ownership to {{ name }}',
|
|
62
|
+
TransferHostSuccess: 'Room ownership has been transferred to {{ name }}',
|
|
63
|
+
ConfirmKick: 'Do you want to kick {{ name }} out of the room?',
|
|
64
|
+
NameChangeSuccess: 'Name changed successfully',
|
|
65
|
+
DisableChatFailed: 'Failed to disable chat',
|
|
66
|
+
TransferHostFailed: 'Failed to transfer host. Please try again.',
|
|
67
|
+
ChangeNameFailed: 'Failed to change name. Please try again.',
|
|
68
|
+
TransferHostWarning: 'After transferring room ownership, you will become a general member',
|
|
69
|
+
NameMaxLength: 'The user name cannot exceed 32 characters',
|
|
70
|
+
|
|
71
|
+
InviteSuccess: 'Invitation sent successfully, waiting for member to join',
|
|
72
|
+
InviteFailed: 'Failed to invite member',
|
|
73
|
+
},
|
|
74
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export const resource = {
|
|
2
|
+
ParticipantList: {
|
|
3
|
+
Members: '成员',
|
|
4
|
+
Search: '搜索成员',
|
|
5
|
+
Joined: '已进房',
|
|
6
|
+
NotJoined: '未进房',
|
|
7
|
+
NoMember: '暂无成员',
|
|
8
|
+
Call: '呼叫',
|
|
9
|
+
Calling: '呼叫中...',
|
|
10
|
+
CallAll: '呼叫全部',
|
|
11
|
+
NotJoin: '暂不入会',
|
|
12
|
+
|
|
13
|
+
Host: '房主',
|
|
14
|
+
Me: '我',
|
|
15
|
+
Admin: '管理员',
|
|
16
|
+
|
|
17
|
+
More: '更多',
|
|
18
|
+
Mute: '静音',
|
|
19
|
+
Unmute: '解除静音',
|
|
20
|
+
DisableVideo: '关闭视频',
|
|
21
|
+
EnableVideo: '请求开启视频',
|
|
22
|
+
EnableChat: '解除禁言',
|
|
23
|
+
DisableChat: '禁言',
|
|
24
|
+
SetAdmin: '设为管理员',
|
|
25
|
+
RemoveAdmin: '撤销管理员',
|
|
26
|
+
ChangeName: '修改名称',
|
|
27
|
+
TransferHost: '转交房主',
|
|
28
|
+
KickOut: '踢出房间',
|
|
29
|
+
InputUserName: '请输入用户名',
|
|
30
|
+
|
|
31
|
+
MuteAll: '全体静音',
|
|
32
|
+
UnmuteAll: '取消全体静音',
|
|
33
|
+
MuteAllTip: '所有及新加入的成员将被静音',
|
|
34
|
+
UnmuteAllDesc: '解除后用户可以自由开启麦克风',
|
|
35
|
+
MicDisabledTip: '成员将无法开启麦克风',
|
|
36
|
+
AudioDisabled: '已开启全体静音',
|
|
37
|
+
AudioEnabled: '已解除全体静音',
|
|
38
|
+
|
|
39
|
+
DisableAllVideo: '全体禁画',
|
|
40
|
+
EnableAllVideo: '取消全体禁画',
|
|
41
|
+
DisableAllVideoTip: '所有及新加入的成员将被禁止视频',
|
|
42
|
+
EnableAllVideoDesc: '解除后用户可以自由开启视频',
|
|
43
|
+
CameraDisabledTip: '成员将无法开启视频画面',
|
|
44
|
+
VideoDisabled: '已开启全体禁画',
|
|
45
|
+
VideoEnabled: '已解除全体禁画',
|
|
46
|
+
|
|
47
|
+
AllCanShare: '全体成员可共享屏幕',
|
|
48
|
+
HostAdminOnlyShare: '仅房主/管理员可共享屏幕',
|
|
49
|
+
ConfirmHostAdminOnlyShare: '是否开启仅房主/管理员可共享屏幕?',
|
|
50
|
+
TerminateOtherShare: '当前有成员正在共享屏幕, 开启后该成员的共享将会被终止',
|
|
51
|
+
|
|
52
|
+
Confirm: '确认',
|
|
53
|
+
Cancel: '取消',
|
|
54
|
+
Note: '通知',
|
|
55
|
+
ConfirmTransfer: '确认转交',
|
|
56
|
+
|
|
57
|
+
InviteMicSent: '已向{{ name }}发出开启麦克风邀请',
|
|
58
|
+
InviteCameraSent: '已向{{ name }}发出开启摄像头邀请',
|
|
59
|
+
SetAdminSuccess: '已将{{ name }}设为管理员',
|
|
60
|
+
RemoveAdminSuccess: '已将{{ name }}的管理员身份撤回',
|
|
61
|
+
TransferHostTo: '将房主转移给{{ name }}',
|
|
62
|
+
TransferHostSuccess: '已将房主转交给{{ name }}',
|
|
63
|
+
ConfirmKick: '是否将{{ name }}移出房间',
|
|
64
|
+
NameChangeSuccess: '名称修改成功',
|
|
65
|
+
DisableChatFailed: '禁言失败',
|
|
66
|
+
TransferHostFailed: '转交房主失败,请重试',
|
|
67
|
+
ChangeNameFailed: '修改名称失败,请重试',
|
|
68
|
+
TransferHostWarning: '转交房主后将成为普通成员',
|
|
69
|
+
NameMaxLength: '用户名称不能超过32个字节',
|
|
70
|
+
|
|
71
|
+
InviteSuccess: '邀请信息已发出,等待成员加入',
|
|
72
|
+
InviteFailed: '邀请成员失败',
|
|
73
|
+
},
|
|
74
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { addI18n } from '../../i18n';
|
|
2
|
+
import { enUSResource, zhCNResource } from './i18n';
|
|
3
|
+
import RoomParticipantListComp from './index.vue';
|
|
4
|
+
|
|
5
|
+
addI18n('en-US', { translation: enUSResource });
|
|
6
|
+
addI18n('zh-CN', { translation: zhCNResource });
|
|
7
|
+
|
|
8
|
+
const RoomParticipantList = RoomParticipantListComp;
|
|
9
|
+
|
|
10
|
+
export { RoomParticipantList };
|