@tencentcloud/sdk-mcp 1.0.7 → 1.0.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 (320) hide show
  1. package/package.json +1 -1
  2. package/resource/doc/chatuikit/react/components/chat.md +38 -0
  3. package/resource/doc/chatuikit/react/components/chatheader.md +153 -0
  4. package/resource/doc/chatuikit/react/components/conversation-list.md +765 -0
  5. package/resource/doc/chatuikit/react/components/message-input.md +799 -0
  6. package/resource/doc/chatuikit/react/components/message-list.md +385 -0
  7. package/resource/doc/chatuikit/react/components/tuikit.md +64 -0
  8. package/resource/doc/chatuikit/react/login.md +25 -0
  9. package/resource/doc/chatuikit/vue/components/MessageInput.md +546 -0
  10. package/resource/doc/chatuikit/vue/components/avatar.md +105 -0
  11. package/resource/doc/chatuikit/vue/components/chat.md +38 -0
  12. package/resource/doc/chatuikit/vue/components/chatheader.md +153 -0
  13. package/resource/doc/chatuikit/vue/components/component-list.md +90 -0
  14. package/resource/doc/chatuikit/vue/components/conversation-list.md +590 -0
  15. package/resource/doc/chatuikit/vue/components/login.md +29 -0
  16. package/resource/doc/chatuikit/vue/components/message-input.md +546 -0
  17. package/resource/doc/chatuikit/vue/components/message-list.md +548 -0
  18. package/resource/doc/chatuikit/vue/components/tuikit.md +110 -0
  19. package/resource/doc/chatuikit/vue/components/userpicker.md +256 -0
  20. package/resource/doc/chatuikit/vue/integration.md +218 -0
  21. package/resource/doc/chatuikit/vue/login.md +29 -0
  22. package/resource/doc/chatuikit/vue3/components/MessageList.md +385 -0
  23. package/resource/doc/chatuikit/vue3/integration.md +7 -4
  24. package/tools/call/get-native-call-integration-guide.js +2 -2
  25. package/tools/call/get-native-call-integration-guide.js.map +1 -1
  26. package/tools/call/get-native-call-integration.js +35 -0
  27. package/tools/call/get-native-call-integration.js.map +1 -0
  28. package/tools/call/get-web-call-integration-guide.js +4 -4
  29. package/tools/call/get-web-call-integration-guide.js.map +1 -1
  30. package/tools/call/get-web-call-integration.js +34 -0
  31. package/tools/call/get-web-call-integration.js.map +1 -0
  32. package/tools/chat/get-native-chat-integration-guide.js +2 -2
  33. package/tools/chat/get-native-chat-integration-guide.js.map +1 -1
  34. package/tools/chat/get-native-chat-integration.js +33 -0
  35. package/tools/chat/get-native-chat-integration.js.map +1 -0
  36. package/tools/chat/get-web-chat-component-detail.js +8 -5
  37. package/tools/chat/get-web-chat-component-detail.js.map +1 -1
  38. package/tools/chat/get-web-chat-integration-guide.js +16 -8
  39. package/tools/chat/get-web-chat-integration-guide.js.map +1 -1
  40. package/tools/chat/get-web-chat-integration.js +36 -0
  41. package/tools/chat/get-web-chat-integration.js.map +1 -0
  42. package/tools/chat/get-web-chat-uikit-login.js +30 -0
  43. package/tools/chat/get-web-chat-uikit-login.js.map +1 -0
  44. package/tools/common/present-framework-choice.js +6 -6
  45. package/tools/common/present-framework-choice.js.map +1 -1
  46. package/tools/common/record-result.js +2 -2
  47. package/tools/common/record-result.js.map +1 -1
  48. package/tools/index.js +10 -8
  49. package/tools/index.js.map +1 -1
  50. package/utils/handle-component-name.js +12 -0
  51. package/utils/handle-component-name.js.map +1 -0
  52. package/utils/handle-framework.js +9 -0
  53. package/utils/handle-framework.js.map +1 -0
  54. package/@tencent/aegis-node-sdk/CHANGELOG.md +0 -8
  55. package/@tencent/aegis-node-sdk/LICENSE +0 -21
  56. package/@tencent/aegis-node-sdk/README.md +0 -562
  57. package/@tencent/aegis-node-sdk/lib/aegis.min.js +0 -1
  58. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +0 -14
  59. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +0 -1
  60. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +0 -9
  61. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +0 -2
  62. package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +0 -85
  63. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +0 -3
  64. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +0 -9
  65. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +0 -3
  66. package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +0 -9
  67. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +0 -62
  68. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +0 -11
  69. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +0 -4
  70. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +0 -130
  71. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +0 -34
  72. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +0 -2
  73. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +0 -18
  74. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +0 -8
  75. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +0 -8
  76. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +0 -2
  77. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +0 -4
  78. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +0 -10
  79. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +0 -3
  80. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +0 -3
  81. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +0 -34
  82. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +0 -12
  83. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +0 -14
  84. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +0 -2
  85. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +0 -12
  86. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +0 -3
  87. package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +0 -33
  88. package/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
  89. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +0 -2
  90. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +0 -18
  91. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +0 -60
  92. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +0 -15
  93. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +0 -5
  94. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +0 -6
  95. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +0 -18
  96. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +0 -12
  97. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +0 -10
  98. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +0 -20
  99. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +0 -27
  100. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +0 -2
  101. package/@tencent/aegis-node-sdk/package.json +0 -19
  102. package/@tencent/polaris/README.md +0 -407
  103. package/@tencent/polaris/dist/consumer/health.d.ts +0 -126
  104. package/@tencent/polaris/dist/consumer/health.js +0 -283
  105. package/@tencent/polaris/dist/consumer/health.js.map +0 -1
  106. package/@tencent/polaris/dist/consumer/index.d.ts +0 -120
  107. package/@tencent/polaris/dist/consumer/index.js +0 -348
  108. package/@tencent/polaris/dist/consumer/index.js.map +0 -1
  109. package/@tencent/polaris/dist/consumer/monitor.d.ts +0 -145
  110. package/@tencent/polaris/dist/consumer/monitor.js +0 -343
  111. package/@tencent/polaris/dist/consumer/monitor.js.map +0 -1
  112. package/@tencent/polaris/dist/consumer/selector.d.ts +0 -73
  113. package/@tencent/polaris/dist/consumer/selector.js +0 -316
  114. package/@tencent/polaris/dist/consumer/selector.js.map +0 -1
  115. package/@tencent/polaris/dist/errors.d.ts +0 -373
  116. package/@tencent/polaris/dist/errors.js +0 -154
  117. package/@tencent/polaris/dist/errors.js.map +0 -1
  118. package/@tencent/polaris/dist/global.d.ts +0 -16
  119. package/@tencent/polaris/dist/global.js +0 -18
  120. package/@tencent/polaris/dist/global.js.map +0 -1
  121. package/@tencent/polaris/dist/index.d.ts +0 -62
  122. package/@tencent/polaris/dist/index.js +0 -145
  123. package/@tencent/polaris/dist/index.js.map +0 -1
  124. package/@tencent/polaris/dist/instance.d.ts +0 -109
  125. package/@tencent/polaris/dist/instance.js +0 -38
  126. package/@tencent/polaris/dist/instance.js.map +0 -1
  127. package/@tencent/polaris/dist/limiter/bucket.d.ts +0 -51
  128. package/@tencent/polaris/dist/limiter/bucket.js +0 -152
  129. package/@tencent/polaris/dist/limiter/bucket.js.map +0 -1
  130. package/@tencent/polaris/dist/limiter/index.d.ts +0 -73
  131. package/@tencent/polaris/dist/limiter/index.js +0 -149
  132. package/@tencent/polaris/dist/limiter/index.js.map +0 -1
  133. package/@tencent/polaris/dist/limiter/ratelimit.d.ts +0 -27
  134. package/@tencent/polaris/dist/limiter/ratelimit.js +0 -134
  135. package/@tencent/polaris/dist/limiter/ratelimit.js.map +0 -1
  136. package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +0 -17
  137. package/@tencent/polaris/dist/limiter/ratelimiter/base.js +0 -15
  138. package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +0 -1
  139. package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +0 -59
  140. package/@tencent/polaris/dist/limiter/ratelimiter/global.js +0 -397
  141. package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +0 -1
  142. package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +0 -3
  143. package/@tencent/polaris/dist/limiter/ratelimiter/index.js +0 -19
  144. package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +0 -1
  145. package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +0 -17
  146. package/@tencent/polaris/dist/limiter/ratelimiter/local.js +0 -52
  147. package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +0 -1
  148. package/@tencent/polaris/dist/location.d.ts +0 -48
  149. package/@tencent/polaris/dist/location.js +0 -67
  150. package/@tencent/polaris/dist/location.js.map +0 -1
  151. package/@tencent/polaris/dist/logging.d.ts +0 -106
  152. package/@tencent/polaris/dist/logging.js +0 -130
  153. package/@tencent/polaris/dist/logging.js.map +0 -1
  154. package/@tencent/polaris/dist/metadata.d.ts +0 -78
  155. package/@tencent/polaris/dist/metadata.js +0 -119
  156. package/@tencent/polaris/dist/metadata.js.map +0 -1
  157. package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +0 -47
  158. package/@tencent/polaris/dist/plugins/breaker/polaris.js +0 -162
  159. package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +0 -1
  160. package/@tencent/polaris/dist/plugins/lb/base.d.ts +0 -24
  161. package/@tencent/polaris/dist/plugins/lb/base.js +0 -32
  162. package/@tencent/polaris/dist/plugins/lb/base.js.map +0 -1
  163. package/@tencent/polaris/dist/plugins/lb/edf.d.ts +0 -24
  164. package/@tencent/polaris/dist/plugins/lb/edf.js +0 -77
  165. package/@tencent/polaris/dist/plugins/lb/edf.js.map +0 -1
  166. package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +0 -24
  167. package/@tencent/polaris/dist/plugins/lb/hashring.js +0 -53
  168. package/@tencent/polaris/dist/plugins/lb/hashring.js.map +0 -1
  169. package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +0 -31
  170. package/@tencent/polaris/dist/plugins/lb/sticky.js +0 -88
  171. package/@tencent/polaris/dist/plugins/lb/sticky.js.map +0 -1
  172. package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +0 -25
  173. package/@tencent/polaris/dist/plugins/lb/swrr.js +0 -72
  174. package/@tencent/polaris/dist/plugins/lb/swrr.js.map +0 -1
  175. package/@tencent/polaris/dist/plugins/lb/wr.d.ts +0 -17
  176. package/@tencent/polaris/dist/plugins/lb/wr.js +0 -50
  177. package/@tencent/polaris/dist/plugins/lb/wr.js.map +0 -1
  178. package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +0 -19
  179. package/@tencent/polaris/dist/plugins/lb/wrr.js +0 -81
  180. package/@tencent/polaris/dist/plugins/lb/wrr.js.map +0 -1
  181. package/@tencent/polaris/dist/plugins/logging/console.d.ts +0 -10
  182. package/@tencent/polaris/dist/plugins/logging/console.js +0 -38
  183. package/@tencent/polaris/dist/plugins/logging/console.js.map +0 -1
  184. package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +0 -32
  185. package/@tencent/polaris/dist/plugins/naming/local-server/index.js +0 -88
  186. package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +0 -1
  187. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +0 -124
  188. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +0 -398
  189. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +0 -1
  190. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +0 -27
  191. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +0 -287
  192. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +0 -1
  193. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +0 -15
  194. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +0 -43
  195. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +0 -1
  196. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +0 -28
  197. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +0 -249
  198. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +0 -1
  199. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +0 -19
  200. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +0 -222
  201. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +0 -1
  202. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +0 -26
  203. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +0 -99
  204. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +0 -1
  205. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +0 -60
  206. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +0 -259
  207. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +0 -1
  208. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +0 -24
  209. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +0 -18
  210. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +0 -12
  211. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +0 -39
  212. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +0 -115
  213. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +0 -1
  214. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +0 -24
  215. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +0 -22
  216. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +0 -28
  217. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +0 -80
  218. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +0 -18
  219. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +0 -65
  220. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +0 -66
  221. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +0 -95
  222. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +0 -1568
  223. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +0 -36
  224. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +0 -51
  225. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +0 -1
  226. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +0 -18
  227. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +0 -67
  228. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +0 -82
  229. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +0 -11
  230. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +0 -46
  231. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +0 -16
  232. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +0 -10
  233. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +0 -1102
  234. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +0 -29
  235. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +0 -77
  236. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +0 -1
  237. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +0 -12
  238. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +0 -28
  239. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +0 -395
  240. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +0 -13
  241. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +0 -116
  242. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +0 -1
  243. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +0 -67
  244. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +0 -67
  245. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +0 -1
  246. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +0 -99
  247. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +0 -217
  248. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +0 -1
  249. package/@tencent/polaris/dist/plugins/registry/memory.d.ts +0 -10
  250. package/@tencent/polaris/dist/plugins/registry/memory.js +0 -50
  251. package/@tencent/polaris/dist/plugins/registry/memory.js.map +0 -1
  252. package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +0 -51
  253. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +0 -145
  254. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +0 -1
  255. package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +0 -11
  256. package/@tencent/polaris/dist/plugins/router/polaris/rule.js +0 -174
  257. package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +0 -1
  258. package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +0 -25
  259. package/@tencent/polaris/dist/plugins/router/trpc/canary.js +0 -36
  260. package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +0 -1
  261. package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +0 -10
  262. package/@tencent/polaris/dist/plugins/router/trpc/env.js +0 -34
  263. package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +0 -1
  264. package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +0 -56
  265. package/@tencent/polaris/dist/plugins/router/trpc/set.js +0 -106
  266. package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +0 -1
  267. package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +0 -31
  268. package/@tencent/polaris/dist/plugins/shaping/unirate.js +0 -124
  269. package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +0 -1
  270. package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +0 -61
  271. package/@tencent/polaris/dist/plugins/shaping/warmup.js +0 -171
  272. package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +0 -1
  273. package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +0 -23
  274. package/@tencent/polaris/dist/plugins/weight/polaris.js +0 -159
  275. package/@tencent/polaris/dist/plugins/weight/polaris.js.map +0 -1
  276. package/@tencent/polaris/dist/plugins.d.ts +0 -619
  277. package/@tencent/polaris/dist/plugins.js +0 -91
  278. package/@tencent/polaris/dist/plugins.js.map +0 -1
  279. package/@tencent/polaris/dist/polaris.d.ts +0 -33
  280. package/@tencent/polaris/dist/polaris.js +0 -59
  281. package/@tencent/polaris/dist/polaris.js.map +0 -1
  282. package/@tencent/polaris/dist/provider/index.d.ts +0 -102
  283. package/@tencent/polaris/dist/provider/index.js +0 -168
  284. package/@tencent/polaris/dist/provider/index.js.map +0 -1
  285. package/@tencent/polaris/dist/registry.d.ts +0 -174
  286. package/@tencent/polaris/dist/registry.js +0 -660
  287. package/@tencent/polaris/dist/registry.js.map +0 -1
  288. package/@tencent/polaris/dist/rules.d.ts +0 -163
  289. package/@tencent/polaris/dist/rules.js +0 -24
  290. package/@tencent/polaris/dist/rules.js.map +0 -1
  291. package/@tencent/polaris/dist/scripts/postinstall.d.ts +0 -1
  292. package/@tencent/polaris/dist/scripts/postinstall.js +0 -71
  293. package/@tencent/polaris/dist/scripts/postinstall.js.map +0 -1
  294. package/@tencent/polaris/dist/service.d.ts +0 -18
  295. package/@tencent/polaris/dist/service.js +0 -3
  296. package/@tencent/polaris/dist/service.js.map +0 -1
  297. package/@tencent/polaris/dist/skeleton.d.ts +0 -87
  298. package/@tencent/polaris/dist/skeleton.js +0 -282
  299. package/@tencent/polaris/dist/skeleton.js.map +0 -1
  300. package/@tencent/polaris/dist/utils.d.ts +0 -36
  301. package/@tencent/polaris/dist/utils.js +0 -74
  302. package/@tencent/polaris/dist/utils.js.map +0 -1
  303. package/@tencent/polaris/dist/weak.d.ts +0 -11
  304. package/@tencent/polaris/dist/weak.js +0 -44
  305. package/@tencent/polaris/dist/weak.js.map +0 -1
  306. package/@tencent/polaris/package.json +0 -114
  307. package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +0 -185
  308. package/resource/doc/chatuikit/react/integrate_tuichat_react.md +0 -212
  309. package/resource/doc/chatuikit/vue/integrate_tuichat_only_vue.md +0 -149
  310. package/resource/doc/chatuikit/vue/integrate_tuichat_vue.md +0 -248
  311. package/streamableHttp.js +0 -74
  312. package/streamableHttp.js.map +0 -1
  313. /package/resource/doc/chatuikit/{iOS → ios}/client_api_iOS.md +0 -0
  314. /package/resource/doc/chatuikit/{iOS → ios}/integrate_tuichat_only_iOS.md +0 -0
  315. /package/resource/doc/chatuikit/{iOS → ios}/integrate_tuikit_iOS.md +0 -0
  316. /package/resource/doc/chatuikit/{iOS → ios}/ui_api_iOS.md +0 -0
  317. /package/resource/doc/tuicallkit/{iOS → ios}/api_TUICallKit.md +0 -0
  318. /package/resource/doc/tuicallkit/{iOS → ios}/api_TUICallObserver.md +0 -0
  319. /package/resource/doc/tuicallkit/{iOS → ios}/how_to_integrated_iOS_callkit.md +0 -0
  320. /package/resource/doc/tuicallkit/{iOS → ios}/how_to_run_iOS_callkit_demo.md +0 -0
