react-uploader
Advanced tools
Comparing version 2.4.0 to 3.0.0
/// <reference types="react" /> | ||
import { UploaderInterface, UploaderResult, UploaderOptions } from "uploader"; | ||
import { UploaderInterface, UploadWidgetResult, UploadWidgetConfig } from "uploader"; | ||
interface MouseEventLite { | ||
@@ -10,4 +10,4 @@ preventDefault: () => void; | ||
}) => JSX.Element; | ||
onComplete?: (files: UploaderResult[]) => void; | ||
options?: UploaderOptions; | ||
onComplete?: (files: UploadWidgetResult[]) => void; | ||
options?: UploadWidgetConfig; | ||
uploader: UploaderInterface; | ||
@@ -14,0 +14,0 @@ } |
@@ -1,7 +0,7 @@ | ||
import { UploaderInterface, UploaderResult, UploaderOptions } from "uploader"; | ||
import { UploaderInterface, UploadWidgetResult, UploadWidgetConfig } from "uploader"; | ||
interface Props { | ||
height?: string; | ||
onComplete?: (files: UploaderResult[]) => void; | ||
onUpdate?: (files: UploaderResult[]) => void; | ||
options?: UploaderOptions; | ||
onComplete?: (files: UploadWidgetResult[]) => void; | ||
onUpdate?: (files: UploadWidgetResult[]) => void; | ||
options?: UploadWidgetConfig; | ||
uploader: UploaderInterface; | ||
@@ -8,0 +8,0 @@ width?: string; |
{ | ||
"name": "react-uploader", | ||
"version": "2.4.0", | ||
"version": "3.0.0", | ||
"author": "Upload <hello@upload.io> (https://upload.io)", | ||
@@ -77,3 +77,3 @@ "description": "React File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐", | ||
"dependencies": { | ||
"uploader": "^2.7.0" | ||
"uploader": "^3.0.0" | ||
}, | ||
@@ -80,0 +80,0 @@ "devDependencies": { |
@@ -160,3 +160,3 @@ <h1 align="center"> | ||
The callbacks receive a `Array<UploaderResult>`: | ||
The callbacks receive a `Array<UploadWidgetResult>`: | ||
@@ -163,0 +163,0 @@ ```javascript |
Sorry, the diff of this file is not supported yet
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
114828
+ Addeduploader@3.48.3(transitive)
- Removeduploader@2.7.0(transitive)
Updateduploader@^3.0.0