@ssgoi/core 3.2.1 → 3.3.0

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.
Files changed (39) hide show
  1. package/README.md +10 -9
  2. package/dist/index.cjs +1 -2
  3. package/dist/index.js +155 -176
  4. package/dist/transition/create-transition-callback.d.ts.map +1 -1
  5. package/dist/transition/transition.d.ts +20 -13
  6. package/dist/transition/transition.d.ts.map +1 -1
  7. package/dist/transitions/blur.d.ts +2 -18
  8. package/dist/transitions/blur.d.ts.map +1 -1
  9. package/dist/transitions/bounce.d.ts +2 -18
  10. package/dist/transitions/bounce.d.ts.map +1 -1
  11. package/dist/transitions/fade.d.ts +2 -18
  12. package/dist/transitions/fade.d.ts.map +1 -1
  13. package/dist/transitions/fly.d.ts +2 -18
  14. package/dist/transitions/fly.d.ts.map +1 -1
  15. package/dist/transitions/index.cjs +1 -1
  16. package/dist/transitions/index.js +188 -172
  17. package/dist/transitions/mask.d.ts +2 -18
  18. package/dist/transitions/mask.d.ts.map +1 -1
  19. package/dist/transitions/none.d.ts +2 -18
  20. package/dist/transitions/none.d.ts.map +1 -1
  21. package/dist/transitions/rotate.d.ts +2 -18
  22. package/dist/transitions/rotate.d.ts.map +1 -1
  23. package/dist/transitions/scale.d.ts +2 -18
  24. package/dist/transitions/scale.d.ts.map +1 -1
  25. package/dist/transitions/slide.d.ts +2 -18
  26. package/dist/transitions/slide.d.ts.map +1 -1
  27. package/dist/types.d.ts +12 -2
  28. package/dist/types.d.ts.map +1 -1
  29. package/dist/utils/index.d.ts +0 -1
  30. package/dist/utils/index.d.ts.map +1 -1
  31. package/dist/view-transitions/index.cjs +9 -9
  32. package/dist/view-transitions/index.d.ts +1 -0
  33. package/dist/view-transitions/index.d.ts.map +1 -1
  34. package/dist/view-transitions/index.js +129 -99
  35. package/dist/view-transitions/rotate.d.ts +3 -0
  36. package/dist/view-transitions/rotate.d.ts.map +1 -0
  37. package/package.json +1 -1
  38. package/dist/utils/parse-caller-location.d.ts +0 -6
  39. package/dist/utils/parse-caller-location.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- var et = Object.defineProperty;
