react-file-drop
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -34,3 +34,3 @@ import PropTypes from 'prop-types'; | ||
dropEffect: PropTypes.Requireable<string>; | ||
frame: (props: any, propName: any, componentName: any) => Error | undefined; | ||
frame: (props: FileDropProps, propName: "frame" | "className" | "targetClassName" | "draggingOverFrameClassName" | "draggingOverTargetClassName" | "onFrameDragEnter" | "onFrameDragLeave" | "onFrameDrop" | "onDragOver" | "onDragLeave" | "onDrop" | "dropEffect", componentName: string) => Error | undefined; | ||
onFrameDragEnter: PropTypes.Requireable<(...args: any[]) => any>; | ||
@@ -37,0 +37,0 @@ onFrameDragLeave: PropTypes.Requireable<(...args: any[]) => any>; |
@@ -163,3 +163,3 @@ "use strict"; | ||
} | ||
if (prop !== document && prop !== window && !(prop instanceof HTMLElement)) { | ||
if (prop !== document && !(prop instanceof HTMLElement)) { | ||
return new Error('Warning: Prop `' + propName + '` must be one of the following: document, HTMLElement!'); | ||
@@ -166,0 +166,0 @@ } |
{ | ||
"name": "react-file-drop", | ||
"author": "https://sarink.net", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "Zero dependency React component for Gmail or Facebook -like drag and drop file uploader. Drag files anywhere onto the window (or user defined 'frame' prop)! Very extensible, provides many hooks so you can use it to develop any custom behavior that you desire.", | ||
@@ -6,0 +6,0 @@ "main": "FileDrop.js", |
Sorry, the diff of this file is not supported yet
25128
245