@spatialwalk/avatarkit 1.0.0-beta.53 → 1.0.0-beta.54

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/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.0-beta.54] - 2025-01-05
9
+
10
+ ### 🐛 Bugfix
11
+ - **Transition Animation Completion** - Fixed issue where `onTransitionComplete()` was not called when `transitionKeyframes` was empty, causing audio playback to freeze after transition animations. Now, when there are no transition frames, the state correctly transitions to `Speaking` and `onTransitionComplete()` is called to start audio playback.
12
+
8
13
  ## [1.0.0-beta.53] - 2025-01-05
9
14
 
10
15
  ### 🐛 Bugfix
@@ -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, e as errorToMessage, l as logEvent, a as logger } from "./index-CLKS00Ly.js";
4
+ import { A as APP_CONFIG, e as errorToMessage, l as logEvent, a as logger } from "./index-PRpmBehE.js";
5
5
  class StreamingAudioPlayer {
6
6
  constructor(options) {
7
7
  __publicField(this, "audioContext", null);
@@ -7579,7 +7579,7 @@ const _AnimationPlayer = class _AnimationPlayer {
7579
7579
  if (this.streamingPlayer) {
7580
7580
  return;
7581
7581
  }
7582
- const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-DNLrXB1O.js");
7582
+ const { StreamingAudioPlayer } = await import("./StreamingAudioPlayer-Vmeiag0s.js");
7583
7583
  const { AvatarSDK: AvatarSDK2 } = await Promise.resolve().then(() => AvatarSDK$1);
7584
7584
  const audioFormat = AvatarSDK2.getAudioFormat();
7585
7585
  this.streamingPlayer = new StreamingAudioPlayer({
@@ -8969,7 +8969,7 @@ class AvatarSDK {
8969
8969
  }
8970
8970
  __publicField(AvatarSDK, "_isInitialized", false);
8971
8971
  __publicField(AvatarSDK, "_configuration", null);
8972
- __publicField(AvatarSDK, "_version", "1.0.0-beta.53");
8972
+ __publicField(AvatarSDK, "_version", "1.0.0-beta.54");
8973
8973
  __publicField(AvatarSDK, "_avatarCore", null);
8974
8974
  __publicField(AvatarSDK, "_dynamicSdkConfig", null);
8975
8975
  const AvatarSDK$1 = Object.freeze(Object.defineProperty({
@@ -14218,6 +14218,15 @@ class AvatarView {
14218
14218
  lastTime = currentTime;
14219
14219
  if (state === "transitioningToSpeaking" || state === "transitioningToIdle") {
14220
14220
  if (this.transitionKeyframes.length === 0) {
14221
+ if (state === "transitioningToSpeaking") {
14222
+ this.setState("speaking");
14223
+ this.avatarController.onTransitionComplete();
14224
+ } else if (state === "transitioningToIdle") {
14225
+ this.setState("idle");
14226
+ this.stopRealtimeAnimationLoop();
14227
+ this.startIdleAnimationLoop();
14228
+ return;
14229
+ }
14221
14230
  this.realtimeAnimationLoopId = requestAnimationFrame(renderFrame);
14222
14231
  return;
14223
14232
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b, c, f, d, j, g, C, i, D, E, k, h, L, R, S, m } from "./index-CLKS00Ly.js";
1
+ import { b, c, f, d, j, g, C, i, D, E, k, h, L, R, S, m } from "./index-PRpmBehE.js";
2
2
  export {
3
3
  b as Avatar,
4
4
  c as AvatarController,
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.53",
4
+ "version": "1.0.0-beta.54",
5
5
  "packageManager": "pnpm@10.18.2",
6
6
  "description": "SPAvatar SDK - 3D Gaussian Splatting Avatar Rendering SDK",
7
7
  "author": "SPAvatar Team",