@uppy/file-input
Advanced tools
Comparing version 2.1.1 to 3.0.0-beta
@@ -1,16 +0,9 @@ | ||
"use strict"; | ||
var _core = require("@uppy/core"); | ||
var _preact = require("preact"); | ||
const toArray = require("@uppy/utils/lib/toArray"); | ||
import { UIPlugin } from '@uppy/core'; | ||
import toArray from '@uppy/utils/lib/toArray'; | ||
import { h } from 'preact'; | ||
const packageJson = { | ||
"version": "2.1.1" | ||
"version": "3.0.0-beta" | ||
}; | ||
const locale = require("./locale.js"); | ||
class FileInput extends _core.UIPlugin { | ||
import locale from './locale.js'; | ||
export default class FileInput extends UIPlugin { | ||
constructor(uppy, opts) { | ||
@@ -21,3 +14,3 @@ super(uppy, opts); | ||
this.type = 'acquirer'; | ||
this.defaultLocale = locale; // Default options | ||
this.defaultLocale = locale; // Default options, must be kept in sync with @uppy/react/src/FileInput.js. | ||
@@ -85,5 +78,5 @@ const defaultOptions = { | ||
const accept = restrictions.allowedFileTypes ? restrictions.allowedFileTypes.join(',') : null; | ||
return (0, _preact.h)("div", { | ||
return h("div", { | ||
className: "uppy-FileInput-container" | ||
}, (0, _preact.h)("input", { | ||
}, h("input", { | ||
className: "uppy-FileInput-input", | ||
@@ -99,3 +92,3 @@ style: this.opts.pretty && hiddenInputStyle, | ||
} | ||
}), this.opts.pretty && (0, _preact.h)("button", { | ||
}), this.opts.pretty && h("button", { | ||
className: "uppy-FileInput-btn", | ||
@@ -122,4 +115,2 @@ type: "button", | ||
} | ||
FileInput.VERSION = packageJson.version; | ||
module.exports = FileInput; | ||
FileInput.VERSION = packageJson.version; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = require("./FileInput.js"); | ||
export { default } from "./FileInput.js"; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
module.exports = { | ||
export default { | ||
strings: { | ||
@@ -5,0 +3,0 @@ // The same key is used for the same purpose by @uppy/robodog's `form()` API, but our |
{ | ||
"name": "@uppy/file-input", | ||
"description": "Simple UI of a file input button that works with Uppy right out of the box", | ||
"version": "2.1.1", | ||
"version": "3.0.0-beta", | ||
"license": "MIT", | ||
@@ -26,8 +26,9 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^4.1.0", | ||
"@uppy/utils": "^5.0.0-beta", | ||
"preact": "^10.5.13" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^2.3.0" | ||
} | ||
"@uppy/core": "^3.0.0-beta" | ||
}, | ||
"stableVersion": "2.1.1" | ||
} |
@@ -19,3 +19,3 @@ import { UIPlugin } from '@uppy/core' | ||
// Default options | ||
// Default options, must be kept in sync with @uppy/react/src/FileInput.js. | ||
const defaultOptions = { | ||
@@ -22,0 +22,0 @@ target: null, |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
20670
19
257
1
+ Added@transloadit/prettier-bytes@0.3.4(transitive)
+ Added@uppy/core@3.13.1(transitive)
+ Added@uppy/store-default@3.2.2(transitive)
+ Added@uppy/utils@5.9.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addednanoid@4.0.2(transitive)
- Removed@transloadit/prettier-bytes@0.0.7(transitive)
- Removed@uppy/core@2.3.4(transitive)
- Removed@uppy/store-default@2.1.1(transitive)
- Removed@uppy/utils@4.1.3(transitive)
- Removedlodash.throttle@4.1.1(transitive)
- Removednanoid@3.3.7(transitive)
Updated@uppy/utils@^5.0.0-beta