@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,385 @@
1
+ ## 组件概述
2
+
3
+ MessageList 是一个功能强大的聊天消息列表组件,提供了完整的消息展示、交互和自定义功能。该组件支持消息分组、已读回执、消息操作、滚动控制等核心聊天功能,同时提供了丰富的自定义选项来满足不同的业务需求。
4
+
5
+ ## Props 配置
6
+ <table>
7
+ <tr>
8
+ <td rowspan="1" colSpan="1" >字段</td>
9
+
10
+ <td rowspan="1" colSpan="1" >类型</td>
11
+
12
+ <td rowspan="1" colSpan="1" >默认值</td>
13
+
14
+ <td rowspan="1" colSpan="1" >描述</td>
15
+ </tr>
16
+
17
+ <tr>
18
+ <td rowspan="1" colSpan="1" >[alignment](https://write.woa.com/document/181344255270170624)</td>
19
+
20
+ <td rowspan="1" colSpan="1" >'left' \| 'right' \| 'two-sided'</td>
21
+
22
+ <td rowspan="1" colSpan="1" >'two-sided'</td>
23
+
24
+ <td rowspan="1" colSpan="1" >消息对齐方式。<br>- left: 所有消息左对齐。<br>- right: 所有消息右对齐。<br>- two-sided: 发送消息右对齐,接收消息左对齐。</td>
25
+ </tr>
26
+
27
+ <tr>
28
+ <td rowspan="1" colSpan="1" >[enableReadReceipt](https://write.woa.com/document/181344255270170624)</td>
29
+
30
+ <td rowspan="1" colSpan="1" >boolean</td>
31
+
32
+ <td rowspan="1" colSpan="1" >false</td>
33
+
34
+ <td rowspan="1" colSpan="1" >是否启用已读回执功能。</td>
35
+ </tr>
36
+
37
+ <tr>
38
+ <td rowspan="1" colSpan="1" >[messageActionList](https://write.woa.com/document/181344255270170624)</td>
39
+
40
+ <td rowspan="1" colSpan="1" >IMessageAction[]</td>
41
+
42
+ <td rowspan="1" colSpan="1" >undefined</td>
43
+
44
+ <td rowspan="1" colSpan="1" >自定义消息操作列表,例如复制、撤回、删除等。</td>
45
+ </tr>
46
+
47
+ <tr>
48
+ <td rowspan="1" colSpan="1" >[messageAggregationTime](https://write.woa.com/document/181344255270170624)</td>
49
+
50
+ <td rowspan="1" colSpan="1" >number</td>
51
+
52
+ <td rowspan="1" colSpan="1" >300 (5分钟)</td>
53
+
54
+ <td rowspan="1" colSpan="1" >消息聚合时间间隔(秒),相同发送者在此时间内的连续消息会被聚合显示。</td>
55
+ </tr>
56
+
57
+ <tr>
58
+ <td rowspan="1" colSpan="1" >[filter](https://write.woa.com/document/181344255270170624)</td>
59
+
60
+ <td rowspan="1" colSpan="1" >(message: IMessageModel) => boolean</td>
61
+
62
+ <td rowspan="1" colSpan="1" >undefined</td>
63
+
64
+ <td rowspan="1" colSpan="1" >消息过滤函数,用于控制哪些消息需要显示。</td>
65
+ </tr>
66
+
67
+ <tr>
68
+ <td rowspan="1" colSpan="1" >[className](https://write.woa.com/document/181344255270170624)</td>
69
+
70
+ <td rowspan="1" colSpan="1" >string</td>
71
+
72
+ <td rowspan="1" colSpan="1" >undefined</td>
73
+
74
+ <td rowspan="1" colSpan="1" >自定义 CSS 类名。</td>
75
+ </tr>
76
+
77
+ <tr>
78
+ <td rowspan="1" colSpan="1" >[style](https://write.woa.com/document/181344255270170624)</td>
79
+
80
+ <td rowspan="1" colSpan="1" >React.CSSProperties</td>
81
+
82
+ <td rowspan="1" colSpan="1" >undefined</td>
83
+
84
+ <td rowspan="1" colSpan="1" >自定义内联样式。</td>
85
+ </tr>
86
+
87
+ <tr>
88
+ <td rowspan="1" colSpan="1" >[Message](https://write.woa.com/document/181344255270170624)</td>
89
+
90
+ <td rowspan="1" colSpan="1" >React.ComponentType</td>
91
+
92
+ <td rowspan="1" colSpan="1" >Message</td>
93
+
94
+ <td rowspan="1" colSpan="1" >自定义消息组件。</td>
95
+ </tr>
96
+
97
+ <tr>
98
+ <td rowspan="1" colSpan="1" >[MessageTimeDivider](https://write.woa.com/document/181344255270170624)</td>
99
+
100
+ <td rowspan="1" colSpan="1" >React.ComponentType</td>
101
+
102
+ <td rowspan="1" colSpan="1" >MessageTimeDivider</td>
103
+
104
+ <td rowspan="1" colSpan="1" >自定义时间分隔线组件。</td>
105
+ </tr>
106
+ </table>
107
+
108
+
109
+ ## Prop 字段详解
110
+
111
+ ### alignment
112
+
113
+ 参数类型: `'left' | 'right' | 'two-sided'`
114
+
115
+ alignment 用于设置消息对齐方式,支持 `left`、`right`、`two-sided` 三种模式。默认值为 `'two-sided'`。
116
+ - `two-sided`: 非本人的消息位于左侧,本人的消息位于右侧
117
+
118
+ - `left`: 所有消息位于左侧
119
+
120
+ - `right`: 所有消息位于右侧
121
+
122
+
123
+ ### enableReadReceipt
124
+
125
+ 参数类型: `boolean`
126
+
127
+ enableReadReceipt 用于设置是否开启单条消息已读回执功能,默认值为 `false`。
128
+
129
+ ### messageActionList
130
+
131
+ 参数类型: `IMessageAction[]`
132
+
133
+ messageActionList 用于设置消息操作列表,例如复制、撤回、删除等操作,默认值为完整的消息操作列表 `['copy', 'recall', 'quote', 'forward', 'delete']`。
134
+ ``` tsx
135
+ interface IMessageAction {
136
+ key: 'copy' | 'recall' | 'quote' | 'forward' | 'delete' | string;
137
+ label?: string;
138
+ icon?: React.ReactNode;
139
+ onClick?: (message: IMessageModel) => void;
140
+ visible?: ((message: IMessageModel) => boolean) | boolean;
141
+ component?: React.ComponentType<{ message: IMessageModel }>;
142
+ style?: React.CSSProperties;
143
+ }
144
+ ```
145
+
146
+ 可以使用 `useMessageAction` 获取完整的消息操作列表,然后根据需要进行自定义。
147
+
148
+ #### 示例1: 变更消息操作列表的顺序
149
+
150
+ 假设按照 `forward`、`copy`、`recall`、`quote`、`delete` 的顺序显示消息操作列表。
151
+ ``` tsx
152
+ import { Chat, MessageList, useMessageActions } from '@tencentcloud/chat-uikit-react';
153
+
154
+ const App = () => {
155
+ const actions = useMessageActions(['forward', 'copy', 'recall', 'quote', 'delete']);
156
+ return (
157
+ <Chat>
158
+ <MessageList messageActionList={actions} />
159
+ </Chat>
160
+ );
161
+ }
162
+ ```
163
+
164
+ #### 示例2: 仅展示部分消息操作
165
+
166
+ 假设仅展示 `forward`、`copy`、`recall` 三个操作。
167
+ ``` tsx
168
+ import { Chat, MessageList, useMessageActions } from '@tencentcloud/chat-uikit-react';
169
+
170
+ const App = () => {
171
+ const actions = useMessageActions(['forward', 'copy', 'recall']);
172
+ return (
173
+ <Chat>
174
+ <MessageList messageActionList={actions} />
175
+ </Chat>
176
+ );
177
+ }
178
+
179
+ ```
180
+
181
+ #### 示例3: 自定义消息操作的样式
182
+
183
+ 下面是一个自定义撤回操作的示例:
184
+ 1. 将标签修改为'撤回 ⚠️'
185
+
186
+ 2. 将颜色修改为橙色
187
+
188
+ 3. 只有文本消息可以撤回
189
+
190
+ ``` tsx
191
+ import TUIChatEngine from '@tencentcloud/chat-uikit-engine';
192
+ import { Chat, MessageList, useMessageActions } from '@tencentcloud/chat-uikit-react';
193
+
194
+ const ChatApp = () => {
195
+ const actions = useMessageActions(['copy', {
196
+ key: 'recall',
197
+ label: 'Recall ⚠️',
198
+ style: {
199
+ color: 'orange'
200
+ },
201
+ visible: (message) => message.type === TUIChatEngine.TYPES.MSG_TEXT,
202
+ }, 'quote', 'forward', 'delete']);
203
+
204
+ return (
205
+ <Chat>
206
+ <MessageList messageActionList={actions} />
207
+ </Chat>
208
+ );
209
+ }
210
+ ```
211
+
212
+ #### 示例4: 新增自定义消息操作
213
+
214
+ 假设需要自定义消息操作,如仅其他人发送的消息可以标记'喜欢',且插入在'撤回'操作之后。
215
+ ``` tsx
216
+ import { useMessageAction } from '@tencentcloud/chat-uikit-react';
217
+ import { yourApi } from '@/api/yourApi';
218
+
219
+ const customActions = {
220
+ key: 'like',
221
+ label: 'Like',
222
+ icon: <span>👍</span>,
223
+ style: {
224
+ color: '#E53888',
225
+ },
226
+ visible: (message) => message.flow === 'in',
227
+ onClick: (message) => {
228
+ yourApi.likeMessage(message.ID);
229
+ }
230
+ }
231
+
232
+ function ChatApp() {
233
+ const actions = useMessageAction(['forward', 'copy', 'recall', customActions, 'quote', 'delete']);
234
+ return <MessageList messageActionList={actions} />;
235
+ }
236
+ ```
237
+
238
+ ### messageAggregationTime
239
+
240
+ 参数类型: `number`
241
+
242
+ messageAggregationTime 用于设置消息聚合时间间隔,将相同发送者的连续消息聚合显示,默认值为 `300`(秒)。
243
+
244
+ ### filter
245
+
246
+ 参数类型: `(message: IMessageModel) => boolean`
247
+
248
+ filter 用于设置消息过滤函数,控制哪些消息需要显示,默认值为 `undefined`。
249
+
250
+ #### 示例: 过滤掉机器人发送的错误消息
251
+ ``` tsx
252
+ import { MessageList } from '@/components/MessageList';
253
+ import TUIChatEngine from '@tencentcloud/chat-uikit-engine';
254
+
255
+ const messageFilter = (message) => {
256
+ // 过滤掉发送者昵称包含 '_robot' 且内容包含 'operation-failed' 的文本消息
257
+ if (
258
+ message.nick?.includes('_robot')
259
+ && message.type === TUIChatEngine.TYPES.MSG_TEXT
260
+ && message.payload?.text?.includes('operation-failed')
261
+ ) {
262
+ return false;
263
+ }
264
+ return true;
265
+ };
266
+
267
+ function ChatApp() {
268
+ return <MessageList filter={messageFilter} />;
269
+ }
270
+ ```
271
+
272
+ ### className
273
+
274
+ 参数类型: `string`
275
+
276
+ className 用于设置根容器自定义 CSS 类名,默认值为 `undefined`。
277
+
278
+ ### style
279
+
280
+ 参数类型: `React.CSSProperties`
281
+
282
+ style 用于设置根容器自定义内联样式,默认值为 `undefined`。
283
+
284
+ ### Message
285
+
286
+ 参数类型: `React.ComponentType`
287
+
288
+ Message 用于设置自定义消息组件,替换默认的消息渲染组件,默认值为内置的 `Message` 组件。
289
+
290
+ #### 示例: 自定义 CUSTOM 消息点击跳转的消息组件
291
+ ``` tsx
292
+ import TUIChatEngine from '@tencentcloud/chat-uikit-engine';
293
+ import { Chat, MessageList, Message } from '@tencentcloud/chat-uikit-react';
294
+
295
+ function CustomMessage(props) {
296
+ const { message } = props;
297
+
298
+ if (message.type === TUIChatEngine.TYPES.MSG_CUSTOM) {
299
+ const { businessID, ...restData } = JSON.parse(message.payload.data);
300
+ if (businessID === 'text_link') {
301
+ return (
302
+ <div>
303
+ <div>{restData.text}</div>
304
+ <a href={restData.link}>
305
+ 跳转到外部网址 {restData.link}
306
+ </a>
307
+ </div>
308
+ );
309
+ }
310
+ } else {
311
+ // 其他消息类型使用默认消息组件
312
+ return <Message {...props} />;
313
+ }
314
+ }
315
+
316
+ function ChatApp() {
317
+ return (
318
+ <Chat>
319
+ <MessageList Message={CustomMessage} />
320
+ </Chat>
321
+ );
322
+ }
323
+ ```
324
+
325
+ ### MessageTimeDivider
326
+
327
+ 参数类型: `React.ComponentType`
328
+
329
+ MessageTimeDivider 用于设置自定义时间分隔线组件,默认值为内置的 `MessageTimeDivider` 组件。
330
+
331
+ #### 示例: 区分工作时间的时间分隔线
332
+ ``` tsx
333
+ import { Chat, MessageList, MessageTimeDivider } from '@tencentcloud/chat-uikit-react';
334
+
335
+ const BusinessTimeDivider: typeof MessageTimeDivider = ({ prevMessage, currentMessage }) => {
336
+ if (!prevMessage || !currentMessage) return null;
337
+
338
+ // 对于即将渲染的每一条消息获取当前消息和上一消息的时间,并转换为日期对象,判断是否跨天或间隔超过4小时
339
+ const currentTime = new Date(currentMessage.time * 1000);
340
+ const prevTime = new Date(prevMessage.time * 1000);
341
+
342
+ // 跨天或间隔超过4小时才显示
343
+ const shouldShow = currentTime.toDateString() !== prevTime.toDateString() ||
344
+ (currentTime.getTime() - prevTime.getTime()) > 4 * 60 * 60 * 1000;
345
+
346
+ if (!shouldShow) return null;
347
+
348
+ // 判断工作时间 (9:00-18:00, 周一到周五)
349
+ const isWorkingTime = () => {
350
+ const hour = currentTime.getHours();
351
+ const day = currentTime.getDay();
352
+ return day >= 1 && day <= 5 && hour >= 9 && hour <= 18;
353
+ };
354
+
355
+ const timeLabel = isWorkingTime() ? '工作时间' : '非工作时间';
356
+ const timeColor = isWorkingTime() ? '#52c41a' : '#faad14';
357
+
358
+ return (
359
+ <div style={{ textAlign: 'center', margin: '16px 0' }}>
360
+ <span style={{
361
+ backgroundColor: timeColor,
362
+ color: 'white',
363
+ padding: '2px 8px',
364
+ borderRadius: '12px',
365
+ marginRight: '8px'
366
+ }}>
367
+ {timeLabel}
368
+ </span>
369
+ {currentTime.toLocaleString()}
370
+ </div>
371
+ );
372
+ };
373
+
374
+ function ChatApp() {
375
+ return (
376
+ <Chat>
377
+ <MessageList MessageTimeDivider={BusinessTimeDivider} />
378
+ </Chat>
379
+ );
380
+ }
381
+ ```
382
+
383
+ ## 总结
384
+
385
+ MessageList 组件提供了完整的消息列表功能和丰富的自定义选项。通过合理配置 Props 和自定义组件,您可以创建出符合业务需求的聊天界面。建议在实际使用中根据具体场景选择合适的配置。
@@ -0,0 +1,64 @@
1
+ ## TUIKit 介绍
2
+
3
+ TUIKit 是基于腾讯云 IM SDK 的一款 UI 组件库,它提供了一些通用的 UI 组件,包含会话、聊天、关系链、群组、音视频通话等功能。
4
+ 基于 UI 组件您可以像搭积木一样快速搭建起自己的业务逻辑。
5
+ TUIKit 中的组件在实现 UI 功能的同时,会调用 IM SDK 相应的接口实现 IM 相关逻辑和数据的处理,因而开发者在使用 TUIKit 时只需关注自身业务或个性化扩展即可。
6
+ 基于 React 开发的 TUIKit 界面风格更契合境外客户的使用习惯,而且支持国际化,如果您的业务有出海的需求,欢迎接入。
7
+
8
+ ## TUIKit 组成
9
+
10
+ TUIKit 主要分为 ConversationList、Chat、ChatSetting、Profile 等模块,每个模块负责不同的内容,具体可参见 [开源代码](https://github.com/TencentCloud/chat-uikit-react)。
11
+
12
+ Web 端界面效果如下图所示:
13
+
14
+ ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027666621/ca60ad0a7e4011ef852f52540075b605.png)
15
+
16
+
17
+ H5 端界面效果如下图所示:
18
+
19
+ ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027666621/72617d0b7e4111efa87a525400bdab9d.png)
20
+
21
+
22
+ ## Chat 重点功能介绍
23
+
24
+ Chat 主要负责消息界面的展示。您可以利用它直接发送不同类型的消息,支持文字/表情/图片/视频/文件/自定义等消息类型,同时支持消息转发/撤回/引用、查询、已读回执等功能。
25
+
26
+ ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027666621/ae44c9c27e4211ef80ff525400d5f8ef.png)
27
+
28
+
29
+ > **说明:**
30
+ >
31
+
32
+ > 为了尊重版权,IM Demo/TUIKit 工程中默认不包含大表情元素切图。在正式上线商用前,请您替换为自己设计或拥有版权的其他表情包。请注意,下图所示的**默认小黄脸表情包版权属于腾讯云**,您可以通过升级至 [IM 企业版套餐](https://buy.cloud.tencent.com/avc) 免费使用该表情包。
33
+ >
34
+
35
+ > ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027937867/8a6f5c65391911ef933a52540055f650.png)
36
+ >
37
+
38
+
39
+ ## ConversationList 功能介绍
40
+
41
+ ConversationList 主要负责会话列表的展示和编辑,包含会话置顶、会话删除等功能。
42
+
43
+ ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027666621/b58134fa7e4211ef82535254002693fd.png)
44
+
45
+
46
+ ## ChatSetting 功能介绍
47
+
48
+ ChatSetting 主要负责 Chat 设置。
49
+
50
+ ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027666621/f9aa50217e4211efb9d8525400f69702.png)
51
+
52
+
53
+ ## Contact 重点功能介绍
54
+
55
+ Contact 主要负责关系链展示以及创建会话等操作。
56
+
57
+ ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027666621/8179f4907e4311efb9d8525400f69702.png)
58
+
59
+
60
+ ## Profile 重点功能介绍
61
+
62
+ Profile 主要负责用户资料的管理。
63
+
64
+ ![](https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027666621/8ac9cd7a7e4311ef80ff525400d5f8ef.png)
@@ -0,0 +1,25 @@
1
+ # chat-uikit-vue3 Login
2
+
3
+ 本文提供 chat-uikit-react 登录的示例代码, 通过 useLoginState 驱动组件登录。
4
+
5
+ ## 1. 登录
6
+
7
+ ```tsx
8
+ import { ref } from 'vue';
9
+ import { useLoginState } from '@tencentcloud/chat-uikit-react';
10
+
11
+ const userID = ''; // TODO: Replace with your userID
12
+ const SDKAppID = 0; // TODO: Replace with your SDKAppID (Notice: SDKAppID is of type number)
13
+ const userSig = ''; // TODO: Replace with your userSig
14
+
15
+ const { status } = useLoginState({
16
+ SDKAppID,
17
+ userID,
18
+ userSig,
19
+ })
20
+
21
+ if (status !== LoginStatus.SUCCESS) {
22
+ return <div>Loading...</div>
23
+ }
24
+
25
+ ```