framer-motion 12.23.21 → 12.23.23

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/es/index.mjs CHANGED
@@ -1,4 +1,6 @@
1
1
  export { AnimatePresence } from './components/AnimatePresence/index.mjs';
2
+ export { PopChild } from './components/AnimatePresence/PopChild.mjs';
3
+ export { PresenceChild } from './components/AnimatePresence/PresenceChild.mjs';
2
4
  export { LayoutGroup } from './components/LayoutGroup/index.mjs';
3
5
  export { LazyMotion } from './components/LazyMotion/index.mjs';
4
6
  export { MotionConfig } from './components/MotionConfig/index.mjs';
@@ -12,6 +14,7 @@ export { calcLength } from './projection/geometry/delta-calc.mjs';
12
14
  export { createBox } from './projection/geometry/models.mjs';
13
15
  export { filterProps } from './render/dom/utils/filter-props.mjs';
14
16
  export { isBrowser } from './utils/is-browser.mjs';
17
+ export { useComposedRefs } from './utils/use-composed-ref.mjs';
15
18
  export { useForceUpdate } from './utils/use-force-update.mjs';
16
19
  export { useIsomorphicLayoutEffect } from './utils/use-isomorphic-effect.mjs';
17
20
  export { useUnmountEffect } from './utils/use-unmount-effect.mjs';
@@ -1,5 +1,8 @@
1
1
  import * as React from 'react';
2
2
 
3
+ /**
4
+ * Taken from https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx
5
+ */
3
6
  /**
4
7
  * Set a given ref to a given value
5
8
  * This utility takes care of different types of refs: callback refs and RefObject(s)
@@ -4693,7 +4693,6 @@
4693
4693
  latestValue = v;
4694
4694
  latestSetter = (latest) => set(parseValue(latest, unit));
4695
4695
  frame.postRender(startAnimation);
4696
- return value.get();
4697
4696
  }, stopAnimation);
4698
4697
  if (isMotionValue(source)) {
4699
4698
  const removeSourceOnChange = source.on("change", (v) => value.set(parseValue(v, unit)));
@@ -5057,6 +5056,9 @@
5057
5056
  reducedMotion: "never",
5058
5057
  });
5059
5058
 
5059
+ /**
5060
+ * Taken from https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx
5061
+ */
5060
5062
  /**
5061
5063
  * Set a given ref to a given value
5062
5064
  * This utility takes care of different types of refs: callback refs and RefObject(s)
@@ -14160,6 +14162,8 @@
14160
14162
  exports.NativeAnimation = NativeAnimation;
14161
14163
  exports.NativeAnimationExtended = NativeAnimationExtended;
14162
14164
  exports.NativeAnimationWrapper = NativeAnimationWrapper;
14165
+ exports.PopChild = PopChild;
14166
+ exports.PresenceChild = PresenceChild;
14163
14167
  exports.PresenceContext = PresenceContext;
14164
14168
  exports.Reorder = namespace;
14165
14169
  exports.SubscriptionManager = SubscriptionManager;
@@ -14363,6 +14367,7 @@
14363
14367
  exports.useAnimation = useAnimation;
14364
14368
  exports.useAnimationControls = useAnimationControls;
14365
14369
  exports.useAnimationFrame = useAnimationFrame;
14370
+ exports.useComposedRefs = useComposedRefs;
14366
14371
  exports.useCycle = useCycle;
14367
14372
  exports.useDeprecatedAnimatedState = useAnimatedState;
14368
14373
  exports.useDeprecatedInvertedScale = useInvertedScale;