motion 12.4.12 → 12.5.0

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.
Files changed (83) hide show
  1. package/dist/cjs/debug.js +12 -12
  2. package/dist/cjs/index.js +1353 -1315
  3. package/dist/cjs/mini.js +7 -7
  4. package/dist/cjs/react-client.js +618 -560
  5. package/dist/cjs/react-m.js +20 -19
  6. package/dist/cjs/react-mini.js +1 -1
  7. package/dist/es/framer-motion/dist/es/animation/animate/single-value.mjs +2 -1
  8. package/dist/es/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +2 -1
  9. package/dist/es/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +1 -1
  10. package/dist/es/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +3 -2
  11. package/dist/es/framer-motion/dist/es/animation/animators/waapi/index.mjs +2 -2
  12. package/dist/es/framer-motion/dist/es/animation/generators/utils/velocity.mjs +2 -1
  13. package/dist/es/framer-motion/dist/es/animation/interfaces/motion-value.mjs +2 -2
  14. package/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +1 -1
  15. package/dist/es/framer-motion/dist/es/animation/optimized-appear/start.mjs +4 -4
  16. package/dist/es/framer-motion/dist/es/animation/sequence/utils/edit.mjs +2 -1
  17. package/dist/es/framer-motion/dist/es/components/AnimatePresence/index.mjs +1 -1
  18. package/dist/es/framer-motion/dist/es/components/Reorder/utils/check-reorder.mjs +2 -1
  19. package/dist/es/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +1 -1
  20. package/dist/es/framer-motion/dist/es/gestures/hover.mjs +1 -1
  21. package/dist/es/framer-motion/dist/es/gestures/pan/PanSession.mjs +1 -1
  22. package/dist/es/framer-motion/dist/es/gestures/pan/index.mjs +1 -1
  23. package/dist/es/framer-motion/dist/es/gestures/press.mjs +1 -1
  24. package/dist/es/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs +3 -2
  25. package/dist/es/framer-motion/dist/es/motion/utils/use-visual-element.mjs +7 -6
  26. package/dist/es/framer-motion/dist/es/projection/node/create-projection-node.mjs +6 -6
  27. package/dist/es/framer-motion/dist/es/projection/shared/stack.mjs +2 -1
  28. package/dist/es/framer-motion/dist/es/render/VisualElement.mjs +6 -5
  29. package/dist/es/framer-motion/dist/es/render/components/create-proxy.mjs +2 -1
  30. package/dist/es/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
  31. package/dist/es/framer-motion/dist/es/render/dom/scroll/info.mjs +1 -1
  32. package/dist/es/framer-motion/dist/es/render/dom/scroll/observe.mjs +2 -1
  33. package/dist/es/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +2 -1
  34. package/dist/es/framer-motion/dist/es/render/dom/scroll/track.mjs +2 -1
  35. package/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +3 -20
  36. package/dist/es/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +2 -3
  37. package/dist/es/framer-motion/dist/es/render/html/utils/parse-transform.mjs +83 -0
  38. package/dist/es/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +2 -1
  39. package/dist/es/framer-motion/dist/es/render/svg/config-motion.mjs +2 -1
  40. package/dist/es/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +2 -1
  41. package/dist/es/framer-motion/dist/es/render/utils/flat-tree.mjs +2 -1
  42. package/dist/es/framer-motion/dist/es/render/utils/motion-values.mjs +4 -3
  43. package/dist/es/framer-motion/dist/es/render/utils/setters.mjs +2 -1
  44. package/dist/es/framer-motion/dist/es/utils/delay.mjs +2 -2
  45. package/dist/es/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs +2 -1
  46. package/dist/es/framer-motion/dist/es/utils/use-animation-frame.mjs +2 -1
  47. package/dist/es/framer-motion/dist/es/utils/use-force-update.mjs +2 -1
  48. package/dist/es/framer-motion/dist/es/utils/use-instant-transition.mjs +2 -1
  49. package/dist/es/framer-motion/dist/es/value/scroll/use-element-scroll.mjs +2 -1
  50. package/dist/es/framer-motion/dist/es/value/scroll/use-viewport-scroll.mjs +2 -1
  51. package/dist/es/framer-motion/dist/es/value/use-combine-values.mjs +3 -2
  52. package/dist/es/framer-motion/dist/es/value/use-computed.mjs +2 -1
  53. package/dist/es/framer-motion/dist/es/value/use-inverted-scale.mjs +3 -3
  54. package/dist/es/framer-motion/dist/es/value/use-motion-value.mjs +2 -1
  55. package/dist/es/framer-motion/dist/es/value/use-scroll.mjs +4 -4
  56. package/dist/es/framer-motion/dist/es/value/use-spring.mjs +1 -1
  57. package/dist/es/framer-motion/dist/es/value/use-transform.mjs +1 -1
  58. package/dist/es/framer-motion/dist/es/value/use-velocity.mjs +2 -1
  59. package/dist/es/framer-motion/dist/es/value/use-will-change/WillChangeMotionValue.mjs +3 -2
  60. package/dist/es/motion/lib/debug.mjs +1 -1
  61. package/dist/es/motion/lib/index.mjs +3 -4
  62. package/dist/es/motion/lib/react.mjs +19 -20
  63. package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/batcher.mjs +2 -1
  64. package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/frame.mjs +1 -1
  65. package/dist/es/motion-dom/dist/es/frameloop/microtask.mjs +6 -0
  66. package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/sync-time.mjs +2 -1
  67. package/dist/es/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +1 -1
  68. package/dist/es/{framer-motion → motion-dom}/dist/es/value/index.mjs +6 -11
  69. package/dist/motion.dev.js +1353 -1315
  70. package/dist/motion.js +1 -1
  71. package/package.json +3 -3
  72. package/dist/es/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -20
  73. package/dist/es/framer-motion/dist/es/frameloop/microtask.mjs +0 -5
  74. package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/order.mjs +0 -0
  75. package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/render-step.mjs +0 -0
  76. package/dist/es/{framer-motion → motion-dom}/dist/es/stats/animation-count.mjs +0 -0
  77. package/dist/es/{framer-motion → motion-dom}/dist/es/stats/buffer.mjs +0 -0
  78. package/dist/es/{framer-motion → motion-dom}/dist/es/stats/index.mjs +1 -1
  79. /package/dist/es/{framer-motion/dist/es/utils → motion-utils/dist/es}/array.mjs +0 -0
  80. /package/dist/es/{framer-motion/dist/es/utils/GlobalConfig.mjs → motion-utils/dist/es/global-config.mjs} +0 -0
  81. /package/dist/es/{framer-motion/dist/es/utils → motion-utils/dist/es}/subscription-manager.mjs +0 -0
  82. /package/dist/es/{framer-motion/dist/es/utils → motion-utils/dist/es}/velocity-per-second.mjs +0 -0
  83. /package/dist/es/{framer-motion/dist/es/utils → motion-utils/dist/es}/warn-once.mjs +0 -0
