@ssgoi/core 7.1.2 → 7.1.3-beta.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 (118) hide show
  1. package/README.md +58 -10
  2. package/dist/animation/animation.d.ts +20 -0
  3. package/dist/animation/animation.d.ts.map +1 -1
  4. package/dist/animation/integrator/double-spring-integrator.d.ts +3 -0
  5. package/dist/animation/integrator/double-spring-integrator.d.ts.map +1 -1
  6. package/dist/animation/integrator/inertia-integrator.d.ts +2 -2
  7. package/dist/animation/integrator/inertia-integrator.d.ts.map +1 -1
  8. package/dist/animation/integrator/spring-integrator.d.ts +2 -0
  9. package/dist/animation/integrator/spring-integrator.d.ts.map +1 -1
  10. package/dist/animation/multi-animation.d.ts +37 -9
  11. package/dist/animation/multi-animation.d.ts.map +1 -1
  12. package/dist/animation/web-animation.d.ts +20 -2
  13. package/dist/animation/web-animation.d.ts.map +1 -1
  14. package/dist/index-B_K3Vnj-.js +55 -0
  15. package/dist/index-CtyacfH7.cjs +1 -0
  16. package/dist/index.cjs +4 -4
  17. package/dist/index.d.ts +8 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1483 -1245
  20. package/dist/internal.cjs +1 -1
  21. package/dist/internal.d.ts +1 -0
  22. package/dist/internal.d.ts.map +1 -1
  23. package/dist/internal.js +5 -3
  24. package/dist/motion/index.d.ts +4 -0
  25. package/dist/motion/index.d.ts.map +1 -0
  26. package/dist/motion/presets.d.ts +13 -0
  27. package/dist/motion/presets.d.ts.map +1 -0
  28. package/dist/motion/spring.d.ts +46 -0
  29. package/dist/motion/spring.d.ts.map +1 -0
  30. package/dist/motion/with-override.d.ts +2 -0
  31. package/dist/motion/with-override.d.ts.map +1 -0
  32. package/dist/multi-animation-Du9W3ZS_.js +503 -0
  33. package/dist/multi-animation-hDUcfD7W.cjs +1 -0
  34. package/dist/page-motion-DF3fFkOw.cjs +1 -0
  35. package/dist/page-motion-MEazegOU.js +43 -0
  36. package/dist/provider-Cea0Pfm1.js +232 -0
  37. package/dist/provider-D9Q2URox.cjs +1 -0
  38. package/dist/runtime.cjs +1 -1
  39. package/dist/runtime.js +12 -12
  40. package/dist/transition/define-transition.d.ts +52 -0
  41. package/dist/transition/define-transition.d.ts.map +1 -0
  42. package/dist/transitions/animation-group.d.ts +7 -0
  43. package/dist/transitions/animation-group.d.ts.map +1 -0
  44. package/dist/transitions/axis/index.d.ts +3 -2
  45. package/dist/transitions/axis/index.d.ts.map +1 -1
  46. package/dist/transitions/axis/transition.d.ts +2 -2
  47. package/dist/transitions/axis/transition.d.ts.map +1 -1
  48. package/dist/transitions/blind/index.d.ts +3 -2
  49. package/dist/transitions/blind/index.d.ts.map +1 -1
  50. package/dist/transitions/blind/transition.d.ts +3 -10
  51. package/dist/transitions/blind/transition.d.ts.map +1 -1
  52. package/dist/transitions/drill/index.d.ts +3 -2
  53. package/dist/transitions/drill/index.d.ts.map +1 -1
  54. package/dist/transitions/drill/transition.d.ts +2 -2
  55. package/dist/transitions/drill/transition.d.ts.map +1 -1
  56. package/dist/transitions/fade/index.d.ts +3 -2
  57. package/dist/transitions/fade/index.d.ts.map +1 -1
  58. package/dist/transitions/fade/transition.d.ts +3 -2
  59. package/dist/transitions/fade/transition.d.ts.map +1 -1
  60. package/dist/transitions/film/index.d.ts +3 -2
  61. package/dist/transitions/film/index.d.ts.map +1 -1
  62. package/dist/transitions/film/transition.d.ts +2 -20
  63. package/dist/transitions/film/transition.d.ts.map +1 -1
  64. package/dist/transitions/hero/index.d.ts +5 -3
  65. package/dist/transitions/hero/index.d.ts.map +1 -1
  66. package/dist/transitions/hero/provider/chrome/fade.d.ts.map +1 -1
  67. package/dist/transitions/hero/provider/chrome/static.d.ts.map +1 -1
  68. package/dist/transitions/hero/transition.d.ts +2 -6
  69. package/dist/transitions/hero/transition.d.ts.map +1 -1
  70. package/dist/transitions/hero/types.d.ts +5 -3
  71. package/dist/transitions/hero/types.d.ts.map +1 -1
  72. package/dist/transitions/jaemin/index.d.ts +3 -2
  73. package/dist/transitions/jaemin/index.d.ts.map +1 -1
  74. package/dist/transitions/jaemin/transition.d.ts +3 -2
  75. package/dist/transitions/jaemin/transition.d.ts.map +1 -1
  76. package/dist/transitions/rotate/index.d.ts +3 -2
  77. package/dist/transitions/rotate/index.d.ts.map +1 -1
  78. package/dist/transitions/rotate/transition.d.ts +3 -2
  79. package/dist/transitions/rotate/transition.d.ts.map +1 -1
  80. package/dist/transitions/scroll/index.d.ts +3 -2
  81. package/dist/transitions/scroll/index.d.ts.map +1 -1
  82. package/dist/transitions/scroll/transition.d.ts +3 -2
  83. package/dist/transitions/scroll/transition.d.ts.map +1 -1
  84. package/dist/transitions/sheet/index.d.ts +3 -2
  85. package/dist/transitions/sheet/index.d.ts.map +1 -1
  86. package/dist/transitions/sheet/transition.d.ts +2 -6
  87. package/dist/transitions/sheet/transition.d.ts.map +1 -1
  88. package/dist/transitions/slide/index.d.ts +3 -2
  89. package/dist/transitions/slide/index.d.ts.map +1 -1
  90. package/dist/transitions/slide/transition.d.ts +3 -2
  91. package/dist/transitions/slide/transition.d.ts.map +1 -1
  92. package/dist/transitions/strip/index.d.ts +3 -2
  93. package/dist/transitions/strip/index.d.ts.map +1 -1
  94. package/dist/transitions/strip/transition.d.ts +3 -2
  95. package/dist/transitions/strip/transition.d.ts.map +1 -1
  96. package/dist/transitions/zoom/index.d.ts +3 -2
  97. package/dist/transitions/zoom/index.d.ts.map +1 -1
  98. package/dist/transitions/zoom/provider/blur.d.ts +2 -0
  99. package/dist/transitions/zoom/provider/blur.d.ts.map +1 -1
  100. package/dist/transitions/zoom/provider/expand.d.ts +1 -0
  101. package/dist/transitions/zoom/provider/expand.d.ts.map +1 -1
  102. package/dist/transitions/zoom/provider/static.d.ts +1 -0
  103. package/dist/transitions/zoom/provider/static.d.ts.map +1 -1
  104. package/dist/transitions/zoom/transition.d.ts +2 -3
  105. package/dist/transitions/zoom/transition.d.ts.map +1 -1
  106. package/dist/transitions/zoom/types.d.ts +2 -0
  107. package/dist/transitions/zoom/types.d.ts.map +1 -1
  108. package/dist/types/index.d.ts +5 -3
  109. package/dist/types/index.d.ts.map +1 -1
  110. package/dist/types.cjs +1 -1
  111. package/dist/types.js +2 -4
  112. package/package.json +1 -1
  113. package/dist/multi-animation-B5hEmEgN.cjs +0 -1
  114. package/dist/multi-animation-DyZGEfKy.js +0 -383
  115. package/dist/page-motion-gH3WomQO.cjs +0 -1
  116. package/dist/page-motion-wmW7PW6B.js +0 -204
  117. package/dist/timeline-L_vXntmP.js +0 -68
  118. package/dist/timeline-Zoo1I4XU.cjs +0 -1
