@tencentcloud/roomkit-electron-vue3 2.7.1 → 2.8.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/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 +23 -10
- 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-toolbar/emoji-picker/emoji-picker-dialog.vue.d.ts +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-list/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/TUIChat/message-list/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/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 +2 -1
- package/es/components/Chat/ChatKit/components/common/BottomPopup/index.vue.mjs +1 -1
- package/es/components/Chat/ChatKit/components/common/BottomPopup/index.vue2.mjs +2 -2
- 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/Toast/index.vue.d.ts +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 +3 -3
- 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 +3 -1
- 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/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/useMemberControlHooks.d.ts +2 -2
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.mjs +3 -3
- package/es/components/ManageMember/MemberInvite/MemberInvite.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 +1 -1
- package/es/components/RoomFooter/BasicBeauty.vue.mjs +1 -1
- package/es/components/RoomFooter/BasicBeauty.vue2.mjs +6 -3
- 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 +4 -6
- 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 +3 -3
- package/es/components/RoomFooter/VirtualBackground.vue.mjs +1 -1
- package/es/components/RoomFooter/VirtualBackground.vue2.mjs +5 -2
- package/es/components/RoomFooter/WhiteboardControl.vue.mjs +13 -3
- 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.vue.mjs +1 -1
- package/es/components/RoomHeader/UserInfo/index.vue2.mjs +3 -2
- package/es/components/RoomHeader/index/LayoutControl.vue2.mjs +1 -1
- 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 +1 -2
- package/es/components/RoomInvite/InvitationNotification.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/RoomSidebar/index.vue.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 +11 -7
- package/es/components/ScheduleConference/ScheduleRoomControl.vue.mjs +1 -1
- package/es/components/ScheduleConference/ScheduleRoomControl.vue2.mjs +3 -3
- package/es/components/ScheduleConference/ScheduleRoomList.vue2.mjs +2 -2
- package/es/components/ScheduleConference/ShareLink.vue2.mjs +1 -1
- 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 +17 -12
- 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/base/Button.vue.d.ts +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/IconButton.vue.d.ts +3 -3
- package/es/components/common/base/Input/index.vue.d.ts +4 -4
- package/es/components/common/base/Message/Message.vue.d.ts +4 -4
- package/es/components/common/base/MessageBox/index.vue.d.ts +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/{AITools → common/widgets/AITools}/AISubtitles.vue.mjs +2 -2
- package/es/components/{AITools → common/widgets/AITools}/AISubtitles.vue2.mjs +8 -7
- package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue.mjs +2 -2
- package/es/components/{AITools → common/widgets/AITools}/AITranscription.vue2.mjs +9 -8
- package/es/conference.d.ts +6 -0
- package/es/conference.mjs +7 -1
- package/es/conference.vue.mjs +1 -1
- package/es/conference.vue2.mjs +14 -24
- package/es/extension/chatExtension.mjs +1 -1
- package/es/extension/utils/interact.mjs +1 -1
- package/es/extension/utils/setLanguage.mjs +1 -1
- package/es/hooks/useMasterApplyControl.mjs +2 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +969 -1197
- 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} +110 -113
- package/es/services/manager/roomActionManager.d.ts +3 -0
- package/es/services/manager/roomActionManager.mjs +7 -0
- package/es/services/manager/scheduleConferenceManager.d.ts +1 -0
- 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 +23 -41
- package/es/stores/basic.mjs +6 -1
- package/es/stores/room.d.ts +29 -1
- package/es/stores/room.mjs +49 -59
- 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/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 +1 -1
- 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 +1 -1
- 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 +3 -1
- 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/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 +3 -3
- 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.vue.js +1 -1
- package/lib/components/RoomHeader/UserInfo/index.vue2.js +3 -2
- 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 +8 -7
- package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue.js +2 -2
- package/lib/components/{AITools → common/widgets/AITools}/AITranscription.vue2.js +9 -8
- package/lib/conference.d.ts +6 -0
- package/lib/conference.js +7 -1
- package/lib/conference.vue.js +1 -1
- package/lib/conference.vue2.js +14 -24
- package/lib/extension/chatExtension.js +1 -1
- package/lib/extension/utils/interact.js +1 -1
- package/lib/extension/utils/setLanguage.js +1 -1
- package/lib/hooks/useMasterApplyControl.js +2 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +969 -1197
- 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 +6 -3
- 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 +1 -0
- 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 -59
- 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/UserInfo/index.vue +2 -5
- 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 +2 -2
- package/src/TUIRoom/components/{AITools → common/widgets/AITools}/AITranscription.vue +3 -3
- package/src/TUIRoom/conference.ts +14 -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 +24 -1
- 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 -71
- 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/lib/stores/room.js
CHANGED
|
@@ -5,6 +5,12 @@ const TUIRoomEngine = require("@tencentcloud/tuiroom-engine-electron");
|
|
|
5
5
|
const basic = require("./basic.js");
|
|
6
6
|
const vue = require("../utils/vue.js");
|
|
7
7
|
const environment = require("../utils/environment.js");
|
|
8
|
+
require("../services/main.js");
|
|
9
|
+
const roomService = require("../services/roomService.js");
|
|
10
|
+
require("../locales/index.js");
|
|
11
|
+
require("mitt");
|
|
12
|
+
require("../services/manager/roomActionManager.js");
|
|
13
|
+
require("@tencentcloud/tui-core");
|
|
8
14
|
function getNewStreamInfo(userId, streamType) {
|
|
9
15
|
const newStreamInfo = {
|
|
10
16
|
userId,
|
|
@@ -12,7 +18,8 @@ function getNewStreamInfo(userId, streamType) {
|
|
|
12
18
|
hasVideoStream: false,
|
|
13
19
|
streamType: streamType || TUIRoomEngine.TUIVideoStreamType.kCameraStream,
|
|
14
20
|
isLoading: false,
|
|
15
|
-
|
|
21
|
+
playDomMap: /* @__PURE__ */ new Map(),
|
|
22
|
+
timestamp: Date.now()
|
|
16
23
|
};
|
|
17
24
|
return newStreamInfo;
|
|
18
25
|
}
|
|
@@ -31,7 +38,8 @@ function getNewUserInfo(userId) {
|
|
|
31
38
|
isUserApplyingToAnchor: false,
|
|
32
39
|
isInvitingUserToAnchor: false,
|
|
33
40
|
isInRoom: false,
|
|
34
|
-
status: TUIRoomEngine.TUIInvitationStatus.kNone
|
|
41
|
+
status: TUIRoomEngine.TUIInvitationStatus.kNone,
|
|
42
|
+
timestamp: Date.now()
|
|
35
43
|
};
|
|
36
44
|
return newUserInfo;
|
|
37
45
|
}
|
|
@@ -41,29 +49,15 @@ function getRecordStreamType(streamType) {
|
|
|
41
49
|
}
|
|
42
50
|
return streamType;
|
|
43
51
|
}
|
|
44
|
-
function sortStreamList(streamList) {
|
|
45
|
-
const basicStore = basic.useBasicStore();
|
|
46
|
-
return streamList.sort((item1, item2) => {
|
|
47
|
-
if (item1.userId === basicStore.userId) {
|
|
48
|
-
return -1;
|
|
49
|
-
}
|
|
50
|
-
if (item2.userId === basicStore.userId) {
|
|
51
|
-
return 1;
|
|
52
|
-
}
|
|
53
|
-
if (item1.streamType === TUIRoomEngine.TUIVideoStreamType.kScreenStream) {
|
|
54
|
-
return -1;
|
|
55
|
-
}
|
|
56
|
-
if (item2.streamType === TUIRoomEngine.TUIVideoStreamType.kScreenStream) {
|
|
57
|
-
return 1;
|
|
58
|
-
}
|
|
59
|
-
return 0;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
52
|
const useRoomStore = pinia.defineStore("room", {
|
|
63
53
|
state: () => ({
|
|
64
54
|
userInfoObj: {},
|
|
65
55
|
streamInfoObj: {},
|
|
66
56
|
userVolumeObj: {},
|
|
57
|
+
currentSpeakerInfo: {
|
|
58
|
+
speakerUserId: "",
|
|
59
|
+
remoteSpeakerUserId: ""
|
|
60
|
+
},
|
|
67
61
|
canControlSelfAudio: true,
|
|
68
62
|
canControlSelfVideo: true,
|
|
69
63
|
localVideoQuality: environment.isMobile ? TUIRoomEngine.TUIVideoQuality.kVideoQuality_360p : TUIRoomEngine.TUIVideoQuality.kVideoQuality_720p,
|
|
@@ -84,8 +78,6 @@ const useRoomStore = pinia.defineStore("room", {
|
|
|
84
78
|
maxSeatCount: 20,
|
|
85
79
|
password: "",
|
|
86
80
|
roomName: "",
|
|
87
|
-
// Visual area user flow list
|
|
88
|
-
hasOtherScreenShare: false,
|
|
89
81
|
isOnStateTabActive: true,
|
|
90
82
|
isLocalUserSharing: false,
|
|
91
83
|
isWhiteboardVisiable: false,
|
|
@@ -99,7 +91,9 @@ const useRoomStore = pinia.defineStore("room", {
|
|
|
99
91
|
},
|
|
100
92
|
localStream(state) {
|
|
101
93
|
const basicStore = basic.useBasicStore();
|
|
102
|
-
|
|
94
|
+
if (this.isFreeSpeakMode || this.localUser.onSeat) {
|
|
95
|
+
return state.streamInfoObj[`${basicStore.userId}_${TUIRoomEngine.TUIVideoStreamType.kCameraStream}`] || getNewStreamInfo(basicStore.userId, TUIRoomEngine.TUIVideoStreamType.kCameraStream);
|
|
96
|
+
}
|
|
103
97
|
},
|
|
104
98
|
localScreenStream(state) {
|
|
105
99
|
const basicStore = basic.useBasicStore();
|
|
@@ -155,7 +149,9 @@ const useRoomStore = pinia.defineStore("room", {
|
|
|
155
149
|
return this.userInfoObj[item.userId].onSeat;
|
|
156
150
|
});
|
|
157
151
|
}
|
|
158
|
-
return
|
|
152
|
+
return streamList.sort(
|
|
153
|
+
roomService.roomService.userManager.getStreamListSortComparator()
|
|
154
|
+
);
|
|
159
155
|
},
|
|
160
156
|
remoteStreamList() {
|
|
161
157
|
const basicStore = basic.useBasicStore();
|
|
@@ -166,32 +162,18 @@ const useRoomStore = pinia.defineStore("room", {
|
|
|
166
162
|
(stream) => stream.streamType === TUIRoomEngine.TUIVideoStreamType.kCameraStream
|
|
167
163
|
);
|
|
168
164
|
},
|
|
165
|
+
remoteScreenStream() {
|
|
166
|
+
return this.remoteStreamList.find(
|
|
167
|
+
(stream) => stream.streamType === TUIRoomEngine.TUIVideoStreamType.kScreenStream && stream.hasVideoStream
|
|
168
|
+
);
|
|
169
|
+
},
|
|
169
170
|
streamNumber() {
|
|
170
171
|
return this.streamList.length;
|
|
171
172
|
},
|
|
172
173
|
userList() {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
return -1;
|
|
177
|
-
}
|
|
178
|
-
if (item2.userId === basicStore.userId) {
|
|
179
|
-
return 1;
|
|
180
|
-
}
|
|
181
|
-
if (item1.userRole === TUIRoomEngine.TUIRole.kRoomOwner) {
|
|
182
|
-
return -1;
|
|
183
|
-
}
|
|
184
|
-
if (item2.userRole === TUIRoomEngine.TUIRole.kRoomOwner) {
|
|
185
|
-
return 1;
|
|
186
|
-
}
|
|
187
|
-
if (item1.userRole === TUIRoomEngine.TUIRole.kAdministrator) {
|
|
188
|
-
return -1;
|
|
189
|
-
}
|
|
190
|
-
if (item2.userRole === TUIRoomEngine.TUIRole.kAdministrator) {
|
|
191
|
-
return 1;
|
|
192
|
-
}
|
|
193
|
-
return 0;
|
|
194
|
-
});
|
|
174
|
+
return [...Object.values(this.userInfoObj)].sort(
|
|
175
|
+
roomService.roomService.userManager.getUserListSortComparator()
|
|
176
|
+
);
|
|
195
177
|
},
|
|
196
178
|
userNumber() {
|
|
197
179
|
return this.userList.filter((item) => item.isInRoom).length;
|
|
@@ -341,6 +323,9 @@ const useRoomStore = pinia.defineStore("room", {
|
|
|
341
323
|
vue.set(this.userVolumeObj, userId, volume);
|
|
342
324
|
});
|
|
343
325
|
},
|
|
326
|
+
setCurrentSpeakerInfo(speakerInfo) {
|
|
327
|
+
Object.assign(this.currentSpeakerInfo, speakerInfo);
|
|
328
|
+
},
|
|
344
329
|
setCurrentDeviceId(type, deviceId) {
|
|
345
330
|
switch (type) {
|
|
346
331
|
case TUIRoomEngine.TUIMediaDeviceType.kMediaDeviceTypeVideoCamera:
|
|
@@ -412,9 +397,6 @@ const useRoomStore = pinia.defineStore("room", {
|
|
|
412
397
|
updateVideoQuality(quality) {
|
|
413
398
|
this.localVideoQuality = quality;
|
|
414
399
|
},
|
|
415
|
-
setLocalUser(obj) {
|
|
416
|
-
Object.assign(this.localUser, obj);
|
|
417
|
-
},
|
|
418
400
|
setDeviceList(type, deviceList) {
|
|
419
401
|
switch (type) {
|
|
420
402
|
case TUIRoomEngine.TUIMediaDeviceType.kMediaDeviceTypeVideoCamera:
|
|
@@ -509,9 +491,6 @@ const useRoomStore = pinia.defineStore("room", {
|
|
|
509
491
|
remoteUserInfo.inviteToAnchorRequestId = "";
|
|
510
492
|
}
|
|
511
493
|
},
|
|
512
|
-
setHasOtherScreenShare(hasScreenShare) {
|
|
513
|
-
this.hasOtherScreenShare = hasScreenShare;
|
|
514
|
-
},
|
|
515
494
|
setOnStageTabStatus(isOnStateTabActive) {
|
|
516
495
|
this.isOnStateTabActive = isOnStateTabActive;
|
|
517
496
|
},
|
|
@@ -528,25 +507,26 @@ const useRoomStore = pinia.defineStore("room", {
|
|
|
528
507
|
reset() {
|
|
529
508
|
const basicStore = basic.useBasicStore();
|
|
530
509
|
basicStore.setIsOpenMic(false);
|
|
510
|
+
this.resetRoomData();
|
|
511
|
+
this.resetDeviceData();
|
|
512
|
+
},
|
|
513
|
+
resetRoomData() {
|
|
531
514
|
this.streamInfoObj = {};
|
|
532
515
|
this.userInfoObj = {};
|
|
533
516
|
this.userVolumeObj = {};
|
|
517
|
+
this.currentSpeakerInfo = {
|
|
518
|
+
speakerUserId: "",
|
|
519
|
+
remoteSpeakerUserId: ""
|
|
520
|
+
};
|
|
534
521
|
this.canControlSelfAudio = true;
|
|
535
522
|
this.canControlSelfVideo = true;
|
|
536
523
|
this.localVideoQuality = TUIRoomEngine.TUIVideoQuality.kVideoQuality_720p;
|
|
537
|
-
this.currentCameraId = "";
|
|
538
|
-
this.currentMicrophoneId = "";
|
|
539
|
-
this.currentSpeakerId = "";
|
|
540
|
-
this.cameraList = [];
|
|
541
|
-
this.microphoneList = [];
|
|
542
|
-
this.speakerList = [];
|
|
543
524
|
this.masterUserId = "";
|
|
544
525
|
this.isMicrophoneDisableForAllUser = false;
|
|
545
526
|
this.isCameraDisableForAllUser = false;
|
|
546
527
|
this.isScreenShareDisableForAllUser = false;
|
|
547
528
|
this.isSeatEnabled = void 0;
|
|
548
529
|
this.seatMode = TUIRoomEngine.TUISeatMode.kFreeToTake;
|
|
549
|
-
this.hasOtherScreenShare = false;
|
|
550
530
|
this.isOnStateTabActive = true;
|
|
551
531
|
this.maxSeatCount = 20;
|
|
552
532
|
this.password = "";
|
|
@@ -555,7 +535,17 @@ const useRoomStore = pinia.defineStore("room", {
|
|
|
555
535
|
this.isWhiteboardVisiable = false;
|
|
556
536
|
this.isSharingScreen = false;
|
|
557
537
|
this.isAnnotationVisiable = false;
|
|
538
|
+
},
|
|
539
|
+
resetDeviceData() {
|
|
540
|
+
this.currentCameraId = "";
|
|
541
|
+
this.currentMicrophoneId = "";
|
|
542
|
+
this.currentSpeakerId = "";
|
|
543
|
+
this.cameraList = [];
|
|
544
|
+
this.microphoneList = [];
|
|
545
|
+
this.speakerList = [];
|
|
558
546
|
}
|
|
559
547
|
}
|
|
560
548
|
});
|
|
549
|
+
exports.getNewStreamInfo = getNewStreamInfo;
|
|
550
|
+
exports.getNewUserInfo = getNewUserInfo;
|
|
561
551
|
exports.useRoomStore = useRoomStore;
|
|
@@ -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
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
if (environment.isWeChat) {
|
|
20
|
-
return Promise.reject(
|
|
21
|
-
new Error("uni.getScrollInfo() need instanceName in params.")
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
return Promise.reject(new Error("getScrollInfo() occur error"));
|
|
3
|
+
require("./environment.js");
|
|
4
|
+
function getContentSize(element) {
|
|
5
|
+
const computedStyle = getComputedStyle(element);
|
|
6
|
+
const paddingTop = Number(computedStyle.paddingTop.replace("px", ""));
|
|
7
|
+
const paddingBottom = Number(computedStyle.paddingBottom.replace("px", ""));
|
|
8
|
+
const borderTop = Number(computedStyle.borderTopWidth.replace("px", ""));
|
|
9
|
+
const borderBottom = Number(
|
|
10
|
+
computedStyle.borderBottomWidth.replace("px", "")
|
|
11
|
+
);
|
|
12
|
+
const paddingLeft = Number(computedStyle.paddingLeft.replace("px", ""));
|
|
13
|
+
const paddingRight = Number(computedStyle.paddingRight.replace("px", ""));
|
|
14
|
+
const borderLeft = Number(computedStyle.borderLeftWidth.replace("px", ""));
|
|
15
|
+
const borderRight = Number(computedStyle.borderRightWidth.replace("px", ""));
|
|
16
|
+
const contentWidth = element.offsetWidth - paddingLeft - paddingRight - borderLeft - borderRight;
|
|
17
|
+
const contentHeight = element.offsetHeight - paddingTop - paddingBottom - borderTop - borderBottom;
|
|
18
|
+
return { width: contentWidth, height: contentHeight };
|
|
25
19
|
}
|
|
26
|
-
exports.
|
|
20
|
+
exports.getContentSize = getContentSize;
|
package/lib/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/lib/utils/utils.js
CHANGED
|
@@ -178,9 +178,52 @@ function formatTimestampToTime(timestamp, format = "MM-DD HH:mm") {
|
|
|
178
178
|
(match) => replacements[match]
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
+
const combineComparators = (...comparators) => {
|
|
182
|
+
return (a, b) => {
|
|
183
|
+
for (const comparator of comparators) {
|
|
184
|
+
const result = comparator(a, b);
|
|
185
|
+
if (result !== 0) return result;
|
|
186
|
+
}
|
|
187
|
+
return 0;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
const createComparator = (compareRules) => {
|
|
191
|
+
return (a, b) => {
|
|
192
|
+
if (compareRules(a, b) && compareRules(b, a)) {
|
|
193
|
+
return 0;
|
|
194
|
+
}
|
|
195
|
+
if (compareRules(a, b)) {
|
|
196
|
+
return -1;
|
|
197
|
+
}
|
|
198
|
+
if (compareRules(b, a)) {
|
|
199
|
+
return 1;
|
|
200
|
+
}
|
|
201
|
+
return 0;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
function arrayIsEqual(arr1, arr2) {
|
|
205
|
+
if (arr1.length !== arr2.length) {
|
|
206
|
+
return false;
|
|
207
|
+
}
|
|
208
|
+
for (let i = 0; i < arr1.length; i++) {
|
|
209
|
+
if (typeof arr1[i] === "object" && typeof arr2[i] === "object" && arr1[i] !== null && arr2[i] !== null) {
|
|
210
|
+
if (!arrayIsEqual(arr1[i], arr2[i])) {
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
} else {
|
|
214
|
+
if (arr1[i] !== arr2[i]) {
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return true;
|
|
220
|
+
}
|
|
181
221
|
exports.addSuffix = addSuffix;
|
|
222
|
+
exports.arrayIsEqual = arrayIsEqual;
|
|
182
223
|
exports.calculateByteLength = calculateByteLength;
|
|
224
|
+
exports.combineComparators = combineComparators;
|
|
183
225
|
exports.convertSecondsToHMS = convertSecondsToHMS;
|
|
226
|
+
exports.createComparator = createComparator;
|
|
184
227
|
exports.debounce = debounce;
|
|
185
228
|
exports.deepClone = deepClone;
|
|
186
229
|
exports.exitFullScreen = exitFullScreen;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencentcloud/roomkit-electron-vue3",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.mjs",
|
|
6
6
|
"types": "./es/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@tencentcloud/chat": "latest",
|
|
22
22
|
"@tencentcloud/tui-core": "latest",
|
|
23
|
-
"@tencentcloud/tuiroom-engine-electron": "^2.
|
|
24
|
-
"@tencentcloud/chat-uikit-engine": "2.
|
|
25
|
-
"@tencentcloud/chat-uikit-vue": "2.
|
|
23
|
+
"@tencentcloud/tuiroom-engine-electron": "^2.8.1",
|
|
24
|
+
"@tencentcloud/chat-uikit-engine": "2.3.3",
|
|
25
|
+
"@tencentcloud/chat-uikit-vue": "2.3.3",
|
|
26
26
|
"@tencentcloud/universal-api": "^2.0.9",
|
|
27
27
|
"@tiptap/core": "^2.6.6",
|
|
28
28
|
"@tiptap/extension-document": "^2.6.6",
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
## [2.3.3] (2024-10-28)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
- 支持群组禁言后发送消息错误提示国际化
|
|
5
|
+
|
|
6
|
+
## Fix
|
|
7
|
+
- 修复集成 CallKit 点击通话按钮偶现无响应问题
|
|
8
|
+
|
|
9
|
+
## [2.3.2] (2024-10-28)
|
|
10
|
+
|
|
11
|
+
## Fix
|
|
12
|
+
- 修复群聊中群管理入口偶现的丢失问题
|
|
13
|
+
|
|
14
|
+
## [2.3.1] (2024-10-25)
|
|
15
|
+
|
|
16
|
+
## Fix
|
|
17
|
+
- 修复 H5 安全区遮挡问题
|
|
18
|
+
- 修复 H5 键盘遮挡输入框问题
|
|
19
|
+
- 修复撤回消息中撤回人为空问题
|
|
20
|
+
- 修复 TUIContact 修改好友备注后列表显示未更新问题
|
|
21
|
+
|
|
22
|
+
## [2.2.9] (2024-10-17)
|
|
23
|
+
|
|
24
|
+
## Fix
|
|
25
|
+
- 修复 Callkit 融合被叫超时无应答英文词条翻译错误问题
|
|
26
|
+
|
|
27
|
+
## [2.2.8] (2024-09-24)
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
- 支持繁体中文语言
|
|
31
|
+
- 支持新增自定义语言类型
|
|
32
|
+
|
|
33
|
+
## Fix
|
|
34
|
+
- 修复 MessageInput 内容中间回车发送消息引入换行问题
|
|
35
|
+
|
|
1
36
|
## [2.2.7] (2024-09-13)
|
|
2
37
|
|
|
3
38
|
### Features
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const Emoji: Record<string, string> = {
|
|
2
|
+
'[TUIEmoji_Smile]': '[微笑]',
|
|
3
|
+
'[TUIEmoji_Expect]': '[期待]',
|
|
4
|
+
'[TUIEmoji_Blink]': '[眨眼]',
|
|
5
|
+
'[TUIEmoji_Guffaw]': '[大笑]',
|
|
6
|
+
'[TUIEmoji_KindSmile]': '[姨母笑]',
|
|
7
|
+
'[TUIEmoji_Haha]': '[哈哈哈]',
|
|
8
|
+
'[TUIEmoji_Cheerful]': '[愉快]',
|
|
9
|
+
'[TUIEmoji_Speechless]': '[無語]',
|
|
10
|
+
'[TUIEmoji_Amazed]': '[驚訝]',
|
|
11
|
+
'[TUIEmoji_Sorrow]': '[悲傷]',
|
|
12
|
+
'[TUIEmoji_Complacent]': '[得意]',
|
|
13
|
+
'[TUIEmoji_Silly]': '[傻了]',
|
|
14
|
+
'[TUIEmoji_Lustful]': '[色]',
|
|
15
|
+
'[TUIEmoji_Giggle]': '[憨笑]',
|
|
16
|
+
'[TUIEmoji_Kiss]': '[親親]',
|
|
17
|
+
'[TUIEmoji_Wail]': '[大哭]',
|
|
18
|
+
'[TUIEmoji_TearsLaugh]': '[哭笑]',
|
|
19
|
+
'[TUIEmoji_Trapped]': '[困]',
|
|
20
|
+
'[TUIEmoji_Mask]': '[口罩]',
|
|
21
|
+
'[TUIEmoji_Fear]': '[恐懼]',
|
|
22
|
+
'[TUIEmoji_BareTeeth]': '[齜牙]',
|
|
23
|
+
'[TUIEmoji_FlareUp]': '[發怒]',
|
|
24
|
+
'[TUIEmoji_Yawn]': '[打哈欠]',
|
|
25
|
+
'[TUIEmoji_Tact]': '[機智]',
|
|
26
|
+
'[TUIEmoji_Stareyes]': '[星星眼]',
|
|
27
|
+
'[TUIEmoji_ShutUp]': '[閉嘴]',
|
|
28
|
+
'[TUIEmoji_Sigh]': '[嘆氣]',
|
|
29
|
+
'[TUIEmoji_Hehe]': '[呵呵]',
|
|
30
|
+
'[TUIEmoji_Silent]': '[收聲]',
|
|
31
|
+
'[TUIEmoji_Surprised]': '[驚喜]',
|
|
32
|
+
'[TUIEmoji_Askance]': '[白眼]',
|
|
33
|
+
'[TUIEmoji_Ok]': '[OK]',
|
|
34
|
+
'[TUIEmoji_Shit]': '[便便]',
|
|
35
|
+
'[TUIEmoji_Monster]': '[怪獸]',
|
|
36
|
+
'[TUIEmoji_Daemon]': '[惡魔]',
|
|
37
|
+
'[TUIEmoji_Rage]': '[惡魔怒]',
|
|
38
|
+
'[TUIEmoji_Fool]': '[衰]',
|
|
39
|
+
'[TUIEmoji_Pig]': '[豬]',
|
|
40
|
+
'[TUIEmoji_Cow]': '[牛]',
|
|
41
|
+
'[TUIEmoji_Ai]': '[AI]',
|
|
42
|
+
'[TUIEmoji_Skull]': '[骷髏]',
|
|
43
|
+
'[TUIEmoji_Bombs]': '[炸彈]',
|
|
44
|
+
'[TUIEmoji_Coffee]': '[咖啡]',
|
|
45
|
+
'[TUIEmoji_Cake]': '[蛋糕]',
|
|
46
|
+
'[TUIEmoji_Beer]': '[啤酒]',
|
|
47
|
+
'[TUIEmoji_Flower]': '[花]',
|
|
48
|
+
'[TUIEmoji_Watermelon]': '[瓜]',
|
|
49
|
+
'[TUIEmoji_Rich]': '[壕]',
|
|
50
|
+
'[TUIEmoji_Heart]': '[愛心]',
|
|
51
|
+
'[TUIEmoji_Moon]': '[月亮]',
|
|
52
|
+
'[TUIEmoji_Sun]': '[太陽]',
|
|
53
|
+
'[TUIEmoji_Star]': '[星星]',
|
|
54
|
+
'[TUIEmoji_RedPacket]': '[紅包]',
|
|
55
|
+
'[TUIEmoji_Celebrate]': '[慶祝]',
|
|
56
|
+
'[TUIEmoji_Bless]': '[福]',
|
|
57
|
+
'[TUIEmoji_Fortune]': '[發]',
|
|
58
|
+
'[TUIEmoji_Convinced]': '[服]',
|
|
59
|
+
'[TUIEmoji_Prohibit]': '[禁]',
|
|
60
|
+
'[TUIEmoji_666]': '[666]',
|
|
61
|
+
'[TUIEmoji_857]': '[857]',
|
|
62
|
+
'[TUIEmoji_Knife]': '[刀]',
|
|
63
|
+
'[TUIEmoji_Like]': '[讚]',
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default Emoji;
|
|
@@ -17,8 +17,10 @@
|
|
|
17
17
|
!isPC && 'tui-chat-H5-header',
|
|
18
18
|
isUniFrameWork && 'tui-chat-uniapp-header',
|
|
19
19
|
]"
|
|
20
|
+
:isGroup="isGroup"
|
|
20
21
|
:headerExtensionList="headerExtensionList"
|
|
21
22
|
@closeChat="closeChat"
|
|
23
|
+
@openGroupManagement="handleGroup"
|
|
22
24
|
/>
|
|
23
25
|
<Forward @toggleMultipleSelectMode="toggleMultipleSelectMode" />
|
|
24
26
|
<MessageList
|
|
@@ -79,7 +81,7 @@
|
|
|
79
81
|
</div>
|
|
80
82
|
<!-- Group Management -->
|
|
81
83
|
<div
|
|
82
|
-
v-if="!isNotInGroup && isUniFrameWork && isGroup && headerExtensionList.length > 0"
|
|
84
|
+
v-if="!isNotInGroup && !isApp && isUniFrameWork && isGroup && headerExtensionList.length > 0"
|
|
83
85
|
class="group-profile"
|
|
84
86
|
@click="handleGroup"
|
|
85
87
|
>
|
|
@@ -105,7 +107,7 @@ import MessageInput from './message-input/index.vue';
|
|
|
105
107
|
import MultipleSelectPanel from './mulitple-select-panel/index.vue';
|
|
106
108
|
import Forward from './forward/index.vue';
|
|
107
109
|
import MessageInputToolbar from './message-input-toolbar/index.vue';
|
|
108
|
-
import { isPC, isWeChat, isUniFrameWork, isMobile } from '../../utils/env';
|
|
110
|
+
import { isPC, isWeChat, isUniFrameWork, isMobile, isApp } from '../../utils/env';
|
|
109
111
|
import { ToolbarDisplayType } from '../../interface';
|
|
110
112
|
import TUIChatConfig from './config';
|
|
111
113
|
|
|
@@ -125,14 +127,12 @@ const featureConfig = TUIChatConfig.getFeatureConfig();
|
|
|
125
127
|
|
|
126
128
|
onMounted(() => {
|
|
127
129
|
TUIStore.watch(StoreName.CONV, {
|
|
128
|
-
currentConversationID: onCurrentConversationIDUpdate,
|
|
129
130
|
currentConversation: onCurrentConversationUpdate,
|
|
130
131
|
});
|
|
131
132
|
});
|
|
132
133
|
|
|
133
134
|
onUnmounted(() => {
|
|
134
135
|
TUIStore.unwatch(StoreName.CONV, {
|
|
135
|
-
currentConversationID: onCurrentConversationIDUpdate,
|
|
136
136
|
currentConversation: onCurrentConversationUpdate,
|
|
137
137
|
});
|
|
138
138
|
reset();
|
|
@@ -220,7 +220,7 @@ function oneByOneForwardMessage() {
|
|
|
220
220
|
messageListRef.value?.oneByOneForwardMessage();
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
function
|
|
223
|
+
function updateUIUserNotInGroup(conversation: IConversationModel) {
|
|
224
224
|
if (conversation?.operationType > 0) {
|
|
225
225
|
headerExtensionList.value = [];
|
|
226
226
|
isNotInGroup.value = true;
|
|
@@ -236,13 +236,20 @@ function onCurrentConversationUpdate(conversation: IConversationModel) {
|
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
function
|
|
240
|
-
|
|
239
|
+
function onCurrentConversationUpdate(conversation: IConversationModel) {
|
|
240
|
+
updateUIUserNotInGroup(conversation);
|
|
241
|
+
// return when currentConversation is null
|
|
242
|
+
if (!conversation) {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
// return when currentConversationID.value is the same as conversation.conversationID.
|
|
246
|
+
if (currentConversationID.value === conversation?.conversationID) {
|
|
241
247
|
return;
|
|
242
248
|
}
|
|
243
249
|
|
|
244
250
|
isGroup.value = false;
|
|
245
251
|
let conversationType = TUIChatEngine.TYPES.CONV_C2C;
|
|
252
|
+
const conversationID = conversation.conversationID;
|
|
246
253
|
if (conversationID.startsWith(TUIChatEngine.TYPES.CONV_GROUP)) {
|
|
247
254
|
conversationType = TUIChatEngine.TYPES.CONV_GROUP;
|
|
248
255
|
isGroup.value = true;
|
|
@@ -250,7 +257,6 @@ function onCurrentConversationIDUpdate(conversationID: string) {
|
|
|
250
257
|
}
|
|
251
258
|
|
|
252
259
|
headerExtensionList.value = [];
|
|
253
|
-
currentConversationID.value = conversationID;
|
|
254
260
|
isMultipleSelectMode.value = false;
|
|
255
261
|
// Initialize chatType
|
|
256
262
|
TUIChatConfig.setChatType(conversationType);
|
|
@@ -262,10 +268,20 @@ function onCurrentConversationIDUpdate(conversationID: string) {
|
|
|
262
268
|
method: TUIConstants.TUICustomerServicePlugin.SERVICE.METHOD.ACTIVE_CONVERSATION,
|
|
263
269
|
params: { conversationID: conversationID },
|
|
264
270
|
});
|
|
271
|
+
// When open chat in room, close main chat ui and reset theme.
|
|
272
|
+
if (TUIChatConfig.getChatType() === TUIConstants.TUIChat.TYPE.ROOM) {
|
|
273
|
+
if (TUIChatConfig.getFeatureConfig(TUIConstants.TUIChat.FEATURE.InputVoice) === true) {
|
|
274
|
+
TUIChatConfig.setTheme('light');
|
|
275
|
+
currentConversationID.value = '';
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
265
279
|
// Get chat header extensions
|
|
266
280
|
if (TUIChatConfig.getChatType() === TUIConstants.TUIChat.TYPE.GROUP) {
|
|
267
281
|
headerExtensionList.value = TUICore.getExtensionList(TUIConstants.TUIChat.EXTENSION.CHAT_HEADER.EXT_ID);
|
|
268
282
|
}
|
|
283
|
+
TUIStore.update(StoreName.CUSTOM, 'activeConversation', conversationID);
|
|
284
|
+
currentConversationID.value = conversationID;
|
|
269
285
|
}
|
|
270
286
|
</script>
|
|
271
287
|
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
StoreName,
|
|
30
30
|
IMessageModel,
|
|
31
31
|
} from '@tencentcloud/chat-uikit-engine';
|
|
32
|
-
import { Editor, JSONContent } from '@tiptap/core';
|
|
32
|
+
import { Editor, JSONContent, Extension } from '@tiptap/core';
|
|
33
33
|
import Document from '@tiptap/extension-document';
|
|
34
34
|
import Paragraph from '@tiptap/extension-paragraph';
|
|
35
35
|
import Placeholder from '@tiptap/extension-placeholder';
|
|
@@ -39,6 +39,7 @@ import CustomImage from './message-input-file';
|
|
|
39
39
|
import { ITipTapEditorContent } from '../../../interface';
|
|
40
40
|
import MessageInputAtSuggestion from './message-input-at/index';
|
|
41
41
|
import { parseTextToRenderArray } from '../emoji-config';
|
|
42
|
+
import riseInput from '../../../utils/riseInput';
|
|
42
43
|
import { isH5, isPC } from '../../../utils/env';
|
|
43
44
|
import DraftManager from '../utils/conversationDraft';
|
|
44
45
|
|
|
@@ -87,6 +88,13 @@ const currentQuoteMessage = ref<{ message: IMessageModel; type: string }>();
|
|
|
87
88
|
const editorDom = ref();
|
|
88
89
|
let editor: Editor | null = null;
|
|
89
90
|
const fileMap = new Map<string, any>();
|
|
91
|
+
const DisableDefaultEnter = Extension.create({
|
|
92
|
+
addKeyboardShortcuts() {
|
|
93
|
+
return {
|
|
94
|
+
Enter: () => true,
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
});
|
|
90
98
|
|
|
91
99
|
function onCurrentConversationIDUpdated(conversationID: string) {
|
|
92
100
|
if (currentConversationID.value !== conversationID) {
|
|
@@ -118,6 +126,7 @@ onMounted(() => {
|
|
|
118
126
|
Document,
|
|
119
127
|
Paragraph,
|
|
120
128
|
Text,
|
|
129
|
+
DisableDefaultEnter,
|
|
121
130
|
Placeholder.configure({
|
|
122
131
|
emptyEditorClass: 'is-editor-empty',
|
|
123
132
|
placeholder: placeholder.value,
|
|
@@ -178,6 +187,11 @@ onMounted(() => {
|
|
|
178
187
|
})
|
|
179
188
|
: null;
|
|
180
189
|
|
|
190
|
+
if (isH5) {
|
|
191
|
+
const targetBottomDom = document.querySelector('.message-input-toolbar') as HTMLElement || editorDom.value;
|
|
192
|
+
riseInput(editorDom.value, targetBottomDom);
|
|
193
|
+
}
|
|
194
|
+
|
|
181
195
|
TUIStore.watch(StoreName.CONV, {
|
|
182
196
|
currentConversationID: onCurrentConversationIDUpdated,
|
|
183
197
|
});
|
package/src/TUIRoom/components/Chat/ChatKit/components/TUIChat/message-input-toolbar/index.vue
CHANGED
|
@@ -122,14 +122,14 @@ const isRenderedEmojiPicker = ref<boolean>(true);
|
|
|
122
122
|
isRenderedEmojiPicker.value = featureConfig.InputEmoji || featureConfig.InputStickers;
|
|
123
123
|
|
|
124
124
|
onMounted(() => {
|
|
125
|
-
TUIStore.watch(StoreName.
|
|
126
|
-
|
|
125
|
+
TUIStore.watch(StoreName.CUSTOM, {
|
|
126
|
+
activeConversation: onActiveConversationUpdate,
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
onUnmounted(() => {
|
|
131
|
-
TUIStore.unwatch(StoreName.
|
|
132
|
-
|
|
131
|
+
TUIStore.unwatch(StoreName.CUSTOM, {
|
|
132
|
+
activeConversation: onActiveConversationUpdate,
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
|
|
@@ -141,18 +141,18 @@ watch(() => props.displayType, (newValue) => {
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
|
|
144
|
-
const
|
|
145
|
-
if (conversation?.conversationID && conversation.conversationID !== currentConversation.value?.conversationID) {
|
|
146
|
-
getExtensionList(conversation.conversationID);
|
|
147
|
-
}
|
|
148
|
-
currentConversation.value = conversation;
|
|
149
|
-
isGroup.value = currentConversation?.value?.type === TUIChatEngine.TYPES.CONV_GROUP;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
const getExtensionList = (conversationID: string) => {
|
|
144
|
+
const onActiveConversationUpdate = (conversationID: string) => {
|
|
153
145
|
if (!conversationID) {
|
|
154
146
|
return;
|
|
155
147
|
}
|
|
148
|
+
if (conversationID !== currentConversation.value?.conversationID) {
|
|
149
|
+
getExtensionList();
|
|
150
|
+
currentConversation.value = TUIStore.getData(StoreName.CONV, 'currentConversation');
|
|
151
|
+
isGroup.value = conversationID.startsWith(TUIChatEngine.TYPES.CONV_GROUP);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const getExtensionList = () => {
|
|
156
156
|
const chatType = TUIChatConfig.getChatType();
|
|
157
157
|
const params: Record<string, boolean | string> = { chatType };
|
|
158
158
|
// Backward compatibility: When callkit does not have chatType judgment, use filterVoice and filterVideo to filter
|