tuikit-atomicx-vue3 4.5.4 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/dist/components/ASRTools/RealtimeMessageList.js +70 -0
  2. package/dist/components/ASRTools/RealtimeMessageList.vue.d.ts +2 -0
  3. package/dist/components/ASRTools/Subtitle.js +51 -0
  4. package/dist/components/ASRTools/Subtitle.vue.d.ts +2 -0
  5. package/dist/components/ASRTools/index.d.ts +4 -0
  6. package/dist/components/ASRTools/index.js +6 -0
  7. package/dist/components/ASRTools/utils.d.ts +1 -0
  8. package/dist/components/ASRTools/utils.js +8 -0
  9. package/dist/components/AudioSettingPanel/index.d.ts +29 -0
  10. package/dist/components/Avatar/index.d.ts +44 -0
  11. package/dist/components/BarrageInput/BarrageInput.js +1 -1
  12. package/dist/components/BarrageInput/BarrageInputH5.js +4 -4
  13. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  14. package/dist/components/BarrageInput/TextEditor/EditorCore.js +4 -4
  15. package/dist/components/BarrageList/BarrageList.js +105 -72
  16. package/dist/components/BarrageList/BarrageListH5.js +67 -63
  17. package/dist/components/BarrageList/BarrageListState.d.ts +28 -3
  18. package/dist/components/BarrageList/BarrageListState.js +64 -54
  19. package/dist/components/BarrageList/ClickAction/UserActionMenu.js +39 -39
  20. package/dist/components/BarrageList/Message/GiftMessage/GiftMessage.js +44 -0
  21. package/dist/components/BarrageList/Message/GiftMessage/GiftMessage.vue.d.ts +16 -0
  22. package/dist/components/BarrageList/Message/GiftMessage/index.d.ts +1 -0
  23. package/dist/components/BarrageList/Message/GiftMessage/index.js +4 -0
  24. package/dist/components/BarrageList/Message/Message.vue.d.ts +1 -1
  25. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +6 -6
  26. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +6 -6
  27. package/dist/components/BarrageList/MessageTimeDivider/MessageTimeDivider.js +1 -1
  28. package/dist/components/BarrageList/MessageTimeDivider/MessageTimeDivider.vue.d.ts +1 -1
  29. package/dist/components/BarrageList/i18n/en-US/index.d.ts +12 -9
  30. package/dist/components/BarrageList/i18n/en-US/index.js +12 -9
  31. package/dist/components/BarrageList/i18n/zh-CN/index.d.ts +12 -11
  32. package/dist/components/BarrageList/i18n/zh-CN/index.js +12 -11
  33. package/dist/components/ChatSetting/ChatSetting.js +6 -6
  34. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +2 -2
  35. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +2 -2
  36. package/dist/components/ContactList/index.d.ts +16 -16
  37. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +1 -1
  38. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +2 -2
  39. package/dist/components/ConversationList/ConversationList.vue.d.ts +60 -60
  40. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +66 -66
  41. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +1 -1
  42. package/dist/components/ConversationList/ConversationPreview/utils.js +1 -1
  43. package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +28 -28
  44. package/dist/components/ConversationList/index.d.ts +127 -127
  45. package/dist/components/FreeBeautyPanel/index.d.ts +35 -0
  46. package/dist/components/LiveAudienceList/LiveAudienceList.js +3 -129
  47. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +3 -64
  48. package/dist/components/LiveAudienceList/index.d.ts +2 -1
  49. package/dist/components/LiveAudienceList/index.js +7 -10
  50. package/dist/components/LiveGift/GiftItem.js +56 -0
  51. package/dist/components/LiveGift/GiftItem.vue.d.ts +44 -0
  52. package/dist/components/LiveGift/LiveGiftH5/GiftCard.js +41 -0
  53. package/dist/components/LiveGift/LiveGiftH5/GiftCard.vue.d.ts +18 -0
  54. package/dist/components/LiveGift/LiveGiftH5/GiftCardPlayer.js +35 -0
  55. package/dist/components/LiveGift/LiveGiftH5/GiftCardPlayer.vue.d.ts +2 -0
  56. package/dist/components/LiveGift/LiveGiftH5/LiveGift.js +66 -0
  57. package/dist/components/LiveGift/LiveGiftH5/LiveGift.vue.d.ts +2 -0
  58. package/dist/components/LiveGift/LiveGiftH5/LiveGiftDrawer.js +77 -0
  59. package/dist/components/LiveGift/LiveGiftH5/LiveGiftDrawer.vue.d.ts +16 -0
  60. package/dist/components/LiveGift/LiveGiftH5/index.d.ts +3 -0
  61. package/dist/components/LiveGift/LiveGiftH5/index.js +4 -0
  62. package/dist/components/LiveGift/LiveGiftH5/useGiftCardPlayer.d.ts +93 -0
  63. package/dist/components/LiveGift/LiveGiftH5/useGiftCardPlayer.js +39 -0
  64. package/dist/components/LiveGift/LiveGiftPC/LiveGift.js +126 -0
  65. package/dist/components/LiveGift/LiveGiftPC/LiveGift.vue.d.ts +2 -0
  66. package/dist/components/LiveGift/LiveGiftPC/LiveGiftPopupList.js +46 -0
  67. package/dist/components/LiveGift/LiveGiftPC/LiveGiftPopupList.vue.d.ts +16 -0
  68. package/dist/components/LiveGift/LiveGiftPC/index.d.ts +3 -0
  69. package/dist/components/LiveGift/LiveGiftPC/index.js +4 -0
  70. package/dist/components/LiveGift/i18n/en-US/index.d.ts +7 -0
  71. package/dist/components/LiveGift/i18n/en-US/index.js +10 -0
  72. package/dist/components/LiveGift/i18n/index.d.ts +4 -0
  73. package/dist/components/LiveGift/i18n/index.js +6 -0
  74. package/dist/components/LiveGift/i18n/zh-CN/index.d.ts +7 -0
  75. package/dist/components/LiveGift/i18n/zh-CN/index.js +10 -0
  76. package/dist/components/LiveGift/index.d.ts +2 -0
  77. package/dist/components/LiveGift/index.js +12 -0
  78. package/dist/components/LiveList/LiveList.js +79 -72
  79. package/dist/components/LiveList/LiveListH5.js +75 -79
  80. package/dist/components/LiveList/i18n/en-US/index.d.ts +10 -11
  81. package/dist/components/LiveList/i18n/en-US/index.js +10 -11
  82. package/dist/components/LiveList/i18n/zh-CN/index.d.ts +10 -11
  83. package/dist/components/LiveList/i18n/zh-CN/index.js +10 -11
  84. package/dist/components/LiveList/pullToRefresh.js +44 -44
  85. package/dist/components/LiveScenePanel/CameraSettingDialog.js +43 -42
  86. package/dist/components/LiveScenePanel/index.js +10 -9
  87. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +2 -2
  88. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +8 -8
  89. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +19 -19
  90. package/dist/components/LiveView/DefaultStreamViewUI.js +26 -26
  91. package/dist/components/LiveView/PlayerControl/AudioControl.js +27 -27
  92. package/dist/components/LiveView/PlayerControl/PlayerControl.js +82 -82
  93. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +21 -21
  94. package/dist/components/LiveView/i18n/en-US/index.d.ts +22 -21
  95. package/dist/components/LiveView/i18n/en-US/index.js +22 -21
  96. package/dist/components/LiveView/i18n/zh-CN/index.d.ts +22 -21
  97. package/dist/components/LiveView/i18n/zh-CN/index.js +22 -21
  98. package/dist/components/LiveView/index.js +123 -119
  99. package/dist/components/MessageInput/TextEditor/EditorCore.js +1 -1
  100. package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +10 -10
  101. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
  102. package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +1 -1
  103. package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +1 -1
  104. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +2 -2
  105. package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +2 -2
  106. package/dist/components/MessageInput/TextEditor/index.js +1 -1
  107. package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +11 -11
  108. package/dist/components/MessageList/Message/AudioMessage/AudioMessage.vue.d.ts +1 -1
  109. package/dist/components/MessageList/Message/FileMessage/FileMessage.js +5 -5
  110. package/dist/components/MessageList/Message/FileMessage/FileMessage.vue.d.ts +1 -1
  111. package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +1 -1
  112. package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +1 -1
  113. package/dist/components/MessageList/Message/ImageMessage/ImageMessage.vue.d.ts +1 -1
  114. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +2 -2
  115. package/dist/components/MessageList/Message/TextMessage/TextMessage.js +8 -8
  116. package/dist/components/MessageList/Message/TextMessage/TextMessage.vue.d.ts +1 -1
  117. package/dist/components/MessageList/MessageForward/MessageForward.js +2 -2
  118. package/dist/components/MessageList/MessageList.js +92 -87
  119. package/dist/components/MessageList/MessageList.vue.d.ts +5 -0
  120. package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +2 -2
  121. package/dist/components/MessageList/index.d.ts +9 -0
  122. package/dist/components/RoomParticipantList/ParticipantActionH5.js +58 -0
  123. package/dist/components/RoomParticipantList/ParticipantActionH5.vue.d.ts +21 -0
  124. package/dist/components/RoomParticipantList/ParticipantItemH5.js +75 -0
  125. package/dist/components/RoomParticipantList/ParticipantItemH5.vue.d.ts +17 -0
  126. package/dist/components/RoomParticipantList/PendingParticipantItemH5.js +77 -0
  127. package/dist/components/RoomParticipantList/PendingParticipantItemH5.vue.d.ts +16 -0
  128. package/dist/components/RoomParticipantList/Popup.js +95 -0
  129. package/dist/components/RoomParticipantList/Popup.vue.d.ts +84 -0
  130. package/dist/components/RoomParticipantList/RoomActionH5.js +82 -0
  131. package/dist/components/RoomParticipantList/RoomActionH5.vue.d.ts +2 -0
  132. package/dist/components/RoomParticipantList/RoomParticipantListH5.js +156 -0
  133. package/dist/components/RoomParticipantList/RoomParticipantListH5.vue.d.ts +2 -0
  134. package/dist/components/RoomParticipantList/index.d.ts +55 -1
  135. package/dist/components/RoomParticipantList/index.js +59 -57
  136. package/dist/components/RoomParticipantView/index.d.ts +41 -0
  137. package/dist/components/RoomView/index.d.ts +35 -0
  138. package/dist/components/ScheduleRoomPanel/index.d.ts +74 -0
  139. package/dist/components/Search/Search.vue.d.ts +8 -8
  140. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +1 -1
  141. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +1 -1
  142. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +1 -1
  143. package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +1 -1
  144. package/dist/components/Search/index.d.ts +20 -20
  145. package/dist/components/VideoSettingPanel/index.d.ts +28 -0
  146. package/dist/components/VirtualBackgroundPanel/index.d.ts +35 -0
  147. package/dist/handler/translator.js +1 -1
  148. package/dist/handler/voiceConverter.js +1 -1
  149. package/dist/hooks/useReadReceipt/useReadReceipt.d.ts +1 -1
  150. package/dist/hooks/useReadReceipt/useReadReceipt.js +1 -1
  151. package/dist/index-0OOSUihx.js +197 -0
  152. package/dist/{index-CTthrJb2.js → index-BEX5WhEf.js} +1 -1
  153. package/dist/{index-hHVD-MG2.js → index-CuUwOoxX.js} +1 -1
  154. package/dist/{index-DXC5bPY4.js → index-D5A7Nao-.js} +1 -1
  155. package/dist/{index-DuAffztD.js → index-HtVpxdZh.js} +1048 -1023
  156. package/dist/index.js +215 -202
  157. package/dist/states/AITranscriberState/AITranscriberState.d.ts +112 -0
  158. package/dist/states/AITranscriberState/AITranscriberState.js +170 -0
  159. package/dist/states/AITranscriberState/index.d.ts +1 -0
  160. package/dist/states/AITranscriberState/index.js +4 -0
  161. package/dist/states/BarrageState/BarrageState.d.ts +26 -3
  162. package/dist/states/C2CSettingState/C2CSettingState.js +1 -1
  163. package/dist/states/ContactListState/ContactListState.js +1 -1
  164. package/dist/states/ConversationListState/ConversationListState.d.ts +1 -1
  165. package/dist/states/ConversationListState/ConversationListState.js +1 -1
  166. package/dist/states/FreeBeautyState/FreeBeautyState.d.ts +25 -0
  167. package/dist/states/FreeBeautyState/FreeBeautyState.js +25 -0
  168. package/dist/states/GroupSettingState/GroupSettingState.js +1 -1
  169. package/dist/states/LiveAudienceState.js +26 -26
  170. package/dist/states/LiveGiftState/AnimationPlayerManager.d.ts +73 -0
  171. package/dist/states/LiveGiftState/AnimationPlayerManager.js +118 -0
  172. package/dist/states/LiveGiftState/LiveGiftState.d.ts +61 -0
  173. package/dist/states/LiveGiftState/LiveGiftState.js +102 -0
  174. package/dist/states/LiveGiftState/index.d.ts +3 -0
  175. package/dist/states/LiveGiftState/index.js +12 -0
  176. package/dist/states/LiveGiftState/players/AnimationPlayerFactory.d.ts +18 -0
  177. package/dist/states/LiveGiftState/players/AnimationPlayerFactory.js +30 -0
  178. package/dist/states/LiveGiftState/players/IAnimationPlayer.d.ts +34 -0
  179. package/dist/states/LiveGiftState/players/IAnimationPlayer.js +1 -0
  180. package/dist/states/LiveGiftState/players/SVGAPlayer.d.ts +66 -0
  181. package/dist/states/LiveGiftState/players/SVGAPlayer.js +3163 -0
  182. package/dist/states/LiveGiftState/players/index.d.ts +7 -0
  183. package/dist/states/LiveGiftState/players/index.js +7 -0
  184. package/dist/states/LiveListState/LiveListState.js +92 -76
  185. package/dist/states/LiveMonitorState/index.d.ts +1 -1
  186. package/dist/states/LiveMonitorState/index.js +110 -92
  187. package/dist/states/LiveMonitorState/player/adapters/trtc.d.ts +2 -2
  188. package/dist/states/LiveMonitorState/player/adapters/trtc.js +47 -44
  189. package/dist/states/LiveMonitorState/player/types/player.d.ts +20 -10
  190. package/dist/states/LiveMonitorState/player/types/trtc.d.ts +7 -5
  191. package/dist/states/LiveMonitorState/types/index.d.ts +5 -4
  192. package/dist/states/LiveMonitorState/utils/index.d.ts +20 -1
  193. package/dist/states/LiveMonitorState/utils/index.js +10 -3
  194. package/dist/states/LoginState.d.ts +5 -5
  195. package/dist/states/LoginState.js +1 -1
  196. package/dist/states/MessageActionState/MessageActionState.js +1 -1
  197. package/dist/states/MessageInputState/MessageInputState.js +1 -1
  198. package/dist/states/MessageListState/MessageListState.js +1 -1
  199. package/dist/states/RoomParticipantState/index.d.ts +5 -0
  200. package/dist/states/RoomParticipantState/index.js +285 -0
  201. package/dist/states/RoomParticipantState/participantEventManager.js +168 -168
  202. package/dist/states/RoomParticipantState/participantManager.d.ts +0 -148
  203. package/dist/states/RoomParticipantState/participantManager.js +120 -327
  204. package/dist/states/RoomParticipantState/store.d.ts +2 -2
  205. package/dist/states/RoomParticipantState/store.js +94 -70
  206. package/dist/states/RoomState/index.d.ts +0 -5
  207. package/dist/states/RoomState/index.js +409 -6
  208. package/dist/states/SearchState.d.ts +314 -0
  209. package/dist/states/SearchState.js +1 -1
  210. package/dist/states/SeatStore.d.ts +8 -0
  211. package/dist/states/UIKitModalState/UIKitModalState.js +54 -37
  212. package/dist/states/VirtualBackgroundState/VirtualBackgroundState.d.ts +103 -39
  213. package/dist/states/VirtualBackgroundState/VirtualBackgroundState.js +104 -1
  214. package/dist/styles/index.css +1 -1
  215. package/dist/subEntry/chat/chat.d.ts +170 -161
  216. package/dist/subEntry/chat/server.js +2 -2
  217. package/dist/subEntry/live/index.js +181 -173
  218. package/dist/subEntry/live/live.d.ts +2 -0
  219. package/dist/subEntry/live/live.js +38 -34
  220. package/dist/subEntry/live/server.js +2 -2
  221. package/dist/subEntry/room/index.js +157 -148
  222. package/dist/subEntry/room/room.d.ts +3 -2
  223. package/dist/subEntry/room/room.js +20 -15
  224. package/dist/subEntry/room/server.js +2 -2
  225. package/dist/types/asr.d.ts +122 -27
  226. package/dist/types/asr.js +2 -2
  227. package/dist/types/barrage.d.ts +2 -0
  228. package/dist/types/contact.d.ts +1 -1
  229. package/dist/types/conversation.d.ts +1 -1
  230. package/dist/types/engine.d.ts +2 -2
  231. package/dist/types/engine.js +1 -1
  232. package/dist/types/gift.d.ts +25 -0
  233. package/dist/types/gift.js +4 -0
  234. package/dist/types/index.d.ts +2 -0
  235. package/dist/types/index.js +68 -64
  236. package/dist/types/message.d.ts +1 -1
  237. package/dist/types/monitor.d.ts +1 -1
  238. package/dist/types/participant.d.ts +483 -3
  239. package/dist/types/room.d.ts +542 -0
  240. package/dist/types/virtualBackground.d.ts +75 -0
  241. package/dist/utils/call.js +2 -2
  242. package/dist/utils/enableSampleTaskStatus.js +1 -1
  243. package/package.json +9 -7
  244. package/src/components/ASRTools/RealtimeMessageList.vue +180 -0
  245. package/src/components/ASRTools/Subtitle.vue +134 -0
  246. package/src/components/ASRTools/index.ts +56 -0
  247. package/src/components/ASRTools/utils.ts +8 -0
  248. package/src/components/AudioSettingPanel/index.ts +29 -0
  249. package/src/components/Avatar/index.ts +52 -0
  250. package/src/components/BarrageInput/BarrageInput.vue +1 -1
  251. package/src/components/BarrageInput/BarrageInputH5.vue +6 -2
  252. package/src/components/BarrageInput/TextEditor/Editor.scss +6 -0
  253. package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
  254. package/src/components/BarrageList/BarrageList.vue +59 -5
  255. package/src/components/BarrageList/BarrageListH5.vue +27 -9
  256. package/src/components/BarrageList/BarrageListState.ts +14 -1
  257. package/src/components/BarrageList/ClickAction/UserActionMenu.vue +5 -5
  258. package/src/components/BarrageList/Message/GiftMessage/GiftMessage.vue +90 -0
  259. package/src/components/BarrageList/Message/GiftMessage/index.ts +1 -0
  260. package/src/components/BarrageList/Message/Message.vue +1 -1
  261. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +1 -1
  262. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +2 -2
  263. package/src/components/BarrageList/MessageTimeDivider/MessageTimeDivider.vue +1 -1
  264. package/src/components/BarrageList/i18n/en-US/index.ts +12 -9
  265. package/src/components/BarrageList/i18n/zh-CN/index.ts +12 -11
  266. package/src/components/ChatSetting/ChatSetting.vue +1 -1
  267. package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +1 -1
  268. package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +2 -2
  269. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +1 -1
  270. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -1
  271. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +2 -3
  272. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +1 -1
  273. package/src/components/ConversationList/ConversationPreview/utils.ts +1 -1
  274. package/src/components/FreeBeautyPanel/index.ts +36 -0
  275. package/src/components/LiveAudienceList/LiveAudienceList.vue +9 -3
  276. package/src/components/LiveAudienceList/LiveAudienceListH5.vue +4 -2
  277. package/src/components/LiveAudienceList/index.ts +3 -1
  278. package/src/components/LiveGift/GiftItem.vue +156 -0
  279. package/src/components/LiveGift/LiveGiftH5/GiftCard.vue +139 -0
  280. package/src/components/LiveGift/LiveGiftH5/GiftCardPlayer.vue +75 -0
  281. package/src/components/LiveGift/LiveGiftH5/LiveGift.vue +180 -0
  282. package/src/components/LiveGift/LiveGiftH5/LiveGiftDrawer.vue +176 -0
  283. package/src/components/LiveGift/LiveGiftH5/index.ts +3 -0
  284. package/src/components/LiveGift/LiveGiftH5/useGiftCardPlayer.ts +98 -0
  285. package/src/components/LiveGift/LiveGiftPC/LiveGift.vue +292 -0
  286. package/src/components/LiveGift/LiveGiftPC/LiveGiftPopupList.vue +98 -0
  287. package/src/components/LiveGift/LiveGiftPC/index.ts +3 -0
  288. package/src/components/LiveGift/i18n/en-US/index.ts +7 -0
  289. package/src/components/LiveGift/i18n/index.ts +4 -0
  290. package/src/components/LiveGift/i18n/zh-CN/index.ts +7 -0
  291. package/src/components/LiveGift/index.ts +12 -0
  292. package/src/components/LiveList/LiveList.vue +79 -36
  293. package/src/components/LiveList/LiveListH5.vue +15 -24
  294. package/src/components/LiveList/i18n/en-US/index.ts +10 -11
  295. package/src/components/LiveList/i18n/zh-CN/index.ts +10 -11
  296. package/src/components/LiveList/pullToRefresh.vue +5 -5
  297. package/src/components/LiveScenePanel/CameraSettingDialog.vue +3 -1
  298. package/src/components/LiveScenePanel/index.vue +1 -0
  299. package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +1 -1
  300. package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +1 -1
  301. package/src/components/LiveView/CoreViewDecorate/CoHostDecorate.vue +1 -1
  302. package/src/components/LiveView/DefaultStreamViewUI.vue +2 -2
  303. package/src/components/LiveView/PlayerControl/AudioControl.vue +5 -7
  304. package/src/components/LiveView/PlayerControl/PlayerControl.vue +13 -7
  305. package/src/components/LiveView/PlayerControl/PlayerControlState.ts +2 -2
  306. package/src/components/LiveView/i18n/en-US/index.ts +22 -21
  307. package/src/components/LiveView/i18n/zh-CN/index.ts +22 -21
  308. package/src/components/LiveView/index.vue +50 -25
  309. package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +1 -1
  310. package/src/components/MessageList/Message/AudioMessage/AudioMessage.vue +1 -1
  311. package/src/components/MessageList/Message/FileMessage/FileMessage.vue +1 -1
  312. package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +1 -1
  313. package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +1 -1
  314. package/src/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
  315. package/src/components/MessageList/Message/TextMessage/TextMessage.vue +2 -2
  316. package/src/components/MessageList/MessageForward/MessageForward.vue +2 -2
  317. package/src/components/MessageList/MessageList.vue +12 -1
  318. package/src/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.vue +1 -1
  319. package/src/components/RoomParticipantList/ParticipantActionH5.vue +115 -0
  320. package/src/components/RoomParticipantList/ParticipantItemH5.vue +208 -0
  321. package/src/components/RoomParticipantList/PendingParticipantItemH5.vue +163 -0
  322. package/src/components/RoomParticipantList/Popup.vue +297 -0
  323. package/src/components/RoomParticipantList/RoomActionH5.vue +139 -0
  324. package/src/components/RoomParticipantList/RoomParticipantListH5.vue +288 -0
  325. package/src/components/RoomParticipantList/index.ts +59 -1
  326. package/src/components/RoomParticipantView/index.ts +41 -0
  327. package/src/components/RoomView/index.ts +35 -0
  328. package/src/components/ScheduleRoomPanel/index.ts +75 -0
  329. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +1 -1
  330. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +1 -1
  331. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +1 -1
  332. package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +1 -1
  333. package/src/components/VideoSettingPanel/index.ts +29 -0
  334. package/src/components/VirtualBackgroundPanel/index.ts +36 -0
  335. package/src/handler/translator.ts +2 -2
  336. package/src/handler/voiceConverter.ts +2 -2
  337. package/src/hooks/useReadReceipt/useReadReceipt.ts +2 -2
  338. package/src/subEntry/chat/server.ts +2 -2
  339. package/src/subEntry/live/live.ts +2 -0
  340. package/src/subEntry/live/server.ts +2 -2
  341. package/src/subEntry/room/room.ts +3 -2
  342. package/src/subEntry/room/server.ts +2 -2
  343. package/src/types/asr.ts +124 -27
  344. package/src/types/barrage.ts +2 -0
  345. package/src/types/contact.ts +1 -1
  346. package/src/types/conversation.ts +1 -1
  347. package/src/types/engine.ts +3 -3
  348. package/src/types/gift.ts +46 -0
  349. package/src/types/index.ts +2 -0
  350. package/src/types/message.ts +1 -1
  351. package/src/types/monitor.ts +5 -5
  352. package/src/types/participant.ts +486 -5
  353. package/src/types/room.ts +576 -0
  354. package/src/types/virtualBackground.ts +77 -1
  355. package/src/utils/call.ts +2 -2
  356. package/src/utils/enableSampleTaskStatus.ts +4 -3
  357. package/dist/states/ASRState/ASRState.d.ts +0 -61
  358. package/dist/states/ASRState/ASRState.js +0 -79
  359. package/dist/states/ASRState/index.d.ts +0 -1
  360. package/dist/states/ASRState/index.js +0 -4
