react-ui-animate 5.0.0-rc.6 → 5.0.0-rc.8
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/LICENSE +21 -21
- package/README.md +206 -206
- package/dist/animation/{AnimationConfig.d.ts → Config.d.ts} +1 -1
- package/dist/animation/hooks/index.d.ts +2 -0
- package/dist/animation/{useMount.d.ts → hooks/useMount.d.ts} +3 -4
- package/dist/animation/{useValue.d.ts → hooks/useValue.d.ts} +1 -1
- package/dist/animation/index.d.ts +5 -5
- package/dist/animation/modules/Mount.d.ts +17 -0
- package/dist/animation/modules/index.d.ts +1 -0
- package/dist/gestures/hooks/useRecognizer.d.ts +13 -0
- package/dist/hooks/index.d.ts +0 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +0 -2
- package/package.json +55 -55
- package/dist/gestures/hooks/useLatest.d.ts +0 -1
- package/dist/hooks/useDimension.d.ts +0 -9
- package/dist/hooks/useMeasure.d.ts +0 -12
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare function bin(bool: boolean): 1 | 0;
|
|
2
|
-
export declare function mix(perc: number, val1: number, val2: number): number;
|
|
3
1
|
export declare function clamp(value: number, lowerbound: number, upperbound: number): number;
|
|
4
2
|
export declare function rubberClamp(value: number, lowerbound: number, upperbound: number, constant?: number): number;
|
|
5
3
|
export declare function snapTo(value: number, velocity: number, snapPoints: Array<number>): number;
|
package/package.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-ui-animate",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
4
|
-
"description": "React library for gestures and animation",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"peerDependencies": {
|
|
7
|
-
"react": ">=16.8.0 || >=17.0.0 || >=18.0.0"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@raidipesh78/re-motion": "^5.2.3"
|
|
11
|
-
},
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
14
|
-
"@types/jest": "^29.5.12",
|
|
15
|
-
"@types/node": "^20.14.9",
|
|
16
|
-
"@types/react": "^18.3.3",
|
|
17
|
-
"@types/react-dom": "^18.3.0",
|
|
18
|
-
"@types/resize-observer-browser": "^0.1.11",
|
|
19
|
-
"babel-core": "^5.8.38",
|
|
20
|
-
"babel-runtime": "^6.26.0",
|
|
21
|
-
"react": "^18.3.1",
|
|
22
|
-
"react-dom": "^18.3.1",
|
|
23
|
-
"rimraf": "^6.0.1",
|
|
24
|
-
"rollup": "^4.18.0",
|
|
25
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
26
|
-
"typescript": "^5.5.2"
|
|
27
|
-
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"clean": "rimraf -rf dist",
|
|
30
|
-
"build": "npm run clean && rollup -c",
|
|
31
|
-
"start": "npm run clean && rollup -c -w",
|
|
32
|
-
"start:dev": "cd example && npm start",
|
|
33
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
34
|
-
"version:minor": "npm version --no-git-tag-version minor",
|
|
35
|
-
"version:major": "npm version --no-git-tag-version major",
|
|
36
|
-
"version:patch": "npm version --no-git-tag-version patch",
|
|
37
|
-
"publish:next": "npm publish --tag next",
|
|
38
|
-
"publish:latest": "npm publish --tag latest"
|
|
39
|
-
},
|
|
40
|
-
"repository": {
|
|
41
|
-
"type": "git",
|
|
42
|
-
"url": "git+https://github.com/dipeshrai123/react-ui-animate.git"
|
|
43
|
-
},
|
|
44
|
-
"keywords": [
|
|
45
|
-
"gesture",
|
|
46
|
-
"animation",
|
|
47
|
-
"react-ui-animate"
|
|
48
|
-
],
|
|
49
|
-
"author": "Dipesh Rai",
|
|
50
|
-
"license": "MIT",
|
|
51
|
-
"bugs": {
|
|
52
|
-
"url": "https://github.com/dipeshrai123/react-ui-animate/issues"
|
|
53
|
-
},
|
|
54
|
-
"homepage": "https://github.com/dipeshrai123/react-ui-animate#readme"
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-ui-animate",
|
|
3
|
+
"version": "5.0.0-rc.8",
|
|
4
|
+
"description": "React library for gestures and animation",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"react": ">=16.8.0 || >=17.0.0 || >=18.0.0"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@raidipesh78/re-motion": "^5.2.3"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
14
|
+
"@types/jest": "^29.5.12",
|
|
15
|
+
"@types/node": "^20.14.9",
|
|
16
|
+
"@types/react": "^18.3.3",
|
|
17
|
+
"@types/react-dom": "^18.3.0",
|
|
18
|
+
"@types/resize-observer-browser": "^0.1.11",
|
|
19
|
+
"babel-core": "^5.8.38",
|
|
20
|
+
"babel-runtime": "^6.26.0",
|
|
21
|
+
"react": "^18.3.1",
|
|
22
|
+
"react-dom": "^18.3.1",
|
|
23
|
+
"rimraf": "^6.0.1",
|
|
24
|
+
"rollup": "^4.18.0",
|
|
25
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
26
|
+
"typescript": "^5.5.2"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"clean": "rimraf -rf dist",
|
|
30
|
+
"build": "npm run clean && rollup -c",
|
|
31
|
+
"start": "npm run clean && rollup -c -w",
|
|
32
|
+
"start:dev": "cd example && npm start",
|
|
33
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
34
|
+
"version:minor": "npm version --no-git-tag-version minor",
|
|
35
|
+
"version:major": "npm version --no-git-tag-version major",
|
|
36
|
+
"version:patch": "npm version --no-git-tag-version patch",
|
|
37
|
+
"publish:next": "npm publish --tag next",
|
|
38
|
+
"publish:latest": "npm publish --tag latest"
|
|
39
|
+
},
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/dipeshrai123/react-ui-animate.git"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"gesture",
|
|
46
|
+
"animation",
|
|
47
|
+
"react-ui-animate"
|
|
48
|
+
],
|
|
49
|
+
"author": "Dipesh Rai",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/dipeshrai123/react-ui-animate/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/dipeshrai123/react-ui-animate#readme"
|
|
55
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useLatest<T>(value: T): React.MutableRefObject<T>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DependencyList } from 'react';
|
|
2
|
-
type DimensionType = {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
innerWidth: number;
|
|
6
|
-
innerHeight: number;
|
|
7
|
-
};
|
|
8
|
-
export declare function useDimension(callback: (event: DimensionType) => void, deps?: DependencyList): void;
|
|
9
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RefObject, DependencyList } from 'react';
|
|
2
|
-
type MeasurementValue = number | number[];
|
|
3
|
-
interface MeasurementType {
|
|
4
|
-
left: MeasurementValue;
|
|
5
|
-
top: MeasurementValue;
|
|
6
|
-
width: MeasurementValue;
|
|
7
|
-
height: MeasurementValue;
|
|
8
|
-
vLeft: MeasurementValue;
|
|
9
|
-
vTop: MeasurementValue;
|
|
10
|
-
}
|
|
11
|
-
export declare function useMeasure(refs: RefObject<HTMLElement>[], callback: (m: MeasurementType) => void, deps?: DependencyList): void;
|
|
12
|
-
export {};
|