react-screenshots 0.5.16 → 0.5.18

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 (61) hide show
  1. package/electron/assets/index.0d61ff16.js +222 -0
  2. package/electron/assets/index.78c5dcbf.css +1 -0
  3. package/electron/electron.html +14 -0
  4. package/lib/react-screenshots.cjs.js +14 -0
  5. package/lib/react-screenshots.es.js +3166 -0
  6. package/lib/style.css +1 -0
  7. package/lib/types/ScreenshotsBackground/getBoundsByPoints.d.ts +2 -0
  8. package/lib/types/ScreenshotsBackground/index.d.ts +4 -0
  9. package/lib/types/ScreenshotsButton/index.d.ts +12 -0
  10. package/lib/types/ScreenshotsCanvas/getBoundsByPoints.d.ts +2 -0
  11. package/lib/types/ScreenshotsCanvas/getPoints.d.ts +2 -0
  12. package/lib/types/ScreenshotsCanvas/index.d.ts +15 -0
  13. package/lib/types/ScreenshotsCanvas/isPointInDraw.d.ts +2 -0
  14. package/lib/types/ScreenshotsColor/index.d.ts +8 -0
  15. package/lib/types/ScreenshotsContext.d.ts +29 -0
  16. package/lib/types/ScreenshotsMagnifier/index.d.ts +8 -0
  17. package/lib/types/ScreenshotsOperations/index.d.ts +6 -0
  18. package/lib/types/ScreenshotsOption/index.d.ts +15 -0
  19. package/lib/types/ScreenshotsSize/index.d.ts +8 -0
  20. package/lib/types/ScreenshotsSizeColor/index.d.ts +10 -0
  21. package/lib/types/ScreenshotsTextarea/calculateNodeSize.d.ts +17 -0
  22. package/lib/types/ScreenshotsTextarea/index.d.ts +15 -0
  23. package/lib/types/composeImage.d.ts +10 -0
  24. package/lib/types/exports.d.ts +3 -0
  25. package/lib/types/hooks/useBounds.d.ts +7 -0
  26. package/lib/types/hooks/useCall.d.ts +2 -0
  27. package/lib/types/hooks/useCanvasContextRef.d.ts +2 -0
  28. package/lib/types/hooks/useCanvasMousedown.d.ts +1 -0
  29. package/lib/types/hooks/useCanvasMousemove.d.ts +1 -0
  30. package/lib/types/hooks/useCanvasMouseup.d.ts +1 -0
  31. package/lib/types/hooks/useCursor.d.ts +6 -0
  32. package/lib/types/hooks/useDispatcher.d.ts +2 -0
  33. package/lib/types/hooks/useDrawSelect.d.ts +2 -0
  34. package/lib/types/hooks/useEmiter.d.ts +8 -0
  35. package/lib/types/hooks/useHistory.d.ts +16 -0
  36. package/lib/types/hooks/useLang.d.ts +2 -0
  37. package/lib/types/hooks/useOperation.d.ts +6 -0
  38. package/lib/types/hooks/useReset.d.ts +2 -0
  39. package/lib/types/hooks/useStore.d.ts +2 -0
  40. package/lib/types/index.d.ts +13 -0
  41. package/lib/types/operations/Arrow/draw.d.ts +11 -0
  42. package/lib/types/operations/Arrow/index.d.ts +22 -0
  43. package/lib/types/operations/Brush/draw.d.ts +3 -0
  44. package/lib/types/operations/Brush/index.d.ts +14 -0
  45. package/lib/types/operations/Cancel/index.d.ts +2 -0
  46. package/lib/types/operations/Ellipse/draw.d.ts +11 -0
  47. package/lib/types/operations/Ellipse/index.d.ts +28 -0
  48. package/lib/types/operations/Mosaic/index.d.ts +11 -0
  49. package/lib/types/operations/Ok/index.d.ts +2 -0
  50. package/lib/types/operations/Rectangle/draw.d.ts +11 -0
  51. package/lib/types/operations/Rectangle/index.d.ts +28 -0
  52. package/lib/types/operations/Redo/index.d.ts +2 -0
  53. package/lib/types/operations/Save/index.d.ts +2 -0
  54. package/lib/types/operations/Text/index.d.ts +22 -0
  55. package/lib/types/operations/Undo/index.d.ts +2 -0
  56. package/lib/types/operations/index.d.ts +3 -0
  57. package/lib/types/operations/utils.d.ts +4 -0
  58. package/lib/types/types.d.ts +39 -0
  59. package/lib/types/useGetLoadedImage.d.ts +1 -0
  60. package/lib/types/zh_CN.d.ts +16 -0
  61. package/package.json +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-screenshots",
3
- "version": "0.5.16",
3
+ "version": "0.5.18",
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,8 +39,8 @@
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 || ^17.0",
43
+ "react-dom": "^16.8 || ^17.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/react": "^17.0.38",
@@ -64,5 +64,5 @@
64
64
  "typescript": "^4.5.5",
65
65
  "vite": "^2.7.13"
66
66
  },
67
- "gitHead": "b6dda67da28477ae0d2f6a826fb1bc929a912637"
67
+ "gitHead": "f4324d64f0d8952205d68cd1de999ab7f67a47b6"
68
68
  }