@panneau/modal-upload 3.0.308 → 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.
- package/es/index.js +17 -29
- package/package.json +11 -14
package/es/index.js
CHANGED
|
@@ -1,35 +1,25 @@
|
|
|
1
1
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
2
|
-
import
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
2
|
+
import Dashboard from '@uppy/react/dashboard';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import Dialog from '@panneau/modal-dialog';
|
|
6
|
-
import '@uppy/core/
|
|
7
|
-
import '@uppy/dashboard/
|
|
8
|
-
import '@uppy/drag-drop/dist/style.min.css';
|
|
9
|
-
import '@uppy/status-bar/dist/style.min.css';
|
|
5
|
+
import '@uppy/core/css/style.css';
|
|
6
|
+
import '@uppy/dashboard/css/style.css';
|
|
10
7
|
|
|
11
8
|
var _excluded = ["id", "title", "uppy", "plugins", "onClose"];
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}),
|
|
18
|
-
plugins: PropTypes.arrayOf(PropTypes.string),
|
|
19
|
-
onClose: PropTypes.func
|
|
20
|
-
};
|
|
21
|
-
var defaultProps = {
|
|
22
|
-
title: null,
|
|
23
|
-
uppy: null,
|
|
24
|
-
plugins: [],
|
|
25
|
-
onClose: null
|
|
26
|
-
};
|
|
27
|
-
var UploadModal = function UploadModal(_ref) {
|
|
9
|
+
|
|
10
|
+
// import '@uppy/react/css/style.css';
|
|
11
|
+
|
|
12
|
+
var DEFAULT_PLUGINS = [];
|
|
13
|
+
function UploadModal(_ref) {
|
|
28
14
|
var id = _ref.id,
|
|
29
|
-
title = _ref.title,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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,
|
|
33
23
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
34
24
|
return /*#__PURE__*/React.createElement(Dialog, {
|
|
35
25
|
id: id,
|
|
@@ -47,8 +37,6 @@ var UploadModal = function UploadModal(_ref) {
|
|
|
47
37
|
onRequestClose: onClose,
|
|
48
38
|
plugins: plugins
|
|
49
39
|
})) : null);
|
|
50
|
-
}
|
|
51
|
-
UploadModal.propTypes = propTypes;
|
|
52
|
-
UploadModal.defaultProps = defaultProps;
|
|
40
|
+
}
|
|
53
41
|
|
|
54
42
|
export { UploadModal as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/modal-upload",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "File upload modal",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -57,22 +57,19 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@babel/runtime": "^7.12.5",
|
|
60
|
-
"@panneau/core": "^
|
|
61
|
-
"@panneau/modal-dialog": "^
|
|
62
|
-
"@panneau/uppy": "^
|
|
63
|
-
"@uppy/core": "^
|
|
64
|
-
"@uppy/dashboard": "^
|
|
65
|
-
"@uppy/
|
|
66
|
-
"@uppy/
|
|
67
|
-
"@uppy/progress-bar": "^3.0.4",
|
|
68
|
-
"@uppy/react": "^3.3.0",
|
|
69
|
-
"@uppy/status-bar": "^3.2.7",
|
|
70
|
-
"@uppy/utils": "^5.7.2",
|
|
60
|
+
"@panneau/core": "^4.0.0",
|
|
61
|
+
"@panneau/modal-dialog": "^4.0.0",
|
|
62
|
+
"@panneau/uppy": "^4.0.0",
|
|
63
|
+
"@uppy/core": "^5.1.1",
|
|
64
|
+
"@uppy/dashboard": "^5.0.4",
|
|
65
|
+
"@uppy/react": "^5.1.1",
|
|
66
|
+
"@uppy/utils": "^7.1.3",
|
|
71
67
|
"lodash-es": "^4.17.21",
|
|
72
|
-
"prop-types": "^15.7.2"
|
|
68
|
+
"prop-types": "^15.7.2",
|
|
69
|
+
"tailwindcss": "^4.1.17"
|
|
73
70
|
},
|
|
74
71
|
"publishConfig": {
|
|
75
72
|
"access": "public"
|
|
76
73
|
},
|
|
77
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "2cca874e0388b4a20c39aadb205c0e67d5a946fc"
|
|
78
75
|
}
|