motion-dom 12.17.3 → 12.18.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/index.d.ts +6 -9
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Box, Easing, EasingFunction, BezierDefinition, Point, BoundingBox, Axis } from 'motion-utils';
|
|
2
|
-
import { RefObject } from 'react';
|
|
3
2
|
|
|
4
3
|
interface SVGAttributes {
|
|
5
4
|
accentHeight?: number | string | undefined;
|
|
@@ -2039,7 +2038,9 @@ interface MotionNodeFocusHandlers {
|
|
|
2039
2038
|
*/
|
|
2040
2039
|
type ViewportEventHandler = (entry: IntersectionObserverEntry | null) => void;
|
|
2041
2040
|
interface ViewportOptions {
|
|
2042
|
-
root?:
|
|
2041
|
+
root?: {
|
|
2042
|
+
current: Element | null;
|
|
2043
|
+
};
|
|
2043
2044
|
once?: boolean;
|
|
2044
2045
|
margin?: string;
|
|
2045
2046
|
amount?: "some" | "all" | number;
|
|
@@ -2115,7 +2116,9 @@ interface MotionNodeDraggableOptions {
|
|
|
2115
2116
|
* }
|
|
2116
2117
|
* ```
|
|
2117
2118
|
*/
|
|
2118
|
-
dragConstraints?: false | Partial<BoundingBox> |
|
|
2119
|
+
dragConstraints?: false | Partial<BoundingBox> | {
|
|
2120
|
+
current: Element | null;
|
|
2121
|
+
};
|
|
2119
2122
|
/**
|
|
2120
2123
|
* The degree of movement allowed outside constraints. 0 = no movement, 1 =
|
|
2121
2124
|
* full movement.
|
|
@@ -2714,9 +2717,6 @@ interface TransformOptions<T> {
|
|
|
2714
2717
|
* Every value in the output range must be of the same type and in the same format.
|
|
2715
2718
|
*
|
|
2716
2719
|
* ```jsx
|
|
2717
|
-
* import * as React from "react"
|
|
2718
|
-
* import { transform } from "framer-motion"
|
|
2719
|
-
*
|
|
2720
2720
|
* export function MyComponent() {
|
|
2721
2721
|
* const inputRange = [0, 200]
|
|
2722
2722
|
* const outputRange = [0, 1]
|
|
@@ -2746,9 +2746,6 @@ declare function transform<T>(inputValue: number, inputRange: number[], outputRa
|
|
|
2746
2746
|
* Every value in the output range must be of the same type and in the same format.
|
|
2747
2747
|
*
|
|
2748
2748
|
* ```jsx
|
|
2749
|
-
* import * as React from "react"
|
|
2750
|
-
* import { Frame, transform } from "framer"
|
|
2751
|
-
*
|
|
2752
2749
|
* export function MyComponent() {
|
|
2753
2750
|
* const inputRange = [-200, -100, 100, 200]
|
|
2754
2751
|
* const outputRange = [0, 1, 1, 0]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motion-dom",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.18.1",
|
|
4
4
|
"author": "Matt Perry",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/motiondivision/motion",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"motion-utils": "^12.
|
|
20
|
+
"motion-utils": "^12.18.1"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"clean": "rm -rf types dist lib",
|
|
24
|
-
"build": "yarn clean && tsc -p . && rollup -c",
|
|
24
|
+
"build": "yarn clean && tsc -p . && rollup -c && node ./scripts/check-bundle.js",
|
|
25
25
|
"dev": "concurrently -c blue,red -n tsc,rollup --kill-others \"tsc --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\"",
|
|
26
26
|
"test": "jest --config jest.config.json --max-workers=2",
|
|
27
27
|
"measure": "rollup -c ./rollup.size.config.mjs"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"maxSize": "1.8 kB"
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "f3102d56a0a1a84aab20563f97e7976b6c8612df"
|
|
40
40
|
}
|