tuikit-atomicx-vue3 3.3.4 → 3.4.2

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 (818) hide show
  1. package/.eslintrc.cjs +33 -0
  2. package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +89 -0
  3. package/dist/DialogPortal-CvJcEAsn.js +417 -0
  4. package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-C8oUv-KF.js +36 -0
  5. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js +116 -0
  6. package/dist/PopoverTrigger-L8abAry7.js +607 -0
  7. package/dist/PopperContent-XdhqL8Y2.js +1603 -0
  8. package/dist/Teleport-CSEuZbpM.js +913 -0
  9. package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-DlROoquV.js +89 -0
  10. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  11. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  12. package/dist/baseComp/ActionSheep.js +41 -51
  13. package/dist/baseComp/AudioIcon.js +27 -37
  14. package/dist/baseComp/Avatar.js +16 -28
  15. package/dist/baseComp/Dialog/DialogH5.js +56 -82
  16. package/dist/baseComp/Dialog/DialogPC.js +76 -118
  17. package/dist/baseComp/Dialog/index.js +2 -2
  18. package/dist/baseComp/IconButton.js +43 -56
  19. package/dist/baseComp/Input/InputH5.js +85 -128
  20. package/dist/baseComp/Input/InputPC.js +85 -128
  21. package/dist/baseComp/Input/InputWX.js +88 -131
  22. package/dist/baseComp/Input/index.js +5 -5
  23. package/dist/baseComp/MessageBox/index.js +120 -150
  24. package/dist/baseComp/Modal/Modal.js +38 -45
  25. package/dist/baseComp/Modal/index.js +3 -3
  26. package/dist/baseComp/ObserverView/ObserverView.js +50 -86
  27. package/dist/baseComp/ObserverView/index.js +2 -2
  28. package/dist/baseComp/Option/OptionH5.js +29 -40
  29. package/dist/baseComp/Option/OptionPC.js +34 -46
  30. package/dist/baseComp/Option/OptionWX.js +30 -41
  31. package/dist/baseComp/Option/index.js +2 -2
  32. package/dist/baseComp/Select/SelectH5.js +54 -86
  33. package/dist/baseComp/Select/SelectPC.js +78 -120
  34. package/dist/baseComp/Select/SelectWX.js +48 -79
  35. package/dist/baseComp/Select/index.js +2 -2
  36. package/dist/baseComp/SvgIcon.js +17 -22
  37. package/dist/baseComp/TuiSwitch.js +15 -19
  38. package/dist/baseComp/View/View.js +2 -2
  39. package/dist/baseComp/View/index.js +19 -24
  40. package/dist/baseComp/index.js +2 -2
  41. package/dist/baseComp/useZIndex.js +7 -12
  42. package/dist/chat/index.d.ts +1421 -990
  43. package/dist/chat/index.js +57 -82
  44. package/dist/chat/server.js +60 -84
  45. package/dist/components/AudioSetting/AudioMediaControl.js +52 -78
  46. package/dist/components/AudioSetting/AudioRequestDialog.js +2 -2
  47. package/dist/components/AudioSetting/AudioSettingTab.js +72 -102
  48. package/dist/components/AudioSetting/MicrophoneSelect.js +45 -57
  49. package/dist/components/AudioSetting/SpeakerSelect.js +45 -57
  50. package/dist/components/AudioSetting/index.js +3 -3
  51. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -2
  52. package/dist/components/AudioSettingPanel/i18n/index.js +4 -4
  53. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -2
  54. package/dist/components/AudioSettingPanel/index.js +102 -147
  55. package/dist/components/Avatar/Avatar.js +88 -140
  56. package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
  57. package/dist/components/Avatar/AvatarBadge/AvatarBadge.js +25 -31
  58. package/dist/components/Avatar/AvatarBadge/index.js +2 -2
  59. package/dist/components/Avatar/constants/avatar.js +7 -12
  60. package/dist/components/Avatar/index.js +9 -9
  61. package/dist/components/BarrageInput/BarrageInput.js +50 -67
  62. package/dist/components/BarrageInput/BarrageInputH5.js +80 -111
  63. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +84 -97
  64. package/dist/components/BarrageInput/EmojiPicker/index.js +2 -2
  65. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +34 -62
  66. package/dist/components/BarrageInput/TextEditor/EditorCore.js +79 -90
  67. package/dist/components/BarrageInput/TextEditor/TextEditor.js +2 -2
  68. package/dist/components/BarrageInput/TextEditor/index.js +81 -125
  69. package/dist/components/BarrageInput/constants.js +2 -2
  70. package/dist/components/BarrageInput/i18n/en-US/index.js +2 -2
  71. package/dist/components/BarrageInput/i18n/index.js +4 -4
  72. package/dist/components/BarrageInput/i18n/zh-CN/index.js +2 -2
  73. package/dist/components/BarrageInput/index.js +11 -11
  74. package/dist/components/BarrageList/BarrageList.js +97 -173
  75. package/dist/components/BarrageList/BarrageListH5.js +96 -171
  76. package/dist/components/BarrageList/ClickAction/UserActionMenu.js +64 -94
  77. package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.js +2 -2
  78. package/dist/components/BarrageList/Message/CustomMessage/index.js +5 -7
  79. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +16 -21
  80. package/dist/components/BarrageList/Message/FaceMessage/index.js +2 -2
  81. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
  82. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +13 -18
  83. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +56 -80
  84. package/dist/components/BarrageList/Message/ImageMessage/index.js +2 -2
  85. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +5 -5
  86. package/dist/components/BarrageList/Message/MergerMessage/index.js +2 -2
  87. package/dist/components/BarrageList/Message/Message.js +2 -2
  88. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +28 -39
  89. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/index.js +2 -2
  90. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +93 -101
  91. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +26 -32
  92. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +19 -22
  93. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +2 -2
  94. package/dist/components/BarrageList/Message/MessageLayout/index.js +2 -2
  95. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +31 -39
  96. package/dist/components/BarrageList/Message/RecalledMessage/index.js +2 -2
  97. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +67 -96
  98. package/dist/components/BarrageList/Message/TextMessage/index.js +2 -2
  99. package/dist/components/BarrageList/Message/index.js +11 -15
  100. package/dist/components/BarrageList/MessageForward/ForwardListItem.js +34 -43
  101. package/dist/components/BarrageList/MessageForward/MessageForward.js +158 -210
  102. package/dist/components/BarrageList/MessageForward/index.js +2 -2
  103. package/dist/components/BarrageList/MessageListContext.js +9 -10
  104. package/dist/components/BarrageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
  105. package/dist/components/BarrageList/MessageTimeDivider/index.js +2 -2
  106. package/dist/components/BarrageList/i18n/en-US/index.js +3 -3
  107. package/dist/components/BarrageList/i18n/index.js +4 -4
  108. package/dist/components/BarrageList/i18n/zh-CN/index.js +3 -3
  109. package/dist/components/BarrageList/index.js +10 -10
  110. package/dist/components/CameraButton/index.js +34 -44
  111. package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +92 -108
  112. package/dist/components/ChatSetting/C2CChatSetting/index.js +3 -3
  113. package/dist/components/ChatSetting/ChatSetting.js +17 -23
  114. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +133 -163
  115. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.js +2 -2
  116. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +179 -245
  117. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +124 -181
  118. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.js +2 -2
  119. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +195 -259
  120. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.js +2 -2
  121. package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.js +23 -32
  122. package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.js +2 -2
  123. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +149 -212
  124. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.js +2 -2
  125. package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.js +35 -40
  126. package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.js +2 -2
  127. package/dist/components/ChatSetting/GroupChatSetting/index.js +2 -2
  128. package/dist/components/ChatSetting/SettingItem/SettingItem.js +201 -247
  129. package/dist/components/ChatSetting/SettingItem/index.js +2 -2
  130. package/dist/components/ChatSetting/i18n/en-US.js +2 -2
  131. package/dist/components/ChatSetting/i18n/index.js +6 -6
  132. package/dist/components/ChatSetting/i18n/zh-CN.js +2 -2
  133. package/dist/components/ChatSetting/index.js +7 -7
  134. package/dist/components/CoGuestPanel/CoGuestPanel.js +139 -180
  135. package/dist/components/CoGuestPanel/constants.js +2 -2
  136. package/dist/components/CoGuestPanel/i18n/en-US/index.js +9 -9
  137. package/dist/components/CoGuestPanel/i18n/index.js +4 -4
  138. package/dist/components/CoGuestPanel/i18n/zh-CN/index.js +9 -9
  139. package/dist/components/CoGuestPanel/index.js +8 -8
  140. package/dist/components/CoHostPanel/BattlePanel.js +196 -0
  141. package/dist/components/CoHostPanel/BattlePanel.vue.d.ts +19 -0
  142. package/dist/components/CoHostPanel/CoHostPanel.js +114 -0
  143. package/dist/components/CoHostPanel/CoHostPanel.vue.d.ts +19 -0
  144. package/dist/components/CoHostPanel/ConfigSettingPanel.js +110 -0
  145. package/dist/components/CoHostPanel/ConfigSettingPanel.vue.d.ts +33 -0
  146. package/dist/components/CoHostPanel/ConnectionPanel.js +273 -0
  147. package/dist/components/CoHostPanel/ConnectionPanel.vue.d.ts +19 -0
  148. package/dist/components/CoHostPanel/RecommendHostList.js +113 -0
  149. package/dist/components/CoHostPanel/RecommendHostList.vue.d.ts +13 -0
  150. package/dist/components/CoHostPanel/UserList.js +34 -0
  151. package/dist/components/CoHostPanel/UserList.vue.d.ts +28 -0
  152. package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +74 -0
  153. package/dist/components/CoHostPanel/i18n/en-US/index.js +81 -0
  154. package/dist/components/CoHostPanel/i18n/index.d.ts +4 -0
  155. package/dist/components/CoHostPanel/i18n/index.js +6 -0
  156. package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +75 -0
  157. package/dist/components/CoHostPanel/i18n/zh-CN/index.js +82 -0
  158. package/dist/components/CoHostPanel/index.d.ts +16 -0
  159. package/dist/components/CoHostPanel/index.js +10 -0
  160. package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +36 -51
  161. package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.js +2 -2
  162. package/dist/components/ContactList/ContactInfo/ContactInfo.js +141 -196
  163. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +39 -61
  164. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.js +2 -2
  165. package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +109 -160
  166. package/dist/components/ContactList/ContactInfo/FriendInfo/index.js +2 -2
  167. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +58 -86
  168. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.js +2 -2
  169. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +99 -133
  170. package/dist/components/ContactList/ContactInfo/GroupInfo/index.js +2 -2
  171. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +86 -118
  172. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.js +2 -2
  173. package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +72 -101
  174. package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.js +2 -2
  175. package/dist/components/ContactList/ContactInfo/index.js +16 -16
  176. package/dist/components/ContactList/ContactList.js +164 -235
  177. package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +29 -38
  178. package/dist/components/ContactList/ContactListItem/BlacklistItem/index.js +2 -2
  179. package/dist/components/ContactList/ContactListItem/ContactListItem.js +2 -2
  180. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +46 -61
  181. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.js +2 -2
  182. package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +24 -31
  183. package/dist/components/ContactList/ContactListItem/FriendItem/index.js +2 -2
  184. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +45 -64
  185. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.js +2 -2
  186. package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +29 -38
  187. package/dist/components/ContactList/ContactListItem/GroupItem/index.js +2 -2
  188. package/dist/components/ContactList/ContactListItem/index.js +57 -66
  189. package/dist/components/ContactList/ContactSearch/ContactSearch.js +53 -73
  190. package/dist/components/ContactList/ContactSearch/index.js +2 -2
  191. package/dist/components/ContactList/constants/const.js +3 -4
  192. package/dist/components/ContactList/hooks/index.js +2 -2
  193. package/dist/components/ContactList/hooks/useContactList.js +11 -15
  194. package/dist/components/ContactList/i18n/en-US.js +21 -21
  195. package/dist/components/ContactList/i18n/index.js +4 -4
  196. package/dist/components/ContactList/i18n/zh-CN.js +21 -21
  197. package/dist/components/ContactList/index.js +12 -14
  198. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +107 -150
  199. package/dist/components/ConversationList/ConversationActions/index.js +2 -2
  200. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +116 -193
  201. package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +65 -80
  202. package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +108 -126
  203. package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +40 -52
  204. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +61 -79
  205. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +4 -4
  206. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +8 -8
  207. package/dist/components/ConversationList/ConversationCreate/index.js +12 -12
  208. package/dist/components/ConversationList/ConversationList.js +112 -154
  209. package/dist/components/ConversationList/ConversationList.vue.d.ts +72 -72
  210. package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +27 -33
  211. package/dist/components/ConversationList/ConversationListContent/index.js +2 -2
  212. package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.js +30 -39
  213. package/dist/components/ConversationList/ConversationListHeader/index.js +2 -2
  214. package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +65 -81
  215. package/dist/components/ConversationList/ConversationPlaceHolder/index.js +2 -2
  216. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.js +2 -2
  217. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +72 -72
  218. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +40 -59
  219. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +29 -47
  220. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +25 -42
  221. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +84 -111
  222. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +18 -18
  223. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +36 -51
  224. package/dist/components/ConversationList/ConversationPreview/index.js +55 -63
  225. package/dist/components/ConversationList/ConversationPreview/utils.js +36 -42
  226. package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +114 -160
  227. package/dist/components/ConversationList/ConversationSearch/index.js +2 -2
  228. package/dist/components/ConversationList/hooks/useConversation.js +12 -18
  229. package/dist/components/ConversationList/hooks/useConversationCreate.js +17 -18
  230. package/dist/components/ConversationList/i18n/en-US.js +32 -32
  231. package/dist/components/ConversationList/i18n/index.js +4 -4
  232. package/dist/components/ConversationList/i18n/zh-CN.js +32 -32
  233. package/dist/components/ConversationList/index.d.ts +989 -989
  234. package/dist/components/ConversationList/index.js +24 -32
  235. package/dist/components/LiveAudienceList/LiveAudienceList.js +85 -120
  236. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +50 -72
  237. package/dist/components/LiveAudienceList/UserActionMenu.js +82 -124
  238. package/dist/components/LiveAudienceList/i18n/en-US/index.js +2 -2
  239. package/dist/components/LiveAudienceList/i18n/index.js +4 -4
  240. package/dist/components/LiveAudienceList/i18n/zh-CN/index.js +2 -2
  241. package/dist/components/LiveAudienceList/index.js +10 -10
  242. package/dist/components/LiveList/LiveList.js +109 -165
  243. package/dist/components/LiveList/LiveList.vue.d.ts +15 -3
  244. package/dist/components/LiveList/LiveListH5.js +109 -169
  245. package/dist/components/LiveList/i18n/en-US/index.d.ts +1 -1
  246. package/dist/components/LiveList/i18n/en-US/index.js +4 -4
  247. package/dist/components/LiveList/i18n/index.js +4 -4
  248. package/dist/components/LiveList/i18n/zh-CN/index.d.ts +1 -1
  249. package/dist/components/LiveList/i18n/zh-CN/index.js +4 -4
  250. package/dist/components/LiveList/index.d.ts +17 -1
  251. package/dist/components/LiveList/index.js +10 -10
  252. package/dist/components/LiveList/pullToRefresh.js +88 -163
  253. package/dist/components/LiveMonitorView/LiveMonitorView.js +72 -110
  254. package/dist/components/LiveMonitorView/i18n/en-US/index.js +2 -2
  255. package/dist/components/LiveMonitorView/i18n/index.js +4 -4
  256. package/dist/components/LiveMonitorView/i18n/zh-CN/index.js +2 -2
  257. package/dist/components/LiveMonitorView/index.js +7 -7
  258. package/dist/components/LiveScenePanel/CameraSettingDialog.js +126 -188
  259. package/dist/components/LiveScenePanel/LiveSceneSelect.js +79 -106
  260. package/dist/components/LiveScenePanel/MaterialDialog.js +78 -98
  261. package/dist/components/LiveScenePanel/MaterialItem.js +105 -142
  262. package/dist/components/LiveScenePanel/MaterialRenameDialog.js +2 -2
  263. package/dist/components/LiveScenePanel/i18n/en-US/index.js +2 -2
  264. package/dist/components/LiveScenePanel/i18n/index.js +4 -4
  265. package/dist/components/LiveScenePanel/i18n/zh-CN/index.js +2 -2
  266. package/dist/components/LiveScenePanel/icons/AddIcon.js +10 -11
  267. package/dist/components/LiveScenePanel/icons/CameraIcon.js +9 -10
  268. package/dist/components/LiveScenePanel/icons/CameraMirror.js +13 -14
  269. package/dist/components/LiveScenePanel/icons/CameraUnmirror.js +11 -12
  270. package/dist/components/LiveScenePanel/icons/ImageIcon.js +8 -9
  271. package/dist/components/LiveScenePanel/icons/MoreIcon.js +13 -14
  272. package/dist/components/LiveScenePanel/icons/ScreenIcon.js +8 -9
  273. package/dist/components/LiveScenePanel/index.js +142 -190
  274. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +152 -0
  275. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.vue.d.ts +2 -0
  276. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +73 -0
  277. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue.d.ts +35 -0
  278. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +54 -0
  279. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.vue.d.ts +2 -0
  280. package/dist/components/LiveView/CoreViewDecorate/LiveCoreDecorate.js +35 -0
  281. package/dist/components/LiveView/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +35 -0
  282. package/dist/components/LiveView/DefaultStreamViewUI.js +124 -0
  283. package/dist/components/LiveView/PlayerControl/AudioControl.js +129 -0
  284. package/dist/components/LiveView/PlayerControl/MultiResolution.js +78 -0
  285. package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +2 -0
  286. package/dist/components/LiveView/PlayerControl/PlayerControl.js +168 -0
  287. package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +11 -0
  288. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +267 -0
  289. package/dist/components/LiveView/PlayerControl/index.js +8 -0
  290. package/dist/components/LiveView/PlayerControl/utils/deviceDetection.js +45 -0
  291. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +99 -0
  292. package/dist/components/LiveView/PlayerControl/utils/fullscreenManager.js +241 -0
  293. package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +7 -0
  294. package/dist/components/LiveView/i18n/en-US/index.js +23 -0
  295. package/dist/components/LiveView/i18n/index.js +6 -0
  296. package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +7 -0
  297. package/dist/components/LiveView/i18n/zh-CN/index.js +23 -0
  298. package/dist/components/LiveView/index.d.ts +79 -0
  299. package/dist/components/LiveView/index.js +243 -0
  300. package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.js +2 -2
  301. package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +10 -1
  302. package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +63 -2
  303. package/dist/components/MessageInput/AttachmentPicker/FilePicker.vue.d.ts +14 -13
  304. package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +63 -2
  305. package/dist/components/MessageInput/AttachmentPicker/ImagePicker.vue.d.ts +14 -13
  306. package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +63 -2
  307. package/dist/components/MessageInput/AttachmentPicker/VideoPicker.vue.d.ts +14 -13
  308. package/dist/components/MessageInput/AttachmentPicker/index.js +70 -72
  309. package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +155 -0
  310. package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.vue.d.ts +45 -0
  311. package/dist/components/MessageInput/AudioCallPicker/index.d.ts +3 -0
  312. package/dist/components/MessageInput/AudioCallPicker/index.js +4 -0
  313. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +108 -96
  314. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.vue.d.ts +34 -6
  315. package/dist/components/MessageInput/EmojiPicker/index.js +2 -2
  316. package/dist/components/MessageInput/MessageInput.js +2 -2
  317. package/dist/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.js +2 -2
  318. package/dist/components/MessageInput/QuotedMessagePreview/index.js +60 -74
  319. package/dist/components/MessageInput/SendButton/SendButton.js +2 -2
  320. package/dist/components/MessageInput/SendButton/index.js +20 -25
  321. package/dist/components/MessageInput/TextEditor/EditorCore.js +72 -79
  322. package/dist/components/MessageInput/TextEditor/TextEditor.js +2 -2
  323. package/dist/components/MessageInput/TextEditor/index.js +60 -95
  324. package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +158 -0
  325. package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.vue.d.ts +45 -0
  326. package/dist/components/MessageInput/VideoCallPicker/index.d.ts +3 -0
  327. package/dist/components/MessageInput/VideoCallPicker/index.js +4 -0
  328. package/dist/components/MessageInput/i18n/en-US.d.ts +4 -0
  329. package/dist/components/MessageInput/i18n/en-US.js +7 -3
  330. package/dist/components/MessageInput/i18n/index.d.ts +4 -0
  331. package/dist/components/MessageInput/i18n/index.js +6 -6
  332. package/dist/components/MessageInput/i18n/zh-CN.js +2 -2
  333. package/dist/components/MessageInput/index.d.ts +462 -191
  334. package/dist/components/MessageInput/index.js +23 -25
  335. package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +50 -65
  336. package/dist/components/MessageList/Message/AudioMessage/PlayButton.js +31 -37
  337. package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +37 -52
  338. package/dist/components/MessageList/Message/AudioMessage/index.js +2 -2
  339. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +60 -0
  340. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue.d.ts +16 -0
  341. package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.d.ts +3 -0
  342. package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.js +4 -0
  343. package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +49 -2
  344. package/dist/components/MessageList/Message/CustomMessage/CustomMessage.vue.d.ts +15 -1
  345. package/dist/components/MessageList/Message/CustomMessage/index.js +2 -10
  346. package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +16 -20
  347. package/dist/components/MessageList/Message/FaceMessage/index.js +2 -2
  348. package/dist/components/MessageList/Message/FileMessage/FileMessage.js +57 -70
  349. package/dist/components/MessageList/Message/FileMessage/index.js +2 -2
  350. package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
  351. package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +1 -1
  352. package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -23
  353. package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.d.ts +1 -1
  354. package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +41 -59
  355. package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +106 -169
  356. package/dist/components/MessageList/Message/ImageMessage/index.js +2 -2
  357. package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +7 -7
  358. package/dist/components/MessageList/Message/LocationMessage/index.js +2 -2
  359. package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +7 -7
  360. package/dist/components/MessageList/Message/MergerMessage/index.js +2 -2
  361. package/dist/components/MessageList/Message/Message.js +2 -2
  362. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +800 -1074
  363. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +1 -1
  364. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/index.js +2 -2
  365. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +36 -44
  366. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
  367. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/index.js +2 -2
  368. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +116 -123
  369. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
  370. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +47 -73
  371. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +24 -27
  372. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/index.js +2 -2
  373. package/dist/components/MessageList/Message/MessageLayout/index.js +2 -2
  374. package/dist/components/MessageList/Message/MessageLayout/useMessageLayoutClasses.js +23 -28
  375. package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.js +39 -48
  376. package/dist/components/MessageList/Message/RecalledMessage/index.js +2 -2
  377. package/dist/components/MessageList/Message/TextMessage/TextMessage.js +80 -102
  378. package/dist/components/MessageList/Message/TextMessage/index.js +2 -2
  379. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +68 -92
  380. package/dist/components/MessageList/Message/VideoMessage/index.js +2 -2
  381. package/dist/components/MessageList/Message/index.js +18 -20
  382. package/dist/components/MessageList/MessageForward/ForwardListItem.js +46 -53
  383. package/dist/components/MessageList/MessageForward/MessageForward.js +102 -124
  384. package/dist/components/MessageList/MessageForward/index.js +2 -2
  385. package/dist/components/MessageList/MessageList.js +129 -204
  386. package/dist/components/MessageList/MessageListContext.js +9 -10
  387. package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
  388. package/dist/components/MessageList/MessageTimeDivider/index.js +2 -2
  389. package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +294 -379
  390. package/dist/components/MessageList/ReadReceiptInfo/index.js +2 -2
  391. package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.js +20 -25
  392. package/dist/components/MessageList/ScrollToBottom/index.js +2 -2
  393. package/dist/components/MessageList/i18n/en-US.d.ts +20 -1
  394. package/dist/components/MessageList/i18n/en-US.js +21 -2
  395. package/dist/components/MessageList/i18n/index.d.ts +134 -92
  396. package/dist/components/MessageList/i18n/index.js +6 -6
  397. package/dist/components/MessageList/i18n/zh-CN.d.ts +20 -1
  398. package/dist/components/MessageList/i18n/zh-CN.js +21 -2
  399. package/dist/components/MessageList/index.js +9 -10
  400. package/dist/components/MicButton/AudioIcon.js +27 -37
  401. package/dist/components/MicButton/index.js +37 -52
  402. package/dist/components/Search/Search.js +117 -156
  403. package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +378 -505
  404. package/dist/components/Search/SearchAdvanced/DateRangePicker/index.js +2 -2
  405. package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +147 -211
  406. package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.js +2 -2
  407. package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +46 -60
  408. package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +39 -51
  409. package/dist/components/Search/SearchAdvanced/SearchTab/index.js +2 -2
  410. package/dist/components/Search/SearchAdvanced/Slider/Slider.js +53 -82
  411. package/dist/components/Search/SearchAdvanced/Slider/index.js +2 -2
  412. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +247 -317
  413. package/dist/components/Search/SearchAdvanced/UserAdvanced/index.js +2 -2
  414. package/dist/components/Search/SearchAdvanced/index.js +12 -12
  415. package/dist/components/Search/SearchBar/SearchBar.js +98 -122
  416. package/dist/components/Search/SearchBar/index.js +2 -2
  417. package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +26 -37
  418. package/dist/components/Search/SearchResults/EmptyResult/index.js +2 -2
  419. package/dist/components/Search/SearchResults/Loading/Loading.js +13 -19
  420. package/dist/components/Search/SearchResults/Loading/index.js +2 -2
  421. package/dist/components/Search/SearchResults/SearchResults.js +233 -339
  422. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +61 -83
  423. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.js +2 -2
  424. package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +40 -52
  425. package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.js +2 -2
  426. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +134 -181
  427. package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.js +2 -2
  428. package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +40 -46
  429. package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +56 -75
  430. package/dist/components/Search/SearchResults/SearchResultsItem/User/index.js +2 -2
  431. package/dist/components/Search/SearchResults/SearchResultsItem/index.js +11 -11
  432. package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.js +17 -36
  433. package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.js +2 -2
  434. package/dist/components/Search/SearchResults/index.js +16 -16
  435. package/dist/components/Search/i18n/en-US/DateRangePicker.js +3 -3
  436. package/dist/components/Search/i18n/en-US/Search.js +3 -3
  437. package/dist/components/Search/i18n/en-US/index.js +7 -7
  438. package/dist/components/Search/i18n/index.js +4 -4
  439. package/dist/components/Search/i18n/zh-CN/DateRangePicker.js +3 -3
  440. package/dist/components/Search/i18n/zh-CN/Search.js +3 -3
  441. package/dist/components/Search/i18n/zh-CN/index.js +7 -7
  442. package/dist/components/Search/index.js +20 -26
  443. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +68 -100
  444. package/dist/components/StreamMixer/LocalMixer/index.js +103 -171
  445. package/dist/components/StreamMixer/i18n/en-US/index.js +2 -2
  446. package/dist/components/StreamMixer/i18n/index.js +4 -4
  447. package/dist/components/StreamMixer/i18n/zh-CN/index.js +2 -2
  448. package/dist/components/StreamMixer/icons/CameraMirror.js +13 -14
  449. package/dist/components/StreamMixer/icons/Delete.js +13 -14
  450. package/dist/components/StreamMixer/icons/Down.js +10 -11
  451. package/dist/components/StreamMixer/icons/Rotation.js +11 -12
  452. package/dist/components/StreamMixer/icons/Up.js +10 -11
  453. package/dist/components/StreamMixer/index.js +19 -21
  454. package/dist/components/StreamView/Layout/CustomLayout.js +132 -209
  455. package/dist/components/StreamView/Layout/FloatLayout.js +136 -199
  456. package/dist/components/StreamView/Layout/GridLayout.js +117 -197
  457. package/dist/components/StreamView/Layout/MeetingLayout.js +129 -231
  458. package/dist/components/StreamView/Layout/MixLayout.js +70 -98
  459. package/dist/components/StreamView/common/ArrowStroke.js +26 -29
  460. package/dist/components/StreamView/common/LocalScreenView/index.js +82 -92
  461. package/dist/components/StreamView/common/StreamCover/index.js +33 -62
  462. package/dist/components/StreamView/common/StreamList/index.js +103 -163
  463. package/dist/components/StreamView/common/StreamPlay/index.js +58 -98
  464. package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.js +58 -90
  465. package/dist/components/StreamView/common/StreamRegion/index.js +2 -2
  466. package/dist/components/StreamView/index.js +64 -66
  467. package/dist/components/StreamView/manager/mediaManager.js +125 -236
  468. package/dist/components/UserList/AllUserActions/index.js +2 -2
  469. package/dist/components/UserList/AllUserActions/indexH5.js +59 -69
  470. package/dist/components/UserList/AllUserActions/indexPC.js +61 -73
  471. package/dist/components/UserList/AllUserActions/useIndexHooks.js +32 -39
  472. package/dist/components/UserList/UserItem/UserAction/index.js +2 -2
  473. package/dist/components/UserList/UserItem/UserAction/indexH5.js +47 -61
  474. package/dist/components/UserList/UserItem/UserAction/indexPC.js +86 -130
  475. package/dist/components/UserList/UserItem/UserInfo/index.js +67 -117
  476. package/dist/components/UserList/UserItem/UserInvite/index.js +18 -21
  477. package/dist/components/UserList/UserItem/index.js +2 -2
  478. package/dist/components/UserList/UserItem/indexH5.js +42 -54
  479. package/dist/components/UserList/UserItem/indexPC.js +32 -37
  480. package/dist/components/UserList/UserListContent/index.js +30 -44
  481. package/dist/components/UserList/UserListSearch/index.js +20 -26
  482. package/dist/components/UserList/index.js +50 -63
  483. package/dist/components/UserPicker/UserPicker.js +110 -148
  484. package/dist/components/UserPicker/components/ListMode/ListMode.js +70 -96
  485. package/dist/components/UserPicker/components/ListMode/index.js +2 -2
  486. package/dist/components/UserPicker/components/SearchBar/SearchBar.js +43 -58
  487. package/dist/components/UserPicker/components/SearchBar/index.js +2 -2
  488. package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +69 -94
  489. package/dist/components/UserPicker/components/SelectedPanel/index.js +2 -2
  490. package/dist/components/UserPicker/components/TreeMode/TreeMode.js +33 -42
  491. package/dist/components/UserPicker/components/TreeMode/TreeNode.js +81 -106
  492. package/dist/components/UserPicker/components/TreeMode/index.js +2 -2
  493. package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -80
  494. package/dist/components/UserPicker/hooks/useSelection.js +155 -313
  495. package/dist/components/UserPicker/hooks/useTreeState.js +17 -37
  496. package/dist/components/UserPicker/i18n/en-US.js +2 -2
  497. package/dist/components/UserPicker/i18n/index.js +6 -6
  498. package/dist/components/UserPicker/i18n/zh-CN.js +2 -2
  499. package/dist/components/UserPicker/index.js +7 -7
  500. package/dist/components/VideoSetting/CameraSelect.js +46 -58
  501. package/dist/components/VideoSetting/VideoMediaControl.js +45 -65
  502. package/dist/components/VideoSetting/VideoPreview.js +31 -40
  503. package/dist/components/VideoSetting/VideoProfile.js +38 -46
  504. package/dist/components/VideoSetting/VideoRequestDialog.js +2 -2
  505. package/dist/components/VideoSetting/VideoSettingTab.js +43 -55
  506. package/dist/components/VideoSetting/index.js +3 -3
  507. package/dist/components/VideoSettingPanel/CameraSelect.js +45 -57
  508. package/dist/components/VideoSettingPanel/VideoPreview.js +30 -39
  509. package/dist/components/VideoSettingPanel/VideoProfile.js +36 -44
  510. package/dist/components/VideoSettingPanel/i18n/en-US/index.js +5 -5
  511. package/dist/components/VideoSettingPanel/i18n/index.js +4 -4
  512. package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +5 -5
  513. package/dist/components/VideoSettingPanel/index.js +48 -63
  514. package/dist/constants/emoji.js +3 -4
  515. package/dist/directives/vClickOutside.js +9 -23
  516. package/dist/directives/vDblTouch.js +26 -51
  517. package/dist/directives/vTap.js +37 -68
  518. package/dist/directives/vTouchScale.js +83 -155
  519. package/dist/handler/index.js +4 -4
  520. package/dist/handler/translator.js +65 -97
  521. package/dist/handler/voiceConverter.js +21 -30
  522. package/dist/hooks/index.d.ts +1 -1
  523. package/dist/hooks/index.js +4 -4
  524. package/dist/hooks/useAudioControl.js +44 -128
  525. package/dist/hooks/useLongPress.js +41 -75
  526. package/dist/hooks/useMessageActions.d.ts +1 -1
  527. package/dist/hooks/useMessageActions.js +46 -57
  528. package/dist/hooks/useMouseHover.js +16 -26
  529. package/dist/hooks/useReadReceipt/useReadReceipt.js +66 -114
  530. package/dist/hooks/useRoomActions/index.js +11 -14
  531. package/dist/hooks/useRoomActions/useRoomAudioAction.js +39 -44
  532. package/dist/hooks/useRoomActions/useRoomScreenAction.js +41 -48
  533. package/dist/hooks/useRoomActions/useRoomVideoAction.js +38 -44
  534. package/dist/hooks/useRoomEngine.js +14 -17
  535. package/dist/hooks/useScroll.js +52 -89
  536. package/dist/hooks/useUserActions/index.js +81 -117
  537. package/dist/hooks/useUserActions/useAdminAction.js +29 -35
  538. package/dist/hooks/useUserActions/useAudioAction.js +36 -40
  539. package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardDialog.js +59 -69
  540. package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardInput.js +40 -49
  541. package/dist/hooks/useUserActions/useChangeNameCardAction/index.js +43 -51
  542. package/dist/hooks/useUserActions/useChatAction.js +23 -25
  543. package/dist/hooks/useUserActions/useKickUserAction.js +27 -32
  544. package/dist/hooks/useUserActions/useMemberInviteAction.js +24 -40
  545. package/dist/hooks/useUserActions/useSeatAction.js +96 -108
  546. package/dist/hooks/useUserActions/useTransferOwnerAction.js +40 -47
  547. package/dist/hooks/useUserActions/useVideoAction.js +35 -38
  548. package/dist/hooks/useZIndex.js +7 -12
  549. package/dist/i18n/index.js +4 -4
  550. package/dist/index-Bm-QfV5o.js +5125 -0
  551. package/dist/index-CeQ4nl87.js +44 -0
  552. package/dist/index-D2OVtqc8.js +12047 -0
  553. package/dist/index-DPczIrgX.js +42 -0
  554. package/dist/index-DTq2ybsB.js +33 -0
  555. package/dist/index.d.ts +2 -1
  556. package/dist/index.js +180 -159
  557. package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +32 -0
  558. package/dist/locales/en-US.js +31 -31
  559. package/dist/locales/index.js +29 -34
  560. package/dist/locales/zh-CN.js +31 -31
  561. package/dist/rtc/index.d.ts +35 -40
  562. package/dist/rtc/index.js +64 -86
  563. package/dist/rtc/server.js +62 -85
  564. package/dist/states/BarrageListState/BarrageListState.js +98 -183
  565. package/dist/states/BarrageListState/index.js +2 -2
  566. package/dist/states/BattleState.d.ts +46 -0
  567. package/dist/states/BattleState.js +117 -0
  568. package/dist/states/C2CSettingState/C2CSettingState.js +52 -92
  569. package/dist/states/C2CSettingState/index.js +2 -2
  570. package/dist/states/CoGuestState.d.ts +1 -1
  571. package/dist/states/CoGuestState.js +191 -291
  572. package/dist/states/CoHostState/CoHostState.d.ts +30 -0
  573. package/dist/states/CoHostState/CoHostState.js +209 -0
  574. package/dist/states/CoHostState/index.d.ts +1 -0
  575. package/dist/states/CoHostState/index.js +4 -0
  576. package/dist/states/ContactListState/ContactListState.js +175 -271
  577. package/dist/states/ContactListState/index.js +2 -2
  578. package/dist/states/ConversationListState/ConversationListState.js +61 -112
  579. package/dist/states/ConversationListState/index.js +2 -2
  580. package/dist/states/DeviceState.js +240 -389
  581. package/dist/states/GroupSettingState/GroupSettingState.js +220 -378
  582. package/dist/states/GroupSettingState/index.js +7 -7
  583. package/dist/states/GroupSettingState/permissions.js +240 -250
  584. package/dist/states/GroupSettingState/types.js +5 -41
  585. package/dist/states/LiveAudienceState.js +100 -132
  586. package/dist/states/LiveMonitorState/api/http.js +1245 -1910
  587. package/dist/states/LiveMonitorState/index.js +92 -148
  588. package/dist/states/LiveMonitorState/player/adapters/trtc.js +54 -106
  589. package/dist/states/LiveMonitorState/player/base/basePlayer.js +111 -169
  590. package/dist/states/LiveMonitorState/player/index.js +10 -10
  591. package/dist/states/LiveMonitorState/player/manager/playerManager.js +27 -33
  592. package/dist/states/LiveMonitorState/player/types/index.js +8 -8
  593. package/dist/states/LiveMonitorState/player/types/player.js +3 -13
  594. package/dist/states/LiveMonitorState/player/types/trtc.js +6 -20
  595. package/dist/states/LiveMonitorState/utils/index.js +17 -22
  596. package/dist/states/LiveSeatState/index.js +16 -16
  597. package/dist/states/LiveSeatState/seatEventManager.js +54 -75
  598. package/dist/states/LiveSeatState/seatManager.js +29 -36
  599. package/dist/states/LiveSeatState/store.js +18 -25
  600. package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +43 -65
  601. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +55 -83
  602. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +59 -97
  603. package/dist/states/LiveSeatState/usePlayStream/index.js +44 -96
  604. package/dist/states/LiveSeatState/usePlayStream/useStreamPostion.js +43 -55
  605. package/dist/states/LiveState/index.js +190 -275
  606. package/dist/states/LoginState.js +48 -62
  607. package/dist/states/MessageActionState/MessageActionState.d.ts +6 -6
  608. package/dist/states/MessageActionState/MessageActionState.js +45 -56
  609. package/dist/states/MessageActionState/index.js +2 -2
  610. package/dist/states/MessageInputState/MessageInputState.js +90 -139
  611. package/dist/states/MessageInputState/index.js +4 -4
  612. package/dist/states/MessageInputState/type.js +2 -10
  613. package/dist/states/MessageInputState/utils.js +20 -21
  614. package/dist/states/MessageListState/MessageListState.js +65 -89
  615. package/dist/states/MessageListState/index.js +2 -2
  616. package/dist/states/RoomState.js +223 -332
  617. package/dist/states/SearchState.d.ts +2 -2
  618. package/dist/states/SearchState.js +229 -356
  619. package/dist/states/SeatStore.js +140 -213
  620. package/dist/states/UserState/index.js +31 -51
  621. package/dist/states/UserState/store.js +95 -147
  622. package/dist/states/UserState/userEventManager.js +85 -134
  623. package/dist/states/UserState/userManager.js +184 -232
  624. package/dist/states/VideoMixerState.js +181 -228
  625. package/dist/statistical/const.js +2 -6
  626. package/dist/statistical/index.js +4 -4
  627. package/dist/statistical/statistical.js +12 -12
  628. package/dist/styles/index.css +1 -13145
  629. package/dist/types/battle.d.ts +11 -0
  630. package/dist/types/battle.js +1 -0
  631. package/dist/types/call.d.ts +55 -0
  632. package/dist/types/call.js +4 -0
  633. package/dist/types/chatSetting.js +4 -4
  634. package/dist/types/coGuest.js +2 -8
  635. package/dist/types/coHost.d.ts +44 -4
  636. package/dist/types/coHost.js +4 -8
  637. package/dist/types/contact.js +3 -17
  638. package/dist/types/conversation.js +6 -36
  639. package/dist/types/device.d.ts +4 -0
  640. package/dist/types/device.js +8 -45
  641. package/dist/types/engine.d.ts +23 -7
  642. package/dist/types/engine.js +5 -23
  643. package/dist/types/index.d.ts +9 -6
  644. package/dist/types/index.js +92 -84
  645. package/dist/types/live.js +4 -21
  646. package/dist/types/message.js +4 -29
  647. package/dist/types/monitor.js +2 -6
  648. package/dist/types/room.js +3 -16
  649. package/dist/types/search.js +9 -15
  650. package/dist/types/seat.d.ts +4 -4
  651. package/dist/types/stream.js +3 -14
  652. package/dist/types/types.js +32 -329
  653. package/dist/types/user.d.ts +0 -3
  654. package/dist/types/user.js +8 -65
  655. package/dist/useId-CtirfF0W.js +12 -0
  656. package/dist/utils/call.d.ts +6 -2
  657. package/dist/utils/call.js +126 -11
  658. package/dist/utils/copyText.js +20 -33
  659. package/dist/utils/documentLink.js +2 -2
  660. package/dist/utils/domOperation.js +99 -122
  661. package/dist/utils/downFile.js +11 -19
  662. package/dist/utils/emoji.js +24 -31
  663. package/dist/utils/enableSampleTaskStatus.js +5 -8
  664. package/dist/utils/env.js +8 -13
  665. package/dist/utils/environment.js +14 -18
  666. package/dist/utils/index.js +36 -36
  667. package/dist/utils/json.js +34 -58
  668. package/dist/utils/lodash.js +63 -109
  669. package/dist/utils/riseInput.js +19 -36
  670. package/dist/utils/time.js +640 -934
  671. package/dist/utils/type-check.js +21 -46
  672. package/dist/utils/utils.js +131 -235
  673. package/dist/utils-DaB7eSu5.js +48 -0
  674. package/package.json +5 -4
  675. package/src/chat/index.ts +18 -0
  676. package/src/components/BarrageInput/TextEditor/Editor.scss +2 -2
  677. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -1
  678. package/src/components/ChatSetting/ChatSetting.vue +3 -3
  679. package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +3 -0
  680. package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +1 -0
  681. package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +1 -0
  682. package/src/components/CoGuestPanel/CoGuestPanel.vue +2 -1
  683. package/src/components/CoHostPanel/BattlePanel.vue +271 -0
  684. package/src/components/CoHostPanel/CoHostPanel.vue +226 -0
  685. package/src/components/CoHostPanel/ConfigSettingPanel.vue +264 -0
  686. package/src/components/CoHostPanel/ConnectionPanel.vue +549 -0
  687. package/src/components/CoHostPanel/RecommendHostList.vue +306 -0
  688. package/src/components/CoHostPanel/UserList.vue +93 -0
  689. package/src/components/CoHostPanel/i18n/en-US/index.ts +78 -0
  690. package/src/components/CoHostPanel/i18n/index.ts +4 -0
  691. package/src/components/CoHostPanel/i18n/zh-CN/index.ts +79 -0
  692. package/src/components/CoHostPanel/index.ts +7 -0
  693. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
  694. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -0
  695. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +1 -1
  696. package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
  697. package/src/components/LiveList/LiveList.vue +61 -106
  698. package/src/components/LiveList/LiveListH5.vue +1 -1
  699. package/src/components/LiveList/i18n/en-US/index.ts +1 -1
  700. package/src/components/LiveList/i18n/zh-CN/index.ts +1 -1
  701. package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +420 -0
  702. package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +140 -0
  703. package/src/components/LiveView/CoreViewDecorate/CoHostDecorate.vue +116 -0
  704. package/src/components/LiveView/CoreViewDecorate/LiveCoreDecorate.vue +70 -0
  705. package/src/components/LiveView/PlayerControl/MultiResolution.vue +130 -0
  706. package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +10 -8
  707. package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.ts +117 -1
  708. package/src/components/LiveView/assets/img/defeat.png +0 -0
  709. package/src/components/LiveView/assets/img/draw.png +0 -0
  710. package/src/components/LiveView/assets/img/victory.png +0 -0
  711. package/src/components/LiveView/assets/svg/BattleOrdinaryBadge.svg +20 -0
  712. package/src/components/LiveView/assets/svg/BattleTopBadge.svg +16 -0
  713. package/src/components/LiveView/assets/svg/blueBkg.svg +9 -0
  714. package/src/components/LiveView/assets/svg/redBkg.svg +9 -0
  715. package/src/components/LiveView/assets/svg/s.svg +17 -0
  716. package/src/components/LiveView/assets/svg/v.svg +17 -0
  717. package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +7 -0
  718. package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +7 -0
  719. package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
  720. package/src/components/{LiveCoreView → LiveView}/index.vue +5 -2
  721. package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +10 -8
  722. package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +59 -31
  723. package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +58 -31
  724. package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +58 -31
  725. package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +240 -0
  726. package/src/components/MessageInput/AudioCallPicker/index.ts +3 -0
  727. package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +107 -18
  728. package/src/components/MessageInput/MessageInput.module.scss +1 -1
  729. package/src/components/MessageInput/MessageInput.vue +6 -2
  730. package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +246 -0
  731. package/src/components/MessageInput/VideoCallPicker/index.ts +3 -0
  732. package/src/components/MessageInput/i18n/en-US.ts +4 -0
  733. package/src/components/MessageInput/index.ts +10 -4
  734. package/src/components/MessageInput/types.d.ts +3 -1
  735. package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +67 -0
  736. package/src/components/MessageList/Message/CustomMessage/CallMessage/index.ts +3 -0
  737. package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +59 -2
  738. package/src/components/MessageList/Message/CustomMessage/index.ts +1 -1
  739. package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +9 -10
  740. package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +1 -1
  741. package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +1 -1
  742. package/src/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
  743. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +30 -18
  744. package/src/components/MessageList/i18n/en-US.ts +24 -1
  745. package/src/components/MessageList/i18n/index.ts +4 -4
  746. package/src/components/MessageList/i18n/zh-CN.ts +24 -1
  747. package/src/components/MessageList/index.ts +2 -2
  748. package/src/components/StreamMixer/index.vue +1 -1
  749. package/src/components/UserPicker/UserPicker.vue +0 -2
  750. package/src/hooks/index.ts +1 -2
  751. package/src/hooks/useMessageActions.ts +3 -3
  752. package/src/index.ts +2 -1
  753. package/src/rtc/index.ts +7 -2
  754. package/src/types/battle.ts +12 -0
  755. package/src/types/call.ts +62 -0
  756. package/src/types/coHost.ts +46 -4
  757. package/src/types/device.ts +5 -0
  758. package/src/types/engine.ts +45 -21
  759. package/src/types/index.ts +12 -6
  760. package/src/types/seat.ts +5 -5
  761. package/src/types/user.ts +0 -4
  762. package/src/utils/call.ts +233 -5
  763. package/src/utils/time.ts +1 -1
  764. package/dist/AttachmentPicker.module-BesmtGyl.js +0 -11
  765. package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-BmX-qsat.js +0 -108
  766. package/dist/DialogPortal-DWeT-J6v.js +0 -496
  767. package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +0 -76
  768. package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +0 -76
  769. package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-CVh4Regz.js +0 -43
  770. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js +0 -128
  771. package/dist/PopoverTrigger-BKOIHfdS.js +0 -679
  772. package/dist/PopperContent-DtL7HVWz.js +0 -2227
  773. package/dist/Teleport-CMvGsENT.js +0 -1365
  774. package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +0 -76
  775. package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-CnE-LwNh.js +0 -108
  776. package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
  777. package/dist/_plugin-vue_export-helper-1tPrXgE0.js +0 -10
  778. package/dist/components/LiveCoreView/DefaultStreamViewUI.js +0 -177
  779. package/dist/components/LiveCoreView/PlayerControl/AudioControl.js +0 -252
  780. package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +0 -279
  781. package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +0 -412
  782. package/dist/components/LiveCoreView/PlayerControl/index.js +0 -8
  783. package/dist/components/LiveCoreView/PlayerControl/utils/deviceDetection.js +0 -129
  784. package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +0 -120
  785. package/dist/components/LiveCoreView/PlayerControl/utils/fullscreenManager.js +0 -311
  786. package/dist/components/LiveCoreView/i18n/en-US/index.js +0 -16
  787. package/dist/components/LiveCoreView/i18n/index.js +0 -6
  788. package/dist/components/LiveCoreView/i18n/zh-CN/index.js +0 -16
  789. package/dist/components/LiveCoreView/index.d.ts +0 -4
  790. package/dist/components/LiveCoreView/index.js +0 -366
  791. package/dist/index-BF6QB9jF.js +0 -63
  792. package/dist/index-BPFJrNlA.js +0 -15915
  793. package/dist/index-CX1Zs9En.js +0 -44
  794. package/dist/index-DRcLhqhU.js +0 -38
  795. package/dist/index-v15JHz0-.js +0 -7655
  796. package/dist/index.vue_vue_type_script_setup_true_lang-EcKm3pYY.js +0 -36
  797. package/dist/states/CoHostState.d.ts +0 -22
  798. package/dist/states/CoHostState.js +0 -178
  799. package/dist/useId-CsgLY8y3.js +0 -13
  800. package/dist/utils-KP1QpeUS.js +0 -59
  801. package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +0 -28
  802. /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
  803. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue.d.ts +0 -0
  804. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue.d.ts +0 -0
  805. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.d.ts +0 -0
  806. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.d.ts +0 -0
  807. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +0 -0
  808. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
  809. /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
  810. /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
  811. /package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +0 -0
  812. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue +0 -0
  813. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.module.scss +0 -0
  814. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/index.ts +0 -0
  815. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.ts +0 -0
  816. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.ts +0 -0
  817. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
  818. /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
