motion-start 0.1.14 → 0.1.17
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/motion/MotionSSR.svelte.d.ts +3 -3
- package/dist/render/dom/Motion-Proxy.svelte +25 -18
- package/dist/render/dom/Motion-Proxy.svelte.d.ts +1 -1
- package/dist/render/dom/Motion-Proxy.svelte.d.ts.map +1 -1
- package/dist/render/dom/motion-minimal.d.ts +179 -178
- package/dist/render/dom/motion-minimal.d.ts.map +1 -1
- package/dist/render/dom/motion-proxy.d.ts +7 -7
- package/dist/render/dom/motion-proxy.d.ts.map +1 -1
- package/dist/render/dom/motion-proxy.js +23 -7
- package/dist/render/dom/motion.d.ts +362 -361
- package/dist/render/dom/motion.d.ts.map +1 -1
- package/dist/render/html/UseHTMLProps.svelte.d.ts +3 -3
- package/dist/render/html/visual-element.d.ts +8 -1
- package/dist/render/html/visual-element.d.ts.map +1 -1
- package/dist/render/svg/UseSVGProps.svelte.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion-minimal.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/render/dom/motion-minimal.ts"],"names":[],"mappings":"AAAA;;;EAGE;AAUF;;GAEG;AACH,QAAA,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAS+9nF,CAAC;kBAAqB,CAAC;iBAAyC,CAAC;yBAA8D,CAAC;uBAA0B,CAAC;oBAAwB,CAAC;;kBAA0G,CAAC;;;;;;;;;;;;;;;;;;;;;;CATzsoF,CAAC;AAQ3D,OAAO,EAAE,CAAC,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 type { MotionComponentConfig } from
|
|
6
|
-
import type { MotionProps } from
|
|
5
|
+
import type { MotionComponentConfig } from "../../motion/index.js";
|
|
6
|
+
import type { MotionProps } from "../../motion/types.js";
|
|
7
7
|
/**
|
|
8
8
|
* I'd rather the return type of `custom` to be implicit but this throws
|
|
9
9
|
* incorrect relative paths in the exported types and API Extractor throws
|
|
@@ -34,14 +34,14 @@ export type CreateConfig = <Instance, RenderState, Props extends Record<string,
|
|
|
34
34
|
based on framer-motion@4.0.3,
|
|
35
35
|
Copyright (c) 2018 Framer B.V.
|
|
36
36
|
*/
|
|
37
|
-
import type { Component, Snippet } from
|
|
38
|
-
import type { SvelteHTMLElements } from
|
|
39
|
-
import { loadFeatures } from
|
|
37
|
+
import type { Component, Snippet } from "svelte";
|
|
38
|
+
import type { SvelteHTMLElements } from "svelte/elements";
|
|
39
|
+
import { loadFeatures } from "../../motion/features/definitions.js";
|
|
40
40
|
type MotionComponent<Element extends keyof SvelteHTMLElements> = Component<MotionProps & {
|
|
41
41
|
children?: Snippet;
|
|
42
42
|
class?: string;
|
|
43
|
-
el?: SvelteHTMLElements[Element][
|
|
44
|
-
} & Omit<SvelteHTMLElements[Element],
|
|
43
|
+
el?: SvelteHTMLElements[Element]["this"];
|
|
44
|
+
} & Omit<SvelteHTMLElements[Element], "style">>;
|
|
45
45
|
/**
|
|
46
46
|
* Convert any React component into a `motion` component. The provided component
|
|
47
47
|
* **must** use `React.forwardRef` to the underlying DOM component you want to animate.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion-proxy.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/render/dom/motion-proxy.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,SAAS,
|
|
1
|
+
{"version":3,"file":"motion-proxy.d.ts","sourceRoot":"","sources":["../../../src/lib/motion-start/render/dom/motion-proxy.ts"],"names":[],"mappings":"AAAA;;;EAGE;AACF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,O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AkB,GAAG,eAAe,CAAC,CAAC,CAAC;CACpD,CAuDA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isSVGComponent } from
|
|
2
|
-
import MotionProxy from
|
|
3
|
-
import { loadFeatures } from
|
|
1
|
+
import { isSVGComponent } from "./utils/is-svg-component.js";
|
|
2
|
+
import MotionProxy from "./Motion-Proxy.svelte";
|
|
3
|
+
import { loadFeatures } from "../../motion/features/definitions.js";
|
|
4
4
|
/**
|
|
5
5
|
* Convert any React component into a `motion` component. The provided component
|
|
6
6
|
* **must** use `React.forwardRef` to the underlying DOM component you want to animate.
|
|
@@ -32,8 +32,16 @@ function createMotionProxy(features) {
|
|
|
32
32
|
args[0].props = { ___tag: key, isSVG: type };
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
try {
|
|
36
|
+
Object.assign(args[0], {
|
|
37
|
+
___tag: key,
|
|
38
|
+
isSVG: type,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
args[0].props.___tag = key;
|
|
43
|
+
args[0].props.isSVG = type;
|
|
44
|
+
}
|
|
37
45
|
}
|
|
38
46
|
// @ts-expect-error
|
|
39
47
|
return new target(...args);
|
|
@@ -44,8 +52,16 @@ function createMotionProxy(features) {
|
|
|
44
52
|
args[1] = { ___tag: key, isSVG: type };
|
|
45
53
|
}
|
|
46
54
|
else {
|
|
47
|
-
|
|
48
|
-
|
|
55
|
+
try {
|
|
56
|
+
Object.assign(args[1], {
|
|
57
|
+
___tag: key,
|
|
58
|
+
isSVG: type,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
args[1].___tag = key;
|
|
63
|
+
args[1].isSVG = type;
|
|
64
|
+
}
|
|
49
65
|
}
|
|
50
66
|
// @ts-expect-error
|
|
51
67
|
return target(...args);
|