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

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 (498) 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/{PopoverTrigger-L8abAry7.js → PopoverTrigger-CglNN8IV.js} +3 -3
  4. package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-CQa08BXt.js} +1 -1
  5. package/dist/{Teleport-CSEuZbpM.js → Teleport-D3gvcBbZ.js} +278 -268
  6. package/dist/baseComp/Modal/Modal.js +431 -23
  7. package/dist/chat/index.d.ts +68 -53
  8. package/dist/chat/server.js +15 -15
  9. package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
  10. package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
  11. package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
  12. package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
  13. package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
  14. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
  15. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
  16. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
  17. package/dist/components/AudioSettingPanel/index.js +81 -73
  18. package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
  19. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +4 -4
  20. package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
  21. package/dist/components/BarrageInput/MessageInputState.js +82 -0
  22. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  23. package/dist/components/BarrageInput/TextEditor/EditorCore.js +5 -4
  24. package/dist/components/BarrageInput/TextEditor/index.js +7 -7
  25. package/dist/components/BarrageInput/type.d.ts +17 -0
  26. package/dist/components/BarrageInput/type.js +4 -0
  27. package/dist/components/BarrageInput/utils.d.ts +30 -0
  28. package/dist/components/BarrageInput/utils.js +41 -0
  29. package/dist/components/BarrageList/BarrageList.js +80 -110
  30. package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
  31. package/dist/components/BarrageList/BarrageListH5.js +95 -122
  32. package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
  33. package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
  34. package/dist/components/BarrageList/BarrageListState.js +106 -0
  35. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
  36. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
  37. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
  38. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
  39. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
  40. package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
  41. package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
  42. package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
  43. package/dist/components/BarrageList/index.d.ts +0 -36
  44. package/dist/components/CameraButton/index.js +18 -19
  45. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
  46. package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
  47. package/dist/components/CoHostPanel/BattlePanel.js +11 -11
  48. package/dist/components/CoHostPanel/CoHostPanel.js +10 -10
  49. package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
  50. package/dist/components/CoHostPanel/ConnectionPanel.js +132 -123
  51. package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
  52. package/dist/components/CoHostPanel/constants.d.ts +3 -0
  53. package/dist/components/CoHostPanel/constants.js +6 -0
  54. package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
  55. package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
  56. package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
  57. package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
  58. package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +6 -6
  59. package/dist/components/ContactList/ContactInfo/ContactInfo.js +1 -1
  60. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +1 -1
  61. package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +9 -9
  62. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +1 -1
  63. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +4 -4
  64. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +8 -8
  65. package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +7 -7
  66. package/dist/components/ContactList/ContactList.js +7 -7
  67. package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +8 -8
  68. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +5 -5
  69. package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +5 -5
  70. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +1 -1
  71. package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +1 -1
  72. package/dist/components/ContactList/ContactSearch/ContactSearch.js +6 -6
  73. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
  74. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +9 -9
  75. package/dist/components/ConversationList/ConversationList.js +4 -4
  76. package/dist/components/ConversationList/ConversationList.vue.d.ts +10 -10
  77. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +10 -10
  78. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
  79. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +20 -20
  80. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +2 -2
  81. package/dist/components/ConversationList/ConversationPreview/index.js +1 -1
  82. package/dist/components/ConversationList/index.d.ts +30 -30
  83. package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
  84. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
  85. package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
  86. package/dist/components/LiveList/LiveList.js +23 -23
  87. package/dist/components/LiveList/LiveListH5.js +38 -38
  88. package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
  89. package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
  90. package/dist/components/LiveScenePanel/index.js +28 -27
  91. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +58 -58
  92. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +6 -6
  93. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +5 -5
  94. package/dist/components/LiveView/DefaultStreamViewUI.js +44 -41
  95. package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
  96. package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
  97. package/dist/components/LiveView/PlayerControl/MultiResolution.js +57 -62
  98. package/dist/components/LiveView/PlayerControl/PlayerControl.js +79 -79
  99. package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +2 -2
  100. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +164 -209
  101. package/dist/components/LiveView/PlayerControl/utils/domHelpers.d.ts +8 -1
  102. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +57 -24
  103. package/dist/components/LiveView/i18n/en-US/index.d.ts +2 -2
  104. package/dist/components/LiveView/i18n/en-US/index.js +2 -2
  105. package/dist/components/LiveView/i18n/zh-CN/index.d.ts +2 -2
  106. package/dist/components/LiveView/i18n/zh-CN/index.js +2 -2
  107. package/dist/components/LiveView/index.js +17 -17
  108. package/dist/components/MessageInput/AttachmentPicker/index.js +1 -1
  109. package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
  110. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +88 -84
  111. package/dist/components/MessageInput/MessageInput.js +1 -1
  112. package/dist/components/MessageInput/MessageInput.vue.d.ts +5 -2
  113. package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +3 -1
  114. package/dist/components/MessageInput/TextEditor/EditorCore.js +51 -63
  115. package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +6 -2
  116. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
  117. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
  118. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
  119. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
  120. package/dist/components/MessageInput/TextEditor/index.js +45 -35
  121. package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
  122. package/dist/components/MessageInput/i18n/index.d.ts +4 -0
  123. package/dist/components/MessageInput/i18n/zh-CN.d.ts +4 -0
  124. package/dist/components/MessageInput/i18n/zh-CN.js +5 -1
  125. package/dist/components/MessageInput/index.d.ts +36 -6
  126. package/dist/components/MessageInput/index.js +1 -1
  127. package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +24 -34
  128. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +29 -28
  129. package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
  130. package/dist/components/MessageList/Message/Message.vue.d.ts +1 -1
  131. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
  132. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +63 -69
  133. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
  134. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
  135. package/dist/components/MessageList/MessageList.js +8 -6
  136. package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
  137. package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
  138. package/dist/components/MessageList/i18n/en-US.js +66 -2
  139. package/dist/components/MessageList/i18n/index.d.ts +128 -0
  140. package/dist/components/MessageList/i18n/index.js +6 -6
  141. package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
  142. package/dist/components/MessageList/i18n/zh-CN.js +64 -0
  143. package/dist/components/MessageList/index.d.ts +20 -20
  144. package/dist/components/MicButton/index.js +11 -11
  145. package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
  146. package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
  147. package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
  148. package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
  149. package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
  150. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
  151. package/dist/components/Search/SearchBar/SearchBar.js +56 -58
  152. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
  153. package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
  154. package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
  155. package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
  156. package/dist/components/StreamView/Layout/GridLayout.js +5 -5
  157. package/dist/components/StreamView/index.js +25 -33
  158. package/dist/components/StreamView/manager/mediaManager.js +54 -60
  159. package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
  160. package/dist/components/UIKitModal/UIKitModal.js +156 -0
  161. package/dist/components/UIKitModal/index.d.ts +1 -0
  162. package/dist/components/UIKitModal/index.js +4 -0
  163. package/dist/components/{BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts → UIKitModal/index.vue.d.ts} +24 -9
  164. package/dist/components/UIKitModal/type.d.ts +21 -0
  165. package/dist/components/UIKitModal/type.js +1 -0
  166. package/dist/components/UserPicker/UserPicker.js +1 -2
  167. package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
  168. package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
  169. package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
  170. package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
  171. package/dist/components/UserPicker/i18n/en-US.js +2 -1
  172. package/dist/components/UserPicker/i18n/index.d.ts +2 -0
  173. package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
  174. package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
  175. package/dist/components/UserPicker/index.d.ts +2 -2
  176. package/dist/components/UserPicker/type.d.ts +1 -1
  177. package/dist/components/VideoSetting/CameraSelect.js +8 -8
  178. package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
  179. package/dist/components/VideoSetting/VideoPreview.js +9 -9
  180. package/dist/components/VideoSetting/VideoProfile.js +6 -6
  181. package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
  182. package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
  183. package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
  184. package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
  185. package/dist/hooks/useAudioControl.d.ts +3 -3
  186. package/dist/hooks/useAudioControl.js +32 -30
  187. package/dist/hooks/useRoomEngine.js +6 -6
  188. package/dist/index-B_-9wgM4.js +64 -0
  189. package/dist/{index-Bm-QfV5o.js → index-DMfTuy0v.js} +574 -631
  190. package/dist/{index-D2OVtqc8.js → index-DV6o6s43.js} +946 -915
  191. package/dist/index.d.ts +3 -1
  192. package/dist/index.js +164 -142
  193. package/dist/report/MetricsKey.d.ts +16 -0
  194. package/dist/report/MetricsKey.js +4 -0
  195. package/dist/report/dataReport.d.ts +12 -0
  196. package/dist/report/dataReport.js +45 -0
  197. package/dist/report/index.d.ts +4 -0
  198. package/dist/report/index.js +6 -0
  199. package/dist/rtc/index.d.ts +5 -43
  200. package/dist/rtc/index.js +48 -48
  201. package/dist/rtc/server.js +45 -40
  202. package/dist/states/BarrageState/BarrageState.d.ts +74 -0
  203. package/dist/states/BarrageState/BarrageState.js +80 -0
  204. package/dist/states/BarrageState/index.d.ts +1 -0
  205. package/dist/states/BarrageState/index.js +5 -0
  206. package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
  207. package/dist/states/BattleState/BattleState.js +203 -0
  208. package/dist/states/BattleState/index.d.ts +1 -0
  209. package/dist/states/BattleState/index.js +4 -0
  210. package/dist/states/CoGuestState.d.ts +24 -94
  211. package/dist/states/CoGuestState.js +297 -189
  212. package/dist/states/CoHostState/CoHostState.d.ts +2 -2
  213. package/dist/states/CoHostState/CoHostState.js +135 -131
  214. package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
  215. package/dist/states/DeviceState/DeviceState.js +314 -0
  216. package/dist/states/DeviceState/index.d.ts +1 -0
  217. package/dist/states/DeviceState/index.js +4 -0
  218. package/dist/states/LiveAudienceState.d.ts +3 -1
  219. package/dist/states/LiveAudienceState.js +106 -63
  220. package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
  221. package/dist/states/LiveListState/LiveListState.js +285 -0
  222. package/dist/states/LiveListState/index.d.ts +1 -0
  223. package/dist/states/LiveListState/index.js +4 -0
  224. package/dist/states/LiveMonitorState/api/http.js +147 -129
  225. package/dist/states/LiveMonitorState/index.js +67 -62
  226. package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
  227. package/dist/states/LiveSeatState/index.d.ts +46 -11
  228. package/dist/states/LiveSeatState/index.js +34 -15
  229. package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
  230. package/dist/states/LiveSeatState/seatEventManager.js +63 -42
  231. package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
  232. package/dist/states/LiveSeatState/seatManager.js +131 -29
  233. package/dist/states/LiveSeatState/store.d.ts +5 -5
  234. package/dist/states/LiveSeatState/store.js +12 -10
  235. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
  236. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
  237. package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
  238. package/dist/states/LoginState.d.ts +23 -0
  239. package/dist/states/MessageInputState/MessageInputState.d.ts +41 -7
  240. package/dist/states/MessageInputState/MessageInputState.js +60 -59
  241. package/dist/states/MessageInputState/utils.d.ts +8 -1
  242. package/dist/states/MessageInputState/utils.js +30 -10
  243. package/dist/states/SeatStore.js +82 -83
  244. package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
  245. package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
  246. package/dist/states/UIKitModalState/index.d.ts +1 -0
  247. package/dist/states/UIKitModalState/index.js +4 -0
  248. package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
  249. package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
  250. package/dist/states/VideoMixerState/index.d.ts +1 -0
  251. package/dist/states/VideoMixerState/index.js +4 -0
  252. package/dist/styles/index.css +1 -1
  253. package/dist/types/audience.d.ts +21 -0
  254. package/dist/types/audience.js +4 -1
  255. package/dist/types/battle.d.ts +75 -3
  256. package/dist/types/battle.js +5 -1
  257. package/dist/types/coGuest.d.ts +72 -5
  258. package/dist/types/coGuest.js +4 -2
  259. package/dist/types/device.d.ts +38 -17
  260. package/dist/types/device.js +10 -8
  261. package/dist/types/index.d.ts +2 -2
  262. package/dist/types/index.js +96 -80
  263. package/dist/types/live.d.ts +36 -21
  264. package/dist/types/live.js +6 -4
  265. package/dist/types/seat.d.ts +23 -4
  266. package/dist/types/seat.js +7 -1
  267. package/dist/{useId-CtirfF0W.js → useId-oQ5JZeuH.js} +1 -1
  268. package/dist/utils/call.d.ts +1 -1
  269. package/dist/utils/call.js +78 -79
  270. package/dist/utils/eventCenter.d.ts +88 -0
  271. package/dist/utils/eventCenter.js +161 -0
  272. package/dist/{utils-DaB7eSu5.js → utils-DuzSgmS6.js} +1 -1
  273. package/package.json +4 -3
  274. package/src/chat/server.ts +0 -1
  275. package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
  276. package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
  277. package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
  278. package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
  279. package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
  280. package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
  281. package/src/components/AudioSettingPanel/index.vue +4 -2
  282. package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
  283. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
  284. package/src/components/BarrageInput/MessageInputState.ts +160 -0
  285. package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
  286. package/src/components/BarrageInput/type.ts +26 -0
  287. package/src/components/BarrageInput/utils.ts +45 -0
  288. package/src/components/BarrageList/BarrageList.vue +61 -117
  289. package/src/components/BarrageList/BarrageListH5.vue +75 -159
  290. package/src/components/BarrageList/BarrageListState.ts +223 -0
  291. package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
  292. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
  293. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
  294. package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
  295. package/src/components/CameraButton/index.vue +0 -1
  296. package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -0
  297. package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
  298. package/src/components/CoHostPanel/BattlePanel.vue +1 -4
  299. package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
  300. package/src/components/CoHostPanel/ConnectionPanel.vue +37 -33
  301. package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
  302. package/src/components/CoHostPanel/constants.ts +3 -0
  303. package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
  304. package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
  305. package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +1 -1
  306. package/src/components/ContactList/ContactInfo/ContactInfo.vue +1 -1
  307. package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +1 -1
  308. package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +1 -1
  309. package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +1 -1
  310. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -1
  311. package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +1 -1
  312. package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +1 -1
  313. package/src/components/ContactList/ContactList.vue +1 -1
  314. package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +1 -1
  315. package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +1 -1
  316. package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +1 -1
  317. package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +1 -1
  318. package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +1 -1
  319. package/src/components/ContactList/ContactSearch/ContactSearch.vue +1 -1
  320. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +2 -8
  321. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +2 -2
  322. package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +1 -1
  323. package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +1 -1
  324. package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +1 -1
  325. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +1 -1
  326. package/src/components/ConversationList/ConversationList.vue +2 -2
  327. package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +1 -1
  328. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +1 -1
  329. package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +1 -1
  330. package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +1 -1
  331. package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
  332. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +4 -4
  333. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +1 -1
  334. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +3 -3
  335. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
  336. package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -1
  337. package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
  338. package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
  339. package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
  340. package/src/components/LiveList/LiveList.vue +5 -5
  341. package/src/components/LiveList/LiveListH5.vue +6 -6
  342. package/src/components/LiveScenePanel/index.vue +3 -2
  343. package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +10 -15
  344. package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +2 -2
  345. package/src/components/LiveView/DefaultStreamViewUI.vue +5 -3
  346. package/src/components/LiveView/PlayerControl/AudioControl.vue +72 -80
  347. package/src/components/LiveView/PlayerControl/MultiResolution.vue +30 -21
  348. package/src/components/LiveView/PlayerControl/PlayerControl.vue +26 -42
  349. package/src/components/LiveView/PlayerControl/PlayerControlState.ts +253 -455
  350. package/src/components/LiveView/PlayerControl/utils/domHelpers.ts +68 -4
  351. package/src/components/LiveView/i18n/en-US/index.ts +2 -2
  352. package/src/components/LiveView/i18n/zh-CN/index.ts +2 -2
  353. package/src/components/LiveView/index.vue +3 -2
  354. package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +8 -6
  355. package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +7 -3
  356. package/src/components/MessageInput/MessageInput.module.scss +1 -0
  357. package/src/components/MessageInput/MessageInput.vue +3 -1
  358. package/src/components/MessageInput/TextEditor/EditorCore.ts +17 -28
  359. package/src/components/MessageInput/TextEditor/TextEditor.vue +24 -4
  360. package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
  361. package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
  362. package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
  363. package/src/components/MessageInput/i18n/zh-CN.ts +4 -0
  364. package/src/components/MessageInput/types.d.ts +1 -0
  365. package/src/components/MessageList/Message/AudioMessage/WaveForm.vue +20 -37
  366. package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +5 -3
  367. package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
  368. package/src/components/MessageList/Message/Message.vue +1 -1
  369. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -8
  370. package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
  371. package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
  372. package/src/components/MessageList/MessageList.vue +2 -0
  373. package/src/components/MessageList/i18n/en-US.ts +66 -0
  374. package/src/components/MessageList/i18n/index.ts +4 -4
  375. package/src/components/MessageList/i18n/zh-CN.ts +66 -0
  376. package/src/components/MicButton/index.vue +3 -3
  377. package/src/components/Search/Search.vue +1 -1
  378. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
  379. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +1 -1
  380. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
  381. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +1 -1
  382. package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
  383. package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +1 -1
  384. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
  385. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +1 -1
  386. package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
  387. package/src/components/Search/SearchAdvanced/Slider/Slider.vue +1 -1
  388. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
  389. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
  390. package/src/components/Search/SearchBar/SearchBar.scss +3 -6
  391. package/src/components/Search/SearchBar/SearchBar.vue +1 -1
  392. package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +1 -1
  393. package/src/components/Search/SearchResults/Loading/Loading.vue +1 -1
  394. package/src/components/Search/SearchResults/SearchResults.vue +1 -1
  395. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
  396. package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +1 -1
  397. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
  398. package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +1 -1
  399. package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
  400. package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
  401. package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
  402. package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
  403. package/src/components/StreamView/index.vue +28 -14
  404. package/src/components/StreamView/manager/mediaManager.ts +38 -42
  405. package/src/components/UIKitModal/UIKitModal.ts +71 -0
  406. package/src/components/UIKitModal/index.scss +134 -0
  407. package/src/components/UIKitModal/index.ts +1 -0
  408. package/src/components/UIKitModal/index.vue +160 -0
  409. package/src/components/UIKitModal/type.ts +24 -0
  410. package/src/components/UserPicker/UserPicker.vue +1 -1
  411. package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -0
  412. package/src/components/UserPicker/hooks/useSearchFilter.ts +27 -18
  413. package/src/components/UserPicker/i18n/en-US.ts +1 -0
  414. package/src/components/UserPicker/i18n/zh-CN.ts +1 -0
  415. package/src/components/UserPicker/type.ts +1 -1
  416. package/src/components/VideoSetting/CameraSelect.vue +1 -2
  417. package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
  418. package/src/components/VideoSetting/VideoPreview.vue +1 -2
  419. package/src/components/VideoSetting/VideoProfile.vue +1 -1
  420. package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
  421. package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
  422. package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
  423. package/src/hooks/useAudioControl.ts +17 -4
  424. package/src/hooks/useRoomEngine.ts +1 -1
  425. package/src/index.ts +3 -0
  426. package/src/report/MetricsKey.ts +16 -0
  427. package/src/report/dataReport.ts +55 -0
  428. package/src/report/index.ts +7 -0
  429. package/src/rtc/index.ts +7 -9
  430. package/src/rtc/server.ts +4 -0
  431. package/src/types/audience.ts +27 -1
  432. package/src/types/battle.ts +87 -4
  433. package/src/types/coGuest.ts +87 -5
  434. package/src/types/device.ts +41 -16
  435. package/src/types/index.ts +2 -2
  436. package/src/types/live.ts +41 -22
  437. package/src/types/seat.ts +28 -4
  438. package/src/utils/call.ts +26 -27
  439. package/src/utils/eventCenter.ts +249 -0
  440. package/dist/DialogPortal-CvJcEAsn.js +0 -417
  441. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
  442. package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
  443. package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
  444. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
  445. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
  446. package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
  447. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
  448. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
  449. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
  450. package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
  451. package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
  452. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
  453. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
  454. package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
  455. package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
  456. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
  457. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
  458. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
  459. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
  460. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
  461. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
  462. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
  463. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts +0 -35
  464. package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
  465. package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
  466. package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
  467. package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
  468. package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
  469. package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
  470. package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
  471. package/dist/components/BarrageList/MessageForward/index.js +0 -4
  472. package/dist/components/StreamView/Layout/MixLayout.js +0 -89
  473. package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
  474. package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
  475. package/dist/states/BarrageListState/BarrageListState.js +0 -122
  476. package/dist/states/BarrageListState/index.d.ts +0 -1
  477. package/dist/states/BarrageListState/index.js +0 -4
  478. package/dist/states/BattleState.js +0 -117
  479. package/dist/states/DeviceState.js +0 -296
  480. package/dist/states/LiveState/index.js +0 -254
  481. package/dist/states/VideoMixerState.js +0 -260
  482. package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
  483. package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
  484. package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
  485. package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
  486. package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
  487. package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
  488. package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
  489. package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
  490. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
  491. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
  492. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
  493. package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
  494. package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
  495. package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
  496. package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
  497. package/src/components/BarrageList/MessageForward/index.ts +0 -3
  498. package/src/components/StreamView/Layout/MixLayout.vue +0 -144
