@trtc/calls-uikit-react 4.4.2 → 4.4.3-beta.1

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-zh_CN.md CHANGED
@@ -54,6 +54,12 @@ TUICallKit 支持市面上主流浏览器,详情参考:[浏览器支持情
54
54
  | 56+ | 80+ | 56+ | 11+ | 11+ | 46+ |
55
55
 
56
56
 
57
+ ## 推荐使用更高效的 AI 集成助手
58
+ 我们为您提供了全新的 AI 集成方式,如果您不需要完整的 Demo 工程, 只想快速开始集成,推荐您使用更高效的 AI 集成助手,只需要简单描述您的需求,即可自动生成集成代码,大幅提升开发效率。
59
+
60
+ 点击这里,立即体验 [AI 集成](https://cloud.tencent.com/document/product/647/125504)。
61
+
62
+
57
63
  ## 安装
58
64
  使用 npm:
59
65
  ```
package/README.md CHANGED
@@ -56,6 +56,12 @@ Please be sure to use HTTPS protocol or localhost to deploy your Web App, otherw
56
56
  | 56+ | 80+ | 56+ | 11+ | 11+ | 46+ |
57
57
 
58
58
 
59
+ ## Recommend Using the More Efficient AI Integration Assistant
60
+
61
+ We offer you a brand new method for AI integration. If you don't need the complete demo project and just want to get started with integration quickly, we recommend using the more efficient AI Integration Assistant. Simply describe your requirements, and it will automatically generate the integration code, significantly boosting development efficiency.
62
+
63
+ Click here to experience [AI integration]((https://cloud.tencent.com/document/product/647/125504)) now!
64
+
59
65
 
60
66
  ## Install
61
67
  npm:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trtc/calls-uikit-react",
3
- "version": "4.4.2",
3
+ "version": "4.4.3-beta.1",
4
4
  "main": "./tuicall-uikit-react.umd.js",
5
5
  "module": "./tuicall-uikit-react.es.js",
6
6
  "types": "./types/index.d.ts",
@@ -14,9 +14,8 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@tencentcloud/tui-core-lite": "1.0.0",
17
- "@trtc/call-engine-lite-js": "~3.5.0",
18
- "@tencentcloud/lite-chat": "^1.6.3",
19
- "@trtc/call-engine-lite-wx": "~3.4.7"
17
+ "@trtc/call-engine-lite-js": "3.5.3-beta.1",
18
+ "@tencentcloud/lite-chat": "^1.6.3"
20
19
  },
21
20
  "bugs": {
22
21
  "url": "https://github.com/tencentyun/TUICallKit/issues"
@@ -14,7 +14,6 @@ const MODAL_ERROR_CODES = [
14
14
  -1201,
15
15
  30000,
16
16
  20007,
17
- 101002,
18
17
  ];
19
18
 
20
19
  const MODAL_ERROR_MAP = {
@@ -53,10 +52,6 @@ const MODAL_ERROR_MAP = {
53
52
  '20007': {
54
53
  id: 10013,
55
54
  key: 'error.10013'
56
- },
57
- '101002': {
58
- id: 10014,
59
- key: 'error.10014'
60
55
  }
61
56
  };
62
57
 
@@ -29,7 +29,7 @@ const TUIStore: ITUIStore = TuiStore.getInstance();
29
29
  const uiDesign = UIDesign.getInstance();
30
30
  uiDesign.setTUIStore(TUIStore);
31
31
  const aiAssistant = AIAssistant.getInstance();
32
- const version = '4.4.2';
32
+ const version = '4.4.3-beta.1';
33
33
  const frameWork = 'react';
34
34
  export { TUIGlobal, TUIStore, uiDesign };
35
35
 
@@ -135,7 +135,7 @@ export const en = {
135
135
  'accept-device-error': 'Accept failed, unable to auth calling device',
136
136
  'call-error': 'Start call failed',
137
137
  // 错误提示
138
- 'error.10001': "Your application has not enabled audio/video call (TUICallKit) capability. For first-time use, you can go to <a href='https://cloud.tencent.com/document/product/647/104662'>Enable Service</a> to apply for a free trial, or purchase call capability packages: <a href='https://console.cloud.tencent.com/trtc'>Purchase Page</a>",
138
+ 'error.10001': "Your application has not enabled audio/video call (TUICallKit) capability. You can go to the <a href='https://console.cloud.tencent.com/im/detail'>console</a> to apply for a free trial or purchase call capability packages: <a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>Purchase Page</a>",
139
139
  'error.10002': "You do not currently support using this capability. Please go to the <a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>purchase page</a> to buy and activate it",
140
140
  'error.10004': "Camera/microphone permission was denied. Please check browser settings to ensure camera and microphone access is allowed. If you have confirmed permission is granted, please go to <a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>Audio/Video Capability Detection</a> to check if your device and environment support calls",
141
141
  'error.10005': "No microphone device detected. Please ensure your device has a microphone connected and check if the microphone is available in system or browser settings.",
@@ -144,6 +144,5 @@ export const en = {
144
144
  'error.10008': "TUICallEngine has not completed initialization or login. Please ensure you have successfully executed init or login operations before calling this function. Solution: <a href='https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887'>View Documentation</a>",
145
145
  'error.10012': "Detected that the current page is under HTTP protocol. To ensure smooth access and full functionality of TUICallEngine SDK for production environment users, please use HTTPS protocol (or localhost) to access the audio/video application page. For details, please visit: <a href='https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3'>View Documentation</a>",
146
146
  'error.10013': "Call failed: You have been blocked by the other party or you have blocked the other party",
147
- 'error.10014': "Call initiation failed. User ID is invalid. Please confirm that the user is registered.",
148
147
  'error': 'Error',
149
148
  };
@@ -134,7 +134,7 @@ export const ja_JP = {
134
134
  'accept-device-error': '接続できませんでした。発信側デバイスを認証できません',
135
135
  'call-error': '通話が開始できませんでした',
136
136
  // 错误提示
137
- 'error.10001': "あなたのアプリケーションは音声・ビデオ通話(TUICallKit)機能を有効にしていません。初めてご利用の場合、<a href='https://cloud.tencent.com/document/product/647/104662'>サービスを有効にする</a>で無料体験を申請するか、通話機能パッケージを購入してください:<a href='https://console.cloud.tencent.com/trtc'>購入ページ</a>",
137
+ 'error.10001': "あなたのアプリケーションは音声・ビデオ通話(TUICallKit)機能を有効にしていません。<a href='https://console.cloud.tencent.com/im/detail'>コンソール</a>で無料体験を申請するか、通話機能パッケージを購入してください:<a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>購入ページ</a>",
138
138
  'error.10002': "現在この機能を使用することはできません。<a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>購入ページ</a>で購入して有効にしてください",
139
139
  'error.10004': "カメラ/マイクのアクセス許可が拒否されました。ブラウザ設定を確認し、カメラとマイクの使用が許可されていることを確認してください。許可されている場合は、<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音声・ビデオ機能検出</a>にアクセスして、お使いのデバイスと環境が通話をサポートしているか確認してください",
140
140
  'error.10005': "マイクデバイスが検出されませんでした。デバイスにマイクが接続されていることを確認し、システムまたはブラウザ設定でマイクが利用可能かどうかを確認してください。",
@@ -143,6 +143,5 @@ export const ja_JP = {
143
143
  'error.10008': "TUICallEngineが初期化またはログインを完了していません。この機能を呼び出す前に、initまたはlogin操作が正常に実行されていることを確認してください。解決策:<a href='https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887'>ドキュメントを確認</a>",
144
144
  'error.10012': "現在のページがHTTPプロトコル下にあることが検出されました。本番環境のユーザーがTUICallEngine SDKの全機能をスムーズに利用できるようにするため、音声・ビデオアプリケーションページにはHTTPSプロトコル(またはlocalhost)を使用してアクセスしてください。詳細については、<a href='https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3'>ドキュメントを確認</a>してください",
145
145
  'error.10013': "通話失敗:相手にブロックされているか、または相手をブロックしています",
146
- 'error.10014': "通話の開始に失敗しました。ユーザーIDが無効です。ユーザーが登録されていることを確認してください。",
147
146
  'error': 'エラー',
148
147
  };
@@ -130,7 +130,7 @@ export const zh = {
130
130
  'accept-device-error': '接通失败,通话设备获取失败',
131
131
  'call-error': '发起通话失败',
132
132
  // 错误提示
133
- 'error.10001': "您的应用还未开通音视频通话(TUICallKit)能力,首次使用,您可以去<a href='https://cloud.tencent.com/document/product/647/104662'>开通服务</a>申请免费体验,或购买通话能力套餐包:<a href='https://console.cloud.tencent.com/trtc'>购买页面</a>",
133
+ 'error.10001': "您的应用还未开通音视频通话(TUICallKit)能力,您可以去<a href='https://console.cloud.tencent.com/im/detail'>控制台</a>申请免费体验,或购买通话能力套餐包:<a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>购买页面</a>",
134
134
  'error.10002': "您暂不支持使用该能力,请前往<a href='https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1'>购买页</a>购买开通",
135
135
  'error.10004': "摄像头/麦克风权限被拒绝,请检查浏览器设置,确保已允许使用您的摄像头和麦克风。如果您确认已授予权限,请前往<a href='https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html'>音视频能力检测</a>检查您的设备和环境是否支持通话",
136
136
  'error.10005': "未检测到麦克风设备。请确保您的设备已连接麦克风,并检查系统或浏览器设置中麦克风是否可用。",
@@ -139,6 +139,5 @@ export const zh = {
139
139
  'error.10008': "TUICallEngine 尚未完成初始化或登录。请确保在调用此功能前,已成功执行 init 或 login 操作。解决方案:<a href='https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887'>查看文档</a>",
140
140
  'error.10012': "检测到当前页面正处于 http 协议下,为确保生产环境用户顺畅接入和体验 TUICallEngine SDK 的全部功能,请使用 https 协议(或 localhost)访问音视频应用页面。详情请前往:<a href='https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3'>查看文档</a>",
141
141
  'error.10013': "呼叫失败:您已被对方拉黑或您拉黑了对方",
142
- 'error.10014': "发起通话失败,用户 ID 无效,请确认该用户已注册。",
143
142
  'error': '错误',
144
143
  };
@@ -0,0 +1,26 @@
1
+ import { NAME } from "../../const/index";
2
+ import { t } from '../../locales/index';
3
+
4
+ interface IStatusValidateParams {
5
+ engineInstance?: boolean;
6
+ }
7
+
8
+ export function statusValidate (config: IStatusValidateParams) {
9
+ return function (target, propertyName: string, descriptor: PropertyDescriptor) {
10
+ let method = descriptor.value;
11
+ descriptor.value = function (...args: Array<any>) {
12
+ doValidate.call(this, config, args, propertyName);
13
+ return method.apply(this, args);
14
+ };
15
+ return descriptor;
16
+ };
17
+ }
18
+
19
+ function doValidate(config) {
20
+ if (config?.engineInstance && !this._tuiCallEngine) {
21
+ const error = `${NAME.PREFIX} ${t('TUICallKit init is not complete')}`;
22
+ console.error(error);
23
+ throw error;
24
+ }
25
+ }
26
+
package/src/index.ts CHANGED
@@ -35,7 +35,7 @@ const TUICallType = {
35
35
  AUDIO_CALL: 1,
36
36
  VIDEO_CALL: 2,
37
37
  };
38
- const Version = '4.4.2'; // basic-demo 原来上报使用
38
+ const Version = '4.4.3-beta.1'; // basic-demo 原来上报使用
39
39
 
40
40
  // 输出产物
41
41
  export {