framer-motion 7.3.2 → 7.3.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
@@ -339,7 +339,9 @@ function createMotionComponent({ preloadedFeatures, createVisualElement, project
339
339
  const lazyStrictMode = React.useContext(LazyContext).strict;
340
340
  const initialLayoutGroupConfig = React.useContext(SwitchLayoutGroupContext);
341
341
  if (context.visualElement) {
342
- features = context.visualElement.loadFeatures(props, lazyStrictMode, preloadedFeatures, projectionId, projectionNodeConstructor ||
342
+ features = context.visualElement.loadFeatures(
343
+ // Note: Pass the full new combined props to correctly re-render dynamic feature components.
344
+ configAndProps, lazyStrictMode, preloadedFeatures, projectionId, projectionNodeConstructor ||
343
345
  featureDefinitions.projectionNodeConstructor, initialLayoutGroupConfig);
344
346
  }
345
347
  }
@@ -2240,7 +2242,7 @@ class MotionValue {
2240
2242
  * This will be replaced by the build step with the latest version number.
2241
2243
  * When MotionValues are provided to motion components, warn if versions are mixed.
2242
2244
  */
2243
- this.version = "7.3.2";
2245
+ this.version = "7.3.3";
2244
2246
  /**
2245
2247
  * Duration, in milliseconds, since last updating frame.
2246
2248
  *
@@ -4216,7 +4218,7 @@ function updateMotionValuesFromProps(element, next, prev) {
4216
4218
  * and warn against mismatches.
4217
4219
  */
4218
4220
  if (process.env.NODE_ENV === "development") {
4219
- warnOnce(nextValue.version === "7.3.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.2 may not work as expected.`);
4221
+ warnOnce(nextValue.version === "7.3.3", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.3 may not work as expected.`);
4220
4222
  }
4221
4223
  }
4222
4224
  else if (isMotionValue(prevValue)) {
@@ -66,7 +66,9 @@ function createMotionComponent({ preloadedFeatures, createVisualElement, project
66
66
  const lazyStrictMode = useContext(LazyContext).strict;
67
67
  const initialLayoutGroupConfig = useContext(SwitchLayoutGroupContext);
68
68
  if (context.visualElement) {
69
- features = context.visualElement.loadFeatures(props, lazyStrictMode, preloadedFeatures, projectionId, projectionNodeConstructor ||
69
+ features = context.visualElement.loadFeatures(
70
+ // Note: Pass the full new combined props to correctly re-render dynamic feature components.
71
+ configAndProps, lazyStrictMode, preloadedFeatures, projectionId, projectionNodeConstructor ||
70
72
  featureDefinitions.projectionNodeConstructor, initialLayoutGroupConfig);
71
73
  }
72
74
  }
@@ -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.3.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.2 may not work as expected.`);
25
+ warnOnce(nextValue.version === "7.3.3", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.3 may not work as expected.`);
26
26
  }
27
27
  }
28
28
  else if (isMotionValue(prevValue)) {
@@ -24,7 +24,7 @@ class MotionValue {
24
24
  * This will be replaced by the build step with the latest version number.
25
25
  * When MotionValues are provided to motion components, warn if versions are mixed.
26
26
  */
27
- this.version = "7.3.2";
27
+ this.version = "7.3.3";
28
28
  /**
29
29
  * Duration, in milliseconds, since last updating frame.
30
30
  *
@@ -333,7 +333,9 @@
333
333
  const lazyStrictMode = React.useContext(LazyContext).strict;
334
334
  const initialLayoutGroupConfig = React.useContext(SwitchLayoutGroupContext);
335
335
  if (context.visualElement) {
336
- features = context.visualElement.loadFeatures(props, lazyStrictMode, preloadedFeatures, projectionId, projectionNodeConstructor ||
336
+ features = context.visualElement.loadFeatures(
337
+ // Note: Pass the full new combined props to correctly re-render dynamic feature components.
338
+ configAndProps, lazyStrictMode, preloadedFeatures, projectionId, projectionNodeConstructor ||
337
339
  featureDefinitions.projectionNodeConstructor, initialLayoutGroupConfig);
338
340
  }
339
341
  }
@@ -3408,7 +3410,7 @@
3408
3410
  * This will be replaced by the build step with the latest version number.
3409
3411
  * When MotionValues are provided to motion components, warn if versions are mixed.
3410
3412
  */
3411
- this.version = "7.3.2";
3413
+ this.version = "7.3.3";
3412
3414
  /**
3413
3415
  * Duration, in milliseconds, since last updating frame.
3414
3416
  *
@@ -5384,7 +5386,7 @@
5384
5386
  * and warn against mismatches.
5385
5387
  */
5386
5388
  {
5387
- warnOnce(nextValue.version === "7.3.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.2 may not work as expected.`);
5389
+ warnOnce(nextValue.version === "7.3.3", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.3 may not work as expected.`);
5388
5390
  }
5389
5391
  }
5390
5392
  else if (isMotionValue(prevValue)) {