@comet/cms-admin 8.11.0-canary-20251222095546 → 8.11.0-canary-20251222101631
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.
|
@@ -95,6 +95,12 @@ var FinalFormFileUpload = exports.FinalFormFileUpload = function FinalFormFileUp
|
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
setTooManyFilesSelected(tooManyFilesWereDropped);
|
|
98
|
+
if (!(tooManyFilesWereDropped || !acceptedFiles.length)) {
|
|
99
|
+
_context2.n = 1;
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
return _context2.a(2);
|
|
103
|
+
case 1:
|
|
98
104
|
rejectedFiles.map(function (rejection) {
|
|
99
105
|
var failedFile = {
|
|
100
106
|
name: rejection.file.name,
|
|
@@ -117,12 +123,6 @@ var FinalFormFileUpload = exports.FinalFormFileUpload = function FinalFormFileUp
|
|
|
117
123
|
if (singleFile) {
|
|
118
124
|
onChange(undefined);
|
|
119
125
|
}
|
|
120
|
-
if (!(tooManyFilesWereDropped || !acceptedFiles.length)) {
|
|
121
|
-
_context2.n = 1;
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
return _context2.a(2);
|
|
125
|
-
case 1:
|
|
126
126
|
setUploadingFiles(acceptedFiles.map(function (file) {
|
|
127
127
|
return {
|
|
128
128
|
name: file.name,
|
|
@@ -251,7 +251,7 @@ var FinalFormFileUpload = exports.FinalFormFileUpload = function FinalFormFileUp
|
|
|
251
251
|
files: files,
|
|
252
252
|
multiple: multiple,
|
|
253
253
|
maxFiles: maxFiles,
|
|
254
|
-
error:
|
|
254
|
+
error: tooManyFilesSelected ? _admin.commonFileErrorMessages.tooManyFiles(maxFiles ? maxFiles : 1) : undefined,
|
|
255
255
|
getDownloadUrl: function getDownloadUrl(file) {
|
|
256
256
|
return isDownloadableFile(file) && file.downloadUrl ? "".concat(apiUrl).concat(file.downloadUrl) : undefined;
|
|
257
257
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/cms-admin",
|
|
3
|
-
"version": "8.11.0-canary-
|
|
3
|
+
"version": "8.11.0-canary-20251222101631",
|
|
4
4
|
"description": "Comet CMS Admin package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/admin/cms-admin",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"slugify": "^1.6.6",
|
|
41
41
|
"use-debounce": "^10.0.5",
|
|
42
42
|
"uuid": "^11.1.0",
|
|
43
|
-
"@comet/admin": "8.11.0-canary-
|
|
44
|
-
"@comet/admin-date-time": "8.11.0-canary-
|
|
45
|
-
"@comet/admin-icons": "8.11.0-canary-
|
|
46
|
-
"@comet/admin-rte": "8.11.0-canary-
|
|
43
|
+
"@comet/admin": "8.11.0-canary-20251222101631",
|
|
44
|
+
"@comet/admin-date-time": "8.11.0-canary-20251222101631",
|
|
45
|
+
"@comet/admin-icons": "8.11.0-canary-20251222101631",
|
|
46
|
+
"@comet/admin-rte": "8.11.0-canary-20251222101631"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@apollo/client": "^3.14.0",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"react-router-dom": "^5.3.4",
|
|
92
92
|
"typescript": "5.9.3",
|
|
93
93
|
"vitest": "^4.0.16",
|
|
94
|
-
"@comet/admin-babel-preset": "8.11.0-canary-
|
|
95
|
-
"@comet/cli": "8.11.0-canary-
|
|
96
|
-
"@comet/eslint-config": "8.11.0-canary-
|
|
94
|
+
"@comet/admin-babel-preset": "8.11.0-canary-20251222101631",
|
|
95
|
+
"@comet/cli": "8.11.0-canary-20251222101631",
|
|
96
|
+
"@comet/eslint-config": "8.11.0-canary-20251222101631"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@apollo/client": "^3.7.0",
|