@@ -433,9 +433,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
433
433
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
434
434
  };
435
435
  }>> & Readonly<{
436
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
436
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
437
437
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
438
- select: (conversation: import('../..').ConversationModel) => void;
438
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
439
439
  }, import('vue').PublicProps, {
440
440
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
441
441
  isSelected: boolean;
@@ -768,7 +768,7 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
768
768
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
769
769
  };
770
770
  }>> & Readonly<{
771
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
771
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
772
772
  }>, {}, {}, {}, {}, {
773
773
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
774
774
  isSelected: boolean;
@@ -1098,9 +1098,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
1098
1098
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
1099
1099
  };
1100
1100
  }>> & Readonly<{
1101
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
1101
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
1102
1102
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1103
- select: (conversation: import('../..').ConversationModel) => void;
1103
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
1104
1104
  }, string, {
1105
1105
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
1106
1106
  isSelected: boolean;
@@ -4108,9 +4108,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
4108
4108
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
4109
4109
  };
4110
4110
  }>> & Readonly<{
4111
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4111
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4112
4112
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4113
- select: (conversation: import('../..').ConversationModel) => void;
4113
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
4114
4114
  }, import('vue').PublicProps, {
4115
4115
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
4116
4116
  isSelected: boolean;
@@ -4443,7 +4443,7 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
4443
4443
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
4444
4444
  };