@@ -0,0 +1,590 @@
1
+ ## 组件概述
2
+
3
+ ConversationList 组件负责渲染会话列表,包含搜索、创建、置顶和删除等功能。
4
+
5
+
6
+ ## 组件构成
7
+
8
+ ConversationList 组件包含以下内容:
9
+ - **ConversationSearch**:会话搜索
10
+
11
+ - **ConversationList****UI**:会话列表容器
12
+
13
+ - **ConversationPreview**:单条会话信息展示
14
+
15
+ - **ConversationActions**:单条会话操作
16
+
17
+
18
+ ## 基础用法
19
+
20
+ ConversationList 组件无需任何必需属性即可使用。
21
+ ``` typescript
22
+ <template>
23
+ <UIKitProvider>
24
+ <ConversationList />
25
+ </UIKitProvider>
26
+ </template>
27
+ <script setup lang="ts">
28
+ import { UIKitProvider, ConversationList } from '@tencentcloud/chat-uikit-vue3';
29
+ </script>
30
+ ```
31
+
32
+ ## 自定义组件
33
+
34
+ ConversationList 为用户自定义提供了丰富且多维度的 Props 接口,允许用户自定义功能、UI、模块等。
35
+
36
+ ConversationList 组件提供了多个可替换的子组件,允许用户自定义 **Header**、**List**、**ConversationPreview**、**ConversationCreate**、**ConversationSearch**、**ConversationActions**、**Avatar**、**Placeholder** 等。同时,用户还可以利用默认子组件进行二次开发定制。
37
+
38
+ ### 功能开关
39
+
40
+ 通过设置 `enableSearch`、`enableCreate` 和 `enableActions` 参数,您可以灵活地控制 **ConversationList** 中的搜索会话、创建会话和会话操作功能的显示。
41
+ ``` typescript
42
+ <ConversationList :enableSearch="false" />
43
+ ```
44
+ ``` typescript
45
+ <ConversationList :enableCreate="false" />
46
+ ```
47
+ ``` typescript
48
+ <ConversationList :enableActions="false" />
49
+ ```
50
+ <table>
51
+ <tr>
52
+ <td rowspan="1" colSpan="1" >`enableSearch="false"`</td>
53
+
54
+ <td rowspan="1" colSpan="1" >`enableCreate="false"`</td>
55
+
56
+ <td rowspan="1" colSpan="1" >`enableActions="false"`</td>
57
+ </tr>
58
+
59
+ <tr>
60
+ <td rowspan="1" colSpan="1" ><br><img src="https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027116646/a6c293a7824a11f0ac3c525400e889b2.png" alt="描述" width="50%" style="display: block; margin: 0 auto;"></td>
61
+
62
+ <td rowspan="1" colSpan="1" ><br><img src="https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027116646/1794aa15824b11f0ac3c525400e889b2.png" alt="描述" width="50%" style="display: block; margin: 0 auto;"></td>
63
+
64
+ <td rowspan="1" colSpan="1" ><br><img src="https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027116646/41d87b22824b11f0b3fe525400bf7822.png" alt="描述" width="50%" style="display: block; margin: 0 auto;"></td>
65
+ </tr>
66
+ </table>
67
+
68
+
69
+ ### 数据筛选与排序
70
+
71
+ ConversationList 组件提供了 `filter` 和 `sort` 属性,用于对会话列表进行筛选和排序。
72
+
73
+ #### 筛选会话
74
+
75
+ 要筛选会话列表数据,您可以给 `filter` 属性传递一个筛选函数。这个函数接收一个 ConversationModel 数组作为参数,然后应该返回一个新数组,只包含符合您筛选条件的会话。
76
+
77
+ **示例:只显示未读消息的会话**
78
+ ``` typescript
79
+ <template>
80
+ <UIKitProvider>
81
+ <ConversationList
82
+ :filter="(conversationList: ConversationModel[]) =>
83
+ conversationList.filter(conversation => conversation.unreadCount > 0)" />
84
+ </UIKitProvider>
85
+ </template>
86
+ <script setup lang="ts">
87
+ import { UIKitProvider, ConversationList } from '@tencentcloud/chat-uikit-vue3';
88
+ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
89
+ </script>
90
+ ```
91
+
92
+ #### 排序会话
93
+
94
+ 要排序会话列表数据,您可以给 `sort` 属性传递一个排序函数。这个函数接收一个 ConversationModel 数组作为参数,然后应该返回一个新数组,按照您的排序标准对会话进行排序。
95
+
96
+ **示例:按最新消息时间倒序排序**
97
+ ``` typescript
98
+ <template>
99
+ <UIKitProvider>
100
+ <ConversationList
101
+ :sort="(conversationList: ConversationModel[]) =>
102
+ conversationList.sort(
103
+ (a, b) => (+(b?.lastMessage?.lastTime || 0)) - (+(a?.lastMessage?.lastTime || 0)),
104
+ )" />
105
+ </UIKitProvider>
106
+ </template>
107
+ <script setup lang="ts">
108
+ import { UIKitProvider, ConversationList } from '@tencentcloud/chat-uikit-vue3';
109
+ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
110
+ </script>
111
+ ```
112
+
113
+ ### 自定义 actionsConfig
114
+
115
+ 通过 [actionsConfig](https://write.woa.com/document/186960379083898880) 可以自定义会话操作菜单。
116
+ ``` typescript
117
+ <template>
118
+ <UIKitProvider>
119
+ <ConversationList
120
+ :actionsConfig="{
121
+ enablePin: false,
122
+ onConversationDelete: (conversation: ConversationModel) =>
123
+ { console.log('Delete conversation success'); },
124
+ customConversationActions: {
125
+ 'custom-actions-1': {
126
+ label: 'custom-actions',
127
+ onClick: (conversation: ConversationModel) => { console.log(conversation); },
128
+ },
129
+ },
130
+ }"/>
131
+ </UIKitProvider>
132
+ </template>
133
+ <script setup lang="ts">
134
+ import { UIKitProvider, ConversationList } from '@tencentcloud/chat-uikit-vue3';
135
+ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
136
+ </script>
137
+ ```
138
+
139
+
140
+ ### 自定义 Placeholder
141
+
142
+ `ConversationList` 支持在不同状态下显示自定义占位符,包括列表为空、加载中和加载失败。
143
+ - `PlaceholderEmpty`:列表为空时显示。
144
+
145
+ - `PlaceholderLoading`:加载中显示。
146
+
147
+ - `PlaceholderError`:加载失败时显示。
148
+
149
+
150
+ **示例:自定义空列表占位符**
151
+
152
+ 1. **创建自定义组件 **`MyEmptyPlaceholder.vue`
153
+
154
+ ``` typescript
155
+ <template>
156
+ <div>
157
+ 自定义 PlaceholderEmptyList
158
+ </div>
159
+ </template>
160
+ ```
161
+ 2. **在 **`ConversationList`** 中使用。**
162
+
163
+ ``` typescript
164
+ <template>
165
+ <UIKitProvider>
166
+ <ConversationList
167
+ :PlaceholderEmptyList="MyEmptyPlaceholder" />
168
+ </UIKitProvider>
169
+ </template>
170
+ <script setup lang="ts">
171
+ import { UIKitProvider, ConversationList } from '@tencentcloud/chat-uikit-vue3';
172
+ import MyEmptyPlaceholder from "./MyEmptyPlaceholder.vue";
173
+ </script>
174
+ ```
175
+
176
+ ### 自定义 Header
177
+
178
+ **ConversationListHeader** 负责 ConversationList Header 部分的渲染工作,作为包裹层渲染默认 `Search` 与 `ConversationCreate` 。您可以通过传入 `left`、`right` 等属性进行自定义,同时,您也可以自定义整个组件。
179
+
180
+ #### Props
181
+ <table>
182
+ <tr>
183
+ <td rowspan="1" colSpan="1" >**参数名**</td>
184
+
185
+ <td rowspan="1" colSpan="1" >**类型**</td>
186
+
187
+ <td rowspan="1" colSpan="1" >**默认值**</td>
188
+
189
+ <td rowspan="1" colSpan="1" >**说明**</td>
190
+ </tr>
191
+
192
+ <tr>
193
+ <td rowspan="1" colSpan="1" >children</td>
194
+
195
+ <td rowspan="1" colSpan="1" >Component</td>
196
+
197
+ <td rowspan="1" colSpan="1" >-</td>
198
+
199
+ <td rowspan="1" colSpan="1" >自定义会话列表头部中心组件。<br>默认传入 `<Search>` 和 `<ConversationCreate>`。</td>
200
+ </tr>
201
+
202
+ <tr>
203
+ <td rowspan="1" colSpan="1" >left</td>
204
+
205
+ <td rowspan="1" colSpan="1" >Component</td>
206
+
207
+ <td rowspan="1" colSpan="1" >-</td>
208
+
209
+ <td rowspan="1" colSpan="1" >自定义会话列表头部左侧组件。</td>
210
+ </tr>
211
+
212
+ <tr>
213
+ <td rowspan="1" colSpan="1" >right</td>
214
+
215
+ <td rowspan="1" colSpan="1" >Component</td>
216
+
217
+ <td rowspan="1" colSpan="1" >-</td>
218
+
219
+ <td rowspan="1" colSpan="1" >自定义会话列表头部右侧组件。</td>
220
+ </tr>
221
+
222
+ <tr>
223
+ <td rowspan="1" colSpan="1" >className</td>
224
+
225
+ <td rowspan="1" colSpan="1" >String</td>
226
+
227
+ <td rowspan="1" colSpan="1" >-</td>
228
+
229
+ <td rowspan="1" colSpan="1" >指定根元素类的 CSS 自定义名称。</td>
230
+ </tr>
231
+
232
+ <tr>
233
+ <td rowspan="1" colSpan="1" >style</td>
234
+
235
+ <td rowspan="1" colSpan="1" >CSSProperties</td>
236
+
237
+ <td rowspan="1" colSpan="1" >-</td>
238
+
239
+ <td rowspan="1" colSpan="1" >指定根元素样式的自定义样式。</td>
240
+ </tr>
241
+ </table>
242
+
243
+
244
+ ##### 示例:实现一个简易的会话分组功能
245
+
246
+ 按照全部会话、未读会话、单聊会话、群会话四个维度进行区分,通过点击不同分组按钮执行不同的筛选规则。
247
+
248
+
249
+
250
+ 【App.vue】
251
+ ``` typescript
252
+ <template>
253
+ <UIKitProvider>
254
+ <ConversationList
255
+ :Header="CustomConversationListHeader"
256
+ :filter="conversationFilter"
257
+ </UIKitProvider>
258
+ </template>
259
+ <script setup lang="ts">
260
+ import { UIKitProvider, ConversationList } from '@tencentcloud/chat-uikit-vue3';
261
+ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
262
+ import CustomConversationListHeader from "./CustomConversationListHeader.vue";
263
+ const conversationFilter = ref<((conversations: ConversationModel[]) => ConversationModel[]) | undefined>(undefined);
264
+ const handleFilterChange = (filter: (conversations: ConversationModel[]) => ConversationModel[]) => {
265
+ conversationFilter.value = filter;
266
+ };
267
+ provide('setConversationFilter', handleFilterChange);
268
+ </script>
269
+ ```
270
+
271
+ 【CustomConversationListHeader.vue】
272
+ ``` typescript
273
+ <template>
274
+ <div class="customHeader">
275
+ <div class="filterTabs">
276
+ <button
277
+ v-for="(label, key) in filterLabels"
278
+ :key="key"
279
+ :class="[
280
+ 'filterTab',
281
+ { ['active']: activeFilter === key }
282
+ ]"
283
+ @click="handleFilterClick(key as FilterType)"
284
+ >
285
+ {{ label }}
286
+ </button>
287
+ </div>
288
+ </div>
289
+ </template>
290
+
291
+ <script lang="ts" setup>
292
+ import { ref, inject } from 'vue';
293
+ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
294
+
295
+ type FilterType = 'All' | 'Unread' | 'C2C' | 'Group';
296
+
297
+ interface Props {
298
+ children?: any;
299
+ }
300
+
301
+ defineProps<Props>();
302
+
303
+ const activeFilter = ref<FilterType>('All');
304
+
305
+ const filterLabels: Record<FilterType, string> = {
306
+ All: '全部',
307
+ Unread: '未读',
308
+ C2C: '单聊',
309
+ Group: '群聊',
310
+ };
311
+
312
+ const conversationGroupFilter: Record<string, (conversationList: ConversationModel[]) => ConversationModel[]> = {
313
+ All: (conversationList: ConversationModel[]) => conversationList,
314
+ Unread: (conversationList: ConversationModel[]) => conversationList?.filter((item: ConversationModel) => item.unreadCount > 0),
315
+ C2C: (conversationList: ConversationModel[]) => conversationList?.filter((item: ConversationModel) => item.type === 'C2C'),
316
+ Group: (conversationList: ConversationModel[]) => conversationList?.filter((item: ConversationModel) => item.type === 'GROUP'),
317
+ };
318
+
319
+ const setFilter = inject<(filter: any) => void>('setConversationFilter');
320
+
321
+ const handleFilterClick = (filterType: FilterType) => {
322
+ activeFilter.value = filterType;
323
+ const filterFn = conversationGroupFilter[filterType];
324
+ setFilter?.(filterFn);
325
+ };
326
+ </script>
327
+
328
+ <style lang="scss">
329
+ .customHeader {
330
+ padding: 8px 16px;
331
+ border-bottom: 1px solid rgba(0, 0, 0, 0.08);
332
+ display: flex;
333
+ flex-direction: column;
334
+ gap: 12px;
335
+ }
336
+
337
+ .filterTabs {
338
+ display: flex;
339
+ gap: 4px;
340
+ align-items: center;
341
+ }
342
+
343
+ .filterTab {
344
+ position: relative;
345
+ display: flex;
346
+ align-items: center;
347
+ gap: 4px;
348
+ padding: 6px 12px;
349
+ border: 1px solid rgba(0, 0, 0, 0.1);
350
+ border-radius: 16px;
351
+ background: transparent;
352
+ cursor: pointer;
353
+ font-size: 12px;
354
+ font-weight: 400;
355
+ color: #3b3d43;
356
+ transition: all 0.2s ease;
357
+ outline: none;
358
+
359
+ &.active {
360
+ border: 1px solid #1c66e5;
361
+ color: #1c66e5;
362
+ font-weight: 500;
363
+ }
364
+ }
365
+ </style>
366
+
367
+ ```
368
+
369
+ ## Props
370
+ <table>
371
+ <tr>
372
+ <td rowspan="1" colSpan="1" >**参数名**</td>
373
+
374
+ <td rowspan="1" colSpan="1" >**类型**</td>
375
+
376
+ <td rowspan="1" colSpan="1" >**默认值**</td>
377
+
378
+ <td rowspan="1" colSpan="1" >**说明**</td>
379
+ </tr>
380
+
381
+ <tr>
382
+ <td rowspan="1" colSpan="1" >enableSearch</td>
383
+
384
+ <td rowspan="1" colSpan="1" >Boolean</td>
385
+
386
+ <td rowspan="1" colSpan="1" >true</td>
387
+
388
+ <td rowspan="1" colSpan="1" >控制会话搜索功能是否显示。</td>
389
+ </tr>
390
+
391
+ <tr>
392
+ <td rowspan="1" colSpan="1" >enableCreate</td>
393
+
394
+ <td rowspan="1" colSpan="1" >Boolean</td>
395
+
396
+ <td rowspan="1" colSpan="1" >true</td>
397
+
398
+ <td rowspan="1" colSpan="1" >控制创建会话功能是否显示。</td>
399
+ </tr>
400
+
401
+ <tr>
402
+ <td rowspan="1" colSpan="1" >enableActions</td>
403
+
404
+ <td rowspan="1" colSpan="1" >Boolean</td>
405
+
406
+ <td rowspan="1" colSpan="1" >true</td>
407
+
408
+ <td rowspan="1" colSpan="1" >控制会话操作功能是否显示。</td>
409
+ </tr>
410
+
411
+ <tr>
412
+ <td rowspan="1" colSpan="1" >actionsConfig</td>
413
+
414
+ <td rowspan="1" colSpan="1" >ConversationActionsConfig</td>
415
+
416
+ <td rowspan="1" colSpan="1" >-</td>
417
+
418
+ <td rowspan="1" colSpan="1" >用于自定义会话操作配置。</td>
419
+ </tr>
420
+
421
+ <tr>
422
+ <td rowspan="1" colSpan="1" >Header</td>
423
+
424
+ <td rowspan="1" colSpan="1" >Component</td>
425
+
426
+ <td rowspan="1" colSpan="1" >Header</td>
427
+
428
+ <td rowspan="1" colSpan="1" >自定义 Header 组件。</td>
429
+ </tr>
430
+
431
+ <tr>
432
+ <td rowspan="1" colSpan="1" >List</td>
433
+
434
+ <td rowspan="1" colSpan="1" >Component</td>
435
+
436
+ <td rowspan="1" colSpan="1" >List</td>
437
+
438
+ <td rowspan="1" colSpan="1" >自定义会话列表组件。</td>
439
+ </tr>
440
+
441
+ <tr>
442
+ <td rowspan="1" colSpan="1" >Preview</td>
443
+
444
+ <td rowspan="1" colSpan="1" >Component</td>
445
+
446
+ <td rowspan="1" colSpan="1" >[ConversationPreview](https://write.woa.com/document/186960335138078720)</td>
447
+
448
+ <td rowspan="1" colSpan="1" >自定义会话预览组件。</td>
449
+ </tr>
450
+
451
+ <tr>
452
+ <td rowspan="1" colSpan="1" >ConversationCreate</td>
453
+
454
+ <td rowspan="1" colSpan="1" >Component</td>
455
+
456
+ <td rowspan="1" colSpan="1" >ConversationCreate</td>
457
+
458
+ <td rowspan="1" colSpan="1" >自定义创建会话组件。</td>
459
+ </tr>
460
+
461
+ <tr>
462
+ <td rowspan="1" colSpan="1" >ConversationSearch</td>
463
+
464
+ <td rowspan="1" colSpan="1" >Component</td>
465
+
466
+ <td rowspan="1" colSpan="1" >[Search](https://write.woa.com/document/186960410207154176)</td>
467
+
468
+ <td rowspan="1" colSpan="1" >自定义会话搜索组件。</td>
469
+ </tr>
470
+
471
+ <tr>
472
+ <td rowspan="1" colSpan="1" >ConversationActions</td>
473
+
474
+ <td rowspan="1" colSpan="1" >Component</td>
475
+
476
+ <td rowspan="1" colSpan="1" >[ConversationActions](https://write.woa.com/document/186960379083898880)</td>
477
+
478
+ <td rowspan="1" colSpan="1" >自定义会话操作组件。</td>
479
+ </tr>
480
+
481
+ <tr>
482
+ <td rowspan="1" colSpan="1" >Avatar</td>
483
+
484
+ <td rowspan="1" colSpan="1" >Component</td>
485
+
486
+ <td rowspan="1" colSpan="1" >Avatar</td>
487
+
488
+ <td rowspan="1" colSpan="1" >自定义头像组件。</td>
489
+ </tr>
490
+
491
+ <tr>
492
+ <td rowspan="1" colSpan="1" >PlaceholderEmptyList</td>
493
+
494
+ <td rowspan="1" colSpan="1" >Component</td>
495
+
496
+ <td rowspan="1" colSpan="1" ><PlaceHolder type={PlaceHolderTypes.NO_CONVERSATIONS} /></td>
497
+
498
+ <td rowspan="1" colSpan="1" >自定义会话列表为空时的占位元素。</td>
499
+ </tr>
500
+
501
+ <tr>
502
+ <td rowspan="1" colSpan="1" >PlaceholderLoading</td>
503
+
504
+ <td rowspan="1" colSpan="1" >Component</td>
505
+
506
+ <td rowspan="1" colSpan="1" ><PlaceHolder type={PlaceHolderTypes.LOADING} /></td>
507
+
508
+ <td rowspan="1" colSpan="1" >自定义会话列表加载中的占位元素。</td>
509
+ </tr>
510
+
511
+ <tr>
512
+ <td rowspan="1" colSpan="1" >PlaceholderLoadError</td>
513
+
514
+ <td rowspan="1" colSpan="1" >Component</td>
515
+
516
+ <td rowspan="1" colSpan="1" ><PlaceHolder type={PlaceHolderTypes.WRONG} /></td>
517
+
518
+ <td rowspan="1" colSpan="1" >自定义会话列表加载错误时的占位元素。</td>
519
+ </tr>
520
+
521
+ <tr>
522
+ <td rowspan="1" colSpan="1" >filter</td>
523
+
524
+ <td rowspan="1" colSpan="1" >(conversationList: ConversationModel[]) => ConversationModel[]</td>
525
+
526
+ <td rowspan="1" colSpan="1" >-</td>
527
+
528
+ <td rowspan="1" colSpan="1" >用于筛选会话列表的函数。</td>
529
+ </tr>
530
+
531
+ <tr>
532
+ <td rowspan="1" colSpan="1" >sort</td>
533
+
534
+ <td rowspan="1" colSpan="1" >(conversationList: ConversationModel[]) => ConversationModel[]</td>
535
+
536
+ <td rowspan="1" colSpan="1" >-</td>
537
+
538
+ <td rowspan="1" colSpan="1" >用于排序会话列表的函数。</td>
539
+ </tr>
540
+
541
+ <tr>
542
+ <td rowspan="1" colSpan="1" >onConversationSelect</td>
543
+
544
+ <td rowspan="1" colSpan="1" >(conversation: ConversationModel) => void;</td>
545
+
546
+ <td rowspan="1" colSpan="1" >-</td>
547
+
548
+ <td rowspan="1" colSpan="1" >点击会话后的回调函数,参数为所点击的会话对象。</td>
549
+ </tr>
550
+
551
+ <tr>
552
+ <td rowspan="1" colSpan="1" >onBeforeCreateConversation</td>
553
+
554
+ <td rowspan="1" colSpan="1" >(params: CreateParams) => CreateParams;</td>
555
+
556
+ <td rowspan="1" colSpan="1" >-</td>
557
+
558
+ <td rowspan="1" colSpan="1" >创建会话前执行的自定义操作,参数为创建会话所需的参数。</td>
559
+ </tr>
560
+
561
+ <tr>
562
+ <td rowspan="1" colSpan="1" >onConversationCreate</td>
563
+
564
+ <td rowspan="1" colSpan="1" >(conversation: ConversationModel) => void;</td>
565
+
566
+ <td rowspan="1" colSpan="1" >-</td>
567
+
568
+ <td rowspan="1" colSpan="1" >会话创建后的回调函数,参数为创建的会话对象。</td>
569
+ </tr>
570
+
571
+ <tr>
572
+ <td rowspan="1" colSpan="1" >className</td>
573
+
574
+ <td rowspan="1" colSpan="1" >String</td>
575
+
576
+ <td rowspan="1" colSpan="1" >-</td>
577
+
578
+ <td rowspan="1" colSpan="1" >指定根元素类的 CSS 自定义名称。</td>
579
+ </tr>
580
+
581
+ <tr>
582
+ <td rowspan="1" colSpan="1" >style</td>
583
+
584
+ <td rowspan="1" colSpan="1" >CSSProperties</td>
585
+
586
+ <td rowspan="1" colSpan="1" >-</td>
587
+
588
+ <td rowspan="1" colSpan="1" >指定根元素样式的自定义样式。</td>
589
+ </tr>
590
+ </table>
@@ -0,0 +1,29 @@
1
+ # chat-uikit-vue3 Login
2
+
3
+ 本文提供 chat-uikit-vue3 登录的示例代码, 通过 useLoginState 提供的 login 用来驱动组件登录。
4
+
5
+ ## 1. 登录
6
+
7
+ ```vue
8
+ <script setup lang="ts">
9
+ import { ref } from 'vue';
10
+ import { useLoginState } from '@tencentcloud/chat-uikit-vue3';
11
+
12
+ const userID = ''; // TODO: Replace with your userID
13
+ const SDKAppID = 0; // TODO: Replace with your SDKAppID (Notice: SDKAppID is of type number)
14
+ const userSig = ''; // TODO: Replace with your userSig
15
+
16
+ const { login } = useLoginState();
17
+
18
+ login({
19
+ sdkAppId : SDKAppID,
20
+ userId: userID,
21
+ userSig: userSig,
22
+ })
23
+ .then(() => {})
24
+
25
+ .catch(() => {});
26
+
27
+ </script>
28
+
29
+ ```