motion 12.6.3 → 12.6.4

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 (60) hide show
  1. package/dist/cjs/index.js +17 -2
  2. package/dist/cjs/mini.js +177 -0
  3. package/dist/cjs/react-client.js +17 -2
  4. package/dist/cjs/react-m.js +10 -0
  5. package/dist/cjs/react-mini.js +177 -0
  6. package/dist/es/framer-motion/dist/es/animation/animate/index.mjs +1 -0
  7. package/dist/es/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +1 -0
  8. package/dist/es/framer-motion/dist/es/animation/animate/single-value.mjs +1 -0
  9. package/dist/es/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +1 -0
  10. package/dist/es/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +1 -0
  11. package/dist/es/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +1 -0
  12. package/dist/es/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +1 -0
  13. package/dist/es/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +1 -0
  14. package/dist/es/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +1 -0
  15. package/dist/es/framer-motion/dist/es/animation/animators/waapi/animate-sequence.mjs +1 -0
  16. package/dist/es/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +1 -0
  17. package/dist/es/framer-motion/dist/es/animation/generators/spring/index.mjs +1 -0
  18. package/dist/es/framer-motion/dist/es/animation/interfaces/motion-value.mjs +1 -0
  19. package/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +1 -0
  20. package/dist/es/framer-motion/dist/es/animation/optimized-appear/start.mjs +1 -0
  21. package/dist/es/framer-motion/dist/es/animation/sequence/create.mjs +1 -0
  22. package/dist/es/framer-motion/dist/es/easing/utils/map.mjs +1 -0
  23. package/dist/es/framer-motion/dist/es/events/event-info.mjs +1 -0
  24. package/dist/es/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +1 -0
  25. package/dist/es/framer-motion/dist/es/gestures/hover.mjs +1 -0
  26. package/dist/es/framer-motion/dist/es/gestures/pan/PanSession.mjs +1 -0
  27. package/dist/es/framer-motion/dist/es/gestures/pan/index.mjs +1 -0
  28. package/dist/es/framer-motion/dist/es/gestures/press.mjs +1 -0
  29. package/dist/es/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs +1 -0
  30. package/dist/es/framer-motion/dist/es/motion/utils/use-visual-element.mjs +1 -0
  31. package/dist/es/framer-motion/dist/es/projection/node/create-projection-node.mjs +1 -0
  32. package/dist/es/framer-motion/dist/es/render/VisualElement.mjs +1 -0
  33. package/dist/es/framer-motion/dist/es/render/dom/resize/handle-element.mjs +1 -0
  34. package/dist/es/framer-motion/dist/es/render/dom/scroll/index.mjs +1 -0
  35. package/dist/es/framer-motion/dist/es/render/dom/scroll/observe.mjs +1 -0
  36. package/dist/es/framer-motion/dist/es/render/dom/scroll/track.mjs +1 -0
  37. package/dist/es/framer-motion/dist/es/render/dom/viewport/index.mjs +1 -0
  38. package/dist/es/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +1 -0
  39. package/dist/es/framer-motion/dist/es/render/svg/config-motion.mjs +1 -0
  40. package/dist/es/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +1 -0
  41. package/dist/es/framer-motion/dist/es/render/utils/motion-values.mjs +2 -1
  42. package/dist/es/framer-motion/dist/es/render/utils/setters.mjs +1 -0
  43. package/dist/es/framer-motion/dist/es/utils/delay.mjs +1 -0
  44. package/dist/es/framer-motion/dist/es/utils/use-animation-frame.mjs +1 -0
  45. package/dist/es/framer-motion/dist/es/utils/use-force-update.mjs +1 -0
  46. package/dist/es/framer-motion/dist/es/utils/use-instant-transition.mjs +1 -0
  47. package/dist/es/framer-motion/dist/es/value/use-combine-values.mjs +1 -0
  48. package/dist/es/framer-motion/dist/es/value/use-computed.mjs +1 -0
  49. package/dist/es/framer-motion/dist/es/value/use-motion-value.mjs +1 -0
  50. package/dist/es/framer-motion/dist/es/value/use-scroll.mjs +1 -0
  51. package/dist/es/framer-motion/dist/es/value/use-spring.mjs +1 -0
  52. package/dist/es/framer-motion/dist/es/value/use-velocity.mjs +1 -0
  53. package/dist/es/framer-motion/dist/es/value/use-will-change/WillChangeMotionValue.mjs +1 -0
  54. package/dist/es/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +7 -0
  55. package/dist/es/motion/lib/react.mjs +1 -0
  56. package/dist/es/motion-dom/dist/es/frameloop/index-legacy.mjs +12 -0
  57. package/dist/es/motion-dom/dist/es/value/index.mjs +1 -1
  58. package/dist/motion.dev.js +17 -2
  59. package/dist/motion.js +1 -1
  60. package/package.json +3 -3
