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
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as K, computed as n, ref as y, watch as Q, nextTick as X, onMounted as Z, onBeforeUnmount as ee, createElementBlock as $, openBlock as x, normalizeClass as te, createElementVNode as ae, normalizeStyle as U, Fragment as ne, renderList as oe, createBlock as ie, unref as le, withCtx as re, renderSlot as ue, mergeProps as se } from "vue";
|
|
2
|
+
import { TUIVideoStreamType as z } from "@tencentcloud/tuiroom-engine-js";
|
|
3
|
+
import { useLoginState as ce } from "../../../states/LoginState.js";
|
|
4
|
+
import { useRoomState as me } from "../../../states/RoomState/index.js";
|
|
4
5
|
import { useUserState as ve } from "../../../states/UserState/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import { _ as Se } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const i = "16:9", we = /* @__PURE__ */ Q({
|
|
6
|
+
import { getNewUserInfo as fe } from "../../../states/UserState/store.js";
|
|
7
|
+
import { getContentSize as F } from "../../../utils/domOperation.js";
|
|
8
|
+
import { safelyParse as he } from "../../../utils/utils.js";
|
|
9
|
+
import pe from "../common/StreamRegion/StreamRegionPC.js";
|
|
10
|
+
import { useDeviceState as de } from "../../../states/DeviceState/DeviceState.js";
|
|
11
|
+
import { _ as ye } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const i = "16:9", ge = /* @__PURE__ */ K({
|
|
14
13
|
__name: "GridLayout",
|
|
15
14
|
props: {
|
|
16
15
|
config: { default: () => JSON.stringify({
|
|
@@ -24,26 +23,26 @@ const i = "16:9", we = /* @__PURE__ */ Q({
|
|
|
24
23
|
},
|
|
25
24
|
emits: ["stream-view-dblclick"],
|
|
26
25
|
setup(W, { emit: H }) {
|
|
27
|
-
const { userList: O, userListOnSeat: T, userWithScreenOn: g } = ve(), { microphoneStatus: V, cameraStatus: E } =
|
|
26
|
+
const { userList: O, userListOnSeat: T, userWithScreenOn: g } = ve(), { microphoneStatus: V, cameraStatus: E } = de(), { currentRoom: L } = me(), { loginUserInfo: B } = ce(), N = H, S = W, t = n(() => he(S.config) || {
|
|
28
27
|
maxRows: 3,
|
|
29
28
|
maxColumns: 3,
|
|
30
29
|
rowSpacing: 8,
|
|
31
30
|
columnSpacing: 8
|
|
32
|
-
}),
|
|
31
|
+
}), q = n(() => {
|
|
33
32
|
var a;
|
|
34
|
-
const e =
|
|
33
|
+
const e = fe(((a = B.value) == null ? void 0 : a.userId) || "local_fake_user");
|
|
35
34
|
return e.cameraStatus = E.value, e.microphoneStatus = V.value, e;
|
|
36
|
-
}),
|
|
35
|
+
}), D = n(() => {
|
|
37
36
|
var e;
|
|
38
|
-
return !L.value &&
|
|
37
|
+
return !L.value && localRoomStatus.value === LocalRoomStatus.IDLE ? [q.value] : (e = L.value) != null && e.isSeatEnabled ? T.value : O.value;
|
|
39
38
|
}), w = n(() => {
|
|
40
|
-
const e =
|
|
39
|
+
const e = D.value.filter(S.filterFn).map((a) => ({
|
|
41
40
|
userInfo: a,
|
|
42
|
-
streamType:
|
|
41
|
+
streamType: z.kCameraStream
|
|
43
42
|
}));
|
|
44
43
|
return g.value && [g.value].filter(S.filterFn).length > 0 && e.unshift({
|
|
45
44
|
userInfo: g.value,
|
|
46
|
-
streamType:
|
|
45
|
+
streamType: z.kScreenStream
|
|
47
46
|
}), e;
|
|
48
47
|
}), r = n(() => t.value.maxColumns === 1 / 0 ? t.value.maxColumns : Math.min(
|
|
49
48
|
Math.ceil(Math.sqrt(w.value.length)),
|
|
@@ -51,29 +50,26 @@ const i = "16:9", we = /* @__PURE__ */ Q({
|
|
|
51
50
|
)), v = n(() => t.value.maxRows === 1 / 0 ? t.value.maxRows : Math.min(
|
|
52
51
|
Math.ceil(w.value.length / r.value),
|
|
53
52
|
t.value.maxRows
|
|
54
|
-
)), o = y(),
|
|
53
|
+
)), o = y(), P = y(), I = n(
|
|
55
54
|
() => t.value.maxRows !== 1 / 0 && t.value.maxColumns !== 1 / 0
|
|
56
55
|
), R = n(() => t.value.maxColumns === 1 / 0), C = n(() => t.value.maxRows === 1 / 0);
|
|
57
|
-
|
|
56
|
+
Q(
|
|
58
57
|
() => [r.value, v.value],
|
|
59
58
|
async () => {
|
|
60
|
-
await
|
|
59
|
+
await X(), _();
|
|
61
60
|
},
|
|
62
61
|
{ immediate: !0 }
|
|
63
62
|
);
|
|
64
63
|
function _() {
|
|
65
64
|
if (R.value) {
|
|
66
|
-
|
|
65
|
+
J();
|
|
67
66
|
return;
|
|
68
67
|
}
|
|
69
68
|
if (C.value) {
|
|
70
|
-
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
if (I.value) {
|
|
74
|
-
J();
|
|
69
|
+
Y();
|
|
75
70
|
return;
|
|
76
71
|
}
|
|
72
|
+
I.value && G();
|
|
77
73
|
}
|
|
78
74
|
const f = y({
|
|
79
75
|
width: "0",
|
|
@@ -82,7 +78,7 @@ const i = "16:9", we = /* @__PURE__ */ Q({
|
|
|
82
78
|
width: "0",
|
|
83
79
|
height: "0"
|
|
84
80
|
}), u = n(() => (i == null ? void 0 : i.indexOf(":")) < 0 ? 0 : Number(i == null ? void 0 : i.split(":")[0])), s = n(() => i.indexOf(":") < 0 ? 0 : Number(i.split(":")[1]));
|
|
85
|
-
async function
|
|
81
|
+
async function G() {
|
|
86
82
|
if (!o.value)
|
|
87
83
|
return;
|
|
88
84
|
const e = o.value.getBoundingClientRect(), a = Math.floor(e.width), c = Math.floor(e.height), m = (a - (r.value - 1) * t.value.columnSpacing) / r.value, h = (c - (v.value - 1) * t.value.rowSpacing) / v.value;
|
|
@@ -93,63 +89,63 @@ const i = "16:9", we = /* @__PURE__ */ Q({
|
|
|
93
89
|
}
|
|
94
90
|
l.value.width = `${p}px`, l.value.height = `${d}px`, f.value.width = `${Math.ceil(r.value * p + (r.value - 1) * t.value.columnSpacing)}px`, f.value.height = `${Math.ceil(v.value * d + (v.value - 1) * t.value.rowSpacing)}px`;
|
|
95
91
|
}
|
|
96
|
-
function
|
|
92
|
+
function J() {
|
|
97
93
|
f.value = {};
|
|
98
|
-
const e =
|
|
94
|
+
const e = F(o.value).height, a = e * u.value / s.value;
|
|
99
95
|
l.value.width = `${a}px`, l.value.height = `${e}px`;
|
|
100
96
|
}
|
|
101
|
-
function
|
|
97
|
+
function Y() {
|
|
102
98
|
f.value = {};
|
|
103
|
-
const e =
|
|
99
|
+
const e = F(o.value).width, a = e * s.value / u.value;
|
|
104
100
|
l.value.width = `${e}px`, l.value.height = `${a}px`;
|
|
105
101
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
102
|
+
function j(e, a) {
|
|
103
|
+
N("stream-view-dblclick", e, a);
|
|
108
104
|
}
|
|
109
105
|
const k = new ResizeObserver(() => {
|
|
110
106
|
_();
|
|
111
107
|
});
|
|
112
|
-
|
|
108
|
+
Z(() => {
|
|
113
109
|
k.observe(o.value);
|
|
114
|
-
}),
|
|
110
|
+
}), ee(() => {
|
|
115
111
|
k.unobserve(o.value);
|
|
116
112
|
});
|
|
117
|
-
function
|
|
113
|
+
function A(e) {
|
|
118
114
|
o.value.scrollLeft += e.deltaY;
|
|
119
115
|
}
|
|
120
116
|
return (e, a) => (x(), $("div", {
|
|
121
117
|
ref_key: "streamListContainerRef",
|
|
122
118
|
ref: o,
|
|
123
|
-
class:
|
|
119
|
+
class: te({
|
|
124
120
|
"horizontal-infinity-layout": R.value,
|
|
125
121
|
"vertical-infinity-layout": C.value,
|
|
126
122
|
"equal-points-layout": I.value
|
|
127
123
|
})
|
|
128
124
|
}, [
|
|
129
|
-
|
|
130
|
-
class: "stream-list",
|
|
125
|
+
ae("div", {
|
|
131
126
|
ref_key: "streamListRef",
|
|
132
|
-
ref:
|
|
127
|
+
ref: P,
|
|
128
|
+
class: "stream-list",
|
|
133
129
|
style: U(f.value),
|
|
134
|
-
onWheel:
|
|
130
|
+
onWheel: A
|
|
135
131
|
}, [
|
|
136
|
-
(x(!0), $(
|
|
137
|
-
class: "stream-list-item",
|
|
132
|
+
(x(!0), $(ne, null, oe(w.value, (c) => (x(), ie(le(pe), {
|
|
138
133
|
key: `${c.userInfo.userId}_${c.streamType}`,
|
|
134
|
+
class: "stream-list-item",
|
|
139
135
|
userInfo: c.userInfo,
|
|
140
136
|
"stream-type": c.streamType,
|
|
141
137
|
style: U(l.value),
|
|
142
|
-
onStreamViewDblclick:
|
|
138
|
+
onStreamViewDblclick: j
|
|
143
139
|
}, {
|
|
144
|
-
streamViewUI:
|
|
145
|
-
|
|
140
|
+
streamViewUI: re((m) => [
|
|
141
|
+
ue(e.$slots, "streamViewUI", se({ ref_for: !0 }, m), void 0, !0)
|
|
146
142
|
]),
|
|
147
143
|
_: 3
|
|
148
144
|
}, 8, ["userInfo", "stream-type", "style"]))), 128))
|
|
149
145
|
], 36)
|
|
150
146
|
], 2));
|
|
151
147
|
}
|
|
152
|
-
}),
|
|
148
|
+
}), $e = /* @__PURE__ */ ye(ge, [["__scopeId", "data-v-f448c496"]]);
|
|
153
149
|
export {
|
|
154
|
-
|
|
150
|
+
$e as default
|
|
155
151
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UserInfo } from '../../../types';
|
|
2
|
-
import { TUIVideoStreamType } from '@tencentcloud/tuiroom-engine-js';
|
|
3
2
|
|
|
4
3
|
interface Props {
|
|
5
4
|
config?: string;
|
|
@@ -9,7 +8,7 @@ interface Props {
|
|
|
9
8
|
declare function __VLS_template(): {
|
|
10
9
|
streamViewUI?(_: {
|
|
11
10
|
userInfo: UserInfo;
|
|
12
|
-
streamType:
|
|
11
|
+
streamType: any;
|
|
13
12
|
}): any;
|
|
14
13
|
};
|
|
15
14
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as E, computed as r, ref as d, watch as f, createElementBlock as A, openBlock as L, normalizeClass as k, createBlock as b, createCommentVNode as J, createElementVNode as Q, unref as S, withCtx as W, renderSlot as z, normalizeProps as H, guardReactiveProps as K, createVNode as G } from "vue";
|
|
2
|
-
import Y from "../common/ArrowStroke.js";
|
|
3
|
-
import j from "../common/StreamRegion/StreamRegionPC.js";
|
|
4
|
-
import X from "../common/StreamList/index.js";
|
|
5
2
|
import { TUIVideoStreamType as s } from "@tencentcloud/tuiroom-engine-js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { useRoomState as Y } from "../../../states/RoomState/index.js";
|
|
4
|
+
import { useUserState as j } from "../../../states/UserState/index.js";
|
|
5
|
+
import X from "../common/ArrowStroke.js";
|
|
6
|
+
import Z from "../common/StreamList/index.js";
|
|
7
|
+
import ee from "../common/StreamRegion/StreamRegionPC.js";
|
|
8
8
|
import { StreamPlayQuality as P, StreamPlayMode as te } from "../../../types/stream.js";
|
|
9
9
|
import { DeviceStatus as T } from "../../../types/device.js";
|
|
10
10
|
import { _ as re } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -33,7 +33,7 @@ const ae = /* @__PURE__ */ E({
|
|
|
33
33
|
sortFn: { type: Function, default: (y, g, _) => 0 }
|
|
34
34
|
},
|
|
35
35
|
setup(y) {
|
|
36
|
-
const { currentRoom: g } =
|
|
36
|
+
const { currentRoom: g } = Y(), { userList: _, userListOnSeat: V, userWithScreenOn: w, localUser: I, userListWithCameraOn: C } = j(), D = r(() => {
|
|
37
37
|
var e;
|
|
38
38
|
return ((e = I.value) == null ? void 0 : e.cameraStatus) === T.On ? {
|
|
39
39
|
userInfo: I.value,
|
|
@@ -135,7 +135,7 @@ const ae = /* @__PURE__ */ E({
|
|
|
135
135
|
id: "streamContainer",
|
|
136
136
|
class: k(p.value)
|
|
137
137
|
}, [
|
|
138
|
-
v.value ? (L(), b(S(
|
|
138
|
+
v.value ? (L(), b(S(ee), {
|
|
139
139
|
key: 0,
|
|
140
140
|
class: "enlarged-stream-container",
|
|
141
141
|
"user-info": v.value.userInfo,
|
|
@@ -153,7 +153,7 @@ const ae = /* @__PURE__ */ E({
|
|
|
153
153
|
Q("div", {
|
|
154
154
|
class: k(["stream-list-container", `${l.value ? "" : "hide-list"}`])
|
|
155
155
|
}, [
|
|
156
|
-
G(
|
|
156
|
+
G(Z, {
|
|
157
157
|
streamInfoList: q.value,
|
|
158
158
|
config: B.value,
|
|
159
159
|
streamPlayMode: S(te).PLAY_IN_VISIBLE,
|
|
@@ -162,7 +162,7 @@ const ae = /* @__PURE__ */ E({
|
|
|
162
162
|
onStreamViewDblclick: $
|
|
163
163
|
}, null, 8, ["streamInfoList", "config", "streamPlayMode", "streamPlayQuality"])
|
|
164
164
|
], 2),
|
|
165
|
-
m.value && (R.value || l.value) ? (L(), b(
|
|
165
|
+
m.value && (R.value || l.value) ? (L(), b(X, {
|
|
166
166
|
key: 1,
|
|
167
167
|
class: k([`arrow-stroke-${x.value}`]),
|
|
168
168
|
"stroke-position": M.value,
|
|
@@ -172,7 +172,7 @@ const ae = /* @__PURE__ */ E({
|
|
|
172
172
|
}, null, 8, ["class", "stroke-position", "arrow-direction", "has-stroke"])) : J("", !0)
|
|
173
173
|
], 2));
|
|
174
174
|
}
|
|
175
|
-
}), pe = /* @__PURE__ */ re(ae, [["__scopeId", "data-v-
|
|
175
|
+
}), pe = /* @__PURE__ */ re(ae, [["__scopeId", "data-v-7b9e1ae3"]]);
|
|
176
176
|
export {
|
|
177
177
|
pe as default
|
|
178
178
|
};
|
|
@@ -13,7 +13,7 @@ interface Props {
|
|
|
13
13
|
declare function __VLS_template(): {
|
|
14
14
|
streamViewUI?(_: {
|
|
15
15
|
userInfo: UserInfo;
|
|
16
|
-
streamType:
|
|
16
|
+
streamType: any;
|
|
17
17
|
}): any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
@@ -16,7 +16,7 @@ interface Props {
|
|
|
16
16
|
declare function __VLS_template(): {
|
|
17
17
|
streamViewUI?(_: {
|
|
18
18
|
userInfo: UserInfo;
|
|
19
|
-
streamType:
|
|
19
|
+
streamType: any;
|
|
20
20
|
}): any;
|
|
21
21
|
};
|
|
22
22
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
@@ -13,11 +13,11 @@ interface Props {
|
|
|
13
13
|
declare function __VLS_template(): {
|
|
14
14
|
"stream-cover"?(_: {
|
|
15
15
|
userInfo: UserInfo;
|
|
16
|
-
streamType:
|
|
16
|
+
streamType: any;
|
|
17
17
|
}): any;
|
|
18
18
|
streamViewUI?(_: {
|
|
19
19
|
userInfo: UserInfo;
|
|
20
|
-
streamType:
|
|
20
|
+
streamType: any;
|
|
21
21
|
}): any;
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -1,3 +1,90 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const StreamView: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
mode: {
|
|
4
|
+
type: import('vue').PropType<string>;
|
|
5
|
+
required: true;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
config: {
|
|
9
|
+
type: import('vue').PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
filterFn: {
|
|
13
|
+
type: import('vue').PropType<(userInfo: import('../..').UserInfo, index: number) => boolean>;
|
|
14
|
+
default: () => true;
|
|
15
|
+
};
|
|
16
|
+
sortFn: {
|
|
17
|
+
type: import('vue').PropType<(userInfoA: import('../..').UserInfo, userInfoB: import('../..').UserInfo) => number>;
|
|
18
|
+
default: () => 0;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
21
|
+
mode: string;
|
|
22
|
+
config: string;
|
|
23
|
+
filterFn: (userInfo: import('../..').UserInfo, index: number) => boolean;
|
|
24
|
+
sortFn: (userInfoA: import('../..').UserInfo, userInfoB: import('../..').UserInfo) => number;
|
|
25
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
33
|
+
mode: {
|
|
34
|
+
type: import('vue').PropType<string>;
|
|
35
|
+
required: true;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
config: {
|
|
39
|
+
type: import('vue').PropType<string>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
filterFn: {
|
|
43
|
+
type: import('vue').PropType<(userInfo: import('../..').UserInfo, index: number) => boolean>;
|
|
44
|
+
default: () => true;
|
|
45
|
+
};
|
|
46
|
+
sortFn: {
|
|
47
|
+
type: import('vue').PropType<(userInfoA: import('../..').UserInfo, userInfoB: import('../..').UserInfo) => number>;
|
|
48
|
+
default: () => 0;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
51
|
+
mode: string;
|
|
52
|
+
config: string;
|
|
53
|
+
filterFn: (userInfo: import('../..').UserInfo, index: number) => boolean;
|
|
54
|
+
sortFn: (userInfoA: import('../..').UserInfo, userInfoB: import('../..').UserInfo) => number;
|
|
55
|
+
}>;
|
|
56
|
+
__isFragment?: never;
|
|
57
|
+
__isTeleport?: never;
|
|
58
|
+
__isSuspense?: never;
|
|
59
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
60
|
+
mode: {
|
|
61
|
+
type: import('vue').PropType<string>;
|
|
62
|
+
required: true;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
config: {
|
|
66
|
+
type: import('vue').PropType<string>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
filterFn: {
|
|
70
|
+
type: import('vue').PropType<(userInfo: import('../..').UserInfo, index: number) => boolean>;
|
|
71
|
+
default: () => true;
|
|
72
|
+
};
|
|
73
|
+
sortFn: {
|
|
74
|
+
type: import('vue').PropType<(userInfoA: import('../..').UserInfo, userInfoB: import('../..').UserInfo) => number>;
|
|
75
|
+
default: () => 0;
|
|
76
|
+
};
|
|
77
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
78
|
+
mode: string;
|
|
79
|
+
config: string;
|
|
80
|
+
filterFn: (userInfo: import('../..').UserInfo, index: number) => boolean;
|
|
81
|
+
sortFn: (userInfoA: import('../..').UserInfo, userInfoB: import('../..').UserInfo) => number;
|
|
82
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
83
|
+
$slots: {
|
|
84
|
+
streamViewUI?(_: {
|
|
85
|
+
userInfo: import('../..').UserInfo;
|
|
86
|
+
streamType: any;
|
|
87
|
+
}): any;
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
export { StreamView, };
|
|
@@ -4,7 +4,7 @@ import F from "./Layout/CustomLayout.js";
|
|
|
4
4
|
import w from "./Layout/FloatLayout.js";
|
|
5
5
|
import y from "./Layout/GridLayout.js";
|
|
6
6
|
import U from "./Layout/MeetingLayout.js";
|
|
7
|
-
const
|
|
7
|
+
const V = /* @__PURE__ */ c({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
10
10
|
mode: { default: "grid" },
|
|
@@ -13,7 +13,7 @@ const S = /* @__PURE__ */ c({
|
|
|
13
13
|
sortFn: { type: Function, default: () => 0 }
|
|
14
14
|
},
|
|
15
15
|
setup(e) {
|
|
16
|
-
return s(() => d.mixUserInfo), (o,
|
|
16
|
+
return s(() => d.mixUserInfo), (o, I) => (n(), u(g, null, [
|
|
17
17
|
e.mode === "float" ? (n(), r(w, {
|
|
18
18
|
key: 0,
|
|
19
19
|
config: e.config,
|
|
@@ -60,7 +60,7 @@ const S = /* @__PURE__ */ c({
|
|
|
60
60
|
}, 8, ["config", "filter-fn", "sort-fn"])) : f("", !0)
|
|
61
61
|
], 64));
|
|
62
62
|
}
|
|
63
|
-
});
|
|
63
|
+
}), h = V;
|
|
64
64
|
export {
|
|
65
|
-
|
|
65
|
+
h as StreamView
|
|
66
66
|
};
|
|
@@ -9,7 +9,7 @@ interface Props {
|
|
|
9
9
|
declare function __VLS_template(): {
|
|
10
10
|
streamViewUI?(_: {
|
|
11
11
|
userInfo: UserInfo;
|
|
12
|
-
streamType:
|
|
12
|
+
streamType: any;
|
|
13
13
|
}): any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
@@ -5,10 +5,10 @@ import P, { TUIVideoStreamType as c, TRTCVideoStreamType as V, TRTCVideoFillMode
|
|
|
5
5
|
import { useRoomEngine as U } from "../../../hooks/useRoomEngine.js";
|
|
6
6
|
import { useUserState as O } from "../../../states/UserState/index.js";
|
|
7
7
|
import { innerUserStore as k } from "../../../states/UserState/store.js";
|
|
8
|
-
import {
|
|
8
|
+
import { isVideoMixerEnabled as C } from "../../../states/VideoMixerState/VideoMixerState.js";
|
|
9
9
|
import { StreamPlayStatus as h } from "../../../types/user.js";
|
|
10
|
-
const { localUser: S } = O(),
|
|
11
|
-
function
|
|
10
|
+
const { localUser: S } = O(), l = U(), T = /* @__PURE__ */ new Map();
|
|
11
|
+
function L(a, t) {
|
|
12
12
|
var r;
|
|
13
13
|
T.get(`${a.userId}-${a.streamType}`) || T.set(`${a.userId}-${a.streamType}`, /* @__PURE__ */ new Map()), (r = T.get(`${a.userId}-${a.streamType}`)) == null || r.set(t.view, t.streamType);
|
|
14
14
|
}
|
|
@@ -25,8 +25,8 @@ function b(a) {
|
|
|
25
25
|
};
|
|
26
26
|
k.updateUserInfo({ userId: t, ...o });
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
class
|
|
28
|
+
var A = /* @__PURE__ */ ((a) => (a.PLAY = "play", a.STOP = "stop", a.PLAY_IN_VISIBLE = "playInVisible", a))(A || {}), _ = /* @__PURE__ */ ((a) => (a.HIGH = "high", a.LOW = "low", a.Default = "default", a))(_ || {});
|
|
29
|
+
class Y {
|
|
30
30
|
constructor() {
|
|
31
31
|
p(this, "intersectionObserver", null);
|
|
32
32
|
p(this, "observerDataMap", /* @__PURE__ */ new Map());
|
|
@@ -44,7 +44,7 @@ class G {
|
|
|
44
44
|
r,
|
|
45
45
|
o,
|
|
46
46
|
i
|
|
47
|
-
),
|
|
47
|
+
), L({ userId: e, streamType: r }, { view: o, streamType: r }), !i) {
|
|
48
48
|
await this.doStartPlayVideo({ userId: e, streamType: r });
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
@@ -169,7 +169,7 @@ class G {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
Y as MediaManager,
|
|
173
|
+
A as StreamPlayMode,
|
|
174
|
+
_ as StreamPlayQuality
|
|
175
175
|
};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { defineComponent as A, computed as S, createBlock as l, openBlock as r, Teleport as U, createVNode as y, Transition as $, withCtx as C, createElementBlock as H, createCommentVNode as s, withModifiers as B, createElementVNode as d, unref as i, toDisplayString as p, createTextVNode as M, createApp as N } from "vue";
|
|
2
|
+
import { IconSuccessToast as R, IconInfoToast as V, IconErrorToast as W, IconWarningToast as K, IconClose as P, TUIButton as _ } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import { g as q } from "../../index-CeQ4nl87.js";
|
|
4
|
+
import { useI18n as z } from "../../locales/index.js";
|
|
5
|
+
import { useUIKitModalState as D } from "../../states/UIKitModalState/UIKitModalState.js";
|
|
6
|
+
const F = { class: "uikit-modal-default uikit-modal-container" }, G = { class: "uikit-modal-header" }, X = { class: "uikit-modal-title" }, O = ["innerHTML"], j = { class: "uikit-modal-footer" }, J = /* @__PURE__ */ A({
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
visible: { type: Boolean, default: !1 },
|
|
10
|
+
id: {},
|
|
11
|
+
title: { default: "" },
|
|
12
|
+
content: { default: "" },
|
|
13
|
+
type: { default: "info" },
|
|
14
|
+
onConfirm: {},
|
|
15
|
+
onCancel: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["confirm", "cancel"],
|
|
18
|
+
setup(t, { emit: c }) {
|
|
19
|
+
const m = q() === "pc", { t: f } = z(), n = t, T = c, x = /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/i, b = /(https?:\/\/[^\s]+)/g, I = S(() => {
|
|
20
|
+
const { content: e } = n;
|
|
21
|
+
if (!e || typeof e != "string")
|
|
22
|
+
return e;
|
|
23
|
+
if (x.test(e.trim())) {
|
|
24
|
+
const o = e.trim(), h = o.startsWith("http") ? o : `https://${o}`;
|
|
25
|
+
return `<a href="${k(h)}" target="_blank" rel="noopener noreferrer" class="uikit-modal-link">${k(o)}</a>`;
|
|
26
|
+
}
|
|
27
|
+
return e.includes("<a ") || e.includes("<a>") ? E(e) : b.test(e) ? k(e).replace(b, (o) => `<a href="${o}" target="_blank" rel="noopener noreferrer" class="uikit-modal-link">${o}</a>`) : k(e);
|
|
28
|
+
});
|
|
29
|
+
function k(e) {
|
|
30
|
+
const o = document.createElement("div");
|
|
31
|
+
return o.textContent = e, o.innerHTML;
|
|
32
|
+
}
|
|
33
|
+
function E(e) {
|
|
34
|
+
const h = new DOMParser().parseFromString(e, "text/html");
|
|
35
|
+
return h.querySelectorAll("a").forEach((a) => {
|
|
36
|
+
if (a.getAttribute("href")) {
|
|
37
|
+
a.setAttribute("target", "_blank"), a.setAttribute("rel", "noopener noreferrer"), a.classList.add("uikit-modal-link");
|
|
38
|
+
const L = a.textContent || "";
|
|
39
|
+
a.innerHTML = `<span style="padding: 0 0.2em; display: inline-block; color: var(--text-color-link)">${L}</span>`;
|
|
40
|
+
}
|
|
41
|
+
}), h.body.innerHTML;
|
|
42
|
+
}
|
|
43
|
+
function g() {
|
|
44
|
+
var e;
|
|
45
|
+
(e = n.onConfirm) == null || e.call(n), T("confirm");
|
|
46
|
+
}
|
|
47
|
+
function v() {
|
|
48
|
+
var e;
|
|
49
|
+
(e = n.onCancel) == null || e.call(n), T("cancel");
|
|
50
|
+
}
|
|
51
|
+
return (e, o) => (r(), l(U, { to: "body" }, [
|
|
52
|
+
y($, { name: "fade" }, {
|
|
53
|
+
default: C(() => [
|
|
54
|
+
t.visible ? (r(), H("div", {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "uikit-modal-mask",
|
|
57
|
+
onClick: B(g, ["self"])
|
|
58
|
+
}, [
|
|
59
|
+
d("div", F, [
|
|
60
|
+
d("div", G, [
|
|
61
|
+
t.type === "success" ? (r(), l(i(R), {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "uikit-modal-type-icon"
|
|
64
|
+
})) : s("", !0),
|
|
65
|
+
t.type === "info" ? (r(), l(i(V), {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: "uikit-modal-type-icon"
|
|
68
|
+
})) : s("", !0),
|
|
69
|
+
t.type === "error" ? (r(), l(i(W), {
|
|
70
|
+
key: 2,
|
|
71
|
+
class: "uikit-modal-type-icon"
|
|
72
|
+
})) : s("", !0),
|
|
73
|
+
t.type === "warning" ? (r(), l(i(K), {
|
|
74
|
+
key: 3,
|
|
75
|
+
class: "uikit-modal-type-icon"
|
|
76
|
+
})) : s("", !0),
|
|
77
|
+
d("span", X, p(t.title), 1),
|
|
78
|
+
m ? (r(), l(i(P), {
|
|
79
|
+
key: 4,
|
|
80
|
+
class: "uikit-modal-close-icon",
|
|
81
|
+
onClick: v
|
|
82
|
+
})) : s("", !0)
|
|
83
|
+
]),
|
|
84
|
+
d("div", {
|
|
85
|
+
class: "uikit-modal-body",
|
|
86
|
+
innerHTML: I.value
|
|
87
|
+
}, null, 8, O),
|
|
88
|
+
d("div", j, [
|
|
89
|
+
y(i(_), {
|
|
90
|
+
type: "default",
|
|
91
|
+
style: { "min-width": "88px" },
|
|
92
|
+
onClick: v
|
|
93
|
+
}, {
|
|
94
|
+
default: C(() => [
|
|
95
|
+
M(p(i(f)("Cancel")), 1)
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}),
|
|
99
|
+
y(i(_), {
|
|
100
|
+
type: "primary",
|
|
101
|
+
style: { "min-width": "88px" },
|
|
102
|
+
onClick: g
|
|
103
|
+
}, {
|
|
104
|
+
default: C(() => [
|
|
105
|
+
M(p(i(f)("Confirm")), 1)
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
})
|
|
109
|
+
])
|
|
110
|
+
])
|
|
111
|
+
])) : s("", !0)
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
})
|
|
115
|
+
]));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
let u = null;
|
|
119
|
+
const { openModal: Q, closeModal: Y } = D(), Z = () => {
|
|
120
|
+
const t = window.location.hostname, c = window.location.href;
|
|
121
|
+
return !!(t === "localhost" || t === "127.0.0.1" || t.startsWith("192.168.") || c.startsWith("https://web.sdk.qcloud.com/trtc/livekit"));
|
|
122
|
+
}, w = () => {
|
|
123
|
+
u && (u.unmount(), u = null);
|
|
124
|
+
}, tt = (t) => new Promise((c) => {
|
|
125
|
+
if (w(), Q({
|
|
126
|
+
id: t.id,
|
|
127
|
+
title: t.title,
|
|
128
|
+
content: t.content,
|
|
129
|
+
type: t.type,
|
|
130
|
+
onConfirm: t.onConfirm,
|
|
131
|
+
onCancel: t.onCancel
|
|
132
|
+
}), !Z()) {
|
|
133
|
+
c({ action: "confirm" });
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const m = (n) => {
|
|
137
|
+
Y(n), w(), c({ action: n });
|
|
138
|
+
}, f = {
|
|
139
|
+
...t,
|
|
140
|
+
visible: !0,
|
|
141
|
+
onConfirm: () => {
|
|
142
|
+
var n;
|
|
143
|
+
(n = t.onConfirm) == null || n.call(t), m("confirm");
|
|
144
|
+
},
|
|
145
|
+
onCancel: () => {
|
|
146
|
+
var n;
|
|
147
|
+
(n = t.onCancel) == null || n.call(t), m("cancel");
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
u = N(J, f), u.mount(document.createElement("div"));
|
|
151
|
+
}), lt = {
|
|
152
|
+
openModal: (t) => tt(t)
|
|
153
|
+
};
|
|
154
|
+
export {
|
|
155
|
+
lt as UIKitModal
|
|
156
|
+
};
|