@@ -0,0 +1,70 @@
1
+ import { defineComponent as M, ref as d, onMounted as k, computed as x, watch as I, nextTick as L, createElementBlock as a, openBlock as l, Fragment as f, renderList as v, createElementVNode as c, toDisplayString as m, unref as _ } from "vue";
2
+ import { formatTimestampToTime as y } from "../../utils/utils.js";
3
+ import { getDisplayName as S } from "./utils.js";
4
+ import { useAITranscriberState as B } from "../../states/AITranscriberState/AITranscriberState.js";
5
+ import { _ as R } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const A = { class: "title" }, C = { class: "speaker" }, E = { class: "timestamp" }, H = 60 * 1e3, b = /* @__PURE__ */ M({
7
+ __name: "RealtimeMessageList",
8
+ setup(w) {
9
+ const r = d(), i = d(!1), { realtimeMessageList: u } = B(), h = () => {
10
+ if (!r.value)
11
+ return !1;
12
+ const { scrollTop: n, scrollHeight: o, clientHeight: e } = r.value;
13
+ return Math.ceil(n + e) >= o - 50;
14
+ }, p = () => {
15
+ !r.value || i.value || requestAnimationFrame(() => {
16
+ r.value && (r.value.scrollTop = r.value.scrollHeight);
17
+ });
18
+ };
19
+ k(() => {
20
+ p();
21
+ });
22
+ const g = () => {
23
+ r.value && (i.value = !h());
24
+ }, T = x(() => {
25
+ const n = u.value.filter((t) => {
26
+ var s;
27
+ return (s = t.sourceText) == null ? void 0 : s.trim();
28
+ }).sort((t, s) => t.timestamp - s.timestamp);
29
+ if (n.length === 0)
30
+ return [];
31
+ const o = [];
32
+ let e = null;
33
+ return n.forEach((t) => {
34
+ const s = t.speakerUserId || "unknown";
35
+ !e || s !== e.sender || t.timestamp - e.startMsTs > H ? (e = {
36
+ sender: s,
37
+ startMsTs: t.timestamp,
38
+ messages: [t]
39
+ }, o.push(e)) : e.messages.push(t);
40
+ }), o;
41
+ });
42
+ return I(() => u.value.length, () => {
43
+ L(() => {
44
+ i.value || p();
45
+ });
46
+ }), (n, o) => (l(), a("div", {
47
+ ref_key: "conversationContainerRef",
48
+ ref: r,
49
+ class: "conversation",
50
+ onScroll: g
51
+ }, [
52
+ (l(!0), a(f, null, v(T.value, (e) => (l(), a("div", {
53
+ key: `${e.sender}-${e.startMsTs}`,
54
+ class: "conversation-group"
55
+ }, [
56
+ c("div", A, [
57
+ c("span", C, m(_(S)(e.sender)), 1),
58
+ c("span", E, m(_(y)(e.startMsTs)), 1)
59
+ ]),
60
+ (l(!0), a(f, null, v(e.messages, (t, s) => (l(), a("div", {
61
+ key: t.segmentId || s,
62
+ class: "content"
63
+ }, m(t.sourceText), 1))), 128))
64
+ ]))), 128))
65
+ ], 544));
66
+ }
67
+ }), q = /* @__PURE__ */ R(b, [["__scopeId", "data-v-569c9de5"]]);
68
+ export {
69
+ q as default
70
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import { defineComponent as M, ref as h, onMounted as C, computed as S, onUnmounted as k, createElementBlock as i, createCommentVNode as x, openBlock as a, Fragment as E, renderList as y, createElementVNode as m, toDisplayString as p, unref as N } from "vue";
2
+ import { getDisplayName as R } from "./utils.js";
3
+ import { useAITranscriberState as D } from "../../states/AITranscriberState/AITranscriberState.js";
4
+ import { RealtimeTranscriberEvent as b } from "../../types/asr.js";
5
+ import { _ as j } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const B = {
7
+ key: 0,
8
+ class: "asr-subtitle"
9
+ }, O = { class: "subtitle-speaker" }, U = { class: "subtitle-text" }, V = /* @__PURE__ */ M({
10
+ __name: "Subtitle",
11
+ setup(w) {
12
+ const { subscribeEvent: v, unsubscribeEvent: _ } = D(), n = h({}), s = {}, r = {}, f = (e, t) => {
13
+ s[e] && clearTimeout(s[e]), s[e] = setTimeout(t, 3e3);
14
+ }, g = (e) => {
15
+ const { speakerUserId: t } = e, o = n.value[t], T = r[t];
16
+ if (e.isCompleted && T === e.segmentId)
17
+ return;
18
+ if (!e.isCompleted) {
19
+ s[t] && (clearTimeout(s[t]), delete s[t]), delete r[t], n.value[t] = e;
20
+ return;
21
+ }
22
+ const I = !o || o.segmentId !== e.segmentId || !o.isCompleted;
23
+ n.value[t] = e, I && (r[t] = e.segmentId, f(t, () => {
24
+ var u, d;
25
+ (u = n.value[t]) != null && u.isCompleted && ((d = n.value[t]) == null ? void 0 : d.segmentId) === e.segmentId && delete n.value[t], delete s[t], delete r[t];
26
+ }));
27
+ }, c = (e) => {
28
+ g(e.message);
29
+ };
30
+ C(() => {
31
+ v(b.onReceiveTranscriberMessage, c);
32
+ });
33
+ const l = S(() => Object.values(n.value));
34
+ return k(() => {
35
+ _(b.onReceiveTranscriberMessage, c), Object.values(s).forEach((e) => {
36
+ clearTimeout(e);
37
+ });
38
+ }), (e, t) => l.value.length ? (a(), i("div", B, [
39
+ (a(!0), i(E, null, y(l.value, (o) => (a(), i("div", {
40
+ key: o.speakerUserId,
41
+ class: "subtitle-item"
42
+ }, [
43
+ m("span", O, p(N(R)(o.speakerUserId)) + ":", 1),
44
+ m("span", U, p(o.sourceText), 1)
45
+ ]))), 128))
46
+ ])) : x("", !0);
47
+ }
48
+ }), z = /* @__PURE__ */ j(V, [["__scopeId", "data-v-0c248ab0"]]);
49
+ export {
50
+ z as default
51
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as RealtimeMessageList } from './RealtimeMessageList.vue';
2
+ import { default as Subtitle } from './Subtitle.vue';
3
+
4
+ export { Subtitle, RealtimeMessageList };
@@ -0,0 +1,6 @@
1
+ import { default as a } from "./RealtimeMessageList.js";
2
+ import { default as f } from "./Subtitle.js";
3
+ export {
4
+ a as RealtimeMessageList,
5
+ f as Subtitle
6
+ };
@@ -0,0 +1 @@
1
+ export declare const getDisplayName: (userId: string) => string;
@@ -0,0 +1,8 @@
1
+ import { useRoomParticipantState as m } from "../../states/RoomParticipantState/index.js";
2
+ const { participantList: r } = m(), t = (o) => {
3
+ const e = r.value.find((s) => s.userId === o);
4
+ return (e == null ? void 0 : e.nameCard) || (e == null ? void 0 : e.userName) || (e == null ? void 0 : e.userId) || o;
5
+ };
6
+ export {
7
+ t as getDisplayName
8
+ };
@@ -1,3 +1,32 @@
1
+ /**
2
+ * @module AudioSettingPanelComponent
3
+ * @description 音频设置面板组件
4
+ *
5
+ * 用于展示音频设置面板,支持自定义视图展示。
6
+ *
7
+ * @props
8
+ * @prop {boolean} micTestVisible - 是否显示麦克风测试按钮,默认 true
9
+ * @prop {boolean} inputVolumeLevelVisible - 是否显示输入音量等级,默认 true
10
+ * @prop {boolean} inputVolumeVisible - 是否支持输入音量设置,默认 true
11
+ * @prop {boolean} speakerTestVisible - 是否支持扬声器测试,默认 true
12
+ * @prop {boolean} outputVolumeVisible - 是否支持输出音量设置,默认 true
13
+ *
14
+ * @example
15
+ * <template>
16
+ * <AudioSettingPanel />
17
+ * </template>
18
+ *
19
+ * <script setup>
20
+ * import { AudioSettingPanel } from '@tuikit-atomicx-vue3/room';
21
+ * </script>
22
+ *
23
+ * <style scoped>
24
+ * .audio-setting-panel-container {
25
+ * width: 400px;
26
+ * height: 300px;
27
+ * }
28
+ * </style>
29
+ */
1
30
  declare const AudioSettingPanel: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
31
  micTestVisible: {
3
32
  type: BooleanConstructor;
@@ -1,5 +1,49 @@
1
1
  import { default as Avatar } from './Avatar.vue';
2
2
  import { DEFAULT_USER_AVATAR, DEFAULT_GROUP_AVATAR_WORK, DEFAULT_GROUP_AVATAR_PUBLIC, DEFAULT_GROUP_AVATAR_MEETING, DEFAULT_GROUP_AVATAR_AVCHATROOM, DEFAULT_GROUP_AVATAR_COMMON } from './constants/avatar';
3
3
 
4
+ /**
5
+ * 头像组件
6
+ * @component Avatar
7
+ * @description 头像组件,用于展示用户或群组头像,支持图片、文字、在线状态和未读消息徽章等功能。
8
+ *
9
+ * @props
10
+ * @prop {string} src - 头像图片 URL
11
+ * @prop {'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs' | number} size - 头像尺寸,支持预设尺寸或自定义数值,默认 'md'
12
+ * @prop {'circular' | 'square' | 'rounded'} shape - 头像形状,圆形/方形/圆角,默认 'circular'
13
+ * @prop {string} alt - 图片替代文本,也用于生成文字头像
14
+ * @prop {string} className - 自定义类名
15
+ * @prop {CSSProperties} style - 自定义样式
16
+ * @prop {boolean} isShowOnlineStatus - 是否显示在线状态指示器,默认 false
17
+ * @prop {boolean} isOnline - 用户是否在线
18
+ * @prop {number} unreadCount - 未读消息数量,为 true 时显示小红点,为数字时显示具体数量
19
+ * @prop {number} maxUnreadCount - 最大未读消息数量,超过时显示 max+,默认 99
20
+ * @prop {boolean} isDotUnreadCount - 是否以小红点形式显示未读消息,默认 false
21
+ *
22
+ * @emits
23
+ * @emit {void} click - 点击头像时触发(通过 onClick prop 传入)
24
+ *
25
+ * @example
26
+ * <template>
27
+ * <Avatar
28
+ * :src="userAvatar"
29
+ * size="lg"
30
+ * shape="circular"
31
+ * :is-show-online-status="true"
32
+ * :is-online="true"
33
+ * :unread-count="5"
34
+ * @click="handleClick"
35
+ * />
36
+ * </template>
37
+ *
38
+ * <script setup>
39
+ * import { Avatar } from 'tuikit-atomicx-vue3';
40
+ *
41
+ * const userAvatar = 'https://example.com/avatar.png';
42
+ *
43
+ * function handleClick() {
44
+ * console.log('Avatar clicked');
45
+ * }
46
+ * </script>
47
+ */
4
48
  export { Avatar, DEFAULT_USER_AVATAR, DEFAULT_GROUP_AVATAR_WORK, DEFAULT_GROUP_AVATAR_PUBLIC, DEFAULT_GROUP_AVATAR_MEETING, DEFAULT_GROUP_AVATAR_AVCHATROOM, DEFAULT_GROUP_AVATAR_COMMON, };
5
49
  export type { AvatarSize, AvatarShape, AvatarProps } from './Avatar.vue';
@@ -64,7 +64,7 @@ const H = { class: "live-message-input" }, F = { class: "input-actions" }, E = /
64
64
  ], 6)
