framer-motion 7.3.5 → 7.3.6
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 +4 -4
- package/dist/es/projection/geometry/utils.mjs +1 -1
- package/dist/es/projection/node/create-projection-node.mjs +1 -1
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/framer-motion.dev.js +4 -4
- package/dist/framer-motion.js +1 -1
- package/dist/projection.dev.js +4 -4
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-motion.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -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.6";
|
|
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.6", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.6 may not work as expected.`);
|
|
4222
4222
|
}
|
|
4223
4223
|
}
|
|
4224
4224
|
else if (isMotionValue(prevValue)) {
|
|
@@ -5573,7 +5573,7 @@ function boxEquals(a, b) {
|
|
|
5573
5573
|
function aspectRatio(box) {
|
|
5574
5574
|
return calcLength(box.x) / calcLength(box.y);
|
|
5575
5575
|
}
|
|
5576
|
-
function isCloseTo(a, b, max = 0.
|
|
5576
|
+
function isCloseTo(a, b, max = 0.1) {
|
|
5577
5577
|
return popmotion.distance(a, b) <= max;
|
|
5578
5578
|
}
|
|
5579
5579
|
|
|
@@ -6942,7 +6942,7 @@ function roundBox(box) {
|
|
|
6942
6942
|
function shouldAnimatePositionOnly(animationType, snapshot, layout) {
|
|
6943
6943
|
return (animationType === "position" ||
|
|
6944
6944
|
(animationType === "preserve-aspect" &&
|
|
6945
|
-
!isCloseTo(aspectRatio(snapshot), aspectRatio(layout))));
|
|
6945
|
+
!isCloseTo(aspectRatio(snapshot), aspectRatio(layout), 0.2)));
|
|
6946
6946
|
}
|
|
6947
6947
|
|
|
6948
6948
|
const DocumentProjectionNode = createProjectionNode({
|
|
@@ -1219,7 +1219,7 @@ function roundBox(box) {
|
|
|
1219
1219
|
function shouldAnimatePositionOnly(animationType, snapshot, layout) {
|
|
1220
1220
|
return (animationType === "position" ||
|
|
1221
1221
|
(animationType === "preserve-aspect" &&
|
|
1222
|
-
!isCloseTo(aspectRatio(snapshot), aspectRatio(layout))));
|
|
1222
|
+
!isCloseTo(aspectRatio(snapshot), aspectRatio(layout), 0.2)));
|
|
1223
1223
|
}
|
|
1224
1224
|
|
|
1225
1225
|
export { createProjectionNode, mixAxis, mixAxisDelta, mixBox };
|
|
@@ -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.6", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.6 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.6";
|
|
28
28
|
/**
|
|
29
29
|
* Duration, in milliseconds, since last updating frame.
|
|
30
30
|
*
|
|
@@ -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.6";
|
|
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.6", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.6 may not work as expected.`);
|
|
5390
5390
|
}
|
|
5391
5391
|
}
|
|
5392
5392
|
else if (isMotionValue(prevValue)) {
|
|
@@ -6741,7 +6741,7 @@
|
|
|
6741
6741
|
function aspectRatio(box) {
|
|
6742
6742
|
return calcLength(box.x) / calcLength(box.y);
|
|
6743
6743
|
}
|
|
6744
|
-
function isCloseTo(a, b, max = 0.
|
|
6744
|
+
function isCloseTo(a, b, max = 0.1) {
|
|
6745
6745
|
return distance(a, b) <= max;
|
|
6746
6746
|
}
|
|
6747
6747
|
|
|
@@ -8110,7 +8110,7 @@
|
|
|
8110
8110
|
function shouldAnimatePositionOnly(animationType, snapshot, layout) {
|
|
8111
8111
|
return (animationType === "position" ||
|
|
8112
8112
|
(animationType === "preserve-aspect" &&
|
|
8113
|
-
!isCloseTo(aspectRatio(snapshot), aspectRatio(layout))));
|
|
8113
|
+
!isCloseTo(aspectRatio(snapshot), aspectRatio(layout), 0.2)));
|
|
8114
8114
|
}
|
|
8115
8115
|
|
|
8116
8116
|
const DocumentProjectionNode = createProjectionNode({
|