@tencent-rtc/mcp 1.0.9 → 1.1.6
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.
- package/README.md +5 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/libs/TLSSigAPIv2.d.ts +134 -0
- package/libs/TLSSigAPIv2.js +243 -0
- package/package.json +1 -1
- package/resource/doc/chatuikit/react/chat_window_integration.md +92 -0
- package/resource/doc/chatuikit/react/integration.md +14 -10
- package/resource/doc/chatuikit/vue/chat_window_integration.md +155 -0
- package/resource/doc/chatuikit/vue/components/chat.md +8 -0
- package/resource/doc/chatuikit/vue/components/chatheader.md +1 -1
- package/resource/doc/chatuikit/vue/components/conversation-list.md +5 -0
- package/resource/doc/chatuikit/vue/components/message-input.md +4 -1
- package/resource/doc/chatuikit/vue/init.md +40 -0
- package/resource/doc/chatuikit/vue/integration.md +34 -74
- package/resource/doc/livekit/vue/components/barrage.md +616 -0
- package/resource/doc/livekit/vue/components/broadcast.md +595 -0
- package/resource/doc/livekit/vue/components/co-guest-panel.md +130 -0
- package/resource/doc/livekit/vue/components/live-audience-list.md +282 -0
- package/resource/doc/livekit/vue/components/live-list.md +200 -0
- package/resource/doc/livekit/vue/components/live-player.md +269 -0
- package/resource/doc/livekit/vue/components/live-scene-panel.md +175 -0
- package/resource/doc/livekit/vue/components/live-view.md +398 -0
- package/resource/doc/livekit/vue/components/stream-mixer.md +446 -0
- package/resource/doc/livekit/vue/states/live-state.md +3591 -0
- package/resource/doc/roomkit/vue/states/device-state.md +369 -0
- package/resource/doc/roomkit/vue/states/login-state.md +59 -0
- package/resource/doc/roomkit/vue/states/room-list-state.md +355 -0
- package/resource/doc/roomkit/vue/states/room-participant-state.md +388 -0
- package/server-config.js +35 -0
- package/server-config.js.map +1 -0
- package/tools/chat/get-chat-faq.js +3 -3
- package/tools/chat/get-chat-faq.js.map +1 -1
- package/tools/chat/get-native-chat-integration.js +4 -4
- package/tools/chat/get-web-chat-component-detail.js +4 -3
- package/tools/chat/get-web-chat-component-detail.js.map +1 -1
- package/tools/chat/get-web-chat-integration.js +9 -9
- package/tools/chat/get-web-chat-integration.js.map +1 -1
- package/tools/chat/{get-web-chat-uikit-login.js → get-web-chat-uikit-init.js} +7 -7
- package/tools/chat/get-web-chat-uikit-init.js.map +1 -0
- package/tools/chat/get-web-chat-window-integration.js +37 -0
- package/tools/chat/get-web-chat-window-integration.js.map +1 -0
- package/tools/common/get-usersig.js +31 -26
- package/tools/common/get-usersig.js.map +1 -1
- package/tools/common/present-framework-choice.js +1 -1
- package/tools/common/record-prompt.js +5 -5
- package/tools/common/record-result.js +8 -7
- package/tools/common/record-result.js.map +1 -1
- package/tools/index.js +24 -9
- package/tools/index.js.map +1 -1
- package/tools/live/get-web-live-component-detail.js +34 -0
- package/tools/live/get-web-live-component-detail.js.map +1 -0
- package/tools/live/get-web-live-state-detail.js +34 -0
- package/tools/live/get-web-live-state-detail.js.map +1 -0
- package/tools/room/get-web-room-state-detail.js +34 -0
- package/tools/room/get-web-room-state-detail.js.map +1 -0
- package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js +35 -0
- package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js.map +1 -0
- package/tools/rtcengine/{get-rtcenigne-faq.js → get-trtc-web-sdk-faq.js} +5 -5
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +1 -0
- package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js +36 -0
- package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js.map +1 -0
- package/utils/generate-usersig.js +7 -9
- package/utils/generate-usersig.js.map +1 -1
- package/utils/handle-component-name.js +53 -8
- package/utils/handle-component-name.js.map +1 -1
- package/utils/handle-state-name.js +29 -0
- package/utils/handle-state-name.js.map +1 -0
- package/@tencent/aegis-node-sdk/CHANGELOG.md +0 -8
- package/@tencent/aegis-node-sdk/LICENSE +0 -21
- package/@tencent/aegis-node-sdk/README.md +0 -562
- package/@tencent/aegis-node-sdk/lib/aegis.min.js +0 -1
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +0 -14
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +0 -1
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +0 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +0 -85
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +0 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +0 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +0 -62
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +0 -11
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +0 -4
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +0 -130
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +0 -34
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +0 -18
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +0 -8
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +0 -8
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +0 -4
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +0 -10
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +0 -34
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +0 -12
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +0 -14
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +0 -12
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +0 -33
- package/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +0 -18
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +0 -60
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +0 -15
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +0 -5
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +0 -6
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +0 -18
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +0 -12
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +0 -10
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +0 -20
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +0 -27
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +0 -2
- package/@tencent/aegis-node-sdk/package.json +0 -19
- package/@tencent/polaris/README.md +0 -407
- package/@tencent/polaris/dist/consumer/health.d.ts +0 -126
- package/@tencent/polaris/dist/consumer/health.js +0 -283
- package/@tencent/polaris/dist/consumer/health.js.map +0 -1
- package/@tencent/polaris/dist/consumer/index.d.ts +0 -120
- package/@tencent/polaris/dist/consumer/index.js +0 -348
- package/@tencent/polaris/dist/consumer/index.js.map +0 -1
- package/@tencent/polaris/dist/consumer/monitor.d.ts +0 -145
- package/@tencent/polaris/dist/consumer/monitor.js +0 -343
- package/@tencent/polaris/dist/consumer/monitor.js.map +0 -1
- package/@tencent/polaris/dist/consumer/selector.d.ts +0 -73
- package/@tencent/polaris/dist/consumer/selector.js +0 -316
- package/@tencent/polaris/dist/consumer/selector.js.map +0 -1
- package/@tencent/polaris/dist/errors.d.ts +0 -373
- package/@tencent/polaris/dist/errors.js +0 -154
- package/@tencent/polaris/dist/errors.js.map +0 -1
- package/@tencent/polaris/dist/global.d.ts +0 -16
- package/@tencent/polaris/dist/global.js +0 -18
- package/@tencent/polaris/dist/global.js.map +0 -1
- package/@tencent/polaris/dist/index.d.ts +0 -62
- package/@tencent/polaris/dist/index.js +0 -145
- package/@tencent/polaris/dist/index.js.map +0 -1
- package/@tencent/polaris/dist/instance.d.ts +0 -109
- package/@tencent/polaris/dist/instance.js +0 -38
- package/@tencent/polaris/dist/instance.js.map +0 -1
- package/@tencent/polaris/dist/limiter/bucket.d.ts +0 -51
- package/@tencent/polaris/dist/limiter/bucket.js +0 -152
- package/@tencent/polaris/dist/limiter/bucket.js.map +0 -1
- package/@tencent/polaris/dist/limiter/index.d.ts +0 -73
- package/@tencent/polaris/dist/limiter/index.js +0 -149
- package/@tencent/polaris/dist/limiter/index.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimit.d.ts +0 -27
- package/@tencent/polaris/dist/limiter/ratelimit.js +0 -134
- package/@tencent/polaris/dist/limiter/ratelimit.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +0 -17
- package/@tencent/polaris/dist/limiter/ratelimiter/base.js +0 -15
- package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +0 -59
- package/@tencent/polaris/dist/limiter/ratelimiter/global.js +0 -397
- package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +0 -3
- package/@tencent/polaris/dist/limiter/ratelimiter/index.js +0 -19
- package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +0 -17
- package/@tencent/polaris/dist/limiter/ratelimiter/local.js +0 -52
- package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +0 -1
- package/@tencent/polaris/dist/location.d.ts +0 -48
- package/@tencent/polaris/dist/location.js +0 -67
- package/@tencent/polaris/dist/location.js.map +0 -1
- package/@tencent/polaris/dist/logging.d.ts +0 -106
- package/@tencent/polaris/dist/logging.js +0 -130
- package/@tencent/polaris/dist/logging.js.map +0 -1
- package/@tencent/polaris/dist/metadata.d.ts +0 -78
- package/@tencent/polaris/dist/metadata.js +0 -119
- package/@tencent/polaris/dist/metadata.js.map +0 -1
- package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +0 -47
- package/@tencent/polaris/dist/plugins/breaker/polaris.js +0 -162
- package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/base.d.ts +0 -24
- package/@tencent/polaris/dist/plugins/lb/base.js +0 -32
- package/@tencent/polaris/dist/plugins/lb/base.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/edf.d.ts +0 -24
- package/@tencent/polaris/dist/plugins/lb/edf.js +0 -77
- package/@tencent/polaris/dist/plugins/lb/edf.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +0 -24
- package/@tencent/polaris/dist/plugins/lb/hashring.js +0 -53
- package/@tencent/polaris/dist/plugins/lb/hashring.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +0 -31
- package/@tencent/polaris/dist/plugins/lb/sticky.js +0 -88
- package/@tencent/polaris/dist/plugins/lb/sticky.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +0 -25
- package/@tencent/polaris/dist/plugins/lb/swrr.js +0 -72
- package/@tencent/polaris/dist/plugins/lb/swrr.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/wr.d.ts +0 -17
- package/@tencent/polaris/dist/plugins/lb/wr.js +0 -50
- package/@tencent/polaris/dist/plugins/lb/wr.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +0 -19
- package/@tencent/polaris/dist/plugins/lb/wrr.js +0 -81
- package/@tencent/polaris/dist/plugins/lb/wrr.js.map +0 -1
- package/@tencent/polaris/dist/plugins/logging/console.d.ts +0 -10
- package/@tencent/polaris/dist/plugins/logging/console.js +0 -38
- package/@tencent/polaris/dist/plugins/logging/console.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +0 -32
- package/@tencent/polaris/dist/plugins/naming/local-server/index.js +0 -88
- package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +0 -124
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +0 -398
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +0 -27
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +0 -287
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +0 -15
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +0 -43
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +0 -28
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +0 -249
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +0 -19
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +0 -222
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +0 -26
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +0 -99
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +0 -60
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +0 -259
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +0 -24
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +0 -18
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +0 -12
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +0 -39
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +0 -115
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +0 -24
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +0 -22
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +0 -28
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +0 -80
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +0 -18
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +0 -65
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +0 -66
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +0 -95
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +0 -1568
- package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +0 -36
- package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +0 -51
- package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +0 -18
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +0 -67
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +0 -82
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +0 -11
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +0 -46
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +0 -16
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +0 -10
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +0 -1102
- package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +0 -29
- package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +0 -77
- package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +0 -12
- package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +0 -28
- package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +0 -395
- package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +0 -13
- package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +0 -116
- package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +0 -67
- package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +0 -67
- package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +0 -99
- package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +0 -217
- package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +0 -1
- package/@tencent/polaris/dist/plugins/registry/memory.d.ts +0 -10
- package/@tencent/polaris/dist/plugins/registry/memory.js +0 -50
- package/@tencent/polaris/dist/plugins/registry/memory.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +0 -51
- package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +0 -145
- package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +0 -11
- package/@tencent/polaris/dist/plugins/router/polaris/rule.js +0 -174
- package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +0 -25
- package/@tencent/polaris/dist/plugins/router/trpc/canary.js +0 -36
- package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +0 -10
- package/@tencent/polaris/dist/plugins/router/trpc/env.js +0 -34
- package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +0 -56
- package/@tencent/polaris/dist/plugins/router/trpc/set.js +0 -106
- package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +0 -1
- package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +0 -31
- package/@tencent/polaris/dist/plugins/shaping/unirate.js +0 -124
- package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +0 -1
- package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +0 -61
- package/@tencent/polaris/dist/plugins/shaping/warmup.js +0 -171
- package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +0 -1
- package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +0 -23
- package/@tencent/polaris/dist/plugins/weight/polaris.js +0 -159
- package/@tencent/polaris/dist/plugins/weight/polaris.js.map +0 -1
- package/@tencent/polaris/dist/plugins.d.ts +0 -619
- package/@tencent/polaris/dist/plugins.js +0 -91
- package/@tencent/polaris/dist/plugins.js.map +0 -1
- package/@tencent/polaris/dist/polaris.d.ts +0 -33
- package/@tencent/polaris/dist/polaris.js +0 -59
- package/@tencent/polaris/dist/polaris.js.map +0 -1
- package/@tencent/polaris/dist/provider/index.d.ts +0 -102
- package/@tencent/polaris/dist/provider/index.js +0 -168
- package/@tencent/polaris/dist/provider/index.js.map +0 -1
- package/@tencent/polaris/dist/registry.d.ts +0 -174
- package/@tencent/polaris/dist/registry.js +0 -660
- package/@tencent/polaris/dist/registry.js.map +0 -1
- package/@tencent/polaris/dist/rules.d.ts +0 -163
- package/@tencent/polaris/dist/rules.js +0 -24
- package/@tencent/polaris/dist/rules.js.map +0 -1
- package/@tencent/polaris/dist/scripts/postinstall.d.ts +0 -1
- package/@tencent/polaris/dist/scripts/postinstall.js +0 -71
- package/@tencent/polaris/dist/scripts/postinstall.js.map +0 -1
- package/@tencent/polaris/dist/service.d.ts +0 -18
- package/@tencent/polaris/dist/service.js +0 -3
- package/@tencent/polaris/dist/service.js.map +0 -1
- package/@tencent/polaris/dist/skeleton.d.ts +0 -87
- package/@tencent/polaris/dist/skeleton.js +0 -282
- package/@tencent/polaris/dist/skeleton.js.map +0 -1
- package/@tencent/polaris/dist/utils.d.ts +0 -36
- package/@tencent/polaris/dist/utils.js +0 -74
- package/@tencent/polaris/dist/utils.js.map +0 -1
- package/@tencent/polaris/dist/weak.d.ts +0 -11
- package/@tencent/polaris/dist/weak.js +0 -44
- package/@tencent/polaris/dist/weak.js.map +0 -1
- package/@tencent/polaris/package.json +0 -114
- package/libs/lib-generate-test-usersig-es.min.d.ts +0 -6
- package/libs/lib-generate-test-usersig-es.min.js +0 -2
- package/resource/doc/chatuikit/react/generate_UserSig.md +0 -306
- package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +0 -202
- package/resource/doc/chatuikit/react/integrate_tuichat_react.md +0 -279
- package/resource/doc/chatuikit/vue/generate_UserSig.md +0 -306
- package/resource/doc/chatuikit/vue/integrate_only_tuichat_Vue_web.md +0 -124
- package/resource/doc/chatuikit/vue/integrate_tuikit_Vue_web.md +0 -552
- package/resource/doc/chatuikit/vue/login.md +0 -31
- package/resource/doc/chatuikit/vue3/components/MessageInput.md +0 -1272
- package/resource/doc/chatuikit/vue3/components/avatar.md +0 -137
- package/resource/doc/chatuikit/vue3/components/chatheader.md +0 -189
- package/resource/doc/chatuikit/vue3/components/component-list.md +0 -102
- package/resource/doc/chatuikit/vue3/components/userpicker.md +0 -315
- package/resource/doc/chatuikit/vue3/integration.md +0 -256
- package/streamableHttp.js +0 -74
- package/streamableHttp.js.map +0 -1
- package/tools/call/get-native-call-integration-guide.js +0 -36
- package/tools/call/get-native-call-integration-guide.js.map +0 -1
- package/tools/call/get-web-call-integration-guide.js +0 -35
- package/tools/call/get-web-call-integration-guide.js.map +0 -1
- package/tools/chat/get-native-chat-integration-guide.js +0 -34
- package/tools/chat/get-native-chat-integration-guide.js.map +0 -1
- package/tools/chat/get-web-chat-integration-guide.js +0 -35
- package/tools/chat/get-web-chat-integration-guide.js.map +0 -1
- package/tools/chat/get-web-chat-uikit-login.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-integration-guide.js +0 -33
- package/tools/rtcengine/get-rtcengine-integration-guide.js.map +0 -1
- package/tools/rtcengine/get-rtcenigne-faq.js.map +0 -1
- /package/resource/doc/chatuikit/react/{login.md → init.md} +0 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
The AI model must comply with the following hard limits.
|
|
2
|
+
* **Strictly required document procedure integration:** You must perform the integration according to the document procedure and description. In step 1.1, `npm run dev` or `pnpm run dev` is not required. Upon completion, start the project as per step 1.4.
|
|
3
|
+
* **Strictly required example code usage:** You must strictly use the example code in the document to fill the file when creating a file. For the style tag, non-use of the scoped property is recommended.
|
|
4
|
+
* **Default session must be on:** You must use `setActiveConversation` to open the `C2Cadministrator` session.
|
|
5
|
+
* **Must call tool to obtain userSig:** After TUIKit integration is completed, you must guide users to call the `get_usersig` tool to obtain userSig.
|
|
6
|
+
* **User information configuration file creation prohibited:** Do not auto-create config directories or files that fill in SDKAppID, userID, or userSig.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# chat-uikit-vue3 Integration
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
User's integration needs have two types. You must rationally analyze which type the need belongs to.
|
|
13
|
+
1. Integrate chat window: Refers to integrating only Chat, ChatHeader, MessageList, and MessageInput components.
|
|
14
|
+
2. Integrate call feature: On the basis of integrated chat only, integrate call feature. You must read section 2.1 "Best Practice - Integrate Call Feature" for details.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
1. Seamless integration of chat window
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### 1.1 step1:create vue3 project
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
if you don't have a vue3 project, you can use vite create a vue3 project. otherwise, you can skip this step.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
requirement: vue3: ^3.0.0, nodejs: ^22.0.0.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if it is a new project, guide the user to use vite to create a vue3 project manually, and then continue with step 1.2. if it is an existing project, skip this step and continue with step 1.2.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pnpm create vite@latest
|
|
36
|
+
# skip some settings
|
|
37
|
+
cd ${your-vue-project-name}
|
|
38
|
+
pnpm install
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### 1.2 step2: install chat-uikit-vue3
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
use npm or pnpm to install @tencentcloud/chat-uikit-vue3@latest @tencentcloud/call-uikit-vue@latest
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### 1.3 step3: add main content to your project
|
|
49
|
+
```vue
|
|
50
|
+
<template>
|
|
51
|
+
<UIKitProvider>
|
|
52
|
+
<Chat style="flex: 1;">
|
|
53
|
+
<ChatHeader />
|
|
54
|
+
<MessageList />
|
|
55
|
+
<MessageInput />
|
|
56
|
+
</Chat>
|
|
57
|
+
</UIKitProvider>
|
|
58
|
+
</template>
|
|
59
|
+
<script setup lang="ts">
|
|
60
|
+
import { useLoginState, useConversationListState } from '@tencentcloud/chat-uikit-vue3';
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
const userID = ''; // TODO: Replace with your userID
|
|
64
|
+
const SDKAppID = 0; // TODO: Replace with your SDKAppID (Notice: SDKAppID is of type number)
|
|
65
|
+
const userSig = ''; // TODO: Replace with your userSig
|
|
66
|
+
const conversationID = ref('C2Cadministrator'); // define by yourself
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
const { login } = useLoginState();
|
|
70
|
+
const { setActiveConversation } = useConversationListState();
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
login({
|
|
74
|
+
sdkAppId : SDKAppID,
|
|
75
|
+
userId: userID,
|
|
76
|
+
userSig: userSig,
|
|
77
|
+
})
|
|
78
|
+
.then(() => {
|
|
79
|
+
setActiveConversation(conversationID.value);
|
|
80
|
+
})
|
|
81
|
+
.catch(() => {});
|
|
82
|
+
</script>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### 1.4 step4: start your project
|
|
87
|
+
```bash
|
|
88
|
+
pnpm run dev
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
Best Practices
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
The following components can be retrieved via MCP Tools get_component_detail ${componenetname.tolowercase()}.
|
|
96
|
+
The following states can be retrieved via MCP Tools get_state_detail ${statename.tolowercase()}.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
Focus
|
|
100
|
+
1. If necessary, integrate the ChatSetting component, please read the ChatHeaderRight slot description in ChatHeader.
|
|
101
|
+
2. Since integrated chat only does not use ConversationList, you need to obtain activeConversation via useConversationListState of ConversationListState, then call setActiveConversation to set activeConversation.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### 2.1 Best Practice - Seamless Integration of Call Feature
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
Integrate call feature: On the basis of integrated chat only, add code for call feature.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
Introduce TUICallKit.
|
|
111
|
+
```vue
|
|
112
|
+
<script setup lang="ts">
|
|
113
|
+
import { TUICallKit } from '@tencentcloud/call-uikit-vue';
|
|
114
|
+
</script>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
Add TUICallKit at the appropriate position:
|
|
119
|
+
```vue
|
|
120
|
+
<Teleport to="body">
|
|
121
|
+
<TUICallKit style="position: fixed; z-index: 1000;"/>
|
|
122
|
+
</Teleport>
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
Focus
|
|
127
|
+
1. Add a call button to the ChatHeaderRight slot in the ChatHeader Component.
|
|
128
|
+
2. Click the call button to call the following method:
|
|
129
|
+
2.1 Read the ConversationListState document and use activeConversation to judge whether it is a single chat or group chat.
|
|
130
|
+
2.2 If it is a one-to-one chat, use `import { TUICallKitServer, TUICallType } from '@tencentcloud/call-uikit-vue';` to introduce the TUICallKitService service. Initiate call via the `calls` method of TUICallKitService.
|
|
131
|
+
```ts
|
|
132
|
+
try {
|
|
133
|
+
await TUICallKitServer.calls({
|
|
134
|
+
userIDList: [activeConversation.value.userProfile.userID],
|
|
135
|
+
type: TUICallType.VIDEO_CALL, // or TUICallType.AUDIO_CALL
|
|
136
|
+
});
|
|
137
|
+
} catch (error: any) {
|
|
138
|
+
console.error(`[TUICallKit] Failed to call the groupCall API. Reason:${error}`);
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
2.3 If it is a group chat, read the UserPicker component document. It is advisable to combine with the Dialog component and pop up the UserPicker component.
|
|
142
|
+
Read the GroupSettingState document, combine GroupSettingState's `getGroupMemberList` and `allMembers` to get the group member list.
|
|
143
|
+
```ts
|
|
144
|
+
try {
|
|
145
|
+
await TUICallKitServer.calls({
|
|
146
|
+
userIDList: selectedItems.map((item: any) => item.key),
|
|
147
|
+
type: TUICallType.VIDEO_CALL, // or TUICallType.AUDIO_CALL
|
|
148
|
+
});
|
|
149
|
+
} catch (error: any) {
|
|
150
|
+
console.error(`[TUICallKit] Failed to call the groupCall API. Reason:${error}`);
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
Recommendation: Combine the `reachEnd` event of UserPicker with paged pull to get group members, and use traffic throttling to control the call frequency of `getGroupMemberList`.
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
The AI model must adhere to the following **hard constraints**:
|
|
3
|
+
|
|
4
|
+
1. **The Chat component must use the default style:** The default style for Chat is set to `flex:1; min-height: 0`.
|
|
5
|
+
|
|
6
|
+
2. **The sendMessage API must be used:** When sending quick messages, the `sendMessage` API provided by useMessageInputState must be used.
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
# Chat component document
|
|
2
10
|
|
|
3
11
|
## Overview
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The AI model must comply with the following **hard limits**.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**The example code in the document must be recommended as the preferred approach:** When creating a file, the example code in the document is recommended as the preferred approach for filling the file. The scoped attribute is recommended for non-use in style tags.
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## Overview
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
The AI model must adhere to the following **hard constraints**:
|
|
2
|
+
|
|
3
|
+
1. **Unread Count:** To retrieve the total number of unread messages, you can use the `totalUnRead` field provided by `useConversationListState`.
|
|
4
|
+
|
|
5
|
+
|
|
1
6
|
# Component Overview
|
|
2
7
|
|
|
3
8
|
The ConversationList component is responsible for rendering the conversation list, including features such as search, create, pin to top, and delete.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
The AI model must adhere to the following **hard constraints**:
|
|
2
|
+
|
|
3
|
+
**The default text alignment must be used:** Text in the message input area is left-aligned by default.
|
|
2
4
|
|
|
5
|
+
## Overview
|
|
3
6
|
|
|
4
7
|
MessageInput is a complete message input component designed for Vue3 applications, providing core chat input features including text editing, emoji selection, file attachments, and a send button. It supports various custom options, such as input behavior configuration, toolbar customization, component replacement, and slot expansion, meeting the demands of different chat scenarios with personalized requirements.
|
|
5
8
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# chat-uikit-vue3 init
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
This article provides sample code for initializing login and opening the default session in chat-uikit-vue3:
|
|
6
|
+
|
|
7
|
+
1. Drive component login using the `login` API provided by `useLoginState`.
|
|
8
|
+
|
|
9
|
+
2. Open the default session using the `setActiveConversation` API provided by `useConversationListState`.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Login and initialization example code
|
|
13
|
+
|
|
14
|
+
```vue
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import { ref } from 'vue';
|
|
17
|
+
import { useLoginState, useConversationListState } from '@tencentcloud/chat-uikit-vue3';
|
|
18
|
+
|
|
19
|
+
const userID = ''; // TODO: Replace with your userID
|
|
20
|
+
const SDKAppID = 0; // TODO: Replace with your SDKAppID (Notice: SDKAppID is of type number)
|
|
21
|
+
const userSig = ''; // TODO: Replace with your userSig
|
|
22
|
+
|
|
23
|
+
const { login } = useLoginState();
|
|
24
|
+
const { setActiveConversation } = useConversationListState();
|
|
25
|
+
|
|
26
|
+
login({
|
|
27
|
+
sdkAppId : SDKAppID,
|
|
28
|
+
userId: userID,
|
|
29
|
+
userSig: userSig,
|
|
30
|
+
})
|
|
31
|
+
.then(() => {
|
|
32
|
+
// open default conversation
|
|
33
|
+
setActiveConversation('C2Cadministrator');
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
.catch(() => {});
|
|
37
|
+
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
```
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
The AI model must comply with the following **hard limit**.
|
|
2
|
-
* **
|
|
3
|
-
* **Strictly required
|
|
4
|
-
* **
|
|
5
|
-
* **
|
|
2
|
+
* **Strictly required document procedure integration:** You must integrate the component according to the document procedure and description. In step 1.1, `npm run dev` or `pnpm run dev` is not required. Upon completion, start the project as per step 1.4.
|
|
3
|
+
* **Strictly required example code usage:** You must strictly use the example code in the document to create and fill files. For style tags, it is recommended to avoid the scoped attribute.
|
|
4
|
+
* **Default session must be enabled:** You must use `setActiveConversation` to start the `C2Cadministrator` session.
|
|
5
|
+
* **Must call tool to obtain userSig:** After TUIKit integration, you must guide users to call the `get_usersig` tool to obtain userSig.
|
|
6
|
+
* **Forbidden to create user information configuration file:** Do not auto-create config directory or file to fill in SDKAppID, userID, or userSig.
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
# chat-uikit-vue3 Integration
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
User's integration needs generally fall into
|
|
12
|
-
1. Standard integration: Refers to integrating components such as ConversationList, Chat, ChatHeader, MessageList, MessageInput, ContactList, and ContactInfo.
|
|
13
|
-
2.
|
|
14
|
-
3. Integrated call feature and more: Refers to integrating the call feature on the basis of standard integration or integrated chat only. For details, read section 2.3 "Best Practice - Integrated Call Feature and More".
|
|
12
|
+
User's integration needs generally fall into two kinds. You must rationally analyze which kind the requirement belongs to.
|
|
13
|
+
1. Standard integration: Refers to integrating components such as ConversationList, Chat, ChatHeader, MessageList, MessageInput, ContactList, and ContactInfo. You must read section 2.1 "Best Practice - Standard Integration" for details.
|
|
14
|
+
2. Integrate call feature: Refers to integrating the call feature on the basis of standard integration. You must read section 2.2 "Best Practice - Call Feature Integration" for details.
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
## 1
|
|
19
|
+
## 1 Ordinary integration
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
### 1.1 step1:create vue3 project
|
|
@@ -32,12 +32,10 @@ if it is a new project, guide the user to use vite to create a vue3 project manu
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
|
|
35
|
+
pnpm create vite@latest
|
|
36
36
|
# skip some settings
|
|
37
37
|
cd ${your-vue-project-name}
|
|
38
38
|
pnpm install
|
|
39
|
-
# test if the project is created successfully
|
|
40
|
-
pnpm run dev
|
|
41
39
|
```
|
|
42
40
|
|
|
43
41
|
|
|
@@ -52,7 +50,7 @@ use npm or pnpm to install @tencentcloud/chat-uikit-vue3@latest @tencentcloud/ca
|
|
|
52
50
|
|
|
53
51
|
```vue
|
|
54
52
|
<template>
|
|
55
|
-
<UIKitProvider language="
|
|
53
|
+
<UIKitProvider language="zh-CN">
|
|
56
54
|
<div class="chat-layout">
|
|
57
55
|
<div class="sidebar" style="width: 300px;">
|
|
58
56
|
<div class="tab-header">
|
|
@@ -60,13 +58,13 @@ use npm or pnpm to install @tencentcloud/chat-uikit-vue3@latest @tencentcloud/ca
|
|
|
60
58
|
:class="['tab-button', { active: activeTab === 'conversations' }]"
|
|
61
59
|
@click="activeTab = 'conversations'"
|
|
62
60
|
>
|
|
63
|
-
|
|
61
|
+
Session
|
|
64
62
|
</button>
|
|
65
63
|
<button
|
|
66
64
|
:class="['tab-button', { active: activeTab === 'contacts' }]"
|
|
67
65
|
@click="activeTab = 'contacts'"
|
|
68
66
|
>
|
|
69
|
-
|
|
67
|
+
Contact person
|
|
70
68
|
</button>
|
|
71
69
|
</div>
|
|
72
70
|
|
|
@@ -102,6 +100,7 @@ import {
|
|
|
102
100
|
ContactInfo,
|
|
103
101
|
UIKitProvider,
|
|
104
102
|
useLoginState,
|
|
103
|
+
useConversationListState,
|
|
105
104
|
} from '@tencentcloud/chat-uikit-vue3';
|
|
106
105
|
import { TUICallKit } from '@tencentcloud/call-uikit-vue';
|
|
107
106
|
|
|
@@ -112,6 +111,7 @@ const userSig = ''; // TODO: Replace with your userSig
|
|
|
112
111
|
|
|
113
112
|
|
|
114
113
|
const { login } = useLoginState();
|
|
114
|
+
const { setActiveConversation } = useConversationListState();
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
const activeTab = ref<'conversations' | 'contacts'>('conversations');
|
|
@@ -122,9 +122,10 @@ login({
|
|
|
122
122
|
userId: userID,
|
|
123
123
|
userSig: userSig,
|
|
124
124
|
})
|
|
125
|
-
.then(() => {
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
.then(() => {
|
|
126
|
+
start default conversation
|
|
127
|
+
setActiveConversation('C2Cadministrator');
|
|
128
|
+
})
|
|
128
129
|
.catch(() => {});
|
|
129
130
|
const handleSendMessage = () => {
|
|
130
131
|
activeTab.value = 'conversations';
|
|
@@ -138,74 +139,33 @@ const handleSendMessage = () => {
|
|
|
138
139
|
```
|
|
139
140
|
|
|
140
141
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
The following components can be retrieved via MCP Tools get_component_detail ${componenetname.tolowercase()}.
|
|
145
|
-
The following state can be retrieved via MCP Tools get_state_detail ${statename.tolowercase()}.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
### 2.1 Best Practice - Ordinary Integration
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
For ordinary integration, see the example code in section 1.3.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
Focus
|
|
155
|
-
1. If you need to integrate the ChatSetting component, please read the ChatHeaderRight slot description in ChatHeader.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
### 2.2 Best Practice - Integrated Chat Only
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
Integrated chat only is deemed as ordinary integration but only retains the Chat part. See the example code in section 1.3. However, it only retains components such as UIKitProvider, Chat, ChatHeader, MessageList, and MessageInput.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
```vue
|
|
165
|
-
<template>
|
|
166
|
-
<UIKitProvider>
|
|
167
|
-
<Chat style="flex: 1;">
|
|
168
|
-
<ChatHeader />
|
|
169
|
-
<MessageList />
|
|
170
|
-
<MessageInput />
|
|
171
|
-
</Chat>
|
|
172
|
-
</UIKitProvider>
|
|
173
|
-
</template>
|
|
142
|
+
### 1.4 step4: start your project
|
|
143
|
+
```bash
|
|
144
|
+
pnpm run dev
|
|
174
145
|
```
|
|
175
146
|
|
|
176
147
|
|
|
177
|
-
|
|
178
|
-
1. Since integrated chat only does not use ConversationList, you need to obtain activeConversation via useConversationListState from ConversationListState, then call setActiveConversation to set activeConversation.
|
|
148
|
+
Best Practice 2
|
|
179
149
|
|
|
180
150
|
|
|
151
|
+
The following components are obtained via MCP Tools get_component_detail ${componenetname.tolowercase()}.
|
|
152
|
+
The following state is obtained via MCP Tools get_state_detail ${statename.tolowercase()}.
|
|
181
153
|
|
|
182
154
|
|
|
183
|
-
|
|
184
|
-
<script setup lang="ts">
|
|
185
|
-
import { useConversationListState } from '@tencentcloud/chat-uikit-vue3';
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
const { setActiveConversation } = useConversationListState();
|
|
155
|
+
Best Practice - Ordinary Integration
|
|
189
156
|
|
|
190
157
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
onMounted(() => {
|
|
195
|
-
setActiveConversation(conversationID.value);
|
|
196
|
-
});
|
|
197
|
-
</script>
|
|
198
|
-
```
|
|
158
|
+
For seamless integration, see the example code in section 1.3.
|
|
199
159
|
|
|
200
160
|
|
|
201
161
|
Focus
|
|
202
|
-
|
|
162
|
+
1. If necessary, integrate the ChatSetting component. Please read the ChatHeaderRight slot description in ChatHeader.
|
|
203
163
|
|
|
204
164
|
|
|
205
|
-
### 2.
|
|
165
|
+
### 2.2 Best Practice - Seamless Integration of Call Feature
|
|
206
166
|
|
|
207
167
|
|
|
208
|
-
|
|
168
|
+
Seamless integration of call feature need to be added to the code on the basis of standard integration or integrated chat only.
|
|
209
169
|
|
|
210
170
|
|
|
211
171
|
Introduce TUICallKit
|
|
@@ -227,8 +187,8 @@ Add TUICallKit at the appropriate position:
|
|
|
227
187
|
Focus
|
|
228
188
|
1. Add a call button to the ChatHeaderRight slot in the ChatHeader component.
|
|
229
189
|
2. Click the call button to call the following method:
|
|
230
|
-
2.1 Read the ConversationListState document and judge whether
|
|
231
|
-
2.2 If it is a one-to-one chat,
|
|
190
|
+
2.1 Read the ConversationListState document and use activeConversation to judge whether it is a private chat or group chat.
|
|
191
|
+
2.2 If it is a one-to-one chat, use `import { TUICallKitServer, TUICallType } from '@tencentcloud/call-uikit-vue';` to introduce the TUICallKitService service. Initiate call using the `calls` method of TUICallKitService.
|
|
232
192
|
```ts
|
|
233
193
|
try {
|
|
234
194
|
await TUICallKitServer.calls({
|
|
@@ -239,7 +199,7 @@ Focus
|
|
|
239
199
|
console.error(`[TUICallKit] Failed to call the groupCall API. Reason:${error}`);
|
|
240
200
|
}
|
|
241
201
|
```
|
|
242
|
-
2.3 If it is a group chat, read the UserPicker component document. It is advisable to combine it with the Dialog component
|
|
202
|
+
2.3 If it is a group chat, read the UserPicker component document. It is advisable to combine it with the Dialog component to pop up the UserPicker component.
|
|
243
203
|
Read the GroupSettingState document, combine the `getGroupMemberList` and `allMembers` attributes of GroupSettingState to get the group member list.
|
|
244
204
|
```ts
|
|
245
205
|
try {
|
|
@@ -253,4 +213,4 @@ Focus
|
|
|
253
213
|
```
|
|
254
214
|
|
|
255
215
|
|
|
256
|
-
Recommendation: Combine the `reachEnd` event of UserPicker with paged pull for group members, and use
|
|
216
|
+
Recommendation: Combine the `reachEnd` event of UserPicker with paged pull for group members, and use traffic throttling to control the call frequency of `getGroupMemberList`.
|