4445
4445
  }>> & Readonly<{
4446
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4446
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4447
4447
  }>, {}, {}, {}, {}, {
4448
4448
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
4449
4449
  isSelected: boolean;
@@ -4773,9 +4773,9 @@ declare const ConversationList: import('vue').DefineComponent<import('vue').Extr
4773
4773
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
4774
4774
  };
4775
4775
  }>> & Readonly<{
4776
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4776
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
4777
4777
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4778
- select: (conversation: import('../..').ConversationModel) => void;
4778
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
4779
4779
  }, string, {
4780
4780
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
4781
4781
  isSelected: boolean;
@@ -8265,9 +8265,9 @@ declare const ConversationPreview: {
8265
8265
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
8266
8266
  };
8267
8267
  }>> & Readonly<{
8268
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8268
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8269
8269
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8270
- select: (conversation: import('../..').ConversationModel) => void;
8270
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
8271
8271
  }, import('vue').PublicProps, {
8272
8272
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
8273
8273
  isSelected: boolean;
@@ -8600,7 +8600,7 @@ declare const ConversationPreview: {
8600
8600
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
8601
8601
  };
8602
8602
  }>> & Readonly<{
8603
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8603
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8604
8604
  }>, {}, {}, {}, {}, {
8605
8605
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
8606
8606
  isSelected: boolean;
@@ -8930,9 +8930,9 @@ declare const ConversationPreview: {
8930
8930
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
8931
8931
  };
8932
8932
  }>> & Readonly<{
8933
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8933
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
8934
8934
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8935
- select: (conversation: import('../..').ConversationModel) => void;
8935
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
8936
8936
  }, string, {
8937
8937
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
8938
8938
  isSelected: boolean;
@@ -9555,9 +9555,9 @@ declare const ConversationPreview: {
9555
9555
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
9556
9556
  };
9557
9557
  }>> & Readonly<{
9558
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
9558
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
9559
9559
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9560
- select: (conversation: import('../..').ConversationModel) => void;
9560
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
9561
9561
  }, import('vue').PublicProps, {
9562
9562
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
9563
9563
  isSelected: boolean;
@@ -9890,7 +9890,7 @@ declare const ConversationPreview: {
9890
9890
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
9891
9891
  };
9892
9892
  }>> & Readonly<{
9893
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
9893
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
9894
9894
  }>, {}, {}, {}, {}, {
9895
9895
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
9896
9896
  isSelected: boolean;
@@ -10220,9 +10220,9 @@ declare const ConversationPreview: {
10220
10220
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
10221
10221
  };
10222
10222
  }>> & Readonly<{
10223
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
10223
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
10224
10224
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10225
- select: (conversation: import('../..').ConversationModel) => void;
10225
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
10226
10226
  }, string, {
10227
10227
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
10228
10228
  isSelected: boolean;
@@ -10840,9 +10840,9 @@ declare const ConversationPreview: {
10840
10840
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
10841
10841
  };
10842
10842
  }>> & Readonly<{
10843
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
10843
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
10844
10844
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10845
- select: (conversation: import('../..').ConversationModel) => void;
10845
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
10846
10846
  }, import('vue').PublicProps, {
10847
10847
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
10848
10848
  isSelected: boolean;
@@ -11175,7 +11175,7 @@ declare const ConversationPreview: {
11175
11175
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
11176
11176
  };
11177
11177
  }>> & Readonly<{
11178
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
11178
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
11179
11179
  }>, {}, {}, {}, {}, {
11180
11180
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
11181
11181
  isSelected: boolean;
@@ -11505,9 +11505,9 @@ declare const ConversationPreview: {
11505
11505
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
11506
11506
  };
11507
11507
  }>> & Readonly<{
11508
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
11508
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
11509
11509
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11510
- select: (conversation: import('../..').ConversationModel) => void;
11510
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
11511
11511
  }, string, {
11512
11512
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
11513
11513
  isSelected: boolean;
@@ -12008,9 +12008,9 @@ declare const ConversationPreviewUI: {
12008
12008
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
12009
12009
  };
12010
12010
  }>> & Readonly<{
12011
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12011
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12012
12012
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12013
- select: (conversation: import('../..').ConversationModel) => void;
12013
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
12014
12014
  }, import('vue').PublicProps, {
12015
12015
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
12016
12016
  isSelected: boolean;
@@ -12343,7 +12343,7 @@ declare const ConversationPreviewUI: {
12343
12343
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
12344
12344
  };
12345
12345
  }>> & Readonly<{
12346
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12346
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12347
12347
  }>, {}, {}, {}, {}, {
12348
12348
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
12349
12349
  isSelected: boolean;
@@ -12673,9 +12673,9 @@ declare const ConversationPreviewUI: {
12673
12673
  type: import('vue').PropType<import('../..').ConversationActionsConfig>;
12674
12674
  };
12675
12675
  }>> & Readonly<{
12676
- onSelect?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12676
+ onSelectConversation?: ((conversation: import('../..').ConversationModel) => any) | undefined;
12677
12677
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12678
- select: (conversation: import('../..').ConversationModel) => void;
12678
+ selectConversation: (conversation: import('../..').ConversationModel) => void;
12679
12679
  }, string, {
12680
12680
  Avatar: import('vue').Component<import('../Avatar').AvatarProps>;
12681
12681
  isSelected: boolean;
@@ -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
  };