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 +3 -2
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/es/value/use-spring.mjs +1 -0
- package/dist/framer-motion.dev.js +3 -2
- package/dist/framer-motion.js +1 -1
- package/dist/projection.dev.js +2 -2
- 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/package.json +2 -2
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.
|
|
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.
|
|
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.
|
|
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)) {
|
package/dist/es/value/index.mjs
CHANGED
|
@@ -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.
|
|
28
|
+
this.version = "7.7.3";
|
|
29
29
|
/**
|
|
30
30
|
* Duration, in milliseconds, since last updating frame.
|
|
31
31
|
*
|
|
@@ -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.
|
|
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.
|
|
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
|
});
|