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.
Files changed (63) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +145 -145
  3. package/electron/assets/electron-ed141e06.css +1 -0
  4. package/electron/assets/index-73f470f6.js +53 -0
  5. package/electron/electron.html +14 -0
  6. package/lib/react-screenshots.cjs.js +14 -0
  7. package/lib/react-screenshots.es.js +1716 -0
  8. package/lib/style.css +1 -0
  9. package/lib/types/ScreenshotsBackground/getBoundsByPoints.d.ts +2 -0
  10. package/lib/types/ScreenshotsBackground/index.d.ts +4 -0
  11. package/lib/types/ScreenshotsButton/index.d.ts +12 -0
  12. package/lib/types/ScreenshotsCanvas/getBoundsByPoints.d.ts +2 -0
  13. package/lib/types/ScreenshotsCanvas/getPoints.d.ts +2 -0
  14. package/lib/types/ScreenshotsCanvas/index.d.ts +15 -0
  15. package/lib/types/ScreenshotsCanvas/isPointInDraw.d.ts +2 -0
  16. package/lib/types/ScreenshotsColor/index.d.ts +8 -0
  17. package/lib/types/ScreenshotsContext.d.ts +29 -0
  18. package/lib/types/ScreenshotsMagnifier/index.d.ts +8 -0
  19. package/lib/types/ScreenshotsOperations/index.d.ts +6 -0
  20. package/lib/types/ScreenshotsOption/index.d.ts +15 -0
  21. package/lib/types/ScreenshotsSize/index.d.ts +8 -0
  22. package/lib/types/ScreenshotsSizeColor/index.d.ts +10 -0
  23. package/lib/types/ScreenshotsTextarea/calculateNodeSize.d.ts +17 -0
  24. package/lib/types/ScreenshotsTextarea/index.d.ts +15 -0
  25. package/lib/types/composeImage.d.ts +10 -0
  26. package/lib/types/exports.d.ts +3 -0
  27. package/lib/types/hooks/useBounds.d.ts +7 -0
  28. package/lib/types/hooks/useCall.d.ts +2 -0
  29. package/lib/types/hooks/useCanvasContextRef.d.ts +2 -0
  30. package/lib/types/hooks/useCanvasMousedown.d.ts +1 -0
  31. package/lib/types/hooks/useCanvasMousemove.d.ts +1 -0
  32. package/lib/types/hooks/useCanvasMouseup.d.ts +1 -0
  33. package/lib/types/hooks/useCursor.d.ts +6 -0
  34. package/lib/types/hooks/useDispatcher.d.ts +2 -0
  35. package/lib/types/hooks/useDrawSelect.d.ts +2 -0
  36. package/lib/types/hooks/useEmiter.d.ts +8 -0
  37. package/lib/types/hooks/useHistory.d.ts +16 -0
  38. package/lib/types/hooks/useLang.d.ts +2 -0
  39. package/lib/types/hooks/useOperation.d.ts +9 -0
  40. package/lib/types/hooks/useReset.d.ts +2 -0
  41. package/lib/types/hooks/useStore.d.ts +2 -0
  42. package/lib/types/index.d.ts +13 -0
  43. package/lib/types/operations/Arrow/draw.d.ts +11 -0
  44. package/lib/types/operations/Arrow/index.d.ts +22 -0
  45. package/lib/types/operations/Brush/draw.d.ts +3 -0
  46. package/lib/types/operations/Brush/index.d.ts +14 -0
  47. package/lib/types/operations/Cancel/index.d.ts +2 -0
  48. package/lib/types/operations/Ellipse/draw.d.ts +11 -0
  49. package/lib/types/operations/Ellipse/index.d.ts +28 -0
  50. package/lib/types/operations/Mosaic/index.d.ts +11 -0
  51. package/lib/types/operations/Ok/index.d.ts +2 -0
  52. package/lib/types/operations/Rectangle/draw.d.ts +11 -0
  53. package/lib/types/operations/Rectangle/index.d.ts +28 -0
  54. package/lib/types/operations/Redo/index.d.ts +2 -0
  55. package/lib/types/operations/Save/index.d.ts +2 -0
  56. package/lib/types/operations/Text/index.d.ts +22 -0
  57. package/lib/types/operations/Undo/index.d.ts +2 -0
  58. package/lib/types/operations/index.d.ts +3 -0
  59. package/lib/types/operations/utils.d.ts +4 -0
  60. package/lib/types/types.d.ts +39 -0
  61. package/lib/types/useGetLoadedImage.d.ts +1 -0
  62. package/lib/types/zh_CN.d.ts +16 -0
  63. package/package.json +22 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-screenshots",
3
- "version": "0.5.16",
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": "^17.0.0",
43
- "react-dom": "^17.0.0"
42
+ "react": ">=16.8",
43
+ "react-dom": ">=16.8"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/react": "^17.0.38",
47
- "@types/react-dom": "^17.0.11",
48
- "@typescript-eslint/eslint-plugin": "^5.10.0",
49
- "@typescript-eslint/parser": "^5.10.0",
50
- "@vitejs/plugin-react": "^1.1.4",
51
- "eslint": "^8.20.0",
52
- "eslint-config-standard": "^16.0.3",
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": "^11.0.1",
55
- "eslint-plugin-import": "^2.26.0",
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.0.0",
58
- "eslint-plugin-react": "^7.30.1",
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.2",
61
- "react": "^17.0.2",
62
- "react-dom": "^17.0.2",
63
- "rimraf": "^3.0.2",
64
- "typescript": "^4.5.5",
65
- "vite": "^2.7.13"
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": "b6dda67da28477ae0d2f6a826fb1bc929a912637"
68
+ "gitHead": "a3fea3d803889e57776d1ea9bbd1544b28901c33"
68
69
  }