@zeewain/3d-avatar-sdk 1.2.4-1 → 1.2.4

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.
@@ -16,7 +16,7 @@
16
16
  "lint:all-fix": "npm run lint:fix && npm run lint:css-fix"
17
17
  },
18
18
  "dependencies": {
19
- "@zeewain/3d-avatar-sdk": "^1.2.4-1",
19
+ "@zeewain/3d-avatar-sdk": "^1.2.4",
20
20
  "core-js": "^3.8.3",
21
21
  "element-ui": "^2.15.13",
22
22
  "vue": "^2.6.14"
@@ -6,8 +6,8 @@ settings:
6
6
 
7
7
  dependencies:
8
8
  '@zeewain/3d-avatar-sdk':
9
- specifier: ^1.1.0
10
- version: 1.1.0
9
+ specifier: ^1.2.1
10
+ version: 1.2.1
11
11
  core-js:
12
12
  specifier: ^3.8.3
13
13
  version: 3.43.0
@@ -2479,8 +2479,8 @@ packages:
2479
2479
  resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==}
2480
2480
  dev: true
2481
2481
 
2482
- /@zeewain/3d-avatar-sdk@1.1.0:
2483
- resolution: {integrity: sha512-V7MtXY2UALdYO+TAlLZmGyFwhUEdG8JuD+u60VyR3Zs6MrFXDfLFwyAOq4Va2+tuSePUsUMA8LgaioRaplQPFg==}
2482
+ /@zeewain/3d-avatar-sdk@1.2.1:
2483
+ resolution: {integrity: sha512-qUcSflPO6C0G3aHlSLx3YM+ze2gzPkqujYsdcO9d73HzdvSOMTcaCeDQrpiuai5tKpcQ+vXX4+v1kTu3bd91qg==}
2484
2484
  dependencies:
2485
2485
  '@microsoft/fetch-event-source': 2.0.1
2486
2486
  core-js: 3.43.0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zee-avatar-sdk-vue3-test",
3
- "version": "1.0.0",
3
+ "version": "1.2.4",
4
4
  "description": "ZEEAvatarSDK Vue3 + TypeScript + Vite 测试项目",
5
5
  "private": true,
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "@element-plus/icons-vue": "^2.3.1",
25
25
  "@vueuse/core": "^13.5.0",
26
26
  "@vueuse/integrations": "^13.5.0",
27
- "@zeewain/3d-avatar-sdk": "^1.2.4-1",
27
+ "@zeewain/3d-avatar-sdk": "^1.2.4",
28
28
  "dayjs": "^1.11.13",
29
29
  "element-plus": "^2.10.4",
30
30
  "vite-plugin-html": "^3.2.2",
@@ -425,6 +425,7 @@ function handleResumeBroadcast() {
425
425
  }
426
426
 
