@ssgoi/core 0.0.3 → 2.1.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 (58) hide show
  1. package/README.md +252 -23
  2. package/dist/animator.d.ts +28 -17
  3. package/dist/animator.d.ts.map +1 -1
  4. package/dist/create-ssgoi-transition-context.d.ts.map +1 -1
  5. package/dist/create-transition-callback.d.ts +3 -32
  6. package/dist/create-transition-callback.d.ts.map +1 -1
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +374 -213
  11. package/dist/presets/index.cjs +1 -0
  12. package/dist/presets/index.d.ts +16 -0
  13. package/dist/presets/index.d.ts.map +1 -0
  14. package/dist/presets/index.js +35 -0
  15. package/dist/transition-strategy.d.ts +60 -0
  16. package/dist/transition-strategy.d.ts.map +1 -0
  17. package/dist/transition.d.ts +55 -11
  18. package/dist/transition.d.ts.map +1 -1
  19. package/dist/transitions/blur.d.ts +5 -1
  20. package/dist/transitions/blur.d.ts.map +1 -1
  21. package/dist/transitions/bounce.d.ts +5 -0
  22. package/dist/transitions/bounce.d.ts.map +1 -1
  23. package/dist/transitions/fade.d.ts +3 -0
  24. package/dist/transitions/fade.d.ts.map +1 -1
  25. package/dist/transitions/fly.d.ts +30 -0
  26. package/dist/transitions/fly.d.ts.map +1 -0
  27. package/dist/transitions/index.cjs +1 -1
  28. package/dist/transitions/index.d.ts +1 -0
  29. package/dist/transitions/index.d.ts.map +1 -1
  30. package/dist/transitions/index.js +200 -120
  31. package/dist/transitions/none.d.ts +3 -0
  32. package/dist/transitions/none.d.ts.map +1 -1
  33. package/dist/transitions/rotate.d.ts +6 -0
  34. package/dist/transitions/rotate.d.ts.map +1 -1
  35. package/dist/transitions/scale.d.ts +6 -3
  36. package/dist/transitions/scale.d.ts.map +1 -1
  37. package/dist/transitions/slide.d.ts +6 -1
  38. package/dist/transitions/slide.d.ts.map +1 -1
  39. package/dist/types.d.ts +19 -7
  40. package/dist/types.d.ts.map +1 -1
  41. package/dist/utils-8Eptbv7c.cjs +2 -0
  42. package/dist/utils-DTRMUQW4.js +31 -0
  43. package/dist/utils.d.ts +11 -0
  44. package/dist/utils.d.ts.map +1 -1
  45. package/dist/view-transitions/drill.d.ts +9 -0
  46. package/dist/view-transitions/drill.d.ts.map +1 -0
  47. package/dist/view-transitions/fade.d.ts +3 -1
  48. package/dist/view-transitions/fade.d.ts.map +1 -1
  49. package/dist/view-transitions/hero.d.ts.map +1 -1
  50. package/dist/view-transitions/index.cjs +1 -1
  51. package/dist/view-transitions/index.d.ts +2 -1
  52. package/dist/view-transitions/index.d.ts.map +1 -1
  53. package/dist/view-transitions/index.js +233 -177
  54. package/dist/view-transitions/scroll.d.ts +8 -0
  55. package/dist/view-transitions/scroll.d.ts.map +1 -0
  56. package/package.json +28 -10
  57. package/dist/utils-BSgyev81.cjs +0 -1
  58. package/dist/utils-DR41YsAh.js +0 -16
