@nswds/app 1.78.4 → 1.78.6

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.js CHANGED
@@ -17473,7 +17473,7 @@ function FormatToggle({ format, setFormat }) {
17473
17473
 
17474
17474
  // package.json
17475
17475
  var package_default = {
17476
- version: "1.78.0"};
17476
+ version: "1.78.5"};
17477
17477
  var SluggerContext = React5__default.createContext(null);
17478
17478
  function flattenText(nodes) {
17479
17479
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -20969,6 +20969,10 @@ var JSAnimation = class extends WithPromise {
20969
20969
  get duration() {
20970
20970
  return millisecondsToSeconds(this.calculatedDuration);
20971
20971
  }
20972
+ get iterationDuration() {
20973
+ const { delay: delay2 = 0 } = this.options || {};
20974
+ return this.duration + millisecondsToSeconds(delay2);
20975
+ }
20972
20976
  get time() {
20973
20977
  return millisecondsToSeconds(this.currentTime);
20974
20978
  }
@@ -21524,6 +21528,10 @@ var NativeAnimation = class extends WithPromise {
21524
21528
  const duration = this.animation.effect?.getComputedTiming?.().duration || 0;
21525
21529
  return millisecondsToSeconds(Number(duration));
21526
21530
  }
21531
+ get iterationDuration() {
21532
+ const { delay: delay2 = 0 } = this.options || {};
21533
+ return this.duration + millisecondsToSeconds(delay2);
21534
+ }
21527
21535
  get time() {
21528
21536
  return millisecondsToSeconds(Number(this.animation.currentTime) || 0);
21529
21537
  }
@@ -21665,7 +21673,7 @@ function canAnimate(keyframes2, name, type, velocity) {
21665
21673
  // node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
21666
21674
  function makeAnimationInstant(options) {
21667
21675
  options.duration = 0;
21668
- options.type === "keyframes";
21676
+ options.type = "keyframes";
21669
21677
  }
21670
21678
 
21671
21679
  // node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
@@ -21772,6 +21780,9 @@ var AsyncMotionValueAnimation = class extends WithPromise {
21772
21780
  get duration() {
21773
21781
  return this.animation.duration;
21774
21782
  }
21783
+ get iterationDuration() {
21784
+ return this.animation.iterationDuration;
21785
+ }
21775
21786
  get time() {
21776
21787
  return this.animation.time;
21777
21788
  }