@panneau/field-upload 3.0.7 → 3.0.10
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 +3 -1
- package/lib/index.js +3 -1
- package/package.json +10 -9
package/es/index.js
CHANGED
|
@@ -106,6 +106,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
106
106
|
disabled = _ref.disabled,
|
|
107
107
|
onChange = _ref.onChange,
|
|
108
108
|
className = _ref.className;
|
|
109
|
+
// const [{ pathname = null }] = useLocation();
|
|
109
110
|
// const { ref: containerRef, entry = null } = useResizeObserver();
|
|
110
111
|
// const { contentRect } = entry || {};
|
|
111
112
|
// const { width: containerWidth = null } = contentRect || {};
|
|
@@ -308,7 +309,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
308
309
|
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
309
310
|
icon: faTimes
|
|
310
311
|
})))));
|
|
311
|
-
}) : null, !hasMedia && withButton ? /*#__PURE__*/React.createElement("div", {
|
|
312
|
+
}) : null, (!hasMedia || allowMultipleUploads) && withButton ? /*#__PURE__*/React.createElement("div", {
|
|
312
313
|
className: "row"
|
|
313
314
|
}, /*#__PURE__*/React.createElement("div", {
|
|
314
315
|
className: "col-auto"
|
|
@@ -359,6 +360,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
359
360
|
onPageChange: onListPageChange,
|
|
360
361
|
onQueryChange: onListQueryChange,
|
|
361
362
|
onQueryReset: onListQueryReset,
|
|
363
|
+
baseUrl: null,
|
|
362
364
|
listProps: {
|
|
363
365
|
actions: ['select'],
|
|
364
366
|
actionsProps: {
|
package/lib/index.js
CHANGED
|
@@ -127,6 +127,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
127
127
|
disabled = _ref.disabled,
|
|
128
128
|
onChange = _ref.onChange,
|
|
129
129
|
className = _ref.className;
|
|
130
|
+
// const [{ pathname = null }] = useLocation();
|
|
130
131
|
// const { ref: containerRef, entry = null } = useResizeObserver();
|
|
131
132
|
// const { contentRect } = entry || {};
|
|
132
133
|
// const { width: containerWidth = null } = contentRect || {};
|
|
@@ -329,7 +330,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
329
330
|
}, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
|
|
330
331
|
icon: freeSolidSvgIcons.faTimes
|
|
331
332
|
})))));
|
|
332
|
-
}) : null, !hasMedia && withButton ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
333
|
+
}) : null, (!hasMedia || allowMultipleUploads) && withButton ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
333
334
|
className: "row"
|
|
334
335
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
335
336
|
className: "col-auto"
|
|
@@ -380,6 +381,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
380
381
|
onPageChange: onListPageChange,
|
|
381
382
|
onQueryChange: onListQueryChange,
|
|
382
383
|
onQueryReset: onListQueryReset,
|
|
384
|
+
baseUrl: null,
|
|
383
385
|
listProps: {
|
|
384
386
|
actions: ['select'],
|
|
385
387
|
actionsProps: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/field-upload",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"description": "An Upload field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -53,16 +53,17 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@babel/runtime": "^7.12.5",
|
|
56
|
+
"@folklore/routes": "^0.2.10",
|
|
56
57
|
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
57
58
|
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
|
58
59
|
"@fortawesome/react-fontawesome": "^0.1.14",
|
|
59
|
-
"@panneau/core": "^3.0.
|
|
60
|
-
"@panneau/element-button": "^3.0.
|
|
61
|
-
"@panneau/element-card": "^3.0.
|
|
62
|
-
"@panneau/element-label": "^3.0.
|
|
63
|
-
"@panneau/list-resource-items": "^3.0.
|
|
64
|
-
"@panneau/modal-dialog": "^3.0.
|
|
65
|
-
"@panneau/themes": "^3.0.
|
|
60
|
+
"@panneau/core": "^3.0.9",
|
|
61
|
+
"@panneau/element-button": "^3.0.9",
|
|
62
|
+
"@panneau/element-card": "^3.0.10",
|
|
63
|
+
"@panneau/element-label": "^3.0.9",
|
|
64
|
+
"@panneau/list-resource-items": "^3.0.10",
|
|
65
|
+
"@panneau/modal-dialog": "^3.0.9",
|
|
66
|
+
"@panneau/themes": "^3.0.9",
|
|
66
67
|
"@uppy/core": "^3.2.0",
|
|
67
68
|
"@uppy/dashboard": "^3.4.0",
|
|
68
69
|
"@uppy/drag-drop": "^3.0.2",
|
|
@@ -80,5 +81,5 @@
|
|
|
80
81
|
"publishConfig": {
|
|
81
82
|
"access": "public"
|
|
82
83
|
},
|
|
83
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "cadf139564886d3491f4d4e8b0815542f82350a7"
|
|
84
85
|
}
|