framer-motion 6.2.7 → 6.2.8
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 -1
- package/dist/es/render/utils/animation-state.mjs +5 -1
- package/dist/framer-motion.dev.js +5 -1
- package/dist/framer-motion.js +1 -1
- 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
|
@@ -5014,7 +5014,11 @@ function createAnimationState(visualElement) {
|
|
|
5014
5014
|
// Propagate active change to children
|
|
5015
5015
|
(_a = visualElement.variantChildren) === null || _a === void 0 ? void 0 : _a.forEach(function (child) { var _a; return (_a = child.animationState) === null || _a === void 0 ? void 0 : _a.setActive(type, isActive); });
|
|
5016
5016
|
state[type].isActive = isActive;
|
|
5017
|
-
|
|
5017
|
+
var animations = animateChanges(options, type);
|
|
5018
|
+
for (var key in state) {
|
|
5019
|
+
state[key].protectedKeys = {};
|
|
5020
|
+
}
|
|
5021
|
+
return animations;
|
|
5018
5022
|
}
|
|
5019
5023
|
return {
|
|
5020
5024
|
isAnimated: isAnimated,
|
|
@@ -294,7 +294,11 @@ function createAnimationState(visualElement) {
|
|
|
294
294
|
// Propagate active change to children
|
|
295
295
|
(_a = visualElement.variantChildren) === null || _a === void 0 ? void 0 : _a.forEach(function (child) { var _a; return (_a = child.animationState) === null || _a === void 0 ? void 0 : _a.setActive(type, isActive); });
|
|
296
296
|
state[type].isActive = isActive;
|
|
297
|
-
|
|
297
|
+
var animations = animateChanges(options, type);
|
|
298
|
+
for (var key in state) {
|
|
299
|
+
state[key].protectedKeys = {};
|
|
300
|
+
}
|
|
301
|
+
return animations;
|
|
298
302
|
}
|
|
299
303
|
return {
|
|
300
304
|
isAnimated: isAnimated,
|
|
@@ -6247,7 +6247,11 @@
|
|
|
6247
6247
|
// Propagate active change to children
|
|
6248
6248
|
(_a = visualElement.variantChildren) === null || _a === void 0 ? void 0 : _a.forEach(function (child) { var _a; return (_a = child.animationState) === null || _a === void 0 ? void 0 : _a.setActive(type, isActive); });
|
|
6249
6249
|
state[type].isActive = isActive;
|
|
6250
|
-
|
|
6250
|
+
var animations = animateChanges(options, type);
|
|
6251
|
+
for (var key in state) {
|
|
6252
|
+
state[key].protectedKeys = {};
|
|
6253
|
+
}
|
|
6254
|
+
return animations;
|
|
6251
6255
|
}
|
|
6252
6256
|
return {
|
|
6253
6257
|
isAnimated: isAnimated,
|