@panneau/modal-upload 3.0.310 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/es/index.js +11 -24
  2. package/package.json +5 -5
package/es/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
2
2
  import Dashboard from '@uppy/react/dashboard';
3
- import PropTypes from 'prop-types';
4
3
  import React from 'react';
5
4
  import Dialog from '@panneau/modal-dialog';
6
5
  import '@uppy/core/css/style.css';
@@ -10,27 +9,17 @@ var _excluded = ["id", "title", "uppy", "plugins", "onClose"];
10
9
 
11
10
  // import '@uppy/react/css/style.css';
12
11
 
13
- var propTypes = {
14
- id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
15
- title: PropTypes.string,
16
- uppy: PropTypes.shape({
17
- reset: PropTypes.func
18
- }),
19
- plugins: PropTypes.arrayOf(PropTypes.string),
20
- onClose: PropTypes.func
21
- };
22
- var defaultProps = {
23
- title: null,
24
- uppy: null,
25
- plugins: [],
26
- onClose: null
27
- };
28
- var UploadModal = function UploadModal(_ref) {
12
+ var DEFAULT_PLUGINS = [];
13
+ function UploadModal(_ref) {
29
14
  var id = _ref.id,
30
- title = _ref.title,
31
- uppy = _ref.uppy,
32
- plugins = _ref.plugins,
33
- onClose = _ref.onClose,
15
+ _ref$title = _ref.title,
16
+ title = _ref$title === void 0 ? null : _ref$title,
17
+ _ref$uppy = _ref.uppy,
18
+ uppy = _ref$uppy === void 0 ? null : _ref$uppy,
19
+ _ref$plugins = _ref.plugins,
20
+ plugins = _ref$plugins === void 0 ? DEFAULT_PLUGINS : _ref$plugins,
21
+ _ref$onClose = _ref.onClose,
22
+ onClose = _ref$onClose === void 0 ? null : _ref$onClose,
34
23
  props = _objectWithoutProperties(_ref, _excluded);
35
24
  return /*#__PURE__*/React.createElement(Dialog, {
36
25
  id: id,
@@ -48,8 +37,6 @@ var UploadModal = function UploadModal(_ref) {
48
37
  onRequestClose: onClose,
49
38
  plugins: plugins
50
39
  })) : null);
51
- };
52
- UploadModal.propTypes = propTypes;
53
- UploadModal.defaultProps = defaultProps;
40
+ }
54
41
 
55
42
  export { UploadModal as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/modal-upload",
3
- "version": "3.0.310",
3
+ "version": "4.0.0",
4
4
  "description": "File upload modal",
5
5
  "keywords": [
6
6
  "javascript"
@@ -57,9 +57,9 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@babel/runtime": "^7.12.5",
60
- "@panneau/core": "^3.0.307",
61
- "@panneau/modal-dialog": "^3.0.308",
62
- "@panneau/uppy": "^3.0.310",
60
+ "@panneau/core": "^4.0.0",
61
+ "@panneau/modal-dialog": "^4.0.0",
62
+ "@panneau/uppy": "^4.0.0",
63
63
  "@uppy/core": "^5.1.1",
64
64
  "@uppy/dashboard": "^5.0.4",
65
65
  "@uppy/react": "^5.1.1",
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "d7d8937d48a4f972a8fa742256267f6b4aaf3f4f"
74
+ "gitHead": "2cca874e0388b4a20c39aadb205c0e67d5a946fc"
75
75
  }