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.
Files changed (342) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/dist/baseComp/Modal/Modal.js +431 -23
  3. package/dist/chat/index.d.ts +18 -18
  4. package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
  5. package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
  6. package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
  7. package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
  8. package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
  9. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
  10. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
  11. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
  12. package/dist/components/AudioSettingPanel/index.js +81 -73
  13. package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
  14. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +3 -3
  15. package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
  16. package/dist/components/BarrageInput/MessageInputState.js +82 -0
  17. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  18. package/dist/components/BarrageInput/TextEditor/EditorCore.js +2 -2
  19. package/dist/components/BarrageInput/TextEditor/index.js +7 -7
  20. package/dist/components/BarrageInput/type.d.ts +17 -0
  21. package/dist/components/BarrageInput/type.js +4 -0
  22. package/dist/components/BarrageInput/utils.d.ts +30 -0
  23. package/dist/components/BarrageInput/utils.js +41 -0
  24. package/dist/components/BarrageList/BarrageList.js +80 -110
  25. package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
  26. package/dist/components/BarrageList/BarrageListH5.js +95 -122
  27. package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
  28. package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
  29. package/dist/components/BarrageList/BarrageListState.js +106 -0
  30. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
  31. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
  32. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
  33. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
  34. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
  35. package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
  36. package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
  37. package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
  38. package/dist/components/BarrageList/index.d.ts +0 -36
  39. package/dist/components/CameraButton/index.js +18 -19
  40. package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
  41. package/dist/components/CoHostPanel/BattlePanel.js +25 -25
  42. package/dist/components/CoHostPanel/CoHostPanel.js +60 -55
  43. package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
  44. package/dist/components/CoHostPanel/ConnectionPanel.js +129 -120
  45. package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
  46. package/dist/components/CoHostPanel/constants.d.ts +3 -0
  47. package/dist/components/CoHostPanel/constants.js +6 -0
  48. package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
  49. package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
  50. package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
  51. package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
  52. package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
  53. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
  54. package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
  55. package/dist/components/LiveList/LiveList.js +23 -23
  56. package/dist/components/LiveList/LiveListH5.js +38 -38
  57. package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
  58. package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
  59. package/dist/components/LiveScenePanel/index.js +4 -4
  60. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.js +58 -58
  61. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.js +56 -49
  62. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.js +6 -6
  63. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.js +1 -1
  64. package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.js +46 -43
  65. package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.js +23 -23
  66. package/dist/components/LiveView/PlayerControl/MultiResolution.js +79 -0
  67. package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +8 -0
  68. package/dist/components/LiveView/PlayerControl/PlayerControl.js +172 -0
  69. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +263 -0
  70. package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +6 -0
  71. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +131 -0
  72. package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +3 -2
  73. package/dist/components/{LiveCoreView → LiveView}/i18n/en-US/index.js +4 -3
  74. package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +3 -2
  75. package/dist/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.js +4 -3
  76. package/dist/components/LiveView/index.d.ts +79 -0
  77. package/dist/components/{LiveCoreView → LiveView}/index.js +44 -42
  78. package/dist/components/MessageInput/TextEditor/EditorCore.js +2 -2
  79. package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
  80. package/dist/components/MessageList/index.d.ts +18 -18
  81. package/dist/components/MicButton/index.js +11 -11
  82. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
  83. package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
  84. package/dist/components/StreamMixer/index.js +6 -6
  85. package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
  86. package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
  87. package/dist/components/StreamView/Layout/GridLayout.js +5 -5
  88. package/dist/components/StreamView/index.js +25 -33
  89. package/dist/components/StreamView/manager/mediaManager.js +54 -60
  90. package/dist/components/VideoSetting/CameraSelect.js +8 -8
  91. package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
  92. package/dist/components/VideoSetting/VideoPreview.js +9 -9
  93. package/dist/components/VideoSetting/VideoProfile.js +6 -6
  94. package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
  95. package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
  96. package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
  97. package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
  98. package/dist/hooks/useRoomEngine.js +6 -6
  99. package/dist/{index-D88ja_7_.js → index-BfIEeWMg.js} +1767 -1757
  100. package/dist/{index-D-KJvDvy.js → index-DTi1fL-x.js} +460 -457
  101. package/dist/index.js +177 -157
  102. package/dist/report/MetricsKey.d.ts +16 -0
  103. package/dist/report/MetricsKey.js +4 -0
  104. package/dist/report/dataReport.d.ts +12 -0
  105. package/dist/report/dataReport.js +45 -0
  106. package/dist/report/index.d.ts +4 -0
  107. package/dist/report/index.js +6 -0
  108. package/dist/rtc/index.d.ts +6 -81
  109. package/dist/rtc/index.js +53 -52
  110. package/dist/states/BarrageState/BarrageState.d.ts +74 -0
  111. package/dist/states/BarrageState/BarrageState.js +80 -0
  112. package/dist/states/BarrageState/index.d.ts +1 -0
  113. package/dist/states/BarrageState/index.js +5 -0
  114. package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
  115. package/dist/states/BattleState/BattleState.js +203 -0
  116. package/dist/states/BattleState/index.d.ts +1 -0
  117. package/dist/states/BattleState/index.js +4 -0
  118. package/dist/states/CoGuestState.d.ts +24 -94
  119. package/dist/states/CoGuestState.js +297 -189
  120. package/dist/states/CoHostState/CoHostState.d.ts +2 -2
  121. package/dist/states/CoHostState/CoHostState.js +135 -131
  122. package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
  123. package/dist/states/DeviceState/DeviceState.js +314 -0
  124. package/dist/states/DeviceState/index.d.ts +1 -0
  125. package/dist/states/DeviceState/index.js +4 -0
  126. package/dist/states/LiveAudienceState.d.ts +3 -1
  127. package/dist/states/LiveAudienceState.js +106 -63
  128. package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
  129. package/dist/states/LiveListState/LiveListState.js +285 -0
  130. package/dist/states/LiveListState/index.d.ts +1 -0
  131. package/dist/states/LiveListState/index.js +4 -0
  132. package/dist/states/LiveMonitorState/api/http.js +147 -129
  133. package/dist/states/LiveMonitorState/index.js +67 -62
  134. package/dist/states/LiveSeatState/index.d.ts +46 -11
  135. package/dist/states/LiveSeatState/index.js +34 -15
  136. package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
  137. package/dist/states/LiveSeatState/seatEventManager.js +63 -42
  138. package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
  139. package/dist/states/LiveSeatState/seatManager.js +131 -29
  140. package/dist/states/LiveSeatState/store.d.ts +5 -5
  141. package/dist/states/LiveSeatState/store.js +12 -10
  142. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
  143. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
  144. package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
  145. package/dist/states/LoginState.js +39 -34
  146. package/dist/states/SeatStore.js +82 -83
  147. package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
  148. package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
  149. package/dist/states/VideoMixerState/index.d.ts +1 -0
  150. package/dist/states/VideoMixerState/index.js +4 -0
  151. package/dist/styles/index.css +1 -1
  152. package/dist/types/audience.d.ts +21 -0
  153. package/dist/types/audience.js +4 -1
  154. package/dist/types/battle.d.ts +75 -3
  155. package/dist/types/battle.js +5 -1
  156. package/dist/types/coGuest.d.ts +72 -5
  157. package/dist/types/coGuest.js +4 -2
  158. package/dist/types/device.d.ts +38 -17
  159. package/dist/types/device.js +10 -8
  160. package/dist/types/index.d.ts +2 -2
  161. package/dist/types/index.js +96 -80
  162. package/dist/types/live.d.ts +36 -21
  163. package/dist/types/live.js +6 -4
  164. package/dist/types/seat.d.ts +23 -4
  165. package/dist/types/seat.js +7 -1
  166. package/dist/utils/eventCenter.d.ts +88 -0
  167. package/dist/utils/eventCenter.js +161 -0
  168. package/package.json +2 -2
  169. package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
  170. package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
  171. package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
  172. package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
  173. package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
  174. package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
  175. package/src/components/AudioSettingPanel/index.vue +4 -2
  176. package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
  177. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
  178. package/src/components/BarrageInput/MessageInputState.ts +160 -0
  179. package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
  180. package/src/components/BarrageInput/type.ts +26 -0
  181. package/src/components/BarrageInput/utils.ts +45 -0
  182. package/src/components/BarrageList/BarrageList.vue +61 -117
  183. package/src/components/BarrageList/BarrageListH5.vue +75 -159
  184. package/src/components/BarrageList/BarrageListState.ts +223 -0
  185. package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
  186. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
  187. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
  188. package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
  189. package/src/components/CameraButton/index.vue +0 -1
  190. package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
  191. package/src/components/CoHostPanel/BattlePanel.vue +4 -7
  192. package/src/components/CoHostPanel/CoHostPanel.vue +11 -3
  193. package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
  194. package/src/components/CoHostPanel/ConnectionPanel.vue +41 -37
  195. package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
  196. package/src/components/CoHostPanel/constants.ts +3 -0
  197. package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
  198. package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
  199. package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
  200. package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
  201. package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
  202. package/src/components/LiveList/LiveList.vue +5 -5
  203. package/src/components/LiveList/LiveListH5.vue +6 -6
  204. package/src/components/LiveScenePanel/index.vue +2 -2
  205. package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue +10 -15
  206. package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue +30 -31
  207. package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +5 -3
  208. package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue +1 -1
  209. package/src/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue +9 -3
  210. package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +10 -2
  211. package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.ts +233 -259
  212. package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.ts +64 -0
  213. package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +3 -2
  214. package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +3 -2
  215. package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
  216. package/src/components/{LiveCoreView → LiveView}/index.vue +3 -3
  217. package/src/components/MicButton/index.vue +3 -3
  218. package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
  219. package/src/components/StreamMixer/index.vue +1 -1
  220. package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
  221. package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
  222. package/src/components/StreamView/index.vue +28 -14
  223. package/src/components/StreamView/manager/mediaManager.ts +38 -42
  224. package/src/components/VideoSetting/CameraSelect.vue +1 -2
  225. package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
  226. package/src/components/VideoSetting/VideoPreview.vue +1 -2
  227. package/src/components/VideoSetting/VideoProfile.vue +1 -1
  228. package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
  229. package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
  230. package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
  231. package/src/hooks/useRoomEngine.ts +1 -1
  232. package/src/report/MetricsKey.ts +16 -0
  233. package/src/report/dataReport.ts +55 -0
  234. package/src/report/index.ts +7 -0
  235. package/src/rtc/index.ts +8 -10
  236. package/src/types/audience.ts +27 -1
  237. package/src/types/battle.ts +87 -4
  238. package/src/types/coGuest.ts +87 -5
  239. package/src/types/device.ts +41 -16
  240. package/src/types/index.ts +2 -2
  241. package/src/types/live.ts +41 -22
  242. package/src/types/seat.ts +28 -4
  243. package/src/utils/eventCenter.ts +249 -0
  244. package/dist/DialogPortal-CvJcEAsn.js +0 -417
  245. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
  246. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts +0 -30
  247. package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
  248. package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
  249. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
  250. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
  251. package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
  252. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
  253. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
  254. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
  255. package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
  256. package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
  257. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
  258. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
  259. package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
  260. package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
  261. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
  262. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
  263. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
  264. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
  265. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
  266. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
  267. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
  268. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts +0 -35
  269. package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
  270. package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
  271. package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
  272. package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
  273. package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
  274. package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
  275. package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
  276. package/dist/components/BarrageList/MessageForward/index.js +0 -4
  277. package/dist/components/LiveCoreView/PlayerControl/MultiResolution.js +0 -78
  278. package/dist/components/LiveCoreView/PlayerControl/MultiResolution.vue.d.ts +0 -2
  279. package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +0 -168
  280. package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +0 -267
  281. package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +0 -99
  282. package/dist/components/LiveCoreView/index.d.ts +0 -4
  283. package/dist/components/StreamView/Layout/MixLayout.js +0 -89
  284. package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
  285. package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
  286. package/dist/states/BarrageListState/BarrageListState.js +0 -122
  287. package/dist/states/BarrageListState/index.d.ts +0 -1
  288. package/dist/states/BarrageListState/index.js +0 -4
  289. package/dist/states/BattleState.js +0 -117
  290. package/dist/states/DeviceState.js +0 -296
  291. package/dist/states/LiveState/index.js +0 -254
  292. package/dist/states/VideoMixerState.js +0 -260
  293. package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
  294. package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
  295. package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
  296. package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
  297. package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
  298. package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
  299. package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
  300. package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
  301. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
  302. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
  303. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
  304. package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
  305. package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
  306. package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
  307. package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
  308. package/src/components/BarrageList/MessageForward/index.ts +0 -3
  309. package/src/components/StreamView/Layout/MixLayout.vue +0 -144
  310. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue.d.ts +0 -0
  311. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue.d.ts +0 -0
  312. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue.d.ts +0 -0
  313. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +0 -0
  314. /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
  315. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue.d.ts +0 -0
  316. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue.d.ts +0 -0
  317. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +0 -0
  318. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.d.ts +0 -0
  319. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.js +0 -0
  320. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.d.ts +0 -0
  321. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.js +0 -0
  322. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
  323. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.js +0 -0
  324. /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
  325. /package/dist/components/{LiveCoreView → LiveView}/i18n/index.js +0 -0
  326. /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
  327. /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue +0 -0
  328. /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue +0 -0
  329. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.module.scss +0 -0
  330. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/index.ts +0 -0
  331. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.ts +0 -0
  332. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
  333. /package/src/components/{LiveCoreView → LiveView}/assets/img/defeat.png +0 -0
  334. /package/src/components/{LiveCoreView → LiveView}/assets/img/draw.png +0 -0
  335. /package/src/components/{LiveCoreView → LiveView}/assets/img/victory.png +0 -0
  336. /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleOrdinaryBadge.svg +0 -0
  337. /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleTopBadge.svg +0 -0
  338. /package/src/components/{LiveCoreView → LiveView}/assets/svg/blueBkg.svg +0 -0
  339. /package/src/components/{LiveCoreView → LiveView}/assets/svg/redBkg.svg +0 -0
  340. /package/src/components/{LiveCoreView → LiveView}/assets/svg/s.svg +0 -0
  341. /package/src/components/{LiveCoreView → LiveView}/assets/svg/v.svg +0 -0
  342. /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
