framer-motion 8.1.3 → 8.1.4
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/animation.mjs +1 -0
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- 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/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -2061,7 +2061,7 @@ class MotionValue {
|
|
|
2061
2061
|
* This will be replaced by the build step with the latest version number.
|
|
2062
2062
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
2063
2063
|
*/
|
|
2064
|
-
this.version = "8.1.
|
|
2064
|
+
this.version = "8.1.4";
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Duration, in milliseconds, since last updating frame.
|
|
2067
2067
|
*
|
|
@@ -4162,6 +4162,7 @@ function animateChildren(visualElement, variant, delayChildren = 0, staggerChild
|
|
|
4162
4162
|
Array.from(visualElement.variantChildren)
|
|
4163
4163
|
.sort(sortByTreeOrder)
|
|
4164
4164
|
.forEach((child, i) => {
|
|
4165
|
+
child.notify("AnimationStart", variant);
|
|
4165
4166
|
animations.push(animateVariant(child, variant, {
|
|
4166
4167
|
...options,
|
|
4167
4168
|
delay: delayChildren + generateStaggerDuration(i),
|
|
@@ -5882,7 +5883,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
5882
5883
|
* and warn against mismatches.
|
|
5883
5884
|
*/
|
|
5884
5885
|
if (process.env.NODE_ENV === "development") {
|
|
5885
|
-
warnOnce(nextValue.version === "8.1.
|
|
5886
|
+
warnOnce(nextValue.version === "8.1.4", `Attempting to mix Framer Motion versions ${nextValue.version} with 8.1.4 may not work as expected.`);
|
|
5886
5887
|
}
|
|
5887
5888
|
}
|
|
5888
5889
|
else if (isMotionValue(prevValue)) {
|
|
@@ -124,6 +124,7 @@ function animateChildren(visualElement, variant, delayChildren = 0, staggerChild
|
|
|
124
124
|
Array.from(visualElement.variantChildren)
|
|
125
125
|
.sort(sortByTreeOrder)
|
|
126
126
|
.forEach((child, i) => {
|
|
127
|
+
child.notify("AnimationStart", variant);
|
|
127
128
|
animations.push(animateVariant(child, variant, {
|
|
128
129
|
...options,
|
|
129
130
|
delay: delayChildren + generateStaggerDuration(i),
|
|
@@ -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 === "8.1.
|
|
25
|
+
warnOnce(nextValue.version === "8.1.4", `Attempting to mix Framer Motion versions ${nextValue.version} with 8.1.4 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 = "8.1.
|
|
28
|
+
this.version = "8.1.4";
|
|
29
29
|
/**
|
|
30
30
|
* Duration, in milliseconds, since last updating frame.
|
|
31
31
|
*
|
|
@@ -2059,7 +2059,7 @@
|
|
|
2059
2059
|
* This will be replaced by the build step with the latest version number.
|
|
2060
2060
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
2061
2061
|
*/
|
|
2062
|
-
this.version = "8.1.
|
|
2062
|
+
this.version = "8.1.4";
|
|
2063
2063
|
/**
|
|
2064
2064
|
* Duration, in milliseconds, since last updating frame.
|
|
2065
2065
|
*
|
|
@@ -4175,6 +4175,7 @@
|
|
|
4175
4175
|
Array.from(visualElement.variantChildren)
|
|
4176
4176
|
.sort(sortByTreeOrder)
|
|
4177
4177
|
.forEach((child, i) => {
|
|
4178
|
+
child.notify("AnimationStart", variant);
|
|
4178
4179
|
animations.push(animateVariant(child, variant, {
|
|
4179
4180
|
...options,
|
|
4180
4181
|
delay: delayChildren + generateStaggerDuration(i),
|
|
@@ -5895,7 +5896,7 @@
|
|
|
5895
5896
|
* and warn against mismatches.
|
|
5896
5897
|
*/
|
|
5897
5898
|
{
|
|
5898
|
-
warnOnce(nextValue.version === "8.1.
|
|
5899
|
+
warnOnce(nextValue.version === "8.1.4", `Attempting to mix Framer Motion versions ${nextValue.version} with 8.1.4 may not work as expected.`);
|
|
5899
5900
|
}
|
|
5900
5901
|
}
|
|
5901
5902
|
else if (isMotionValue(prevValue)) {
|