@@ -1,5 +1,6 @@
1
- import { warnOnce } from '../../utils/warn-once.mjs';
2
- import { motionValue } from '../../value/index.mjs';
1
+ import '../../../../../motion-utils/dist/es/errors.mjs';
2
+ import { warnOnce } from '../../../../../motion-utils/dist/es/warn-once.mjs';
3
+ import { motionValue } from '../../../../../motion-dom/dist/es/value/index.mjs';
3
4
  import { isMotionValue } from '../../value/utils/is-motion-value.mjs';
4
5
 
5
6
  function updateMotionValuesFromProps(element, next, prev) {
@@ -17,7 +18,7 @@ function updateMotionValuesFromProps(element, next, prev) {
17
18
  * and warn against mismatches.
18
19
  */
19
20
  if (process.env.NODE_ENV === "development") {
20
- warnOnce(nextValue.version === "12.4.12", `Attempting to mix Motion versions ${nextValue.version} with 12.4.12 may not work as expected.`);
21
+ warnOnce(nextValue.version === "12.5.0", `Attempting to mix Motion versions ${nextValue.version} with 12.5.0 may not work as expected.`);
21
22
  }
22
23
  }
23
24
  else if (isMotionValue(prevValue)) {
@@ -1,5 +1,6 @@
1
+ import '../../../../../motion-utils/dist/es/errors.mjs';
2
+ import { motionValue } from '../../../../../motion-dom/dist/es/value/index.mjs';
1
3
  import { resolveFinalValueInKeyframes } from '../../utils/resolve-value.mjs';
2
- import { motionValue } from '../../value/index.mjs';
3
4
  import { resolveVariant } from './resolve-dynamic-variants.mjs';
4
5
 
5
6
  /**
@@ -1,7 +1,7 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { secondsToMilliseconds } from '../../../../motion-utils/dist/es/time-conversion.mjs';
3
- import { time } from '../frameloop/sync-time.mjs';
4
- import { frame, cancelFrame } from '../frameloop/frame.mjs';
3
+ import { frame, cancelFrame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
4
+ import { time } from '../../../../motion-dom/dist/es/frameloop/sync-time.mjs';
5
5
 
6
6
  /**
7
7
  * Timeout defined in ms
@@ -1,6 +1,7 @@
1
+ import '../../../../../motion-utils/dist/es/errors.mjs';
2
+ import { warnOnce } from '../../../../../motion-utils/dist/es/warn-once.mjs';
1
3
  import { useState } from 'react';
2
4
  import { initPrefersReducedMotion } from './index.mjs';
3
- import { warnOnce } from '../warn-once.mjs';
4
5
  import { hasReducedMotionListener, prefersReducedMotion } from './state.mjs';
5
6
 
6
7
  /**
@@ -1,6 +1,7 @@
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { frame, cancelFrame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
1
3
  import { useRef, useContext, useEffect } from 'react';
2
4
  import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
3
- import { frame, cancelFrame } from '../frameloop/frame.mjs';
4
5
 
5
6
  function useAnimationFrame(callback) {
6
7
  const initialTimestamp = useRef(0);
@@ -1,6 +1,7 @@
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
1
3
  import { useState, useCallback } from 'react';
2
4
  import { useIsMounted } from './use-is-mounted.mjs';
3
- import { frame } from '../frameloop/frame.mjs';
4
5
 
5
6
  function useForceUpdate() {
6
7
  const isMounted = useIsMounted();
@@ -1,8 +1,9 @@
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
1
3
  import { useRef, useEffect } from 'react';
2
4
  import { useInstantLayoutTransition } from '../projection/use-instant-layout-transition.mjs';
3
5
  import { useForceUpdate } from './use-force-update.mjs';
4
6
  import { instantAnimationState } from './use-instant-transition-state.mjs';
5
- import { frame } from '../frameloop/frame.mjs';
6
7
 
7
8
  function useInstantTransition() {
8
9
  const [forceUpdate, forcedRenderCount] = useForceUpdate();
@@ -1,4 +1,5 @@
1
- import { warnOnce } from '../../utils/warn-once.mjs';
1
+ import '../../../../../motion-utils/dist/es/errors.mjs';
2
+ import { warnOnce } from '../../../../../motion-utils/dist/es/warn-once.mjs';
2
3
  import { useScroll } from '../use-scroll.mjs';
3
4
 
4
5
  /**
@@ -1,4 +1,5 @@
1
- import { warnOnce } from '../../utils/warn-once.mjs';
1
+ import '../../../../../motion-utils/dist/es/errors.mjs';
2
+ import { warnOnce } from '../../../../../motion-utils/dist/es/warn-once.mjs';
2
3
  import { useScroll } from '../use-scroll.mjs';
3
4
 
4
5
  /**
@@ -1,6 +1,7 @@
1
- import { useMotionValue } from './use-motion-value.mjs';
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { cancelFrame, frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
2
3
  import { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';
3
- import { cancelFrame, frame } from '../frameloop/frame.mjs';
4
+ import { useMotionValue } from './use-motion-value.mjs';
4
5
 
5
6
  function useCombineMotionValues(values, combineValues) {
6
7
  /**
@@ -1,4 +1,5 @@
1
- import { collectMotionValues } from './index.mjs';
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { collectMotionValues } from '../../../../motion-dom/dist/es/value/index.mjs';
2
3
  import { useCombineMotionValues } from './use-combine-values.mjs';
3
4
 
4
5
  function useComputed(compute) {
@@ -1,8 +1,8 @@
1
- import { useTransform } from './use-transform.mjs';
2
1
  import { invariant, warning } from '../../../../motion-utils/dist/es/errors.mjs';
3
- import { useMotionValue } from './use-motion-value.mjs';
4
- import { MotionContext } from '../context/MotionContext/index.mjs';
5
2
  import { useContext } from 'react';
3
+ import { MotionContext } from '../context/MotionContext/index.mjs';
4
+ import { useMotionValue } from './use-motion-value.mjs';
5
+ import { useTransform } from './use-transform.mjs';
6
6
 
7
7
  // Keep things reasonable and avoid scale: Infinity. In practise we might need
8
8
  // to add another value, opacity, that could interpolate scaleX/Y [0,0.01] => [0,1]
@@ -1,5 +1,6 @@
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { motionValue } from '../../../../motion-dom/dist/es/value/index.mjs';
1
3
  import { useContext, useState, useEffect } from 'react';
2
- import { motionValue } from './index.mjs';
3
4
  import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
4
5
  import { useConstant } from '../utils/use-constant.mjs';
5
6
 
@@ -1,8 +1,8 @@
1
- import { motionValue } from './index.mjs';
2
- import { useConstant } from '../utils/use-constant.mjs';
3
- import { useEffect } from 'react';
4
1
  import { warning } from '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { motionValue } from '../../../../motion-dom/dist/es/value/index.mjs';
3
+ import { useEffect } from 'react';
5
4
  import { scroll } from '../render/dom/scroll/index.mjs';
5
+ import { useConstant } from '../utils/use-constant.mjs';
6
6
  import { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';
7
7
 
8
8
  function refWarning(name, ref) {
@@ -22,7 +22,7 @@ function useScroll({ container, target, layoutEffect = true, ...options } = {})
22
22
  useLifecycleEffect(() => {
23
23
  refWarning("target", target);
24
24
  refWarning("container", container);
25
- return scroll((_progress, { x, y }) => {
25
+ return scroll((_progress, { x, y, }) => {
26
26
  values.scrollX.set(x.current);
27
27
  values.scrollXProgress.set(x.progress);
28
28
  values.scrollY.set(y.current);
@@ -1,5 +1,6 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { noop } from '../../../../motion-utils/dist/es/noop.mjs';
3
+ import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
4
  import { useContext, useRef, useInsertionEffect } from 'react';
4
5
  import { animateValue } from '../animation/animators/MainThreadAnimation.mjs';
5
6
  import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
@@ -7,7 +8,6 @@ import { useConstant } from '../utils/use-constant.mjs';
7
8
  import { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';
8
9
  import { useMotionValue } from './use-motion-value.mjs';
9
10
  import { isMotionValue } from './utils/is-motion-value.mjs';
10
- import { frame } from '../frameloop/frame.mjs';
11
11
 
12
12
  function useSpring(source, config = {}) {
13
13
  const { isStatic } = useContext(MotionConfigContext);
@@ -1,6 +1,6 @@
1
1
  import { transform } from '../utils/transform.mjs';
2
- import { useCombineMotionValues } from './use-combine-values.mjs';
3
2
  import { useConstant } from '../utils/use-constant.mjs';
3
+ import { useCombineMotionValues } from './use-combine-values.mjs';
4
4
  import { useComputed } from './use-computed.mjs';
5
5
 
6
6
  function useTransform(input, inputRangeOrTransformer, outputRange, options) {
@@ -1,6 +1,7 @@
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
1
3
  import { useMotionValueEvent } from '../utils/use-motion-value-event.mjs';
2
4
  import { useMotionValue } from './use-motion-value.mjs';
3
- import { frame } from '../frameloop/frame.mjs';
4
5
 
5
6
  /**
6
7
  * Creates a `MotionValue` that updates when the velocity of the provided `MotionValue` changes.
@@ -1,6 +1,7 @@
1
- import { MotionValue } from '../index.mjs';
1
+ import { addUniqueItem } from '../../../../../motion-utils/dist/es/array.mjs';
2
+ import '../../../../../motion-utils/dist/es/errors.mjs';
3
+ import { MotionValue } from '../../../../../motion-dom/dist/es/value/index.mjs';
2
4
  import { getWillChangeName } from './get-will-change-name.mjs';
3
- import { addUniqueItem } from '../../utils/array.mjs';
4
5
 
5
6
  class WillChangeMotionValue extends MotionValue {
6
7
  constructor() {
@@ -1 +1 @@
1
- export { recordStats } from '../../framer-motion/dist/es/stats/index.mjs';
1
+ export { recordStats } from '../../motion-dom/dist/es/stats/index.mjs';
@@ -1,6 +1,9 @@
1
+ export { MotionValue, motionValue } from '../../motion-dom/dist/es/value/index.mjs';
2
+ export { cancelFrame, frame, frameData } from '../../motion-dom/dist/es/frameloop/frame.mjs';
1
3
  export { hover } from '../../motion-dom/dist/es/gestures/hover.mjs';
2
4
  export { isDragActive } from '../../motion-dom/dist/es/gestures/drag/state/is-active.mjs';
3
5
  export { press } from '../../motion-dom/dist/es/gestures/press/index.mjs';
6
+ export { time } from '../../motion-dom/dist/es/frameloop/sync-time.mjs';
4
7
  export { invariant } from '../../motion-utils/dist/es/errors.mjs';
5
8
  export { noop } from '../../motion-utils/dist/es/noop.mjs';
6
9
  export { progress } from '../../motion-utils/dist/es/progress.mjs';
@@ -9,7 +12,6 @@ export { animateMini } from '../../framer-motion/dist/es/animation/animators/waa
9
12
  export { scroll } from '../../framer-motion/dist/es/render/dom/scroll/index.mjs';
10
13
  export { scrollInfo } from '../../framer-motion/dist/es/render/dom/scroll/track.mjs';
11
14
  export { inView } from '../../framer-motion/dist/es/render/dom/viewport/index.mjs';
12
- export { MotionValue, motionValue } from '../../framer-motion/dist/es/value/index.mjs';
13
15
  export { anticipate } from '../../framer-motion/dist/es/easing/anticipate.mjs';
14
16
  export { backIn, backInOut, backOut } from '../../framer-motion/dist/es/easing/back.mjs';
15
17
  export { circIn, circInOut, circOut } from '../../framer-motion/dist/es/easing/circ.mjs';
@@ -22,7 +24,6 @@ export { inertia } from '../../framer-motion/dist/es/animation/generators/inerti
22
24
  export { keyframes } from '../../framer-motion/dist/es/animation/generators/keyframes.mjs';
23
25
  export { spring } from '../../framer-motion/dist/es/animation/generators/spring/index.mjs';
24
26
  export { stagger } from '../../framer-motion/dist/es/animation/utils/stagger.mjs';
25
- export { time } from '../../framer-motion/dist/es/frameloop/sync-time.mjs';
26
27
  export { clamp } from '../../framer-motion/dist/es/utils/clamp.mjs';
27
28
  export { delayInSeconds as delay } from '../../framer-motion/dist/es/utils/delay.mjs';
28
29
  export { distance, distance2D } from '../../framer-motion/dist/es/utils/distance.mjs';
@@ -31,5 +32,3 @@ export { mix } from '../../framer-motion/dist/es/utils/mix/index.mjs';
31
32
  export { pipe } from '../../framer-motion/dist/es/utils/pipe.mjs';
32
33
  export { transform } from '../../framer-motion/dist/es/utils/transform.mjs';
33
34
  export { wrap } from '../../framer-motion/dist/es/utils/wrap.mjs';
34
- export { cancelSync, sync } from '../../framer-motion/dist/es/frameloop/index-legacy.mjs';
35
- export { cancelFrame, frame, frameData, frameSteps } from '../../framer-motion/dist/es/frameloop/frame.mjs';
@@ -5,6 +5,18 @@ export { LazyMotion } from '../../framer-motion/dist/es/components/LazyMotion/in
5
5
  export { MotionConfig } from '../../framer-motion/dist/es/components/MotionConfig/index.mjs';
6
6
  export { m } from '../../framer-motion/dist/es/render/components/m/proxy.mjs';
7
7
  export { motion } from '../../framer-motion/dist/es/render/components/motion/proxy.mjs';
8
+ export { addPointerEvent } from '../../framer-motion/dist/es/events/add-pointer-event.mjs';
9
+ export { addPointerInfo } from '../../framer-motion/dist/es/events/event-info.mjs';
10
+ export { animations } from '../../framer-motion/dist/es/motion/features/animations.mjs';
11
+ export { makeUseVisualState } from '../../framer-motion/dist/es/motion/utils/use-visual-state.mjs';
12
+ export { calcLength } from '../../framer-motion/dist/es/projection/geometry/delta-calc.mjs';
13
+ export { createBox } from '../../framer-motion/dist/es/projection/geometry/models.mjs';
14
+ export { filterProps } from '../../framer-motion/dist/es/render/dom/utils/filter-props.mjs';
15
+ export { isBrowser } from '../../framer-motion/dist/es/utils/is-browser.mjs';
16
+ export { useForceUpdate } from '../../framer-motion/dist/es/utils/use-force-update.mjs';
17
+ export { useIsomorphicLayoutEffect } from '../../framer-motion/dist/es/utils/use-isomorphic-effect.mjs';
18
+ export { useUnmountEffect } from '../../framer-motion/dist/es/utils/use-unmount-effect.mjs';
19
+ export { isMotionValue } from '../../framer-motion/dist/es/value/utils/is-motion-value.mjs';
8
20
  export { domAnimation } from '../../framer-motion/dist/es/render/dom/features-animation.mjs';
9
21
  export { domMax } from '../../framer-motion/dist/es/render/dom/features-max.mjs';
10
22
  export { domMin } from '../../framer-motion/dist/es/render/dom/features-min.mjs';
@@ -22,6 +34,10 @@ export { useWillChange } from '../../framer-motion/dist/es/value/use-will-change
22
34
  export { resolveMotionValue } from '../../framer-motion/dist/es/value/utils/resolve-motion-value.mjs';
23
35
  export { useReducedMotion } from '../../framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs';
24
36
  export { useReducedMotionConfig } from '../../framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs';
37
+ export { MotionGlobalConfig } from '../../motion-utils/dist/es/global-config.mjs';
38
+ export { invariant } from '../../motion-utils/dist/es/errors.mjs';
39
+ export { noop } from '../../motion-utils/dist/es/noop.mjs';
40
+ export { progress } from '../../motion-utils/dist/es/progress.mjs';
25
41
  export { AcceleratedAnimation } from '../../framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs';
26
42
  export { animateValue } from '../../framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs';
27
43
  export { animationControls } from '../../framer-motion/dist/es/animation/hooks/animation-controls.mjs';
@@ -43,7 +59,6 @@ export { useResetProjection } from '../../framer-motion/dist/es/projection/use-r
43
59
  export { buildTransform } from '../../framer-motion/dist/es/render/html/utils/build-transform.mjs';
44
60
  export { visualElementStore } from '../../framer-motion/dist/es/render/store.mjs';
45
61
  export { VisualElement } from '../../framer-motion/dist/es/render/VisualElement.mjs';
46
- export { MotionGlobalConfig } from '../../framer-motion/dist/es/utils/GlobalConfig.mjs';
47
62
  export { useAnimationFrame } from '../../framer-motion/dist/es/utils/use-animation-frame.mjs';
48
63
  export { useCycle } from '../../framer-motion/dist/es/utils/use-cycle.mjs';
49
64
  export { useInView } from '../../framer-motion/dist/es/utils/use-in-view.mjs';
@@ -66,28 +81,25 @@ export { AnimateSharedLayout } from '../../framer-motion/dist/es/components/Anim
66
81
  export { DeprecatedLayoutGroupContext } from '../../framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs';
67
82
  export { useInvertedScale as useDeprecatedInvertedScale } from '../../framer-motion/dist/es/value/use-inverted-scale.mjs';
68
83
  export { delay } from '../../framer-motion/dist/es/utils/delay.mjs';
84
+ export { MotionValue, motionValue } from '../../motion-dom/dist/es/value/index.mjs';
85
+ export { cancelFrame, frame, frameData } from '../../motion-dom/dist/es/frameloop/frame.mjs';
69
86
  export { hover } from '../../motion-dom/dist/es/gestures/hover.mjs';
70
87
  export { isDragActive } from '../../motion-dom/dist/es/gestures/drag/state/is-active.mjs';
71
88
  export { press } from '../../motion-dom/dist/es/gestures/press/index.mjs';
72
- export { invariant } from '../../motion-utils/dist/es/errors.mjs';
73
- export { noop } from '../../motion-utils/dist/es/noop.mjs';
74
- export { progress } from '../../motion-utils/dist/es/progress.mjs';
89
+ export { time } from '../../motion-dom/dist/es/frameloop/sync-time.mjs';
75
90
  export { animate, createScopedAnimate } from '../../framer-motion/dist/es/animation/animate/index.mjs';
76
91
  export { animateMini } from '../../framer-motion/dist/es/animation/animators/waapi/animate-style.mjs';
77
92
  export { scroll } from '../../framer-motion/dist/es/render/dom/scroll/index.mjs';
78
93
  export { scrollInfo } from '../../framer-motion/dist/es/render/dom/scroll/track.mjs';
79
94
  export { inView } from '../../framer-motion/dist/es/render/dom/viewport/index.mjs';
80
- export { MotionValue, motionValue } from '../../framer-motion/dist/es/value/index.mjs';
81
95
  export { inertia } from '../../framer-motion/dist/es/animation/generators/inertia.mjs';
82
96
  export { keyframes } from '../../framer-motion/dist/es/animation/generators/keyframes.mjs';
83
97
  export { stagger } from '../../framer-motion/dist/es/animation/utils/stagger.mjs';
84
- export { time } from '../../framer-motion/dist/es/frameloop/sync-time.mjs';
85
98
  export { clamp } from '../../framer-motion/dist/es/utils/clamp.mjs';
86
99
  export { mix } from '../../framer-motion/dist/es/utils/mix/index.mjs';
87
100
  export { pipe } from '../../framer-motion/dist/es/utils/pipe.mjs';
88
101
  export { transform } from '../../framer-motion/dist/es/utils/transform.mjs';
89
102
  export { wrap } from '../../framer-motion/dist/es/utils/wrap.mjs';
90
- export { cancelSync, sync } from '../../framer-motion/dist/es/frameloop/index-legacy.mjs';
91
103
  export { anticipate } from '../../framer-motion/dist/es/easing/anticipate.mjs';
92
104
  export { backIn, backInOut, backOut } from '../../framer-motion/dist/es/easing/back.mjs';
93
105
  export { circIn, circInOut, circOut } from '../../framer-motion/dist/es/easing/circ.mjs';
@@ -96,20 +108,7 @@ export { easeIn, easeInOut, easeOut } from '../../framer-motion/dist/es/easing/e
96
108
  export { mirrorEasing } from '../../framer-motion/dist/es/easing/modifiers/mirror.mjs';
97
109
  export { reverseEasing } from '../../framer-motion/dist/es/easing/modifiers/reverse.mjs';
98
110
  export { steps } from '../../framer-motion/dist/es/easing/steps.mjs';
99
- export { cancelFrame, frame, frameData, frameSteps } from '../../framer-motion/dist/es/frameloop/frame.mjs';
100
111
  export { distance, distance2D } from '../../framer-motion/dist/es/utils/distance.mjs';
101
112
  export { interpolate } from '../../framer-motion/dist/es/utils/interpolate.mjs';
102
- export { animations } from '../../framer-motion/dist/es/motion/features/animations.mjs';
103
- export { createBox } from '../../framer-motion/dist/es/projection/geometry/models.mjs';
104
- export { calcLength } from '../../framer-motion/dist/es/projection/geometry/delta-calc.mjs';
105
- export { filterProps } from '../../framer-motion/dist/es/render/dom/utils/filter-props.mjs';
106
- export { makeUseVisualState } from '../../framer-motion/dist/es/motion/utils/use-visual-state.mjs';
107
- export { addPointerEvent } from '../../framer-motion/dist/es/events/add-pointer-event.mjs';
108
- export { addPointerInfo } from '../../framer-motion/dist/es/events/event-info.mjs';
109
- export { isMotionValue } from '../../framer-motion/dist/es/value/utils/is-motion-value.mjs';
110
- export { isBrowser } from '../../framer-motion/dist/es/utils/is-browser.mjs';
111
- export { useUnmountEffect } from '../../framer-motion/dist/es/utils/use-unmount-effect.mjs';
112
- export { useIsomorphicLayoutEffect } from '../../framer-motion/dist/es/utils/use-isomorphic-effect.mjs';
113
- export { useForceUpdate } from '../../framer-motion/dist/es/utils/use-force-update.mjs';
114
113
  import * as namespace from '../../framer-motion/dist/es/components/Reorder/namespace.mjs';
115
114
  export { namespace as Reorder };
@@ -1,4 +1,5 @@
1
- import { MotionGlobalConfig } from '../utils/GlobalConfig.mjs';
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { MotionGlobalConfig } from '../../../../motion-utils/dist/es/global-config.mjs';
2
3
  import { stepsOrder } from './order.mjs';
3
4
  import { createRenderStep } from './render-step.mjs';
4
5
 
@@ -2,6 +2,6 @@ import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { noop } from '../../../../motion-utils/dist/es/noop.mjs';
3
3
  import { createRenderBatcher } from './batcher.mjs';
4
4
 
5
- const { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps, } = createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop, true);
5
+ const { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps, } = /* @__PURE__ */ createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop, true);
6
6
 
7
7
  export { cancelFrame, frame, frameData, frameSteps };
@@ -0,0 +1,6 @@
1
+ import { createRenderBatcher } from './batcher.mjs';
2
+
3
+ const { schedule: microtask, cancel: cancelMicrotask } =
4
+ /* @__PURE__ */ createRenderBatcher(queueMicrotask, false);
5
+
6
+ export { cancelMicrotask, microtask };
@@ -1,4 +1,5 @@
1
- import { MotionGlobalConfig } from '../utils/GlobalConfig.mjs';
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { MotionGlobalConfig } from '../../../../motion-utils/dist/es/global-config.mjs';
2
3
  import { frameData } from './frame.mjs';
3
4
 
4
5
  let now;
@@ -1,6 +1,6 @@
1
1
  import '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { memo } from '../../../../../motion-utils/dist/es/memo.mjs';
3
3
 
4
- const supportsScrollTimeline = memo(() => window.ScrollTimeline !== undefined);
4
+ const supportsScrollTimeline = /* @__PURE__ */ memo(() => window.ScrollTimeline !== undefined);
5
5
 
6
6
  export { supportsScrollTimeline };
@@ -1,8 +1,9 @@
1
- import { time } from '../frameloop/sync-time.mjs';
2
- import { SubscriptionManager } from '../utils/subscription-manager.mjs';
3
- import { velocityPerSecond } from '../utils/velocity-per-second.mjs';
4
- import { warnOnce } from '../utils/warn-once.mjs';
1
+ import '../../../../motion-utils/dist/es/errors.mjs';
2
+ import { SubscriptionManager } from '../../../../motion-utils/dist/es/subscription-manager.mjs';
3
+ import { velocityPerSecond } from '../../../../motion-utils/dist/es/velocity-per-second.mjs';
4
+ import { warnOnce } from '../../../../motion-utils/dist/es/warn-once.mjs';
5
5
  import { frame } from '../frameloop/frame.mjs';
6
+ import { time } from '../frameloop/sync-time.mjs';
6
7
 
7
8
  /**
8
9
  * Maximum time between the value of two frames, beyond which we
@@ -26,15 +27,13 @@ class MotionValue {
26
27
  * @param config - Optional configuration options
27
28
  *
28
29
  * - `transformer`: A function to transform incoming values with.
29
- *
30
- * @internal
31
30
  */
32
31
  constructor(init, options = {}) {
33
32
  /**
34
33
  * This will be replaced by the build step with the latest version number.
35
34
  * When MotionValues are provided to motion components, warn if versions are mixed.
36
35
  */
37
- this.version = "12.4.12";
36
+ this.version = "12.5.0";
38
37
  /**
39
38
  * Tracks whether this value can output a velocity. Currently this is only true
40
39
  * if the value is numerical, but we might be able to widen the scope here and support
@@ -157,8 +156,6 @@ class MotionValue {
157
156
  }
158
157
  /**
159
158
  * Attaches a passive effect to the `MotionValue`.
160
- *
161
- * @internal
162
159
  */
163
160
  attach(passiveEffect, stopPassiveEffect) {
164
161
  this.passiveEffect = passiveEffect;
@@ -252,8 +249,6 @@ class MotionValue {
252
249
  * ```
253
250
  *
254
251
  * @param animation - A function that starts the provided animation
255
- *
256
- * @internal
257
252
  */
258
253
  start(startAnimation) {
259
254
  this.stop();