@uppy/react
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const React = require('react'); | ||
@@ -70,2 +68,3 @@ | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: container => { | ||
@@ -72,0 +71,0 @@ this.container = container; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const React = require('react'); | ||
@@ -87,2 +85,3 @@ | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: container => { | ||
@@ -89,0 +88,0 @@ this.container = container; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const React = require('react'); | ||
@@ -70,2 +68,3 @@ | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: container => { | ||
@@ -72,0 +71,0 @@ this.container = container; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const PropTypes = require('prop-types'); | ||
@@ -60,2 +58,3 @@ | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: container => { | ||
@@ -62,0 +61,0 @@ this.container = container; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
// List taken from React.HTMLAttributes supported properties: | ||
@@ -4,0 +2,0 @@ // https://unpkg.com/@types/react@17.0.22/index.d.ts:1821 |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const React = require('react'); | ||
@@ -71,2 +69,3 @@ | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: container => { | ||
@@ -73,0 +72,0 @@ this.container = container; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const PropTypes = require('prop-types'); | ||
@@ -4,0 +2,0 @@ |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const React = require('react'); | ||
@@ -72,2 +70,3 @@ | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: container => { | ||
@@ -74,0 +73,0 @@ this.container = container; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const { | ||
@@ -27,3 +25,5 @@ useEffect, | ||
return () => { | ||
uppy.current.close(); | ||
uppy.current.close({ | ||
reason: 'unmount' | ||
}); | ||
}; | ||
@@ -30,0 +30,0 @@ }, []); |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const React = require('react'); | ||
@@ -52,2 +50,3 @@ | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: this.refContainer | ||
@@ -54,0 +53,0 @@ }); |
{ | ||
"name": "@uppy/react", | ||
"description": "React component wrappers around Uppy's official UI plugins.", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"license": "MIT", | ||
@@ -25,21 +25,18 @@ "main": "index.js", | ||
"dependencies": { | ||
"@uppy/dashboard": "^2.1.2", | ||
"@uppy/drag-drop": "^2.0.5", | ||
"@uppy/file-input": "^2.0.5", | ||
"@uppy/progress-bar": "^2.0.4", | ||
"@uppy/status-bar": "^2.1.2", | ||
"@uppy/utils": "^4.0.4", | ||
"@uppy/dashboard": "^2.2.0", | ||
"@uppy/drag-drop": "^2.1.0", | ||
"@uppy/file-input": "^2.1.0", | ||
"@uppy/progress-bar": "^2.1.0", | ||
"@uppy/status-bar": "^2.2.0", | ||
"@uppy/utils": "^4.0.7", | ||
"prop-types": "^15.6.1" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^17.0.13", | ||
"enzyme": "3.11.0", | ||
"enzyme-adapter-react-16": "1.15.2", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6" | ||
"@types/react": "^18.0.8", | ||
"react": "^18.1.0" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^2.1.3", | ||
"react": "^16.0.0 || ^17.0.0" | ||
"@uppy/core": "^2.2.0", | ||
"react": "^16.0.0 || ^17.0.0 || ^18.0.0" | ||
} | ||
} |
@@ -57,2 +57,3 @@ const React = require('react') | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: (container) => { | ||
@@ -59,0 +60,0 @@ this.container = container |
@@ -71,2 +71,3 @@ const React = require('react') | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: (container) => { | ||
@@ -73,0 +74,0 @@ this.container = container |
@@ -58,2 +58,3 @@ const React = require('react') | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: (container) => { | ||
@@ -60,0 +61,0 @@ this.container = container |
@@ -51,2 +51,3 @@ const PropTypes = require('prop-types') | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: (container) => { | ||
@@ -53,0 +54,0 @@ this.container = container |
@@ -58,2 +58,3 @@ const React = require('react') | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: (container) => { | ||
@@ -60,0 +61,0 @@ this.container = container |
@@ -59,2 +59,3 @@ const React = require('react') | ||
return h('div', { | ||
className: 'uppy-Container', | ||
ref: (container) => { | ||
@@ -61,0 +62,0 @@ this.container = container |
@@ -20,3 +20,3 @@ const { useEffect, useRef } = require('react') | ||
return () => { | ||
uppy.current.close() | ||
uppy.current.close({ reason: 'unmount' }) | ||
} | ||
@@ -23,0 +23,0 @@ }, []) |
@@ -48,3 +48,3 @@ const React = require('react') | ||
render () { | ||
return h('div', { ref: this.refContainer }) | ||
return h('div', { className: 'uppy-Container', ref: this.refContainer }) | ||
} | ||
@@ -51,0 +51,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
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
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
2
94248
49
1481
+ Addedreact@18.3.1(transitive)
- Removedreact@17.0.2(transitive)
Updated@uppy/dashboard@^2.2.0
Updated@uppy/drag-drop@^2.1.0
Updated@uppy/file-input@^2.1.0
Updated@uppy/progress-bar@^2.1.0
Updated@uppy/status-bar@^2.2.0
Updated@uppy/utils@^4.0.7