framer-motion 7.3.4 → 7.3.5
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/cjs/index.js +3 -3
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/es/value/utils/is-motion-value.mjs +1 -1
- package/dist/framer-motion.dev.js +3 -3
- package/dist/framer-motion.js +1 -1
- package/dist/projection.dev.js +3 -3
- package/dist/size-rollup-dom-animation-assets.js +1 -1
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max-assets.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-m.js +1 -1
- package/dist/size-rollup-motion.js +1 -1
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/dist/size-webpack-m.js +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -506,7 +506,7 @@ function isForcedMotionValue(key, { layout, layoutId }) {
|
|
|
506
506
|
(!!scaleCorrectors[key] || key === "opacity")));
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
const isMotionValue = (value) => value ===
|
|
509
|
+
const isMotionValue = (value) => !!(value === null || value === void 0 ? void 0 : value.getVelocity);
|
|
510
510
|
|
|
511
511
|
const translateAlias = {
|
|
512
512
|
x: "translateX",
|
|
@@ -2242,7 +2242,7 @@ class MotionValue {
|
|
|
2242
2242
|
* This will be replaced by the build step with the latest version number.
|
|
2243
2243
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
2244
2244
|
*/
|
|
2245
|
-
this.version = "7.3.
|
|
2245
|
+
this.version = "7.3.5";
|
|
2246
2246
|
/**
|
|
2247
2247
|
* Duration, in milliseconds, since last updating frame.
|
|
2248
2248
|
*
|
|
@@ -4218,7 +4218,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
4218
4218
|
* and warn against mismatches.
|
|
4219
4219
|
*/
|
|
4220
4220
|
if (process.env.NODE_ENV === "development") {
|
|
4221
|
-
warnOnce(nextValue.version === "7.3.
|
|
4221
|
+
warnOnce(nextValue.version === "7.3.5", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.5 may not work as expected.`);
|
|
4222
4222
|
}
|
|
4223
4223
|
}
|
|
4224
4224
|
else if (isMotionValue(prevValue)) {
|
|
@@ -22,7 +22,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
22
22
|
* and warn against mismatches.
|
|
23
23
|
*/
|
|
24
24
|
if (process.env.NODE_ENV === "development") {
|
|
25
|
-
warnOnce(nextValue.version === "7.3.
|
|
25
|
+
warnOnce(nextValue.version === "7.3.5", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.5 may not work as expected.`);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
else if (isMotionValue(prevValue)) {
|
package/dist/es/value/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ class MotionValue {
|
|
|
24
24
|
* This will be replaced by the build step with the latest version number.
|
|
25
25
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
26
26
|
*/
|
|
27
|
-
this.version = "7.3.
|
|
27
|
+
this.version = "7.3.5";
|
|
28
28
|
/**
|
|
29
29
|
* Duration, in milliseconds, since last updating frame.
|
|
30
30
|
*
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
(!!scaleCorrectors[key] || key === "opacity")));
|
|
501
501
|
}
|
|
502
502
|
|
|
503
|
-
const isMotionValue = (value) => value ===
|
|
503
|
+
const isMotionValue = (value) => !!(value === null || value === void 0 ? void 0 : value.getVelocity);
|
|
504
504
|
|
|
505
505
|
const translateAlias = {
|
|
506
506
|
x: "translateX",
|
|
@@ -3410,7 +3410,7 @@
|
|
|
3410
3410
|
* This will be replaced by the build step with the latest version number.
|
|
3411
3411
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
3412
3412
|
*/
|
|
3413
|
-
this.version = "7.3.
|
|
3413
|
+
this.version = "7.3.5";
|
|
3414
3414
|
/**
|
|
3415
3415
|
* Duration, in milliseconds, since last updating frame.
|
|
3416
3416
|
*
|
|
@@ -5386,7 +5386,7 @@
|
|
|
5386
5386
|
* and warn against mismatches.
|
|
5387
5387
|
*/
|
|
5388
5388
|
{
|
|
5389
|
-
warnOnce(nextValue.version === "7.3.
|
|
5389
|
+
warnOnce(nextValue.version === "7.3.5", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.5 may not work as expected.`);
|
|
5390
5390
|
}
|
|
5391
5391
|
}
|
|
5392
5392
|
else if (isMotionValue(prevValue)) {
|