@@ -1,173 +1,253 @@
1
- const l = (r = {}) => {
1
+ const m = ($ = {}) => {
2
2
  const {
3
- from: i = 0,
4
- to: c = 1,
5
- spring: a = { stiffness: 300, damping: 30 }
6
- } = r;
3
+ from: n = 0,
4
+ to: s = 1,
5
+ spring: r = { stiffness: 300, damping: 30 },
6
+ key: u
7
+ } = $;
7
8
  return {
8
- in: (o) => ({
9
- spring: a,
10
- tick: (s) => {
11
- const t = i + (c - i) * s;
12
- o.style.opacity = t.toString();
9
+ in: (l) => ({
10
+ spring: r,
11
+ tick: (y) => {
12
+ const c = n + (s - n) * y;
13
+ l.style.opacity = c.toString();
13
14
  }
14
15
  }),
15
- out: (o) => ({
16
- spring: a,
17
- tick: (s) => {
18
- const t = i + (c - i) * s;
19
- o.style.opacity = t.toString();
16
+ out: (l) => ({
17
+ spring: r,
18
+ tick: (y) => {
19
+ const c = n + (s - n) * y;
20
+ l.style.opacity = c.toString();
20
21
  }
21
- })
22
+ }),
23
+ ...u && { key: u }
22
24
  };
23
- }, u = (r = {}) => {
25
+ }, b = ($ = {}) => {
24
26
  const {
25
- from: i = 0,
26
- to: c = 1,
27
- spring: a = { stiffness: 300, damping: 30 }
28
- } = r;
27
+ start: n = 0,
28
+ opacity: s = 0,
29
+ axis: r = "both",
30
+ spring: u = { stiffness: 300, damping: 30 },
31
+ key: l
32
+ } = $, y = (c) => {
33
+ switch (r) {
34
+ case "x":
35
+ return `scaleX(${c})`;
36
+ case "y":
37
+ return `scaleY(${c})`;
38
+ case "both":
39
+ default:
40
+ return `scale(${c})`;
41
+ }
42
+ };
29
43
  return {
30
- in: (o) => ({
31
- spring: a,
32
- tick: (s) => {
33
- const t = i + (c - i) * s;
34
- o.style.transform = `scale(${t})`;
44
+ in: (c) => ({
45
+ spring: u,
46
+ tick: (t) => {
47
+ const e = n + (1 - n) * t;
48
+ c.style.transform = y(e), c.style.opacity = (s + (1 - s) * t).toString();
35
49
  }
36
50
  }),
37
- out: (o) => ({
38
- spring: a,
39
- tick: (s) => {
40
- const t = i + (c - i) * s;
41
- o.style.transform = `scale(${t})`;
51
+ out: (c) => ({
52
+ spring: u,
53
+ tick: (t) => {
54
+ const e = n + (1 - n) * t;
55
+ c.style.transform = y(e), c.style.opacity = (s + (1 - s) * t).toString();
42
56
  }
43
- })
57
+ }),
58
+ ...l && { key: l }
44
59
  };
45
- }, y = (r = {}) => {
60
+ }, x = ($ = {}) => {
46
61
  const {
47
- direction: i = "left",
48
- distance: c = 100,
49
- fade: a = !0,
50
- spring: o = { stiffness: 400, damping: 35 }
51
- } = r, s = (t) => {
52
- const n = (1 - t) * c;
53
- switch (i) {
62
+ direction: n,
63
+ distance: s = 100,
64
+ opacity: r = 0,
65
+ fade: u = !0,
66
+ axis: l,
67
+ spring: y = { stiffness: 400, damping: 35 },
68
+ key: c
69
+ } = $, e = n || (l === "x" ? "left" : l === "y" ? "up" : "left"), o = (a) => typeof a == "number" ? `${a}px` : a, f = (a) => {
70
+ const i = 1 - a, p = typeof s == "number" ? i * s : `calc(${o(s)} * ${i})`;
71
+ switch (e) {
54
72
  case "left":
55
- return `translateX(${-n}px)`;
73
+ return typeof s == "number" ? `translateX(${-p}px)` : `translateX(calc(-1 * ${p}))`;
56
74
  case "right":
57
- return `translateX(${n}px)`;
75
+ return typeof s == "number" ? `translateX(${p}px)` : `translateX(${p})`;
58
76
  case "up":
59
- return `translateY(${-n}px)`;
77
+ return typeof s == "number" ? `translateY(${-p}px)` : `translateY(calc(-1 * ${p}))`;
60
78
  case "down":
61
- return `translateY(${n}px)`;
79
+ return typeof s == "number" ? `translateY(${p}px)` : `translateY(${p})`;
62
80
  }
63
81
  };
64
82
  return {
65
- in: (t) => ({
66
- spring: o,
67
- tick: (n) => {
68
- t.style.transform = s(n), a && (t.style.opacity = n.toString());
83
+ in: (a) => ({
84
+ spring: y,
85
+ tick: (i) => {
86
+ a.style.transform = f(i), u && (a.style.opacity = (r + (1 - r) * i).toString());
69
87
  }
70
88
  }),
71
- out: (t) => ({
72
- spring: o,
73
- tick: (n) => {
74
- t.style.transform = s(n), a && (t.style.opacity = n.toString());
89
+ out: (a) => ({
90
+ spring: y,
91
+ tick: (i) => {
92
+ a.style.transform = f(i), u && (a.style.opacity = (r + (1 - r) * i).toString());
75
93
  }
76
- })
94
+ }),
95
+ ...c && { key: c }
96
+ };
97
+ }, d = ($ = {}) => {
98
+ const {
99
+ degrees: n = 360,
100
+ clockwise: s = !0,
101
+ scale: r = !1,
102
+ fade: u = !0,
103
+ origin: l = "center",
104
+ axis: y = "2d",
105
+ perspective: c = 800,
106
+ spring: t = { stiffness: 500, damping: 25 },
107
+ key: e
108
+ } = $, o = s ? n : -n, f = (a) => {
109
+ const i = (1 - a) * o;
110
+ switch (y) {
111
+ case "x":
112
+ return `perspective(${c}px) rotateX(${i}deg)`;
113
+ case "y":
114
+ return `perspective(${c}px) rotateY(${i}deg)`;
115
+ case "z":
116
+ return `rotateZ(${i}deg)`;
117
+ case "2d":
118
+ default:
119
+ return `rotate(${i}deg)`;
120
+ }
121
+ };
122
+ return {
123
+ in: (a) => ({
124
+ spring: t,
125
+ tick: (i) => {
126
+ const p = [f(i)];
127
+ r && p.push(`scale(${i})`), a.style.transform = p.join(" "), a.style.transformOrigin = l, u && (a.style.opacity = i.toString());
128
+ }
129
+ }),
130
+ out: (a) => ({
131
+ spring: t,
132
+ tick: (i) => {
133
+ const p = [f(i)];
134
+ r && p.push(`scale(${i})`), a.style.transform = p.join(" "), a.style.transformOrigin = l, u && (a.style.opacity = i.toString());
135
+ }
136
+ }),
137
+ ...e && { key: e }
77
138
  };
78
- }, p = (r = {}) => {
139
+ }, g = ($ = {}) => {
79
140
  const {
80
- degrees: i = 360,
81
- clockwise: c = !0,
82
- scale: a = !1,
83
- fade: o = !1,
84
- spring: s = { stiffness: 500, damping: 25 }
85
- } = r, t = c ? i : -i;
141
+ height: n = 20,
142
+ intensity: s = 1,
143
+ scale: r = !0,
144
+ fade: u = !0,
145
+ direction: l = "up",
146
+ spring: y = { stiffness: 800, damping: 15 },
147
+ key: c
148
+ } = $;
86
149
  return {
87
- in: (n) => ({
88
- spring: s,
150
+ in: (t) => ({
151
+ spring: y,
89
152
  tick: (e) => {
90
- const f = [`rotate(${e * t}deg)`];
91
- a && f.push(`scale(${e})`), n.style.transform = f.join(" "), o && (n.style.opacity = e.toString());
153
+ const o = [], f = Math.sin(e * Math.PI * (1 + s)), a = 1 - e, i = f * n * a;
154
+ if (l === "up" ? o.push(`translateY(${-Math.abs(i)}px)`) : o.push(`translateY(${Math.abs(i)}px)`), r) {
155
+ const p = 0.8 + e * 0.2 + f * 0.05 * a;
156
+ o.push(`scale(${p})`);
157
+ }
158
+ t.style.transform = o.join(" "), u && (t.style.opacity = e.toString());
92
159
  }
93
160
  }),
94
- out: (n) => ({
95
- spring: s,
161
+ out: (t) => ({
162
+ spring: y,
96
163
  tick: (e) => {
97
- const f = [`rotate(${e * t}deg)`];
98
- a && f.push(`scale(${e})`), n.style.transform = f.join(" "), o && (n.style.opacity = e.toString());
164
+ const o = [], f = Math.sin(e * Math.PI * (1 + s)), a = 1 - e, i = f * n * a;
165
+ if (l === "up" ? o.push(`translateY(${-Math.abs(i)}px)`) : o.push(`translateY(${Math.abs(i)}px)`), r) {
166
+ const p = 0.8 + e * 0.2 + f * 0.05 * a;
167
+ o.push(`scale(${p})`);
168
+ }
169
+ t.style.transform = o.join(" "), u && (t.style.opacity = e.toString());
99
170
  }
100
- })
171
+ }),
172
+ ...c && { key: c }
101
173
  };
102
- }, d = (r = {}) => {
174
+ }, k = ($ = {}) => {
103
175
  const {
104
- height: i = 20,
105
- scale: c = !0,
106
- fade: a = !1,
107
- spring: o = { stiffness: 800, damping: 15 }
108
- } = r;
176
+ amount: n = 10,
177
+ opacity: s = 0,
178
+ scale: r = !1,
179
+ fade: u = !0,
180
+ spring: l = { stiffness: 300, damping: 30 },
181
+ key: y
182
+ } = $, c = (t) => typeof t == "number" ? `${t}px` : t;
109
183
  return {
110
- in: (s) => ({
111
- spring: o,
112
- tick: (t) => {
113
- const n = [], e = Math.sin(t * Math.PI) * i * (1 - t);
114
- n.push(`translateY(${-e}px)`), c && n.push(`scale(${0.8 + t * 0.2})`), s.style.transform = n.join(" "), a && (s.style.opacity = t.toString());
184
+ in: (t) => ({
185
+ spring: l,
186
+ tick: (e) => {
187
+ const o = 1 - e, f = typeof n == "number" ? o * n : `calc(${c(n)} * ${o})`;
188
+ t.style.filter = typeof n == "number" ? `blur(${f}px)` : `blur(${f})`, r && (t.style.transform = `scale(${0.8 + e * 0.2})`), u && (t.style.opacity = (s + (1 - s) * e).toString());
115
189
  }
116
190
  }),
117
- out: (s) => ({
118
- spring: o,
119
- tick: (t) => {
120
- const n = [], e = Math.sin(t * Math.PI) * i * (1 - t);
121
- n.push(`translateY(${-e}px)`), c && n.push(`scale(${0.8 + t * 0.2})`), s.style.transform = n.join(" "), a && (s.style.opacity = t.toString());
191
+ out: (t) => ({
192
+ spring: l,
193
+ tick: (e) => {
194
+ const o = 1 - e, f = typeof n == "number" ? o * n : `calc(${c(n)} * ${o})`;
195
+ t.style.filter = typeof n == "number" ? `blur(${f}px)` : `blur(${f})`, r && (t.style.transform = `scale(${0.8 + e * 0.2})`), u && (t.style.opacity = (s + (1 - s) * e).toString());
122
196
  }
123
- })
197
+ }),
198
+ ...y && { key: y }
124
199
  };
125
- }, $ = (r = {}) => {
200
+ }, h = ($ = {}) => {
126
201
  const {
127
- amount: i = 10,
128
- scale: c = !1,
129
- fade: a = !0,
130
- spring: o = { stiffness: 300, damping: 30 }
131
- } = r;
202
+ x: n = 0,
203
+ y: s = -100,
204
+ opacity: r = 0,
205
+ spring: u = { stiffness: 400, damping: 35 },
206
+ key: l
207
+ } = $, y = (t) => typeof t == "number" ? `${t}px` : t, c = (t) => typeof t == "number" ? `${t}px` : t;
132
208
  return {
133
- in: (s) => ({
134
- spring: o,
135
- tick: (t) => {
136
- const e = [`blur(${(1 - t) * i}px)`];
137
- s.style.filter = e.join(" "), c && (s.style.transform = `scale(${0.8 + t * 0.2})`), a && (s.style.opacity = t.toString());
209
+ in: (t) => ({
210
+ spring: u,
211
+ tick: (e) => {
212
+ const o = typeof n == "number" ? (1 - e) * n : `calc(${y(n)} * ${1 - e})`, f = typeof s == "number" ? (1 - e) * s : `calc(${c(s)} * ${1 - e})`;
213
+ t.style.transform = `translate(${typeof n == "number" ? o + "px" : o}, ${typeof s == "number" ? f + "px" : f})`, t.style.opacity = (r + (1 - r) * e).toString();
138
214
  }
139
215
  }),
140
- out: (s) => ({
141
- spring: o,
142
- tick: (t) => {
143
- const e = [`blur(${(1 - t) * i}px)`];
144
- s.style.filter = e.join(" "), c && (s.style.transform = `scale(${0.8 + t * 0.2})`), a && (s.style.opacity = t.toString());
216
+ out: (t) => ({
217
+ spring: u,
218
+ tick: (e) => {
219
+ const o = typeof n == "number" ? (1 - e) * n : `calc(${y(n)} * ${1 - e})`, f = typeof s == "number" ? (1 - e) * s : `calc(${c(s)} * ${1 - e})`;
220
+ t.style.transform = `translate(${typeof n == "number" ? o + "px" : o}, ${typeof s == "number" ? f + "px" : f})`, t.style.opacity = (r + (1 - r) * e).toString();
145
221
  }
146
- })
222
+ }),
223
+ ...l && { key: l }
147
224
  };
148
- }, m = (r = {}) => {
225
+ }, S = ($ = {}) => {
149
226
  const {
150
- spring: i = { stiffness: 1e3, damping: 100 }
151
- } = r;
227
+ spring: n = { stiffness: 1e3, damping: 100 },
228
+ key: s
229
+ } = $;
152
230
  return {
153
- in: (c) => ({
154
- spring: i,
155
- tick: (a) => {
231
+ in: (r) => ({
232
+ spring: n,
233
+ tick: (u) => {
156
234
  }
157
235
  }),
158
- out: (c) => ({
159
- spring: i,
160
- tick: (a) => {
236
+ out: (r) => ({
237
+ spring: n,
238
+ tick: (u) => {
161
239
  }
162
- })
240
+ }),
241
+ ...s && { key: s }
163
242
  };
164
243
  };
165
244
  export {
166
- $ as blur,
167
- d as bounce,
168
- l as fade,
169
- m as none,
170
- p as rotate,
171
- u as scale,
172
- y as slide
245
+ k as blur,
246
+ g as bounce,
247
+ m as fade,
248
+ h as fly,
249
+ S as none,
250
+ d as rotate,
251
+ b as scale,
252
+ x as slide
173
253
  };
@@ -1,10 +1,13 @@
1
+ import { TransitionKey } from '../types';
1
2
  interface NoneOptions {
2
3
  spring?: {
3
4
  stiffness?: number;
4
5
  damping?: number;
5
6
  };
7
+ key?: TransitionKey;
6
8
  }
7
9
  export declare const none: (options?: NoneOptions) => {
10
+ key?: TransitionKey | undefined;
8
11
  in: (_element: HTMLElement) => {
9
12
  spring: {
10
13
  stiffness?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"none.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/none.ts"],"names":[],"mappings":"AAAA,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB;mBAM3B,WAAW;;wBAXd,MAAM;sBACR,MAAM;;0BAYI,MAAM;;oBAIV,WAAW;;wBAjBf,MAAM;sBACR,MAAM;;0BAkBI,MAAM;;CAK7B,CAAC"}
1
+ {"version":3,"file":"none.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/none.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB;;mBAO3B,WAAW;;wBAbd,MAAM;sBACR,MAAM;;0BAcI,MAAM;;oBAIV,WAAW;;wBAnBf,MAAM;sBACR,MAAM;;0BAoBI,MAAM;;CAM7B,CAAC"}
@@ -1,14 +1,20 @@
1
+ import { TransitionKey } from '../types';
1
2
  interface RotateOptions {
2
3
  degrees?: number;
3
4
  clockwise?: boolean;
4
5
  scale?: boolean;
5
6
  fade?: boolean;
7
+ origin?: string;
8
+ axis?: '2d' | 'x' | 'y' | 'z';
9
+ perspective?: number;
6
10
  spring?: {
7
11
  stiffness?: number;
8
12
  damping?: number;
9
13
  };
14
+ key?: TransitionKey;
10
15
  }
11
16
  export declare const rotate: (options?: RotateOptions) => {
17
+ key?: TransitionKey | undefined;
12
18
  in: (element: HTMLElement) => {
13
19
  spring: {
14
20
  stiffness?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"rotate.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/rotate.ts"],"names":[],"mappings":"AAAA,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,eAAO,MAAM,MAAM,GAAI,UAAS,aAAkB;kBAYhC,WAAW;;wBAjBb,MAAM;sBACR,MAAM;;yBAkBG,MAAM;;mBAcV,WAAW;;wBAjCd,MAAM;sBACR,MAAM;;yBAkCG,MAAM;;CAe5B,CAAC"}
1
+ {"version":3,"file":"rotate.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/rotate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,GAAI,UAAS,aAAkB;;kBA+BhC,WAAW;;wBArCb,MAAM;sBACR,MAAM;;yBAsCG,MAAM;;mBAeV,WAAW;;wBAtDd,MAAM;sBACR,MAAM;;yBAuDG,MAAM;;CAiB5B,CAAC"}
@@ -1,13 +1,16 @@
1
+ import { TransitionKey } from '../types';
1
2
  interface ScaleOptions {
2
- duration?: number;
3
- from?: number;
4
- to?: number;
3
+ start?: number;
4
+ opacity?: number;
5
+ axis?: 'x' | 'y' | 'both';
5
6
  spring?: {
6
7
  stiffness?: number;
7
8
  damping?: number;
8
9
  };
10
+ key?: TransitionKey;
9
11
  }
10
12
  export declare const scale: (options?: ScaleOptions) => {
13
+ key?: TransitionKey | undefined;
11
14
  in: (element: HTMLElement) => {
12
15
  spring: {
13
16
  stiffness?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/scale.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB;kBAQ9B,WAAW;;wBAbb,MAAM;sBACR,MAAM;;yBAcG,MAAM;;mBAKV,WAAW;;wBApBd,MAAM;sBACR,MAAM;;yBAqBG,MAAM;;CAM5B,CAAC"}
1
+ {"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/scale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,UAAU,YAAY;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB;;kBAsB9B,WAAW;;wBA5Bb,MAAM;sBACR,MAAM;;yBA6BG,MAAM;;mBAMV,WAAW;;wBApCd,MAAM;sBACR,MAAM;;yBAqCG,MAAM;;CAQ5B,CAAC"}
@@ -1,13 +1,18 @@
1
+ import { TransitionKey } from '../types';
1
2
  interface SlideOptions {
2
3
  direction?: 'left' | 'right' | 'up' | 'down';
3
- distance?: number;
4
+ distance?: number | string;
5
+ opacity?: number;
4
6
  fade?: boolean;
7
+ axis?: 'x' | 'y';
5
8
  spring?: {
6
9
  stiffness?: number;
7
10
  damping?: number;
8
11
  };
12
+ key?: TransitionKey;
9
13
  }
10
14
  export declare const slide: (options?: SlideOptions) => {
15
+ key?: TransitionKey | undefined;
11
16
  in: (element: HTMLElement) => {
12
17
  spring: {
13
18
  stiffness?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"slide.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/slide.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB;kBAuB9B,WAAW;;wBA5Bb,MAAM;sBACR,MAAM;;yBA6BG,MAAM;;mBAOV,WAAW;;wBArCd,MAAM;sBACR,MAAM;;yBAsCG,MAAM;;CAQ5B,CAAC"}
1
+ {"version":3,"file":"slide.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/slide.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;IAC7C,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB;;kBAoD9B,WAAW;;wBA1Db,MAAM;sBACR,MAAM;;yBA2DG,MAAM;;mBAOV,WAAW;;wBAnEd,MAAM;sBACR,MAAM;;yBAoEG,MAAM;;CAS5B,CAAC"}
package/dist/types.d.ts CHANGED
@@ -3,17 +3,25 @@ export type SpringConfig = {
3
3
  stiffness?: number;
4
4
  damping?: number;
5
5
  };
6
- export type TransitionConfig = {
6
+ export type TransitionConfig<TAnimationValue = number> = {
7
7
  spring?: SpringConfig;
8
- tick?: (progress: number) => void;
8
+ from?: TAnimationValue;
9
+ to?: TAnimationValue;
10
+ tick?: (progress: TAnimationValue) => void;
9
11
  prepare?: (element: HTMLElement) => void;
12
+ wait?: () => Promise<void>;
10
13
  onStart?: () => void;
11
14
  onEnd?: () => void;
12
15
  };
13
- export type GetTransitionConfig<TContext = undefined> = TContext extends undefined ? (node: HTMLElement) => TransitionConfig | Promise<TransitionConfig> : (node: HTMLElement, context: TContext) => TransitionConfig | Promise<TransitionConfig>;
14
- export type Transition<TContext = undefined> = {
15
- in?: GetTransitionConfig<TContext>;
16
- out?: GetTransitionConfig<TContext>;
16
+ export type GetTransitionConfig<TContext = undefined, TAnimationValue = number> = TContext extends undefined ? (node: HTMLElement) => TransitionConfig<TAnimationValue> | Promise<TransitionConfig<TAnimationValue>> : (node: HTMLElement, context: TContext) => TransitionConfig<TAnimationValue> | Promise<TransitionConfig<TAnimationValue>>;
17
+ export type Transition<TContext = undefined, TAnimationValue = number> = {
18
+ in?: GetTransitionConfig<TContext, TAnimationValue>;
19
+ out?: GetTransitionConfig<TContext, TAnimationValue>;
20
+ key?: TransitionKey;
21
+ };
22
+ export type TransitionOptions<TContext = undefined, TAnimationValue = number> = Transition<TContext, TAnimationValue> & {
23
+ key?: TransitionKey;
24
+ ref?: object;
17
25
  };
18
26
  export type TransitionCallback = (element: HTMLElement | null) => void | (() => void);
19
27
  export type SggoiTransitionContext = {
@@ -24,13 +32,17 @@ export type SggoiTransitionContext = {
24
32
  };
25
33
  export type SggoiTransition = Transition<SggoiTransitionContext>;
26
34
  export type SsgoiConfig = {
27
- transitions: {
35
+ transitions?: {
28
36
  from: string;
29
37
  to: string;
30
38
  transition: SggoiTransition;
31
39
  symmetric?: boolean;
32
40
  }[];
33
41
  defaultTransition?: SggoiTransition;
42
+ middleware?: (from: string, to: string) => {
43
+ from: string;
44
+ to: string;
45
+ };
34
46
  };
35
47
  export type SsgoiContext = (path: string) => Transition & {
36
48
  key: TransitionKey;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAE7B,MAAM,CAAC,EAAE,YAAY,CAAC;IAGtB,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAGlC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAGzC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAGrB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,QAAQ,GAAG,SAAS,IAClD,QAAQ,SAAS,SAAS,GACtB,CAAC,IAAI,EAAE,WAAW,KAAK,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,GACnE,CACE,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,QAAQ,KACd,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAExD,MAAM,MAAM,UAAU,CAAC,QAAQ,GAAG,SAAS,IAAI;IAC7C,EAAE,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACnC,GAAG,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,WAAW,GAAG,IAAI,KACxB,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;AAEzB,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;AAEjE,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,eAAe,CAAC;QAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,EAAE,CAAC;IACJ,iBAAiB,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CACzB,IAAI,EAAE,MAAM,KACT,UAAU,GAAG;IAAE,GAAG,EAAE,aAAa,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,eAAe,GAAG,MAAM,IAAI;IAEvD,MAAM,CAAC,EAAE,YAAY,CAAC;IAGtB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,EAAE,CAAC,EAAE,eAAe,CAAC;IAGrB,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IAG3C,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAGzC,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAG3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAGrB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAC7B,QAAQ,GAAG,SAAS,EACpB,eAAe,GAAG,MAAM,IACtB,QAAQ,SAAS,SAAS,GAC1B,CACE,IAAI,EAAE,WAAW,KAEf,gBAAgB,CAAC,eAAe,CAAC,GACjC,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,GAC9C,CACE,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,QAAQ,KAEf,gBAAgB,CAAC,eAAe,CAAC,GACjC,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC;AAEnD,MAAM,MAAM,UAAU,CAAC,QAAQ,GAAG,SAAS,EAAE,eAAe,GAAG,MAAM,IAAI;IACvE,EAAE,CAAC,EAAE,mBAAmB,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACpD,GAAG,CAAC,EAAE,mBAAmB,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACrD,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,QAAQ,GAAG,SAAS,EAAE,eAAe,GAAG,MAAM,IAAI,UAAU,CAAC,QAAQ,EAAE,eAAe,CAAC,GAAG;IACtH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,WAAW,GAAG,IAAI,KACxB,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;AAEzB,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;AAEjE,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,eAAe,CAAC;QAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,EAAE,CAAC;IACJ,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CACzE,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CACzB,IAAI,EAAE,MAAM,KACT,UAAU,GAAG;IAAE,GAAG,EAAE,aAAa,CAAA;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";const c=e=>{e.style.position="absolute",e.style.width="100%",e.style.top="0",e.style.left="0"},u=e=>{let t=e.parentElement;for(;t&&t!==document.body;){const n=window.getComputedStyle(t),l=n.overflow+n.overflowY+n.overflowX;if(l.includes("auto")||l.includes("scroll")||t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.parentElement}return document.documentElement};const p=e=>{if(!e)return null;const t=e.split(`
2
+ `).map(n=>n.trim());for(let n=3;n<Math.min(t.length,6);n++){const l=t[n],o=l==null?void 0:l.match(/\(?([^):]+):(\d+):(\d+)\)?$/);if(!o)continue;const r=o[1]??"",i=o[2]??"0",s=o[3]??"0";return{file:r.split(/[\\/]/).pop()||r,line:i,column:s}}return null},a=e=>new Promise(t=>setTimeout(t,e));exports.getScrollingElement=u;exports.parseCallerLocation=p;exports.prepareOutgoing=c;exports.sleep=a;
@@ -0,0 +1,31 @@
1
+ const u = (e) => {
2
+ e.style.position = "absolute", e.style.width = "100%", e.style.top = "0", e.style.left = "0";
3
+ }, a = (e) => {
4
+ let t = e.parentElement;
5
+ for (; t && t !== document.body; ) {
6
+ const n = window.getComputedStyle(t), o = n.overflow + n.overflowY + n.overflowX;
7
+ if (o.includes("auto") || o.includes("scroll") || t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth)
8
+ return t;
9
+ t = t.parentElement;
10
+ }
11
+ return document.documentElement;
12
+ };
13
+ const p = (e) => {
14
+ if (!e) return null;
15
+ const t = e.split(`
16
+ `).map((n) => n.trim());
17
+ for (let n = 3; n < Math.min(t.length, 6); n++) {
18
+ const o = t[n], l = o == null ? void 0 : o.match(/\(?([^):]+):(\d+):(\d+)\)?$/);
19
+ if (!l)
20
+ continue;
21
+ const s = l[1] ?? "", r = l[2] ?? "0", i = l[3] ?? "0";
22
+ return { file: s.split(/[\\/]/).pop() || s, line: r, column: i };
23
+ }
24
+ return null;
25
+ }, m = (e) => new Promise((t) => setTimeout(t, e));
26
+ export {
27
+ u as a,
28
+ a as g,
29
+ p,
30
+ m as s
31
+ };
package/dist/utils.d.ts CHANGED
@@ -8,4 +8,15 @@ export declare const prepareOutgoing: (element: HTMLElement) => void;
8
8
  * Returns the first scrollable parent element or document.documentElement
9
9
  */
10
10
  export declare const getScrollingElement: (element: HTMLElement) => HTMLElement;
11
+ export declare const parseCallerLocation: (stack?: string) => {
12
+ file: string;
13
+ line: string;
14
+ column: string;
15
+ } | null;
16
+ /**
17
+ * Delays execution for a specified amount of milliseconds
18
+ * @param ms - Milliseconds to wait
19
+ * @returns Promise that resolves after the specified delay
20
+ */
21
+ export declare const sleep: (ms: number) => Promise<void>;
11
22
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/lib/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,WAAW,KAAG,IAKtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,WAAW,KAAG,WAuB1D,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/lib/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,WAAW,KAAG,IAKtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,WAAW,KAAG,WAyB1D,CAAC;AAIF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,MAAM,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IA2BrG,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,KAAG,OAAO,CAAC,IAAI,CAE9C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { SpringConfig, SggoiTransition } from '../types';
2
+ interface DrillOptions {
3
+ opacity?: boolean;
4
+ direction?: "enter" | "exit";
5
+ spring?: Partial<SpringConfig>;
6
+ }
7
+ export declare const drill: (options?: DrillOptions) => SggoiTransition;
8
+ export {};
9
+ //# sourceMappingURL=drill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drill.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/drill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG9D,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,eAsElD,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { SpringConfig, SggoiTransition } from '../types';
2
2
  interface FadeOptions {
3
- spring?: Partial<SpringConfig>;
3
+ inSpring?: SpringConfig;
4
+ outSpring?: SpringConfig;
5
+ transitionDelay?: number;
4
6
  }
5
7
  export declare const fade: (options?: FadeOptions) => SggoiTransition;
6
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/fade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG9D,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eAqBhD,CAAC"}
1
+ {"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/fade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAO9D,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eAmDhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/hero.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG9D,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAkBD,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eA0JhD,CAAC"}
1
+ {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/lib/view-transitions/hero.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG9D,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAkBD,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,eAgKhD,CAAC"}