@types/react-dropzone
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for react-dropzone 4.1.3 | ||
// Type definitions for react-dropzone 4.2.3 | ||
// Project: https://github.com/okonet/react-dropzone | ||
@@ -8,45 +8,42 @@ // Definitions by: Mathieu Larouche Dube <https://github.com/matdube>, | ||
// Karol Janyst <https://github.com/LKay>, | ||
// Andris Causs <https://github.com/codeaid> | ||
// Andris Causs <https://github.com/codeaid>, | ||
// Juraj Husar <https://github.com/jurosh> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
// TypeScript Version: 2.6 | ||
import { CSSProperties, Component, DragEvent, InputHTMLAttributes } from "react"; | ||
declare namespace Dropzone { | ||
export interface ImageFile extends File { | ||
preview?: string; | ||
} | ||
export interface ImageFile extends File { | ||
preview?: string; | ||
} | ||
export type DropFileEventHandler = (acceptedOrRejected: ImageFile[], event: DragEvent<HTMLDivElement>) => void; | ||
export type DropFilesEventHandler = (accepted: ImageFile[], rejected: ImageFile[], event: DragEvent<HTMLDivElement>) => void; | ||
export type DropFileEventHandler = (acceptedOrRejected: ImageFile[], event: DragEvent<HTMLDivElement>) => void; | ||
export type DropFilesEventHandler = (accepted: ImageFile[], rejected: ImageFile[], event: DragEvent<HTMLDivElement>) => void; | ||
type PickedAttributes = "accept" | "className" | "multiple" | "name" | "onClick" | "onDragStart" | "onDragEnter" | "onDragOver" | "onDragLeave" | "style"; | ||
type PickedAttributes = "accept" | "className" | "multiple" | "name" | "onClick" | "onDragStart" | "onDragEnter" | "onDragOver" | "onDragLeave" | "style"; | ||
export interface DropzoneProps extends Pick<InputHTMLAttributes<HTMLDivElement>, PickedAttributes> { | ||
disableClick?: boolean; | ||
disabled?: boolean; | ||
disablePreview?: boolean; | ||
preventDropOnDocument?: boolean; | ||
inputProps?: InputHTMLAttributes<HTMLInputElement>; | ||
maxSize?: number; | ||
minSize?: number; | ||
activeClassName?: string; | ||
acceptClassName?: string; | ||
rejectClassName?: string; | ||
disabledClassName?: string; | ||
activeStyle?: CSSProperties; | ||
acceptStyle?: CSSProperties; | ||
rejectStyle?: CSSProperties; | ||
disabledStyle?: CSSProperties; | ||
onDrop?: DropFilesEventHandler; | ||
onDropAccepted?: DropFileEventHandler; | ||
onDropRejected?: DropFileEventHandler; | ||
onFileDialogCancel?: () => void; | ||
} | ||
export interface DropzoneProps extends Pick<InputHTMLAttributes<HTMLDivElement>, PickedAttributes> { | ||
disableClick?: boolean; | ||
disabled?: boolean; | ||
disablePreview?: boolean; | ||
preventDropOnDocument?: boolean; | ||
inputProps?: InputHTMLAttributes<HTMLInputElement>; | ||
maxSize?: number; | ||
minSize?: number; | ||
activeClassName?: string; | ||
acceptClassName?: string; | ||
rejectClassName?: string; | ||
disabledClassName?: string; | ||
activeStyle?: CSSProperties; | ||
acceptStyle?: CSSProperties; | ||
rejectStyle?: CSSProperties; | ||
disabledStyle?: CSSProperties; | ||
onDrop?: DropFilesEventHandler; | ||
onDropAccepted?: DropFileEventHandler; | ||
onDropRejected?: DropFileEventHandler; | ||
onFileDialogCancel?: () => void; | ||
} | ||
declare class Dropzone extends Component<Dropzone.DropzoneProps> { | ||
export default class Dropzone extends Component<DropzoneProps> { | ||
open(): void; | ||
} | ||
export = Dropzone; |
{ | ||
"name": "@types/react-dropzone", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "TypeScript definitions for react-dropzone", | ||
@@ -36,2 +36,7 @@ "license": "MIT", | ||
"githubUsername": "codeaid" | ||
}, | ||
{ | ||
"name": "Juraj Husar", | ||
"url": "https://github.com/jurosh", | ||
"githubUsername": "jurosh" | ||
} | ||
@@ -48,4 +53,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "de981e39d1dfa7dcb419c762b952f5bb21cc599d220ccd73431f6c30d64f2bf8", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "5c2ae2c553ebe2bb6ad5998f87965c3e7451af695d04bde47dc3f5aa54598100", | ||
"typeScriptVersion": "2.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 25 Sep 2017 19:22:12 GMT | ||
* Last updated: Thu, 28 Dec 2017 02:21:03 GMT | ||
* Dependencies: react | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Mathieu Larouche Dube <https://github.com/matdube>, Ivo Jesus <https://github.com/LynxEyes>, Luís Rodrigues <https://github.com/goblindegook>, Ben Bayard <https://github.com/benbayard>, Karol Janyst <https://github.com/LKay>, Andris Causs <https://github.com/codeaid>. | ||
These definitions were written by Mathieu Larouche Dube <https://github.com/matdube>, Ivo Jesus <https://github.com/LynxEyes>, Luís Rodrigues <https://github.com/goblindegook>, Ben Bayard <https://github.com/benbayard>, Karol Janyst <https://github.com/LKay>, Andris Causs <https://github.com/codeaid>, Juraj Husar <https://github.com/jurosh>. |
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
5512
42