framer-motion 6.2.1 → 6.2.6

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.
@@ -16,7 +16,7 @@ export interface Layout {
16
16
  measured: Box;
17
17
  actual: Box;
18
18
  }
19
- export declare type LayoutEvents = "willUpdate" | "didUpdate" | "measure" | "projectionUpdate" | "animationComplete";
19
+ export declare type LayoutEvents = "willUpdate" | "didUpdate" | "beforeMeasure" | "measure" | "projectionUpdate" | "animationComplete";
20
20
  export interface IProjectionNode<I = unknown> {
21
21
  id: number | undefined;
22
22
  parent?: IProjectionNode;
@@ -3,7 +3,7 @@ import { Axis, Box, Delta } from "../../projection/geometry/types";
3
3
  import { ResolvedValues } from "../types";
4
4
  import { AnimationDefinition } from "./animation";
5
5
  export declare type LayoutMeasureListener = (layout: Box, prevLayout?: Box) => void;
6
- export declare type BeforeLayoutMeasureListener = (layout: Axis) => void;
6
+ export declare type BeforeLayoutMeasureListener = () => void;
7
7
  export declare type LayoutUpdateListener = (layout: Axis, prevLayout: Axis) => void;
8
8
  export declare type UpdateListener = (latest: ResolvedValues) => void;
9
9
  export declare type AnimationStartListener = (definition: AnimationDefinition) => void;
@@ -0,0 +1,6 @@
1
+ export declare const useId: () => number;
2
+ /**
3
+ * Ideally we'd use the following code to support React 18 optionally.
4
+ * But this fairly fails in Webpack (otherwise treeshaking wouldn't work at all).
5
+ * Need to come up with a different way of figuring this out.
6
+ */
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function useIsMounted(): import("react").MutableRefObject<boolean>;