@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 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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DashboardApp
3
- } from "./chunk-XWXHIF3R.mjs";
3
+ } from "./chunk-7HL4FXK7.mjs";
4
4
  import "./chunk-2SSUH2HJ.mjs";
5
5
  import "./chunk-ONB3JEHR.mjs";
6
6
  import "./chunk-YCDDT44O.mjs";
@@ -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-JUSOUHH7.mjs")
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-POY2NLLI.mjs");
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-POY2NLLI.mjs"),
92571
+ lazy: () => import("./product-detail-3QA6OXHI.mjs"),
92557
92572
  children: [
92558
92573
  {
92559
92574
  path: "edit",
92560
- lazy: () => import("./product-edit-UU64OGKJ.mjs")
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-N7MYERZ6.mjs")
92587
+ lazy: () => import("./product-attributes-W6URSOII.mjs")
92573
92588
  },
92574
92589
  {
92575
92590
  path: "organization",
92576
- lazy: () => import("./product-organization-HZV5SKN5.mjs")
92591
+ lazy: () => import("./product-organization-QG53UJ2J.mjs")
92577
92592
  },
92578
92593
  {
92579
92594
  path: "shipping-profile",
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  FormExtensionZone,
15
15
  useExtendableForm
16
- } from "./chunk-XWXHIF3R.mjs";
16
+ } from "./chunk-7HL4FXK7.mjs";
17
17
  import "./chunk-2SSUH2HJ.mjs";
18
18
  import "./chunk-ONB3JEHR.mjs";
19
19
  import "./chunk-YCDDT44O.mjs";
@@ -61,7 +61,7 @@ import {
61
61
  import {
62
62
  FormExtensionZone,
63
63
  useExtendableForm
64
- } from "./chunk-XWXHIF3R.mjs";
64
+ } from "./chunk-7HL4FXK7.mjs";
65
65
  import "./chunk-2SSUH2HJ.mjs";
66
66
  import "./chunk-ONB3JEHR.mjs";
67
67
  import "./chunk-YCDDT44O.mjs";
@@ -27,7 +27,7 @@ import {
27
27
  import "./chunk-DZWH2RV6.mjs";
28
28
  import {
29
29
  getLinkedFields
30
- } from "./chunk-XWXHIF3R.mjs";
30
+ } from "./chunk-7HL4FXK7.mjs";
31
31
  import "./chunk-2SSUH2HJ.mjs";
32
32
  import "./chunk-ONB3JEHR.mjs";
33
33
  import "./chunk-YCDDT44O.mjs";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  FormExtensionZone,
18
18
  useExtendableForm
19
- } from "./chunk-XWXHIF3R.mjs";
19
+ } from "./chunk-7HL4FXK7.mjs";
20
20
  import "./chunk-2SSUH2HJ.mjs";
21
21
  import "./chunk-ONB3JEHR.mjs";
22
22
  import "./chunk-YCDDT44O.mjs";
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  FormExtensionZone,
20
20
  useExtendableForm
21
- } from "./chunk-XWXHIF3R.mjs";
21
+ } from "./chunk-7HL4FXK7.mjs";
22
22
  import "./chunk-2SSUH2HJ.mjs";
23
23
  import "./chunk-ONB3JEHR.mjs";
24
24
  import "./chunk-YCDDT44O.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/dashboard",
3
- "version": "2.12.2-snapshot-20251207010855",
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-20251207010855",
50
- "@medusajs/icons": "2.12.2-snapshot-20251207010855",
51
- "@medusajs/js-sdk": "2.12.2-snapshot-20251207010855",
52
- "@medusajs/ui": "4.0.30-snapshot-20251207010855",
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-20251207010855",
84
- "@medusajs/admin-vite-plugin": "2.12.2-snapshot-20251207010855",
85
- "@medusajs/types": "2.12.2-snapshot-20251207010855",
86
- "@medusajs/ui-preset": "2.12.2-snapshot-20251207010855"
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">