@ceed/ads 1.12.1 → 1.12.2
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/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/framer/index.js +42 -42
- package/package.json +19 -18
package/dist/index.cjs
CHANGED
|
@@ -5302,14 +5302,14 @@ var Uploader = import_react43.default.memo(
|
|
|
5302
5302
|
uploads.forEach((file) => {
|
|
5303
5303
|
const ext = file.name.split(".").pop() || "";
|
|
5304
5304
|
if (!fileExtension.test(ext)) {
|
|
5305
|
-
throw new Error("Please upload
|
|
5305
|
+
throw new Error("Please upload the correct file type.");
|
|
5306
5306
|
}
|
|
5307
5307
|
});
|
|
5308
5308
|
if (maxFileSize) {
|
|
5309
5309
|
uploads.forEach((file) => {
|
|
5310
5310
|
if (file.size > maxFileSize) {
|
|
5311
5311
|
throw new Error(
|
|
5312
|
-
`One or more
|
|
5312
|
+
`One or more files exceeded the maximum file size. Each file size must be ${getFileSize(
|
|
5313
5313
|
maxFileSize
|
|
5314
5314
|
)} or less.`
|
|
5315
5315
|
);
|
|
@@ -5318,7 +5318,7 @@ var Uploader = import_react43.default.memo(
|
|
|
5318
5318
|
}
|
|
5319
5319
|
const totalFileSize = [...files, ...uploads].reduce((acc, file) => acc + file.size, 0);
|
|
5320
5320
|
if (totalFileSize > maxFileTotalSize) {
|
|
5321
|
-
throw new Error(`
|
|
5321
|
+
throw new Error(`The total file size exceeds the maximum limit.`);
|
|
5322
5322
|
}
|
|
5323
5323
|
const newFiles = [...files, ...uploads];
|
|
5324
5324
|
if (maxCount && [...uploaded, ...newFiles].length > maxCount) {
|
package/dist/index.js
CHANGED
|
@@ -5239,14 +5239,14 @@ var Uploader = React40.memo(
|
|
|
5239
5239
|
uploads.forEach((file) => {
|
|
5240
5240
|
const ext = file.name.split(".").pop() || "";
|
|
5241
5241
|
if (!fileExtension.test(ext)) {
|
|
5242
|
-
throw new Error("Please upload
|
|
5242
|
+
throw new Error("Please upload the correct file type.");
|
|
5243
5243
|
}
|
|
5244
5244
|
});
|
|
5245
5245
|
if (maxFileSize) {
|
|
5246
5246
|
uploads.forEach((file) => {
|
|
5247
5247
|
if (file.size > maxFileSize) {
|
|
5248
5248
|
throw new Error(
|
|
5249
|
-
`One or more
|
|
5249
|
+
`One or more files exceeded the maximum file size. Each file size must be ${getFileSize(
|
|
5250
5250
|
maxFileSize
|
|
5251
5251
|
)} or less.`
|
|
5252
5252
|
);
|
|
@@ -5255,7 +5255,7 @@ var Uploader = React40.memo(
|
|
|
5255
5255
|
}
|
|
5256
5256
|
const totalFileSize = [...files, ...uploads].reduce((acc, file) => acc + file.size, 0);
|
|
5257
5257
|
if (totalFileSize > maxFileTotalSize) {
|
|
5258
|
-
throw new Error(`
|
|
5258
|
+
throw new Error(`The total file size exceeds the maximum limit.`);
|
|
5259
5259
|
}
|
|
5260
5260
|
const newFiles = [...files, ...uploads];
|
|
5261
5261
|
if (maxCount && [...uploaded, ...newFiles].length > maxCount) {
|