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
|
@@ -1,130 +1,81 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return {
|
|
35
|
-
...(t = this.parent) == null ? void 0 : t.call(this),
|
|
36
|
-
fileData: {
|
|
37
|
-
default: null,
|
|
38
|
-
parseHTML: (e) => e.getAttribute("file-data"),
|
|
39
|
-
renderHTML: (e) => e.fileData ? { "file-data": e.fileData } : {}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
}).configure({
|
|
44
|
-
inline: !0
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
function p(t) {
|
|
48
|
-
return M.create({
|
|
49
|
-
addKeyboardShortcuts() {
|
|
50
|
-
return {
|
|
51
|
-
Enter: () => {
|
|
52
|
-
var e;
|
|
53
|
-
return (e = t == null ? void 0 : t.onEnter) == null || e.call(t), !0;
|
|
54
|
-
},
|
|
55
|
-
"Mod-Enter": ({ editor: e }) => (e.commands.setHardBreak(), !0)
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
1
|
+
import { S as f, P as u } from "../../../index-BvFYOUyz.js";
|
|
2
|
+
import { CharacterCount as l } from "./extensions/characterCountExtension.js";
|
|
3
|
+
import { createEnterKeyExtension as p } from "./extensions/enterKeyExtension.js";
|
|
4
|
+
import { createEmojiExtension as E } from "./extensions/emojiExtension.js";
|
|
5
|
+
import { createImageExtension as g } from "./extensions/imageExtension.js";
|
|
6
|
+
import { createMentionExtension as x } from "./extensions/mentionExtension.js";
|
|
7
|
+
import { MessageContentType as r } from "../../../states/MessageInputState/type.js";
|
|
8
|
+
function h(e = {}) {
|
|
9
|
+
const {
|
|
10
|
+
placeholder: t = "",
|
|
11
|
+
maxLength: n,
|
|
12
|
+
showPlaceholderOnlyWhenEditable: o = !0,
|
|
13
|
+
onEnter: a
|
|
14
|
+
} = e;
|
|
15
|
+
return [
|
|
16
|
+
f.configure({
|
|
17
|
+
bold: !1,
|
|
18
|
+
italic: !1,
|
|
19
|
+
strike: !1,
|
|
20
|
+
code: !1
|
|
21
|
+
}),
|
|
22
|
+
l.configure({
|
|
23
|
+
limit: n
|
|
24
|
+
}),
|
|
25
|
+
p(a),
|
|
26
|
+
E(),
|
|
27
|
+
g(),
|
|
28
|
+
x(),
|
|
29
|
+
u.configure({
|
|
30
|
+
placeholder: t,
|
|
31
|
+
showOnlyWhenEditable: o
|
|
32
|
+
})
|
|
33
|
+
];
|
|
59
34
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
62
|
-
var a, s,
|
|
63
|
-
switch (
|
|
35
|
+
function y(e) {
|
|
36
|
+
return e != null && e.content ? e.content.flatMap((t) => {
|
|
37
|
+
var n, o, a, s, i, m, c;
|
|
38
|
+
switch (t.type) {
|
|
64
39
|
case "text":
|
|
65
|
-
return
|
|
66
|
-
type:
|
|
67
|
-
content:
|
|
40
|
+
return t.text ? [{
|
|
41
|
+
type: r.TEXT,
|
|
42
|
+
content: t.text
|
|
68
43
|
}] : [];
|
|
69
44
|
case "image":
|
|
70
45
|
return [{
|
|
71
|
-
type:
|
|
72
|
-
content: (
|
|
46
|
+
type: r.IMAGE,
|
|
47
|
+
content: (n = t.attrs) == null ? void 0 : n.fileData
|
|
73
48
|
}];
|
|
74
49
|
case "emoji":
|
|
75
50
|
return [{
|
|
76
|
-
type:
|
|
51
|
+
type: r.EMOJI,
|
|
77
52
|
content: {
|
|
78
|
-
url: (
|
|
79
|
-
key: (
|
|
80
|
-
text: (
|
|
53
|
+
url: (o = t.attrs) == null ? void 0 : o.src,
|
|
54
|
+
key: (a = t.attrs) == null ? void 0 : a.alt,
|
|
55
|
+
text: (s = t.attrs) == null ? void 0 : s.title
|
|
81
56
|
}
|
|
82
57
|
}];
|
|
83
58
|
case "hardBreak":
|
|
84
59
|
return [{
|
|
85
|
-
type:
|
|
60
|
+
type: r.TEXT,
|
|
86
61
|
content: `
|
|
87
62
|
`
|
|
88
63
|
}];
|
|
64
|
+
case "mention":
|
|
65
|
+
return [{
|
|
66
|
+
type: r.MENTION,
|
|
67
|
+
content: {
|
|
68
|
+
id: (i = t.attrs) == null ? void 0 : i.id,
|
|
69
|
+
label: (m = t.attrs) == null ? void 0 : m.label,
|
|
70
|
+
mentionSuggestionChar: (c = t.attrs) == null ? void 0 : c.mentionSuggestionChar
|
|
71
|
+
}
|
|
72
|
+
}];
|
|
89
73
|
default:
|
|
90
|
-
return
|
|
74
|
+
return y(t);
|
|
91
75
|
}
|
|
92
76
|
}) : [];
|
|
93
77
|
}
|
|
94
|
-
function D({
|
|
95
|
-
element: t,
|
|
96
|
-
placeholder: e = "",
|
|
97
|
-
autoFocus: a = !1,
|
|
98
|
-
disabled: s = !1,
|
|
99
|
-
isPlaceholderOnlyShowWhenEditable: u = !0,
|
|
100
|
-
onUpdate: r,
|
|
101
|
-
onEnter: f,
|
|
102
|
-
onFocus: E,
|
|
103
|
-
onBlur: l
|
|
104
|
-
}) {
|
|
105
|
-
const m = {
|
|
106
|
-
element: t,
|
|
107
|
-
autofocus: a,
|
|
108
|
-
editable: !s,
|
|
109
|
-
extensions: ((i) => [
|
|
110
|
-
x,
|
|
111
|
-
p(i ? { onEnter: i } : void 0),
|
|
112
|
-
T(),
|
|
113
|
-
b(),
|
|
114
|
-
d.configure({
|
|
115
|
-
placeholder: e,
|
|
116
|
-
showOnlyWhenEditable: u
|
|
117
|
-
})
|
|
118
|
-
])(f),
|
|
119
|
-
onUpdate: ({ editor: i }) => {
|
|
120
|
-
const g = c(i.getJSON());
|
|
121
|
-
r == null || r(g);
|
|
122
|
-
},
|
|
123
|
-
onFocus: E,
|
|
124
|
-
onBlur: l
|
|
125
|
-
};
|
|
126
|
-
return new y(m);
|
|
127
|
-
}
|
|
128
78
|
export {
|
|
129
|
-
|
|
79
|
+
y as convertEditorContent,
|
|
80
|
+
h as createExtensions
|
|
130
81
|
};
|
|
@@ -2,6 +2,7 @@ interface TextEditorProps {
|
|
|
2
2
|
autoFocus?: boolean;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
placeholder?: string;
|
|
5
|
+
maxLength?: number;
|
|
5
6
|
}
|
|
6
7
|
declare function __VLS_template(): {
|
|
7
8
|
inputPrefix?(_: {}): any;
|
|
@@ -11,14 +12,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
11
12
|
autoFocus: boolean;
|
|
12
13
|
disabled: boolean;
|
|
13
14
|
placeholder: undefined;
|
|
15
|
+
maxLength: undefined;
|
|
14
16
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TextEditorProps>, {
|
|
15
17
|
autoFocus: boolean;
|
|
16
18
|
disabled: boolean;
|
|
17
19
|
placeholder: undefined;
|
|
20
|
+
maxLength: undefined;
|
|
18
21
|
}>>> & Readonly<{}>, {
|
|
19
|
-
placeholder: string;
|
|
20
22
|
disabled: boolean;
|
|
23
|
+
placeholder: string;
|
|
21
24
|
autoFocus: boolean;
|
|
25
|
+
maxLength: number;
|
|
22
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
24
28
|
export default _default;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { defineComponent as q, onBeforeMount as j, onUnmounted as W, createBlock as C, openBlock as a, unref as u, normalizeProps as Y, guardReactiveProps as H, withCtx as w, renderSlot as J, ref as m, computed as d, watch as S, onMounted as X, onBeforeUnmount as Z, createCommentVNode as k, createVNode as U, createElementVNode as M, createElementBlock as _, Fragment as ee, renderList as te, normalizeClass as ne, toDisplayString as A } from "vue";
|
|
2
|
+
import { i as oe, P as le, a as re, b as ae } from "../../../../PopoverPortal-DghpKKm8.js";
|
|
3
|
+
import { u as se } from "../../../../Teleport-DFrneqLM.js";
|
|
4
|
+
import { P as ue } from "../../../../PopperContent-SLoFuK7k.js";
|
|
5
|
+
import { throttle as ie } from "../../../../utils/lodash.js";
|
|
6
|
+
import { TUIChatEngine as ce } from "@tencentcloud/chat-uikit-engine";
|
|
7
|
+
import { useUIKit as ve } from "@tencentcloud/uikit-base-component-vue3";
|
|
8
|
+
import fe from "../../../Avatar/Avatar.js";
|
|
9
|
+
import { useGroupSettingState as me } from "../../../../states/GroupSettingState/GroupSettingState.js";
|
|
10
|
+
import { _ as de } from "../../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
var pe = /* @__PURE__ */ q({
|
|
12
|
+
__name: "PopoverAnchor",
|
|
13
|
+
props: {
|
|
14
|
+
reference: {
|
|
15
|
+
type: null,
|
|
16
|
+
required: !1
|
|
17
|
+
},
|
|
18
|
+
asChild: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
required: !1
|
|
21
|
+
},
|
|
22
|
+
as: {
|
|
23
|
+
type: null,
|
|
24
|
+
required: !1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(x) {
|
|
28
|
+
const I = x;
|
|
29
|
+
se();
|
|
30
|
+
const r = oe();
|
|
31
|
+
return j(() => {
|
|
32
|
+
r.hasCustomAnchor.value = !0;
|
|
33
|
+
}), W(() => {
|
|
34
|
+
r.hasCustomAnchor.value = !1;
|
|
35
|
+
}), (p, n) => (a(), C(u(ue), Y(H(I)), {
|
|
36
|
+
default: w(() => [J(p.$slots, "default")]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 16));
|
|
39
|
+
}
|
|
40
|
+
}), ge = pe;
|
|
41
|
+
const _e = ["onClick", "onMouseenter"], he = { class: "mention-suggestion__name" }, ye = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "mention-suggestion__loading"
|
|
44
|
+
}, be = {
|
|
45
|
+
key: 1,
|
|
46
|
+
class: "mention-suggestion__empty"
|
|
47
|
+
}, ke = /* @__PURE__ */ q({
|
|
48
|
+
__name: "MentionSuggestion",
|
|
49
|
+
props: {
|
|
50
|
+
editor: {},
|
|
51
|
+
range: {},
|
|
52
|
+
query: {},
|
|
53
|
+
text: {},
|
|
54
|
+
items: {},
|
|
55
|
+
command: { type: Function },
|
|
56
|
+
decorationNode: {},
|
|
57
|
+
clientRect: { type: [Function, null] }
|
|
58
|
+
},
|
|
59
|
+
setup(x, { expose: I }) {
|
|
60
|
+
const r = x, { t: p } = ve(), n = m(0), g = m(!0), i = m(null), c = m(null), f = m(!1), O = m(0), { allMembers: h, currentUserID: E, groupID: T, memberCount: y, getGroupMemberList: V } = me(), R = d(() => {
|
|
61
|
+
if (!h.value || !E.value || !y.value)
|
|
62
|
+
return [];
|
|
63
|
+
const e = h.value.filter((t) => t.userID !== E.value);
|
|
64
|
+
return y.value && y.value > 2 && e.unshift({
|
|
65
|
+
userID: ce.TYPES.MSG_AT_ALL,
|
|
66
|
+
nick: p("MessageInput.at_all_members") || "all",
|
|
67
|
+
avatar: "/at_all_members.png"
|
|
68
|
+
}), e;
|
|
69
|
+
}), v = d(() => {
|
|
70
|
+
var e;
|
|
71
|
+
return (((e = h.value) == null ? void 0 : e.length) || 0) < (y.value || 0);
|
|
72
|
+
}), l = d(() => {
|
|
73
|
+
const e = r.query.toLowerCase().trim();
|
|
74
|
+
return e ? R.value.filter(
|
|
75
|
+
(t) => t.nick.toLowerCase().includes(e)
|
|
76
|
+
) : R.value;
|
|
77
|
+
}), N = d(() => l.value[n.value] || null), D = d(() => v.value || f.value || l.value.length === 0), P = async () => {
|
|
78
|
+
var e;
|
|
79
|
+
if (!(f.value || !v.value || !T.value)) {
|
|
80
|
+
f.value = !0;
|
|
81
|
+
try {
|
|
82
|
+
await V({
|
|
83
|
+
count: 100,
|
|
84
|
+
offset: ((e = h.value) == null ? void 0 : e.length) || 0
|
|
85
|
+
});
|
|
86
|
+
} catch (t) {
|
|
87
|
+
console.error("[MentionSuggestion] Failed to load more members:", t);
|
|
88
|
+
} finally {
|
|
89
|
+
f.value = !1;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
S(
|
|
94
|
+
[() => r.query, l, v],
|
|
95
|
+
([e, t, o]) => {
|
|
96
|
+
e.toLowerCase().trim() && t.length === 0 && !o ? g.value = !1 : g.value = !0, t.length < 10 && o && !f.value && P();
|
|
97
|
+
},
|
|
98
|
+
{ immediate: !0 }
|
|
99
|
+
);
|
|
100
|
+
const L = d(() => {
|
|
101
|
+
var t;
|
|
102
|
+
const e = (t = r.clientRect) == null ? void 0 : t.call(r);
|
|
103
|
+
return e ? {
|
|
104
|
+
getBoundingClientRect: () => ({
|
|
105
|
+
width: 0,
|
|
106
|
+
height: e.height,
|
|
107
|
+
x: e.left,
|
|
108
|
+
y: e.top,
|
|
109
|
+
top: e.top,
|
|
110
|
+
left: e.left,
|
|
111
|
+
right: e.left,
|
|
112
|
+
bottom: e.top + e.height
|
|
113
|
+
})
|
|
114
|
+
} : null;
|
|
115
|
+
});
|
|
116
|
+
S(l, (e, t) => {
|
|
117
|
+
!t || e.length < t.length || e.length === 0 ? n.value = 0 : e.length > t.length && n.value >= e.length && (n.value = e.length - 1);
|
|
118
|
+
}, { immediate: !0 });
|
|
119
|
+
let s = null;
|
|
120
|
+
const G = () => {
|
|
121
|
+
s && (s.disconnect(), s = null), !(!i.value || !c.value) && (s = new IntersectionObserver(
|
|
122
|
+
(e) => {
|
|
123
|
+
e.forEach((t) => {
|
|
124
|
+
t.isIntersecting && P();
|
|
125
|
+
});
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
root: i.value,
|
|
129
|
+
rootMargin: "0px",
|
|
130
|
+
threshold: 0.1
|
|
131
|
+
}
|
|
132
|
+
), s.observe(c.value));
|
|
133
|
+
};
|
|
134
|
+
S([i, c, D], () => {
|
|
135
|
+
D.value && i.value && c.value && setTimeout(G, 0);
|
|
136
|
+
}, { flush: "post" }), X(() => {
|
|
137
|
+
window.addEventListener("resize", ie(z, 30));
|
|
138
|
+
}), Z(() => {
|
|
139
|
+
s && (s.disconnect(), s = null), window.removeEventListener("resize", z);
|
|
140
|
+
});
|
|
141
|
+
const z = () => {
|
|
142
|
+
O.value += 1;
|
|
143
|
+
}, B = (e) => {
|
|
144
|
+
const t = l.value[e];
|
|
145
|
+
t && r.command({ id: t.userID, label: t.nick, mentionSuggestionChar: "@" });
|
|
146
|
+
}, F = () => {
|
|
147
|
+
if (!i.value)
|
|
148
|
+
return;
|
|
149
|
+
const e = i.value.children[n.value];
|
|
150
|
+
e && (e.scrollIntoView({ block: "nearest" }), n.value === l.value.length - 1 && v.value && c.value && c.value.scrollIntoView({ block: "nearest" }));
|
|
151
|
+
}, K = (e) => {
|
|
152
|
+
const { event: t } = e;
|
|
153
|
+
if (t.key === "ArrowDown") {
|
|
154
|
+
t.preventDefault();
|
|
155
|
+
const o = Math.min(n.value + 1, l.value.length - 1);
|
|
156
|
+
return n.value = o, F(), o === l.value.length - 1 && v.value && !f.value && P(), !0;
|
|
157
|
+
}
|
|
158
|
+
return t.key === "ArrowUp" ? (t.preventDefault(), n.value = Math.max(n.value - 1, 0), F(), !0) : t.key === "Enter" && (t.preventDefault(), N.value) ? (B(n.value), !0) : t.key === "Escape";
|
|
159
|
+
}, Q = (e) => {
|
|
160
|
+
e.preventDefault();
|
|
161
|
+
};
|
|
162
|
+
return I({
|
|
163
|
+
onKeyDown: K
|
|
164
|
+
}), (e, t) => (a(), C(u(le), {
|
|
165
|
+
open: g.value,
|
|
166
|
+
"onUpdate:open": t[0] || (t[0] = (o) => g.value = o),
|
|
167
|
+
modal: !1
|
|
168
|
+
}, {
|
|
169
|
+
default: w(() => [
|
|
170
|
+
L.value ? (a(), C(u(ge), {
|
|
171
|
+
key: 0,
|
|
172
|
+
reference: L.value
|
|
173
|
+
}, null, 8, ["reference"])) : k("", !0),
|
|
174
|
+
U(u(re), null, {
|
|
175
|
+
default: w(() => [
|
|
176
|
+
U(u(ae), {
|
|
177
|
+
class: "mention-suggestion__content",
|
|
178
|
+
side: "top",
|
|
179
|
+
align: "start",
|
|
180
|
+
"side-offset": 8,
|
|
181
|
+
"collision-padding": 8,
|
|
182
|
+
"avoid-collisions": !1,
|
|
183
|
+
onOpenAutoFocus: Q
|
|
184
|
+
}, {
|
|
185
|
+
default: w(() => [
|
|
186
|
+
M("div", {
|
|
187
|
+
ref_key: "listboxRef",
|
|
188
|
+
ref: i,
|
|
189
|
+
class: "mention-suggestion__listbox"
|
|
190
|
+
}, [
|
|
191
|
+
(a(!0), _(ee, null, te(l.value, (o, b) => (a(), _("div", {
|
|
192
|
+
key: o.userID,
|
|
193
|
+
class: ne(["mention-suggestion__item", { "mention-suggestion__item--selected": b === n.value }]),
|
|
194
|
+
onClick: ($) => B(b),
|
|
195
|
+
onMouseenter: ($) => n.value = b
|
|
196
|
+
}, [
|
|
197
|
+
o.avatar !== "/at_all_members.png" ? (a(), C(u(fe), {
|
|
198
|
+
key: 0,
|
|
199
|
+
class: "mention-suggestion__avatar",
|
|
200
|
+
src: o.avatar
|
|
201
|
+
}, null, 8, ["src"])) : k("", !0),
|
|
202
|
+
M("span", he, A(o.nick || o.userID), 1)
|
|
203
|
+
], 42, _e))), 128)),
|
|
204
|
+
D.value ? (a(), _("div", {
|
|
205
|
+
key: 0,
|
|
206
|
+
ref_key: "sentinelRef",
|
|
207
|
+
ref: c,
|
|
208
|
+
class: "mention-suggestion__sentinel"
|
|
209
|
+
}, [
|
|
210
|
+
v.value ? (a(), _("div", ye, [
|
|
211
|
+
t[1] || (t[1] = M("div", { class: "mention-suggestion__spinner" }, null, -1)),
|
|
212
|
+
M("span", null, A(u(p)("MessageInput.loading")), 1)
|
|
213
|
+
])) : l.value.length === 0 && !v.value ? (a(), _("div", be, A(u(p)("MessageInput.no_matching_members")), 1)) : k("", !0)
|
|
214
|
+
], 512)) : k("", !0)
|
|
215
|
+
], 512)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
})
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
})
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}, 8, ["open"]));
|
|
225
|
+
}
|
|
226
|
+
}), Re = /* @__PURE__ */ de(ke, [["__scopeId", "data-v-bb944499"]]);
|
|
227
|
+
export {
|
|
228
|
+
Re as default
|
|
229
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SuggestionProps, SuggestionKeyDownProps } from '@tiptap/suggestion';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SuggestionProps<any, any>>>, {
|
|
4
|
+
onKeyDown: (keyDownProps: SuggestionKeyDownProps) => boolean;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SuggestionProps<any, any>>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/vue-3';
|
|
2
|
+
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
3
|
+
|
|
4
|
+
interface CharacterCountOptions {
|
|
5
|
+
limit: number | null | undefined;
|
|
6
|
+
textCounter: (text: string) => number;
|
|
7
|
+
wordCounter: (text: string) => number;
|
|
8
|
+
}
|
|
9
|
+
interface CharacterCountStorage {
|
|
10
|
+
characters: (options?: {
|
|
11
|
+
node?: ProseMirrorNode;
|
|
12
|
+
mode?: 'textSize' | 'nodeSize';
|
|
13
|
+
}) => number;
|
|
14
|
+
words: (options?: {
|
|
15
|
+
node?: ProseMirrorNode;
|
|
16
|
+
}) => number;
|
|
17
|
+
}
|
|
18
|
+
declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
|
|
19
|
+
export { CharacterCount, };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { E as l, P as f, a as h } from "../../../../index-C8Jw_xE4.js";
|
|
2
|
+
function g(e) {
|
|
3
|
+
if (typeof Intl < "u" && "Segmenter" in Intl) {
|
|
4
|
+
const r = new Intl.Segmenter("en", { granularity: "grapheme" });
|
|
5
|
+
return Array.from(r.segment(e)).length;
|
|
6
|
+
}
|
|
7
|
+
return [...e].length;
|
|
8
|
+
}
|
|
9
|
+
const p = l.create({
|
|
10
|
+
name: "characterCount",
|
|
11
|
+
addOptions() {
|
|
12
|
+
return {
|
|
13
|
+
limit: null,
|
|
14
|
+
textCounter: (e) => e.length,
|
|
15
|
+
wordCounter: (e) => e.split(" ").filter((r) => r !== "").length
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
addStorage() {
|
|
19
|
+
return {
|
|
20
|
+
characters: () => 0,
|
|
21
|
+
words: () => 0
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
onBeforeCreate() {
|
|
25
|
+
this.storage.characters = (e) => {
|
|
26
|
+
const r = (e == null ? void 0 : e.node) || this.editor.state.doc;
|
|
27
|
+
let s = 0;
|
|
28
|
+
return r.descendants((t) => {
|
|
29
|
+
t.isText && t.text ? s += g(t.text) : t.type.name === "emoji" && (s += 1);
|
|
30
|
+
}), s;
|
|
31
|
+
}, this.storage.words = (e) => {
|
|
32
|
+
const r = (e == null ? void 0 : e.node) || this.editor.state.doc, s = r.textBetween(0, r.content.size, " ", " ");
|
|
33
|
+
return this.options.wordCounter(s);
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
addProseMirrorPlugins() {
|
|
37
|
+
let e = !1;
|
|
38
|
+
return [
|
|
39
|
+
new f({
|
|
40
|
+
key: new h("characterCount"),
|
|
41
|
+
appendTransaction: (r, s, t) => {
|
|
42
|
+
if (e)
|
|
43
|
+
return;
|
|
44
|
+
const { limit: n } = this.options;
|
|
45
|
+
if (n == null || n === 0) {
|
|
46
|
+
e = !0;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const o = this.storage.characters({ node: t.doc });
|
|
50
|
+
if (o > n) {
|
|
51
|
+
const c = o - n, a = 0, u = c, i = t.tr.deleteRange(a, u);
|
|
52
|
+
return e = !0, i;
|
|
53
|
+
}
|
|
54
|
+
e = !0;
|
|
55
|
+
},
|
|
56
|
+
filterTransaction: (r, s) => {
|
|
57
|
+
const { limit: t } = this.options;
|
|
58
|
+
if (!r.docChanged || t === 0 || t === null || t === void 0)
|
|
59
|
+
return !0;
|
|
60
|
+
const n = this.storage.characters({ node: s.doc }), o = this.storage.characters({ node: r.doc }), c = r.getMeta("paste");
|
|
61
|
+
if (o <= t || n > t && o > t && o <= n)
|
|
62
|
+
return !0;
|
|
63
|
+
if (n > t && o > t && o > n || !c)
|
|
64
|
+
return !1;
|
|
65
|
+
const { pos: a } = r.selection.$head, u = o - t, i = a - u, d = a;
|
|
66
|
+
return !(i < 0 || (r.deleteRange(i, d), this.storage.characters({ node: r.doc }) > t));
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
p as CharacterCount
|
|
74
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createEmojiExtension(): import('@tiptap/core').Node<import('@tiptap/extension-image').ImageOptions, any>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { I as t } from "../../../../index-CiYL_XsE.js";
|
|
2
|
+
import { MessageContentType as n } from "../../../../states/MessageInputState/type.js";
|
|
3
|
+
function o() {
|
|
4
|
+
return t.extend({
|
|
5
|
+
name: n.EMOJI,
|
|
6
|
+
inline: !0,
|
|
7
|
+
group: "inline",
|
|
8
|
+
draggable: !0,
|
|
9
|
+
addOptions() {
|
|
10
|
+
var e;
|
|
11
|
+
return {
|
|
12
|
+
...(e = this.parent) == null ? void 0 : e.call(this),
|
|
13
|
+
HTMLAttributes: {
|
|
14
|
+
class: "message-emoji"
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
o as createEmojiExtension
|
|
22
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { E as t } from "../../../../index-C8Jw_xE4.js";
|
|
2
|
+
function n(e) {
|
|
3
|
+
return t.create({
|
|
4
|
+
name: "enterKey",
|
|
5
|
+
addKeyboardShortcuts() {
|
|
6
|
+
return {
|
|
7
|
+
Enter: () => (e == null || e(), !0),
|
|
8
|
+
"Mod-Enter": ({ editor: r }) => (r.commands.setHardBreak(), !0)
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
n as createEnterKeyExtension
|
|
15
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { I as g } from "../../../../index-CiYL_XsE.js";
|
|
2
|
+
import { P as m, a as f } from "../../../../index-C8Jw_xE4.js";
|
|
3
|
+
function I() {
|
|
4
|
+
return g.extend({
|
|
5
|
+
addOptions() {
|
|
6
|
+
var e;
|
|
7
|
+
return {
|
|
8
|
+
...(e = this.parent) == null ? void 0 : e.call(this),
|
|
9
|
+
HTMLAttributes: {
|
|
10
|
+
class: "message-image"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
addAttributes() {
|
|
15
|
+
var e;
|
|
16
|
+
return {
|
|
17
|
+
...(e = this.parent) == null ? void 0 : e.call(this),
|
|
18
|
+
fileData: {
|
|
19
|
+
default: null,
|
|
20
|
+
parseHTML: () => null,
|
|
21
|
+
renderHTML: () => ({})
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
addProseMirrorPlugins() {
|
|
26
|
+
return [
|
|
27
|
+
new m({
|
|
28
|
+
key: new f("imagePaste"),
|
|
29
|
+
props: {
|
|
30
|
+
handlePaste: (e, l) => {
|
|
31
|
+
var i;
|
|
32
|
+
const s = Array.from(((i = l.clipboardData) == null ? void 0 : i.items) || []).filter((a) => a.type.indexOf("image") === 0);
|
|
33
|
+
return s.length === 0 ? !1 : (s.forEach((a) => {
|
|
34
|
+
const r = a.getAsFile();
|
|
35
|
+
if (r) {
|
|
36
|
+
const t = new FileReader();
|
|
37
|
+
t.onload = (n) => {
|
|
38
|
+
var o;
|
|
39
|
+
const d = (o = n.target) == null ? void 0 : o.result, c = e.state.schema.nodes.image.create({
|
|
40
|
+
src: d,
|
|
41
|
+
fileData: r
|
|
42
|
+
}), u = e.state.tr.replaceSelectionWith(c);
|
|
43
|
+
e.dispatch(u);
|
|
44
|
+
}, t.onerror = (n) => {
|
|
45
|
+
console.error("[MessageInput]::Failed to read image file:", n);
|
|
46
|
+
}, t.onabort = () => {
|
|
47
|
+
console.warn("[MessageInput]::Image file reading was aborted.");
|
|
48
|
+
}, t.readAsDataURL(r);
|
|
49
|
+
}
|
|
50
|
+
}), !0);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
];
|
|
55
|
+
}
|
|
56
|
+
}).configure({
|
|
57
|
+
inline: !0
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
I as createImageExtension
|
|
62
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extensions Index - Centralized export for all Tiptap extensions
|
|
3
|
+
*/
|
|
4
|
+
export { CharacterCount } from './characterCountExtension';
|
|
5
|
+
export { createEmojiExtension } from './emojiExtension';
|
|
6
|
+
export { createEnterKeyExtension } from './enterKeyExtension';
|
|
7
|
+
export { createImageExtension } from './imageExtension';
|
|
8
|
+
export { createMentionExtension } from './mentionExtension';
|