framer-motion 8.4.3 → 8.4.4

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
@@ -921,6 +921,15 @@ catch (_a) {
921
921
  function filterProps(props, isDom, forwardMotionProps) {
922
922
  const filteredProps = {};
923
923
  for (const key in props) {
924
+ /**
925
+ * values is considered a valid prop by Emotion, so if it's present
926
+ * this will be rendered out to the DOM unless explicitly filtered.
927
+ *
928
+ * We check the type as it could be used with the `feColorMatrix`
929
+ * element, which we support.
930
+ */
931
+ if (key === "values" && typeof props.values === "object")
932
+ continue;
924
933
  if (shouldForward(key) ||
925
934
  (forwardMotionProps === true && isValidMotionProp(key)) ||
926
935
  (!isDom && !isValidMotionProp(key)) ||
@@ -2072,7 +2081,7 @@ class MotionValue {
2072
2081
  * This will be replaced by the build step with the latest version number.
2073
2082
  * When MotionValues are provided to motion components, warn if versions are mixed.
2074
2083
  */
2075
- this.version = "8.4.2";
2084
+ this.version = "8.4.4";
2076
2085
  /**
2077
2086
  * Duration, in milliseconds, since last updating frame.
2078
2087
  *
@@ -5924,7 +5933,7 @@ function updateMotionValuesFromProps(element, next, prev) {
5924
5933
  * and warn against mismatches.
5925
5934
  */
5926
5935
  if (process.env.NODE_ENV === "development") {
5927
- warnOnce(nextValue.version === "8.4.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 8.4.2 may not work as expected.`);
5936
+ warnOnce(nextValue.version === "8.4.4", `Attempting to mix Framer Motion versions ${nextValue.version} with 8.4.4 may not work as expected.`);
5928
5937
  }
5929
5938
  }
5930
5939
  else if (isMotionValue(prevValue)) {
@@ -34,6 +34,15 @@ catch (_a) {
34
34
  function filterProps(props, isDom, forwardMotionProps) {
35
35
  const filteredProps = {};
36
36
  for (const key in props) {
37
+ /**
38
+ * values is considered a valid prop by Emotion, so if it's present
39
+ * this will be rendered out to the DOM unless explicitly filtered.
40
+ *
41
+ * We check the type as it could be used with the `feColorMatrix`
42
+ * element, which we support.
43
+ */
44
+ if (key === "values" && typeof props.values === "object")
45
+ continue;
37
46
  if (shouldForward(key) ||
38
47
  (forwardMotionProps === true && isValidMotionProp(key)) ||
39
48
  (!isDom && !isValidMotionProp(key)) ||
@@ -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 === "8.4.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 8.4.2 may not work as expected.`);
25
+ warnOnce(nextValue.version === "8.4.4", `Attempting to mix Framer Motion versions ${nextValue.version} with 8.4.4 may not work as expected.`);
26
26
  }
27
27
  }
28
28
  else if (isMotionValue(prevValue)) {
@@ -25,7 +25,7 @@ class MotionValue {
25
25
  * This will be replaced by the build step with the latest version number.
26
26
  * When MotionValues are provided to motion components, warn if versions are mixed.
27
27
  */
28
- this.version = "8.4.2";
28
+ this.version = "8.4.4";
29
29
  /**
30
30
  * Duration, in milliseconds, since last updating frame.
31
31
  *
@@ -919,6 +919,15 @@
919
919
  function filterProps(props, isDom, forwardMotionProps) {
920
920
  const filteredProps = {};
921
921
  for (const key in props) {
922
+ /**
923
+ * values is considered a valid prop by Emotion, so if it's present
924
+ * this will be rendered out to the DOM unless explicitly filtered.
925
+ *
926
+ * We check the type as it could be used with the `feColorMatrix`
927
+ * element, which we support.
928
+ */
929
+ if (key === "values" && typeof props.values === "object")
930
+ continue;
922
931
  if (shouldForward(key) ||
923
932
  (forwardMotionProps === true && isValidMotionProp(key)) ||
924
933
  (!isDom && !isValidMotionProp(key)) ||
@@ -2070,7 +2079,7 @@
2070
2079
  * This will be replaced by the build step with the latest version number.
2071
2080
  * When MotionValues are provided to motion components, warn if versions are mixed.
2072
2081
  */
2073
- this.version = "8.4.2";
2082
+ this.version = "8.4.4";
2074
2083
  /**
2075
2084
  * Duration, in milliseconds, since last updating frame.
2076
2085
  *
@@ -5937,7 +5946,7 @@
5937
5946
  * and warn against mismatches.
5938
5947
  */
5939
5948
  {
5940
- warnOnce(nextValue.version === "8.4.2", `Attempting to mix Framer Motion versions ${nextValue.version} with 8.4.2 may not work as expected.`);
5949
+ warnOnce(nextValue.version === "8.4.4", `Attempting to mix Framer Motion versions ${nextValue.version} with 8.4.4 may not work as expected.`);
5941
5950
  }
5942
5951
  }
5943
5952
  else if (isMotionValue(prevValue)) {