framer-motion 6.3.11 → 6.3.12
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 +2 -20
- package/dist/es/animation/use-animated-state.mjs +0 -1
- package/dist/es/animation/utils/transitions.mjs +0 -2
- package/dist/es/context/DeprecatedLayoutGroupContext.mjs +0 -1
- package/dist/es/context/LayoutGroupContext.mjs +0 -3
- package/dist/es/motion/index.mjs +0 -2
- package/dist/es/render/utils/animation.mjs +0 -3
- package/dist/es/render/utils/motion-values.mjs +1 -1
- package/dist/es/value/index.mjs +1 -4
- package/dist/es/value/use-inverted-scale.mjs +0 -1
- package/dist/es/value/utils/resolve-motion-value.mjs +0 -2
- package/dist/framer-motion.dev.js +2 -20
- package/dist/framer-motion.js +1 -1
- package/dist/index.d.ts +4118 -0
- package/dist/projection.dev.js +2 -9
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/three-entry.d.ts +2428 -0
- package/package.json +4 -4
- package/types/animation/animate.d.ts +0 -54
- package/types/animation/animation-controls.d.ts +0 -5
- package/types/animation/types.d.ts +0 -79
- package/types/animation/use-animated-state.d.ts +0 -6
- package/types/animation/use-animation.d.ts +0 -31
- package/types/animation/utils/default-transitions.d.ts +0 -19
- package/types/animation/utils/easing.d.ts +0 -3
- package/types/animation/utils/is-animatable.d.ts +0 -11
- package/types/animation/utils/is-animation-controls.d.ts +0 -2
- package/types/animation/utils/is-keyframes-target.d.ts +0 -2
- package/types/animation/utils/transitions.d.ts +0 -29
- package/types/animation/utils/variant-resolvers.d.ts +0 -12
- package/types/components/AnimatePresence/PresenceChild.d.ts +0 -12
- package/types/components/AnimatePresence/index.d.ts +0 -36
- package/types/components/AnimatePresence/types.d.ts +0 -61
- package/types/components/AnimatePresence/use-presence.d.ts +0 -52
- package/types/components/AnimateSharedLayout.d.ts +0 -2
- package/types/components/LayoutGroup/index.d.ts +0 -12
- package/types/components/LazyMotion/index.d.ts +0 -38
- package/types/components/LazyMotion/types.d.ts +0 -54
- package/types/components/MotionConfig/index.d.ts +0 -25
- package/types/components/Reorder/Group.d.ts +0 -297
- package/types/components/Reorder/Item.d.ts +0 -278
- package/types/components/Reorder/index.d.ts +0 -509
- package/types/components/Reorder/types.d.ts +0 -10
- package/types/components/Reorder/utils/check-reorder.d.ts +0 -2
- package/types/context/DeprecatedLayoutGroupContext.d.ts +0 -6
- package/types/context/LayoutGroupContext.d.ts +0 -11
- package/types/context/LazyContext.d.ts +0 -7
- package/types/context/MotionConfigContext.d.ts +0 -36
- package/types/context/MotionContext/create.d.ts +0 -3
- package/types/context/MotionContext/index.d.ts +0 -9
- package/types/context/MotionContext/utils.d.ts +0 -3
- package/types/context/PresenceContext.d.ts +0 -17
- package/types/context/ReorderContext.d.ts +0 -3
- package/types/context/SwitchLayoutGroupContext.d.ts +0 -23
- package/types/events/event-info.d.ts +0 -5
- package/types/events/types.d.ts +0 -10
- package/types/events/use-dom-event.d.ts +0 -24
- package/types/events/use-pointer-event.d.ts +0 -4
- package/types/events/utils.d.ts +0 -3
- package/types/gestures/PanSession.d.ts +0 -127
- package/types/gestures/drag/VisualElementDragControls.d.ts +0 -56
- package/types/gestures/drag/types.d.ts +0 -294
- package/types/gestures/drag/use-drag-controls.d.ts +0 -74
- package/types/gestures/drag/use-drag.d.ts +0 -7
- package/types/gestures/drag/utils/constraints.d.ts +0 -77
- package/types/gestures/drag/utils/lock.d.ts +0 -4
- package/types/gestures/types.d.ts +0 -225
- package/types/gestures/use-focus-gesture.d.ts +0 -8
- package/types/gestures/use-hover-gesture.d.ts +0 -2
- package/types/gestures/use-pan-gesture.d.ts +0 -14
- package/types/gestures/use-tap-gesture.d.ts +0 -6
- package/types/gestures/utils/event-type.d.ts +0 -2
- package/types/gestures/utils/is-node-or-child.d.ts +0 -8
- package/types/index.d.ts +0 -96
- package/types/motion/features/animations.d.ts +0 -2
- package/types/motion/features/definitions.d.ts +0 -3
- package/types/motion/features/drag.d.ts +0 -2
- package/types/motion/features/gestures.d.ts +0 -2
- package/types/motion/features/layout/MeasureLayout.d.ts +0 -3
- package/types/motion/features/layout/index.d.ts +0 -2
- package/types/motion/features/layout/types.d.ts +0 -75
- package/types/motion/features/types.d.ts +0 -52
- package/types/motion/features/use-features.d.ts +0 -8
- package/types/motion/features/use-projection.d.ts +0 -3
- package/types/motion/features/viewport/observers.d.ts +0 -3
- package/types/motion/features/viewport/types.d.ts +0 -21
- package/types/motion/features/viewport/use-viewport.d.ts +0 -2
- package/types/motion/index.d.ts +0 -25
- package/types/motion/types.d.ts +0 -279
- package/types/motion/utils/VisualElementHandler.d.ts +0 -18
- package/types/motion/utils/is-forced-motion-value.d.ts +0 -2
- package/types/motion/utils/make-renderless-component.d.ts +0 -2
- package/types/motion/utils/should-inherit-variant.d.ts +0 -2
- package/types/motion/utils/use-motion-ref.d.ts +0 -8
- package/types/motion/utils/use-visual-element.d.ts +0 -6
- package/types/motion/utils/use-visual-state.d.ts +0 -14
- package/types/motion/utils/valid-prop.d.ts +0 -9
- package/types/projection/animation/mix-values.d.ts +0 -2
- package/types/projection/geometry/conversion.d.ts +0 -14
- package/types/projection/geometry/copy.d.ts +0 -13
- package/types/projection/geometry/delta-apply.d.ts +0 -37
- package/types/projection/geometry/delta-calc.d.ts +0 -10
- package/types/projection/geometry/delta-remove.d.ts +0 -20
- package/types/projection/geometry/models.d.ts +0 -5
- package/types/projection/geometry/types.d.ts +0 -29
- package/types/projection/geometry/utils.d.ts +0 -3
- package/types/projection/index.d.ts +0 -14
- package/types/projection/node/DocumentProjectionNode.d.ts +0 -108
- package/types/projection/node/HTMLProjectionNode.d.ts +0 -112
- package/types/projection/node/create-projection-node.d.ts +0 -301
- package/types/projection/node/group.d.ts +0 -7
- package/types/projection/node/id.d.ts +0 -1
- package/types/projection/node/types.d.ts +0 -136
- package/types/projection/shared/stack.d.ts +0 -17
- package/types/projection/styles/scale-border-radius.d.ts +0 -11
- package/types/projection/styles/scale-box-shadow.d.ts +0 -2
- package/types/projection/styles/scale-correction.d.ts +0 -3
- package/types/projection/styles/transform-origin.d.ts +0 -0
- package/types/projection/styles/transform.d.ts +0 -4
- package/types/projection/styles/types.d.ts +0 -9
- package/types/projection/use-instant-layout-transition.d.ts +0 -1
- package/types/projection/use-reset-projection.d.ts +0 -1
- package/types/projection/utils/each-axis.d.ts +0 -3
- package/types/projection/utils/has-transform.d.ts +0 -3
- package/types/projection/utils/measure.d.ts +0 -4
- package/types/render/dom/create-visual-element.d.ts +0 -2
- package/types/render/dom/features-animation.d.ts +0 -5
- package/types/render/dom/features-max.d.ts +0 -5
- package/types/render/dom/motion-minimal.d.ts +0 -5
- package/types/render/dom/motion-proxy.d.ts +0 -30
- package/types/render/dom/motion.d.ts +0 -25
- package/types/render/dom/types.d.ts +0 -28
- package/types/render/dom/use-render.d.ts +0 -4
- package/types/render/dom/utils/camel-to-dash.d.ts +0 -4
- package/types/render/dom/utils/create-config.d.ts +0 -8
- package/types/render/dom/utils/css-variables-conversion.d.ts +0 -22
- package/types/render/dom/utils/filter-props.d.ts +0 -4
- package/types/render/dom/utils/is-css-variable.d.ts +0 -4
- package/types/render/dom/utils/is-svg-component.d.ts +0 -2
- package/types/render/dom/utils/parse-dom-variant.d.ts +0 -6
- package/types/render/dom/utils/unit-conversion.d.ts +0 -27
- package/types/render/dom/value-types/animatable-none.d.ts +0 -1
- package/types/render/dom/value-types/defaults.d.ts +0 -9
- package/types/render/dom/value-types/dimensions.d.ts +0 -8
- package/types/render/dom/value-types/find.d.ts +0 -9
- package/types/render/dom/value-types/get-as-type.d.ts +0 -5
- package/types/render/dom/value-types/number.d.ts +0 -2
- package/types/render/dom/value-types/test.d.ts +0 -5
- package/types/render/dom/value-types/type-auto.d.ts +0 -5
- package/types/render/dom/value-types/type-int.d.ts +0 -8
- package/types/render/dom/value-types/types.d.ts +0 -4
- package/types/render/html/config-motion.d.ts +0 -3
- package/types/render/html/supported-elements.d.ts +0 -7
- package/types/render/html/types.d.ts +0 -61
- package/types/render/html/use-props.d.ts +0 -8
- package/types/render/html/utils/build-styles.d.ts +0 -5
- package/types/render/html/utils/build-transform.d.ts +0 -15
- package/types/render/html/utils/create-render-state.d.ts +0 -7
- package/types/render/html/utils/render.d.ts +0 -4
- package/types/render/html/utils/scrape-motion-values.d.ts +0 -2
- package/types/render/html/utils/transform.d.ts +0 -15
- package/types/render/html/visual-element.d.ts +0 -6
- package/types/render/index.d.ts +0 -2
- package/types/render/svg/config-motion.d.ts +0 -3
- package/types/render/svg/lowercase-elements.d.ts +0 -5
- package/types/render/svg/supported-elements.d.ts +0 -7
- package/types/render/svg/types.d.ts +0 -44
- package/types/render/svg/use-props.d.ts +0 -7
- package/types/render/svg/utils/build-attrs.d.ts +0 -8
- package/types/render/svg/utils/camel-case-attrs.d.ts +0 -4
- package/types/render/svg/utils/create-render-state.d.ts +0 -2
- package/types/render/svg/utils/path.d.ts +0 -9
- package/types/render/svg/utils/render.d.ts +0 -4
- package/types/render/svg/utils/scrape-motion-values.d.ts +0 -2
- package/types/render/svg/utils/transform-origin.d.ts +0 -6
- package/types/render/svg/visual-element.d.ts +0 -2
- package/types/render/types.d.ts +0 -113
- package/types/render/utils/animation-state.d.ts +0 -31
- package/types/render/utils/animation.d.ts +0 -21
- package/types/render/utils/compare-by-depth.d.ts +0 -5
- package/types/render/utils/flat-tree.d.ts +0 -8
- package/types/render/utils/is-draggable.d.ts +0 -2
- package/types/render/utils/lifecycles.d.ts +0 -114
- package/types/render/utils/motion-values.d.ts +0 -3
- package/types/render/utils/setters.d.ts +0 -792
- package/types/render/utils/types.d.ts +0 -9
- package/types/render/utils/variants.d.ts +0 -20
- package/types/three-entry.d.ts +0 -19
- package/types/types.d.ts +0 -981
- package/types/utils/array.d.ts +0 -3
- package/types/utils/each-axis.d.ts +0 -1
- package/types/utils/is-browser.d.ts +0 -1
- package/types/utils/is-numerical-string.d.ts +0 -4
- package/types/utils/is-ref-object.d.ts +0 -2
- package/types/utils/is-zero-value-string.d.ts +0 -4
- package/types/utils/noop.d.ts +0 -1
- package/types/utils/process.d.ts +0 -1
- package/types/utils/resolve-value.d.ts +0 -3
- package/types/utils/shallow-compare.d.ts +0 -1
- package/types/utils/subscription-manager.d.ts +0 -9
- package/types/utils/time-conversion.d.ts +0 -7
- package/types/utils/transform.d.ts +0 -91
- package/types/utils/use-animation-frame.d.ts +0 -2
- package/types/utils/use-constant.d.ts +0 -10
- package/types/utils/use-cycle.d.ts +0 -30
- package/types/utils/use-force-update.d.ts +0 -1
- package/types/utils/use-id.d.ts +0 -6
- package/types/utils/use-instant-transition-state.d.ts +0 -3
- package/types/utils/use-instant-transition.d.ts +0 -1
- package/types/utils/use-is-mounted.d.ts +0 -2
- package/types/utils/use-isomorphic-effect.d.ts +0 -2
- package/types/utils/use-reduced-motion.d.ts +0 -28
- package/types/utils/use-unmount-effect.d.ts +0 -1
- package/types/utils/warn-once.d.ts +0 -2
- package/types/value/index.d.ts +0 -260
- package/types/value/scroll/use-element-scroll.d.ts +0 -28
- package/types/value/scroll/use-viewport-scroll.d.ts +0 -22
- package/types/value/scroll/utils.d.ts +0 -19
- package/types/value/use-combine-values.d.ts +0 -2
- package/types/value/use-inverted-scale.d.ts +0 -28
- package/types/value/use-motion-template.d.ts +0 -24
- package/types/value/use-motion-value.d.ts +0 -19
- package/types/value/use-on-change.d.ts +0 -3
- package/types/value/use-spring.d.ts +0 -22
- package/types/value/use-time.d.ts +0 -1
- package/types/value/use-transform.d.ts +0 -93
- package/types/value/use-velocity.d.ts +0 -13
- package/types/value/utils/is-motion-value.d.ts +0 -2
- package/types/value/utils/resolve-motion-value.d.ts +0 -10
package/dist/cjs/index.js
CHANGED
|
@@ -472,7 +472,7 @@ var MotionValue = /** @class */ (function () {
|
|
|
472
472
|
* This will be replaced by the build step with the latest version number.
|
|
473
473
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
474
474
|
*/
|
|
475
|
-
this.version = "6.3.
|
|
475
|
+
this.version = "6.3.12";
|
|
476
476
|
/**
|
|
477
477
|
* Duration, in milliseconds, since last updating frame.
|
|
478
478
|
*
|
|
@@ -751,9 +751,6 @@ var MotionValue = /** @class */ (function () {
|
|
|
751
751
|
};
|
|
752
752
|
return MotionValue;
|
|
753
753
|
}());
|
|
754
|
-
/**
|
|
755
|
-
* @internal
|
|
756
|
-
*/
|
|
757
754
|
function motionValue(init) {
|
|
758
755
|
return new MotionValue(init);
|
|
759
756
|
}
|
|
@@ -1159,8 +1156,6 @@ function getValueTransition(transition, key) {
|
|
|
1159
1156
|
/**
|
|
1160
1157
|
* Start animation on a MotionValue. This function is an interface between
|
|
1161
1158
|
* Framer Motion and Popmotion
|
|
1162
|
-
*
|
|
1163
|
-
* @internal
|
|
1164
1159
|
*/
|
|
1165
1160
|
function startAnimation(key, value, target, transition) {
|
|
1166
1161
|
if (transition === void 0) { transition = {}; }
|
|
@@ -1804,8 +1799,6 @@ var FlatTree = /** @class */ (function () {
|
|
|
1804
1799
|
* If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
|
|
1805
1800
|
*
|
|
1806
1801
|
* TODO: Remove and move to library
|
|
1807
|
-
*
|
|
1808
|
-
* @internal
|
|
1809
1802
|
*/
|
|
1810
1803
|
function resolveMotionValue(value) {
|
|
1811
1804
|
var unwrappedValue = isMotionValue(value) ? value.get() : value;
|
|
@@ -3006,9 +2999,6 @@ function useProjectionId() {
|
|
|
3006
2999
|
});
|
|
3007
3000
|
}
|
|
3008
3001
|
|
|
3009
|
-
/**
|
|
3010
|
-
* @internal
|
|
3011
|
-
*/
|
|
3012
3002
|
var LayoutGroupContext = React.createContext({});
|
|
3013
3003
|
|
|
3014
3004
|
/**
|
|
@@ -3077,8 +3067,6 @@ var VisualElementHandler = /** @class */ (function (_super) {
|
|
|
3077
3067
|
*
|
|
3078
3068
|
* Alongside this is a config option which provides a way of rendering the provided
|
|
3079
3069
|
* component "offline", or outside the React render cycle.
|
|
3080
|
-
*
|
|
3081
|
-
* @internal
|
|
3082
3070
|
*/
|
|
3083
3071
|
function createMotionComponent(_a) {
|
|
3084
3072
|
var preloadedFeatures = _a.preloadedFeatures, createVisualElement = _a.createVisualElement, projectionNodeConstructor = _a.projectionNodeConstructor, useRender = _a.useRender, useVisualState = _a.useVisualState, Component = _a.Component;
|
|
@@ -4614,9 +4602,6 @@ function getOrigin(target, transition, visualElement) {
|
|
|
4614
4602
|
return origin;
|
|
4615
4603
|
}
|
|
4616
4604
|
|
|
4617
|
-
/**
|
|
4618
|
-
* @internal
|
|
4619
|
-
*/
|
|
4620
4605
|
function animateVisualElement(visualElement, definition, options) {
|
|
4621
4606
|
if (options === void 0) { options = {}; }
|
|
4622
4607
|
visualElement.notifyAnimationStart(definition);
|
|
@@ -5981,7 +5966,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
5981
5966
|
* and warn against mismatches.
|
|
5982
5967
|
*/
|
|
5983
5968
|
if (process.env.NODE_ENV === "development") {
|
|
5984
|
-
warnOnce(nextValue.version === "6.3.
|
|
5969
|
+
warnOnce(nextValue.version === "6.3.12", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 6.3.12 may not work as expected."));
|
|
5985
5970
|
}
|
|
5986
5971
|
}
|
|
5987
5972
|
else if (isMotionValue(prevValue)) {
|
|
@@ -7379,7 +7364,6 @@ var AnimatePresence = function (_a) {
|
|
|
7379
7364
|
};
|
|
7380
7365
|
|
|
7381
7366
|
/**
|
|
7382
|
-
* @internal
|
|
7383
7367
|
* @deprecated
|
|
7384
7368
|
*/
|
|
7385
7369
|
var DeprecatedLayoutGroupContext = React.createContext(null);
|
|
@@ -8334,7 +8318,6 @@ var useVisualState = makeUseVisualState({
|
|
|
8334
8318
|
/**
|
|
8335
8319
|
* This is not an officially supported API and may be removed
|
|
8336
8320
|
* on any version.
|
|
8337
|
-
* @internal
|
|
8338
8321
|
*/
|
|
8339
8322
|
function useAnimatedState(initialState) {
|
|
8340
8323
|
var _a = tslib.__read(React.useState(initialState), 2), animationState = _a[0], setAnimationState = _a[1];
|
|
@@ -8385,7 +8368,6 @@ var hasWarned = false;
|
|
|
8385
8368
|
* ```
|
|
8386
8369
|
*
|
|
8387
8370
|
* @deprecated
|
|
8388
|
-
* @internal
|
|
8389
8371
|
*/
|
|
8390
8372
|
function useInvertedScale(scale) {
|
|
8391
8373
|
var parentScaleX = useMotionValue(1);
|
|
@@ -33,7 +33,6 @@ var useVisualState = makeUseVisualState({
|
|
|
33
33
|
/**
|
|
34
34
|
* This is not an officially supported API and may be removed
|
|
35
35
|
* on any version.
|
|
36
|
-
* @internal
|
|
37
36
|
*/
|
|
38
37
|
function useAnimatedState(initialState) {
|
|
39
38
|
var _a = __read(useState(initialState), 2), animationState = _a[0], setAnimationState = _a[1];
|
|
@@ -180,8 +180,6 @@ function getValueTransition(transition, key) {
|
|
|
180
180
|
/**
|
|
181
181
|
* Start animation on a MotionValue. This function is an interface between
|
|
182
182
|
* Framer Motion and Popmotion
|
|
183
|
-
*
|
|
184
|
-
* @internal
|
|
185
183
|
*/
|
|
186
184
|
function startAnimation(key, value, target, transition) {
|
|
187
185
|
if (transition === void 0) { transition = {}; }
|
package/dist/es/motion/index.mjs
CHANGED
|
@@ -22,8 +22,6 @@ import { VisualElementHandler } from './utils/VisualElementHandler.mjs';
|
|
|
22
22
|
*
|
|
23
23
|
* Alongside this is a config option which provides a way of rendering the provided
|
|
24
24
|
* component "offline", or outside the React render cycle.
|
|
25
|
-
*
|
|
26
|
-
* @internal
|
|
27
25
|
*/
|
|
28
26
|
function createMotionComponent(_a) {
|
|
29
27
|
var preloadedFeatures = _a.preloadedFeatures, createVisualElement = _a.createVisualElement, projectionNodeConstructor = _a.projectionNodeConstructor, useRender = _a.useRender, useVisualState = _a.useVisualState, Component = _a.Component;
|
|
@@ -4,9 +4,6 @@ import { setTarget } from './setters.mjs';
|
|
|
4
4
|
import { resolveVariant } from './variants.mjs';
|
|
5
5
|
import { isTransformProp } from '../html/utils/transform.mjs';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
7
|
function animateVisualElement(visualElement, definition, options) {
|
|
11
8
|
if (options === void 0) { options = {}; }
|
|
12
9
|
visualElement.notifyAnimationStart(definition);
|
|
@@ -18,7 +18,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
18
18
|
* and warn against mismatches.
|
|
19
19
|
*/
|
|
20
20
|
if (process.env.NODE_ENV === "development") {
|
|
21
|
-
warnOnce(nextValue.version === "6.3.
|
|
21
|
+
warnOnce(nextValue.version === "6.3.12", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 6.3.12 may not work as expected."));
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
else if (isMotionValue(prevValue)) {
|
package/dist/es/value/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ var MotionValue = /** @class */ (function () {
|
|
|
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 = "6.3.
|
|
28
|
+
this.version = "6.3.12";
|
|
29
29
|
/**
|
|
30
30
|
* Duration, in milliseconds, since last updating frame.
|
|
31
31
|
*
|
|
@@ -304,9 +304,6 @@ var MotionValue = /** @class */ (function () {
|
|
|
304
304
|
};
|
|
305
305
|
return MotionValue;
|
|
306
306
|
}());
|
|
307
|
-
/**
|
|
308
|
-
* @internal
|
|
309
|
-
*/
|
|
310
307
|
function motionValue(init) {
|
|
311
308
|
return new MotionValue(init);
|
|
312
309
|
}
|
|
@@ -5,8 +5,6 @@ import { isMotionValue } from './is-motion-value.mjs';
|
|
|
5
5
|
* If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
|
|
6
6
|
*
|
|
7
7
|
* TODO: Remove and move to library
|
|
8
|
-
*
|
|
9
|
-
* @internal
|
|
10
8
|
*/
|
|
11
9
|
function resolveMotionValue(value) {
|
|
12
10
|
var unwrappedValue = isMotionValue(value) ? value.get() : value;
|
|
@@ -1706,7 +1706,7 @@
|
|
|
1706
1706
|
* This will be replaced by the build step with the latest version number.
|
|
1707
1707
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
1708
1708
|
*/
|
|
1709
|
-
this.version = "6.3.
|
|
1709
|
+
this.version = "6.3.12";
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Duration, in milliseconds, since last updating frame.
|
|
1712
1712
|
*
|
|
@@ -1985,9 +1985,6 @@
|
|
|
1985
1985
|
};
|
|
1986
1986
|
return MotionValue;
|
|
1987
1987
|
}());
|
|
1988
|
-
/**
|
|
1989
|
-
* @internal
|
|
1990
|
-
*/
|
|
1991
1988
|
function motionValue(init) {
|
|
1992
1989
|
return new MotionValue(init);
|
|
1993
1990
|
}
|
|
@@ -2393,8 +2390,6 @@
|
|
|
2393
2390
|
/**
|
|
2394
2391
|
* Start animation on a MotionValue. This function is an interface between
|
|
2395
2392
|
* Framer Motion and Popmotion
|
|
2396
|
-
*
|
|
2397
|
-
* @internal
|
|
2398
2393
|
*/
|
|
2399
2394
|
function startAnimation(key, value, target, transition) {
|
|
2400
2395
|
if (transition === void 0) { transition = {}; }
|
|
@@ -3038,8 +3033,6 @@
|
|
|
3038
3033
|
* If the provided value is a MotionValue, this returns the actual value, otherwise just the value itself
|
|
3039
3034
|
*
|
|
3040
3035
|
* TODO: Remove and move to library
|
|
3041
|
-
*
|
|
3042
|
-
* @internal
|
|
3043
3036
|
*/
|
|
3044
3037
|
function resolveMotionValue(value) {
|
|
3045
3038
|
var unwrappedValue = isMotionValue(value) ? value.get() : value;
|
|
@@ -4240,9 +4233,6 @@
|
|
|
4240
4233
|
});
|
|
4241
4234
|
}
|
|
4242
4235
|
|
|
4243
|
-
/**
|
|
4244
|
-
* @internal
|
|
4245
|
-
*/
|
|
4246
4236
|
var LayoutGroupContext = React.createContext({});
|
|
4247
4237
|
|
|
4248
4238
|
/**
|
|
@@ -4311,8 +4301,6 @@
|
|
|
4311
4301
|
*
|
|
4312
4302
|
* Alongside this is a config option which provides a way of rendering the provided
|
|
4313
4303
|
* component "offline", or outside the React render cycle.
|
|
4314
|
-
*
|
|
4315
|
-
* @internal
|
|
4316
4304
|
*/
|
|
4317
4305
|
function createMotionComponent(_a) {
|
|
4318
4306
|
var preloadedFeatures = _a.preloadedFeatures, createVisualElement = _a.createVisualElement, projectionNodeConstructor = _a.projectionNodeConstructor, useRender = _a.useRender, useVisualState = _a.useVisualState, Component = _a.Component;
|
|
@@ -5848,9 +5836,6 @@
|
|
|
5848
5836
|
return origin;
|
|
5849
5837
|
}
|
|
5850
5838
|
|
|
5851
|
-
/**
|
|
5852
|
-
* @internal
|
|
5853
|
-
*/
|
|
5854
5839
|
function animateVisualElement(visualElement, definition, options) {
|
|
5855
5840
|
if (options === void 0) { options = {}; }
|
|
5856
5841
|
visualElement.notifyAnimationStart(definition);
|
|
@@ -7215,7 +7200,7 @@
|
|
|
7215
7200
|
* and warn against mismatches.
|
|
7216
7201
|
*/
|
|
7217
7202
|
{
|
|
7218
|
-
warnOnce(nextValue.version === "6.3.
|
|
7203
|
+
warnOnce(nextValue.version === "6.3.12", "Attempting to mix Framer Motion versions ".concat(nextValue.version, " with 6.3.12 may not work as expected."));
|
|
7219
7204
|
}
|
|
7220
7205
|
}
|
|
7221
7206
|
else if (isMotionValue(prevValue)) {
|
|
@@ -8613,7 +8598,6 @@
|
|
|
8613
8598
|
};
|
|
8614
8599
|
|
|
8615
8600
|
/**
|
|
8616
|
-
* @internal
|
|
8617
8601
|
* @deprecated
|
|
8618
8602
|
*/
|
|
8619
8603
|
var DeprecatedLayoutGroupContext = React.createContext(null);
|
|
@@ -9568,7 +9552,6 @@
|
|
|
9568
9552
|
/**
|
|
9569
9553
|
* This is not an officially supported API and may be removed
|
|
9570
9554
|
* on any version.
|
|
9571
|
-
* @internal
|
|
9572
9555
|
*/
|
|
9573
9556
|
function useAnimatedState(initialState) {
|
|
9574
9557
|
var _a = __read(React.useState(initialState), 2), animationState = _a[0], setAnimationState = _a[1];
|
|
@@ -9619,7 +9602,6 @@
|
|
|
9619
9602
|
* ```
|
|
9620
9603
|
*
|
|
9621
9604
|
* @deprecated
|
|
9622
|
-
* @internal
|
|
9623
9605
|
*/
|
|
9624
9606
|
function useInvertedScale(scale) {
|
|
9625
9607
|
var parentScaleX = useMotionValue(1);
|