react-dropzone 14.3.7 → 14.3.8

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/package.json CHANGED
@@ -191,7 +191,7 @@
191
191
  "webpack-blocks": "^2.1.0"
192
192
  },
193
193
  "typings": "typings/react-dropzone.d.ts",
194
- "version": "14.3.7",
194
+ "version": "14.3.8",
195
195
  "engines": {
196
196
  "node": ">= 10.13"
197
197
  },
package/src/index.js CHANGED
@@ -154,7 +154,7 @@ Dropzone.propTypes = {
154
154
  /**
155
155
  * Use this to provide a custom file aggregator
156
156
  *
157
- * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
157
+ * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
158
158
  */
159
159
  getFilesFromEvent: PropTypes.func,
160
160
 
@@ -310,7 +310,7 @@ export default Dropzone;
310
310
  * in a asynchronous fashion, from drag or input change events.
311
311
  *
312
312
  * @callback getFilesFromEvent
313
- * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
313
+ * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
314
314
  * @returns {(File[]|Promise<File[]>)}
315
315
  */
316
316
 
@@ -63,7 +63,8 @@ export type DropEvent =
63
63
  | React.DragEvent<HTMLElement>
64
64
  | React.ChangeEvent<HTMLInputElement>
65
65
  | DragEvent
66
- | Event;
66
+ | Event
67
+ | Array<FileSystemFileHandle>;
67
68
 
68
69
  export type DropzoneState = DropzoneRef & {
69
70
  isFocused: boolean;