@ssgoi/core 6.0.0 → 6.2.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.
- package/README.md +5 -6
- package/dist/animation/animation.d.ts +18 -0
- package/dist/animation/animation.d.ts.map +1 -1
- package/dist/animation/host-animation.d.ts +2 -0
- package/dist/animation/host-animation.d.ts.map +1 -1
- package/dist/animation/multi-animation.d.ts +20 -4
- package/dist/animation/multi-animation.d.ts.map +1 -1
- package/dist/animation/web-animation.d.ts +2 -0
- package/dist/animation/web-animation.d.ts.map +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.js +1296 -619
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +208 -201
- package/dist/multi-animation-CnxqLEka.js +322 -0
- package/dist/multi-animation-Dw2JTJI2.cjs +1 -0
- package/dist/ssgoi-transition/create-ssgoi-transition-context.d.ts.map +1 -1
- package/dist/transitions/axis/index.d.ts +51 -0
- package/dist/transitions/axis/index.d.ts.map +1 -0
- package/dist/transitions/axis/provider/index.d.ts +8 -0
- package/dist/transitions/axis/provider/index.d.ts.map +1 -0
- package/dist/transitions/axis/provider/x/fluid.d.ts +3 -0
- package/dist/transitions/axis/provider/x/fluid.d.ts.map +1 -0
- package/dist/transitions/axis/provider/x/index.d.ts +5 -0
- package/dist/transitions/axis/provider/x/index.d.ts.map +1 -0
- package/dist/transitions/axis/provider/x/snappy.d.ts +3 -0
- package/dist/transitions/axis/provider/x/snappy.d.ts.map +1 -0
- package/dist/transitions/axis/provider/y/directional.d.ts +3 -0
- package/dist/transitions/axis/provider/y/directional.d.ts.map +1 -0
- package/dist/transitions/axis/provider/y/index.d.ts +5 -0
- package/dist/transitions/axis/provider/y/index.d.ts.map +1 -0
- package/dist/transitions/axis/provider/y/non-directional.d.ts +3 -0
- package/dist/transitions/axis/provider/y/non-directional.d.ts.map +1 -0
- package/dist/transitions/axis/provider/z.d.ts +3 -0
- package/dist/transitions/axis/provider/z.d.ts.map +1 -0
- package/dist/transitions/axis/transition.d.ts +5 -0
- package/dist/transitions/axis/transition.d.ts.map +1 -0
- package/dist/transitions/axis/types.d.ts +55 -0
- package/dist/transitions/axis/types.d.ts.map +1 -0
- package/dist/transitions/blind/index.d.ts +10 -1
- package/dist/transitions/blind/index.d.ts.map +1 -1
- package/dist/transitions/drill/index.d.ts +37 -6
- package/dist/transitions/drill/index.d.ts.map +1 -1
- package/dist/transitions/drill/types.d.ts +10 -0
- package/dist/transitions/drill/types.d.ts.map +1 -1
- package/dist/transitions/fade/index.d.ts +13 -3
- package/dist/transitions/fade/index.d.ts.map +1 -1
- package/dist/transitions/fade/types.d.ts +14 -0
- package/dist/transitions/fade/types.d.ts.map +1 -0
- package/dist/transitions/film/index.d.ts +13 -3
- package/dist/transitions/film/index.d.ts.map +1 -1
- package/dist/transitions/film/types.d.ts +16 -0
- package/dist/transitions/film/types.d.ts.map +1 -0
- package/dist/transitions/hero/index.d.ts +17 -3
- package/dist/transitions/hero/index.d.ts.map +1 -1
- package/dist/transitions/hero/keys.d.ts +15 -0
- package/dist/transitions/hero/keys.d.ts.map +1 -0
- package/dist/transitions/hero/provider/fade.d.ts +3 -0
- package/dist/transitions/hero/provider/fade.d.ts.map +1 -0
- package/dist/transitions/hero/provider/index.d.ts +8 -0
- package/dist/transitions/hero/provider/index.d.ts.map +1 -0
- package/dist/transitions/hero/provider/static.d.ts +3 -0
- package/dist/transitions/hero/provider/static.d.ts.map +1 -0
- package/dist/transitions/hero/transition.d.ts +7 -6
- package/dist/transitions/hero/transition.d.ts.map +1 -1
- package/dist/transitions/hero/types.d.ts +55 -0
- package/dist/transitions/hero/types.d.ts.map +1 -0
- package/dist/transitions/index.d.ts +1 -0
- package/dist/transitions/index.d.ts.map +1 -1
- package/dist/transitions/jaemin/index.d.ts +13 -3
- package/dist/transitions/jaemin/index.d.ts.map +1 -1
- package/dist/transitions/jaemin/types.d.ts +9 -0
- package/dist/transitions/jaemin/types.d.ts.map +1 -0
- package/dist/transitions/rotate/index.d.ts +12 -3
- package/dist/transitions/rotate/index.d.ts.map +1 -1
- package/dist/transitions/rotate/types.d.ts +9 -0
- package/dist/transitions/rotate/types.d.ts.map +1 -0
- package/dist/transitions/scroll/index.d.ts +7 -7
- package/dist/transitions/scroll/index.d.ts.map +1 -1
- package/dist/transitions/sheet/index.d.ts +38 -6
- package/dist/transitions/sheet/index.d.ts.map +1 -1
- package/dist/transitions/sheet/types.d.ts +10 -0
- package/dist/transitions/sheet/types.d.ts.map +1 -1
- package/dist/transitions/slide/index.d.ts +13 -3
- package/dist/transitions/slide/index.d.ts.map +1 -1
- package/dist/transitions/slide/types.d.ts +10 -0
- package/dist/transitions/slide/types.d.ts.map +1 -0
- package/dist/transitions/strip/index.d.ts +13 -3
- package/dist/transitions/strip/index.d.ts.map +1 -1
- package/dist/transitions/strip/types.d.ts +9 -0
- package/dist/transitions/strip/types.d.ts.map +1 -0
- package/dist/transitions/utils.d.ts +16 -0
- package/dist/transitions/utils.d.ts.map +1 -1
- package/dist/transitions/zoom/index.d.ts +17 -3
- package/dist/transitions/zoom/index.d.ts.map +1 -1
- package/dist/transitions/zoom/provider/blur.d.ts +14 -0
- package/dist/transitions/zoom/provider/blur.d.ts.map +1 -0
- package/dist/transitions/zoom/provider/expand.d.ts +6 -1
- package/dist/transitions/zoom/provider/expand.d.ts.map +1 -1
- package/dist/transitions/zoom/provider/index.d.ts +10 -1
- package/dist/transitions/zoom/provider/index.d.ts.map +1 -1
- package/dist/transitions/zoom/provider/static.d.ts +6 -1
- package/dist/transitions/zoom/provider/static.d.ts.map +1 -1
- package/dist/transitions/zoom/transition.d.ts +3 -3
- package/dist/transitions/zoom/transition.d.ts.map +1 -1
- package/dist/transitions/zoom/types.d.ts +78 -3
- package/dist/transitions/zoom/types.d.ts.map +1 -1
- package/dist/transitions/zoom/zoom-element.d.ts +2 -2
- package/dist/transitions/zoom/zoom-element.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -4
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/multi-animation-B_Hl1HEU.cjs +0 -1
- package/dist/multi-animation-CST6aZ8y.js +0 -276
|
@@ -1 +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,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"}
|
|
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"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
|
-
|
|
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<{
|
|
3
13
|
paths: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function fade(
|
|
14
|
+
}, FadeType, FadeVariant, FadeOptions>;
|
|
15
|
+
export declare function fade(config: FadeConfig): SsgoiPathTransition[];
|
|
6
16
|
//# 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;
|
|
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,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"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
|
-
|
|
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<{
|
|
3
13
|
paths: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function film(
|
|
14
|
+
}, never, FilmVariant, FilmOptions>;
|
|
15
|
+
export declare function film(config: FilmConfig): SsgoiPathTransition[];
|
|
6
16
|
//# 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;
|
|
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,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"}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
|
-
|
|
2
|
+
import { PresetConfig } from '../utils';
|
|
3
|
+
import { HeroOptions, HeroType, HeroVariant } from './types';
|
|
4
|
+
export type { HeroOptions, HeroType, HeroVariant } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* Hero preset configuration.
|
|
7
|
+
*
|
|
8
|
+
* - `type: "static"` (default) — incoming-page chrome snaps in; the shared
|
|
9
|
+
* element morphs in place via clip-path inset + uniform scale.
|
|
10
|
+
* - `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
|
+
* its own chrome (e.g., a detail screen with its own back button / app bar).
|
|
13
|
+
* - `variant: "default"` — only value today; reserved for future tonal
|
|
14
|
+
* variants without re-shaping the public API.
|
|
15
|
+
*/
|
|
16
|
+
export type HeroConfig = PresetConfig<{
|
|
3
17
|
paths: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function hero(
|
|
18
|
+
}, HeroType, HeroVariant, HeroOptions>;
|
|
19
|
+
export declare function hero(config: HeroConfig): SsgoiPathTransition[];
|
|
6
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;
|
|
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,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,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,CAO9D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared hero attribute keys. Lives in its own module so both the dispatcher
|
|
3
|
+
* (transition.ts) and the chrome providers can consume them without creating
|
|
4
|
+
* an import cycle through provider/index.ts.
|
|
5
|
+
*/
|
|
6
|
+
export declare const HERO_ENTER_KEY = "data-hero-enter-key";
|
|
7
|
+
export declare const HERO_EXIT_KEY = "data-hero-exit-key";
|
|
8
|
+
export declare const HERO_LEGACY_KEY = "data-hero-key";
|
|
9
|
+
/** CSS selector matching any hero-keyed element. */
|
|
10
|
+
export declare const HERO_ANY_KEY_SELECTOR = "[data-hero-enter-key],[data-hero-exit-key],[data-hero-key]";
|
|
11
|
+
/** True if `el` itself carries any hero key. */
|
|
12
|
+
export declare function isHeroKeyed(el: HTMLElement): boolean;
|
|
13
|
+
/** True if `el` is hero-keyed or contains any hero-keyed descendant. */
|
|
14
|
+
export declare function isOrContainsHeroKey(el: HTMLElement): boolean;
|
|
15
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/keys.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAClD,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAE/C,oDAAoD;AACpD,eAAO,MAAM,qBAAqB,+DAAgE,CAAC;AAEnG,gDAAgD;AAChD,wBAAgB,WAAW,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAMpD;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAG5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/hero/provider/fade.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAqB,YAAY,EAAE,MAAM,UAAU,CAAC;AA4ChE,eAAO,MAAM,wBAAwB,QAAO,YACT,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HeroStrategy, HeroType } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Chrome-handling strategy keyed on `HeroType`. The dispatcher in
|
|
4
|
+
* transition.ts looks the factory up here and assembles it next to the
|
|
5
|
+
* always-on TileStrategy — never branches on the type itself.
|
|
6
|
+
*/
|
|
7
|
+
export declare const HERO_CHROME_PROVIDERS: Record<HeroType, () => HeroStrategy>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/hero/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIvD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,YAAY,CAGtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/hero/provider/static.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,UAAU,CAAC;AAoB7D,eAAO,MAAM,0BAA0B,QAAO,YAChB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { TransitionConfig } from '../../types/index.ts';
|
|
2
|
+
import { HeroResolved, NormalizedHeroOptions } from './types';
|
|
3
|
+
export type { HeroType, HeroVariant, NormalizedHeroOptions } from './types';
|
|
4
|
+
type HeroExtras = {
|
|
5
|
+
resolved: HeroResolved;
|
|
6
|
+
};
|
|
7
|
+
export declare const hero: (options: NormalizedHeroOptions) => TransitionConfig<HeroExtras>;
|
|
7
8
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAU/D,OAAO,KAAK,EAIV,YAAY,EAGZ,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAua5E,KAAK,UAAU,GAAG;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,CAAC;AAE7C,eAAO,MAAM,IAAI,GACf,SAAS,qBAAqB,KAC7B,gBAAgB,CAAC,UAAU,CA2E7B,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PhysicsOptions } from '../../types/index.ts';
|
|
2
|
+
import { Animation } from '../../animation';
|
|
3
|
+
/**
|
|
4
|
+
* - `static` — the shared element morphs in place; the incoming page's chrome
|
|
5
|
+
* snaps in. Default.
|
|
6
|
+
* - `fade` — both pages cross-fade as whole surfaces while a temporary hero
|
|
7
|
+
* clone morphs above them.
|
|
8
|
+
*/
|
|
9
|
+
export type HeroType = "static" | "fade";
|
|
10
|
+
export type HeroVariant = "default";
|
|
11
|
+
export type HeroOptions = Record<string, never>;
|
|
12
|
+
export interface NormalizedHeroOptions {
|
|
13
|
+
type: HeroType;
|
|
14
|
+
variant: HeroVariant;
|
|
15
|
+
}
|
|
16
|
+
export interface HeroPair {
|
|
17
|
+
key: string;
|
|
18
|
+
fromEl: HTMLElement;
|
|
19
|
+
toEl: HTMLElement;
|
|
20
|
+
}
|
|
21
|
+
export interface HeroResolved {
|
|
22
|
+
pairs: HeroPair[];
|
|
23
|
+
}
|
|
24
|
+
export interface HeroPrepareCtx {
|
|
25
|
+
from: Promise<HTMLElement>;
|
|
26
|
+
to: Promise<HTMLElement>;
|
|
27
|
+
resolved: Promise<HeroResolved>;
|
|
28
|
+
}
|
|
29
|
+
export interface HeroContributeCtx {
|
|
30
|
+
from: HTMLElement;
|
|
31
|
+
to: HTMLElement;
|
|
32
|
+
resolved: HeroResolved;
|
|
33
|
+
physics: PhysicsOptions;
|
|
34
|
+
scrollOffset: {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
};
|
|
38
|
+
positionedParent: HTMLElement;
|
|
39
|
+
maxDistance: number;
|
|
40
|
+
/**
|
|
41
|
+
* Mutation registry. Strategies push restore callbacks here; the dispatcher
|
|
42
|
+
* fires them on completion. Keeps cleanup local to each strategy instead of
|
|
43
|
+
* leaking back into the dispatcher.
|
|
44
|
+
*/
|
|
45
|
+
onComplete: (fn: () => void) => void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Strategy interface. Both methods are optional — a no-op strategy is a
|
|
49
|
+
* legitimate factory return value (e.g. static chrome).
|
|
50
|
+
*/
|
|
51
|
+
export interface HeroStrategy {
|
|
52
|
+
prepare?: (ctx: HeroPrepareCtx) => void;
|
|
53
|
+
contribute?: (ctx: HeroContributeCtx) => Animation[];
|
|
54
|
+
}
|
|
55
|
+
//# 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,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAMjD;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AACpC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAOhD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,WAAW,CAAC;CACtB;AAMD,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAUD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC3B,EAAE,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,EAAE,EAAE,WAAW,CAAC;IAChB,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,cAAc,CAAC;IACxB,YAAY,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,gBAAgB,EAAE,WAAW,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,SAAS,EAAE,CAAC;CACtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/index.ts"],"names":[],"mappings":"AAAA,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"}
|
|
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"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
|
-
|
|
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<{
|
|
3
13
|
paths: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function jaemin(
|
|
14
|
+
}, never, JaeminVariant>;
|
|
15
|
+
export declare function jaemin(config: JaeminConfig): SsgoiPathTransition[];
|
|
6
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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;
|
|
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,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"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
|
-
|
|
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<{
|
|
3
12
|
paths: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function rotate(
|
|
13
|
+
}, never, RotateVariant, RotateOptions>;
|
|
14
|
+
export declare function rotate(config: RotateConfig): SsgoiPathTransition[];
|
|
6
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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;
|
|
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,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"}
|
|
@@ -2,14 +2,14 @@ import { SsgoiPathTransition } from '../../types/index.ts';
|
|
|
2
2
|
export type ScrollConfig = {
|
|
3
3
|
paths: readonly string[];
|
|
4
4
|
/**
|
|
5
|
-
* - `"directional"` (
|
|
6
|
-
*
|
|
7
|
-
* - `"non-directional"`:
|
|
8
|
-
*
|
|
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
9
|
*/
|
|
10
10
|
type?: "directional" | "non-directional";
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
variant?: "default";
|
|
12
|
+
options?: object;
|
|
13
13
|
};
|
|
14
|
-
export declare function scroll(
|
|
14
|
+
export declare function scroll(config: ScrollConfig): SsgoiPathTransition[];
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
2
|
import { DirectionalTransitionPaths } from '../utils';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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[];
|
|
9
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,UAAU,CAAC;AAIlB;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE3C;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG,0BAA0B,GAClD,CACI;IAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,EAAE,CAAA;CAAE,GACtD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,EAAE,CAAA;CAAE,GACpD;IACE;;;;;OAKG;IACH,IAAI,EAAE,kBAAkB,CAAC;IACzB,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"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { PhysicsOptions } from '../../types/index.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Internal type union accepted by the underlying `sheet` transition provider.
|
|
4
|
+
*
|
|
5
|
+
* Public API uses `"scale"` (the new name for `"background-scale"`). The
|
|
6
|
+
* `"background-scale"` key is retained here purely so the BC normalization
|
|
7
|
+
* in `index.ts` can keep routing through the same provider without touching
|
|
8
|
+
* the internal transition / provider code.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
2
12
|
export type SheetType = "static" | "background-scale";
|
|
3
13
|
export type SheetDirection = "enter" | "exit";
|
|
4
14
|
export interface SheetOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/sheet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,kBAAkB,CAAC;AACtD,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;AAEzD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC;CACtC;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,cAAc,CAAC;IAC7B,WAAW,EAAE,cAAc,CAAC;IAC5B,UAAU,EAAE,qBAAqB,CAAC;CACnC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/sheet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,kBAAkB,CAAC;AACtD,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;AAEzD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC;CACtC;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,cAAc,CAAC;IAC7B,WAAW,EAAE,cAAc,CAAC;IAC5B,UAAU,EAAE,qBAAqB,CAAC;CACnC"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
|
-
|
|
2
|
+
import { PresetConfig } from '../utils';
|
|
3
|
+
import { SlideOptions, SlideVariant } from './types';
|
|
4
|
+
export type { SlideOptions, SlideVariant } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* Slide preset configuration.
|
|
7
|
+
*
|
|
8
|
+
* Single-behavior preset: no `type` discriminator. The unified
|
|
9
|
+
* `{ variant, options }` slots are exposed so callers can adopt the v6
|
|
10
|
+
* schema consistently across presets.
|
|
11
|
+
*/
|
|
12
|
+
export type SlideConfig = PresetConfig<{
|
|
3
13
|
paths: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function slide(
|
|
14
|
+
}, never, SlideVariant, SlideOptions>;
|
|
15
|
+
export declare function slide(config: SlideConfig): SsgoiPathTransition[];
|
|
6
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/slide/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/slide/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE3E,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1D,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,CACpC;IAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAC5B,KAAK,EACL,YAAY,EACZ,YAAY,CACb,CAAC;AAEF,wBAAgB,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,mBAAmB,EAAE,CAShE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public option shapes for the slide preset.
|
|
3
|
+
*
|
|
4
|
+
* The slide preset has no `type` discriminator (single behavior). It still
|
|
5
|
+
* exposes the unified `{ variant, options }` slots so callers can adopt the
|
|
6
|
+
* v6 schema uniformly across presets.
|
|
7
|
+
*/
|
|
8
|
+
export type SlideVariant = "default";
|
|
9
|
+
export type SlideOptions = Record<string, never>;
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/slide/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;AAErC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
|
-
|
|
2
|
+
import { PresetConfig } from '../utils';
|
|
3
|
+
import { StripOptions, StripVariant } from './types';
|
|
4
|
+
export type { StripOptions, StripVariant } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* Strip preset configuration.
|
|
7
|
+
*
|
|
8
|
+
* Single-behavior preset: no `type` discriminator. The unified
|
|
9
|
+
* `{ variant, options }` slots are exposed for consistency with other v6
|
|
10
|
+
* presets.
|
|
11
|
+
*/
|
|
12
|
+
export type StripConfig = PresetConfig<{
|
|
3
13
|
paths: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function strip(
|
|
14
|
+
}, never, StripVariant, StripOptions>;
|
|
15
|
+
export declare function strip(config: StripConfig): SsgoiPathTransition[];
|
|
6
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/strip/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/strip/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,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1D,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,CACpC;IAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAC5B,KAAK,EACL,YAAY,EACZ,YAAY,CACb,CAAC;AAEF,wBAAgB,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,mBAAmB,EAAE,CAGhE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public option shapes for the strip 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 StripVariant = "default";
|
|
8
|
+
export type StripOptions = Record<string, never>;
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/strip/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;AAErC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -3,6 +3,22 @@ export type DirectionalTransitionPaths = {
|
|
|
3
3
|
enter: string;
|
|
4
4
|
exit: string;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Unified preset configuration schema used by all v6 transition presets.
|
|
8
|
+
*
|
|
9
|
+
* - `TPaths` carries the paths shape (symmetric / directional / ordered).
|
|
10
|
+
* - `TType` is the union of supported `type` discriminators. Use `never`
|
|
11
|
+
* when the preset has no `type` slot.
|
|
12
|
+
* - `TVariant` is the union of supported `variant` values. Defaults to
|
|
13
|
+
* `"default"` so single-variant presets expose a stable slot.
|
|
14
|
+
* - `TOptions` is the bag of fine-tuning options. Defaults to `{}` so
|
|
15
|
+
* presets can stay forward-compatible without exposing knobs yet.
|
|
16
|
+
*/
|
|
17
|
+
export type PresetConfig<TPaths, TType extends string = never, TVariant extends string = "default", TOptions extends object = {}> = TPaths & {
|
|
18
|
+
type?: TType;
|
|
19
|
+
variant?: TVariant;
|
|
20
|
+
options?: TOptions;
|
|
21
|
+
};
|
|
6
22
|
export declare function createSymmetricPathTransitions(paths: readonly string[], createTransition: () => AnyTransitionConfig): SsgoiPathTransition[];
|
|
7
23
|
export declare function createDirectionalPathTransitions(paths: DirectionalTransitionPaths, createTransition: (direction: "enter" | "exit") => AnyTransitionConfig): SsgoiPathTransition[];
|
|
8
24
|
export declare function createOrderedPathTransitions<TDirection extends string>(paths: readonly string[], directions: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAEvE,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,gBAAgB,EAAE,MAAM,mBAAmB,GAC1C,mBAAmB,EAAE,CAkBvB;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,0BAA0B,EACjC,gBAAgB,EAAE,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,KAAK,mBAAmB,GACrE,mBAAmB,EAAE,CAavB;AAED,wBAAgB,4BAA4B,CAAC,UAAU,SAAS,MAAM,EACpE,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,UAAU,EAAE;IACV,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,EAAE,UAAU,CAAC;CACtB,EACD,gBAAgB,EAAE,CAAC,SAAS,EAAE,UAAU,KAAK,mBAAmB,GAC/D,mBAAmB,EAAE,CAwBvB"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/transitions/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAEvE,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,CACtB,MAAM,EACN,KAAK,SAAS,MAAM,GAAG,KAAK,EAC5B,QAAQ,SAAS,MAAM,GAAG,SAAS,EACnC,QAAQ,SAAS,MAAM,GAAG,EAAE,IAC1B,MAAM,GAAG;IACX,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,gBAAgB,EAAE,MAAM,mBAAmB,GAC1C,mBAAmB,EAAE,CAkBvB;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,0BAA0B,EACjC,gBAAgB,EAAE,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,KAAK,mBAAmB,GACrE,mBAAmB,EAAE,CAavB;AAED,wBAAgB,4BAA4B,CAAC,UAAU,SAAS,MAAM,EACpE,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,UAAU,EAAE;IACV,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,EAAE,UAAU,CAAC;CACtB,EACD,gBAAgB,EAAE,CAAC,SAAS,EAAE,UAAU,KAAK,mBAAmB,GAC/D,mBAAmB,EAAE,CAwBvB"}
|