@uppy/react
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -39,2 +39,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
} | ||
if (prevProps.open && !this.props.open) { | ||
this.plugin.closeModal(); | ||
} else if (!prevProps.open && this.props.open) { | ||
this.plugin.openModal(); | ||
} | ||
}; | ||
@@ -77,10 +83,2 @@ | ||
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
if (this.props.open && !nextProps.open) { | ||
this.plugin.closeModal(); | ||
} else if (!this.props.open && nextProps.open) { | ||
this.plugin.openModal(); | ||
} | ||
}; | ||
_proto.render = function render() { | ||
@@ -87,0 +85,0 @@ var _this = this; |
{ | ||
"name": "@uppy/react", | ||
"description": "React component wrappers around Uppy's official UI plugins.", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"license": "MIT", | ||
@@ -25,7 +25,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"@uppy/dashboard": "^1.5.1", | ||
"@uppy/drag-drop": "^1.4.1", | ||
"@uppy/progress-bar": "^1.3.3", | ||
"@uppy/status-bar": "^1.4.1", | ||
"@uppy/utils": "^2.1.1", | ||
"@uppy/dashboard": "^1.5.2", | ||
"@uppy/drag-drop": "^1.4.2", | ||
"@uppy/progress-bar": "^1.3.4", | ||
"@uppy/status-bar": "^1.4.2", | ||
"@uppy/utils": "^2.1.2", | ||
"prop-types": "^15.6.1" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "18180d577854d1a78588d67eb210528b207bf130" | ||
"gitHead": "2b91a96c95ea1aa32980984904f9877d8a4c4440" | ||
} |
@@ -23,2 +23,7 @@ const React = require('react') | ||
} | ||
if (prevProps.open && !this.props.open) { | ||
this.plugin.closeModal() | ||
} else if (!prevProps.open && this.props.open) { | ||
this.plugin.openModal() | ||
} | ||
} | ||
@@ -59,10 +64,2 @@ | ||
componentWillReceiveProps (nextProps) { | ||
if (this.props.open && !nextProps.open) { | ||
this.plugin.closeModal() | ||
} else if (!this.props.open && nextProps.open) { | ||
this.plugin.openModal() | ||
} | ||
} | ||
render () { | ||
@@ -69,0 +66,0 @@ return h('div', { |
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
39434
1131
Updated@uppy/dashboard@^1.5.2
Updated@uppy/drag-drop@^1.4.2
Updated@uppy/progress-bar@^1.3.4
Updated@uppy/status-bar@^1.4.2
Updated@uppy/utils@^2.1.2