tuikit-atomicx-vue3 4.4.0-beta.1 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +6 -2
- package/dist/DurationSelector.vue_vue_type_script_setup_true_lang-RndH6NtJ.js +54 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +38 -36
- package/dist/TimezoneSelector.vue_vue_type_script_setup_true_lang-C-lovW-l.js +62 -0
- package/dist/baseComp/AudioIcon.js +7 -7
- package/dist/baseComp/Input/InputH5.vue.d.ts +1 -1
- package/dist/baseComp/Input/InputPC.vue.d.ts +1 -1
- package/dist/baseComp/Input/InputWX.vue.d.ts +1 -1
- package/dist/baseComp/Input/index.d.ts +15 -15
- package/dist/changeNameCardDialog.vue_vue_type_script_setup_true_lang-a4FmKskP.js +41 -0
- package/dist/chat/index.d.ts +521 -506
- package/dist/chat/server.js +15 -15
- package/dist/components/AudioSetting/AudioMediaControl.js +23 -23
- package/dist/components/AudioSetting/AudioRequestDialog.js +86 -2
- package/dist/components/AudioSetting/AudioSettingTab.js +32 -33
- package/dist/components/AudioSetting/MicrophoneSelect.js +14 -15
- package/dist/components/AudioSetting/SpeakerSelect.js +16 -17
- package/dist/components/AudioSetting/index.js +29 -3
- package/dist/components/AudioSettingPanel/MicrophoneSelect.js +61 -0
- package/dist/components/AudioSettingPanel/MicrophoneSelect.vue.d.ts +29 -0
- package/dist/components/AudioSettingPanel/SpeakerSelect.js +61 -0
- package/dist/components/AudioSettingPanel/SpeakerSelect.vue.d.ts +29 -0
- package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +12 -6
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +12 -6
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +12 -6
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +12 -6
- package/dist/components/AudioSettingPanel/index.d.ts +49 -2
- package/dist/components/AudioSettingPanel/index.js +127 -94
- package/dist/components/AudioSettingPanel/index.vue.d.ts +49 -1
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +5 -4
- package/dist/components/BarrageInput/TextEditor/TextEditor.vue.d.ts +1 -1
- package/dist/components/BarrageInput/index.d.ts +6 -6
- package/dist/components/BarrageList/BarrageList.js +7 -7
- package/dist/components/BarrageList/BarrageListH5.js +7 -7
- package/dist/components/BarrageList/BarrageListState.d.ts +5 -27
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +4 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +11 -11
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +4 -4
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +1 -1
- package/dist/components/CameraButton/index.js +7 -7
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
- package/dist/components/ChatSetting/SettingItem/SettingItem.vue.d.ts +2 -2
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
- package/dist/components/ContactList/ContactList.js +7 -7
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
- package/dist/components/ConversationList/ConversationList.js +4 -4
- package/dist/components/ConversationList/ConversationList.vue.d.ts +200 -200
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +92 -92
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +18 -18
- package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +36 -36
- package/dist/components/ConversationList/index.d.ts +470 -470
- package/dist/components/FreeBeautyPanel/FreeBeautyPanel.js +257 -0
- package/dist/components/FreeBeautyPanel/FreeBeautyPanel.vue.d.ts +6 -0
- package/dist/components/FreeBeautyPanel/i18n/en-US/index.d.ts +15 -0
- package/dist/components/FreeBeautyPanel/i18n/en-US/index.js +19 -0
- package/dist/components/FreeBeautyPanel/i18n/index.d.ts +4 -0
- package/dist/components/FreeBeautyPanel/i18n/index.js +6 -0
- package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.d.ts +15 -0
- package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.js +19 -0
- package/dist/components/FreeBeautyPanel/index.d.ts +6 -0
- package/dist/components/FreeBeautyPanel/index.js +10 -0
- package/dist/components/LiveMonitorView/LiveMonitorView.js +11 -11
- package/dist/components/LiveScenePanel/index.d.ts +1 -2
- package/dist/components/LiveScenePanel/index.js +44 -43
- package/dist/components/LiveView/DefaultStreamViewUI.js +10 -10
- package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
- package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
- package/dist/components/LiveView/PlayerControl/MultiResolution.js +58 -64
- package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +1 -7
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +82 -83
- package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +6 -6
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +153 -194
- package/dist/components/LiveView/index.d.ts +37 -2
- package/dist/components/LiveView/index.js +29 -29
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +6 -3
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +3 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.js +51 -63
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +7 -3
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
- package/dist/components/MessageInput/TextEditor/index.js +45 -35
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
- package/dist/components/MessageInput/i18n/index.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +5 -1
- package/dist/components/MessageInput/index.d.ts +60 -30
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
- package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +63 -69
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/MessageList.js +8 -6
- 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 +2 -2
- package/dist/components/MicButton/index.js +13 -13
- package/dist/components/RoomParticipantList/ParticipantAction.js +78 -0
- package/dist/components/RoomParticipantList/ParticipantAction.vue.d.ts +17 -0
- package/dist/components/RoomParticipantList/ParticipantItem.js +82 -0
- package/dist/components/RoomParticipantList/ParticipantItem.vue.d.ts +27 -0
- package/dist/components/RoomParticipantList/PendingParticipantItem.js +75 -0
- package/dist/components/RoomParticipantList/PendingParticipantItem.vue.d.ts +16 -0
- package/dist/components/RoomParticipantList/RoomAction.js +89 -0
- package/dist/components/RoomParticipantList/RoomAction.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/i18n/en-US/index.d.ts +66 -0
- package/dist/components/RoomParticipantList/i18n/en-US/index.js +69 -0
- package/dist/components/RoomParticipantList/i18n/index.d.ts +2 -0
- package/dist/components/RoomParticipantList/i18n/index.js +6 -0
- package/dist/components/RoomParticipantList/i18n/zh-CN/index.d.ts +66 -0
- package/dist/components/RoomParticipantList/i18n/zh-CN/index.js +69 -0
- package/dist/components/RoomParticipantList/index.d.ts +2 -0
- package/dist/components/RoomParticipantList/index.js +171 -0
- package/dist/components/RoomParticipantList/index.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/useParticpantAction/index.d.ts +15 -0
- package/dist/components/RoomParticipantList/useParticpantAction/index.js +71 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.js +36 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.js +42 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.js +34 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.js +31 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.js +4 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.vue.d.ts +17 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.js +61 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.js +54 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.js +40 -0
- package/dist/components/RoomParticipantList/useRoomAction/index.d.ts +8 -0
- package/dist/components/RoomParticipantList/useRoomAction/index.js +20 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.d.ts +5 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.js +51 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.d.ts +8 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.js +60 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.d.ts +5 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.js +50 -0
- package/dist/components/RoomParticipantView/StreamPlay.js +74 -0
- package/dist/components/RoomParticipantView/StreamPlay.vue.d.ts +66 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.d.ts +56 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.js +94 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.d.ts +58 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.js +97 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.d.ts +46 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.js +100 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.d.ts +92 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.js +177 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/index.d.ts +119 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/index.js +298 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/types.d.ts +14 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/types.js +4 -0
- package/dist/components/RoomParticipantView/index.d.ts +99 -0
- package/dist/components/RoomParticipantView/index.js +32 -0
- package/dist/components/RoomParticipantView/index.vue.d.ts +34 -0
- package/dist/components/RoomView/ArrowStroke.js +43 -0
- package/dist/components/RoomView/ArrowStroke.vue.d.ts +20 -0
- package/dist/components/RoomView/GridLayout.js +119 -0
- package/dist/components/RoomView/GridLayout.vue.d.ts +20 -0
- package/dist/components/RoomView/SpeakerLayout.js +141 -0
- package/dist/components/RoomView/SpeakerLayout.vue.d.ts +32 -0
- package/dist/components/RoomView/index.d.ts +52 -0
- package/dist/components/RoomView/index.js +49 -0
- package/dist/components/RoomView/index.vue.d.ts +46 -0
- package/dist/components/RoomView/useRoomToolbar.d.ts +5 -0
- package/dist/components/RoomView/useRoomToolbar.js +36 -0
- package/dist/components/RoomView/useRoomView.d.ts +13 -0
- package/dist/components/RoomView/useRoomView.js +40 -0
- package/dist/components/RoomView/useStreamItemDimensions.d.ts +30 -0
- package/dist/components/RoomView/useStreamItemDimensions.js +57 -0
- package/dist/components/ScheduleRoomPanel/Datepicker.js +162 -0
- package/dist/components/ScheduleRoomPanel/Datepicker.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/DurationSelector.js +4 -0
- package/dist/components/ScheduleRoomPanel/DurationSelector.vue.d.ts +39 -0
- package/dist/components/ScheduleRoomPanel/RoomDetail.js +113 -0
- package/dist/components/ScheduleRoomPanel/RoomDetail.vue.d.ts +31 -0
- package/dist/components/ScheduleRoomPanel/RoomEdit.js +281 -0
- package/dist/components/ScheduleRoomPanel/RoomEdit.vue.d.ts +23 -0
- package/dist/components/ScheduleRoomPanel/RoomShare.js +110 -0
- package/dist/components/ScheduleRoomPanel/RoomShare.vue.d.ts +16 -0
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +385 -0
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.vue.d.ts +40 -0
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.js +345 -0
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.vue.d.ts +8 -0
- package/dist/components/ScheduleRoomPanel/Timepicker.js +65 -0
- package/dist/components/ScheduleRoomPanel/Timepicker.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/TimezoneSelector.js +4 -0
- package/dist/components/ScheduleRoomPanel/TimezoneSelector.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/i18n/en-US/index.d.ts +108 -0
- package/dist/components/ScheduleRoomPanel/i18n/en-US/index.js +111 -0
- package/dist/components/ScheduleRoomPanel/i18n/index.d.ts +4 -0
- package/dist/components/ScheduleRoomPanel/i18n/index.js +6 -0
- package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.d.ts +108 -0
- package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.js +111 -0
- package/dist/components/ScheduleRoomPanel/index.d.ts +34 -0
- package/dist/components/ScheduleRoomPanel/index.js +12 -0
- package/dist/components/ScheduleRoomPanel/type.d.ts +7 -0
- package/dist/components/ScheduleRoomPanel/type.js +1 -0
- package/dist/components/ScheduleRoomPanel/utils.d.ts +46 -0
- package/dist/components/ScheduleRoomPanel/utils.js +123 -0
- package/dist/components/Search/Search.vue.d.ts +12 -12
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
- package/dist/components/Search/SearchBar/SearchBar.js +56 -58
- package/dist/components/Search/index.d.ts +18 -18
- package/dist/components/StreamMixer/LocalMixer/index.js +25 -22
- package/dist/components/StreamMixer/index.d.ts +1 -2
- package/dist/components/StreamMixer/index.js +9 -8
- package/dist/components/StreamView/Layout/CustomLayout.js +53 -53
- package/dist/components/StreamView/Layout/CustomLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/FloatLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/GridLayout.js +47 -51
- package/dist/components/StreamView/Layout/GridLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/MeetingLayout.js +10 -10
- package/dist/components/StreamView/Layout/MeetingLayout.vue.d.ts +1 -1
- package/dist/components/StreamView/common/StreamList/index.vue.d.ts +1 -1
- package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.vue.d.ts +2 -2
- package/dist/components/StreamView/index.d.ts +90 -3
- package/dist/components/StreamView/index.js +4 -4
- package/dist/components/StreamView/index.vue.d.ts +1 -1
- package/dist/components/StreamView/manager/mediaManager.js +9 -9
- package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
- package/dist/components/UIKitModal/UIKitModal.js +156 -0
- package/dist/components/UIKitModal/index.d.ts +2 -0
- package/dist/components/UIKitModal/index.js +6 -0
- package/dist/components/UIKitModal/index.vue.d.ts +45 -0
- package/dist/components/UIKitModal/type.d.ts +21 -0
- package/dist/components/UIKitModal/type.js +1 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.d.ts +17 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.js +21 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/index.d.ts +4 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/index.js +6 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.d.ts +17 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.js +21 -0
- package/dist/components/UIKitModal/useRoomModal/index.d.ts +6 -0
- package/dist/components/UIKitModal/useRoomModal/index.js +11 -0
- package/dist/components/UIKitModal/useRoomModal/useRoomModal.d.ts +21 -0
- package/dist/components/UIKitModal/useRoomModal/useRoomModal.js +79 -0
- package/dist/components/UserList/AllUserActions/indexH5.js +21 -21
- package/dist/components/UserList/AllUserActions/useIndexHooks.d.ts +0 -2
- package/dist/components/UserList/AllUserActions/useIndexHooks.js +24 -25
- package/dist/components/UserList/UserItem/UserInfo/index.js +19 -19
- package/dist/components/UserPicker/UserPicker.js +1 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
- package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
- package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
- package/dist/components/UserPicker/i18n/en-US.js +2 -1
- package/dist/components/UserPicker/i18n/index.d.ts +2 -0
- package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
- package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
- package/dist/components/UserPicker/index.d.ts +2 -2
- package/dist/components/UserPicker/type.d.ts +1 -1
- package/dist/components/VideoSetting/CameraSelect.js +6 -7
- package/dist/components/VideoSetting/VideoMediaControl.js +45 -44
- package/dist/components/VideoSetting/VideoPreview.js +24 -25
- package/dist/components/VideoSetting/VideoProfile.js +22 -23
- package/dist/components/VideoSetting/VideoSettingTab.js +24 -24
- package/dist/components/VideoSetting/index.js +32 -3
- package/dist/components/VideoSettingPanel/CameraSelect.js +28 -25
- package/dist/components/VideoSettingPanel/VideoPreview.js +13 -13
- package/dist/components/VideoSettingPanel/VideoProfile.js +27 -27
- package/dist/components/VideoSettingPanel/i18n/en-US/index.d.ts +13 -10
- package/dist/components/VideoSettingPanel/i18n/en-US/index.js +13 -10
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.d.ts +13 -10
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +13 -10
- package/dist/components/VideoSettingPanel/index.d.ts +9 -0
- package/dist/components/VideoSettingPanel/index.js +56 -44
- package/dist/components/VideoSettingPanel/index.vue.d.ts +9 -0
- package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.js +169 -0
- package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue.d.ts +33 -0
- package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.d.ts +10 -0
- package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.js +14 -0
- package/dist/components/VirtualBackgroundPanel/i18n/index.d.ts +4 -0
- package/dist/components/VirtualBackgroundPanel/i18n/index.js +6 -0
- package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.d.ts +10 -0
- package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.js +14 -0
- package/dist/components/VirtualBackgroundPanel/index.d.ts +20 -0
- package/dist/components/VirtualBackgroundPanel/index.js +10 -0
- package/dist/hooks/useAudioControl.d.ts +3 -3
- package/dist/hooks/useAudioControl.js +32 -30
- package/dist/hooks/useRoomActions/index.d.ts +1 -1
- package/dist/hooks/useRoomActions/index.js +10 -11
- package/dist/hooks/useRoomActions/useRoomAudioAction.d.ts +1 -3
- package/dist/hooks/useRoomActions/useRoomAudioAction.js +30 -31
- package/dist/hooks/useRoomActions/useRoomScreenAction.d.ts +0 -2
- package/dist/hooks/useRoomActions/useRoomScreenAction.js +20 -20
- package/dist/hooks/useRoomActions/useRoomVideoAction.d.ts +1 -8
- package/dist/hooks/useRoomActions/useRoomVideoAction.js +26 -28
- package/dist/hooks/useRoomEngine.d.ts +2 -2
- package/dist/hooks/useUserActions/index.d.ts +7 -23
- package/dist/hooks/useUserActions/index.js +11 -11
- package/dist/hooks/useUserActions/useChangeNameCardAction/index.d.ts +1 -9
- package/dist/hooks/useUserActions/useKickUserAction.d.ts +1 -9
- package/dist/hooks/useUserActions/useSeatAction.d.ts +1 -1
- package/dist/hooks/useUserActions/useSeatAction.js +3 -3
- package/dist/hooks/useUserActions/useTransferOwnerAction.d.ts +2 -10
- package/dist/hooks/useUserActions/useTransferOwnerAction.js +22 -20
- package/dist/hooks/useUserActions/useVideoAction.d.ts +1 -9
- package/dist/index-7vNB_Vx8.js +64 -0
- package/dist/{index-BfIEeWMg.js → index-Do-2CngU.js} +1894 -1759
- package/dist/{index-DTi1fL-x.js → index-ZILx4LYk.js} +1210 -1512
- package/dist/index.d.ts +3 -6
- package/dist/index.js +255 -194
- package/dist/report/MetricsKey.d.ts +27 -14
- package/dist/report/MetricsKey.js +1 -1
- package/dist/report/dataReport.js +12 -8
- package/dist/states/ASRState/ASRState.d.ts +61 -0
- package/dist/states/ASRState/ASRState.js +79 -0
- package/dist/states/ASRState/index.d.ts +1 -0
- package/dist/states/ASRState/index.js +4 -0
- package/dist/states/BarrageState/BarrageState.d.ts +70 -44
- package/dist/states/BarrageState/BarrageState.js +29 -31
- package/dist/states/BarrageState/index.js +2 -3
- package/dist/states/BattleState/BattleState.d.ts +101 -5
- package/dist/states/C2CSettingState/C2CSettingState.d.ts +107 -0
- package/dist/states/CoGuestState.d.ts +53 -1
- package/dist/states/CoGuestState.js +15 -15
- package/dist/states/CoHostState/CoHostState.d.ts +120 -0
- package/dist/states/ContactListState/ContactListState.d.ts +56 -0
- package/dist/states/ConversationListState/ConversationListState.d.ts +36 -0
- package/dist/states/DeviceState/DeviceState.d.ts +68 -10
- package/dist/states/DeviceState/DeviceState.js +233 -189
- package/dist/states/DeviceState/mediaAbality.d.ts +2 -0
- package/dist/states/DeviceState/mediaAbality.js +11 -0
- package/dist/states/FreeBeautyState/FreeBeautyState.d.ts +11 -0
- package/dist/states/FreeBeautyState/FreeBeautyState.js +103 -0
- package/dist/states/FreeBeautyState/index.d.ts +1 -0
- package/dist/states/FreeBeautyState/index.js +4 -0
- package/dist/states/GroupSettingState/GroupSettingState.d.ts +59 -0
- package/dist/states/LiveAudienceState.d.ts +42 -4
- package/dist/states/LiveListState/LiveListState.d.ts +2 -2
- package/dist/states/LiveListState/LiveListState.js +5 -5
- package/dist/states/LiveMonitorState/index.d.ts +42 -0
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
- package/dist/states/LiveSeatState/index.d.ts +58 -8
- package/dist/states/LiveSeatState/index.js +20 -18
- package/dist/states/LiveSeatState/seatManager.d.ts +293 -6
- package/dist/states/LiveSeatState/seatManager.js +283 -0
- package/dist/states/LiveSeatState/store.d.ts +0 -2
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +13 -13
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +7 -7
- package/dist/states/LiveSeatState/usePlayStream/index.d.ts +4 -7
- package/dist/states/LiveSeatState/usePlayStream/index.js +65 -54
- package/dist/states/LoginState.d.ts +68 -0
- package/dist/states/LoginState.js +34 -39
- package/dist/states/MessageActionState/MessageActionState.d.ts +36 -2
- package/dist/states/MessageActionState/MessageActionState.js +142 -22
- package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
- package/dist/states/MessageInputState/MessageInputState.js +60 -59
- package/dist/states/MessageInputState/utils.d.ts +8 -1
- package/dist/states/MessageInputState/utils.js +30 -10
- package/dist/states/MessageListState/MessageListState.d.ts +39 -0
- package/dist/states/RoomParticipantState/callEventManager.d.ts +10 -0
- package/dist/states/RoomParticipantState/callEventManager.js +49 -0
- package/dist/states/RoomParticipantState/common.d.ts +14 -0
- package/dist/states/RoomParticipantState/common.js +76 -0
- package/dist/states/RoomParticipantState/index.d.ts +4 -0
- package/dist/states/RoomParticipantState/index.js +93 -0
- package/dist/states/RoomParticipantState/participantEventManager.d.ts +66 -0
- package/dist/states/RoomParticipantState/participantEventManager.js +326 -0
- package/dist/states/RoomParticipantState/participantManager.d.ts +311 -0
- package/dist/states/RoomParticipantState/participantManager.js +440 -0
- package/dist/states/RoomParticipantState/scheduleEventManager.d.ts +7 -0
- package/dist/states/RoomParticipantState/scheduleEventManager.js +37 -0
- package/dist/states/RoomParticipantState/store.d.ts +38 -0
- package/dist/states/RoomParticipantState/store.js +102 -0
- package/dist/states/RoomState/callManager.d.ts +43 -0
- package/dist/states/RoomState/callManager.js +208 -0
- package/dist/states/RoomState/common.d.ts +25 -0
- package/dist/states/RoomState/common.js +101 -0
- package/dist/states/RoomState/index.d.ts +8 -0
- package/dist/states/RoomState/index.js +52 -0
- package/dist/states/RoomState/roomManager.d.ts +35 -0
- package/dist/states/RoomState/roomManager.js +129 -0
- package/dist/states/RoomState/scheduleManager.d.ts +48 -0
- package/dist/states/RoomState/scheduleManager.js +174 -0
- package/dist/states/RoomState/store.d.ts +103 -0
- package/dist/states/RoomState/store.js +12 -0
- package/dist/states/SearchState.d.ts +47 -0
- package/dist/states/SeatStore.d.ts +59 -52
- package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
- package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
- package/dist/states/UIKitModalState/index.d.ts +1 -0
- package/dist/states/UIKitModalState/index.js +4 -0
- package/dist/states/UserState/index.js +22 -28
- package/dist/states/UserState/store.d.ts +1 -1
- package/dist/states/UserState/store.js +55 -62
- package/dist/states/UserState/userManager.d.ts +2 -2
- package/dist/states/UserState/userManager.js +23 -25
- package/dist/states/VideoMixerState/VideoMixerState.d.ts +57 -1
- package/dist/states/VideoMixerState/VideoMixerState.js +91 -90
- package/dist/states/VideoMixerState/index.d.ts +1 -0
- package/dist/states/VideoMixerState/index.js +2 -1
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.d.ts +52 -0
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.js +99 -0
- package/dist/states/VirtualBackgroundState/index.d.ts +1 -0
- package/dist/states/VirtualBackgroundState/index.js +4 -0
- package/dist/styles/index.css +1 -1
- package/dist/subEntry/common/base.d.ts +5 -0
- package/dist/subEntry/common/base.js +21 -0
- package/dist/subEntry/common/index.d.ts +2 -0
- package/dist/subEntry/common/index.js +29 -0
- package/dist/subEntry/common/rtc.d.ts +4 -0
- package/dist/subEntry/common/rtc.js +10 -0
- package/dist/subEntry/live/index.d.ts +4 -0
- package/dist/subEntry/live/index.js +200 -0
- package/dist/subEntry/live/live.d.ts +21 -0
- package/dist/subEntry/live/live.js +45 -0
- package/dist/{rtc → subEntry/live}/server.d.ts +1 -1
- package/dist/subEntry/live/server.js +97 -0
- package/dist/subEntry/room/index.d.ts +4 -0
- package/dist/subEntry/room/index.js +180 -0
- package/dist/subEntry/room/room.d.ts +11 -0
- package/dist/subEntry/room/room.js +25 -0
- package/dist/subEntry/room/server.d.ts +19 -0
- package/dist/subEntry/room/server.js +97 -0
- package/dist/types/asr.d.ts +29 -0
- package/dist/types/asr.js +4 -0
- package/dist/types/barrage.d.ts +83 -0
- package/dist/types/barrage.js +4 -0
- package/dist/types/beauty.d.ts +9 -0
- package/dist/types/beauty.js +4 -0
- package/dist/types/device.d.ts +0 -1
- package/dist/types/index.d.ts +7 -3
- package/dist/types/index.js +125 -108
- package/dist/types/participant.d.ts +243 -0
- package/dist/types/participant.js +10 -0
- package/dist/types/room.d.ts +202 -55
- package/dist/types/room.js +5 -3
- package/dist/types/virtualBackground.d.ts +14 -0
- package/dist/types/virtualBackground.js +5 -0
- package/dist/utils/call.d.ts +1 -1
- package/dist/utils/call.js +78 -79
- package/dist/utils/compare.d.ts +10 -0
- package/dist/utils/compare.js +12 -0
- package/package.json +11 -7
- package/src/baseComp/AudioIcon.vue +11 -3
- package/src/chat/server.ts +0 -1
- 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/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
- package/src/components/ContactList/ContactList.vue +1 -1
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
- package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -8
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
- package/src/components/ConversationList/ConversationList.vue +2 -2
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
- package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +4 -4
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -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/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/EmojiPicker/EmojiPicker.vue +7 -3
- package/src/components/MessageInput/MessageInput.module.scss +1 -0
- package/src/components/MessageInput/MessageInput.vue +3 -1
- package/src/components/MessageInput/TextEditor/EditorCore.ts +17 -28
- package/src/components/MessageInput/TextEditor/TextEditor.vue +24 -4
- package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
- package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
- package/src/components/MessageInput/i18n/zh-CN.ts +4 -0
- package/src/components/MessageInput/types.d.ts +1 -0
- package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +5 -3
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
- package/src/components/MessageList/Message/Message.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -8
- package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
- package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
- package/src/components/MessageList/MessageList.vue +2 -0
- 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/Search.vue +1 -1
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
- package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
- package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
- package/src/components/Search/SearchBar/SearchBar.scss +3 -6
- package/src/components/Search/SearchBar/SearchBar.vue +1 -1
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
- package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
- package/src/components/Search/SearchResults/SearchResults.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
- package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
- 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/useAudioControl.ts +17 -4
- package/src/hooks/useRoomActions/index.ts +3 -2
- package/src/hooks/useRoomActions/useRoomAudioAction.ts +11 -12
- package/src/hooks/useRoomActions/useRoomScreenAction.ts +12 -13
- package/src/hooks/useRoomActions/useRoomVideoAction.ts +10 -13
- package/src/hooks/useRoomEngine.ts +3 -2
- package/src/hooks/useUserActions/index.ts +38 -43
- package/src/hooks/useUserActions/useSeatAction.ts +10 -10
- package/src/hooks/useUserActions/useTransferOwnerAction.ts +10 -10
- package/src/index.ts +7 -9
- package/src/report/MetricsKey.ts +28 -14
- package/src/report/dataReport.ts +13 -9
- package/src/subEntry/common/base.ts +6 -0
- package/src/subEntry/common/index.ts +2 -0
- package/src/subEntry/common/rtc.ts +5 -0
- package/src/subEntry/live/index.ts +8 -0
- package/src/subEntry/live/live.ts +23 -0
- package/src/{rtc → subEntry/live}/server.ts +5 -1
- 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 +26 -27
- package/src/utils/compare.ts +34 -0
- package/tsconfig.eslint.json +15 -0
- package/tsconfig.json +7 -1
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +0 -89
- package/dist/index-DTq2ybsB.js +0 -33
- package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +0 -32
- package/dist/rtc/index.d.ts +0 -501
- package/dist/rtc/index.js +0 -67
- package/dist/rtc/server.js +0 -92
- package/dist/states/RoomState.d.ts +0 -173
- package/dist/states/RoomState.js +0 -272
- package/src/rtc/index.ts +0 -100
|
@@ -31,8 +31,17 @@ function C() {
|
|
|
31
31
|
quotedMessage: i,
|
|
32
32
|
// Action methods
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
* @
|
|
34
|
+
* 设置转发消息ID列表
|
|
35
|
+
* @memberof module:MessageActionState
|
|
36
|
+
* @description 设置要转发的消息ID列表,会与现有列表合并去重
|
|
37
|
+
* @param {string[]} messageIDList - 要转发的消息ID数组
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const { setForwardMessageIDList } = useMessageActionState();
|
|
41
|
+
*
|
|
42
|
+
* // 设置要转发的消息ID
|
|
43
|
+
* setForwardMessageIDList(['msg1', 'msg2', 'msg3']);
|
|
44
|
+
* ```
|
|
36
45
|
*/
|
|
37
46
|
setForwardMessageIDList(e) {
|
|
38
47
|
t.value = [
|
|
@@ -40,15 +49,33 @@ function C() {
|
|
|
40
49
|
];
|
|
41
50
|
},
|
|
42
51
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @
|
|
52
|
+
* 设置消息选择完成状态
|
|
53
|
+
* @memberof module:MessageActionState
|
|
54
|
+
* @description 设置转发消息选择是否完成的状态
|
|
55
|
+
* @param {boolean} isSelectionDone - 是否完成消息选择
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* const { setIsForwardMessageSelectionDone } = useMessageActionState();
|
|
59
|
+
*
|
|
60
|
+
* // 标记消息选择完成
|
|
61
|
+
* setIsForwardMessageSelectionDone(true);
|
|
62
|
+
* ```
|
|
45
63
|
*/
|
|
46
64
|
setIsForwardMessageSelectionDone(e) {
|
|
47
65
|
n.value = e;
|
|
48
66
|
},
|
|
49
67
|
/**
|
|
50
|
-
*
|
|
51
|
-
* @
|
|
68
|
+
* 设置转发目标会话ID列表
|
|
69
|
+
* @memberof module:MessageActionState
|
|
70
|
+
* @description 设置消息转发的目标会话ID列表,会与现有列表合并去重
|
|
71
|
+
* @param {string[]} conversationIDList - 目标会话ID数组
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* const { setForwardConversationIDList } = useMessageActionState();
|
|
75
|
+
*
|
|
76
|
+
* // 设置转发目标会话
|
|
77
|
+
* setForwardConversationIDList(['conv1', 'conv2']);
|
|
78
|
+
* ```
|
|
52
79
|
*/
|
|
53
80
|
setForwardConversationIDList(e) {
|
|
54
81
|
o.value = [
|
|
@@ -56,16 +83,44 @@ function C() {
|
|
|
56
83
|
];
|
|
57
84
|
},
|
|
58
85
|
/**
|
|
59
|
-
*
|
|
60
|
-
* @
|
|
61
|
-
* @
|
|
86
|
+
* 转发消息到指定会话
|
|
87
|
+
* @memberof module:MessageActionState
|
|
88
|
+
* @description 将选中的消息转发到指定的会话中,支持合并转发和逐条转发
|
|
89
|
+
* @param {IForwardMessageParams} params - 转发消息参数
|
|
90
|
+
* @param {string[]} params.messageIDList - 要转发的消息ID列表
|
|
91
|
+
* @param {string[]} params.conversationIDList - 目标会话ID列表
|
|
92
|
+
* @param {boolean} params.isMergeForward - 是否合并转发
|
|
93
|
+
* @returns {Promise<Array<PromiseSettledResult<unknown>>>} 转发操作的结果数组
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* const { forwardMessage } = useMessageActionState();
|
|
97
|
+
*
|
|
98
|
+
* // 合并转发消息
|
|
99
|
+
* const results = await forwardMessage({
|
|
100
|
+
* messageIDList: ['msg1', 'msg2'],
|
|
101
|
+
* conversationIDList: ['conv1', 'conv2'],
|
|
102
|
+
* isMergeForward: true
|
|
103
|
+
* });
|
|
104
|
+
* ```
|
|
62
105
|
*/
|
|
63
106
|
forwardMessage(e) {
|
|
64
107
|
return I(e);
|
|
65
108
|
},
|
|
66
109
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @
|
|
110
|
+
* 引用消息
|
|
111
|
+
* @memberof module:MessageActionState
|
|
112
|
+
* @description 设置要引用的消息,引用后可以在发送新消息时显示被引用的消息内容
|
|
113
|
+
* @param {MessageModel | undefined} message - 要引用的消息对象,传入undefined表示取消引用
|
|
114
|
+
* @example
|
|
115
|
+
* ```typescript
|
|
116
|
+
* const { quoteMessage } = useMessageActionState();
|
|
117
|
+
*
|
|
118
|
+
* // 引用一条消息
|
|
119
|
+
* quoteMessage(messageModel);
|
|
120
|
+
*
|
|
121
|
+
* // 取消引用
|
|
122
|
+
* quoteMessage(undefined);
|
|
123
|
+
* ```
|
|
69
124
|
*/
|
|
70
125
|
quoteMessage(e) {
|
|
71
126
|
a.update(u.CHAT, "quoteMessage", {
|
|
@@ -74,7 +129,16 @@ function C() {
|
|
|
74
129
|
}), i.value = e;
|
|
75
130
|
},
|
|
76
131
|
/**
|
|
77
|
-
*
|
|
132
|
+
* 清除引用消息
|
|
133
|
+
* @memberof module:MessageActionState
|
|
134
|
+
* @description 清除当前引用的消息,取消引用状态
|
|
135
|
+
* @example
|
|
136
|
+
* ```typescript
|
|
137
|
+
* const { clearQuotedMessage } = useMessageActionState();
|
|
138
|
+
*
|
|
139
|
+
* // 清除引用消息
|
|
140
|
+
* clearQuotedMessage();
|
|
141
|
+
* ```
|
|
78
142
|
*/
|
|
79
143
|
clearQuotedMessage() {
|
|
80
144
|
a.update(u.CHAT, "quoteMessage", {
|
|
@@ -83,9 +147,26 @@ function C() {
|
|
|
83
147
|
}), i.value = void 0;
|
|
84
148
|
},
|
|
85
149
|
/**
|
|
86
|
-
*
|
|
87
|
-
* @
|
|
88
|
-
* @
|
|
150
|
+
* 复制文本消息内容到剪贴板
|
|
151
|
+
* @memberof module:MessageActionState
|
|
152
|
+
* @description 将文本消息的内容复制到系统剪贴板,会自动处理表情符号转换
|
|
153
|
+
* @param {MessageModel} message - 要复制的消息对象
|
|
154
|
+
* @returns {Promise<boolean>} 复制操作的结果,成功返回true,失败返回false
|
|
155
|
+
* @throws {Error} 当消息不是文本类型或复制失败时抛出错误
|
|
156
|
+
* @example
|
|
157
|
+
* ```typescript
|
|
158
|
+
* const { copyTextMessage } = useMessageActionState();
|
|
159
|
+
*
|
|
160
|
+
* // 复制文本消息
|
|
161
|
+
* try {
|
|
162
|
+
* const success = await copyTextMessage(textMessage);
|
|
163
|
+
* if (success) {
|
|
164
|
+
* console.log('消息已复制到剪贴板');
|
|
165
|
+
* }
|
|
166
|
+
* } catch (error) {
|
|
167
|
+
* console.error('复制失败:', error);
|
|
168
|
+
* }
|
|
169
|
+
* ```
|
|
89
170
|
*/
|
|
90
171
|
copyTextMessage(e) {
|
|
91
172
|
return w(
|
|
@@ -93,23 +174,62 @@ function C() {
|
|
|
93
174
|
);
|
|
94
175
|
},
|
|
95
176
|
/**
|
|
96
|
-
*
|
|
97
|
-
* @
|
|
98
|
-
* @
|
|
177
|
+
* 删除消息
|
|
178
|
+
* @memberof module:MessageActionState
|
|
179
|
+
* @description 删除指定的消息,删除后消息将从会话中移除
|
|
180
|
+
* @param {MessageModel} message - 要删除的消息对象
|
|
181
|
+
* @returns {Promise<unknown>} 删除操作的结果Promise
|
|
182
|
+
* @throws {Error} 当删除操作失败时抛出错误
|
|
183
|
+
* @example
|
|
184
|
+
* ```typescript
|
|
185
|
+
* const { deleteMessage } = useMessageActionState();
|
|
186
|
+
*
|
|
187
|
+
* // 删除消息
|
|
188
|
+
* try {
|
|
189
|
+
* await deleteMessage(messageModel);
|
|
190
|
+
* console.log('消息删除成功');
|
|
191
|
+
* } catch (error) {
|
|
192
|
+
* console.error('删除消息失败:', error);
|
|
193
|
+
* }
|
|
194
|
+
* ```
|
|
99
195
|
*/
|
|
100
196
|
deleteMessage(e) {
|
|
101
197
|
return e.deleteMessage();
|
|
102
198
|
},
|
|
103
199
|
/**
|
|
104
|
-
*
|
|
105
|
-
* @
|
|
106
|
-
* @
|
|
200
|
+
* 撤回消息
|
|
201
|
+
* @memberof module:MessageActionState
|
|
202
|
+
* @description 撤回已发送的消息,撤回后消息将显示为"已撤回"状态
|
|
203
|
+
* @param {MessageModel} message - 要撤回的消息对象
|
|
204
|
+
* @returns {Promise<unknown>} 撤回操作的结果Promise
|
|
205
|
+
* @throws {Error} 当撤回操作失败时抛出错误(如超过撤回时限)
|
|
206
|
+
* @example
|
|
207
|
+
* ```typescript
|
|
208
|
+
* const { recallMessage } = useMessageActionState();
|
|
209
|
+
*
|
|
210
|
+
* // 撤回消息
|
|
211
|
+
* try {
|
|
212
|
+
* await recallMessage(messageModel);
|
|
213
|
+
* console.log('消息撤回成功');
|
|
214
|
+
* } catch (error) {
|
|
215
|
+
* console.error('撤回消息失败:', error);
|
|
216
|
+
* }
|
|
217
|
+
* ```
|
|
107
218
|
*/
|
|
108
219
|
recallMessage(e) {
|
|
109
220
|
return e.revokeMessage();
|
|
110
221
|
},
|
|
111
222
|
/**
|
|
112
|
-
*
|
|
223
|
+
* 重置消息操作状态
|
|
224
|
+
* @memberof module:MessageActionState
|
|
225
|
+
* @description 重置所有消息操作相关的状态,包括清除引用消息、转发消息列表等
|
|
226
|
+
* @example
|
|
227
|
+
* ```typescript
|
|
228
|
+
* const { resetMessageActionState } = useMessageActionState();
|
|
229
|
+
*
|
|
230
|
+
* // 重置所有消息操作状态
|
|
231
|
+
* resetMessageActionState();
|
|
232
|
+
* ```
|
|
113
233
|
*/
|
|
114
234
|
resetMessageActionState() {
|
|
115
235
|
this.clearQuotedMessage(), t.value = [], n.value = !1, o.value = [];
|
|
@@ -3,13 +3,13 @@ import { MessageContentType, InputContent } from './type';
|
|
|
3
3
|
import { Editor } from '@tiptap/vue-3';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
11
|
-
* -
|
|
12
|
-
* -
|
|
6
|
+
* 消息输入状态管理
|
|
7
|
+
* @module MessageInputState
|
|
8
|
+
* @description 管理聊天消息输入相关的状态和操作,包括:
|
|
9
|
+
* - 原始输入值(文本或结构化内容)
|
|
10
|
+
* - 编辑器实例管理
|
|
11
|
+
* - 内容操作(插入、更新等)
|
|
12
|
+
* - 消息发送功能
|
|
13
13
|
*/
|
|
14
14
|
interface MessageInputState {
|
|
15
15
|
inputRawValue: Ref<string | InputContent[]>;
|
|
@@ -24,6 +24,40 @@ interface MessageInputAction {
|
|
|
24
24
|
blurEditor: () => void;
|
|
25
25
|
sendMessage: (msg?: string | InputContent[]) => void;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* 消息输入状态管理 Hook
|
|
29
|
+
* @memberof module:MessageInputState
|
|
30
|
+
* @description 提供消息输入相关的状态管理和操作功能,包括文本输入、编辑器控制、消息发送等
|
|
31
|
+
* @returns {MessageInputState & MessageInputAction} 返回消息输入状态管理对象
|
|
32
|
+
* @returns {Ref<string>} returns.inputRawValue - 输入框原始值
|
|
33
|
+
* @returns {Ref<boolean>} returns.isPeerTyping - 对方是否正在输入
|
|
34
|
+
* @returns {Function} returns.updateRawValue - 更新输入框原始值函数
|
|
35
|
+
* @returns {Function} returns.setEditorInstance - 设置编辑器实例函数
|
|
36
|
+
* @returns {Function} returns.setContent - 设置编辑器内容函数
|
|
37
|
+
* @returns {Function} returns.insertContent - 插入内容到编辑器函数
|
|
38
|
+
* @returns {Function} returns.focusEditor - 聚焦编辑器函数
|
|
39
|
+
* @returns {Function} returns.blurEditor - 失焦编辑器函数
|
|
40
|
+
* @returns {Function} returns.sendMessage - 发送消息函数
|
|
41
|
+
* @example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* const {
|
|
44
|
+
* inputRawValue,
|
|
45
|
+
* isPeerTyping,
|
|
46
|
+
* setContent,
|
|
47
|
+
* sendMessage,
|
|
48
|
+
* focusEditor
|
|
49
|
+
* } = useMessageInputState();
|
|
50
|
+
*
|
|
51
|
+
* // 设置编辑器内容
|
|
52
|
+
* setContent('Hello World');
|
|
53
|
+
*
|
|
54
|
+
* // 发送消息
|
|
55
|
+
* await sendMessage();
|
|
56
|
+
*
|
|
57
|
+
* // 聚焦编辑器
|
|
58
|
+
* focusEditor();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
27
61
|
declare function useMessageInputState(): MessageInputState & MessageInputAction;
|
|
28
62
|
export { useMessageInputState, MessageContentType };
|
|
29
63
|
export type { InputContent };
|
|
@@ -1,111 +1,112 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { TUIStore as w, StoreName as
|
|
3
|
-
import { MessageContentType as
|
|
4
|
-
import { convertInputContentToEditorNode as p } from "./utils.js";
|
|
1
|
+
import { ref as l } from "vue";
|
|
2
|
+
import { TUIStore as w, StoreName as I, TUIChatService as r } from "@tencentcloud/chat-uikit-engine";
|
|
3
|
+
import { MessageContentType as a } from "./type.js";
|
|
4
|
+
import { trimInputContent as M, convertInputContentToEditorNode as p } from "./utils.js";
|
|
5
5
|
import { useMessageListState as v } from "../MessageListState/MessageListState.js";
|
|
6
6
|
import { transformTextWithEmojiNameToKey as f } from "../../utils/emoji.js";
|
|
7
|
-
const n =
|
|
7
|
+
const n = l(null), m = l(""), y = l(!1), E = (e) => {
|
|
8
8
|
if (typeof e != "string" && !Array.isArray(e)) {
|
|
9
9
|
console.warn("Invalid input type for updateRawValue");
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
12
|
-
typeof e == "string" ? m.value = e.trim() : m.value = (e == null ? void 0 : e.length) > 0 ? e : "",
|
|
13
|
-
|
|
12
|
+
typeof e == "string" ? m.value = e.trim() : m.value = (e == null ? void 0 : e.length) > 0 ? e : "", r.enterTypingState(), setTimeout(() => {
|
|
13
|
+
r.leaveTypingState();
|
|
14
14
|
}, 3e3);
|
|
15
|
-
}, I = (e) => {
|
|
16
|
-
n.value && n.value.destroy(), n.value = e;
|
|
17
15
|
}, C = (e) => {
|
|
16
|
+
n.value && n.value.destroy(), n.value = e;
|
|
17
|
+
}, S = (e) => {
|
|
18
18
|
if (n.value) {
|
|
19
19
|
if (typeof e == "string")
|
|
20
20
|
n.value.commands.setContent(e, !0);
|
|
21
21
|
else {
|
|
22
|
-
const
|
|
23
|
-
n.value.commands.setContent(
|
|
22
|
+
const i = e.map(p);
|
|
23
|
+
n.value.commands.setContent(i, !0);
|
|
24
24
|
}
|
|
25
25
|
n.value.commands.focus();
|
|
26
26
|
}
|
|
27
|
-
},
|
|
27
|
+
}, x = (e, i = !0) => {
|
|
28
28
|
if (n.value) {
|
|
29
29
|
if (typeof e == "string")
|
|
30
30
|
n.value.commands.insertContent(e);
|
|
31
31
|
else {
|
|
32
|
-
const
|
|
33
|
-
n.value.commands.insertContent(
|
|
32
|
+
const o = e.map(p);
|
|
33
|
+
n.value.commands.insertContent(o);
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
i && n.value.commands.focus();
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, h = () => {
|
|
38
38
|
var e;
|
|
39
39
|
(e = n.value) == null || e.commands.focus();
|
|
40
|
-
},
|
|
40
|
+
}, R = () => {
|
|
41
41
|
var e;
|
|
42
42
|
(e = n.value) == null || e.commands.blur();
|
|
43
|
-
},
|
|
44
|
-
const { enableReadReceipt:
|
|
45
|
-
needReadReceipt:
|
|
46
|
-
}
|
|
47
|
-
|
|
43
|
+
}, A = async (e) => {
|
|
44
|
+
const { enableReadReceipt: i } = v(), o = {
|
|
45
|
+
needReadReceipt: i.value || !1
|
|
46
|
+
};
|
|
47
|
+
let s = e ?? m.value;
|
|
48
|
+
if (typeof s == "string" ? s = s.trim() : s = M(s), !s)
|
|
48
49
|
return;
|
|
49
|
-
if (typeof
|
|
50
|
-
|
|
51
|
-
payload: { text: f(
|
|
52
|
-
...
|
|
50
|
+
if (typeof s == "string") {
|
|
51
|
+
r.sendTextMessage({
|
|
52
|
+
payload: { text: f(s) },
|
|
53
|
+
...o
|
|
53
54
|
});
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
|
-
let
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
payload: { text: f(
|
|
60
|
-
...
|
|
61
|
-
}),
|
|
62
|
-
},
|
|
63
|
-
[
|
|
64
|
-
[
|
|
57
|
+
let c = "";
|
|
58
|
+
const u = async () => {
|
|
59
|
+
c && (await r.sendTextMessage({
|
|
60
|
+
payload: { text: f(c) },
|
|
61
|
+
...o
|
|
62
|
+
}), c = "");
|
|
63
|
+
}, d = {
|
|
64
|
+
[a.TEXT]: (t) => t,
|
|
65
|
+
[a.IMAGE]: async (t) => (await u(), await r.sendImageMessage({
|
|
65
66
|
payload: { file: t },
|
|
66
|
-
...
|
|
67
|
+
...o
|
|
67
68
|
}), ""),
|
|
68
|
-
[
|
|
69
|
+
[a.VIDEO]: async (t) => (await u(), await r.sendVideoMessage({
|
|
69
70
|
payload: { file: t },
|
|
70
|
-
...
|
|
71
|
+
...o
|
|
71
72
|
}), ""),
|
|
72
|
-
[
|
|
73
|
+
[a.FILE]: async (t) => (await u(), await r.sendFileMessage({
|
|
73
74
|
payload: { file: t },
|
|
74
|
-
...
|
|
75
|
+
...o
|
|
75
76
|
}), ""),
|
|
76
|
-
[
|
|
77
|
-
[
|
|
77
|
+
[a.MENTION]: async () => (await u(), console.warn("Mention feature not implemented yet"), ""),
|
|
78
|
+
[a.EMOJI]: (t) => t.key
|
|
78
79
|
};
|
|
79
|
-
for (const t of
|
|
80
|
-
if (!t.type || !
|
|
80
|
+
for (const t of s) {
|
|
81
|
+
if (!t.type || !d[t.type])
|
|
81
82
|
throw new Error(`Invalid message type: ${t.type}`);
|
|
82
|
-
const g =
|
|
83
|
-
[
|
|
83
|
+
const g = d[t.type], T = await g(t.content);
|
|
84
|
+
[a.TEXT, a.EMOJI].includes(t.type) && (c += T);
|
|
84
85
|
}
|
|
85
|
-
await
|
|
86
|
+
await u();
|
|
86
87
|
};
|
|
87
|
-
function
|
|
88
|
+
function J() {
|
|
88
89
|
return {
|
|
89
90
|
inputRawValue: m,
|
|
90
91
|
isPeerTyping: y,
|
|
91
92
|
updateRawValue: E,
|
|
92
|
-
setEditorInstance:
|
|
93
|
-
setContent:
|
|
94
|
-
insertContent:
|
|
95
|
-
focusEditor:
|
|
96
|
-
blurEditor:
|
|
97
|
-
sendMessage:
|
|
93
|
+
setEditorInstance: C,
|
|
94
|
+
setContent: S,
|
|
95
|
+
insertContent: x,
|
|
96
|
+
focusEditor: h,
|
|
97
|
+
blurEditor: R,
|
|
98
|
+
sendMessage: A
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
-
w.watch(
|
|
101
|
+
function N() {
|
|
102
|
+
w.watch(I.CHAT, {
|
|
102
103
|
typingStatus: (e) => {
|
|
103
104
|
y.value = e;
|
|
104
105
|
}
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
|
-
|
|
108
|
+
N();
|
|
108
109
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
a as MessageContentType,
|
|
111
|
+
J as useMessageInputState
|
|
111
112
|
};
|
|
@@ -27,4 +27,11 @@ declare function convertInputContentToEditorNode(item: InputContent): {
|
|
|
27
27
|
};
|
|
28
28
|
text?: undefined;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Trims whitespace from the beginning and end of an InputContent array,
|
|
32
|
+
* while preserving internal whitespace and line breaks
|
|
33
|
+
* @param content - The input content array to trim
|
|
34
|
+
* @returns Trimmed input content array
|
|
35
|
+
*/
|
|
36
|
+
declare function trimInputContent(content: InputContent[]): InputContent[];
|
|
37
|
+
export { trimInputContent, convertInputContentToEditorNode, };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { MessageContentType as
|
|
2
|
-
function
|
|
1
|
+
import { MessageContentType as r } from "./type.js";
|
|
2
|
+
function l(e) {
|
|
3
3
|
switch (e.type) {
|
|
4
|
-
case
|
|
4
|
+
case r.TEXT:
|
|
5
5
|
return {
|
|
6
6
|
type: "text",
|
|
7
7
|
text: e.content
|
|
8
8
|
};
|
|
9
|
-
case
|
|
10
|
-
const t = e.content,
|
|
9
|
+
case r.IMAGE: {
|
|
10
|
+
const t = e.content, s = URL.createObjectURL(t);
|
|
11
11
|
return {
|
|
12
|
-
type:
|
|
12
|
+
type: r.IMAGE,
|
|
13
13
|
attrs: {
|
|
14
|
-
src:
|
|
14
|
+
src: s,
|
|
15
15
|
alt: t == null ? void 0 : t.name,
|
|
16
16
|
fileData: t,
|
|
17
17
|
title: t == null ? void 0 : t.name
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
case
|
|
21
|
+
case r.EMOJI: {
|
|
22
22
|
const t = e.content;
|
|
23
23
|
return {
|
|
24
|
-
type:
|
|
24
|
+
type: r.EMOJI,
|
|
25
25
|
attrs: {
|
|
26
26
|
src: t.url,
|
|
27
27
|
alt: t.key,
|
|
@@ -36,6 +36,26 @@ function c(e) {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
+
function f(e) {
|
|
40
|
+
if (e.length === 0)
|
|
41
|
+
return [];
|
|
42
|
+
let t = -1, s = -1;
|
|
43
|
+
for (let n = 0; n < e.length; n++) {
|
|
44
|
+
const o = e[n];
|
|
45
|
+
(o.type !== r.TEXT || o.content.trim().length > 0) && (t === -1 && (t = n), s = n);
|
|
46
|
+
}
|
|
47
|
+
return t === -1 ? [] : e.slice(t, s + 1).map((n, o, p) => {
|
|
48
|
+
if (n.type === r.TEXT) {
|
|
49
|
+
let c = n.content;
|
|
50
|
+
return o === 0 && (c = c.trimStart()), o === p.length - 1 && (c = c.trimEnd()), {
|
|
51
|
+
...n,
|
|
52
|
+
content: c
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
return n;
|
|
56
|
+
}).filter((n) => n.type === r.TEXT ? n.content.length > 0 : !0);
|
|
57
|
+
}
|
|
39
58
|
export {
|
|
40
|
-
|
|
59
|
+
l as convertInputContentToEditorNode,
|
|
60
|
+
f as trimInputContent
|
|
41
61
|
};
|
|
@@ -20,5 +20,44 @@ interface MessageListBusinessAction {
|
|
|
20
20
|
duration: number;
|
|
21
21
|
}) => void;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* 消息列表状态管理 Hook
|
|
25
|
+
* @memberof module:MessageListState
|
|
26
|
+
* @description 提供消息列表的状态管理和操作功能,包括消息加载、滚动控制、高亮显示等
|
|
27
|
+
* @returns {MessageListState & MessageListBusinessAction} 返回消息列表状态管理对象
|
|
28
|
+
* @returns {Ref<string>} returns.activeConversationID - 当前活跃会话ID
|
|
29
|
+
* @returns {Ref<MessageModel[]>} returns.messageList - 消息列表
|
|
30
|
+
* @returns {Ref<boolean>} returns.hasMoreOlderMessage - 是否有更多历史消息
|
|
31
|
+
* @returns {Ref<boolean>} returns.hasMoreNewerMessage - 是否有更多新消息
|
|
32
|
+
* @returns {Ref<boolean>} returns.enableReadReceipt - 是否启用已读回执
|
|
33
|
+
* @returns {Ref<boolean>} returns.isDisableScroll - 是否禁用滚动
|
|
34
|
+
* @returns {Ref<Set<string>>} returns.recalledMessageIDSet - 已撤回消息ID集合
|
|
35
|
+
* @returns {Ref<Set<string>>} returns.highlightMessageIDSet - 高亮消息ID集合
|
|
36
|
+
* @returns {Function} returns.loadMoreOlderMessage - 加载更多历史消息函数
|
|
37
|
+
* @returns {Function} returns.setEnableReadReceipt - 设置已读回执函数
|
|
38
|
+
* @returns {Function} returns.setIsDisableScroll - 设置滚动禁用函数
|
|
39
|
+
* @returns {Function} returns.highlightMessage - 高亮消息函数
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* const {
|
|
43
|
+
* messageList,
|
|
44
|
+
* hasMoreOlderMessage,
|
|
45
|
+
* loadMoreOlderMessage,
|
|
46
|
+
* highlightMessage,
|
|
47
|
+
* setEnableReadReceipt
|
|
48
|
+
* } = useMessageListState();
|
|
49
|
+
*
|
|
50
|
+
* // 加载更多历史消息
|
|
51
|
+
* if (hasMoreOlderMessage.value) {
|
|
52
|
+
* await loadMoreOlderMessage();
|
|
53
|
+
* }
|
|
54
|
+
*
|
|
55
|
+
* // 高亮消息
|
|
56
|
+
* highlightMessage({ messageID: 'msg123', duration: 3000 });
|
|
57
|
+
*
|
|
58
|
+
* // 启用已读回执
|
|
59
|
+
* setEnableReadReceipt(true);
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
23
62
|
declare function useMessageListState(): MessageListState & MessageListBusinessAction;
|
|
24
63
|
export { useMessageListState };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare class CallEventManager {
|
|
2
|
+
static instance: CallEventManager;
|
|
3
|
+
constructor();
|
|
4
|
+
static getInstance(): CallEventManager;
|
|
5
|
+
private onInvitationAdded;
|
|
6
|
+
private onInvitationRemoved;
|
|
7
|
+
private onInvitationStatusChanged;
|
|
8
|
+
bindEvent(): void;
|
|
9
|
+
}
|
|
10
|
+
export default CallEventManager;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var c = (a, t, n) => t in a ? v(a, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : a[t] = n;
|
|
3
|
+
var d = (a, t, n) => c(a, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import p, { TUIConferenceInvitationManagerEvents as e } from "@tencentcloud/tuiroom-engine-js";
|
|
5
|
+
import { useRoomEngine as h } from "../../hooks/useRoomEngine.js";
|
|
6
|
+
import { useRoomState as u } from "../RoomState/index.js";
|
|
7
|
+
import { participantTransfer as r } from "./common.js";
|
|
8
|
+
import { useRoomParticipantStore as f } from "./store.js";
|
|
9
|
+
const P = h(), { addPendingParticipantInfo: R, removePendingParticipantInfo: T, updatePendingParticipantInfo: g } = f(), { currentRoom: I } = u(), o = class o {
|
|
10
|
+
constructor() {
|
|
11
|
+
d(this, "onInvitationAdded", ({ roomId: t, invitation: n }) => {
|
|
12
|
+
var i;
|
|
13
|
+
if (t === ((i = I.value) == null ? void 0 : i.roomId)) {
|
|
14
|
+
const s = r.transformTUIInvitationToParticipantInfo(n);
|
|
15
|
+
R(s);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
d(this, "onInvitationRemoved", ({ roomId: t, invitation: n }) => {
|
|
19
|
+
var i;
|
|
20
|
+
if (t === ((i = I.value) == null ? void 0 : i.roomId)) {
|
|
21
|
+
const s = r.transformTUIInvitationToParticipantInfo(n);
|
|
22
|
+
T({ userId: s.userId });
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
d(this, "onInvitationStatusChanged", ({ roomId: t, invitation: n }) => {
|
|
26
|
+
var i;
|
|
27
|
+
if (t === ((i = I.value) == null ? void 0 : i.roomId)) {
|
|
28
|
+
const s = r.transformTUIInvitationToParticipantInfo(n);
|
|
29
|
+
g(s);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
this.onInvitationAdded = this.onInvitationAdded.bind(this), this.onInvitationRemoved = this.onInvitationRemoved.bind(this), this.onInvitationStatusChanged = this.onInvitationStatusChanged.bind(this), this.bindEvent();
|
|
33
|
+
}
|
|
34
|
+
static getInstance() {
|
|
35
|
+
return o.instance || (o.instance = new o()), o.instance;
|
|
36
|
+
}
|
|
37
|
+
bindEvent() {
|
|
38
|
+
p.once("ready", () => {
|
|
39
|
+
var n;
|
|
40
|
+
const t = (n = P.instance) == null ? void 0 : n.getConferenceInvitationManager();
|
|
41
|
+
t == null || t.on(e.onInvitationAdded, this.onInvitationAdded), t == null || t.on(e.onInvitationRemoved, this.onInvitationRemoved), t == null || t.on(e.onInvitationStatusChanged, this.onInvitationStatusChanged);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
d(o, "instance");
|
|
46
|
+
let m = o;
|
|
47
|
+
export {
|
|
48
|
+
m as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TUIRole, TUIInvitation, TUIRequest, TUIUserInfo } from '@tencentcloud/tuiroom-engine-js';
|
|
2
|
+
import { RoomParticipantRole, RoomParticipant, DeviceRequestInfo } from '../../types';
|
|
3
|
+
|
|
4
|
+
export declare function transformTUIRoleToParticipantRole(role: TUIRole): RoomParticipantRole;
|
|
5
|
+
declare function transformTUIUserInfoToParticipantInfo(userInfo: TUIUserInfo): RoomParticipant;
|
|
6
|
+
declare function transformTUIInvitationToParticipantInfo(invitation: TUIInvitation): RoomParticipant;
|
|
7
|
+
declare function transformTUIRequestCallbackToDeviceRequestInfo(request: TUIRequest): DeviceRequestInfo;
|
|
8
|
+
export declare const participantTransfer: {
|
|
9
|
+
transformTUIRoleToParticipantRole: typeof transformTUIRoleToParticipantRole;
|
|
10
|
+
transformTUIUserInfoToParticipantInfo: typeof transformTUIUserInfoToParticipantInfo;
|
|
11
|
+
transformTUIRequestCallbackToDeviceRequestInfo: typeof transformTUIRequestCallbackToDeviceRequestInfo;
|
|
12
|
+
transformTUIInvitationToParticipantInfo: typeof transformTUIInvitationToParticipantInfo;
|
|
13
|
+
};
|
|
14
|
+
export {};
|