@ssgoi/core 5.2.2 → 6.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 (274) hide show
  1. package/README.md +5 -6
  2. package/dist/animation/animation.d.ts +68 -0
  3. package/dist/animation/animation.d.ts.map +1 -0
  4. package/dist/animation/host-animation.d.ts +45 -0
  5. package/dist/animation/host-animation.d.ts.map +1 -0
  6. package/dist/animation/index.d.ts +6 -0
  7. package/dist/animation/index.d.ts.map +1 -0
  8. package/dist/animation/integrator/double-spring-integrator.d.ts.map +1 -0
  9. package/dist/{animator → animation}/integrator/index.d.ts +1 -0
  10. package/dist/animation/integrator/index.d.ts.map +1 -0
  11. package/dist/animation/integrator/inertia-integrator.d.ts.map +1 -0
  12. package/dist/animation/integrator/linear-integrator.d.ts +23 -0
  13. package/dist/animation/integrator/linear-integrator.d.ts.map +1 -0
  14. package/dist/{animator → animation}/integrator/provider.d.ts +1 -1
  15. package/dist/animation/integrator/provider.d.ts.map +1 -0
  16. package/dist/animation/integrator/spring-integrator.d.ts.map +1 -0
  17. package/dist/animation/integrator/types.d.ts.map +1 -0
  18. package/dist/animation/multi-animation.d.ts +55 -0
  19. package/dist/animation/multi-animation.d.ts.map +1 -0
  20. package/dist/animation/web-animation.d.ts +65 -0
  21. package/dist/animation/web-animation.d.ts.map +1 -0
  22. package/dist/index.cjs +35 -1
  23. package/dist/index.d.ts +4 -7
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +1702 -1186
  26. package/dist/internal.cjs +1 -0
  27. package/dist/internal.d.ts +4 -0
  28. package/dist/internal.d.ts.map +1 -0
  29. package/dist/internal.js +511 -0
  30. package/dist/multi-animation-CnxqLEka.js +322 -0
  31. package/dist/multi-animation-Dw2JTJI2.cjs +1 -0
  32. package/dist/ssgoi-transition/create-context-manager.d.ts +1 -1
  33. package/dist/ssgoi-transition/create-context-manager.d.ts.map +1 -1
  34. package/dist/ssgoi-transition/create-ssgoi-transition-context.d.ts +18 -31
  35. package/dist/ssgoi-transition/create-ssgoi-transition-context.d.ts.map +1 -1
  36. package/dist/ssgoi-transition/find-matching-transition.d.ts +4 -4
  37. package/dist/ssgoi-transition/find-matching-transition.d.ts.map +1 -1
  38. package/dist/ssgoi-transition/navigation-detector-strategy.d.ts +5 -15
  39. package/dist/ssgoi-transition/navigation-detector-strategy.d.ts.map +1 -1
  40. package/dist/ssgoi-transition/process-symmetric-transitions.d.ts +2 -2
  41. package/dist/ssgoi-transition/process-symmetric-transitions.d.ts.map +1 -1
  42. package/dist/ssgoi-transition/unmount-observer.d.ts +17 -0
  43. package/dist/ssgoi-transition/unmount-observer.d.ts.map +1 -0
  44. package/dist/transitions/axis/index.d.ts +43 -0
  45. package/dist/transitions/axis/index.d.ts.map +1 -0
  46. package/dist/transitions/axis/provider/index.d.ts +8 -0
  47. package/dist/transitions/axis/provider/index.d.ts.map +1 -0
  48. package/dist/transitions/axis/provider/x/fluid.d.ts +3 -0
  49. package/dist/transitions/axis/provider/x/fluid.d.ts.map +1 -0
  50. package/dist/transitions/axis/provider/x/index.d.ts +3 -0
  51. package/dist/transitions/axis/provider/x/index.d.ts.map +1 -0
  52. package/dist/transitions/axis/provider/x/snappy.d.ts +3 -0
  53. package/dist/transitions/axis/provider/x/snappy.d.ts.map +1 -0
  54. package/dist/transitions/axis/provider/y.d.ts +3 -0
  55. package/dist/transitions/axis/provider/y.d.ts.map +1 -0
  56. package/dist/transitions/axis/provider/z.d.ts +3 -0
  57. package/dist/transitions/axis/provider/z.d.ts.map +1 -0
  58. package/dist/transitions/axis/transition.d.ts +5 -0
  59. package/dist/transitions/axis/transition.d.ts.map +1 -0
  60. package/dist/transitions/axis/types.d.ts +52 -0
  61. package/dist/transitions/axis/types.d.ts.map +1 -0
  62. package/dist/transitions/blind/index.d.ts +15 -0
  63. package/dist/transitions/blind/index.d.ts.map +1 -0
  64. package/dist/transitions/blind/transition.d.ts +16 -0
  65. package/dist/transitions/blind/transition.d.ts.map +1 -0
  66. package/dist/transitions/drill/index.d.ts +40 -0
  67. package/dist/transitions/drill/index.d.ts.map +1 -0
  68. package/dist/transitions/drill/provider/crossfade.d.ts +3 -0
  69. package/dist/transitions/drill/provider/crossfade.d.ts.map +1 -0
  70. package/dist/transitions/drill/provider/index.d.ts +3 -0
  71. package/dist/transitions/drill/provider/index.d.ts.map +1 -0
  72. package/dist/transitions/drill/provider/parallax.d.ts +3 -0
  73. package/dist/transitions/drill/provider/parallax.d.ts.map +1 -0
  74. package/dist/transitions/drill/transition.d.ts +5 -0
  75. package/dist/transitions/drill/transition.d.ts.map +1 -0
  76. package/dist/transitions/drill/types.d.ts +33 -0
  77. package/dist/transitions/drill/types.d.ts.map +1 -0
  78. package/dist/transitions/fade/index.d.ts +16 -0
  79. package/dist/transitions/fade/index.d.ts.map +1 -0
  80. package/dist/transitions/fade/transition.d.ts +6 -0
  81. package/dist/transitions/fade/transition.d.ts.map +1 -0
  82. package/dist/transitions/fade/types.d.ts +14 -0
  83. package/dist/transitions/fade/types.d.ts.map +1 -0
  84. package/dist/transitions/film/index.d.ts +16 -0
  85. package/dist/transitions/film/index.d.ts.map +1 -0
  86. package/dist/transitions/film/transition.d.ts +27 -0
  87. package/dist/transitions/film/transition.d.ts.map +1 -0
  88. package/dist/transitions/film/types.d.ts +16 -0
  89. package/dist/transitions/film/types.d.ts.map +1 -0
  90. package/dist/transitions/hero/index.d.ts +17 -0
  91. package/dist/transitions/hero/index.d.ts.map +1 -0
  92. package/dist/transitions/hero/transition.d.ts +7 -0
  93. package/dist/transitions/hero/transition.d.ts.map +1 -0
  94. package/dist/transitions/hero/types.d.ts +12 -0
  95. package/dist/transitions/hero/types.d.ts.map +1 -0
  96. package/dist/transitions/index.d.ts +11 -12
  97. package/dist/transitions/index.d.ts.map +1 -1
  98. package/dist/transitions/jaemin/index.d.ts +16 -0
  99. package/dist/transitions/jaemin/index.d.ts.map +1 -0
  100. package/dist/transitions/jaemin/transition.d.ts +18 -0
  101. package/dist/transitions/jaemin/transition.d.ts.map +1 -0
  102. package/dist/transitions/jaemin/types.d.ts +9 -0
  103. package/dist/transitions/jaemin/types.d.ts.map +1 -0
  104. package/dist/transitions/rotate/index.d.ts +15 -0
  105. package/dist/transitions/rotate/index.d.ts.map +1 -0
  106. package/dist/transitions/rotate/transition.d.ts +6 -0
  107. package/dist/transitions/rotate/transition.d.ts.map +1 -0
  108. package/dist/transitions/rotate/types.d.ts +9 -0
  109. package/dist/transitions/rotate/types.d.ts.map +1 -0
  110. package/dist/transitions/scroll/index.d.ts +15 -0
  111. package/dist/transitions/scroll/index.d.ts.map +1 -0
  112. package/dist/transitions/scroll/transition.d.ts +7 -0
  113. package/dist/transitions/scroll/transition.d.ts.map +1 -0
  114. package/dist/transitions/sheet/index.d.ts +41 -0
  115. package/dist/transitions/sheet/index.d.ts.map +1 -0
  116. package/dist/transitions/sheet/provider/background-scale.d.ts +3 -0
  117. package/dist/transitions/sheet/provider/background-scale.d.ts.map +1 -0
  118. package/dist/transitions/sheet/provider/index.d.ts +3 -0
  119. package/dist/transitions/sheet/provider/index.d.ts.map +1 -0
  120. package/dist/transitions/sheet/provider/static.d.ts +3 -0
  121. package/dist/transitions/sheet/provider/static.d.ts.map +1 -0
  122. package/dist/transitions/sheet/transition.d.ts +5 -0
  123. package/dist/transitions/sheet/transition.d.ts.map +1 -0
  124. package/dist/transitions/sheet/types.d.ts +29 -0
  125. package/dist/transitions/sheet/types.d.ts.map +1 -0
  126. package/dist/transitions/slide/index.d.ts +16 -0
  127. package/dist/transitions/slide/index.d.ts.map +1 -0
  128. package/dist/transitions/slide/transition.d.ts +7 -0
  129. package/dist/transitions/slide/transition.d.ts.map +1 -0
  130. package/dist/transitions/slide/types.d.ts +10 -0
  131. package/dist/transitions/slide/types.d.ts.map +1 -0
  132. package/dist/transitions/strip/index.d.ts +16 -0
  133. package/dist/transitions/strip/index.d.ts.map +1 -0
  134. package/dist/transitions/strip/transition.d.ts +6 -0
  135. package/dist/transitions/strip/transition.d.ts.map +1 -0
  136. package/dist/transitions/strip/types.d.ts +9 -0
  137. package/dist/transitions/strip/types.d.ts.map +1 -0
  138. package/dist/transitions/utils.d.ts +25 -5
  139. package/dist/transitions/utils.d.ts.map +1 -1
  140. package/dist/transitions/zoom/index.d.ts +22 -0
  141. package/dist/transitions/zoom/index.d.ts.map +1 -0
  142. package/dist/transitions/zoom/provider/blur.d.ts +14 -0
  143. package/dist/transitions/zoom/provider/blur.d.ts.map +1 -0
  144. package/dist/transitions/zoom/provider/expand.d.ts +10 -0
  145. package/dist/transitions/zoom/provider/expand.d.ts.map +1 -0
  146. package/dist/transitions/zoom/provider/index.d.ts +12 -0
  147. package/dist/transitions/zoom/provider/index.d.ts.map +1 -0
  148. package/dist/transitions/zoom/provider/static.d.ts +10 -0
  149. package/dist/transitions/zoom/provider/static.d.ts.map +1 -0
  150. package/dist/transitions/zoom/transition.d.ts +5 -0
  151. package/dist/transitions/zoom/transition.d.ts.map +1 -0
  152. package/dist/transitions/zoom/types.d.ts +109 -0
  153. package/dist/transitions/zoom/types.d.ts.map +1 -0
  154. package/dist/transitions/zoom/zoom-element.d.ts +4 -0
  155. package/dist/transitions/zoom/zoom-element.d.ts.map +1 -0
  156. package/dist/types/index.d.ts +174 -0
  157. package/dist/types/index.d.ts.map +1 -0
  158. package/dist/types.cjs +1 -1
  159. package/dist/types.d.ts +2 -504
  160. package/dist/types.js +3 -77
  161. package/dist/utils/get-viewport-rect.d.ts +17 -0
  162. package/dist/utils/get-viewport-rect.d.ts.map +1 -0
  163. package/dist/utils/index.d.ts +2 -0
  164. package/dist/utils/index.d.ts.map +1 -1
  165. package/dist/utils/prepare-outgoing.d.ts +2 -2
  166. package/dist/utils/prepare-outgoing.d.ts.map +1 -1
  167. package/dist/utils/promise-all.d.ts +18 -0
  168. package/dist/utils/promise-all.d.ts.map +1 -0
  169. package/package.json +7 -19
  170. package/dist/animator/integrator/double-spring-integrator.d.ts.map +0 -1
  171. package/dist/animator/integrator/index.d.ts.map +0 -1
  172. package/dist/animator/integrator/inertia-integrator.d.ts.map +0 -1
  173. package/dist/animator/integrator/provider.d.ts.map +0 -1
  174. package/dist/animator/integrator/spring-integrator.d.ts.map +0 -1
  175. package/dist/animator/integrator/types.d.ts.map +0 -1
  176. package/dist/animator/multi-animator.d.ts +0 -101
  177. package/dist/animator/multi-animator.d.ts.map +0 -1
  178. package/dist/animator/runner/css-runner.d.ts +0 -17
  179. package/dist/animator/runner/css-runner.d.ts.map +0 -1
  180. package/dist/animator/runner/keyframes-runner.d.ts +0 -14
  181. package/dist/animator/runner/keyframes-runner.d.ts.map +0 -1
  182. package/dist/animator/runner/provider.d.ts +0 -44
  183. package/dist/animator/runner/provider.d.ts.map +0 -1
  184. package/dist/animator/runner/tick-runner.d.ts +0 -16
  185. package/dist/animator/runner/tick-runner.d.ts.map +0 -1
  186. package/dist/animator/runner/ticker.d.ts +0 -38
  187. package/dist/animator/runner/ticker.d.ts.map +0 -1
  188. package/dist/animator/runner/types.d.ts +0 -34
  189. package/dist/animator/runner/types.d.ts.map +0 -1
  190. package/dist/animator/single-animator.d.ts +0 -65
  191. package/dist/animator/single-animator.d.ts.map +0 -1
  192. package/dist/animator/types.d.ts +0 -57
  193. package/dist/animator/types.d.ts.map +0 -1
  194. package/dist/presets/index.cjs +0 -1
  195. package/dist/presets/index.d.ts +0 -22
  196. package/dist/presets/index.d.ts.map +0 -1
  197. package/dist/presets/index.js +0 -50
  198. package/dist/provider-B2B8CK6H.js +0 -142
  199. package/dist/provider-BKaONTeg.cjs +0 -1
  200. package/dist/spring-integrator-95Mh7mdw.cjs +0 -1
  201. package/dist/spring-integrator-BM4a-82c.js +0 -33
  202. package/dist/transition/create-transition-callback.d.ts +0 -8
  203. package/dist/transition/create-transition-callback.d.ts.map +0 -1
  204. package/dist/transition/transition-scope.d.ts +0 -36
  205. package/dist/transition/transition-scope.d.ts.map +0 -1
  206. package/dist/transition/transition-strategy.d.ts +0 -75
  207. package/dist/transition/transition-strategy.d.ts.map +0 -1
  208. package/dist/transition/transition.d.ts +0 -51
  209. package/dist/transition/transition.d.ts.map +0 -1
  210. package/dist/transition/unmount-observer.d.ts +0 -43
  211. package/dist/transition/unmount-observer.d.ts.map +0 -1
  212. package/dist/transitions/blur.d.ts +0 -12
  213. package/dist/transitions/blur.d.ts.map +0 -1
  214. package/dist/transitions/bounce.d.ts +0 -13
  215. package/dist/transitions/bounce.d.ts.map +0 -1
  216. package/dist/transitions/fade.d.ts +0 -10
  217. package/dist/transitions/fade.d.ts.map +0 -1
  218. package/dist/transitions/fly.d.ts +0 -11
  219. package/dist/transitions/fly.d.ts.map +0 -1
  220. package/dist/transitions/index.cjs +0 -1
  221. package/dist/transitions/index.js +0 -285
  222. package/dist/transitions/mask.d.ts +0 -12
  223. package/dist/transitions/mask.d.ts.map +0 -1
  224. package/dist/transitions/none.d.ts +0 -8
  225. package/dist/transitions/none.d.ts.map +0 -1
  226. package/dist/transitions/rotate.d.ts +0 -15
  227. package/dist/transitions/rotate.d.ts.map +0 -1
  228. package/dist/transitions/scale.d.ts +0 -11
  229. package/dist/transitions/scale.d.ts.map +0 -1
  230. package/dist/transitions/slide.d.ts +0 -13
  231. package/dist/transitions/slide.d.ts.map +0 -1
  232. package/dist/types.d.ts.map +0 -1
  233. package/dist/view-transitions/blind.d.ts +0 -11
  234. package/dist/view-transitions/blind.d.ts.map +0 -1
  235. package/dist/view-transitions/curtain-reveal.d.ts +0 -18
  236. package/dist/view-transitions/curtain-reveal.d.ts.map +0 -1
  237. package/dist/view-transitions/depth.d.ts +0 -21
  238. package/dist/view-transitions/depth.d.ts.map +0 -1
  239. package/dist/view-transitions/drill.d.ts +0 -9
  240. package/dist/view-transitions/drill.d.ts.map +0 -1
  241. package/dist/view-transitions/fade.d.ts +0 -8
  242. package/dist/view-transitions/fade.d.ts.map +0 -1
  243. package/dist/view-transitions/film.d.ts +0 -10
  244. package/dist/view-transitions/film.d.ts.map +0 -1
  245. package/dist/view-transitions/hero.d.ts +0 -9
  246. package/dist/view-transitions/hero.d.ts.map +0 -1
  247. package/dist/view-transitions/index.cjs +0 -35
  248. package/dist/view-transitions/index.d.ts +0 -18
  249. package/dist/view-transitions/index.d.ts.map +0 -1
  250. package/dist/view-transitions/index.js +0 -1614
  251. package/dist/view-transitions/instagram.d.ts +0 -8
  252. package/dist/view-transitions/instagram.d.ts.map +0 -1
  253. package/dist/view-transitions/jaemin.d.ts +0 -21
  254. package/dist/view-transitions/jaemin.d.ts.map +0 -1
  255. package/dist/view-transitions/pinterest.d.ts +0 -8
  256. package/dist/view-transitions/pinterest.d.ts.map +0 -1
  257. package/dist/view-transitions/rotate.d.ts +0 -6
  258. package/dist/view-transitions/rotate.d.ts.map +0 -1
  259. package/dist/view-transitions/scroll.d.ts +0 -8
  260. package/dist/view-transitions/scroll.d.ts.map +0 -1
  261. package/dist/view-transitions/sheet.d.ts +0 -21
  262. package/dist/view-transitions/sheet.d.ts.map +0 -1
  263. package/dist/view-transitions/slide.d.ts +0 -8
  264. package/dist/view-transitions/slide.d.ts.map +0 -1
  265. package/dist/view-transitions/snap.d.ts +0 -16
  266. package/dist/view-transitions/snap.d.ts.map +0 -1
  267. package/dist/view-transitions/strip.d.ts +0 -7
  268. package/dist/view-transitions/strip.d.ts.map +0 -1
  269. package/dist/view-transitions/swap.d.ts +0 -15
  270. package/dist/view-transitions/swap.d.ts.map +0 -1
  271. /package/dist/{animator → animation}/integrator/double-spring-integrator.d.ts +0 -0
  272. /package/dist/{animator → animation}/integrator/inertia-integrator.d.ts +0 -0
  273. /package/dist/{animator → animation}/integrator/spring-integrator.d.ts +0 -0
  274. /package/dist/{animator → animation}/integrator/types.d.ts +0 -0
