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.
- package/dist/cjs/dom-entry.js +1 -1
- package/dist/cjs/{index-legacy-bcb6edf0.js → index-legacy-560e8537.js} +5 -5
- package/dist/cjs/index-legacy-9f6d433e.js +5492 -0
- package/dist/cjs/index.js +59 -121
- package/dist/es/components/AnimatePresence/index.mjs +1 -4
- package/dist/es/motion/features/layout/MeasureLayout.mjs +5 -3
- package/dist/es/motion/index.mjs +2 -15
- package/dist/es/projection/node/HTMLProjectionNode.mjs +1 -1
- package/dist/es/projection/node/create-projection-node.mjs +15 -52
- package/dist/es/render/VisualElement.mjs +3 -3
- package/dist/es/render/dom/use-render.mjs +1 -4
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/framer-motion.dev.js +63 -125
- package/dist/framer-motion.js +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/projection.dev.js +21 -58
- package/dist/three-entry.d.ts +2 -4
- package/package.json +5 -5
- package/dist/es/projection/node/id.mjs +0 -13
package/dist/cjs/dom-entry.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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,
|
|
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(
|
|
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,
|