@medusajs/dashboard 2.12.2-snapshot-20251207010855 → 2.12.2-snapshot-20251207203158
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.css +3 -0
- package/dist/app.js +15 -0
- package/dist/app.mjs +1 -1
- package/dist/{chunk-XWXHIF3R.mjs → chunk-7HL4FXK7.mjs} +21 -6
- package/dist/{product-attributes-N7MYERZ6.mjs → product-attributes-W6URSOII.mjs} +1 -1
- package/dist/{product-create-JUSOUHH7.mjs → product-create-IJXK2CPJ.mjs} +1 -1
- package/dist/{product-detail-POY2NLLI.mjs → product-detail-3QA6OXHI.mjs} +1 -1
- package/dist/{product-edit-UU64OGKJ.mjs → product-edit-WPVM44C2.mjs} +1 -1
- package/dist/{product-organization-HZV5SKN5.mjs → product-organization-QG53UJ2J.mjs} +1 -1
- package/package.json +9 -9
- package/src/components/utilities/error-boundary/error-boundary.tsx +20 -0
package/dist/app.css
CHANGED
|
@@ -3929,6 +3929,9 @@ video {
|
|
|
3929
3929
|
.ease-out {
|
|
3930
3930
|
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
3931
3931
|
}
|
|
3932
|
+
.running {
|
|
3933
|
+
animation-play-state: running;
|
|
3934
|
+
}
|
|
3932
3935
|
.\[appearance\:textfield\] {
|
|
3933
3936
|
-webkit-appearance: textfield;
|
|
3934
3937
|
-moz-appearance: textfield;
|
package/dist/app.js
CHANGED
|
@@ -97314,6 +97314,21 @@ var init_error_boundary = __esm({
|
|
|
97314
97314
|
message = t5("errorBoundary.defaultMessage");
|
|
97315
97315
|
break;
|
|
97316
97316
|
}
|
|
97317
|
+
if (window !== window.parent) {
|
|
97318
|
+
window.addEventListener("error", (event) => {
|
|
97319
|
+
const errorPayload = {
|
|
97320
|
+
type: "ADMIN_RUNTIME_ERROR",
|
|
97321
|
+
payload: {
|
|
97322
|
+
message: event.message,
|
|
97323
|
+
filename: event.filename,
|
|
97324
|
+
lineno: event.lineno,
|
|
97325
|
+
colno: event.colno,
|
|
97326
|
+
stack: event.error && event.error.stack
|
|
97327
|
+
}
|
|
97328
|
+
};
|
|
97329
|
+
window.parent.postMessage(errorPayload, "*");
|
|
97330
|
+
});
|
|
97331
|
+
}
|
|
97317
97332
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
|
|
97318
97333
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_icons12.ExclamationCircle, {}),
|
|
97319
97334
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
|
package/dist/app.mjs
CHANGED
|
@@ -92477,6 +92477,21 @@ var ErrorBoundary = () => {
|
|
|
92477
92477
|
message = t2("errorBoundary.defaultMessage");
|
|
92478
92478
|
break;
|
|
92479
92479
|
}
|
|
92480
|
+
if (window !== window.parent) {
|
|
92481
|
+
window.addEventListener("error", (event) => {
|
|
92482
|
+
const errorPayload = {
|
|
92483
|
+
type: "ADMIN_RUNTIME_ERROR",
|
|
92484
|
+
payload: {
|
|
92485
|
+
message: event.message,
|
|
92486
|
+
filename: event.filename,
|
|
92487
|
+
lineno: event.lineno,
|
|
92488
|
+
colno: event.colno,
|
|
92489
|
+
stack: event.error && event.error.stack
|
|
92490
|
+
}
|
|
92491
|
+
};
|
|
92492
|
+
window.parent.postMessage(errorPayload, "*");
|
|
92493
|
+
});
|
|
92494
|
+
}
|
|
92480
92495
|
return /* @__PURE__ */ jsx16("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx16("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ jsxs10("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
|
|
92481
92496
|
/* @__PURE__ */ jsx16(ExclamationCircle, {}),
|
|
92482
92497
|
/* @__PURE__ */ jsxs10("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
|
|
@@ -92525,7 +92540,7 @@ function getRouteMap({
|
|
|
92525
92540
|
children: [
|
|
92526
92541
|
{
|
|
92527
92542
|
path: "create",
|
|
92528
|
-
lazy: () => import("./product-create-
|
|
92543
|
+
lazy: () => import("./product-create-IJXK2CPJ.mjs")
|
|
92529
92544
|
},
|
|
92530
92545
|
{
|
|
92531
92546
|
path: "import",
|
|
@@ -92541,7 +92556,7 @@ function getRouteMap({
|
|
|
92541
92556
|
path: ":id",
|
|
92542
92557
|
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
|
92543
92558
|
lazy: async () => {
|
|
92544
|
-
const { Breadcrumb, loader } = await import("./product-detail-
|
|
92559
|
+
const { Breadcrumb, loader } = await import("./product-detail-3QA6OXHI.mjs");
|
|
92545
92560
|
return {
|
|
92546
92561
|
Component: Outlet4,
|
|
92547
92562
|
loader,
|
|
@@ -92553,11 +92568,11 @@ function getRouteMap({
|
|
|
92553
92568
|
children: [
|
|
92554
92569
|
{
|
|
92555
92570
|
path: "",
|
|
92556
|
-
lazy: () => import("./product-detail-
|
|
92571
|
+
lazy: () => import("./product-detail-3QA6OXHI.mjs"),
|
|
92557
92572
|
children: [
|
|
92558
92573
|
{
|
|
92559
92574
|
path: "edit",
|
|
92560
|
-
lazy: () => import("./product-edit-
|
|
92575
|
+
lazy: () => import("./product-edit-WPVM44C2.mjs")
|
|
92561
92576
|
},
|
|
92562
92577
|
{
|
|
92563
92578
|
path: "edit-variant",
|
|
@@ -92569,11 +92584,11 @@ function getRouteMap({
|
|
|
92569
92584
|
},
|
|
92570
92585
|
{
|
|
92571
92586
|
path: "attributes",
|
|
92572
|
-
lazy: () => import("./product-attributes-
|
|
92587
|
+
lazy: () => import("./product-attributes-W6URSOII.mjs")
|
|
92573
92588
|
},
|
|
92574
92589
|
{
|
|
92575
92590
|
path: "organization",
|
|
92576
|
-
lazy: () => import("./product-organization-
|
|
92591
|
+
lazy: () => import("./product-organization-QG53UJ2J.mjs")
|
|
92577
92592
|
},
|
|
92578
92593
|
{
|
|
92579
92594
|
path: "shipping-profile",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/dashboard",
|
|
3
|
-
"version": "2.12.2-snapshot-
|
|
3
|
+
"version": "2.12.2-snapshot-20251207203158",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
|
|
6
6
|
"dev": "../../../node_modules/.bin/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.12.2-snapshot-
|
|
50
|
-
"@medusajs/icons": "2.12.2-snapshot-
|
|
51
|
-
"@medusajs/js-sdk": "2.12.2-snapshot-
|
|
52
|
-
"@medusajs/ui": "4.0.30-snapshot-
|
|
49
|
+
"@medusajs/admin-shared": "2.12.2-snapshot-20251207203158",
|
|
50
|
+
"@medusajs/icons": "2.12.2-snapshot-20251207203158",
|
|
51
|
+
"@medusajs/js-sdk": "2.12.2-snapshot-20251207203158",
|
|
52
|
+
"@medusajs/ui": "4.0.30-snapshot-20251207203158",
|
|
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",
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
"zod": "3.25.76"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@medusajs/admin-shared": "2.12.2-snapshot-
|
|
84
|
-
"@medusajs/admin-vite-plugin": "2.12.2-snapshot-
|
|
85
|
-
"@medusajs/types": "2.12.2-snapshot-
|
|
86
|
-
"@medusajs/ui-preset": "2.12.2-snapshot-
|
|
83
|
+
"@medusajs/admin-shared": "2.12.2-snapshot-20251207203158",
|
|
84
|
+
"@medusajs/admin-vite-plugin": "2.12.2-snapshot-20251207203158",
|
|
85
|
+
"@medusajs/types": "2.12.2-snapshot-20251207203158",
|
|
86
|
+
"@medusajs/ui-preset": "2.12.2-snapshot-20251207203158"
|
|
87
87
|
},
|
|
88
88
|
"packageManager": "yarn@3.2.1"
|
|
89
89
|
}
|
|
@@ -52,6 +52,26 @@ export const ErrorBoundary = () => {
|
|
|
52
52
|
break
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* When admin is running in a sandbox, we need to send the error to the parent frame.
|
|
57
|
+
*/
|
|
58
|
+
if (window !== window.parent) {
|
|
59
|
+
window.addEventListener("error", (event) => {
|
|
60
|
+
const errorPayload = {
|
|
61
|
+
type: "ADMIN_RUNTIME_ERROR",
|
|
62
|
+
payload: {
|
|
63
|
+
message: event.message,
|
|
64
|
+
filename: event.filename,
|
|
65
|
+
lineno: event.lineno,
|
|
66
|
+
colno: event.colno,
|
|
67
|
+
stack: event.error && event.error.stack,
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
window.parent.postMessage(errorPayload, "*")
|
|
72
|
+
})
|
|
73
|
+
}
|
|
74
|
+
|
|
55
75
|
return (
|
|
56
76
|
<div className="flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center">
|
|
57
77
|
<div className="flex flex-col gap-y-6">
|