framer-motion 7.0.1 → 7.0.3-beta.1

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 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.1";
2440
+ this.version = "7.0.3-beta.1";
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.1", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 7.0.1 may not work as expected."));
4410
+ warnOnce(nextValue.version === "7.0.3-beta.1", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 7.0.3-beta.1 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
- return ((isCSSVariable$1(key)
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
- return ((isCSSVariable(key)
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.1", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 7.0.1 may not work as expected."));
21
+ warnOnce(nextValue.version === "7.0.3-beta.1", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 7.0.3-beta.1 may not work as expected."));
22
22
  }
23
23
  }
24
24
  else if (isMotionValue(prevValue)) {
@@ -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.1";
28
+ this.version = "7.0.3-beta.1";
29
29
  /**
30
30
  * Duration, in milliseconds, since last updating frame.
31
31
  *