framer-motion 10.12.8-alpha.2 → 10.12.9

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var indexLegacy = require('./index-legacy-bcb6edf0.js');
5
+ var indexLegacy = require('./index-legacy-560e8537.js');
6
6
 
7
7
 
8
8
 
@@ -2645,7 +2645,7 @@ class MotionValue {
2645
2645
  * This will be replaced by the build step with the latest version number.
2646
2646
  * When MotionValues are provided to motion components, warn if versions are mixed.
2647
2647
  */
2648
- this.version = "10.12.8-alpha.2";
2648
+ this.version = "10.12.9";
2649
2649
  /**
2650
2650
  * Duration, in milliseconds, since last updating frame.
2651
2651
  *
@@ -3817,7 +3817,7 @@ function updateMotionValuesFromProps(element, next, prev) {
3817
3817
  * and warn against mismatches.
3818
3818
  */
3819
3819
  if (process.env.NODE_ENV === "development") {
3820
- warnOnce(nextValue.version === "10.12.8-alpha.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 10.12.8-alpha.2 may not work as expected.`);
3820
+ warnOnce(nextValue.version === "10.12.9", `Attempting to mix Framer Motion versions ${nextValue.version} with 10.12.9 may not work as expected.`);
3821
3821
  }
3822
3822
  }
3823
3823
  else if (isMotionValue(prevValue)) {
@@ -3985,7 +3985,7 @@ class VisualElement {
3985
3985
  mount(instance) {
3986
3986
  this.current = instance;
3987
3987
  visualElementStore.set(instance, this);
3988
- if (this.projection) {
3988
+ if (this.projection && !this.projection.instance) {
3989
3989
  this.projection.mount(instance);
3990
3990
  }
3991
3991
  if (this.parent && this.isVariantNode && !this.isControllingVariants) {
@@ -4051,7 +4051,7 @@ class VisualElement {
4051
4051
  }
4052
4052
  return this.sortInstanceNodePosition(this.current, other.current);
4053
4053
  }
4054
- loadFeatures({ children, ...renderedProps }, isStrict, preloadedFeatures, projectionId, initialLayoutGroupConfig) {
4054
+ loadFeatures({ children, ...renderedProps }, isStrict, preloadedFeatures, initialLayoutGroupConfig) {
4055
4055
  let ProjectionNodeConstructor;
4056
4056
  let MeasureLayout;
4057
4057
  /**
@@ -4081,7 +4081,7 @@ class VisualElement {
4081
4081
  }
4082
4082
  }
4083
4083
  if (!this.projection && ProjectionNodeConstructor) {
4084
- this.projection = new ProjectionNodeConstructor(projectionId, this.latestValues, this.parent && this.parent.projection);
4084
+ this.projection = new ProjectionNodeConstructor(this.latestValues, this.parent && this.parent.projection);
4085
4085
  const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, } = renderedProps;
4086
4086
  this.projection.setOptions({
4087
4087
  layoutId,