@panneau/modal-upload 3.0.119 → 3.0.130
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/lib/index.js +9 -16
- package/package.json +7 -6
package/lib/index.js
CHANGED
|
@@ -12,23 +12,16 @@ require('@uppy/dashboard/dist/style.min.css');
|
|
|
12
12
|
require('@uppy/drag-drop/dist/style.min.css');
|
|
13
13
|
require('@uppy/status-bar/dist/style.min.css');
|
|
14
14
|
|
|
15
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
-
|
|
17
|
-
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
18
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
19
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
|
-
var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
|
|
21
|
-
|
|
22
15
|
var styles = {};
|
|
23
16
|
|
|
24
17
|
var _excluded = ["title", "uppy", "plugins", "onClose"];
|
|
25
18
|
var propTypes = {
|
|
26
|
-
title:
|
|
27
|
-
uppy:
|
|
28
|
-
reset:
|
|
19
|
+
title: PropTypes.string,
|
|
20
|
+
uppy: PropTypes.shape({
|
|
21
|
+
reset: PropTypes.func
|
|
29
22
|
}),
|
|
30
|
-
plugins:
|
|
31
|
-
onClose:
|
|
23
|
+
plugins: PropTypes.arrayOf(PropTypes.string),
|
|
24
|
+
onClose: PropTypes.func
|
|
32
25
|
};
|
|
33
26
|
var defaultProps = {
|
|
34
27
|
title: null,
|
|
@@ -41,12 +34,12 @@ var UploadModal = function UploadModal(_ref) {
|
|
|
41
34
|
uppy = _ref.uppy,
|
|
42
35
|
plugins = _ref.plugins,
|
|
43
36
|
onClose = _ref.onClose,
|
|
44
|
-
props =
|
|
45
|
-
return /*#__PURE__*/
|
|
37
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
38
|
+
return /*#__PURE__*/React.createElement(Dialog, {
|
|
46
39
|
size: "lg",
|
|
47
40
|
onClose: onClose,
|
|
48
41
|
title: title
|
|
49
|
-
}, uppy !== null ? /*#__PURE__*/
|
|
42
|
+
}, uppy !== null ? /*#__PURE__*/React.createElement(react.Dashboard, Object.assign({
|
|
50
43
|
inline: true,
|
|
51
44
|
width: "100%",
|
|
52
45
|
height: "350px",
|
|
@@ -63,4 +56,4 @@ UploadModal.propTypes = propTypes;
|
|
|
63
56
|
UploadModal.defaultProps = defaultProps;
|
|
64
57
|
var Upload = UploadModal;
|
|
65
58
|
|
|
66
|
-
exports
|
|
59
|
+
exports.default = Upload;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/modal-upload",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.130",
|
|
4
4
|
"description": "File upload modal",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"assets"
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
|
-
"
|
|
44
|
+
"prepublishOnly": "npm run build",
|
|
45
|
+
"build": "../../scripts/prepare-package.sh"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -53,9 +54,9 @@
|
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
56
|
"@babel/runtime": "^7.12.5",
|
|
56
|
-
"@panneau/core": "^3.0.
|
|
57
|
-
"@panneau/modal-dialog": "^3.0.
|
|
58
|
-
"@panneau/uppy": "^3.0.
|
|
57
|
+
"@panneau/core": "^3.0.130",
|
|
58
|
+
"@panneau/modal-dialog": "^3.0.130",
|
|
59
|
+
"@panneau/uppy": "^3.0.130",
|
|
59
60
|
"@uppy/core": "^3.9.1",
|
|
60
61
|
"@uppy/dashboard": "^3.7.3",
|
|
61
62
|
"@uppy/drag-drop": "^3.0.3",
|
|
@@ -70,5 +71,5 @@
|
|
|
70
71
|
"publishConfig": {
|
|
71
72
|
"access": "public"
|
|
72
73
|
},
|
|
73
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "e6070daacb45351ccbef67ae8006f1a293ca8e2b"
|
|
74
75
|
}
|