tuikit-atomicx-vue3 3.4.2 → 3.5.0-beta.7

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 (491) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +38 -36
  3. package/dist/baseComp/Modal/Modal.js +431 -23
  4. package/dist/chat/index.d.ts +68 -53
  5. package/dist/chat/server.js +15 -15
  6. package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
  7. package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
  8. package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
  9. package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
  10. package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
  11. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
  12. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
  13. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
  14. package/dist/components/AudioSettingPanel/index.js +81 -73
  15. package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
  16. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +3 -3
  17. package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
  18. package/dist/components/BarrageInput/MessageInputState.js +82 -0
  19. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  20. package/dist/components/BarrageInput/TextEditor/EditorCore.js +5 -4
  21. package/dist/components/BarrageInput/TextEditor/index.js +7 -7
  22. package/dist/components/BarrageInput/type.d.ts +17 -0
  23. package/dist/components/BarrageInput/type.js +4 -0
  24. package/dist/components/BarrageInput/utils.d.ts +30 -0
  25. package/dist/components/BarrageInput/utils.js +41 -0
  26. package/dist/components/BarrageList/BarrageList.js +80 -110
  27. package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
  28. package/dist/components/BarrageList/BarrageListH5.js +95 -122
  29. package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
  30. package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
  31. package/dist/components/BarrageList/BarrageListState.js +106 -0
  32. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
  33. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
  34. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
  35. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
  36. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
  37. package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
  38. package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
  39. package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
  40. package/dist/components/BarrageList/index.d.ts +0 -36
  41. package/dist/components/CameraButton/index.js +18 -19
  42. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
  43. package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
  44. package/dist/components/CoHostPanel/BattlePanel.js +11 -11
  45. package/dist/components/CoHostPanel/CoHostPanel.js +10 -10
  46. package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
  47. package/dist/components/CoHostPanel/ConnectionPanel.js +132 -123
  48. package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
  49. package/dist/components/CoHostPanel/constants.d.ts +3 -0
  50. package/dist/components/CoHostPanel/constants.js +6 -0
  51. package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
  52. package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
  53. package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
  54. package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
  55. package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
  56. package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
  57. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
  58. package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
  59. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
  60. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
  61. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
  62. package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
  63. package/dist/components/ContactList/ContactList.js +7 -7
  64. package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
  65. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
  66. package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
  67. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
  68. package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
  69. package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
  70. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
  71. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
  72. package/dist/components/ConversationList/ConversationList.js +4 -4
  73. package/dist/components/ConversationList/ConversationList.vue.d.ts +10 -10
  74. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +10 -10
  75. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
  76. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
  77. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +2 -2
  78. package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
  79. package/dist/components/ConversationList/index.d.ts +30 -30
  80. package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
  81. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
  82. package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
  83. package/dist/components/LiveList/LiveList.js +23 -23
  84. package/dist/components/LiveList/LiveListH5.js +38 -38
  85. package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
  86. package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
  87. package/dist/components/LiveScenePanel/index.js +4 -4
  88. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +58 -58
  89. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +6 -6
  90. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +5 -5
  91. package/dist/components/LiveView/DefaultStreamViewUI.js +44 -41
  92. package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
  93. package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
  94. package/dist/components/LiveView/PlayerControl/MultiResolution.js +57 -62
  95. package/dist/components/LiveView/PlayerControl/PlayerControl.js +79 -79
  96. package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +2 -2
  97. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +164 -209
  98. package/dist/components/LiveView/PlayerControl/utils/domHelpers.d.ts +8 -1
  99. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +57 -24
  100. package/dist/components/LiveView/i18n/en-US/index.d.ts +2 -2
  101. package/dist/components/LiveView/i18n/en-US/index.js +2 -2
  102. package/dist/components/LiveView/i18n/zh-CN/index.d.ts +2 -2
  103. package/dist/components/LiveView/i18n/zh-CN/index.js +2 -2
  104. package/dist/components/LiveView/index.js +17 -17
  105. package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
  106. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
  107. package/dist/components/MessageInput/MessageInput.js +1 -1
  108. package/dist/components/MessageInput/MessageInput.vue.d.ts +5 -2
  109. package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +3 -1
  110. package/dist/components/MessageInput/TextEditor/EditorCore.js +51 -63
  111. package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +6 -2
  112. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
  113. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
  114. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
  115. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
  116. package/dist/components/MessageInput/TextEditor/index.js +45 -35
  117. package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
  118. package/dist/components/MessageInput/i18n/index.d.ts +4 -0
  119. package/dist/components/MessageInput/i18n/zh-CN.d.ts +4 -0
  120. package/dist/components/MessageInput/i18n/zh-CN.js +5 -1
  121. package/dist/components/MessageInput/index.d.ts +36 -6
  122. package/dist/components/MessageInput/index.js +1 -1
  123. package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
  124. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
  125. package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
  126. package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
  127. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +63 -69
  128. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
  129. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
  130. package/dist/components/MessageList/MessageList.js +8 -6
  131. package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
  132. package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
  133. package/dist/components/MessageList/i18n/en-US.js +66 -2
  134. package/dist/components/MessageList/i18n/index.d.ts +128 -0
  135. package/dist/components/MessageList/i18n/index.js +6 -6
  136. package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
  137. package/dist/components/MessageList/i18n/zh-CN.js +64 -0
  138. package/dist/components/MessageList/index.d.ts +20 -20
  139. package/dist/components/MicButton/index.js +11 -11
  140. package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
  141. package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
  142. package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
  143. package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
  144. package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
  145. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
  146. package/dist/components/Search/SearchBar/SearchBar.js +56 -58
  147. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
  148. package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
  149. package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
  150. package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
  151. package/dist/components/StreamView/Layout/GridLayout.js +5 -5
  152. package/dist/components/StreamView/index.js +25 -33
  153. package/dist/components/StreamView/manager/mediaManager.js +54 -60
  154. package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
  155. package/dist/components/UIKitModal/UIKitModal.js +156 -0
  156. package/dist/components/UIKitModal/index.d.ts +1 -0
  157. package/dist/components/UIKitModal/index.js +4 -0
  158. package/dist/components/{BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts → UIKitModal/index.vue.d.ts} +24 -14
  159. package/dist/components/UIKitModal/type.d.ts +21 -0
  160. package/dist/components/UIKitModal/type.js +1 -0
  161. package/dist/components/UserPicker/UserPicker.js +1 -2
  162. package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
  163. package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
  164. package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
  165. package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
  166. package/dist/components/UserPicker/i18n/en-US.js +2 -1
  167. package/dist/components/UserPicker/i18n/index.d.ts +2 -0
  168. package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
  169. package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
  170. package/dist/components/UserPicker/index.d.ts +2 -2
  171. package/dist/components/UserPicker/type.d.ts +1 -1
  172. package/dist/components/VideoSetting/CameraSelect.js +8 -8
  173. package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
  174. package/dist/components/VideoSetting/VideoPreview.js +9 -9
  175. package/dist/components/VideoSetting/VideoProfile.js +6 -6
  176. package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
  177. package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
  178. package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
  179. package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
  180. package/dist/hooks/useAudioControl.d.ts +3 -3
  181. package/dist/hooks/useAudioControl.js +32 -30
  182. package/dist/hooks/useRoomEngine.js +6 -6
  183. package/dist/index-B_-9wgM4.js +64 -0
  184. package/dist/{index-Bm-QfV5o.js → index-DMfTuy0v.js} +574 -631
  185. package/dist/{index-D2OVtqc8.js → index-DV6o6s43.js} +946 -915
  186. package/dist/index.d.ts +3 -1
  187. package/dist/index.js +164 -142
  188. package/dist/report/MetricsKey.d.ts +16 -0
  189. package/dist/report/MetricsKey.js +4 -0
  190. package/dist/report/dataReport.d.ts +12 -0
  191. package/dist/report/dataReport.js +45 -0
  192. package/dist/report/index.d.ts +4 -0
  193. package/dist/report/index.js +6 -0
  194. package/dist/rtc/index.d.ts +5 -43
  195. package/dist/rtc/index.js +48 -48
  196. package/dist/rtc/server.js +45 -40
  197. package/dist/states/BarrageState/BarrageState.d.ts +74 -0
  198. package/dist/states/BarrageState/BarrageState.js +80 -0
  199. package/dist/states/BarrageState/index.d.ts +1 -0
  200. package/dist/states/BarrageState/index.js +5 -0
  201. package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
  202. package/dist/states/BattleState/BattleState.js +203 -0
  203. package/dist/states/BattleState/index.d.ts +1 -0
  204. package/dist/states/BattleState/index.js +4 -0
  205. package/dist/states/CoGuestState.d.ts +24 -94
  206. package/dist/states/CoGuestState.js +297 -189
  207. package/dist/states/CoHostState/CoHostState.d.ts +2 -2
  208. package/dist/states/CoHostState/CoHostState.js +135 -131
  209. package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
  210. package/dist/states/DeviceState/DeviceState.js +314 -0
  211. package/dist/states/DeviceState/index.d.ts +1 -0
  212. package/dist/states/DeviceState/index.js +4 -0
  213. package/dist/states/LiveAudienceState.d.ts +3 -1
  214. package/dist/states/LiveAudienceState.js +106 -63
  215. package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
  216. package/dist/states/LiveListState/LiveListState.js +285 -0
  217. package/dist/states/LiveListState/index.d.ts +1 -0
  218. package/dist/states/LiveListState/index.js +4 -0
  219. package/dist/states/LiveMonitorState/api/http.js +147 -129
  220. package/dist/states/LiveMonitorState/index.js +67 -62
  221. package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
  222. package/dist/states/LiveSeatState/index.d.ts +46 -11
  223. package/dist/states/LiveSeatState/index.js +34 -15
  224. package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
  225. package/dist/states/LiveSeatState/seatEventManager.js +63 -42
  226. package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
  227. package/dist/states/LiveSeatState/seatManager.js +131 -29
  228. package/dist/states/LiveSeatState/store.d.ts +5 -5
  229. package/dist/states/LiveSeatState/store.js +12 -10
  230. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
  231. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
  232. package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
  233. package/dist/states/LoginState.d.ts +23 -0
  234. package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
  235. package/dist/states/MessageInputState/MessageInputState.js +60 -59
  236. package/dist/states/MessageInputState/utils.d.ts +8 -1
  237. package/dist/states/MessageInputState/utils.js +30 -10
  238. package/dist/states/SeatStore.js +82 -83
  239. package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
  240. package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
  241. package/dist/states/UIKitModalState/index.d.ts +1 -0
  242. package/dist/states/UIKitModalState/index.js +4 -0
  243. package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
  244. package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
  245. package/dist/states/VideoMixerState/index.d.ts +1 -0
  246. package/dist/states/VideoMixerState/index.js +4 -0
  247. package/dist/styles/index.css +1 -1
  248. package/dist/types/audience.d.ts +21 -0
  249. package/dist/types/audience.js +4 -1
  250. package/dist/types/battle.d.ts +75 -3
  251. package/dist/types/battle.js +5 -1
  252. package/dist/types/coGuest.d.ts +72 -5
  253. package/dist/types/coGuest.js +4 -2
  254. package/dist/types/device.d.ts +38 -17
  255. package/dist/types/device.js +10 -8
  256. package/dist/types/index.d.ts +2 -2
  257. package/dist/types/index.js +96 -80
  258. package/dist/types/live.d.ts +36 -21
  259. package/dist/types/live.js +6 -4
  260. package/dist/types/seat.d.ts +23 -4
  261. package/dist/types/seat.js +7 -1
  262. package/dist/utils/call.d.ts +1 -1
  263. package/dist/utils/call.js +78 -79
  264. package/dist/utils/eventCenter.d.ts +88 -0
  265. package/dist/utils/eventCenter.js +161 -0
  266. package/package.json +4 -3
  267. package/src/chat/server.ts +0 -1
  268. package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
  269. package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
  270. package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
  271. package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
  272. package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
  273. package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
  274. package/src/components/AudioSettingPanel/index.vue +4 -2
  275. package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
  276. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
  277. package/src/components/BarrageInput/MessageInputState.ts +160 -0
  278. package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
  279. package/src/components/BarrageInput/type.ts +26 -0
  280. package/src/components/BarrageInput/utils.ts +45 -0
  281. package/src/components/BarrageList/BarrageList.vue +61 -117
  282. package/src/components/BarrageList/BarrageListH5.vue +75 -159
  283. package/src/components/BarrageList/BarrageListState.ts +223 -0
  284. package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
  285. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
  286. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
  287. package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
  288. package/src/components/CameraButton/index.vue +0 -1
  289. package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -0
  290. package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
  291. package/src/components/CoHostPanel/BattlePanel.vue +1 -4
  292. package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
  293. package/src/components/CoHostPanel/ConnectionPanel.vue +37 -33
  294. package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
  295. package/src/components/CoHostPanel/constants.ts +3 -0
  296. package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
  297. package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
  298. package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
  299. package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
  300. package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
  301. package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
  302. package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
  303. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
  304. package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
  305. package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
  306. package/src/components/ContactList/ContactList.vue +1 -1
  307. package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
  308. package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
  309. package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
  310. package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
  311. package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
  312. package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
  313. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -8
  314. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
  315. package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
  316. package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
  317. package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
  318. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
  319. package/src/components/ConversationList/ConversationList.vue +2 -2
  320. package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
  321. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
  322. package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
  323. package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
  324. package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
  325. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +4 -4
  326. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
  327. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
  328. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
  329. package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -1
  330. package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
  331. package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
  332. package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
  333. package/src/components/LiveList/LiveList.vue +5 -5
  334. package/src/components/LiveList/LiveListH5.vue +6 -6
  335. package/src/components/LiveScenePanel/index.vue +2 -2
  336. package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +10 -15
  337. package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +2 -2
  338. package/src/components/LiveView/DefaultStreamViewUI.vue +5 -3
  339. package/src/components/LiveView/PlayerControl/AudioControl.vue +72 -80
  340. package/src/components/LiveView/PlayerControl/MultiResolution.vue +30 -21
  341. package/src/components/LiveView/PlayerControl/PlayerControl.vue +26 -42
  342. package/src/components/LiveView/PlayerControl/PlayerControlState.ts +253 -455
  343. package/src/components/LiveView/PlayerControl/utils/domHelpers.ts +68 -4
  344. package/src/components/LiveView/i18n/en-US/index.ts +2 -2
  345. package/src/components/LiveView/i18n/zh-CN/index.ts +2 -2
  346. package/src/components/LiveView/index.vue +3 -2
  347. package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +8 -6
  348. package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +7 -3
  349. package/src/components/MessageInput/MessageInput.module.scss +1 -0
  350. package/src/components/MessageInput/MessageInput.vue +3 -1
  351. package/src/components/MessageInput/TextEditor/EditorCore.ts +17 -28
  352. package/src/components/MessageInput/TextEditor/TextEditor.vue +24 -4
  353. package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
  354. package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
  355. package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
  356. package/src/components/MessageInput/i18n/zh-CN.ts +4 -0
  357. package/src/components/MessageInput/types.d.ts +1 -0
  358. package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
  359. package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +5 -3
  360. package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
  361. package/src/components/MessageList/Message/Message.vue +1 -1
  362. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -8
  363. package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
  364. package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
  365. package/src/components/MessageList/MessageList.vue +2 -0
  366. package/src/components/MessageList/i18n/en-US.ts +66 -0
  367. package/src/components/MessageList/i18n/index.ts +4 -4
  368. package/src/components/MessageList/i18n/zh-CN.ts +66 -0
  369. package/src/components/MicButton/index.vue +3 -3
  370. package/src/components/Search/Search.vue +1 -1
  371. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
  372. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
  373. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
  374. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
  375. package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
  376. package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
  377. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
  378. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
  379. package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
  380. package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
  381. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
  382. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
  383. package/src/components/Search/SearchBar/SearchBar.scss +3 -6
  384. package/src/components/Search/SearchBar/SearchBar.vue +1 -1
  385. package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
  386. package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
  387. package/src/components/Search/SearchResults/SearchResults.vue +1 -1
  388. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
  389. package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
  390. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
  391. package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
  392. package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
  393. package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
  394. package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
  395. package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
  396. package/src/components/StreamView/index.vue +28 -14
  397. package/src/components/StreamView/manager/mediaManager.ts +38 -42
  398. package/src/components/UIKitModal/UIKitModal.ts +71 -0
  399. package/src/components/UIKitModal/index.scss +134 -0
  400. package/src/components/UIKitModal/index.ts +1 -0
  401. package/src/components/UIKitModal/index.vue +160 -0
  402. package/src/components/UIKitModal/type.ts +24 -0
  403. package/src/components/UserPicker/UserPicker.vue +1 -1
  404. package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -0
  405. package/src/components/UserPicker/hooks/useSearchFilter.ts +27 -18
  406. package/src/components/UserPicker/i18n/en-US.ts +1 -0
  407. package/src/components/UserPicker/i18n/zh-CN.ts +1 -0
  408. package/src/components/UserPicker/type.ts +1 -1
  409. package/src/components/VideoSetting/CameraSelect.vue +1 -2
  410. package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
  411. package/src/components/VideoSetting/VideoPreview.vue +1 -2
  412. package/src/components/VideoSetting/VideoProfile.vue +1 -1
  413. package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
  414. package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
  415. package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
  416. package/src/hooks/useAudioControl.ts +17 -4
  417. package/src/hooks/useRoomEngine.ts +1 -1
  418. package/src/index.ts +3 -0
  419. package/src/report/MetricsKey.ts +16 -0
  420. package/src/report/dataReport.ts +55 -0
  421. package/src/report/index.ts +7 -0
  422. package/src/rtc/index.ts +7 -9
  423. package/src/rtc/server.ts +4 -0
  424. package/src/types/audience.ts +27 -1
  425. package/src/types/battle.ts +87 -4
  426. package/src/types/coGuest.ts +87 -5
  427. package/src/types/device.ts +41 -16
  428. package/src/types/index.ts +2 -2
  429. package/src/types/live.ts +41 -22
  430. package/src/types/seat.ts +28 -4
  431. package/src/utils/call.ts +26 -27
  432. package/src/utils/eventCenter.ts +249 -0
  433. package/dist/DialogPortal-CvJcEAsn.js +0 -417
  434. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
  435. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts +0 -30
  436. package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
  437. package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
  438. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
  439. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
  440. package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
  441. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
  442. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
  443. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
  444. package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
  445. package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
  446. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
  447. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
  448. package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
  449. package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
  450. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
  451. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
  452. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
  453. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
  454. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
  455. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
  456. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
  457. package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
  458. package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
  459. package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
  460. package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
  461. package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
  462. package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
  463. package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
  464. package/dist/components/BarrageList/MessageForward/index.js +0 -4
  465. package/dist/components/StreamView/Layout/MixLayout.js +0 -89
  466. package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
  467. package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
  468. package/dist/states/BarrageListState/BarrageListState.js +0 -122
  469. package/dist/states/BarrageListState/index.d.ts +0 -1
  470. package/dist/states/BarrageListState/index.js +0 -4
  471. package/dist/states/BattleState.js +0 -117
  472. package/dist/states/DeviceState.js +0 -296
  473. package/dist/states/LiveState/index.js +0 -254
  474. package/dist/states/VideoMixerState.js +0 -260
  475. package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
  476. package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
  477. package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
  478. package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
  479. package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
  480. package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
  481. package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
  482. package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
  483. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
  484. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
  485. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
  486. package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
  487. package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
  488. package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
  489. package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
  490. package/src/components/BarrageList/MessageForward/index.ts +0 -3
  491. package/src/components/StreamView/Layout/MixLayout.vue +0 -144