@@ -1,12 +1,12 @@
1
- import { defineComponent as E, ref as u, onMounted as T, onUnmounted as M, createElementBlock as r, openBlock as a, createElementVNode as e, createCommentVNode as S, createVNode as R, toDisplayString as c, unref as t, normalizeClass as N, Fragment as U, renderList as w, renderSlot as H } from "vue";
2
- import { useUIKit as b, IconRefresh as x, TUIToast as y, TOAST_TYPE as I } from "@tencentcloud/uikit-base-component-vue3";
3
- import { TUIErrorCode as O } from "@tencentcloud/tuiroom-engine-js";
4
- import { useLiveState as P } from "../../states/LiveState/index.js";
1
+ import { defineComponent as T, ref as m, computed as E, onMounted as H, onUnmounted as M, createElementBlock as r, openBlock as a, createElementVNode as e, createCommentVNode as S, createVNode as g, toDisplayString as c, unref as t, normalizeClass as N, Fragment as U, renderList as x, renderSlot as b } from "vue";
2
+ import { useUIKit as w, IconRefresh as O, TUIToast as y, TOAST_TYPE as L } from "@tencentcloud/uikit-base-component-vue3";
3
+ import { TUIErrorCode as P } from "@tencentcloud/tuiroom-engine-js";
5
4
  import V from "../Avatar/Avatar.js";