@@ -0,0 +1,232 @@
1
+ var I = Object.defineProperty;
2
+ var R = (r, e, t) => e in r ? I(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var n = (r, e, t) => R(r, typeof e != "symbol" ? e + "" : e, t);
4
+ let P = class {
5
+ constructor() {
6
+ /** Current playback rate (1 = realtime, 0 = paused, negative = backwards) */
7
+ n(this, "_playbackRate", 1);
8
+ /** Fired every frame with the most recent value. Optional. */
9
+ n(this, "onUpdate");
10
+ /** Fired once when the animation settles. */
11
+ n(this, "onComplete");
12
+ }
13
+ get playbackRate() {
14
+ return this._playbackRate;
15
+ }
16
+ set playbackRate(e) {
17
+ this._playbackRate = e;
18
+ }
19
+ };
20
+ const T = 0.01, M = 0.01, A = 0.05, y = 1e3 / 60;
21
+ function N(r, e, t, s) {
22
+ if (e === t && s === 0) return [];
23
+ const i = 600;
24
+ let o = { position: e, velocity: s }, a = 0;
25
+ const l = [];
26
+ for (let p = 0; p < i; p++) {
27
+ const c = p * y;
28
+ if (l.push({ time: c, position: o.position, velocity: o.velocity }), o = r.step(o, t, y / 1e3), r.isSettled(o, t)) {
29
+ if (a += y / 1e3, a >= A) {
30
+ l.push({
31
+ time: (p + 1) * y,
32
+ position: t,
33
+ velocity: 0
34
+ });
35
+ break;
36
+ }
37
+ } else
38
+ a = 0;
39
+ }
40
+ return l;
41
+ }
42
+ function U(r, e) {
43
+ "worklet";
44
+ if (r.length === 0) return { position: 0, velocity: 0 };
45
+ const t = r[0], s = r[r.length - 1];
46
+ if (e <= 0)
47
+ return { position: t.position, velocity: t.velocity };
48
+ if (e >= s.time)
49
+ return { position: s.position, velocity: s.velocity };
50
+ let i = 0, o = r.length - 1;
51
+ for (; i < o - 1; ) {
52
+ const c = i + o >> 1;
53
+ r[c].time <= e ? i = c : o = c;
54
+ }
55
+ const a = r[i], l = r[o], p = (e - a.time) / (l.time - a.time);
56
+ return {
57
+ position: a.position + (l.position - a.position) * p,
58
+ velocity: a.velocity + (l.velocity - a.velocity) * p
59
+ };
60
+ }
61
+ class b {
62
+ constructor(e) {
63
+ n(this, "stiffness");
64
+ n(this, "damping");
65
+ n(this, "omega");
66
+ // Angular frequency
67
+ n(this, "zeta");
68
+ // Damping ratio
69
+ n(this, "restDelta");
70
+ n(this, "restSpeed");
71
+ const { stiffness: t, damping: s } = e, i = 1;
72
+ this.stiffness = t, this.damping = s, this.omega = Math.sqrt(t / i), this.zeta = s / (2 * Math.sqrt(t * i)), this.restDelta = e.restDelta ?? T, this.restSpeed = e.restSpeed ?? M;
73
+ }
74
+ step(e, t, s) {
75
+ const i = Math.min(s, 0.033), { omega: o, zeta: a } = this, { position: l, velocity: p } = e, c = -2 * i * a * o * p, d = i * o * o * (t - l), h = p + c + d;
76
+ return {
77
+ position: l + i * h,
78
+ velocity: h
79
+ };
80
+ }
81
+ isSettled(e, t) {
82
+ const s = Math.abs(t - e.position), i = Math.abs(e.velocity);
83
+ return s < this.restDelta && i < this.restSpeed;
84
+ }
85
+ }
86
+ class O {
87
+ constructor(e) {
88
+ /** Leader spring values (the follower is derived; see `follower`). */
89
+ n(this, "stiffness");
90
+ n(this, "damping");
91
+ n(this, "leader");
92
+ n(this, "follower");
93
+ n(this, "restDelta");
94
+ n(this, "restSpeed");
95
+ this.stiffness = e.stiffness, this.damping = e.damping, this.restDelta = e.restDelta ?? T, this.restSpeed = e.restSpeed ?? M, this.leader = new b({
96
+ stiffness: e.stiffness,
97
+ damping: e.damping,
98
+ restDelta: this.restDelta,
99
+ restSpeed: this.restSpeed
100
+ });
101
+ let t, s, i, o;
102
+ typeof e.follower == "number" ? (t = e.stiffness * e.follower, s = e.damping) : e.follower ? (t = e.follower.stiffness, s = e.follower.damping, i = e.follower.restDelta, o = e.follower.restSpeed) : (t = e.stiffness, s = e.damping), this.follower = new b({
103
+ stiffness: t,
104
+ damping: s,
105
+ restDelta: i ?? this.restDelta,
106
+ restSpeed: o ?? this.restSpeed
107
+ });
108
+ }
109
+ step(e, t, s) {
110
+ const o = e._leader ?? {
111
+ position: e.position,
112
+ velocity: e.velocity
113
+ }, a = this.leader.step(o, t, s), l = this.follower.step(
114
+ e,
115
+ a.position,
116
+ s
117
+ );
118
+ return {
119
+ position: l.position,
120
+ velocity: l.velocity,
121
+ _leader: a
122
+ };
123
+ }
124
+ isSettled(e, t) {
125
+ const s = e, i = Math.abs(t - e.position) < this.restDelta && Math.abs(e.velocity) < this.restSpeed;
126
+ return s._leader ? Math.abs(t - s._leader.position) < this.restDelta && Math.abs(s._leader.velocity) < this.restSpeed && i : i;
127
+ }
128
+ }
129
+ const L = 0.01, g = 500, x = 10;
130
+ class H {
131
+ constructor(e) {
132
+ n(this, "acceleration");
133
+ n(this, "resistance");
134
+ n(this, "resistanceType");
135
+ n(this, "min");
136
+ n(this, "max");
137
+ n(this, "bounceStiffness");
138
+ n(this, "bounceDamping");
139
+ n(this, "restDelta");
140
+ this.acceleration = e.acceleration, this.resistance = e.resistance, this.resistanceType = e.resistanceType ?? "quadratic", this.min = e.min, this.max = e.max, this.bounceStiffness = e.bounceStiffness ?? g, this.bounceDamping = e.bounceDamping ?? x, this.restDelta = e.restDelta ?? L;
141
+ }
142
+ step(e, t, s) {
143
+ const i = Math.min(s, 0.033), { acceleration: o, resistance: a, resistanceType: l, min: p, max: c } = this, { position: d, velocity: h } = e, u = p !== void 0 && d < p, w = c !== void 0 && d > c;
144
+ let D;
145
+ if (u || w) {
146
+ const S = d - (u ? p : c), E = -this.bounceStiffness * S, F = -this.bounceDamping * h;
147
+ D = E + F;
148
+ } else {
149
+ const f = t > d ? 1 : -1;
150
+ let S;
151
+ l === "linear" ? S = a * h : S = a * h * Math.abs(h), D = f * o - S;
152
+ }
153
+ const v = h + D * i;
154
+ let m = d + v * i;
155
+ if (!u && !w) {
156
+ const f = t > d ? 1 : -1;
157
+ (f > 0 && m > t || f < 0 && m < t) && (m = t);
158
+ }
159
+ return {
160
+ position: m,
161
+ velocity: m === t ? 0 : v
162
+ };
163
+ }
164
+ isSettled(e, t) {
165
+ return Math.abs(t - e.position) < this.restDelta;
166
+ }
167
+ }
168
+ class _ {
169
+ /**
170
+ * Create an Integrator from physics config
171
+ *
172
+ * @param config Physics configuration (spring or inertia)
173
+ * @returns Appropriate Integrator instance
174
+ * @throws Error if both spring and inertia are provided
175
+ */
176
+ static from(e) {
177
+ if (e.spring && e.inertia)
178
+ throw new Error(
179
+ "Cannot use both 'spring' and 'inertia' together. Choose one physics type."
180
+ );
181
+ if (e.inertia)
182
+ return new H({
183
+ acceleration: e.inertia.acceleration,
184
+ resistance: e.inertia.resistance,
185
+ resistanceType: e.inertia.resistanceType,
186
+ min: e.inertia.min,
187
+ max: e.inertia.max,
188
+ bounceStiffness: e.inertia.bounceStiffness,
189
+ bounceDamping: e.inertia.bounceDamping,
190
+ restDelta: e.inertia.restDelta
191
+ });
192
+ const t = e.spring ?? { stiffness: 300, damping: 30 };
193
+ if (t.doubleSpring) {
194
+ const s = t.doubleSpring;
195
+ let i;
196
+ return typeof s == "number" ? i = s : typeof s == "object" && (i = {
197
+ stiffness: s.stiffness,
198
+ damping: s.damping
199
+ }), new O({
200
+ stiffness: t.stiffness,
201
+ damping: t.damping,
202
+ follower: i,
203
+ restDelta: t.restDelta,
204
+ restSpeed: t.restSpeed
205
+ });
206
+ }
207
+ return new b({
208
+ stiffness: t.stiffness,
209
+ damping: t.damping,
210
+ restDelta: t.restDelta,
211
+ restSpeed: t.restSpeed
212
+ });
213
+ }
214
+ /**
215
+ * Create an Integrator from SpringConfig (legacy support)
216
+ * @deprecated Use from({ spring: config }) instead
217
+ */
218
+ static fromSpring(e) {
219
+ return _.from({ spring: e });
220
+ }
221
+ }
222
+ export {
223
+ P as A,
224
+ O as D,
225
+ _ as I,
226
+ T as P,
227
+ b as S,
228
+ A as a,
229
+ H as b,
230
+ U as i,
231
+ N as s
232
+ };
@@ -0,0 +1 @@
1
+ "use strict";var g=Object.defineProperty;var L=(r,e,t)=>e in r?g(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var n=(r,e,t)=>L(r,typeof e!="symbol"?e+"":e,t);let H=class{constructor(){n(this,"_playbackRate",1);n(this,"onUpdate");n(this,"onComplete")}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e}};const w=.01,_=.01,I=.05,D=1e3/60;function A(r,e,t,s){if(e===t&&s===0)return[];const i=600;let o={position:e,velocity:s},a=0;const l=[];for(let p=0;p<i;p++){const c=p*D;if(l.push({time:c,position:o.position,velocity:o.velocity}),o=r.step(o,t,D/1e3),r.isSettled(o,t)){if(a+=D/1e3,a>=I){l.push({time:(p+1)*D,position:t,velocity:0});break}}else a=0}return l}function P(r,e){"worklet";if(r.length===0)return{position:0,velocity:0};const t=r[0],s=r[r.length-1];if(e<=0)return{position:t.position,velocity:t.velocity};if(e>=s.time)return{position:s.position,velocity:s.velocity};let i=0,o=r.length-1;for(;i<o-1;){const c=i+o>>1;r[c].time<=e?i=c:o=c}const a=r[i],l=r[o],p=(e-a.time)/(l.time-a.time);return{position:a.position+(l.position-a.position)*p,velocity:a.velocity+(l.velocity-a.velocity)*p}}class y{constructor(e){n(this,"stiffness");n(this,"damping");n(this,"omega");n(this,"zeta");n(this,"restDelta");n(this,"restSpeed");const{stiffness:t,damping:s}=e,i=1;this.stiffness=t,this.damping=s,this.omega=Math.sqrt(t/i),this.zeta=s/(2*Math.sqrt(t*i)),this.restDelta=e.restDelta??w,this.restSpeed=e.restSpeed??_}step(e,t,s){const i=Math.min(s,.033),{omega:o,zeta:a}=this,{position:l,velocity:p}=e,c=-2*i*a*o*p,d=i*o*o*(t-l),h=p+c+d;return{position:l+i*h,velocity:h}}isSettled(e,t){const s=Math.abs(t-e.position),i=Math.abs(e.velocity);return s<this.restDelta&&i<this.restSpeed}}class M{constructor(e){n(this,"stiffness");n(this,"damping");n(this,"leader");n(this,"follower");n(this,"restDelta");n(this,"restSpeed");this.stiffness=e.stiffness,this.damping=e.damping,this.restDelta=e.restDelta??w,this.restSpeed=e.restSpeed??_,this.leader=new y({stiffness:e.stiffness,damping:e.damping,restDelta:this.restDelta,restSpeed:this.restSpeed});let t,s,i,o;typeof e.follower=="number"?(t=e.stiffness*e.follower,s=e.damping):e.follower?(t=e.follower.stiffness,s=e.follower.damping,i=e.follower.restDelta,o=e.follower.restSpeed):(t=e.stiffness,s=e.damping),this.follower=new y({stiffness:t,damping:s,restDelta:i??this.restDelta,restSpeed:o??this.restSpeed})}step(e,t,s){const o=e._leader??{position:e.position,velocity:e.velocity},a=this.leader.step(o,t,s),l=this.follower.step(e,a.position,s);return{position:l.position,velocity:l.velocity,_leader:a}}isSettled(e,t){const s=e,i=Math.abs(t-e.position)<this.restDelta&&Math.abs(e.velocity)<this.restSpeed;return s._leader?Math.abs(t-s._leader.position)<this.restDelta&&Math.abs(s._leader.velocity)<this.restSpeed&&i:i}}const k=.01,x=500,N=10;class F{constructor(e){n(this,"acceleration");n(this,"resistance");n(this,"resistanceType");n(this,"min");n(this,"max");n(this,"bounceStiffness");n(this,"bounceDamping");n(this,"restDelta");this.acceleration=e.acceleration,this.resistance=e.resistance,this.resistanceType=e.resistanceType??"quadratic",this.min=e.min,this.max=e.max,this.bounceStiffness=e.bounceStiffness??x,this.bounceDamping=e.bounceDamping??N,this.restDelta=e.restDelta??k}step(e,t,s){const i=Math.min(s,.033),{acceleration:o,resistance:a,resistanceType:l,min:p,max:c}=this,{position:d,velocity:h}=e,u=p!==void 0&&d<p,T=c!==void 0&&d>c;let b;if(u||T){const f=d-(u?p:c),O=-this.bounceStiffness*f,R=-this.bounceDamping*h;b=O+R}else{const S=t>d?1:-1;let f;l==="linear"?f=a*h:f=a*h*Math.abs(h),b=S*o-f}const E=h+b*i;let m=d+E*i;if(!u&&!T){const S=t>d?1:-1;(S>0&&m>t||S<0&&m<t)&&(m=t)}return{position:m,velocity:m===t?0:E}}isSettled(e,t){return Math.abs(t-e.position)<this.restDelta}}class v{static from(e){if(e.spring&&e.inertia)throw new Error("Cannot use both 'spring' and 'inertia' together. Choose one physics type.");if(e.inertia)return new F({acceleration:e.inertia.acceleration,resistance:e.inertia.resistance,resistanceType:e.inertia.resistanceType,min:e.inertia.min,max:e.inertia.max,bounceStiffness:e.inertia.bounceStiffness,bounceDamping:e.inertia.bounceDamping,restDelta:e.inertia.restDelta});const t=e.spring??{stiffness:300,damping:30};if(t.doubleSpring){const s=t.doubleSpring;let i;return typeof s=="number"?i=s:typeof s=="object"&&(i={stiffness:s.stiffness,damping:s.damping}),new M({stiffness:t.stiffness,damping:t.damping,follower:i,restDelta:t.restDelta,restSpeed:t.restSpeed})}return new y({stiffness:t.stiffness,damping:t.damping,restDelta:t.restDelta,restSpeed:t.restSpeed})}static fromSpring(e){return v.from({spring:e})}}exports.Animation=H;exports.DoubleSpringIntegrator=M;exports.InertiaIntegrator=F;exports.IntegratorProvider=v;exports.POSITION_THRESHOLD=w;exports.SETTLE_THRESHOLD=I;exports.SpringIntegrator=y;exports.interpolateFrame=P;exports.simulate=A;
package/dist/runtime.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./timeline-Zoo1I4XU.cjs"),c=require("./resolve-transition-rule-BL12rDDu.cjs"),o=require("./page-motion-gH3WomQO.cjs");function y(e,t){return{entries:e,routeKeys:e.map(n=>n.key),activeKey:t,generation:0,transition:null}}function g(e,t,n){var d;const r=t.map(i=>i.key);if(e.activeKey===n){const i=(d=e.transition)==null?void 0:d.from;return{...e,routeKeys:r,entries:i&&!r.includes(i.key)?[...t,i]:t}}const s=e.generation+1,a=e.entries.find(i=>i.key===e.activeKey),u=t.find(i=>i.key===n),P=e.routeKeys.indexOf(n??""),m=P>=0&&P<e.routeKeys.indexOf(e.activeKey??"")?"backward":"forward",S=a&&u?{id:s,from:a,to:u,direction:m}:null;return{entries:a&&S&&!r.includes(a.key)?[...t,a]:t,routeKeys:r,activeKey:n,generation:s,transition:S}}function f(e,t){var n;return((n=e.transition)==null?void 0:n.id)!==t?e:{...e,transition:null,entries:e.entries.filter(r=>e.routeKeys.includes(r.key))}}exports.Animation=l.Animation;exports.interpolateFrame=l.interpolateFrame;exports.simulate=l.simulate;exports.matchPath=c.matchPath;exports.normalizePath=c.normalizePath;exports.resolveTransitionRule=c.resolveTransitionRule;exports.FADE_IN_PHYSICS=o.FADE_IN_PHYSICS;exports.FADE_OUT_PHYSICS=o.FADE_OUT_PHYSICS;exports.IntegratorProvider=o.IntegratorProvider;exports.SLIDE_PHYSICS=o.SLIDE_PHYSICS;exports.createPageMotionPlan=o.createPageMotionPlan;exports.pageMotionStyle=o.pageMotionStyle;exports.createPresence=y;exports.reconcilePresence=g;exports.settlePresence=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./provider-D9Q2URox.cjs"),c=require("./resolve-transition-rule-BL12rDDu.cjs"),a=require("./page-motion-DF3fFkOw.cjs");function g(e,t){return{entries:e,routeKeys:e.map(n=>n.key),activeKey:t,generation:0,transition:null}}function m(e,t,n){var S;const i=t.map(r=>r.key);if(e.activeKey===n){const r=(S=e.transition)==null?void 0:S.from;return{...e,routeKeys:i,entries:r&&!i.includes(r.key)?[...t,r]:t}}const s=e.generation+1,o=e.entries.find(r=>r.key===e.activeKey),u=t.find(r=>r.key===n),P=e.routeKeys.indexOf(n??""),y=P>=0&&P<e.routeKeys.indexOf(e.activeKey??"")?"backward":"forward",d=o&&u?{id:s,from:o,to:u,direction:y}:null;return{entries:o&&d&&!i.includes(o.key)?[...t,o]:t,routeKeys:i,activeKey:n,generation:s,transition:d}}function f(e,t){var n;return((n=e.transition)==null?void 0:n.id)!==t?e:{...e,transition:null,entries:e.entries.filter(i=>e.routeKeys.includes(i.key))}}exports.Animation=l.Animation;exports.IntegratorProvider=l.IntegratorProvider;exports.interpolateFrame=l.interpolateFrame;exports.simulate=l.simulate;exports.matchPath=c.matchPath;exports.normalizePath=c.normalizePath;exports.resolveTransitionRule=c.resolveTransitionRule;exports.FADE_IN_PHYSICS=a.FADE_IN_PHYSICS;exports.FADE_OUT_PHYSICS=a.FADE_OUT_PHYSICS;exports.SLIDE_PHYSICS=a.SLIDE_PHYSICS;exports.createPageMotionPlan=a.createPageMotionPlan;exports.pageMotionStyle=a.pageMotionStyle;exports.createPresence=g;exports.reconcilePresence=m;exports.settlePresence=f;
package/dist/runtime.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as I, i as S, s as x } from "./timeline-L_vXntmP.js";
2
- import { m as _, n as A, r as F } from "./resolve-transition-rule-DbkMu0rm.js";
3
- import { F as C, a as D, I as E, b as H, c as O, p as T } from "./page-motion-wmW7PW6B.js";
1
+ import { A as k, I, i as x, s as K } from "./provider-Cea0Pfm1.js";
2
+ import { m as A, n as F, r as h } from "./resolve-transition-rule-DbkMu0rm.js";
3
+ import { F as D, a as E, S as H, c as O, p as T } from "./page-motion-MEazegOU.js";
4
4
  function m(t, n) {
5
5
  return {
6
6
  entries: t,
@@ -33,19 +33,19 @@ function P(t, n) {
33
33
  };
34
34
  }
35
35
  export {
36
- I as Animation,
37
- C as FADE_IN_PHYSICS,
38
- D as FADE_OUT_PHYSICS,
39
- E as IntegratorProvider,
36
+ k as Animation,
37
+ D as FADE_IN_PHYSICS,
38
+ E as FADE_OUT_PHYSICS,
39
+ I as IntegratorProvider,
40
40
  H as SLIDE_PHYSICS,
41
41
  O as createPageMotionPlan,
42
42
  m as createPresence,
43
- S as interpolateFrame,
44
- _ as matchPath,
45
- A as normalizePath,
43
+ x as interpolateFrame,
44
+ A as matchPath,
45
+ F as normalizePath,
46
46
  T as pageMotionStyle,
47
47
  y as reconcilePresence,
48
- F as resolveTransitionRule,
48
+ h as resolveTransitionRule,
49
49
  P as settlePresence,
50
- x as simulate
50
+ K as simulate
51
51
  };
@@ -0,0 +1,52 @@
1
+ import { Animation } from '../animation/animation';
2
+ import { AnimationFactoryArgs, PrepareArgs, SsgoiTransitionContext, TransitionConfig } from '../types/index.ts';
3
+ /** Preparation and construction always belong to the same selected direction. */
4
+ export interface TransitionDirection<Prepared extends object = object, Result extends Animation = Animation> {
5
+ prepare?: (args: PrepareArgs) => Prepared | Promise<Prepared>;
6
+ animation: (args: AnimationFactoryArgs<Prepared>) => Result;
7
+ }
8
+ export interface TransitionDefinition<ForwardPrepared extends object = object, Forward extends Animation = Animation, BackwardPrepared extends object = object, Backward extends Animation = Animation> {
9
+ forward: TransitionDirection<ForwardPrepared, Forward>;
10
+ backward: TransitionDirection<BackwardPrepared, Backward>;
11
+ }
12
+ export interface OverrideArgs<Result extends Animation> {
13
+ animation: Result;
14
+ /** Original context and authoritative direction supplied by the core. */
15
+ context: SsgoiTransitionContext;
16
+ }
17
+ export type OverrideFn<Result extends Animation = Animation> = (args: OverrideArgs<Result>) => void;
18
+ export interface Override<Forward extends Animation = Animation, Backward extends Animation = Forward> {
19
+ forward?: OverrideFn<Forward>;
20
+ backward?: OverrideFn<Backward>;
21
+ }
22
+ export type PresetExtras<T extends Transition = Transition> = T extends Transition<infer Forward, infer Backward> ? {
23
+ override?: Override<Forward, Backward>;
24
+ } : never;
25
+ declare const DEFINITION: unique symbol;
26
+ interface Run<Result extends Animation> {
27
+ context: SsgoiTransitionContext;
28
+ prepare: (args: PrepareArgs) => object | Promise<object>;
29
+ animation: (args: AnimationFactoryArgs<object>) => Result;
30
+ }
31
+ interface Metadata<Forward extends Animation, Backward extends Animation> {
32
+ forward: (context: SsgoiTransitionContext) => Run<Forward>;
33
+ backward: (context: SsgoiTransitionContext) => Run<Backward>;
34
+ }
35
+ /**
36
+ * A transition accepted by the core dispatcher. Its generic parameters retain
37
+ * each factory's concrete return type for preset overrides and custom tools.
38
+ */
39
+ export interface Transition<Forward extends Animation = Animation, Backward extends Animation = Forward> extends TransitionConfig<object, Forward | Backward> {
40
+ readonly [DEFINITION]: Metadata<Forward, Backward>;
41
+ }
42
+ /**
43
+ * Define a custom transition with independent preparation and concrete return
44
+ * inference for each direction. The core receives only the Animation contract.
45
+ */
46
+ export declare function defineTransition<ForwardPrepared extends object, Forward extends Animation, BackwardPrepared extends object, Backward extends Animation>(definition: TransitionDefinition<ForwardPrepared, Forward, BackwardPrepared, Backward>, extras?: {
47
+ override?: Override<NoInfer<Forward>, NoInfer<Backward>>;
48
+ }): Transition<Forward, Backward>;
49
+ /** Retune a defined transition without mutating its reusable definition. */
50
+ export declare function withOverride<Forward extends Animation, Backward extends Animation>(transition: Transition<Forward, Backward>, override: Override<NoInfer<Forward>, NoInfer<Backward>> | undefined): Transition<Forward, Backward>;
51
+ export {};
52
+ //# sourceMappingURL=define-transition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define-transition.d.ts","sourceRoot":"","sources":["../../src/lib/transition/define-transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EACV,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,QAAQ,CAAC;AAEhB,iFAAiF;AACjF,MAAM,WAAW,mBAAmB,CAClC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,MAAM,SAAS,SAAS,GAAG,SAAS;IAEpC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9D,SAAS,EAAE,CAAC,IAAI,EAAE,oBAAoB,CAAC,QAAQ,CAAC,KAAK,MAAM,CAAC;CAC7D;AAED,MAAM,WAAW,oBAAoB,CACnC,eAAe,SAAS,MAAM,GAAG,MAAM,EACvC,OAAO,SAAS,SAAS,GAAG,SAAS,EACrC,gBAAgB,SAAS,MAAM,GAAG,MAAM,EACxC,QAAQ,SAAS,SAAS,GAAG,SAAS;IAEtC,OAAO,EAAE,mBAAmB,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACvD,QAAQ,EAAE,mBAAmB,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,YAAY,CAAC,MAAM,SAAS,SAAS;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,SAAS,GAAG,SAAS,IAAI,CAC7D,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,KACvB,IAAI,CAAC;AAEV,MAAM,WAAW,QAAQ,CACvB,OAAO,SAAS,SAAS,GAAG,SAAS,EACrC,QAAQ,SAAS,SAAS,GAAG,OAAO;IAEpC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;CACjC;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IACxD,CAAC,SAAS,UAAU,CAAC,MAAM,OAAO,EAAE,MAAM,QAAQ,CAAC,GAC/C;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;CAAE,GAC1C,KAAK,CAAC;AAIZ,QAAA,MAAM,UAAU,eAAwC,CAAC;AAGzD,UAAU,GAAG,CAAC,MAAM,SAAS,SAAS;IACpC,OAAO,EAAE,sBAAsB,CAAC;IAChC,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACzD,SAAS,EAAE,CAAC,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC;CAC3D;AAED,UAAU,QAAQ,CAAC,OAAO,SAAS,SAAS,EAAE,QAAQ,SAAS,SAAS;IACtE,OAAO,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3D,QAAQ,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,GAAG,CAAC,QAAQ,CAAC,CAAC;CAC9D;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU,CACzB,OAAO,SAAS,SAAS,GAAG,SAAS,EACrC,QAAQ,SAAS,SAAS,GAAG,OAAO,CACpC,SAAQ,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAC;IACpD,QAAQ,CAAC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;CACpD;AAkDD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,eAAe,SAAS,MAAM,EAC9B,OAAO,SAAS,SAAS,EACzB,gBAAgB,SAAS,MAAM,EAC/B,QAAQ,SAAS,SAAS,EAE1B,UAAU,EAAE,oBAAoB,CAC9B,eAAe,EACf,OAAO,EACP,gBAAgB,EAChB,QAAQ,CACT,EACD,MAAM,GAAE;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAA;CAAO,GACxE,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,CAM/B;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAC1B,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,SAAS,EAE1B,UAAU,EAAE,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,EACzC,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS,GAClE,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,CAqB/B"}
@@ -0,0 +1,7 @@
1
+ import { MultiAnimation, WebAnimation, Animation, MultiAnimationOptions } from '../animation';
2
+ /** Providers contribute semantic groups while retaining authored track order. */
3
+ export type AnimationContributions<Name extends string> = Partial<Record<Name, readonly Animation[]>>;
4
+ export declare function animationGroup<Name extends string>(groups: Record<Name, Animation | readonly Animation[]>, options?: MultiAnimationOptions): MultiAnimation<Name>;
5
+ /** Keep inline cleanup authoritative when a reused page is shown again. */
6
+ export declare function releaseFillOnComplete(animation: WebAnimation): void;
7
+ //# sourceMappingURL=animation-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animation-group.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/animation-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,iFAAiF;AACjF,MAAM,MAAM,sBAAsB,CAAC,IAAI,SAAS,MAAM,IAAI,OAAO,CAC/D,MAAM,CAAC,IAAI,EAAE,SAAS,SAAS,EAAE,CAAC,CACnC,CAAC;AAEF,wBAAgB,cAAc,CAAC,IAAI,SAAS,MAAM,EAChD,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,SAAS,EAAE,CAAC,EACtD,OAAO,GAAE,qBAA0B,GAClC,cAAc,CAAC,IAAI,CAAC,CAetB;AAED,2EAA2E;AAC3E,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,YAAY,GAAG,IAAI,CAMnE"}
@@ -1,4 +1,5 @@
1
- import { AnyTransitionConfig } from '../../types/index.ts';
1
+ import { PresetExtras } from '../../types/index.ts';
2
+ import { axis as transition } from './transition';
2
3
  /**
3
4
  * Public `variant` value for `axis({ type: "x" })`.
4
5
  *
@@ -45,5 +46,5 @@ export type AxisConfig = {} & ({
45
46
  variant?: "default";
46
47
  options?: Record<string, never>;
47
48
  });
48
- export declare function axis(config?: AxisConfig): AnyTransitionConfig;
49
+ export declare function axis(config?: AxisConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in">, import('../..').MultiAnimation<"out" | "in">>;
49
50
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/axis/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAkBlD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,iBAAiB,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,EAAE,GAAG,CAC1B;IACE,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B,GACD;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,OAAO,CAAC,EAAE,YAAY,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,GACtE;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,CACtE,CAAC;AA+BF,wBAAgB,IAAI,CAAC,MAAM,GAAE,UAAe,GAAG,mBAAmB,CAOjE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/axis/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAiBlD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,iBAAiB,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,EAAE,GAAG,CAC1B;IACE,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B,GACD;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,OAAO,CAAC,EAAE,YAAY,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,GACtE;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,CACtE,CAAC;AA+BF,wBAAgB,IAAI,CAClB,MAAM,GAAE,UAAe,EACvB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,2HAWzD"}
@@ -1,5 +1,5 @@
1
- import { TransitionConfig } from '../../types/index.ts';
1
+ import { MultiAnimation } from '../../animation';
2
2
  import { AxisOptions } from './types';
3
3
  export type { AxisFeel, AxisOptions, AxisType } from './types';
4
- export declare const axis: (options?: AxisOptions) => TransitionConfig;
4
+ export declare const axis: (options?: AxisOptions) => import('../../types/index.ts').Transition<MultiAnimation<"out" | "in">, MultiAnimation<"out" | "in">>;
5
5
  //# sourceMappingURL=transition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/axis/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAQ/C,OAAO,KAAK,EAAY,WAAW,EAA4B,MAAM,SAAS,CAAC;AAE/E,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAmC/D,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,gBAqDhD,CAAC"}
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/axis/transition.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAY,WAAW,EAA4B,MAAM,SAAS,CAAC;AAE/E,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAmC/D,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,4FA8D7C,CAAC"}
@@ -1,4 +1,5 @@
1
- import { AnyTransitionConfig } from '../../types/index.ts';
1
+ import { PresetExtras } from '../../types/index.ts';
2
+ import { blind as transition } from './transition';
2
3
  /**
3
4
  * Public `type` values for `blind`. Maps to the internal `direction` axis:
4
5
  * - `"horizontal"` (default) — blinds open along the horizontal axis.
@@ -10,5 +11,5 @@ export type BlindConfig = {
10
11
  variant?: "default";
11
12
  options?: object;
12
13
  };
13
- export declare function blind(config?: BlindConfig): AnyTransitionConfig;
14
+ export declare function blind(config?: BlindConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in">, import('../..').MultiAnimation<"out" | "in">>;
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/blind/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAGlD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,KAAK,CAAC,MAAM,GAAE,WAAgB,GAAG,mBAAmB,CAMnE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/blind/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,KAAK,CACnB,MAAM,GAAE,WAAgB,EACxB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,2HAOzD"}
@@ -1,17 +1,10 @@
1
- import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
1
+ import { PhysicsOptions } from '../../types/index.ts';
2
+ import { MultiAnimation } from '../../animation';
2
3
  export interface BlindOptions {
3
4
  physics?: PhysicsOptions;
4
5
  blindCount?: number;
5
6
  direction?: "horizontal" | "vertical";
6
7
  blindColor?: string;
7
8
  }
8
- type BlindExtras = {
9
- fromEl: HTMLElement;
10
- fromBlinds: HTMLDivElement[];
11
- fromContainer: HTMLDivElement;
12
- toBlinds: HTMLDivElement[];
13
- toContainer: HTMLDivElement;
14
- };
15
- export declare const blind: (options?: BlindOptions) => TransitionConfig<BlindExtras>;
16
- export {};
9
+ export declare const blind: (options?: BlindOptions) => import('../../types/index.ts').Transition<MultiAnimation<"out" | "in">, MultiAnimation<"out" | "in">>;
17
10
  //# sourceMappingURL=transition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/blind/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAe/D,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAiED,KAAK,WAAW,GAAG;IAEjB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,aAAa,EAAE,cAAc,CAAC;IAC9B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,WAAW,EAAE,cAAc,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,KAAK,GAChB,UAAS,YAAiB,KACzB,gBAAgB,CAAC,WAAW,CA2F9B,CAAC"}
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/blind/transition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,QAAQ,CAAC;AAClE,OAAO,EAGL,cAAc,EAEf,MAAM,iBAAiB,CAAC;AASzB,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AA0ED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,4FAgG/C,CAAC"}
@@ -1,4 +1,5 @@
1
- import { AnyTransitionConfig } from '../../types/index.ts';
1
+ import { PresetExtras } from '../../types/index.ts';
2
+ import { drill as transition } from './transition';
2
3
  /**
3
4
  * Public `type` values supported by `drill`.
4
5
  *
@@ -35,5 +36,5 @@ export type DrillConfig = {
35
36
  variant?: "default";
36
37
  options?: Record<string, never>;
37
38
  };
38
- export declare function drill(config?: DrillConfig): AnyTransitionConfig;
39
+ export declare function drill(config?: DrillConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in">, import('../..').MultiAnimation<"out" | "in">>;
39
40
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/drill/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAIlD;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAE9C,MAAM,MAAM,WAAW,GACnB;IACE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CACjC,GACD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,GACvE;IACE;;;;;OAKG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CACjC,CAAC;AAgBN,wBAAgB,KAAK,CAAC,MAAM,GAAE,WAAgB,GAAG,mBAAmB,CAOnE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/drill/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAGnD;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAE9C,MAAM,MAAM,WAAW,GACnB;IACE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CACjC,GACD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,GACvE;IACE;;;;;OAKG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CACjC,CAAC;AAgBN,wBAAgB,KAAK,CACnB,MAAM,GAAE,WAAgB,EACxB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,2HAQzD"}
@@ -1,5 +1,5 @@
1
- import { TransitionConfig } from '../../types/index.ts';
1
+ import { MultiAnimation } from '../../animation';
2
2
  import { DrillOptions } from './types';
3
3
  export type { DrillOptions, DrillType } from './types';
4
- export declare const drill: (options?: DrillOptions) => TransitionConfig;
4
+ export declare const drill: (options?: DrillOptions) => import('../../types/index.ts').Transition<MultiAnimation<"out" | "in">, MultiAnimation<"out" | "in">>;
5
5
  //# sourceMappingURL=transition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/drill/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAQ/C,OAAO,KAAK,EAAE,YAAY,EAA8B,MAAM,SAAS,CAAC;AAExE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAcvD,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,KAAG,gBAmFlD,CAAC"}
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/drill/transition.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,YAAY,EAA8B,MAAM,SAAS,CAAC;AAExE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAcvD,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,4FAqF/C,CAAC"}
@@ -1,5 +1,6 @@
1
- import { AnyTransitionConfig } from '../../types/index.ts';
1
+ import { PresetExtras } from '../../types/index.ts';
2
2
  import { PresetConfig } from '../utils';
3
+ import { fade as transition } from './transition';
3
4
  import { FadeOptions, FadeType, FadeVariant } from './types';
4
5
  export type { FadeOptions, FadeType, FadeVariant } from './types';
5
6
  /**
@@ -7,5 +8,5 @@ export type { FadeOptions, FadeType, FadeVariant } from './types';
7
8
  * sequential fade-out → fade-in.
8
9
  */
9
10
  export type FadeConfig = PresetConfig<FadeType, FadeVariant, FadeOptions>;
10
- export declare function fade(_config?: FadeConfig): AnyTransitionConfig;
11
+ export declare function fade(_config?: FadeConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in">, import('../..').MultiAnimation<"out" | "in">>;
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/fade/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAE1E,wBAAgB,IAAI,CAAC,OAAO,GAAE,UAAe,GAAG,mBAAmB,CAElE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/fade/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAE1E,wBAAgB,IAAI,CAClB,OAAO,GAAE,UAAe,EACxB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,2HAGzD"}
@@ -1,6 +1,7 @@
1
- import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
1
+ import { PhysicsOptions } from '../../types/index.ts';
2
+ import { MultiAnimation } from '../../animation';
2
3
  export interface FadeOptions {
3
4
  physics?: PhysicsOptions;
4
5
  }
5
- export declare const fade: (options?: FadeOptions) => TransitionConfig;
6
+ export declare const fade: (options?: FadeOptions) => import('../../types/index.ts').Transition<MultiAnimation<"out" | "in">, MultiAnimation<"out" | "in">>;
6
7
  //# sourceMappingURL=transition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/fade/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAa/D,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,gBAgDhD,CAAC"}
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/fade/transition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,QAAQ,CAAC;AAClE,OAAO,EAEL,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAQzB,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,4FAqD7C,CAAC"}
@@ -1,5 +1,6 @@
1
- import { AnyTransitionConfig } from '../../types/index.ts';
1
+ import { PresetExtras } from '../../types/index.ts';
2
2
  import { PresetConfig } from '../utils';
3
+ import { film as transition } from './transition';
3
4
  import { FilmOptions, FilmVariant } from './types';
4
5
  export type { FilmOptions, FilmVariant } from './types';
5
6
  /**
@@ -10,5 +11,5 @@ export type { FilmOptions, FilmVariant } from './types';
10
11
  * internal default).
11
12
  */
12
13
  export type FilmConfig = PresetConfig<never, FilmVariant, FilmOptions>;
13
- export declare function film(config?: FilmConfig): AnyTransitionConfig;
14
+ export declare function film(config?: FilmConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in" | "borders">, import('../..').MultiAnimation<"out" | "in" | "borders">>;
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/film/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAExD,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAEvE,wBAAgB,IAAI,CAAC,MAAM,GAAE,UAAe,GAAG,mBAAmB,CAYjE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/film/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAExD,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAEvE,wBAAgB,IAAI,CAClB,MAAM,GAAE,UAAe,EACvB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,mJAazD"}
@@ -1,27 +1,9 @@
1
- import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
1
+ import { PhysicsOptions } from '../../types/index.ts';
2
2
  export interface FilmOptions {
3
3
  border?: {
4
4
  color?: string;
5
5
  };
6
6
  physics?: PhysicsOptions;
7
7
  }
8
- interface CornerBorders {
9
- topLeft: HTMLElement;
10
- topRight: HTMLElement;
11
- bottomLeft: HTMLElement;
12
- bottomRight: HTMLElement;
13
- }
14
- type FilmRect = {
15
- top: number;
16
- left: number;
17
- width: number;
18
- height: number;
19
- };
20
- type FilmExtras = {
21
- borders: CornerBorders;
22
- fromRect: FilmRect;
23
- toRect: FilmRect;
24
- };
25
- export declare const film: (options?: FilmOptions) => TransitionConfig<FilmExtras>;
26
- export {};
8
+ export declare const film: (options?: FilmOptions) => import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in" | "borders">, import('../..').MultiAnimation<"out" | "in" | "borders">>;
27
9
  //# sourceMappingURL=transition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/film/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAGd,gBAAgB,EACjB,MAAM,QAAQ,CAAC;AA0ChB,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AA+ND,UAAU,aAAa;IACrB,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,EAAE,WAAW,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAoFD,KAAK,QAAQ,GAAG;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAmCF,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,IAAI,GACf,UAAS,WAAgB,KACxB,gBAAgB,CAAC,UAAU,CA6H7B,CAAC"}
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/film/transition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,QAAQ,CAAC;AA0ChB,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAsWD,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,oJAiI7C,CAAC"}
@@ -1,5 +1,6 @@
1
- import { AnyTransitionConfig } from '../../types/index.ts';
1
+ import { PresetExtras } from '../../types/index.ts';
2
2
  import { PresetConfig } from '../utils';
3
+ import { hero as transition } from './transition';
3
4
  import { HeroOptions, HeroType, HeroVariant } from './types';
4
5
  export type { HeroOptions, HeroType, HeroVariant } from './types';
5
6
  /**
@@ -8,11 +9,12 @@ export type { HeroOptions, HeroType, HeroVariant } from './types';
8
9
  * - `type: "static"` (default) — incoming-page chrome snaps in; a temporary
9
10
  * shared-element clone morphs via clip-path inset + uniform scale.
10
11
  * - `type: "fade"` — both pages cross-fade as whole surfaces while a
11
- * temporary shared-element clone morphs above them. Use when each side has
12
+ * temporary shared-element clone morphs above them. Incoming non-shared content
13
+ * also fades in independently. Use when each side has
12
14
  * its own chrome (e.g., a detail screen with its own back button / app bar).
13
15
  * - `variant: "default"` — only value today; reserved for future tonal
14
16
  * variants without re-shaping the public API.
15
17
  */
16
18
  export type HeroConfig = PresetConfig<HeroType, HeroVariant, HeroOptions>;
17
- export declare function hero(config?: HeroConfig): AnyTransitionConfig;
19
+ export declare function hero(config?: HeroConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in" | "shared">, import('../..').MultiAnimation<"out" | "in" | "shared">>;
18
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAE1E,wBAAgB,IAAI,CAAC,MAAM,GAAE,UAAe,GAAG,mBAAmB,CAIjE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAE1E,wBAAgB,IAAI,CAClB,MAAM,GAAE,UAAe,EACvB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,iJAKzD"}