@ssgoi/core 6.0.0 → 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.
- 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 +10 -10
- package/dist/index.js +998 -561
- 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 +43 -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 +3 -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.d.ts +3 -0
- package/dist/transitions/axis/provider/y.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 +52 -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 +14 -3
- package/dist/transitions/hero/index.d.ts.map +1 -1
- package/dist/transitions/hero/types.d.ts +12 -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
|
@@ -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,17 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
|
-
|
|
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<{
|
|
3
14
|
paths: readonly string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function hero(
|
|
15
|
+
}, never, HeroVariant, HeroOptions>;
|
|
16
|
+
export declare function hero(config: HeroConfig): SsgoiPathTransition[];
|
|
6
17
|
//# 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,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,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 +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"}
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import { SsgoiPathTransition } from '../../types/index.ts';
|
|
2
|
-
import { ZoomType } from './types';
|
|
2
|
+
import { ZoomType, ZoomVariant } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Public config for the `zoom` preset (v6 unified `{type?, variant?, options?}`
|
|
5
|
+
* surface). Only the implemented type × variant combinations are exposed in
|
|
6
|
+
* the type so editors can drive completion without showing TODO branches.
|
|
7
|
+
*/
|
|
3
8
|
export type ZoomConfig = {
|
|
4
9
|
paths: readonly string[];
|
|
5
|
-
type
|
|
10
|
+
type?: ZoomType;
|
|
11
|
+
variant?: ZoomVariant;
|
|
12
|
+
options?: Record<string, never>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Do not use in new code. v6 only supports `{ type, variant, options }`.
|
|
15
|
+
* Migrate `fade: true` to `variant: "fade"`.
|
|
16
|
+
* Example: `zoom({ paths, type: "static", variant: "fade" })`.
|
|
17
|
+
* Kept here only for backward compatibility — will be removed in a future major.
|
|
18
|
+
*/
|
|
19
|
+
fade?: boolean;
|
|
6
20
|
};
|
|
7
|
-
export declare function zoom(
|
|
21
|
+
export declare function zoom(config: ZoomConfig): SsgoiPathTransition[];
|
|
8
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/zoom/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAGlD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/zoom/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAGlD,OAAO,KAAK,EAEV,QAAQ,EACR,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,WAAW,CAAC;IAGtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAmBF,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,mBAAmB,EAAE,CAK9D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PhysicsOptions } from '../../../types/index.ts';
|
|
2
|
+
import { ZoomContributeCtx, ZoomExtras, ZoomPrepareCtx, ZoomProvider, ZoomStrategy } from '../types';
|
|
3
|
+
import { Animation } from '../../../animation';
|
|
4
|
+
export declare const BLUR_PHYSICS: PhysicsOptions;
|
|
5
|
+
export declare class BlurBackgroundStrategy implements ZoomStrategy {
|
|
6
|
+
readonly physics: PhysicsOptions;
|
|
7
|
+
contribute(ctx: ZoomContributeCtx): Animation[];
|
|
8
|
+
}
|
|
9
|
+
export declare class OverlayStrategy implements ZoomStrategy {
|
|
10
|
+
prepare(ctx: ZoomPrepareCtx): Partial<ZoomExtras>;
|
|
11
|
+
contribute(ctx: ZoomContributeCtx): Animation[];
|
|
12
|
+
}
|
|
13
|
+
export declare function createBlurProvider(): ZoomProvider;
|
|
14
|
+
//# sourceMappingURL=blur.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/zoom/provider/blur.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAEV,iBAAiB,EACjB,UAAU,EAEV,cAAc,EACd,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAoC,MAAM,oBAAoB,CAAC;AAGjF,eAAO,MAAM,YAAY,EAAE,cAE1B,CAAC;AAmEF,qBAAa,sBAAuB,YAAW,YAAY;IACzD,QAAQ,CAAC,OAAO,iBAAgB;IAEhC,UAAU,CAAC,GAAG,EAAE,iBAAiB,GAAG,SAAS,EAAE;CAkBhD;AAQD,qBAAa,eAAgB,YAAW,YAAY;IAClD,OAAO,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAQjD,UAAU,CAAC,GAAG,EAAE,iBAAiB,GAAG,SAAS,EAAE;CAWhD;AAMD,wBAAgB,kBAAkB,IAAI,YAAY,CASjD"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PhysicsOptions } from '../../../types/index.ts';
|
|
2
|
-
import { ZoomProvider } from '../types';
|
|
2
|
+
import { ZoomContributeCtx, ZoomProvider, ZoomStrategy } from '../types';
|
|
3
|
+
import { Animation } from '../../../animation';
|
|
3
4
|
export declare const EXPAND_PHYSICS: PhysicsOptions;
|
|
5
|
+
export declare class ExpandBackgroundStrategy implements ZoomStrategy {
|
|
6
|
+
readonly physics: PhysicsOptions;
|
|
7
|
+
contribute(ctx: ZoomContributeCtx): Animation[];
|
|
8
|
+
}
|
|
4
9
|
export declare function createExpandProvider(): ZoomProvider;
|
|
5
10
|
//# sourceMappingURL=expand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/zoom/provider/expand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/zoom/provider/expand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAGV,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAoC,MAAM,oBAAoB,CAAC;AAEjF,eAAO,MAAM,cAAc,EAAE,cAE5B,CAAC;AAuFF,qBAAa,wBAAyB,YAAW,YAAY;IAC3D,QAAQ,CAAC,OAAO,iBAAkB;IAElC,UAAU,CAAC,GAAG,EAAE,iBAAiB,GAAG,SAAS,EAAE;CAoBhD;AAUD,wBAAgB,oBAAoB,IAAI,YAAY,CAQnD"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BlurBackgroundStrategy, OverlayStrategy } from './blur';
|
|
2
|
+
import { ExpandBackgroundStrategy } from './expand';
|
|
3
|
+
import { StaticBackgroundStrategy } from './static';
|
|
4
|
+
import { ZoomProvider, ZoomStrategy, ZoomType } from '../types';
|
|
5
|
+
import { PhysicsOptions } from '../../../types/index.ts';
|
|
2
6
|
export declare const ZOOM_PROVIDERS: Record<ZoomType, ZoomProvider>;
|
|
7
|
+
export type BackgroundStrategyWithPhysics = ZoomStrategy & {
|
|
8
|
+
physics: PhysicsOptions;
|
|
9
|
+
};
|
|
10
|
+
export declare function createBackgroundStrategy(type: ZoomType): BackgroundStrategyWithPhysics;
|
|
11
|
+
export { BlurBackgroundStrategy, ExpandBackgroundStrategy, OverlayStrategy, StaticBackgroundStrategy, };
|
|
3
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/zoom/provider/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/zoom/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAsB,MAAM,QAAQ,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAwB,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAwB,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAO7C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,CAIzD,CAAC;AAQF,MAAM,MAAM,6BAA6B,GAAG,YAAY,GAAG;IACzD,OAAO,EAAE,cAAc,CAAC;CACzB,CAAC;AAQF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,QAAQ,GAAG,6BAA6B,CAEtF;AAED,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,wBAAwB,GACzB,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PhysicsOptions } from '../../../types/index.ts';
|
|
2
|
-
import { ZoomProvider } from '../types';
|
|
2
|
+
import { ZoomContributeCtx, ZoomProvider, ZoomStrategy } from '../types';
|
|
3
|
+
import { Animation } from '../../../animation';
|
|
3
4
|
export declare const STATIC_PHYSICS: PhysicsOptions;
|
|
5
|
+
export declare class StaticBackgroundStrategy implements ZoomStrategy {
|
|
6
|
+
readonly physics: PhysicsOptions;
|
|
7
|
+
contribute(_ctx: ZoomContributeCtx): Animation[];
|
|
8
|
+
}
|
|
4
9
|
export declare function createStaticProvider(): ZoomProvider;
|
|
5
10
|
//# sourceMappingURL=static.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/zoom/provider/static.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/zoom/provider/static.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAEV,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,eAAO,MAAM,cAAc,EAAE,cAE5B,CAAC;AAgBF,qBAAa,wBAAyB,YAAW,YAAY;IAC3D,QAAQ,CAAC,OAAO,iBAAkB;IAElC,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,EAAE;CAGjD;AAMD,wBAAgB,oBAAoB,IAAI,YAAY,CAQnD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransitionConfig } from '../../types/index.ts';
|
|
2
|
-
import {
|
|
3
|
-
export type {
|
|
4
|
-
export declare const zoom: (options:
|
|
2
|
+
import { NormalizedZoomOptions, ZoomExtras } from './types';
|
|
3
|
+
export type { ZoomType, ZoomVariant, NormalizedZoomOptions } from './types';
|
|
4
|
+
export declare const zoom: (options: NormalizedZoomOptions) => TransitionConfig<ZoomExtras>;
|
|
5
5
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/zoom/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,gBAAgB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/zoom/transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAa/D,OAAO,KAAK,EACV,qBAAqB,EAGrB,UAAU,EAKX,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA0Q5E,eAAO,MAAM,IAAI,GACf,SAAS,qBAAqB,KAC7B,gBAAgB,CAAC,UAAU,CAmF7B,CAAC"}
|