@panneau/field-upload 3.0.198 → 3.0.200
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 -1
- package/lib/index.js +1 -1
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -179,7 +179,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
179
179
|
}
|
|
180
180
|
}, [onChange, allowMultipleUploads, mergeData]);
|
|
181
181
|
var typesString = useMemo(function () {
|
|
182
|
-
return types.join('.');
|
|
182
|
+
return types !== null ? types.join('.') : ['audio', 'image', 'video'].join('.');
|
|
183
183
|
}, [types]);
|
|
184
184
|
var allowedFileTypes = useMemo(function () {
|
|
185
185
|
if (fileTypes !== null) {
|
package/lib/index.js
CHANGED
|
@@ -183,7 +183,7 @@ var UploadField = function UploadField(_ref) {
|
|
|
183
183
|
}
|
|
184
184
|
}, [onChange, allowMultipleUploads, mergeData]);
|
|
185
185
|
var typesString = React.useMemo(function () {
|
|
186
|
-
return types.join('.');
|
|
186
|
+
return types !== null ? types.join('.') : ['audio', 'image', 'video'].join('.');
|
|
187
187
|
}, [types]);
|
|
188
188
|
var allowedFileTypes = React.useMemo(function () {
|
|
189
189
|
if (fileTypes !== null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/field-upload",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.200",
|
|
4
4
|
"description": "An Upload field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@panneau/element-button": "^3.0.194",
|
|
62
62
|
"@panneau/element-label": "^3.0.194",
|
|
63
63
|
"@panneau/element-media-card": "^3.0.194",
|
|
64
|
-
"@panneau/list-resource-items": "^3.0.
|
|
64
|
+
"@panneau/list-resource-items": "^3.0.200",
|
|
65
65
|
"@panneau/themes": "^3.0.194",
|
|
66
66
|
"@panneau/uppy": "^3.0.194",
|
|
67
67
|
"@uppy/core": "^3.9.1",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "bd50474467356c14eee01d26089ff66b2e6c4dce"
|
|
84
84
|
}
|