@ssgoi/core 7.1.2 → 7.1.3-beta.1
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 +58 -10
- package/dist/animation/animation.d.ts +20 -0
- package/dist/animation/animation.d.ts.map +1 -1
- package/dist/animation/integrator/double-spring-integrator.d.ts +3 -0
- package/dist/animation/integrator/double-spring-integrator.d.ts.map +1 -1
- package/dist/animation/integrator/inertia-integrator.d.ts +2 -2
- package/dist/animation/integrator/inertia-integrator.d.ts.map +1 -1
- package/dist/animation/integrator/spring-integrator.d.ts +2 -0
- package/dist/animation/integrator/spring-integrator.d.ts.map +1 -1
- package/dist/animation/multi-animation.d.ts +37 -9
- package/dist/animation/multi-animation.d.ts.map +1 -1
- package/dist/animation/web-animation.d.ts +20 -2
- package/dist/animation/web-animation.d.ts.map +1 -1
- package/dist/index-B_K3Vnj-.js +55 -0
- package/dist/index-CtyacfH7.cjs +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1612 -1251
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +5 -3
- package/dist/motion/index.d.ts +4 -0
- package/dist/motion/index.d.ts.map +1 -0
- package/dist/motion/presets.d.ts +13 -0
- package/dist/motion/presets.d.ts.map +1 -0
- package/dist/motion/spring.d.ts +46 -0
- package/dist/motion/spring.d.ts.map +1 -0
- package/dist/motion/with-override.d.ts +2 -0
- package/dist/motion/with-override.d.ts.map +1 -0
- package/dist/multi-animation-Du9W3ZS_.js +503 -0
- package/dist/multi-animation-hDUcfD7W.cjs +1 -0
- package/dist/page-motion-DF3fFkOw.cjs +1 -0
- package/dist/page-motion-MEazegOU.js +43 -0
- package/dist/provider-Cea0Pfm1.js +232 -0
- package/dist/provider-D9Q2URox.cjs +1 -0
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +12 -12
- package/dist/transition/define-transition.d.ts +52 -0
- package/dist/transition/define-transition.d.ts.map +1 -0
- package/dist/transitions/animation-group.d.ts +7 -0
- package/dist/transitions/animation-group.d.ts.map +1 -0
- package/dist/transitions/axis/index.d.ts +3 -2
- package/dist/transitions/axis/index.d.ts.map +1 -1
- package/dist/transitions/axis/transition.d.ts +2 -2
- package/dist/transitions/axis/transition.d.ts.map +1 -1
- package/dist/transitions/blind/index.d.ts +3 -2
- package/dist/transitions/blind/index.d.ts.map +1 -1
- package/dist/transitions/blind/transition.d.ts +3 -10
- package/dist/transitions/blind/transition.d.ts.map +1 -1
- package/dist/transitions/drill/index.d.ts +3 -2
- package/dist/transitions/drill/index.d.ts.map +1 -1
- package/dist/transitions/drill/transition.d.ts +2 -2
- package/dist/transitions/drill/transition.d.ts.map +1 -1
- package/dist/transitions/fade/index.d.ts +3 -2
- package/dist/transitions/fade/index.d.ts.map +1 -1
- package/dist/transitions/fade/transition.d.ts +3 -2
- package/dist/transitions/fade/transition.d.ts.map +1 -1
- package/dist/transitions/film/index.d.ts +3 -2
- package/dist/transitions/film/index.d.ts.map +1 -1
- package/dist/transitions/film/transition.d.ts +2 -20
- package/dist/transitions/film/transition.d.ts.map +1 -1
- package/dist/transitions/hero/content-targets.d.ts +3 -0
- package/dist/transitions/hero/content-targets.d.ts.map +1 -0
- package/dist/transitions/hero/in-place.d.ts +10 -0
- package/dist/transitions/hero/in-place.d.ts.map +1 -0
- package/dist/transitions/hero/index.d.ts +10 -9
- package/dist/transitions/hero/index.d.ts.map +1 -1
- package/dist/transitions/hero/provider/chrome/fade.d.ts.map +1 -1
- package/dist/transitions/hero/provider/chrome/static.d.ts.map +1 -1
- package/dist/transitions/hero/transition.d.ts +11 -10
- package/dist/transitions/hero/transition.d.ts.map +1 -1
- package/dist/transitions/hero/types.d.ts +7 -6
- package/dist/transitions/hero/types.d.ts.map +1 -1
- package/dist/transitions/jaemin/index.d.ts +3 -2
- package/dist/transitions/jaemin/index.d.ts.map +1 -1
- package/dist/transitions/jaemin/transition.d.ts +3 -2
- package/dist/transitions/jaemin/transition.d.ts.map +1 -1
- package/dist/transitions/rotate/index.d.ts +3 -2
- package/dist/transitions/rotate/index.d.ts.map +1 -1
- package/dist/transitions/rotate/transition.d.ts +3 -2
- package/dist/transitions/rotate/transition.d.ts.map +1 -1
- package/dist/transitions/scroll/index.d.ts +3 -2
- package/dist/transitions/scroll/index.d.ts.map +1 -1
- package/dist/transitions/scroll/transition.d.ts +3 -2
- package/dist/transitions/scroll/transition.d.ts.map +1 -1
- package/dist/transitions/sheet/index.d.ts +3 -2
- package/dist/transitions/sheet/index.d.ts.map +1 -1
- package/dist/transitions/sheet/transition.d.ts +2 -6
- package/dist/transitions/sheet/transition.d.ts.map +1 -1
- package/dist/transitions/slide/index.d.ts +3 -2
- package/dist/transitions/slide/index.d.ts.map +1 -1
- package/dist/transitions/slide/transition.d.ts +3 -2
- package/dist/transitions/slide/transition.d.ts.map +1 -1
- package/dist/transitions/strip/index.d.ts +3 -2
- package/dist/transitions/strip/index.d.ts.map +1 -1
- package/dist/transitions/strip/transition.d.ts +3 -2
- package/dist/transitions/strip/transition.d.ts.map +1 -1
- package/dist/transitions/zoom/index.d.ts +3 -2
- package/dist/transitions/zoom/index.d.ts.map +1 -1
- package/dist/transitions/zoom/provider/blur.d.ts +2 -0
- package/dist/transitions/zoom/provider/blur.d.ts.map +1 -1
- package/dist/transitions/zoom/provider/expand.d.ts +1 -0
- package/dist/transitions/zoom/provider/expand.d.ts.map +1 -1
- package/dist/transitions/zoom/provider/static.d.ts +1 -0
- package/dist/transitions/zoom/provider/static.d.ts.map +1 -1
- package/dist/transitions/zoom/transition.d.ts +2 -3
- package/dist/transitions/zoom/transition.d.ts.map +1 -1
- package/dist/transitions/zoom/types.d.ts +2 -0
- package/dist/transitions/zoom/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.js +2 -4
- package/package.json +1 -1
- package/dist/multi-animation-B5hEmEgN.cjs +0 -1
- package/dist/multi-animation-DyZGEfKy.js +0 -383
- package/dist/page-motion-gH3WomQO.cjs +0 -1
- package/dist/page-motion-wmW7PW6B.js +0 -204
- package/dist/timeline-L_vXntmP.js +0 -68
- package/dist/timeline-Zoo1I4XU.cjs +0 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresetExtras } from '../../types/index.ts';
|
|
2
2
|
import { PresetConfig } from '../utils';
|
|
3
|
+
import { hero as transition } from './transition';
|
|
3
4
|
import { HeroOptions, HeroType, HeroVariant } from './types';
|
|
4
5
|
export type { HeroOptions, HeroType, HeroVariant } from './types';
|
|
5
6
|
/**
|
|
6
7
|
* Hero preset configuration.
|
|
7
8
|
*
|
|
8
|
-
* - `type: "static"` (default) —
|
|
9
|
-
*
|
|
10
|
-
* - `type: "fade"` —
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* - `type: "static"` (default) — morph the actual destination visual in place;
|
|
10
|
+
* incoming page content appears immediately.
|
|
11
|
+
* - `type: "fade"` — fade the outgoing page and incoming non-shared content
|
|
12
|
+
* and surface colors. The image remains in its authored stacking context.
|
|
13
|
+
* - `variant: "smooth"` — use a softer follower spring for the morph.
|
|
14
|
+
* Ancestor overflow belongs to the application. The animated visual carries
|
|
15
|
+
* `data-hero-transitioning` until completion for optional caller-owned CSS.
|
|
15
16
|
*/
|
|
16
17
|
export type HeroConfig = PresetConfig<HeroType, HeroVariant, HeroOptions>;
|
|
17
|
-
export declare function hero(config?: HeroConfig):
|
|
18
|
+
export declare function hero(config?: HeroConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in" | "shared">, import('../..').MultiAnimation<"out" | "in" | "shared">>;
|
|
18
19
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAE1E,wBAAgB,IAAI,CAClB,MAAM,GAAE,UAAe,EACvB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,iJAKzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../../../../src/lib/transitions/hero/provider/chrome/fade.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fade.d.ts","sourceRoot":"","sources":["../../../../../src/lib/transitions/hero/provider/chrome/fade.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,aAAa,CAAC;AAoGrB,eAAO,MAAM,wBAAwB,QAAO,YACT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../../../src/lib/transitions/hero/provider/chrome/static.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../../../src/lib/transitions/hero/provider/chrome/static.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,YAAY,EACb,MAAM,aAAa,CAAC;AAmCrB,eAAO,MAAM,0BAA0B,QAAO,YAChB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { HeroPair, HeroResolved, NormalizedHeroOptions } from './types';
|
|
1
|
+
import { MediaGeometry, MediaRect } from '../media-geometry';
|
|
2
|
+
import { HeroPair, NormalizedHeroOptions } from './types';
|
|
4
3
|
export type { HeroType, HeroVariant, NormalizedHeroOptions } from './types';
|
|
5
4
|
/**
|
|
6
5
|
* Resolve new-style hero pairs from `data-hero-enter-key` (detail side) and
|
|
@@ -14,18 +13,20 @@ type HeroMorphStyle = {
|
|
|
14
13
|
transform: string;
|
|
15
14
|
clipPath: string;
|
|
16
15
|
};
|
|
16
|
+
type HeroReference = {
|
|
17
|
+
box: MediaRect;
|
|
18
|
+
scaleX: number;
|
|
19
|
+
scaleY: number;
|
|
20
|
+
};
|
|
17
21
|
type HeroMorphPlan = {
|
|
18
22
|
toContent: MediaGeometry["content"];
|
|
19
23
|
fromVisualEl: HTMLElement;
|
|
20
24
|
toVisualEl: HTMLElement;
|
|
21
|
-
|
|
22
|
-
styleFor: (t: number, u: number) => HeroMorphStyle;
|
|
25
|
+
resetRadius: boolean;
|
|
26
|
+
styleFor: (t: number, u: number, reference?: HeroReference) => HeroMorphStyle;
|
|
23
27
|
};
|
|
24
28
|
export declare function normalizeHeroGeometryPair(from: MediaGeometry, to: MediaGeometry): [MediaGeometry, MediaGeometry];
|
|
25
|
-
export declare function
|
|
29
|
+
export declare function shouldResetHeroRadius(from: MediaGeometry, to: MediaGeometry): boolean;
|
|
26
30
|
export declare function buildHeroMorphPlan(root: HTMLElement, pair: HeroPair, maxDistance: number, fromPage: HTMLElement, toPage: HTMLElement): HeroMorphPlan | null;
|
|
27
|
-
|
|
28
|
-
resolved: HeroResolved;
|
|
29
|
-
};
|
|
30
|
-
export declare const hero: (options: NormalizedHeroOptions) => TransitionConfig<HeroExtras>;
|
|
31
|
+
export declare const hero: (options: NormalizedHeroOptions) => import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in" | "shared">, import('../..').MultiAnimation<"out" | "in" | "shared">>;
|
|
31
32
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/transition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/hero/transition.ts"],"names":[],"mappings":"AAQA,OAAO,EAOL,KAAK,aAAa,EAElB,KAAK,SAAS,EACf,MAAM,mBAAmB,CAAC;AAW3B,OAAO,KAAK,EAGV,QAAQ,EAIR,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA+D5E;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,WAAW,GAClB,QAAQ,EAAE,CAgCZ;AA0CD,KAAK,cAAc,GAAG;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,aAAa,GAAG;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACpC,YAAY,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,WAAW,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,KAAK,cAAc,CAAC;CAC/E,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,aAAa,EACnB,EAAE,EAAE,aAAa,GAChB,CAAC,aAAa,EAAE,aAAa,CAAC,CAEhC;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,aAAa,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAeT;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,QAAQ,EACd,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,WAAW,GAClB,aAAa,GAAG,IAAI,CA2GtB;AAgHD,eAAO,MAAM,IAAI,GAAI,SAAS,qBAAqB,kJAqFlD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PhysicsOptions } from '../../types/index.ts';
|
|
2
|
-
import {
|
|
2
|
+
import { AnimationContributions } from '../animation-group';
|
|
3
3
|
import { MediaFit } from '../media-geometry';
|
|
4
4
|
/**
|
|
5
|
-
* - `static` —
|
|
6
|
-
*
|
|
7
|
-
* - `fade` —
|
|
8
|
-
*
|
|
5
|
+
* - `static` — morph the actual destination visual in its existing parent;
|
|
6
|
+
* incoming page content appears immediately. Default.
|
|
7
|
+
* - `fade` — fade outgoing page and incoming non-shared content/surface colors
|
|
8
|
+
* while the actual shared visual stays opaque in the destination page.
|
|
9
9
|
*/
|
|
10
10
|
export type HeroType = "static" | "fade";
|
|
11
11
|
/**
|
|
@@ -57,8 +57,9 @@ export interface HeroContributeCtx {
|
|
|
57
57
|
* Strategy interface. Both methods are optional — a no-op strategy is a
|
|
58
58
|
* legitimate factory return value (e.g. static chrome).
|
|
59
59
|
*/
|
|
60
|
+
export type HeroAnimationName = "shared" | "out" | "in";
|
|
60
61
|
export interface HeroStrategy {
|
|
61
62
|
prepare?: (ctx: HeroPrepareCtx) => void;
|
|
62
|
-
contribute?: (ctx: HeroContributeCtx) =>
|
|
63
|
+
contribute?: (ctx: HeroContributeCtx) => AnimationContributions<HeroAnimationName>;
|
|
63
64
|
}
|
|
64
65
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +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,
|
|
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,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAMlD;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AACzC;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC/C,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC;AAO/B,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;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CAChB;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,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,MAAM,iBAAiB,GAAG,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,CACX,GAAG,EAAE,iBAAiB,KACnB,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;CAChD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresetExtras } from '../../types/index.ts';
|
|
2
2
|
import { PresetConfig } from '../utils';
|
|
3
|
+
import { jaemin as transition } from './transition';
|
|
3
4
|
import { JaeminVariant } from './types';
|
|
4
5
|
export type { JaeminVariant } from './types';
|
|
5
6
|
/**
|
|
@@ -10,5 +11,5 @@ export type { JaeminVariant } from './types';
|
|
|
10
11
|
* `variant` slot is kept for v6 schema consistency.
|
|
11
12
|
*/
|
|
12
13
|
export type JaeminConfig = PresetConfig<never, JaeminVariant>;
|
|
13
|
-
export declare function jaemin(_config?: JaeminConfig):
|
|
14
|
+
export declare function jaemin(_config?: JaeminConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in">, import('../..').MultiAnimation<"out" | "in">>;
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/jaemin/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/jaemin/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AAE9D,wBAAgB,MAAM,CACpB,OAAO,GAAE,YAAiB,EAC1B,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,2HAGzD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { PhysicsOptions
|
|
1
|
+
import { PhysicsOptions } from '../../types/index.ts';
|
|
2
|
+
import { MultiAnimation } from '../../animation';
|
|
2
3
|
export interface JaeminOptions {
|
|
3
4
|
physics?: PhysicsOptions;
|
|
4
5
|
initialRotation?: number;
|
|
@@ -14,5 +15,5 @@ export interface JaeminOptions {
|
|
|
14
15
|
* multi-stage easing inside the style function (originally three sequential
|
|
15
16
|
* tick branches).
|
|
16
17
|
*/
|
|
17
|
-
export declare const jaemin: (options?: JaeminOptions) =>
|
|
18
|
+
export declare const jaemin: (options?: JaeminOptions) => import('../../types/index.ts').Transition<MultiAnimation<"out" | "in">, MultiAnimation<"out" | "in">>;
|
|
18
19
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/jaemin/transition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/jaemin/transition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,QAAQ,CAAC;AAElE,OAAO,EAEL,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAUzB,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,4FAuHjD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresetExtras } from '../../types/index.ts';
|
|
2
2
|
import { PresetConfig } from '../utils';
|
|
3
|
+
import { rotate as transition } from './transition';
|
|
3
4
|
import { RotateOptions, RotateVariant } from './types';
|
|
4
5
|
export type { RotateOptions, RotateVariant } from './types';
|
|
5
6
|
/**
|
|
@@ -9,5 +10,5 @@ export type { RotateOptions, RotateVariant } from './types';
|
|
|
9
10
|
* `{ variant, options }` slots are exposed for v6 schema consistency.
|
|
10
11
|
*/
|
|
11
12
|
export type RotateConfig = PresetConfig<never, RotateVariant, RotateOptions>;
|
|
12
|
-
export declare function rotate(_config?: RotateConfig):
|
|
13
|
+
export declare function rotate(_config?: RotateConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in">, import('../..').MultiAnimation<"out" | "in">>;
|
|
13
14
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/rotate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACpD,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,CAAC,KAAK,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC;AAE7E,wBAAgB,MAAM,CACpB,OAAO,GAAE,YAAiB,EAC1B,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,2HAGzD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PhysicsOptions
|
|
1
|
+
import { PhysicsOptions } from '../../types/index.ts';
|
|
2
|
+
import { MultiAnimation } from '../../animation';
|
|
2
3
|
export interface RotateOptions {
|
|
3
4
|
physics?: PhysicsOptions;
|
|
4
5
|
}
|
|
5
|
-
export declare const rotate: (options?: RotateOptions) =>
|
|
6
|
+
export declare const rotate: (options?: RotateOptions) => import('../../types/index.ts').Transition<MultiAnimation<"out" | "in">, MultiAnimation<"out" | "in">>;
|
|
6
7
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/rotate/transition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/rotate/transition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,QAAQ,CAAC;AAClE,OAAO,EAEL,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,MAAM,GAAI,UAAS,aAAkB,4FA2DjD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresetExtras } from '../../types/index.ts';
|
|
2
|
+
import { scroll as transition } from './transition';
|
|
2
3
|
export type ScrollConfig = {
|
|
3
4
|
/**
|
|
4
5
|
* - `"directional"` (default): the surrounding rule decides direction.
|
|
@@ -10,5 +11,5 @@ export type ScrollConfig = {
|
|
|
10
11
|
variant?: "default";
|
|
11
12
|
options?: object;
|
|
12
13
|
};
|
|
13
|
-
export declare function scroll(config?: ScrollConfig):
|
|
14
|
+
export declare function scroll(config?: ScrollConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in">, import('../..').MultiAnimation<"out" | "in">>;
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/scroll/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/scroll/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;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,CACpB,MAAM,GAAE,YAAiB,EACzB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,2HAOzD"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { PhysicsOptions
|
|
1
|
+
import { PhysicsOptions } from '../../types/index.ts';
|
|
2
|
+
import { MultiAnimation } from '../../animation';
|
|
2
3
|
export interface ScrollOptions {
|
|
3
4
|
directional?: boolean;
|
|
4
5
|
physics?: PhysicsOptions;
|
|
5
6
|
}
|
|
6
|
-
export declare const scroll: (options?: ScrollOptions) =>
|
|
7
|
+
export declare const scroll: (options?: ScrollOptions) => import('../../types/index.ts').Transition<MultiAnimation<"out" | "in">, MultiAnimation<"out" | "in">>;
|
|
7
8
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/scroll/transition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/scroll/transition.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,QAAQ,CAAC;AAClE,OAAO,EAEL,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAGzB,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAYD,eAAO,MAAM,MAAM,GAAI,UAAS,aAAkB,4FAmGjD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresetExtras } from '../../types/index.ts';
|
|
2
|
+
import { sheet as transition } from './transition';
|
|
2
3
|
/**
|
|
3
4
|
* Public `type` values supported by `sheet`.
|
|
4
5
|
*
|
|
@@ -42,5 +43,5 @@ export type SheetConfig = {
|
|
|
42
43
|
variant?: "default";
|
|
43
44
|
options?: Record<string, never>;
|
|
44
45
|
};
|
|
45
|
-
export declare function sheet(config?: SheetConfig):
|
|
46
|
+
export declare function sheet(config?: SheetConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"overlay" | "sheet" | "background">, import('../..').MultiAnimation<"overlay" | "sheet" | "background">>;
|
|
46
47
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAGnD;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAErD,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,CAAC,EAAE,QAAQ,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,GACzE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,GACvE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,GACtE;IACE;;;;;OAKG;IACH,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CACjC,CAAC;AAiBN,wBAAgB,KAAK,CACnB,MAAM,GAAE,WAAgB,EACxB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,uKAQzD"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MultiAnimation } from '../../animation';
|
|
2
2
|
import { SheetOptions } from './types';
|
|
3
3
|
export type { SheetOptions, SheetType } from './types';
|
|
4
|
-
|
|
5
|
-
interface SheetExtras {
|
|
6
|
-
overlay?: HTMLElement;
|
|
7
|
-
}
|
|
8
|
-
export declare const sheet: (options?: SheetOptions) => TransitionConfig<SheetExtras>;
|
|
4
|
+
export declare const sheet: (options?: SheetOptions) => import('../../types/index.ts').Transition<MultiAnimation<"overlay" | "sheet" | "background">, MultiAnimation<"overlay" | "sheet" | "background">>;
|
|
9
5
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/sheet/transition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/sheet/transition.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,cAAc,EAGf,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,SAAS,CAAC;AAEvD,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAUvD,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,wIAyO/C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresetExtras } from '../../types/index.ts';
|
|
2
2
|
import { PresetConfig } from '../utils';
|
|
3
|
+
import { slide as transition } from './transition';
|
|
3
4
|
import { SlideOptions, SlideVariant } from './types';
|
|
4
5
|
export type { SlideOptions, SlideVariant } from './types';
|
|
5
6
|
/**
|
|
@@ -10,5 +11,5 @@ export type { SlideOptions, SlideVariant } from './types';
|
|
|
10
11
|
* schema consistently across presets.
|
|
11
12
|
*/
|
|
12
13
|
export type SlideConfig = PresetConfig<never, SlideVariant, SlideOptions>;
|
|
13
|
-
export declare function slide(_config?: SlideConfig):
|
|
14
|
+
export declare function slide(_config?: SlideConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in">, import('../..').MultiAnimation<"out" | "in">>;
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/slide/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/slide/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACnD,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,CAAC,KAAK,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAE1E,wBAAgB,KAAK,CACnB,OAAO,GAAE,WAAgB,EACzB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,2HAIzD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PhysicsOptions
|
|
1
|
+
import { PhysicsOptions } from '../../types/index.ts';
|
|
2
|
+
import { MultiAnimation } from '../../animation';
|
|
2
3
|
export interface SlideOptions {
|
|
3
4
|
physics?: PhysicsOptions;
|
|
4
5
|
}
|
|
5
|
-
export declare const slide: (options?: SlideOptions) =>
|
|
6
|
+
export declare const slide: (options?: SlideOptions) => import('../../types/index.ts').Transition<MultiAnimation<"out" | "in">, MultiAnimation<"out" | "in">>;
|
|
6
7
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/slide/transition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/slide/transition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,QAAQ,CAAC;AAClE,OAAO,EAEL,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAID,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,4FA0E/C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresetExtras } from '../../types/index.ts';
|
|
2
2
|
import { PresetConfig } from '../utils';
|
|
3
|
+
import { strip as transition } from './transition';
|
|
3
4
|
import { StripOptions, StripVariant } from './types';
|
|
4
5
|
export type { StripOptions, StripVariant } from './types';
|
|
5
6
|
/**
|
|
@@ -10,5 +11,5 @@ export type { StripOptions, StripVariant } from './types';
|
|
|
10
11
|
* presets.
|
|
11
12
|
*/
|
|
12
13
|
export type StripConfig = PresetConfig<never, StripVariant, StripOptions>;
|
|
13
|
-
export declare function strip(_config?: StripConfig):
|
|
14
|
+
export declare function strip(_config?: StripConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"out" | "in">, import('../..').MultiAnimation<"out" | "in">>;
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/strip/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/strip/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACnD,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,CAAC,KAAK,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAE1E,wBAAgB,KAAK,CACnB,OAAO,GAAE,WAAgB,EACzB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,2HAGzD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PhysicsOptions
|
|
1
|
+
import { PhysicsOptions } from '../../types/index.ts';
|
|
2
|
+
import { MultiAnimation } from '../../animation';
|
|
2
3
|
export interface StripOptions {
|
|
3
4
|
physics?: PhysicsOptions;
|
|
4
5
|
}
|
|
5
|
-
export declare const strip: (options?: StripOptions) =>
|
|
6
|
+
export declare const strip: (options?: StripOptions) => import('../../types/index.ts').Transition<MultiAnimation<"out" | "in">, MultiAnimation<"out" | "in">>;
|
|
6
7
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/strip/transition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/strip/transition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,QAAQ,CAAC;AAClE,OAAO,EAEL,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAQzB,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,GAAI,UAAS,YAAiB,4FAuE/C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PresetExtras } from '../../types/index.ts';
|
|
2
|
+
import { zoom as transition } from './transition';
|
|
2
3
|
import { ZoomType, ZoomVariant } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* Public config for the `zoom` preset (v6 unified `{type?, variant?, options?}`
|
|
@@ -17,5 +18,5 @@ export type ZoomConfig = {
|
|
|
17
18
|
*/
|
|
18
19
|
fade?: boolean;
|
|
19
20
|
};
|
|
20
|
-
export declare function zoom(config?: ZoomConfig):
|
|
21
|
+
export declare function zoom(config?: ZoomConfig, extras?: PresetExtras<ReturnType<typeof transition>>): import('../../types/index.ts').Transition<import('../..').MultiAnimation<"overlay" | "content" | "background" | "tile">, import('../..').MultiAnimation<"overlay" | "content" | "background" | "tile">>;
|
|
21
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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/zoom/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAyB,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5E;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,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,CAClB,MAAM,GAAE,UAAe,EACvB,MAAM,GAAE,YAAY,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAM,6LAIzD"}
|
|
@@ -3,10 +3,12 @@ import { ZoomContributeCtx, ZoomExtras, ZoomPrepareCtx, ZoomProvider, ZoomStrate
|
|
|
3
3
|
import { Animation } from '../../../animation';
|
|
4
4
|
export declare const BLUR_PHYSICS: PhysicsOptions;
|
|
5
5
|
export declare class BlurBackgroundStrategy implements ZoomStrategy {
|
|
6
|
+
readonly name = "background";
|
|
6
7
|
readonly physics: PhysicsOptions;
|
|
7
8
|
contribute(ctx: ZoomContributeCtx): Animation[];
|
|
8
9
|
}
|
|
9
10
|
export declare class OverlayStrategy implements ZoomStrategy {
|
|
11
|
+
readonly name = "overlay";
|
|
10
12
|
prepare(ctx: ZoomPrepareCtx): Partial<ZoomExtras>;
|
|
11
13
|
contribute(ctx: ZoomContributeCtx): Animation[];
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../../src/lib/transitions/zoom/provider/blur.ts"],"names":[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O,CAAC,UAAU,CAAC;IAQjD,UAAU,CAAC,GAAG,EAAE,iBAAiB,GAAG,SAAS,EAAE;CA2BhD;AAMD,wBAAgB,kBAAkB,IAAI,YAAY,CASjD"}
|
|
@@ -3,6 +3,7 @@ import { ZoomContributeCtx, ZoomProvider, ZoomStrategy } from '../types';
|
|
|
3
3
|
import { Animation } from '../../../animation';
|
|
4
4
|
export declare const EXPAND_PHYSICS: PhysicsOptions;
|
|
5
5
|
export declare class ExpandBackgroundStrategy implements ZoomStrategy {
|
|
6
|
+
readonly name = "background";
|
|
6
7
|
readonly physics: PhysicsOptions;
|
|
7
8
|
contribute(ctx: ZoomContributeCtx): Animation[];
|
|
8
9
|
}
|
|
@@ -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,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,SAAS,EAGV,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,cAAc,EAAE,cAS5B,CAAC;AAqFF,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
|
+
{"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,EACL,SAAS,EAGV,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,cAAc,EAAE,cAS5B,CAAC;AAqFF,qBAAa,wBAAyB,YAAW,YAAY;IAC3D,QAAQ,CAAC,IAAI,gBAAgB;IAC7B,QAAQ,CAAC,OAAO,iBAAkB;IAElC,UAAU,CAAC,GAAG,EAAE,iBAAiB,GAAG,SAAS,EAAE;CAoBhD;AAUD,wBAAgB,oBAAoB,IAAI,YAAY,CAQnD"}
|
|
@@ -3,6 +3,7 @@ import { ZoomContributeCtx, ZoomProvider, ZoomStrategy } from '../types';
|
|
|
3
3
|
import { Animation } from '../../../animation';
|
|
4
4
|
export declare const STATIC_PHYSICS: PhysicsOptions;
|
|
5
5
|
export declare class StaticBackgroundStrategy implements ZoomStrategy {
|
|
6
|
+
readonly name = "background";
|
|
6
7
|
readonly physics: PhysicsOptions;
|
|
7
8
|
contribute(_ctx: ZoomContributeCtx): Animation[];
|
|
8
9
|
}
|
|
@@ -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,EAEV,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,eAAO,MAAM,cAAc,EAAE,cAM5B,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
|
+
{"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,cAM5B,CAAC;AAgBF,qBAAa,wBAAyB,YAAW,YAAY;IAC3D,QAAQ,CAAC,IAAI,gBAAgB;IAC7B,QAAQ,CAAC,OAAO,iBAAkB;IAElC,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,EAAE;CAGjD;AAMD,wBAAgB,oBAAoB,IAAI,YAAY,CAQnD"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NormalizedZoomOptions, ZoomAnimationInput, ZoomExtras, ZoomResolved } from './types';
|
|
1
|
+
import { NormalizedZoomOptions, ZoomAnimationInput, ZoomResolved } from './types';
|
|
3
2
|
export type { ZoomType, ZoomVariant, NormalizedZoomOptions } from './types';
|
|
4
3
|
export declare function resolveZoom(fromNode: HTMLElement, toNode: HTMLElement, direction: "forward" | "backward"): ZoomResolved | null;
|
|
5
4
|
export declare function buildInput(resolved: ZoomResolved, fromNode: HTMLElement, toNode: HTMLElement, scrollOffset: {
|
|
6
5
|
x: number;
|
|
7
6
|
y: number;
|
|
8
7
|
}): ZoomAnimationInput;
|
|
9
|
-
export declare const zoom: (options: NormalizedZoomOptions) =>
|
|
8
|
+
export declare const zoom: (options: NormalizedZoomOptions) => import('../../types/index.ts').Transition<import('../..').MultiAnimation<"overlay" | "content" | "background" | "tile">, import('../..').MultiAnimation<"overlay" | "content" | "background" | "tile">>;
|
|
10
9
|
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/zoom/transition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/zoom/transition.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,qBAAqB,EAErB,kBAAkB,EAIlB,YAAY,EAGb,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA6D5E,wBAAgB,WAAW,CACzB,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,SAAS,GAAG,UAAU,GAChC,YAAY,GAAG,IAAI,CAkBrB;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GACrC,kBAAkB,CAyDpB;AAwOD,eAAO,MAAM,IAAI,GAAI,SAAS,qBAAqB,8LAoGlD,CAAC"}
|
|
@@ -103,7 +103,9 @@ export interface ZoomContributeCtx {
|
|
|
103
103
|
* Strategy interface. Both methods are optional — a no-op strategy is
|
|
104
104
|
* a legitimate factory return value (e.g. `FadeStrategy.forVariant("default")`).
|
|
105
105
|
*/
|
|
106
|
+
export type ZoomAnimationName = "tile" | "background" | "content" | "overlay";
|
|
106
107
|
export interface ZoomStrategy {
|
|
108
|
+
readonly name: ZoomAnimationName;
|
|
107
109
|
/**
|
|
108
110
|
* Pre-paint setup. May mutate the outgoing/incoming pages via the
|
|
109
111
|
* promises in `ctx`, or stage DOM via `createElement`. Returns extras
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/transitions/zoom/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EA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3
3
|
import { NavigationDirection } from '../runtime/types';
|
|
4
4
|
export type { StyleObject } from '../runtime/motion-state';
|
|
5
5
|
export type { DoubleSpringFollowerConfig, SpringConfig, ResistanceType, InertiaConfig, IntegratorFactory, PhysicsOptions, } from '../runtime/physics';
|
|
6
|
+
export type { Override, OverrideFn, PresetExtras, } from '../transition/define-transition';
|
|
6
7
|
/** Existing web imports default to DOM targets; the runtime types require an explicit target. */
|
|
7
8
|
export type Pose<TTarget = HTMLElement> = import('../runtime/motion-state').Pose<TTarget>;
|
|
8
9
|
export type TimelineFrame<TStyle = StyleObject> = import('../runtime/motion-state').TimelineFrame<TStyle>;
|
|
@@ -69,8 +70,9 @@ export type AnimationFactoryArgs<TExtras> = {
|
|
|
69
70
|
* },
|
|
70
71
|
* });
|
|
71
72
|
*/
|
|
72
|
-
export
|
|
73
|
-
export type
|
|
73
|
+
export { defineTransition } from '../transition/define-transition';
|
|
74
|
+
export type { Transition, TransitionDefinition, TransitionDirection, OverrideArgs, } from '../transition/define-transition';
|
|
75
|
+
export type TransitionConfig<TExtras extends object = object, TAnimation extends Animation = Animation> = {
|
|
74
76
|
/**
|
|
75
77
|
* Synchronous setup that returns extras (or a Promise of them).
|
|
76
78
|
*
|
|
@@ -85,7 +87,7 @@ export type TransitionConfig<TExtras extends object = object> = {
|
|
|
85
87
|
* and `animation` runs once all three resolve.
|
|
86
88
|
*/
|
|
87
89
|
prepare?: (args: PrepareArgs) => TExtras | Promise<TExtras>;
|
|
88
|
-
animation: (args: AnimationFactoryArgs<TExtras>) =>
|
|
90
|
+
animation: (args: AnimationFactoryArgs<TExtras>) => TAnimation;
|
|
89
91
|
};
|
|
90
92
|
/**
|
|
91
93
|
* Erased-extras form used at path config storage boundaries. The dispatcher
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,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W,EACpB,OAAO,CAAC,EAAE;QACR;;;;;;WAMG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,KACE,IAAI,CAAC;IAEV;;;;OAIG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CACjE,CAAC"}
|
package/dist/types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CtyacfH7.cjs");exports.defineTransition=e.defineTransition;
|
package/dist/types.js
CHANGED