@medusajs/dashboard 2.11.4-preview-20251106150143 → 2.11.4-preview-20251106210130
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/app.js +3 -3
- package/dist/app.mjs +1 -1
- package/dist/{chunk-7M7DFNIM.mjs → chunk-DODQ3KJT.mjs} +2 -2
- package/dist/{chunk-DCY4DKCQ.mjs → chunk-PV3BQVBF.mjs} +9 -9
- package/dist/{chunk-IHH6OCSU.mjs → chunk-VFILHNBL.mjs} +1 -1
- package/dist/en.json +1 -1
- package/dist/{product-attributes-IT2R62P3.mjs → product-attributes-KFBF7LYB.mjs} +2 -2
- package/dist/{product-create-X7MYHYRX.mjs → product-create-BDXFRG6K.mjs} +2 -2
- package/dist/{product-detail-ZOO3E5SI.mjs → product-detail-ZCMKNAXC.mjs} +2 -2
- package/dist/{product-edit-LX6OFTYL.mjs → product-edit-HFZCJIXY.mjs} +2 -2
- package/dist/{product-media-O7M2YCTQ.mjs → product-media-UQVTSGI6.mjs} +1 -1
- package/dist/{product-organization-AFRDTFZR.mjs → product-organization-NX5PIMMY.mjs} +2 -2
- package/dist/{product-shipping-profile-XMIIH5QP.mjs → product-shipping-profile-ABBA5WJV.mjs} +2 -2
- package/package.json +9 -9
- package/src/i18n/translations/en.json +1 -1
- package/src/routes/products/common/components/upload-media-form-item/upload-media-form-item.tsx +2 -2
package/dist/app.js
CHANGED
|
@@ -9880,7 +9880,7 @@ var init_en = __esm({
|
|
|
9880
9880
|
uploadImagesLabel: "Upload images",
|
|
9881
9881
|
uploadImagesHint: "Drag and drop images here or click to upload.",
|
|
9882
9882
|
invalidFileType: "'{{name}}' is not a supported file type. Supported file types are: {{types}}.",
|
|
9883
|
-
fileTooLarge: "
|
|
9883
|
+
fileTooLarge: "One or more files exceed the maximum file size of {{size}}: {{name}}",
|
|
9884
9884
|
failedToUpload: "Failed to upload the added media. Please try again.",
|
|
9885
9885
|
deleteWarning_one: "You are about to delete {{count}} image. This action cannot be undone.",
|
|
9886
9886
|
deleteWarning_other: "You are about to delete {{count}} images. This action cannot be undone.",
|
|
@@ -107011,7 +107011,7 @@ var init_upload_media_form_item = __esm({
|
|
|
107011
107011
|
}
|
|
107012
107012
|
const fileSizeRejections = rejectedFiles.filter((f) => f?.reason === "size");
|
|
107013
107013
|
if (fileSizeRejections.length) {
|
|
107014
|
-
const fileNames = fileSizeRejections.map((f) => f.file.name).join("
|
|
107014
|
+
const fileNames = "\n" + fileSizeRejections.slice(0, 5).map((f) => f.file.name).join("\n");
|
|
107015
107015
|
form.setError("media", {
|
|
107016
107016
|
type: "file_too_large",
|
|
107017
107017
|
message: t5("products.media.fileTooLarge", {
|
|
@@ -107056,7 +107056,7 @@ var init_upload_media_form_item = __esm({
|
|
|
107056
107056
|
onUploaded
|
|
107057
107057
|
}
|
|
107058
107058
|
) }),
|
|
107059
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Form.ErrorMessage, {})
|
|
107059
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Form.ErrorMessage, { className: "whitespace-pre-line" })
|
|
107060
107060
|
] }) });
|
|
107061
107061
|
}
|
|
107062
107062
|
}
|
package/dist/app.mjs
CHANGED
|
@@ -283,7 +283,7 @@ var UploadMediaFormItem = ({
|
|
|
283
283
|
}
|
|
284
284
|
const fileSizeRejections = rejectedFiles.filter((f) => f?.reason === "size");
|
|
285
285
|
if (fileSizeRejections.length) {
|
|
286
|
-
const fileNames = fileSizeRejections.map((f) => f.file.name).join("
|
|
286
|
+
const fileNames = "\n" + fileSizeRejections.slice(0, 5).map((f) => f.file.name).join("\n");
|
|
287
287
|
form.setError("media", {
|
|
288
288
|
type: "file_too_large",
|
|
289
289
|
message: t("products.media.fileTooLarge", {
|
|
@@ -328,7 +328,7 @@ var UploadMediaFormItem = ({
|
|
|
328
328
|
onUploaded
|
|
329
329
|
}
|
|
330
330
|
) }),
|
|
331
|
-
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
331
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { className: "whitespace-pre-line" })
|
|
332
332
|
] }) });
|
|
333
333
|
}
|
|
334
334
|
}
|
|
@@ -9491,7 +9491,7 @@ var en_default = {
|
|
|
9491
9491
|
uploadImagesLabel: "Upload images",
|
|
9492
9492
|
uploadImagesHint: "Drag and drop images here or click to upload.",
|
|
9493
9493
|
invalidFileType: "'{{name}}' is not a supported file type. Supported file types are: {{types}}.",
|
|
9494
|
-
fileTooLarge: "
|
|
9494
|
+
fileTooLarge: "One or more files exceed the maximum file size of {{size}}: {{name}}",
|
|
9495
9495
|
failedToUpload: "Failed to upload the added media. Please try again.",
|
|
9496
9496
|
deleteWarning_one: "You are about to delete {{count}} image. This action cannot be undone.",
|
|
9497
9497
|
deleteWarning_other: "You are about to delete {{count}} images. This action cannot be undone.",
|
|
@@ -92515,7 +92515,7 @@ function getRouteMap({
|
|
|
92515
92515
|
children: [
|
|
92516
92516
|
{
|
|
92517
92517
|
path: "create",
|
|
92518
|
-
lazy: () => import("./product-create-
|
|
92518
|
+
lazy: () => import("./product-create-BDXFRG6K.mjs")
|
|
92519
92519
|
},
|
|
92520
92520
|
{
|
|
92521
92521
|
path: "import",
|
|
@@ -92531,7 +92531,7 @@ function getRouteMap({
|
|
|
92531
92531
|
path: ":id",
|
|
92532
92532
|
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
|
92533
92533
|
lazy: async () => {
|
|
92534
|
-
const { Breadcrumb, loader } = await import("./product-detail-
|
|
92534
|
+
const { Breadcrumb, loader } = await import("./product-detail-ZCMKNAXC.mjs");
|
|
92535
92535
|
return {
|
|
92536
92536
|
Component: Outlet4,
|
|
92537
92537
|
loader,
|
|
@@ -92543,11 +92543,11 @@ function getRouteMap({
|
|
|
92543
92543
|
children: [
|
|
92544
92544
|
{
|
|
92545
92545
|
path: "",
|
|
92546
|
-
lazy: () => import("./product-detail-
|
|
92546
|
+
lazy: () => import("./product-detail-ZCMKNAXC.mjs"),
|
|
92547
92547
|
children: [
|
|
92548
92548
|
{
|
|
92549
92549
|
path: "edit",
|
|
92550
|
-
lazy: () => import("./product-edit-
|
|
92550
|
+
lazy: () => import("./product-edit-HFZCJIXY.mjs")
|
|
92551
92551
|
},
|
|
92552
92552
|
{
|
|
92553
92553
|
path: "edit-variant",
|
|
@@ -92559,19 +92559,19 @@ function getRouteMap({
|
|
|
92559
92559
|
},
|
|
92560
92560
|
{
|
|
92561
92561
|
path: "attributes",
|
|
92562
|
-
lazy: () => import("./product-attributes-
|
|
92562
|
+
lazy: () => import("./product-attributes-KFBF7LYB.mjs")
|
|
92563
92563
|
},
|
|
92564
92564
|
{
|
|
92565
92565
|
path: "organization",
|
|
92566
|
-
lazy: () => import("./product-organization-
|
|
92566
|
+
lazy: () => import("./product-organization-NX5PIMMY.mjs")
|
|
92567
92567
|
},
|
|
92568
92568
|
{
|
|
92569
92569
|
path: "shipping-profile",
|
|
92570
|
-
lazy: () => import("./product-shipping-profile-
|
|
92570
|
+
lazy: () => import("./product-shipping-profile-ABBA5WJV.mjs")
|
|
92571
92571
|
},
|
|
92572
92572
|
{
|
|
92573
92573
|
path: "media",
|
|
92574
|
-
lazy: () => import("./product-media-
|
|
92574
|
+
lazy: () => import("./product-media-UQVTSGI6.mjs")
|
|
92575
92575
|
},
|
|
92576
92576
|
{
|
|
92577
92577
|
path: "images/:image_id/variants",
|
package/dist/en.json
CHANGED
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
"uploadImagesLabel": "Upload images",
|
|
514
514
|
"uploadImagesHint": "Drag and drop images here or click to upload.",
|
|
515
515
|
"invalidFileType": "'{{name}}' is not a supported file type. Supported file types are: {{types}}.",
|
|
516
|
-
"fileTooLarge": "
|
|
516
|
+
"fileTooLarge": "One or more files exceed the maximum file size of {{size}}: {{name}}",
|
|
517
517
|
"failedToUpload": "Failed to upload the added media. Please try again.",
|
|
518
518
|
"deleteWarning_one": "You are about to delete {{count}} image. This action cannot be undone.",
|
|
519
519
|
"deleteWarning_other": "You are about to delete {{count}} images. This action cannot be undone.",
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
} from "./chunk-AERWK3TJ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
PRODUCT_DETAIL_FIELDS
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VFILHNBL.mjs";
|
|
16
16
|
import {
|
|
17
17
|
FormExtensionZone,
|
|
18
18
|
useExtendableForm
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PV3BQVBF.mjs";
|
|
20
20
|
import "./chunk-NQIC7ZFS.mjs";
|
|
21
21
|
import "./chunk-ONB3JEHR.mjs";
|
|
22
22
|
import "./chunk-YCDDT44O.mjs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
UploadMediaFormItem,
|
|
30
30
|
decorateVariantsWithDefaultValues,
|
|
31
31
|
normalizeProductFormValues
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DODQ3KJT.mjs";
|
|
33
33
|
import "./chunk-ZQRKUG6J.mjs";
|
|
34
34
|
import {
|
|
35
35
|
DataGrid,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
FormExtensionZone,
|
|
63
63
|
useExtendableForm
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-PV3BQVBF.mjs";
|
|
65
65
|
import "./chunk-NQIC7ZFS.mjs";
|
|
66
66
|
import "./chunk-ONB3JEHR.mjs";
|
|
67
67
|
import "./chunk-YCDDT44O.mjs";
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
import "./chunk-DZWH2RV6.mjs";
|
|
28
28
|
import {
|
|
29
29
|
PRODUCT_DETAIL_FIELDS
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-VFILHNBL.mjs";
|
|
31
|
+
import "./chunk-PV3BQVBF.mjs";
|
|
32
32
|
import "./chunk-NQIC7ZFS.mjs";
|
|
33
33
|
import "./chunk-ONB3JEHR.mjs";
|
|
34
34
|
import "./chunk-YCDDT44O.mjs";
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
} from "./chunk-AERWK3TJ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PRODUCT_DETAIL_FIELDS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VFILHNBL.mjs";
|
|
19
19
|
import {
|
|
20
20
|
FormExtensionZone,
|
|
21
21
|
useExtendableForm
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PV3BQVBF.mjs";
|
|
23
23
|
import "./chunk-NQIC7ZFS.mjs";
|
|
24
24
|
import "./chunk-ONB3JEHR.mjs";
|
|
25
25
|
import "./chunk-YCDDT44O.mjs";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
} from "./chunk-AERWK3TJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
PRODUCT_DETAIL_FIELDS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VFILHNBL.mjs";
|
|
21
21
|
import {
|
|
22
22
|
FormExtensionZone,
|
|
23
23
|
useExtendableForm
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PV3BQVBF.mjs";
|
|
25
25
|
import "./chunk-NQIC7ZFS.mjs";
|
|
26
26
|
import "./chunk-ONB3JEHR.mjs";
|
|
27
27
|
import "./chunk-YCDDT44O.mjs";
|
package/dist/{product-shipping-profile-XMIIH5QP.mjs → product-shipping-profile-ABBA5WJV.mjs}
RENAMED
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
} from "./chunk-AERWK3TJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
PRODUCT_DETAIL_FIELDS
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-VFILHNBL.mjs";
|
|
18
|
+
import "./chunk-PV3BQVBF.mjs";
|
|
19
19
|
import "./chunk-NQIC7ZFS.mjs";
|
|
20
20
|
import "./chunk-ONB3JEHR.mjs";
|
|
21
21
|
import "./chunk-YCDDT44O.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/dashboard",
|
|
3
|
-
"version": "2.11.4-preview-
|
|
3
|
+
"version": "2.11.4-preview-20251106210130",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
|
|
6
6
|
"dev": "vite",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@dnd-kit/utilities": "^3.2.2",
|
|
47
47
|
"@hookform/error-message": "^2.0.1",
|
|
48
48
|
"@hookform/resolvers": "3.4.2",
|
|
49
|
-
"@medusajs/admin-shared": "2.11.4-preview-
|
|
50
|
-
"@medusajs/icons": "2.11.4-preview-
|
|
51
|
-
"@medusajs/js-sdk": "2.11.4-preview-
|
|
52
|
-
"@medusajs/ui": "4.0.28-preview-
|
|
49
|
+
"@medusajs/admin-shared": "2.11.4-preview-20251106210130",
|
|
50
|
+
"@medusajs/icons": "2.11.4-preview-20251106210130",
|
|
51
|
+
"@medusajs/js-sdk": "2.11.4-preview-20251106210130",
|
|
52
|
+
"@medusajs/ui": "4.0.28-preview-20251106210130",
|
|
53
53
|
"@radix-ui/react-dialog": "1.1.4",
|
|
54
54
|
"@radix-ui/react-dismissable-layer": "1.1.4",
|
|
55
55
|
"@tanstack/react-query": "5.64.2",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"zod": "3.25.76"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@medusajs/admin-shared": "2.11.4-preview-
|
|
85
|
-
"@medusajs/admin-vite-plugin": "2.11.4-preview-
|
|
86
|
-
"@medusajs/types": "2.11.4-preview-
|
|
87
|
-
"@medusajs/ui-preset": "2.11.4-preview-
|
|
84
|
+
"@medusajs/admin-shared": "2.11.4-preview-20251106210130",
|
|
85
|
+
"@medusajs/admin-vite-plugin": "2.11.4-preview-20251106210130",
|
|
86
|
+
"@medusajs/types": "2.11.4-preview-20251106210130",
|
|
87
|
+
"@medusajs/ui-preset": "2.11.4-preview-20251106210130"
|
|
88
88
|
},
|
|
89
89
|
"packageManager": "yarn@3.2.1"
|
|
90
90
|
}
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
"uploadImagesLabel": "Upload images",
|
|
514
514
|
"uploadImagesHint": "Drag and drop images here or click to upload.",
|
|
515
515
|
"invalidFileType": "'{{name}}' is not a supported file type. Supported file types are: {{types}}.",
|
|
516
|
-
"fileTooLarge": "
|
|
516
|
+
"fileTooLarge": "One or more files exceed the maximum file size of {{size}}: {{name}}",
|
|
517
517
|
"failedToUpload": "Failed to upload the added media. Please try again.",
|
|
518
518
|
"deleteWarning_one": "You are about to delete {{count}} image. This action cannot be undone.",
|
|
519
519
|
"deleteWarning_other": "You are about to delete {{count}} images. This action cannot be undone.",
|
package/src/routes/products/common/components/upload-media-form-item/upload-media-form-item.tsx
CHANGED
|
@@ -70,7 +70,7 @@ export const UploadMediaFormItem = ({
|
|
|
70
70
|
const fileSizeRejections = rejectedFiles.filter((f) => f?.reason === "size")
|
|
71
71
|
|
|
72
72
|
if (fileSizeRejections.length) {
|
|
73
|
-
const fileNames = fileSizeRejections.map((f) => f.file.name).join("
|
|
73
|
+
const fileNames = "\n" + fileSizeRejections.slice(0, 5).map((f) => f.file.name).join("\n")
|
|
74
74
|
form.setError("media", {
|
|
75
75
|
type: "file_too_large",
|
|
76
76
|
message: t("products.media.fileTooLarge", {
|
|
@@ -124,7 +124,7 @@ export const UploadMediaFormItem = ({
|
|
|
124
124
|
onUploaded={onUploaded}
|
|
125
125
|
/>
|
|
126
126
|
</Form.Control>
|
|
127
|
-
<Form.ErrorMessage />
|
|
127
|
+
<Form.ErrorMessage className="whitespace-pre-line" />
|
|
128
128
|
</div>
|
|
129
129
|
</Form.Item>
|
|
130
130
|
)
|