Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-dropzone

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-dropzone - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

65

react-dropzone/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc