@spatialwalk/avatarkit 1.0.0-beta.75 → 1.0.0-beta.76

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.
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { A as APP_CONFIG, l as logger, e as errorToMessage, a as logEvent } from "./index-DktjmkwV.js";
4
+ import { A as APP_CONFIG, l as logger, e as errorToMessage, a as logEvent } from "./index-ZN-iK3b8.js";
5
5
  class StreamingAudioPlayer {
6
6
  // Mark if AudioContext is being resumed, avoid concurrent resume requests
7
7
  constructor(options) {
@@ -7294,6 +7294,7 @@ function extractResourceUrls(meta) {
7294
7294
  var Environment = /* @__PURE__ */ ((Environment2) => {
7295
7295
  Environment2["cn"] = "cn";
7296
7296
  Environment2["intl"] = "intl";
7297
+ Environment2["test"] = "test";
7297
7298
  return Environment2;
7298
7299
  })(Environment || {});
7299
7300
  var DrivingServiceMode = /* @__PURE__ */ ((DrivingServiceMode2) => {
@@ -8243,7 +8244,7 @@ const _AnimationPlayer = class _AnimationPlayer {
8243
8244
  if (this.streamingPlayer) {
8244
8245
  return;
8245
8246
  }
8246
- const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-8jk86K8D.js");
8247
+ const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-CuNtk6eL.js");
8247
8248
  const { AvatarSDK: AvatarSDK2 } = await Promise.resolve().then(() => AvatarSDK$1);
8248
8249
  const audioFormat = AvatarSDK2.getAudioFormat();
8249
8250
  this.streamingPlayer = new StreamingAudioPlayer({
@@ -8444,7 +8445,8 @@ __publicField(_AnimationPlayer, "audioUnlocked", false);
8444
8445
  let AnimationPlayer = _AnimationPlayer;
8445
8446
  const DEFAULT_SDK_CONFIG = {
8446
8447
  [Environment.cn]: "https://api.open.spatialwalk.top",
8447
- [Environment.intl]: "https://api.intl.spatialwalk.cloud"
8448
+ [Environment.intl]: "https://api.intl.spatialwalk.cloud",
8449
+ [Environment.test]: "https://api-test.spatialwalk.top"
8448
8450
  };
8449
8451
  const configCache = {
8450
8452
  config: null,
@@ -8482,6 +8484,9 @@ async function fetchSdkConfig(version) {
8482
8484
  } else if (data.endpoints.intl) {
8483
8485
  config[Environment.intl] = `https://${data.endpoints.intl}`;
8484
8486
  }
8487
+ if (data.endpoints.test) {
8488
+ config[Environment.test] = `https://${data.endpoints.test}`;
8489
+ }
8485
8490
  configCache.config = config;
8486
8491
  logger.log(`[SdkConfigLoader] SDK config fetched successfully:`, config);
8487
8492
  } catch (error) {
@@ -9936,7 +9941,7 @@ class AvatarSDK {
9936
9941
  }
9937
9942
  __publicField(AvatarSDK, "_isInitialized", false);
9938
9943
  __publicField(AvatarSDK, "_configuration", null);
9939
- __publicField(AvatarSDK, "_version", "1.0.0-beta.75");
9944
+ __publicField(AvatarSDK, "_version", "1.0.0-beta.76");
9940
9945
  __publicField(AvatarSDK, "_avatarCore", null);
9941
9946
  __publicField(AvatarSDK, "_dynamicSdkConfig", null);
9942
9947
  const AvatarSDK$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b, c, m, f, d, j, g, C, i, D, E, k, h, L, R, n } from "./index-DktjmkwV.js";
1
+ import { b, c, m, f, d, j, g, C, i, D, E, k, h, L, R, n } from "./index-ZN-iK3b8.js";
2
2
  export {
3
3
  b as Avatar,
4
4
  c as AvatarController,
@@ -3,7 +3,8 @@
3
3
  */
4
4
  export declare enum Environment {
5
5
  cn = "cn",
6
- intl = "intl"
6
+ intl = "intl",
7
+ test = "test"
7
8
  }
8
9
  export declare enum DrivingServiceMode {
9
10
  /** Driven by SDK directly */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spatialwalk/avatarkit",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.75",
4
+ "version": "1.0.0-beta.76",
5
5
  "description": "AvatarKit SDK - 3D Gaussian Splatting Avatar Rendering SDK",
6
6
  "author": "AvatarKit Team",
7
7
  "license": "MIT",