@spiffcommerce/preview 5.9.0 → 5.9.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/dist/index.d.mts CHANGED
@@ -827,6 +827,10 @@ type ModelContainer = {
827
827
  * @returns A promise which resolves when the animation has completed. If the animation is looping, the promise will resolve after the first loop.
828
828
  */
829
829
  executeAnimation(animation: ModelAnimation): Promise<void>;
830
+ /**
831
+ * Returns the last animation that was executed on the model.
832
+ */
833
+ getLastRequestedAnimation(): ModelAnimation | undefined;
830
834
  /**
831
835
  * Disposes all resources associated with the model container.
832
836
  * Note: This will also remove the container from the preview service.
package/dist/index.esm.js CHANGED
@@ -1138,10 +1138,10 @@ class it {
1138
1138
  unregisterModelVariantListener(e) {
1139
1139
  this.modelVariantObservable.removeCallback(e);
1140
1140
  }
1141
- //#endregion
1142
1141
  getLastRequestedAnimation() {
1143
1142
  return this.lastRequestedAnimation;
1144
1143
  }
1144
+ //#endregion
1145
1145
  getCurrentAnimationFrame() {
1146
1146
  var t;
1147
1147
  const e = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/preview",
3
- "version": "5.9.0",
3
+ "version": "5.9.1",
4
4
  "description": "An internal implementation of the ThreeDPreviewService interface used by Spiff Commerce",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.umd.js",