@@ -1,9 +1,9 @@
1
- import { defineComponent as g, ref as N, watch as V, computed as E, createElementBlock as u, openBlock as n, normalizeStyle as p, normalizeClass as s, createCommentVNode as d, createVNode as f, unref as o, withCtx as v, createElementVNode as A, createBlock as h, resolveDynamicComponent as m, toDisplayString as T } from "vue";
2
- import { useUIKit as $, IconBack as w, TUIInput as M, IconCloseInput as F, IconSearch as K } from "@tencentcloud/uikit-base-component-vue3";
1
+ import { defineComponent as D, ref as g, watch as N, computed as V, createElementBlock as i, openBlock as t, normalizeStyle as E, normalizeClass as u, createCommentVNode as d, createVNode as m, unref as o, withCtx as v, createElementVNode as p, createBlock as h, resolveDynamicComponent as y, toDisplayString as A } from "vue";
2
+ import { useUIKit as T, IconBack as $, TUIInput as w, IconCloseInput as M, IconSearch as F } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import { VariantType as r } from "../../../types/search.js";
4
- import { isH5 as z } from "../../../utils/env.js";
5
- import { _ as R } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
6
- const U = { key: 1 }, x = /* @__PURE__ */ g({
4
+ import { isH5 as b } from "../../../utils/env.js";
5
+ import { _ as K } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const z = { key: 1 }, R = /* @__PURE__ */ D({
7
7
  __name: "SearchBar",
8
8
  props: {
9
9
  value: { default: "" },
@@ -20,74 +20,74 @@ const U = { key: 1 }, x = /* @__PURE__ */ g({
20
20
  autoFocus: { type: Boolean, default: !1 },
21
21
  variant: { default: r.STANDARD }
22
22
  },
23
- setup(c) {
24
- const e = c, l = N(e.value);
25
- V(
23
+ setup(n) {
24
+ const e = n, l = g(e.value);
25
+ N(
26
26
  () => e.value,
27
27
  (a) => {
28
28
  l.value = a || "";
29
29
  }
30
30
  );
31
- const { t: _ } = $(), S = E(() => e.variant !== r.MINI && e.variant !== r.EXACT && z), I = {
31
+ const { t: _ } = T(), S = V(() => e.variant !== r.MINI && e.variant !== r.EXACT && b), I = {
32
32
  [r.EXACT]: _("Search.action.search"),
33
33
  [r.STANDARD]: _("Search.action.search"),
34
34
  [r.MINI]: _("Search.action.search"),
35
35
  [r.EMBEDDED]: _("Search.results.title")
36
36
  }, C = (a) => {
37
- var y;
38
- const i = {
37
+ var f;
38
+ const s = {
39
39
  target: { value: String(a) }
40
40
  };
41
- (y = e.onChange) == null || y.call(e, i);
42
- }, b = (a) => {
43
- var t;
44
- (t = e.onFocus) == null || t.call(e, a);
41
+ (f = e.onChange) == null || f.call(e, s);
45
42
  }, k = (a) => {
46
- var t;
47
- (t = e.onBlur) == null || t.call(e, a);
48
- }, D = (a) => {
49
- var t;
43
+ var c;
44
+ (c = e.onFocus) == null || c.call(e, a);
45
+ }, x = (a) => {
46
+ var c;
47
+ (c = e.onBlur) == null || c.call(e, a);
48
+ }, j = (a) => {
49
+ var c;
50
50
  if (a) {
51
- const i = new KeyboardEvent("keydown", { key: "Enter" });
52
- (t = e.onKeyDown) == null || t.call(e, i);
51
+ const s = new KeyboardEvent("keydown", { key: "Enter" });
52
+ (c = e.onKeyDown) == null || c.call(e, s);
53
53
  }
54
54
  }, B = () => {
55
55
  var a;
56
56
  l.value = "", (a = e.onClear) == null || a.call(e);
57
57
  };
58
- return (a, t) => (n(), u("div", {
59
- class: s([a.$style.SearchBar, S.value && a.$style["SearchBar--h5"], c.className]),
60
- style: p(c.style)
58
+ return (a, c) => (t(), i("div", {
59
+ class: u([a.$style.SearchBar, S.value && a.$style["SearchBar--h5"], n.className]),
60
+ style: E(n.style)
61
61
  }, [
62
- S.value ? (n(), u("div", {
62
+ S.value ? (t(), i("div", {
63
63
  key: 0,
64
- class: s(a.$style.SearchBar__left),
64
+ class: u(a.$style.SearchBar__left),
65
65
  onClick: B
66
66
  }, [
67
- f(o(w), { size: 24 })
67
+ m(o($), { size: 24 })
68
68
  ], 2)) : d("", !0),
69
- f(o(M), {
69
+ m(o(w), {
70
70
  modelValue: l.value,
71
- "onUpdate:modelValue": t[0] || (t[0] = (i) => l.value = i),
72
- placeholder: c.placeholder || I[c.variant || o(r).STANDARD],
71
+ "onUpdate:modelValue": c[0] || (c[0] = (s) => l.value = s),
72
+ placeholder: n.placeholder || I[n.variant || o(r).STANDARD],
73
73
  onInput: C,
74
- onFocus: b,
75
- onBlur: k,
76
- onDone: D
74
+ onFocus: k,
75
+ onBlur: x,
76
+ onDone: j
77
77
  }, {
78
78
  prefix: v(() => [
79
- c.SearchIcon ? (n(), h(m(c.SearchIcon), { key: 0 })) : (n(), h(o(K), { key: 1 }))
79
+ n.SearchIcon ? (t(), h(y(n.SearchIcon), { key: 0 })) : (t(), h(o(F), { key: 1 }))
80
80
  ]),
81
81
  suffix: v(() => [
82
- !S.value && l.value ? (n(), u("div", {
82
+ !S.value && l.value ? (t(), i("div", {
83
83
  key: 0,
84
- class: s(a.$style.SearchBar__actions)
84
+ class: u(a.$style.SearchBar__actions)
85
85
  }, [
86
- A("div", {
87
- class: s(a.$style["SearchBar__clear-icon"]),
86
+ p("div", {
87
+ class: u(a.$style["SearchBar__clear-icon"]),
88
88
  onClick: B
89
89
  }, [
90
- c.ClearIcon ? (n(), h(m(c.ClearIcon), { key: 0 })) : (n(), h(o(F), {
90
+ n.ClearIcon ? (t(), h(y(n.ClearIcon), { key: 0 })) : (t(), h(o(M), {
91
91
  key: 1,
92
92
  class: "clearIcon"
93
93
  }))
@@ -96,36 +96,34 @@ const U = { key: 1 }, x = /* @__PURE__ */ g({
96
96
  ]),
97
97
  _: 1
98
98
  }, 8, ["modelValue", "placeholder"]),
99
- S.value ? (n(), u("div", {
99
+ S.value ? (t(), i("div", {
100
100
  key: 1,
101
- class: s(a.$style.SearchBar__right),
101
+ class: u(a.$style.SearchBar__right),
102
102
  onClick: B
103
103
  }, [
104
- c.ClearIcon ? (n(), h(m(c.ClearIcon), { key: 0 })) : (n(), u("span", U, T(o(_)("Search.action.cancel")), 1))
104
+ n.ClearIcon ? (t(), h(y(n.ClearIcon), { key: 0 })) : (t(), i("span", z, A(o(_)("Search.action.cancel")), 1))
105
105
  ], 2)) : d("", !0)
106
106
  ], 6));
107
107
  }
108
- }), H = "_SearchBar_1ob40_295", X = "_SearchBar__left_1ob40_301", P = "_SearchBar__right_1ob40_304", j = "_SearchBar__icon_1ob40_308", q = "_SearchBar__input_1ob40_313", G = "_clearIcon_1ob40_372", J = "_SearchBar__button_1ob40_382", L = "_SearchBar__actions_1ob40_386", O = {
109
- "tui-theme-dark": "_tui-theme-dark_1ob40_2",
110
- "tui-theme-light": "_tui-theme-light_1ob40_140",
111
- SearchBar: H,
112
- SearchBar__left: X,
113
- SearchBar__right: P,
114
- SearchBar__icon: j,
108
+ }), U = "_SearchBar_1jsx0_1", H = "_SearchBar__left_1jsx0_7", X = "_SearchBar__right_1jsx0_10", P = "_SearchBar__icon_1jsx0_14", q = "_SearchBar__input_1jsx0_19", G = "_clearIcon_1jsx0_78", J = "_SearchBar__button_1jsx0_88", L = "_SearchBar__actions_1jsx0_92", O = {
109
+ SearchBar: U,
110
+ SearchBar__left: H,
111
+ SearchBar__right: X,
112
+ SearchBar__icon: P,
115
113
  SearchBar__input: q,
116
- "tui-input": "_tui-input_1ob40_316",
117
- "tui-input__native-input": "_tui-input__native-input_1ob40_319",
118
- "tui-input__prefix-icon": "_tui-input__prefix-icon_1ob40_336",
119
- "tui-input__clear-icon": "_tui-input__clear-icon_1ob40_347",
120
- "SearchBar__clear-icon": "_SearchBar__clear-icon_1ob40_365",
114
+ "tui-input": "_tui-input_1jsx0_22",
115
+ "tui-input__native-input": "_tui-input__native-input_1jsx0_25",
116
+ "tui-input__prefix-icon": "_tui-input__prefix-icon_1jsx0_42",
117
+ "tui-input__clear-icon": "_tui-input__clear-icon_1jsx0_53",
118
+ "SearchBar__clear-icon": "_SearchBar__clear-icon_1jsx0_71",
121
119
  clearIcon: G,
122
- "SearchBar__clear-icon--default": "_SearchBar__clear-icon--default_1ob40_378",
120
+ "SearchBar__clear-icon--default": "_SearchBar__clear-icon--default_1jsx0_84",
123
121
  SearchBar__button: J,
124
122
  SearchBar__actions: L,
125
- "SearchBar--h5": "_SearchBar--h5_1ob40_391"
123
+ "SearchBar--h5": "_SearchBar--h5_1jsx0_97"
126
124
  }, Q = {
127
125
  $style: O
128
- }, te = /* @__PURE__ */ R(x, [["__cssModules", Q]]);
126
+ }, ce = /* @__PURE__ */ K(R, [["__cssModules", Q]]);
129
127
  export {
130
- te as default
128
+ ce as default
131
129
  };
@@ -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 { useVideoMixerState as S } from "../../../states/VideoMixerState.js";
5
- import I from "../icons/CameraMirror.js";
6
- import g from "../icons/Delete.js";
7
- import A from "../icons/Down.js";
8
- import B from "../icons/Rotation.js";
9
- import E from "../icons/Up.js";
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 } = S(), { t: n } = D();
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: I,
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: B,
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: E,
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: A,
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: g,
75
+ icon: I,
76
76
  style: "color: red",
77
77
  onClick: () => {
78
78
  C(t.value);
@@ -1,105 +1,108 @@
1
- import { defineComponent as Y, ref as T, computed as Z, watch as _, nextTick as ee, onMounted as te, onBeforeUnmount as oe, createElementBlock as Q, openBlock as S, createElementVNode as W, createBlock as ie, createCommentVNode as A, unref as w, normalizeStyle as ne, toDisplayString as ae } from "vue";
2
- import le, { TUIVideoQuality as v, TRTCVideoResolutionMode as L, TRTCVideoRotation as V } from "@tencentcloud/tuiroom-engine-js";
3
- import { useUIKit as re } from "@tencentcloud/uikit-base-component-vue3";
4
- import { useRoomEngine as se } from "../../../hooks/useRoomEngine.js";
5
- import { useLiveState as D } from "../../../states/LiveState/index.js";
6
- import { useVideoMixerState as ce } from "../../../states/VideoMixerState.js";
7
- import { debounce as ue } from "../../../utils/utils.js";
8
- import de from "./MixerControl.js";
9
- import { LiveOrientation as b, LiveStatus as N } from "../../../types/live.js";
10
- import { _ as me } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
11
- const pe = {
1
+ import { defineComponent as q, ref as T, computed as F, watch as _, nextTick as J, onMounted as Y, onBeforeUnmount as Z, createElementBlock as Q, openBlock as b, createElementVNode as W, createBlock as ee, createCommentVNode as A, unref as w, normalizeStyle as te, toDisplayString as oe } from "vue";
2
+ import ie, { TUIVideoQuality as g, TRTCVideoResolutionMode as S, TRTCVideoRotation as V } from "@tencentcloud/tuiroom-engine-js";
3
+ import { useUIKit as ne } from "@tencentcloud/uikit-base-component-vue3";
4
+ import { useRoomEngine as ae } from "../../../hooks/useRoomEngine.js";
5
+ import { debounce as le } from "../../../utils/utils.js";
6
+ import re from "./MixerControl.js";
7
+ import { useVideoMixerState as se } from "../../../states/VideoMixerState/VideoMixerState.js";
8
+ import { useLiveListState as ce } from "../../../states/LiveListState/LiveListState.js";
9
+ import { LiveOrientation as L } from "../../../types/live.js";
10
+ import { _ as ue } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const de = {
12
12
  key: 1,
13
13
  class: "local-mixer-placeholder"
14
- }, he = { class: "placeholder-text" }, d = 6, fe = /* @__PURE__ */ Y({
14
+ }, me = { class: "placeholder-text" }, d = 6, pe = /* @__PURE__ */ q({
15
15
  __name: "index",
16
- setup(ve) {
17
- const { t: U } = re(), { currentLive: g } = D(), k = T(null), { publishVideoQuality: I, activeMediaSource: c, enableLocalVideoMixer: z, mediaSourceList: $ } = ce();
18
- z();
19
- const B = Z(() => {
16
+ setup(he) {
17
+ const { t: N } = ne(), { currentLive: m } = ce(), k = T(null), { publishVideoQuality: I, activeMediaSource: c, enableLocalVideoMixer: U, mediaSourceList: z } = se();
18
+ U();
19
+ const B = F(() => {
20
20
  var t, e;
21
- return g.value && ((t = g.value) == null ? void 0 : t.layoutTemplate) >= 200 && ((e = g.value) == null ? void 0 : e.layoutTemplate) <= 599 ? b.Landscape : b.Portrait;
22
- }), { localLiveStatus: G } = D(), x = se(), u = T();
23
- function X(t, e) {
21
+ return m.value && ((t = m.value) == null ? void 0 : t.layoutTemplate) >= 200 && ((e = m.value) == null ? void 0 : e.layoutTemplate) <= 599 ? L.Landscape : L.Portrait;
22
+ }), x = ae(), u = T();
23
+ function D(t, e) {
24
24
  const i = {
25
- [v.kVideoQuality_360p]: { width: 640, height: 360 },
26
- [v.kVideoQuality_540p]: { width: 960, height: 540 },
27
- [v.kVideoQuality_720p]: { width: 1280, height: 720 },
28
- [v.kVideoQuality_1080p]: { width: 1920, height: 1080 }
25
+ [g.kVideoQuality_360p]: { width: 640, height: 360 },
26
+ [g.kVideoQuality_540p]: { width: 960, height: 540 },
27
+ [g.kVideoQuality_720p]: { width: 1280, height: 720 },
28
+ [g.kVideoQuality_1080p]: { width: 1920, height: 1080 }
29
29
  };
30
30
  let { width: n, height: o } = i[t];
31
- return e === L.TRTCVideoResolutionModePortrait && ([n, o] = [o, n]), { width: n, height: o };
31
+ return e === S.TRTCVideoResolutionModePortrait && ([n, o] = [o, n]), { width: n, height: o };
32
32
  }
33
- const E = T({
33
+ const P = T({
34
34
  position: "absolute",
35
35
  transform: "translate(0px, 0px)"
36
36
  });
37
- let m, r;
38
- function p() {
37
+ let p, r;
38
+ function h() {
39
39
  if (!u.value || !c.value)
40
40
  return;
41
- const { width: t, height: e } = X(
41
+ const { width: t, height: e } = D(
42
42
  I.value,
43
- B.value === b.Landscape ? L.TRTCVideoResolutionModeLandscape : L.TRTCVideoResolutionModePortrait
44
- ), { width: i, height: n } = u.value.getBoundingClientRect(), o = Math.max(i / t, n / e), s = t * o, h = e * o, { top: C, left: a, right: l, bottom: R } = c.value.layout.rect, f = l - a, O = R - C, H = c.value.layout.rotation || V.TRTCVideoRotation0, q = C * o - (h - n) / 2, F = a * o - (s - i) / 2;
43
+ B.value === L.Landscape ? S.TRTCVideoResolutionModeLandscape : S.TRTCVideoResolutionModePortrait
44
+ ), { width: i, height: n } = u.value.getBoundingClientRect(), o = Math.max(i / t, n / e), s = t * o, f = e * o, { top: C, left: a, right: l, bottom: R } = c.value.layout.rect, v = l - a, O = R - C, H = c.value.layout.rotation || V.TRTCVideoRotation0, X = C * o - (f - n) / 2, K = a * o - (s - i) / 2;
45
45
  let y, M;
46
- H === V.TRTCVideoRotation0 || H === V.TRTCVideoRotation180 ? (y = f * o, M = O * o) : (y = O * o, M = f * o);
47
- const J = K(
48
- F,
49
- q,
46
+ H === V.TRTCVideoRotation0 || H === V.TRTCVideoRotation180 ? (y = v * o, M = O * o) : (y = O * o, M = v * o);
47
+ const j = $(
48
+ K,
49
+ X,
50
50
  y,
51
51
  M,
52
52
  i,
53
53
  n
54
54
  );
55
- E.value = {
56
- ...J,
55
+ P.value = {
56
+ ...j,
57
57
  position: "absolute"
58
58
  };
59
59
  }
60
- function K(t, e, i, n, o, s) {
61
- const h = e + n;
62
- let a = t + i / 2 - m / 2, l = e - d - r;
63
- a < 0 ? a = 0 : a + m > o && (a = o - m);
64
- const R = e, f = s - h;
65
- return l >= 0 && R >= r + d ? l = Math.min(l, s - r) : f >= r + d ? l = Math.max(0, h + d) : l = Math.max(0, e - r - d), {
60
+ function $(t, e, i, n, o, s) {
61
+ const f = e + n;
62
+ let a = t + i / 2 - p / 2, l = e - d - r;
63
+ a < 0 ? a = 0 : a + p > o && (a = o - p);
64
+ const R = e, v = s - f;
65
+ return l >= 0 && R >= r + d ? l = Math.min(l, s - r) : v >= r + d ? l = Math.max(0, f + d) : l = Math.max(0, e - r - d), {
66
66
  transform: `translate(${a}px, ${l}px)`
67
67
  };
68
68
  }
69
- const j = ue(p, 16);
69
+ const G = le(h, 16);
70
70
  _(() => c.value, async (t, e) => {
71
71
  var i;
72
72
  if (!e && t) {
73
- await ee();
73
+ await J();
74
74
  const n = (i = k.value) == null ? void 0 : i.$el, { width: o, height: s } = (n == null ? void 0 : n.getBoundingClientRect()) || { width: 0, height: 0 };
75
- m = o, r = s;
75
+ p = o, r = s;
76
76
  }
77
- p();
77
+ h();
78
78
  }, { immediate: !0, deep: !0 }), _(
79
79
  () => [I.value, B.value],
80
80
  ([t, e]) => {
81
- !t || !e || p();
81
+ !t || !e || h();
82
82
  },
83
83
  { immediate: !0, deep: !0 }
84
84
  );
85
- const P = new ResizeObserver(() => {
86
- j();
85
+ const E = new ResizeObserver(() => {
86
+ G();
87
87
  });
88
- return te(() => {
89
- P.observe(u.value), le.once("ready", async () => {
88
+ return Y(() => {
89
+ E.observe(u.value), ie.once("ready", async () => {
90
90
  var e;
91
- await ((e = x.instance) == null ? void 0 : e.getTRTCCloud().getMediaMixingManager()).bindPreviewArea(document.getElementById("local-video-mixer")), p();
92
- }), _(G, async (t) => {
91
+ await ((e = x.instance) == null ? void 0 : e.getTRTCCloud().getMediaMixingManager()).bindPreviewArea(document.getElementById("local-video-mixer")), h();
92
+ }), _(() => {
93
+ var t;
94
+ return (t = m.value) == null ? void 0 : t.liveId;
95
+ }, async (t) => {
93
96
  var i;
94
97
  const e = (i = x.instance) == null ? void 0 : i.getTRTCCloud().getMediaMixingManager();
95
- t === N.Live && await (e == null ? void 0 : e.startPublish()), t === N.IDLE && await (e == null ? void 0 : e.stopPublish());
98
+ t && await (e == null ? void 0 : e.startPublish()), t || await (e == null ? void 0 : e.stopPublish());
96
99
  });
97
- }), oe(async () => {
100
+ }), Z(async () => {
98
101
  var e;
99
- P.unobserve(u.value);
102
+ E.unobserve(u.value);
100
103
  const t = (e = x.instance) == null ? void 0 : e.getTRTCCloud().getMediaMixingManager();
101
104
  await (t == null ? void 0 : t.destroy());
102
- }), (t, e) => (S(), Q("div", {
105
+ }), (t, e) => (b(), Q("div", {
103
106
  ref_key: "localMixerRef",
104
107
  ref: u,
105
108
  class: "local-mixer-container"
@@ -108,19 +111,19 @@ const pe = {
108
111
  id: "local-video-mixer",
109
112
  class: "local-mixer-content"
110
113
  }, null, -1)),
111
- w(c) ? (S(), ie(de, {
114
+ w(c) ? (b(), ee(re, {
112
115
  key: 0,
113
116
  ref_key: "mixControlRef",
114
117
  ref: k,
115
118
  class: "mixer-control",
116
- style: ne(E.value)
119
+ style: te(P.value)
117
120
  }, null, 8, ["style"])) : A("", !0),
118
- w($).length === 0 ? (S(), Q("div", pe, [
119
- W("span", he, ae(w(U)("No video")), 1)
121
+ w(z).length === 0 ? (b(), Q("div", de, [
122
+ W("span", me, oe(w(N)("No video")), 1)
120
123
  ])) : A("", !0)
121
124
  ], 512));
122
125
  }
123
- }), Le = /* @__PURE__ */ me(fe, [["__scopeId", "data-v-9e8c1226"]]);
126
+ }), be = /* @__PURE__ */ ue(pe, [["__scopeId", "data-v-7f6babec"]]);
124
127
  export {
125
- Le as default
128
+ be as default
126
129
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as V, computed as l, ref as x, watch as R, onMounted as E, onBeforeUnmount as H, createElementBlock as _, openBlock as b, createElementVNode as W, normalizeStyle as O, Fragment as J, renderList as D, createBlock as P, unref as j, withCtx as q, renderSlot as A, mergeProps as G } from "vue";
1
+ import { defineComponent as V, computed as l, ref as x, watch as R, onMounted as E, onBeforeUnmount as H, createElementBlock as _, openBlock as L, createElementVNode as W, normalizeStyle as O, Fragment as J, renderList as D, createBlock as P, unref as j, withCtx as q, renderSlot as A, mergeProps as G } from "vue";
2
2
  import K from "../common/StreamRegion/StreamRegionPC.js";
3
3
  import { useUserState as Q } from "../../../states/UserState/index.js";
4
4
  import { TUIVideoStreamType as Z } from "@tencentcloud/tuiroom-engine-js";
5
5
  import { useRoomState as ee } from "../../../states/RoomState.js";
6
6
  import { useLoginState as te } from "../../../states/LoginState.js";
7
- import { useLiveState as re } from "../../../states/LiveState/index.js";
7
+ import { useLiveListState as re } from "../../../states/LiveListState/LiveListState.js";
8
8
  import { _ as ae } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const oe = /* @__PURE__ */ V({
10
10
  __name: "CustomLayout",
@@ -17,10 +17,10 @@ const oe = /* @__PURE__ */ V({
17
17
  },
18
18
  emits: ["stream-view-dblclick"],
19
19
  setup(z, { emit: M }) {
20
- const { userList: m, localUser: N, userListOnSeat: p } = Q(), { currentRoom: L } = ee(), { currentLive: v } = re(), { loginUserInfo: T } = te(), F = M, d = z, g = l(() => {
20
+ const { userList: m, localUser: N, userListOnSeat: p } = Q(), { currentRoom: b } = ee(), { currentLive: v } = re(), { loginUserInfo: T } = te(), F = M, d = z, g = l(() => {
21
21
  var t, e;
22
- if (L.value)
23
- return (t = L.value) != null && t.isSeatEnabled ? p.value : m.value;
22
+ if (b.value)
23
+ return (t = b.value) != null && t.isSeatEnabled ? p.value : m.value;
24
24
  if (v.value) {
25
25
  if (v.value.isSeatEnabled) {
26
26
  if (p.value.length > 0)
@@ -135,7 +135,7 @@ const oe = /* @__PURE__ */ V({
135
135
  function U(t, e) {
136
136
  F("stream-view-dblclick", t, e);
137
137
  }
138
- return (t, e) => (b(), _("div", {
138
+ return (t, e) => (L(), _("div", {
139
139
  class: "custom-layout-container",
140
140
  ref_key: "streamListContainerRef",
141
141
  ref: s
@@ -146,7 +146,7 @@ const oe = /* @__PURE__ */ V({
146
146
  ref: Y,
147
147
  style: O(i.value)
148
148
  }, [
149
- (b(!0), _(J, null, D(X.value, (r, u) => (b(), P(j(K), {
149
+ (L(!0), _(J, null, D(X.value, (r, u) => (L(), P(j(K), {
150
150
  class: "stream-list-item",
151
151
  key: `${r.userInfo.userId}_${r.streamType}`,
152
152
  userInfo: r.userInfo,
@@ -163,7 +163,7 @@ const oe = /* @__PURE__ */ V({
163
163
  ], 4)
164
164
  ], 512));
165
165
  }
166
- }), de = /* @__PURE__ */ ae(oe, [["__scopeId", "data-v-a35188d8"]]);
166
+ }), de = /* @__PURE__ */ ae(oe, [["__scopeId", "data-v-6267e055"]]);
167
167
  export {
168
168
  de as default
169
169
  };