tuikit-atomicx-vue3 4.4.0 → 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-D9jiYNFu.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +31 -29
- 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 +490 -475
- 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/ConversationList/ConversationActions/ConversationActions.js +49 -51
- package/dist/components/ConversationList/ConversationList.vue.d.ts +190 -190
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +82 -82
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +16 -16
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +36 -36
- package/dist/components/ConversationList/index.d.ts +442 -442
- 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/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +4 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +2 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.js +47 -61
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +5 -1
- 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 +48 -39
- 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/CustomMessage/CallMessage/CallMessage.js +18 -18
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
- 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/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/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/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 +45 -0
- package/dist/states/MessageActionState/MessageActionState.d.ts +36 -2
- package/dist/states/MessageActionState/MessageActionState.js +142 -22
- 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/{rtc → subEntry/live}/server.js +4 -4
- 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/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/ConversationList/ConversationActions/ConversationActions.vue +1 -7
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +3 -3
- 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/MessageInput.vue +2 -0
- package/src/components/MessageInput/TextEditor/EditorCore.ts +13 -26
- package/src/components/MessageInput/TextEditor/TextEditor.vue +23 -2
- 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/CustomMessage/CallMessage/CallMessage.vue +4 -2
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
- 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/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/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
- package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
- package/src/components/Search/SearchBar/SearchBar.scss +3 -6
- 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/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 +3 -3
- 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 +25 -26
- 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/states/RoomState.d.ts +0 -173
- package/dist/states/RoomState.js +0 -272
- package/src/rtc/index.ts +0 -100
package/dist/utils/call.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { TUIChatEngine as k, TUIFriendService as U, TUIUserService as L } from "@tencentcloud/chat-uikit-engine";
|
|
2
2
|
import R, { TUIConstants as T } from "@tencentcloud/tui-core";
|
|
3
|
-
import { i18next as i } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
3
|
import { safeJSONParse as u } from "./json.js";
|
|
5
|
-
function
|
|
4
|
+
function P(r) {
|
|
6
5
|
try {
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
6
|
+
const e = u(r.payload.data, {});
|
|
7
|
+
if (e.businessID === 1 && e.data) {
|
|
8
|
+
const s = u(e.data, {});
|
|
9
|
+
if (s.businessID === "av_call" || s.businessID === "rtc_call")
|
|
11
10
|
return !0;
|
|
12
11
|
}
|
|
13
12
|
} catch {
|
|
@@ -15,119 +14,119 @@ function q(a) {
|
|
|
15
14
|
}
|
|
16
15
|
return !1;
|
|
17
16
|
}
|
|
18
|
-
function
|
|
17
|
+
function q(r) {
|
|
19
18
|
R.callService({
|
|
20
19
|
serviceName: T.TUICalling.SERVICE.NAME,
|
|
21
20
|
method: T.TUICalling.SERVICE.METHOD.START_CALL,
|
|
22
21
|
params: {
|
|
23
|
-
...
|
|
22
|
+
...r,
|
|
24
23
|
version: "v3"
|
|
25
24
|
}
|
|
26
25
|
});
|
|
27
26
|
}
|
|
28
|
-
function A(
|
|
29
|
-
const
|
|
30
|
-
if (!
|
|
27
|
+
function A(r) {
|
|
28
|
+
const e = u(r.payload.data, void 0);
|
|
29
|
+
if (!e)
|
|
31
30
|
return;
|
|
32
|
-
const
|
|
33
|
-
return
|
|
34
|
-
description:
|
|
35
|
-
extension:
|
|
31
|
+
const s = u(e.data, void 0);
|
|
32
|
+
return s ? {
|
|
33
|
+
description: r.payload.description,
|
|
34
|
+
extension: r.payload.extension,
|
|
36
35
|
data: {
|
|
37
|
-
businessID:
|
|
38
|
-
timeout:
|
|
36
|
+
businessID: e.businessID,
|
|
37
|
+
timeout: e.timeout,
|
|
39
38
|
data: {
|
|
40
|
-
businessID:
|
|
41
|
-
call_end:
|
|
42
|
-
call_type:
|
|
39
|
+
businessID: s.businessID,
|
|
40
|
+
call_end: s.call_end,
|
|
41
|
+
call_type: s.call_type,
|
|
43
42
|
data: {
|
|
44
|
-
cmd:
|
|
45
|
-
inviter:
|
|
46
|
-
message:
|
|
47
|
-
room_id:
|
|
48
|
-
str_room_id:
|
|
43
|
+
cmd: s.data.cmd,
|
|
44
|
+
inviter: s.data.inviter,
|
|
45
|
+
message: s.data.message,
|
|
46
|
+
room_id: s.data.room_id,
|
|
47
|
+
str_room_id: s.data.str_room_id
|
|
49
48
|
},
|
|
50
|
-
platform:
|
|
51
|
-
room_id:
|
|
52
|
-
userData:
|
|
53
|
-
version:
|
|
49
|
+
platform: s.platform,
|
|
50
|
+
room_id: s.room_id,
|
|
51
|
+
userData: s.userData,
|
|
52
|
+
version: s.version
|
|
54
53
|
},
|
|
55
|
-
inviteID:
|
|
56
|
-
groupID:
|
|
57
|
-
actionType:
|
|
58
|
-
inviter:
|
|
59
|
-
inviteeList:
|
|
54
|
+
inviteID: e.inviteID,
|
|
55
|
+
groupID: e.groupID,
|
|
56
|
+
actionType: e.actionType,
|
|
57
|
+
inviter: e.inviter,
|
|
58
|
+
inviteeList: e.inviteeList
|
|
60
59
|
}
|
|
61
60
|
} : void 0;
|
|
62
61
|
}
|
|
63
|
-
function N(
|
|
64
|
-
if (!
|
|
62
|
+
function N(r) {
|
|
63
|
+
if (!r || r <= 0)
|
|
65
64
|
return "00:00";
|
|
66
|
-
const
|
|
67
|
-
return
|
|
65
|
+
const e = Math.floor(r / 3600), s = Math.floor(r % 3600 / 60), i = Math.floor(r % 60);
|
|
66
|
+
return e > 0 ? `${e.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}` : `${s.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
|
|
68
67
|
}
|
|
69
|
-
function S(
|
|
70
|
-
return !
|
|
68
|
+
function S(r, e = 12) {
|
|
69
|
+
return !r || r.length <= e ? r : `${r.substring(0, e)}...`;
|
|
71
70
|
}
|
|
72
|
-
function
|
|
73
|
-
return U.getFriendRemark([
|
|
71
|
+
function V(r) {
|
|
72
|
+
return U.getFriendRemark([r])[r] || "";
|
|
74
73
|
}
|
|
75
|
-
const
|
|
76
|
-
function
|
|
77
|
-
var
|
|
78
|
-
const
|
|
79
|
-
if (!
|
|
74
|
+
const c = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map();
|
|
75
|
+
function D(r, e) {
|
|
76
|
+
var f, g, _, m, p, C, M, h, v, I, w;
|
|
77
|
+
const s = A(r);
|
|
78
|
+
if (!s || s.data.businessID !== 1)
|
|
80
79
|
return "";
|
|
81
|
-
const { data:
|
|
82
|
-
let
|
|
83
|
-
switch (
|
|
80
|
+
const { data: i } = s, a = i.data, l = r.fromAccount || r.from, d = V(l), t = k.getMyUserID();
|
|
81
|
+
let n = d || r.nameCard || r.nick || l;
|
|
82
|
+
switch (n = S(n), i.actionType) {
|
|
84
83
|
case 1:
|
|
85
|
-
return (((
|
|
84
|
+
return (((f = a == null ? void 0 : a.data) == null ? void 0 : f.cmd) === "audioCall" || ((g = a == null ? void 0 : a.data) == null ? void 0 : g.cmd) === "videoCall") && i.groupID ? e("CallMessage.start_call", { messageSender: n }) : ((_ = a == null ? void 0 : a.data) == null ? void 0 : _.cmd) === "hangup" ? i.groupID ? e("CallMessage.call_ended") : `${e("CallMessage.call_duration")}: ${N(a == null ? void 0 : a.call_end)}` : ((m = a == null ? void 0 : a.data) == null ? void 0 : m.cmd) === "switchToAudio" ? e("CallMessage.switch_to_audio_call") : ((p = a == null ? void 0 : a.data) == null ? void 0 : p.cmd) === "switchToVideo" ? e("CallMessage.switch_to_video_call") : e("CallMessage.start_call", { messageSender: "" });
|
|
86
85
|
case 2:
|
|
87
|
-
return
|
|
86
|
+
return i.groupID ? `${n} ${e("CallMessage.cancel_call")}` : i.inviter === t ? e("CallMessage.canceled") : e("CallMessage.canceled_by_recipient");
|
|
88
87
|
case 3:
|
|
89
|
-
return ((C =
|
|
88
|
+
return ((C = a == null ? void 0 : a.data) == null ? void 0 : C.cmd) === "switchToAudio" ? e("CallMessage.switch_to_audio_call") : ((M = a == null ? void 0 : a.data) == null ? void 0 : M.cmd) === "switchToVideo" ? e("CallMessage.switch_to_video_call") : i.groupID ? `${n} ${e("CallMessage.answered")}` : e("CallMessage.answered");
|
|
90
89
|
case 4:
|
|
91
|
-
return
|
|
90
|
+
return i.groupID ? `${n} ${e("CallMessage.decline_call")}` : (a == null ? void 0 : a.line_busy) === "line_busy" || ((h = a == null ? void 0 : a.data) == null ? void 0 : h.message) === "lineBusy" ? i.inviter === t ? e("CallMessage.line_busy") : e("CallMessage.missed_due_to_busy") : i.inviter === t ? e("CallMessage.declined_by_recipient") : e("CallMessage.declined");
|
|
92
91
|
case 5:
|
|
93
|
-
if (((v =
|
|
94
|
-
return
|
|
95
|
-
if (((I =
|
|
96
|
-
return
|
|
97
|
-
if (
|
|
98
|
-
if (
|
|
99
|
-
|
|
92
|
+
if (((v = a == null ? void 0 : a.data) == null ? void 0 : v.cmd) === "switchToAudio")
|
|
93
|
+
return e("CallMessage.switch_to_audio_call");
|
|
94
|
+
if (((I = a == null ? void 0 : a.data) == null ? void 0 : I.cmd) === "switchToVideo")
|
|
95
|
+
return e("CallMessage.switch_to_video_call");
|
|
96
|
+
if (i.groupID) {
|
|
97
|
+
if (l === i.inviter) {
|
|
98
|
+
x(i.inviteeList);
|
|
100
99
|
let o = "";
|
|
101
|
-
return (w =
|
|
102
|
-
const E =
|
|
100
|
+
return (w = i.inviteeList) == null || w.forEach((y) => {
|
|
101
|
+
const E = c.get(y) || y;
|
|
103
102
|
o += `${S(E)}、`;
|
|
104
|
-
}), o = o.substring(0, o.lastIndexOf("、")), `${o} ${
|
|
103
|
+
}), o = o.substring(0, o.lastIndexOf("、")), `${o} ${e("CallMessage.no_answer")}`;
|
|
105
104
|
}
|
|
106
|
-
return `${
|
|
105
|
+
return `${n} ${e("CallMessage.no_answer")}`;
|
|
107
106
|
}
|
|
108
|
-
return
|
|
107
|
+
return i.inviter === t ? e("CallMessage.no_answer_from_recipient") : e("CallMessage.no_answer_timeout");
|
|
109
108
|
default:
|
|
110
109
|
return "";
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
|
-
function
|
|
114
|
-
if (
|
|
112
|
+
function x(r = []) {
|
|
113
|
+
if (r.length === 0)
|
|
115
114
|
return;
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
}),
|
|
121
|
-
(
|
|
122
|
-
const { userID:
|
|
123
|
-
|
|
115
|
+
const e = U.getFriendRemark(r), s = [];
|
|
116
|
+
r.forEach((i) => {
|
|
117
|
+
const a = e[i];
|
|
118
|
+
a ? c.set(i, a) : $.has(i) || (s.push(i), $.set(i, 1));
|
|
119
|
+
}), s.length > 0 && L.getUserProfile({ userIDList: s }).then((i) => {
|
|
120
|
+
(i.data || []).forEach((l) => {
|
|
121
|
+
const { userID: d, nick: t } = l, n = t || d;
|
|
122
|
+
c.set(d, n);
|
|
124
123
|
});
|
|
125
124
|
}).catch(() => {
|
|
126
125
|
});
|
|
127
126
|
}
|
|
128
127
|
export {
|
|
129
|
-
|
|
128
|
+
P as isCallMessage,
|
|
130
129
|
A as parseCallMessage,
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
D as parseCallMessageText,
|
|
131
|
+
q as startCall
|
|
133
132
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Comparator<T> = (a: T, b: T) => -1 | 0 | 1;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new combined {@link Comparator<T>} which sorts items by the given comparators.
|
|
4
|
+
* The comparators are applied in the order they are given (left -> right).
|
|
5
|
+
*
|
|
6
|
+
* @param comparators the comparators to use for sorting.
|
|
7
|
+
* @returns a combined {@link Comparator<T>}.
|
|
8
|
+
*/
|
|
9
|
+
export declare const combineComparators: <T>(...comparators: Comparator<T>[]) => Comparator<T>;
|
|
10
|
+
export declare const createComparator: <T>(compareRules: (data1: T, data2: T) => boolean) => (a: T, b: T) => 0 | 1 | -1;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const e = (...r) => (t, n) => {
|
|
2
|
+
for (const f of r) {
|
|
3
|
+
const o = f(t, n);
|
|
4
|
+
if (o !== 0)
|
|
5
|
+
return o;
|
|
6
|
+
}
|
|
7
|
+
return 0;
|
|
8
|
+
}, i = (r) => (t, n) => r(t, n) && r(n, t) ? 0 : r(t, n) ? -1 : r(n, t) ? 1 : 0;
|
|
9
|
+
export {
|
|
10
|
+
e as combineComparators,
|
|
11
|
+
i as createComparator
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tuikit-atomicx-vue3",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -19,9 +19,13 @@
|
|
|
19
19
|
"types": "./dist/chat/index.d.ts",
|
|
20
20
|
"import": "./dist/chat/index.js"
|
|
21
21
|
},
|
|
22
|
-
"./
|
|
23
|
-
"types": "./dist/
|
|
24
|
-
"import": "./dist/
|
|
22
|
+
"./live": {
|
|
23
|
+
"types": "./dist/subEntry/live/index.d.ts",
|
|
24
|
+
"import": "./dist/subEntry/live/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./room": {
|
|
27
|
+
"types": "./dist/subEntry/room/index.d.ts",
|
|
28
|
+
"import": "./dist/subEntry/room/index.js"
|
|
25
29
|
},
|
|
26
30
|
"./types": {
|
|
27
31
|
"types": "./dist/types/index.d.ts",
|
|
@@ -50,10 +54,10 @@
|
|
|
50
54
|
},
|
|
51
55
|
"peerDependencies": {
|
|
52
56
|
"@tencentcloud/chat": "^3.5.8",
|
|
53
|
-
"@tencentcloud/chat-uikit-engine": "~2.5.
|
|
57
|
+
"@tencentcloud/chat-uikit-engine": "~2.5.7",
|
|
54
58
|
"@tencentcloud/tui-core": "latest",
|
|
55
|
-
"@tencentcloud/tuiroom-engine-js": "~3.
|
|
56
|
-
"@tencentcloud/uikit-base-component-vue3": "1.
|
|
59
|
+
"@tencentcloud/tuiroom-engine-js": "~3.5.0",
|
|
60
|
+
"@tencentcloud/uikit-base-component-vue3": "1.3.0",
|
|
57
61
|
"vue": "^3.4.21"
|
|
58
62
|
},
|
|
59
63
|
"dependencies": {
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="['audio-icon-container', `${size == 'small' && 'small'}`]">
|
|
3
3
|
<div class="audio-level-container">
|
|
4
|
-
<div class="audio-level" :style="audioLevelStyle"
|
|
4
|
+
<div class="audio-level" :style="audioLevelStyle" />
|
|
5
5
|
</div>
|
|
6
|
-
<IconMicOff
|
|
7
|
-
|
|
6
|
+
<IconMicOff
|
|
7
|
+
v-if="props.isMuted"
|
|
8
|
+
class="audio-icon"
|
|
9
|
+
:size="24"
|
|
10
|
+
/>
|
|
11
|
+
<IconMicOn
|
|
12
|
+
v-else
|
|
13
|
+
class="audio-icon"
|
|
14
|
+
:size="24"
|
|
15
|
+
/>
|
|
8
16
|
</div>
|
|
9
17
|
</template>
|
|
10
18
|
|
|
@@ -26,19 +26,20 @@
|
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
28
|
<script setup lang="ts">
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
29
|
+
import type { Ref } from 'vue';
|
|
30
|
+
import { ref, defineEmits, computed, inject } from 'vue';
|
|
31
31
|
import AudioIcon from '../../baseComp/AudioIcon.vue';
|
|
32
|
-
import
|
|
33
|
-
import { useI18n } from '../../locales';
|
|
32
|
+
import IconButton from '../../baseComp/IconButton.vue';
|
|
34
33
|
import vClickOutside from '../../directives/vClickOutside';
|
|
34
|
+
import { useI18n } from '../../locales';
|
|
35
35
|
import { useDeviceState } from '../../states/DeviceState';
|
|
36
|
-
import { DeviceStatus, DeviceError, AudioSettingProps, MediaSettingDisplayMode } from '../../types';
|
|
37
36
|
import { useRoomState } from '../../states/RoomState';
|
|
37
|
+
import { DeviceStatus, DeviceError, MediaSettingDisplayMode } from '../../types';
|
|
38
|
+
import AudioSettingTab from './AudioSettingTab.vue';
|
|
39
|
+
import type { AudioSettingProps } from '../../types';
|
|
38
40
|
|
|
39
|
-
const audioSettingProps: AudioSettingProps | undefined
|
|
40
|
-
inject('audioSettingProps');
|
|
41
|
-
|
|
41
|
+
const audioSettingProps: AudioSettingProps | undefined
|
|
42
|
+
= inject('audioSettingProps');
|
|
42
43
|
|
|
43
44
|
const { currentRoom } = useRoomState();
|
|
44
45
|
const {
|
|
@@ -59,7 +60,7 @@ const showAudioSettingTab: Ref<boolean> = ref(false);
|
|
|
59
60
|
const { t } = useI18n();
|
|
60
61
|
|
|
61
62
|
const isMuted = computed(() => {
|
|
62
|
-
if (!currentRoom
|
|
63
|
+
if (!currentRoom?.value) {
|
|
63
64
|
return !isMicrophoneTesting.value;
|
|
64
65
|
}
|
|
65
66
|
return microphoneStatus.value !== DeviceStatus.On;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
>
|
|
15
15
|
<span>{{ dialogContent }}</span>
|
|
16
16
|
<template #footer>
|
|
17
|
-
<TUIButton
|
|
17
|
+
<TUIButton type="primary" @click="handleAccept">
|
|
18
18
|
{{ t('Turn on the microphone') }}
|
|
19
19
|
</TUIButton>
|
|
20
20
|
<TUIButton @click="handleReject">
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script setup lang="ts">
|
|
28
|
-
import {
|
|
28
|
+
import type { Ref } from 'vue';
|
|
29
|
+
import { ref, onUnmounted } from 'vue';
|
|
29
30
|
import TUIRoomEngine, {
|
|
30
31
|
TUIRoomEvents,
|
|
31
|
-
TUIRequest,
|
|
32
32
|
TUIRequestAction,
|
|
33
33
|
TUIRole,
|
|
34
34
|
} from '@tencentcloud/tuiroom-engine-js';
|
|
35
|
-
import { TUIButton } from '@tencentcloud/uikit-base-component-vue3';
|
|
35
|
+
import { TUIButton, useUIKit } from '@tencentcloud/uikit-base-component-vue3';
|
|
36
36
|
import TuiDialog from '../../baseComp/Dialog';
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
39
|
-
import
|
|
37
|
+
import { useRoomEngine } from '../../hooks/useRoomEngine';
|
|
38
|
+
import { useUserState } from '../../states/UserState';
|
|
39
|
+
import type { TUIRequest } from '@tencentcloud/tuiroom-engine-js';
|
|
40
40
|
|
|
41
41
|
const roomEngine = useRoomEngine();
|
|
42
|
-
const { t } =
|
|
42
|
+
const { t } = useUIKit();
|
|
43
43
|
const dialogContent: Ref<string> = ref('');
|
|
44
44
|
|
|
45
45
|
const { getUserInfo } = useUserState();
|
|
@@ -52,8 +52,8 @@ const requestOpenMicRequestId: Ref<string> = ref('');
|
|
|
52
52
|
async function onRequestReceived(eventInfo: { request: TUIRequest }) {
|
|
53
53
|
const { userId, requestAction, requestId } = eventInfo.request;
|
|
54
54
|
if (requestAction === TUIRequestAction.kRequestToOpenRemoteMicrophone) {
|
|
55
|
-
const userRole
|
|
56
|
-
getUserInfo({ userId })?.userRole === TUIRole.kRoomOwner
|
|
55
|
+
const userRole
|
|
56
|
+
= getUserInfo({ userId })?.userRole === TUIRole.kRoomOwner
|
|
57
57
|
? t('RoomOwner')
|
|
58
58
|
: t('Admin');
|
|
59
59
|
dialogContent.value = t('Sb invites you to turn on the microphone', {
|
|
@@ -99,7 +99,7 @@ onUnmounted(() => {
|
|
|
99
99
|
roomEngine.instance?.off(TUIRoomEvents.onRequestReceived, onRequestReceived);
|
|
100
100
|
roomEngine.instance?.off(
|
|
101
101
|
TUIRoomEvents.onRequestCancelled,
|
|
102
|
-
onRequestCancelled
|
|
102
|
+
onRequestCancelled,
|
|
103
103
|
);
|
|
104
104
|
});
|
|
105
105
|
</script>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
'mic-bar',
|
|
20
20
|
`${showVolume && volumeNum > index ? 'active' : ''}`,
|
|
21
21
|
]"
|
|
22
|
-
|
|
22
|
+
/>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
25
|
<div v-if="audioSettingProps?.supportSwitchSpeaker" class="item-setting">
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
|
|
42
42
|
<script setup lang="ts">
|
|
43
43
|
import { computed, onBeforeUnmount, inject } from 'vue';
|
|
44
|
+
import { TUIButton, useUIKit } from '@tencentcloud/uikit-base-component-vue3';
|
|
45
|
+
import { useDeviceState } from '../../states/DeviceState';
|
|
46
|
+
import { MediaSettingDisplayMode } from '../../types';
|
|
44
47
|
import MicrophoneSelect from './MicrophoneSelect.vue';
|
|
45
48
|
import SpeakerSelect from './SpeakerSelect.vue';
|
|
46
|
-
import {
|
|
47
|
-
import { TUIButton } from '@tencentcloud/uikit-base-component-vue3';
|
|
48
|
-
import { useDeviceState } from '../../states/DeviceState';
|
|
49
|
-
import { AudioSettingProps, MediaSettingDisplayMode } from '../../types';
|
|
49
|
+
import type { AudioSettingProps } from '../../types';
|
|
50
50
|
|
|
51
|
-
const { t } =
|
|
51
|
+
const { t } = useUIKit();
|
|
52
52
|
const {
|
|
53
53
|
captureVolume,
|
|
54
54
|
isMicrophoneTesting,
|
|
@@ -59,24 +59,24 @@ const {
|
|
|
59
59
|
stopSpeakerTest,
|
|
60
60
|
} = useDeviceState();
|
|
61
61
|
|
|
62
|
-
const audioSettingProps: AudioSettingProps | undefined
|
|
63
|
-
inject('audioSettingProps');
|
|
62
|
+
const audioSettingProps: AudioSettingProps | undefined
|
|
63
|
+
= inject('audioSettingProps');
|
|
64
64
|
|
|
65
65
|
const isSimpleMode = computed(
|
|
66
|
-
() => audioSettingProps?.displayMode === MediaSettingDisplayMode.IconWithPanel
|
|
66
|
+
() => audioSettingProps?.displayMode === MediaSettingDisplayMode.IconWithPanel,
|
|
67
67
|
);
|
|
68
68
|
const isDetailMode = computed(
|
|
69
|
-
() => audioSettingProps?.displayMode === MediaSettingDisplayMode.Panel
|
|
69
|
+
() => audioSettingProps?.displayMode === MediaSettingDisplayMode.Panel,
|
|
70
70
|
);
|
|
71
71
|
|
|
72
72
|
const volumeTotalNum = computed(() => (isDetailMode.value ? 36 : 28));
|
|
73
73
|
|
|
74
74
|
const volumeNum = computed(
|
|
75
|
-
() => (captureVolume.value * volumeTotalNum.value) / 100
|
|
75
|
+
() => (captureVolume.value * volumeTotalNum.value) / 100,
|
|
76
76
|
);
|
|
77
77
|
|
|
78
78
|
const showVolume = computed(
|
|
79
|
-
() => isSimpleMode.value || (isDetailMode.value && isMicrophoneTesting.value)
|
|
79
|
+
() => isSimpleMode.value || (isDetailMode.value && isMicrophoneTesting.value),
|
|
80
80
|
);
|
|
81
81
|
|
|
82
82
|
/**
|
|
@@ -93,8 +93,8 @@ function handleMicrophoneTest() {
|
|
|
93
93
|
* Click on the speaker [Test] button
|
|
94
94
|
**/
|
|
95
95
|
async function handleSpeakerTest() {
|
|
96
|
-
const SPEAKER_TEST_URL
|
|
97
|
-
'https://web.sdk.qcloud.com/trtc/electron/download/resources/media/TestSpeaker.mp3';
|
|
96
|
+
const SPEAKER_TEST_URL
|
|
97
|
+
= 'https://web.sdk.qcloud.com/trtc/electron/download/resources/media/TestSpeaker.mp3';
|
|
98
98
|
if (isSpeakerTesting.value) {
|
|
99
99
|
stopSpeakerTest();
|
|
100
100
|
} else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<TUISelect
|
|
3
3
|
v-model="currentDeviceId"
|
|
4
4
|
placeholder="placeholder"
|
|
5
5
|
class="select"
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
:popper-append-to-body="false"
|
|
9
9
|
@change="handleChange"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
11
|
+
<TUIOption
|
|
12
12
|
v-for="item in microphoneList"
|
|
13
13
|
:key="item.deviceId"
|
|
14
14
|
:label="item.deviceName"
|
|
15
15
|
:value="item.deviceId"
|
|
16
16
|
/>
|
|
17
|
-
</
|
|
17
|
+
</TUISelect>
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script setup lang="ts">
|
|
21
21
|
import { ref, watch, defineProps, withDefaults, onBeforeMount } from 'vue';
|
|
22
|
-
import
|
|
23
|
-
import TuiOption from '../../baseComp/Option';
|
|
22
|
+
import { TUISelect, TUIOption } from '@tencentcloud/uikit-base-component-vue3';
|
|
24
23
|
import { useDeviceState } from '../../states/DeviceState';
|
|
25
|
-
import { TUIDeviceInfo } from '@tencentcloud/tuiroom-engine-js';
|
|
24
|
+
import type { TUIDeviceInfo } from '@tencentcloud/tuiroom-engine-js';
|
|
25
|
+
|
|
26
26
|
const { microphoneList, currentMicrophone, setCurrentMicrophone, getMicrophoneList } = useDeviceState();
|
|
27
27
|
|
|
28
28
|
interface Props {
|
|
@@ -36,12 +36,12 @@ const currentDeviceId = ref(currentMicrophone.value?.deviceId);
|
|
|
36
36
|
|
|
37
37
|
watch(
|
|
38
38
|
() => currentMicrophone.value?.deviceId,
|
|
39
|
-
val => {
|
|
39
|
+
(val) => {
|
|
40
40
|
if (currentDeviceId.value !== val) {
|
|
41
41
|
currentDeviceId.value = val;
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
{ immediate: true }
|
|
44
|
+
{ immediate: true },
|
|
45
45
|
);
|
|
46
46
|
|
|
47
47
|
async function handleChange(deviceId: string) {
|
|
@@ -50,8 +50,8 @@ async function handleChange(deviceId: string) {
|
|
|
50
50
|
await setCurrentMicrophone({ deviceId });
|
|
51
51
|
} catch (error) {
|
|
52
52
|
if (
|
|
53
|
-
currentMicrophone.value?.deviceId
|
|
54
|
-
microphoneList.value
|
|
53
|
+
currentMicrophone.value?.deviceId
|
|
54
|
+
&& microphoneList.value
|
|
55
55
|
.map((item: TUIDeviceInfo) => item.deviceId)
|
|
56
56
|
.includes(currentMicrophone.value?.deviceId)
|
|
57
57
|
) {
|
|
@@ -62,7 +62,7 @@ async function handleChange(deviceId: string) {
|
|
|
62
62
|
|
|
63
63
|
onBeforeMount(async () => {
|
|
64
64
|
await getMicrophoneList();
|
|
65
|
-
})
|
|
65
|
+
});
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
68
|
<style lang="scss" scoped>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<TUISelect
|
|
3
3
|
v-model="currentDeviceId"
|
|
4
4
|
placeholder="placeholder"
|
|
5
5
|
class="select"
|
|
@@ -8,21 +8,20 @@
|
|
|
8
8
|
:popper-append-to-body="false"
|
|
9
9
|
@change="handleChange"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
11
|
+
<TUIOption
|
|
12
12
|
v-for="item in speakerList"
|
|
13
13
|
:key="item.deviceId"
|
|
14
14
|
:label="item.deviceName"
|
|
15
15
|
:value="item.deviceId"
|
|
16
16
|
/>
|
|
17
|
-
</
|
|
17
|
+
</TUISelect>
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script setup lang="ts">
|
|
21
21
|
import { ref, watch, defineProps, withDefaults, onBeforeMount } from 'vue';
|
|
22
|
-
import {
|
|
23
|
-
import TuiSelect from '../../baseComp/Select';
|
|
24
|
-
import TuiOption from '../../baseComp/Option';
|
|
22
|
+
import { TUISelect, TUIOption } from '@tencentcloud/uikit-base-component-vue3';
|
|
25
23
|
import { useDeviceState } from '../../states/DeviceState';
|
|
24
|
+
import type { TUIDeviceInfo } from '@tencentcloud/tuiroom-engine-js';
|
|
26
25
|
|
|
27
26
|
interface Props {
|
|
28
27
|
onChange?: (id: string) => void;
|
|
@@ -37,12 +36,12 @@ const currentDeviceId = ref(currentSpeaker.value?.deviceId);
|
|
|
37
36
|
|
|
38
37
|
watch(
|
|
39
38
|
() => currentSpeaker.value?.deviceId,
|
|
40
|
-
val => {
|
|
39
|
+
(val) => {
|
|
41
40
|
if (currentDeviceId.value !== val) {
|
|
42
41
|
currentDeviceId.value = val;
|
|
43
42
|
}
|
|
44
43
|
},
|
|
45
|
-
{ immediate: true }
|
|
44
|
+
{ immediate: true },
|
|
46
45
|
);
|
|
47
46
|
|
|
48
47
|
async function handleChange(deviceId: string) {
|
|
@@ -51,8 +50,8 @@ async function handleChange(deviceId: string) {
|
|
|
51
50
|
await setCurrentSpeaker({ deviceId });
|
|
52
51
|
} catch (error) {
|
|
53
52
|
if (
|
|
54
|
-
currentSpeaker.value?.deviceId
|
|
55
|
-
speakerList.value
|
|
53
|
+
currentSpeaker.value?.deviceId
|
|
54
|
+
&& speakerList.value
|
|
56
55
|
.map((item: TUIDeviceInfo) => item.deviceId)
|
|
57
56
|
.includes(currentSpeaker.value?.deviceId)
|
|
58
57
|
) {
|
|
@@ -63,7 +62,7 @@ async function handleChange(deviceId: string) {
|
|
|
63
62
|
|
|
64
63
|
onBeforeMount(async () => {
|
|
65
64
|
await getSpeakerList();
|
|
66
|
-
})
|
|
65
|
+
});
|
|
67
66
|
</script>
|
|
68
67
|
|
|
69
68
|
<style lang="scss" scoped>
|
|
@@ -3,23 +3,20 @@
|
|
|
3
3
|
<audio-media-control
|
|
4
4
|
v-if="
|
|
5
5
|
displayMode === MediaSettingDisplayMode.Icon ||
|
|
6
|
-
|
|
6
|
+
displayMode === MediaSettingDisplayMode.IconWithPanel
|
|
7
7
|
"
|
|
8
8
|
@click-icon="handleAudioMediaClick"
|
|
9
9
|
/>
|
|
10
10
|
<audio-setting-tab v-if="displayMode === MediaSettingDisplayMode.Panel" />
|
|
11
|
-
<audio-request-dialog
|
|
12
|
-
v-if="displayMode !== MediaSettingDisplayMode.Panel"
|
|
13
|
-
/>
|
|
14
11
|
</div>
|
|
15
12
|
</template>
|
|
16
13
|
|
|
17
14
|
<script setup lang="ts">
|
|
18
15
|
import { withDefaults, defineProps, reactive, provide, defineEmits } from 'vue';
|
|
16
|
+
import { MediaSettingDisplayMode } from '../../types';
|
|
19
17
|
import AudioMediaControl from './AudioMediaControl.vue';
|
|
20
18
|
import AudioSettingTab from './AudioSettingTab.vue';
|
|
21
|
-
import
|
|
22
|
-
import { AudioSettingProps, MediaSettingDisplayMode } from '../../types';
|
|
19
|
+
import type { AudioSettingProps } from '../../types';
|
|
23
20
|
|
|
24
21
|
const emits = defineEmits(['click-icon']);
|
|
25
22
|
function handleAudioMediaClick() {
|
|
@@ -35,4 +32,4 @@ const props = withDefaults(defineProps<AudioSettingProps>(), {
|
|
|
35
32
|
provide('audioSettingProps', reactive(props));
|
|
36
33
|
</script>
|
|
37
34
|
|
|
38
|
-
<style lang="scss" scoped></style>
|
|
35
|
+
<style lang="scss" scoped></style>
|