65
65
  ]));
66
66
  }
67
- }), N = /* @__PURE__ */ C(E, [["__scopeId", "data-v-634306b9"]]);
67
+ }), N = /* @__PURE__ */ C(E, [["__scopeId", "data-v-5f074ba6"]]);
68
68
  export {
69
69
  N as default
70
70
  };
@@ -22,11 +22,11 @@ const Z = { class: "live-message-input-h5" }, $ = { class: "input-actions" }, ee
22
22
  maxLength: { default: 80 }
23
23
  },
24
24
  emits: ["focus", "blur"],
25
- setup(x, { emit: w }) {
26
- const c = w, { t: o } = z(), e = x, d = i(() => e.placeholder || o("Say something")), { loginUserInfo: b } = q(), { audienceList: B } = O(), C = i(() => ["message-input-container-h5", e.containerClass].join(" ")), h = i(() => {
25
+ setup(x, { emit: b }) {
26
+ const c = b, { t: o } = z(), e = x, d = i(() => e.placeholder || o("Say something")), { loginUserInfo: w } = q(), { audienceList: B } = O(), C = i(() => ["message-input-container-h5", e.containerClass].join(" ")), h = i(() => {
27
27
  const t = B.value.find((p) => {
28
28
  var f;
29
- return p.userId === ((f = b.value) == null ? void 0 : f.userId);
29
+ return p.userId === ((f = w.value) == null ? void 0 : f.userId);
30
30
  });
31
31
  return e.disabled || (t == null ? void 0 : t.isMessageDisabled);
32
32
  }), { inputRawValue: m, setContent: I, sendMessage: T, blurEditor: E, focusEditor: H } = J(), n = r(!1), s = r(!1), l = r(!1), k = () => {
@@ -95,7 +95,7 @@ const Z = { class: "live-message-input-h5" }, $ = { class: "input-actions" }, ee
95
95
  })) : u("", !0)
96
96
  ]));
