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,169 @@
|
|
|
1
|
+
import { defineComponent as G, ref as d, onMounted as R, onUnmounted as Y, createElementBlock as A, openBlock as u, createElementVNode as t, createCommentVNode as w, normalizeClass as B, unref as s, toDisplayString as i, createVNode as C, withCtx as V, createTextVNode as f } from "vue";
|
|
2
|
+
import { useUIKit as S, TUIButton as k, TUIToast as T, TOAST_TYPE as j } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { VirtualBackgroundEvent as J, VirtualBackgroundType as Z } from "../../types/virtualBackground.js";
|
|
4
|
+
import { useDeviceState as H } from "../../states/DeviceState/DeviceState.js";
|
|
5
|
+
import { useVirtualBackgroundState as P } from "../../states/VirtualBackgroundState/VirtualBackgroundState.js";
|
|
6
|
+
import { _ as O } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const M = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAYAAACMRWrdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABEtSURBVHgBZVrLkiw9zbRs98zh/LfVv2XPW/IWvBaPwIoggmBBBPDNdJctMlOyXf1xJvp0VXWVrUsqJctlv//j3/9Q+G+6lVq8vP3jJX0Vdzcrpt+rxa+8hgte8cvAsa4ZznlPsdswvGrueY8umfnMMXi8xtIE+MEwieOP99jE7TXuN8nJ0fPWybvwu4bCTDjFHdZx9DvexZs1IlXxKQ1s6RknnEwXfE7dphFlEyq9dIghJn7kZDiwEAHntUgz5zUL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VuQASMVSpp2hj04LrgLeVd0D+GNOlmPdDdXwSNfRqHk/sdEFisq5FranlCJzhsSPhy1cmW8Yumrd2wS8lHI8diHQ4JWRL/fzZpfVAscu+FzfBirQ1QJPsJb3qF+GKdOcfxyee9DrUZiubwKtRGpX4C8VmE3khx9FnsRaIkVFPyP44/czwleU+oJvzDhLqCJ76fvJZXBJSG/H0zsRmCUr1CH4qCId9gqHuZVnZqbAoZIKm0fEbkTHyJ3BQyhpgYfM3jxwrlxfjSFgtrw75En45p69GtKgvcLkIGoSk6/72Vpq/tfwWsBYU/F7dX6wOHr7fYv66Ufrg5xiEN8fvgIsRxkZ40DD8EAAAAASUVORK5CYII=", $ = { class: "virtual-background" }, ee = {
|
|
8
|
+
id: "stream-preview",
|
|
9
|
+
class: "stream-preview"
|
|
10
|
+
}, te = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "mask"
|
|
13
|
+
}, ae = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "spinner"
|
|
16
|
+
}, se = { class: "setting" }, oe = { class: "setting-item-icon" }, re = ["src"], ne = { class: "setting-item-text" }, le = { class: "setting-item-icon" }, ie = ["src"], ce = { class: "setting-item-text" }, de = { class: "footer" }, Ae = /* @__PURE__ */ G({
|
|
17
|
+
__name: "VirtualBackgroundPanel",
|
|
18
|
+
props: {
|
|
19
|
+
assetsPath: { default: "https://web.sdk.qcloud.com/hybrid/trtc-sdk-v5/assets" }
|
|
20
|
+
},
|
|
21
|
+
emits: ["close"],
|
|
22
|
+
setup(Q, { emit: U }) {
|
|
23
|
+
var h;
|
|
24
|
+
const { t: n } = S(), b = U, y = Q, {
|
|
25
|
+
startCameraTest: K,
|
|
26
|
+
stopCameraTest: F
|
|
27
|
+
} = H(), {
|
|
28
|
+
virtualBackgroundConfig: m,
|
|
29
|
+
initVirtualBackground: q,
|
|
30
|
+
setVirtualBackground: g,
|
|
31
|
+
saveVirtualBackground: X,
|
|
32
|
+
subscribeEvent: I,
|
|
33
|
+
unsubscribeEvent: x
|
|
34
|
+
} = P(), c = d(
|
|
35
|
+
(h = m.value) != null && h.enable ? "blur" : "close"
|
|
36
|
+
), r = d(!1), o = d(!1);
|
|
37
|
+
function D(e) {
|
|
38
|
+
switch (e) {
|
|
39
|
+
case "close":
|
|
40
|
+
return { enable: !1 };
|
|
41
|
+
case "blur":
|
|
42
|
+
return { enable: !0, type: Z.blur };
|
|
43
|
+
default:
|
|
44
|
+
return { enable: !1 };
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
async function v() {
|
|
48
|
+
b("close");
|
|
49
|
+
}
|
|
50
|
+
function l(e) {
|
|
51
|
+
T({
|
|
52
|
+
type: j.ERROR,
|
|
53
|
+
message: n(e)
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
async function W() {
|
|
57
|
+
r.value = !0, o.value = !1;
|
|
58
|
+
try {
|
|
59
|
+
await q({ assetsPath: y.assetsPath }), await K({ view: "stream-preview" });
|
|
60
|
+
const { enable: e, type: a } = m.value || {};
|
|
61
|
+
await g({ enable: e, type: a }), o.value = !0;
|
|
62
|
+
} catch (e) {
|
|
63
|
+
console.error("Failed to initialize virtual background:", e), l("VirtualBackground.InitializeFailed");
|
|
64
|
+
} finally {
|
|
65
|
+
r.value = !1;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
async function p(e) {
|
|
69
|
+
if (o.value) {
|
|
70
|
+
r.value = !0;
|
|
71
|
+
try {
|
|
72
|
+
c.value = e;
|
|
73
|
+
const a = D(e);
|
|
74
|
+
await g(a);
|
|
75
|
+
} catch (a) {
|
|
76
|
+
console.error("Failed to apply virtual background:", a), l("VirtualBackground.ApplyFailed");
|
|
77
|
+
} finally {
|
|
78
|
+
r.value = !1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
async function z() {
|
|
83
|
+
if (o.value)
|
|
84
|
+
try {
|
|
85
|
+
await X(), v();
|
|
86
|
+
} catch (e) {
|
|
87
|
+
console.error("Failed to save virtual background:", e), l("VirtualBackground.SaveFailed");
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
async function N() {
|
|
91
|
+
v();
|
|
92
|
+
}
|
|
93
|
+
function E() {
|
|
94
|
+
l("VirtualBackground.Aborted");
|
|
95
|
+
}
|
|
96
|
+
return R(async () => {
|
|
97
|
+
await W(), I(
|
|
98
|
+
J.onAbort,
|
|
99
|
+
E
|
|
100
|
+
);
|
|
101
|
+
}), Y(() => {
|
|
102
|
+
F(), x(
|
|
103
|
+
J.onAbort,
|
|
104
|
+
E
|
|
105
|
+
);
|
|
106
|
+
}), (e, a) => (u(), A("div", $, [
|
|
107
|
+
t("div", ee, [
|
|
108
|
+
r.value ? (u(), A("div", te)) : w("", !0),
|
|
109
|
+
r.value ? (u(), A("div", ae)) : w("", !0)
|
|
110
|
+
]),
|
|
111
|
+
t("div", se, [
|
|
112
|
+
t("div", {
|
|
113
|
+
class: B([
|
|
114
|
+
"setting-item",
|
|
115
|
+
c.value === "close" ? "active" : "",
|
|
116
|
+
o.value ? "" : "disabled"
|
|
117
|
+
]),
|
|
118
|
+
onClick: a[0] || (a[0] = (L) => p("close"))
|
|
119
|
+
}, [
|
|
120
|
+
t("i", oe, [
|
|
121
|
+
t("img", {
|
|
122
|
+
src: s(_),
|
|
123
|
+
alt: "close",
|
|
124
|
+
style: { width: "32px" }
|
|
125
|
+
}, null, 8, re)
|
|
126
|
+
]),
|
|
127
|
+
t("span", ne, i(s(n)("VirtualBackground.Close")), 1)
|
|
128
|
+
], 2),
|
|
129
|
+
t("div", {
|
|
130
|
+
class: B([
|
|
131
|
+
"setting-item",
|
|
132
|
+
c.value === "blur" ? "active" : "",
|
|
133
|
+
o.value ? "" : "disabled"
|
|
134
|
+
]),
|
|
135
|
+
onClick: a[1] || (a[1] = (L) => p("blur"))
|
|
136
|
+
}, [
|
|
137
|
+
t("i", le, [
|
|
138
|
+
t("img", {
|
|
139
|
+
src: s(M),
|
|
140
|
+
alt: "blurred"
|
|
141
|
+
}, null, 8, ie)
|
|
142
|
+
]),
|
|
143
|
+
t("span", ce, i(s(n)("VirtualBackground.Blurred")), 1)
|
|
144
|
+
], 2)
|
|
145
|
+
]),
|
|
146
|
+
t("div", de, [
|
|
147
|
+
C(s(k), {
|
|
148
|
+
disabled: !o.value,
|
|
149
|
+
type: "primary",
|
|
150
|
+
onClick: z
|
|
151
|
+
}, {
|
|
152
|
+
default: V(() => [
|
|
153
|
+
f(i(s(n)("VirtualBackground.Save")), 1)
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["disabled"]),
|
|
157
|
+
C(s(k), { onClick: N }, {
|
|
158
|
+
default: V(() => [
|
|
159
|
+
f(i(s(n)("VirtualBackground.Cancel")), 1)
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
})
|
|
163
|
+
])
|
|
164
|
+
]));
|
|
165
|
+
}
|
|
166
|
+
}), he = /* @__PURE__ */ O(Ae, [["__scopeId", "data-v-e003f29a"]]);
|
|
167
|
+
export {
|
|
168
|
+
he as default
|
|
169
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
assetsPath: string;
|
|
3
|
+
}>, {
|
|
4
|
+
assetsPath: string;
|
|
5
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
close: (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
assetsPath: string;
|
|
9
|
+
}>, {
|
|
10
|
+
assetsPath: string;
|
|
11
|
+
}>>> & Readonly<{
|
|
12
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
assetsPath: string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const resource: {
|
|
2
|
+
'VirtualBackground.InitializeFailed': string;
|
|
3
|
+
'VirtualBackground.ApplyFailed': string;
|
|
4
|
+
'VirtualBackground.SaveFailed': string;
|
|
5
|
+
'VirtualBackground.Aborted': string;
|
|
6
|
+
'VirtualBackground.Close': string;
|
|
7
|
+
'VirtualBackground.Blurred': string;
|
|
8
|
+
'VirtualBackground.Save': string;
|
|
9
|
+
'VirtualBackground.Cancel': string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
// VirtualBackground
|
|
3
|
+
"VirtualBackground.InitializeFailed": "Failed to initialize virtual background",
|
|
4
|
+
"VirtualBackground.ApplyFailed": "Failed to apply virtual background",
|
|
5
|
+
"VirtualBackground.SaveFailed": "Failed to save virtual background settings",
|
|
6
|
+
"VirtualBackground.Aborted": "Virtual background application aborted",
|
|
7
|
+
"VirtualBackground.Close": "Close",
|
|
8
|
+
"VirtualBackground.Blurred": "Blurred",
|
|
9
|
+
"VirtualBackground.Save": "Save",
|
|
10
|
+
"VirtualBackground.Cancel": "Cancel"
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as resource
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const resource: {
|
|
2
|
+
'VirtualBackground.InitializeFailed': string;
|
|
3
|
+
'VirtualBackground.ApplyFailed': string;
|
|
4
|
+
'VirtualBackground.SaveFailed': string;
|
|
5
|
+
'VirtualBackground.Aborted': string;
|
|
6
|
+
'VirtualBackground.Close': string;
|
|
7
|
+
'VirtualBackground.Blurred': string;
|
|
8
|
+
'VirtualBackground.Save': string;
|
|
9
|
+
'VirtualBackground.Cancel': string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
// VirtualBackground
|
|
3
|
+
"VirtualBackground.InitializeFailed": "虚拟背景初始化失败",
|
|
4
|
+
"VirtualBackground.ApplyFailed": "应用虚拟背景失败",
|
|
5
|
+
"VirtualBackground.SaveFailed": "保存虚拟背景设置失败",
|
|
6
|
+
"VirtualBackground.Aborted": "虚拟背景应用已中止",
|
|
7
|
+
"VirtualBackground.Close": "关闭",
|
|
8
|
+
"VirtualBackground.Blurred": "模糊",
|
|
9
|
+
"VirtualBackground.Save": "保存",
|
|
10
|
+
"VirtualBackground.Cancel": "取消"
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as resource
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const VirtualBackgroundPanel: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
assetsPath: {
|
|
3
|
+
type: import('vue').PropType<string>;
|
|
4
|
+
required: true;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: (...args: any[]) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
assetsPath: {
|
|
11
|
+
type: import('vue').PropType<string>;
|
|
12
|
+
required: true;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{
|
|
16
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
assetsPath: string;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export { VirtualBackgroundPanel, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { addI18n as r } from "../../i18n/index.js";
|
|
2
|
+
import { resource as o } from "./i18n/en-US/index.js";
|
|
3
|
+
import { resource as n } from "./i18n/zh-CN/index.js";
|
|
4
|
+
import t from "./VirtualBackgroundPanel.js";
|
|
5
|
+
const s = t;
|
|
6
|
+
r("en-US", { translation: o });
|
|
7
|
+
r("zh-CN", { translation: n });
|
|
8
|
+
export {
|
|
9
|
+
s as VirtualBackgroundPanel
|
|
10
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref } from 'vue';
|
|
2
2
|
|
|
3
|
-
interface
|
|
3
|
+
interface UseAudioControlProps {
|
|
4
4
|
url: string;
|
|
5
5
|
audioId?: string;
|
|
6
6
|
}
|
|
7
|
-
interface
|
|
7
|
+
interface UseAudioControlReturn {
|
|
8
8
|
isPlaying: ReturnType<typeof ref<boolean>>;
|
|
9
9
|
progress: ReturnType<typeof ref<number>>;
|
|
10
10
|
duration: ReturnType<typeof ref<number | undefined>>;
|
|
@@ -22,5 +22,5 @@ interface IUseAudioControlReturn {
|
|
|
22
22
|
* @param props Configuration parameters
|
|
23
23
|
* @returns Audio control related states and methods
|
|
24
24
|
*/
|
|
25
|
-
export declare function useAudioControl(props:
|
|
25
|
+
export declare function useAudioControl(props: UseAudioControlProps): UseAudioControlReturn;
|
|
26
26
|
export {};
|
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
import { ref as l, onMounted as
|
|
2
|
-
const v = /* @__PURE__ */ new Map(),
|
|
1
|
+
import { ref as l, onMounted as I, onUnmounted as T } from "vue";
|
|
2
|
+
const v = /* @__PURE__ */ new Map(), f = "AUDIO_PLAY_EVENT", g = (c) => new CustomEvent(f, {
|
|
3
3
|
detail: { audioId: c }
|
|
4
4
|
});
|
|
5
5
|
function y(c) {
|
|
6
|
-
const { url: m } = c,
|
|
7
|
-
t.value && (window.dispatchEvent(
|
|
8
|
-
},
|
|
9
|
-
t.value && (t.value.pause(),
|
|
6
|
+
const { url: m } = c, a = c.audioId || `audio-${m}`, r = l(!1), u = l(0), n = l(void 0), o = l(!0), t = l(null), h = () => {
|
|
7
|
+
t.value && (window.dispatchEvent(g(a)), t.value.play(), r.value = !0);
|
|
8
|
+
}, E = () => {
|
|
9
|
+
t.value && (t.value.pause(), r.value = !1);
|
|
10
10
|
}, w = () => {
|
|
11
|
-
t.value && (t.value.pause(), t.value.currentTime = 0,
|
|
11
|
+
t.value && (t.value.pause(), t.value.currentTime = 0, r.value = !1, u.value = 0);
|
|
12
12
|
}, A = (e) => {
|
|
13
|
-
if (!t.value ||
|
|
13
|
+
if (!t.value || n.value === void 0)
|
|
14
14
|
return;
|
|
15
|
-
const
|
|
16
|
-
t.value.currentTime =
|
|
17
|
-
}, s = () => {
|
|
18
|
-
!t.value || !a.value || (r.value = t.value.currentTime / a.value);
|
|
15
|
+
const d = Math.max(0, Math.min(1, e));
|
|
16
|
+
t.value.currentTime = n.value * d, u.value = d;
|
|
19
17
|
}, i = () => {
|
|
20
|
-
|
|
18
|
+
!t.value || !n.value || (u.value = t.value.currentTime / n.value);
|
|
19
|
+
}, s = () => {
|
|
20
|
+
r.value = !1, u.value = 0;
|
|
21
21
|
}, L = (e) => {
|
|
22
|
-
e.detail.audioId !==
|
|
22
|
+
e.detail.audioId !== a && r.value && E();
|
|
23
23
|
};
|
|
24
|
-
return
|
|
25
|
-
window.addEventListener(
|
|
26
|
-
let e = v.get(
|
|
27
|
-
const
|
|
28
|
-
e && (
|
|
24
|
+
return I(() => {
|
|
25
|
+
window.addEventListener(f, L);
|
|
26
|
+
let e = v.get(a);
|
|
27
|
+
const d = () => {
|
|
28
|
+
e && (e.duration === 1 / 0 ? (e.currentTime = 1e101, e.ontimeupdate = () => {
|
|
29
|
+
e && (n.value = e.duration, e.ontimeupdate = null, e.currentTime = 0);
|
|
30
|
+
}) : n.value = e.duration, o.value = !1);
|
|
29
31
|
}, p = () => {
|
|
30
|
-
console.error("Audio load error:", m),
|
|
32
|
+
console.error("Audio load error:", m), o.value = !1;
|
|
31
33
|
};
|
|
32
|
-
!e || e.src !== m ? (
|
|
33
|
-
}),
|
|
34
|
-
if (window.removeEventListener(
|
|
35
|
-
const e = v.get(
|
|
36
|
-
e.removeEventListener("timeupdate",
|
|
34
|
+
!e || e.src !== m ? (o.value = !0, n.value = void 0, e && (e.pause(), e.src = "", e.load(), e.removeEventListener("loadedmetadata", d), e.removeEventListener("error", p), e.removeEventListener("timeupdate", i), e.removeEventListener("ended", s)), e = new Audio(m), e.addEventListener("loadedmetadata", d), e.addEventListener("error", p), e.addEventListener("timeupdate", i), e.addEventListener("ended", s), v.set(a, e), t.value = e, r.value = !1, u.value = 0) : (t.value = e, e.removeEventListener("timeupdate", i), e.removeEventListener("ended", s), e.addEventListener("timeupdate", i), e.addEventListener("ended", s), e.duration && (n.value = e.duration, o.value = !1));
|
|
35
|
+
}), T(() => {
|
|
36
|
+
if (window.removeEventListener(f, L), v.has(a)) {
|
|
37
|
+
const e = v.get(a);
|
|
38
|
+
e.removeEventListener("timeupdate", i), e.removeEventListener("ended", s), e.pause(), e.src = "", e.load(), v.delete(a);
|
|
37
39
|
}
|
|
38
40
|
}), {
|
|
39
|
-
isPlaying:
|
|
40
|
-
progress:
|
|
41
|
-
duration:
|
|
42
|
-
isLoading:
|
|
41
|
+
isPlaying: r,
|
|
42
|
+
progress: u,
|
|
43
|
+
duration: n,
|
|
44
|
+
isLoading: o,
|
|
43
45
|
play: h,
|
|
44
|
-
pause:
|
|
46
|
+
pause: E,
|
|
45
47
|
stop: w,
|
|
46
48
|
setProgress: A
|
|
47
49
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import n from "./
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[t.ScreenAction]: r()
|
|
1
|
+
import c from "./useRoomAudioAction.js";
|
|
2
|
+
import n from "./useRoomScreenAction.js";
|
|
3
|
+
import e from "./useRoomVideoAction.js";
|
|
4
|
+
function u(o) {
|
|
5
|
+
const t = {
|
|
6
|
+
[RoomAction.AudioAction]: c(),
|
|
7
|
+
[RoomAction.VideoAction]: e(),
|
|
8
|
+
[RoomAction.ScreenAction]: n()
|
|
10
9
|
};
|
|
11
|
-
return o && o.actionList && o.actionList.length > 0 ? o.actionList.map((
|
|
10
|
+
return o && o.actionList && o.actionList.length > 0 ? o.actionList.map((i) => t[i]) : Object.values(t);
|
|
12
11
|
}
|
|
13
12
|
export {
|
|
14
|
-
|
|
13
|
+
u as default
|
|
15
14
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { RoomAction } from '../../types';
|
|
2
|
-
|
|
3
1
|
export default function useRoomAudioAction(): {
|
|
4
|
-
key:
|
|
2
|
+
key: any;
|
|
5
3
|
icon: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
4
|
label: any;
|
|
7
5
|
handler: () => void;
|
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const { currentRoom: l } = M();
|
|
1
|
+
import { reactive as m, computed as u, defineComponent as d } from "vue";
|
|
2
|
+
import { TUIMediaDevice as A } from "@tencentcloud/tuiroom-engine-js";
|
|
3
|
+
import { TUIToast as f, TOAST_TYPE as p } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
|
+
import b from "../../baseComp/MessageBox/index.js";
|
|
5
|
+
import { useI18n as g } from "../../locales/index.js";
|
|
6
|
+
import { useRoomState as h } from "../../states/RoomState/index.js";
|
|
7
|
+
import { useRoomEngine as M } from "../useRoomEngine.js";
|
|
8
|
+
const { currentRoom: l } = h();
|
|
10
9
|
function k() {
|
|
11
|
-
const { t: o } =
|
|
10
|
+
const { t: o } = g(), r = M();
|
|
12
11
|
let n = !1;
|
|
13
|
-
function
|
|
14
|
-
var e, i,
|
|
15
|
-
n = !((e = l.value) != null && e.
|
|
16
|
-
title: (i = l.value) != null && i.
|
|
17
|
-
message: (
|
|
12
|
+
function a() {
|
|
13
|
+
var e, i, t;
|
|
14
|
+
n = !((e = l.value) != null && e.isAllMicrophoneDisabled), b({
|
|
15
|
+
title: (i = l.value) != null && i.isAllMicrophoneDisabled ? o("Enable all audios") : o("All current and new members will be muted"),
|
|
16
|
+
message: (t = l.value) != null && t.isAllMicrophoneDisabled ? o("After unlocking, users can freely turn on the microphone") : o("Members will not be able to open the microphone"),
|
|
18
17
|
confirmButtonText: o("Confirm"),
|
|
19
18
|
cancelButtonText: o("Cancel"),
|
|
20
|
-
callback: async (
|
|
21
|
-
|
|
19
|
+
callback: async (c) => {
|
|
20
|
+
c === "confirm" && s();
|
|
22
21
|
}
|
|
23
22
|
});
|
|
24
23
|
}
|
|
25
|
-
async function
|
|
24
|
+
async function s() {
|
|
26
25
|
var e, i;
|
|
27
|
-
if (((e = l.value) == null ? void 0 : e.
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
type:
|
|
31
|
-
message:
|
|
26
|
+
if (((e = l.value) == null ? void 0 : e.isAllMicrophoneDisabled) === n) {
|
|
27
|
+
const t = o(n ? "All audios disabled" : "All audios enabled");
|
|
28
|
+
f({
|
|
29
|
+
type: p.SUCCESS,
|
|
30
|
+
message: t
|
|
32
31
|
// duration: MESSAGE_DURATION.NORMAL,
|
|
33
32
|
});
|
|
34
33
|
return;
|
|
35
34
|
}
|
|
36
|
-
await ((i =
|
|
35
|
+
await ((i = r.instance) == null ? void 0 : i.disableDeviceForAllUserByAdmin({
|
|
37
36
|
isDisable: n,
|
|
38
|
-
device:
|
|
37
|
+
device: A.kMicrophone
|
|
39
38
|
}));
|
|
40
39
|
}
|
|
41
|
-
return
|
|
42
|
-
key:
|
|
43
|
-
icon:
|
|
44
|
-
label:
|
|
40
|
+
return m({
|
|
41
|
+
key: RoomAction.AudioAction,
|
|
42
|
+
icon: d({}),
|
|
43
|
+
label: u(
|
|
45
44
|
() => {
|
|
46
45
|
var e;
|
|
47
|
-
return (e = l.value) != null && e.
|
|
46
|
+
return (e = l.value) != null && e.isAllMicrophoneDisabled ? o("Lift all mute") : o("All mute");
|
|
48
47
|
}
|
|
49
48
|
),
|
|
50
|
-
handler:
|
|
49
|
+
handler: a
|
|
51
50
|
});
|
|
52
51
|
}
|
|
53
52
|
export {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { reactive as h, computed as l } from "vue";
|
|
2
2
|
import { TUIRole as f, TUIMediaDevice as m } from "@tencentcloud/tuiroom-engine-js";
|
|
3
3
|
import { IconAllMembersShareScreen as d, IconHostShareScreen as A } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const { userWithScreenOn: n } =
|
|
10
|
-
function
|
|
11
|
-
const { t: r } =
|
|
4
|
+
import b from "../../baseComp/MessageBox/index.js";
|
|
5
|
+
import { useI18n as g } from "../../locales/index.js";
|
|
6
|
+
import { useRoomState as v } from "../../states/RoomState/index.js";
|
|
7
|
+
import { useUserState as p } from "../../states/UserState/index.js";
|
|
8
|
+
import { useRoomEngine as R } from "../useRoomEngine.js";
|
|
9
|
+
const { userWithScreenOn: n } = p(), { currentRoom: o } = v();
|
|
10
|
+
function M() {
|
|
11
|
+
const { t: r } = g(), t = R();
|
|
12
12
|
let i = !1;
|
|
13
|
-
async function
|
|
13
|
+
async function c() {
|
|
14
14
|
var e;
|
|
15
15
|
await ((e = t.instance) == null ? void 0 : e.disableDeviceForAllUserByAdmin({
|
|
16
16
|
isDisable: i,
|
|
@@ -19,11 +19,11 @@ function x() {
|
|
|
19
19
|
}
|
|
20
20
|
function u() {
|
|
21
21
|
var e;
|
|
22
|
-
if (i = !((e = o.value) != null && e.
|
|
23
|
-
|
|
22
|
+
if (i = !((e = o.value) != null && e.isAllScreenShareDisabled), !n.value || n.value.userRole !== f.kGeneralUser) {
|
|
23
|
+
c();
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
b({
|
|
27
27
|
title: r(
|
|
28
28
|
"Is it turned on that only the host/admin can share the screen?"
|
|
29
29
|
),
|
|
@@ -33,31 +33,31 @@ function x() {
|
|
|
33
33
|
confirmButtonText: r("Confirm"),
|
|
34
34
|
cancelButtonText: r("Cancel"),
|
|
35
35
|
callback: async (S) => {
|
|
36
|
-
var
|
|
37
|
-
S === "confirm" && (await ((
|
|
38
|
-
userId: (
|
|
36
|
+
var a, s;
|
|
37
|
+
S === "confirm" && (await ((s = t.instance) == null ? void 0 : s.closeRemoteDeviceByAdmin({
|
|
38
|
+
userId: (a = n.value) == null ? void 0 : a.userId,
|
|
39
39
|
device: m.kScreen
|
|
40
|
-
})),
|
|
40
|
+
})), c());
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
return h({
|
|
45
|
-
key:
|
|
45
|
+
key: RoomAction.ScreenAction,
|
|
46
46
|
label: l(
|
|
47
47
|
() => {
|
|
48
48
|
var e;
|
|
49
|
-
return (e = o.value) != null && e.
|
|
49
|
+
return (e = o.value) != null && e.isAllScreenShareDisabled ? r("All members can share screen") : r("Screen sharing for host/admin only");
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
52
|
icon: l(
|
|
53
53
|
() => {
|
|
54
54
|
var e;
|
|
55
|
-
return (e = o.value) != null && e.
|
|
55
|
+
return (e = o.value) != null && e.isAllScreenShareDisabled ? d : A;
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
58
|
handler: u
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
M as default
|
|
63
63
|
};
|