framer-motion 12.17.2 → 12.17.3

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.
@@ -1,12 +1,12 @@
1
- import { animationControls } from './animation-controls.mjs';
2
1
  import { useConstant } from '../../utils/use-constant.mjs';
3
2
  import { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';
3
+ import { animationControls } from './animation-controls.mjs';
4
4
 
5
5
  /**
6
- * Creates `AnimationControls`, which can be used to manually start, stop
6
+ * Creates `LegacyAnimationControls`, which can be used to manually start, stop
7
7
  * and sequence animations on one or more components.
8
8
  *
9
- * The returned `AnimationControls` should be passed to the `animate` property
9
+ * The returned `LegacyAnimationControls` should be passed to the `animate` property
10
10
  * of the components you want to animate.
11
11
  *
12
12
  * These components can then be animated with the `start` method.
@@ -65,7 +65,7 @@ function createAnimationsFromSequence(sequence, { defaultTransition = {}, ...seq
65
65
  const numKeyframes = valueKeyframesAsList.length;
66
66
  const createGenerator = isGenerator(type)
67
67
  ? type
68
- : generators?.[type];
68
+ : generators?.[type || "keyframes"];
69
69
  if (numKeyframes <= 2 && createGenerator) {
70
70
  /**
71
71
  * As we're creating an easing function from a spring,
@@ -11967,7 +11967,7 @@
11967
11967
  const numKeyframes = valueKeyframesAsList.length;
11968
11968
  const createGenerator = isGenerator(type)
11969
11969
  ? type
11970
- : generators?.[type];
11970
+ : generators?.[type || "keyframes"];
11971
11971
  if (numKeyframes <= 2 && createGenerator) {
11972
11972
  /**
11973
11973
  * As we're creating an easing function from a spring,
@@ -13278,10 +13278,10 @@
13278
13278
  }
13279
13279
 
13280
13280
  /**
13281
- * Creates `AnimationControls`, which can be used to manually start, stop
13281
+ * Creates `LegacyAnimationControls`, which can be used to manually start, stop
13282
13282
  * and sequence animations on one or more components.
13283
13283
  *
13284
- * The returned `AnimationControls` should be passed to the `animate` property
13284
+ * The returned `LegacyAnimationControls` should be passed to the `animate` property
13285
13285
  * of the components you want to animate.
13286
13286
  *
13287
13287
  * These components can then be animated with the `start` method.