react-dropzone
Advanced tools
Comparing version 11.0.2 to 11.0.3
@@ -32,3 +32,3 @@ By providing `accept` prop you can make the dropzone accept specific file types and reject the others. | ||
const fileRejectionItems = fileRejections.map({ file, errors}) => ( | ||
const fileRejectionItems = fileRejections.map(({ file, errors }) => ( | ||
<li key={file.path}> | ||
@@ -35,0 +35,0 @@ {file.path} - {file.size} bytes |
@@ -168,3 +168,3 @@ { | ||
}, | ||
"version": "11.0.2", | ||
"version": "11.0.3", | ||
"engines": { | ||
@@ -171,0 +171,0 @@ "node": ">= 8" |
@@ -31,7 +31,7 @@ import * as React from "react"; | ||
disabled?: boolean; | ||
onDrop?<T extends File>(acceptedFiles: T[], fileRejections: FileRejection[], event: DropEvent): void; | ||
onDropAccepted?<T extends File>(files: T[], event: DropEvent): void; | ||
onDropRejected?(fileRejections: FileRejection[], event: DropEvent): void; | ||
getFilesFromEvent?(event: DropEvent): Promise<Array<File | DataTransferItem>>; | ||
onFileDialogCancel?(): void; | ||
onDrop?: <T extends File>(acceptedFiles: T[], fileRejections: FileRejection[], event: DropEvent) => void; | ||
onDropAccepted?: <T extends File>(files: T[], event: DropEvent) => void; | ||
onDropRejected?: (fileRejections: FileRejection[], event: DropEvent) => void; | ||
getFilesFromEvent?: (event: DropEvent) => Promise<Array<File | DataTransferItem>>; | ||
onFileDialogCancel?: () => void; | ||
}; | ||
@@ -52,8 +52,8 @@ | ||
inputRef: React.RefObject<HTMLInputElement>; | ||
getRootProps(props?: DropzoneRootProps): DropzoneRootProps; | ||
getInputProps(props?: DropzoneInputProps): DropzoneInputProps; | ||
getRootProps: (props?: DropzoneRootProps) => DropzoneRootProps; | ||
getInputProps: (props?: DropzoneInputProps) => DropzoneInputProps; | ||
}; | ||
export interface DropzoneRef { | ||
open(): void; | ||
open: () => void; | ||
} | ||
@@ -60,0 +60,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
328204
2