@tencent-rtc/mcp 1.0.9 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/README.md +5 -1
  2. package/index.js +2 -0
  3. package/index.js.map +1 -1
  4. package/libs/TLSSigAPIv2.d.ts +134 -0
  5. package/libs/TLSSigAPIv2.js +243 -0
  6. package/package.json +1 -1
  7. package/resource/doc/chatuikit/react/chat_window_integration.md +95 -0
  8. package/resource/doc/chatuikit/react/integration.md +30 -18
  9. package/resource/doc/chatuikit/vue/chat_window_integration.md +155 -0
  10. package/resource/doc/chatuikit/vue/components/chat.md +8 -0
  11. package/resource/doc/chatuikit/vue/components/chatheader.md +1 -1
  12. package/resource/doc/chatuikit/vue/components/conversation-list.md +5 -0
  13. package/resource/doc/chatuikit/vue/components/message-input.md +4 -1
  14. package/resource/doc/chatuikit/vue/init.md +40 -0
  15. package/resource/doc/chatuikit/vue/integration.md +34 -74
  16. package/resource/doc/livekit/vue/components/barrage.md +616 -0
  17. package/resource/doc/livekit/vue/components/broadcast.md +595 -0
  18. package/resource/doc/livekit/vue/components/co-guest-panel.md +130 -0
  19. package/resource/doc/livekit/vue/components/live-audience-list.md +282 -0
  20. package/resource/doc/livekit/vue/components/live-list.md +200 -0
  21. package/resource/doc/livekit/vue/components/live-player.md +269 -0
  22. package/resource/doc/livekit/vue/components/live-scene-panel.md +175 -0
  23. package/resource/doc/livekit/vue/components/live-view.md +398 -0
  24. package/resource/doc/livekit/vue/components/stream-mixer.md +446 -0
  25. package/resource/doc/livekit/vue/states/live-state.md +3591 -0
  26. package/resource/doc/roomkit/vue/states/device-state.md +369 -0
  27. package/resource/doc/roomkit/vue/states/login-state.md +59 -0
  28. package/resource/doc/roomkit/vue/states/room-list-state.md +355 -0
  29. package/resource/doc/roomkit/vue/states/room-participant-state.md +388 -0
  30. package/resource/doc/tuicallkit/react/api.md +1383 -0
  31. package/resource/doc/tuicallkit/react/integration.md +101 -0
  32. package/resource/doc/tuicallkit/vue/api.md +1385 -0
  33. package/resource/doc/tuicallkit/vue/integration.md +98 -0
  34. package/server-config.js +35 -0
  35. package/server-config.js.map +1 -0
  36. package/tools/call/get-web-call-api.js +31 -0
  37. package/tools/call/get-web-call-api.js.map +1 -0
  38. package/tools/call/get-web-call-integration.js +8 -10
  39. package/tools/call/get-web-call-integration.js.map +1 -1
  40. package/tools/chat/get-chat-faq.js +3 -3
  41. package/tools/chat/get-chat-faq.js.map +1 -1
  42. package/tools/chat/get-native-chat-integration.js +4 -4
  43. package/tools/chat/get-web-chat-component-detail.js +4 -3
  44. package/tools/chat/get-web-chat-component-detail.js.map +1 -1
  45. package/tools/chat/get-web-chat-integration.js +9 -9
  46. package/tools/chat/get-web-chat-integration.js.map +1 -1
  47. package/tools/chat/{get-web-chat-uikit-login.js → get-web-chat-uikit-init.js} +7 -7
  48. package/tools/chat/get-web-chat-uikit-init.js.map +1 -0
  49. package/tools/chat/get-web-chat-window-integration.js +37 -0
  50. package/tools/chat/get-web-chat-window-integration.js.map +1 -0
  51. package/tools/common/get-official-experience-account.js +52 -0
  52. package/tools/common/get-official-experience-account.js.map +1 -0
  53. package/tools/common/get-usersig.js +31 -26
  54. package/tools/common/get-usersig.js.map +1 -1
  55. package/tools/common/present-framework-choice.js +1 -1
  56. package/tools/common/record-prompt.js +5 -5
  57. package/tools/common/record-result.js +8 -7
  58. package/tools/common/record-result.js.map +1 -1
  59. package/tools/index.js +28 -9
  60. package/tools/index.js.map +1 -1
  61. package/tools/live/get-web-live-component-detail.js +34 -0
  62. package/tools/live/get-web-live-component-detail.js.map +1 -0
  63. package/tools/live/get-web-live-state-detail.js +34 -0
  64. package/tools/live/get-web-live-state-detail.js.map +1 -0
  65. package/tools/room/get-web-room-state-detail.js +34 -0
  66. package/tools/room/get-web-room-state-detail.js.map +1 -0
  67. package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js +35 -0
  68. package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js.map +1 -0
  69. package/tools/rtcengine/{get-rtcenigne-faq.js → get-trtc-web-sdk-faq.js} +5 -5
  70. package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +1 -0
  71. package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js +36 -0
  72. package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js.map +1 -0
  73. package/utils/generate-usersig.js +7 -9
  74. package/utils/generate-usersig.js.map +1 -1
  75. package/utils/handle-component-name.js +53 -8
  76. package/utils/handle-component-name.js.map +1 -1
  77. package/utils/handle-state-name.js +29 -0
  78. package/utils/handle-state-name.js.map +1 -0
  79. package/@tencent/aegis-node-sdk/CHANGELOG.md +0 -8
  80. package/@tencent/aegis-node-sdk/LICENSE +0 -21
  81. package/@tencent/aegis-node-sdk/README.md +0 -562
  82. package/@tencent/aegis-node-sdk/lib/aegis.min.js +0 -1
  83. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +0 -14
  84. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +0 -1
  85. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +0 -9
  86. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +0 -2
  87. package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +0 -85
  88. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +0 -3
  89. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +0 -9
  90. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +0 -3
  91. package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +0 -9
  92. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +0 -62
  93. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +0 -11
  94. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +0 -4
  95. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +0 -130
  96. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +0 -34
  97. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +0 -2
  98. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +0 -18
  99. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +0 -8
  100. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +0 -8
  101. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +0 -2
  102. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +0 -4
  103. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +0 -10
  104. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +0 -3
  105. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +0 -3
  106. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +0 -34
  107. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +0 -12
  108. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +0 -14
  109. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +0 -2
  110. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +0 -12
  111. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +0 -3
  112. package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +0 -33
  113. package/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
  114. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +0 -2
  115. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +0 -18
  116. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +0 -60
  117. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +0 -15
  118. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +0 -5
  119. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +0 -6
  120. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +0 -18
  121. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +0 -12
  122. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +0 -10
  123. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +0 -20
  124. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +0 -27
  125. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +0 -2
  126. package/@tencent/aegis-node-sdk/package.json +0 -19
  127. package/@tencent/polaris/README.md +0 -407
  128. package/@tencent/polaris/dist/consumer/health.d.ts +0 -126
  129. package/@tencent/polaris/dist/consumer/health.js +0 -283
  130. package/@tencent/polaris/dist/consumer/health.js.map +0 -1
  131. package/@tencent/polaris/dist/consumer/index.d.ts +0 -120
  132. package/@tencent/polaris/dist/consumer/index.js +0 -348
  133. package/@tencent/polaris/dist/consumer/index.js.map +0 -1
  134. package/@tencent/polaris/dist/consumer/monitor.d.ts +0 -145
  135. package/@tencent/polaris/dist/consumer/monitor.js +0 -343
  136. package/@tencent/polaris/dist/consumer/monitor.js.map +0 -1
  137. package/@tencent/polaris/dist/consumer/selector.d.ts +0 -73
  138. package/@tencent/polaris/dist/consumer/selector.js +0 -316
  139. package/@tencent/polaris/dist/consumer/selector.js.map +0 -1
  140. package/@tencent/polaris/dist/errors.d.ts +0 -373
  141. package/@tencent/polaris/dist/errors.js +0 -154
  142. package/@tencent/polaris/dist/errors.js.map +0 -1
  143. package/@tencent/polaris/dist/global.d.ts +0 -16
  144. package/@tencent/polaris/dist/global.js +0 -18
  145. package/@tencent/polaris/dist/global.js.map +0 -1
  146. package/@tencent/polaris/dist/index.d.ts +0 -62
  147. package/@tencent/polaris/dist/index.js +0 -145
  148. package/@tencent/polaris/dist/index.js.map +0 -1
  149. package/@tencent/polaris/dist/instance.d.ts +0 -109
  150. package/@tencent/polaris/dist/instance.js +0 -38
  151. package/@tencent/polaris/dist/instance.js.map +0 -1
  152. package/@tencent/polaris/dist/limiter/bucket.d.ts +0 -51
  153. package/@tencent/polaris/dist/limiter/bucket.js +0 -152
  154. package/@tencent/polaris/dist/limiter/bucket.js.map +0 -1
  155. package/@tencent/polaris/dist/limiter/index.d.ts +0 -73
  156. package/@tencent/polaris/dist/limiter/index.js +0 -149
  157. package/@tencent/polaris/dist/limiter/index.js.map +0 -1
  158. package/@tencent/polaris/dist/limiter/ratelimit.d.ts +0 -27
  159. package/@tencent/polaris/dist/limiter/ratelimit.js +0 -134
  160. package/@tencent/polaris/dist/limiter/ratelimit.js.map +0 -1
  161. package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +0 -17
  162. package/@tencent/polaris/dist/limiter/ratelimiter/base.js +0 -15
  163. package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +0 -1
  164. package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +0 -59
  165. package/@tencent/polaris/dist/limiter/ratelimiter/global.js +0 -397
  166. package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +0 -1
  167. package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +0 -3
  168. package/@tencent/polaris/dist/limiter/ratelimiter/index.js +0 -19
  169. package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +0 -1
  170. package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +0 -17
  171. package/@tencent/polaris/dist/limiter/ratelimiter/local.js +0 -52
  172. package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +0 -1
  173. package/@tencent/polaris/dist/location.d.ts +0 -48
  174. package/@tencent/polaris/dist/location.js +0 -67
  175. package/@tencent/polaris/dist/location.js.map +0 -1
  176. package/@tencent/polaris/dist/logging.d.ts +0 -106
  177. package/@tencent/polaris/dist/logging.js +0 -130
  178. package/@tencent/polaris/dist/logging.js.map +0 -1
  179. package/@tencent/polaris/dist/metadata.d.ts +0 -78
  180. package/@tencent/polaris/dist/metadata.js +0 -119
  181. package/@tencent/polaris/dist/metadata.js.map +0 -1
  182. package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +0 -47
  183. package/@tencent/polaris/dist/plugins/breaker/polaris.js +0 -162
  184. package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +0 -1
  185. package/@tencent/polaris/dist/plugins/lb/base.d.ts +0 -24
  186. package/@tencent/polaris/dist/plugins/lb/base.js +0 -32
  187. package/@tencent/polaris/dist/plugins/lb/base.js.map +0 -1
  188. package/@tencent/polaris/dist/plugins/lb/edf.d.ts +0 -24
  189. package/@tencent/polaris/dist/plugins/lb/edf.js +0 -77
  190. package/@tencent/polaris/dist/plugins/lb/edf.js.map +0 -1
  191. package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +0 -24
  192. package/@tencent/polaris/dist/plugins/lb/hashring.js +0 -53
  193. package/@tencent/polaris/dist/plugins/lb/hashring.js.map +0 -1
  194. package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +0 -31
  195. package/@tencent/polaris/dist/plugins/lb/sticky.js +0 -88
  196. package/@tencent/polaris/dist/plugins/lb/sticky.js.map +0 -1
  197. package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +0 -25
  198. package/@tencent/polaris/dist/plugins/lb/swrr.js +0 -72
  199. package/@tencent/polaris/dist/plugins/lb/swrr.js.map +0 -1
  200. package/@tencent/polaris/dist/plugins/lb/wr.d.ts +0 -17
  201. package/@tencent/polaris/dist/plugins/lb/wr.js +0 -50
  202. package/@tencent/polaris/dist/plugins/lb/wr.js.map +0 -1
  203. package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +0 -19
  204. package/@tencent/polaris/dist/plugins/lb/wrr.js +0 -81
  205. package/@tencent/polaris/dist/plugins/lb/wrr.js.map +0 -1
  206. package/@tencent/polaris/dist/plugins/logging/console.d.ts +0 -10
  207. package/@tencent/polaris/dist/plugins/logging/console.js +0 -38
  208. package/@tencent/polaris/dist/plugins/logging/console.js.map +0 -1
  209. package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +0 -32
  210. package/@tencent/polaris/dist/plugins/naming/local-server/index.js +0 -88
  211. package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +0 -1
  212. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +0 -124
  213. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +0 -398
  214. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +0 -1
  215. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +0 -27
  216. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +0 -287
  217. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +0 -1
  218. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +0 -15
  219. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +0 -43
  220. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +0 -1
  221. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +0 -28
  222. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +0 -249
  223. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +0 -1
  224. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +0 -19
  225. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +0 -222
  226. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +0 -1
  227. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +0 -26
  228. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +0 -99
  229. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +0 -1
  230. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +0 -60
  231. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +0 -259
  232. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +0 -1
  233. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +0 -24
  234. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +0 -18
  235. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +0 -12
  236. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +0 -39
  237. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +0 -115
  238. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +0 -1
  239. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +0 -24
  240. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +0 -22
  241. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +0 -28
  242. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +0 -80
  243. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +0 -18
  244. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +0 -65
  245. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +0 -66
  246. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +0 -95
  247. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +0 -1568
  248. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +0 -36
  249. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +0 -51
  250. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +0 -1
  251. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +0 -18
  252. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +0 -67
  253. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +0 -82
  254. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +0 -11
  255. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +0 -46
  256. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +0 -16
  257. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +0 -10
  258. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +0 -1102
  259. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +0 -29
  260. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +0 -77
  261. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +0 -1
  262. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +0 -12
  263. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +0 -28
  264. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +0 -395
  265. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +0 -13
  266. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +0 -116
  267. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +0 -1
  268. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +0 -67
  269. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +0 -67
  270. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +0 -1
  271. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +0 -99
  272. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +0 -217
  273. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +0 -1
  274. package/@tencent/polaris/dist/plugins/registry/memory.d.ts +0 -10
  275. package/@tencent/polaris/dist/plugins/registry/memory.js +0 -50
  276. package/@tencent/polaris/dist/plugins/registry/memory.js.map +0 -1
  277. package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +0 -51
  278. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +0 -145
  279. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +0 -1
  280. package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +0 -11
  281. package/@tencent/polaris/dist/plugins/router/polaris/rule.js +0 -174
  282. package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +0 -1
  283. package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +0 -25
  284. package/@tencent/polaris/dist/plugins/router/trpc/canary.js +0 -36
  285. package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +0 -1
  286. package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +0 -10
  287. package/@tencent/polaris/dist/plugins/router/trpc/env.js +0 -34
  288. package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +0 -1
  289. package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +0 -56
  290. package/@tencent/polaris/dist/plugins/router/trpc/set.js +0 -106
  291. package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +0 -1
  292. package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +0 -31
  293. package/@tencent/polaris/dist/plugins/shaping/unirate.js +0 -124
  294. package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +0 -1
  295. package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +0 -61
  296. package/@tencent/polaris/dist/plugins/shaping/warmup.js +0 -171
  297. package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +0 -1
  298. package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +0 -23
  299. package/@tencent/polaris/dist/plugins/weight/polaris.js +0 -159
  300. package/@tencent/polaris/dist/plugins/weight/polaris.js.map +0 -1
  301. package/@tencent/polaris/dist/plugins.d.ts +0 -619
  302. package/@tencent/polaris/dist/plugins.js +0 -91
  303. package/@tencent/polaris/dist/plugins.js.map +0 -1
  304. package/@tencent/polaris/dist/polaris.d.ts +0 -33
  305. package/@tencent/polaris/dist/polaris.js +0 -59
  306. package/@tencent/polaris/dist/polaris.js.map +0 -1
  307. package/@tencent/polaris/dist/provider/index.d.ts +0 -102
  308. package/@tencent/polaris/dist/provider/index.js +0 -168
  309. package/@tencent/polaris/dist/provider/index.js.map +0 -1
  310. package/@tencent/polaris/dist/registry.d.ts +0 -174
  311. package/@tencent/polaris/dist/registry.js +0 -660
  312. package/@tencent/polaris/dist/registry.js.map +0 -1
  313. package/@tencent/polaris/dist/rules.d.ts +0 -163
  314. package/@tencent/polaris/dist/rules.js +0 -24
  315. package/@tencent/polaris/dist/rules.js.map +0 -1
  316. package/@tencent/polaris/dist/scripts/postinstall.d.ts +0 -1
  317. package/@tencent/polaris/dist/scripts/postinstall.js +0 -71
  318. package/@tencent/polaris/dist/scripts/postinstall.js.map +0 -1
  319. package/@tencent/polaris/dist/service.d.ts +0 -18
  320. package/@tencent/polaris/dist/service.js +0 -3
  321. package/@tencent/polaris/dist/service.js.map +0 -1
  322. package/@tencent/polaris/dist/skeleton.d.ts +0 -87
  323. package/@tencent/polaris/dist/skeleton.js +0 -282
  324. package/@tencent/polaris/dist/skeleton.js.map +0 -1
  325. package/@tencent/polaris/dist/utils.d.ts +0 -36
  326. package/@tencent/polaris/dist/utils.js +0 -74
  327. package/@tencent/polaris/dist/utils.js.map +0 -1
  328. package/@tencent/polaris/dist/weak.d.ts +0 -11
  329. package/@tencent/polaris/dist/weak.js +0 -44
  330. package/@tencent/polaris/dist/weak.js.map +0 -1
  331. package/@tencent/polaris/package.json +0 -114
  332. package/libs/lib-generate-test-usersig-es.min.d.ts +0 -6
  333. package/libs/lib-generate-test-usersig-es.min.js +0 -2
  334. package/resource/doc/chatuikit/react/generate_UserSig.md +0 -306
  335. package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +0 -202
  336. package/resource/doc/chatuikit/react/integrate_tuichat_react.md +0 -279
  337. package/resource/doc/chatuikit/vue/generate_UserSig.md +0 -306
  338. package/resource/doc/chatuikit/vue/integrate_only_tuichat_Vue_web.md +0 -124
  339. package/resource/doc/chatuikit/vue/integrate_tuikit_Vue_web.md +0 -552
  340. package/resource/doc/chatuikit/vue/login.md +0 -31
  341. package/resource/doc/chatuikit/vue3/components/MessageInput.md +0 -1272
  342. package/resource/doc/chatuikit/vue3/components/avatar.md +0 -137
  343. package/resource/doc/chatuikit/vue3/components/chatheader.md +0 -189
  344. package/resource/doc/chatuikit/vue3/components/component-list.md +0 -102
  345. package/resource/doc/chatuikit/vue3/components/userpicker.md +0 -315
  346. package/resource/doc/chatuikit/vue3/integration.md +0 -256
  347. package/resource/doc/tuicallkit/react/.gitkeep +0 -0
  348. package/resource/doc/tuicallkit/react/api_TUICallKit.md +0 -354
  349. package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +0 -195
  350. package/resource/doc/tuicallkit/react/how_to_run_react_callkit_demo.md +0 -61
  351. package/resource/doc/tuicallkit/vue/.gitkeep +0 -0
  352. package/resource/doc/tuicallkit/vue/api_TUICallKit.md +0 -354
  353. package/resource/doc/tuicallkit/vue/how_to_integrated_vue_callkit.md +0 -187
  354. package/resource/doc/tuicallkit/vue/how_to_run_vue_callkit_demo.md +0 -61
  355. package/streamableHttp.js +0 -74
  356. package/streamableHttp.js.map +0 -1
  357. package/tools/call/get-native-call-integration-guide.js +0 -36
  358. package/tools/call/get-native-call-integration-guide.js.map +0 -1
  359. package/tools/call/get-web-call-integration-guide.js +0 -35
  360. package/tools/call/get-web-call-integration-guide.js.map +0 -1
  361. package/tools/chat/get-native-chat-integration-guide.js +0 -34
  362. package/tools/chat/get-native-chat-integration-guide.js.map +0 -1
  363. package/tools/chat/get-web-chat-integration-guide.js +0 -35
  364. package/tools/chat/get-web-chat-integration-guide.js.map +0 -1
  365. package/tools/chat/get-web-chat-uikit-login.js.map +0 -1
  366. package/tools/rtcengine/get-rtcengine-integration-guide.js +0 -33
  367. package/tools/rtcengine/get-rtcengine-integration-guide.js.map +0 -1
  368. package/tools/rtcengine/get-rtcenigne-faq.js.map +0 -1
  369. /package/resource/doc/chatuikit/react/{login.md → init.md} +0 -0
