motion 12.4.13 → 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.
- package/dist/cjs/debug.js +12 -12
- package/dist/cjs/index.js +1277 -1302
- package/dist/cjs/mini.js +7 -7
- package/dist/cjs/react-client.js +535 -540
- package/dist/cjs/react-m.js +20 -19
- package/dist/cjs/react-mini.js +1 -1
- package/dist/es/framer-motion/dist/es/animation/animate/single-value.mjs +2 -1
- package/dist/es/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +2 -1
- package/dist/es/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +1 -1
- package/dist/es/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +3 -2
- package/dist/es/framer-motion/dist/es/animation/animators/waapi/index.mjs +2 -2
- package/dist/es/framer-motion/dist/es/animation/generators/utils/velocity.mjs +2 -1
- package/dist/es/framer-motion/dist/es/animation/interfaces/motion-value.mjs +2 -2
- package/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +1 -1
- package/dist/es/framer-motion/dist/es/animation/optimized-appear/start.mjs +4 -4
- package/dist/es/framer-motion/dist/es/animation/sequence/utils/edit.mjs +2 -1
- package/dist/es/framer-motion/dist/es/components/AnimatePresence/index.mjs +1 -1
- package/dist/es/framer-motion/dist/es/components/Reorder/utils/check-reorder.mjs +2 -1
- package/dist/es/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +1 -1
- package/dist/es/framer-motion/dist/es/gestures/hover.mjs +1 -1
- package/dist/es/framer-motion/dist/es/gestures/pan/PanSession.mjs +1 -1
- package/dist/es/framer-motion/dist/es/gestures/pan/index.mjs +1 -1
- package/dist/es/framer-motion/dist/es/gestures/press.mjs +1 -1
- package/dist/es/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs +3 -2
- package/dist/es/framer-motion/dist/es/motion/utils/use-visual-element.mjs +7 -6
- package/dist/es/framer-motion/dist/es/projection/node/create-projection-node.mjs +6 -6
- package/dist/es/framer-motion/dist/es/projection/shared/stack.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/VisualElement.mjs +6 -5
- package/dist/es/framer-motion/dist/es/render/components/create-proxy.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +1 -1
- package/dist/es/framer-motion/dist/es/render/dom/scroll/info.mjs +1 -1
- package/dist/es/framer-motion/dist/es/render/dom/scroll/observe.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/dom/scroll/track.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/svg/config-motion.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/utils/flat-tree.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/utils/motion-values.mjs +4 -3
- package/dist/es/framer-motion/dist/es/render/utils/setters.mjs +2 -1
- package/dist/es/framer-motion/dist/es/utils/delay.mjs +2 -2
- package/dist/es/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs +2 -1
- package/dist/es/framer-motion/dist/es/utils/use-animation-frame.mjs +2 -1
- package/dist/es/framer-motion/dist/es/utils/use-force-update.mjs +2 -1
- package/dist/es/framer-motion/dist/es/utils/use-instant-transition.mjs +2 -1
- package/dist/es/framer-motion/dist/es/value/scroll/use-element-scroll.mjs +2 -1
- package/dist/es/framer-motion/dist/es/value/scroll/use-viewport-scroll.mjs +2 -1
- package/dist/es/framer-motion/dist/es/value/use-combine-values.mjs +3 -2
- package/dist/es/framer-motion/dist/es/value/use-computed.mjs +2 -1
- package/dist/es/framer-motion/dist/es/value/use-inverted-scale.mjs +3 -3
- package/dist/es/framer-motion/dist/es/value/use-motion-value.mjs +2 -1
- package/dist/es/framer-motion/dist/es/value/use-scroll.mjs +4 -4
- package/dist/es/framer-motion/dist/es/value/use-spring.mjs +1 -1
- package/dist/es/framer-motion/dist/es/value/use-transform.mjs +1 -1
- package/dist/es/framer-motion/dist/es/value/use-velocity.mjs +2 -1
- package/dist/es/framer-motion/dist/es/value/use-will-change/WillChangeMotionValue.mjs +3 -2
- package/dist/es/motion/lib/debug.mjs +1 -1
- package/dist/es/motion/lib/index.mjs +3 -4
- package/dist/es/motion/lib/react.mjs +19 -20
- package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/batcher.mjs +2 -1
- package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/frame.mjs +1 -1
- package/dist/es/motion-dom/dist/es/frameloop/microtask.mjs +6 -0
- package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/sync-time.mjs +2 -1
- package/dist/es/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +1 -1
- package/dist/es/{framer-motion → motion-dom}/dist/es/value/index.mjs +6 -11
- package/dist/motion.dev.js +1277 -1302
- package/dist/motion.js +1 -1
- package/package.json +3 -3
- package/dist/es/framer-motion/dist/es/frameloop/index-legacy.mjs +0 -20
- package/dist/es/framer-motion/dist/es/frameloop/microtask.mjs +0 -5
- package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/order.mjs +0 -0
- package/dist/es/{framer-motion → motion-dom}/dist/es/frameloop/render-step.mjs +0 -0
- package/dist/es/{framer-motion → motion-dom}/dist/es/stats/animation-count.mjs +0 -0
- package/dist/es/{framer-motion → motion-dom}/dist/es/stats/buffer.mjs +0 -0
- package/dist/es/{framer-motion → motion-dom}/dist/es/stats/index.mjs +1 -1
- /package/dist/es/{framer-motion/dist/es/utils → motion-utils/dist/es}/array.mjs +0 -0
- /package/dist/es/{framer-motion/dist/es/utils/GlobalConfig.mjs → motion-utils/dist/es/global-config.mjs} +0 -0
- /package/dist/es/{framer-motion/dist/es/utils → motion-utils/dist/es}/subscription-manager.mjs +0 -0
- /package/dist/es/{framer-motion/dist/es/utils → motion-utils/dist/es}/velocity-per-second.mjs +0 -0
- /package/dist/es/{framer-motion/dist/es/utils → motion-utils/dist/es}/warn-once.mjs +0 -0
|
@@ -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 {
|
|
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 '../../
|
|
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 {
|
|
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
|
|
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 };
|
|
@@ -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
|
|
2
|
-
import { SubscriptionManager } from '
|
|
3
|
-
import { velocityPerSecond } from '
|
|
4
|
-
import { warnOnce } from '
|
|
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.
|
|
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();
|