motion-start 0.1.7 → 0.1.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Animate.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/motion/features/layout/Animate.svelte.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Animate.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/motion-start/motion/features/layout/Animate.svelte.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAwS9D,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AAKD,QAAA,MAAM,OAAO;mBAVmG,aAAa;;;;;kBAUjC,CAAC;AAC3E,KAAK,OAAO,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC;AAC9C,eAAe,OAAO,CAAC"}
|
|
@@ -40,7 +40,10 @@ Copyright (c) 2018 Framer B.V. -->
|
|
|
40
40
|
props: MotionProps,
|
|
41
41
|
context: MotionContextProps,
|
|
42
42
|
presenceContext: PresenceContextProps,
|
|
43
|
-
scrapeMotionValues: {
|
|
43
|
+
scrapeMotionValues: {
|
|
44
|
+
(props: MotionProps): { [key: string]: MotionValue | string | number };
|
|
45
|
+
(arg0: any): any;
|
|
46
|
+
},
|
|
44
47
|
) {
|
|
45
48
|
const values: any = {};
|
|
46
49
|
const blockInitialAnimation = presenceContext?.initial === false;
|
|
@@ -83,7 +86,7 @@ Copyright (c) 2018 Framer B.V. -->
|
|
|
83
86
|
|
|
84
87
|
const { transitionEnd, transition, ...target } = resolved;
|
|
85
88
|
// @ts-expect-error
|
|
86
|
-
for (const key in target) values[key] = target[key]
|
|
89
|
+
for (const key in target) values[key] = target[key]; // @ts-expect-error
|
|
87
90
|
for (const key in transitionEnd) values[key] = transitionEnd[key];
|
|
88
91
|
});
|
|
89
92
|
}
|
|
@@ -127,10 +130,20 @@ Copyright (c) 2018 Framer B.V. -->
|
|
|
127
130
|
const presenceContext =
|
|
128
131
|
getContext<Writable<PresenceContextProps>>(PresenceContext) ||
|
|
129
132
|
PresenceContext(isCustom);
|
|
130
|
-
let state = makeState(
|
|
133
|
+
let state = makeState(
|
|
134
|
+
config as UseVisualStateConfig<Instance, RenderState>,
|
|
135
|
+
props,
|
|
136
|
+
get(context),
|
|
137
|
+
get(presenceContext),
|
|
138
|
+
);
|
|
131
139
|
const ms = makeState;
|
|
132
140
|
$: if (isStatic) {
|
|
133
|
-
state = ms(
|
|
141
|
+
state = ms(
|
|
142
|
+
config as UseVisualStateConfig<Instance, RenderState>,
|
|
143
|
+
props,
|
|
144
|
+
$context,
|
|
145
|
+
$presenceContext,
|
|
146
|
+
);
|
|
134
147
|
}
|
|
135
148
|
</script>
|
|
136
149
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UseVisualState.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/motion/utils/UseVisualState.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UseVisualState.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/motion/utils/UseVisualState.svelte.ts"],"names":[],"mappings":"AAiGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAmEtC,cAAM,iBAAiB,CAAC,QAAQ,EAAC,WAAW;IACxC,KAAK;;eA1CE,WAAW;kBACR,OAAO;mBACN,GAAG,GAAG,SAAS;;IA2C1B,MAAM;;;IAGN,KAAK;;;;;IAGL,QAAQ;IACR,OAAO;CACV;AAED,UAAU,qBAAqB;IAC3B,KAAK,QAAQ,EAAC,WAAW,EAAE,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,GAAE;QAAC,QAAQ,CAAC,EAAE,GAAG,CAAA;KAAC,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,UAAU,CAAC,CAAC,CAAA;KAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IACnhB,CAAC,QAAQ,EAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG;QAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QAAC,OAAO,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAAC,QAAQ,CAAC,EAAE,GAAG,CAAA;KAAC,GAAG,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IACpV,YAAY,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,GAAG,EAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;CACrE;AACD,QAAA,MAAM,cAAc,EAAE,qBAAmC,CAAC;AACxC,KAAK,cAAc,CAAC,QAAQ,EAAC,WAAW,IAAI,YAAY,CAAC,OAAO,cAAc,CAAC,QAAQ,EAAC,WAAW,CAAC,CAAC,CAAC;AACxG,eAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motion-start",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Svelte animation library inspired by the React library framer-motion.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"./src/*": {
|
|
30
30
|
"types": "./dist/*.d.ts",
|
|
31
|
+
"svelte": "./dist/*.svelte",
|
|
31
32
|
"default": "./dist/*.js"
|
|
32
33
|
}
|
|
33
34
|
},
|