@panneau/field-upload 3.0.162 → 3.0.163
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 +5 -2
- package/lib/index.js +5 -2
- package/package.json +5 -5
package/es/index.js
CHANGED
|
@@ -24,6 +24,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
24
24
|
var styles = {"container":"panneau-field-upload-container","dashboard":"panneau-field-upload-dashboard","dashboardModal":"panneau-field-upload-dashboardModal","uppyDashboardContainer":"panneau-field-upload-uppyDashboardContainer"};
|
|
25
25
|
|
|
26
26
|
var propTypes$1 = {
|
|
27
|
+
resource: PropTypes.string,
|
|
27
28
|
value: PropTypes.oneOfType([PropTypes.array, PropTypes.shape({
|
|
28
29
|
filename: PropTypes.string,
|
|
29
30
|
size: PropTypes.number,
|
|
@@ -58,6 +59,7 @@ var propTypes$1 = {
|
|
|
58
59
|
className: PropTypes.string
|
|
59
60
|
};
|
|
60
61
|
var defaultProps$1 = {
|
|
62
|
+
resource: 'medias',
|
|
61
63
|
value: null,
|
|
62
64
|
types: ['audio', 'image', 'video'],
|
|
63
65
|
fileTypes: null,
|
|
@@ -104,7 +106,8 @@ var defaultProps$1 = {
|
|
|
104
106
|
className: null
|
|
105
107
|
};
|
|
106
108
|
var UploadField = function UploadField(_ref) {
|
|
107
|
-
var
|
|
109
|
+
var resource = _ref.resource,
|
|
110
|
+
value = _ref.value,
|
|
108
111
|
types = _ref.types,
|
|
109
112
|
fileTypes = _ref.fileTypes,
|
|
110
113
|
sources = _ref.sources,
|
|
@@ -370,7 +373,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
370
373
|
showAddFilesPanel: true,
|
|
371
374
|
doneButtonHandler: closeModal
|
|
372
375
|
}) : null, showResourceModal ? /*#__PURE__*/React.createElement(ModalPicker, {
|
|
373
|
-
resource:
|
|
376
|
+
resource: resource,
|
|
374
377
|
types: types,
|
|
375
378
|
selectable: true,
|
|
376
379
|
onChange: onChangeSelection,
|
package/lib/index.js
CHANGED
|
@@ -28,6 +28,7 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
|
|
|
28
28
|
var styles = {"container":"panneau-field-upload-container","dashboard":"panneau-field-upload-dashboard","dashboardModal":"panneau-field-upload-dashboardModal","uppyDashboardContainer":"panneau-field-upload-uppyDashboardContainer"};
|
|
29
29
|
|
|
30
30
|
var propTypes$1 = {
|
|
31
|
+
resource: PropTypes.string,
|
|
31
32
|
value: PropTypes.oneOfType([PropTypes.array, PropTypes.shape({
|
|
32
33
|
filename: PropTypes.string,
|
|
33
34
|
size: PropTypes.number,
|
|
@@ -62,6 +63,7 @@ var propTypes$1 = {
|
|
|
62
63
|
className: PropTypes.string
|
|
63
64
|
};
|
|
64
65
|
var defaultProps$1 = {
|
|
66
|
+
resource: 'medias',
|
|
65
67
|
value: null,
|
|
66
68
|
types: ['audio', 'image', 'video'],
|
|
67
69
|
fileTypes: null,
|
|
@@ -108,7 +110,8 @@ var defaultProps$1 = {
|
|
|
108
110
|
className: null
|
|
109
111
|
};
|
|
110
112
|
var UploadField = function UploadField(_ref) {
|
|
111
|
-
var
|
|
113
|
+
var resource = _ref.resource,
|
|
114
|
+
value = _ref.value,
|
|
112
115
|
types = _ref.types,
|
|
113
116
|
fileTypes = _ref.fileTypes,
|
|
114
117
|
sources = _ref.sources,
|
|
@@ -374,7 +377,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
374
377
|
showAddFilesPanel: true,
|
|
375
378
|
doneButtonHandler: closeModal
|
|
376
379
|
}) : null, showResourceModal ? /*#__PURE__*/React.createElement(ModalPicker, {
|
|
377
|
-
resource:
|
|
380
|
+
resource: resource,
|
|
378
381
|
types: types,
|
|
379
382
|
selectable: true,
|
|
380
383
|
onChange: onChangeSelection,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/field-upload",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.163",
|
|
4
4
|
"description": "An Upload field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@panneau/element-label": "^3.0.162",
|
|
63
63
|
"@panneau/element-media-card": "^3.0.162",
|
|
64
64
|
"@panneau/list-resource-items": "^3.0.162",
|
|
65
|
-
"@panneau/modal-dialog": "^3.0.
|
|
66
|
-
"@panneau/modal-medias-picker": "^3.0.
|
|
67
|
-
"@panneau/modal-upload": "^3.0.
|
|
65
|
+
"@panneau/modal-dialog": "^3.0.163",
|
|
66
|
+
"@panneau/modal-medias-picker": "^3.0.163",
|
|
67
|
+
"@panneau/modal-upload": "^3.0.163",
|
|
68
68
|
"@panneau/themes": "^3.0.162",
|
|
69
69
|
"@panneau/uppy": "^3.0.162",
|
|
70
70
|
"@uppy/core": "^3.9.1",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "30b29ec9436fb6ead123625baa0bd1b32d69fcac"
|
|
87
87
|
}
|