framer-motion 7.3.3 → 7.3.5

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
@@ -506,7 +506,7 @@ function isForcedMotionValue(key, { layout, layoutId }) {
506
506
  (!!scaleCorrectors[key] || key === "opacity")));
507
507
  }
508
508
 
509
- const isMotionValue = (value) => value === undefined ? false : !!value.getVelocity;
509
+ const isMotionValue = (value) => !!(value === null || value === void 0 ? void 0 : value.getVelocity);
510
510
 
511
511
  const translateAlias = {
512
512
  x: "translateX",
@@ -2242,7 +2242,7 @@ class MotionValue {
2242
2242
  * This will be replaced by the build step with the latest version number.
2243
2243
  * When MotionValues are provided to motion components, warn if versions are mixed.
2244
2244
  */
2245
- this.version = "7.3.3";
2245
+ this.version = "7.3.5";
2246
2246
  /**
2247
2247
  * Duration, in milliseconds, since last updating frame.
2248
2248
  *
@@ -4218,7 +4218,7 @@ function updateMotionValuesFromProps(element, next, prev) {
4218
4218
  * and warn against mismatches.
4219
4219
  */
4220
4220
  if (process.env.NODE_ENV === "development") {
4221
- warnOnce(nextValue.version === "7.3.3", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.3 may not work as expected.`);
4221
+ warnOnce(nextValue.version === "7.3.5", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.5 may not work as expected.`);
4222
4222
  }
4223
4223
  }
4224
4224
  else if (isMotionValue(prevValue)) {
@@ -4463,7 +4463,7 @@ const visualElement = ({ treeType = "", build, getBaseTarget, makeTargetAnimatab
4463
4463
  * dynamically request functionality. In initial tests this
4464
4464
  * was producing a lot of duplication amongst bundles.
4465
4465
  */
4466
- if (isEnabled(props) && Component) {
4466
+ if (isEnabled(renderedProps) && Component) {
4467
4467
  features.push(React.createElement(Component, {
4468
4468
  key: name,
4469
4469
  ...renderedProps,
@@ -222,7 +222,7 @@ const visualElement = ({ treeType = "", build, getBaseTarget, makeTargetAnimatab
222
222
  * dynamically request functionality. In initial tests this
223
223
  * was producing a lot of duplication amongst bundles.
224
224
  */
225
- if (isEnabled(props) && Component) {
225
+ if (isEnabled(renderedProps) && Component) {
226
226
  features.push(createElement(Component, {
227
227
  key: name,
228
228
  ...renderedProps,
@@ -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.3.3", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.3 may not work as expected.`);
25
+ warnOnce(nextValue.version === "7.3.5", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.5 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.3.3";
27
+ this.version = "7.3.5";
28
28
  /**
29
29
  * Duration, in milliseconds, since last updating frame.
30
30
  *
@@ -1,3 +1,3 @@
1
- const isMotionValue = (value) => value === undefined ? false : !!value.getVelocity;
1
+ const isMotionValue = (value) => !!(value === null || value === void 0 ? void 0 : value.getVelocity);
2
2
 
3
3
  export { isMotionValue };
@@ -500,7 +500,7 @@
500
500
  (!!scaleCorrectors[key] || key === "opacity")));
501
501
  }
502
502
 
503
- const isMotionValue = (value) => value === undefined ? false : !!value.getVelocity;
503
+ const isMotionValue = (value) => !!(value === null || value === void 0 ? void 0 : value.getVelocity);
504
504
 
505
505
  const translateAlias = {
506
506
  x: "translateX",
@@ -3410,7 +3410,7 @@
3410
3410
  * This will be replaced by the build step with the latest version number.
3411
3411
  * When MotionValues are provided to motion components, warn if versions are mixed.
3412
3412
  */
3413
- this.version = "7.3.3";
3413
+ this.version = "7.3.5";
3414
3414
  /**
3415
3415
  * Duration, in milliseconds, since last updating frame.
3416
3416
  *
@@ -5386,7 +5386,7 @@
5386
5386
  * and warn against mismatches.
5387
5387
  */
5388
5388
  {
5389
- warnOnce(nextValue.version === "7.3.3", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.3 may not work as expected.`);
5389
+ warnOnce(nextValue.version === "7.3.5", `Attempting to mix Framer Motion versions ${nextValue.version} with 7.3.5 may not work as expected.`);
5390
5390
  }
5391
5391
  }
5392
5392
  else if (isMotionValue(prevValue)) {
@@ -5631,7 +5631,7 @@
5631
5631
  * dynamically request functionality. In initial tests this
5632
5632
  * was producing a lot of duplication amongst bundles.
5633
5633
  */
5634
- if (isEnabled(props) && Component) {
5634
+ if (isEnabled(renderedProps) && Component) {
5635
5635
  features.push(React.createElement(Component, {
5636
5636
  key: name,
5637
5637
  ...renderedProps,