2
- var nt = (i, e, t) => e in i ? et(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var m = (i, e, t) => nt(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { normalizeToMultiSpring as I, normalizeMultiSpringSchedule as H } from "./types.js";
5
- import { isCssAnimation as Nt, isMultiSpring as Ht, isSingleSpring as qt, isTickAnimation as Yt, validateAnimationMode as Ut, validateSpringItem as Wt } from "./types.js";
6
- import { j as $t } from "./jaemin-BWkrXq0V.js";
7
- class it {
1
+ var Z = Object.defineProperty;
2
+ var tt = (i, e, t) => e in i ? Z(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var m = (i, e, t) => tt(i, typeof e != "symbol" ? e + "" : e, t);
4
+ import { normalizeToMultiSpring as I, normalizeMultiSpringSchedule as _ } from "./types.js";
5
+ import { isCssAnimation as Lt, isMultiSpring as Dt, isSingleSpring as zt, isTickAnimation as qt, validateAnimationMode as Ht, validateSpringItem as Nt } from "./types.js";
6
+ import { j as Yt } from "./jaemin-BWkrXq0V.js";
7
+ class et {
8
8
  constructor() {
9
9
  m(this, "listeners", /* @__PURE__ */ new Set());
10
10
  m(this, "rafId", null);
@@ -68,24 +68,24 @@ class it {
68
68
  return this.elapsed;
69
69
  }
70
70
  }
71
- const z = new it();
72
- function W(i) {
71
+ const z = new et();
72
+ function U(i) {
73
73
  const e = i.stiffness, t = i.damping, n = 1, r = Math.sqrt(e / n), s = t / (2 * Math.sqrt(e * n));
74
74
  return { omega: r, zeta: s };
75
75
  }
76
- function X(i, e, t, n) {
76
+ function W(i, e, t, n) {
77
77
  const { omega: r, zeta: s } = t, { position: a, velocity: o } = i, c = Math.min(n, 0.033), u = -2 * c * s * r * o, f = c * r * r * (e - a), h = o + u + f;
78
78
  return {
79
79
  position: a + c * h,
80
80
  velocity: h
81
81
  };
82
82
  }
83
- const ot = 0.01, rt = 0.01, $ = 0.05;
83
+ const nt = 0.01, it = 0.01, X = 0.05;
84
84
  function j(i, e) {
85
85
  const t = Math.abs(e - i.position), n = Math.abs(i.velocity);
86
- return t < ot && n < rt;
86
+ return t < nt && n < it;
87
87
  }
88
- function st(i) {
88
+ function ot(i) {
89
89
  const {
90
90
  from: e,
91
91
  to: t,
@@ -96,10 +96,10 @@ function st(i) {
96
96
  onStart: o
97
97
  } = i;
98
98
  let c = { position: e, velocity: r }, u = !0, f = 0, h = !1;
99
- const y = W(n), v = (l) => {
99
+ const y = U(n), v = (l) => {
100
100
  if (u) {
101
- if (h || (h = !0, o == null || o()), c = X(c, t, y, l), j(c, t)) {
102
- if (f += Math.min(l, 0.033), f >= $) {
101
+ if (h || (h = !0, o == null || o()), c = W(c, t, y, l), j(c, t)) {
102
+ if (f += Math.min(l, 0.033), f >= X) {
103
103
  c = { position: t, velocity: 0 }, u = !1, s(c.position), z.unsubscribe(v), a();
104
104
  return;
105
105
  }
@@ -118,8 +118,8 @@ function st(i) {
118
118
  };
119
119
  }
120
120
  const M = 1e3 / 60;
121
- function ct(i, e, t, n = 0) {
122
- const r = W(t), s = 600;
121
+ function rt(i, e, t, n = 0) {
122
+ const r = U(t), s = 600;
123
123
  let a = { position: i, velocity: n }, o = 0;
124
124
  const c = [];
125
125
  for (let u = 0; u < s; u++) {
@@ -128,8 +128,8 @@ function ct(i, e, t, n = 0) {
128
128
  time: f,
129
129
  position: a.position,
130
130
  velocity: a.velocity
131
- }), a = X(a, e, r, M / 1e3), j(a, e)) {
132
- if (o += M / 1e3, o >= $) {
131
+ }), a = W(a, e, r, M / 1e3), j(a, e)) {
132
+ if (o += M / 1e3, o >= X) {
133
133
  c.push({
134
134
  time: (u + 1) * M,
135
135
  position: e,
@@ -142,7 +142,7 @@ function ct(i, e, t, n = 0) {
142
142
  }
143
143
  return c;
144
144
  }
145
- function q(i, e) {
145
+ function Y(i, e) {
146
146
  if (i.length === 0)
147
147
  return { position: 0, velocity: 0 };
148
148
  const t = i[0], n = i[i.length - 1];
@@ -161,10 +161,10 @@ function q(i, e) {
161
161
  velocity: a.velocity + (o.velocity - a.velocity) * c
162
162
  };
163
163
  }
164
- function at(i, e) {
164
+ function st(i, e) {
165
165
  return i.map((t) => e(t.position));
166
166
  }
167
- function lt(i) {
167
+ function ct(i) {
168
168
  const {
169
169
  element: e,
170
170
  from: t,
@@ -174,7 +174,7 @@ function lt(i) {
174
174
  style: a,
175
175
  onComplete: o,
176
176
  onStart: c
177
- } = i, u = ct(t, n, r, s);
177
+ } = i, u = rt(t, n, r, s);
178
178
  if (u.length === 0)
179
179
  return c == null || c(), o(), {
180
180
  stop: () => {
@@ -183,7 +183,7 @@ function lt(i) {
183
183
  getVelocity: () => 0,
184
184
  isRunning: () => !1
185
185
  };
186
- const f = at(u, a), h = u[u.length - 1], y = h.time, v = e.animate(f, {
186
+ const f = st(u, a), h = u[u.length - 1], y = h.time, v = e.animate(f, {
187
187
  duration: y,
188
188
  fill: "forwards",
189
189
  easing: "linear"
@@ -201,18 +201,18 @@ function lt(i) {
201
201
  if (!l)
202
202
  return h.position;
203
203
  const A = performance.now() - d;
204
- return q(u, A).position;
204
+ return Y(u, A).position;
205
205
  },
206
206
  getVelocity: () => {
207
207
  if (!l)
208
208
  return 0;
209
209
  const A = performance.now() - d;
210
- return q(u, A).velocity;
210
+ return Y(u, A).velocity;
211
211
  },
212
212
  isRunning: () => l
213
213
  };
214
214
  }
215
- function ut(i) {
215
+ function at(i) {
216
216
  const { from: e, to: t, spring: n, velocity: r, onComplete: s, onStart: a, tick: o, css: c } = i;
217
217
  if (o && c)
218
218
  throw new Error("Cannot use both 'tick' and 'css' options together");
@@ -222,7 +222,7 @@ function ut(i) {
222
222
  getPosition: () => t,
223
223
  getVelocity: () => 0,
224
224
  isRunning: () => !1
225
- }) : c ? lt({
225
+ }) : c ? ct({
226
226
  element: c.element,
227
227
  from: e,
228
228
  to: t,
@@ -231,7 +231,7 @@ function ut(i) {
231
231
  style: c.style,
232
232
  onComplete: s,
233
233
  onStart: a
234
- }) : st({
234
+ }) : ot({
235
235
  from: e,
236
236
  to: t,
237
237
  spring: n,
@@ -241,9 +241,9 @@ function ut(i) {
241
241
  onStart: a
242
242
  });
243
243
  }
244
- class K {
244
+ class G {
245
245
  }
246
- class F extends K {
246
+ class F extends G {
247
247
  constructor(t) {
248
248
  super();
249
249
  m(this, "options");
@@ -265,7 +265,7 @@ class F extends K {
265
265
  }, this.currentValue = this.options.from;
266
266
  }
267
267
  runAnimation(t) {
268
- this.isAnimating = !0, this.controls = ut({
268
+ this.isAnimating = !0, this.controls = at({
269
269
  from: this.currentValue,
270
270
  to: t,
271
271
  spring: this.options.spring,
@@ -324,7 +324,7 @@ class F extends K {
324
324
  return r.setValue(t.position), r.setVelocity(t.velocity), r;
325
325
  }
326
326
  }
327
- class L extends K {
327
+ class L extends G {
328
328
  constructor(t) {
329
329
  super();
330
330
  m(this, "config");
@@ -520,7 +520,7 @@ class L extends K {
520
520
  return r.setValue(t.position), r.setVelocity(t.velocity), r;
521
521
  }
522
522
  }
523
- const G = Symbol.for("TRANSITION_STRATEGY"), ft = (i) => ({
523
+ const $ = Symbol.for("TRANSITION_STRATEGY"), lt = (i) => ({
524
524
  runIn: async (e) => {
525
525
  const { currentAnimation: t } = i;
526
526
  if (t && t.direction === "out") {
@@ -587,7 +587,7 @@ const G = Symbol.for("TRANSITION_STRATEGY"), ft = (i) => ({
587
587
  direction: "forward"
588
588
  };
589
589
  }
590
- }), dt = () => ({
590
+ }), ut = () => ({
591
591
  runIn: async (i) => i.in ? {
592
592
  config: await i.in,
593
593
  state: {
@@ -624,48 +624,48 @@ const G = Symbol.for("TRANSITION_STRATEGY"), ft = (i) => ({
624
624
  to: 0,
625
625
  direction: "forward"
626
626
  }
627
- }), B = "data-ssgoi-scope", J = "data-ssgoi-scope-ready";
628
- function Pt() {
627
+ }), B = "data-ssgoi-scope", K = "data-ssgoi-scope-ready";
628
+ function kt() {
629
629
  return (i) => {
630
630
  if (i)
631
631
  return i.setAttribute(B, ""), queueMicrotask(() => {
632
632
  queueMicrotask(() => {
633
- i.setAttribute(J, "true");
633
+ i.setAttribute(K, "true");
634
634
  });
635
635
  }), () => {
636
636
  };
637
637
  };
638
638
  }
639
- function mt(i) {
640
- return i.hasAttribute(J);
639
+ function ft(i) {
640
+ return i.hasAttribute(K);
641
641
  }
642
- function ht(i) {
642
+ function dt(i) {
643
643
  return i.closest(`[${B}]`);
644
644
  }
645
- function gt(i, e) {
645
+ function mt(i, e) {
646
646
  var v;
647
647
  let t = null, n = null, r = null, s = null;
648
648
  const a = {
649
649
  get currentAnimation() {
650
650
  return t;
651
651
  }
652
- }, o = ((v = e == null ? void 0 : e.strategy) == null ? void 0 : v.call(e, a)) || ft(a), c = async (l) => {
652
+ }, o = ((v = e == null ? void 0 : e.strategy) == null ? void 0 : v.call(e, a)) || lt(a), c = async (l) => {
653
653
  var E;
654
654
  n && (n.remove(), n = null);
655
655
  const d = i(), A = d.in && d.in(l), k = !(e != null && e.strategy) && d.out ? d.out(l) : void 0;
656
656
  if (!A)
657
657
  return;
658
- const V = {
658
+ const R = {
659
659
  in: I(A),
660
660
  out: k ? I(k) : void 0
661
- }, S = await o.runIn(V);
661
+ }, S = await o.runIn(R);
662
662
  if (!S.config) {
663
663
  t && (t.direction = "in");
664
664
  return;
665
665
  }
666
666
  const p = S.config;
667
667
  (E = p.prepare) == null || E.call(p, l), p.wait && await p.wait();
668
- const w = H(
668
+ const w = _(
669
669
  {
670
670
  ...p,
671
671
  onEnd: () => {
@@ -686,22 +686,22 @@ function gt(i, e) {
686
686
  const d = i(), A = !(e != null && e.strategy) && d.in ? d.in(l) : void 0, k = d.out && d.out(l);
687
687
  if (!k)
688
688
  return;
689
- const V = {
689
+ const R = {
690
690
  in: A ? I(A) : void 0,
691
691
  out: I(k)
692
- }, S = await o.runOut(V);
692
+ }, S = await o.runOut(R);
693
693
  if (!S.config) {
694
694
  t && (t.direction = "out"), n && (n.remove(), n = null);
695
695
  return;
696
696
  }
697
697
  const p = S.config;
698
698
  (C = p.prepare) == null || C.call(p, l), E(), p.wait && await p.wait();
699
- const w = H(
699
+ const w = _(
700
700
  {
701
701
  ...p,
702
702
  onEnd: () => {
703
- var R, P;
704
- (R = p.onEnd) == null || R.call(p), n && (n.remove(), n = null), t = null, (P = e == null ? void 0 : e.onCleanupEnd) == null || P.call(e);
703
+ var V, P;
704
+ (V = p.onEnd) == null || V.call(p), n && (n.remove(), n = null), t = null, (P = e == null ? void 0 : e.onCleanupEnd) == null || P.call(e);
705
705
  }
706
706
  },
707
707
  l
@@ -726,82 +726,16 @@ function gt(i, e) {
726
726
  };
727
727
  return (l) => {
728
728
  if (l)
729
- return r = l.parentElement, s = l.nextElementSibling, h = !1, (e == null ? void 0 : e.scope) === "local" ? queueMicrotask(() => {
730
- f = ht(l), !(f && !mt(f)) && c(l);
729
+ return requestAnimationFrame(() => {
730
+ r = l.parentElement, s = l.nextElementSibling;
731
+ }), h = !1, (e == null ? void 0 : e.scope) === "local" ? queueMicrotask(() => {
732
+ f = dt(l), !(f && !ft(f)) && c(l);
731
733
  }) : c(l), y(l);
732
734
  };
733
735
  }
734
- const pt = 3, wt = (i) => {
735
- if (!i) return null;
736
- const e = i.split(`
737
- `).map((t) => t.trim());
738
- for (let t = pt; t < Math.min(e.length, 6); t++) {
739
- const n = e[t], r = n == null ? void 0 : n.match(/\(?([^):]+):(\d+):(\d+)\)?$/);
740
- if (!r)
741
- continue;
742
- const s = r[1] ?? "", a = r[2] ?? "0", o = r[3] ?? "0";
743
- return { file: s.split(/[\\/]/).pop() || s, line: a, column: o };
744
- }
745
- return null;
746
- }, O = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
747
- function yt(i, e, t) {
748
- O.set(i, e);
749
- let n = _.get(i);
750
- if (n)
751
- return n;
752
- const r = e;
753
- return n = gt(
754
- () => {
755
- const s = O.get(i);
756
- return s || (console.warn(`Transition "${String(i)}" not found`), {});
757
- },
758
- {
759
- strategy: t == null ? void 0 : t.strategy,
760
- scope: t == null ? void 0 : t.scope,
761
- onCleanupEnd: () => {
762
- O.get(i) === r && Q(i);
763
- }
764
- }
765
- ), _.set(i, n), n;
766
- }
767
- function Q(i) {
768
- O.delete(i), _.delete(i);
769
- }
770
- function vt() {
771
- const i = wt(new Error().stack);
772
- return i ? `auto_${i.file}_${i.line}_${i.column}` : Symbol(`ssgoi_auto_${Date.now()}`);
773
- }
774
- const Y = globalThis.FinalizationRegistry, U = Y ? (
775
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
776
- new Y((i) => {
777
- try {
778
- Q(i);
779
- } catch {
780
- }
781
- })
782
- ) : void 0;
783
- function It(i) {
784
- const e = i.key ?? vt();
785
- if (i.ref && U)
786
- try {
787
- U.register(i.ref, e);
788
- } catch {
789
- }
790
- return yt(
791
- e,
792
- {
793
- in: i.in,
794
- out: i.out
795
- },
796
- {
797
- strategy: i[G],
798
- scope: i.scope
799
- }
800
- );
801
- }
802
736
  const b = /* @__PURE__ */ new Map();
803
- let T = null, N = !1;
804
- function Z(i) {
737
+ let T = null, q = !1;
738
+ function J(i) {
805
739
  if (i instanceof HTMLElement && b.has(i)) {
806
740
  const t = b.get(i);
807
741
  b.delete(i), queueMicrotask(() => {
@@ -811,16 +745,16 @@ function Z(i) {
811
745
  const e = i.childNodes;
812
746
  for (let t = 0; t < e.length; t++) {
813
747
  const n = e[t];
814
- n && Z(n);
748
+ n && J(n);
815
749
  }
816
750
  }
817
- function St() {
818
- N || typeof document > "u" || (N = !0, T = new MutationObserver((i) => {
751
+ function ht() {
752
+ q || typeof document > "u" || (q = !0, T = new MutationObserver((i) => {
819
753
  for (const e of i) {
820
754
  const t = e.removedNodes;
821
755
  for (let n = 0; n < t.length; n++) {
822
756
  const r = t[n];
823
- r && Z(r);
757
+ r && J(r);
824
758
  }
825
759
  }
826
760
  }), document.body ? T.observe(document.body, {
@@ -837,23 +771,69 @@ function St() {
837
771
  { once: !0 }
838
772
  ));
839
773
  }
840
- function Mt(i, e) {
841
- St(), b.set(i, e);
774
+ function gt(i, e) {
775
+ ht(), b.set(i, e);
842
776
  }
843
- function xt(i) {
777
+ function Vt(i) {
844
778
  return b.has(i);
845
779
  }
846
- function Ot() {
780
+ function Rt() {
847
781
  return b.size;
848
782
  }
849
- function Ft(i) {
783
+ function Pt(i) {
850
784
  const e = b.get(i);
851
785
  return e ? (b.delete(i), e(), !0) : !1;
852
786
  }
853
- function Lt() {
854
- b.clear(), T == null || T.disconnect(), T = null, N = !1;
787
+ function It() {
788
+ b.clear(), T == null || T.disconnect(), T = null, q = !1;
789
+ }
790
+ const O = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
791
+ function pt(i, e, t) {
792
+ O.set(i, e);
793
+ let n = H.get(i);
794
+ if (n)
795
+ return n;
796
+ const r = e;
797
+ return n = mt(
798
+ () => {
799
+ const s = O.get(i);
800
+ return s || (console.warn(`Transition "${String(i)}" not found`), {});
801
+ },
802
+ {
803
+ strategy: t == null ? void 0 : t.strategy,
804
+ scope: t == null ? void 0 : t.scope,
805
+ onCleanupEnd: () => {
806
+ O.get(i) === r && wt(i);
807
+ }
808
+ }
809
+ ), H.set(i, n), n;
810
+ }
811
+ function wt(i) {
812
+ O.delete(i), H.delete(i), N.delete(i);
813
+ }
814
+ function Mt(i, e = "manual") {
815
+ const t = pt(
816
+ i.key,
817
+ {
818
+ in: i.in,
819
+ out: i.out
820
+ },
821
+ {
822
+ strategy: i[$],
823
+ scope: i.scope
824
+ }
825
+ );
826
+ if (e === "manual")
827
+ return t;
828
+ let n = N.get(i.key);
829
+ return n || (n = (r) => {
830
+ if (r) {
831
+ const s = t(r);
832
+ s && gt(r, s);
833
+ }
834
+ }, N.set(i.key, n), n);
855
835
  }
856
- function Ct(i) {
836
+ function yt(i) {
857
837
  const e = i.filter((t) => t.symmetric).map((t) => ({
858
838
  from: t.to,
859
839
  to: t.from,
@@ -861,7 +841,7 @@ function Ct(i) {
861
841
  }));
862
842
  return [...i, ...e];
863
843
  }
864
- function At(i) {
844
+ function vt(i) {
865
845
  let e = !1, t = 0, n = 0, r = !1;
866
846
  const s = 50, a = (l) => {
867
847
  if (!i) return;
@@ -890,7 +870,7 @@ function At(i) {
890
870
  }
891
871
  };
892
872
  }
893
- const Et = (i) => {
873
+ const St = (i) => {
894
874
  let e = i.parentElement;
895
875
  for (; e && e !== document.body; ) {
896
876
  const t = window.getComputedStyle(e), n = t.overflow + t.overflowY + t.overflowX;
@@ -899,7 +879,7 @@ const Et = (i) => {
899
879
  e = e.parentElement;
900
880
  }
901
881
  return document.documentElement;
902
- }, Tt = (i) => {
882
+ }, Ct = (i) => {
903
883
  let e = i.parentElement;
904
884
  for (; e && e !== document.body; ) {
905
885
  const t = window.getComputedStyle(e).position;
@@ -909,7 +889,7 @@ const Et = (i) => {
909
889
  }
910
890
  return document.body;
911
891
  };
912
- function bt() {
892
+ function At() {
913
893
  let i = null, e = null;
914
894
  const t = /* @__PURE__ */ new Map();
915
895
  let n = null;
@@ -921,7 +901,7 @@ function bt() {
921
901
  };
922
902
  return {
923
903
  initializeContext: (f, h) => {
924
- e = f, i || (i = Et(f), (i === document.documentElement ? window : i).addEventListener("scroll", r, {
904
+ e = f, i || (i = St(f), (i === document.documentElement ? window : i).addEventListener("scroll", r, {
925
905
  passive: !0
926
906
  })), n = h;
927
907
  },
@@ -933,7 +913,7 @@ function bt() {
933
913
  };
934
914
  },
935
915
  getScrollContainer: () => i,
936
- getPositionedParentElement: () => e ? Tt(e) : document.body,
916
+ getPositionedParentElement: () => e ? Ct(e) : document.body,
937
917
  getScrollPosition: (f) => f && t.has(f) ? t.get(f) : { x: 0, y: 0 }
938
918
  };
939
919
  }
@@ -946,7 +926,7 @@ function x(i, e) {
946
926
  }
947
927
  return i === e;
948
928
  }
949
- function kt(i, e, t) {
929
+ function Et(i, e, t) {
950
930
  for (const n of t)
951
931
  if (x(i, n.from) && x(e, n.to))
952
932
  return n.transition;
@@ -955,7 +935,7 @@ function kt(i, e, t) {
955
935
  return n.transition;
956
936
  return null;
957
937
  }
958
- function Dt(i, e) {
938
+ function xt(i, e) {
959
939
  const {
960
940
  transitions: t = [],
961
941
  defaultTransition: n,
@@ -965,28 +945,28 @@ function Dt(i, e) {
965
945
  // Default to true - skip animations on iOS swipe
966
946
  } = i, { outFirst: a = !0 } = e || {};
967
947
  let o = null;
968
- const c = Ct(t), {
948
+ const c = yt(t), {
969
949
  initializeContext: u,
970
950
  calculateScrollOffset: f,
971
951
  getScrollContainer: h,
972
952
  getPositionedParentElement: y,
973
953
  getScrollPosition: v
974
- } = bt(), l = At(s);
954
+ } = At(), l = vt(s);
975
955
  l.initialize();
976
956
  function d() {
977
957
  if (o != null && o.from && (o != null && o.to)) {
978
958
  const { from: w, to: g } = r(
979
959
  o.from,
980
960
  o.to
981
- ), C = kt(
961
+ ), C = Et(
982
962
  w,
983
963
  g,
984
964
  c
985
- ) || n, R = f(
965
+ ) || n, V = f(
986
966
  o.from,
987
967
  o.to
988
968
  ), P = {
989
- scrollOffset: R,
969
+ scrollOffset: V,
990
970
  scroll: v(o.from),
991
971
  get scrollingElement() {
992
972
  return h() || document.documentElement;
@@ -994,8 +974,8 @@ function Dt(i, e) {
994
974
  get positionedParent() {
995
975
  return y();
996
976
  }
997
- }, tt = {
998
- scrollOffset: R,
977
+ }, Q = {
978
+ scrollOffset: V,
999
979
  get scroll() {
1000
980
  return o ? v(o.to) : { x: 0, y: 0 };
1001
981
  },
@@ -1009,7 +989,7 @@ function Dt(i, e) {
1009
989
  C && (C.out && o.outResolve && o.outResolve(
1010
990
  (D) => C.out(D, P)
1011
991
  ), C.in && o.inResolve && o.inResolve(
1012
- (D) => C.in(D, tt)
992
+ (D) => C.in(D, Q)
1013
993
  )), o = null;
1014
994
  }
1015
995
  }
@@ -1030,33 +1010,32 @@ function Dt(i, e) {
1030
1010
  in: async (g) => (u(g, w), (await S(w, "in"))(g)),
1031
1011
  out: async (g) => (await S(w, "out"))(g),
1032
1012
  // Add page transition strategy for page-level transitions
1033
- [G]: dt
1013
+ [$]: ut
1034
1014
  });
1035
1015
  }
1036
1016
  export {
1037
1017
  B as SCOPE_ATTR,
1038
- J as SCOPE_READY_ATTR,
1039
- G as TRANSITION_STRATEGY,
1040
- ft as createDefaultStrategy,
1041
- dt as createPageTransitionStrategy,
1042
- Dt as createSggoiTransitionContext,
1043
- Pt as createTransitionScope,
1044
- ht as findScope,
1045
- vt as generateAutoKey,
1046
- Ot as getWatchedCount,
1047
- Nt as isCssAnimation,
1048
- Ht as isMultiSpring,
1049
- mt as isScopeReady,
1050
- qt as isSingleSpring,
1051
- Yt as isTickAnimation,
1052
- xt as isWatched,
1053
- $t as jaeminInternal,
1054
- H as normalizeMultiSpringSchedule,
1018
+ K as SCOPE_READY_ATTR,
1019
+ $ as TRANSITION_STRATEGY,
1020
+ lt as createDefaultStrategy,
1021
+ ut as createPageTransitionStrategy,
1022
+ xt as createSggoiTransitionContext,
1023
+ kt as createTransitionScope,
1024
+ dt as findScope,
1025
+ Rt as getWatchedCount,
1026
+ Lt as isCssAnimation,
1027
+ Dt as isMultiSpring,
1028
+ ft as isScopeReady,
1029
+ zt as isSingleSpring,
1030
+ qt as isTickAnimation,
1031
+ Vt as isWatched,
1032
+ Yt as jaeminInternal,
1033
+ _ as normalizeMultiSpringSchedule,
1055
1034
  I as normalizeToMultiSpring,
1056
- Lt as resetObserver,
1057
- It as transition,
1058
- Ft as triggerUnmount,
1059
- Ut as validateAnimationMode,
1060
- Wt as validateSpringItem,
1061
- Mt as watchUnmount
1035
+ It as resetObserver,
1036
+ Mt as transition,
1037
+ Pt as triggerUnmount,
1038
+ Ht as validateAnimationMode,
1039
+ Nt as validateSpringItem,
1040
+ gt as watchUnmount
1062
1041
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-transition-callback.d.ts","sourceRoot":"","sources":["../../src/lib/transition/create-transition-callback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhF,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EAExB,MAAM,uBAAuB,CAAC;AAG/B,wBAAgB,wBAAwB,CACtC,aAAa,EAAE,MAAM,UAAU,CAAC,SAAS,CAAC,EAC1C,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,kBAAkB,CAAC;IAC5D,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,GACA,kBAAkB,CAgOpB"}
1
+ {"version":3,"file":"create-transition-callback.d.ts","sourceRoot":"","sources":["../../src/lib/transition/create-transition-callback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhF,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EAExB,MAAM,uBAAuB,CAAC;AAG/B,wBAAgB,wBAAwB,CACtC,aAAa,EAAE,MAAM,UAAU,CAAC,SAAS,CAAC,EAC1C,OAAO,CAAC,EAAE;IACR,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,kBAAkB,CAAC;IAC5D,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,GACA,kBAAkB,CAkOpB"}