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,208 @@
|
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var C = (u, t, e) => t in u ? T(u, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[t] = e;
|
|
3
|
+
var r = (u, t, e) => C(u, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import N, { TUIConferenceInvitationManagerEvents as i } from "@tencentcloud/tuiroom-engine-js";
|
|
5
|
+
import { useRoomEngine as p } from "../../hooks/useRoomEngine.js";
|
|
6
|
+
import { eventCenter as l } from "../../utils/eventCenter.js";
|
|
7
|
+
import { transferTUIInvitationCodeToRoomCallResult as y, roomInfoTransfer as s } from "./common.js";
|
|
8
|
+
import { RoomEvent as d } from "../../types/room.js";
|
|
9
|
+
const m = p(), v = class v {
|
|
10
|
+
constructor() {
|
|
11
|
+
r(this, "onInvitationHandledByOtherDevice", ({ roomInfo: t, accepted: e }) => {
|
|
12
|
+
l.emit(d.onCallHandledByOtherDevice, {
|
|
13
|
+
roomInfo: s.transferTUIRoomInfoToRoomInfo(t),
|
|
14
|
+
isAccepted: e
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
r(this, "onInvitationTimeout", ({ roomInfo: t, invitation: e }) => {
|
|
18
|
+
l.emit(d.onCallTimeout, {
|
|
19
|
+
roomInfo: s.transferTUIRoomInfoToRoomInfo(t),
|
|
20
|
+
call: {
|
|
21
|
+
caller: {
|
|
22
|
+
userId: e.inviter.userId,
|
|
23
|
+
userName: e.inviter.userName,
|
|
24
|
+
avatarUrl: e.inviter.avatarUrl
|
|
25
|
+
},
|
|
26
|
+
callee: {
|
|
27
|
+
userId: e.invitee.userId,
|
|
28
|
+
userName: e.invitee.userName,
|
|
29
|
+
avatarUrl: e.invitee.avatarUrl
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
r(this, "onInvitationAccepted", ({ roomInfo: t, invitation: e }) => {
|
|
35
|
+
const o = {
|
|
36
|
+
caller: {
|
|
37
|
+
userId: e.inviter.userId,
|
|
38
|
+
userName: e.inviter.userName,
|
|
39
|
+
avatarUrl: e.inviter.avatarUrl
|
|
40
|
+
},
|
|
41
|
+
callee: {
|
|
42
|
+
userId: e.invitee.userId,
|
|
43
|
+
userName: e.invitee.userName,
|
|
44
|
+
avatarUrl: e.invitee.avatarUrl
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
l.emit(d.onCallAccepted, {
|
|
48
|
+
roomInfo: s.transferTUIRoomInfoToRoomInfo(t),
|
|
49
|
+
call: o
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
r(this, "onInvitationRejected", ({ roomInfo: t, invitation: e, extensionInfo: o }) => {
|
|
53
|
+
const n = {
|
|
54
|
+
caller: {
|
|
55
|
+
userId: e.inviter.userId,
|
|
56
|
+
userName: e.inviter.userName,
|
|
57
|
+
avatarUrl: e.inviter.avatarUrl
|
|
58
|
+
},
|
|
59
|
+
callee: {
|
|
60
|
+
userId: e.invitee.userId,
|
|
61
|
+
userName: e.invitee.userName,
|
|
62
|
+
avatarUrl: e.invitee.avatarUrl
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
l.emit(d.onCallRejected, {
|
|
66
|
+
roomInfo: s.transferTUIRoomInfoToRoomInfo(t),
|
|
67
|
+
call: n,
|
|
68
|
+
extensionInfo: o
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
r(this, "onInvitationRevokedByAdmin", ({ roomInfo: t, invitation: e, operateUser: o }) => {
|
|
72
|
+
const n = {
|
|
73
|
+
caller: {
|
|
74
|
+
userId: e.inviter.userId,
|
|
75
|
+
userName: e.inviter.userName,
|
|
76
|
+
avatarUrl: e.inviter.avatarUrl
|
|
77
|
+
},
|
|
78
|
+
callee: {
|
|
79
|
+
userId: e.invitee.userId,
|
|
80
|
+
userName: e.invitee.userName,
|
|
81
|
+
avatarUrl: e.invitee.avatarUrl
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
l.emit(d.onCallRevokedByAdmin, {
|
|
85
|
+
roomInfo: s.transferTUIRoomInfoToRoomInfo(t),
|
|
86
|
+
call: n,
|
|
87
|
+
operator: s.transferTUIUserInfoToRoomUser(o)
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
r(this, "onInvitationAdded", ({ roomId: t, invitation: e }) => {
|
|
91
|
+
});
|
|
92
|
+
r(this, "onInvitationRemoved", ({ roomId: t, invitation: e }) => {
|
|
93
|
+
});
|
|
94
|
+
r(this, "onInvitationStatusChanged", ({ roomId: t, invitation: e }) => {
|
|
95
|
+
});
|
|
96
|
+
this.onReceiveInvitation = this.onReceiveInvitation.bind(this), this.onInvitationHandledByOtherDevice = this.onInvitationHandledByOtherDevice.bind(this), this.onInvitationTimeout = this.onInvitationTimeout.bind(this), this.onInvitationCancelled = this.onInvitationCancelled.bind(this), this.onInvitationAccepted = this.onInvitationAccepted.bind(this), this.onInvitationRejected = this.onInvitationRejected.bind(this), this.onInvitationRevokedByAdmin = this.onInvitationRevokedByAdmin.bind(this), this.bindEvent();
|
|
97
|
+
}
|
|
98
|
+
static getInstance() {
|
|
99
|
+
return v.instance || (v.instance = new v()), v.instance;
|
|
100
|
+
}
|
|
101
|
+
async callUserToRoom({ roomId: t, userIdList: e, timeout: o, extensionInfo: n }) {
|
|
102
|
+
var a;
|
|
103
|
+
const U = (a = m.instance) == null ? void 0 : a.getConferenceInvitationManager(), c = await (U == null ? void 0 : U.inviteUsers({
|
|
104
|
+
roomId: t,
|
|
105
|
+
userIdList: e,
|
|
106
|
+
timeout: o || 0,
|
|
107
|
+
extensionInfo: n
|
|
108
|
+
})), I = /* @__PURE__ */ new Map();
|
|
109
|
+
return c && c.forEach((h, f) => {
|
|
110
|
+
I.set(f, y(h));
|
|
111
|
+
}), I;
|
|
112
|
+
}
|
|
113
|
+
async cancelCall({ roomId: t, userIdList: e }) {
|
|
114
|
+
var n;
|
|
115
|
+
const o = (n = m.instance) == null ? void 0 : n.getConferenceInvitationManager();
|
|
116
|
+
await (o == null ? void 0 : o.cancelInvitation({
|
|
117
|
+
roomId: t,
|
|
118
|
+
userIdList: e
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
async getPendingCalls({ roomId: t, cursor: e }) {
|
|
122
|
+
var c, I;
|
|
123
|
+
const o = (c = m.instance) == null ? void 0 : c.getConferenceInvitationManager(), n = await (o == null ? void 0 : o.getInvitationList({
|
|
124
|
+
roomId: t,
|
|
125
|
+
cursor: e,
|
|
126
|
+
count: 50
|
|
127
|
+
}));
|
|
128
|
+
return {
|
|
129
|
+
calls: ((I = n == null ? void 0 : n.invitationList) == null ? void 0 : I.map((a) => ({
|
|
130
|
+
caller: {
|
|
131
|
+
userId: a.inviter.userId,
|
|
132
|
+
userName: a.inviter.userName,
|
|
133
|
+
avatarUrl: a.inviter.avatarUrl
|
|
134
|
+
},
|
|
135
|
+
callee: {
|
|
136
|
+
userId: a.invitee.userId,
|
|
137
|
+
userName: a.invitee.userName,
|
|
138
|
+
avatarUrl: a.invitee.avatarUrl
|
|
139
|
+
},
|
|
140
|
+
status: s.transferTUIInvitationStatusToRoomCallStatus(a.status)
|
|
141
|
+
}))) || [],
|
|
142
|
+
cursor: (n == null ? void 0 : n.cursor) || ""
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
async acceptCall({ roomId: t }) {
|
|
146
|
+
var o;
|
|
147
|
+
const e = (o = m.instance) == null ? void 0 : o.getConferenceInvitationManager();
|
|
148
|
+
await (e == null ? void 0 : e.accept({
|
|
149
|
+
roomId: t
|
|
150
|
+
}));
|
|
151
|
+
}
|
|
152
|
+
async rejectCall({ roomId: t, extensionInfo: e }) {
|
|
153
|
+
var n;
|
|
154
|
+
const o = (n = m.instance) == null ? void 0 : n.getConferenceInvitationManager();
|
|
155
|
+
await (o == null ? void 0 : o.reject({
|
|
156
|
+
roomId: t,
|
|
157
|
+
extensionInfo: e
|
|
158
|
+
}));
|
|
159
|
+
}
|
|
160
|
+
onReceiveInvitation({ roomInfo: t, invitation: e, extensionInfo: o }) {
|
|
161
|
+
const n = {
|
|
162
|
+
caller: {
|
|
163
|
+
userId: e.inviter.userId,
|
|
164
|
+
userName: e.inviter.userName,
|
|
165
|
+
avatarUrl: e.inviter.avatarUrl
|
|
166
|
+
},
|
|
167
|
+
callee: {
|
|
168
|
+
userId: e.invitee.userId,
|
|
169
|
+
userName: e.invitee.userName,
|
|
170
|
+
avatarUrl: e.invitee.avatarUrl
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
l.emit(d.onCallReceived, {
|
|
174
|
+
roomInfo: s.transferTUIRoomInfoToRoomInfo(t),
|
|
175
|
+
call: n,
|
|
176
|
+
extensionInfo: o
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
onInvitationCancelled({ roomInfo: t, invitation: e }) {
|
|
180
|
+
l.emit(d.onCallCancelled, {
|
|
181
|
+
roomInfo: s.transferTUIRoomInfoToRoomInfo(t),
|
|
182
|
+
call: {
|
|
183
|
+
caller: {
|
|
184
|
+
userId: e.inviter.userId,
|
|
185
|
+
userName: e.inviter.userName,
|
|
186
|
+
avatarUrl: e.inviter.avatarUrl
|
|
187
|
+
},
|
|
188
|
+
callee: {
|
|
189
|
+
userId: e.invitee.userId,
|
|
190
|
+
userName: e.invitee.userName,
|
|
191
|
+
avatarUrl: e.invitee.avatarUrl
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
bindEvent() {
|
|
197
|
+
N.once("ready", () => {
|
|
198
|
+
var e;
|
|
199
|
+
const t = (e = m.instance) == null ? void 0 : e.getConferenceInvitationManager();
|
|
200
|
+
t == null || t.on(i.onReceiveInvitation, this.onReceiveInvitation), t == null || t.on(i.onInvitationHandledByOtherDevice, this.onInvitationHandledByOtherDevice), t == null || t.on(i.onInvitationTimeout, this.onInvitationTimeout), t == null || t.on(i.onInvitationCancelled, this.onInvitationCancelled), t == null || t.on(i.onInvitationAccepted, this.onInvitationAccepted), t == null || t.on(i.onInvitationRejected, this.onInvitationRejected), t == null || t.on(i.onInvitationRevokedByAdmin, this.onInvitationRevokedByAdmin), t == null || t.on(i.onInvitationAdded, this.onInvitationAdded), t == null || t.on(i.onInvitationRemoved, this.onInvitationRemoved), t == null || t.on(i.onInvitationStatusChanged, this.onInvitationStatusChanged);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
r(v, "instance");
|
|
205
|
+
let R = v;
|
|
206
|
+
export {
|
|
207
|
+
R as default
|
|
208
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TUIConferenceStatus, TUIInvitationCode, TUIInvitationStatus, TUIConferenceInfo, TUIRoomInfo, TUIUserInfo } from '@tencentcloud/tuiroom-engine-js';
|
|
2
|
+
import { RoomCallResult, RoomCallStatus, RoomStatus, RoomInfo, RoomUser } from '../../types/room';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 将 TUIConferenceInfo 转换为 RoomInfo
|
|
6
|
+
*/
|
|
7
|
+
export declare function transferConferenceInfoToRoomInfo(conferenceInfo: TUIConferenceInfo): RoomInfo;
|
|
8
|
+
export declare function transferTUIRoomInfoToRoomInfo(roomInfo: TUIRoomInfo): RoomInfo;
|
|
9
|
+
/**
|
|
10
|
+
* 将 TUIConferenceStatus 转换为 RoomStatus
|
|
11
|
+
*/
|
|
12
|
+
export declare function transferConferenceStatusToRoomStatus(status: TUIConferenceStatus): RoomStatus;
|
|
13
|
+
/**
|
|
14
|
+
* 将 TUIUserInfo 转换为 RoomUser
|
|
15
|
+
*/
|
|
16
|
+
export declare function transferTUIUserInfoToRoomUser(userInfo: TUIUserInfo): RoomUser;
|
|
17
|
+
export declare function transferTUIInvitationStatusToRoomCallStatus(status: TUIInvitationStatus): RoomCallStatus;
|
|
18
|
+
export declare const roomInfoTransfer: {
|
|
19
|
+
transferConferenceInfoToRoomInfo: typeof transferConferenceInfoToRoomInfo;
|
|
20
|
+
transferTUIRoomInfoToRoomInfo: typeof transferTUIRoomInfoToRoomInfo;
|
|
21
|
+
transferConferenceStatusToRoomStatus: typeof transferConferenceStatusToRoomStatus;
|
|
22
|
+
transferTUIUserInfoToRoomUser: typeof transferTUIUserInfoToRoomUser;
|
|
23
|
+
transferTUIInvitationStatusToRoomCallStatus: typeof transferTUIInvitationStatusToRoomCallStatus;
|
|
24
|
+
};
|
|
25
|
+
export declare const transferTUIInvitationCodeToRoomCallResult: (code: TUIInvitationCode) => RoomCallResult;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { TUIInvitationStatus as r, TUIConferenceStatus as i, TUIInvitationCode as o } from "@tencentcloud/tuiroom-engine-js";
|
|
2
|
+
import { RoomCallStatus as a, RoomStatus as t, RoomCallResult as s } from "../../types/room.js";
|
|
3
|
+
function n(e) {
|
|
4
|
+
return {
|
|
5
|
+
roomId: e.basicRoomInfo.roomId,
|
|
6
|
+
roomName: e.basicRoomInfo.roomName,
|
|
7
|
+
roomOwner: {
|
|
8
|
+
userId: e.basicRoomInfo.roomOwner,
|
|
9
|
+
userName: e.basicRoomInfo.ownerName,
|
|
10
|
+
avatarUrl: e.basicRoomInfo.ownerAvatarUrl
|
|
11
|
+
},
|
|
12
|
+
participantCount: e.basicRoomInfo.roomMemberCount,
|
|
13
|
+
createTime: e.basicRoomInfo.createTime,
|
|
14
|
+
roomStatus: l(e.status),
|
|
15
|
+
scheduledStartTime: e.scheduleStartTime,
|
|
16
|
+
scheduledEndTime: e.scheduleEndTime,
|
|
17
|
+
startReminderInSeconds: e.reminderSecondsBeforeStart,
|
|
18
|
+
password: e.basicRoomInfo.password,
|
|
19
|
+
isAllMicrophoneDisabled: e.basicRoomInfo.isMicrophoneDisableForAllUser,
|
|
20
|
+
isAllCameraDisabled: e.basicRoomInfo.isCameraDisableForAllUser,
|
|
21
|
+
isAllScreenShareDisabled: e.basicRoomInfo.isScreenShareDisableForAllUser,
|
|
22
|
+
isAllMessageDisabled: e.basicRoomInfo.isMessageDisableForAllUser
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function u(e) {
|
|
26
|
+
return {
|
|
27
|
+
roomId: e.roomId,
|
|
28
|
+
roomName: e.roomName,
|
|
29
|
+
password: e.password,
|
|
30
|
+
roomOwner: {
|
|
31
|
+
userId: e.roomOwner,
|
|
32
|
+
userName: e.ownerName,
|
|
33
|
+
avatarUrl: e.ownerAvatarUrl
|
|
34
|
+
},
|
|
35
|
+
participantCount: e.roomMemberCount,
|
|
36
|
+
createTime: e.createTime,
|
|
37
|
+
roomStatus: t.Running,
|
|
38
|
+
isAllMicrophoneDisabled: e.isMicrophoneDisableForAllUser,
|
|
39
|
+
isAllCameraDisabled: e.isCameraDisableForAllUser,
|
|
40
|
+
isAllScreenShareDisabled: e.isScreenShareDisableForAllUser,
|
|
41
|
+
isAllMessageDisabled: e.isMessageDisableForAllUser
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function l(e) {
|
|
45
|
+
switch (e) {
|
|
46
|
+
case i.kConferenceStatusNotStarted:
|
|
47
|
+
return t.Scheduled;
|
|
48
|
+
case i.kConferenceStatusRunning:
|
|
49
|
+
return t.Running;
|
|
50
|
+
default:
|
|
51
|
+
return t.Scheduled;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function m(e) {
|
|
55
|
+
return {
|
|
56
|
+
userId: e.userId,
|
|
57
|
+
userName: e.userName,
|
|
58
|
+
avatarUrl: e.avatarUrl
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function d(e) {
|
|
62
|
+
switch (e) {
|
|
63
|
+
case r.kPending:
|
|
64
|
+
return a.Calling;
|
|
65
|
+
case r.kAccepted:
|
|
66
|
+
return a.None;
|
|
67
|
+
case r.kRejected:
|
|
68
|
+
return a.Rejected;
|
|
69
|
+
case r.kTimeout:
|
|
70
|
+
return a.Timeout;
|
|
71
|
+
default:
|
|
72
|
+
return a.None;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const S = {
|
|
76
|
+
transferConferenceInfoToRoomInfo: n,
|
|
77
|
+
transferTUIRoomInfoToRoomInfo: u,
|
|
78
|
+
transferConferenceStatusToRoomStatus: l,
|
|
79
|
+
transferTUIUserInfoToRoomUser: m,
|
|
80
|
+
transferTUIInvitationStatusToRoomCallStatus: d
|
|
81
|
+
}, b = (e) => {
|
|
82
|
+
switch (e) {
|
|
83
|
+
case o.kAlreadyInConference:
|
|
84
|
+
return s.AlreadyInRoom;
|
|
85
|
+
case o.kAlreadyInInvitationList:
|
|
86
|
+
return s.AlreadyInCalling;
|
|
87
|
+
case o.kSuccess:
|
|
88
|
+
return s.Success;
|
|
89
|
+
default:
|
|
90
|
+
return s.Success;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
export {
|
|
94
|
+
S as roomInfoTransfer,
|
|
95
|
+
n as transferConferenceInfoToRoomInfo,
|
|
96
|
+
l as transferConferenceStatusToRoomStatus,
|
|
97
|
+
b as transferTUIInvitationCodeToRoomCallResult,
|
|
98
|
+
d as transferTUIInvitationStatusToRoomCallStatus,
|
|
99
|
+
u as transferTUIRoomInfoToRoomInfo,
|
|
100
|
+
m as transferTUIUserInfoToRoomUser
|
|
101
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { dataReport as t } from "../../report/dataReport.js";
|
|
2
|
+
import { MetricsKey as c } from "../../report/MetricsKey.js";
|
|
3
|
+
import { eventCenter as d } from "../../utils/eventCenter.js";
|
|
4
|
+
import l from "./callManager.js";
|
|
5
|
+
import a from "./roomManager.js";
|
|
6
|
+
import m from "./scheduleManager.js";
|
|
7
|
+
import { useRoomStore as r } from "./store.js";
|
|
8
|
+
const { scheduledRoomList: i, scheduledRoomListCursor: s, currentRoom: u } = r();
|
|
9
|
+
function R(e, o) {
|
|
10
|
+
d.on(e, o);
|
|
11
|
+
}
|
|
12
|
+
function b(e, o) {
|
|
13
|
+
d.off(e, o);
|
|
14
|
+
}
|
|
15
|
+
function M() {
|
|
16
|
+
t.reportCount(c.T_METRICS_STATE_ROOM_STATE_COUNT);
|
|
17
|
+
const e = m.getInstance(), o = a.getInstance(), n = l.getInstance();
|
|
18
|
+
return {
|
|
19
|
+
// 响应式数据
|
|
20
|
+
scheduledRoomList: i,
|
|
21
|
+
scheduledRoomListCursor: s,
|
|
22
|
+
currentRoom: u,
|
|
23
|
+
// 预约房间列表管理
|
|
24
|
+
getScheduledRoomList: e.getScheduledRoomList.bind(e),
|
|
25
|
+
getScheduledAttendees: e.getScheduledAttendees.bind(e),
|
|
26
|
+
// 预约房间操作
|
|
27
|
+
scheduleRoom: e.scheduleRoom.bind(e),
|
|
28
|
+
updateScheduledRoom: e.updateScheduledRoom.bind(e),
|
|
29
|
+
addScheduledAttendees: e.addScheduledAttendees.bind(e),
|
|
30
|
+
removeScheduledAttendees: e.removeScheduledAttendees.bind(e),
|
|
31
|
+
cancelScheduledRoom: e.cancelScheduledRoom.bind(e),
|
|
32
|
+
// 房间操作
|
|
33
|
+
createAndJoinRoom: o.createAndJoinRoom.bind(o),
|
|
34
|
+
joinRoom: o.joinRoom.bind(o),
|
|
35
|
+
leaveRoom: o.leaveRoom.bind(o),
|
|
36
|
+
endRoom: o.endRoom.bind(o),
|
|
37
|
+
updateRoomInfo: o.updateRoomInfo.bind(o),
|
|
38
|
+
getRoomInfo: o.getRoomInfo.bind(o),
|
|
39
|
+
// 呼叫管理
|
|
40
|
+
getPendingCalls: n.getPendingCalls.bind(n),
|
|
41
|
+
callUserToRoom: n.callUserToRoom.bind(n),
|
|
42
|
+
cancelCall: n.cancelCall.bind(n),
|
|
43
|
+
acceptCall: n.acceptCall.bind(n),
|
|
44
|
+
rejectCall: n.rejectCall.bind(n),
|
|
45
|
+
// 事件订阅
|
|
46
|
+
subscribeEvent: R,
|
|
47
|
+
unsubscribeEvent: b
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
M as useRoomState
|
|
52
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CreateRoomOptions, UpdateRoomOptions, RoomInfo } from '../../types';
|
|
2
|
+
|
|
3
|
+
declare class RoomManager {
|
|
4
|
+
static instance: RoomManager;
|
|
5
|
+
constructor();
|
|
6
|
+
static getInstance(): RoomManager;
|
|
7
|
+
createAndJoinRoom({ roomId, options }: {
|
|
8
|
+
roomId: string;
|
|
9
|
+
options: CreateRoomOptions;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
joinRoom({ roomId, password }: {
|
|
12
|
+
roomId: string;
|
|
13
|
+
password?: string;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
leaveRoom(): Promise<void>;
|
|
16
|
+
endRoom(): Promise<void>;
|
|
17
|
+
getRoomInfo({ roomId }: {
|
|
18
|
+
roomId: string;
|
|
19
|
+
}): Promise<RoomInfo>;
|
|
20
|
+
updateRoomInfo({ options }: {
|
|
21
|
+
roomId: string;
|
|
22
|
+
options: UpdateRoomOptions;
|
|
23
|
+
}): Promise<void>;
|
|
24
|
+
private onRoomDismissed;
|
|
25
|
+
private onRoomNameChanged;
|
|
26
|
+
private onAllUserCameraDisableChanged;
|
|
27
|
+
private onScreenShareForAllUserDisableChanged;
|
|
28
|
+
private onAllUserMicrophoneDisableChanged;
|
|
29
|
+
private onAllUserMessageDisableChanged;
|
|
30
|
+
private onRoomUserCountChanged;
|
|
31
|
+
private onConferenceInfoChanged;
|
|
32
|
+
private onKickedOutOfRoom;
|
|
33
|
+
private bindEvent;
|
|
34
|
+
}
|
|
35
|
+
export default RoomManager;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
var D = Object.defineProperty;
|
|
2
|
+
var U = (t, e, o) => e in t ? D(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
+
var R = (t, e, o) => U(t, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
+
import A, { TUIRoomType as h, TUIRoomEvents as r, TUIConferenceListManagerEvents as p } from "@tencentcloud/tuiroom-engine-js";
|
|
5
|
+
import { useRoomEngine as I } from "../../hooks/useRoomEngine.js";
|
|
6
|
+
import { eventCenter as S } from "../../utils/eventCenter.js";
|
|
7
|
+
import { isUndefined as b } from "../../utils/utils.js";
|
|
8
|
+
import { useLoginState as w } from "../LoginState.js";
|
|
9
|
+
import { transferTUIRoomInfoToRoomInfo as c } from "./common.js";
|
|
10
|
+
import { useRoomStore as y } from "./store.js";
|
|
11
|
+
import { RoomEvent as M } from "../../types/room.js";
|
|
12
|
+
const { loginUserInfo: N } = w(), s = I(), { currentRoom: n } = y(), l = class l {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.onRoomDismissed = this.onRoomDismissed.bind(this), this.onRoomNameChanged = this.onRoomNameChanged.bind(this), this.onAllUserCameraDisableChanged = this.onAllUserCameraDisableChanged.bind(this), this.onScreenShareForAllUserDisableChanged = this.onScreenShareForAllUserDisableChanged.bind(this), this.onAllUserMicrophoneDisableChanged = this.onAllUserMicrophoneDisableChanged.bind(this), this.onAllUserMessageDisableChanged = this.onAllUserMessageDisableChanged.bind(this), this.onRoomUserCountChanged = this.onRoomUserCountChanged.bind(this), this.onKickedOutOfRoom = this.onKickedOutOfRoom.bind(this), this.bindEvent();
|
|
15
|
+
}
|
|
16
|
+
static getInstance() {
|
|
17
|
+
return l.instance || (l.instance = new l()), l.instance;
|
|
18
|
+
}
|
|
19
|
+
async createAndJoinRoom({ roomId: e, options: o }) {
|
|
20
|
+
var i, m, d;
|
|
21
|
+
if (!((i = N.value) != null && i.userId) || !s.instance)
|
|
22
|
+
throw new Error("please login firstly by useLoginState");
|
|
23
|
+
await ((m = s.instance) == null ? void 0 : m.createRoom({
|
|
24
|
+
roomId: e,
|
|
25
|
+
roomName: o.roomName,
|
|
26
|
+
roomType: h.kConference,
|
|
27
|
+
password: o.password || "",
|
|
28
|
+
isMicrophoneDisableForAllUser: o.isAllMicrophoneDisabled,
|
|
29
|
+
isScreenShareDisableForAllUser: o.isAllScreenShareDisabled,
|
|
30
|
+
isCameraDisableForAllUser: o.isAllCameraDisabled,
|
|
31
|
+
isMessageDisableForAllUser: o.isAllMessageDisabled
|
|
32
|
+
}));
|
|
33
|
+
const a = await ((d = s.instance) == null ? void 0 : d.enterRoom({
|
|
34
|
+
roomId: e,
|
|
35
|
+
roomType: h.kConference
|
|
36
|
+
}));
|
|
37
|
+
a && (n.value = c(a));
|
|
38
|
+
}
|
|
39
|
+
async joinRoom({ roomId: e, password: o }) {
|
|
40
|
+
var i;
|
|
41
|
+
const a = await ((i = s.instance) == null ? void 0 : i.enterRoom({
|
|
42
|
+
roomId: e,
|
|
43
|
+
roomType: h.kConference,
|
|
44
|
+
options: { password: o }
|
|
45
|
+
}));
|
|
46
|
+
a && (n.value = c(a));
|
|
47
|
+
}
|
|
48
|
+
async leaveRoom() {
|
|
49
|
+
var e;
|
|
50
|
+
await ((e = s.instance) == null ? void 0 : e.exitRoom()), n.value = null;
|
|
51
|
+
}
|
|
52
|
+
async endRoom() {
|
|
53
|
+
var e;
|
|
54
|
+
await ((e = s.instance) == null ? void 0 : e.destroyRoom()), n.value = null;
|
|
55
|
+
}
|
|
56
|
+
async getRoomInfo({ roomId: e }) {
|
|
57
|
+
var a;
|
|
58
|
+
const o = await ((a = s.instance) == null ? void 0 : a.fetchRoomInfo({ roomId: e, roomType: h.kConference }));
|
|
59
|
+
if (!o)
|
|
60
|
+
throw new Error("roomInfo is undefined");
|
|
61
|
+
return c(o);
|
|
62
|
+
}
|
|
63
|
+
async updateRoomInfo({ options: e }) {
|
|
64
|
+
var o, a;
|
|
65
|
+
b(e.roomName) || await ((o = s.instance) == null ? void 0 : o.updateRoomNameByAdmin({ roomName: e.roomName || "" })), b(e.password) || await ((a = s.instance) == null ? void 0 : a.updateRoomPasswordByAdmin({ password: e.password || "" }));
|
|
66
|
+
}
|
|
67
|
+
onRoomDismissed({ roomId: e }) {
|
|
68
|
+
var o;
|
|
69
|
+
e === ((o = n.value) == null ? void 0 : o.roomId) && (n.value = null), S.emit(M.onRoomEnded, { roomId: e });
|
|
70
|
+
}
|
|
71
|
+
onRoomNameChanged({ roomId: e, roomName: o }) {
|
|
72
|
+
var a;
|
|
73
|
+
e === ((a = n.value) == null ? void 0 : a.roomId) && n.value && (n.value = {
|
|
74
|
+
...n.value,
|
|
75
|
+
roomName: o
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
onAllUserCameraDisableChanged({ isDisable: e }) {
|
|
79
|
+
n.value && (n.value = {
|
|
80
|
+
...n.value,
|
|
81
|
+
isAllCameraDisabled: e
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
onScreenShareForAllUserDisableChanged({ isDisable: e }) {
|
|
85
|
+
n.value && (n.value = {
|
|
86
|
+
...n.value,
|
|
87
|
+
isAllScreenShareDisabled: e
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
onAllUserMicrophoneDisableChanged({ isDisable: e }) {
|
|
91
|
+
n.value && (n.value = {
|
|
92
|
+
...n.value,
|
|
93
|
+
isAllMicrophoneDisabled: e
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
onAllUserMessageDisableChanged({ isDisable: e }) {
|
|
97
|
+
n.value && (n.value = {
|
|
98
|
+
...n.value,
|
|
99
|
+
isAllMessageDisabled: e
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
onRoomUserCountChanged({ roomId: e, userCount: o }) {
|
|
103
|
+
var a;
|
|
104
|
+
o <= 0 || e === ((a = n.value) == null ? void 0 : a.roomId) && (n.value = {
|
|
105
|
+
...n.value,
|
|
106
|
+
participantCount: o
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
onConferenceInfoChanged({ conferenceModifyInfo: e }) {
|
|
110
|
+
var o;
|
|
111
|
+
e.basicRoomInfo.roomId === ((o = n.value) == null ? void 0 : o.roomId) && (n.value.roomName = e.basicRoomInfo.roomName);
|
|
112
|
+
}
|
|
113
|
+
onKickedOutOfRoom({ roomId: e }) {
|
|
114
|
+
var o;
|
|
115
|
+
e === ((o = n.value) == null ? void 0 : o.roomId) && (n.value = null);
|
|
116
|
+
}
|
|
117
|
+
bindEvent() {
|
|
118
|
+
A.once("ready", () => {
|
|
119
|
+
var o, a, i, m, d, u, f, C, g;
|
|
120
|
+
const e = (o = s.instance) == null ? void 0 : o.getConferenceListManager();
|
|
121
|
+
(a = s.instance) == null || a.on(r.onRoomDismissed, this.onRoomDismissed), (i = s.instance) == null || i.on(r.onRoomNameChanged, this.onRoomNameChanged), e == null || e.on(p.onConferenceInfoChanged, this.onConferenceInfoChanged), (m = s.instance) == null || m.on(r.onKickedOutOfRoom, this.onKickedOutOfRoom), (d = s.instance) == null || d.on(r.onRoomUserCountChanged, this.onRoomUserCountChanged), (u = s.instance) == null || u.on(r.onAllUserCameraDisableChanged, this.onAllUserCameraDisableChanged), (f = s.instance) == null || f.on(r.onScreenShareForAllUserDisableChanged, this.onScreenShareForAllUserDisableChanged), (C = s.instance) == null || C.on(r.onAllUserMicrophoneDisableChanged, this.onAllUserMicrophoneDisableChanged), (g = s.instance) == null || g.on(r.onSendMessageForAllUserDisableChanged, this.onAllUserMessageDisableChanged);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
R(l, "instance");
|
|
126
|
+
let v = l;
|
|
127
|
+
export {
|
|
128
|
+
v as default
|
|
129
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ScheduleRoomOptions, RoomUser, RoomInfo } from '../../types';
|
|
2
|
+
|
|
3
|
+
declare class ScheduleManager {
|
|
4
|
+
static instance: ScheduleManager;
|
|
5
|
+
constructor();
|
|
6
|
+
static getInstance(): ScheduleManager;
|
|
7
|
+
getScheduledRoomList({ cursor }: {
|
|
8
|
+
cursor: string;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
scheduledRoomList: RoomInfo[];
|
|
11
|
+
cursor: string;
|
|
12
|
+
}>;
|
|
13
|
+
scheduleRoom({ roomId, options }: {
|
|
14
|
+
roomId: string;
|
|
15
|
+
options: ScheduleRoomOptions;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
updateScheduledRoom({ roomId, options }: {
|
|
18
|
+
roomId: string;
|
|
19
|
+
options: ScheduleRoomOptions;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
addScheduledAttendees({ roomId, userIdList }: {
|
|
22
|
+
roomId: string;
|
|
23
|
+
userIdList: string[];
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
removeScheduledAttendees({ roomId, userIdList }: {
|
|
26
|
+
roomId: string;
|
|
27
|
+
userIdList: string[];
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
cancelScheduledRoom({ roomId }: {
|
|
30
|
+
roomId: string;
|
|
31
|
+
}): Promise<void>;
|
|
32
|
+
getScheduledAttendees({ roomId, cursor }: {
|
|
33
|
+
roomId: string;
|
|
34
|
+
cursor: string;
|
|
35
|
+
}): Promise<{
|
|
36
|
+
attendees: RoomUser[];
|
|
37
|
+
cursor: string;
|
|
38
|
+
totalAttendeesCount: number;
|
|
39
|
+
}>;
|
|
40
|
+
private onConferenceScheduled;
|
|
41
|
+
private onConferenceInfoChanged;
|
|
42
|
+
private onConferenceStatusUpdated;
|
|
43
|
+
private onScheduleAttendeesUpdated;
|
|
44
|
+
private onConferenceDidCancelled;
|
|
45
|
+
private onConferenceWillStart;
|
|
46
|
+
bindEvent(): void;
|
|
47
|
+
}
|
|
48
|
+
export default ScheduleManager;
|