97
97
  }
98
- }), ce = /* @__PURE__ */ Y(ee, [["__scopeId", "data-v-fcdaa865"]]);
98
+ }), ce = /* @__PURE__ */ Y(ee, [["__scopeId", "data-v-b8b202e0"]]);
99
99
  export {
100
100
  ce as default
101
101
  };
@@ -1,4 +1,4 @@
1
- import { E as l, P as h, a as f } from "../../../index-DuAffztD.js";
1
+ import { E as l, P as h, a as f } from "../../../index-HtVpxdZh.js";
2
2
  const m = l.create({
3
3
  name: "characterCount",
4
4
  addOptions() {
@@ -1,9 +1,9 @@
1
- import { I as u } from "../../../index-hHVD-MG2.js";
2
- import { S as g, P as x } from "../../../index-CTthrJb2.js";
3
- import { E as p } from "../../../index-DXC5bPY4.js";
1
+ import { I as u } from "../../../index-CuUwOoxX.js";
2
+ import { S as g, P as x } from "../../../index-BEX5WhEf.js";
3
+ import { E as p } from "../../../index-D5A7Nao-.js";
4
4
  import { isMobile as y } from "../../../utils/environment.js";
5
5
  import { CharacterCount as M } from "./CharacterCountExtension.js";
6
- import { E as T } from "../../../index-DuAffztD.js";
6
+ import { E as T } from "../../../index-HtVpxdZh.js";
7
7
  import { MessageContentType as a } from "../../../states/MessageInputState/type.js";
8
8
  function b() {
9
9
  return u.extend({
@@ -1,21 +1,26 @@
1
- import { defineComponent as K, ref as i, useSlots as j, provide as J, watch as F, nextTick as Q, onMounted as R, onUnmounted as W, createElementBlock as k, openBlock as c, Fragment as H, createElementVNode as h, createBlock as O, createCommentVNode as M, normalizeStyle as C, renderList as X, unref as l, resolveDynamicComponent as Y, toDisplayString as T } from "vue";
2
- import { useUIKit as Z } from "@tencentcloud/uikit-base-component-vue3";
3
- import { useScroll as ee } from "../../hooks/useScroll.js";
4
- import { useLoginState as te } from "../../states/LoginState.js";
5
- import { throttle as se } from "../../utils/lodash.js";
6
- import { useBarrageListState as oe } from "./BarrageListState.js";
7
- import ne from "./ClickAction/UserActionMenu.js";
8
- import { Message as le } from "./Message/index.js";
9
- import { MessageListContextSymbol as re } from "./MessageListContext.js";
10
- import { useLiveListState as ae } from "../../states/LiveListState/LiveListState.js";
11
- import { _ as ie } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
12
- const ue = { class: "message-chunk" }, ce = {
1
+ import { defineComponent as Q, ref as i, useSlots as W, provide as X, watch as V, nextTick as Z, onMounted as ee, onUnmounted as te, createElementBlock as S, openBlock as u, Fragment as M, createElementVNode as h, createBlock as x, createCommentVNode as T, normalizeStyle as I, renderList as se, unref as n, resolveDynamicComponent as oe, toDisplayString as b } from "vue";
2
+ import { useUIKit as ne } from "@tencentcloud/uikit-base-component-vue3";
3
+ import { useScroll as re } from "../../hooks/useScroll.js";
4
+ import { useLoginState as ae } from "../../states/LoginState.js";
5
+ import { throttle as le } from "../../utils/lodash.js";
6
+ import { useBarrageListState as ie, isGiftMessage as ue } from "./BarrageListState.js";
7
+ import ce from "./ClickAction/UserActionMenu.js";
8
+ import { Message as me } from "./Message/index.js";
9
+ import { MessageListContextSymbol as ve } from "./MessageListContext.js";
10
+ import { LiveGiftEvents as H } from "../../types/gift.js";
11
+ import { BarrageType as de } from "../../types/barrage.js";
12
+ import { useLiveListState as fe } from "../../states/LiveListState/LiveListState.js";
13
+ import { useLiveGiftState as pe } from "../../states/LiveGiftState/LiveGiftState.js";
14
+ import ge from "./Message/GiftMessage/GiftMessage.js";
15
+ import { useBarrageState as ye } from "../../states/BarrageState/BarrageState.js";
16
+ import { _ as Se } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const he = { class: "message-chunk" }, Ie = {
13
18
  key: 0,
14
19
  class: "empty-message"
15
- }, ve = {
20
+ }, _e = {
16
21
  key: 0,
17
22
  class: "message-group-tip"
18
- }, me = { class: "message-group-tip-name" }, de = { class: "message-group-tip-action" }, b = 150, pe = /* @__PURE__ */ K({
23
+ }, Le = { class: "message-group-tip-name" }, Ce = { class: "message-group-tip-action" }, G = 150, ke = /* @__PURE__ */ Q({
19
24
  __name: "BarrageList",
20
25
  props: {
21
26
  Message: { default: void 0 },
@@ -25,100 +30,128 @@ const ue = { class: "message-chunk" }, ce = {
25
30
  style: {}
26
31
  },
27
32
  setup(P) {
28
- const { t: I } = Z(), v = P, o = i(null), V = j(), { loginUserInfo: L } = te(), { currentLive: A } = ae(), u = i(), x = i(!1), $ = i({}), N = i(null), B = i(!1), y = i(!1), _ = i(0), { messageList: m, messageGroupTip: d } = oe(), { scrollToBottom: U } = ee(), G = (e) => {
29
- if (!o.value)
33
+ const { t: C } = ne(), m = P, r = i(null), R = W(), { loginUserInfo: k } = ae(), { currentLive: A } = fe(), c = i(), E = i(!1), N = i({}), $ = i(null), B = i(!1), _ = i(!1), L = i(0), { messageList: v, messageGroupTip: f } = ie(), { appendLocalTip: J } = ye(), { subscribeEvent: K, unsubscribeEvent: Y } = pe(), { scrollToBottom: q } = re(), F = (e) => {
34
+ const t = v.value.at(-1);
35
+ let s = 0;
36
+ t && (s = t.sequence + 1);
37
+ const o = {
38
+ liveId: e.liveId,
39
+ sender: e.sender,
40
+ sequence: s,
41
+ timestampInSecond: Date.now() / 1e3,
42
+ messageType: de.custom,
43
+ textContent: "",
44
+ extensionInfo: null,
45
+ businessId: "gift",
46
+ data: JSON.stringify({
47
+ type: "gift",
48
+ giftInfo: e.giftInfo,
49
+ count: e.giftCount
50
+ })
51
+ };
52
+ J(o);
53
+ }, j = (e) => {
54
+ if (!r.value)
30
55
  return {
31
56
  position: "fixed",
32
57
  top: `${e.bottom + 5}px`,
33
58
  left: `${e.left}px`,
34
59
  zIndex: 1e3
35
60
  };
36
- const t = o.value.getBoundingClientRect(), s = 120, n = 10, a = 5;
37
- let r = e.bottom + a;
38
- return r + s > t.bottom - n && (r = e.top - s - a), r < t.top + n && (r = t.top + n), {
61
+ const t = r.value.getBoundingClientRect(), s = 120, o = 10, l = 5;
62
+ let a = e.bottom + l;
63
+ return a + s > t.bottom - o && (a = e.top - s - l), a < t.top + o && (a = t.top + o), {
39
64
  position: "fixed",
40
- top: `${r}px`,
65
+ top: `${a}px`,
41
66
  left: `${e.left}px`,
42
67
  zIndex: 1e3
43
68
  };
44
69
  };
45
- J(re, {
46
- slots: V,
70
+ X(ve, {
71
+ slots: R,
47
72
  nickClick: (e) => {
48
- var p, f, g;
49
- const { message: t, event: s } = e, n = ((p = L.value) == null ? void 0 : p.userId) === ((f = A.value) == null ? void 0 : f.liveOwner.userId), a = ((g = L.value) == null ? void 0 : g.userId) === t.sender.userId;
50
- if (!n || a)
73
+ var p, g, y;
74
+ const { message: t, event: s } = e, o = ((p = k.value) == null ? void 0 : p.userId) === ((g = A.value) == null ? void 0 : g.liveOwner.userId), l = ((y = k.value) == null ? void 0 : y.userId) === t.sender.userId;
75
+ if (!o || l)
51
76
  return;
52
- u.value = t, N.value = s.currentTarget;
53
- const r = s.currentTarget.getBoundingClientRect();
54
- $.value = G(r), x.value = !0;
77
+ c.value = t, $.value = s.currentTarget;
78
+ const a = s.currentTarget.getBoundingClientRect();
79
+ N.value = j(a), E.value = !0;
55
80
  }
56
81
  });
57
- const z = se(() => {
58
- o.value && (_.value = o.value.scrollHeight - o.value.scrollTop - o.value.clientHeight, _.value > b && (y.value = !0), _.value < b && (y.value = !1));
59
- }, 100), E = async () => {
60
- B.value = !1, y.value = !1;
82
+ const O = le(() => {
83
+ r.value && (L.value = r.value.scrollHeight - r.value.scrollTop - r.value.clientHeight, L.value > G && (_.value = !0), L.value < G && (_.value = !1));
84
+ }, 100), U = async () => {
85
+ B.value = !1, _.value = !1;
61
86
  };
62
- return F(() => {
87
+ return V(() => {
63
88
  var e;
64
89
  return (e = A.value) == null ? void 0 : e.liveId;
65
90
  }, () => {
66
- E();
67
- }), F(() => {
91
+ U();
92
+ }), V(() => {
68
93
  var e;
69
- return (e = m.value) == null ? void 0 : e.length;
94
+ return (e = v.value) == null ? void 0 : e.length;
70
95
  }, (e) => {
71
- var n;
72
- const t = m.value[e - 1], s = m.value[e - 2];
73
- s === void 0 && t && !B.value && Q(() => {
74
- U({ behavior: "instant" }), B.value = !0;
75
- }), !(!s || !t || !e) && (t == null ? void 0 : t.sequence) !== (s == null ? void 0 : s.sequence) && (t.sender.userId === ((n = L.value) == null ? void 0 : n.userId) || !y.value && _.value < b) && U({ behavior: "smooth" });
76
- }), R(() => {
77
- o.value && o.value.addEventListener("scroll", z), E();
78
- }), W(() => {
79
- o.value && o.value.removeEventListener("scroll", z);
96
+ var o;
97
+ const t = v.value[e - 1], s = v.value[e - 2];
98
+ s === void 0 && t && !B.value && Z(() => {
99
+ q({ behavior: "instant" }), B.value = !0;
100
+ }), !(!s || !t || !e) && (t == null ? void 0 : t.sequence) !== (s == null ? void 0 : s.sequence) && (t.sender.userId === ((o = k.value) == null ? void 0 : o.userId) || !_.value && L.value < G) && q({ behavior: "smooth" });
101
+ }), ee(() => {
102
+ r.value && r.value.addEventListener("scroll", O), U(), K(H.ON_RECEIVE_GIFT_MESSAGE, F);
103
+ }), te(() => {
104
+ r.value && r.value.removeEventListener("scroll", O), Y(H.ON_RECEIVE_GIFT_MESSAGE, F);
80
105
  }), (e, t) => {
81
- var s, n, a, r, p, f, g, q, w, D;
82
- return c(), k(H, null, [
106
+ var s, o, l, a, p, g, y, w, z, D;
107
+ return u(), S(M, null, [
83
108
  h("div", {
84
109
  class: "message-list",
85
- style: C({ height: v.height, ...v.style })
110
+ style: I({ height: m.height, ...m.style })
86
111
  }, [
87
112
  h("div", {
88
113
  id: "messageScrollList",
89
114
  ref_key: "scrollContainer",
90
- ref: o,
115
+ ref: r,
91
116
  class: "message-list-container",
92
- style: C(v.containerStyle)
117
+ style: I(m.containerStyle)
93
118
  }, [
94
- h("div", ue, [
95
- (c(!0), k(H, null, X(l(m), (S) => (c(), O(Y(v.Message || l(le)), {
96
- key: S.sequence + S.timestampInSecond,
97
- style: C(v.itemStyle),
98
- message: S,
99
- "is-last-in-chunk": !0
100
- }, null, 8, ["style", "message"]))), 128))
119
+ h("div", he, [
120
+ (u(!0), S(M, null, se(n(v), (d) => (u(), S(M, {
121
+ key: d.sequence + d.timestampInSecond
122
+ }, [
123
+ n(ue)(d) ? (u(), x(n(ge), {
124
+ key: 0,
125
+ style: I(m.itemStyle),
126
+ message: d
127
+ }, null, 8, ["style", "message"])) : (u(), x(oe(m.Message || n(me)), {
128
+ key: 1,
129
+ style: I(m.itemStyle),
130
+ message: d,
131
+ "is-last-in-chunk": !0
132
+ }, null, 8, ["style", "message"]))
133
+ ], 64))), 128))
101
134
  ]),
102
- (s = l(m)) != null && s.length ? M("", !0) : (c(), k("div", ce, T(l(I)("No message yet")), 1))
135
+ (s = n(v)) != null && s.length ? T("", !0) : (u(), S("div", Ie, b(n(C)("BarrageList.NoMessageYet")), 1))
103
136
  ], 4),
104
- l(d) ? (c(), k("div", ve, [
105
- h("div", me, T(((n = l(d)) == null ? void 0 : n.nameCard) || ((a = l(d)) == null ? void 0 : a.userName) || ((r = l(d)) == null ? void 0 : r.userId)), 1),
106
- h("div", de, T(((p = l(d)) == null ? void 0 : p.displayAction) === "enter" ? l(I)("Come in") : l(I)("Leave")), 1)
107
- ])) : M("", !0)
137
+ n(f) ? (u(), S("div", _e, [
138
+ h("div", Le, b(((o = n(f)) == null ? void 0 : o.nameCard) || ((l = n(f)) == null ? void 0 : l.userName) || ((a = n(f)) == null ? void 0 : a.userId)), 1),
139
+ h("div", Ce, b(((p = n(f)) == null ? void 0 : p.displayAction) === "enter" ? n(C)("BarrageList.ComeIn") : n(C)("BarrageList.Leave")), 1)
140
+ ])) : T("", !0)
108
141
  ], 4),
109
- x.value && u.value ? (c(), O(ne, {
142
+ E.value && c.value ? (u(), x(ce, {
110
143
  key: 0,
111
- "user-id": (f = u.value) == null ? void 0 : f.sender.userId,
112
- "user-name": ((g = u.value) == null ? void 0 : g.sender.nameCard) || ((q = u.value) == null ? void 0 : q.sender.userName) || ((w = u.value) == null ? void 0 : w.sender.userId),
113
- "avatar-url": (D = u.value) == null ? void 0 : D.sender.avatarUrl,
114
- style: C($.value),
115
- "click-target": N.value,
116
- onClose: t[0] || (t[0] = (S) => x.value = !1)
117
- }, null, 8, ["user-id", "user-name", "avatar-url", "style", "click-target"])) : M("", !0)
144
+ "user-id": (g = c.value) == null ? void 0 : g.sender.userId,
145
+ "user-name": ((y = c.value) == null ? void 0 : y.sender.nameCard) || ((w = c.value) == null ? void 0 : w.sender.userName) || ((z = c.value) == null ? void 0 : z.sender.userId),
146
+ "avatar-url": (D = c.value) == null ? void 0 : D.sender.avatarUrl,
147
+ style: I(N.value),
148
+ "click-target": $.value,
149
+ onClose: t[0] || (t[0] = (d) => E.value = !1)
150
+ }, null, 8, ["user-id", "user-name", "avatar-url", "style", "click-target"])) : T("", !0)
118
151
  ], 64);
119
152
  };
120
153
  }
121
- }), Be = /* @__PURE__ */ ie(pe, [["__scopeId", "data-v-bc639779"]]);
154
+ }), De = /* @__PURE__ */ Se(ke, [["__scopeId", "data-v-83cd0827"]]);
122
155
  export {
123
- Be as default
156
+ De as default
124
157
  };