@shotstack/shotstack-studio 2.22.1 → 2.22.2

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.
@@ -11,7 +11,7 @@ import "pixi.js/text-html";
11
11
  import "pixi.js/sprite-tiling";
12
12
  import "pixi.js/filters";
13
13
  import "pixi.js/mesh";
14
- const o8 = "2.22.0", l8 = {
14
+ const o8 = "2.22.1", l8 = {
15
15
  version: o8
16
16
  };
17
17
  function pv(e, t, i) {
@@ -237,7 +237,7 @@ class na {
237
237
  return this.normaliseAdjacentBoundaries(n), this.validateKeyframes(n), this.insertFillerKeyframes(n, i, r);
238
238
  }
239
239
  createNormalizedKeyframes(t) {
240
- return t.filter((i) => typeof i.start == "number" && typeof i.length == "number").toSorted((i, r) => i.start - r.start).map((i) => ({
240
+ return t.filter((i) => typeof i.start == "number" && typeof i.length == "number").sort((i, r) => i.start - r.start).map((i) => ({
241
241
  start: i.start,
242
242
  length: i.length,
243
243
  from: typeof i.from == "number" ? i.from : 0,
@@ -14660,6 +14660,8 @@ var SV = { gsap: `/*!
14660
14660
  var origGsapPause = origGsapTl && typeof origGsapTl.pause === "function" ? origGsapTl.pause.bind(origGsapTl) : null;
14661
14661
  var origGsapSeek = origGsapTl && typeof origGsapTl.seek === "function" ? origGsapTl.seek.bind(origGsapTl) : null;
14662
14662
  var origGsapGetChildren = origGsapTl && typeof origGsapTl.getChildren === "function" ? origGsapTl.getChildren.bind(origGsapTl) : null;
14663
+ // Capture may queue longer than an animation lasts; only the host advances its clock.
14664
+ if (origGsapPause) origGsapPause(0);
14663
14665
  var origLottieRegistered = window.lottie && typeof window.lottie.getRegisteredAnimations === "function" ? window.lottie.getRegisteredAnimations.bind(window.lottie) : null;
14664
14666
  var animeInstances = [];
14665
14667
 
@@ -14736,7 +14738,7 @@ ${IV(r)}
14736
14738
  </body>
14737
14739
  </html>`;
14738
14740
  }
14739
- var DV = "v2";
14741
+ var DV = "v3";
14740
14742
  async function PV(e) {
14741
14743
  const t = `${DV} ${e.html} ${e.css} ${e.js} ${e.width} ${e.height}`, i = new TextEncoder().encode(t), r = await crypto.subtle.digest("SHA-256", i);
14742
14744
  return Array.from(new Uint8Array(r)).map((n) => n.toString(16).padStart(2, "0")).join("");
@@ -67866,7 +67868,7 @@ function Ks(e, t, i, r = 0) {
67866
67868
  }
67867
67869
  function w2(e, t, i, r, n) {
67868
67870
  const s = ZI(t, r, n), a = Ks(e, s, n);
67869
- return (a ? e.map((l) => l === a ? { time: l.time, value: i } : l) : [...e, { time: s, value: i }]).toSorted((l, u) => l.time - u.time);
67871
+ return (a ? e.map((l) => l === a ? { time: l.time, value: i } : l) : [...e, { time: s, value: i }]).sort((l, u) => l.time - u.time);
67870
67872
  }
67871
67873
  function jrt(e, t, i) {
67872
67874
  const r = Ks(e, t, i);