@panneau/modal-upload 3.0.163 → 3.0.169

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.
package/es/index.js CHANGED
@@ -10,8 +10,9 @@ import '@uppy/status-bar/dist/style.min.css';
10
10
 
11
11
  var styles = {};
12
12
 
13
- var _excluded = ["title", "uppy", "plugins", "onClose"];
13
+ var _excluded = ["id", "title", "uppy", "plugins", "onClose"];
14
14
  var propTypes = {
15
+ id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
15
16
  title: PropTypes.string,
16
17
  uppy: PropTypes.shape({
17
18
  reset: PropTypes.func
@@ -26,12 +27,14 @@ var defaultProps = {
26
27
  onClose: null
27
28
  };
28
29
  var UploadModal = function UploadModal(_ref) {
29
- var title = _ref.title,
30
+ var id = _ref.id,
31
+ title = _ref.title,
30
32
  uppy = _ref.uppy,
31
33
  plugins = _ref.plugins,
32
34
  onClose = _ref.onClose,
33
35
  props = _objectWithoutProperties(_ref, _excluded);
34
36
  return /*#__PURE__*/React.createElement(Dialog, {
37
+ id: id,
35
38
  size: "lg",
36
39
  onClose: onClose,
37
40
  title: title
package/lib/index.js CHANGED
@@ -14,8 +14,9 @@ require('@uppy/status-bar/dist/style.min.css');
14
14
 
15
15
  var styles = {};
16
16
 
17
- var _excluded = ["title", "uppy", "plugins", "onClose"];
17
+ var _excluded = ["id", "title", "uppy", "plugins", "onClose"];
18
18
  var propTypes = {
19
+ id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
19
20
  title: PropTypes.string,
20
21
  uppy: PropTypes.shape({
21
22
  reset: PropTypes.func
@@ -30,12 +31,14 @@ var defaultProps = {
30
31
  onClose: null
31
32
  };
32
33
  var UploadModal = function UploadModal(_ref) {
33
- var title = _ref.title,
34
+ var id = _ref.id,
35
+ title = _ref.title,
34
36
  uppy = _ref.uppy,
35
37
  plugins = _ref.plugins,
36
38
  onClose = _ref.onClose,
37
39
  props = _objectWithoutProperties(_ref, _excluded);
38
40
  return /*#__PURE__*/React.createElement(Dialog, {
41
+ id: id,
39
42
  size: "lg",
40
43
  onClose: onClose,
41
44
  title: title
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/modal-upload",
3
- "version": "3.0.163",
3
+ "version": "3.0.169",
4
4
  "description": "File upload modal",
5
5
  "keywords": [
6
6
  "javascript"
@@ -54,9 +54,9 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@babel/runtime": "^7.12.5",
57
- "@panneau/core": "^3.0.162",
58
- "@panneau/modal-dialog": "^3.0.163",
59
- "@panneau/uppy": "^3.0.162",
57
+ "@panneau/core": "^3.0.169",
58
+ "@panneau/modal-dialog": "^3.0.169",
59
+ "@panneau/uppy": "^3.0.169",
60
60
  "@uppy/core": "^3.9.1",
61
61
  "@uppy/dashboard": "^3.7.3",
62
62
  "@uppy/drag-drop": "^3.0.3",
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "30b29ec9436fb6ead123625baa0bd1b32d69fcac"
74
+ "gitHead": "a8f4fe4f0b0593485d40e97542c32742242919d4"
75
75
  }