tuikit-atomicx-vue3 3.4.1 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +1 -0
- package/dist/baseComp/Modal/Modal.js +431 -23
- package/dist/chat/index.d.ts +18 -18
- package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
- package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
- package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
- package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
- package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
- package/dist/components/AudioSettingPanel/index.js +81 -73
- package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +3 -3
- package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
- package/dist/components/BarrageInput/MessageInputState.js +82 -0
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +2 -2
- package/dist/components/BarrageInput/TextEditor/index.js +7 -7
- package/dist/components/BarrageInput/type.d.ts +17 -0
- package/dist/components/BarrageInput/type.js +4 -0
- package/dist/components/BarrageInput/utils.d.ts +30 -0
- package/dist/components/BarrageInput/utils.js +41 -0
- package/dist/components/BarrageList/BarrageList.js +80 -110
- package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
- package/dist/components/BarrageList/BarrageListH5.js +95 -122
- package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
- package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
- package/dist/components/BarrageList/BarrageListState.js +106 -0
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
- package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
- package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
- package/dist/components/BarrageList/index.d.ts +0 -36
- package/dist/components/CameraButton/index.js +18 -19
- package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
- package/dist/components/CoHostPanel/BattlePanel.js +25 -25
- package/dist/components/CoHostPanel/CoHostPanel.js +60 -55
- package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
- package/dist/components/CoHostPanel/ConnectionPanel.js +129 -120
- package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
- package/dist/components/CoHostPanel/constants.d.ts +3 -0
- package/dist/components/CoHostPanel/constants.js +6 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
- package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
- package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
- package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
- package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
- package/dist/components/LiveList/LiveList.js +23 -23
- package/dist/components/LiveList/LiveListH5.js +38 -38
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
- package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
- package/dist/components/LiveScenePanel/index.js +4 -4
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.js +58 -58
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.js +56 -49
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.js +6 -6
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.js +1 -1
- package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.js +46 -43
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.js +23 -23
- package/dist/components/LiveView/PlayerControl/MultiResolution.js +79 -0
- package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +8 -0
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +172 -0
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +263 -0
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +6 -0
- package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +131 -0
- package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +3 -2
- package/dist/components/{LiveCoreView → LiveView}/i18n/en-US/index.js +4 -3
- package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +3 -2
- package/dist/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.js +4 -3
- package/dist/components/LiveView/index.d.ts +79 -0
- package/dist/components/{LiveCoreView → LiveView}/index.js +44 -42
- package/dist/components/MessageInput/TextEditor/EditorCore.js +2 -2
- package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
- package/dist/components/MessageList/index.d.ts +18 -18
- package/dist/components/MicButton/index.js +11 -11
- package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
- package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
- package/dist/components/StreamMixer/index.js +6 -6
- package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
- package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
- package/dist/components/StreamView/Layout/GridLayout.js +5 -5
- package/dist/components/StreamView/index.js +25 -33
- package/dist/components/StreamView/manager/mediaManager.js +54 -60
- package/dist/components/VideoSetting/CameraSelect.js +8 -8
- package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
- package/dist/components/VideoSetting/VideoPreview.js +9 -9
- package/dist/components/VideoSetting/VideoProfile.js +6 -6
- package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
- package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
- package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
- package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
- package/dist/hooks/useRoomEngine.js +6 -6
- package/dist/{index-D88ja_7_.js → index-BfIEeWMg.js} +1767 -1757
- package/dist/{index-D-KJvDvy.js → index-DTi1fL-x.js} +460 -457
- package/dist/index.js +177 -157
- package/dist/report/MetricsKey.d.ts +16 -0
- package/dist/report/MetricsKey.js +4 -0
- package/dist/report/dataReport.d.ts +12 -0
- package/dist/report/dataReport.js +45 -0
- package/dist/report/index.d.ts +4 -0
- package/dist/report/index.js +6 -0
- package/dist/rtc/index.d.ts +6 -81
- package/dist/rtc/index.js +53 -52
- package/dist/states/BarrageState/BarrageState.d.ts +74 -0
- package/dist/states/BarrageState/BarrageState.js +80 -0
- package/dist/states/BarrageState/index.d.ts +1 -0
- package/dist/states/BarrageState/index.js +5 -0
- package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
- package/dist/states/BattleState/BattleState.js +203 -0
- package/dist/states/BattleState/index.d.ts +1 -0
- package/dist/states/BattleState/index.js +4 -0
- package/dist/states/CoGuestState.d.ts +24 -94
- package/dist/states/CoGuestState.js +297 -189
- package/dist/states/CoHostState/CoHostState.d.ts +2 -2
- package/dist/states/CoHostState/CoHostState.js +135 -131
- package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
- package/dist/states/DeviceState/DeviceState.js +314 -0
- package/dist/states/DeviceState/index.d.ts +1 -0
- package/dist/states/DeviceState/index.js +4 -0
- package/dist/states/LiveAudienceState.d.ts +3 -1
- package/dist/states/LiveAudienceState.js +106 -63
- package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
- package/dist/states/LiveListState/LiveListState.js +285 -0
- package/dist/states/LiveListState/index.d.ts +1 -0
- package/dist/states/LiveListState/index.js +4 -0
- package/dist/states/LiveMonitorState/api/http.js +147 -129
- package/dist/states/LiveMonitorState/index.js +67 -62
- package/dist/states/LiveSeatState/index.d.ts +46 -11
- package/dist/states/LiveSeatState/index.js +34 -15
- package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
- package/dist/states/LiveSeatState/seatEventManager.js +63 -42
- package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
- package/dist/states/LiveSeatState/seatManager.js +131 -29
- package/dist/states/LiveSeatState/store.d.ts +5 -5
- package/dist/states/LiveSeatState/store.js +12 -10
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
- package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
- package/dist/states/LoginState.js +39 -34
- package/dist/states/SeatStore.js +82 -83
- package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
- package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
- package/dist/states/VideoMixerState/index.d.ts +1 -0
- package/dist/states/VideoMixerState/index.js +4 -0
- package/dist/styles/index.css +1 -1
- package/dist/types/audience.d.ts +21 -0
- package/dist/types/audience.js +4 -1
- package/dist/types/battle.d.ts +75 -3
- package/dist/types/battle.js +5 -1
- package/dist/types/coGuest.d.ts +72 -5
- package/dist/types/coGuest.js +4 -2
- package/dist/types/device.d.ts +38 -17
- package/dist/types/device.js +10 -8
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +96 -80
- package/dist/types/live.d.ts +36 -21
- package/dist/types/live.js +6 -4
- package/dist/types/seat.d.ts +23 -4
- package/dist/types/seat.js +7 -1
- package/dist/utils/eventCenter.d.ts +88 -0
- package/dist/utils/eventCenter.js +161 -0
- package/package.json +2 -2
- package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
- package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
- package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
- package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
- package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
- package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
- package/src/components/AudioSettingPanel/index.vue +4 -2
- package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
- package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
- package/src/components/BarrageInput/MessageInputState.ts +160 -0
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
- package/src/components/BarrageInput/type.ts +26 -0
- package/src/components/BarrageInput/utils.ts +45 -0
- package/src/components/BarrageList/BarrageList.vue +61 -117
- package/src/components/BarrageList/BarrageListH5.vue +75 -159
- package/src/components/BarrageList/BarrageListState.ts +223 -0
- package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
- package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
- package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
- package/src/components/CameraButton/index.vue +0 -1
- package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
- package/src/components/CoHostPanel/BattlePanel.vue +4 -7
- package/src/components/CoHostPanel/CoHostPanel.vue +11 -3
- package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
- package/src/components/CoHostPanel/ConnectionPanel.vue +41 -37
- package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
- package/src/components/CoHostPanel/constants.ts +3 -0
- package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
- package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
- package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
- package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
- package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
- package/src/components/LiveList/LiveList.vue +5 -5
- package/src/components/LiveList/LiveListH5.vue +6 -6
- package/src/components/LiveScenePanel/index.vue +2 -2
- package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue +10 -15
- package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue +30 -31
- package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +5 -3
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue +1 -1
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue +9 -3
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +10 -2
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.ts +233 -259
- package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.ts +64 -0
- package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +3 -2
- package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +3 -2
- package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
- package/src/components/{LiveCoreView → LiveView}/index.vue +3 -3
- package/src/components/MicButton/index.vue +3 -3
- package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
- package/src/components/StreamMixer/index.vue +1 -1
- package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
- package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
- package/src/components/StreamView/index.vue +28 -14
- package/src/components/StreamView/manager/mediaManager.ts +38 -42
- package/src/components/VideoSetting/CameraSelect.vue +1 -2
- package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
- package/src/components/VideoSetting/VideoPreview.vue +1 -2
- package/src/components/VideoSetting/VideoProfile.vue +1 -1
- package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
- package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
- package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
- package/src/hooks/useRoomEngine.ts +1 -1
- package/src/report/MetricsKey.ts +16 -0
- package/src/report/dataReport.ts +55 -0
- package/src/report/index.ts +7 -0
- package/src/rtc/index.ts +8 -10
- package/src/types/audience.ts +27 -1
- package/src/types/battle.ts +87 -4
- package/src/types/coGuest.ts +87 -5
- package/src/types/device.ts +41 -16
- package/src/types/index.ts +2 -2
- package/src/types/live.ts +41 -22
- package/src/types/seat.ts +28 -4
- package/src/utils/eventCenter.ts +249 -0
- package/dist/DialogPortal-CvJcEAsn.js +0 -417
- package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
- package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts +0 -30
- package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
- package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
- package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
- package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
- package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
- package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
- package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
- package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
- package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
- package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts +0 -35
- package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
- package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
- package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
- package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
- package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
- package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
- package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
- package/dist/components/BarrageList/MessageForward/index.js +0 -4
- package/dist/components/LiveCoreView/PlayerControl/MultiResolution.js +0 -78
- package/dist/components/LiveCoreView/PlayerControl/MultiResolution.vue.d.ts +0 -2
- package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +0 -168
- package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +0 -267
- package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +0 -99
- package/dist/components/LiveCoreView/index.d.ts +0 -4
- package/dist/components/StreamView/Layout/MixLayout.js +0 -89
- package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
- package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
- package/dist/states/BarrageListState/BarrageListState.js +0 -122
- package/dist/states/BarrageListState/index.d.ts +0 -1
- package/dist/states/BarrageListState/index.js +0 -4
- package/dist/states/BattleState.js +0 -117
- package/dist/states/DeviceState.js +0 -296
- package/dist/states/LiveState/index.js +0 -254
- package/dist/states/VideoMixerState.js +0 -260
- package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
- package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
- package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
- package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
- package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
- package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
- package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
- package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
- package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
- package/src/components/BarrageList/MessageForward/index.ts +0 -3
- package/src/components/StreamView/Layout/MixLayout.vue +0 -144
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/i18n/index.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.module.scss +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/index.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/defeat.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/draw.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/victory.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleOrdinaryBadge.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleTopBadge.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/blueBkg.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/redBkg.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/s.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/v.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { default as DefaultStreamViewUI } from './DefaultStreamViewUI.vue';
|
|
2
|
+
|
|
3
|
+
declare const LiveCoreView: {
|
|
4
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
5
|
+
P: {};
|
|
6
|
+
B: {};
|
|
7
|
+
D: {};
|
|
8
|
+
C: {};
|
|
9
|
+
M: {};
|
|
10
|
+
Defaults: {};
|
|
11
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
12
|
+
__isFragment?: never;
|
|
13
|
+
__isTeleport?: never;
|
|
14
|
+
__isSuspense?: never;
|
|
15
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
16
|
+
$slots: {
|
|
17
|
+
streamViewUI?(_: {
|
|
18
|
+
userInfo: import('../..').SeatUserInfo;
|
|
19
|
+
}): any;
|
|
20
|
+
localVideo?(_: {
|
|
21
|
+
style: {
|
|
22
|
+
position: "absolute";
|
|
23
|
+
left: string;
|
|
24
|
+
top: string;
|
|
25
|
+
width: string;
|
|
26
|
+
height: string;
|
|
27
|
+
transform: string;
|
|
28
|
+
zIndex: number;
|
|
29
|
+
} | {
|
|
30
|
+
position: "absolute";
|
|
31
|
+
left: string;
|
|
32
|
+
top: string;
|
|
33
|
+
width: string;
|
|
34
|
+
height: string;
|
|
35
|
+
zIndex: number;
|
|
36
|
+
transform?: undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
}): any;
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
declare const LiveView: {
|
|
42
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
43
|
+
P: {};
|
|
44
|
+
B: {};
|
|
45
|
+
D: {};
|
|
46
|
+
C: {};
|
|
47
|
+
M: {};
|
|
48
|
+
Defaults: {};
|
|
49
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
50
|
+
__isFragment?: never;
|
|
51
|
+
__isTeleport?: never;
|
|
52
|
+
__isSuspense?: never;
|
|
53
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
54
|
+
$slots: {
|
|
55
|
+
streamViewUI?(_: {
|
|
56
|
+
userInfo: import('../..').SeatUserInfo;
|
|
57
|
+
}): any;
|
|
58
|
+
localVideo?(_: {
|
|
59
|
+
style: {
|
|
60
|
+
position: "absolute";
|
|
61
|
+
left: string;
|
|
62
|
+
top: string;
|
|
63
|
+
width: string;
|
|
64
|
+
height: string;
|
|
65
|
+
transform: string;
|
|
66
|
+
zIndex: number;
|
|
67
|
+
} | {
|
|
68
|
+
position: "absolute";
|
|
69
|
+
left: string;
|
|
70
|
+
top: string;
|
|
71
|
+
width: string;
|
|
72
|
+
height: string;
|
|
73
|
+
zIndex: number;
|
|
74
|
+
transform?: undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
}): any;
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
export { LiveCoreView, LiveView, DefaultStreamViewUI };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { addI18n as
|
|
2
|
-
import
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { useUIKit as
|
|
5
|
-
import { useLiveSeatState as
|
|
6
|
-
import {
|
|
7
|
-
import { useLoginState as we } from "../../states/LoginState.js";
|
|
1
|
+
import { addI18n as J } from "../../i18n/index.js";
|
|
2
|
+
import oe from "./DefaultStreamViewUI.js";
|
|
3
|
+
import { defineComponent as ne, useSlots as ue, computed as n, ref as p, onMounted as T, onBeforeUnmount as D, watch as P, createElementBlock as L, openBlock as v, normalizeClass as se, createCommentVNode as w, createElementVNode as N, createBlock as M, toDisplayString as ve, unref as g, normalizeStyle as A, renderSlot as E, createVNode as he, Fragment as ce, renderList as de, mergeProps as K, normalizeProps as fe, Teleport as me } from "vue";
|
|
4
|
+
import { useUIKit as pe } from "@tencentcloud/uikit-base-component-vue3";
|
|
5
|
+
import { useLiveSeatState as we } from "../../states/LiveSeatState/index.js";
|
|
6
|
+
import { useLoginState as ge } from "../../states/LoginState.js";
|
|
8
7
|
import { getContentSize as j } from "../../utils/domOperation.js";
|
|
9
8
|
import q from "./PlayerControl/PlayerControl.js";
|
|
10
|
-
import
|
|
11
|
-
import { usePlayerControlState as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import ye from "./CoreViewDecorate/LiveCoreDecorate.js";
|
|
10
|
+
import { usePlayerControlState as Ie } from "./PlayerControl/PlayerControlState.js";
|
|
11
|
+
import { useLiveListState as Se } from "../../states/LiveListState/LiveListState.js";
|
|
12
|
+
import { isMobile as G } from "../../utils/env.js";
|
|
13
|
+
import { _ as Le } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
import { resource as xe } from "./i18n/en-US/index.js";
|
|
15
15
|
import { resource as Ce } from "./i18n/zh-CN/index.js";
|
|
16
|
-
const
|
|
16
|
+
const Ve = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "live-core-placeholder"
|
|
19
|
-
},
|
|
19
|
+
}, ze = { class: "placeholder-text" }, Me = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "live-core-ui"
|
|
22
|
-
},
|
|
22
|
+
}, $e = /* @__PURE__ */ ne({
|
|
23
23
|
__name: "index",
|
|
24
|
-
setup(
|
|
25
|
-
const { isFullscreen: X, isLandscapeStyleMode: Y } =
|
|
24
|
+
setup(be) {
|
|
25
|
+
const { isFullscreen: X, isLandscapeStyleMode: Y } = Ie(), { t: Z } = pe(), { seatList: d, canvas: u, startPlayStream: ee, stopPlayStream: te } = we(), { currentLive: x } = Se(), ae = ue(), C = n(() => ae.localVideo), { loginUserInfo: $ } = ge(), b = p(!1), R = p(!1), le = n(() => !(!C.value && V.value && h.value < c.value && G)), U = n(() => {
|
|
26
26
|
var e;
|
|
27
|
-
return ((e =
|
|
27
|
+
return ((e = x.value) == null ? void 0 : e.liveId) && !d.value.some((l) => {
|
|
28
28
|
var t, a;
|
|
29
29
|
return ((t = l.userInfo) == null ? void 0 : t.userId) === ((a = $.value) == null ? void 0 : a.userId);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
T(async () => {
|
|
33
|
-
R.value = !0, await
|
|
33
|
+
R.value = !0, await ee({ view: "atomicx-live-stream-content" }), b.value = !0;
|
|
34
34
|
}), D(async () => {
|
|
35
|
-
R.value = !1, await
|
|
35
|
+
R.value = !1, await te(), b.value = !1;
|
|
36
36
|
});
|
|
37
37
|
const V = p(!0), s = p(), _ = p({
|
|
38
38
|
width: 0,
|
|
@@ -63,7 +63,7 @@ const Le = {
|
|
|
63
63
|
})), z = n(() => d.value.map((e, l) => {
|
|
64
64
|
var i, H;
|
|
65
65
|
const t = k.value[l], a = V.value && I.value === "fill", o = d.value.length === 1 || ((i = e.region) == null ? void 0 : i.w) === u.value.width && ((H = e.region) == null ? void 0 : H.h) === u.value.height;
|
|
66
|
-
return !
|
|
66
|
+
return !C.value && a && o ? {
|
|
67
67
|
userInfo: e.userInfo,
|
|
68
68
|
region: {
|
|
69
69
|
position: "absolute",
|
|
@@ -85,10 +85,10 @@ const Le = {
|
|
|
85
85
|
zIndex: Number(t.zOrder) || 0
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
|
-
})),
|
|
88
|
+
})), re = n(() => z.value.find((e) => {
|
|
89
89
|
var l, t;
|
|
90
90
|
return ((l = e == null ? void 0 : e.userInfo) == null ? void 0 : l.userId) === ((t = $.value) == null ? void 0 : t.userId);
|
|
91
|
-
})), O = n(() =>
|
|
91
|
+
})), O = n(() => C.value ? z.value.filter((e) => {
|
|
92
92
|
var l, t;
|
|
93
93
|
return ((l = e.userInfo) == null ? void 0 : l.userId) !== ((t = $.value) == null ? void 0 : t.userId);
|
|
94
94
|
}) : z.value), f = n(() => {
|
|
@@ -126,13 +126,13 @@ const Le = {
|
|
|
126
126
|
} else
|
|
127
127
|
S(), r.value.scale = 1, r.value.transformX = 0, r.value.transformY = 0;
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const ie = n(() => ({
|
|
130
130
|
width: `${Math.floor(r.value.width) * r.value.scale}px`,
|
|
131
131
|
height: `${Math.floor(r.value.height) * r.value.scale}px`,
|
|
132
132
|
transform: `translate(${r.value.transformX * r.value.scale}px, ${r.value.transformY * r.value.scale}px)`
|
|
133
133
|
})), m = n(() => {
|
|
134
134
|
var e, l;
|
|
135
|
-
return u.value.width && u.value.height ? `${u.value.width}:${u.value.height}` :
|
|
135
|
+
return u.value.width && u.value.height ? `${u.value.width}:${u.value.height}` : x.value && ((e = x.value) == null ? void 0 : e.layoutTemplate) >= 200 && ((l = x.value) == null ? void 0 : l.layoutTemplate) <= 599 ? "16:9" : "9:16";
|
|
136
136
|
}), h = n(() => !m.value || m.value.indexOf(":") < 0 ? 0 : Number(m.value.split(":")[0])), c = n(() => !m.value || m.value.indexOf(":") < 0 ? 0 : Number(m.value.split(":")[1])), I = p(
|
|
137
137
|
"fit"
|
|
138
138
|
/* Fit */
|
|
@@ -146,7 +146,7 @@ const Le = {
|
|
|
146
146
|
var a, o;
|
|
147
147
|
return ((a = t.region) == null ? void 0 : a.w) === u.value.width && ((o = t.region) == null ? void 0 : o.h) === u.value.height;
|
|
148
148
|
});
|
|
149
|
-
!
|
|
149
|
+
!C.value && (e || l) ? I.value = "fill" : I.value = "fit", S();
|
|
150
150
|
}, { deep: !0 });
|
|
151
151
|
function S() {
|
|
152
152
|
if (!s.value)
|
|
@@ -182,43 +182,43 @@ const Le = {
|
|
|
182
182
|
F.unobserve(s.value);
|
|
183
183
|
}), (e, l) => {
|
|
184
184
|
var t;
|
|
185
|
-
return v(),
|
|
185
|
+
return v(), L("div", {
|
|
186
186
|
ref_key: "liveCoreViewContainerRef",
|
|
187
187
|
ref: s,
|
|
188
188
|
id: "live-core-view-container",
|
|
189
|
-
class:
|
|
189
|
+
class: se(["live-core-view-container", { "align-center": le.value }])
|
|
190
190
|
}, [
|
|
191
|
-
!e.$slots.localVideo && !b.value ? (v(),
|
|
192
|
-
N("span",
|
|
191
|
+
!e.$slots.localVideo && !b.value ? (v(), L("div", Ve, [
|
|
192
|
+
N("span", ze, ve(g(Z)("No video")), 1)
|
|
193
193
|
])) : w("", !0),
|
|
194
194
|
N("div", {
|
|
195
195
|
class: "live-core-view",
|
|
196
|
-
style: A(
|
|
196
|
+
style: A(ie.value)
|
|
197
197
|
}, [
|
|
198
198
|
l[0] || (l[0] = N("div", {
|
|
199
199
|
id: "atomicx-live-stream-content",
|
|
200
200
|
class: "stream-content"
|
|
201
201
|
}, null, -1)),
|
|
202
|
-
O.value.length > 0 ? (v(),
|
|
203
|
-
(v(!0),
|
|
202
|
+
O.value.length > 0 ? (v(), L("div", Me, [
|
|
203
|
+
(v(!0), L(ce, null, de(O.value, (a, o) => (v(), L("div", {
|
|
204
204
|
key: `seat-${o}`,
|
|
205
205
|
style: A(a.region)
|
|
206
206
|
}, [
|
|
207
207
|
E(e.$slots, "streamViewUI", K({ ref_for: !0 }, { userInfo: a.userInfo }), void 0, !0),
|
|
208
|
-
e.$slots.streamViewUI ? w("", !0) : (v(), M(
|
|
208
|
+
e.$slots.streamViewUI ? w("", !0) : (v(), M(oe, {
|
|
209
209
|
key: 0,
|
|
210
210
|
streamViewInfoList: O.value,
|
|
211
211
|
userInfo: a.userInfo
|
|
212
212
|
}, null, 8, ["streamViewInfoList", "userInfo"]))
|
|
213
213
|
], 4))), 128))
|
|
214
214
|
])) : w("", !0),
|
|
215
|
-
e.$slots.localVideo && R.value ? E(e.$slots, "localVideo",
|
|
216
|
-
|
|
215
|
+
e.$slots.localVideo && R.value ? E(e.$slots, "localVideo", fe(K({ key: 1 }, { style: (t = re.value) == null ? void 0 : t.region })), void 0, !0) : w("", !0),
|
|
216
|
+
he(ye, { seatListWithRealSize: z.value }, null, 8, ["seatListWithRealSize"])
|
|
217
217
|
], 4),
|
|
218
|
-
g(X) ? w("", !0) : (v(), M(
|
|
218
|
+
g(X) ? w("", !0) : (v(), M(me, {
|
|
219
219
|
key: 1,
|
|
220
220
|
to: "body",
|
|
221
|
-
disabled: !g(
|
|
221
|
+
disabled: !g(G)
|
|
222
222
|
}, [
|
|
223
223
|
U.value ? (v(), M(q, {
|
|
224
224
|
key: 0,
|
|
@@ -232,10 +232,12 @@ const Le = {
|
|
|
232
232
|
], 2);
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
}),
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
}), Q = /* @__PURE__ */ Le($e, [["__scopeId", "data-v-8d25163d"]]);
|
|
236
|
+
J("en-US", { translation: xe });
|
|
237
|
+
J("zh-CN", { translation: Ce });
|
|
238
|
+
const Ae = Q, Ee = Q;
|
|
238
239
|
export {
|
|
239
|
-
|
|
240
|
-
|
|
240
|
+
oe as DefaultStreamViewUI,
|
|
241
|
+
Ae as LiveCoreView,
|
|
242
|
+
Ee as LiveView
|
|
241
243
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as g, P as x, E as d, I as o } from "../../../index-
|
|
2
|
-
import { E as M } from "../../../index-
|
|
1
|
+
import { S as g, P as x, E as d, I as o } from "../../../index-DTi1fL-x.js";
|
|
2
|
+
import { E as M } from "../../../index-BfIEeWMg.js";
|
|
3
3
|
import { MessageContentType as n } from "../../../states/MessageInputState/type.js";
|
|
4
4
|
function y() {
|
|
5
5
|
return o.extend({
|
|
@@ -40,11 +40,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
40
40
|
}>>> & Readonly<{}>, {
|
|
41
41
|
filter: (message: MessageModel) => boolean;
|
|
42
42
|
enableReadReceipt: boolean;
|
|
43
|
-
messageActionList: MessageAction[];
|
|
44
43
|
Message: Component;
|
|
45
|
-
messageAggregationTime: number;
|
|
46
44
|
MessageTimeDivider: Component;
|
|
45
|
+
messageActionList: MessageAction[];
|
|
47
46
|
alignment: "left" | "right" | "two-sided";
|
|
47
|
+
messageAggregationTime: number;
|
|
48
48
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
49
49
|
export default _default;
|
|
50
50
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -82,26 +82,26 @@ declare const MessageList: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
82
82
|
type: import('vue').PropType<boolean>;
|
|
83
83
|
default: boolean;
|
|
84
84
|
};
|
|
85
|
-
messageActionList: {
|
|
86
|
-
type: import('vue').PropType<import('../../hooks/useMessageActions').MessageAction[]>;
|
|
87
|
-
default: undefined;
|
|
88
|
-
};
|
|
89
85
|
Message: {
|
|
90
86
|
type: import('vue').PropType<import('vue').Component>;
|
|
91
87
|
default: undefined;
|
|
92
88
|
};
|
|
93
|
-
messageAggregationTime: {
|
|
94
|
-
type: import('vue').PropType<number>;
|
|
95
|
-
default: number;
|
|
96
|
-
};
|
|
97
89
|
MessageTimeDivider: {
|
|
98
90
|
type: import('vue').PropType<import('vue').Component>;
|
|
99
91
|
default: undefined;
|
|
100
92
|
};
|
|
93
|
+
messageActionList: {
|
|
94
|
+
type: import('vue').PropType<import('../../hooks/useMessageActions').MessageAction[]>;
|
|
95
|
+
default: undefined;
|
|
96
|
+
};
|
|
101
97
|
alignment: {
|
|
102
98
|
type: import('vue').PropType<"left" | "right" | "two-sided">;
|
|
103
99
|
default: string;
|
|
104
100
|
};
|
|
101
|
+
messageAggregationTime: {
|
|
102
|
+
type: import('vue').PropType<number>;
|
|
103
|
+
default: number;
|
|
104
|
+
};
|
|
105
105
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
106
106
|
filter: {
|
|
107
107
|
type: import('vue').PropType<(message: import('@tencentcloud/chat-uikit-engine').IMessageModel) => boolean>;
|
|
@@ -111,33 +111,33 @@ declare const MessageList: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
111
111
|
type: import('vue').PropType<boolean>;
|
|
112
112
|
default: boolean;
|
|
113
113
|
};
|
|
114
|
-
messageActionList: {
|
|
115
|
-
type: import('vue').PropType<import('../../hooks/useMessageActions').MessageAction[]>;
|
|
116
|
-
default: undefined;
|
|
117
|
-
};
|
|
118
114
|
Message: {
|
|
119
115
|
type: import('vue').PropType<import('vue').Component>;
|
|
120
116
|
default: undefined;
|
|
121
117
|
};
|
|
122
|
-
messageAggregationTime: {
|
|
123
|
-
type: import('vue').PropType<number>;
|
|
124
|
-
default: number;
|
|
125
|
-
};
|
|
126
118
|
MessageTimeDivider: {
|
|
127
119
|
type: import('vue').PropType<import('vue').Component>;
|
|
128
120
|
default: undefined;
|
|
129
121
|
};
|
|
122
|
+
messageActionList: {
|
|
123
|
+
type: import('vue').PropType<import('../../hooks/useMessageActions').MessageAction[]>;
|
|
124
|
+
default: undefined;
|
|
125
|
+
};
|
|
130
126
|
alignment: {
|
|
131
127
|
type: import('vue').PropType<"left" | "right" | "two-sided">;
|
|
132
128
|
default: string;
|
|
133
129
|
};
|
|
130
|
+
messageAggregationTime: {
|
|
131
|
+
type: import('vue').PropType<number>;
|
|
132
|
+
default: number;
|
|
133
|
+
};
|
|
134
134
|
}>> & Readonly<{}>, {
|
|
135
135
|
filter: (message: import('@tencentcloud/chat-uikit-engine').IMessageModel) => boolean;
|
|
136
136
|
enableReadReceipt: boolean;
|
|
137
|
-
messageActionList: import('../../hooks/useMessageActions').MessageAction[];
|
|
138
137
|
Message: import('vue').Component;
|
|
139
|
-
messageAggregationTime: number;
|
|
140
138
|
MessageTimeDivider: import('vue').Component;
|
|
139
|
+
messageActionList: import('../../hooks/useMessageActions').MessageAction[];
|
|
141
140
|
alignment: "left" | "right" | "two-sided";
|
|
141
|
+
messageAggregationTime: number;
|
|
142
142
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
143
143
|
export { Message, MessageList, };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { defineComponent as d, computed as p, createElementBlock as _, openBlock as i, createElementVNode as f, normalizeClass as v, unref as e, createVNode as h, createBlock as b, createCommentVNode as k } from "vue";
|
|
2
2
|
import { IconUnSupport as C } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
-
import
|
|
4
|
-
import E from "
|
|
5
|
-
import { DeviceStatus as n, DeviceError as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
3
|
+
import B from "./AudioIcon.js";
|
|
4
|
+
import { useDeviceState as E } from "../../states/DeviceState/DeviceState.js";
|
|
5
|
+
import { DeviceStatus as n, DeviceError as M } from "../../types/device.js";
|
|
6
|
+
import { _ as x } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const A = { class: "mic-button-container" }, L = /* @__PURE__ */ d({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(N) {
|
|
10
10
|
const {
|
|
11
|
-
|
|
11
|
+
currentMicVolume: r,
|
|
12
12
|
hasPublishAudioPermission: o,
|
|
13
13
|
microphoneStatus: t,
|
|
14
14
|
microphoneLastError: c,
|
|
15
15
|
muteLocalAudio: a,
|
|
16
16
|
openLocalMicrophone: s,
|
|
17
17
|
unmuteLocalAudio: u
|
|
18
|
-
} =
|
|
18
|
+
} = E(), m = p(() => t.value !== n.On);
|
|
19
19
|
async function l() {
|
|
20
20
|
o.value && (t.value === n.On ? await a() : (await s(), await u()));
|
|
21
21
|
}
|
|
22
|
-
return (S, V) => (i(), _("div",
|
|
22
|
+
return (S, V) => (i(), _("div", A, [
|
|
23
23
|
f("div", {
|
|
24
24
|
class: v(["mic-button", { disabled: !e(o) }]),
|
|
25
25
|
onClick: l
|
|
26
26
|
}, [
|
|
27
|
-
h(
|
|
27
|
+
h(B, {
|
|
28
28
|
"audio-volume": e(r),
|
|
29
29
|
"is-muted": m.value,
|
|
30
30
|
"is-disabled": !e(o)
|
|
31
31
|
}, null, 8, ["audio-volume", "is-muted", "is-disabled"]),
|
|
32
|
-
e(c) !== e(
|
|
32
|
+
e(c) !== e(M).NoError ? (i(), b(e(C), {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "unsupport-icon",
|
|
35
35
|
size: "14"
|
|
@@ -37,7 +37,7 @@ const L = { class: "mic-button-container" }, M = /* @__PURE__ */ d({
|
|
|
37
37
|
], 2)
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
|
-
}), P = /* @__PURE__ */
|
|
40
|
+
}), P = /* @__PURE__ */ x(L, [["__scopeId", "data-v-944a3f62"]]);
|
|
41
41
|
export {
|
|
42
42
|
P as MicButton
|
|
43
43
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as M, computed as d, createElementBlock as m, openBlock as c, Fragment as O, renderList as V, withModifiers as z, normalizeStyle as p, normalizeClass as w, createElementVNode as y, createBlock as k, resolveDynamicComponent as b, toDisplayString as h } from "vue";
|
|
2
2
|
import { TRTCVideoMirrorType as v, TRTCVideoRotation as i } from "@tencentcloud/tuiroom-engine-js";
|
|
3
3
|
import { useUIKit as D } from "@tencentcloud/uikit-base-component-vue3";
|
|
4
|
-
import
|
|
5
|
-
import I from "../icons/
|
|
6
|
-
import g from "../icons/
|
|
7
|
-
import A from "../icons/
|
|
8
|
-
import B from "../icons/
|
|
9
|
-
import E from "
|
|
4
|
+
import S from "../icons/CameraMirror.js";
|
|
5
|
+
import I from "../icons/Delete.js";
|
|
6
|
+
import g from "../icons/Down.js";
|
|
7
|
+
import A from "../icons/Rotation.js";
|
|
8
|
+
import B from "../icons/Up.js";
|
|
9
|
+
import { useVideoMixerState as E } from "../../../states/VideoMixerState/VideoMixerState.js";
|
|
10
10
|
import { _ as L } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const Z = ["onClick"], U = { class: "mixer-control-item-icon" }, j = { class: "mixer-control-item-name" }, F = /* @__PURE__ */ M({
|
|
12
12
|
__name: "MixerControl",
|
|
13
13
|
setup(K) {
|
|
14
|
-
const { activeMediaSource: t, mediaSourceList: T, updateMediaSource: a, removeMediaSource: C } =
|
|
14
|
+
const { activeMediaSource: t, mediaSourceList: T, updateMediaSource: a, removeMediaSource: C } = E(), { t: n } = D();
|
|
15
15
|
function R(o) {
|
|
16
16
|
o.stopPropagation();
|
|
17
17
|
}
|
|
@@ -25,7 +25,7 @@ const Z = ["onClick"], U = { class: "mixer-control-item-icon" }, j = { class: "m
|
|
|
25
25
|
{
|
|
26
26
|
name: "mirror",
|
|
27
27
|
text: n("Mirror"),
|
|
28
|
-
icon:
|
|
28
|
+
icon: S,
|
|
29
29
|
onClick: () => {
|
|
30
30
|
const o = t.value.layout.mirror;
|
|
31
31
|
a(t.value, {
|
|
@@ -38,7 +38,7 @@ const Z = ["onClick"], U = { class: "mixer-control-item-icon" }, j = { class: "m
|
|
|
38
38
|
{
|
|
39
39
|
name: "rotate",
|
|
40
40
|
text: n("Rotate"),
|
|
41
|
-
icon:
|
|
41
|
+
icon: A,
|
|
42
42
|
onClick: () => {
|
|
43
43
|
const o = t.value.layout.rotation || i.TRTCVideoRotation0, r = {
|
|
44
44
|
[i.TRTCVideoRotation0]: i.TRTCVideoRotation90,
|
|
@@ -52,7 +52,7 @@ const Z = ["onClick"], U = { class: "mixer-control-item-icon" }, j = { class: "m
|
|
|
52
52
|
{
|
|
53
53
|
name: "up",
|
|
54
54
|
text: n("Move Up"),
|
|
55
|
-
icon:
|
|
55
|
+
icon: B,
|
|
56
56
|
disable: f.value,
|
|
57
57
|
onClick: async () => {
|
|
58
58
|
const o = l.value.findIndex((u) => u.id === t.value.id), e = l.value[o + 1], r = t.value.layout.zOrder, s = e == null ? void 0 : e.layout.zOrder;
|
|
@@ -62,7 +62,7 @@ const Z = ["onClick"], U = { class: "mixer-control-item-icon" }, j = { class: "m
|
|
|
62
62
|
{
|
|
63
63
|
name: "down",
|
|
64
64
|
text: n("Move Down"),
|
|
65
|
-
icon:
|
|
65
|
+
icon: g,
|
|
66
66
|
disable: _.value,
|
|
67
67
|
onClick: async () => {
|
|
68
68
|
const o = l.value.findIndex((u) => u.id === t.value.id), e = l.value[o - 1], r = t.value.layout.zOrder, s = e == null ? void 0 : e.layout.zOrder;
|
|
@@ -72,7 +72,7 @@ const Z = ["onClick"], U = { class: "mixer-control-item-icon" }, j = { class: "m
|
|
|
72
72
|
{
|
|
73
73
|
name: "delete",
|
|
74
74
|
text: n("Delete"),
|
|
75
|
-
icon:
|
|
75
|
+
icon: I,
|
|
76
76
|
style: "color: red",
|
|
77
77
|
onClick: () => {
|
|
78
78
|
C(t.value);
|