@@ -0,0 +1,616 @@
1
+ This document provides a detailed introduction to the **barrage component**, including the **barrage message component (BarrageList)** and the **message sending component (BarrageInput)**. You can refer to the sample code in this document for seamless integration of our pre-developed components into your existing project, or customize the style and layout according to your needs by following the component customization section in the document.
2
+
3
+ ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027862798/9de2371a98f611f0b38f5254001c06ec.png)
4
+
5
+
6
+ ## Component Composition
7
+ <table>
8
+ <tr>
9
+ <td rowspan="1" colSpan="1" >**Component Name**</td>
10
+
11
+ <td rowspan="1" colSpan="1" >**Detailed Description**</td>
12
+ </tr>
13
+
14
+ <tr>
15
+ <td rowspan="1" colSpan="1" >**Barrage Message Component (BarrageList)**</td>
16
+
17
+ <td rowspan="1" colSpan="1" >A component responsible for real-time display and management of barrage message streams, providing a complete message display solution including **message list rendering, time aggregation, user interaction, and responsive adaptation**.</td>
18
+ </tr>
19
+
20
+ <tr>
21
+ <td rowspan="1" colSpan="1" >**Message Sending Component (BarrageInput)**</td>
22
+
23
+ <td rowspan="1" colSpan="1" >An input component that provides rich text editing and message sending features, with seamless integration of **emoji selector, character limit, status management, and cross-platform adaptation**, offering users a smooth input experience.</td>
24
+ </tr>
25
+ </table>
26
+
27
+
28
+ ## Component Integration
29
+
30
+ ### Step 1: Configuring the Environment and Activating the Service
31
+
32
+ Before performing quick integration, you need to refer to [preparations](https://write.woa.com/document/185222107981008896), meet the related environment configuration and activate the corresponding service.
33
+
34
+ ### Step 2: Installing Dependencies
35
+
36
+
37
+
38
+
39
+ 【npm】
40
+ ``` bash
41
+ npm install tuikit-atomicx-vue3@latest @tencentcloud/uikit-base-component-vue3 --save
42
+ ```
43
+
44
+
45
+ 【pnpm】
46
+ ``` bash
47
+ pnpm add tuikit-atomicx-vue3@latest @tencentcloud/uikit-base-component-vue3
48
+ ```
49
+
50
+
51
+ 【yarn】
52
+ ``` bash
53
+ yarn add tuikit-atomicx-vue3@latest @tencentcloud/uikit-base-component-vue3
54
+ ```
55
+
56
+ ### Step 3: Integrating the Barrage Component
57
+
58
+ Introduce and use the barrage component in your project. You can copy the following example directly to show **a complete live streaming room barrage message component and message send component** in your project.
59
+ ``` typescript
60
+ <template>
61
+ <UIKitProvider theme="dark" language="en-US">
62
+ <div class="app">
63
+ <div class="chat-container">
64
+ <div class="chat-content">
65
+ <BarrageList class="barrage-list" />
66
+ </div>
67
+ <div class="chat-input">
68
+ <BarrageInput class="barrage-input" />
69
+ </div>
70
+ </div>
71
+ </div>
72
+ </UIKitProvider>
73
+ </template>
74
+
75
+ <script setup lang="ts">
76
+ import { onMounted, ref } from 'vue';
77
+ import { UIKitProvider } from '@tencentcloud/uikit-base-component-vue3';
78
+ import { BarrageList, BarrageInput, useLoginState, useLiveState } from 'tuikit-atomicx-vue3';
79
+
80
+ const { login, loginUserInfo } = useLoginState();
81
+ const { joinLive } = useLiveState();
82
+
83
+ async function initLogin() {
84
+ try {
85
+ await login({
86
+ sdkAppId: 0, // SDKAppID, see Step 1 to get
87
+ userId: '', // UserID, see Step 1 to get
88
+ userSig: '', // userSig, see Step 1 to get
89
+ });
90
+ } catch (error) {
91
+ console.error('login error:', error);
92
+ }
93
+ }
94
+
95
+ onMounted(async () => {
96
+ await initLogin();
97
+ await joinLive({
98
+ liveId: 'input corresponding live streaming room LiveId', // enter live room by inputting corresponding liveId
99
+ });
100
+ });
101
+ </script>
102
+
103
+ <style scoped>.app{width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;padding:20px;box-sizing:border-box}.chat-container{width:100%;max-width:500px;height:600px;border-radius:16px;display:flex;flex-direction:column;overflow:hidden}.chat-content{flex:1;overflow:hidden}.barrage-list{width:100%;height:100%}.chat-input{background-color:var(--bg-color-dialog);padding:16px}.barrage-input{width:100%}</style>
104
+ ```
105
+
106
+ ## Customize Component
107
+
108
+ **Barrage Message Component** provides users with various and dimensional `Props` APIs for custom requirements, allowing users to customize features or UI. Parameter content is as shown in the table below.
109
+
110
+ > **Note:**
111
+ >
112
+
113
+ > Note: To directly learn about the custom details of the Barrage Message Component (BarrageList), quickly jump to the following link: [Barrage Message Component Customization](https://write.woa.com/#872b809d-0251-49c3-8b4c-4c97b2801bdf);
114
+ >
115
+
116
+ > Note: To directly learn about the custom details of the Message Sending Component (BarrageInput), quickly jump to the following link: [Message Sending Component Customization](https://write.woa.com/#566ae5d7-6c69-4ba1-858a-bf839428b171);
117
+ >
118
+
119
+
120
+ ### Barrage Message Component (BarrageList) Customization
121
+
122
+ #### **Props**
123
+ <table>
124
+ <tr>
125
+ <td rowspan="1" colSpan="1" >**Parameter Name**</td>
126
+
127
+ <td rowspan="1" colSpan="1" >**Parameter Type**</td>
128
+
129
+ <td rowspan="1" colSpan="1" >**Default Value**</td>
130
+
131
+ <td rowspan="1" colSpan="1" >**Description**</td>
132
+ </tr>
133
+
134
+ <tr>
135
+ <td rowspan="1" colSpan="1" >messageAggregationTime</td>
136
+
137
+ <td rowspan="1" colSpan="1" >Number</td>
138
+
139
+ <td rowspan="1" colSpan="1" >300</td>
140
+
141
+ <td rowspan="1" colSpan="1" >Maximum time interval for message grouping (seconds).</td>
142
+ </tr>
143
+
144
+ <tr>
145
+ <td rowspan="1" colSpan="1" >filter</td>
146
+
147
+ <td rowspan="1" colSpan="1" >(message: IMessageModel) => boolean</td>
148
+
149
+ <td rowspan="1" colSpan="1" >-</td>
150
+
151
+ <td rowspan="1" colSpan="1" >Functions for filtering messages.</td>
152
+ </tr>
153
+
154
+ <tr>
155
+ <td rowspan="1" colSpan="1" >Message</td>
156
+
157
+ <td rowspan="1" colSpan="1" >Component</td>
158
+
159
+ <td rowspan="1" colSpan="1" >Message</td>
160
+
161
+ <td rowspan="1" colSpan="1" >Custom Message Component</td>
162
+ </tr>
163
+
164
+ <tr>
165
+ <td rowspan="1" colSpan="1" >MessageTimeDivider</td>
166
+
167
+ <td rowspan="1" colSpan="1" >Component</td>
168
+
169
+ <td rowspan="1" colSpan="1" >MessageTimeDivider</td>
170
+
171
+ <td rowspan="1" colSpan="1" >Custom Message Time Segmentation Component.</td>
172
+ </tr>
173
+
174
+ <tr>
175
+ <td rowspan="1" colSpan="1" >LocalNoticeMessage</td>
176
+
177
+ <td rowspan="1" colSpan="1" >Component</td>
178
+
179
+ <td rowspan="1" colSpan="1" >LocalNoticeMessage</td>
180
+
181
+ <td rowspan="1" colSpan="1" >Custom Local Notification Component.</td>
182
+ </tr>
183
+
184
+ <tr>
185
+ <td rowspan="1" colSpan="1" >containerStyle</td>
186
+
187
+ <td rowspan="1" colSpan="1" >CSSProperties</td>
188
+
189
+ <td rowspan="1" colSpan="1" >-</td>
190
+
191
+ <td rowspan="1" colSpan="1" >Custom message list container style.</td>
192
+ </tr>
193
+
194
+ <tr>
195
+ <td rowspan="1" colSpan="1" >itemStyle</td>
196
+
197
+ <td rowspan="1" colSpan="1" >CSSProperties</td>
198
+
199
+ <td rowspan="1" colSpan="1" >-</td>
200
+
201
+ <td rowspan="1" colSpan="1" >Custom single message item style.</td>
202
+ </tr>
203
+
204
+ <tr>
205
+ <td rowspan="1" colSpan="1" >height</td>
206
+
207
+ <td rowspan="1" colSpan="1" >String</td>
208
+
209
+ <td rowspan="1" colSpan="1" >-</td>
210
+
211
+ <td rowspan="1" colSpan="1" >Component height, supports CSS units.</td>
212
+ </tr>
213
+
214
+ <tr>
215
+ <td rowspan="1" colSpan="1" >style</td>
216
+
217
+ <td rowspan="1" colSpan="1" >CSSProperties</td>
218
+
219
+ <td rowspan="1" colSpan="1" >-</td>
220
+
221
+ <td rowspan="1" colSpan="1" >Specify the root element's custom style.</td>
222
+ </tr>
223
+ </table>
224
+
225
+
226
+ As indicated in the table above, the Props custom part of the Barrage Message Component consists of three sections: **component properties, replaceable subcomponents, and custom styles.** Specific content is as shown in the table below.
227
+ <table>
228
+ <tr>
229
+ <td rowspan="1" colSpan="1" >**Content**</td>
230
+
231
+ <td rowspan="1" colSpan="1" >**Parameter**</td>
232
+ </tr>
233
+
234
+ <tr>
235
+ <td rowspan="1" colSpan="1" >**Component Property**</td>
236
+
237
+ <td rowspan="1" colSpan="1" >`filter`,`messageAggregationTime`</td>
238
+ </tr>
239
+
240
+ <tr>
241
+ <td rowspan="1" colSpan="1" >**Replaceable subcomponent**</td>
242
+
243
+ <td rowspan="1" colSpan="1" >`Message`,`MessageTimeDivider`,`LocalNoticeMessage`</td>
244
+ </tr>
245
+
246
+ <tr>
247
+ <td rowspan="1" colSpan="1" >**Custom style**</td>
248
+
249
+ <td rowspan="1" colSpan="1" >`ContainerStyle`,`ItemStyle`,`height`,`style`</td>
250
+ </tr>
251
+ </table>
252
+
253
+
254
+ #### Filter Message
255
+
256
+ By setting the `filter` parameter, you can flexibly control the message content displayed in the barrage message component.
257
+ ``` typescript
258
+ <BarrageList :filter="(message) => message.type === 'TIMTextElem'" />
259
+ ```
260
+
261
+ #### Message Aggregation Time
262
+
263
+ By setting the `messageAggregationTime` parameter, you can control the grouping time interval.
264
+ ``` typescript
265
+ <BarrageList :messageAggregationTime="300" />
266
+ ```
267
+
268
+ #### Custom Style
269
+
270
+ Barrage Message Component provides `containerStyle`, `itemStyle`, `custom child component`, etc., for customizing component styles.
271
+ 1. To customize the message list container style, you can pass a style object to the `containerStyle` attribute.
272
+
273
+
274
+ **Example: Custom container padding**
275
+
276
+ ``` typescript
277
+ <BarrageList :containerStyle="{ padding: '0px' }" />
278
+ ```
279
+ 2. To customize a single message style, you can pass a style object to the `itemStyle` attribute.
280
+
281
+
282
+ **Example: Custom message item spacing, border, and message bubble color**
283
+
284
+ ``` typescript
285
+ <BarrageList :itemStyle="{ borderRadius: '10px', background: '#1C66e5', padding: '10px', boxSizing: 'border-box'}" />
286
+ ```
287
+ 3. The barrage message component supports custom message display components, and you can fully control the rendering method.
288
+
289
+
290
+ **Example: Custom Message Component**
291
+
292
+ ``` typescript
293
+ // MyCustomMessage.vue
294
+ <template>
295
+ <div class="custom-message">
296
+ <div class="message-header">
297
+ <span class="user-name">{{ getUserName(message) }}</span>
298
+ <span class="message-time">{{ formatTime(message.time) }}</span>
299
+ </div>
300
+ <div class="message-content">
301
+ {{ getMessageText(message) }}
302
+ </div>
303
+ </div>
304
+ </template>
305
+
306
+ <script setup lang="ts">
307
+ interface SimpleMessage {
308
+ id: string;
309
+ from: string;
310
+ nick?: string;
311
+ nameCard?: string;
312
+ time: number;
313
+ type: string;
314
+ content: string;
315
+ avatar?: string;
316
+ }
317
+
318
+ interface Props {
319
+ message: SimpleMessage;
320
+ isLastInChunk?: boolean;
321
+ }
322
+
323
+ const props = defineProps<Props>();
324
+
325
+ const formatTime = (timestamp: number) => {
326
+ return new Date(timestamp * 1000).toLocaleTimeString('zh-CN', {
327
+ hour: '2-digit',
328
+ minute: '2-digit'
329
+ });
330
+ };
331
+
332
+ const getUserName = (message: SimpleMessage) => {
333
+ return message.nameCard || message.nick || message.from || 'anonymous user';
334
+ };
335
+
336
+ const getMessageText = (message: SimpleMessage) => {
337
+ if (message.type === 'text') {
338
+ return message.content || '';
339
+ } else if (message.type === 'image') {
340
+ return '[image message]';
341
+ } else if (message.type === 'emoji') {
342
+ return '[emoji message]';
343
+ }
344
+ return '[other types of messages]';
345
+ };
346
+ </script>
347
+
348
+ <style scoped>.custom-message{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;padding:12px;border-radius:12px;margin:4px 0;box-shadow:0 2px 8px rgba(0,0,0,0.1);transition:transform 0.2s ease}.custom-message:hover{transform:translateY(-2px)}.message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;opacity:0.9}.user-name{font-weight:500;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-time{font-size:11px;opacity:0.7}.message-content{font-size:14px;line-height:1.4;word-break:break-word}</style>
349
+
350
+ // Use the barrage message component for use in
351
+ <template>
352
+ <BarrageList :Message="MyCustomMessage" />
353
+ </template>
354
+
355
+ <script setup lang="ts">
356
+ import MyCustomMessage from "./MyCustomMessage.vue";
357
+ </script>
358
+ ```
359
+ <table>
360
+ <tr>
361
+ <td rowspan="2" colSpan="1" >**Before modification**</td>
362
+
363
+ <td rowspan="1" colSpan="3" >**After modification**</td>
364
+ </tr>
365
+
366
+ <tr>
367
+ <td rowspan="1" colSpan="1" >**Custom container padding**</td>
368
+
369
+ <td rowspan="1" colSpan="1" >**Custom message item spacing and border**</td>
370
+
371
+ <td rowspan="1" colSpan="1" >**Custom Message Component**</td>
372
+ </tr>
373
+
374
+ <tr>
375
+ <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027862798/bfe98f52991711f0961e52540099c741.png)</td>
376
+
377
+ <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027862798/dc2f7512991711f0961e52540099c741.png)</td>
378
+
379
+ <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027862798/ecaf4bfc991711f0a207525400bf7822.png)</td>
380
+
381
+ <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027862798/83c99885991b11f0961e52540099c741.png)</td>
382
+ </tr>
383
+ </table>
384
+
385
+
386
+ ### Message Sending Component (BarrageInput) Customization
387
+
388
+ #### **Props**
389
+ <table>
390
+ <tr>
391
+ <td rowspan="1" colSpan="1" >**Parameter Name**</td>
392
+
393
+ <td rowspan="1" colSpan="1" >**Type**</td>
394
+
395
+ <td rowspan="1" colSpan="1" >**Default Value**</td>
396
+
397
+ <td rowspan="1" colSpan="1" >**Description**</td>
398
+ </tr>
399
+
400
+ <tr>
401
+ <td rowspan="1" colSpan="1" >containerClass</td>
402
+
403
+ <td rowspan="1" colSpan="1" >String</td>
404
+
405
+ <td rowspan="1" colSpan="1" >''</td>
406
+
407
+ <td rowspan="1" colSpan="1" >Custom container CSS class name.</td>
408
+ </tr>
409
+
410
+ <tr>
411
+ <td rowspan="1" colSpan="1" >containerStyle</td>
412
+
413
+ <td rowspan="1" colSpan="1" >Record<br></td>
414
+
415
+ <td rowspan="1" colSpan="1" >{}</td>
416
+
417
+ <td rowspan="1" colSpan="1" >Inline style of custom container.</td>
418
+ </tr>
419
+
420
+ <tr>
421
+ <td rowspan="1" colSpan="1" >width</td>
422
+
423
+ <td rowspan="1" colSpan="1" >String</td>
424
+
425
+ <td rowspan="1" colSpan="1" >-</td>
426
+
427
+ <td rowspan="1" colSpan="1" >Component width, supports CSS units.</td>
428
+ </tr>
429
+
430
+ <tr>
431
+ <td rowspan="1" colSpan="1" >height</td>
432
+
433
+ <td rowspan="1" colSpan="1" >String</td>
434
+
435
+ <td rowspan="1" colSpan="1" >-</td>
436
+
437
+ <td rowspan="1" colSpan="1" >Component height, supports CSS units.</td>
438
+ </tr>
439
+
440
+ <tr>
441
+ <td rowspan="1" colSpan="1" >minHeight</td>
442
+
443
+ <td rowspan="1" colSpan="1" >String</td>
444
+
445
+ <td rowspan="1" colSpan="1" >'40px'</td>
446
+
447
+ <td rowspan="1" colSpan="1" >Minimum component height, supports CSS units.</td>
448
+ </tr>
449
+
450
+ <tr>
451
+ <td rowspan="1" colSpan="1" >maxHeight</td>
452
+
453
+ <td rowspan="1" colSpan="1" >String</td>
454
+
455
+ <td rowspan="1" colSpan="1" >'140px'</td>
456
+
457
+ <td rowspan="1" colSpan="1" >Max component height, supports CSS units.</td>
458
+ </tr>
459
+
460
+ <tr>
461
+ <td rowspan="1" colSpan="1" >placeholder</td>
462
+
463
+ <td rowspan="1" colSpan="1" >String</td>
464
+
465
+ <td rowspan="1" colSpan="1" >-</td>
466
+
467
+ <td rowspan="1" colSpan="1" >Placeholder text in the input box.</td>
468
+ </tr>
469
+
470
+ <tr>
471
+ <td rowspan="1" colSpan="1" >disabled</td>
472
+
473
+ <td rowspan="1" colSpan="1" >Boolean</td>
474
+
475
+ <td rowspan="1" colSpan="1" >false</td>
476
+
477
+ <td rowspan="1" colSpan="1" >Whether to disable the input box.</td>
478
+ </tr>
479
+
480
+ <tr>
481
+ <td rowspan="1" colSpan="1" >autoFocus</td>
482
+
483
+ <td rowspan="1" colSpan="1" >Boolean</td>
484
+
485
+ <td rowspan="1" colSpan="1" >true</td>
486
+
487
+ <td rowspan="1" colSpan="1" >Whether to auto-focus into the input box.</td>
488
+ </tr>
489
+
490
+ <tr>
491
+ <td rowspan="1" colSpan="1" >maxLength</td>
492
+
493
+ <td rowspan="1" colSpan="1" >Number</td>
494
+
495
+ <td rowspan="1" colSpan="1" >80</td>
496
+
497
+ <td rowspan="1" colSpan="1" >Maximum character limit for input content.</td>
498
+ </tr>
499
+ </table>
500
+
501
+
502
+ #### **Events**
503
+ <table>
504
+ <tr>
505
+ <td rowspan="1" colSpan="1" >**Event Name**</td>
506
+
507
+ <td rowspan="1" colSpan="1" >**Parameter**</td>
508
+
509
+ <td rowspan="1" colSpan="1" >**Description**</td>
510
+ </tr>
511
+
512
+ <tr>
513
+ <td rowspan="1" colSpan="1" >focus</td>
514
+
515
+ <td rowspan="1" colSpan="1" >-</td>
516
+
517
+ <td rowspan="1" colSpan="1" >Trigger when the input box gets focus.</td>
518
+ </tr>
519
+
520
+ <tr>
521
+ <td rowspan="1" colSpan="1" >blur</td>
522
+
523
+ <td rowspan="1" colSpan="1" >-</td>
524
+
525
+ <td rowspan="1" colSpan="1" >Trigger when the input box loses focus.</td>
526
+ </tr>
527
+ </table>
528
+
529
+
530
+ As indicated in the table above, the Props custom part of the Message Sending Component consists of three sections: **size control, input restriction, and custom styles.** Specific content is as shown in the table below.
531
+ <table>
532
+ <tr>
533
+ <td rowspan="1" colSpan="1" >**Content**</td>
534
+
535
+ <td rowspan="1" colSpan="1" >**Parameter**</td>
536
+ </tr>
537
+
538
+ <tr>
539
+ <td rowspan="1" colSpan="1" >**Size control**</td>
540
+
541
+ <td rowspan="1" colSpan="1" >`width`,`height`,`minHeight`,`minWidth`</td>
542
+ </tr>
543
+
544
+ <tr>
545
+ <td rowspan="1" colSpan="1" >**Input restriction**</td>
546
+
547
+ <td rowspan="1" colSpan="1" >`maxLength`</td>
548
+ </tr>
549
+
550
+ <tr>
551
+ <td rowspan="1" colSpan="1" >**Custom style**</td>
552
+
553
+ <td rowspan="1" colSpan="1" >`ContainerStyle`,`ContainerClass`</td>
554
+ </tr>
555
+ </table>
556
+
557
+
558
+ #### Size Control
559
+
560
+ By setting `width`, `height`, `minHeight`, `maxHeight` parameters, you can flexibly control the size of **BarrageInput**.
561
+ ``` typescript
562
+ <BarrageInput width="400px" height="60px" minHeight="40px" maxHeight="120px" />
563
+ ```
564
+
565
+ #### Input Restriction
566
+
567
+ By setting the `maxLength` parameter, you can control the maximum number of characters for input content.
568
+ ``` typescript
569
+ <BarrageInput :maxLength="100" />
570
+ ```
571
+
572
+ #### Custom Style
573
+
574
+ The message send component provides `containerStyle` and `containerClass` attributes for customizing component style.
575
+ 1. To customize the input box container style, you can pass a style object to the `containerStyle` attribute.
576
+
577
+
578
+ **Example: Custom container background and border rounded corners**
579
+
580
+ ``` typescript
581
+ <BarrageInput :containerStyle="{ backgroundColor: '#a8abb2', borderRadius: '0 0', boxShadow: '0 2px 8px rgba(0,0,0,0.1)'}" />
582
+ ```
583
+ 2. To customize the input box container class name, you can pass a class name string to the `containerClass` attribute.
584
+
585
+
586
+ **Example: Custom container class name**
587
+
588
+ ``` typescript
589
+ <template>
590
+ <BarrageInput containerClass="my-custom-input-container" />
591
+ </template>
592
+
593
+ <style>.my-custom-input-container {background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);border: none;border-radius: 20px;padding: 8px 20px;}.my-custom-input-container:focus-within {box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);}</style>
594
+ ```
595
+ <table>
596
+ <tr>
597
+ <td rowspan="2" colSpan="1" >**Before modification**</td>
598
+
599
+ <td rowspan="1" colSpan="2" >**After modification**</td>
600
+ </tr>
601
+
602
+ <tr>
603
+ <td rowspan="1" colSpan="1" >**Custom container background and border rounded corners**</td>
604
+
605
+ <td rowspan="1" colSpan="1" >**Custom message item spacing and border**</td>
606
+ </tr>
607
+
608
+ <tr>
609
+ <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027862798/9c1eca1e991b11f0961e52540099c741.png)</td>
610
+
611
+ <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027862798/bd9f3926991b11f0a207525400bf7822.png)</td>
612
+
613
+ <td rowspan="1" colSpan="1" ><br>![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027862798/e1d02d0f991b11f081465254007c27c5.png)</td>
614
+ </tr>
615
+ </table>
616
+