cloudmr-ux 1.4.3 → 1.4.6
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.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -321,7 +321,7 @@ function CmrUploadWindow({
|
|
|
321
321
|
return;
|
|
322
322
|
return fileName.split(".").pop();
|
|
323
323
|
};
|
|
324
|
-
const INVALID_ALIAS_REGEX = /[
|
|
324
|
+
const INVALID_ALIAS_REGEX = /[ ,:%><]/;
|
|
325
325
|
const handleConfirm = () => {
|
|
326
326
|
if (uploadedFiles.length === 0) {
|
|
327
327
|
setInfoOpen(true);
|
|
@@ -340,8 +340,8 @@ function CmrUploadWindow({
|
|
|
340
340
|
if (INVALID_ALIAS_REGEX.test(fileAlias)) {
|
|
341
341
|
setInfoOpen(true);
|
|
342
342
|
setInfoStyle("error");
|
|
343
|
-
setWarningText("Alias contains invalid characters (
|
|
344
|
-
setTimeout(() => setInfoOpen(false),
|
|
343
|
+
setWarningText("Alias contains invalid characters ( , : % > < or spaces )");
|
|
344
|
+
setTimeout(() => setInfoOpen(false), 1e4);
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
setOpen(false);
|
|
@@ -982,7 +982,7 @@ function CmrEditConfirmation({
|
|
|
982
982
|
}
|
|
983
983
|
) }),
|
|
984
984
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_DialogActions5.default, { children: [
|
|
985
|
-
cancellable && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CmrButton_default, { variant: "outlined",
|
|
985
|
+
cancellable && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CmrButton_default, { variant: "outlined", onClick: handleCancel, children: "Cancel" }),
|
|
986
986
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CmrButton_default, { variant: "contained", color, onClick: handleConfirm, children: "Confirm" })
|
|
987
987
|
] })
|
|
988
988
|
] })
|
package/dist/index.mjs
CHANGED
|
@@ -273,7 +273,7 @@ function CmrUploadWindow({
|
|
|
273
273
|
return;
|
|
274
274
|
return fileName.split(".").pop();
|
|
275
275
|
};
|
|
276
|
-
const INVALID_ALIAS_REGEX = /[
|
|
276
|
+
const INVALID_ALIAS_REGEX = /[ ,:%><]/;
|
|
277
277
|
const handleConfirm = () => {
|
|
278
278
|
if (uploadedFiles.length === 0) {
|
|
279
279
|
setInfoOpen(true);
|
|
@@ -292,8 +292,8 @@ function CmrUploadWindow({
|
|
|
292
292
|
if (INVALID_ALIAS_REGEX.test(fileAlias)) {
|
|
293
293
|
setInfoOpen(true);
|
|
294
294
|
setInfoStyle("error");
|
|
295
|
-
setWarningText("Alias contains invalid characters (
|
|
296
|
-
setTimeout(() => setInfoOpen(false),
|
|
295
|
+
setWarningText("Alias contains invalid characters ( , : % > < or spaces )");
|
|
296
|
+
setTimeout(() => setInfoOpen(false), 1e4);
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
299
|
setOpen(false);
|
|
@@ -934,7 +934,7 @@ function CmrEditConfirmation({
|
|
|
934
934
|
}
|
|
935
935
|
) }),
|
|
936
936
|
/* @__PURE__ */ jsxs10(DialogActions5, { children: [
|
|
937
|
-
cancellable && /* @__PURE__ */ jsx14(CmrButton_default, { variant: "outlined",
|
|
937
|
+
cancellable && /* @__PURE__ */ jsx14(CmrButton_default, { variant: "outlined", onClick: handleCancel, children: "Cancel" }),
|
|
938
938
|
/* @__PURE__ */ jsx14(CmrButton_default, { variant: "contained", color, onClick: handleConfirm, children: "Confirm" })
|
|
939
939
|
] })
|
|
940
940
|
] })
|