framer-motion 7.0.2 → 7.0.3
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 +5 -4
- package/dist/es/render/html/visual-element.mjs +3 -2
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/framer-motion.dev.js +5 -4
- package/dist/framer-motion.js +1 -1
- package/dist/projection.dev.js +5 -4
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -2437,7 +2437,7 @@ var MotionValue = /** @class */ (function () {
|
|
|
2437
2437
|
* This will be replaced by the build step with the latest version number.
|
|
2438
2438
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
2439
2439
|
*/
|
|
2440
|
-
this.version = "7.0.
|
|
2440
|
+
this.version = "7.0.3";
|
|
2441
2441
|
/**
|
|
2442
2442
|
* Duration, in milliseconds, since last updating frame.
|
|
2443
2443
|
*
|
|
@@ -4407,7 +4407,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
4407
4407
|
* and warn against mismatches.
|
|
4408
4408
|
*/
|
|
4409
4409
|
if (process.env.NODE_ENV === "development") {
|
|
4410
|
-
warnOnce(nextValue.version === "7.0.
|
|
4410
|
+
warnOnce(nextValue.version === "7.0.3", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 7.0.3 may not work as expected."));
|
|
4411
4411
|
}
|
|
4412
4412
|
}
|
|
4413
4413
|
else if (isMotionValue(prevValue)) {
|
|
@@ -5197,9 +5197,10 @@ var htmlConfig = {
|
|
|
5197
5197
|
}
|
|
5198
5198
|
else {
|
|
5199
5199
|
var computedStyle = getComputedStyle$1(domElement);
|
|
5200
|
-
|
|
5200
|
+
var value = (isCSSVariable$1(key)
|
|
5201
5201
|
? computedStyle.getPropertyValue(key)
|
|
5202
|
-
: computedStyle[key]) || 0
|
|
5202
|
+
: computedStyle[key]) || 0;
|
|
5203
|
+
return typeof value === "string" ? value.trim() : value;
|
|
5203
5204
|
}
|
|
5204
5205
|
},
|
|
5205
5206
|
sortNodePosition: function (a, b) {
|
|
@@ -22,9 +22,10 @@ var htmlConfig = {
|
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
var computedStyle = getComputedStyle(domElement);
|
|
25
|
-
|
|
25
|
+
var value = (isCSSVariable(key)
|
|
26
26
|
? computedStyle.getPropertyValue(key)
|
|
27
|
-
: computedStyle[key]) || 0
|
|
27
|
+
: computedStyle[key]) || 0;
|
|
28
|
+
return typeof value === "string" ? value.trim() : value;
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
sortNodePosition: function (a, b) {
|
|
@@ -18,7 +18,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
18
18
|
* and warn against mismatches.
|
|
19
19
|
*/
|
|
20
20
|
if (process.env.NODE_ENV === "development") {
|
|
21
|
-
warnOnce(nextValue.version === "7.0.
|
|
21
|
+
warnOnce(nextValue.version === "7.0.3", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 7.0.3 may not work as expected."));
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
else if (isMotionValue(prevValue)) {
|
package/dist/es/value/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ var MotionValue = /** @class */ (function () {
|
|
|
25
25
|
* This will be replaced by the build step with the latest version number.
|
|
26
26
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
27
27
|
*/
|
|
28
|
-
this.version = "7.0.
|
|
28
|
+
this.version = "7.0.3";
|
|
29
29
|
/**
|
|
30
30
|
* Duration, in milliseconds, since last updating frame.
|
|
31
31
|
*
|
|
@@ -3670,7 +3670,7 @@
|
|
|
3670
3670
|
* This will be replaced by the build step with the latest version number.
|
|
3671
3671
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
3672
3672
|
*/
|
|
3673
|
-
this.version = "7.0.
|
|
3673
|
+
this.version = "7.0.3";
|
|
3674
3674
|
/**
|
|
3675
3675
|
* Duration, in milliseconds, since last updating frame.
|
|
3676
3676
|
*
|
|
@@ -5640,7 +5640,7 @@
|
|
|
5640
5640
|
* and warn against mismatches.
|
|
5641
5641
|
*/
|
|
5642
5642
|
{
|
|
5643
|
-
warnOnce(nextValue.version === "7.0.
|
|
5643
|
+
warnOnce(nextValue.version === "7.0.3", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 7.0.3 may not work as expected."));
|
|
5644
5644
|
}
|
|
5645
5645
|
}
|
|
5646
5646
|
else if (isMotionValue(prevValue)) {
|
|
@@ -6430,9 +6430,10 @@
|
|
|
6430
6430
|
}
|
|
6431
6431
|
else {
|
|
6432
6432
|
var computedStyle = getComputedStyle$1(domElement);
|
|
6433
|
-
|
|
6433
|
+
var value = (isCSSVariable$1(key)
|
|
6434
6434
|
? computedStyle.getPropertyValue(key)
|
|
6435
|
-
: computedStyle[key]) || 0
|
|
6435
|
+
: computedStyle[key]) || 0;
|
|
6436
|
+
return typeof value === "string" ? value.trim() : value;
|
|
6436
6437
|
}
|
|
6437
6438
|
},
|
|
6438
6439
|
sortNodePosition: function (a, b) {
|