react-dropzone
Advanced tools
Comparing version 6.1.3 to 6.2.0
@@ -14,3 +14,3 @@ { | ||
"styleguide": "styleguidist build", | ||
"test": "npm run eslint:src && jest --coverage", | ||
"test": "npm run eslint:src && jest --coverage && npm run typescript", | ||
"eslint:src": "eslint .", | ||
@@ -89,3 +89,3 @@ "commitmsg": "commitlint -e", | ||
"@commitlint/prompt-cli": "^7.0.0", | ||
"@types/react": "^16.3.2", | ||
"@types/react": "^16.4.6", | ||
"@types/react-dom": "^16.0.4", | ||
@@ -148,3 +148,3 @@ "babel-cli": "^6.9.0", | ||
}, | ||
"version": "6.1.3", | ||
"version": "6.2.0", | ||
"engines": { | ||
@@ -151,0 +151,0 @@ "node": ">= 6" |
@@ -1,6 +0,8 @@ | ||
import { | ||
import React, { | ||
CSSProperties, | ||
Component, | ||
DragEvent, | ||
InputHTMLAttributes | ||
InputHTMLAttributes, | ||
HTMLProps, | ||
ReactNode, | ||
Ref | ||
} from "react"; | ||
@@ -14,3 +16,3 @@ | ||
acceptedOrRejected: FileWithPreview[], | ||
event: DragEvent<HTMLDivElement> | ||
event: React.DragEvent<HTMLDivElement> | ||
) => void; | ||
@@ -20,3 +22,3 @@ export type DropFilesEventHandler = ( | ||
rejected: FileWithPreview[], | ||
event: DragEvent<HTMLDivElement> | ||
event: React.DragEvent<HTMLDivElement> | ||
) => void; | ||
@@ -38,3 +40,3 @@ | ||
export type DropzoneProps = Omit<React.HTMLProps<HTMLDivElement>, "onDrop"> & { | ||
export type DropzoneProps = Omit<HTMLProps<HTMLDivElement>, "onDrop" | "ref"> & { | ||
disableClick?: boolean; | ||
@@ -58,4 +60,6 @@ disabled?: boolean; | ||
onDropRejected?: DropFileEventHandler; | ||
onFileDialogCancel?: () => void; | ||
children?: React.ReactNode | DropzoneRenderFunction; | ||
onFileDialogCancel?(): void; | ||
getDataTransferItems?(event: React.DragEvent<HTMLDivElement> | DragEvent): Promise<Array<File | DataTransferItem>>; | ||
children?: ReactNode | DropzoneRenderFunction; | ||
ref?: Ref<Dropzone>; | ||
}; | ||
@@ -62,0 +66,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
223495
44
3567