@tencentcloud/roomkit-electron-vue3 2.7.2 → 2.8.2
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/es/components/Chat/ChatKit/components/TUIChat/chat-header/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/emoji-config/default-emoji.mjs +4 -4
- package/es/components/Chat/ChatKit/components/TUIChat/emoji-config/index.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.d.ts +2 -0
- package/es/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.mjs +67 -0
- package/es/components/Chat/ChatKit/components/TUIChat/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/index.vue2.mjs +24 -11
- package/es/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue2.mjs +14 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input/message-input-quote/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/emoji-picker/emoji-picker-dialog.vue.d.ts +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/emoji-picker/emoji-picker-dialog.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/image-upload/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue2.mjs +13 -13
- package/es/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/video-upload/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/index.vue2.mjs +4 -4
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-elements/message-audio.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-elements/message-record/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-group-application/index.vue2.mjs +2 -2
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/message-revoked.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue2.mjs +2 -1
- package/es/components/Chat/ChatKit/components/TUIChat/offlinePushInfoManager/offlinePushInfoManager.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/server.d.ts +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/server.mjs +12 -3
- package/es/components/Chat/ChatKit/components/TUIChat/utils/sendMessage.mjs +3 -2
- package/es/components/Chat/ChatKit/components/common/BottomPopup/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/BottomPopup/index.vue2.mjs +3 -3
- package/es/components/Chat/ChatKit/components/common/Dialog/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Drawer/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Icon.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/ImagePreviewer/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Overlay/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Overlay/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Toast/index.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Toast/index.vue.d.ts +1 -1
- package/es/components/Chat/ChatKit/components/common/Toast/index.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Transfer/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/Transfer/index.vue2.mjs +4 -4
- package/es/components/Chat/ChatKit/locales/en/TUIChat.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/en/TUIChat.mjs +5 -2
- package/es/components/Chat/ChatKit/locales/en/index.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/en/message.mjs +2 -2
- package/es/components/Chat/ChatKit/locales/index.d.ts +4 -1083
- package/es/components/Chat/ChatKit/locales/index.mjs +5 -3
- package/es/components/Chat/ChatKit/locales/zh_cn/TUIChat.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/zh_cn/TUIChat.mjs +4 -1
- package/es/components/Chat/ChatKit/locales/zh_cn/index.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIChat.d.ts +153 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIChat.mjs +155 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIContact.d.ts +65 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIContact.mjs +67 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIConversation.d.ts +23 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIConversation.mjs +25 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIGroup.d.ts +86 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUIGroup.mjs +88 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUISearch.d.ts +40 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/TUISearch.mjs +42 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/component.d.ts +20 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/component.mjs +22 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/emoji.d.ts +3 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/emoji.mjs +4 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/evaluate.d.ts +10 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/evaluate.mjs +12 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/index.d.ts +513 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/index.mjs +39 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/message.d.ts +61 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/message.mjs +63 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/time.d.ts +36 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/time.mjs +38 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/translate.d.ts +163 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/words.d.ts +13 -0
- package/es/components/Chat/ChatKit/locales/zh_tw/words.mjs +15 -0
- package/es/components/Chat/ChatKit/plugins/plugin-components/message-plugin.vue2.mjs +1 -1
- package/es/components/Chat/ChatKit/utils/riseInput.d.ts +1 -0
- package/es/components/Chat/ChatKit/utils/riseInput.mjs +45 -0
- package/es/components/Chat/index/index.vue.mjs +1 -1
- package/es/components/Chat/index/index.vue2.mjs +4 -19
- package/es/components/ManageMember/MemberControl/index.vue2.mjs +1 -1
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.d.ts +2 -2
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.mjs +4 -4
- package/es/components/ManageMember/MemberInvite/MemberInvite.vue2.mjs +1 -1
- package/es/components/ManageMember/index.vue2.mjs +1 -1
- package/es/components/PreRoom/PasswordDialog.vue.mjs +1 -1
- package/es/components/PreRoom/PasswordDialog.vue2.mjs +21 -12
- package/es/components/RoomContent/StreamContainer/index.vue.d.ts +1 -14
- package/es/components/RoomContent/StreamContainer/index.vue.mjs +1 -1
- package/es/components/RoomContent/StreamContainer/index.vue2.mjs +111 -262
- package/es/components/RoomContent/StreamContainer/useStreamContainerHooks.d.ts +2 -9
- package/es/components/RoomContent/StreamContainer/useStreamContainerHooks.mjs +11 -0
- package/es/components/RoomContent/index.vue.d.ts +1 -14
- package/es/components/RoomContent/index.vue.mjs +1 -1
- package/es/components/RoomContent/index.vue2.mjs +1 -4
- package/es/components/RoomFooter/AIControl.vue.d.ts +1 -5
- package/es/components/RoomFooter/AIControl.vue.mjs +1 -1
- package/es/components/RoomFooter/AIControl.vue2.mjs +5 -8
- package/es/components/RoomFooter/ApplyControl/MasterApplyControl/index.vue2.mjs +2 -2
- package/es/components/RoomFooter/ApplyControl/MemberApplyControl.vue2.mjs +1 -1
- package/es/components/RoomFooter/AudioControl.vue2.mjs +1 -1
- package/es/components/RoomFooter/BasicBeauty.vue.mjs +1 -1
- package/es/components/RoomFooter/BasicBeauty.vue2.mjs +8 -5
- package/es/components/RoomFooter/ChatControl.vue.mjs +2 -1
- package/es/components/RoomFooter/EndControl/index.vue.mjs +1 -1
- package/es/components/RoomFooter/EndControl/index.vue2.mjs +5 -7
- package/es/components/RoomFooter/EndControl/useEndControlHooks.mjs +8 -12
- package/es/components/RoomFooter/FullScreenControl.vue.mjs +1 -1
- package/es/components/RoomFooter/InviteControl.vue.mjs +1 -1
- package/es/components/RoomFooter/InviteControl.vue2.mjs +2 -1
- package/es/components/RoomFooter/ManageMemberControl.vue.mjs +1 -1
- package/es/components/RoomFooter/MoreControl/index.vue.mjs +1 -1
- package/es/components/RoomFooter/ScreenShareControl/Index.vue.mjs +1 -1
- package/es/components/RoomFooter/ScreenShareControl/Index.vue2.mjs +4 -4
- package/es/components/RoomFooter/ScreenShareControl/ScreenWindowSelectDialog.vue2.mjs +1 -1
- package/es/components/RoomFooter/VideoControl.vue2.mjs +2 -2
- package/es/components/RoomFooter/VirtualBackground.vue.mjs +1 -1
- package/es/components/RoomFooter/VirtualBackground.vue2.mjs +6 -3
- package/es/components/RoomFooter/WhiteboardControl.vue.mjs +14 -4
- package/es/components/RoomFooter/index/index.vue.d.ts +1 -5
- package/es/components/RoomFooter/index/index.vue.mjs +1 -1
- package/es/components/RoomFooter/index/index.vue2.mjs +2 -8
- package/es/components/RoomHeader/UserInfo/index.vue2.mjs +1 -1
- package/es/components/RoomHeader/index/LayoutControl.vue2.mjs +2 -2
- package/es/components/RoomHeader/index/index.vue.d.ts +1 -5
- package/es/components/RoomHeader/index/index.vue.mjs +1 -1
- package/es/components/RoomHeader/index/index.vue2.mjs +0 -15
- package/es/components/RoomHome/RoomControl/index.vue.d.ts +0 -5
- package/es/components/RoomHome/RoomControl/index.vue.mjs +1 -1
- package/es/components/RoomHome/RoomControl/index.vue2.mjs +3 -4
- package/es/components/RoomInvite/InvitationNotification.vue2.mjs +2 -2
- package/es/components/RoomInvite/index.vue2.mjs +1 -1
- package/es/components/RoomInvite/useRoomInviteHooks.mjs +2 -2
- package/es/components/RoomOverlay/RoomOverlay.vue.mjs +16 -0
- package/es/components/RoomOverlay/RoomOverlay.vue2.mjs +4 -0
- package/es/components/RoomOverlay/useRoomOverlayHooks.d.ts +15 -0
- package/es/components/RoomOverlay/useRoomOverlayHooks.mjs +30 -0
- package/es/components/RoomSetting/index.vue2.mjs +1 -1
- package/es/components/RoomSidebar/index.vue.mjs +1 -1
- package/es/components/ScheduleConference/Contacts.vue2.mjs +1 -1
- package/es/components/ScheduleConference/InvitePanel.vue.mjs +1 -1
- package/es/components/ScheduleConference/ScheduleConferencePanel/index.vue.mjs +1 -1
- package/es/components/ScheduleConference/ScheduleConferencePanel/index.vue2.mjs +12 -8
- package/es/components/ScheduleConference/ScheduleRoomControl.vue.mjs +1 -1
- package/es/components/ScheduleConference/ScheduleRoomControl.vue2.mjs +4 -4
- package/es/components/ScheduleConference/ScheduleRoomList.vue2.mjs +2 -2
- package/es/components/ScheduleConference/ShareLink.vue2.mjs +2 -2
- package/es/components/ScheduleConference/TimezonePicker.vue.mjs +1 -1
- package/es/components/Stream/MultiStreamView/index.vue.d.ts +33 -0
- package/es/components/{Chat/MessageList → Stream/MultiStreamView}/index.vue.mjs +2 -2
- package/es/components/Stream/MultiStreamView/index.vue2.mjs +99 -0
- package/es/components/Stream/MultiStreamView/useMultiStreamViewHook.d.ts +17 -0
- package/es/components/Stream/MultiStreamView/useMultiStreamViewHook.mjs +95 -0
- package/es/components/Stream/SingleStreamView/index.vue.d.ts +25 -0
- package/es/components/Stream/SingleStreamView/index.vue.mjs +30 -0
- package/es/components/Stream/SingleStreamView/index.vue2.mjs +4 -0
- package/es/components/{RoomContent/StreamRegion → Stream/common}/LocalScreenView/index.vue.mjs +1 -1
- package/es/components/{RoomContent/StreamRegion → Stream/common}/LocalScreenView/index.vue2.mjs +23 -58
- package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue.mjs +1 -1
- package/es/components/Stream/common/StreamList/index.vue.d.ts +27 -0
- package/es/components/{RoomContent → Stream/common}/StreamList/index.vue.mjs +2 -2
- package/es/components/{RoomContent → Stream/common}/StreamList/index.vue2.mjs +59 -95
- package/{lib/components/RoomContent/StreamRegion → es/components/Stream/common}/StreamPlay/index.vue.d.ts +9 -6
- package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue.mjs +1 -1
- package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue2.mjs +18 -13
- package/es/components/Stream/common/StreamRegion/index.vue.d.ts +25 -0
- package/es/components/{RoomContent → Stream/common}/StreamRegion/index.vue.mjs +2 -2
- package/es/components/{RoomContent → Stream/common}/StreamRegion/index.vue2.mjs +24 -27
- package/es/components/common/Language.vue.mjs +1 -1
- package/es/components/common/SwitchTheme.vue.mjs +1 -1
- package/es/components/common/VideoProfile.vue2.mjs +1 -1
- package/es/components/common/VideoSettingTab.vue2.mjs +2 -2
- package/es/components/common/base/Button.vue.d.ts +1 -1
- package/es/components/common/base/Button.vue2.mjs +1 -1
- package/es/components/common/base/Checkbox/index.vue.d.ts +1 -1
- package/es/components/common/base/Dialog/index.vue.d.ts +4 -4
- package/es/components/common/base/Dialog/index.vue2.mjs +1 -1
- package/es/components/common/base/IconButton.vue.d.ts +3 -3
- package/es/components/common/base/Input/index.vue.d.ts +4 -4
- package/es/components/common/base/Input/index.vue2.mjs +1 -1
- package/es/components/common/base/Message/Message.vue.d.ts +4 -4
- package/es/components/common/base/Message/Message.vue2.mjs +1 -1
- package/es/components/common/base/MessageBox/index.vue.d.ts +1 -1
- package/es/components/common/base/MessageBox/index.vue2.mjs +1 -1
- package/es/components/common/base/Notification/index.vue.d.ts +1 -1
- package/es/components/common/base/Select/index.vue.d.ts +1 -1
- package/es/components/common/base/Select/index.vue2.mjs +1 -1
- package/es/components/common/base/Slider.vue.d.ts +1 -1
- package/es/components/common/base/SvgIcon.vue2.mjs +1 -1
- package/es/components/{AITools → common/widgets/AITools}/AISubtitles.vue.mjs +2 -2
- package/es/components/{AITools → common/widgets/AITools}/AISubtitles.vue2.mjs +7 -6
- package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue.mjs +2 -2
- package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue2.mjs +8 -7
- package/es/conference.d.ts +16 -0
- package/es/conference.mjs +17 -1
- package/es/conference.vue.mjs +1 -1
- package/es/conference.vue2.mjs +14 -24
- package/es/constants/room.mjs +3 -1
- package/es/extension/RoomMessageCard/RoomMessageCard.vue2.mjs +1 -1
- package/es/extension/chatExtension.mjs +7 -4
- package/es/extension/utils/interact.mjs +1 -1
- package/es/extension/utils/setLanguage.mjs +1 -1
- package/es/hooks/useDeviceManager.mjs +1 -1
- package/es/hooks/useMasterApplyControl.mjs +2 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +956 -1184
- package/es/locales/en-US.d.ts +2 -1
- package/es/locales/en-US.mjs +3 -2
- package/es/locales/zh-CN.d.ts +2 -1
- package/es/locales/zh-CN.mjs +2 -1
- package/es/preConference.vue.d.ts +5 -0
- package/es/preConference.vue.mjs +1 -1
- package/es/preConference.vue2.mjs +7 -4
- package/es/services/index.d.ts +1 -0
- package/es/services/manager/chatManager.d.ts +0 -2
- package/es/services/manager/chatManager.mjs +6 -12
- package/{lib/services/manager/MediaManager.d.ts → es/services/manager/mediaManager.d.ts} +16 -13
- package/es/services/manager/{MediaManager.mjs → mediaManager.mjs} +111 -114
- package/es/services/manager/roomActionManager.d.ts +3 -0
- package/es/services/manager/roomActionManager.mjs +8 -1
- package/es/services/manager/scheduleConferenceManager.d.ts +11 -4
- package/es/services/manager/scheduleConferenceManager.mjs +24 -1
- package/es/services/manager/trackingManager.d.ts +11 -0
- package/es/services/manager/trackingManager.mjs +20 -0
- package/es/services/manager/userManager.d.ts +11 -1
- package/es/services/manager/userManager.mjs +159 -9
- package/es/services/roomService.d.ts +3 -2
- package/es/services/roomService.mjs +24 -42
- package/es/stores/basic.mjs +7 -2
- package/es/stores/room.d.ts +29 -1
- package/es/stores/room.mjs +50 -57
- package/es/utils/common/logger/index.mjs +1 -1
- package/es/utils/domOperation.d.ts +4 -0
- package/es/utils/domOperation.mjs +17 -23
- package/es/utils/utils.d.ts +11 -0
- package/es/utils/utils.mjs +43 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.d.ts +2 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.js +67 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/index.vue2.js +22 -9
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input/index.vue2.js +6 -6
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue2.js +13 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/emoji-picker/emoji-picker-dialog.vue.d.ts +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue2.js +13 -13
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/index.vue2.js +9 -9
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-elements/message-quote/index.vue2.js +4 -4
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue2.js +11 -11
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/message-revoked.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue2.js +1 -0
- package/lib/components/Chat/ChatKit/components/TUIChat/server.d.ts +1 -1
- package/lib/components/Chat/ChatKit/components/TUIChat/server.js +12 -3
- package/lib/components/Chat/ChatKit/components/TUIChat/utils/sendMessage.js +2 -1
- package/lib/components/Chat/ChatKit/components/common/BottomPopup/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/common/BottomPopup/index.vue2.js +2 -2
- package/lib/components/Chat/ChatKit/components/common/ImagePreviewer/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/common/Overlay/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/common/Toast/index.vue.d.ts +1 -1
- package/lib/components/Chat/ChatKit/components/common/Transfer/index.vue.js +1 -1
- package/lib/components/Chat/ChatKit/components/common/Transfer/index.vue2.js +2 -2
- package/lib/components/Chat/ChatKit/locales/en/TUIChat.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/en/TUIChat.js +5 -2
- package/lib/components/Chat/ChatKit/locales/en/index.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/en/message.js +2 -2
- package/lib/components/Chat/ChatKit/locales/index.d.ts +4 -1083
- package/lib/components/Chat/ChatKit/locales/index.js +5 -3
- package/lib/components/Chat/ChatKit/locales/zh_cn/TUIChat.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/zh_cn/TUIChat.js +4 -1
- package/lib/components/Chat/ChatKit/locales/zh_cn/index.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIChat.d.ts +153 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIChat.js +155 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIContact.d.ts +65 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIContact.js +67 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIConversation.d.ts +23 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIConversation.js +25 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIGroup.d.ts +86 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUIGroup.js +88 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUISearch.d.ts +40 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/TUISearch.js +42 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/component.d.ts +20 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/component.js +22 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/emoji.d.ts +3 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/emoji.js +4 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/evaluate.d.ts +10 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/evaluate.js +12 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/index.d.ts +513 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/index.js +39 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/message.d.ts +61 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/message.js +63 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/time.d.ts +36 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/time.js +38 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/translate.d.ts +163 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/words.d.ts +13 -0
- package/lib/components/Chat/ChatKit/locales/zh_tw/words.js +15 -0
- package/lib/components/Chat/ChatKit/utils/riseInput.d.ts +1 -0
- package/lib/components/Chat/ChatKit/utils/riseInput.js +45 -0
- package/lib/components/Chat/index/index.vue.js +1 -1
- package/lib/components/Chat/index/index.vue2.js +2 -17
- package/lib/components/ManageMember/MemberControl/useMemberControlHooks.d.ts +2 -2
- package/lib/components/ManageMember/MemberControl/useMemberControlHooks.js +3 -3
- package/lib/components/ManageMember/MemberInvite/MemberInvite.vue2.js +1 -1
- package/lib/components/PreRoom/PasswordDialog.vue.js +1 -1
- package/lib/components/PreRoom/PasswordDialog.vue2.js +20 -11
- package/lib/components/RoomContent/StreamContainer/index.vue.d.ts +1 -14
- package/lib/components/RoomContent/StreamContainer/index.vue.js +1 -1
- package/lib/components/RoomContent/StreamContainer/index.vue2.js +109 -260
- package/lib/components/RoomContent/StreamContainer/useStreamContainerHooks.d.ts +2 -9
- package/lib/components/RoomContent/StreamContainer/useStreamContainerHooks.js +11 -0
- package/lib/components/RoomContent/index.vue.d.ts +1 -14
- package/lib/components/RoomContent/index.vue.js +1 -1
- package/lib/components/RoomContent/index.vue2.js +1 -4
- package/lib/components/RoomFooter/AIControl.vue.d.ts +1 -5
- package/lib/components/RoomFooter/AIControl.vue.js +1 -1
- package/lib/components/RoomFooter/AIControl.vue2.js +5 -8
- package/lib/components/RoomFooter/ApplyControl/MasterApplyControl/index.vue2.js +1 -1
- package/lib/components/RoomFooter/AudioControl.vue2.js +4 -4
- package/lib/components/RoomFooter/BasicBeauty.vue.js +1 -1
- package/lib/components/RoomFooter/BasicBeauty.vue2.js +6 -3
- package/lib/components/RoomFooter/ChatControl.vue.js +2 -1
- package/lib/components/RoomFooter/EndControl/index.vue.js +1 -1
- package/lib/components/RoomFooter/EndControl/index.vue2.js +4 -6
- package/lib/components/RoomFooter/EndControl/useEndControlHooks.js +8 -12
- package/lib/components/RoomFooter/FullScreenControl.vue.js +1 -1
- package/lib/components/RoomFooter/InviteControl.vue.js +1 -1
- package/lib/components/RoomFooter/InviteControl.vue2.js +2 -1
- package/lib/components/RoomFooter/ManageMemberControl.vue.js +1 -1
- package/lib/components/RoomFooter/MoreControl/index.vue.js +1 -1
- package/lib/components/RoomFooter/ScreenShareControl/Index.vue.js +1 -1
- package/lib/components/RoomFooter/ScreenShareControl/Index.vue2.js +8 -8
- package/lib/components/RoomFooter/VideoControl.vue2.js +4 -4
- package/lib/components/RoomFooter/VirtualBackground.vue.js +1 -1
- package/lib/components/RoomFooter/VirtualBackground.vue2.js +5 -2
- package/lib/components/RoomFooter/WhiteboardControl.vue.js +13 -3
- package/lib/components/RoomFooter/index/index.vue.d.ts +1 -5
- package/lib/components/RoomFooter/index/index.vue.js +1 -1
- package/lib/components/RoomFooter/index/index.vue2.js +2 -8
- package/lib/components/RoomHeader/UserInfo/index.vue2.js +1 -1
- package/lib/components/RoomHeader/index/LayoutControl.vue2.js +1 -1
- package/lib/components/RoomHeader/index/index.vue.d.ts +1 -5
- package/lib/components/RoomHeader/index/index.vue.js +1 -1
- package/lib/components/RoomHeader/index/index.vue2.js +0 -15
- package/lib/components/RoomHome/RoomControl/index.vue.d.ts +0 -5
- package/lib/components/RoomHome/RoomControl/index.vue.js +1 -1
- package/lib/components/RoomHome/RoomControl/index.vue2.js +1 -2
- package/lib/components/RoomInvite/InvitationNotification.vue2.js +1 -1
- package/lib/components/RoomInvite/useRoomInviteHooks.js +2 -2
- package/lib/components/RoomOverlay/RoomOverlay.vue.js +16 -0
- package/lib/components/RoomOverlay/RoomOverlay.vue2.js +4 -0
- package/lib/components/RoomOverlay/useRoomOverlayHooks.d.ts +15 -0
- package/lib/components/RoomOverlay/useRoomOverlayHooks.js +30 -0
- package/lib/components/RoomSidebar/index.vue.js +1 -1
- package/lib/components/ScheduleConference/InvitePanel.vue.js +1 -1
- package/lib/components/ScheduleConference/ScheduleConferencePanel/index.vue.js +1 -1
- package/lib/components/ScheduleConference/ScheduleConferencePanel/index.vue2.js +11 -7
- package/lib/components/ScheduleConference/ScheduleRoomControl.vue.js +1 -1
- package/lib/components/ScheduleConference/ScheduleRoomControl.vue2.js +3 -3
- package/lib/components/ScheduleConference/ScheduleRoomList.vue2.js +2 -2
- package/lib/components/ScheduleConference/ShareLink.vue2.js +1 -1
- package/lib/components/ScheduleConference/TimezonePicker.vue.js +1 -1
- package/lib/components/Stream/MultiStreamView/index.vue.d.ts +33 -0
- package/lib/components/{Chat/MessageList → Stream/MultiStreamView}/index.vue.js +2 -2
- package/lib/components/Stream/MultiStreamView/index.vue2.js +99 -0
- package/lib/components/Stream/MultiStreamView/useMultiStreamViewHook.d.ts +17 -0
- package/lib/components/Stream/MultiStreamView/useMultiStreamViewHook.js +95 -0
- package/lib/components/Stream/SingleStreamView/index.vue.d.ts +25 -0
- package/lib/components/Stream/SingleStreamView/index.vue.js +30 -0
- package/lib/components/Stream/SingleStreamView/index.vue2.js +4 -0
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/LocalScreenView/index.vue.js +1 -1
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/LocalScreenView/index.vue2.js +22 -57
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue.js +1 -1
- package/lib/components/Stream/common/StreamList/index.vue.d.ts +27 -0
- package/lib/components/{RoomContent → Stream/common}/StreamList/index.vue.js +2 -2
- package/lib/components/{RoomContent → Stream/common}/StreamList/index.vue2.js +60 -96
- package/{es/components/RoomContent/StreamRegion → lib/components/Stream/common}/StreamPlay/index.vue.d.ts +9 -6
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue.js +1 -1
- package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue2.js +21 -16
- package/lib/components/Stream/common/StreamRegion/index.vue.d.ts +25 -0
- package/lib/components/{RoomContent → Stream/common}/StreamRegion/index.vue.js +2 -2
- package/lib/components/{RoomContent → Stream/common}/StreamRegion/index.vue2.js +24 -27
- package/lib/components/common/Language.vue.js +1 -1
- package/lib/components/common/SwitchTheme.vue.js +1 -1
- package/lib/components/common/base/Button.vue.d.ts +1 -1
- package/lib/components/common/base/Checkbox/index.vue.d.ts +1 -1
- package/lib/components/common/base/Dialog/index.vue.d.ts +4 -4
- package/lib/components/common/base/IconButton.vue.d.ts +3 -3
- package/lib/components/common/base/Input/index.vue.d.ts +4 -4
- package/lib/components/common/base/Message/Message.vue.d.ts +4 -4
- package/lib/components/common/base/MessageBox/index.vue.d.ts +1 -1
- package/lib/components/common/base/Notification/index.vue.d.ts +1 -1
- package/lib/components/common/base/Select/index.vue.d.ts +1 -1
- package/lib/components/common/base/Select/index.vue2.js +1 -1
- package/lib/components/common/base/Slider.vue.d.ts +1 -1
- package/lib/components/{AITools → common/widgets/AITools}/AISubtitles.vue.js +2 -2
- package/lib/components/{AITools → common/widgets/AITools}/AISubtitles.vue2.js +7 -6
- package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue.js +2 -2
- package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue2.js +8 -7
- package/lib/conference.d.ts +16 -0
- package/lib/conference.js +17 -1
- package/lib/conference.vue.js +1 -1
- package/lib/conference.vue2.js +24 -34
- package/lib/constants/room.js +3 -1
- package/lib/extension/chatExtension.js +5 -2
- package/lib/extension/utils/interact.js +1 -1
- package/lib/extension/utils/setLanguage.js +1 -1
- package/lib/hooks/useMasterApplyControl.js +11 -10
- package/lib/index.d.ts +1 -0
- package/lib/index.js +956 -1184
- package/lib/locales/en-US.d.ts +2 -1
- package/lib/locales/en-US.js +3 -2
- package/lib/locales/zh-CN.d.ts +2 -1
- package/lib/locales/zh-CN.js +2 -1
- package/lib/preConference.vue.d.ts +5 -0
- package/lib/preConference.vue.js +1 -1
- package/lib/preConference.vue2.js +13 -10
- package/lib/services/index.d.ts +1 -0
- package/lib/services/manager/chatManager.d.ts +0 -2
- package/lib/services/manager/chatManager.js +6 -12
- package/{es/services/manager/MediaManager.d.ts → lib/services/manager/mediaManager.d.ts} +16 -13
- package/lib/services/manager/{MediaManager.js → mediaManager.js} +109 -112
- package/lib/services/manager/roomActionManager.d.ts +3 -0
- package/lib/services/manager/roomActionManager.js +7 -0
- package/lib/services/manager/scheduleConferenceManager.d.ts +11 -4
- package/lib/services/manager/scheduleConferenceManager.js +23 -0
- package/lib/services/manager/trackingManager.d.ts +11 -0
- package/lib/services/manager/trackingManager.js +20 -0
- package/lib/services/manager/userManager.d.ts +11 -1
- package/lib/services/manager/userManager.js +158 -8
- package/lib/services/roomService.d.ts +3 -2
- package/lib/services/roomService.js +24 -42
- package/lib/stores/basic.js +6 -1
- package/lib/stores/room.d.ts +29 -1
- package/lib/stores/room.js +49 -56
- package/lib/utils/domOperation.d.ts +4 -0
- package/lib/utils/domOperation.js +17 -23
- package/lib/utils/utils.d.ts +11 -0
- package/lib/utils/utils.js +43 -0
- package/package.json +4 -4
- package/src/TUIRoom/components/Chat/ChatKit/CHANGELOG.md +35 -0
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/emoji-config/locales/zh_tw.ts +66 -0
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/index.vue +24 -8
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue +15 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue +13 -13
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-list/index.vue +1 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/index.vue +2 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-list/message-tool/message-revoked.vue +4 -6
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-list/read-receipt-panel/index.vue +9 -3
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/server.ts +12 -3
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/utils/sendMessage.ts +1 -0
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIContact/contact-list/index.vue +3 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/TUIGroup/manage-group/index.vue +2 -2
- package/src/TUIRoom/components/Chat/ChatKit/components/common/BottomPopup/index.vue +1 -1
- package/src/TUIRoom/components/Chat/ChatKit/components/common/BottomPopup/style/h5.scss +4 -3
- package/src/TUIRoom/components/Chat/ChatKit/components/common/BottomPopup/style/modal.scss +0 -2
- package/src/TUIRoom/components/Chat/ChatKit/components/common/ImagePreviewer/index.vue +2 -2
- package/src/TUIRoom/components/Chat/ChatKit/components/common/Overlay/index.vue +5 -0
- package/src/TUIRoom/components/Chat/ChatKit/components/common/Transfer/index.vue +2 -2
- package/src/TUIRoom/components/Chat/ChatKit/locales/en/TUIChat.ts +4 -1
- package/src/TUIRoom/components/Chat/ChatKit/locales/en/message.ts +2 -2
- package/src/TUIRoom/components/Chat/ChatKit/locales/index.ts +9 -3
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_cn/TUIChat.ts +3 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUIChat.ts +154 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUIContact.ts +66 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUIConversation.ts +24 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUIGroup.ts +87 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/TUISearch.ts +41 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/component.ts +21 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/emoji.ts +2 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/evaluate.ts +11 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/index.ts +41 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/message.ts +62 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/time.ts +37 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/translate.ts +164 -0
- package/src/TUIRoom/components/Chat/ChatKit/locales/zh_tw/words.ts +14 -0
- package/src/TUIRoom/components/Chat/ChatKit/utils/riseInput.ts +53 -0
- package/src/TUIRoom/components/Chat/index/index.vue +2 -20
- package/src/TUIRoom/components/ManageMember/MemberControl/useMemberControlHooks.ts +7 -4
- package/src/TUIRoom/components/PreRoom/PasswordDialog.vue +21 -11
- package/src/TUIRoom/components/RoomContent/StreamContainer/index.vue +107 -384
- package/src/TUIRoom/components/RoomContent/StreamContainer/useStreamContainerHooks.ts +5 -112
- package/src/TUIRoom/components/RoomContent/index.vue +1 -5
- package/src/TUIRoom/components/RoomFooter/AIControl.vue +7 -6
- package/src/TUIRoom/components/RoomFooter/BasicBeauty.vue +1 -1
- package/src/TUIRoom/components/RoomFooter/ChatControl.vue +1 -0
- package/src/TUIRoom/components/RoomFooter/EndControl/index.vue +4 -3
- package/src/TUIRoom/components/RoomFooter/EndControl/useEndControlHooks.ts +4 -10
- package/src/TUIRoom/components/RoomFooter/InviteControl.vue +1 -0
- package/src/TUIRoom/components/RoomFooter/ScreenShareControl/Index.vue +3 -3
- package/src/TUIRoom/components/RoomFooter/VirtualBackground.vue +1 -1
- package/src/TUIRoom/components/RoomFooter/WhiteboardControl.vue +13 -2
- package/src/TUIRoom/components/RoomFooter/index/index.vue +0 -6
- package/src/TUIRoom/components/RoomHeader/index/index.vue +0 -17
- package/src/TUIRoom/components/RoomHome/RoomControl/index.vue +0 -2
- package/src/TUIRoom/components/RoomInvite/useRoomInviteHooks.ts +2 -2
- package/src/TUIRoom/components/RoomOverlay/RoomOverlay.vue +13 -0
- package/src/TUIRoom/components/RoomOverlay/useRoomOverlayHooks.ts +21 -0
- package/src/TUIRoom/components/RoomSidebar/index.vue +1 -1
- package/src/TUIRoom/components/ScheduleConference/InvitePanel.vue +1 -0
- package/src/TUIRoom/components/ScheduleConference/ScheduleConferencePanel/index.vue +10 -4
- package/src/TUIRoom/components/ScheduleConference/ScheduleRoomControl.vue +1 -0
- package/src/TUIRoom/components/Stream/MultiStreamView/index.vue +161 -0
- package/src/TUIRoom/components/Stream/MultiStreamView/useMultiStreamViewHook.ts +107 -0
- package/src/TUIRoom/components/Stream/SingleStreamView/index.vue +32 -0
- package/src/TUIRoom/components/Stream/common/LocalScreenView/index.vue +150 -0
- package/src/TUIRoom/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue +1 -6
- package/src/TUIRoom/components/{RoomContent → Stream/common}/StreamList/index.vue +74 -124
- package/src/TUIRoom/components/{RoomContent/StreamRegion → Stream/common}/StreamPlay/index.vue +28 -13
- package/src/TUIRoom/components/{RoomContent → Stream/common}/StreamRegion/index.vue +27 -32
- package/src/TUIRoom/components/common/base/Swiper.vue +20 -6
- package/src/TUIRoom/components/{AITools → common/widgets/AITools}/AISubtitles.vue +1 -1
- package/src/TUIRoom/components/{AITools → common/widgets/AITools}/AITranscription.vue +2 -2
- package/src/TUIRoom/conference.ts +39 -0
- package/src/TUIRoom/conference.vue +10 -23
- package/src/TUIRoom/hooks/useMasterApplyControl.ts +2 -1
- package/src/TUIRoom/index.ts +3 -1
- package/src/TUIRoom/locales/en-US.ts +4 -3
- package/src/TUIRoom/locales/zh-CN.ts +3 -1
- package/src/TUIRoom/preConference.vue +3 -1
- package/src/TUIRoom/services/index.ts +1 -0
- package/src/TUIRoom/services/manager/chatManager.ts +7 -16
- package/src/TUIRoom/services/manager/{MediaManager.ts → mediaManager.ts} +125 -136
- package/src/TUIRoom/services/manager/roomActionManager.ts +5 -0
- package/src/TUIRoom/services/manager/scheduleConferenceManager.ts +26 -5
- package/src/TUIRoom/services/manager/trackingManager.ts +22 -0
- package/src/TUIRoom/services/manager/userManager.ts +201 -7
- package/src/TUIRoom/services/roomService.ts +5 -24
- package/src/TUIRoom/stores/basic.ts +6 -0
- package/src/TUIRoom/stores/room.ts +60 -68
- package/src/TUIRoom/utils/domOperation.ts +27 -0
- package/src/TUIRoom/utils/utils.ts +61 -0
- package/es/components/Chat/ChatEditor/index.vue.mjs +0 -7
- package/es/components/Chat/ChatEditor/index.vue2.mjs +0 -45
- package/es/components/Chat/ChatEditor/useChatEditor.mjs +0 -83
- package/es/components/Chat/EditorTools/index.vue.d.ts +0 -6
- package/es/components/Chat/EditorTools/index.vue.mjs +0 -7
- package/es/components/Chat/EditorTools/index.vue2.mjs +0 -59
- package/es/components/Chat/MessageList/index.vue2.mjs +0 -101
- package/es/components/Chat/MessageList/useMessageListHook.mjs +0 -142
- package/es/components/Chat/MessageTypes/MessageText.vue.d.ts +0 -8
- package/es/components/Chat/MessageTypes/MessageText.vue.mjs +0 -7
- package/es/components/Chat/MessageTypes/MessageText.vue2.mjs +0 -31
- package/es/components/Chat/util.mjs +0 -432
- package/es/components/RoomContent/StreamList/index.vue.d.ts +0 -39
- package/es/components/RoomContent/StreamRegion/LocalScreenView/index.vue.d.ts +0 -14
- package/es/components/RoomContent/StreamRegion/index.vue.d.ts +0 -42
- package/es/components/common/icons/EmojiIcon.vue.mjs +0 -21
- package/lib/components/Chat/ChatEditor/index.vue.js +0 -7
- package/lib/components/Chat/ChatEditor/index.vue2.js +0 -45
- package/lib/components/Chat/ChatEditor/useChatEditor.js +0 -83
- package/lib/components/Chat/EditorTools/index.vue.d.ts +0 -6
- package/lib/components/Chat/EditorTools/index.vue.js +0 -7
- package/lib/components/Chat/EditorTools/index.vue2.js +0 -59
- package/lib/components/Chat/MessageList/index.vue.d.ts +0 -2
- package/lib/components/Chat/MessageList/index.vue2.js +0 -101
- package/lib/components/Chat/MessageList/useMessageListHook.js +0 -142
- package/lib/components/Chat/MessageTypes/MessageText.vue.d.ts +0 -8
- package/lib/components/Chat/MessageTypes/MessageText.vue.js +0 -7
- package/lib/components/Chat/MessageTypes/MessageText.vue2.js +0 -31
- package/lib/components/Chat/util.js +0 -432
- package/lib/components/RoomContent/StreamList/index.vue.d.ts +0 -39
- package/lib/components/RoomContent/StreamRegion/LocalScreenView/index.vue.d.ts +0 -14
- package/lib/components/RoomContent/StreamRegion/index.vue.d.ts +0 -42
- package/lib/components/common/icons/EmojiIcon.vue.d.ts +0 -2
- package/lib/components/common/icons/EmojiIcon.vue.js +0 -21
- /package/es/components/{AITools/AISubtitles.vue.d.ts → RoomOverlay/RoomOverlay.vue.d.ts} +0 -0
- /package/es/components/{Chat/ChatEditor → Stream/common/LocalScreenView}/index.vue.d.ts +0 -0
- /package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue.d.ts +0 -0
- /package/es/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue2.mjs +0 -0
- /package/{lib/components → es/components/common/widgets}/AITools/AISubtitles.vue.d.ts +0 -0
- /package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue.d.ts +0 -0
- /package/{es/components/Chat/MessageList/index.vue.d.ts → lib/components/RoomOverlay/RoomOverlay.vue.d.ts} +0 -0
- /package/lib/components/{Chat/ChatEditor → Stream/common/LocalScreenView}/index.vue.d.ts +0 -0
- /package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue.d.ts +0 -0
- /package/lib/components/{RoomContent/StreamRegion → Stream/common}/StreamCover/index.vue2.js +0 -0
- /package/{es/components/common/icons/EmojiIcon.vue.d.ts → lib/components/common/widgets/AITools/AISubtitles.vue.d.ts} +0 -0
- /package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue.d.ts +0 -0
package/es/stores/room.mjs
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { defineStore } from "pinia";
|
|
2
|
-
import { TUIVideoQuality, TUISeatMode,
|
|
2
|
+
import { TUIVideoQuality, TUISeatMode, TUIVideoStreamType, TUIRole, TUIMediaDeviceType, TUIInvitationStatus } from "@tencentcloud/tuiroom-engine-electron";
|
|
3
3
|
import { useBasicStore } from "./basic.mjs";
|
|
4
4
|
import { set, del } from "../utils/vue.mjs";
|
|
5
5
|
import { isMobile } from "../utils/environment.mjs";
|
|
6
|
+
import "../services/main.mjs";
|
|
7
|
+
import { roomService } from "../services/roomService.mjs";
|
|
8
|
+
import "../locales/index.mjs";
|
|
9
|
+
import "mitt";
|
|
10
|
+
import "../services/manager/roomActionManager.mjs";
|
|
11
|
+
import "@tencentcloud/tui-core";
|
|
6
12
|
function getNewStreamInfo(userId, streamType) {
|
|
7
13
|
const newStreamInfo = {
|
|
8
14
|
userId,
|
|
@@ -10,7 +16,8 @@ function getNewStreamInfo(userId, streamType) {
|
|
|
10
16
|
hasVideoStream: false,
|
|
11
17
|
streamType: streamType || TUIVideoStreamType.kCameraStream,
|
|
12
18
|
isLoading: false,
|
|
13
|
-
|
|
19
|
+
playDomMap: /* @__PURE__ */ new Map(),
|
|
20
|
+
timestamp: Date.now()
|
|
14
21
|
};
|
|
15
22
|
return newStreamInfo;
|
|
16
23
|
}
|
|
@@ -29,7 +36,8 @@ function getNewUserInfo(userId) {
|
|
|
29
36
|
isUserApplyingToAnchor: false,
|
|
30
37
|
isInvitingUserToAnchor: false,
|
|
31
38
|
isInRoom: false,
|
|
32
|
-
status: TUIInvitationStatus.kNone
|
|
39
|
+
status: TUIInvitationStatus.kNone,
|
|
40
|
+
timestamp: Date.now()
|
|
33
41
|
};
|
|
34
42
|
return newUserInfo;
|
|
35
43
|
}
|
|
@@ -39,29 +47,15 @@ function getRecordStreamType(streamType) {
|
|
|
39
47
|
}
|
|
40
48
|
return streamType;
|
|
41
49
|
}
|
|
42
|
-
function sortStreamList(streamList) {
|
|
43
|
-
const basicStore = useBasicStore();
|
|
44
|
-
return streamList.sort((item1, item2) => {
|
|
45
|
-
if (item1.userId === basicStore.userId) {
|
|
46
|
-
return -1;
|
|
47
|
-
}
|
|
48
|
-
if (item2.userId === basicStore.userId) {
|
|
49
|
-
return 1;
|
|
50
|
-
}
|
|
51
|
-
if (item1.streamType === TUIVideoStreamType.kScreenStream) {
|
|
52
|
-
return -1;
|
|
53
|
-
}
|
|
54
|
-
if (item2.streamType === TUIVideoStreamType.kScreenStream) {
|
|
55
|
-
return 1;
|
|
56
|
-
}
|
|
57
|
-
return 0;
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
50
|
const useRoomStore = defineStore("room", {
|
|
61
51
|
state: () => ({
|
|
62
52
|
userInfoObj: {},
|
|
63
53
|
streamInfoObj: {},
|
|
64
54
|
userVolumeObj: {},
|
|
55
|
+
currentSpeakerInfo: {
|
|
56
|
+
speakerUserId: "",
|
|
57
|
+
remoteSpeakerUserId: ""
|
|
58
|
+
},
|
|
65
59
|
canControlSelfAudio: true,
|
|
66
60
|
canControlSelfVideo: true,
|
|
67
61
|
localVideoQuality: isMobile ? TUIVideoQuality.kVideoQuality_360p : TUIVideoQuality.kVideoQuality_720p,
|
|
@@ -82,8 +76,6 @@ const useRoomStore = defineStore("room", {
|
|
|
82
76
|
maxSeatCount: 20,
|
|
83
77
|
password: "",
|
|
84
78
|
roomName: "",
|
|
85
|
-
// Visual area user flow list
|
|
86
|
-
hasOtherScreenShare: false,
|
|
87
79
|
isOnStateTabActive: true,
|
|
88
80
|
isLocalUserSharing: false,
|
|
89
81
|
isWhiteboardVisiable: false,
|
|
@@ -97,7 +89,9 @@ const useRoomStore = defineStore("room", {
|
|
|
97
89
|
},
|
|
98
90
|
localStream(state) {
|
|
99
91
|
const basicStore = useBasicStore();
|
|
100
|
-
|
|
92
|
+
if (this.isFreeSpeakMode || this.localUser.onSeat) {
|
|
93
|
+
return state.streamInfoObj[`${basicStore.userId}_${TUIVideoStreamType.kCameraStream}`] || getNewStreamInfo(basicStore.userId, TUIVideoStreamType.kCameraStream);
|
|
94
|
+
}
|
|
101
95
|
},
|
|
102
96
|
localScreenStream(state) {
|
|
103
97
|
const basicStore = useBasicStore();
|
|
@@ -153,7 +147,9 @@ const useRoomStore = defineStore("room", {
|
|
|
153
147
|
return this.userInfoObj[item.userId].onSeat;
|
|
154
148
|
});
|
|
155
149
|
}
|
|
156
|
-
return
|
|
150
|
+
return streamList.sort(
|
|
151
|
+
roomService.userManager.getStreamListSortComparator()
|
|
152
|
+
);
|
|
157
153
|
},
|
|
158
154
|
remoteStreamList() {
|
|
159
155
|
const basicStore = useBasicStore();
|
|
@@ -164,32 +160,18 @@ const useRoomStore = defineStore("room", {
|
|
|
164
160
|
(stream) => stream.streamType === TUIVideoStreamType.kCameraStream
|
|
165
161
|
);
|
|
166
162
|
},
|
|
163
|
+
remoteScreenStream() {
|
|
164
|
+
return this.remoteStreamList.find(
|
|
165
|
+
(stream) => stream.streamType === TUIVideoStreamType.kScreenStream && stream.hasVideoStream
|
|
166
|
+
);
|
|
167
|
+
},
|
|
167
168
|
streamNumber() {
|
|
168
169
|
return this.streamList.length;
|
|
169
170
|
},
|
|
170
171
|
userList() {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
return -1;
|
|
175
|
-
}
|
|
176
|
-
if (item2.userId === basicStore.userId) {
|
|
177
|
-
return 1;
|
|
178
|
-
}
|
|
179
|
-
if (item1.userRole === TUIRole.kRoomOwner) {
|
|
180
|
-
return -1;
|
|
181
|
-
}
|
|
182
|
-
if (item2.userRole === TUIRole.kRoomOwner) {
|
|
183
|
-
return 1;
|
|
184
|
-
}
|
|
185
|
-
if (item1.userRole === TUIRole.kAdministrator) {
|
|
186
|
-
return -1;
|
|
187
|
-
}
|
|
188
|
-
if (item2.userRole === TUIRole.kAdministrator) {
|
|
189
|
-
return 1;
|
|
190
|
-
}
|
|
191
|
-
return 0;
|
|
192
|
-
});
|
|
172
|
+
return [...Object.values(this.userInfoObj)].sort(
|
|
173
|
+
roomService.userManager.getUserListSortComparator()
|
|
174
|
+
);
|
|
193
175
|
},
|
|
194
176
|
userNumber() {
|
|
195
177
|
return this.userList.filter((item) => item.isInRoom).length;
|
|
@@ -339,6 +321,9 @@ const useRoomStore = defineStore("room", {
|
|
|
339
321
|
set(this.userVolumeObj, userId, volume);
|
|
340
322
|
});
|
|
341
323
|
},
|
|
324
|
+
setCurrentSpeakerInfo(speakerInfo) {
|
|
325
|
+
Object.assign(this.currentSpeakerInfo, speakerInfo);
|
|
326
|
+
},
|
|
342
327
|
setCurrentDeviceId(type, deviceId) {
|
|
343
328
|
switch (type) {
|
|
344
329
|
case TUIMediaDeviceType.kMediaDeviceTypeVideoCamera:
|
|
@@ -504,9 +489,6 @@ const useRoomStore = defineStore("room", {
|
|
|
504
489
|
remoteUserInfo.inviteToAnchorRequestId = "";
|
|
505
490
|
}
|
|
506
491
|
},
|
|
507
|
-
setHasOtherScreenShare(hasScreenShare) {
|
|
508
|
-
this.hasOtherScreenShare = hasScreenShare;
|
|
509
|
-
},
|
|
510
492
|
setOnStageTabStatus(isOnStateTabActive) {
|
|
511
493
|
this.isOnStateTabActive = isOnStateTabActive;
|
|
512
494
|
},
|
|
@@ -523,25 +505,26 @@ const useRoomStore = defineStore("room", {
|
|
|
523
505
|
reset() {
|
|
524
506
|
const basicStore = useBasicStore();
|
|
525
507
|
basicStore.setIsOpenMic(false);
|
|
508
|
+
this.resetRoomData();
|
|
509
|
+
this.resetDeviceData();
|
|
510
|
+
},
|
|
511
|
+
resetRoomData() {
|
|
526
512
|
this.streamInfoObj = {};
|
|
527
513
|
this.userInfoObj = {};
|
|
528
514
|
this.userVolumeObj = {};
|
|
515
|
+
this.currentSpeakerInfo = {
|
|
516
|
+
speakerUserId: "",
|
|
517
|
+
remoteSpeakerUserId: ""
|
|
518
|
+
};
|
|
529
519
|
this.canControlSelfAudio = true;
|
|
530
520
|
this.canControlSelfVideo = true;
|
|
531
521
|
this.localVideoQuality = TUIVideoQuality.kVideoQuality_720p;
|
|
532
|
-
this.currentCameraId = "";
|
|
533
|
-
this.currentMicrophoneId = "";
|
|
534
|
-
this.currentSpeakerId = "";
|
|
535
|
-
this.cameraList = [];
|
|
536
|
-
this.microphoneList = [];
|
|
537
|
-
this.speakerList = [];
|
|
538
522
|
this.masterUserId = "";
|
|
539
523
|
this.isMicrophoneDisableForAllUser = false;
|
|
540
524
|
this.isCameraDisableForAllUser = false;
|
|
541
525
|
this.isScreenShareDisableForAllUser = false;
|
|
542
526
|
this.isSeatEnabled = void 0;
|
|
543
527
|
this.seatMode = TUISeatMode.kFreeToTake;
|
|
544
|
-
this.hasOtherScreenShare = false;
|
|
545
528
|
this.isOnStateTabActive = true;
|
|
546
529
|
this.maxSeatCount = 20;
|
|
547
530
|
this.password = "";
|
|
@@ -550,9 +533,19 @@ const useRoomStore = defineStore("room", {
|
|
|
550
533
|
this.isWhiteboardVisiable = false;
|
|
551
534
|
this.isSharingScreen = false;
|
|
552
535
|
this.isAnnotationVisiable = false;
|
|
536
|
+
},
|
|
537
|
+
resetDeviceData() {
|
|
538
|
+
this.currentCameraId = "";
|
|
539
|
+
this.currentMicrophoneId = "";
|
|
540
|
+
this.currentSpeakerId = "";
|
|
541
|
+
this.cameraList = [];
|
|
542
|
+
this.microphoneList = [];
|
|
543
|
+
this.speakerList = [];
|
|
553
544
|
}
|
|
554
545
|
}
|
|
555
546
|
});
|
|
556
547
|
export {
|
|
548
|
+
getNewStreamInfo,
|
|
549
|
+
getNewUserInfo,
|
|
557
550
|
useRoomStore
|
|
558
551
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EUserEventNames } from "./logger-constants.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { getLogPrefix, LogContext, LogLevelType } from "./logger-utils.mjs";
|
|
3
3
|
let currentLogLevel = LogLevelType.LOG_LEVEL_DEBUG;
|
|
4
4
|
const logger = {
|
|
5
5
|
debug(...args) {
|
|
@@ -38,4 +38,8 @@ export declare function getBoundingClientRectSync(selector: string | HTMLElement
|
|
|
38
38
|
export declare function getScrollInfo(selector: string | HTMLElement, instanceName?: registeredPage): Promise<IScrollInfo>;
|
|
39
39
|
export declare function getScrollInfoSync(selector: string | HTMLElement): IScrollInfo;
|
|
40
40
|
export declare function getFields(selector: string | HTMLElement, instanceName?: registeredPage): Promise<IFields>;
|
|
41
|
+
export declare function getContentSize(element: HTMLElement): {
|
|
42
|
+
width: number;
|
|
43
|
+
height: number;
|
|
44
|
+
};
|
|
41
45
|
export {};
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
if (isWeChat) {
|
|
18
|
-
return Promise.reject(
|
|
19
|
-
new Error("uni.getScrollInfo() need instanceName in params.")
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
return Promise.reject(new Error("getScrollInfo() occur error"));
|
|
1
|
+
import "./environment.mjs";
|
|
2
|
+
function getContentSize(element) {
|
|
3
|
+
const computedStyle = getComputedStyle(element);
|
|
4
|
+
const paddingTop = Number(computedStyle.paddingTop.replace("px", ""));
|
|
5
|
+
const paddingBottom = Number(computedStyle.paddingBottom.replace("px", ""));
|
|
6
|
+
const borderTop = Number(computedStyle.borderTopWidth.replace("px", ""));
|
|
7
|
+
const borderBottom = Number(
|
|
8
|
+
computedStyle.borderBottomWidth.replace("px", "")
|
|
9
|
+
);
|
|
10
|
+
const paddingLeft = Number(computedStyle.paddingLeft.replace("px", ""));
|
|
11
|
+
const paddingRight = Number(computedStyle.paddingRight.replace("px", ""));
|
|
12
|
+
const borderLeft = Number(computedStyle.borderLeftWidth.replace("px", ""));
|
|
13
|
+
const borderRight = Number(computedStyle.borderRightWidth.replace("px", ""));
|
|
14
|
+
const contentWidth = element.offsetWidth - paddingLeft - paddingRight - borderLeft - borderRight;
|
|
15
|
+
const contentHeight = element.offsetHeight - paddingTop - paddingBottom - borderTop - borderBottom;
|
|
16
|
+
return { width: contentWidth, height: contentHeight };
|
|
23
17
|
}
|
|
24
18
|
export {
|
|
25
|
-
|
|
19
|
+
getContentSize
|
|
26
20
|
};
|
package/es/utils/utils.d.ts
CHANGED
|
@@ -62,3 +62,14 @@ export declare function convertSecondsToHMS(seconds: number): {
|
|
|
62
62
|
export declare function getNanoId(size?: number): string;
|
|
63
63
|
export declare function findLastIndex<T>(array: T[], predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): number;
|
|
64
64
|
export declare function formatTimestampToTime(timestamp: number, format?: string): string;
|
|
65
|
+
export type Comparator<T> = (a: T, b: T) => -1 | 0 | 1;
|
|
66
|
+
/**
|
|
67
|
+
* Creates a new combined {@link Comparator<T>} which sorts items by the given comparators.
|
|
68
|
+
* The comparators are applied in the order they are given (left -> right).
|
|
69
|
+
*
|
|
70
|
+
* @param comparators the comparators to use for sorting.
|
|
71
|
+
* @returns a combined {@link Comparator<T>}.
|
|
72
|
+
*/
|
|
73
|
+
export declare const combineComparators: <T>(...comparators: Comparator<T>[]) => Comparator<T>;
|
|
74
|
+
export declare const createComparator: <T>(compareRules: (data1: T, data2: T) => boolean) => (a: T, b: T) => 1 | -1 | 0;
|
|
75
|
+
export declare function arrayIsEqual<T>(arr1: T[], arr2: T[]): boolean;
|
package/es/utils/utils.mjs
CHANGED
|
@@ -176,10 +176,53 @@ function formatTimestampToTime(timestamp, format = "MM-DD HH:mm") {
|
|
|
176
176
|
(match) => replacements[match]
|
|
177
177
|
);
|
|
178
178
|
}
|
|
179
|
+
const combineComparators = (...comparators) => {
|
|
180
|
+
return (a, b) => {
|
|
181
|
+
for (const comparator of comparators) {
|
|
182
|
+
const result = comparator(a, b);
|
|
183
|
+
if (result !== 0) return result;
|
|
184
|
+
}
|
|
185
|
+
return 0;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
const createComparator = (compareRules) => {
|
|
189
|
+
return (a, b) => {
|
|
190
|
+
if (compareRules(a, b) && compareRules(b, a)) {
|
|
191
|
+
return 0;
|
|
192
|
+
}
|
|
193
|
+
if (compareRules(a, b)) {
|
|
194
|
+
return -1;
|
|
195
|
+
}
|
|
196
|
+
if (compareRules(b, a)) {
|
|
197
|
+
return 1;
|
|
198
|
+
}
|
|
199
|
+
return 0;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
function arrayIsEqual(arr1, arr2) {
|
|
203
|
+
if (arr1.length !== arr2.length) {
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
for (let i = 0; i < arr1.length; i++) {
|
|
207
|
+
if (typeof arr1[i] === "object" && typeof arr2[i] === "object" && arr1[i] !== null && arr2[i] !== null) {
|
|
208
|
+
if (!arrayIsEqual(arr1[i], arr2[i])) {
|
|
209
|
+
return false;
|
|
210
|
+
}
|
|
211
|
+
} else {
|
|
212
|
+
if (arr1[i] !== arr2[i]) {
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return true;
|
|
218
|
+
}
|
|
179
219
|
export {
|
|
180
220
|
addSuffix,
|
|
221
|
+
arrayIsEqual,
|
|
181
222
|
calculateByteLength,
|
|
223
|
+
combineComparators,
|
|
182
224
|
convertSecondsToHMS,
|
|
225
|
+
createComparator,
|
|
183
226
|
debounce,
|
|
184
227
|
deepClone,
|
|
185
228
|
exitFullScreen,
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const Emoji = {
|
|
4
|
+
"[TUIEmoji_Smile]": "[微笑]",
|
|
5
|
+
"[TUIEmoji_Expect]": "[期待]",
|
|
6
|
+
"[TUIEmoji_Blink]": "[眨眼]",
|
|
7
|
+
"[TUIEmoji_Guffaw]": "[大笑]",
|
|
8
|
+
"[TUIEmoji_KindSmile]": "[姨母笑]",
|
|
9
|
+
"[TUIEmoji_Haha]": "[哈哈哈]",
|
|
10
|
+
"[TUIEmoji_Cheerful]": "[愉快]",
|
|
11
|
+
"[TUIEmoji_Speechless]": "[無語]",
|
|
12
|
+
"[TUIEmoji_Amazed]": "[驚訝]",
|
|
13
|
+
"[TUIEmoji_Sorrow]": "[悲傷]",
|
|
14
|
+
"[TUIEmoji_Complacent]": "[得意]",
|
|
15
|
+
"[TUIEmoji_Silly]": "[傻了]",
|
|
16
|
+
"[TUIEmoji_Lustful]": "[色]",
|
|
17
|
+
"[TUIEmoji_Giggle]": "[憨笑]",
|
|
18
|
+
"[TUIEmoji_Kiss]": "[親親]",
|
|
19
|
+
"[TUIEmoji_Wail]": "[大哭]",
|
|
20
|
+
"[TUIEmoji_TearsLaugh]": "[哭笑]",
|
|
21
|
+
"[TUIEmoji_Trapped]": "[困]",
|
|
22
|
+
"[TUIEmoji_Mask]": "[口罩]",
|
|
23
|
+
"[TUIEmoji_Fear]": "[恐懼]",
|
|
24
|
+
"[TUIEmoji_BareTeeth]": "[齜牙]",
|
|
25
|
+
"[TUIEmoji_FlareUp]": "[發怒]",
|
|
26
|
+
"[TUIEmoji_Yawn]": "[打哈欠]",
|
|
27
|
+
"[TUIEmoji_Tact]": "[機智]",
|
|
28
|
+
"[TUIEmoji_Stareyes]": "[星星眼]",
|
|
29
|
+
"[TUIEmoji_ShutUp]": "[閉嘴]",
|
|
30
|
+
"[TUIEmoji_Sigh]": "[嘆氣]",
|
|
31
|
+
"[TUIEmoji_Hehe]": "[呵呵]",
|
|
32
|
+
"[TUIEmoji_Silent]": "[收聲]",
|
|
33
|
+
"[TUIEmoji_Surprised]": "[驚喜]",
|
|
34
|
+
"[TUIEmoji_Askance]": "[白眼]",
|
|
35
|
+
"[TUIEmoji_Ok]": "[OK]",
|
|
36
|
+
"[TUIEmoji_Shit]": "[便便]",
|
|
37
|
+
"[TUIEmoji_Monster]": "[怪獸]",
|
|
38
|
+
"[TUIEmoji_Daemon]": "[惡魔]",
|
|
39
|
+
"[TUIEmoji_Rage]": "[惡魔怒]",
|
|
40
|
+
"[TUIEmoji_Fool]": "[衰]",
|
|
41
|
+
"[TUIEmoji_Pig]": "[豬]",
|
|
42
|
+
"[TUIEmoji_Cow]": "[牛]",
|
|
43
|
+
"[TUIEmoji_Ai]": "[AI]",
|
|
44
|
+
"[TUIEmoji_Skull]": "[骷髏]",
|
|
45
|
+
"[TUIEmoji_Bombs]": "[炸彈]",
|
|
46
|
+
"[TUIEmoji_Coffee]": "[咖啡]",
|
|
47
|
+
"[TUIEmoji_Cake]": "[蛋糕]",
|
|
48
|
+
"[TUIEmoji_Beer]": "[啤酒]",
|
|
49
|
+
"[TUIEmoji_Flower]": "[花]",
|
|
50
|
+
"[TUIEmoji_Watermelon]": "[瓜]",
|
|
51
|
+
"[TUIEmoji_Rich]": "[壕]",
|
|
52
|
+
"[TUIEmoji_Heart]": "[愛心]",
|
|
53
|
+
"[TUIEmoji_Moon]": "[月亮]",
|
|
54
|
+
"[TUIEmoji_Sun]": "[太陽]",
|
|
55
|
+
"[TUIEmoji_Star]": "[星星]",
|
|
56
|
+
"[TUIEmoji_RedPacket]": "[紅包]",
|
|
57
|
+
"[TUIEmoji_Celebrate]": "[慶祝]",
|
|
58
|
+
"[TUIEmoji_Bless]": "[福]",
|
|
59
|
+
"[TUIEmoji_Fortune]": "[發]",
|
|
60
|
+
"[TUIEmoji_Convinced]": "[服]",
|
|
61
|
+
"[TUIEmoji_Prohibit]": "[禁]",
|
|
62
|
+
"[TUIEmoji_666]": "[666]",
|
|
63
|
+
"[TUIEmoji_857]": "[857]",
|
|
64
|
+
"[TUIEmoji_Knife]": "[刀]",
|
|
65
|
+
"[TUIEmoji_Like]": "[讚]"
|
|
66
|
+
};
|
|
67
|
+
exports.default = Emoji;
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const index_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const TUIChat = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const TUIChat = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-5c1ad570"]]);
|
|
7
7
|
exports.default = TUIChat;
|
|
@@ -31,13 +31,11 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
31
31
|
const featureConfig = config.default.getFeatureConfig();
|
|
32
32
|
Vue.onMounted(() => {
|
|
33
33
|
TUIChatEngine.TUIStore.watch(TUIChatEngine.StoreName.CONV, {
|
|
34
|
-
currentConversationID: onCurrentConversationIDUpdate,
|
|
35
34
|
currentConversation: onCurrentConversationUpdate
|
|
36
35
|
});
|
|
37
36
|
});
|
|
38
37
|
Vue.onUnmounted(() => {
|
|
39
38
|
TUIChatEngine.TUIStore.unwatch(TUIChatEngine.StoreName.CONV, {
|
|
40
|
-
currentConversationID: onCurrentConversationIDUpdate,
|
|
41
39
|
currentConversation: onCurrentConversationUpdate
|
|
42
40
|
});
|
|
43
41
|
reset();
|
|
@@ -113,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
113
111
|
var _a;
|
|
114
112
|
(_a = messageListRef.value) == null ? void 0 : _a.oneByOneForwardMessage();
|
|
115
113
|
}
|
|
116
|
-
function
|
|
114
|
+
function updateUIUserNotInGroup(conversation) {
|
|
117
115
|
if ((conversation == null ? void 0 : conversation.operationType) > 0) {
|
|
118
116
|
headerExtensionList.value = [];
|
|
119
117
|
isNotInGroup.value = true;
|
|
@@ -123,19 +121,23 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
123
121
|
notInGroupReason.value = void 0;
|
|
124
122
|
}
|
|
125
123
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
124
|
+
function onCurrentConversationUpdate(conversation) {
|
|
125
|
+
updateUIUserNotInGroup(conversation);
|
|
126
|
+
if (!conversation) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (currentConversationID.value === (conversation == null ? void 0 : conversation.conversationID)) {
|
|
128
130
|
return;
|
|
129
131
|
}
|
|
130
132
|
isGroup.value = false;
|
|
131
133
|
let conversationType = TUIChatEngine.TYPES.CONV_C2C;
|
|
134
|
+
const conversationID = conversation.conversationID;
|
|
132
135
|
if (conversationID.startsWith(TUIChatEngine.TYPES.CONV_GROUP)) {
|
|
133
136
|
conversationType = TUIChatEngine.TYPES.CONV_GROUP;
|
|
134
137
|
isGroup.value = true;
|
|
135
138
|
groupID.value = conversationID.replace(TUIChatEngine.TYPES.CONV_GROUP, "");
|
|
136
139
|
}
|
|
137
140
|
headerExtensionList.value = [];
|
|
138
|
-
currentConversationID.value = conversationID;
|
|
139
141
|
isMultipleSelectMode.value = false;
|
|
140
142
|
config.default.setChatType(conversationType);
|
|
141
143
|
TUICore.notifyEvent(TUICore.TUIConstants.TUIChat.EVENT.CHAT_STATE_CHANGED, TUICore.TUIConstants.TUIChat.EVENT_SUB_KEY.CHAT_OPENED, { groupID: groupID.value });
|
|
@@ -144,9 +146,18 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
144
146
|
method: TUICore.TUIConstants.TUICustomerServicePlugin.SERVICE.METHOD.ACTIVE_CONVERSATION,
|
|
145
147
|
params: { conversationID }
|
|
146
148
|
});
|
|
149
|
+
if (config.default.getChatType() === TUICore.TUIConstants.TUIChat.TYPE.ROOM) {
|
|
150
|
+
if (config.default.getFeatureConfig(TUICore.TUIConstants.TUIChat.FEATURE.InputVoice) === true) {
|
|
151
|
+
config.default.setTheme("light");
|
|
152
|
+
currentConversationID.value = "";
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
147
156
|
if (config.default.getChatType() === TUICore.TUIConstants.TUIChat.TYPE.GROUP) {
|
|
148
157
|
headerExtensionList.value = TUICore.getExtensionList(TUICore.TUIConstants.TUIChat.EXTENSION.CHAT_HEADER.EXT_ID);
|
|
149
158
|
}
|
|
159
|
+
TUIChatEngine.TUIStore.update(TUIChatEngine.StoreName.CUSTOM, "activeConversation", conversationID);
|
|
160
|
+
currentConversationID.value = conversationID;
|
|
150
161
|
}
|
|
151
162
|
return (_ctx, _cache) => {
|
|
152
163
|
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
@@ -169,9 +180,11 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
169
180
|
!Vue.unref(env.isPC) && "tui-chat-H5-header",
|
|
170
181
|
Vue.unref(env.isUniFrameWork) && "tui-chat-uniapp-header"
|
|
171
182
|
]),
|
|
183
|
+
isGroup: Vue.unref(isGroup),
|
|
172
184
|
headerExtensionList: Vue.unref(headerExtensionList),
|
|
173
|
-
onCloseChat: closeChat
|
|
174
|
-
|
|
185
|
+
onCloseChat: closeChat,
|
|
186
|
+
onOpenGroupManagement: handleGroup
|
|
187
|
+
}, null, 8, ["class", "isGroup", "headerExtensionList"]),
|
|
175
188
|
Vue.createVNode(index_vue_vue_type_script_setup_true_lang.default, { onToggleMultipleSelectMode: toggleMultipleSelectMode }),
|
|
176
189
|
Vue.createVNode(index$1.default, {
|
|
177
190
|
ref_key: "messageListRef",
|
|
@@ -227,7 +240,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
227
240
|
}, null, 8, ["class", "enableAt", "muteText", "placeholder", "inputToolbarDisplayType"])
|
|
228
241
|
], 64))
|
|
229
242
|
], 2)) : Vue.createCommentVNode("", true),
|
|
230
|
-
!Vue.unref(isNotInGroup) && Vue.unref(env.isUniFrameWork) && Vue.unref(isGroup) && Vue.unref(headerExtensionList).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
243
|
+
!Vue.unref(isNotInGroup) && !Vue.unref(env.isApp) && Vue.unref(env.isUniFrameWork) && Vue.unref(isGroup) && Vue.unref(headerExtensionList).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
231
244
|
key: 2,
|
|
232
245
|
class: "group-profile",
|
|
233
246
|
onClick: handleGroup
|
|
@@ -4,11 +4,11 @@ const Vue = require("vue");
|
|
|
4
4
|
const TUIChatEngine = require("@tencentcloud/chat-uikit-engine");
|
|
5
5
|
require("../../../adapter-vue.js");
|
|
6
6
|
const messageInputEditor = require("./message-input-editor.vue.js");
|
|
7
|
-
const index
|
|
7
|
+
const index = require("./message-input-at/index.vue.js");
|
|
8
8
|
const messageInputButton = require("./message-input-button.vue.js");
|
|
9
|
-
const index$
|
|
9
|
+
const index$1 = require("./message-input-quote/index.vue.js");
|
|
10
10
|
const sendMessage = require("../utils/sendMessage.js");
|
|
11
|
-
const index = require("../emoji-config/index.js");
|
|
11
|
+
const index$2 = require("../emoji-config/index.js");
|
|
12
12
|
const env = require("../../../utils/env.js");
|
|
13
13
|
const _hoisted_1 = { class: "message-input-wrapper" };
|
|
14
14
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
@@ -68,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
68
68
|
if (!_editorContentList || !currentConversation.value) return;
|
|
69
69
|
const editorContentList = _editorContentList.map((editor2) => {
|
|
70
70
|
if (editor2.type === "text") {
|
|
71
|
-
editor2.payload.text = index.transformTextWithEmojiNamesToKeys(editor2.payload.text);
|
|
71
|
+
editor2.payload.text = index$2.transformTextWithEmojiNamesToKeys(editor2.payload.text);
|
|
72
72
|
}
|
|
73
73
|
return editor2;
|
|
74
74
|
});
|
|
@@ -125,7 +125,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
125
125
|
key: 0,
|
|
126
126
|
onSendMessage: sendMessage$1
|
|
127
127
|
})) : Vue.createCommentVNode("", true),
|
|
128
|
-
props.enableAt ? (Vue.openBlock(), Vue.createBlock(index
|
|
128
|
+
props.enableAt ? (Vue.openBlock(), Vue.createBlock(index.default, {
|
|
129
129
|
key: 1,
|
|
130
130
|
ref_key: "messageInputAtRef",
|
|
131
131
|
ref: messageInputAtRef,
|
|
@@ -133,7 +133,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
133
133
|
onOnAtListOpen: onAtListOpen
|
|
134
134
|
}, null, 512)) : Vue.createCommentVNode("", true)
|
|
135
135
|
], 2),
|
|
136
|
-
Vue.createVNode(index$
|
|
136
|
+
Vue.createVNode(index$1.default)
|
|
137
137
|
]);
|
|
138
138
|
};
|
|
139
139
|
}
|
package/lib/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue.js
CHANGED
|
@@ -4,5 +4,5 @@ const messageInputEditor_vue_vue_type_script_setup_true_lang = require("./messag
|
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
7
|
-
const MessageInputEditor = /* @__PURE__ */ _pluginVue_exportHelper.default(messageInputEditor_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
7
|
+
const MessageInputEditor = /* @__PURE__ */ _pluginVue_exportHelper.default(messageInputEditor_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-704cb70e"]]);
|
|
8
8
|
exports.default = MessageInputEditor;
|
package/lib/components/Chat/ChatKit/components/TUIChat/message-input/message-input-editor.vue2.js
CHANGED
|
@@ -12,6 +12,7 @@ const Mention = require("@tiptap/extension-mention");
|
|
|
12
12
|
const messageInputFile = require("./message-input-file.js");
|
|
13
13
|
const index = require("./message-input-at/index.js");
|
|
14
14
|
const index$1 = require("../emoji-config/index.js");
|
|
15
|
+
const riseInput = require("../../../utils/riseInput.js");
|
|
15
16
|
const env = require("../../../utils/env.js");
|
|
16
17
|
const conversationDraft = require("../utils/conversationDraft.js");
|
|
17
18
|
const _hoisted_1 = {
|
|
@@ -68,6 +69,13 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
68
69
|
const editorDom = Vue.ref();
|
|
69
70
|
let editor = null;
|
|
70
71
|
const fileMap = /* @__PURE__ */ new Map();
|
|
72
|
+
const DisableDefaultEnter = core.Extension.create({
|
|
73
|
+
addKeyboardShortcuts() {
|
|
74
|
+
return {
|
|
75
|
+
Enter: () => true
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
71
79
|
function onCurrentConversationIDUpdated(conversationID) {
|
|
72
80
|
if (currentConversationID.value !== conversationID) {
|
|
73
81
|
if (currentConversationID.value) {
|
|
@@ -95,6 +103,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
95
103
|
Document,
|
|
96
104
|
Paragraph,
|
|
97
105
|
Text,
|
|
106
|
+
DisableDefaultEnter,
|
|
98
107
|
Placeholder.configure({
|
|
99
108
|
emptyEditorClass: "is-editor-empty",
|
|
100
109
|
placeholder: placeholder.value
|
|
@@ -149,6 +158,10 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
149
158
|
isEditorBlur.value = true;
|
|
150
159
|
}
|
|
151
160
|
}) : null;
|
|
161
|
+
if (env.isH5) {
|
|
162
|
+
const targetBottomDom = document.querySelector(".message-input-toolbar") || editorDom.value;
|
|
163
|
+
riseInput.default(editorDom.value, targetBottomDom);
|
|
164
|
+
}
|
|
152
165
|
TUIChatEngine.TUIStore.watch(TUIChatEngine.StoreName.CONV, {
|
|
153
166
|
currentConversationID: onCurrentConversationIDUpdated
|
|
154
167
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
-
onClose: (...args: any[]) => void;
|
|
3
2
|
sendMessage: (...args: any[]) => void;
|
|
3
|
+
onClose: (...args: any[]) => void;
|
|
4
4
|
insertEmoji: (...args: any[]) => void;
|
|
5
5
|
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
6
6
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const index_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const MessageInputToolbar = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const MessageInputToolbar = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-fe51a5a7"]]);
|
|
7
7
|
exports.default = MessageInputToolbar;
|