@@ -1,456 +1,298 @@
1
- import { ref } from "vue";
2
- import { TUIStore, StoreName, TUIChatEngine, TUIGroupService } from "@tencentcloud/chat-uikit-engine";
3
- import { FULL_PERMISSION_MATRIX } from "./permissions.js";
4
- import { GroupInviteType, GroupMemberRole } from "./types.js";
5
- import { GroupPermission, GroupType } from "./types.js";
6
- const currentConversationRef = ref(void 0);
7
- const groupIDRef = ref(void 0);
8
- const groupTypeRef = ref(void 0);
9
- const groupNameRef = ref(void 0);
10
- const avatarRef = ref(void 0);
11
- const introductionRef = ref(void 0);
12
- const notificationRef = ref(void 0);
13
- const isMutedRef = ref(void 0);
14
- const isPinnedRef = ref(void 0);
15
- const groupOwnerRef = ref(void 0);
16
- const adminMembersRef = ref([]);
17
- const allMembersRef = ref([]);
18
- const memberCountRef = ref(void 0);
19
- const maxMemberCountRef = ref(void 0);
20
- const currentUserIDRef = ref(void 0);
21
- const currentUserRoleRef = ref(void 0);
22
- const nameCardRef = ref(void 0);
23
- const isMuteAllMembersRef = ref(void 0);
24
- const isInGroupRef = ref(void 0);
25
- const inviteOptionRef = ref(void 0);
26
- async function getGroupMemberList(params) {
27
- var _a;
28
- const targetGroupID = (params == null ? void 0 : params.groupID) || groupIDRef.value;
29
- if (!targetGroupID) {
1
+ import { ref as o } from "vue";
2
+ import { TUIStore as Y, StoreName as j, TUIChatEngine as q, TUIGroupService as s } from "@tencentcloud/chat-uikit-engine";
3
+ import { FULL_PERMISSION_MATRIX as U } from "./permissions.js";
4
+ import { GroupInviteType as R, GroupMemberRole as D } from "./types.js";
5
+ import { GroupPermission as ge, GroupType as Ge } from "./types.js";
6
+ const f = o(void 0), i = o(void 0), p = o(void 0), G = o(void 0), h = o(void 0), M = o(void 0), b = o(void 0), m = o(void 0), O = o(void 0), y = o(void 0), g = o([]), l = o([]), k = o(void 0), x = o(void 0), d = o(void 0), N = o(void 0), S = o(void 0), T = o(void 0), C = o(void 0), w = o(void 0);
7
+ async function L(e) {
8
+ var v;
9
+ const r = (e == null ? void 0 : e.groupID) || i.value;
10
+ if (!r)
30
11
  throw new Error("getGroupMemberList::groupID is required");
31
- }
32
- const result = await TUIGroupService.getGroupMemberList({
33
- groupID: targetGroupID,
34
- count: (params == null ? void 0 : params.count) || 100,
35
- offset: (params == null ? void 0 : params.offset) || 0
12
+ const t = await s.getGroupMemberList({
13
+ groupID: r,
14
+ count: (e == null ? void 0 : e.count) || 100,
15
+ offset: (e == null ? void 0 : e.offset) || 0
36
16
  });
37
- if ((_a = result == null ? void 0 : result.data) == null ? void 0 : _a.memberList) {
38
- const newMembers = result.data.memberList.map((member) => ({
39
- userID: member.userID,
40
- nick: member.nick || member.userID,
41
- avatar: member.avatar || "",
42
- role: member.role,
43
- joinTime: member.joinTime,
44
- muteUntil: member.muteUntil || "",
45
- memberCustomField: member.memberCustomField || ""
17
+ if ((v = t == null ? void 0 : t.data) != null && v.memberList) {
18
+ const n = t.data.memberList.map((u) => ({
19
+ userID: u.userID,
20
+ nick: u.nick || u.userID,
21
+ avatar: u.avatar || "",
22
+ role: u.role,
23
+ joinTime: u.joinTime,
24
+ muteUntil: u.muteUntil || "",
25
+ memberCustomField: u.memberCustomField || ""
26
+ })), c = l.value || [], I = (e == null ? void 0 : e.offset) || 0;
27
+ let a;
28
+ I === 0 ? a = n : (a = [...c], n.forEach((u, _) => {
29
+ const P = I + _;
30
+ P < a.length ? a[P] = u : a.push(u);
46
31
  }));
47
- const currentMembers = allMembersRef.value || [];
48
- const offset = (params == null ? void 0 : params.offset) || 0;
49
- let updatedMembers;
50
- if (offset === 0) {
51
- updatedMembers = newMembers;
52
- } else {
53
- updatedMembers = [...currentMembers];
54
- newMembers.forEach((newMember, index) => {
55
- const targetIndex = offset + index;
56
- if (targetIndex < updatedMembers.length) {
57
- updatedMembers[targetIndex] = newMember;
58
- } else {
59
- updatedMembers.push(newMember);
60
- }
61
- });
62
- }
63
- const owner = updatedMembers.find((member) => member.role === GroupMemberRole.OWNER);
64
- const admins = updatedMembers.filter((member) => member.role === GroupMemberRole.ADMIN);
65
- if (owner) {
66
- groupOwnerRef.value = owner;
67
- }
68
- adminMembersRef.value = admins;
69
- allMembersRef.value = updatedMembers;
70
- return updatedMembers;
32
+ const E = a.find((u) => u.role === D.OWNER), A = a.filter((u) => u.role === D.ADMIN);
33
+ return E && (y.value = E), g.value = A, l.value = a, a;
71
34
  }
72
35
  throw new Error("getGroupMemberList::getGroupMemberList failed");
73
36
  }
74
- async function updateGroupProfile(params) {
75
- const targetGroupID = params.groupID || groupIDRef.value;
76
- if (!targetGroupID) {
37
+ async function X(e) {
38
+ const r = e.groupID || i.value;
39
+ if (!r)
77
40
  throw new Error("updateGroupProfile::groupID is required");
78
- }
79
- const updateParams = { groupID: targetGroupID };
80
- if (params.name !== void 0) {
81
- if (typeof params.name !== "string") {
41
+ const t = { groupID: r };
42
+ if (e.name !== void 0) {
43
+ if (typeof e.name != "string")
82
44
  throw new Error("updateGroupProfile::name must be a string");
83
- }
84
- if (params.name.length === 0) {
45
+ if (e.name.length === 0)
85
46
  throw new Error("updateGroupProfile::name cannot be empty");
86
- }
87
- if (params.name.length > 30) {
47
+ if (e.name.length > 30)
88
48
  throw new Error("updateGroupProfile::name must be less than or equal to 25 characters");
89
- }
90
- if (params.name === groupNameRef.value) {
49
+ if (e.name === G.value)
91
50
  throw new Error("updateGroupProfile::name cannot be the same as current value");
92
- }
93
- updateParams.name = params.name;
51
+ t.name = e.name;
94
52
  }
95
- if (params.introduction !== void 0) {
96
- if (typeof params.introduction !== "string") {
53
+ if (e.introduction !== void 0) {
54
+ if (typeof e.introduction != "string")
97
55
  throw new Error("updateGroupProfile::introduction must be a string");
98
- }
99
- if (params.introduction.length > 130) {
56
+ if (e.introduction.length > 130)
100
57
  throw new Error("updateGroupProfile::introduction must be less than 100 characters");
101
- }
102
- if (params.introduction === introductionRef.value) {
58
+ if (e.introduction === M.value)
103
59
  throw new Error("updateGroupProfile::introduction cannot be the same as current value");
104
- }
105
- updateParams.introduction = params.introduction;
60
+ t.introduction = e.introduction;
106
61
  }
107
- if (params.notification !== void 0) {
108
- if (typeof params.notification !== "string") {
62
+ if (e.notification !== void 0) {
63
+ if (typeof e.notification != "string")
109
64
  throw new Error("updateGroupProfile::notification must be a string");
110
- }
111
- if (params.notification.length > 130) {
65
+ if (e.notification.length > 130)
112
66
  throw new Error("updateGroupProfile::notification must be less than 100 characters");
113
- }
114
- if (params.notification === notificationRef.value) {
67
+ if (e.notification === b.value)
115
68
  throw new Error("updateGroupProfile::notification cannot be the same as current value");
116
- }
117
- updateParams.notification = params.notification;
69
+ t.notification = e.notification;
118
70
  }
119
- if (params.avatar !== void 0) {
120
- if (typeof params.avatar !== "string") {
71
+ if (e.avatar !== void 0) {
72
+ if (typeof e.avatar != "string")
121
73
  throw new Error("updateGroupProfile::avatar must be a string");
122
- }
123
- if (params.avatar.length > 500) {
74
+ if (e.avatar.length > 500)
124
75
  throw new Error("updateGroupProfile::avatar must be less than 500 characters");
125
- }
126
- if (params.avatar === avatarRef.value) {
76
+ if (e.avatar === h.value)
127
77
  throw new Error("updateGroupProfile::avatar cannot be the same as current value");
128
- }
129
- updateParams.avatar = params.avatar;
130
- }
131
- await TUIGroupService.updateGroupProfile(updateParams);
132
- if (params.name !== void 0) {
133
- groupNameRef.value = params.name;
134
- }
135
- if (params.introduction !== void 0) {
136
- introductionRef.value = params.introduction;
137
- }
138
- if (params.notification !== void 0) {
139
- notificationRef.value = params.notification;
140
- }
141
- if (params.avatar !== void 0) {
142
- avatarRef.value = params.avatar;
78
+ t.avatar = e.avatar;
143
79
  }
80
+ await s.updateGroupProfile(t), e.name !== void 0 && (G.value = e.name), e.introduction !== void 0 && (M.value = e.introduction), e.notification !== void 0 && (b.value = e.notification), e.avatar !== void 0 && (h.value = e.avatar);
144
81
  }
145
- async function addGroupMember(params) {
146
- const targetGroupID = params.groupID || groupIDRef.value;
147
- if (!targetGroupID) {
82
+ async function z(e) {
83
+ const r = e.groupID || i.value;
84
+ if (!r)
148
85
  throw new Error("addGroupMember::groupID is required");
149
- }
150
- const result = await TUIGroupService.addGroupMember({
151
- groupID: targetGroupID,
152
- userIDList: params.userIDList
86
+ const t = await s.addGroupMember({
87
+ groupID: r,
88
+ userIDList: e.userIDList
153
89
  });
154
- getGroupMemberList({ count: 100 });
155
- return result;
90
+ return L({ count: 100 }), t;
156
91
  }
157
- async function deleteGroupMember(params) {
158
- var _a, _b;
159
- const targetGroupID = params.groupID || groupIDRef.value;
160
- if (!targetGroupID) {
92
+ async function H(e) {
93
+ var n, c;
94
+ const r = e.groupID || i.value;
95
+ if (!r)
161
96
  throw new Error("deleteGroupMember::groupID is required");
162
- }
163
- await TUIGroupService.deleteGroupMember({
164
- groupID: targetGroupID,
165
- userIDList: params.userIDList
97
+ await s.deleteGroupMember({
98
+ groupID: r,
99
+ userIDList: e.userIDList
166
100
  });
167
- const newAllMembers = (_a = allMembersRef.value) == null ? void 0 : _a.filter((member) => !params.userIDList.includes(member.userID));
168
- const newAdminMembers = (_b = adminMembersRef.value) == null ? void 0 : _b.filter((member) => !params.userIDList.includes(member.userID));
169
- allMembersRef.value = newAllMembers;
170
- adminMembersRef.value = newAdminMembers;
101
+ const t = (n = l.value) == null ? void 0 : n.filter((I) => !e.userIDList.includes(I.userID)), v = (c = g.value) == null ? void 0 : c.filter((I) => !e.userIDList.includes(I.userID));
102
+ l.value = t, g.value = v;
171
103
  }
172
- async function changeGroupOwner(params) {
173
- const targetGroupID = params.groupID || groupIDRef.value;
174
- if (!targetGroupID) {
175
- return;
176
- }
177
- await TUIGroupService.changeGroupOwner({
178
- groupID: targetGroupID,
179
- newOwnerID: params.newOwnerID
104
+ async function K(e) {
105
+ const r = e.groupID || i.value;
106
+ r && await s.changeGroupOwner({
107
+ groupID: r,
108
+ newOwnerID: e.newOwnerID
180
109
  });
181
110
  }
182
- async function setGroupMemberRole(params) {
183
- const targetGroupID = params.groupID || groupIDRef.value;
184
- if (!targetGroupID) {
185
- return;
186
- }
187
- await TUIGroupService.setGroupMemberRole({
188
- groupID: targetGroupID,
189
- userID: params.userID,
190
- role: params.role
191
- });
192
- getGroupMemberList({ count: 100 });
111
+ async function Q(e) {
112
+ const r = e.groupID || i.value;
113
+ r && (await s.setGroupMemberRole({
114
+ groupID: r,
115
+ userID: e.userID,
116
+ role: e.role
117
+ }), L({ count: 100 }));
193
118
  }
194
- async function setGroupMemberNameCard(params) {
195
- const targetGroupID = params.groupID || groupIDRef.value;
196
- if (!targetGroupID || !currentUserIDRef.value) {
197
- return;
198
- }
199
- nameCardRef.value = params.nameCard;
200
- await TUIGroupService.setGroupMemberNameCard({
201
- groupID: targetGroupID,
202
- userID: params.userID || currentUserIDRef.value,
203
- nameCard: params.nameCard
204
- });
119
+ async function Z(e) {
120
+ const r = e.groupID || i.value;
121
+ !r || !d.value || (S.value = e.nameCard, await s.setGroupMemberNameCard({
122
+ groupID: r,
123
+ userID: e.userID || d.value,
124
+ nameCard: e.nameCard
125
+ }));
205
126
  }
206
- async function setChatPinned(value) {
207
- if (!currentConversationRef.value) {
127
+ async function ee(e) {
128
+ if (!f.value)
208
129
  throw new Error("setChatPinned::currentConversation is required");
209
- }
210
- if (value !== currentConversationRef.value.isPinned) {
211
- isPinnedRef.value = value;
212
- await currentConversationRef.value.pinConversation();
213
- }
130
+ e !== f.value.isPinned && (O.value = e, await f.value.pinConversation());
214
131
  }
215
- async function setChatMuted(value) {
216
- if (!currentConversationRef.value) {
132
+ async function re(e) {
133
+ if (!f.value)
217
134
  throw new Error("setChatMuted::currentConversation is required");
218
- }
219
- if (value !== currentConversationRef.value.isMuted) {
220
- isMutedRef.value = value;
135
+ if (e !== f.value.isMuted) {
136
+ m.value = e;
221
137
  try {
222
- await currentConversationRef.value.muteConversation();
223
- } catch (error) {
224
- isMutedRef.value = !value;
225
- throw error;
138
+ await f.value.muteConversation();
139
+ } catch (r) {
140
+ throw m.value = !e, r;
226
141
  }
227
142
  }
228
143
  }
229
- async function setGroupMemberMuteTime(params) {
230
- const targetGroupID = params.groupID || groupIDRef.value;
231
- if (!targetGroupID) {
144
+ async function oe(e) {
145
+ const r = e.groupID || i.value;
146
+ if (!r)
232
147
  throw new Error("setGroupMemberMuteTime::groupID is required");
233
- }
234
- await TUIGroupService.setGroupMemberMuteTime({
235
- groupID: targetGroupID,
236
- userID: params.userID,
237
- muteTime: params.time
238
- });
239
- getGroupMemberList({ count: 100 });
148
+ await s.setGroupMemberMuteTime({
149
+ groupID: r,
150
+ userID: e.userID,
151
+ muteTime: e.time
152
+ }), L({ count: 100 });
240
153
  }
241
- async function setMuteAllMember(value) {
242
- if (!groupIDRef.value) {
154
+ async function te(e) {
155
+ if (!i.value)
243
156
  throw new Error("setMuteAllMember::groupID is required");
244
- }
245
- await TUIGroupService.updateGroupProfile({
246
- groupID: groupIDRef.value,
247
- muteAllMembers: value
248
- });
249
- isMuteAllMembersRef.value = value;
157
+ await s.updateGroupProfile({
158
+ groupID: i.value,
159
+ muteAllMembers: e
160
+ }), T.value = e;
250
161
  }
251
- async function dismissGroup(groupID) {
252
- const targetGroupID = groupID || groupIDRef.value;
253
- if (!targetGroupID) {
162
+ async function ue(e) {
163
+ const r = e || i.value;
164
+ if (!r)
254
165
  throw new Error("dismissGroup::groupID is required");
255
- }
256
- await TUIGroupService.dismissGroup(targetGroupID);
166
+ await s.dismissGroup(r);
257
167
  }
258
- async function quitGroup(groupID) {
259
- const targetGroupID = groupID || groupIDRef.value;
260
- if (!targetGroupID) {
168
+ async function ie(e) {
169
+ const r = e || i.value;
170
+ if (!r)
261
171
  throw new Error("quitGroup::groupID is required");
262
- }
263
- await TUIGroupService.quitGroup(targetGroupID);
172
+ await s.quitGroup(r);
264
173
  }
265
- function hasPermission(permission, role, groupType) {
266
- const targetGroupType = groupType || groupTypeRef.value;
267
- const targetUserRole = role || currentUserRoleRef.value || GroupMemberRole.COMMON;
268
- if (!targetGroupType || !targetUserRole) {
174
+ function ne(e, r, t) {
175
+ const v = t || p.value, n = r || N.value || D.COMMON;
176
+ if (!v || !n)
269
177
  throw new Error("hasPermission::groupType or userRole is required");
270
- }
271
- const _hasPermission = FULL_PERMISSION_MATRIX[targetGroupType][targetUserRole][permission];
272
- if (typeof _hasPermission !== "boolean") {
273
- throw new Error(`hasPermission::${permission}-${targetGroupType}-${targetUserRole} is not defined`);
274
- }
275
- return _hasPermission;
178
+ const c = U[v][n][e];
179
+ if (typeof c != "boolean")
180
+ throw new Error(`hasPermission::${e}-${v}-${n} is not defined`);
181
+ return c;
276
182
  }
277
- function canOperateOnMember(targetMember) {
278
- if (!currentUserIDRef.value || !allMembersRef.value) {
279
- return false;
280
- }
281
- const currentUser = allMembersRef.value.find((member) => member.userID === currentUserIDRef.value);
282
- if (!currentUser) {
283
- return false;
284
- }
285
- if (currentUser.userID === targetMember.userID) {
286
- return false;
287
- }
288
- if (currentUser.role === GroupMemberRole.OWNER) {
289
- return true;
290
- }
291
- if (currentUser.role === GroupMemberRole.ADMIN) {
292
- return targetMember.role === GroupMemberRole.COMMON;
293
- }
294
- return false;
183
+ function ae(e) {
184
+ if (!d.value || !l.value)
185
+ return !1;
186
+ const r = l.value.find((t) => t.userID === d.value);
187
+ return !r || r.userID === e.userID ? !1 : r.role === D.OWNER ? !0 : r.role === D.ADMIN ? e.role === D.COMMON : !1;
295
188
  }
296
- function getAvailablePermissions() {
297
- if (!groupTypeRef.value || !currentUserIDRef.value || !allMembersRef.value) {
189
+ function le() {
190
+ if (!p.value || !d.value || !l.value)
298
191
  return [];
299
- }
300
- const currentUser = allMembersRef.value.find((member) => member.userID === currentUserIDRef.value);
301
- if (!currentUser) {
302
- return [];
303
- }
304
- return FULL_PERMISSION_MATRIX[groupTypeRef.value][currentUser.role] ? Object.keys(FULL_PERMISSION_MATRIX[groupTypeRef.value][currentUser.role]) : [];
192
+ const e = l.value.find((r) => r.userID === d.value);
193
+ return e ? U[p.value][e.role] ? Object.keys(U[p.value][e.role]) : [] : [];
305
194
  }
306
- function reset() {
307
- currentConversationRef.value = void 0;
308
- groupIDRef.value = void 0;
309
- groupTypeRef.value = void 0;
310
- groupNameRef.value = void 0;
311
- avatarRef.value = void 0;
312
- introductionRef.value = void 0;
313
- notificationRef.value = void 0;
314
- isMutedRef.value = void 0;
315
- isPinnedRef.value = void 0;
316
- groupOwnerRef.value = void 0;
317
- adminMembersRef.value = [];
318
- allMembersRef.value = [];
319
- memberCountRef.value = void 0;
320
- maxMemberCountRef.value = void 0;
321
- currentUserIDRef.value = void 0;
322
- currentUserRoleRef.value = void 0;
323
- nameCardRef.value = void 0;
324
- isMuteAllMembersRef.value = void 0;
325
- isInGroupRef.value = void 0;
326
- inviteOptionRef.value = void 0;
195
+ function se() {
196
+ f.value = void 0, i.value = void 0, p.value = void 0, G.value = void 0, h.value = void 0, M.value = void 0, b.value = void 0, m.value = void 0, O.value = void 0, y.value = void 0, g.value = [], l.value = [], k.value = void 0, x.value = void 0, d.value = void 0, N.value = void 0, S.value = void 0, T.value = void 0, C.value = void 0, w.value = void 0;
327
197
  }
328
- function initWatcher() {
329
- TUIStore.watch(StoreName.CONV, {
330
- currentConversation: (conversation) => {
331
- var _a;
332
- if (conversation && conversation.type === "GROUP") {
333
- const prevConversationID = (_a = currentConversationRef.value) == null ? void 0 : _a.conversationID;
334
- if (prevConversationID !== conversation.conversationID) {
335
- allMembersRef.value = void 0;
336
- adminMembersRef.value = void 0;
337
- groupOwnerRef.value = void 0;
338
- }
339
- currentConversationRef.value = conversation;
198
+ function ve() {
199
+ Y.watch(j.CONV, {
200
+ currentConversation: (e) => {
201
+ var r;
202
+ if (e && e.type === "GROUP") {
203
+ ((r = f.value) == null ? void 0 : r.conversationID) !== e.conversationID && (l.value = void 0, g.value = void 0, y.value = void 0), f.value = e;
340
204
  const {
341
205
  groupProfile: {
342
- groupID,
343
- name,
344
- avatar,
345
- introduction,
346
- muteAllMembers,
347
- memberCount,
348
- maxMemberCount,
349
- notification,
350
- type,
351
- inviteOption,
206
+ groupID: v,
207
+ name: n,
208
+ avatar: c,
209
+ introduction: I,
210
+ muteAllMembers: a,
211
+ memberCount: E,
212
+ maxMemberCount: A,
213
+ notification: u,
214
+ type: _,
215
+ inviteOption: P,
352
216
  selfInfo: {
353
- role,
354
- userID,
355
- nameCard
217
+ role: B,
218
+ userID: J,
219
+ nameCard: W
356
220
  }
357
221
  },
358
- isMuted,
359
- isPinned,
360
- operationType
361
- } = conversation;
362
- groupIDRef.value = groupID;
363
- groupTypeRef.value = type;
364
- groupNameRef.value = name;
365
- avatarRef.value = avatar;
366
- introductionRef.value = introduction;
367
- isMutedRef.value = isMuted;
368
- isPinnedRef.value = isPinned;
369
- isMuteAllMembersRef.value = muteAllMembers;
370
- memberCountRef.value = memberCount;
371
- currentUserIDRef.value = userID;
372
- currentUserRoleRef.value = role;
373
- nameCardRef.value = nameCard;
374
- maxMemberCountRef.value = maxMemberCount;
375
- notificationRef.value = notification;
376
- switch (inviteOption) {
377
- case TUIChatEngine.TYPES.JOIN_OPTIONS_FREE_ACCESS:
378
- inviteOptionRef.value = GroupInviteType.FREE_ACCESS;
222
+ isMuted: $,
223
+ isPinned: V,
224
+ operationType: F
225
+ } = e;
226
+ switch (i.value = v, p.value = _, G.value = n, h.value = c, M.value = I, m.value = $, O.value = V, T.value = a, k.value = E, d.value = J, N.value = B, S.value = W, x.value = A, b.value = u, P) {
227
+ case q.TYPES.JOIN_OPTIONS_FREE_ACCESS:
228
+ w.value = R.FREE_ACCESS;
379
229
  break;
380
- case TUIChatEngine.TYPES.JOIN_OPTIONS_NEED_PERMISSION:
381
- inviteOptionRef.value = GroupInviteType.NEED_PERMISSION;
230
+ case q.TYPES.JOIN_OPTIONS_NEED_PERMISSION:
231
+ w.value = R.NEED_PERMISSION;
382
232
  break;
383
- case TUIChatEngine.TYPES.JOIN_OPTIONS_DISABLE_INVITE:
384
- inviteOptionRef.value = GroupInviteType.DISABLE_APPLY;
233
+ case q.TYPES.JOIN_OPTIONS_DISABLE_INVITE:
234
+ w.value = R.DISABLE_APPLY;
385
235
  break;
386
236
  default:
387
- inviteOptionRef.value = GroupInviteType.DISABLE_APPLY;
388
- }
389
- if ([4, 5, 8].includes(operationType)) {
390
- isInGroupRef.value = false;
391
- } else if (operationType === 0) {
392
- isInGroupRef.value = true;
237
+ w.value = R.DISABLE_APPLY;
393
238
  }
394
- } else {
395
- reset();
396
- }
239
+ [4, 5, 8].includes(F) ? C.value = !1 : F === 0 && (C.value = !0);
240
+ } else
241
+ se();
397
242
  }
398
- });
399
- TUIStore.watch(StoreName.GRP, {
400
- groupProfile: (groupProfile) => {
401
- if (typeof groupProfile === "object" && groupProfile && "groupID" in groupProfile) {
402
- groupIDRef.value = groupProfile.groupID;
403
- }
243
+ }), Y.watch(j.GRP, {
244
+ groupProfile: (e) => {
245
+ typeof e == "object" && e && "groupID" in e && (i.value = e.groupID);
404
246
  }
405
247
  });
406
248
  }
407
- initWatcher();
408
- function useGroupSettingState() {
249
+ ve();
250
+ function pe() {
409
251
  return {
410
252
  // State
411
- groupID: groupIDRef,
412
- groupType: groupTypeRef,
413
- groupName: groupNameRef,
414
- avatar: avatarRef,
415
- introduction: introductionRef,
416
- notification: notificationRef,
417
- isMuted: isMutedRef,
418
- isPinned: isPinnedRef,
419
- groupOwner: groupOwnerRef,
420
- adminMembers: adminMembersRef,
421
- allMembers: allMembersRef,
422
- memberCount: memberCountRef,
423
- maxMemberCount: maxMemberCountRef,
424
- currentUserID: currentUserIDRef,
425
- currentUserRole: currentUserRoleRef,
426
- nameCard: nameCardRef,
427
- isMuteAllMembers: isMuteAllMembersRef,
428
- isInGroup: isInGroupRef,
429
- inviteOption: inviteOptionRef,
253
+ groupID: i,
254
+ groupType: p,
255
+ groupName: G,
256
+ avatar: h,
257
+ introduction: M,
258
+ notification: b,
259
+ isMuted: m,
260
+ isPinned: O,
261
+ groupOwner: y,
262
+ adminMembers: g,
263
+ allMembers: l,
264
+ memberCount: k,
265
+ maxMemberCount: x,
266
+ currentUserID: d,
267
+ currentUserRole: N,
268
+ nameCard: S,
269
+ isMuteAllMembers: T,
270
+ isInGroup: C,
271
+ inviteOption: w,
430
272
  // Permission utilities
431
- hasPermission,
432
- canOperateOnMember,
433
- getAvailablePermissions,
273
+ hasPermission: ne,
274
+ canOperateOnMember: ae,
275
+ getAvailablePermissions: le,
434
276
  // Business actions
435
- getGroupMemberList,
436
- updateGroupProfile,
437
- addGroupMember,
438
- deleteGroupMember,
439
- changeGroupOwner,
440
- setGroupMemberRole,
441
- setGroupMemberNameCard,
442
- setChatPinned,
443
- setChatMuted,
444
- setGroupMemberMuteTime,
445
- setMuteAllMember,
446
- dismissGroup,
447
- quitGroup
277
+ getGroupMemberList: L,
278
+ updateGroupProfile: X,
279
+ addGroupMember: z,
280
+ deleteGroupMember: H,
281
+ changeGroupOwner: K,
282
+ setGroupMemberRole: Q,
283
+ setGroupMemberNameCard: Z,
284
+ setChatPinned: ee,
285
+ setChatMuted: re,
286
+ setGroupMemberMuteTime: oe,
287
+ setMuteAllMember: te,
288
+ dismissGroup: ue,
289
+ quitGroup: ie
448
290
  };
449
291
  }
450
292
  export {
451
- GroupInviteType,
452
- GroupMemberRole,
453
- GroupPermission,
454
- GroupType,
455
- useGroupSettingState
293
+ R as GroupInviteType,
294
+ D as GroupMemberRole,
295
+ ge as GroupPermission,
296
+ Ge as GroupType,
297
+ pe as useGroupSettingState
456
298
  };