motion 11.11.17 → 11.13.0-beta.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/.turbo/turbo-build.log +45 -47
- package/README.md +16 -3
- package/dist/cjs/index.js +192 -116
- package/dist/cjs/mini.js +24 -28
- package/dist/cjs/react-client.js +146 -93
- package/dist/cjs/react-mini.js +24 -28
- package/dist/es/dom/dist/es/gestures/hover.mjs +26 -0
- package/dist/es/dom/dist/es/utils/resolve-elements.mjs +22 -0
- package/dist/es/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -1
- package/dist/es/framer-motion/dist/es/animation/animate/subject.mjs +1 -1
- package/dist/es/framer-motion/dist/es/animation/animators/AcceleratedAnimation.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/utils/can-animate.mjs +1 -1
- package/dist/es/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +3 -2
- package/dist/es/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +2 -2
- package/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/linear.mjs +2 -3
- package/dist/es/framer-motion/dist/es/animation/generators/spring/defaults.mjs +27 -0
- package/dist/es/framer-motion/dist/es/animation/generators/spring/find.mjs +9 -12
- package/dist/es/framer-motion/dist/es/animation/generators/spring/index.mjs +53 -17
- package/dist/es/framer-motion/dist/es/animation/hooks/animation-controls.mjs +1 -1
- package/dist/es/framer-motion/dist/es/animation/optimized-appear/start.mjs +2 -1
- package/dist/es/framer-motion/dist/es/components/AnimatePresence/index.mjs +1 -1
- package/dist/es/framer-motion/dist/es/components/AnimateSharedLayout.mjs +1 -1
- package/dist/es/framer-motion/dist/es/components/Reorder/Group.mjs +1 -1
- package/dist/es/framer-motion/dist/es/components/Reorder/Item.mjs +1 -1
- package/dist/es/framer-motion/dist/es/easing/cubic-bezier.mjs +2 -1
- package/dist/es/framer-motion/dist/es/easing/utils/map.mjs +2 -2
- package/dist/es/framer-motion/dist/es/events/event-info.mjs +3 -3
- package/dist/es/framer-motion/dist/es/frameloop/frame.mjs +2 -1
- package/dist/es/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +2 -2
- package/dist/es/framer-motion/dist/es/gestures/drag/index.mjs +2 -1
- package/dist/es/framer-motion/dist/es/gestures/pan/index.mjs +2 -1
- package/dist/es/framer-motion/dist/es/gestures/press.mjs +2 -1
- package/dist/es/framer-motion/dist/es/motion/index.mjs +1 -1
- package/dist/es/framer-motion/dist/es/projection/animation/mix-values.mjs +2 -1
- package/dist/es/framer-motion/dist/es/projection/node/create-projection-node.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/dom/resize/handle-element.mjs +1 -1
- package/dist/es/framer-motion/dist/es/render/dom/scroll/index.mjs +2 -1
- package/dist/es/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +1 -1
- package/dist/es/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -1
- package/dist/es/framer-motion/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/framer-motion/dist/es/utils/interpolate.mjs +2 -2
- package/dist/es/framer-motion/dist/es/utils/mix/color.mjs +1 -1
- package/dist/es/framer-motion/dist/es/utils/mix/complex.mjs +1 -1
- package/dist/es/framer-motion/dist/es/value/index.mjs +1 -1
- package/dist/es/framer-motion/dist/es/value/use-inverted-scale.mjs +1 -1
- package/dist/es/framer-motion/dist/es/value/use-scroll.mjs +1 -1
- package/dist/es/motion/lib/index.mjs +4 -1
- package/dist/es/motion/lib/react.mjs +4 -1
- package/dist/motion.dev.js +192 -116
- package/dist/motion.js +1 -1
- package/package.json +3 -3
- package/dist/es/framer-motion/dist/es/render/dom/utils/resolve-element.mjs +0 -28
- /package/dist/es/{framer-motion/dist/es/utils → utils/dist/es}/errors.mjs +0 -0
- /package/dist/es/{framer-motion/dist/es/utils → utils/dist/es}/noop.mjs +0 -0
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { generateLinearEasing } from '../../animators/waapi/utils/linear.mjs';
|
|
1
2
|
import { millisecondsToSeconds, secondsToMilliseconds } from '../../../utils/time-conversion.mjs';
|
|
2
3
|
import { calcGeneratorVelocity } from '../utils/velocity.mjs';
|
|
3
4
|
import { findSpring, calcAngularFreq } from './find.mjs';
|
|
5
|
+
import { calcGeneratorDuration, maxGeneratorDuration } from '../utils/calc-duration.mjs';
|
|
6
|
+
import { clamp } from '../../../utils/clamp.mjs';
|
|
7
|
+
import { springDefaults } from './defaults.mjs';
|
|
4
8
|
|
|
5
9
|
const durationKeys = ["duration", "bounce"];
|
|
6
10
|
const physicsKeys = ["stiffness", "damping", "mass"];
|
|
@@ -9,29 +13,51 @@ function isSpringType(options, keys) {
|
|
|
9
13
|
}
|
|
10
14
|
function getSpringOptions(options) {
|
|
11
15
|
let springOptions = {
|
|
12
|
-
velocity:
|
|
13
|
-
stiffness:
|
|
14
|
-
damping:
|
|
15
|
-
mass:
|
|
16
|
+
velocity: springDefaults.velocity,
|
|
17
|
+
stiffness: springDefaults.stiffness,
|
|
18
|
+
damping: springDefaults.damping,
|
|
19
|
+
mass: springDefaults.mass,
|
|
16
20
|
isResolvedFromDuration: false,
|
|
17
21
|
...options,
|
|
18
22
|
};
|
|
19
23
|
// stiffness/damping/mass overrides duration/bounce
|
|
20
24
|
if (!isSpringType(options, physicsKeys) &&
|
|
21
25
|
isSpringType(options, durationKeys)) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
if (options.visualDuration) {
|
|
27
|
+
const visualDuration = options.visualDuration;
|
|
28
|
+
const root = (2 * Math.PI) / (visualDuration * 1.2);
|
|
29
|
+
const stiffness = root * root;
|
|
30
|
+
const damping = 2 * clamp(0.05, 1, 1 - options.bounce) * Math.sqrt(stiffness);
|
|
31
|
+
springOptions = {
|
|
32
|
+
...springOptions,
|
|
33
|
+
mass: springDefaults.mass,
|
|
34
|
+
stiffness,
|
|
35
|
+
damping,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
const derived = findSpring(options);
|
|
40
|
+
springOptions = {
|
|
41
|
+
...springOptions,
|
|
42
|
+
...derived,
|
|
43
|
+
mass: springDefaults.mass,
|
|
44
|
+
};
|
|
45
|
+
springOptions.isResolvedFromDuration = true;
|
|
46
|
+
}
|
|
29
47
|
}
|
|
30
48
|
return springOptions;
|
|
31
49
|
}
|
|
32
|
-
function spring(
|
|
33
|
-
const
|
|
34
|
-
|
|
50
|
+
function spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce = springDefaults.bounce) {
|
|
51
|
+
const options = typeof optionsOrVisualDuration !== "object"
|
|
52
|
+
? {
|
|
53
|
+
visualDuration: optionsOrVisualDuration,
|
|
54
|
+
keyframes: [0, 1],
|
|
55
|
+
bounce,
|
|
56
|
+
}
|
|
57
|
+
: optionsOrVisualDuration;
|
|
58
|
+
let { restSpeed, restDelta } = options;
|
|
59
|
+
const origin = options.keyframes[0];
|
|
60
|
+
const target = options.keyframes[options.keyframes.length - 1];
|
|
35
61
|
/**
|
|
36
62
|
* This is the Iterator-spec return value. We ensure it's mutable rather than using a generator
|
|
37
63
|
* to reduce GC during animation.
|
|
@@ -53,8 +79,12 @@ function spring({ keyframes, restDelta, restSpeed, ...options }) {
|
|
|
53
79
|
* ratio between feeling good and finishing as soon as changes are imperceptible.
|
|
54
80
|
*/
|
|
55
81
|
const isGranularScale = Math.abs(initialDelta) < 5;
|
|
56
|
-
restSpeed || (restSpeed = isGranularScale
|
|
57
|
-
|
|
82
|
+
restSpeed || (restSpeed = isGranularScale
|
|
83
|
+
? springDefaults.restSpeed.granular
|
|
84
|
+
: springDefaults.restSpeed.default);
|
|
85
|
+
restDelta || (restDelta = isGranularScale
|
|
86
|
+
? springDefaults.restDelta.granular
|
|
87
|
+
: springDefaults.restDelta.default);
|
|
58
88
|
let resolveSpring;
|
|
59
89
|
if (dampingRatio < 1) {
|
|
60
90
|
const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);
|
|
@@ -95,7 +125,7 @@ function spring({ keyframes, restDelta, restSpeed, ...options }) {
|
|
|
95
125
|
dampedAngularFreq);
|
|
96
126
|
};
|
|
97
127
|
}
|
|
98
|
-
|
|
128
|
+
const generator = {
|
|
99
129
|
calculatedDuration: isResolvedFromDuration ? duration || null : null,
|
|
100
130
|
next: (t) => {
|
|
101
131
|
const current = resolveSpring(t);
|
|
@@ -123,7 +153,13 @@ function spring({ keyframes, restDelta, restSpeed, ...options }) {
|
|
|
123
153
|
state.value = state.done ? target : current;
|
|
124
154
|
return state;
|
|
125
155
|
},
|
|
156
|
+
toString: () => {
|
|
157
|
+
const calculatedDuration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);
|
|
158
|
+
const easing = generateLinearEasing((progress) => generator.next(calculatedDuration * progress).value, calculatedDuration, 30);
|
|
159
|
+
return calculatedDuration + "ms " + easing;
|
|
160
|
+
},
|
|
126
161
|
};
|
|
162
|
+
return generator;
|
|
127
163
|
}
|
|
128
164
|
|
|
129
165
|
export { spring };
|
|
@@ -3,7 +3,8 @@ import { startWaapiAnimation } from '../animators/waapi/index.mjs';
|
|
|
3
3
|
import { optimizedAppearDataId } from './data-id.mjs';
|
|
4
4
|
import { handoffOptimizedAppearAnimation } from './handoff.mjs';
|
|
5
5
|
import { appearAnimationStore, appearComplete } from './store.mjs';
|
|
6
|
-
import
|
|
6
|
+
import '../../../../../utils/dist/es/errors.mjs';
|
|
7
|
+
import { noop } from '../../../../../utils/dist/es/noop.mjs';
|
|
7
8
|
import { getOptimisedAppearId } from './get-appear-id.mjs';
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -3,7 +3,7 @@ import { jsx, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo, useRef, useState, useContext } from 'react';
|
|
4
4
|
import { PresenceChild } from './PresenceChild.mjs';
|
|
5
5
|
import { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';
|
|
6
|
-
import { invariant } from '
|
|
6
|
+
import { invariant } from '../../../../../utils/dist/es/errors.mjs';
|
|
7
7
|
import { useConstant } from '../../utils/use-constant.mjs';
|
|
8
8
|
import { onlyElements, getChildKey } from './utils.mjs';
|
|
9
9
|
import { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { invariant } from '
|
|
2
|
+
import { invariant } from '../../../../utils/dist/es/errors.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useConstant } from '../utils/use-constant.mjs';
|
|
5
5
|
import { LayoutGroup } from './LayoutGroup/index.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { invariant } from '
|
|
3
|
+
import { invariant } from '../../../../../utils/dist/es/errors.mjs';
|
|
4
4
|
import { forwardRef, useRef, useEffect } from 'react';
|
|
5
5
|
import { ReorderContext } from '../../context/ReorderContext.mjs';
|
|
6
6
|
import { motion } from '../../render/components/motion/proxy.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { invariant } from '
|
|
3
|
+
import { invariant } from '../../../../../utils/dist/es/errors.mjs';
|
|
4
4
|
import { forwardRef, useContext } from 'react';
|
|
5
5
|
import { ReorderContext } from '../../context/ReorderContext.mjs';
|
|
6
6
|
import { motion } from '../../render/components/motion/proxy.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { invariant } from '
|
|
1
|
+
import { invariant } from '../../../../../utils/dist/es/errors.mjs';
|
|
2
|
+
import { noop } from '../../../../../utils/dist/es/noop.mjs';
|
|
2
3
|
import { cubicBezier } from '../cubic-bezier.mjs';
|
|
3
|
-
import { noop } from '../../utils/noop.mjs';
|
|
4
4
|
import { easeIn, easeInOut, easeOut } from '../ease.mjs';
|
|
5
5
|
import { circIn, circInOut, circOut } from '../circ.mjs';
|
|
6
6
|
import { backIn, backInOut, backOut } from '../back.mjs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { isPrimaryPointer } from './utils/is-primary-pointer.mjs';
|
|
2
2
|
|
|
3
|
-
function extractEventInfo(event
|
|
3
|
+
function extractEventInfo(event) {
|
|
4
4
|
return {
|
|
5
5
|
point: {
|
|
6
|
-
x: event
|
|
7
|
-
y: event
|
|
6
|
+
x: event.pageX,
|
|
7
|
+
y: event.pageY,
|
|
8
8
|
},
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '../../../../utils/dist/es/errors.mjs';
|
|
2
|
+
import { noop } from '../../../../utils/dist/es/noop.mjs';
|
|
2
3
|
import { createRenderBatcher } from './batcher.mjs';
|
|
3
4
|
|
|
4
5
|
const { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps, } = createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop, true);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { invariant } from '
|
|
1
|
+
import { invariant } from '../../../../../utils/dist/es/errors.mjs';
|
|
2
2
|
import { PanSession } from '../pan/PanSession.mjs';
|
|
3
3
|
import { getGlobalLock } from './utils/lock.mjs';
|
|
4
4
|
import { isRefObject } from '../../utils/is-ref-object.mjs';
|
|
@@ -56,7 +56,7 @@ class VisualElementDragControls {
|
|
|
56
56
|
// the component.
|
|
57
57
|
dragSnapToOrigin ? this.pauseAnimation() : this.stopAnimation();
|
|
58
58
|
if (snapToCursor) {
|
|
59
|
-
this.snapToCursor(extractEventInfo(event
|
|
59
|
+
this.snapToCursor(extractEventInfo(event).point);
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
const onStart = (event, info) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Feature } from '../../motion/features/Feature.mjs';
|
|
2
|
-
import
|
|
2
|
+
import '../../../../../utils/dist/es/errors.mjs';
|
|
3
|
+
import { noop } from '../../../../../utils/dist/es/noop.mjs';
|
|
3
4
|
import { VisualElementDragControls } from './VisualElementDragControls.mjs';
|
|
4
5
|
|
|
5
6
|
class DragGesture extends Feature {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PanSession } from './PanSession.mjs';
|
|
2
2
|
import { addPointerEvent } from '../../events/add-pointer-event.mjs';
|
|
3
3
|
import { Feature } from '../../motion/features/Feature.mjs';
|
|
4
|
-
import
|
|
4
|
+
import '../../../../../utils/dist/es/errors.mjs';
|
|
5
|
+
import { noop } from '../../../../../utils/dist/es/noop.mjs';
|
|
5
6
|
import { getContextWindow } from '../../utils/get-context-window.mjs';
|
|
6
7
|
import { frame } from '../../frameloop/frame.mjs';
|
|
7
8
|
|
|
@@ -5,7 +5,8 @@ import { Feature } from '../motion/features/Feature.mjs';
|
|
|
5
5
|
import { pipe } from '../utils/pipe.mjs';
|
|
6
6
|
import { isDragActive } from './drag/utils/lock.mjs';
|
|
7
7
|
import { isNodeOrChild } from './utils/is-node-or-child.mjs';
|
|
8
|
-
import
|
|
8
|
+
import '../../../../utils/dist/es/errors.mjs';
|
|
9
|
+
import { noop } from '../../../../utils/dist/es/noop.mjs';
|
|
9
10
|
import { frame } from '../frameloop/frame.mjs';
|
|
10
11
|
|
|
11
12
|
function fireSyntheticPointerEvent(name, handler) {
|
|
@@ -11,7 +11,7 @@ import { isBrowser } from '../utils/is-browser.mjs';
|
|
|
11
11
|
import { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';
|
|
12
12
|
import { LazyContext } from '../context/LazyContext.mjs';
|
|
13
13
|
import { motionComponentSymbol } from './utils/symbol.mjs';
|
|
14
|
-
import { warning, invariant } from '
|
|
14
|
+
import { warning, invariant } from '../../../../utils/dist/es/errors.mjs';
|
|
15
15
|
import { featureDefinitions } from './features/definitions.mjs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { circOut } from '../../easing/circ.mjs';
|
|
2
2
|
import { progress } from '../../utils/progress.mjs';
|
|
3
3
|
import { mixNumber } from '../../utils/mix/number.mjs';
|
|
4
|
-
import
|
|
4
|
+
import '../../../../../utils/dist/es/errors.mjs';
|
|
5
|
+
import { noop } from '../../../../../utils/dist/es/noop.mjs';
|
|
5
6
|
import { percent, px } from '../../value/types/numbers/units.mjs';
|
|
6
7
|
|
|
7
8
|
const borders = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"];
|
|
@@ -20,7 +20,8 @@ import { isSVGElement } from '../../render/dom/utils/is-svg-element.mjs';
|
|
|
20
20
|
import { animateSingleValue } from '../../animation/animate/single-value.mjs';
|
|
21
21
|
import { clamp } from '../../utils/clamp.mjs';
|
|
22
22
|
import { cancelFrame, frameData, frameSteps, frame } from '../../frameloop/frame.mjs';
|
|
23
|
-
import
|
|
23
|
+
import '../../../../../utils/dist/es/errors.mjs';
|
|
24
|
+
import { noop } from '../../../../../utils/dist/es/noop.mjs';
|
|
24
25
|
import { time } from '../../frameloop/sync-time.mjs';
|
|
25
26
|
import { microtask } from '../../frameloop/microtask.mjs';
|
|
26
27
|
import { getOptimisedAppearId } from '../../animation/optimized-appear/get-appear-id.mjs';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { scrollInfo } from './track.mjs';
|
|
2
2
|
import { observeTimeline } from './observe.mjs';
|
|
3
3
|
import { supportsScrollTimeline } from './supports.mjs';
|
|
4
|
-
import
|
|
4
|
+
import '../../../../../../utils/dist/es/errors.mjs';
|
|
5
|
+
import { noop } from '../../../../../../utils/dist/es/noop.mjs';
|
|
5
6
|
|
|
6
7
|
function scrollTimelineFallback({ source, container, axis = "y", }) {
|
|
7
8
|
// Support legacy source argument. Deprecate later.
|
|
@@ -17,7 +17,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
17
17
|
* and warn against mismatches.
|
|
18
18
|
*/
|
|
19
19
|
if (process.env.NODE_ENV === "development") {
|
|
20
|
-
warnOnce(nextValue.version === "11.
|
|
20
|
+
warnOnce(nextValue.version === "11.13.0-beta.0", `Attempting to mix Motion versions ${nextValue.version} with 11.13.0-beta.0 may not work as expected.`);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
else if (isMotionValue(prevValue)) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { invariant } from './errors.mjs';
|
|
2
1
|
import { clamp } from './clamp.mjs';
|
|
3
2
|
import { pipe } from './pipe.mjs';
|
|
4
3
|
import { progress } from './progress.mjs';
|
|
5
|
-
import {
|
|
4
|
+
import { invariant } from '../../../../utils/dist/es/errors.mjs';
|
|
5
|
+
import { noop } from '../../../../utils/dist/es/noop.mjs';
|
|
6
6
|
import { mix } from './mix/index.mjs';
|
|
7
7
|
|
|
8
8
|
function createMixers(output, ease, customMixer) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mixNumber } from './number.mjs';
|
|
2
|
-
import { warning } from '
|
|
2
|
+
import { warning } from '../../../../../utils/dist/es/errors.mjs';
|
|
3
3
|
import { hslaToRgba } from '../hsla-to-rgba.mjs';
|
|
4
4
|
import { hex } from '../../value/types/color/hex.mjs';
|
|
5
5
|
import { rgba } from '../../value/types/color/rgba.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mixNumber as mixNumber$1 } from './number.mjs';
|
|
2
2
|
import { mixColor } from './color.mjs';
|
|
3
3
|
import { pipe } from '../pipe.mjs';
|
|
4
|
-
import { warning } from '
|
|
4
|
+
import { warning } from '../../../../../utils/dist/es/errors.mjs';
|
|
5
5
|
import { color } from '../../value/types/color/index.mjs';
|
|
6
6
|
import { complex, analyseComplexValue } from '../../value/types/complex/index.mjs';
|
|
7
7
|
import { isCSSVariableToken } from '../../render/dom/utils/is-css-variable.mjs';
|
|
@@ -34,7 +34,7 @@ class MotionValue {
|
|
|
34
34
|
* This will be replaced by the build step with the latest version number.
|
|
35
35
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
36
36
|
*/
|
|
37
|
-
this.version = "11.
|
|
37
|
+
this.version = "11.13.0-beta.0";
|
|
38
38
|
/**
|
|
39
39
|
* Tracks whether this value can output a velocity. Currently this is only true
|
|
40
40
|
* if the value is numerical, but we might be able to widen the scope here and support
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTransform } from './use-transform.mjs';
|
|
2
|
-
import { invariant, warning } from '
|
|
2
|
+
import { invariant, warning } from '../../../../utils/dist/es/errors.mjs';
|
|
3
3
|
import { useMotionValue } from './use-motion-value.mjs';
|
|
4
4
|
import { MotionContext } from '../context/MotionContext/index.mjs';
|
|
5
5
|
import { useContext } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { motionValue } from './index.mjs';
|
|
2
2
|
import { useConstant } from '../utils/use-constant.mjs';
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
|
-
import { warning } from '
|
|
4
|
+
import { warning } from '../../../../utils/dist/es/errors.mjs';
|
|
5
5
|
import { scroll } from '../render/dom/scroll/index.mjs';
|
|
6
6
|
import { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';
|
|
7
7
|
|
|
@@ -20,7 +20,6 @@ export { transform } from '../../framer-motion/dist/es/utils/transform.mjs';
|
|
|
20
20
|
export { clamp } from '../../framer-motion/dist/es/utils/clamp.mjs';
|
|
21
21
|
export { delayInSeconds as delay } from '../../framer-motion/dist/es/utils/delay.mjs';
|
|
22
22
|
export { distance, distance2D } from '../../framer-motion/dist/es/utils/distance.mjs';
|
|
23
|
-
export { invariant, warning } from '../../framer-motion/dist/es/utils/errors.mjs';
|
|
24
23
|
export { interpolate } from '../../framer-motion/dist/es/utils/interpolate.mjs';
|
|
25
24
|
export { mix } from '../../framer-motion/dist/es/utils/mix/index.mjs';
|
|
26
25
|
export { pipe } from '../../framer-motion/dist/es/utils/pipe.mjs';
|
|
@@ -28,3 +27,7 @@ export { progress } from '../../framer-motion/dist/es/utils/progress.mjs';
|
|
|
28
27
|
export { wrap } from '../../framer-motion/dist/es/utils/wrap.mjs';
|
|
29
28
|
export { cancelSync, sync } from '../../framer-motion/dist/es/frameloop/index-legacy.mjs';
|
|
30
29
|
export { cancelFrame, frame, frameData, frameSteps } from '../../framer-motion/dist/es/frameloop/frame.mjs';
|
|
30
|
+
export { invariant, warning } from '../../utils/dist/es/errors.mjs';
|
|
31
|
+
export { noop } from '../../utils/dist/es/noop.mjs';
|
|
32
|
+
export { hover } from '../../dom/dist/es/gestures/hover.mjs';
|
|
33
|
+
export { resolveElements } from '../../dom/dist/es/utils/resolve-elements.mjs';
|
|
@@ -90,7 +90,6 @@ export { steps } from '../../framer-motion/dist/es/easing/steps.mjs';
|
|
|
90
90
|
export { mirrorEasing } from '../../framer-motion/dist/es/easing/modifiers/mirror.mjs';
|
|
91
91
|
export { reverseEasing } from '../../framer-motion/dist/es/easing/modifiers/reverse.mjs';
|
|
92
92
|
export { distance, distance2D } from '../../framer-motion/dist/es/utils/distance.mjs';
|
|
93
|
-
export { invariant, warning } from '../../framer-motion/dist/es/utils/errors.mjs';
|
|
94
93
|
export { interpolate } from '../../framer-motion/dist/es/utils/interpolate.mjs';
|
|
95
94
|
export { cancelFrame, frame, frameData, frameSteps } from '../../framer-motion/dist/es/frameloop/frame.mjs';
|
|
96
95
|
export { animations } from '../../framer-motion/dist/es/motion/features/animations.mjs';
|
|
@@ -106,5 +105,9 @@ export { isBrowser } from '../../framer-motion/dist/es/utils/is-browser.mjs';
|
|
|
106
105
|
export { useUnmountEffect } from '../../framer-motion/dist/es/utils/use-unmount-effect.mjs';
|
|
107
106
|
export { useIsomorphicLayoutEffect } from '../../framer-motion/dist/es/utils/use-isomorphic-effect.mjs';
|
|
108
107
|
export { useForceUpdate } from '../../framer-motion/dist/es/utils/use-force-update.mjs';
|
|
108
|
+
export { invariant, warning } from '../../utils/dist/es/errors.mjs';
|
|
109
|
+
export { noop } from '../../utils/dist/es/noop.mjs';
|
|
110
|
+
export { hover } from '../../dom/dist/es/gestures/hover.mjs';
|
|
111
|
+
export { resolveElements } from '../../dom/dist/es/utils/resolve-elements.mjs';
|
|
109
112
|
import * as namespace from '../../framer-motion/dist/es/components/Reorder/namespace.mjs';
|
|
110
113
|
export { namespace as Reorder };
|