framer-motion 12.0.8 → 12.0.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/client.js +5 -4
- package/dist/cjs/dom.js +2 -2
- package/dist/cjs/index.js +5 -4
- package/dist/cjs/m.js +9 -8
- package/dist/client.d.ts +256 -256
- package/dist/dom.js +1 -1
- package/dist/es/context/MotionContext/index.mjs +1 -1
- package/dist/es/context/MotionContext/utils.mjs +1 -1
- package/dist/es/context/PresenceContext.mjs +2 -1
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -1
- package/dist/framer-motion.dev.js +5 -4
- package/dist/framer-motion.js +1 -1
- package/dist/m.d.ts +256 -256
- package/dist/three.d.ts +358 -358
- package/package.json +2 -2
package/dist/cjs/client.js
CHANGED
|
@@ -409,7 +409,7 @@ class MotionValue {
|
|
|
409
409
|
* This will be replaced by the build step with the latest version number.
|
|
410
410
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
411
411
|
*/
|
|
412
|
-
this.version = "12.0.
|
|
412
|
+
this.version = "12.0.9";
|
|
413
413
|
/**
|
|
414
414
|
* Tracks whether this value can output a velocity. Currently this is only true
|
|
415
415
|
* if the value is numerical, but we might be able to widen the scope here and support
|
|
@@ -5205,7 +5205,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
5205
5205
|
* and warn against mismatches.
|
|
5206
5206
|
*/
|
|
5207
5207
|
if (process.env.NODE_ENV === "development") {
|
|
5208
|
-
warnOnce(nextValue.version === "12.0.
|
|
5208
|
+
warnOnce(nextValue.version === "12.0.9", `Attempting to mix Motion versions ${nextValue.version} with 12.0.9 may not work as expected.`);
|
|
5209
5209
|
}
|
|
5210
5210
|
}
|
|
5211
5211
|
else if (isMotionValue(prevValue)) {
|
|
@@ -5741,12 +5741,13 @@ class DOMVisualElement extends VisualElement {
|
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
5743
5743
|
|
|
5744
|
-
const MotionContext = react.createContext({});
|
|
5744
|
+
const MotionContext = /* @__PURE__ */ react.createContext({});
|
|
5745
5745
|
|
|
5746
5746
|
/**
|
|
5747
5747
|
* @public
|
|
5748
5748
|
*/
|
|
5749
|
-
const PresenceContext =
|
|
5749
|
+
const PresenceContext =
|
|
5750
|
+
/* @__PURE__ */ react.createContext(null);
|
|
5750
5751
|
|
|
5751
5752
|
/**
|
|
5752
5753
|
* Creates a constant value over the lifecycle of a component.
|
package/dist/cjs/dom.js
CHANGED
|
@@ -994,7 +994,7 @@ class MotionValue {
|
|
|
994
994
|
* This will be replaced by the build step with the latest version number.
|
|
995
995
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
996
996
|
*/
|
|
997
|
-
this.version = "12.0.
|
|
997
|
+
this.version = "12.0.9";
|
|
998
998
|
/**
|
|
999
999
|
* Tracks whether this value can output a velocity. Currently this is only true
|
|
1000
1000
|
* if the value is numerical, but we might be able to widen the scope here and support
|
|
@@ -3928,7 +3928,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
3928
3928
|
* and warn against mismatches.
|
|
3929
3929
|
*/
|
|
3930
3930
|
if (process.env.NODE_ENV === "development") {
|
|
3931
|
-
warnOnce(nextValue.version === "12.0.
|
|
3931
|
+
warnOnce(nextValue.version === "12.0.9", `Attempting to mix Motion versions ${nextValue.version} with 12.0.9 may not work as expected.`);
|
|
3932
3932
|
}
|
|
3933
3933
|
}
|
|
3934
3934
|
else if (isMotionValue(prevValue)) {
|
package/dist/cjs/index.js
CHANGED
|
@@ -445,7 +445,7 @@ class MotionValue {
|
|
|
445
445
|
* This will be replaced by the build step with the latest version number.
|
|
446
446
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
447
447
|
*/
|
|
448
|
-
this.version = "12.0.
|
|
448
|
+
this.version = "12.0.9";
|
|
449
449
|
/**
|
|
450
450
|
* Tracks whether this value can output a velocity. Currently this is only true
|
|
451
451
|
* if the value is numerical, but we might be able to widen the scope here and support
|
|
@@ -4075,7 +4075,7 @@ const animations = {
|
|
|
4075
4075
|
},
|
|
4076
4076
|
};
|
|
4077
4077
|
|
|
4078
|
-
const MotionContext = React.createContext({});
|
|
4078
|
+
const MotionContext = /* @__PURE__ */ React.createContext({});
|
|
4079
4079
|
|
|
4080
4080
|
const createAxisDelta = () => ({
|
|
4081
4081
|
translate: 0,
|
|
@@ -4257,7 +4257,8 @@ function filterProps(props, isDom, forwardMotionProps) {
|
|
|
4257
4257
|
/**
|
|
4258
4258
|
* @public
|
|
4259
4259
|
*/
|
|
4260
|
-
const PresenceContext =
|
|
4260
|
+
const PresenceContext =
|
|
4261
|
+
/* @__PURE__ */ React.createContext(null);
|
|
4261
4262
|
|
|
4262
4263
|
function isControllingVariants(props) {
|
|
4263
4264
|
return (isAnimationControls(props.animate) ||
|
|
@@ -5224,7 +5225,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
5224
5225
|
* and warn against mismatches.
|
|
5225
5226
|
*/
|
|
5226
5227
|
if (process.env.NODE_ENV === "development") {
|
|
5227
|
-
warnOnce(nextValue.version === "12.0.
|
|
5228
|
+
warnOnce(nextValue.version === "12.0.9", `Attempting to mix Motion versions ${nextValue.version} with 12.0.9 may not work as expected.`);
|
|
5228
5229
|
}
|
|
5229
5230
|
}
|
|
5230
5231
|
else if (isMotionValue(prevValue)) {
|
package/dist/cjs/m.js
CHANGED
|
@@ -19,7 +19,13 @@ const MotionConfigContext = react.createContext({
|
|
|
19
19
|
reducedMotion: "never",
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
const MotionContext = react.createContext({});
|
|
22
|
+
const MotionContext = /* @__PURE__ */ react.createContext({});
|
|
23
|
+
|
|
24
|
+
function isAnimationControls(v) {
|
|
25
|
+
return (v !== null &&
|
|
26
|
+
typeof v === "object" &&
|
|
27
|
+
typeof v.start === "function");
|
|
28
|
+
}
|
|
23
29
|
|
|
24
30
|
/**
|
|
25
31
|
* Decides if the supplied variable is variant label
|
|
@@ -28,12 +34,6 @@ function isVariantLabel(v) {
|
|
|
28
34
|
return typeof v === "string" || Array.isArray(v);
|
|
29
35
|
}
|
|
30
36
|
|
|
31
|
-
function isAnimationControls(v) {
|
|
32
|
-
return (v !== null &&
|
|
33
|
-
typeof v === "object" &&
|
|
34
|
-
typeof v.start === "function");
|
|
35
|
-
}
|
|
36
|
-
|
|
37
37
|
const variantPriorityOrder = [
|
|
38
38
|
"animate",
|
|
39
39
|
"whileInView",
|
|
@@ -157,7 +157,8 @@ function useMotionRef(visualState, visualElement, externalRef) {
|
|
|
157
157
|
/**
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
|
-
const PresenceContext =
|
|
160
|
+
const PresenceContext =
|
|
161
|
+
/* @__PURE__ */ react.createContext(null);
|
|
161
162
|
|
|
162
163
|
const useIsomorphicLayoutEffect = isBrowser ? react.useLayoutEffect : react.useEffect;
|
|
163
164
|
|