@@ -1,6 +1,7 @@
1
1
  import { invariant } from '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame } from '../../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
3
  import { setDragLock } from '../../../../../motion-dom/dist/es/gestures/drag/state/set-active.mjs';
4
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
4
5
  import { animateMotionValue } from '../../animation/interfaces/motion-value.mjs';
5
6
  import { addDomEvent } from '../../events/add-dom-event.mjs';
6
7
  import { addPointerEvent } from '../../events/add-pointer-event.mjs';
@@ -1,6 +1,7 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
3
  import { hover } from '../../../../motion-dom/dist/es/gestures/hover.mjs';
4
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
4
5
  import { extractEventInfo } from '../events/event-info.mjs';
5
6
  import { Feature } from '../motion/features/Feature.mjs';
6
7
 
@@ -2,6 +2,7 @@ import '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { secondsToMilliseconds, millisecondsToSeconds } from '../../../../../motion-utils/dist/es/time-conversion.mjs';
3
3
  import { frame, cancelFrame, frameData } from '../../../../../motion-dom/dist/es/frameloop/frame.mjs';
4
4
  import { isPrimaryPointer } from '../../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs';
5
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
5
6
  import { addPointerEvent } from '../../events/add-pointer-event.mjs';
6
7
  import { extractEventInfo } from '../../events/event-info.mjs';
7
8
  import { distance2D } from '../../utils/distance.mjs';
@@ -1,6 +1,7 @@
1
1
  import '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { noop } from '../../../../../motion-utils/dist/es/noop.mjs';
3
3
  import { frame } from '../../../../../motion-dom/dist/es/frameloop/frame.mjs';
4
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
4
5
  import { addPointerEvent } from '../../events/add-pointer-event.mjs';
5
6
  import { Feature } from '../../motion/features/Feature.mjs';
6
7
  import { getContextWindow } from '../../utils/get-context-window.mjs';
@@ -1,6 +1,7 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
3
  import { press } from '../../../../motion-dom/dist/es/gestures/press/index.mjs';
4
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
4
5
  import { extractEventInfo } from '../events/event-info.mjs';
5
6
  import { Feature } from '../motion/features/Feature.mjs';
6
7
 
@@ -3,6 +3,7 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import '../../../../../../motion-utils/dist/es/errors.mjs';
4
4
  import { frame } from '../../../../../../motion-dom/dist/es/frameloop/frame.mjs';
5
5
  import { microtask } from '../../../../../../motion-dom/dist/es/frameloop/microtask.mjs';
6
+ import '../../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
6
7
  import { useContext, Component } from 'react';
7
8
  import { usePresence } from '../../../components/AnimatePresence/use-presence.mjs';
8
9
  import { LayoutGroupContext } from '../../../context/LayoutGroupContext.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { microtask } from '../../../../../motion-dom/dist/es/frameloop/microtask.mjs';
3
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { useContext, useRef, useInsertionEffect, useEffect } from 'react';
4
5
  import { optimizedAppearDataAttribute } from '../../animation/optimized-appear/data-id.mjs';
5
6
  import { LazyContext } from '../../context/LazyContext.mjs';
@@ -7,6 +7,7 @@ import { getValueTransition } from '../../../../../motion-dom/dist/es/animation/
7
7
  import { cancelFrame, frameData, frameSteps, frame } from '../../../../../motion-dom/dist/es/frameloop/frame.mjs';
8
8
  import { microtask } from '../../../../../motion-dom/dist/es/frameloop/microtask.mjs';
