framer-motion 7.6.9 → 7.6.10-alpha.1

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.9";
2261
+ this.version = "7.6.10-alpha.1";
2262
2262
  /**
2263
2263
  * Duration, in milliseconds, since last updating frame.
2264
2264
  *
@@ -4524,7 +4524,7 @@ function updateMotionValuesFromProps(element, next, prev) {
4524
4524
  * and warn against mismatches.
4525
4525
  */
4526
4526
  if (process.env.NODE_ENV === "development") {
4527
- warnOnce(nextValue.version === "7.6.9", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.9 may not work as expected.`);
4527
+ warnOnce(nextValue.version === "7.6.10-alpha.1", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.10-alpha.1 may not work as expected.`);
4528
4528
  }
4529
4529
  }
4530
4530
  else if (isMotionValue(prevValue)) {
@@ -6111,12 +6111,14 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
6111
6111
  (_a = this.options.visualElement) === null || _a === void 0 ? void 0 : _a.notify("LayoutMeasure", this.layout.layoutBox, prevLayout === null || prevLayout === void 0 ? void 0 : prevLayout.layoutBox);
6112
6112
  }
6113
6113
  updateScroll(phase = "measure") {
6114
- let needsMeasurement = Boolean(this.options.layoutScroll && this.instance);
6115
- if (this.scroll &&
6116
- this.scroll.animationId === this.root.animationId &&
6117
- this.scroll.phase === phase) {
6118
- needsMeasurement = false;
6119
- }
6114
+ const needsMeasurement = Boolean(this.options.layoutScroll && this.instance);
6115
+ // if (
6116
+ // this.scroll &&
6117
+ // this.scroll.animationId === this.root.animationId &&
6118
+ // this.scroll.phase === phase
6119
+ // ) {
6120
+ // needsMeasurement = false
6121
+ // }
6120
6122
  if (needsMeasurement) {
6121
6123
  this.scroll = {
6122
6124
  animationId: this.root.animationId,
@@ -417,12 +417,14 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
417
417
  (_a = this.options.visualElement) === null || _a === void 0 ? void 0 : _a.notify("LayoutMeasure", this.layout.layoutBox, prevLayout === null || prevLayout === void 0 ? void 0 : prevLayout.layoutBox);
418
418
  }
419
419
  updateScroll(phase = "measure") {
420
- let needsMeasurement = Boolean(this.options.layoutScroll && this.instance);
421
- if (this.scroll &&
422
- this.scroll.animationId === this.root.animationId &&
423
- this.scroll.phase === phase) {
424
- needsMeasurement = false;
425
- }
420
+ const needsMeasurement = Boolean(this.options.layoutScroll && this.instance);
421
+ // if (
422
+ // this.scroll &&
423
+ // this.scroll.animationId === this.root.animationId &&
424
+ // this.scroll.phase === phase
425
+ // ) {
426
+ // needsMeasurement = false
427
+ // }
426
428
  if (needsMeasurement) {
427
429
  this.scroll = {
428
430
  animationId: this.root.animationId,
@@ -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.9", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.9 may not work as expected.`);
25
+ warnOnce(nextValue.version === "7.6.10-alpha.1", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.10-alpha.1 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.9";
27
+ this.version = "7.6.10-alpha.1";
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.9";
3429
+ this.version = "7.6.10-alpha.1";
3430
3430
  /**
3431
3431
  * Duration, in milliseconds, since last updating frame.
3432
3432
  *
@@ -5692,7 +5692,7 @@
5692
5692
  * and warn against mismatches.
5693
5693
  */
5694
5694
  {
5695
- warnOnce(nextValue.version === "7.6.9", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.9 may not work as expected.`);
5695
+ warnOnce(nextValue.version === "7.6.10-alpha.1", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.6.10-alpha.1 may not work as expected.`);
5696
5696
  }
5697
5697
  }
5698
5698
  else if (isMotionValue(prevValue)) {
@@ -7279,12 +7279,14 @@
7279
7279
  (_a = this.options.visualElement) === null || _a === void 0 ? void 0 : _a.notify("LayoutMeasure", this.layout.layoutBox, prevLayout === null || prevLayout === void 0 ? void 0 : prevLayout.layoutBox);
7280
7280
  }
7281
7281
  updateScroll(phase = "measure") {
7282
- let needsMeasurement = Boolean(this.options.layoutScroll && this.instance);
7283
- if (this.scroll &&
7284
- this.scroll.animationId === this.root.animationId &&
7285
- this.scroll.phase === phase) {
7286
- needsMeasurement = false;
7287
- }
7282
+ const needsMeasurement = Boolean(this.options.layoutScroll && this.instance);
7283
+ // if (
7284
+ // this.scroll &&
7285
+ // this.scroll.animationId === this.root.animationId &&
7286
+ // this.scroll.phase === phase
7287
+ // ) {
7288
+ // needsMeasurement = false
7289
+ // }
7288
7290
  if (needsMeasurement) {
7289
7291
  this.scroll = {
7290
7292
  animationId: this.root.animationId,