framer-motion 6.2.3 → 6.2.7
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 +79 -52
- package/dist/es/animation/use-animated-state.mjs +6 -4
- package/dist/es/components/AnimatePresence/PresenceChild.mjs +2 -7
- package/dist/es/components/AnimatePresence/index.mjs +27 -28
- package/dist/es/components/AnimatePresence/use-presence.mjs +3 -6
- package/dist/es/components/LayoutGroup/index.mjs +10 -3
- package/dist/es/projection/node/create-projection-node.mjs +11 -3
- package/dist/es/render/index.mjs +1 -0
- package/dist/es/utils/use-force-update.mjs +4 -5
- package/dist/es/utils/use-id.mjs +15 -0
- package/dist/es/utils/use-is-mounted.mjs +15 -0
- package/dist/framer-motion.dev.js +77 -51
- package/dist/framer-motion.js +1 -1
- package/dist/projection.dev.js +12 -3
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/package.json +10 -6
- package/types/components/LayoutGroup/index.d.ts +6 -0
- package/types/projection/node/DocumentProjectionNode.d.ts +1 -1
- package/types/projection/node/HTMLProjectionNode.d.ts +1 -1
- package/types/projection/node/create-projection-node.d.ts +1 -1
- package/types/utils/use-id.d.ts +6 -0
- package/types/utils/use-is-mounted.d.ts +2 -0
|
@@ -265,11 +265,11 @@ export declare function createProjectionNode<I>({ attachResizeListener, defaultP
|
|
|
265
265
|
/**
|
|
266
266
|
* Animation
|
|
267
267
|
*/
|
|
268
|
-
animationProgress: number;
|
|
269
268
|
animationValues?: ResolvedValues | undefined;
|
|
270
269
|
pendingAnimation?: Process | undefined;
|
|
271
270
|
currentAnimation?: AnimationPlaybackControls | undefined;
|
|
272
271
|
mixTargetDelta: (progress: number) => void;
|
|
272
|
+
animationProgress: number;
|
|
273
273
|
setAnimationOrigin(delta: Delta, hasOnlyRelativeTargetChanged?: boolean): void;
|
|
274
274
|
startAnimation(options: AnimationOptions<number>): void;
|
|
275
275
|
completeAnimation(): 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
|
+
*/
|