9
9
  import { time } from '../../../../../motion-dom/dist/es/frameloop/sync-time.mjs';
10
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
10
11
  import { animateSingleValue } from '../../animation/animate/single-value.mjs';
11
12
  import { getOptimisedAppearId } from '../../animation/optimized-appear/get-appear-id.mjs';
12
13
  import { isSVGElement } from '../../render/dom/utils/is-svg-element.mjs';
@@ -4,6 +4,7 @@ import { warnOnce } from '../../../../motion-utils/dist/es/warn-once.mjs';
4
4
  import { frame, cancelFrame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
5
5
  import { time } from '../../../../motion-dom/dist/es/frameloop/sync-time.mjs';
6
6
  import { motionValue } from '../../../../motion-dom/dist/es/value/index.mjs';
7
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
7
8
  import { featureDefinitions } from '../motion/features/definitions.mjs';
8
9
  import { createBox } from '../projection/geometry/models.mjs';
9
10
  import { isNumericalString } from '../utils/is-numerical-string.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { resolveElements } from '../../../../../../motion-dom/dist/es/utils/resolve-elements.mjs';
3
+ import '../../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
 
4
5
  const resizeHandlers = new WeakMap();
5
6
  let observer;
@@ -1,6 +1,7 @@
1
1
  import { supportsScrollTimeline } from '../../../../../../motion-dom/dist/es/utils/supports/scroll-timeline.mjs';
2
2
  import '../../../../../../motion-utils/dist/es/errors.mjs';
3
3
  import { noop } from '../../../../../../motion-utils/dist/es/noop.mjs';
4
+ import '../../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
4
5
  import { observeTimeline } from './observe.mjs';
5
6
  import { scrollInfo } from './track.mjs';
6
7
 
@@ -1,5 +1,6 @@
1
1
  import '../../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame, cancelFrame } from '../../../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
 
4
5
  function observeTimeline(update, timeline) {
5
6
  let prevProgress;
@@ -1,5 +1,6 @@
1
1
  import '../../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame, cancelFrame, frameData } from '../../../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { resize } from '../resize/index.mjs';
4
5
  import { createScrollInfo } from './info.mjs';
5
6
  import { createOnScrollHandler } from './on-scroll-handler.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { resolveElements } from '../../../../../../motion-dom/dist/es/utils/resolve-elements.mjs';
3
+ import '../../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
 
4
5
  const thresholds = {
5
6
  some: 0,
@@ -1,5 +1,6 @@
1
1
  import '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame } from '../../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { createBox } from '../../projection/geometry/models.mjs';
4
5
  import { DOMVisualElement } from '../dom/DOMVisualElement.mjs';
5
6
  import { camelToDash } from '../dom/utils/camel-to-dash.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame } from '../../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { makeUseVisualState } from '../../motion/utils/use-visual-state.mjs';
4
5
  import { transformProps } from '../html/utils/keys-transform.mjs';
5
6
  import { buildSVGAttrs } from './utils/build-attrs.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame } from '../../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { removeNonTranslationalTransform } from '../dom/utils/unit-conversion.mjs';
4
5
 
5
6
  const toResolve = new Set();
@@ -1,6 +1,7 @@
1
1
  import '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { warnOnce } from '../../../../../motion-utils/dist/es/warn-once.mjs';
3
3
  import { motionValue } from '../../../../../motion-dom/dist/es/value/index.mjs';
4
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
4
5
  import { isMotionValue } from '../../value/utils/is-motion-value.mjs';
5
6
 
6
7
  function updateMotionValuesFromProps(element, next, prev) {
@@ -18,7 +19,7 @@ function updateMotionValuesFromProps(element, next, prev) {
18
19
  * and warn against mismatches.
19
20
  */
20
21
  if (process.env.NODE_ENV === "development") {
21
- warnOnce(nextValue.version === "12.6.3", `Attempting to mix Motion versions ${nextValue.version} with 12.6.3 may not work as expected.`);
22
+ warnOnce(nextValue.version === "12.6.4", `Attempting to mix Motion versions ${nextValue.version} with 12.6.4 may not work as expected.`);
22
23
  }
23
24
  }
24
25
  else if (isMotionValue(prevValue)) {
@@ -1,5 +1,6 @@
1
1
  import '../../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { motionValue } from '../../../../../motion-dom/dist/es/value/index.mjs';
3
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { resolveFinalValueInKeyframes } from '../../utils/resolve-value.mjs';
4
5
  import { resolveVariant } from './resolve-dynamic-variants.mjs';
5
6
 
@@ -2,6 +2,7 @@ import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { secondsToMilliseconds } from '../../../../motion-utils/dist/es/time-conversion.mjs';
3
3
  import { frame, cancelFrame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
4
4
  import { time } from '../../../../motion-dom/dist/es/frameloop/sync-time.mjs';
5
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
5
6
 
6
7
  /**
7
8
  * Timeout defined in ms
@@ -1,5 +1,6 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame, cancelFrame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { useRef, useContext, useEffect } from 'react';
4
5
  import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
5
6
 
@@ -1,5 +1,6 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { useState, useCallback } from 'react';
4
5
  import { useIsMounted } from './use-is-mounted.mjs';
5
6
 
@@ -1,5 +1,6 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { useRef, useEffect } from 'react';
4
5
  import { useInstantLayoutTransition } from '../projection/use-instant-layout-transition.mjs';
5
6
  import { useForceUpdate } from './use-force-update.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { cancelFrame, frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';
4
5
  import { useMotionValue } from './use-motion-value.mjs';
5
6
 
@@ -1,5 +1,6 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { collectMotionValues } from '../../../../motion-dom/dist/es/value/index.mjs';
3
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { useCombineMotionValues } from './use-combine-values.mjs';
4
5
 
5
6
  function useComputed(compute) {
@@ -1,5 +1,6 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { motionValue } from '../../../../motion-dom/dist/es/value/index.mjs';
3
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { useContext, useState, useEffect } from 'react';
4
5
  import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
5
6
  import { useConstant } from '../utils/use-constant.mjs';
@@ -1,5 +1,6 @@
1
1
  import { warning } from '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { motionValue } from '../../../../motion-dom/dist/es/value/index.mjs';
3
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { useEffect } from 'react';
4
5
  import { scroll } from '../render/dom/scroll/index.mjs';
5
6
  import { useConstant } from '../utils/use-constant.mjs';
@@ -1,6 +1,7 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { noop } from '../../../../motion-utils/dist/es/noop.mjs';
3
3
  import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
4
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
4
5
  import { useContext, useRef, useInsertionEffect } from 'react';
5
6
  import { animateValue } from '../animation/animators/MainThreadAnimation.mjs';
6
7
  import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../../../../motion-utils/dist/es/errors.mjs';
2
2
  import { frame } from '../../../../motion-dom/dist/es/frameloop/frame.mjs';
3
+ import '../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
3
4
  import { useMotionValueEvent } from '../utils/use-motion-value-event.mjs';
4
5
  import { useMotionValue } from './use-motion-value.mjs';
5
6
 
@@ -1,6 +1,7 @@
1
1
  import { addUniqueItem } from '../../../../../motion-utils/dist/es/array.mjs';
2
2
  import '../../../../../motion-utils/dist/es/errors.mjs';
3
3
  import { MotionValue } from '../../../../../motion-dom/dist/es/value/index.mjs';
4
+ import '../../../../../motion-dom/dist/es/frameloop/index-legacy.mjs';
4
5
  import { getWillChangeName } from './get-will-change-name.mjs';
5
6
 
6
7
  class WillChangeMotionValue extends MotionValue {
@@ -1,3 +1,5 @@
1
+ import '../../../../../motion-utils/dist/es/errors.mjs';
2
+ import { MotionGlobalConfig } from '../../../../../motion-utils/dist/es/global-config.mjs';
1
3
  import { isWillChangeMotionValue } from './is.mjs';
2
4
 
3
5
  function addValueToWillChange(visualElement, key) {
@@ -9,6 +11,11 @@ function addValueToWillChange(visualElement, key) {
9
11
  if (isWillChangeMotionValue(willChange)) {
10
12
  return willChange.add(key);
11
13
  }
14
+ else if (!willChange && MotionGlobalConfig.WillChange) {
15
+ const newWillChange = new MotionGlobalConfig.WillChange("auto");
16
+ visualElement.addValue("willChange", newWillChange);
17
+ newWillChange.add(key);
18
+ }
12
19
  }
13
20
 
14
21
  export { addValueToWillChange };
@@ -31,6 +31,7 @@ export { useTime } from '../../framer-motion/dist/es/value/use-time.mjs';
31
31
  export { useTransform } from '../../framer-motion/dist/es/value/use-transform.mjs';
32
32
  export { useVelocity } from '../../framer-motion/dist/es/value/use-velocity.mjs';
33
33
  export { useWillChange } from '../../framer-motion/dist/es/value/use-will-change/index.mjs';
34
+ export { WillChangeMotionValue } from '../../framer-motion/dist/es/value/use-will-change/WillChangeMotionValue.mjs';
34
35
  export { resolveMotionValue } from '../../framer-motion/dist/es/value/utils/resolve-motion-value.mjs';
35
36
  export { useReducedMotion } from '../../framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs';
36
37
  export { useReducedMotionConfig } from '../../framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs';
@@ -0,0 +1,12 @@
1
+ import { cancelFrame } from './frame.mjs';
2
+ import { stepsOrder } from './order.mjs';
3
+
4
+ /**
5
+ * @deprecated
6
+ *
7
+ * Use cancelFrame(callback) instead.
8
+ */
9
+ stepsOrder.reduce((acc, key) => {
10
+ acc[key] = (process) => cancelFrame(process);
11
+ return acc;
12
+ }, {});
@@ -33,7 +33,7 @@ class MotionValue {
33
33
  * This will be replaced by the build step with the latest version number.
34
34
  * When MotionValues are provided to motion components, warn if versions are mixed.
35
35
  */
36
- this.version = "12.6.3";
36
+ this.version = "12.6.4";
37
37
  /**
38
38
  * Tracks whether this value can output a velocity. Currently this is only true
39
39
  * if the value is numerical, but we might be able to widen the scope here and support
@@ -1067,7 +1067,7 @@
1067
1067
  * This will be replaced by the build step with the latest version number.
1068
1068
  * When MotionValues are provided to motion components, warn if versions are mixed.
1069
1069
  */
1070
- this.version = "12.6.3";
1070
+ this.version = "12.6.4";
1071
1071
  /**
1072
1072
  * Tracks whether this value can output a velocity. Currently this is only true
1073
1073
  * if the value is numerical, but we might be able to widen the scope here and support
@@ -1342,6 +1342,16 @@
1342
1342
  return new MotionValue(init, options);
1343
1343
  }
1344
1344
 
1345
+ /**
1346
+ * @deprecated
1347
+ *
1348
+ * Use cancelFrame(callback) instead.
1349
+ */
1350
+ stepsOrder.reduce((acc, key) => {
1351
+ acc[key] = (process) => cancelFrame(process);
1352
+ return acc;
1353
+ }, {});
1354
+
1345
1355
  const clamp = (min, max, v) => {
1346
1356
  if (v > max)
1347
1357
  return max;
@@ -2137,6 +2147,11 @@
2137
2147
  if (isWillChangeMotionValue(willChange)) {
2138
2148
  return willChange.add(key);
2139
2149
  }
2150
+ else if (!willChange && MotionGlobalConfig.WillChange) {
2151
+ const newWillChange = new MotionGlobalConfig.WillChange("auto");
2152
+ visualElement.addValue("willChange", newWillChange);
2153
+ newWillChange.add(key);
2154
+ }
2140
2155
  }
2141
2156
 
2142
2157
  /**
@@ -4768,7 +4783,7 @@
4768
4783
  * and warn against mismatches.
4769
4784
  */
4770
4785
  {
4771
- warnOnce(nextValue.version === "12.6.3", `Attempting to mix Motion versions ${nextValue.version} with 12.6.3 may not work as expected.`);
4786
+ warnOnce(nextValue.version === "12.6.4", `Attempting to mix Motion versions ${nextValue.version} with 12.6.4 may not work as expected.`);
4772
4787
  }
4773
4788
  }
4774
4789
  else if (isMotionValue(prevValue)) {