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 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
- return animateChanges(options, type);
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
- return animateChanges(options, type);
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
- return animateChanges(options, type);
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,