react-ui-animate 5.0.0-rc.14 → 5.0.0-rc.3

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/package.json CHANGED
@@ -1,63 +1,54 @@
1
- {
2
- "name": "react-ui-animate",
3
- "version": "5.0.0-rc.14",
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
- "@semantic-release/commit-analyzer": "^13.0.1",
15
- "@semantic-release/git": "^10.0.1",
16
- "@semantic-release/github": "^11.0.3",
17
- "@semantic-release/npm": "^12.0.2",
18
- "@semantic-release/release-notes-generator": "^14.0.3",
19
- "@types/jest": "^29.5.12",
20
- "@types/node": "^20.14.9",
21
- "@types/react": "^18.3.3",
22
- "@types/react-dom": "^18.3.0",
23
- "@types/resize-observer-browser": "^0.1.11",
24
- "babel-core": "^5.8.38",
25
- "babel-runtime": "^6.26.0",
26
- "react": "^18.3.1",
27
- "react-dom": "^18.3.1",
28
- "rimraf": "^6.0.1",
29
- "rollup": "^4.18.0",
30
- "rollup-plugin-typescript2": "^0.36.0",
31
- "semantic-release": "^24.2.6",
32
- "typescript": "^5.5.2"
33
- },
34
- "scripts": {
35
- "clean": "rimraf -rf dist",
36
- "build": "npm run clean && rollup -c",
37
- "start": "npm run clean && rollup -c -w",
38
- "start:dev": "cd example && npm start",
39
- "test": "echo \"Error: no test specified\" && exit 1",
40
- "version:minor": "npm version minor",
41
- "version:major": "npm version major",
42
- "version:patch": "npm version patch",
43
- "version:rc": "npm version prerelease --preid=rc",
44
- "version:prepatch": "npm version prepatch --preid=rc",
45
- "publish:next": "npm publish --tag next",
46
- "publish:latest": "npm publish --tag latest"
47
- },
48
- "repository": {
49
- "type": "git",
50
- "url": "git+https://github.com/dipeshrai123/react-ui-animate.git"
51
- },
52
- "keywords": [
53
- "gesture",
54
- "animation",
55
- "react-ui-animate"
56
- ],
57
- "author": "Dipesh Rai",
58
- "license": "MIT",
59
- "bugs": {
60
- "url": "https://github.com/dipeshrai123/react-ui-animate/issues"
61
- },
62
- "homepage": "https://github.com/dipeshrai123/react-ui-animate#readme"
63
- }
1
+ {
2
+ "name": "react-ui-animate",
3
+ "version": "5.0.0-rc.3",
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.2"
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
+ "test": "echo \"Error: no test specified\" && exit 1",
33
+ "version:minor": "npm version --no-git-tag-version minor",
34
+ "version:major": "npm version --no-git-tag-version major",
35
+ "version:patch": "npm version --no-git-tag-version patch",
36
+ "publish:next": "npm publish --tag next",
37
+ "publish:latest": "npm publish --tag latest"
38
+ },
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/dipeshrai123/react-ui-animate.git"
42
+ },
43
+ "keywords": [
44
+ "gesture",
45
+ "animation",
46
+ "react-ui-animate"
47
+ ],
48
+ "author": "Dipesh Rai",
49
+ "license": "MIT",
50
+ "bugs": {
51
+ "url": "https://github.com/dipeshrai123/react-ui-animate/issues"
52
+ },
53
+ "homepage": "https://github.com/dipeshrai123/react-ui-animate#readme"
54
+ }
@@ -1,2 +0,0 @@
1
- export { useValue } from './useValue';
2
- export { useMount } from './useMount';
@@ -1,17 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import type { MotionValue } from '@raidipesh78/re-motion';
3
- import type { Primitive } from '../types';
4
- import { type ConfigMulti, type ConfigSingle } from '../hooks/useMount';
5
- interface MountPropsSingle<T extends Primitive> extends Partial<ConfigSingle<T>> {
6
- state: boolean;
7
- children: (animation: MotionValue<T>) => ReactNode;
8
- }
9
- interface MountPropsMulti<I extends Record<string, Primitive>> extends ConfigMulti<I> {
10
- state: boolean;
11
- children: (animation: {
12
- [K in keyof I]: MotionValue<I[K]>;
13
- }) => ReactNode;
14
- }
15
- export declare function Mount<T extends Primitive = number>(props: MountPropsSingle<T>): JSX.Element;
16
- export declare function Mount<I extends Record<string, Primitive>>(props: MountPropsMulti<I>): JSX.Element;
17
- export {};
@@ -1 +0,0 @@
1
- export { Mount } from './Mount';
@@ -1,13 +0,0 @@
1
- import { RefObject } from 'react';
2
- interface GestureInstance<E> {
3
- onChange(handler: (event: E) => void): this;
4
- onEnd(handler: (event: E) => void): this;
5
- attach(target: Window | HTMLElement): () => void;
6
- }
7
- interface GestureConstructor<C, E> {
8
- new (config?: C): GestureInstance<E>;
9
- }
10
- export declare function useRecognizer<T extends HTMLElement, C, E>(GestureClass: GestureConstructor<C, E>, refs: Window | RefObject<T> | Array<RefObject<T>>, onEvent: (e: E & {
11
- index: number;
12
- }) => void, config?: C): void;
13
- export {};