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,123 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import { ref } from 'vue';
|
|
3
|
+
import TUIChatEngine from '@tencentcloud/chat-uikit-engine';
|
|
4
|
+
import TUICore, { TUILogin, TUIConstants } from '@tencentcloud/tui-core';
|
|
5
|
+
import TUIRoomEngine from '@tencentcloud/tuiroom-engine-js';
|
|
6
|
+
import { dataReport, MetricsKey } from '../../report';
|
|
7
|
+
import { useLoginState } from '../../states/LoginState';
|
|
8
|
+
import { isMobile } from '../../utils';
|
|
9
|
+
|
|
10
|
+
export default class RTCLoginServer {
|
|
11
|
+
private static instance: RTCLoginServer;
|
|
12
|
+
private isReady = false;
|
|
13
|
+
private isEngineLoggingIn = false;
|
|
14
|
+
public isLogin: Ref<boolean> = ref(false);
|
|
15
|
+
private resolveList: any[] = [];
|
|
16
|
+
private rejectList: any[] = [];
|
|
17
|
+
|
|
18
|
+
constructor() {
|
|
19
|
+
this.init();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static getInstance() {
|
|
23
|
+
if (!RTCLoginServer.instance) {
|
|
24
|
+
RTCLoginServer.instance = new RTCLoginServer();
|
|
25
|
+
}
|
|
26
|
+
return RTCLoginServer.instance;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public init() {
|
|
30
|
+
if (!this.isReady) {
|
|
31
|
+
this.isReady = true;
|
|
32
|
+
TUICore.registerEvent(
|
|
33
|
+
TUIConstants.TUILogin.EVENT.LOGIN_STATE_CHANGED,
|
|
34
|
+
TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS,
|
|
35
|
+
this,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @param { TUIInitParam } params
|
|
42
|
+
*/
|
|
43
|
+
public onNotifyEvent(eventName: string, subKey: string) {
|
|
44
|
+
if (eventName === TUIConstants.TUILogin.EVENT.LOGIN_STATE_CHANGED) {
|
|
45
|
+
switch (subKey) {
|
|
46
|
+
case TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS:
|
|
47
|
+
this.login();
|
|
48
|
+
break;
|
|
49
|
+
case TUIConstants.TUILogin.EVENT_SUB_KEY.USER_LOGOUT_SUCCESS:
|
|
50
|
+
this.logout();
|
|
51
|
+
break;
|
|
52
|
+
default:
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public async login() {
|
|
59
|
+
const {
|
|
60
|
+
chat,
|
|
61
|
+
SDKAppID,
|
|
62
|
+
userID,
|
|
63
|
+
userSig,
|
|
64
|
+
} = TUILogin.getContext();
|
|
65
|
+
if (this.isEngineLoggingIn) {
|
|
66
|
+
return new Promise((resolve, reject) => {
|
|
67
|
+
this.resolveList.push(resolve);
|
|
68
|
+
this.rejectList.push(reject);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
try {
|
|
73
|
+
this.isEngineLoggingIn = true;
|
|
74
|
+
const metricsKey = !isMobile ? MetricsKey.T_METRICS_STATE_API_LOGIN_COUNT : MetricsKey.T_METRICS_STATE_API_LOGIN_MOBILE_COUNT;
|
|
75
|
+
dataReport.reportCount(metricsKey);
|
|
76
|
+
await TUIChatEngine.login({
|
|
77
|
+
chat,
|
|
78
|
+
SDKAppID,
|
|
79
|
+
userID,
|
|
80
|
+
userSig,
|
|
81
|
+
});
|
|
82
|
+
const res = await TUIRoomEngine.login({
|
|
83
|
+
sdkAppId: SDKAppID,
|
|
84
|
+
userId: userID,
|
|
85
|
+
userSig,
|
|
86
|
+
tim: chat,
|
|
87
|
+
});
|
|
88
|
+
this.isLogin.value = true;
|
|
89
|
+
this.resolveList.forEach((resolve) => {
|
|
90
|
+
resolve();
|
|
91
|
+
});
|
|
92
|
+
this.rejectList = [];
|
|
93
|
+
this.resolveList = [];
|
|
94
|
+
const { loginUserInfo } = useLoginState();
|
|
95
|
+
const result = await chat.getUserProfile({ userIDList: [userID] });
|
|
96
|
+
const localUserInfo = result.data[0];
|
|
97
|
+
if (!localUserInfo.value) {
|
|
98
|
+
loginUserInfo.value = {
|
|
99
|
+
userId: localUserInfo.userID,
|
|
100
|
+
userName: localUserInfo.nick,
|
|
101
|
+
avatarUrl: localUserInfo.avatar,
|
|
102
|
+
customInfo: localUserInfo.profileCustomField,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
return res;
|
|
106
|
+
} catch (error) {
|
|
107
|
+
this.rejectList.forEach((reject) => {
|
|
108
|
+
reject(error);
|
|
109
|
+
});
|
|
110
|
+
this.rejectList = [];
|
|
111
|
+
this.resolveList = [];
|
|
112
|
+
throw error;
|
|
113
|
+
} finally {
|
|
114
|
+
this.isEngineLoggingIn = false;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
public logout() {
|
|
119
|
+
TUIRoomEngine.logout();
|
|
120
|
+
this.isLogin.value = false;
|
|
121
|
+
this.isEngineLoggingIn = false;
|
|
122
|
+
}
|
|
123
|
+
}
|
package/src/types/asr.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface TranscriptRawData {
|
|
2
|
+
type: number;
|
|
3
|
+
sender: string;
|
|
4
|
+
start_ms_ts: number;
|
|
5
|
+
end_ms_ts: number;
|
|
6
|
+
payload: {
|
|
7
|
+
end: boolean;
|
|
8
|
+
end_time: string;
|
|
9
|
+
end_time_ms: string;
|
|
10
|
+
roundid: string;
|
|
11
|
+
start_time: string;
|
|
12
|
+
start_time_ms: string;
|
|
13
|
+
taskid: string;
|
|
14
|
+
text: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface Transcript {
|
|
19
|
+
userId: string;
|
|
20
|
+
userName: string;
|
|
21
|
+
avatarUrl: string;
|
|
22
|
+
text: string;
|
|
23
|
+
startTime: number;
|
|
24
|
+
endTime: number;
|
|
25
|
+
end: boolean;
|
|
26
|
+
rawData: TranscriptRawData;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export enum ASREvent {
|
|
30
|
+
TRANSCRIPT_RECEIVED = 'transcript_received',
|
|
31
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 弹幕消息类型枚举
|
|
3
|
+
* @memberof module:BarrageState
|
|
4
|
+
* @description 定义弹幕消息的类型,包括文本消息和自定义消息
|
|
5
|
+
* @enum {number}
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import { BarrageType } from '@/states/BarrageState';
|
|
9
|
+
*
|
|
10
|
+
* // 判断消息类型
|
|
11
|
+
* if (message.messageType === BarrageType.text) {
|
|
12
|
+
* console.log('这是文本消息:', message.textContent);
|
|
13
|
+
* } else if (message.messageType === BarrageType.custom) {
|
|
14
|
+
* console.log('这是自定义消息:', message.data);
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export enum BarrageType {
|
|
19
|
+
/** 文本消息 */
|
|
20
|
+
text = 0,
|
|
21
|
+
/** 自定义消息 */
|
|
22
|
+
custom = 1,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 基础消息信息接口
|
|
27
|
+
* @memberof module:BarrageState
|
|
28
|
+
* @description 定义所有弹幕消息的基础属性
|
|
29
|
+
* @interface BaseMessageInfo
|
|
30
|
+
* @property {string} liveId - 直播间ID
|
|
31
|
+
* @property {TUIUserInfo} sender - 发送者用户信息
|
|
32
|
+
* @property {number} sequence - 消息序列号
|
|
33
|
+
* @property {number} timestampInSecond - 消息时间戳(秒)
|
|
34
|
+
*/
|
|
35
|
+
interface BaseMessageInfo {
|
|
36
|
+
liveId: string;
|
|
37
|
+
sender: TUIUserInfo;
|
|
38
|
+
sequence: number;
|
|
39
|
+
timestampInSecond: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 弹幕消息接口
|
|
44
|
+
* @memberof module:BarrageState
|
|
45
|
+
* @description 定义完整的弹幕消息结构,继承基础消息信息并扩展特定属性
|
|
46
|
+
* @interface Barrage
|
|
47
|
+
* @extends BaseMessageInfo
|
|
48
|
+
* @property {BarrageType} messageType - 消息类型
|
|
49
|
+
* @property {string} [textContent] - 文本内容(文本消息时使用)
|
|
50
|
+
* @property {Record<string, string>} [extensionInfo] - 扩展信息(文本消息时使用)
|
|
51
|
+
* @property {string} [businessId] - 业务ID(自定义消息时使用)
|
|
52
|
+
* @property {string} [data] - 自定义数据(自定义消息时使用)
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* // 文本消息示例
|
|
56
|
+
* const textBarrage: Barrage = {
|
|
57
|
+
* liveId: 'live123',
|
|
58
|
+
* sender: userInfo,
|
|
59
|
+
* sequence: 1,
|
|
60
|
+
* timestampInSecond: 1640995200,
|
|
61
|
+
* messageType: BarrageType.text,
|
|
62
|
+
* textContent: '大家好!',
|
|
63
|
+
* extensionInfo: { color: 'red' }
|
|
64
|
+
* };
|
|
65
|
+
*
|
|
66
|
+
* // 自定义消息示例
|
|
67
|
+
* const customBarrage: Barrage = {
|
|
68
|
+
* liveId: 'live123',
|
|
69
|
+
* sender: userInfo,
|
|
70
|
+
* sequence: 2,
|
|
71
|
+
* timestampInSecond: 1640995201,
|
|
72
|
+
* messageType: BarrageType.custom,
|
|
73
|
+
* businessId: 'gift',
|
|
74
|
+
* data: JSON.stringify({ giftId: 1, count: 5 })
|
|
75
|
+
* };
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export interface Barrage extends BaseMessageInfo {
|
|
79
|
+
messageType: BarrageType;
|
|
80
|
+
|
|
81
|
+
textContent?: string;
|
|
82
|
+
extensionInfo?: Record<string, string> | null;
|
|
83
|
+
|
|
84
|
+
businessId?: string;
|
|
85
|
+
data?: string;
|
|
86
|
+
}
|
package/src/types/device.ts
CHANGED
|
@@ -19,9 +19,9 @@ export enum MirrorType {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export enum DeviceType {
|
|
22
|
-
Microphone =
|
|
23
|
-
Camera =
|
|
24
|
-
ScreenShare =
|
|
22
|
+
Microphone = 'Microphone',
|
|
23
|
+
Camera = 'Camera',
|
|
24
|
+
ScreenShare = 'ScreenShare',
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export enum VideoQuality {
|
|
@@ -74,10 +74,8 @@ export enum NetworkQuality {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export interface NetworkInfo {
|
|
77
|
-
userId: string;
|
|
78
77
|
quality: NetworkQuality;
|
|
79
78
|
upLoss: number;
|
|
80
79
|
downLoss: number;
|
|
81
80
|
delay: number;
|
|
82
81
|
}
|
|
83
|
-
|
package/src/types/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// common
|
|
2
2
|
export type * from './login';
|
|
3
|
+
export * from './device';
|
|
3
4
|
// chat
|
|
4
5
|
export * from './message';
|
|
5
6
|
export * from './search';
|
|
@@ -9,12 +10,9 @@ export * from './contact';
|
|
|
9
10
|
export * from './call';
|
|
10
11
|
export * from './chatSetting';
|
|
11
12
|
// live
|
|
12
|
-
export * from './device';
|
|
13
|
-
export * from './user';
|
|
14
13
|
export * from './types';
|
|
15
14
|
export * from './live';
|
|
16
15
|
export * from './stream';
|
|
17
|
-
export * from './room';
|
|
18
16
|
export type * from './videoMixer';
|
|
19
17
|
export * from './audience';
|
|
20
18
|
export * from './seat';
|
|
@@ -22,3 +20,11 @@ export * from './monitor';
|
|
|
22
20
|
export * from './coGuest';
|
|
23
21
|
export * from './coHost';
|
|
24
22
|
export * from './battle';
|
|
23
|
+
export * from './barrage';
|
|
24
|
+
// room
|
|
25
|
+
export * from './room';
|
|
26
|
+
export * from './participant';
|
|
27
|
+
export * from './beauty';
|
|
28
|
+
export * from './virtualBackground';
|
|
29
|
+
// @deprecated 请使用最新 participant.ts 文件
|
|
30
|
+
export * from './user';
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { DeviceType, DeviceStatus, NetworkInfo } from './device';
|
|
3
|
+
import type { RoomUser } from './room';
|
|
4
|
+
|
|
5
|
+
export enum RoomParticipantRole {
|
|
6
|
+
Owner = 0,
|
|
7
|
+
Admin = 1,
|
|
8
|
+
GeneralUser = 2,
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum RoomParticipantStatus {
|
|
12
|
+
None = 'None', // 未定义
|
|
13
|
+
Scheduled = 'Scheduled',
|
|
14
|
+
InCalling = 'InCalling',
|
|
15
|
+
CallTimeout = 'CallTimeout',
|
|
16
|
+
CallRejected = 'CallRejected',
|
|
17
|
+
InRoom = 'InRoom',
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface RoomParticipant extends RoomUser {
|
|
21
|
+
nameCard: string;
|
|
22
|
+
role: RoomParticipantRole;
|
|
23
|
+
roomStatus: RoomParticipantStatus;
|
|
24
|
+
microphoneStatus: DeviceStatus;
|
|
25
|
+
cameraStatus: DeviceStatus;
|
|
26
|
+
screenShareStatus: DeviceStatus;
|
|
27
|
+
isMessageDisabled: boolean;
|
|
28
|
+
metaData: Record<string, string>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export enum KickedOutOfRoomReason {
|
|
32
|
+
KickedByAdmin = 'KickedByAdmin',
|
|
33
|
+
ReplacedByAnotherDevice = 'ReplacedByAnotherDevice',
|
|
34
|
+
KickedByServer = 'KickedByServer',
|
|
35
|
+
ConnectionTimeout = 'ConnectionTimeout',
|
|
36
|
+
InvalidStatusOnReconnect = 'InvalidStatusOnReconnect',
|
|
37
|
+
RoomLimitExceeded = 'RoomLimitExceeded',
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface DeviceRequestInfo {
|
|
41
|
+
timestamp: number;
|
|
42
|
+
senderUserId: string;
|
|
43
|
+
senderUserName: string;
|
|
44
|
+
senderNameCard: string;
|
|
45
|
+
senderAvatarUrl: string;
|
|
46
|
+
content: string;
|
|
47
|
+
deviceType: DeviceType;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum VideoStreamType {
|
|
51
|
+
Screen = 'screen',
|
|
52
|
+
Camera = 'camera',
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export enum FillMode {
|
|
56
|
+
Fill = 'fill', // 图像铺满屏幕
|
|
57
|
+
Fit = 'fit', // 图像长边填满屏幕,短边区域会被填充黑色
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export enum RoomLayoutTemplate {
|
|
61
|
+
GridLayout = 'gridLayout',
|
|
62
|
+
CinemaLayout = 'cinemaLayout', // 顶部栏
|
|
63
|
+
SidebarLayout = 'sidebarLayout', // 侧边栏
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface IRoomParticipantState {
|
|
67
|
+
// data:
|
|
68
|
+
participantList: Ref<RoomParticipant[]>;
|
|
69
|
+
participantListCursor: Ref<string>;
|
|
70
|
+
participantListWithVideo: Ref<RoomParticipant[]>;
|
|
71
|
+
participantWithScreen: Ref<RoomParticipant | null>;
|
|
72
|
+
pendingDeviceApplications: Ref<DeviceRequestInfo[]>;
|
|
73
|
+
pendingDeviceInvitations: Ref<DeviceRequestInfo[]>;
|
|
74
|
+
speakingUsers: Ref<Map<string, number>>;
|
|
75
|
+
networkQualities: Ref<Map<string, NetworkInfo>>;
|
|
76
|
+
pendingParticipantList: Ref<RoomParticipant[]>;
|
|
77
|
+
|
|
78
|
+
readonly localParticipant: Ref<RoomParticipant | null>;
|
|
79
|
+
|
|
80
|
+
// functions:
|
|
81
|
+
getParticipantList(options: { cursor?: string }): Promise<{ participantList: RoomParticipant[]; cursor: string }>;
|
|
82
|
+
|
|
83
|
+
transferOwner(options: { userId: string }): Promise<void>;
|
|
84
|
+
setAdmin(options: { userId: string }): Promise<void>;
|
|
85
|
+
revokeAdmin(options: { userId: string }): Promise<void>;
|
|
86
|
+
kickParticipant(options: { userId: string }): Promise<void>;
|
|
87
|
+
updateParticipantNameCard(options: { userId: string; nameCard: string }): Promise<void>;
|
|
88
|
+
updateParticipantMetaData(options: { userId: string; metaData: Record<string, string> }): Promise<void>;
|
|
89
|
+
|
|
90
|
+
closeParticipantDevice(options: { userId: string; deviceType: DeviceType }): Promise<void>;
|
|
91
|
+
muteParticipantMessage(options: { userId: string; mute: boolean }): Promise<void>;
|
|
92
|
+
disableAllDevices(options: { deviceType: DeviceType; disable: boolean }): Promise<void>;
|
|
93
|
+
disableAllMessages(options: { disable: boolean }): Promise<void>;
|
|
94
|
+
|
|
95
|
+
requestToOpenDevice(options: { device: DeviceType; timeout?: number }): Promise<void>;
|
|
96
|
+
cancelOpenDeviceRequest(options: { device: DeviceType }): Promise<void>;
|
|
97
|
+
approveOpenDeviceRequest(options: { device: DeviceType; userId: string }): Promise<void>;
|
|
98
|
+
rejectOpenDeviceRequest(options: { device: DeviceType; userId: string }): Promise<void>;
|
|
99
|
+
|
|
100
|
+
inviteToOpenDevice(options: { userId: string; device: DeviceType; timeout?: number }): Promise<void>;
|
|
101
|
+
cancelOpenDeviceInvitation(options: { userId: string; device: DeviceType }): Promise<void>;
|
|
102
|
+
acceptOpenDeviceInvitation(options: { userId: string; device: DeviceType }): Promise<void>;
|
|
103
|
+
declineOpenDeviceInvitation(options: { userId: string; device: DeviceType }): Promise<void>;
|
|
104
|
+
|
|
105
|
+
subscribeEvent(event: RoomParticipantEvent, callback: RoomParticipantEventPayloads[keyof RoomParticipantEventPayloads]): void;
|
|
106
|
+
unsubscribeEvent(event: RoomParticipantEvent, callback: RoomParticipantEventPayloads[keyof RoomParticipantEventPayloads]): void;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export enum RoomParticipantEvent {
|
|
110
|
+
onParticipantJoined = 'onParticipantJoined',
|
|
111
|
+
onParticipantLeft = 'onParticipantLeft',
|
|
112
|
+
onOwnerChanged = 'onOwnerChanged',
|
|
113
|
+
onAdminSet = 'onAdminSet',
|
|
114
|
+
onAdminRevoked = 'onAdminRevoked',
|
|
115
|
+
onKickedFromRoom = 'onKickedFromRoom',
|
|
116
|
+
onParticipantDeviceClosed = 'onParticipantDeviceClosed',
|
|
117
|
+
onParticipantMessageMuted = 'onParticipantMessageMuted',
|
|
118
|
+
onAllDevicesDisabled = 'onAllDevicesDisabled',
|
|
119
|
+
onAllMessagesDisabled = 'onAllMessagesDisabled',
|
|
120
|
+
onDeviceRequestReceived = 'onDeviceRequestReceived',
|
|
121
|
+
onDeviceRequestCancelled = 'onDeviceRequestCancelled',
|
|
122
|
+
onDeviceRequestTimeout = 'onDeviceRequestTimeout',
|
|
123
|
+
onDeviceRequestApproved = 'onDeviceRequestApproved',
|
|
124
|
+
onDeviceRequestRejected = 'onDeviceRequestRejected',
|
|
125
|
+
onDeviceRequestProcessed = 'onDeviceRequestProcessed',
|
|
126
|
+
onDeviceInvitationReceived = 'onDeviceInvitationReceived',
|
|
127
|
+
onDeviceInvitationCancelled = 'onDeviceInvitationCancelled',
|
|
128
|
+
onDeviceInvitationTimeout = 'onDeviceInvitationTimeout',
|
|
129
|
+
onDeviceInvitationAccepted = 'onDeviceInvitationAccepted',
|
|
130
|
+
onDeviceInvitationDeclined = 'onDeviceInvitationDeclined',
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface RoomParticipantEventPayloads {
|
|
134
|
+
onParticipantJoined: (options: { userInfo: RoomUser }) => void;
|
|
135
|
+
onParticipantLeft: (options: { userInfo: RoomUser }) => void;
|
|
136
|
+
onOwnerChanged: (options: { newOwner: RoomUser }) => void;
|
|
137
|
+
onAdminSet: (options: { userInfo: RoomUser }) => void;
|
|
138
|
+
onAdminRevoked: (options: { userInfo: RoomUser }) => void;
|
|
139
|
+
onKickedFromRoom: (options: { reason: KickedOutOfRoomReason; message: string }) => void;
|
|
140
|
+
onParticipantDeviceClosed: (options: { device: DeviceType; operator: RoomUser }) => void;
|
|
141
|
+
onParticipantMessageMuted: (options: { muted: boolean; operator: RoomUser }) => void;
|
|
142
|
+
onAllDevicesDisabled: (options: { device: DeviceType; disable: boolean; operator: RoomUser }) => void;
|
|
143
|
+
onAllMessagesDisabled: (options: { disable: boolean; operator: RoomUser }) => void;
|
|
144
|
+
onDeviceRequestReceived: (options: { request: DeviceRequestInfo }) => void;
|
|
145
|
+
onDeviceRequestCancelled: (options: { request: DeviceRequestInfo }) => void;
|
|
146
|
+
onDeviceRequestTimeout: (options: { request: DeviceRequestInfo }) => void;
|
|
147
|
+
onDeviceRequestApproved: (options: { request: DeviceRequestInfo; operator: RoomUser }) => void;
|
|
148
|
+
onDeviceRequestRejected: (options: { request: DeviceRequestInfo; operator: RoomUser }) => void;
|
|
149
|
+
onDeviceRequestProcessed: (options: { request: DeviceRequestInfo; operator: RoomUser }) => void;
|
|
150
|
+
onDeviceInvitationReceived: (options: { invitation: DeviceRequestInfo }) => void;
|
|
151
|
+
onDeviceInvitationCancelled: (options: { invitation: DeviceRequestInfo }) => void;
|
|
152
|
+
onDeviceInvitationTimeout: (options: { invitation: DeviceRequestInfo }) => void;
|
|
153
|
+
onDeviceInvitationAccepted: (options: { invitation: DeviceRequestInfo; operator: RoomUser }) => void;
|
|
154
|
+
onDeviceInvitationDeclined: (options: { invitation: DeviceRequestInfo; operator: RoomUser }) => void;
|
|
155
|
+
}
|
package/src/types/room.ts
CHANGED
|
@@ -1,73 +1,138 @@
|
|
|
1
|
-
|
|
2
|
-
import { TUIConferenceStatus, TUIUserInfo } from '@tencentcloud/tuiroom-engine-js';
|
|
3
|
-
import { TUIRoomType, TUISeatMode } from './types';
|
|
4
|
-
import type { TUILoginUserInfo } from './types';
|
|
1
|
+
import type { Ref } from 'vue';
|
|
5
2
|
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
memberCount: number; // readonly
|
|
11
|
-
createTime: number; // readonly
|
|
12
|
-
roomStatus: TUIConferenceStatus;
|
|
13
|
-
scheduleStartTime: number;
|
|
14
|
-
scheduleEndTime: number;
|
|
15
|
-
reminderSecondsBeforeStart: number;
|
|
16
|
-
scheduleAttendees: TUIUserInfo[];
|
|
17
|
-
password: string;
|
|
18
|
-
isSeatEnabled: boolean; // readonly
|
|
19
|
-
seatMode: TUISeatMode;
|
|
20
|
-
maxSeatCount: number;
|
|
21
|
-
isMicrophoneDisableForAllUser: boolean;
|
|
22
|
-
isScreenShareDisableForAllUser: boolean;
|
|
23
|
-
isCameraDisableForAllUser: boolean;
|
|
24
|
-
isMessageDisableForAllUser: boolean;
|
|
25
|
-
customInfo: Record<string, any>;
|
|
26
|
-
};
|
|
3
|
+
export enum RoomStatus {
|
|
4
|
+
Scheduled = 1,
|
|
5
|
+
Running = 2,
|
|
6
|
+
}
|
|
27
7
|
|
|
28
|
-
export interface
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
maxSeatCount?: number;
|
|
33
|
-
isMicrophoneDisableForAllUser?: boolean;
|
|
34
|
-
isScreenShareDisableForAllUser?: boolean;
|
|
35
|
-
isCameraDisableForAllUser?: boolean;
|
|
36
|
-
isMessageDisableForAllUser?: boolean;
|
|
8
|
+
export interface RoomUser {
|
|
9
|
+
userId: string;
|
|
10
|
+
userName: string;
|
|
11
|
+
avatarUrl: string;
|
|
37
12
|
}
|
|
38
13
|
|
|
39
|
-
export interface
|
|
40
|
-
roomId: string;
|
|
14
|
+
export interface RoomInfo {
|
|
15
|
+
readonly roomId: string;
|
|
16
|
+
roomName: string;
|
|
17
|
+
roomOwner: RoomUser;
|
|
18
|
+
readonly participantCount?: number;
|
|
19
|
+
readonly createTime?: number;
|
|
20
|
+
readonly roomStatus?: RoomStatus;
|
|
21
|
+
scheduledStartTime?: number;
|
|
22
|
+
scheduledEndTime?: number;
|
|
23
|
+
startReminderInSeconds?: number;
|
|
24
|
+
scheduleAttendees?: RoomUser[];
|
|
25
|
+
password?: string;
|
|
26
|
+
isAllMicrophoneDisabled?: boolean;
|
|
27
|
+
isAllCameraDisabled?: boolean;
|
|
28
|
+
isAllScreenShareDisabled?: boolean;
|
|
29
|
+
isAllMessageDisabled?: boolean;
|
|
41
30
|
}
|
|
42
31
|
|
|
43
|
-
export
|
|
32
|
+
export type ScheduleRoomOptions = {
|
|
33
|
+
roomName?: string;
|
|
34
|
+
password?: string;
|
|
44
35
|
scheduleStartTime: number;
|
|
45
36
|
scheduleEndTime: number;
|
|
46
|
-
scheduleAttendees?: string[];
|
|
47
37
|
reminderSecondsBeforeStart?: number;
|
|
48
|
-
|
|
38
|
+
scheduleAttendees?: string[];
|
|
39
|
+
isAllMicrophoneDisabled?: boolean;
|
|
40
|
+
isAllCameraDisabled?: boolean;
|
|
41
|
+
isAllScreenShareDisabled?: boolean;
|
|
42
|
+
isAllMessageDisabled?: boolean;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type CreateRoomOptions = {
|
|
46
|
+
roomName?: string;
|
|
47
|
+
password?: string;
|
|
48
|
+
isAllMicrophoneDisabled?: boolean;
|
|
49
|
+
isAllCameraDisabled?: boolean;
|
|
50
|
+
isAllScreenShareDisabled?: boolean;
|
|
51
|
+
isAllMessageDisabled?: boolean;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type UpdateRoomOptions = {
|
|
49
55
|
roomName?: string;
|
|
50
|
-
roomType?: TUIRoomType;
|
|
51
|
-
isSeatEnabled?: boolean;
|
|
52
|
-
seatMode?: TUISeatMode;
|
|
53
|
-
isMicrophoneDisableForAllUser?: boolean;
|
|
54
|
-
isScreenShareDisableForAllUser?: boolean;
|
|
55
|
-
isCameraDisableForAllUser?: boolean;
|
|
56
|
-
isMessageDisableForAllUser?: boolean;
|
|
57
|
-
maxSeatCount?: number;
|
|
58
56
|
password?: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export enum RoomCallStatus {
|
|
60
|
+
None = 0,
|
|
61
|
+
Calling = 1,
|
|
62
|
+
Timeout = 2,
|
|
63
|
+
Rejected = 3,
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export enum RoomCallResult {
|
|
67
|
+
Success = 0,
|
|
68
|
+
AlreadyInCalling = 1,
|
|
69
|
+
AlreadyInRoom = 2,
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface RoomCall {
|
|
73
|
+
caller: RoomUser;
|
|
74
|
+
callee: RoomUser;
|
|
75
|
+
status?: RoomCallStatus;
|
|
59
76
|
}
|
|
60
77
|
|
|
61
|
-
export
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
78
|
+
export interface IRoomState {
|
|
79
|
+
scheduledRoomList: Ref<RoomInfo[]>;
|
|
80
|
+
scheduledRoomListCursor: Ref<string>;
|
|
81
|
+
currentRoom: Ref<RoomInfo | null>;
|
|
82
|
+
|
|
83
|
+
getScheduledRoomList(options: { cursor: string }): Promise<{ scheduledRoomList: RoomInfo[]; cursor: string }>;
|
|
84
|
+
getScheduledAttendees(options: { roomId: string; cursor: string }): Promise<{ attendees: RoomUser[]; cursor: string; totalAttendeesCount: number }>;
|
|
85
|
+
|
|
86
|
+
scheduleRoom(options: { roomId: string; options: ScheduleRoomOptions }): Promise<void>;
|
|
87
|
+
updateScheduledRoom(options: { roomId: string; options: ScheduleRoomOptions }): Promise<void>;
|
|
88
|
+
addScheduledAttendees(options: { roomId: string; userIdList: string[] }): Promise<void>;
|
|
89
|
+
removeScheduledAttendees(options: { roomId: string; userIdList: string[] }): Promise<void>;
|
|
90
|
+
cancelScheduledRoom(options: { roomId: string }): Promise<void>;
|
|
91
|
+
|
|
92
|
+
createAndJoinRoom(options: { roomId: string; options: CreateRoomOptions }): Promise<void>;
|
|
93
|
+
joinRoom(options: { roomId: string; password?: string }): Promise<void>;
|
|
94
|
+
leaveRoom(): Promise<void>;
|
|
95
|
+
endRoom(): Promise<void>;
|
|
96
|
+
updateRoomInfo(options: { roomId: string; options: UpdateRoomOptions }): Promise<void>;
|
|
97
|
+
getRoomInfo(options: { roomId: string }): Promise<RoomInfo>;
|
|
98
|
+
|
|
99
|
+
getPendingCalls(options: { roomId: string; cursor: string }): Promise<{ calls: RoomCall[]; cursor: string }>;
|
|
100
|
+
callUserToRoom(options: { roomId: string; userIdList: string[]; timeout?: number; extensionInfo?: string }): Promise<Map<string, RoomCallResult>>;
|
|
101
|
+
cancelCall(options: { roomId: string; userIdList: string[] }): Promise<void>;
|
|
102
|
+
acceptCall(options: { roomId: string }): Promise<void>;
|
|
103
|
+
rejectCall(options: { roomId: string; extensionInfo?: string }): Promise<void>;
|
|
104
|
+
|
|
105
|
+
subscribeEvent<T extends RoomEvent>(event: T | `${T}`, handler: RoomEventHandlers[T]): void;
|
|
106
|
+
unsubscribeEvent<T extends RoomEvent>(event: T | `${T}`, handler: RoomEventHandlers[T]): void;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export enum RoomEvent {
|
|
110
|
+
onAddedToScheduledRoom = 'onAddedToScheduledRoom',
|
|
111
|
+
onRemovedFromScheduledRoom = 'onRemovedFromScheduledRoom',
|
|
112
|
+
onScheduledRoomCancelled = 'onScheduledRoomCancelled',
|
|
113
|
+
onScheduledRoomStartingSoon = 'onScheduledRoomStartingSoon',
|
|
114
|
+
onRoomEnded = 'onRoomEnded',
|
|
115
|
+
onCallReceived = 'onCallReceived',
|
|
116
|
+
onCallCancelled = 'onCallCancelled',
|
|
117
|
+
onCallTimeout = 'onCallTimeout',
|
|
118
|
+
onCallAccepted = 'onCallAccepted',
|
|
119
|
+
onCallRejected = 'onCallRejected',
|
|
120
|
+
onCallHandledByOtherDevice = 'onCallHandledByOtherDevice',
|
|
121
|
+
onCallRevokedByAdmin = 'onCallRevokedByAdmin',
|
|
65
122
|
}
|
|
66
123
|
|
|
67
|
-
export
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
124
|
+
export interface RoomEventHandlers {
|
|
125
|
+
onAddedToScheduledRoom: (options: { roomInfo: RoomInfo }) => void;
|
|
126
|
+
onRemovedFromScheduledRoom: (options: { roomInfo: RoomInfo; operator: RoomUser }) => void;
|
|
127
|
+
onScheduledRoomCancelled: (options: { roomInfo: RoomInfo; operator: RoomUser }) => void;
|
|
128
|
+
onScheduledRoomStartingSoon: (options: { roomInfo: RoomInfo }) => void;
|
|
129
|
+
onRoomEnded: (options: { roomInfo: RoomInfo }) => void;
|
|
130
|
+
|
|
131
|
+
onCallReceived: (options: { roomInfo: RoomInfo; call: RoomCall; extensionInfo: string }) => void;
|
|
132
|
+
onCallCancelled: (options: { roomInfo: RoomInfo; call: RoomCall }) => void;
|
|
133
|
+
onCallTimeout: (options: { roomInfo: RoomInfo; call: RoomCall }) => void;
|
|
134
|
+
onCallAccepted: (options: { roomInfo: RoomInfo; call: RoomCall }) => void;
|
|
135
|
+
onCallRejected: (options: { roomInfo: RoomInfo; call: RoomCall; extensionInfo: string }) => void;
|
|
136
|
+
onCallHandledByOtherDevice: (options: { roomInfo: RoomInfo; isAccepted: boolean }) => void;
|
|
137
|
+
onCallRevokedByAdmin: (options: { roomInfo: RoomInfo; call: RoomCall; operator: RoomUser }) => void;
|
|
73
138
|
}
|
package/src/types/user.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface VirtualBackgroundConfig {
|
|
2
|
+
enable?: boolean;
|
|
3
|
+
type?: VirtualBackgroundType;
|
|
4
|
+
blurLevel?: number;
|
|
5
|
+
imagePath?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum VirtualBackgroundType {
|
|
9
|
+
blur = 'blur',
|
|
10
|
+
image = 'image',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum VirtualBackgroundEvent {
|
|
14
|
+
onAbort = 'onAbort', // 运行过程中发生错误
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type VirtualBackgroundEventCallback = () => void;
|