framer-motion 12.19.4 → 12.20.1
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 +10 -8
- package/dist/dom.js +1 -1
- package/dist/es/components/AnimatePresence/PopChild.mjs +6 -4
- package/dist/es/components/AnimatePresence/PresenceChild.mjs +2 -2
- package/dist/es/components/AnimatePresence/index.mjs +2 -2
- package/dist/framer-motion.dev.js +17 -15
- package/dist/framer-motion.js +1 -1
- package/dist/types/index.d.ts +6 -1
- package/package.json +3 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -63,6 +63,11 @@ interface AnimatePresenceProps {
|
|
|
63
63
|
* @public
|
|
64
64
|
*/
|
|
65
65
|
mode?: "sync" | "popLayout" | "wait";
|
|
66
|
+
/**
|
|
67
|
+
* Root element to use when injecting styles, used when mode === `"popLayout"`.
|
|
68
|
+
* This defaults to document.head but can be overridden e.g. for use in shadow DOM.
|
|
69
|
+
*/
|
|
70
|
+
root?: HTMLElement | ShadowRoot;
|
|
66
71
|
/**
|
|
67
72
|
* Internal. Used in Framer to flag that sibling children *shouldn't* re-render as a result of a
|
|
68
73
|
* child being removed.
|
|
@@ -113,7 +118,7 @@ interface AnimatePresenceProps {
|
|
|
113
118
|
*
|
|
114
119
|
* @public
|
|
115
120
|
*/
|
|
116
|
-
declare const AnimatePresence: ({ children, custom, initial, onExitComplete, presenceAffectsLayout, mode, propagate, anchorX, }: React$1.PropsWithChildren<AnimatePresenceProps>) => react_jsx_runtime.JSX.Element | null;
|
|
121
|
+
declare const AnimatePresence: ({ children, custom, initial, onExitComplete, presenceAffectsLayout, mode, propagate, anchorX, root }: React$1.PropsWithChildren<AnimatePresenceProps>) => react_jsx_runtime.JSX.Element | null;
|
|
117
122
|
|
|
118
123
|
type InheritOption = boolean | "id";
|
|
119
124
|
interface Props$2 {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framer-motion",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.20.1",
|
|
4
4
|
"description": "A simple and powerful JavaScript animation library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.mjs",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"measure": "rollup -c ./rollup.size.config.mjs"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"motion-dom": "^12.
|
|
90
|
+
"motion-dom": "^12.20.1",
|
|
91
91
|
"motion-utils": "^12.19.0",
|
|
92
92
|
"tslib": "^2.4.0"
|
|
93
93
|
},
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"maxSize": "2.26 kB"
|
|
143
143
|
}
|
|
144
144
|
],
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "a2154e9619ef6076b602d32ad9c5345ed2430262"
|
|
146
146
|
}
|