@berviantoleo/react-multi-crop 0.41.0 → 0.42.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.42.0](https://github.com/berviantoleo/react-multi-crop/compare/@berviantoleo/react-multi-crop@0.41.0...@berviantoleo/react-multi-crop@0.42.0) (2025-01-11)
7
+
8
+ ### Features
9
+
10
+ - drop react 16 and support react 19 ([#3412](https://github.com/berviantoleo/react-multi-crop/issues/3412)) ([dd93e8a](https://github.com/berviantoleo/react-multi-crop/commit/dd93e8a60c40fb493925f944ec77018704e5db88))
11
+
6
12
  # [0.41.0](https://github.com/berviantoleo/react-multi-crop/compare/@berviantoleo/react-multi-crop@0.40.4...@berviantoleo/react-multi-crop@0.41.0) (2025-01-11)
7
13
 
8
14
  ### Features
@@ -29,6 +29,6 @@ declare class ReactMultiCrop extends Component<IReactMultiCropProps, IReactMulti
29
29
  createObject(canvas: fabric.Canvas | null, coor: ICoord, attribute: IAttribute, readonly: boolean): CustomFabricRect | null;
30
30
  discardActiveObject(): void;
31
31
  keyboardHandler(event: React.KeyboardEvent<HTMLDivElement>): void;
32
- render(): JSX.Element;
32
+ render(): React.JSX.Element;
33
33
  }
34
34
  export default ReactMultiCrop;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { IActionComponentProps } from '../interfaces';
2
- export declare function ActionsComponent({ addButton, addNew, deleteButton, deleteShapes, discardActiveObject, discardButton, }: IActionComponentProps): JSX.Element;
3
+ export declare function ActionsComponent({ addButton, addNew, deleteButton, deleteShapes, discardActiveObject, discardButton, }: IActionComponentProps): React.JSX.Element;
@@ -69,11 +69,11 @@ export interface IReactMultiCropProps {
69
69
  /** @deprecated use transparentCorners in record */
70
70
  transparentCorners?: boolean;
71
71
  /** @deprecated will completely remove the buttons */
72
- addButton?: JSX.Element;
72
+ addButton?: React.JSX.Element;
73
73
  /** @deprecated will completely remove the buttons */
74
- deleteButton?: JSX.Element;
74
+ deleteButton?: React.JSX.Element;
75
75
  /** @deprecated will completely remove the buttons */
76
- discardButton?: JSX.Element;
76
+ discardButton?: React.JSX.Element;
77
77
  /** @deprecated will completely remove the buttons */
78
78
  showButton?: boolean;
79
79
  /** @deprecated avoid to use this props */
@@ -106,10 +106,10 @@ export declare class CustomFabricRect extends fabric.Rect {
106
106
  }
107
107
  /** @deprecated will completely remove the buttons */
108
108
  export interface IActionComponentProps {
109
- addButton?: JSX.Element;
109
+ addButton?: React.JSX.Element;
110
110
  addNew(): void;
111
- deleteButton?: JSX.Element;
111
+ deleteButton?: React.JSX.Element;
112
112
  deleteShapes(): void;
113
113
  discardActiveObject(): void;
114
- discardButton?: JSX.Element;
114
+ discardButton?: React.JSX.Element;
115
115
  }
package/package.json CHANGED
@@ -65,17 +65,17 @@
65
65
  },
66
66
  "peerDependencies": {
67
67
  "fabric": "^4.4.0 || ^5.0.0",
68
- "react": "^16.13.0 || ^17.0.0 || ^18.0.0",
69
- "react-dom": "^16.13.0 || ^17.0.0 || ^18.0.0",
68
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
69
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
70
70
  "uuid": "^8.3.2 || ^9.0.0"
71
71
  },
72
72
  "dependencies": {
73
73
  "fabric": "^5.5.1",
74
- "react": "^18.3.1",
75
- "react-dom": "^18.3.1",
74
+ "react": "^19.0.0",
75
+ "react-dom": "^19.0.0",
76
76
  "uuid": "^11.0.3"
77
77
  },
78
78
  "license": "MIT",
79
- "version": "0.41.0",
80
- "gitHead": "ce10b6c1b9a78a1037bf361047b9fa0fe3ca2c78"
79
+ "version": "0.42.0",
80
+ "gitHead": "33d864dadfc9630977baf8cd080ed4fe841b939b"
81
81
  }