react-screenshots 0.5.16 → 0.5.19
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 +145 -145
- package/electron/assets/electron-ed141e06.css +1 -0
- package/electron/assets/index-73f470f6.js +53 -0
- package/electron/electron.html +14 -0
- package/lib/react-screenshots.cjs.js +14 -0
- package/lib/react-screenshots.es.js +1716 -0
- package/lib/style.css +1 -0
- package/lib/types/ScreenshotsBackground/getBoundsByPoints.d.ts +2 -0
- package/lib/types/ScreenshotsBackground/index.d.ts +4 -0
- package/lib/types/ScreenshotsButton/index.d.ts +12 -0
- package/lib/types/ScreenshotsCanvas/getBoundsByPoints.d.ts +2 -0
- package/lib/types/ScreenshotsCanvas/getPoints.d.ts +2 -0
- package/lib/types/ScreenshotsCanvas/index.d.ts +15 -0
- package/lib/types/ScreenshotsCanvas/isPointInDraw.d.ts +2 -0
- package/lib/types/ScreenshotsColor/index.d.ts +8 -0
- package/lib/types/ScreenshotsContext.d.ts +29 -0
- package/lib/types/ScreenshotsMagnifier/index.d.ts +8 -0
- package/lib/types/ScreenshotsOperations/index.d.ts +6 -0
- package/lib/types/ScreenshotsOption/index.d.ts +15 -0
- package/lib/types/ScreenshotsSize/index.d.ts +8 -0
- package/lib/types/ScreenshotsSizeColor/index.d.ts +10 -0
- package/lib/types/ScreenshotsTextarea/calculateNodeSize.d.ts +17 -0
- package/lib/types/ScreenshotsTextarea/index.d.ts +15 -0
- package/lib/types/composeImage.d.ts +10 -0
- package/lib/types/exports.d.ts +3 -0
- package/lib/types/hooks/useBounds.d.ts +7 -0
- package/lib/types/hooks/useCall.d.ts +2 -0
- package/lib/types/hooks/useCanvasContextRef.d.ts +2 -0
- package/lib/types/hooks/useCanvasMousedown.d.ts +1 -0
- package/lib/types/hooks/useCanvasMousemove.d.ts +1 -0
- package/lib/types/hooks/useCanvasMouseup.d.ts +1 -0
- package/lib/types/hooks/useCursor.d.ts +6 -0
- package/lib/types/hooks/useDispatcher.d.ts +2 -0
- package/lib/types/hooks/useDrawSelect.d.ts +2 -0
- package/lib/types/hooks/useEmiter.d.ts +8 -0
- package/lib/types/hooks/useHistory.d.ts +16 -0
- package/lib/types/hooks/useLang.d.ts +2 -0
- package/lib/types/hooks/useOperation.d.ts +9 -0
- package/lib/types/hooks/useReset.d.ts +2 -0
- package/lib/types/hooks/useStore.d.ts +2 -0
- package/lib/types/index.d.ts +13 -0
- package/lib/types/operations/Arrow/draw.d.ts +11 -0
- package/lib/types/operations/Arrow/index.d.ts +22 -0
- package/lib/types/operations/Brush/draw.d.ts +3 -0
- package/lib/types/operations/Brush/index.d.ts +14 -0
- package/lib/types/operations/Cancel/index.d.ts +2 -0
- package/lib/types/operations/Ellipse/draw.d.ts +11 -0
- package/lib/types/operations/Ellipse/index.d.ts +28 -0
- package/lib/types/operations/Mosaic/index.d.ts +11 -0
- package/lib/types/operations/Ok/index.d.ts +2 -0
- package/lib/types/operations/Rectangle/draw.d.ts +11 -0
- package/lib/types/operations/Rectangle/index.d.ts +28 -0
- package/lib/types/operations/Redo/index.d.ts +2 -0
- package/lib/types/operations/Save/index.d.ts +2 -0
- package/lib/types/operations/Text/index.d.ts +22 -0
- package/lib/types/operations/Undo/index.d.ts +2 -0
- package/lib/types/operations/index.d.ts +3 -0
- package/lib/types/operations/utils.d.ts +4 -0
- package/lib/types/types.d.ts +39 -0
- package/lib/types/useGetLoadedImage.d.ts +1 -0
- package/lib/types/zh_CN.d.ts +16 -0
- package/package.json +22 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-screenshots",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.19",
|
|
4
4
|
"description": "a screenshot cropper tool by react",
|
|
5
5
|
"main": "./lib/react-screenshots.cjs.js",
|
|
6
6
|
"module": "./lib/react-screenshots.es.js",
|
|
@@ -39,30 +39,31 @@
|
|
|
39
39
|
"registry": "https://registry.npmjs.org/"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"react": "
|
|
43
|
-
"react-dom": "
|
|
42
|
+
"react": ">=16.8",
|
|
43
|
+
"react-dom": ">=16.8"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/react": "^
|
|
47
|
-
"@types/react-dom": "^
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
49
|
-
"@typescript-eslint/parser": "^5.
|
|
50
|
-
"@vitejs/plugin-react": "^
|
|
51
|
-
"eslint": "^8.
|
|
52
|
-
"eslint-config-standard": "^
|
|
46
|
+
"@types/react": "^18.0.31",
|
|
47
|
+
"@types/react-dom": "^18.0.11",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
49
|
+
"@typescript-eslint/parser": "^5.57.0",
|
|
50
|
+
"@vitejs/plugin-react": "^3.1.0",
|
|
51
|
+
"eslint": "^8.37.0",
|
|
52
|
+
"eslint-config-standard": "^17.0.0",
|
|
53
53
|
"eslint-config-standard-jsx": "^11.0.0",
|
|
54
|
-
"eslint-config-standard-react": "^
|
|
55
|
-
"eslint-plugin-import": "^2.
|
|
54
|
+
"eslint-config-standard-react": "^13.0.0",
|
|
55
|
+
"eslint-plugin-import": "^2.27.5",
|
|
56
|
+
"eslint-plugin-n": "^15.6.1",
|
|
56
57
|
"eslint-plugin-node": "^11.1.0",
|
|
57
|
-
"eslint-plugin-promise": "^6.
|
|
58
|
-
"eslint-plugin-react": "^7.
|
|
58
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
59
|
+
"eslint-plugin-react": "^7.32.2",
|
|
59
60
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
60
|
-
"less": "^4.1.
|
|
61
|
-
"react": "^
|
|
62
|
-
"react-dom": "^
|
|
63
|
-
"rimraf": "^
|
|
64
|
-
"typescript": "^
|
|
65
|
-
"vite": "^2.
|
|
61
|
+
"less": "^4.1.3",
|
|
62
|
+
"react": "^18.2.0",
|
|
63
|
+
"react-dom": "^18.2.0",
|
|
64
|
+
"rimraf": "^4.4.1",
|
|
65
|
+
"typescript": "^5.0.2",
|
|
66
|
+
"vite": "^4.2.1"
|
|
66
67
|
},
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "a3fea3d803889e57776d1ea9bbd1544b28901c33"
|
|
68
69
|
}
|