@panneau/field-upload 3.0.162 → 3.0.164

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
@@ -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 value = _ref.value,
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: "medias",
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 value = _ref.value,
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: "medias",
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.162",
3
+ "version": "3.0.164",
4
4
  "description": "An Upload field",
5
5
  "keywords": [
6
6
  "javascript"
@@ -57,16 +57,16 @@
57
57
  "@fortawesome/fontawesome-svg-core": "^6.5.1",
58
58
  "@fortawesome/free-solid-svg-icons": "^6.5.1",
59
59
  "@fortawesome/react-fontawesome": "^0.2.0",
60
- "@panneau/core": "^3.0.162",
61
- "@panneau/element-button": "^3.0.162",
62
- "@panneau/element-label": "^3.0.162",
63
- "@panneau/element-media-card": "^3.0.162",
64
- "@panneau/list-resource-items": "^3.0.162",
65
- "@panneau/modal-dialog": "^3.0.162",
66
- "@panneau/modal-medias-picker": "^3.0.162",
67
- "@panneau/modal-upload": "^3.0.162",
68
- "@panneau/themes": "^3.0.162",
69
- "@panneau/uppy": "^3.0.162",
60
+ "@panneau/core": "^3.0.164",
61
+ "@panneau/element-button": "^3.0.164",
62
+ "@panneau/element-label": "^3.0.164",
63
+ "@panneau/element-media-card": "^3.0.164",
64
+ "@panneau/list-resource-items": "^3.0.164",
65
+ "@panneau/modal-dialog": "^3.0.164",
66
+ "@panneau/modal-medias-picker": "^3.0.164",
67
+ "@panneau/modal-upload": "^3.0.164",
68
+ "@panneau/themes": "^3.0.164",
69
+ "@panneau/uppy": "^3.0.164",
70
70
  "@uppy/core": "^3.9.1",
71
71
  "@uppy/dashboard": "^3.7.3",
72
72
  "@uppy/drag-drop": "^3.0.3",
@@ -83,5 +83,5 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "gitHead": "82936217c80643ad52d9b425a7a8c374d6264d8e"
86
+ "gitHead": "7a1511eb7b08a09cfcf708d1ca314a12155e9bd8"
87
87
  }