6
5
  import { useCoHostState as $ } from "../../states/CoHostState/CoHostState.js";
7
- import { CoHostStatus as q } from "../../types/coHost.js";
8
- import { _ as z } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
9
- const A = { class: "recommend-host-list-container" }, B = { class: "recommend-host-list-title" }, F = { class: "recommend-host-list-title-text" }, D = { class: "recommend-host-list-content" }, K = { class: "recommend-host-list" }, Q = { class: "user-item-left" }, Y = { class: "user-item-right" }, j = { class: "user-info" }, G = { class: "user-name" }, J = { class: "user-actions" }, W = {
6
+ import { useLiveListState as q } from "../../states/LiveListState/LiveListState.js";
7
+ import { CoHostStatus as z } from "../../types/coHost.js";
8
+ import { _ as A } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const B = { class: "recommend-host-list-container" }, F = { class: "recommend-host-list-title" }, D = { class: "recommend-host-list-title-text" }, K = { class: "recommend-host-list" }, Q = { class: "user-item-left" }, Y = { class: "user-item-right" }, j = { class: "user-info" }, G = { class: "user-name" }, J = { class: "user-actions" }, W = {
10
10
  key: 0,
11
11
  class: "loading-content"
12
12
  }, X = {
@@ -18,35 +18,34 @@ const A = { class: "recommend-host-list-container" }, B = { class: "recommend-ho
18
18
  }, ee = {
19
19
  key: 0,
20
20
  class: "empty-state"
21
- }, te = /* @__PURE__ */ E({
21
+ }, te = /* @__PURE__ */ T({
22
22
  __name: "RecommendHostList",
23
23
  setup(se) {
24
- const { t: o } = b(), { currentCursor: p, liveList: m, fetchLiveList: g } = P(), { coHostStatus: L, invitees: k, candidates: v } = $(), l = u(null);
24
+ const { t: o } = w(), { liveListCursor: h, fetchLiveList: p } = q(), { coHostStatus: I, invitees: C, candidates: u } = $(), v = m(null), l = m(null);
25
25
  let i = null;
26
- const _ = u(!1), d = u(!1), f = u(!0);
27
- async function C() {
28
- _.value = !0, Promise.all([
26
+ const f = m(!1), d = m(!1), R = E(() => h.value !== "");
27
+ async function k() {
28
+ f.value = !0, v.value && (v.value.scrollTop = 0), Promise.all([
29
29
  new Promise((n) => setTimeout(n, 500)),
30
- g({
30
+ p({
31
31
  cursor: "",
32
32
  count: 20
33
33
  })
34
34
  ]).catch((n) => {
35
- n.code === O.ERR_FREQ_LIMIT ? y({ type: I.ERROR, message: o("Request too frequent, please try again later") }) : y({ type: I.ERROR, message: o("Refresh error, please try again later") });
35
+ n.code === P.ERR_FREQ_LIMIT ? y({ type: L.ERROR, message: o("Request too frequent, please try again later") }) : y({ type: L.ERROR, message: o("Refresh error, please try again later") });
36
36
  }).finally(() => {
37
- _.value = !1;
37
+ f.value = !1;
38
38
  });
39
39
  }
40
- return T(() => {
40
+ return H(() => {
41
41
  l.value && (i = new IntersectionObserver(async (n) => {
42
- if (n[0].isIntersecting && !d.value && f.value) {
42
+ if (n[0].isIntersecting && !d.value && R.value) {
43
43
  d.value = !0;
44
44
  try {
45
- const s = m.value.length;
46
- await g({
47
- cursor: p.value === "" ? m.value.length + "" : p.value,
45
+ await p({
46
+ cursor: h.value,
48
47
  count: 20
49
- }), m.value.length - s < 20 && (f.value = !1);
48
+ });
50
49
  } catch (s) {
51
50
  console.error("Load more users failed:", s);
52
51
  } finally {
@@ -59,22 +58,26 @@ const A = { class: "recommend-host-list-container" }, B = { class: "recommend-ho
59
58
  }), i.observe(l.value));
60
59
  }), M(() => {
61
60
  l.value && (i == null || i.unobserve(l.value));
62
- }), (n, h) => (a(), r("div", A, [
63
- e("div", B, [
64
- e("span", F, c(t(L) === t(q).Connected ? t(o)("Invite more") : t(o)("Recommend hosts")), 1),
65
- R(t(x), {
66
- class: N(["refresh-icon", _.value ? "loading" : ""]),
67
- onClick: C
61
+ }), (n, _) => (a(), r("div", B, [
62
+ e("div", F, [
63
+ e("span", D, c(t(I) === t(z).Connected ? t(o)("Invite more") : t(o)("Recommend hosts")), 1),
64
+ g(t(O), {
65
+ class: N(["refresh-icon", f.value ? "loading" : ""]),
66
+ onClick: k
68
67
  }, null, 8, ["class"])
69
68
  ]),
70
- e("div", D, [
69
+ e("div", {
70
+ class: "recommend-host-list-content",
71
+ ref_key: "recommendHostListContentRef",
72
+ ref: v
73
+ }, [
71
74
  e("div", K, [
72
- (a(!0), r(U, null, w([...t(k), ...t(v)], (s) => (a(), r("div", {
75
+ (a(!0), r(U, null, x([...t(C), ...t(u)], (s) => (a(), r("div", {
73
76
  key: `${s.userId}-${s.liveId}`,
74
77
  class: "user-item"
75
78
  }, [
76
79
  e("div", Q, [
77
- R(t(V), {
80
+ g(t(V), {
78
81
  src: s.avatarUrl,
79
82
  size: 40
80
83
  }, null, 8, ["src"])
@@ -84,7 +87,7 @@ const A = { class: "recommend-host-list-container" }, B = { class: "recommend-ho
84
87
  e("span", G, c(s.userName || s.userId), 1)
85
88
  ]),
86
89
  e("div", J, [
87
- H(n.$slots, "host-item-actions", { user: s }, void 0, !0)
90
+ b(n.$slots, "host-item-actions", { user: s }, void 0, !0)
88
91
  ])
89
92
  ])
90
93
  ]))), 128))
@@ -95,19 +98,19 @@ const A = { class: "recommend-host-list-container" }, B = { class: "recommend-ho
95
98
  ref: l
96
99
  }, [
97
100
  d.value ? (a(), r("div", W, [
98
- h[0] || (h[0] = e("div", { class: "loading-spinner" }, null, -1)),
101
+ _[0] || (_[0] = e("div", { class: "loading-spinner" }, null, -1)),
99
102
  e("span", null, c(t(o)("Loading more users...")), 1)
100
- ])) : !f.value && t(v).length > 0 ? (a(), r("div", X, [
103
+ ])) : !R.value && t(u).length > 0 ? (a(), r("div", X, [
101
104
  e("span", null, c(t(o)("No more users")), 1)
102
105
  ])) : (a(), r("div", Z))
103
106
  ], 512)
104
- ]),
105
- t(v).length === 0 ? (a(), r("div", ee, [
107
+ ], 512),
108
+ t(u).length === 0 ? (a(), r("div", ee, [
106
109
  e("span", null, c(t(o)("No hosts available to invite")), 1)
107
110
  ])) : S("", !0)
108
111
  ]));
109
112
  }
110
- }), me = /* @__PURE__ */ z(te, [["__scopeId", "data-v-9b8c9a7e"]]);
113
+ }), me = /* @__PURE__ */ A(te, [["__scopeId", "data-v-6106f308"]]);
111
114
  export {
112
115
  me as default
113
116
  };
@@ -0,0 +1,3 @@
1
+ export declare const ERROR_MESSAGE: {
2
+ 100412: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ const o = {
2
+ 100412: "there is no one valid room for battle"
3
+ };
4
+ export {
5
+ o as ERROR_MESSAGE
6
+ };
@@ -71,4 +71,5 @@ export declare const resource: {
71
71
  'Battle duration': string;
72
72
  'Number minutes': string;
73
73
  'Connection Layout': string;
74
+ 'there is no one valid room for battle': string;
74
75
  };
@@ -74,7 +74,8 @@ const e = {
74
74
  "Anchor battle settings": "Anchor battle settings",
75
75
  "Battle duration": "Battle duration",
76
76
  "Number minutes": "{{number}} minutes",
77
- "Connection Layout": "Connection Layout"
77
+ "Connection Layout": "Connection Layout",
78
+ "there is no one valid room for battle": "There is no one valid room for battle"
78
79
  };
79
80
  export {
80
81
  e as resource
@@ -72,4 +72,5 @@ export declare const resource: {
72
72
  'Battle duration': string;
73
73
  'Number minutes': string;
74
74
  'Connection Layout': string;
75
+ 'there is no one valid room for battle': string;
75
76
  };
@@ -54,7 +54,7 @@ const e = {
54
54
  "Refresh error, please try again later": "刷新失败,请稍后再试",
55
55
  "Are you sure you want to exit the battle": "确定要退出 PK 吗?",
56
56
  "Request battle failed": "发起 PK 失败",
57
- "Battle ended": "PK 已结束",
57
+ "Battle ended": "PK 结束",
58
58
  "Battle started": "PK 已开始",
59
59
  "User joined battle": "用户{{userName}}已加入 PK",
60
60
  "User exited battle": "用户{{userName}}已退出 PK",
@@ -75,7 +75,8 @@ const e = {
75
75
  "Anchor battle settings": "主播PK设置",
76
76
  "Battle duration": "发起 PK 时长",
77
77
  "Number minutes": "{{number}} 分钟",
78
- "Connection Layout": "连线布局"
78
+ "Connection Layout": "连线布局",
79
+ "there is no one valid room for battle": "发起的 PK 中无有效的房间"
79
80
  };
80
81
  export {
81
82
  e as resource
@@ -1,32 +1,31 @@
1
- import { defineComponent as T, ref as u, computed as b, onMounted as H, onUnmounted as D, createElementBlock as o, openBlock as r, normalizeStyle as N, createElementVNode as n, createCommentVNode as p, createBlock as F, Fragment as K, renderList as P, unref as e, createVNode as U, renderSlot as j, normalizeClass as q, toDisplayString as c } from "vue";
1
+ import { defineComponent as T, ref as u, computed as b, onMounted as H, onUnmounted as D, createElementBlock as o, openBlock as r, normalizeStyle as V, createElementVNode as n, createCommentVNode as p, createBlock as F, Fragment as K, renderList as P, unref as e, createVNode as $, renderSlot as j, normalizeClass as q, toDisplayString as c } from "vue";
2
2
  import { useUIKit as G } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import { useLiveAudienceState as J } from "../../states/LiveAudienceState.js";
4
- import { useLiveState as Q } from "../../states/LiveState/index.js";
5
- import { useLoginState as W } from "../../states/LoginState.js";
6
- import X from "./UserActionMenu.js";
7
- import V from "../Avatar/Avatar.js";
8
- import { LiveStatus as Y } from "../../types/live.js";
9
- import { _ as Z } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
10
- const ee = ["onClick"], te = { class: "viewer-info" }, se = { class: "viewer-name" }, re = {
4
+ import { useLoginState as Q } from "../../states/LoginState.js";
5
+ import z from "../Avatar/Avatar.js";
6
+ import W from "./UserActionMenu.js";
7
+ import { useLiveListState as X } from "../../states/LiveListState/LiveListState.js";
8
+ import { _ as Y } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const Z = ["onClick"], ee = { class: "viewer-info" }, te = { class: "viewer-name" }, se = {
11
10
  key: 0,
12
11
  class: "loading-indicator"
13
- }, ne = {
12
+ }, re = {
14
13
  key: 1,
15
14
  class: "viewer-bottom-line"
16
- }, ae = {
15
+ }, ne = {
17
16
  key: 2,
18
17
  class: "empty-state"
19
- }, le = {
18
+ }, ae = {
20
19
  key: 0,
21
20
  class: "viewer-item current-user-item"
22
- }, ie = { class: "viewer-info" }, oe = { class: "viewer-name" }, ue = /* @__PURE__ */ T({
21
+ }, le = { class: "viewer-info" }, ie = { class: "viewer-name" }, oe = /* @__PURE__ */ T({
23
22
  __name: "LiveAudienceList",
24
23
  props: {
25
24
  height: {},
26
25
  style: {}
27
26
  },
28
- setup($) {
29
- const { t: _ } = G(), g = u(null), a = u(null), v = u(!1), y = $, { loginUserInfo: d } = W(), { audienceList: L, audienceCount: z, fetchAudienceList: M } = J(), { localLiveStatus: x, currentLive: B } = Q(), E = (s) => {
27
+ setup(M) {
28
+ const { t: _ } = G(), g = u(null), a = u(null), d = u(!1), y = M, { loginUserInfo: v } = Q(), { audienceList: L, audienceCount: x, fetchAudienceList: B } = J(), { currentLive: w } = X(), E = (s) => {
30
29
  switch (s) {
31
30
  case 1:
32
31
  return "rank-first";
@@ -37,9 +36,9 @@ const ee = ["onClick"], te = { class: "viewer-info" }, se = { class: "viewer-nam
37
36
  default:
38
37
  return "rank-default";
39
38
  }
40
- }, k = u(!1), m = u(null), w = u({}), C = b(() => {
39
+ }, k = u(!1), m = u(null), I = u({}), C = b(() => {
41
40
  var s, t;
42
- return ((s = d.value) == null ? void 0 : s.userId) === ((t = B.value) == null ? void 0 : t.liveOwner.userId);
41
+ return ((s = v.value) == null ? void 0 : s.userId) === ((t = w.value) == null ? void 0 : t.liveOwner.userId);
43
42
  }), R = (s, t) => {
44
43
  if (!C.value)
45
44
  return;
@@ -47,34 +46,34 @@ const ee = ["onClick"], te = { class: "viewer-info" }, se = { class: "viewer-nam
47
46
  const l = t.currentTarget;
48
47
  g.value = l;
49
48
  const f = l.getBoundingClientRect();
50
- w.value = {
49
+ I.value = {
51
50
  position: "fixed",
52
51
  left: `${f.left}px`,
53
52
  top: `${f.bottom + 8}px`,
54
53
  zIndex: 1001
55
54
  };
56
- }, I = async () => {
57
- if (!a.value || v.value)
55
+ }, S = async () => {
56
+ if (!a.value || d.value)
58
57
  return;
59
58
  const { scrollTop: s, clientHeight: t, scrollHeight: l } = a.value;
60
59
  if (s + t >= l - 50) {
61
- v.value = !0;
60
+ d.value = !0;
62
61
  try {
63
- await M();
62
+ await B();
64
63
  } finally {
65
- v.value = !1;
64
+ d.value = !1;
66
65
  }
67
66
  }
68
67
  };
69
68
  return H(() => {
70
- a.value && a.value.addEventListener("scroll", I);
69
+ a.value && a.value.addEventListener("scroll", S);
71
70
  }), D(() => {
72
- a.value && a.value.removeEventListener("scroll", I);
71
+ a.value && a.value.removeEventListener("scroll", S);
73
72
  }), (s, t) => {
74
- var l, f, S, A;
73
+ var l, f, A, N, U;
75
74
  return r(), o("div", {
76
75
  class: "viewers-panel",
77
- style: N({ height: y.height, ...y.style })
76
+ style: V({ height: y.height, ...y.style })
78
77
  }, [
79
78
  n("div", {
80
79
  ref_key: "viewersListRef",
@@ -89,44 +88,44 @@ const ee = ["onClick"], te = { class: "viewer-info" }, se = { class: "viewer-nam
89
88
  n("span", {
90
89
  class: q(["rank", E(h + 1)])
91
90
  }, c(h < 10 ? h + 1 : "-"), 3),
92
- U(e(V), {
91
+ $(e(z), {
93
92
  src: i.avatarUrl,
94
93
  size: 26
95
94
  }, null, 8, ["src"]),
96
95
  j(s.$slots, "audience-mark", { audience: i }, void 0, !0),
97
- n("div", te, [
98
- n("span", se, c(i.userName || i.userId), 1)
96
+ n("div", ee, [
97
+ n("span", te, c(i.userName || i.userId), 1)
99
98
  ])
100
- ], 8, ee))), 128)),
101
- v.value ? (r(), o("div", re, c(e(_)("Loading...")), 1)) : p("", !0),
102
- e(z) >= 200 ? (r(), o("div", ne, c(e(_)("Only show 200 viewers")), 1)) : p("", !0),
103
- e(L).length === 0 && !v.value ? (r(), o("div", ae, [
99
+ ], 8, Z))), 128)),
100
+ d.value ? (r(), o("div", se, c(e(_)("Loading...")), 1)) : p("", !0),
101
+ e(x) >= 200 ? (r(), o("div", re, c(e(_)("Only show 200 viewers")), 1)) : p("", !0),
102
+ e(L).length === 0 && !d.value ? (r(), o("div", ne, [
104
103
  n("p", null, c(e(_)("No audience yet")), 1)
105
104
  ])) : p("", !0)
106
105
  ], 512),
107
- e(d) && e(x) === e(Y).Live && !C.value ? (r(), o("div", le, [
106
+ e(v) && ((l = e(w)) != null && l.liveId) && !C.value ? (r(), o("div", ae, [
108
107
  t[1] || (t[1] = n("span", { class: "rank" }, "-", -1)),
109
- U(e(V), {
110
- src: e(d).avatarUrl,
108
+ $(e(z), {
109
+ src: e(v).avatarUrl,
111
110
  size: 26
112
111
  }, null, 8, ["src"]),
113
- n("div", ie, [
114
- n("span", oe, c(`${e(d).userName || e(d).userId} (${e(_)("Me")})`), 1)
112
+ n("div", le, [
113
+ n("span", ie, c(`${e(v).userName || e(v).userId} (${e(_)("Me")})`), 1)
115
114
  ])
116
115
  ])) : p("", !0),
117
- k.value ? (r(), F(X, {
116
+ k.value ? (r(), F(W, {
118
117
  key: 1,
119
- "user-id": ((l = m.value) == null ? void 0 : l.userId) || "",
120
- "user-name": ((f = m.value) == null ? void 0 : f.userName) || ((S = m.value) == null ? void 0 : S.userId) || "",
121
- "avatar-url": (A = m.value) == null ? void 0 : A.avatarUrl,
122
- style: N(w.value),
118
+ "user-id": ((f = m.value) == null ? void 0 : f.userId) || "",
119
+ "user-name": ((A = m.value) == null ? void 0 : A.userName) || ((N = m.value) == null ? void 0 : N.userId) || "",
120
+ "avatar-url": (U = m.value) == null ? void 0 : U.avatarUrl,
121
+ style: V(I.value),
123
122
  "click-target": g.value,
124
123
  onClose: t[0] || (t[0] = (i) => k.value = !1)
125
124
  }, null, 8, ["user-id", "user-name", "avatar-url", "style", "click-target"])) : p("", !0)
126
125
  ], 4);
127
126
  };
128
127
  }
129
- }), ge = /* @__PURE__ */ Z(ue, [["__scopeId", "data-v-51062739"]]);
128
+ }), ke = /* @__PURE__ */ Y(oe, [["__scopeId", "data-v-924c6ef3"]]);
130
129
  export {
131
- ge as default
130
+ ke as default
132
131
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as C, ref as c, computed as S, createElementBlock as o, openBlock as r, normalizeStyle as x, createElementVNode as l, createCommentVNode as p, Fragment as V, renderList as A, unref as s, createVNode as N, renderSlot as b, toDisplayString as a } from "vue";
2
2
  import { useLoginState as z } from "../../states/LoginState.js";
3
- import { useLiveState as B } from "../../states/LiveState/index.js";
4
- import { useLiveAudienceState as O } from "../../states/LiveAudienceState.js";
5
- import { useUIKit as U } from "@tencentcloud/uikit-base-component-vue3";
6
- import $ from "../Avatar/Avatar.js";
3
+ import { useLiveAudienceState as B } from "../../states/LiveAudienceState.js";
4
+ import { useUIKit as O } from "@tencentcloud/uikit-base-component-vue3";
5
+ import U from "../Avatar/Avatar.js";
6
+ import { useLiveListState as $ } from "../../states/LiveListState/LiveListState.js";
7
7
  import { _ as E } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const H = { class: "viewers-list" }, M = ["onClick"], T = { class: "viewer-info" }, D = { class: "viewer-name" }, F = {
9
9
  key: 0,
@@ -18,7 +18,7 @@ const H = { class: "viewers-list" }, M = ["onClick"], T = { class: "viewer-info"
18
18
  style: {}
19
19
  },
20
20
  setup(v) {
21
- const { t: u } = U(), _ = c(null), d = v, { loginUserInfo: f } = z(), { audienceList: m, audienceCount: h } = O(), { currentLive: g } = B(), y = c(!1), L = c(null), k = c({}), w = S(() => {
21
+ const { t: u } = O(), _ = c(null), d = v, { loginUserInfo: f } = z(), { audienceList: m, audienceCount: h } = B(), { currentLive: g } = $(), y = c(!1), L = c(null), k = c({}), w = S(() => {
22
22
  var t, n;
23
23
  return ((t = f.value) == null ? void 0 : t.userId) === ((n = g.value) == null ? void 0 : n.liveOwner.userId);
24
24
  }), I = (t, n) => {
@@ -44,7 +44,7 @@ const H = { class: "viewers-list" }, M = ["onClick"], T = { class: "viewer-info"
44
44
  class: "viewer-item",
45
45
  onClick: (i) => I(e, i)
46
46
  }, [
47
- N(s($), {
47
+ N(s(U), {
48
48
  src: e.avatarUrl,
49
49
  size: 40
50
50
  }, null, 8, ["src"]),
@@ -60,7 +60,7 @@ const H = { class: "viewers-list" }, M = ["onClick"], T = { class: "viewer-info"
60
60
  ])
61
61
  ], 4));
62
62
  }
63
- }), X = /* @__PURE__ */ E(R, [["__scopeId", "data-v-68b59301"]]);
63
+ }), X = /* @__PURE__ */ E(R, [["__scopeId", "data-v-0031b097"]]);
64
64
  export {
65
65
  X as default
66
66
  };
@@ -1,15 +1,16 @@
1
- import { defineComponent as D, ref as N, computed as d, onMounted as w, onUnmounted as E, createElementBlock as c, openBlock as u, withModifiers as R, createElementVNode as l, createCommentVNode as T, createVNode as x, unref as K, toDisplayString as k, Fragment as V, renderList as B } from "vue";
2
- import { useUIKit as z, TUIToast as b } from "@tencentcloud/uikit-base-component-vue3";
3
- import { useCoGuestState as $ } from "../../states/CoGuestState.js";
4
- import { useLiveAudienceState as j } from "../../states/LiveAudienceState.js";
5
- import { useLiveState as q } from "../../states/LiveState/index.js";
6
- import { useLoginState as H } from "../../states/LoginState.js";
7
- import J from "../Avatar/Avatar.js";
8
- import { _ as P } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Q = { class: "action-menu-content" }, W = { class: "action-menu-header" }, X = { class: "user-info-simple" }, Y = { class: "user-name-simple" }, Z = {
1
+ import { defineComponent as y, ref as F, computed as l, onMounted as D, onUnmounted as N, createElementBlock as c, openBlock as a, withModifiers as w, createElementVNode as u, createCommentVNode as E, createVNode as R, unref as T, toDisplayString as I, Fragment as x, renderList as K } from "vue";
2
+ import { useUIKit as V, TUIToast as k } from "@tencentcloud/uikit-base-component-vue3";
3
+ import { useCoGuestState as B } from "../../states/CoGuestState.js";
4
+ import { useLiveAudienceState as G } from "../../states/LiveAudienceState.js";
5
+ import { useLoginState as z } from "../../states/LoginState.js";
6
+ import { useLiveSeatState as $ } from "../../states/LiveSeatState/index.js";
7
+ import j from "../Avatar/Avatar.js";
8
+ import { useLiveListState as q } from "../../states/LiveListState/LiveListState.js";
9
+ import { _ as H } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const J = { class: "action-menu-content" }, P = { class: "action-menu-header" }, Q = { class: "user-info-simple" }, W = { class: "user-name-simple" }, X = {
10
11
  key: 0,
11
12
  class: "action-menu-list"
12
- }, ee = ["onClick"], se = /* @__PURE__ */ D({
13
+ }, Y = ["onClick"], Z = /* @__PURE__ */ y({
13
14
  __name: "UserActionMenu",
14
15
  props: {
15
16
  userId: {},
@@ -18,85 +19,77 @@ const Q = { class: "action-menu-content" }, W = { class: "action-menu-header" },
18
19
  clickTarget: {}
19
20
  },
20
21
  emits: ["close"],
21
- setup(a, { emit: g }) {
22
- const { t: i } = z(), m = N(), f = g, t = a, { currentLive: _ } = q(), {
23
- userListInCoGuest: h,
24
- receivedCoGuestUserList: U,
25
- sentCoGuestUserList: C,
26
- availableCoGuestUserList: L,
27
- disconnect: M
28
- } = $(), { disableSendMessage: v, audienceList: O, kickUserOutOfRoom: S } = j(), { loginUserInfo: A } = H(), y = d(() => O.value.find((e) => e.userId === t.userId)), F = d(() => {
29
- var e, s;
30
- return ((e = A.value) == null ? void 0 : e.userId) === ((s = _.value) == null ? void 0 : s.liveOwner.userId);
31
- }), I = d(() => {
32
- var r;
22
+ setup(r, { emit: g }) {
23
+ const { t: o } = V(), d = F(), m = g, n = r, { currentLive: _ } = q(), { connected: h } = B(), { kickUserOutOfSeat: b } = $(), { disableSendMessage: f, audienceList: U, kickUserOutOfRoom: M } = G(), { loginUserInfo: S } = z(), O = l(() => U.value.find((e) => e.userId === n.userId)), L = l(() => {
24
+ var e, t;
25
+ return ((e = S.value) == null ? void 0 : e.userId) === ((t = _.value) == null ? void 0 : t.liveOwner.userId);
26
+ }), v = l(() => {
27
+ var i;
33
28
  const e = [];
34
- if (!F.value)
29
+ if (!L.value)
35
30
  return [];
36
- const s = h.value.some((o) => o.userId === t.userId);
37
- C.value.some((o) => o.userId === t.userId), L.value.some((o) => o.userId === t.userId), U.value.some((o) => o.userId === t.userId);
38
- const n = (r = y.value) == null ? void 0 : r.isMessageDisabled;
39
- return n || e.push({
40
- label: i("Mute"),
31
+ const t = h.value.some((A) => A.userId === n.userId), s = (i = O.value) == null ? void 0 : i.isMessageDisabled;
32
+ return s || e.push({
33
+ label: o("Mute"),
41
34
  action: "disableSendMessage",
42
- actionFn: () => v({ userId: t.userId, isDisable: !0 })
43
- }), n && e.push({
44
- label: i("Unmute"),
35
+ actionFn: () => f({ userId: n.userId, isDisable: !0 })
36
+ }), s && e.push({
37
+ label: o("Unmute"),
45
38
  action: "disableSendMessage",
46
- actionFn: () => v({ userId: t.userId, isDisable: !1 })
47
- }), s && e.push({ label: i("Kick out"), action: "disconnect", actionFn: () => M(t.userId) }), e.push({
48
- label: i("Kick out of room"),
39
+ actionFn: () => f({ userId: n.userId, isDisable: !1 })
40
+ }), t && e.push({ label: o("Kick out"), action: "disconnect", actionFn: () => b({ userId: n.userId }) }), e.push({
41
+ label: o("Kick out of room"),
49
42
  action: "kickUserOutOfRoom",
50
- actionFn: () => S({ userId: t.userId })
43
+ actionFn: () => M({ userId: n.userId })
51
44
  }), e;
52
- }), G = async (e) => {
45
+ }), C = async (e) => {
53
46
  try {
54
- await e.actionFn(), b.success({
55
- message: i("Operation successful")
47
+ await e.actionFn(), k.success({
48
+ message: o("Operation successful")
56
49
  });
57
- } catch (s) {
58
- console.error("Action failed:", s), b.error({
59
- message: i("Operation failed")
50
+ } catch (t) {
51
+ console.error("Action failed:", t), k.error({
52
+ message: o("Operation failed")
60
53
  });
61
54
  }
62
- f("close");
55
+ m("close");
63
56
  }, p = (e) => {
64
- var n, r;
65
- const s = e.target;
66
- !((n = m.value) != null && n.contains(s)) && !((r = t.clickTarget) != null && r.contains(s)) && f("close");
57
+ var s, i;
58
+ const t = e.target;
59
+ !((s = d.value) != null && s.contains(t)) && !((i = n.clickTarget) != null && i.contains(t)) && m("close");
67
60
  };
68
- return w(() => {
61
+ return D(() => {
69
62
  document.addEventListener("click", p);
70
- }), E(() => {
63
+ }), N(() => {
71
64
  document.removeEventListener("click", p);
72
- }), (e, s) => (u(), c("div", {
65
+ }), (e, t) => (a(), c("div", {
73
66
  ref_key: "actionMenuRef",
74
- ref: m,
67
+ ref: d,
75
68
  class: "user-action-menu",
76
- onClick: s[0] || (s[0] = R(() => {
69
+ onClick: t[0] || (t[0] = w(() => {
77
70
  }, ["stop"]))
78
71
  }, [
79
- l("div", Q, [
80
- l("div", W, [
81
- l("div", X, [
82
- x(K(J), {
83
- src: a.avatarUrl,
72
+ u("div", J, [
73
+ u("div", P, [
74
+ u("div", Q, [
75
+ R(T(j), {
76
+ src: r.avatarUrl,
84
77
  size: 26
85
78
  }, null, 8, ["src"]),
86
- l("span", Y, k(a.userName || a.userId), 1)
79
+ u("span", W, I(r.userName || r.userId), 1)
87
80
  ])
88
81
  ]),
89
- I.value.length > 0 ? (u(), c("div", Z, [
90
- (u(!0), c(V, null, B(I.value, (n) => (u(), c("button", {
91
- key: n.label,
82
+ v.value.length > 0 ? (a(), c("div", X, [
83
+ (a(!0), c(x, null, K(v.value, (s) => (a(), c("button", {
84
+ key: s.label,
92
85
  class: "action-menu-item",
93
- onClick: (r) => G(n)
94
- }, k(n.label), 9, ee))), 128))
95
- ])) : T("", !0)
86
+ onClick: (i) => C(s)
87
+ }, I(s.label), 9, Y))), 128))
88
+ ])) : E("", !0)
96
89
  ])
97
90
  ], 512));
98
91
  }
99
- }), le = /* @__PURE__ */ P(se, [["__scopeId", "data-v-8fb62a68"]]);
92
+ }), ue = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-938908ee"]]);
100
93
  export {
101
- le as default
94
+ ue as default
102
95
  };