@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
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Vue = require("vue");
|
|
4
|
-
const pinia = require("pinia");
|
|
5
|
-
const Message = require("../../common/base/Message/Message.js");
|
|
6
|
-
const TUIRoomEngine = require("@tencentcloud/tuiroom-engine-electron");
|
|
7
|
-
const useRoomEngine = require("../../../hooks/useRoomEngine.js");
|
|
8
|
-
const chat = require("../../../stores/chat.js");
|
|
9
|
-
const room = require("../../../stores/room.js");
|
|
10
|
-
const index = require("../../../locales/index.js");
|
|
11
|
-
const basic = require("../../../stores/basic.js");
|
|
12
|
-
const util = require("../util.js");
|
|
13
|
-
function useChatEditor() {
|
|
14
|
-
const roomEngine = useRoomEngine.default();
|
|
15
|
-
const { t } = index.useI18n();
|
|
16
|
-
const basicStore = basic.useBasicStore();
|
|
17
|
-
const chatStore = chat.useChatStore();
|
|
18
|
-
const roomStore = room.useRoomStore();
|
|
19
|
-
const { roomId } = pinia.storeToRefs(basicStore);
|
|
20
|
-
const { isMessageDisabled } = pinia.storeToRefs(chatStore);
|
|
21
|
-
const editorInputEle = Vue.ref();
|
|
22
|
-
const sendMsg = Vue.ref("");
|
|
23
|
-
const isEmojiToolbarVisible = Vue.ref(false);
|
|
24
|
-
Vue.watch(isMessageDisabled, (value) => {
|
|
25
|
-
if (value) {
|
|
26
|
-
sendMsg.value = "";
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
const sendMessage = async () => {
|
|
30
|
-
var _a;
|
|
31
|
-
const result = util.decodeSendTextMsg(sendMsg.value);
|
|
32
|
-
if (result === "") {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
sendMsg.value = "";
|
|
36
|
-
isEmojiToolbarVisible.value = false;
|
|
37
|
-
try {
|
|
38
|
-
const tim = (_a = roomEngine.instance) == null ? void 0 : _a.getTIM();
|
|
39
|
-
if (!tim) {
|
|
40
|
-
throw new Error("tim is null");
|
|
41
|
-
}
|
|
42
|
-
const message = tim.createTextMessage({
|
|
43
|
-
to: roomId.value,
|
|
44
|
-
conversationType: TUIRoomEngine.TencentCloudChat.TYPES.CONV_GROUP,
|
|
45
|
-
payload: {
|
|
46
|
-
text: result
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
await tim.sendMessage(message);
|
|
50
|
-
chatStore.updateMessageList({
|
|
51
|
-
ID: Math.random().toString(),
|
|
52
|
-
type: "TIMTextElem",
|
|
53
|
-
payload: {
|
|
54
|
-
text: result
|
|
55
|
-
},
|
|
56
|
-
nick: roomStore.localUser.nameCard || roomStore.localUser.userName || roomStore.localUser.userId,
|
|
57
|
-
from: roomStore.localUser.userId,
|
|
58
|
-
flow: "out",
|
|
59
|
-
sequence: Math.random()
|
|
60
|
-
});
|
|
61
|
-
} catch (e) {
|
|
62
|
-
Message.default({ type: "error", message: t("Failed to send the message") });
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const handleChooseEmoji = (emojiName) => {
|
|
66
|
-
sendMsg.value += emojiName;
|
|
67
|
-
editorInputEle.value.focus();
|
|
68
|
-
};
|
|
69
|
-
const togglePopover = () => {
|
|
70
|
-
isEmojiToolbarVisible.value = !isEmojiToolbarVisible.value;
|
|
71
|
-
};
|
|
72
|
-
return {
|
|
73
|
-
t,
|
|
74
|
-
editorInputEle,
|
|
75
|
-
sendMsg,
|
|
76
|
-
isMessageDisabled,
|
|
77
|
-
sendMessage,
|
|
78
|
-
handleChooseEmoji,
|
|
79
|
-
isEmojiToolbarVisible,
|
|
80
|
-
togglePopover
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
exports.default = useChatEditor;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
-
"choose-emoji": (...args: any[]) => void;
|
|
3
|
-
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
4
|
-
"onChoose-emoji"?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
}, {}, {}>;
|
|
6
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const index_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
|
-
;/* empty css */
|
|
5
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const emoji = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-9a8a8a39"]]);
|
|
7
|
-
exports.default = emoji;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Vue = require("vue");
|
|
4
|
-
const util = require("../util.js");
|
|
5
|
-
const environment = require("../../../utils/environment.js");
|
|
6
|
-
const SvgIcon = require("../../common/base/SvgIcon.vue.js");
|
|
7
|
-
const EmojiIcon = require("../../common/icons/EmojiIcon.vue.js");
|
|
8
|
-
const vClickOutside = require("../../../directives/vClickOutside.js");
|
|
9
|
-
const _hoisted_1 = { class: "emoji-tool" };
|
|
10
|
-
const _hoisted_2 = ["onClick"];
|
|
11
|
-
const _hoisted_3 = ["src"];
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
13
|
-
__name: "index",
|
|
14
|
-
emits: ["choose-emoji"],
|
|
15
|
-
setup(__props, { emit: __emit }) {
|
|
16
|
-
const emit = __emit;
|
|
17
|
-
const showEmojiToolbar = Vue.ref(false);
|
|
18
|
-
const chooseEmoji = (itemName) => {
|
|
19
|
-
const emojiInfo = itemName;
|
|
20
|
-
emit("choose-emoji", emojiInfo);
|
|
21
|
-
};
|
|
22
|
-
const handleEmojiToobar = () => {
|
|
23
|
-
showEmojiToolbar.value = !showEmojiToolbar.value;
|
|
24
|
-
};
|
|
25
|
-
const handleClickOutsideEmojiToobar = () => {
|
|
26
|
-
if (showEmojiToolbar.value) {
|
|
27
|
-
showEmojiToolbar.value = false;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
return (_ctx, _cache) => {
|
|
31
|
-
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
32
|
-
Vue.createVNode(SvgIcon.default, {
|
|
33
|
-
icon: EmojiIcon.default,
|
|
34
|
-
class: "emoji-icon",
|
|
35
|
-
onClick: Vue.withModifiers(handleEmojiToobar, ["stop"])
|
|
36
|
-
}),
|
|
37
|
-
Vue.withDirectives((Vue.openBlock(), Vue.createElementBlock("div", {
|
|
38
|
-
class: Vue.normalizeClass(Vue.unref(environment.isMobile) ? "emoji-list-h5" : "emoji-list")
|
|
39
|
-
}, [
|
|
40
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(util.emojiList), (childrenItem, childrenIndex) => {
|
|
41
|
-
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
42
|
-
key: childrenIndex,
|
|
43
|
-
class: "emoji-item",
|
|
44
|
-
onClick: ($event) => chooseEmoji(childrenItem)
|
|
45
|
-
}, [
|
|
46
|
-
Vue.createElementVNode("img", {
|
|
47
|
-
src: Vue.unref(util.emojiBaseUrl) + Vue.unref(util.emojiMap)[childrenItem]
|
|
48
|
-
}, null, 8, _hoisted_3)
|
|
49
|
-
], 8, _hoisted_2);
|
|
50
|
-
}), 128))
|
|
51
|
-
], 2)), [
|
|
52
|
-
[Vue.vShow, showEmojiToolbar.value],
|
|
53
|
-
[Vue.unref(vClickOutside.default), handleClickOutsideEmojiToobar]
|
|
54
|
-
])
|
|
55
|
-
]);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
exports.default = _sfc_main;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Vue = require("vue");
|
|
4
|
-
const pinia = require("pinia");
|
|
5
|
-
const MessageText = require("../MessageTypes/MessageText.vue.js");
|
|
6
|
-
const environment = require("../../../utils/environment.js");
|
|
7
|
-
const useMessageListHook = require("./useMessageListHook.js");
|
|
8
|
-
const domOperation = require("../../../utils/domOperation.js");
|
|
9
|
-
const utils = require("../../../utils/utils.js");
|
|
10
|
-
const room = require("../../../stores/room.js");
|
|
11
|
-
const _hoisted_1 = ["title"];
|
|
12
|
-
const _hoisted_2 = { class: "message-body" };
|
|
13
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
14
|
-
__name: "index",
|
|
15
|
-
setup(__props) {
|
|
16
|
-
const messageListRef = Vue.ref();
|
|
17
|
-
const roomStore = room.useRoomStore();
|
|
18
|
-
const { getDisplayName } = pinia.storeToRefs(roomStore);
|
|
19
|
-
const {
|
|
20
|
-
messageList,
|
|
21
|
-
setMessageListInfo,
|
|
22
|
-
handleGetHistoryMessageList,
|
|
23
|
-
isCompleted,
|
|
24
|
-
getDisplaySenderName
|
|
25
|
-
} = useMessageListHook.default();
|
|
26
|
-
let isScrollAtBottom = true;
|
|
27
|
-
const handleMessageListScroll = (e) => {
|
|
28
|
-
const messageContainer = e.target;
|
|
29
|
-
const bottom = messageContainer.scrollHeight - messageContainer.scrollTop - messageContainer.clientHeight;
|
|
30
|
-
isScrollAtBottom = bottom <= 80;
|
|
31
|
-
if (messageContainer.scrollTop < 40 && !isCompleted.value) {
|
|
32
|
-
handleGetHistoryMessageList();
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const handleScroll = utils.throttle(handleMessageListScroll, 1e3);
|
|
36
|
-
async function scrollToLatestMessage() {
|
|
37
|
-
const { scrollHeight } = await domOperation.getScrollInfo("#messageScrollList");
|
|
38
|
-
if (messageListRef.value) {
|
|
39
|
-
messageListRef.value.scrollTop = scrollHeight;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
Vue.watch(messageList, async (newMessageList, oldMessageList) => {
|
|
43
|
-
var _a;
|
|
44
|
-
if (newMessageList.length === 0) return;
|
|
45
|
-
const lastMessage = newMessageList.slice(-1);
|
|
46
|
-
const oldLastMessage = oldMessageList.slice(-1);
|
|
47
|
-
const isSendByMe = lastMessage[0].flow === "out";
|
|
48
|
-
const isNewMessage = lastMessage[0].ID !== ((_a = oldLastMessage[0]) == null ? void 0 : _a.ID);
|
|
49
|
-
await Vue.nextTick();
|
|
50
|
-
if (isScrollAtBottom) {
|
|
51
|
-
scrollToLatestMessage();
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
if (isSendByMe && isNewMessage) {
|
|
55
|
-
scrollToLatestMessage();
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
Vue.onMounted(() => {
|
|
59
|
-
var _a;
|
|
60
|
-
setMessageListInfo();
|
|
61
|
-
(_a = messageListRef.value) == null ? void 0 : _a.addEventListener("scroll", handleScroll);
|
|
62
|
-
});
|
|
63
|
-
Vue.onUnmounted(() => {
|
|
64
|
-
var _a;
|
|
65
|
-
(_a = messageListRef.value) == null ? void 0 : _a.removeEventListener("scroll", handleScroll);
|
|
66
|
-
});
|
|
67
|
-
return (_ctx, _cache) => {
|
|
68
|
-
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
69
|
-
class: Vue.normalizeClass(Vue.unref(environment.isMobile) ? "message-list-container-h5" : "message-list-container")
|
|
70
|
-
}, [
|
|
71
|
-
Vue.createElementVNode("div", {
|
|
72
|
-
id: "messageScrollList",
|
|
73
|
-
ref_key: "messageListRef",
|
|
74
|
-
ref: messageListRef,
|
|
75
|
-
class: "message-list"
|
|
76
|
-
}, [
|
|
77
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(messageList), (item, index) => {
|
|
78
|
-
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
79
|
-
key: item.ID,
|
|
80
|
-
ref_for: true,
|
|
81
|
-
ref: "messageAimId",
|
|
82
|
-
class: Vue.normalizeClass(["message-item", `${"out" === item.flow ? "is-me" : ""}`])
|
|
83
|
-
}, [
|
|
84
|
-
Vue.unref(getDisplaySenderName)(index) ? (Vue.openBlock(), Vue.createElementBlock("div", {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: "message-header",
|
|
87
|
-
title: item.nick || item.from
|
|
88
|
-
}, Vue.toDisplayString(Vue.unref(getDisplayName)(item.from)), 9, _hoisted_1)) : Vue.createCommentVNode("", true),
|
|
89
|
-
Vue.createElementVNode("div", _hoisted_2, [
|
|
90
|
-
Vue.createVNode(MessageText.default, {
|
|
91
|
-
data: item.payload.text
|
|
92
|
-
}, null, 8, ["data"])
|
|
93
|
-
])
|
|
94
|
-
], 2);
|
|
95
|
-
}), 128))
|
|
96
|
-
], 512)
|
|
97
|
-
], 2);
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
exports.default = _sfc_main;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Vue = require("vue");
|
|
4
|
-
const pinia = require("pinia");
|
|
5
|
-
const chat = require("../../../stores/chat.js");
|
|
6
|
-
const basic = require("../../../stores/basic.js");
|
|
7
|
-
const index = require("../../../locales/index.js");
|
|
8
|
-
const TUIRoomEngine = require("@tencentcloud/tuiroom-engine-electron");
|
|
9
|
-
const useRoomEngine = require("../../../hooks/useRoomEngine.js");
|
|
10
|
-
function useMessageList() {
|
|
11
|
-
var _a;
|
|
12
|
-
const { t } = index.useI18n();
|
|
13
|
-
const roomEngine = useRoomEngine.default();
|
|
14
|
-
const chatStore = chat.useChatStore();
|
|
15
|
-
const basicStore = basic.useBasicStore();
|
|
16
|
-
const { roomId } = pinia.storeToRefs(basicStore);
|
|
17
|
-
const { messageList, isCompleted, nextReqMessageId } = pinia.storeToRefs(chatStore);
|
|
18
|
-
Vue.watch(
|
|
19
|
-
isCompleted,
|
|
20
|
-
(value) => {
|
|
21
|
-
isCompleted.value = value;
|
|
22
|
-
},
|
|
23
|
-
{ immediate: true, deep: true }
|
|
24
|
-
);
|
|
25
|
-
async function handleGetHistoryMessageList() {
|
|
26
|
-
var _a2;
|
|
27
|
-
const tim2 = (_a2 = roomEngine.instance) == null ? void 0 : _a2.getTIM();
|
|
28
|
-
const imResponse = await (tim2 == null ? void 0 : tim2.getMessageList({
|
|
29
|
-
conversationID: `GROUP${roomId.value}`,
|
|
30
|
-
nextReqMessageID: nextReqMessageId.value
|
|
31
|
-
}));
|
|
32
|
-
const {
|
|
33
|
-
nextReqMessageID: middleReqMessageId,
|
|
34
|
-
messageList: historyMessageList,
|
|
35
|
-
isCompleted: isCompleted2
|
|
36
|
-
} = imResponse.data;
|
|
37
|
-
messageList.value.splice(0, 0, ...historyMessageList);
|
|
38
|
-
const currentMessageList = messageList.value.filter(
|
|
39
|
-
(item) => item.type === "TIMTextElem"
|
|
40
|
-
);
|
|
41
|
-
chatStore.setMessageListInfo(
|
|
42
|
-
currentMessageList,
|
|
43
|
-
isCompleted2,
|
|
44
|
-
middleReqMessageId
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
async function getMessageList() {
|
|
48
|
-
var _a2;
|
|
49
|
-
let count = 0;
|
|
50
|
-
const result = {
|
|
51
|
-
currentMessageList: [],
|
|
52
|
-
isCompleted: false,
|
|
53
|
-
nextReqMessageId: ""
|
|
54
|
-
};
|
|
55
|
-
const tim2 = (_a2 = roomEngine.instance) == null ? void 0 : _a2.getTIM();
|
|
56
|
-
const getIMMessageList = async () => {
|
|
57
|
-
const conversationData = {
|
|
58
|
-
conversationID: `GROUP${roomId.value}`
|
|
59
|
-
};
|
|
60
|
-
if (result.nextReqMessageId !== "") {
|
|
61
|
-
conversationData.nextReqMessageID = result.nextReqMessageId;
|
|
62
|
-
}
|
|
63
|
-
const imResponse = await tim2.getMessageList(conversationData);
|
|
64
|
-
const { messageList: messageList2, isCompleted: isCompleted2, nextReqMessageID } = imResponse.data;
|
|
65
|
-
result.currentMessageList.splice(0, 0, ...messageList2);
|
|
66
|
-
result.isCompleted = messageList2.length > 0 ? isCompleted2 : true;
|
|
67
|
-
result.nextReqMessageId = nextReqMessageID;
|
|
68
|
-
if (result.isCompleted || result.currentMessageList.length >= 15) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
count += 1;
|
|
72
|
-
if (count === 1) {
|
|
73
|
-
await getIMMessageList();
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
await getIMMessageList();
|
|
77
|
-
return result;
|
|
78
|
-
}
|
|
79
|
-
const onReceiveMessage = (options) => {
|
|
80
|
-
if (!options || !options.data) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
const currentConversationId = `GROUP${roomId.value}`;
|
|
84
|
-
options.data.forEach((message) => {
|
|
85
|
-
if (message.conversationID !== currentConversationId || message.type !== TUIRoomEngine.TencentCloudChat.TYPES.MSG_TEXT) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const {
|
|
89
|
-
ID,
|
|
90
|
-
payload: { text },
|
|
91
|
-
nick: userName,
|
|
92
|
-
from: userId
|
|
93
|
-
} = message;
|
|
94
|
-
chatStore.updateMessageList({
|
|
95
|
-
ID,
|
|
96
|
-
type: "TIMTextElem",
|
|
97
|
-
payload: {
|
|
98
|
-
text
|
|
99
|
-
},
|
|
100
|
-
nick: userName || userId,
|
|
101
|
-
from: userId,
|
|
102
|
-
flow: "in",
|
|
103
|
-
sequence: Math.random()
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
async function setMessageListInfo() {
|
|
108
|
-
const { currentMessageList, isCompleted: isCompleted2, nextReqMessageId: nextReqMessageId2 } = await getMessageList();
|
|
109
|
-
const filterCurrentMessageList = currentMessageList.filter(
|
|
110
|
-
(item) => item.type === "TIMTextElem"
|
|
111
|
-
);
|
|
112
|
-
chatStore.setMessageListInfo(
|
|
113
|
-
filterCurrentMessageList,
|
|
114
|
-
isCompleted2,
|
|
115
|
-
nextReqMessageId2
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
function getDisplaySenderName(index2) {
|
|
119
|
-
if (index2 === 0) return true;
|
|
120
|
-
return messageList.value[index2].from !== messageList.value[index2 - 1].from;
|
|
121
|
-
}
|
|
122
|
-
let tim = (_a = roomEngine.instance) == null ? void 0 : _a.getTIM();
|
|
123
|
-
if (!tim) {
|
|
124
|
-
tim = TUIRoomEngine.TencentCloudChat.create({ SDKAppID: basicStore.sdkAppId });
|
|
125
|
-
}
|
|
126
|
-
TUIRoomEngine.once("ready", () => {
|
|
127
|
-
tim == null ? void 0 : tim.on(TUIRoomEngine.TencentCloudChat.EVENT.MESSAGE_RECEIVED, onReceiveMessage);
|
|
128
|
-
});
|
|
129
|
-
Vue.onUnmounted(() => {
|
|
130
|
-
tim == null ? void 0 : tim.off(TUIRoomEngine.TencentCloudChat.EVENT.MESSAGE_RECEIVED, onReceiveMessage);
|
|
131
|
-
});
|
|
132
|
-
return {
|
|
133
|
-
t,
|
|
134
|
-
handleGetHistoryMessageList,
|
|
135
|
-
messageList,
|
|
136
|
-
getMessageList,
|
|
137
|
-
setMessageListInfo,
|
|
138
|
-
getDisplaySenderName,
|
|
139
|
-
isCompleted
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
exports.default = useMessageList;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<Readonly<{
|
|
2
|
-
data?: any;
|
|
3
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<Readonly<{
|
|
4
|
-
data?: any;
|
|
5
|
-
}>>>, {
|
|
6
|
-
readonly data?: any;
|
|
7
|
-
}, {}>;
|
|
8
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const MessageText_vue_vue_type_script_setup_true_lang = require("./MessageText.vue2.js");
|
|
4
|
-
;/* empty css */
|
|
5
|
-
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const MessageText = /* @__PURE__ */ _pluginVue_exportHelper.default(MessageText_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-98238edd"]]);
|
|
7
|
-
exports.default = MessageText;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Vue = require("vue");
|
|
4
|
-
const util = require("../util.js");
|
|
5
|
-
const _hoisted_1 = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "text-box"
|
|
8
|
-
};
|
|
9
|
-
const _hoisted_2 = ["src"];
|
|
10
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
11
|
-
__name: "MessageText",
|
|
12
|
-
props: ["data"],
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const props = __props;
|
|
15
|
-
const handleTextMessageShowContext = (text) => util.decodeMessageText(text);
|
|
16
|
-
return (_ctx, _cache) => {
|
|
17
|
-
return Vue.openBlock(), Vue.createElementBlock("span", null, [
|
|
18
|
-
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(handleTextMessageShowContext(props.data), (item, index) => {
|
|
19
|
-
return Vue.openBlock(), Vue.createElementBlock("span", { key: index }, [
|
|
20
|
-
item.name === "text" ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_1, Vue.toDisplayString(item.text), 1)) : item.name === "img" ? (Vue.openBlock(), Vue.createElementBlock("img", {
|
|
21
|
-
key: 1,
|
|
22
|
-
class: "text-img",
|
|
23
|
-
src: item.src
|
|
24
|
-
}, null, 8, _hoisted_2)) : Vue.createCommentVNode("", true)
|
|
25
|
-
]);
|
|
26
|
-
}), 128))
|
|
27
|
-
]);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
exports.default = _sfc_main;
|