framer-motion 12.23.10 → 12.23.11

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.
@@ -5,8 +5,8 @@ export * from 'motion-dom';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as React$1 from 'react';
7
7
  import { useEffect, RefObject } from 'react';
8
- import { F as FeatureBundle, M as MotionProps, a as MotionConfigContext, H as HTMLMotionProps, b as HTMLElements, c as createMotionComponent, d as HTMLMotionComponents, S as SVGMotionComponents, e as FeaturePackages, V as VisualElement, f as VisualElementAnimationOptions, I as IProjectionNode, R as ResolvedValues, g as HTMLRenderState } from '../types.d-Bq-Qm38R.js';
9
- export { A as AnimationType, C as CreateVisualElement, D as DOMMotionComponents, v as FeatureDefinition, w as FeatureDefinitions, x as FeaturePackage, s as FlatTree, p as ForwardRefComponent, t as HydratedFeatureDefinition, u as HydratedFeatureDefinitions, L as LazyFeatureBundle, k as MotionStyle, l as MotionTransform, P as PresenceContext, q as SVGAttributesAsMotionValues, r as SVGMotionProps, h as ScrapeMotionValuesFromProps, j as SwitchLayoutGroupContext, n as VariantLabels, i as VisualState, m as makeUseVisualState, o as optimizedAppearDataAttribute } from '../types.d-Bq-Qm38R.js';
8
+ import { F as FeatureBundle, M as MotionProps, a as MotionConfigContext, H as HTMLMotionProps, b as HTMLElements, c as createMotionComponent, d as HTMLMotionComponents, S as SVGMotionComponents, e as FeaturePackages, V as VisualElement, f as VisualElementAnimationOptions, I as IProjectionNode, R as ResolvedValues, g as HTMLRenderState } from '../types.d-Cjd591yU.js';
9
+ export { A as AnimationType, C as CreateVisualElement, D as DOMMotionComponents, v as FeatureDefinition, w as FeatureDefinitions, x as FeaturePackage, s as FlatTree, p as ForwardRefComponent, t as HydratedFeatureDefinition, u as HydratedFeatureDefinitions, L as LazyFeatureBundle, k as MotionStyle, l as MotionTransform, P as PresenceContext, q as SVGAttributesAsMotionValues, r as SVGMotionProps, h as ScrapeMotionValuesFromProps, j as SwitchLayoutGroupContext, n as VariantLabels, i as VisualState, m as makeUseVisualState, o as optimizedAppearDataAttribute } from '../types.d-Cjd591yU.js';
10
10
  import { Easing, EasingFunction, Point, Axis, Box } from 'motion-utils';
11
11
  export * from 'motion-utils';
12
12
  export { MotionGlobalConfig } from 'motion-utils';
@@ -615,6 +615,12 @@ declare abstract class VisualElement<Instance = unknown, RenderState = unknown,
615
615
  * A set containing references to this VisualElement's children.
616
616
  */
617
617
  children: Set<VisualElement<unknown, unknown, {}>>;
618
+ /**
619
+ * A set containing the latest children of this VisualElement. This is flushed
620
+ * at the start of every commit. We use it to calculate the stagger delay
621
+ * for newly-added children.
622
+ */
623
+ enteringChildren?: Set<VisualElement>;
618
624
  /**
619
625
  * The depth of this VisualElement within the overall VisualElement tree.
620
626
  */
@@ -734,6 +740,8 @@ declare abstract class VisualElement<Instance = unknown, RenderState = unknown,
734
740
  constructor({ parent, props, presenceContext, reducedMotionConfig, blockInitialAnimation, visualState, }: VisualElementOptions<Instance, RenderState>, options?: Options);
735
741
  mount(instance: Instance): void;
736
742
  unmount(): void;
743
+ addChild(child: VisualElement): void;
744
+ removeChild(child: VisualElement): void;
737
745
  private bindToMotionValue;
738
746
  sortNodePosition(other: VisualElement<Instance>): number;
739
747
  updateFeatures(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framer-motion",
3
- "version": "12.23.10",
3
+ "version": "12.23.11",
4
4
  "description": "A simple and powerful JavaScript animation library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.mjs",
@@ -142,5 +142,5 @@
142
142
  "maxSize": "2.26 kB"
143
143
  }
144
144
  ],
145
- "gitHead": "7923545f382fcb52ac8ac0eea7b61861780c9a0a"
145
+ "gitHead": "c0bd6effa94388cd76c6f903299f73b70eb1b845"
146
146
  }