@tencentcloud/roomkit-electron-vue3 2.7.2 → 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/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 +6 -0
- package/es/conference.mjs +7 -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 +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 +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 +6 -0
- package/lib/conference.js +7 -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 +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 -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 +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 -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
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<tui-button
|
|
34
34
|
class="button"
|
|
35
35
|
size="default"
|
|
36
|
-
:disabled="
|
|
36
|
+
:disabled="isJoinButtonDisable"
|
|
37
37
|
@click="joinRoom"
|
|
38
38
|
>
|
|
39
39
|
{{ t('Join') }}
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
|
|
54
54
|
<script setup lang="ts">
|
|
55
|
-
import { ref, Ref, watch, defineProps, nextTick } from 'vue';
|
|
55
|
+
import { ref, Ref, watch, defineProps, nextTick, computed } from 'vue';
|
|
56
56
|
import { storeToRefs } from 'pinia';
|
|
57
57
|
import { EventType, roomService } from '../../services';
|
|
58
58
|
import { useI18n } from '../../locales';
|
|
@@ -75,6 +75,11 @@ const { t } = useI18n();
|
|
|
75
75
|
const inputPassword: Ref<string> = ref('');
|
|
76
76
|
const props = defineProps<Props>();
|
|
77
77
|
const isShowPasswordContainer = ref(false);
|
|
78
|
+
const isJoiningRoom = ref(false);
|
|
79
|
+
|
|
80
|
+
const isJoinButtonDisable = computed(
|
|
81
|
+
() => inputPassword.value.length === 0 || isJoiningRoom.value
|
|
82
|
+
);
|
|
78
83
|
|
|
79
84
|
watch(
|
|
80
85
|
() => props.visible,
|
|
@@ -87,12 +92,17 @@ watch(
|
|
|
87
92
|
);
|
|
88
93
|
|
|
89
94
|
async function joinRoom() {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
try {
|
|
96
|
+
isJoiningRoom.value = true;
|
|
97
|
+
await roomService.join(roomId.value, {
|
|
98
|
+
isOpenCamera: false,
|
|
99
|
+
isOpenMicrophone: true,
|
|
100
|
+
password: inputPassword.value,
|
|
101
|
+
});
|
|
102
|
+
roomService.emit(EventType.ROOM_JOIN);
|
|
103
|
+
} catch (error) {
|
|
104
|
+
isJoiningRoom.value = false;
|
|
105
|
+
}
|
|
96
106
|
}
|
|
97
107
|
|
|
98
108
|
function cancelInputPassword() {
|
|
@@ -102,10 +112,10 @@ function cancelInputPassword() {
|
|
|
102
112
|
|
|
103
113
|
watch(
|
|
104
114
|
() => inputPassword.value,
|
|
105
|
-
async
|
|
106
|
-
if (
|
|
115
|
+
async val => {
|
|
116
|
+
if (val && invalidPasswordRegex.test(val)) {
|
|
107
117
|
await nextTick();
|
|
108
|
-
inputPassword.value =
|
|
118
|
+
inputPassword.value = val.replace(invalidPasswordRegex, '');
|
|
109
119
|
}
|
|
110
120
|
}
|
|
111
121
|
);
|
|
@@ -1,292 +1,158 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="streamContainer" :class="streamContainerClass">
|
|
3
|
-
<
|
|
4
|
-
v-
|
|
5
|
-
ref="enlargedContainerRef"
|
|
3
|
+
<single-stream-view
|
|
4
|
+
v-if="enlargeStream"
|
|
6
5
|
class="enlarged-stream-container"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
:streamInfo="enlargeStream"
|
|
11
|
-
aspectRatio="16:9"
|
|
12
|
-
:isEnlarge="true"
|
|
13
|
-
:observerViewInVisible="true"
|
|
14
|
-
/>
|
|
15
|
-
</div>
|
|
16
|
-
<StreamList
|
|
6
|
+
:streamInfo="enlargeStream"
|
|
7
|
+
/>
|
|
8
|
+
<multi-stream-view
|
|
17
9
|
:class="['stream-list-container', `${showSideList ? '' : 'hide-list'}`]"
|
|
18
|
-
:
|
|
19
|
-
:
|
|
20
|
-
:
|
|
21
|
-
|
|
22
|
-
:observerViewInVisible="true"
|
|
23
|
-
@room-dblclick="handleEnlargeStreamRegion"
|
|
10
|
+
:maxColumn="maxColumn"
|
|
11
|
+
:maxRow="maxRow"
|
|
12
|
+
:excludeStreamInfoList="excludeStreamInfoList"
|
|
13
|
+
@stream-view-dblclick="handleStreamViewDblclick"
|
|
24
14
|
/>
|
|
25
|
-
<!-- Sidebar and upper sidebar arrows -->
|
|
26
15
|
<arrow-stroke
|
|
27
|
-
v-if="
|
|
16
|
+
v-if="isSideListLayout && (showRoomTool || showSideList)"
|
|
28
17
|
:class="[`arrow-stroke-${arrowDirection}`]"
|
|
29
18
|
:stroke-position="strokePosition"
|
|
30
19
|
:arrow-direction="arrowDirection"
|
|
31
20
|
:has-stroke="showSideList"
|
|
32
21
|
@click-arrow="handleClickIcon"
|
|
33
22
|
/>
|
|
34
|
-
<!-- Nine-pane left and right page flip control bar -->
|
|
35
|
-
<div v-if="showTurnPageControl && showRoomTool" class="turn-page-container">
|
|
36
|
-
<div
|
|
37
|
-
v-show="showTurnPageLeftArrow"
|
|
38
|
-
class="turn-page-arrow-container left-container"
|
|
39
|
-
@click="handleTurnPageLeft"
|
|
40
|
-
>
|
|
41
|
-
<svg-icon :icon="ArrowStrokeTurnPageIcon" />
|
|
42
|
-
</div>
|
|
43
|
-
<div
|
|
44
|
-
v-show="showTurnPageRightArrow"
|
|
45
|
-
class="turn-page-arrow-container right-container"
|
|
46
|
-
@click="handleTurnPageRight"
|
|
47
|
-
>
|
|
48
|
-
<svg-icon class="turn-page-right" :icon="ArrowStrokeTurnPageIcon" />
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
23
|
</div>
|
|
52
24
|
</template>
|
|
53
25
|
|
|
54
26
|
<script setup lang="ts">
|
|
55
|
-
import { ref,
|
|
27
|
+
import { ref, Ref, watch, computed } from 'vue';
|
|
56
28
|
import { storeToRefs } from 'pinia';
|
|
57
29
|
import { StreamInfo, useRoomStore } from '../../../stores/room';
|
|
58
30
|
import { useBasicStore } from '../../../stores/basic';
|
|
59
31
|
import { LAYOUT } from '../../../constants/render';
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import logger from '../../../utils/common/logger';
|
|
63
|
-
import ArrowStrokeTurnPageIcon from '../../common/icons/ArrowStrokeTurnPageIcon.vue';
|
|
32
|
+
import SingleStreamView from '../../Stream/SingleStreamView/index.vue';
|
|
33
|
+
import MultiStreamView from '../../Stream/MultiStreamView/index.vue';
|
|
64
34
|
import ArrowStroke from '../../common/ArrowStroke.vue';
|
|
65
|
-
import
|
|
66
|
-
|
|
67
|
-
import TUIRoomEngine, {
|
|
68
|
-
TUIUserInfo,
|
|
69
|
-
TUIChangeReason,
|
|
70
|
-
TUIRoomEvents,
|
|
71
|
-
TUIVideoStreamType,
|
|
72
|
-
TUISeatInfo,
|
|
73
|
-
} from '@tencentcloud/tuiroom-engine-electron';
|
|
74
|
-
import useGetRoomEngine from '../../../hooks/useRoomEngine';
|
|
75
|
-
|
|
76
|
-
const logPrefix = '[StreamContainer]';
|
|
77
|
-
const roomEngine = useGetRoomEngine();
|
|
78
|
-
|
|
79
|
-
defineProps<{
|
|
80
|
-
showRoomTool: boolean;
|
|
81
|
-
}>();
|
|
35
|
+
import useStreamContainerHooks from './useStreamContainerHooks';
|
|
36
|
+
import { TUIVideoStreamType } from '@tencentcloud/tuiroom-engine-electron';
|
|
82
37
|
|
|
83
38
|
const roomStore = useRoomStore();
|
|
84
|
-
const {
|
|
39
|
+
const {
|
|
40
|
+
localStream,
|
|
41
|
+
streamList,
|
|
42
|
+
remoteStreamList,
|
|
43
|
+
localScreenStream,
|
|
44
|
+
remoteScreenStream,
|
|
45
|
+
} = storeToRefs(roomStore);
|
|
85
46
|
const basicStore = useBasicStore();
|
|
86
|
-
const { layout } = storeToRefs(basicStore);
|
|
87
|
-
const showSideList = ref(true);
|
|
47
|
+
const { showRoomTool, layout } = storeToRefs(basicStore);
|
|
88
48
|
|
|
89
|
-
const
|
|
90
|
-
const horizontalCount = ref(1);
|
|
91
|
-
const verticalCount = ref(1);
|
|
92
|
-
const currentPageIndex = ref(0);
|
|
93
|
-
const maxCountEveryPage = computed(
|
|
94
|
-
() => horizontalCount.value * verticalCount.value
|
|
95
|
-
);
|
|
96
|
-
const totalPage = computed(() =>
|
|
97
|
-
Math.ceil(streamList.value.length / maxCountEveryPage.value)
|
|
98
|
-
);
|
|
49
|
+
const { getStreamKey } = useStreamContainerHooks();
|
|
99
50
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
() => layout.value === LAYOUT.NINE_EQUAL_POINTS && currentPageIndex.value > 0
|
|
111
|
-
);
|
|
112
|
-
/**
|
|
113
|
-
* Whether or not to display the nine-pane rightward-facing page button
|
|
114
|
-
**/
|
|
115
|
-
const showTurnPageRightArrow = computed(
|
|
51
|
+
const maxColumn = ref();
|
|
52
|
+
const maxRow = ref();
|
|
53
|
+
const excludeStreamInfoList = computed(() => {
|
|
54
|
+
if (enlargeStream.value?.streamType === TUIVideoStreamType.kScreenStream) {
|
|
55
|
+
return [enlargeStream.value];
|
|
56
|
+
}
|
|
57
|
+
return [];
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const isSideListLayout = computed(
|
|
116
61
|
() =>
|
|
117
|
-
layout.value
|
|
118
|
-
currentPageIndex.value < totalPage.value - 1
|
|
62
|
+
[LAYOUT.RIGHT_SIDE_LIST, LAYOUT.TOP_SIDE_LIST].indexOf(layout.value) >= 0
|
|
119
63
|
);
|
|
120
64
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
currentPageIndex.value = currentPageIndex.value - 1;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Nine grid layout towards the right to turn the page
|
|
130
|
-
**/
|
|
131
|
-
function handleTurnPageRight() {
|
|
132
|
-
currentPageIndex.value = currentPageIndex.value + 1;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
const showStreamList = computed(() => {
|
|
136
|
-
if (layout.value === LAYOUT.NINE_EQUAL_POINTS) {
|
|
137
|
-
return streamList.value.slice(
|
|
138
|
-
currentPageIndex.value * maxCountEveryPage.value,
|
|
139
|
-
(currentPageIndex.value + 1) * maxCountEveryPage.value
|
|
140
|
-
);
|
|
65
|
+
const fixedStream: Ref<StreamInfo | null> = ref(null);
|
|
66
|
+
const enlargeStream = computed(() => {
|
|
67
|
+
if (!isSideListLayout.value) {
|
|
68
|
+
return null;
|
|
141
69
|
}
|
|
142
|
-
if (
|
|
143
|
-
return
|
|
70
|
+
if (fixedStream.value) {
|
|
71
|
+
return fixedStream.value;
|
|
72
|
+
}
|
|
73
|
+
if (localScreenStream.value) {
|
|
74
|
+
return localScreenStream.value;
|
|
144
75
|
}
|
|
145
|
-
|
|
76
|
+
if (remoteScreenStream.value) {
|
|
77
|
+
return remoteScreenStream.value;
|
|
78
|
+
}
|
|
79
|
+
if (remoteStreamList.value.length > 0) {
|
|
80
|
+
return remoteStreamList.value[0];
|
|
81
|
+
}
|
|
82
|
+
return localStream.value;
|
|
146
83
|
});
|
|
147
84
|
|
|
148
85
|
watch(
|
|
149
86
|
() => streamList.value.length,
|
|
150
87
|
val => {
|
|
151
|
-
|
|
152
|
-
if (val === 1) {
|
|
88
|
+
if (val === 1 && isSideListLayout.value) {
|
|
153
89
|
basicStore.setLayout(LAYOUT.NINE_EQUAL_POINTS);
|
|
154
|
-
enlargeStream.value = null;
|
|
155
|
-
return;
|
|
156
90
|
}
|
|
157
91
|
}
|
|
158
92
|
);
|
|
159
93
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
if (layout.value === LAYOUT.RIGHT_SIDE_LIST) {
|
|
172
|
-
arrowDirection = showSideList.value ? 'right' : 'left';
|
|
173
|
-
}
|
|
174
|
-
return arrowDirection;
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
const strokePosition = computed(() => {
|
|
178
|
-
let strokePosition = '';
|
|
179
|
-
if (layout.value === LAYOUT.TOP_SIDE_LIST) {
|
|
180
|
-
strokePosition = 'bottom';
|
|
181
|
-
}
|
|
182
|
-
if (layout.value === LAYOUT.RIGHT_SIDE_LIST) {
|
|
183
|
-
strokePosition = 'left';
|
|
184
|
-
}
|
|
185
|
-
return strokePosition;
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
function handleClickIcon() {
|
|
189
|
-
showSideList.value = !showSideList.value;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Get stream information for large region areas
|
|
194
|
-
*/
|
|
195
|
-
function getEnlargeStream() {
|
|
196
|
-
if (roomStore.localScreenStream?.hasVideoStream) {
|
|
197
|
-
return roomStore.localScreenStream;
|
|
198
|
-
}
|
|
199
|
-
if (remoteStreamList.value.length > 0) {
|
|
200
|
-
const remoteScreenStream = remoteStreamList.value.find(
|
|
201
|
-
stream =>
|
|
202
|
-
stream.streamType === TUIVideoStreamType.kScreenStream &&
|
|
203
|
-
stream.hasVideoStream
|
|
204
|
-
);
|
|
205
|
-
return remoteScreenStream ? remoteScreenStream : remoteStreamList.value[0];
|
|
206
|
-
}
|
|
207
|
-
return roomStore.localStream;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
async function handleNineEqualPointsLayout() {
|
|
211
|
-
streamContainerClass.value = 'stream-container-flatten';
|
|
212
|
-
enlargeStream.value = null;
|
|
213
|
-
horizontalCount.value = Math.min(
|
|
214
|
-
Math.ceil(Math.sqrt(streamList.value.length)),
|
|
215
|
-
3
|
|
216
|
-
);
|
|
217
|
-
verticalCount.value = Math.min(
|
|
218
|
-
Math.ceil(streamList.value.length / horizontalCount.value),
|
|
219
|
-
3
|
|
220
|
-
);
|
|
221
|
-
currentPageIndex.value = 0;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Handle sidebar layout
|
|
226
|
-
**/
|
|
227
|
-
async function handleRightSideListLayout() {
|
|
228
|
-
streamContainerClass.value = 'stream-container-right';
|
|
229
|
-
horizontalCount.value = 1;
|
|
230
|
-
verticalCount.value = Infinity;
|
|
231
|
-
if (!enlargeStream.value) {
|
|
232
|
-
enlargeStream.value = getEnlargeStream();
|
|
94
|
+
watch(
|
|
95
|
+
() =>
|
|
96
|
+
localScreenStream.value?.hasVideoStream ||
|
|
97
|
+
remoteScreenStream.value?.hasVideoStream,
|
|
98
|
+
(val, oldVal) => {
|
|
99
|
+
if (val && !oldVal) {
|
|
100
|
+
fixedStream.value = null;
|
|
101
|
+
if (!isSideListLayout.value) {
|
|
102
|
+
basicStore.setLayout(LAYOUT.RIGHT_SIDE_LIST);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
233
105
|
}
|
|
234
|
-
|
|
106
|
+
);
|
|
235
107
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
108
|
+
watch(
|
|
109
|
+
() => streamList.value.map((stream: StreamInfo) => getStreamKey(stream)),
|
|
110
|
+
(val, oldVal) => {
|
|
111
|
+
if (fixedStream.value) {
|
|
112
|
+
const fixedStreamKey = getStreamKey(fixedStream.value);
|
|
113
|
+
if (!val.includes(fixedStreamKey) && oldVal.includes(fixedStreamKey)) {
|
|
114
|
+
fixedStream.value = null;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
245
117
|
}
|
|
246
|
-
|
|
118
|
+
);
|
|
247
119
|
|
|
248
120
|
/**
|
|
249
121
|
* Double-click to switch the stream to the zoom in section
|
|
250
122
|
**/
|
|
251
|
-
function
|
|
252
|
-
if (
|
|
253
|
-
layout.value === LAYOUT.NINE_EQUAL_POINTS &&
|
|
254
|
-
streamList.value.length > 1
|
|
255
|
-
) {
|
|
123
|
+
function handleStreamViewDblclick(stream: StreamInfo) {
|
|
124
|
+
if (!isSideListLayout.value && streamList.value.length > 1) {
|
|
256
125
|
basicStore.setLayout(LAYOUT.RIGHT_SIDE_LIST);
|
|
257
126
|
}
|
|
258
|
-
|
|
127
|
+
fixedStream.value = stream;
|
|
259
128
|
}
|
|
260
129
|
|
|
261
130
|
/**
|
|
262
|
-
*
|
|
131
|
+
* ----- The following processing stream layout ---------
|
|
263
132
|
**/
|
|
133
|
+
const streamContainerClass = ref('stream-container-flatten');
|
|
264
134
|
async function handleLayout() {
|
|
265
135
|
switch (layout.value as any) {
|
|
266
136
|
case LAYOUT.NINE_EQUAL_POINTS:
|
|
267
|
-
|
|
137
|
+
streamContainerClass.value = 'stream-container-flatten';
|
|
138
|
+
maxColumn.value = 3;
|
|
139
|
+
maxRow.value = 3;
|
|
268
140
|
break;
|
|
269
141
|
case LAYOUT.RIGHT_SIDE_LIST:
|
|
270
|
-
|
|
142
|
+
streamContainerClass.value = 'stream-container-right';
|
|
143
|
+
maxColumn.value = 1;
|
|
144
|
+
maxRow.value = Infinity;
|
|
271
145
|
break;
|
|
272
146
|
case LAYOUT.TOP_SIDE_LIST:
|
|
273
|
-
|
|
147
|
+
streamContainerClass.value = 'stream-container-top';
|
|
148
|
+
maxColumn.value = Infinity;
|
|
149
|
+
maxRow.value = 1;
|
|
274
150
|
break;
|
|
275
151
|
default:
|
|
276
152
|
break;
|
|
277
153
|
}
|
|
278
154
|
}
|
|
279
155
|
|
|
280
|
-
watch(streamNumber, val => {
|
|
281
|
-
if (layout.value === LAYOUT.NINE_EQUAL_POINTS) {
|
|
282
|
-
horizontalCount.value = Math.min(Math.ceil(Math.sqrt(val)), 3);
|
|
283
|
-
verticalCount.value = Math.min(Math.ceil(val / horizontalCount.value), 3);
|
|
284
|
-
if (currentPageIndex.value > Math.ceil(val / maxCountEveryPage.value) - 1) {
|
|
285
|
-
currentPageIndex.value = Math.ceil(val / maxCountEveryPage.value) - 1;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
|
|
290
156
|
watch(
|
|
291
157
|
layout,
|
|
292
158
|
() => {
|
|
@@ -295,115 +161,30 @@ watch(
|
|
|
295
161
|
{ immediate: true }
|
|
296
162
|
);
|
|
297
163
|
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
)
|
|
302
|
-
|
|
303
|
-
const onUserVideoStateChanged = (eventInfo: {
|
|
304
|
-
userId: string;
|
|
305
|
-
streamType: TUIVideoStreamType;
|
|
306
|
-
hasVideo: boolean;
|
|
307
|
-
reason: TUIChangeReason;
|
|
308
|
-
}) => {
|
|
309
|
-
const { userId, streamType, hasVideo } = eventInfo;
|
|
310
|
-
// Handle flow layout when screen sharing flow changes
|
|
311
|
-
if (streamType === TUIVideoStreamType.kScreenStream) {
|
|
312
|
-
if (hasVideo) {
|
|
313
|
-
enlargeStream.value =
|
|
314
|
-
userId === basicStore.userId
|
|
315
|
-
? roomStore.localScreenStream
|
|
316
|
-
: roomStore.streamInfoObj[`${userId}_${streamType}`];
|
|
317
|
-
if (
|
|
318
|
-
enlargeStream.value &&
|
|
319
|
-
[LAYOUT.RIGHT_SIDE_LIST, LAYOUT.TOP_SIDE_LIST].indexOf(layout.value) ===
|
|
320
|
-
-1
|
|
321
|
-
) {
|
|
322
|
-
basicStore.setLayout(LAYOUT.RIGHT_SIDE_LIST);
|
|
323
|
-
}
|
|
324
|
-
if (userId !== basicStore.userId) {
|
|
325
|
-
roomStore.setHasOtherScreenShare(true);
|
|
326
|
-
}
|
|
327
|
-
} else {
|
|
328
|
-
if (userId === enlargeStream.value?.userId) {
|
|
329
|
-
handleLargeStreamLeave();
|
|
330
|
-
}
|
|
331
|
-
if (userId !== basicStore.userId) {
|
|
332
|
-
roomStore.setHasOtherScreenShare(false);
|
|
333
|
-
}
|
|
334
|
-
logger.debug(
|
|
335
|
-
`${logPrefix} onUserVideoStateChanged: stop`,
|
|
336
|
-
userId,
|
|
337
|
-
streamType
|
|
338
|
-
);
|
|
339
|
-
roomEngine.instance?.stopPlayRemoteVideo({
|
|
340
|
-
userId,
|
|
341
|
-
streamType,
|
|
342
|
-
});
|
|
343
|
-
}
|
|
164
|
+
const showSideList = ref(true);
|
|
165
|
+
const arrowDirection = computed(() => {
|
|
166
|
+
let arrowDirection = 'right';
|
|
167
|
+
if (layout.value === LAYOUT.TOP_SIDE_LIST) {
|
|
168
|
+
arrowDirection = showSideList.value ? 'up' : 'down';
|
|
344
169
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
// Wheat level changes
|
|
348
|
-
const onSeatListChanged = (eventInfo: {
|
|
349
|
-
seatList: TUISeatInfo[];
|
|
350
|
-
seatedList: TUISeatInfo[];
|
|
351
|
-
leftList: TUISeatInfo[];
|
|
352
|
-
}) => {
|
|
353
|
-
const { leftList } = eventInfo;
|
|
354
|
-
const leftUserIdList = leftList.map(item => item.userId);
|
|
355
|
-
// When the user with the largest screen logs in, the user with the largest screen needs to be replaced.
|
|
356
|
-
if (
|
|
357
|
-
enlargeStream.value &&
|
|
358
|
-
leftUserIdList.includes(enlargeStream.value?.userId)
|
|
359
|
-
) {
|
|
360
|
-
handleLargeStreamLeave();
|
|
170
|
+
if (layout.value === LAYOUT.RIGHT_SIDE_LIST) {
|
|
171
|
+
arrowDirection = showSideList.value ? 'right' : 'left';
|
|
361
172
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
} = eventInfo;
|
|
369
|
-
if (userId === enlargeStream.value?.userId) {
|
|
370
|
-
handleLargeStreamLeave();
|
|
173
|
+
return arrowDirection;
|
|
174
|
+
});
|
|
175
|
+
const strokePosition = computed(() => {
|
|
176
|
+
let strokePosition = '';
|
|
177
|
+
if (layout.value === LAYOUT.TOP_SIDE_LIST) {
|
|
178
|
+
strokePosition = 'bottom';
|
|
371
179
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
// Handle large window stream leaving
|
|
375
|
-
const handleLargeStreamLeave = () => {
|
|
376
|
-
if (roomStore.remoteStreamList.length === 0) {
|
|
377
|
-
basicStore.setLayout(LAYOUT.NINE_EQUAL_POINTS);
|
|
378
|
-
enlargeStream.value = null;
|
|
379
|
-
} else {
|
|
380
|
-
[enlargeStream.value] = roomStore.remoteStreamList;
|
|
180
|
+
if (layout.value === LAYOUT.RIGHT_SIDE_LIST) {
|
|
181
|
+
strokePosition = 'left';
|
|
381
182
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
TUIRoomEngine.once('ready', () => {
|
|
385
|
-
roomEngine.instance?.on(
|
|
386
|
-
TUIRoomEvents.onRemoteUserLeaveRoom,
|
|
387
|
-
onRemoteUserLeaveRoom
|
|
388
|
-
);
|
|
389
|
-
roomEngine.instance?.on(TUIRoomEvents.onSeatListChanged, onSeatListChanged);
|
|
390
|
-
roomEngine.instance?.on(
|
|
391
|
-
TUIRoomEvents.onUserVideoStateChanged,
|
|
392
|
-
onUserVideoStateChanged
|
|
393
|
-
);
|
|
394
|
-
});
|
|
395
|
-
|
|
396
|
-
onUnmounted(() => {
|
|
397
|
-
roomEngine.instance?.off(
|
|
398
|
-
TUIRoomEvents.onRemoteUserLeaveRoom,
|
|
399
|
-
onRemoteUserLeaveRoom
|
|
400
|
-
);
|
|
401
|
-
roomEngine.instance?.off(TUIRoomEvents.onSeatListChanged, onSeatListChanged);
|
|
402
|
-
roomEngine.instance?.off(
|
|
403
|
-
TUIRoomEvents.onUserVideoStateChanged,
|
|
404
|
-
onUserVideoStateChanged
|
|
405
|
-
);
|
|
183
|
+
return strokePosition;
|
|
406
184
|
});
|
|
185
|
+
function handleClickIcon() {
|
|
186
|
+
showSideList.value = !showSideList.value;
|
|
187
|
+
}
|
|
407
188
|
</script>
|
|
408
189
|
|
|
409
190
|
<style lang="scss" scoped>
|
|
@@ -471,8 +252,6 @@ onUnmounted(() => {
|
|
|
471
252
|
|
|
472
253
|
.stream-list-container {
|
|
473
254
|
position: relative;
|
|
474
|
-
display: flex;
|
|
475
|
-
justify-content: center;
|
|
476
255
|
width: 100%;
|
|
477
256
|
height: 175px;
|
|
478
257
|
padding: 20px 40px;
|
|
@@ -507,8 +286,6 @@ onUnmounted(() => {
|
|
|
507
286
|
|
|
508
287
|
.stream-list-container {
|
|
509
288
|
position: relative;
|
|
510
|
-
display: flex;
|
|
511
|
-
align-items: center;
|
|
512
289
|
width: 280px;
|
|
513
290
|
height: 100%;
|
|
514
291
|
padding: 20px;
|
|
@@ -532,58 +309,4 @@ onUnmounted(() => {
|
|
|
532
309
|
}
|
|
533
310
|
}
|
|
534
311
|
}
|
|
535
|
-
|
|
536
|
-
.turn-page-container {
|
|
537
|
-
position: absolute;
|
|
538
|
-
top: 50%;
|
|
539
|
-
left: 0;
|
|
540
|
-
display: flex;
|
|
541
|
-
justify-content: space-between;
|
|
542
|
-
width: 100%;
|
|
543
|
-
height: 60px;
|
|
544
|
-
transform: translateY(-50%);
|
|
545
|
-
|
|
546
|
-
.turn-page-arrow-container {
|
|
547
|
-
display: flex;
|
|
548
|
-
align-items: center;
|
|
549
|
-
justify-content: center;
|
|
550
|
-
width: 32px;
|
|
551
|
-
height: 60px;
|
|
552
|
-
color: var(--turn-page-arrow-color);
|
|
553
|
-
cursor: pointer;
|
|
554
|
-
background: var(--turn-page-background-color);
|
|
555
|
-
backdrop-filter: blur(2.25px);
|
|
556
|
-
border-radius: 32px;
|
|
557
|
-
|
|
558
|
-
&:hover {
|
|
559
|
-
background: var(--turn-page-hover-background-color);
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
.left-container {
|
|
564
|
-
position: absolute;
|
|
565
|
-
left: 34px;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
.right-container {
|
|
569
|
-
position: absolute;
|
|
570
|
-
right: 34px;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
.turn-page-right {
|
|
574
|
-
transform: rotateY(180deg);
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
.tui-theme-black .turn-page-container {
|
|
579
|
-
--turn-page-background-color: rgba(114, 122, 138, 0.4);
|
|
580
|
-
--turn-page-hover-background-color: rgba(114, 122, 138, 0.7);
|
|
581
|
-
--turn-page-arrow-color: #d5e0f2;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
.tui-theme-white .turn-page-container {
|
|
585
|
-
--turn-page-background-color: rgba(114, 122, 138, 0.4);
|
|
586
|
-
--turn-page-hover-background-color: rgba(114, 122, 138, 0.7);
|
|
587
|
-
--turn-page-arrow-color: white;
|
|
588
|
-
}
|
|
589
312
|
</style>
|