@yorab/react-paint 0.9.3 → 0.10.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/README.md +1 -1
- package/dist/components/App.d.ts +1 -1
- package/dist/components/Canvas.d.ts +10 -5
- package/dist/components/settings/SettingsBar.d.ts +3 -3
- package/dist/components/toolbox/EditTextBox.d.ts +3 -2
- package/dist/constants/app.d.ts +18 -1
- package/dist/hooks/useDrawableCanvas.d.ts +8 -11
- package/dist/hooks/useKeyboard.d.ts +3 -5
- package/dist/hooks/useShapes.d.ts +8 -6
- package/dist/react-paint.css +1 -1
- package/dist/react-paint.js +1106 -1003
- package/dist/react-paint.umd.cjs +1 -1
- package/dist/types/Mode.d.ts +6 -1
- package/dist/types/Shapes.d.ts +5 -5
- package/dist/types/react.d.ts +0 -1
- package/dist/utils/canvas.d.ts +3 -1
- package/dist/utils/data.d.ts +2 -1
- package/dist/utils/file.d.ts +4 -3
- package/dist/utils/grid.d.ts +2 -3
- package/dist/utils/intersect.d.ts +8 -3
- package/dist/utils/selection/lineSelection.d.ts +6 -5
- package/dist/utils/selection/rectSelection.d.ts +5 -5
- package/dist/utils/selection/selectionFrame.d.ts +3 -0
- package/dist/utils/selection.d.ts +3 -2
- package/dist/utils/shapes/brush.d.ts +9 -9
- package/dist/utils/shapes/circle.d.ts +7 -7
- package/dist/utils/shapes/curve.d.ts +8 -8
- package/dist/utils/shapes/ellipse.d.ts +7 -7
- package/dist/utils/shapes/index.d.ts +18 -15
- package/dist/utils/shapes/line.d.ts +7 -7
- package/dist/utils/shapes/path.d.ts +3 -2
- package/dist/utils/shapes/picture.d.ts +7 -7
- package/dist/utils/shapes/polygon.d.ts +9 -9
- package/dist/utils/shapes/rectangle.d.ts +8 -8
- package/dist/utils/shapes/text.d.ts +9 -9
- package/dist/utils/style.d.ts +1 -1
- package/dist/utils/transform.d.ts +11 -5
- package/dist/utils/trigo.d.ts +2 -1
- package/package.json +55 -69
- package/dist/utils/migration.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,70 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"peerDependencies": {
|
|
58
|
-
"react": "18.x",
|
|
59
|
-
"react-dom": "18.x"
|
|
60
|
-
},
|
|
61
|
-
"scripts": {
|
|
62
|
-
"declarationfiles": "npx tsc --project tsconfig.prod.json",
|
|
63
|
-
"start": "storybook dev -p 6006",
|
|
64
|
-
"build-storybook": "storybook build",
|
|
65
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
66
|
-
"build": "vite build && npm run declarationfiles",
|
|
67
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
68
|
-
"publishnpm": "npm run build && npm publish --access public"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
2
|
+
"name": "@yorab/react-paint",
|
|
3
|
+
"version": "0.10.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "Yohann Rabatel",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"main": "./dist/react-paint.umd.cjs",
|
|
9
|
+
"module": "./dist/react-paint.js",
|
|
10
|
+
"types": "./dist/components/App.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/react-paint.js",
|
|
14
|
+
"require": "./dist/react-paint.umd.cjs",
|
|
15
|
+
"types": "./dist/components/App.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./react-paint.css": "./dist/react-paint.css"
|
|
18
|
+
},
|
|
19
|
+
"files": ["README.md", "LICENSE.txt", "package.json", "dist/"],
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@biomejs/biome": "1.5.3",
|
|
22
|
+
"@rollup/plugin-terser": "0.4.4",
|
|
23
|
+
"@storybook/addon-essentials": "7.6.3",
|
|
24
|
+
"@storybook/addon-interactions": "7.6.3",
|
|
25
|
+
"@storybook/addon-links": "7.6.3",
|
|
26
|
+
"@storybook/blocks": "7.6.3",
|
|
27
|
+
"@storybook/react": "7.6.3",
|
|
28
|
+
"@storybook/react-vite": "7.6.3",
|
|
29
|
+
"@storybook/test": "7.6.3",
|
|
30
|
+
"@storybook/testing-library": "0.2.2",
|
|
31
|
+
"@types/node": "20.4.5",
|
|
32
|
+
"@types/react": "18.2.17",
|
|
33
|
+
"@types/react-dom": "18.2.7",
|
|
34
|
+
"@vitejs/plugin-react": "4.2.0",
|
|
35
|
+
"lightningcss": "1.21.5",
|
|
36
|
+
"react": "18.2.0",
|
|
37
|
+
"react-dom": "18.2.0",
|
|
38
|
+
"storybook": "7.6.3",
|
|
39
|
+
"typescript": "5.3.2",
|
|
40
|
+
"vite": "5.0.13",
|
|
41
|
+
"vite-tsconfig-paths": "4.2.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": "18.x",
|
|
45
|
+
"react-dom": "18.x"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"declarationfiles": "npx tsc --project tsconfig.prod.json",
|
|
49
|
+
"start": "storybook dev -p 6006",
|
|
50
|
+
"build-storybook": "storybook build",
|
|
51
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
52
|
+
"build": "vite build && npm run declarationfiles",
|
|
53
|
+
"lint": "npx @biomejs/biome check --apply src stories",
|
|
54
|
+
"publishnpm": "npm run build && npm publish --access public"
|
|
55
|
+
}
|
|
56
|
+
}
|