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

react-dropzone

Package Overview
Dependencies
Maintainers
2
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dropzone - npm Package Compare versions

Comparing version 6.1.3 to 6.2.0

typings/tests/plugin.tsx

6

package.json

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

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