427
427
  function handleStopBroadcast() {
428
+ handleResetBroadcast();
428
429
  stopLoading.value = true;
429
430
  result.value = '🔄 正在停止播报...\n📡 发送停止指令到Unity引擎...\n🧹 清理播报资源和队列...';
430
431
  try {
package/dist/index.es5.js CHANGED
@@ -14423,20 +14423,12 @@ var ZEEAvatarSDKLib = (function (exports) {
14423
14423
  * @private
14424
14424
  */
14425
14425
  BroadcastService.prototype.getBroadcastApiPath = function (type) {
14426
- var env = ConfigManager.getInstance().getEnv();
14426
+ ConfigManager.getInstance().getEnv();
14427
14427
  switch (type) {
14428
14428
  case exports.BroadcastType.TEXT:
14429
- // 临时处理,开发和测试环境使用新接口
14430
- if (env === 'dev' || env === 'test') {
14431
- return '/aiep-openapi/avatar-interaction/v1/broadcast/text';
14432
- }
14433
- return '/dh-talker/user/agent/broadcast/text';
14429
+ return '/aiep-openapi/avatar-interaction/v1/broadcast/text';
14434
14430
  case exports.BroadcastType.AUDIO:
14435
- // 临时处理,开发和测试环境使用新接口
14436
- if (env === 'dev' || env === 'test') {
14437
- return '/aiep-openapi/avatar-interaction/v1/broadcast/audio';
14438
- }
14439
- return '/dh-talker/user/agent/broadcast/customAudio';
14431
+ return '/aiep-openapi/avatar-interaction/v1/broadcast/audio';
14440
14432
  default:
14441
14433
  throw new SDKError(exports.ConfigErrorCode.INVALID_CONFIG, "\u672A\u77E5\u7684\u64AD\u62A5\u7C7B\u578B: ".concat(type));
14442
14434
  }
@@ -14426,20 +14426,12 @@
14426
14426
  * @private
14427
14427
  */
14428
14428
  BroadcastService.prototype.getBroadcastApiPath = function (type) {
14429
- var env = ConfigManager.getInstance().getEnv();
14429
+ ConfigManager.getInstance().getEnv();
14430
14430
  switch (type) {
14431
14431
  case exports.BroadcastType.TEXT:
14432
- // 临时处理,开发和测试环境使用新接口
14433
- if (env === 'dev' || env === 'test') {
14434
- return '/aiep-openapi/avatar-interaction/v1/broadcast/text';
14435
- }
14436
- return '/dh-talker/user/agent/broadcast/text';
14432
+ return '/aiep-openapi/avatar-interaction/v1/broadcast/text';
14437
14433
  case exports.BroadcastType.AUDIO:
14438
- // 临时处理,开发和测试环境使用新接口
14439
- if (env === 'dev' || env === 'test') {
14440
- return '/aiep-openapi/avatar-interaction/v1/broadcast/audio';
14441
- }
14442
- return '/dh-talker/user/agent/broadcast/customAudio';
14434
+ return '/aiep-openapi/avatar-interaction/v1/broadcast/audio';
14443
14435
  default:
14444
14436
  throw new SDKError(exports.ConfigErrorCode.INVALID_CONFIG, "\u672A\u77E5\u7684\u64AD\u62A5\u7C7B\u578B: ".concat(type));
14445
14437
  }
package/dist/index.esm.js CHANGED
@@ -2062,20 +2062,12 @@ class BroadcastService extends UnityBaseService {
2062
2062
  * @private
2063
2063
  */
2064
2064
  getBroadcastApiPath(type) {
2065
- const env = ConfigManager.getInstance().getEnv();
2065
+ ConfigManager.getInstance().getEnv();
2066
2066
  switch (type) {
2067
2067
  case BroadcastType.TEXT:
2068
- // 临时处理,开发和测试环境使用新接口
2069
- if (env === 'dev' || env === 'test') {
2070
- return '/aiep-openapi/avatar-interaction/v1/broadcast/text';
2071
- }
2072
- return '/dh-talker/user/agent/broadcast/text';
2068
+ return '/aiep-openapi/avatar-interaction/v1/broadcast/text';
2073
2069
  case BroadcastType.AUDIO:
2074
- // 临时处理,开发和测试环境使用新接口
2075
- if (env === 'dev' || env === 'test') {
2076
- return '/aiep-openapi/avatar-interaction/v1/broadcast/audio';
2077
- }
2078
- return '/dh-talker/user/agent/broadcast/customAudio';
2070
+ return '/aiep-openapi/avatar-interaction/v1/broadcast/audio';
2079
2071
  default:
2080
2072
  throw new SDKError(ConfigErrorCode.INVALID_CONFIG, `未知的播报类型: ${type}`);
2081
2073
  }
@@ -2068,20 +2068,12 @@
2068
2068
  * @private
2069
2069
  */
2070
2070
  getBroadcastApiPath(type) {
2071
- const env = ConfigManager.getInstance().getEnv();
2071
+ ConfigManager.getInstance().getEnv();
2072
2072
  switch (type) {
2073
2073
  case exports.BroadcastType.TEXT:
2074
- // 临时处理,开发和测试环境使用新接口
2075
- if (env === 'dev' || env === 'test') {
2076
- return '/aiep-openapi/avatar-interaction/v1/broadcast/text';
2077
- }
2078
- return '/dh-talker/user/agent/broadcast/text';
2074
+ return '/aiep-openapi/avatar-interaction/v1/broadcast/text';
2079
2075
  case exports.BroadcastType.AUDIO:
2080
- // 临时处理,开发和测试环境使用新接口
2081
- if (env === 'dev' || env === 'test') {
2082
- return '/aiep-openapi/avatar-interaction/v1/broadcast/audio';
2083
- }
2084
- return '/dh-talker/user/agent/broadcast/customAudio';
2076
+ return '/aiep-openapi/avatar-interaction/v1/broadcast/audio';
2085
2077
  default:
2086
2078
  throw new SDKError(exports.ConfigErrorCode.INVALID_CONFIG, `未知的播报类型: ${type}`);
2087
2079
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zeewain/3d-avatar-sdk",
3
3
  "type": "module",
4
- "version": "1.2.4-1",
4
+ "version": "1.2.4",
5
5
  "description": "SDK for ZEE Avatar WebGL integration",
6
6
  "author": "ZEEWain",
7
7
  "license": "MIT",