@panneau/field-upload 3.0.136 → 3.0.139
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 +1 -2
- package/lib/index.js +1 -2
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -273,7 +273,6 @@ var UploadField = function UploadField(_ref) {
|
|
|
273
273
|
}, [resourceModalOpen, setResourceModalOpen, setModalItems]);
|
|
274
274
|
var onClickSelect = useCallback(function (newValue) {
|
|
275
275
|
if (allowMultipleUploads) {
|
|
276
|
-
console.log('newValue', newValue);
|
|
277
276
|
if (newValue !== null && !isArray(newValue)) {
|
|
278
277
|
var _ref2 = newValue || {},
|
|
279
278
|
_ref2$id = _ref2.id,
|
|
@@ -433,7 +432,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
433
432
|
className: "d-flex"
|
|
434
433
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
435
434
|
type: "button",
|
|
436
|
-
theme: "
|
|
435
|
+
theme: "secondary",
|
|
437
436
|
onClick: closeResourceModal,
|
|
438
437
|
disabled: disabled,
|
|
439
438
|
className: "d-block me-2"
|
package/lib/index.js
CHANGED
|
@@ -277,7 +277,6 @@ var UploadField = function UploadField(_ref) {
|
|
|
277
277
|
}, [resourceModalOpen, setResourceModalOpen, setModalItems]);
|
|
278
278
|
var onClickSelect = React.useCallback(function (newValue) {
|
|
279
279
|
if (allowMultipleUploads) {
|
|
280
|
-
console.log('newValue', newValue);
|
|
281
280
|
if (newValue !== null && !isArray(newValue)) {
|
|
282
281
|
var _ref2 = newValue || {},
|
|
283
282
|
_ref2$id = _ref2.id,
|
|
@@ -437,7 +436,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
437
436
|
className: "d-flex"
|
|
438
437
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
439
438
|
type: "button",
|
|
440
|
-
theme: "
|
|
439
|
+
theme: "secondary",
|
|
441
440
|
onClick: closeResourceModal,
|
|
442
441
|
disabled: disabled,
|
|
443
442
|
className: "d-block me-2"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/field-upload",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.139",
|
|
4
4
|
"description": "An Upload field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"@panneau/core": "^3.0.136",
|
|
61
61
|
"@panneau/element-button": "^3.0.136",
|
|
62
62
|
"@panneau/element-label": "^3.0.136",
|
|
63
|
-
"@panneau/element-media-card": "^3.0.
|
|
64
|
-
"@panneau/list-resource-items": "^3.0.
|
|
63
|
+
"@panneau/element-media-card": "^3.0.139",
|
|
64
|
+
"@panneau/list-resource-items": "^3.0.139",
|
|
65
65
|
"@panneau/modal-dialog": "^3.0.136",
|
|
66
66
|
"@panneau/modal-upload": "^3.0.136",
|
|
67
67
|
"@panneau/themes": "^3.0.136",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "76afd9861b4a6ce9792314fcdd471214afca9aeb"
|
|
86
86
|
}
|