framer-motion 7.6.6 → 7.6.7

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
@@ -2258,7 +2258,7 @@ class MotionValue {
2258
2258
  * This will be replaced by the build step with the latest version number.
2259
2259
  * When MotionValues are provided to motion components, warn if versions are mixed.
2260
2260
  */
2261
- this.version = "7.6.6";
2261
+ this.version = "7.6.7";
2262
2262
  /**
2263
2263
  * Duration, in milliseconds, since last updating frame.
2264
2264
  *
@@ -4521,7 +4521,7 @@ function updateMotionValuesFromProps(element, next, prev) {
4521
4521
  * and warn against mismatches.
4522
4522
  */
4523
4523
  if (process.env.NODE_ENV === "development") {
4524
- warnOnce(nextValue.version === "7.6.6", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.6 may not work as expected.`);
4524
+ warnOnce(nextValue.version === "7.6.7", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.7 may not work as expected.`);
4525
4525
  }
4526
4526
  }
4527
4527
  else if (isMotionValue(prevValue)) {
@@ -4675,17 +4675,6 @@ class VisualElement {
4675
4675
  }
4676
4676
  }
4677
4677
  }
4678
- /**
4679
- * Update external values with initial values
4680
- */
4681
- if (props.values) {
4682
- for (const key in props.values) {
4683
- const value = props.values[key];
4684
- if (latestValues[key] !== undefined && isMotionValue(value)) {
4685
- value.set(latestValues[key]);
4686
- }
4687
- }
4688
- }
4689
4678
  }
4690
4679
  /**
4691
4680
  * This method takes React props and returns found MotionValues. For example, HTML
@@ -133,17 +133,6 @@ class VisualElement {
133
133
  }
134
134
  }
135
135
  }
136
- /**
137
- * Update external values with initial values
138
- */
139
- if (props.values) {
140
- for (const key in props.values) {
141
- const value = props.values[key];
142
- if (latestValues[key] !== undefined && isMotionValue(value)) {
143
- value.set(latestValues[key]);
144
- }
145
- }
146
- }
147
136
  }
148
137
  /**
149
138
  * This method takes React props and returns found MotionValues. For example, HTML
@@ -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.6.6", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.6 may not work as expected.`);
25
+ warnOnce(nextValue.version === "7.6.7", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.7 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.6.6";
27
+ this.version = "7.6.7";
28
28
  /**
29
29
  * Duration, in milliseconds, since last updating frame.
30
30
  *
@@ -3426,7 +3426,7 @@
3426
3426
  * This will be replaced by the build step with the latest version number.
3427
3427
  * When MotionValues are provided to motion components, warn if versions are mixed.
3428
3428
  */
3429
- this.version = "7.6.6";
3429
+ this.version = "7.6.7";
3430
3430
  /**
3431
3431
  * Duration, in milliseconds, since last updating frame.
3432
3432
  *
@@ -5689,7 +5689,7 @@
5689
5689
  * and warn against mismatches.
5690
5690
  */
5691
5691
  {
5692
- warnOnce(nextValue.version === "7.6.6", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.6 may not work as expected.`);
5692
+ warnOnce(nextValue.version === "7.6.7", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.7 may not work as expected.`);
5693
5693
  }
5694
5694
  }
5695
5695
  else if (isMotionValue(prevValue)) {
@@ -5843,17 +5843,6 @@
5843
5843
  }
5844
5844
  }
5845
5845
  }
5846
- /**
5847
- * Update external values with initial values
5848
- */
5849
- if (props.values) {
5850
- for (const key in props.values) {
5851
- const value = props.values[key];
5852
- if (latestValues[key] !== undefined && isMotionValue(value)) {
5853
- value.set(latestValues[key]);
5854
- }
5855
- }
5856
- }
5857
5846
  }
5858
5847
  /**
5859
5848
  * This method takes React props and returns found MotionValues. For example, HTML