motion 12.40.0 → 12.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/react.js +35 -11
- package/dist/es/react.mjs +16 -1
- package/dist/motion.dev.js +1036 -471
- package/dist/motion.js +1 -1
- package/dist/react.d.ts +6 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -131,7 +131,7 @@ Motion drives the animations on the Cursor homepage, and is working with Cursor
|
|
|
131
131
|
|
|
132
132
|
### Silver
|
|
133
133
|
|
|
134
|
-
<a href="https://liveblocks.io"><img alt="Liveblocks" src="https://github.com/user-attachments/assets/28eddbe5-1617-4e74-969d-2eb6fcd481af" width="150px" height="100px"></a> <a href="https://www.frontend.fyi/?utm_source=motion"><img alt="Frontend.fyi" src="https://github.com/user-attachments/assets/f16e3eb9-f0bd-4ad1-8049-f079a3d65c69" width="150px" height="100px"></a> <a href="https://firecrawl.dev"><img alt="Firecrawl" src="https://github.com/user-attachments/assets/2c44e7f4-5c2a-4714-9050-1570538665ff" width="150px" height="100px"></a> <a href="https://
|
|
134
|
+
<a href="https://liveblocks.io"><img alt="Liveblocks" src="https://github.com/user-attachments/assets/28eddbe5-1617-4e74-969d-2eb6fcd481af" width="150px" height="100px"></a> <a href="https://www.frontend.fyi/?utm_source=motion"><img alt="Frontend.fyi" src="https://github.com/user-attachments/assets/f16e3eb9-f0bd-4ad1-8049-f079a3d65c69" width="150px" height="100px"></a> <a href="https://firecrawl.dev"><img alt="Firecrawl" src="https://github.com/user-attachments/assets/2c44e7f4-5c2a-4714-9050-1570538665ff" width="150px" height="100px"></a> <a href="https://bolt.new"><img alt="Bolt.new" src="https://github.com/user-attachments/assets/7932d4b2-bb6c-422e-82b9-6ad78a7e3090" width="150px" height="100px"></a>
|
|
135
135
|
|
|
136
136
|
### Personal
|
|
137
137
|
|
package/dist/cjs/react.js
CHANGED
|
@@ -2,21 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var fm = require('framer-motion');
|
|
6
6
|
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
7
23
|
|
|
24
|
+
var fm__namespace = /*#__PURE__*/_interopNamespaceDefault(fm);
|
|
8
25
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
// Re-export everything from framer-motion.
|
|
27
|
+
//
|
|
28
|
+
// `motion` and `m` are aliased through local bindings so the module has
|
|
29
|
+
// explicit named exports for IDE auto-import (see #3432). The previous
|
|
30
|
+
// `export { motion, m } from "framer-motion"` line — sitting alongside
|
|
31
|
+
// `export * from "framer-motion"` — was a duplicate-source re-export pattern
|
|
32
|
+
// that caused Next.js Turbopack to OOM during module-graph analysis (#3741).
|
|
33
|
+
// Local declarations shadow the wildcard re-export per the ES spec, so
|
|
34
|
+
// `motion` and `m` come from the explicit bindings below and the rest from
|
|
35
|
+
// `export *`.
|
|
36
|
+
const motion = fm__namespace.motion;
|
|
37
|
+
const m = fm__namespace.m;
|
|
38
|
+
|
|
39
|
+
exports.m = m;
|
|
40
|
+
exports.motion = motion;
|
|
41
|
+
Object.keys(fm).forEach(function (k) {
|
|
18
42
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
19
43
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
44
|
+
get: function () { return fm[k]; }
|
|
21
45
|
});
|
|
22
46
|
});
|
package/dist/es/react.mjs
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
import * as fm from 'framer-motion';
|
|
1
2
|
export * from 'framer-motion';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
// Re-export everything from framer-motion.
|
|
5
|
+
//
|
|
6
|
+
// `motion` and `m` are aliased through local bindings so the module has
|
|
7
|
+
// explicit named exports for IDE auto-import (see #3432). The previous
|
|
8
|
+
// `export { motion, m } from "framer-motion"` line — sitting alongside
|
|
9
|
+
// `export * from "framer-motion"` — was a duplicate-source re-export pattern
|
|
10
|
+
// that caused Next.js Turbopack to OOM during module-graph analysis (#3741).
|
|
11
|
+
// Local declarations shadow the wildcard re-export per the ES spec, so
|
|
12
|
+
// `motion` and `m` come from the explicit bindings below and the rest from
|
|
13
|
+
// `export *`.
|
|
14
|
+
const motion = fm.motion;
|
|
15
|
+
const m = fm.m;
|
|
16
|
+
|
|
17
|
+
export { m, motion };
|