@@ -0,0 +1,52 @@
1
+ import { PhysicsOptions, StyleObject } from '../../types/index.ts';
2
+ import { MultiAnimationOptions } from '../../animation/multi-animation';
3
+ export type AxisType = "x" | "y" | "z";
4
+ export type AxisDirection = "forward" | "backward";
5
+ /**
6
+ * UX flavor *within* a single axis. Independent dimension from `AxisType`:
7
+ * - `snappy` — tight, decisive page swap. KakaoTalk-style on x.
8
+ * - `fluid` — relaxed, fade-through. Flutter SharedAxisTransition-style on x.
9
+ *
10
+ * Only `x` currently ships both flavors; `y` and `z` only have `snappy` and
11
+ * fall back to it when `fluid` is requested.
12
+ */
13
+ export type AxisFeel = "snappy" | "fluid";
14
+ export interface AxisOptions {
15
+ type?: AxisType;
16
+ direction?: AxisDirection;
17
+ feel?: AxisFeel;
18
+ }
19
+ export type AxisAnimateFunc = (progress: number) => StyleObject;
20
+ export interface AxisSideConfig {
21
+ willChange: string;
22
+ startStyle: StyleObject;
23
+ animate: AxisAnimateFunc;
24
+ }
25
+ export interface AxisAnimationConfig {
26
+ out: AxisSideConfig;
27
+ in: AxisSideConfig;
28
+ }
29
+ export interface AxisProviderBuildArgs {
30
+ direction: AxisDirection;
31
+ }
32
+ export interface AxisProvider {
33
+ /**
34
+ * Physics for the outgoing side. Split from `inPhysics` so a provider can
35
+ * mix integrators (e.g. fluid's x uses inertia for out + spring for in, so
36
+ * the outgoing page falls away under acceleration while the incoming page
37
+ * springs into place).
38
+ */
39
+ outPhysics: PhysicsOptions;
40
+ /** Physics for the incoming side. */
41
+ inPhysics: PhysicsOptions;
42
+ /**
43
+ * How the out/in animations compose. Each axis has its own timing (e.g. x/y
44
+ * use a slight startAt offset for cross-fade overlap, z runs both in place
45
+ * and typically starts together). Provider decides — transition.ts just
46
+ * forwards this to MultiAnimation.
47
+ */
48
+ composition?: MultiAnimationOptions;
49
+ /** `direction` is only meaningful for the sided providers (x, y). */
50
+ build: (args: AxisProviderBuildArgs) => AxisAnimationConfig;
51
+ }
52
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/axis/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,MAAM,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACvC,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1C,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,WAAW,CAAC;AAEhE,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,WAAW,CAAC;IACxB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,cAAc,CAAC;IACpB,EAAE,EAAE,cAAc,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,UAAU,EAAE,cAAc,CAAC;IAC3B,qCAAqC;IACrC,SAAS,EAAE,cAAc,CAAC;IAC1B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,qEAAqE;IACrE,KAAK,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,mBAAmB,CAAC;CAC7D"}
@@ -0,0 +1,15 @@
1
+ import { SsgoiPathTransition } from '../../types/index.ts';
2
+ /**
3
+ * Public `type` values for `blind`. Maps to the internal `direction` axis:
4
+ * - `"horizontal"` (default) — blinds open along the horizontal axis.
5
+ * - `"vertical"` — blinds open along the vertical axis.
6
+ */
7
+ export type BlindType = "horizontal" | "vertical";
8
+ export type BlindConfig = {
9
+ paths: readonly string[];
10
+ type?: BlindType;
11
+ variant?: "default";
12
+ options?: object;
13
+ };
14
+ export declare function blind(config: BlindConfig): SsgoiPathTransition[];
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;AAIlD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,mBAAmB,EAAE,CAQhE"}
@@ -0,0 +1,16 @@
1
+ import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
2
+ export interface BlindOptions {
3
+ physics?: PhysicsOptions;
4
+ blindCount?: number;
5
+ direction?: "horizontal" | "vertical";
6
+ blindColor?: string;
7
+ }
8
+ type BlindExtras = {
9
+ fromBlinds: HTMLDivElement[];
10
+ fromContainer: HTMLDivElement;
11
+ toBlinds: HTMLDivElement[];
12
+ toContainer: HTMLDivElement;
13
+ };
14
+ export declare const blind: (options?: BlindOptions) => TransitionConfig<BlindExtras>;
15
+ export {};
16
+ //# sourceMappingURL=transition.d.ts.map
@@ -0,0 +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;IACjB,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,CA4E9B,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { SsgoiPathTransition } from '../../types/index.ts';
2
+ import { DirectionalTransitionPaths } from '../utils';
3
+ /**
4
+ * Public `type` values supported by `drill`.
5
+ *
6
+ * - `"parallax"` (default) — layered enter/exit with depth parallax.
7
+ * - `"slide"` — flat cross-faded slide. This is the new name for the legacy
8
+ * `"crossfade"` value; the underlying behavior is unchanged.
9
+ */
10
+ export type DrillType = "parallax" | "slide";
11
+ /**
12
+ * Legacy public `type` value, kept for source compatibility only.
13
+ *
14
+ * @deprecated Do not use in new code. v6 only supports `{ type, variant, options }`.
15
+ * Migrate `type: "crossfade"` to `type: "slide"` — same behavior, new name.
16
+ * Example: `drill({ enter: "/list", exit: "/detail", type: "slide" })`.
17
+ * Kept here only for backward compatibility — will be removed in a future major.
18
+ */
19
+ export type DrillTypeDeprecated = "crossfade";
20
+ export type DrillConfig = DirectionalTransitionPaths & ({
21
+ type?: "parallax";
22
+ variant?: "default";
23
+ options?: {};
24
+ } | {
25
+ type: "slide";
26
+ variant?: "default";
27
+ options?: {};
28
+ } | {
29
+ /**
30
+ * @deprecated Do not use in new code. v6 only supports `{ type, variant, options }`.
31
+ * Migrate `type: "crossfade"` to `type: "slide"` — same behavior, new name.
32
+ * Example: `drill({ enter: "/list", exit: "/detail", type: "slide" })`.
33
+ * Kept here only for backward compatibility — will be removed in a future major.
34
+ */
35
+ type: "crossfade";
36
+ variant?: "default";
37
+ options?: {};
38
+ });
39
+ export declare function drill(config: DrillConfig): SsgoiPathTransition[];
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;AAClD,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,UAAU,CAAC;AAIlB;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,0BAA0B,GAClD,CACI;IAAE,IAAI,CAAC,EAAE,UAAU,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,EAAE,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,EAAE,CAAA;CAAE,GACpD;IACE;;;;;OAKG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,EAAE,CAAC;CACd,CACJ,CAAC;AAgBJ,wBAAgB,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,mBAAmB,EAAE,CAUhE"}
@@ -0,0 +1,3 @@
1
+ import { DrillProvider } from '../types';
2
+ export declare function createCrossfadeProvider(): DrillProvider;
3
+ //# sourceMappingURL=crossfade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crossfade.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/drill/provider/crossfade.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,aAAa,EACd,MAAM,UAAU,CAAC;AAsClB,wBAAgB,uBAAuB,IAAI,aAAa,CAKvD"}
@@ -0,0 +1,3 @@
1
+ import { DrillProvider, DrillType } from '../types';
2
+ export declare const DRILL_PROVIDERS: Record<DrillType, DrillProvider>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/drill/provider/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEzD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,CAG5D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { DrillProvider } from '../types';
2
+ export declare function createParallaxProvider(): DrillProvider;
3
+ //# sourceMappingURL=parallax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parallax.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/drill/provider/parallax.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,aAAa,EACd,MAAM,UAAU,CAAC;AAkClB,wBAAgB,sBAAsB,IAAI,aAAa,CAKtD"}
@@ -0,0 +1,5 @@
1
+ import { TransitionConfig } from '../../types/index.ts';
2
+ import { DrillOptions } from './types';
3
+ export type { DrillOptions, DrillType } from './types';
4
+ export declare const drill: (options?: DrillOptions) => TransitionConfig;
5
+ //# sourceMappingURL=transition.d.ts.map
@@ -0,0 +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;AAO/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,gBAyClD,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { PhysicsOptions } from '../../types/index.ts';
2
+ /**
3
+ * Internal type union accepted by the underlying `drill` transition provider.
4
+ *
5
+ * Public API uses `"slide"` (the new name for the previous `"crossfade"`
6
+ * behavior). The `"crossfade"` key is retained here purely so the BC
7
+ * normalization in `index.ts` can keep routing through the same provider
8
+ * without touching the internal transition / provider code.
9
+ *
10
+ * @internal
11
+ */
12
+ export type DrillType = "parallax" | "crossfade";
13
+ export type DrillDirection = "enter" | "exit";
14
+ export interface DrillOptions {
15
+ type?: DrillType;
16
+ direction?: DrillDirection;
17
+ }
18
+ export type DrillStyle = Record<string, number | string>;
19
+ export type DrillAnimateFunc = (progress: number) => DrillStyle;
20
+ export interface DrillSideConfig {
21
+ willChange: string;
22
+ startStyle: DrillStyle;
23
+ animate: DrillAnimateFunc;
24
+ }
25
+ export interface DrillAnimationConfig {
26
+ out: DrillSideConfig;
27
+ in: DrillSideConfig;
28
+ }
29
+ export interface DrillProvider {
30
+ physics: PhysicsOptions;
31
+ build: (direction: DrillDirection) => DrillAnimationConfig;
32
+ }
33
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/drill/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9C,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AACzD,MAAM,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,UAAU,CAAC;AAEhE,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,eAAe,CAAC;IACrB,EAAE,EAAE,eAAe,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,oBAAoB,CAAC;CAC5D"}
@@ -0,0 +1,16 @@
1
+ import { SsgoiPathTransition } from '../../types/index.ts';
2
+ import { PresetConfig } from '../utils';
3
+ import { FadeOptions, FadeType, FadeVariant } from './types';
4
+ export type { FadeOptions, FadeType, FadeVariant } from './types';
5
+ /**
6
+ * Fade preset configuration.
7
+ *
8
+ * Default `type` is `"fade-through"` (sequential fade-out → fade-in).
9
+ * The `"cross-fade"` type and `"smooth"` variant are tracked on the TODO
10
+ * board and intentionally not part of the public type yet.
11
+ */
12
+ export type FadeConfig = PresetConfig<{
13
+ paths: readonly string[];
14
+ }, FadeType, FadeVariant, FadeOptions>;
15
+ export declare function fade(config: FadeConfig): SsgoiPathTransition[];
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,EAAkC,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7E,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;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,CACnC;IAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAC5B,QAAQ,EACR,WAAW,EACX,WAAW,CACZ,CAAC;AAEF,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,EAAE,CAG9D"}
@@ -0,0 +1,6 @@
1
+ import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
2
+ export interface FadeOptions {
3
+ physics?: PhysicsOptions;
4
+ }
5
+ export declare const fade: (options?: FadeOptions) => TransitionConfig;
6
+ //# sourceMappingURL=transition.d.ts.map
@@ -0,0 +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;AAc/D,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,gBAuChD,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Public option shapes for the fade preset.
3
+ *
4
+ * Default `type` is `"fade-through"` — the current sequential
5
+ * fade-out → fade-in behavior.
6
+ *
7
+ * Not yet exposed (tracked separately on the TODO board):
8
+ * - `type: "cross-fade"` (simultaneous fade)
9
+ * - `variant: "smooth"`
10
+ */
11
+ export type FadeType = "fade-through";
12
+ export type FadeVariant = "default";
13
+ export type FadeOptions = Record<string, never>;
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/fade/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AAEtC,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { SsgoiPathTransition } from '../../types/index.ts';
2
+ import { PresetConfig } from '../utils';
3
+ import { FilmOptions, FilmVariant } from './types';
4
+ export type { FilmOptions, FilmVariant } from './types';
5
+ /**
6
+ * Film preset configuration.
7
+ *
8
+ * Single-behavior preset: no `type` discriminator. `options.borderColor`
9
+ * surfaces the cinematic corner-border color (previously a hard-coded
10
+ * internal default).
11
+ */
12
+ export type FilmConfig = PresetConfig<{
13
+ paths: readonly string[];
14
+ }, never, FilmVariant, FilmOptions>;
15
+ export declare function film(config: FilmConfig): SsgoiPathTransition[];
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,EAAkC,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7E,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,CACnC;IAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAC5B,KAAK,EACL,WAAW,EACX,WAAW,CACZ,CAAC;AAEF,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,EAAE,CAW9D"}
@@ -0,0 +1,27 @@
1
+ import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
2
+ export interface FilmOptions {
3
+ border?: {
4
+ color?: string;
5
+ };
6
+ physics?: PhysicsOptions;
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 {};
27
+ //# sourceMappingURL=transition.d.ts.map
@@ -0,0 +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,CAwH7B,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Public option shapes for the film preset.
3
+ *
4
+ * Single-behavior preset (no `type` slot). Exposes a single tunable knob:
5
+ * `options.borderColor` controls the cinematic corner-border color.
6
+ */
7
+ export type FilmVariant = "default";
8
+ export interface FilmOptions {
9
+ /**
10
+ * Color of the cinematic corner borders.
11
+ *
12
+ * Defaults to the internal `DEFAULT_BORDER_COLOR` when omitted.
13
+ */
14
+ borderColor?: string;
15
+ }
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/film/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AAEpC,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,17 @@
1
+ import { SsgoiPathTransition } from '../../types/index.ts';
2
+ import { PresetConfig } from '../utils';
3
+ import { HeroOptions, HeroVariant } from './types';
4
+ export type { HeroOptions, HeroVariant } from './types';
5
+ /**
6
+ * Hero preset configuration.
7
+ *
8
+ * Single-behavior preset: no `type` discriminator. The unified
9
+ * `{ variant, options }` slots are exposed. The `"snappy"` variant is
10
+ * tracked on the TODO board and is intentionally not part of the public
11
+ * type yet.
12
+ */
13
+ export type HeroConfig = PresetConfig<{
14
+ paths: readonly string[];
15
+ }, never, HeroVariant, HeroOptions>;
16
+ export declare function hero(config: HeroConfig): SsgoiPathTransition[];
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,EAAkC,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAExD,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,CACnC;IAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAC5B,KAAK,EACL,WAAW,EACX,WAAW,CACZ,CAAC;AAEF,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,EAAE,CAG9D"}
@@ -0,0 +1,7 @@
1
+ import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
2
+ export interface HeroOptions {
3
+ physics?: PhysicsOptions;
4
+ maxDistance?: number;
5
+ }
6
+ export declare const hero: (options?: HeroOptions) => TransitionConfig;
7
+ //# sourceMappingURL=transition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/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;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAYD,eAAO,MAAM,IAAI,GAAI,UAAS,WAAgB,KAAG,gBA+FhD,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Public option shapes for the hero preset.
3
+ *
4
+ * Single-behavior preset (no `type` slot). Exposes the unified
5
+ * `{ variant, options }` slots.
6
+ *
7
+ * Not yet exposed (tracked separately on the TODO board):
8
+ * - `variant: "snappy"`
9
+ */
10
+ export type HeroVariant = "default";
11
+ export type HeroOptions = Record<string, never>;
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
@@ -1,15 +1,14 @@
1
+ export * from './axis';
2
+ export * from './blind';
3
+ export * from './drill';
1
4
  export * from './fade';
2
- export * from './scale';
3
- export * from './slide';
5
+ export * from './film';
6
+ export * from './hero';
7
+ export * from './jaemin';
4
8
  export * from './rotate';
5
- export * from './bounce';
6
- export * from './blur';
7
- export * from './fly';
8
- export * from './mask';
9
- export * from './none';
10
- export type { Integrator, IntegratorState } from '../animator/integrator';
11
- export { SpringIntegrator, type SpringIntegratorConfig, } from '../animator/integrator';
12
- export { DoubleSpringIntegrator, type DoubleSpringIntegratorConfig, type FollowerSpringConfig, } from '../animator/integrator';
13
- export { InertiaIntegrator, type InertiaIntegratorConfig, type ResistanceType, } from '../animator/integrator';
14
- export { IntegratorProvider } from '../animator/integrator';
9
+ export * from './scroll';
10
+ export * from './sheet';
11
+ export * from './slide';
12
+ export * from './strip';
13
+ export * from './zoom';
15
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AAGvB,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,GAC5B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,sBAAsB,EACtB,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,GAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,KAAK,cAAc,GACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { SsgoiPathTransition } from '../../types/index.ts';
2
+ import { PresetConfig } from '../utils';
3
+ import { JaeminVariant } from './types';
4
+ export type { JaeminVariant } from './types';
5
+ /**
6
+ * Jaemin preset configuration.
7
+ *
8
+ * Single-behavior preset: no `type` discriminator and no public `options`
9
+ * (internal tuning constants are intentionally not exposed). The unified
10
+ * `variant` slot is kept for v6 schema consistency.
11
+ */
12
+ export type JaeminConfig = PresetConfig<{
13
+ paths: readonly string[];
14
+ }, never, JaeminVariant>;
15
+ export declare function jaemin(config: JaeminConfig): SsgoiPathTransition[];
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/jaemin/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,CACrC;IAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAC5B,KAAK,EACL,aAAa,CACd,CAAC;AAEF,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,mBAAmB,EAAE,CAGlE"}
@@ -0,0 +1,18 @@
1
+ import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
2
+ export interface JaeminOptions {
3
+ physics?: PhysicsOptions;
4
+ initialRotation?: number;
5
+ initialScale?: number;
6
+ rotationTriggerPoint?: number;
7
+ }
8
+ /**
9
+ * Jaemin transition — page A fades out while page B appears rotated and
10
+ * scaled, then unwinds back to its natural size.
11
+ *
12
+ * Mapped to the new API as two WebAnimations in parallel. The "in" side uses
13
+ * a single integrator and computes scale/rotation/border-radius from a
14
+ * multi-stage easing inside the style function (originally three sequential
15
+ * tick branches).
16
+ */
17
+ export declare const jaemin: (options?: JaeminOptions) => TransitionConfig;
18
+ //# sourceMappingURL=transition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/jaemin/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAgB/D,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,GAAI,UAAS,aAAkB,KAAG,gBA2GpD,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Public option shapes for the jaemin preset.
3
+ *
4
+ * Single-behavior preset (no `type` slot). Internal tuning constants
5
+ * (rotation/scale/trigger points) are intentionally not exposed; the
6
+ * unified `{ variant }` slot is kept for v6 schema consistency.
7
+ */
8
+ export type JaeminVariant = "default";
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/jaemin/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { SsgoiPathTransition } from '../../types/index.ts';
2
+ import { PresetConfig } from '../utils';
3
+ import { RotateOptions, RotateVariant } from './types';
4
+ export type { RotateOptions, RotateVariant } from './types';
5
+ /**
6
+ * Rotate preset configuration.
7
+ *
8
+ * Single-behavior preset: no `type` discriminator. The unified
9
+ * `{ variant, options }` slots are exposed for v6 schema consistency.
10
+ */
11
+ export type RotateConfig = PresetConfig<{
12
+ paths: readonly string[];
13
+ }, never, RotateVariant, RotateOptions>;
14
+ export declare function rotate(config: RotateConfig): SsgoiPathTransition[];
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/rotate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,CACrC;IAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAC5B,KAAK,EACL,aAAa,EACb,aAAa,CACd,CAAC;AAEF,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,mBAAmB,EAAE,CAGlE"}
@@ -0,0 +1,6 @@
1
+ import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
2
+ export interface RotateOptions {
3
+ physics?: PhysicsOptions;
4
+ }
5
+ export declare const rotate: (options?: RotateOptions) => TransitionConfig;
6
+ //# sourceMappingURL=transition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/rotate/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAW/D,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,MAAM,GAAI,UAAS,aAAkB,KAAG,gBA6CpD,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Public option shapes for the rotate preset.
3
+ *
4
+ * Single-behavior preset (no `type` slot). Exposes the unified
5
+ * `{ variant, options }` slots so callers can adopt the v6 schema.
6
+ */
7
+ export type RotateVariant = "default";
8
+ export type RotateOptions = Record<string, never>;
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/rotate/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { SsgoiPathTransition } from '../../types/index.ts';
2
+ export type ScrollConfig = {
3
+ paths: readonly string[];
4
+ /**
5
+ * - `"directional"` (default): path order decides direction. Earlier → later
6
+ * scrolls up; later → earlier scrolls down.
7
+ * - `"non-directional"`: every transition scrolls upward (pages slide up, new
8
+ * page enters from the bottom). Direction is fixed — not user-configurable.
9
+ */
10
+ type?: "directional" | "non-directional";
11
+ variant?: "default";
12
+ options?: object;
13
+ };
14
+ export declare function scroll(config: ScrollConfig): SsgoiPathTransition[];
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/scroll/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAOlD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,aAAa,GAAG,iBAAiB,CAAC;IACzC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,mBAAmB,EAAE,CAalE"}
@@ -0,0 +1,7 @@
1
+ import { PhysicsOptions, TransitionConfig } from '../../types/index.ts';
2
+ export interface ScrollOptions {
3
+ direction?: "up" | "down";
4
+ physics?: PhysicsOptions;
5
+ }
6
+ export declare const scroll: (options?: ScrollOptions) => TransitionConfig;
7
+ //# sourceMappingURL=transition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/scroll/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO/D,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAYD,eAAO,MAAM,MAAM,GAAI,UAAS,aAAkB,KAAG,gBAwDpD,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { SsgoiPathTransition } from '../../types/index.ts';
2
+ import { DirectionalTransitionPaths } from '../utils';
3
+ /**
4
+ * Public `type` values supported by `sheet`.
5
+ *
6
+ * - `"static"` (default) — the background sits untouched while the sheet rises.
7
+ * - `"scale"` — the background scales down slightly behind the rising sheet.
8
+ * This is the new name for the legacy `"background-scale"` value; the
9
+ * underlying behavior is unchanged.
10
+ */
11
+ export type SheetType = "static" | "scale";
12
+ /**
13
+ * Legacy public `type` value, kept for source compatibility only.
14
+ *
15
+ * @deprecated Do not use in new code. v6 only supports `{ type, variant, options }`.
16
+ * Migrate `type: "background-scale"` to `type: "scale"` — same behavior, new name.
17
+ * Example: `sheet({ enter: "/list", exit: "/sheet", type: "scale" })`.
18
+ * Kept here only for backward compatibility — will be removed in a future major.
19
+ */
20
+ export type SheetTypeDeprecated = "background-scale";
21
+ export type SheetConfig = DirectionalTransitionPaths & ({
22
+ type?: "static";
23
+ variant?: "default";
24
+ options?: {};
25
+ } | {
26
+ type: "scale";
27
+ variant?: "default";
28
+ options?: {};
29
+ } | {
30
+ /**
31
+ * @deprecated Do not use in new code. v6 only supports `{ type, variant, options }`.
32
+ * Migrate `type: "background-scale"` to `type: "scale"` — same behavior, new name.
33
+ * Example: `sheet({ enter: "/list", exit: "/sheet", type: "scale" })`.
34
+ * Kept here only for backward compatibility — will be removed in a future major.
35
+ */
36
+ type: "background-scale";
37
+ variant?: "default";
38
+ options?: {};
39
+ });
40
+ export declare function sheet(config: SheetConfig): SsgoiPathTransition[];
41
+ //# sourceMappingURL=index.d.ts.map