framer-motion 7.7.2 → 7.7.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 CHANGED
@@ -3471,7 +3471,7 @@ class MotionValue {
3471
3471
  * This will be replaced by the build step with the latest version number.
3472
3472
  * When MotionValues are provided to motion components, warn if versions are mixed.
3473
3473
  */
3474
- this.version = "7.7.2";
3474
+ this.version = "7.7.3";
3475
3475
  /**
3476
3476
  * Duration, in milliseconds, since last updating frame.
3477
3477
  *
@@ -5753,7 +5753,7 @@ function updateMotionValuesFromProps(element, next, prev) {
5753
5753
  * and warn against mismatches.
5754
5754
  */
5755
5755
  if (process.env.NODE_ENV === "development") {
5756
- warnOnce(nextValue.version === "7.7.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.7.2 may not work as expected.`);
5756
+ warnOnce(nextValue.version === "7.7.3", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.7.3 may not work as expected.`);
5757
5757
  }
5758
5758
  }
5759
5759
  else if (isMotionValue(prevValue)) {
@@ -9062,6 +9062,7 @@ function useSpring(source, config = {}) {
9062
9062
  from: value.get(),
9063
9063
  to: v,
9064
9064
  velocity: value.getVelocity(),
9065
+ type: "spring",
9065
9066
  ...config,
9066
9067
  onUpdate: set,
9067
9068
  });
@@ -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.7.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.7.2 may not work as expected.`);
25
+ warnOnce(nextValue.version === "7.7.3", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.7.3 may not work as expected.`);
26
26
  }
27
27
  }
28
28
  else if (isMotionValue(prevValue)) {
@@ -25,7 +25,7 @@ class MotionValue {
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.7.2";
28
+ this.version = "7.7.3";
29
29
  /**
30
30
  * Duration, in milliseconds, since last updating frame.
31
31
  *
@@ -43,6 +43,7 @@ function useSpring(source, config = {}) {
43
43
  from: value.get(),
44
44
  to: v,
45
45
  velocity: value.getVelocity(),
46
+ type: "spring",
46
47
  ...config,
47
48
  onUpdate: set,
48
49
  });
@@ -3484,7 +3484,7 @@
3484
3484
  * This will be replaced by the build step with the latest version number.
3485
3485
  * When MotionValues are provided to motion components, warn if versions are mixed.
3486
3486
  */
3487
- this.version = "7.7.2";
3487
+ this.version = "7.7.3";
3488
3488
  /**
3489
3489
  * Duration, in milliseconds, since last updating frame.
3490
3490
  *
@@ -5766,7 +5766,7 @@
5766
5766
  * and warn against mismatches.
5767
5767
  */
5768
5768
  {
5769
- warnOnce(nextValue.version === "7.7.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.7.2 may not work as expected.`);
5769
+ warnOnce(nextValue.version === "7.7.3", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.7.3 may not work as expected.`);
5770
5770
  }
5771
5771
  }
5772
5772
  else if (isMotionValue(prevValue)) {
@@ -9075,6 +9075,7 @@
9075
9075
  from: value.get(),
9076
9076
  to: v,
9077
9077
  velocity: value.getVelocity(),
9078
+ type: "spring",
9078
9079
  ...config,
9079
9080
  onUpdate: set,
9080
9081
  });