tuikit-atomicx-vue3 4.4.0 → 4.5.1
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/{PopoverTrigger-L8abAry7.js → PopoverPortal-DghpKKm8.js} +91 -136
- package/dist/PopoverTrigger-BajjNkGO.js +54 -0
- package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-SLoFuK7k.js} +6 -6
- package/dist/{Teleport-CSEuZbpM.js → Teleport-DFrneqLM.js} +4 -4
- 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/baseComp/Modal/Modal.js +3 -3
- package/dist/changeNameCardDialog.vue_vue_type_script_setup_true_lang-a4FmKskP.js +41 -0
- 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/EmojiPicker/EmojiPicker.js +10 -9
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +16 -14
- 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/ConversationPreviewAbstract.js +62 -40
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +30 -26
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +27 -23
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +67 -65
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +16 -16
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +32 -30
- package/dist/components/ConversationList/ConversationPreview/utils.d.ts +2 -2
- package/dist/components/ConversationList/ConversationPreview/utils.js +81 -35
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +36 -36
- package/dist/components/ConversationList/i18n/en-US.d.ts +10 -1
- package/dist/components/ConversationList/i18n/en-US.js +11 -2
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +10 -1
- package/dist/components/ConversationList/i18n/zh-CN.js +11 -2
- 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 +48 -46
- 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/AttachmentPicker/index.js +10 -9
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +17 -16
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +4 -1
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +35 -35
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +14 -12
- package/dist/components/MessageInput/TextEditor/EditorCore.js +59 -108
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +5 -1
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +229 -0
- package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue.d.ts +15 -0
- 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/emojiExtension.d.ts +1 -0
- package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +22 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.d.ts +3 -0
- package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +15 -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/extensions/index.d.ts +8 -0
- package/dist/components/MessageInput/TextEditor/extensions/index.js +12 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.d.ts +5 -0
- package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +330 -0
- package/dist/components/MessageInput/TextEditor/index.js +64 -55
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
- package/dist/components/MessageInput/i18n/en-US.d.ts +3 -0
- package/dist/components/MessageInput/i18n/en-US.js +4 -1
- package/dist/components/MessageInput/i18n/index.d.ts +10 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +7 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +8 -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/ImageMessage/ImageMessage.js +119 -89
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.js +142 -0
- package/dist/components/MessageList/Message/ImageMessage/ImagePreview.vue.d.ts +20 -0
- package/dist/components/MessageList/Message/Message.vue.d.ts +8 -0
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +74 -69
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +8 -0
- 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/Message/index.js +8 -4
- package/dist/components/MessageList/MessageList.js +98 -90
- package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
- package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
- package/dist/components/MessageList/i18n/en-US.js +66 -2
- package/dist/components/MessageList/i18n/index.d.ts +128 -0
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
- package/dist/components/MessageList/i18n/zh-CN.js +64 -0
- package/dist/components/MessageList/index.d.ts +21 -3
- 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/SearchResults/SearchResultsItem/Message/Message.js +6 -6
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +1 -1
- 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-BvFYOUyz.js +2936 -0
- package/dist/{index-BfIEeWMg.js → index-C8Jw_xE4.js} +825 -800
- package/dist/index-CiYL_XsE.js +64 -0
- package/dist/index-CzCDLp99.js +2174 -0
- package/dist/index.d.ts +4 -7
- 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 +83 -103
- package/dist/states/MessageInputState/MessageInputState.js +115 -83
- package/dist/states/MessageInputState/type.d.ts +36 -10
- package/dist/states/MessageInputState/utils.d.ts +1 -5
- package/dist/states/MessageListState/MessageListState.d.ts +40 -1
- 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/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/{chat/index.d.ts → subEntry/chat/chat.d.ts} +2554 -2514
- package/dist/subEntry/chat/chat.js +89 -0
- package/dist/subEntry/chat/index.d.ts +11 -0
- package/dist/subEntry/chat/index.js +81 -0
- package/dist/{chat → subEntry/chat}/server.js +4 -4
- 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/{useId-CtirfF0W.js → useId-D5WE76CM.js} +1 -1
- 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/dist/{utils-DaB7eSu5.js → utils-CttDpxqz.js} +1 -1
- package/package.json +16 -10
- 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/ConversationPreview.scss +8 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +32 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +3 -3
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +3 -2
- package/src/components/ConversationList/ConversationPreview/utils.ts +98 -28
- package/src/components/ConversationList/i18n/en-US.ts +10 -1
- package/src/components/ConversationList/i18n/zh-CN.ts +10 -1
- package/src/components/FreeBeautyPanel/FreeBeautyPanel.vue +618 -0
- package/src/components/FreeBeautyPanel/i18n/en-US/index.ts +16 -0
- package/src/components/FreeBeautyPanel/i18n/index.ts +4 -0
- package/src/components/FreeBeautyPanel/i18n/zh-CN/index.ts +16 -0
- package/src/components/FreeBeautyPanel/index.ts +11 -0
- package/src/components/LiveScenePanel/index.ts +4 -1
- package/src/components/LiveScenePanel/index.vue +1 -0
- 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/QuotedMessagePreview/QuotedMessagePreview.vue +19 -22
- package/src/components/MessageInput/TextEditor/Editor.scss +25 -0
- package/src/components/MessageInput/TextEditor/EditorCore.ts +78 -111
- package/src/components/MessageInput/TextEditor/TextEditor.vue +68 -51
- package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +449 -0
- package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
- package/src/components/MessageInput/TextEditor/extensions/emojiExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/enterKeyExtension.ts +22 -0
- package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
- package/src/components/MessageInput/TextEditor/extensions/index.ts +8 -0
- package/src/components/MessageInput/TextEditor/extensions/mentionExtension.ts +87 -0
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
- package/src/components/MessageInput/i18n/en-US.ts +3 -0
- package/src/components/MessageInput/i18n/zh-CN.ts +7 -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/ImageMessage/ImageMessage.vue +49 -0
- package/src/components/MessageList/Message/ImageMessage/ImagePreview.vue +344 -0
- package/src/components/MessageList/Message/Message.vue +6 -0
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +16 -9
- package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
- package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
- package/src/components/MessageList/MessageList.vue +36 -14
- 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/Search/SearchResults/SearchResultsItem/Message/Message.vue +30 -31
- 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 +8 -10
- package/src/report/MetricsKey.ts +28 -14
- package/src/report/dataReport.ts +13 -9
- package/src/{chat/index.ts → subEntry/chat/chat.ts} +25 -18
- package/src/subEntry/chat/index.ts +13 -0
- package/src/{chat → subEntry/chat}/server.ts +3 -3
- 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/chat/index.js +0 -59
- package/dist/index-DTi1fL-x.js +0 -5128
- 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/dist/states/SearchState.d.ts +0 -267
- package/src/rtc/index.ts +0 -100
- /package/dist/{chat → subEntry/chat}/server.d.ts +0 -0
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
var L = Object.defineProperty;
|
|
2
|
+
var U = (m, e, t) => e in m ? L(m, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[e] = t;
|
|
3
|
+
var k = (m, e, t) => U(m, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import M, { TUIRole as h, TUIMediaDevice as f, TUIRequestCallbackType as v, TUIRequestAction as c, TUIRoomEvents as q } from "@tencentcloud/tuiroom-engine-js";
|
|
5
|
+
import { useRoomEngine as O } from "../../hooks/useRoomEngine.js";
|
|
6
|
+
import { eventCenter as R } from "../../utils/eventCenter.js";
|
|
7
|
+
import { useRoomState as S } from "../RoomState/index.js";
|
|
8
|
+
import { participantTransfer as I } from "./common.js";
|
|
9
|
+
import { useRoomParticipantStore as P } from "./store.js";
|
|
10
|
+
import { DeviceStatus as $, DeviceType as s } from "../../types/device.js";
|
|
11
|
+
import { RoomParticipantEvent as T } from "../../types/participant.js";
|
|
12
|
+
const { currentRoom: b } = S(), {
|
|
13
|
+
participantListCursor: _,
|
|
14
|
+
localParticipant: g,
|
|
15
|
+
sentRequestMap: l,
|
|
16
|
+
receivedRequestMap: n,
|
|
17
|
+
addParticipantInfo: D,
|
|
18
|
+
getParticipantInfo: C,
|
|
19
|
+
updateParticipantInfo: y,
|
|
20
|
+
addPendingParticipantInfo: w
|
|
21
|
+
} = P(), i = O(), p = class p {
|
|
22
|
+
/**
|
|
23
|
+
* 构造函数
|
|
24
|
+
* @memberof ParticipantManager
|
|
25
|
+
* @description 初始化参与者管理器,采用单例模式确保全局唯一实例,绑定事件处理器
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* // 获取参与者管理器实例
|
|
29
|
+
* const participantManager = new ParticipantManager();
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
constructor() {
|
|
33
|
+
p.instance || (p.instance = this), this.onRequestReceived = this.onRequestReceived.bind(this), this.onRequestCancelled = this.onRequestCancelled.bind(this), this.onRequestProcessed = this.onRequestProcessed.bind(this), this.bindRoomEngineEvents();
|
|
34
|
+
}
|
|
35
|
+
async getScheduledParticipantList() {
|
|
36
|
+
var a, r;
|
|
37
|
+
const e = (a = i.instance) == null ? void 0 : a.getConferenceListManager();
|
|
38
|
+
if (!i.instance || !e)
|
|
39
|
+
throw new Error("please login firstly by useLoginState");
|
|
40
|
+
(await e.fetchAttendeeList({
|
|
41
|
+
roomId: ((r = b.value) == null ? void 0 : r.roomId) || "",
|
|
42
|
+
cursor: "",
|
|
43
|
+
count: 300
|
|
44
|
+
})).attendeeList.forEach((d) => {
|
|
45
|
+
const o = I.transformTUIUserInfoToParticipantInfo(d);
|
|
46
|
+
C({ userId: o.userId }) || w(o);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
async getCallingParticipantList() {
|
|
50
|
+
var a, r;
|
|
51
|
+
const e = (a = i.instance) == null ? void 0 : a.getConferenceInvitationManager();
|
|
52
|
+
if (!i.instance || !e)
|
|
53
|
+
throw new Error("please login firstly by useLoginState");
|
|
54
|
+
(await e.getInvitationList({
|
|
55
|
+
roomId: ((r = b.value) == null ? void 0 : r.roomId) || "",
|
|
56
|
+
cursor: "",
|
|
57
|
+
count: 100
|
|
58
|
+
})).invitationList.forEach((d) => {
|
|
59
|
+
const o = I.transformTUIInvitationToParticipantInfo(d);
|
|
60
|
+
C({ userId: o.userId }) || w(o);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
async getPendingParticipantList() {
|
|
64
|
+
if (!i.instance)
|
|
65
|
+
throw new Error("please login firstly by useLoginState");
|
|
66
|
+
await this.getScheduledParticipantList(), await this.getCallingParticipantList();
|
|
67
|
+
}
|
|
68
|
+
getUserListCursor(e) {
|
|
69
|
+
return e > 0 ? e.toString() : "";
|
|
70
|
+
}
|
|
71
|
+
async getParticipantList(e) {
|
|
72
|
+
if (!i.instance)
|
|
73
|
+
return { participantList: [], cursor: "" };
|
|
74
|
+
const { cursor: t = "" } = e, a = [];
|
|
75
|
+
let r = t;
|
|
76
|
+
if (t === "")
|
|
77
|
+
do {
|
|
78
|
+
const d = await i.instance.getUserList({ nextSequence: Number(r) });
|
|
79
|
+
d.userInfoList.forEach((o) => {
|
|
80
|
+
const u = I.transformTUIUserInfoToParticipantInfo(o);
|
|
81
|
+
D(u), a.push(u);
|
|
82
|
+
}), r = this.getUserListCursor(d.nextSequence);
|
|
83
|
+
} while (r !== "" && a.length < 300);
|
|
84
|
+
else {
|
|
85
|
+
const d = await i.instance.getUserList({ nextSequence: Number(r) });
|
|
86
|
+
d.userInfoList.forEach((o) => {
|
|
87
|
+
const u = I.transformTUIUserInfoToParticipantInfo(o);
|
|
88
|
+
D(u), a.push(u);
|
|
89
|
+
}), r = this.getUserListCursor(d.nextSequence);
|
|
90
|
+
}
|
|
91
|
+
return _.value = r, t === "" && this.getPendingParticipantList(), { participantList: a, cursor: r };
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* 转移房间所有者权限
|
|
95
|
+
* @memberof ParticipantManager
|
|
96
|
+
* @description 将房间所有者权限转移给指定用户,只有当前房间所有者才能执行此操作
|
|
97
|
+
* @param {Object} options - 转移权限配置
|
|
98
|
+
* @param {string} options.userId - 目标用户ID,将成为新的房间所有者
|
|
99
|
+
* @returns {Promise<void>} 转移权限的Promise
|
|
100
|
+
* @throws {Error} 当用户无权限或目标用户不存在时抛出错误
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* const participantManager = new ParticipantManager();
|
|
104
|
+
*
|
|
105
|
+
* // 转移房间所有者权限
|
|
106
|
+
* try {
|
|
107
|
+
* await participantManager.transferOwner({ userId: 'newOwner123' });
|
|
108
|
+
* console.log('房间所有者权限转移成功');
|
|
109
|
+
* } catch (error) {
|
|
110
|
+
* console.error('权限转移失败:', error);
|
|
111
|
+
* }
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
async transferOwner(e) {
|
|
115
|
+
var t;
|
|
116
|
+
await ((t = i.instance) == null ? void 0 : t.changeUserRole({
|
|
117
|
+
userId: e.userId,
|
|
118
|
+
userRole: h.kRoomOwner
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 设置用户为管理员
|
|
123
|
+
* @memberof ParticipantManager
|
|
124
|
+
* @description 将指定用户设置为房间管理员,赋予管理权限
|
|
125
|
+
* @param {Object} options - 设置管理员配置
|
|
126
|
+
* @param {string} options.userId - 目标用户ID
|
|
127
|
+
* @returns {Promise<void>} 设置管理员的Promise
|
|
128
|
+
* @throws {Error} 当用户无权限或目标用户不存在时抛出错误
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* const participantManager = new ParticipantManager();
|
|
132
|
+
*
|
|
133
|
+
* // 设置用户为管理员
|
|
134
|
+
* try {
|
|
135
|
+
* await participantManager.setAdmin({ userId: 'user123' });
|
|
136
|
+
* console.log('用户设置为管理员成功');
|
|
137
|
+
* } catch (error) {
|
|
138
|
+
* console.error('设置管理员失败:', error);
|
|
139
|
+
* }
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
async setAdmin(e) {
|
|
143
|
+
var t;
|
|
144
|
+
await ((t = i.instance) == null ? void 0 : t.changeUserRole({ userId: e.userId, userRole: h.kAdministrator }));
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* 撤销用户管理员权限
|
|
148
|
+
* @memberof ParticipantManager
|
|
149
|
+
* @description 撤销指定用户的管理员权限,将其降级为普通用户
|
|
150
|
+
* @param {Object} options - 撤销权限配置
|
|
151
|
+
* @param {string} options.userId - 目标用户ID
|
|
152
|
+
* @returns {Promise<void>} 撤销权限的Promise
|
|
153
|
+
* @throws {Error} 当用户无权限或目标用户不存在时抛出错误
|
|
154
|
+
* @example
|
|
155
|
+
* ```typescript
|
|
156
|
+
* const participantManager = new ParticipantManager();
|
|
157
|
+
*
|
|
158
|
+
* // 撤销用户管理员权限
|
|
159
|
+
* try {
|
|
160
|
+
* await participantManager.revokeAdmin({ userId: 'user123' });
|
|
161
|
+
* console.log('管理员权限撤销成功');
|
|
162
|
+
* } catch (error) {
|
|
163
|
+
* console.error('撤销权限失败:', error);
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
async revokeAdmin(e) {
|
|
168
|
+
var t;
|
|
169
|
+
await ((t = i.instance) == null ? void 0 : t.changeUserRole({ userId: e.userId, userRole: h.kGeneralUser }));
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* 踢出参与者
|
|
173
|
+
* @memberof ParticipantManager
|
|
174
|
+
* @description 将指定用户踢出房间,只有房间所有者或管理员才能执行此操作
|
|
175
|
+
* @param {Object} options - 踢出用户配置
|
|
176
|
+
* @param {string} options.userId - 要踢出的用户ID
|
|
177
|
+
* @returns {Promise<void>} 踢出用户的Promise
|
|
178
|
+
* @throws {Error} 当用户无权限或目标用户不存在时抛出错误
|
|
179
|
+
* @example
|
|
180
|
+
* ```typescript
|
|
181
|
+
* const participantManager = new ParticipantManager();
|
|
182
|
+
*
|
|
183
|
+
* // 踢出参与者
|
|
184
|
+
* try {
|
|
185
|
+
* await participantManager.kickParticipant({ userId: 'user123' });
|
|
186
|
+
* console.log('用户踢出成功');
|
|
187
|
+
* } catch (error) {
|
|
188
|
+
* console.error('踢出用户失败:', error);
|
|
189
|
+
* }
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
async kickParticipant(e) {
|
|
193
|
+
var t;
|
|
194
|
+
await ((t = i.instance) == null ? void 0 : t.kickRemoteUserOutOfRoom({
|
|
195
|
+
userId: e.userId
|
|
196
|
+
}));
|
|
197
|
+
}
|
|
198
|
+
async updateParticipantNameCard(e) {
|
|
199
|
+
var t;
|
|
200
|
+
await ((t = i.instance) == null ? void 0 : t.changeUserNameCard({
|
|
201
|
+
userId: e.userId,
|
|
202
|
+
nameCard: e.nameCard
|
|
203
|
+
}));
|
|
204
|
+
}
|
|
205
|
+
async updateParticipantMetaData(e) {
|
|
206
|
+
var t;
|
|
207
|
+
await ((t = i.instance) == null ? void 0 : t.setCustomInfoForUser({
|
|
208
|
+
userId: e.userId,
|
|
209
|
+
customInfo: e.metaData
|
|
210
|
+
}));
|
|
211
|
+
}
|
|
212
|
+
async closeParticipantDevice(e) {
|
|
213
|
+
var t;
|
|
214
|
+
await ((t = i.instance) == null ? void 0 : t.closeRemoteDeviceByAdmin({
|
|
215
|
+
userId: e.userId,
|
|
216
|
+
device: this.transformDeviceTypeToTUIMediaDevice(e.deviceType)
|
|
217
|
+
})), y({ userId: e.userId, [e.deviceType]: { status: $.Off } });
|
|
218
|
+
}
|
|
219
|
+
async muteParticipantMessage(e) {
|
|
220
|
+
var t;
|
|
221
|
+
await ((t = i.instance) == null ? void 0 : t.disableSendingMessageByAdmin({
|
|
222
|
+
userId: e.userId,
|
|
223
|
+
isDisable: e.mute
|
|
224
|
+
}));
|
|
225
|
+
}
|
|
226
|
+
async disableAllDevices(e) {
|
|
227
|
+
var a;
|
|
228
|
+
const t = this.transformDeviceTypeToTUIMediaDevice(e.deviceType);
|
|
229
|
+
await ((a = i.instance) == null ? void 0 : a.disableDeviceForAllUserByAdmin({
|
|
230
|
+
device: t,
|
|
231
|
+
isDisable: e.disable
|
|
232
|
+
}));
|
|
233
|
+
}
|
|
234
|
+
async disableAllMessages(e) {
|
|
235
|
+
var t;
|
|
236
|
+
await ((t = i.instance) == null ? void 0 : t.disableSendingMessageByAdmin({
|
|
237
|
+
userId: "",
|
|
238
|
+
isDisable: e.disable
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
241
|
+
transformDeviceTypeToTUIMediaDevice(e) {
|
|
242
|
+
return {
|
|
243
|
+
[s.Camera]: f.kCamera,
|
|
244
|
+
[s.Microphone]: f.kMicrophone,
|
|
245
|
+
[s.ScreenShare]: f.kScreen
|
|
246
|
+
}[e];
|
|
247
|
+
}
|
|
248
|
+
async requestToOpenDevice(e) {
|
|
249
|
+
var a;
|
|
250
|
+
const t = await ((a = i.instance) == null ? void 0 : a.applyToAdminToOpenLocalDevice({
|
|
251
|
+
device: this.transformDeviceTypeToTUIMediaDevice(e.device),
|
|
252
|
+
timeout: e.timeout || 60
|
|
253
|
+
}));
|
|
254
|
+
t && l.set(`${e.device}_${g.value.userId}`, t);
|
|
255
|
+
}
|
|
256
|
+
async cancelOpenDeviceRequest(e) {
|
|
257
|
+
var t, a;
|
|
258
|
+
await ((a = i.instance) == null ? void 0 : a.cancelRequest({
|
|
259
|
+
requestId: ((t = l.get(`${e.device}_${g.value.userId}`)) == null ? void 0 : t.requestId) || ""
|
|
260
|
+
})), l.delete(`${e.device}_${g.value.userId}`);
|
|
261
|
+
}
|
|
262
|
+
async approveOpenDeviceRequest(e) {
|
|
263
|
+
var t, a;
|
|
264
|
+
await ((a = i.instance) == null ? void 0 : a.responseRemoteRequest({
|
|
265
|
+
requestId: ((t = n.get(`${e.device}_${e.userId}`)) == null ? void 0 : t.requestId) || "",
|
|
266
|
+
agree: !0
|
|
267
|
+
})), y({ userId: e.userId, [e.device]: { status: $.On } }), n.delete(`${e.device}_${e.userId}`);
|
|
268
|
+
}
|
|
269
|
+
async rejectOpenDeviceRequest(e) {
|
|
270
|
+
var t, a;
|
|
271
|
+
await ((a = i.instance) == null ? void 0 : a.responseRemoteRequest({
|
|
272
|
+
requestId: ((t = n.get(`${e.device}_${e.userId}`)) == null ? void 0 : t.requestId) || "",
|
|
273
|
+
agree: !1
|
|
274
|
+
})), n.delete(`${e.device}_${e.userId}`);
|
|
275
|
+
}
|
|
276
|
+
async inviteToOpenDevice(e) {
|
|
277
|
+
var a;
|
|
278
|
+
const t = await ((a = i.instance) == null ? void 0 : a.openRemoteDeviceByAdmin({
|
|
279
|
+
userId: e.userId,
|
|
280
|
+
device: this.transformDeviceTypeToTUIMediaDevice(e.device),
|
|
281
|
+
timeout: e.timeout || 0,
|
|
282
|
+
requestCallback: (r) => {
|
|
283
|
+
const d = l.get(`${e.device}_${e.userId}`), o = I.transformTUIRequestCallbackToDeviceRequestInfo(d), { requestCallbackType: u } = r;
|
|
284
|
+
switch (u) {
|
|
285
|
+
case v.kRequestAccepted:
|
|
286
|
+
R.emit(T.onDeviceInvitationAccepted, { invitation: o });
|
|
287
|
+
break;
|
|
288
|
+
case v.kRequestRejected:
|
|
289
|
+
R.emit(T.onDeviceInvitationDeclined, { invitation: o });
|
|
290
|
+
break;
|
|
291
|
+
case v.kRequestCancelled:
|
|
292
|
+
R.emit(T.onDeviceInvitationCancelled, { invitation: o });
|
|
293
|
+
break;
|
|
294
|
+
case v.kRequestTimeout:
|
|
295
|
+
R.emit(T.onDeviceInvitationTimeout, { invitation: o });
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}));
|
|
300
|
+
t && l.set(`${e.device}_${e.userId}`, t);
|
|
301
|
+
}
|
|
302
|
+
async cancelOpenDeviceInvitation(e) {
|
|
303
|
+
var t, a;
|
|
304
|
+
await ((a = i.instance) == null ? void 0 : a.cancelRequest({
|
|
305
|
+
requestId: ((t = l.get(`${e.device}_${e.userId}`)) == null ? void 0 : t.requestId) || ""
|
|
306
|
+
})), l.delete(`${e.device}_${e.userId}`);
|
|
307
|
+
}
|
|
308
|
+
async acceptOpenDeviceInvitation(e) {
|
|
309
|
+
var t, a;
|
|
310
|
+
await ((a = i.instance) == null ? void 0 : a.responseRemoteRequest({
|
|
311
|
+
requestId: ((t = n.get(`${e.device}_${e.userId}`)) == null ? void 0 : t.requestId) || "",
|
|
312
|
+
agree: !0
|
|
313
|
+
})), y({ userId: e.userId, [e.device]: { status: $.On } }), n.delete(`${e.device}_${e.userId}`);
|
|
314
|
+
}
|
|
315
|
+
async declineOpenDeviceInvitation(e) {
|
|
316
|
+
var t, a;
|
|
317
|
+
await ((a = i.instance) == null ? void 0 : a.responseRemoteRequest({
|
|
318
|
+
requestId: ((t = n.get(`${e.device}_${e.userId}`)) == null ? void 0 : t.requestId) || "",
|
|
319
|
+
agree: !1
|
|
320
|
+
})), n.delete(`${e.device}_${e.userId}`);
|
|
321
|
+
}
|
|
322
|
+
onRequestReceived({ request: e }) {
|
|
323
|
+
const { userId: t, requestAction: a } = e;
|
|
324
|
+
switch (a) {
|
|
325
|
+
case c.kRequestToOpenRemoteCamera:
|
|
326
|
+
n.set(`${s.Camera}_${t}`, e);
|
|
327
|
+
break;
|
|
328
|
+
case c.kRequestToOpenRemoteMicrophone:
|
|
329
|
+
n.set(`${s.Microphone}_${t}`, e);
|
|
330
|
+
break;
|
|
331
|
+
case c.kApplyToAdminToOpenLocalCamera:
|
|
332
|
+
n.set(`${s.Camera}_${t}`, e);
|
|
333
|
+
break;
|
|
334
|
+
case c.kApplyToAdminToOpenLocalMicrophone:
|
|
335
|
+
n.set(`${s.Microphone}_${t}`, e);
|
|
336
|
+
break;
|
|
337
|
+
case c.kApplyToAdminToOpenLocalScreenShare:
|
|
338
|
+
n.set(`${s.ScreenShare}_${t}`, e);
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* 处理请求取消事件
|
|
344
|
+
* @memberof ParticipantManager
|
|
345
|
+
* @description 处理请求被取消的事件,从映射表中移除对应的请求ID
|
|
346
|
+
* @param {Object} eventInfo - 事件信息
|
|
347
|
+
* @param {TUIRequest} eventInfo.request - 被取消的请求对象
|
|
348
|
+
* @private
|
|
349
|
+
* @example
|
|
350
|
+
* ```typescript
|
|
351
|
+
* // 此方法由事件系统自动调用,无需手动调用
|
|
352
|
+
* // 当请求被取消时,会自动清理请求ID
|
|
353
|
+
* ```
|
|
354
|
+
*/
|
|
355
|
+
onRequestCancelled(e) {
|
|
356
|
+
const { userId: t, requestAction: a } = e.request;
|
|
357
|
+
switch (a) {
|
|
358
|
+
case c.kRequestToOpenRemoteCamera:
|
|
359
|
+
n.delete(`${s.Camera}_${t}`);
|
|
360
|
+
break;
|
|
361
|
+
case c.kRequestToOpenRemoteMicrophone:
|
|
362
|
+
n.delete(`${s.Microphone}_${t}`);
|
|
363
|
+
break;
|
|
364
|
+
case c.kApplyToAdminToOpenLocalCamera:
|
|
365
|
+
n.delete(`${s.Camera}_${t}`);
|
|
366
|
+
break;
|
|
367
|
+
case c.kApplyToAdminToOpenLocalMicrophone:
|
|
368
|
+
n.delete(`${s.Microphone}_${t}`);
|
|
369
|
+
break;
|
|
370
|
+
case c.kApplyToAdminToOpenLocalScreenShare:
|
|
371
|
+
n.delete(`${s.ScreenShare}_${t}`);
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* 处理请求已处理事件
|
|
377
|
+
* @memberof ParticipantManager
|
|
378
|
+
* @description 处理请求已被处理的事件,从映射表中移除对应的请求ID
|
|
379
|
+
* @param {Object} eventInfo - 事件信息
|
|
380
|
+
* @param {TUIRequest} eventInfo.request - 已处理的请求对象
|
|
381
|
+
* @param {string} eventInfo.userInfo - 用户信息
|
|
382
|
+
* @private
|
|
383
|
+
* @example
|
|
384
|
+
* ```typescript
|
|
385
|
+
* // 此方法由事件系统自动调用,无需手动调用
|
|
386
|
+
* // 当请求被处理完成时,会自动清理请求ID
|
|
387
|
+
* ```
|
|
388
|
+
*/
|
|
389
|
+
onRequestProcessed(e) {
|
|
390
|
+
const { requestAction: t, userId: a } = e.request;
|
|
391
|
+
switch (t) {
|
|
392
|
+
case c.kRequestToOpenRemoteCamera:
|
|
393
|
+
n.delete(`${s.Camera}_${a}`);
|
|
394
|
+
break;
|
|
395
|
+
case c.kRequestToOpenRemoteMicrophone:
|
|
396
|
+
n.delete(`${s.Microphone}_${a}`);
|
|
397
|
+
break;
|
|
398
|
+
case c.kApplyToAdminToOpenLocalCamera:
|
|
399
|
+
n.delete(`${s.Camera}_${a}`);
|
|
400
|
+
break;
|
|
401
|
+
case c.kApplyToAdminToOpenLocalMicrophone:
|
|
402
|
+
n.delete(`${s.Microphone}_${a}`);
|
|
403
|
+
break;
|
|
404
|
+
case c.kApplyToAdminToOpenLocalScreenShare:
|
|
405
|
+
n.delete(`${s.ScreenShare}_${a}`);
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* 绑定房间引擎事件
|
|
411
|
+
* @memberof ParticipantManager
|
|
412
|
+
* @description 绑定TUIRoomEngine的相关事件监听器,用于处理请求相关的事件
|
|
413
|
+
* @private
|
|
414
|
+
* @example
|
|
415
|
+
* ```typescript
|
|
416
|
+
* // 此方法在构造函数中自动调用,无需手动调用
|
|
417
|
+
* // 绑定请求接收、取消、处理等事件的监听器
|
|
418
|
+
* ```
|
|
419
|
+
*/
|
|
420
|
+
bindRoomEngineEvents() {
|
|
421
|
+
M.once("ready", () => {
|
|
422
|
+
var e, t, a;
|
|
423
|
+
(e = i.instance) == null || e.on(
|
|
424
|
+
q.onRequestReceived,
|
|
425
|
+
this.onRequestReceived
|
|
426
|
+
), (t = i.instance) == null || t.on(
|
|
427
|
+
q.onRequestCancelled,
|
|
428
|
+
this.onRequestCancelled
|
|
429
|
+
), (a = i.instance) == null || a.on(
|
|
430
|
+
q.onRequestProcessed,
|
|
431
|
+
this.onRequestProcessed
|
|
432
|
+
);
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
k(p, "instance");
|
|
437
|
+
let A = p;
|
|
438
|
+
export {
|
|
439
|
+
A as default
|
|
440
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var p = (e, t, n) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var r = (e, t, n) => p(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import f, { TUIConferenceListManagerEvents as I } from "@tencentcloud/tuiroom-engine-js";
|
|
5
|
+
import { useRoomEngine as u } from "../../hooks/useRoomEngine.js";
|
|
6
|
+
import { useRoomState as U } from "../RoomState/index.js";
|
|
7
|
+
import { participantTransfer as g } from "./common.js";
|
|
8
|
+
import { useRoomParticipantStore as h } from "./store.js";
|
|
9
|
+
const E = u(), { currentRoom: P } = U(), { addPendingParticipantInfo: R, removePendingParticipantInfo: A } = h(), o = class o {
|
|
10
|
+
constructor() {
|
|
11
|
+
r(this, "onAttendeeListUpdated", ({ conferenceInfo: t, leftUsers: n, joinedUsers: d }) => {
|
|
12
|
+
var s;
|
|
13
|
+
t.basicRoomInfo.roomId === ((s = P.value) == null ? void 0 : s.roomId) && (d.forEach((i) => {
|
|
14
|
+
const c = g.transformTUIUserInfoToParticipantInfo(i);
|
|
15
|
+
R(c);
|
|
16
|
+
}), n.forEach((i) => {
|
|
17
|
+
A({ userId: i.userId });
|
|
18
|
+
}));
|
|
19
|
+
});
|
|
20
|
+
this.onAttendeeListUpdated = this.onAttendeeListUpdated.bind(this), this.bindEvent();
|
|
21
|
+
}
|
|
22
|
+
static getInstance() {
|
|
23
|
+
return o.instance || (o.instance = new o()), o.instance;
|
|
24
|
+
}
|
|
25
|
+
bindEvent() {
|
|
26
|
+
f.once("ready", () => {
|
|
27
|
+
var n;
|
|
28
|
+
const t = (n = E.instance) == null ? void 0 : n.getConferenceListManager();
|
|
29
|
+
t == null || t.on(I.onScheduleAttendeesUpdated, this.onAttendeeListUpdated);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
r(o, "instance");
|
|
34
|
+
let a = o;
|
|
35
|
+
export {
|
|
36
|
+
a as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
import { RoomParticipant, DeviceRequestInfo, NetworkInfo } from '../../types';
|
|
3
|
+
import { TUIRequest } from '@tencentcloud/tuiroom-engine-js';
|
|
4
|
+
|
|
5
|
+
export interface IParticipantState {
|
|
6
|
+
participantList: ComputedRef<RoomParticipant[]>;
|
|
7
|
+
participantListCursor: Ref<string>;
|
|
8
|
+
participantListWithVideo: ComputedRef<RoomParticipant[]>;
|
|
9
|
+
participantWithScreen: ComputedRef<RoomParticipant | null>;
|
|
10
|
+
localParticipant: ComputedRef<RoomParticipant | null>;
|
|
11
|
+
remoteParticipantList: ComputedRef<RoomParticipant[]>;
|
|
12
|
+
pendingDeviceApplications: Ref<DeviceRequestInfo[]>;
|
|
13
|
+
pendingDeviceInvitations: Ref<DeviceRequestInfo[]>;
|
|
14
|
+
speakingUsers: Ref<Map<string, number>>;
|
|
15
|
+
networkQualities: Ref<Map<string, NetworkInfo>>;
|
|
16
|
+
pendingParticipantList: Ref<RoomParticipant[]>;
|
|
17
|
+
sentRequestMap: Map<string, TUIRequest>;
|
|
18
|
+
receivedRequestMap: Map<string, TUIRequest>;
|
|
19
|
+
getDisplayName: (options: {
|
|
20
|
+
userId: string;
|
|
21
|
+
}) => string;
|
|
22
|
+
addParticipantInfo: (userInfo: Pick<RoomParticipant, 'userId'> & Partial<RoomParticipant>) => void;
|
|
23
|
+
getParticipantInfo: (options: {
|
|
24
|
+
userId: string;
|
|
25
|
+
}) => RoomParticipant | undefined;
|
|
26
|
+
updateParticipantInfo: (userInfo: Pick<RoomParticipant, 'userId'> & Partial<RoomParticipant>) => void;
|
|
27
|
+
removeParticipantInfo: (options: {
|
|
28
|
+
userId: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
addPendingParticipantInfo: (participantInfo: RoomParticipant) => void;
|
|
31
|
+
updatePendingParticipantInfo: (participantInfo: RoomParticipant) => void;
|
|
32
|
+
removePendingParticipantInfo: (options: {
|
|
33
|
+
userId: string;
|
|
34
|
+
}) => void;
|
|
35
|
+
reset: () => void;
|
|
36
|
+
}
|
|
37
|
+
export declare function useRoomParticipantStore(): IParticipantState;
|
|
38
|
+
export default useRoomParticipantStore;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ref as r, computed as i } from "vue";
|
|
2
|
+
import { useLoginState as I } from "../LoginState.js";
|
|
3
|
+
import { DeviceStatus as s } from "../../types/device.js";
|
|
4
|
+
import { RoomParticipantStatus as P, RoomParticipantRole as g } from "../../types/participant.js";
|
|
5
|
+
const { loginUserInfo: o } = I(), a = r(/* @__PURE__ */ new Map()), S = r(""), l = r(/* @__PURE__ */ new Map()), f = r(/* @__PURE__ */ new Map()), p = r([]), v = r([]), n = r(/* @__PURE__ */ new Map()), d = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), c = i(() => a.value.size > 0 ? Array.from(a.value.values()) : []), w = i(() => n.value.size > 0 ? Array.from(n.value.values()) : []), M = i(() => c.value.filter((e) => e.cameraStatus === s.On)), h = i(() => c.value.filter((e) => e.screenShareStatus === s.On)[0] || null), O = i(() => {
|
|
6
|
+
var e;
|
|
7
|
+
return a.value.get(((e = o.value) == null ? void 0 : e.userId) ?? "") || null;
|
|
8
|
+
}), R = i(() => Array.from(a.value.values()).filter((e) => {
|
|
9
|
+
var t;
|
|
10
|
+
return e.userId !== ((t = o.value) == null ? void 0 : t.userId);
|
|
11
|
+
}));
|
|
12
|
+
function D(e) {
|
|
13
|
+
return {
|
|
14
|
+
userId: e,
|
|
15
|
+
userName: "",
|
|
16
|
+
avatarUrl: "",
|
|
17
|
+
nameCard: "",
|
|
18
|
+
metaData: {},
|
|
19
|
+
role: g.GeneralUser,
|
|
20
|
+
roomStatus: P.InRoom,
|
|
21
|
+
microphoneStatus: s.Off,
|
|
22
|
+
cameraStatus: s.Off,
|
|
23
|
+
screenShareStatus: s.Off,
|
|
24
|
+
isMessageDisabled: !1
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function L(e) {
|
|
28
|
+
const { userId: t } = e;
|
|
29
|
+
return a.value.get(t);
|
|
30
|
+
}
|
|
31
|
+
function y(e) {
|
|
32
|
+
const { userId: t } = e;
|
|
33
|
+
if (!t)
|
|
34
|
+
return;
|
|
35
|
+
const u = Object.assign(D(t), e);
|
|
36
|
+
a.value.set(t, u);
|
|
37
|
+
}
|
|
38
|
+
function A(e) {
|
|
39
|
+
if (!e.userId || !a.value.has(e.userId))
|
|
40
|
+
return;
|
|
41
|
+
const t = Object.assign(
|
|
42
|
+
a.value.get(e.userId),
|
|
43
|
+
e
|
|
44
|
+
);
|
|
45
|
+
a.value.set(e.userId, t);
|
|
46
|
+
}
|
|
47
|
+
function N(e) {
|
|
48
|
+
var u;
|
|
49
|
+
const { userId: t } = e;
|
|
50
|
+
!t || t === ((u = o.value) == null ? void 0 : u.userId) || a.value.has(t) && a.value.delete(t);
|
|
51
|
+
}
|
|
52
|
+
function U(e) {
|
|
53
|
+
const t = a.value.get(e.userId);
|
|
54
|
+
return t ? t.nameCard || t.userName || t.userId : "";
|
|
55
|
+
}
|
|
56
|
+
function b() {
|
|
57
|
+
a.value.clear(), n.value.clear(), l.value.clear(), f.value.clear(), p.value = [], v.value = [], d.clear(), m.clear();
|
|
58
|
+
}
|
|
59
|
+
function C(e) {
|
|
60
|
+
const { userId: t } = e;
|
|
61
|
+
t && n.value.set(t, e);
|
|
62
|
+
}
|
|
63
|
+
function j(e) {
|
|
64
|
+
const { userId: t } = e;
|
|
65
|
+
!t || !n.value.has(t) || n.value.set(t, e);
|
|
66
|
+
}
|
|
67
|
+
function k(e) {
|
|
68
|
+
const { userId: t } = e;
|
|
69
|
+
!t || !n.value.has(t) || n.value.delete(t);
|
|
70
|
+
}
|
|
71
|
+
function G() {
|
|
72
|
+
return {
|
|
73
|
+
// public data
|
|
74
|
+
participantList: c,
|
|
75
|
+
participantListCursor: S,
|
|
76
|
+
participantListWithVideo: M,
|
|
77
|
+
participantWithScreen: h,
|
|
78
|
+
localParticipant: O,
|
|
79
|
+
remoteParticipantList: R,
|
|
80
|
+
pendingDeviceApplications: p,
|
|
81
|
+
pendingDeviceInvitations: v,
|
|
82
|
+
speakingUsers: l,
|
|
83
|
+
networkQualities: f,
|
|
84
|
+
pendingParticipantList: w,
|
|
85
|
+
// private data
|
|
86
|
+
sentRequestMap: d,
|
|
87
|
+
receivedRequestMap: m,
|
|
88
|
+
getDisplayName: U,
|
|
89
|
+
addParticipantInfo: y,
|
|
90
|
+
getParticipantInfo: L,
|
|
91
|
+
updateParticipantInfo: A,
|
|
92
|
+
removeParticipantInfo: N,
|
|
93
|
+
addPendingParticipantInfo: C,
|
|
94
|
+
updatePendingParticipantInfo: j,
|
|
95
|
+
removePendingParticipantInfo: k,
|
|
96
|
+
reset: b
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
G as default,
|
|
101
|
+
G as useRoomParticipantStore
|
|
102
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { RoomCall, RoomCallResult } from '../../types';
|
|
2
|
+
|
|
3
|
+
declare class CallManager {
|
|
4
|
+
static instance: CallManager;
|
|
5
|
+
constructor();
|
|
6
|
+
static getInstance(): CallManager;
|
|
7
|
+
callUserToRoom({ roomId, userIdList, timeout, extensionInfo }: {
|
|
8
|
+
roomId: string;
|
|
9
|
+
userIdList: string[];
|
|
10
|
+
timeout?: number;
|
|
11
|
+
extensionInfo?: string;
|
|
12
|
+
}): Promise<Map<string, RoomCallResult>>;
|
|
13
|
+
cancelCall({ roomId, userIdList }: {
|
|
14
|
+
roomId: string;
|
|
15
|
+
userIdList: string[];
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
getPendingCalls({ roomId, cursor }: {
|
|
18
|
+
roomId: string;
|
|
19
|
+
cursor: string;
|
|
20
|
+
}): Promise<{
|
|
21
|
+
calls: RoomCall[];
|
|
22
|
+
cursor: string;
|
|
23
|
+
}>;
|
|
24
|
+
acceptCall({ roomId }: {
|
|
25
|
+
roomId: string;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
rejectCall({ roomId, extensionInfo }: {
|
|
28
|
+
roomId: string;
|
|
29
|
+
extensionInfo?: string;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
private onReceiveInvitation;
|
|
32
|
+
private onInvitationHandledByOtherDevice;
|
|
33
|
+
private onInvitationTimeout;
|
|
34
|
+
private onInvitationCancelled;
|
|
35
|
+
private onInvitationAccepted;
|
|
36
|
+
private onInvitationRejected;
|
|
37
|
+
private onInvitationRevokedByAdmin;
|
|
38
|
+
private onInvitationAdded;
|
|
39
|
+
private onInvitationRemoved;
|
|
40
|
+
private onInvitationStatusChanged;
|
|
41
|
+
bindEvent(): void;
|
|
42
|
+
}
|
|
43
|
+
export default CallManager;
|