motion-start 0.1.18 → 0.1.20
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/dist/animation/utils/is-animatable.d.ts +5 -0
- package/dist/animation/utils/is-animatable.d.ts.map +1 -1
- package/dist/animation/utils/is-animatable.js +1 -1
- package/dist/components/AnimateSharedLayout/utils/crossfader.d.ts +5 -0
- package/dist/components/AnimateSharedLayout/utils/crossfader.d.ts.map +1 -1
- package/dist/components/AnimateSharedLayout/utils/crossfader.js +1 -1
- package/dist/motion/features/layout/utils.d.ts +5 -0
- package/dist/motion/features/layout/utils.d.ts.map +1 -1
- package/dist/motion/features/layout/utils.js +1 -1
- package/dist/render/dom/projection/default-scale-correctors.d.ts +5 -0
- package/dist/render/dom/projection/default-scale-correctors.d.ts.map +1 -1
- package/dist/render/dom/projection/default-scale-correctors.js +1 -1
- package/dist/render/dom/utils/unit-conversion.d.ts +5 -0
- package/dist/render/dom/utils/unit-conversion.d.ts.map +1 -1
- package/dist/render/dom/utils/unit-conversion.js +1 -1
- package/dist/render/dom/value-types/animatable-none.d.ts +5 -0
- package/dist/render/dom/value-types/animatable-none.d.ts.map +1 -1
- package/dist/render/dom/value-types/animatable-none.js +1 -1
- package/dist/render/dom/value-types/defaults.d.ts +5 -0
- package/dist/render/dom/value-types/defaults.d.ts.map +1 -1
- package/dist/render/dom/value-types/defaults.js +1 -1
- package/dist/render/dom/value-types/dimensions.d.ts +5 -0
- package/dist/render/dom/value-types/dimensions.d.ts.map +1 -1
- package/dist/render/dom/value-types/dimensions.js +1 -1
- package/dist/render/dom/value-types/find.d.ts +5 -0
- package/dist/render/dom/value-types/find.d.ts.map +1 -1
- package/dist/render/dom/value-types/find.js +1 -1
- package/dist/render/dom/value-types/number.d.ts +5 -0
- package/dist/render/dom/value-types/number.d.ts.map +1 -1
- package/dist/render/dom/value-types/number.js +1 -1
- package/dist/render/dom/value-types/type-int.d.ts +5 -0
- package/dist/render/dom/value-types/type-int.d.ts.map +1 -1
- package/dist/render/dom/value-types/type-int.js +1 -1
- package/dist/render/svg/utils/path.d.ts +5 -0
- package/dist/render/svg/utils/path.d.ts.map +1 -1
- package/dist/render/svg/utils/path.js +1 -1
- package/dist/render/svg/utils/transform-origin.d.ts +5 -0
- package/dist/render/svg/utils/transform-origin.d.ts.map +1 -1
- package/dist/render/svg/utils/transform-origin.js +1 -1
- package/dist/utils/geometry/delta-apply.d.ts +5 -0
- package/dist/utils/geometry/delta-apply.d.ts.map +1 -1
- package/dist/utils/geometry/delta-apply.js +1 -1
- package/dist/utils/geometry/delta-calc.d.ts +5 -0
- package/dist/utils/geometry/delta-calc.d.ts.map +1 -1
- package/dist/utils/geometry/delta-calc.js +1 -1
- package/dist/utils/transform.d.ts +5 -0
- package/dist/utils/transform.d.ts.map +1 -1
- package/dist/utils/transform.js +1 -1
- package/dist/value/index.d.ts +5 -0
- package/dist/value/index.d.ts.map +1 -1
- package/dist/value/index.js +1 -1
- package/dist/value/scroll/use-element-scroll.d.ts +1 -1
- package/dist/value/scroll/use-element-scroll.d.ts.map +1 -1
- package/dist/value/scroll/use-element-scroll.js +2 -2
- package/dist/value/scroll/use-viewport-scroll.d.ts +1 -1
- package/dist/value/scroll/use-viewport-scroll.d.ts.map +1 -1
- package/dist/value/scroll/use-viewport-scroll.js +2 -2
- package/dist/value/use-combine-values.d.ts +1 -1
- package/dist/value/use-combine-values.d.ts.map +1 -1
- package/dist/value/use-combine-values.js +1 -1
- package/dist/value/use-motion-template.d.ts +1 -1
- package/dist/value/use-motion-template.d.ts.map +1 -1
- package/dist/value/use-motion-template.js +2 -2
- package/dist/value/use-spring.d.ts +6 -1
- package/dist/value/use-spring.d.ts.map +1 -1
- package/dist/value/use-spring.js +4 -4
- package/dist/value/use-transform.d.ts +2 -2
- package/dist/value/use-transform.d.ts.map +1 -1
- package/dist/value/use-transform.js +2 -2
- package/dist/value/utils/is-motion-value.d.ts +1 -1
- package/dist/value/utils/is-motion-value.d.ts.map +1 -1
- package/dist/value/utils/resolve-motion-value.d.ts +2 -2
- package/dist/value/utils/resolve-motion-value.d.ts.map +1 -1
- package/dist/value/utils/resolve-motion-value.js +0 -5
- package/package.json +21 -21
|
@@ -3,6 +3,11 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { ResolvedValueTarget } from "../../types";
|
|
6
|
+
/**
|
|
7
|
+
based on framer-motion@4.0.3,
|
|
8
|
+
Copyright (c) 2018 Framer B.V.
|
|
9
|
+
*/
|
|
10
|
+
import '../../utils/fix-process-env';
|
|
6
11
|
/**
|
|
7
12
|
* Check if a value is animatable. Examples:
|
|
8
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-animatable.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/animation/utils/is-animatable.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"is-animatable.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/animation/utils/is-animatable.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD;;;EAGE;AACF,OAAO,6BAA6B,CAAC;AAGrC;;;;;;;;GAQG;AACH,QAAA,IAAI,YAAY,GAAa,KAAK,MAAM,EAAE,OAAO,mBAAmB,YAgBnE,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -22,6 +22,11 @@ export interface CrossfadeAnimationOptions {
|
|
|
22
22
|
crossfadeOpacity?: boolean;
|
|
23
23
|
preserveFollowOpacity?: boolean;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
based on framer-motion@4.0.3,
|
|
27
|
+
Copyright (c) 2018 Framer B.V.
|
|
28
|
+
*/
|
|
29
|
+
import '../../../utils/fix-process-env.js';
|
|
25
30
|
declare function createCrossfader(): Crossfader;
|
|
26
31
|
export { createCrossfader };
|
|
27
32
|
//# sourceMappingURL=crossfader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crossfader.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/components/AnimateSharedLayout/utils/crossfader.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAUX,UAAU,EAEV,MAAM,gBAAgB,CAAC;AACxB,MAAM,WAAW,UAAU;IAC1B,QAAQ,IAAI,OAAO,CAAC;IACpB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,GAAG,SAAS,CAAC;IACtE,MAAM,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,gBAAgB,CAAC;IAClD,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,gBAAgB,CAAC;IACpD,UAAU,CAAC,OAAO,EAAE,yBAAyB,GAAG,IAAI,CAAC;IACrD,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;IACb,eAAe,IAAI,cAAc,CAAC;CAClC;AACD,MAAM,WAAW,yBAAyB;IACzC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC;
|
|
1
|
+
{"version":3,"file":"crossfader.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/components/AnimateSharedLayout/utils/crossfader.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAUX,UAAU,EAEV,MAAM,gBAAgB,CAAC;AACxB,MAAM,WAAW,UAAU;IAC1B,QAAQ,IAAI,OAAO,CAAC;IACpB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,GAAG,SAAS,CAAC;IACtE,MAAM,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,gBAAgB,CAAC;IAClD,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,GAAG,gBAAgB,CAAC;IACpD,UAAU,CAAC,OAAO,EAAE,yBAAyB,GAAG,IAAI,CAAC;IACrD,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,IAAI,CAAC;IACb,eAAe,IAAI,cAAc,CAAC;CAClC;AACD,MAAM,WAAW,yBAAyB;IACzC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAQ3C,iBAAS,gBAAgB,IAAI,UAAU,CAuKtC;AAkED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env.js';
|
|
6
6
|
import sync, { getFrameData } from 'framesync';
|
|
7
7
|
import { mix, progress, linear, mixColor, circOut } from 'popmotion';
|
|
8
8
|
import { animate } from '../../../animation/animate.js';
|
|
@@ -6,6 +6,11 @@ import type { Axis, AxisBox2D } from "../../../types/geometry";
|
|
|
6
6
|
interface WithLayoutId {
|
|
7
7
|
getLayoutId: () => undefined | string;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
based on framer-motion@4.1.11,
|
|
11
|
+
Copyright (c) 2018 Framer B.V.
|
|
12
|
+
*/
|
|
13
|
+
import "../../../utils/fix-process-env";
|
|
9
14
|
declare function tweenAxis(target: Axis, prev: Axis, next: Axis, p: number): void;
|
|
10
15
|
declare function calcRelativeOffsetAxis(parent: Axis, child: Axis): {
|
|
11
16
|
min: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/motion/features/layout/utils.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,UAAU,YAAY;IACpB,WAAW,EAAE,MAAM,SAAS,GAAG,MAAM,CAAC;CACvC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/motion/features/layout/utils.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,UAAU,YAAY;IACpB,WAAW,EAAE,MAAM,SAAS,GAAG,MAAM,CAAC;CACvC;AAED;;;EAGE;AACF,OAAO,gCAAgC,CAAC;AAGxC,iBAAS,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,QAGjE;AACD,iBAAS,sBAAsB,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI;;;EAKxD;AACD,iBAAS,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;;;;;;;;;EAK9D;AACD,iBAAS,uBAAuB,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,WAItE;AAED,QAAA,MAAM,aAAa;YACT,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,eAAP,CAAC,KAAK,CAAC;CAGtD,CAAC;AAEF,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,SAAS,EACT,aAAa,GACd,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.1.11,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import "../../../utils/fix-process-env";
|
|
6
6
|
import { mix } from "popmotion";
|
|
7
7
|
function tweenAxis(target, prev, next, p) {
|
|
8
8
|
target.min = mix(prev.min, next.min, p);
|
|
@@ -4,6 +4,11 @@ Copyright (c) 2018 Framer B.V.
|
|
|
4
4
|
*/
|
|
5
5
|
import type { Axis } from '../../../types/geometry';
|
|
6
6
|
import type { LayoutState, TargetProjection } from '../../utils/state';
|
|
7
|
+
/**
|
|
8
|
+
based on framer-motion@4.0.3,
|
|
9
|
+
Copyright (c) 2018 Framer B.V.
|
|
10
|
+
*/
|
|
11
|
+
import '../../../utils/fix-process-env.js';
|
|
7
12
|
declare function pixelsToPercent(pixels: number, axis: Axis): number;
|
|
8
13
|
/**
|
|
9
14
|
* We always correct borderRadius as a percentage rather than pixels to reduce paints.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-scale-correctors.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/projection/default-scale-correctors.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"default-scale-correctors.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/projection/default-scale-correctors.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEvE;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAK3C,iBAAS,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,UAElD;AACD;;;;;;GAMG;AACH,iBAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,gBAAgB,UAmB5G;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,WAAW,mBAkDnF;AAID,QAAA,IAAI,sBAAsB;;;;;;;;;;;;;;;;;;;;;CA+BzB,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env.js';
|
|
6
6
|
import { complex, px } from 'style-value-types';
|
|
7
7
|
import { mix } from 'popmotion';
|
|
8
8
|
import { cssVariableRegex } from '../utils/css-variables-conversion.js';
|
|
@@ -12,6 +12,11 @@ declare enum BoundingBoxDimension {
|
|
|
12
12
|
top = "top",
|
|
13
13
|
bottom = "bottom"
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
based on framer-motion@4.0.3,
|
|
17
|
+
Copyright (c) 2018 Framer B.V.
|
|
18
|
+
*/
|
|
19
|
+
import '../../../utils/fix-process-env.js';
|
|
15
20
|
/**
|
|
16
21
|
* Convert value types for x/y/width/height/top/left/bottom/right
|
|
17
22
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-conversion.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/utils/unit-conversion.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAc,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,aAAK,oBAAoB;IACxB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,MAAM,WAAW;CACjB;
|
|
1
|
+
{"version":3,"file":"unit-conversion.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/utils/unit-conversion.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAc,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,aAAK,oBAAoB;IACxB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,MAAM,WAAW;CACjB;AAED;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAwN3C;;;;;;GAMG;AACH,iBAAS,cAAc,CACtB,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,mBAAmB,EAC3B,MAAM,CAAC,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,MAAM,GACpB;IACF,MAAM,EAAE,mBAAmB,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB,CAIA;AAED,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -11,7 +11,7 @@ var BoundingBoxDimension;
|
|
|
11
11
|
based on framer-motion@4.0.3,
|
|
12
12
|
Copyright (c) 2018 Framer B.V.
|
|
13
13
|
*/
|
|
14
|
-
import
|
|
14
|
+
import '../../../utils/fix-process-env.js';
|
|
15
15
|
import { number, px } from 'style-value-types';
|
|
16
16
|
import { isKeyframesTarget } from '../../../animation/utils/is-keyframes-target.js';
|
|
17
17
|
// import { invariant } from '../../../utils/errors.js';
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
based on framer-motion@4.0.3,
|
|
7
|
+
Copyright (c) 2018 Framer B.V.
|
|
8
|
+
*/
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
5
10
|
declare function getAnimatableNone(key: string, value: string): any;
|
|
6
11
|
export { getAnimatableNone };
|
|
7
12
|
//# sourceMappingURL=animatable-none.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animatable-none.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/animatable-none.ts"],"names":[],"mappings":"AAAA;;;EAGE;
|
|
1
|
+
{"version":3,"file":"animatable-none.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/animatable-none.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAI3C,iBAAS,iBAAiB,CAAC,GAAG,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,OAOlD;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
10
10
|
import { filter, complex } from 'style-value-types';
|
|
11
11
|
import { getDefaultValueType } from './defaults.js';
|
|
12
12
|
function getAnimatableNone(key, value) {
|
|
@@ -3,6 +3,11 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { ValueTypeMap } from './types';
|
|
6
|
+
/**
|
|
7
|
+
based on framer-motion@4.0.3,
|
|
8
|
+
Copyright (c) 2018 Framer B.V.
|
|
9
|
+
*/
|
|
10
|
+
import '../../../utils/fix-process-env.js';
|
|
6
11
|
/**
|
|
7
12
|
* A map of default value types for common values
|
|
8
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/defaults.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/defaults.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAI3C;;GAEG;AACH,QAAA,IAAI,iBAAiB,EAef,YAAY,CAAC;AACnB;;GAEG;AACH,QAAA,IAAI,mBAAmB,GAAI,KAAK,MAAM,0CAA2B,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env.js';
|
|
6
6
|
import { color, filter } from 'style-value-types';
|
|
7
7
|
import { numberValueTypes } from './number.js';
|
|
8
8
|
/**
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
based on framer-motion@4.0.3,
|
|
7
|
+
Copyright (c) 2018 Framer B.V.
|
|
8
|
+
*/
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
5
10
|
import type { CustomValueType } from '../../../types.js';
|
|
6
11
|
/**
|
|
7
12
|
* A list of value types commonly used for dimensions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/dimensions.ts"],"names":[],"mappings":"AAAA;;;EAGE;
|
|
1
|
+
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/dimensions.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAI3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,QAAA,IAAI,mBAAmB,yCAA+C,CAAC;AACvE;;GAEG;AACH,QAAA,IAAI,sBAAsB,GAAa,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe,GAAG,IAAI,sDAEjF,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
10
10
|
import { number, px, percent, degrees, vw, vh } from 'style-value-types';
|
|
11
11
|
import { testValueType } from './test.js';
|
|
12
12
|
import { auto } from './type-auto.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/find.ts"],"names":[],"mappings":"AAAA;;;EAGE;
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/find.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAEF;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAS3C;;GAEG;AACH,QAAA,IAAI,aAAa,GAAI,GAAG,GAAG,KAEvB,OAAO,mBAAmB,EAAE,SAAS,GACrC;IACA,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC;IAC1B,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,CAAC,MAAM,GAAG,OAAO,mBAAmB,EAAE,IAAI,GAAG,OAAO,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC;IACvG,iBAAiB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,mBAAmB,EAAE,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC;IACzG,iBAAiB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;CACxC,GACD,SAAS,CAAC;AAEd,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import '../../../utils/fix-process-env.js';
|
|
10
10
|
import { color, complex } from 'style-value-types';
|
|
11
11
|
import { dimensionValueTypes } from './dimensions.js';
|
|
12
12
|
import { testValueType } from './test.js';
|
|
@@ -3,6 +3,11 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { ValueTypeMap } from "./types";
|
|
6
|
+
/**
|
|
7
|
+
based on framer-motion@4.0.3,
|
|
8
|
+
Copyright (c) 2018 Framer B.V.
|
|
9
|
+
*/
|
|
10
|
+
import '../../../utils/fix-process-env.js';
|
|
6
11
|
declare var numberValueTypes: ValueTypeMap;
|
|
7
12
|
export { numberValueTypes };
|
|
8
13
|
//# sourceMappingURL=number.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/number.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/number.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C;;;EAGE;AACF,OAAO,mCAAmC,CAAC;AAI3C,QAAA,IAAI,gBAAgB,EAiEf,YAAY,CAAC;AAElB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env.js';
|
|
6
6
|
import { px, degrees, scale, alpha, progressPercentage } from 'style-value-types';
|
|
7
7
|
import { int } from './type-int.js';
|
|
8
8
|
var numberValueTypes = {
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
based on framer-motion@4.0.3,
|
|
7
|
+
Copyright (c) 2018 Framer B.V.
|
|
8
|
+
*/
|
|
9
|
+
import '../../../utils/fix-process-env';
|
|
5
10
|
declare var int: {
|
|
6
11
|
transform: (x: number) => number;
|
|
7
12
|
test: (v: any) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-int.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/type-int.ts"],"names":[],"mappings":"AAAA;;;EAGE;
|
|
1
|
+
{"version":3,"file":"type-int.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/dom/value-types/type-int.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAEF;;;EAGE;AACF,OAAO,gCAAgC,CAAC;AAGxC,QAAA,IAAI,GAAG,EAA0E;IAChF,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC;IAC1B,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,mBAAmB,EAAE,WAAW,CAAC,GAAG,SAAS,CAAC;IAChG,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import '../../../utils/fix-process-env';
|
|
10
10
|
import { number } from 'style-value-types';
|
|
11
11
|
var int = Object.assign(Object.assign({}, number), { transform: Math.round });
|
|
12
12
|
export { int };
|
|
@@ -3,6 +3,11 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { ResolvedValues } from "../../types";
|
|
6
|
+
/**
|
|
7
|
+
based on framer-motion@4.0.3,
|
|
8
|
+
Copyright (c) 2018 Framer B.V.
|
|
9
|
+
*/
|
|
10
|
+
import '../../../utils/fix-process-env';
|
|
6
11
|
/**
|
|
7
12
|
* Build SVG path properties. Uses the path's measured length to convert
|
|
8
13
|
* our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/svg/utils/path.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/svg/utils/path.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD;;;EAGE;AACF,OAAO,gCAAgC,CAAC;AAexC;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,QAazI;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env';
|
|
6
6
|
import { px } from 'style-value-types';
|
|
7
7
|
// Convert a progress 0-1 to a pixels value based on the provided length
|
|
8
8
|
var progressToPixels = function (progress, length) {
|
|
@@ -3,6 +3,11 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { SVGDimensions } from "../types";
|
|
6
|
+
/**
|
|
7
|
+
based on framer-motion@4.0.3,
|
|
8
|
+
Copyright (c) 2018 Framer B.V.
|
|
9
|
+
*/
|
|
10
|
+
import '../../../utils/fix-process-env';
|
|
6
11
|
/**
|
|
7
12
|
* The SVG transform origin defaults are different to CSS and is less intuitive,
|
|
8
13
|
* so we use the measured dimensions of the SVG to reconcile these.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-origin.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/svg/utils/transform-origin.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"transform-origin.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/render/svg/utils/transform-origin.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C;;;EAGE;AACF,OAAO,gCAAgC,CAAC;AAQxC;;;GAGG;AACH,iBAAS,sBAAsB,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,UAI5G;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../../../utils/fix-process-env';
|
|
6
6
|
import { px } from 'style-value-types';
|
|
7
7
|
function calcOrigin(origin, offset, size) {
|
|
8
8
|
return typeof origin === "string"
|
|
@@ -4,6 +4,11 @@ Copyright (c) 2018 Framer B.V.
|
|
|
4
4
|
*/
|
|
5
5
|
import type { Axis, AxisBox2D, BoxDelta, Point2D } from '../../types/geometry';
|
|
6
6
|
import type { ResolvedValues, VisualElement } from '../../render/types';
|
|
7
|
+
/**
|
|
8
|
+
based on framer-motion@4.1.15,
|
|
9
|
+
Copyright (c) 2018 Framer B.V.
|
|
10
|
+
*/
|
|
11
|
+
import '../fix-process-env.js';
|
|
7
12
|
/**
|
|
8
13
|
* Reset an axis to the provided origin box.
|
|
9
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta-apply.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/utils/geometry/delta-apply.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"delta-apply.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/utils/geometry/delta-apply.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExE;;;EAGE;AACF,OAAO,uBAAuB,CAAC;AAI/B;;;;GAIG;AACH,iBAAS,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,QAG9C;AACD;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,QAGrD;AACD;;GAEG;AACH,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,UAIpE;AACD;;GAEG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,UAK/G;AACD;;GAEG;AACH,iBAAS,cAAc,CACtB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,WAAW,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,QAUjB;AACD;;GAEG;AACH,iBAAS,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,QAAQ,QAGxD;AACD;;;;GAIG;AACH,iBAAS,mBAAmB,CAC3B,KAAK,EAAE,IAAI,EACX,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,cAAc,EAC1B,CAAC,GAAG,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,QAUpC;AAMD;;GAEG;AACH,iBAAS,kBAAkB,CAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,QAG1F;AACD;;GAEG;AACH,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,UAOhH;AACD;;GAEG;AACH,iBAAS,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,QAa1G;AACD;;;GAGG;AACH,iBAAS,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,QAGzG;AACD;;;GAGG;AACH,iBAAS,mBAAmB,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,QAGtE;AACD;;;;;GAKG;AACH,iBAAS,eAAe,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,QAoBrF;AAED,OAAO,EACN,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,UAAU,GACV,CAAC"}
|
|
@@ -5,6 +5,11 @@ Copyright (c) 2018 Framer B.V.
|
|
|
5
5
|
import type { Axis, AxisDelta, BoxDelta, AxisBox2D } from "../../types/geometry";
|
|
6
6
|
import type { ResolvedValues } from "../../render/types";
|
|
7
7
|
import type { TargetProjection } from "../../render/utils/state";
|
|
8
|
+
/**
|
|
9
|
+
based on framer-motion@4.1.15,
|
|
10
|
+
Copyright (c) 2018 Framer B.V.
|
|
11
|
+
*/
|
|
12
|
+
import '../fix-process-env';
|
|
8
13
|
/**
|
|
9
14
|
* Returns true if the provided value is within maxDistance of the provided target
|
|
10
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delta-calc.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/utils/geometry/delta-calc.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"delta-calc.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/utils/geometry/delta-calc.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE;;;EAGE;AACF,OAAO,oBAAoB,CAAC;AAI5B;;GAEG;AACH,iBAAS,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,WAInE;AAID;;;GAGG;AACH,iBAAS,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,UAW7C;AACD;;;;;GAKG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,QAWrF;AACD;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,QAGpG;AAQD,iBAAS,gBAAgB,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,QAGnE;AACD,iBAAS,eAAe,CAAC,UAAU,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,QAGxF;AAED,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.1.15,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../fix-process-env';
|
|
6
6
|
import { mix, distance, clamp, progress } from 'popmotion';
|
|
7
7
|
var clampProgress = function (v) { return clamp(0, 1, v); };
|
|
8
8
|
/**
|
|
@@ -26,6 +26,11 @@ export interface TransformOptions<T> {
|
|
|
26
26
|
*/
|
|
27
27
|
mixer?: (from: T, to: T) => (v: number) => any;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
based on framer-motion@4.0.3,
|
|
31
|
+
Copyright (c) 2018 Framer B.V.
|
|
32
|
+
*/
|
|
33
|
+
import './fix-process-env';
|
|
29
34
|
/**
|
|
30
35
|
* Transforms numbers into other values by mapping them from an input range to an output range.
|
|
31
36
|
* Returns the type of the input provided.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/utils/transform.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,KAAK,GAAG,CAAC;CAC/C;
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/utils/transform.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAGF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,KAAK,GAAG,CAAC;CAC/C;AAED;;;EAGE;AACF,OAAO,mBAAmB,CAAC;AAO3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACpH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,iBAAS,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,CAAC,CAAC;AAYxH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/utils/transform.js
CHANGED
|
@@ -6,7 +6,7 @@ Copyright (c) 2018 Framer B.V.
|
|
|
6
6
|
based on framer-motion@4.0.3,
|
|
7
7
|
Copyright (c) 2018 Framer B.V.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import './fix-process-env';
|
|
10
10
|
import { interpolate } from 'popmotion';
|
|
11
11
|
var isCustomValueType = (v) => typeof v === 'object' && v.mix;
|
|
12
12
|
var getMixer = (v) => (isCustomValueType(v) ? v.mix : undefined);
|
package/dist/value/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/index.ts"],"names":[],"mappings":"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"}
|
package/dist/value/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.0.3,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../utils/fix-process-env.js';
|
|
6
6
|
import sync, { getFrameData } from 'framesync';
|
|
7
7
|
import { velocityPerSecond } from 'popmotion';
|
|
8
8
|
import { SubscriptionManager } from '../utils/subscription-manager.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import type { ScrollMotionValues } from './utils';
|
|
5
|
+
import type { ScrollMotionValues } from './utils.js';
|
|
6
6
|
export declare const useElementScroll: (ref: {
|
|
7
7
|
current: HTMLElement | null;
|
|
8
8
|
}) => ScrollMotionValues;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-element-scroll.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/scroll/use-element-scroll.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-element-scroll.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/scroll/use-element-scroll.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AA2BrD,eAAO,MAAM,gBAAgB,GAAI,KAAK;IAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,KA4BnD,kBACjB,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
based on framer-motion@4.1.16,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import { createScrollMotionValues, createScrollUpdater } from './utils';
|
|
6
|
-
import { addDomEvent } from '../../events/use-dom-event';
|
|
5
|
+
import { createScrollMotionValues, createScrollUpdater } from './utils.js';
|
|
6
|
+
import { addDomEvent } from '../../events/use-dom-event.js';
|
|
7
7
|
const getElementScrollOffsets = (element) => () => {
|
|
8
8
|
return {
|
|
9
9
|
xOffset: element.scrollLeft,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-viewport-scroll.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/scroll/use-viewport-scroll.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-viewport-scroll.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/scroll/use-viewport-scroll.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAyCrD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,IAYE,kBAAkB,CACpD"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
based on framer-motion@4.1.16,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import { createScrollMotionValues, createScrollUpdater, } from "./utils";
|
|
6
|
-
import { addDomEvent } from "../../events/use-dom-event";
|
|
5
|
+
import { createScrollMotionValues, createScrollUpdater, } from "./utils.js";
|
|
6
|
+
import { addDomEvent } from "../../events/use-dom-event.js";
|
|
7
7
|
import { tick } from "svelte";
|
|
8
8
|
let viewportScrollValues;
|
|
9
9
|
function getViewportScrollOffsets() {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import type { MotionValue } from '.';
|
|
5
|
+
import type { MotionValue } from './index.js';
|
|
6
6
|
export declare const useCombineMotionValues: <R>(values: (MotionValue | (() => R))[], combineValues: () => R) => MotionValue<R> & {
|
|
7
7
|
reset: (values: MotionValue[], combineValues: () => R) => void;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-combine-values.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-combine-values.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-combine-values.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-combine-values.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAS9C,eAAO,MAAM,sBAAsB,GAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,eAAe,MAAM,CAAC;WAiBpE,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,KAAK,IAAI;CAqBvF,CAAC"}
|
|
@@ -3,7 +3,7 @@ based on framer-motion@4.0.3,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import sync from 'framesync';
|
|
6
|
-
import { motionValue } from '.';
|
|
6
|
+
import { motionValue } from './index.js';
|
|
7
7
|
export const useCombineMotionValues = (values, combineValues) => {
|
|
8
8
|
let subscriptions = [];
|
|
9
9
|
let vals = values;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-motion-template.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-motion-template.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-motion-template.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-motion-template.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,iBAAiB,GAAI,WAAW,oBAAoB,EAAE,GAAG,QAAQ,WAAW,EAAE,KAwBvE,WAAW,CAAC,MAAM,CAAC,GAAG;IAAE,KAAK,EAAE,CAAC,SAAS,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;CACrH,CAAA"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import { MotionValue } from ".";
|
|
6
|
-
import { useCombineMotionValues } from "./use-combine-values";
|
|
5
|
+
import { MotionValue } from "./index.js";
|
|
6
|
+
import { useCombineMotionValues } from "./use-combine-values.js";
|
|
7
7
|
/**
|
|
8
8
|
* Combine multiple motion values into a new one using a string template literal.
|
|
9
9
|
*
|
|
@@ -3,7 +3,12 @@ based on framer-motion@4.1.17,
|
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
5
|
import type { SpringOptions } from 'popmotion';
|
|
6
|
-
import type { MotionValue } from '.';
|
|
6
|
+
import type { MotionValue } from './index.js';
|
|
7
|
+
/**
|
|
8
|
+
based on framer-motion@4.1.16,
|
|
9
|
+
Copyright (c) 2018 Framer B.V.
|
|
10
|
+
*/
|
|
11
|
+
import '../utils/fix-process-env.js';
|
|
7
12
|
/**
|
|
8
13
|
* Creates a `MotionValue` that, when `set`, will use a spring animation to animate to its new state.
|
|
9
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-spring.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-spring.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-spring.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-spring.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;EAGE;AAEF,OAAO,6BAA6B,CAAC;AAQrC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,WAAW,GAAG,MAAM,EAAE,SAAQ,aAAkB,EAAE,kBAAgB;WAM3F,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI;CAgC/C,CAAC"}
|
package/dist/value/use-spring.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
based on framer-motion@4.1.16,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import '../utils/fix-process-env.js';
|
|
6
6
|
import { getContext } from 'svelte';
|
|
7
|
-
import { MotionConfigContext } from '../context/MotionConfigContext';
|
|
7
|
+
import { MotionConfigContext } from '../context/MotionConfigContext.js';
|
|
8
8
|
import { get } from 'svelte/store';
|
|
9
|
-
import { useMotionValue } from './use-motion-value';
|
|
10
|
-
import { isMotionValue } from './utils/is-motion-value';
|
|
9
|
+
import { useMotionValue } from './use-motion-value.js';
|
|
10
|
+
import { isMotionValue } from './utils/is-motion-value.js';
|
|
11
11
|
import { animate } from 'popmotion';
|
|
12
12
|
/**
|
|
13
13
|
* Creates a `MotionValue` that, when `set`, will use a spring animation to animate to its new state.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { TransformOptions } from '../utils/transform';
|
|
1
|
+
import type { TransformOptions } from '../utils/transform.js';
|
|
2
2
|
/**
|
|
3
3
|
based on framer-motion@4.1.17,
|
|
4
4
|
Copyright (c) 2018 Framer B.V.
|
|
5
5
|
*/
|
|
6
|
-
import type { MotionValue } from '.';
|
|
6
|
+
import type { MotionValue } from './index.js';
|
|
7
7
|
export type InputRange = number[];
|
|
8
8
|
type SingleTransformer<I, O> = (input: I) => O;
|
|
9
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-transform.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-transform.d.ts","sourceRoot":"","sources":["../../src/lib/motion-start/value/use-transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D;;;GAGG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAK9C,MAAM,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC;AAClC,KAAK,iBAAiB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAU/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,EAC1B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,CAAC,EAAE,EAChB,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAC3B,WAAW,CAAC,CAAC,CAAC,GAAG;IACnB,KAAK,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CACrH,CAAC;AACF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EACrB,WAAW,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,GAClC,WAAW,CAAC,CAAC,CAAC,GAAG;IAAE,KAAK,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAA;CAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { transform } from '../utils/transform';
|
|
2
|
-
import { useCombineMotionValues } from './use-combine-values';
|
|
1
|
+
import { transform } from '../utils/transform.js';
|
|
2
|
+
import { useCombineMotionValues } from './use-combine-values.js';
|
|
3
3
|
/**
|
|
4
4
|
* Pass an array of `MotionValue`s and a function to combine them. In this example, `z` will be the `x` multiplied by `y`.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-motion-value.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/utils/is-motion-value.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"is-motion-value.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/utils/is-motion-value.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;EAGE;AACF,QAAA,IAAI,aAAa,GAAa,OAAO,GAAG,KAAG,KAAK,IAAI,WAEnD,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
based on framer-motion@4.1.17,
|
|
3
3
|
Copyright (c) 2018 Framer B.V.
|
|
4
4
|
*/
|
|
5
|
-
import { MotionValue } from
|
|
6
|
-
import type { CustomValueType } from
|
|
5
|
+
import type { MotionValue } from '../index.js';
|
|
6
|
+
import type { CustomValueType } from '../../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
|
|
9
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-motion-value.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/utils/resolve-motion-value.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"resolve-motion-value.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/value/utils/resolve-motion-value.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAStD;;;;;;GAMG;AACH,iBAAS,kBAAkB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,eAAe,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAKpG;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motion-start",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Svelte animation library inspired by the React library framer-motion.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"test:types": "vitest --typecheck.only",
|
|
72
72
|
"test:ui": "vitest --ui",
|
|
73
73
|
"test:types:ui": "vitest --ui",
|
|
74
|
-
"release": "bun --bun run build &&
|
|
74
|
+
"release": "bun --bun run build && npm publish --access public && npx changeset tag"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"framesync": "^6.1.2",
|
|
@@ -79,32 +79,33 @@
|
|
|
79
79
|
"style-value-types": "5.1.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
+
"@biomejs/biome": "^2.0.0",
|
|
82
83
|
"@changesets/cli": "^2.27.10",
|
|
83
|
-
"@biomejs/biome": "^1.9.4",
|
|
84
84
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
85
|
+
"@lucide/svelte": "^0.544.0",
|
|
86
|
+
"@sveltejs/adapter-auto": "^6.0.0",
|
|
87
|
+
"@sveltejs/kit": "^2.0.0",
|
|
85
88
|
"@sveltejs/package": "^2.3.11",
|
|
86
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
87
|
-
"
|
|
89
|
+
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
|
90
|
+
"@tailwindcss/typography": "^0.5.15",
|
|
91
|
+
"@tailwindcss/vite": "^4.0.0",
|
|
88
92
|
"@tsconfig/svelte": "^5.0.4",
|
|
89
93
|
"@types/node": "^20.17.9",
|
|
90
94
|
"@vitest/ui": "latest",
|
|
91
|
-
"
|
|
92
|
-
"publint": "^0.2.12",
|
|
93
|
-
"typescript": "^5.7.2",
|
|
94
|
-
"vite": "5.4.11",
|
|
95
|
-
"vitest": "latest",
|
|
96
|
-
"@sveltejs/adapter-auto": "^6.0.0",
|
|
97
|
-
"@sveltejs/kit": "2.7.1",
|
|
98
|
-
"@tailwindcss/typography": "^0.5.15",
|
|
99
|
-
"@tailwindcss/vite": "^4.0.0-alpha.28",
|
|
100
|
-
"tailwindcss": "^4.0.0-alpha.28",
|
|
101
|
-
"bits-ui": "^0.21.16",
|
|
95
|
+
"bits-ui": "^2.11.0",
|
|
102
96
|
"class-variance-authority": "^0.7.1",
|
|
103
97
|
"clsx": "^2.1.1",
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
98
|
+
"csstype": "^3.1.3",
|
|
99
|
+
"lucide-svelte": "^0.542.0",
|
|
100
|
+
"mode-watcher": "^1.1.0",
|
|
101
|
+
"publint": "^0.3.0",
|
|
102
|
+
"svelte-check": "^4.1.1",
|
|
103
|
+
"tailwind-merge": "^3.0.0",
|
|
104
|
+
"tailwind-variants": "^3.1.1",
|
|
105
|
+
"tailwindcss": "^4.0.0",
|
|
106
|
+
"typescript": "^5.7.2",
|
|
107
|
+
"vite": "^7.0.0",
|
|
108
|
+
"vitest": "latest"
|
|
108
109
|
},
|
|
109
110
|
"peerDependencies": {
|
|
110
111
|
"svelte": "^5.33.16"
|
|
@@ -113,7 +114,6 @@
|
|
|
113
114
|
"bun": ">=1.0.0",
|
|
114
115
|
"node": ">=20"
|
|
115
116
|
},
|
|
116
|
-
"sideEffects": false,
|
|
117
117
|
"keywords": [
|
|
118
118
|
"svelte animation",
|
|
119
119
|
"svelte",
|