Socket
Socket
Sign inDemoInstall

react-dropzone

Package Overview
Dependencies
Maintainers
3
Versions
176
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 11.0.2 to 11.0.3

2

examples/accept/README.md

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

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