react-img-cutout 1.0.0
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 +263 -0
- package/dist/components/cutout-viewer/cutout-viewer.d.ts +45 -0
- package/dist/components/cutout-viewer/cutouts/bbox/bbox-cutout.d.ts +23 -0
- package/dist/components/cutout-viewer/cutouts/bbox/bbox-hit-test-strategy.d.ts +7 -0
- package/dist/components/cutout-viewer/cutouts/cutout-context.d.ts +17 -0
- package/dist/components/cutout-viewer/cutouts/cutout-overlay.d.ts +28 -0
- package/dist/components/cutout-viewer/cutouts/image/cutout.d.ts +25 -0
- package/dist/components/cutout-viewer/cutouts/image/image-hit-test-strategy.d.ts +61 -0
- package/dist/components/cutout-viewer/cutouts/polygon/polygon-cutout.d.ts +18 -0
- package/dist/components/cutout-viewer/cutouts/polygon/polygon-hit-test-strategy.d.ts +28 -0
- package/dist/components/cutout-viewer/hit-test-strategy.d.ts +55 -0
- package/dist/components/cutout-viewer/hover-effects.d.ts +192 -0
- package/dist/components/cutout-viewer/index.d.ts +14 -0
- package/dist/components/cutout-viewer/use-cutout-hit-test.d.ts +29 -0
- package/dist/components/cutout-viewer/viewer-context.d.ts +19 -0
- package/dist/demo-images/main.png +0 -0
- package/dist/demo-images/man.png +0 -0
- package/dist/demo-images/woman.png +0 -0
- package/dist/index.cjs +27 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1245 -0
- package/package.json +81 -0
package/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-img-cutout",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/CoreyHayward/react-img-cutout.git"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"dev": "vite",
|
|
29
|
+
"dev:demo": "vite --config vite.config.demo.ts",
|
|
30
|
+
"build": "npm run build:lib",
|
|
31
|
+
"build:lib": "vite build && tsc -p tsconfig.lib.json",
|
|
32
|
+
"build:demo": "vite build --config vite.config.demo.ts",
|
|
33
|
+
"lint": "eslint .",
|
|
34
|
+
"preview": "vite preview",
|
|
35
|
+
"storybook": "storybook dev -p 6006",
|
|
36
|
+
"build-storybook": "storybook build"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": ">=18",
|
|
40
|
+
"react-dom": ">=18"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
44
|
+
"@chromatic-com/storybook": "^5.0.1",
|
|
45
|
+
"@eslint/js": "^9.39.1",
|
|
46
|
+
"@storybook/addon-a11y": "^10.2.11",
|
|
47
|
+
"@storybook/addon-docs": "^10.2.11",
|
|
48
|
+
"@storybook/addon-vitest": "^10.2.11",
|
|
49
|
+
"@storybook/react-vite": "^10.2.11",
|
|
50
|
+
"@types/node": "^24.10.1",
|
|
51
|
+
"@types/react": "^19.2.7",
|
|
52
|
+
"@types/react-dom": "^19.2.3",
|
|
53
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
54
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
55
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
56
|
+
"eslint": "^9.39.1",
|
|
57
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
58
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
59
|
+
"eslint-plugin-storybook": "^10.2.11",
|
|
60
|
+
"globals": "^16.5.0",
|
|
61
|
+
"playwright": "^1.58.2",
|
|
62
|
+
"semantic-release": "^25.0.3",
|
|
63
|
+
"storybook": "^10.2.11",
|
|
64
|
+
"tailwindcss": "^4.2.1",
|
|
65
|
+
"typescript": "~5.9.3",
|
|
66
|
+
"typescript-eslint": "^8.48.0",
|
|
67
|
+
"vite": "^7.3.1",
|
|
68
|
+
"vitest": "^4.0.18"
|
|
69
|
+
},
|
|
70
|
+
"release": {
|
|
71
|
+
"branches": [
|
|
72
|
+
"main"
|
|
73
|
+
],
|
|
74
|
+
"plugins": [
|
|
75
|
+
"@semantic-release/commit-analyzer",
|
|
76
|
+
"@semantic-release/release-notes-generator",
|
|
77
|
+
"@semantic-release/npm",
|
|
78
|
+
"@semantic-release/github"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|