react-dropzone 14.3.6 → 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/dist/es/index.js +4 -4
- package/dist/es/package.json +1 -0
- package/dist/index.js +1 -1
- package/package.json +3 -2
- package/src/index.js +4 -4
- package/typings/react-dropzone.d.ts +2 -1
package/dist/es/index.js
CHANGED
|
@@ -37,7 +37,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
37
37
|
import React, { forwardRef, Fragment, useCallback, useEffect, useImperativeHandle, useMemo, useReducer, useRef } from "react";
|
|
38
38
|
import PropTypes from "prop-types";
|
|
39
39
|
import { fromEvent } from "file-selector";
|
|
40
|
-
import { acceptPropAsAcceptAttr, allFilesAccepted, composeEventHandlers, fileAccepted, fileMatchSize, canUseFileSystemAccessAPI, isAbort, isEvtWithFiles, isIeOrEdge, isPropagationStopped, isSecurityError, onDocumentDragOver, pickerOptionsFromAccept, TOO_MANY_FILES_REJECTION } from "./utils/index";
|
|
40
|
+
import { acceptPropAsAcceptAttr, allFilesAccepted, composeEventHandlers, fileAccepted, fileMatchSize, canUseFileSystemAccessAPI, isAbort, isEvtWithFiles, isIeOrEdge, isPropagationStopped, isSecurityError, onDocumentDragOver, pickerOptionsFromAccept, TOO_MANY_FILES_REJECTION } from "./utils/index.js";
|
|
41
41
|
/**
|
|
42
42
|
* Convenience wrapper component for the `useDropzone` hook
|
|
43
43
|
*
|
|
@@ -172,7 +172,7 @@ Dropzone.propTypes = {
|
|
|
172
172
|
/**
|
|
173
173
|
* Use this to provide a custom file aggregator
|
|
174
174
|
*
|
|
175
|
-
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
175
|
+
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
176
176
|
*/
|
|
177
177
|
getFilesFromEvent: PropTypes.func,
|
|
178
178
|
|
|
@@ -326,7 +326,7 @@ export default Dropzone;
|
|
|
326
326
|
* in a asynchronous fashion, from drag or input change events.
|
|
327
327
|
*
|
|
328
328
|
* @callback getFilesFromEvent
|
|
329
|
-
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
329
|
+
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
330
330
|
* @returns {(File[]|Promise<File[]>)}
|
|
331
331
|
*/
|
|
332
332
|
|
|
@@ -980,4 +980,4 @@ function reducer(state, action) {
|
|
|
980
980
|
|
|
981
981
|
function noop() {}
|
|
982
982
|
|
|
983
|
-
export { ErrorCode } from "./utils";
|
|
983
|
+
export { ErrorCode } from "./utils/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|