@medusajs/dashboard 2.23.1 → 2.23.2-preview-20261130205001
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/{api-key-management-detail-ZX7SVQXQ.mjs → api-key-management-detail-MJEN4Z3O.mjs} +3 -3
- package/dist/{api-key-management-list-CGGLRMFG.mjs → api-key-management-list-LCXAPO3F.mjs} +3 -3
- package/dist/app.js +35 -10
- package/dist/app.mjs +2 -2
- package/dist/{audit-log-detail-AK4SN6CH.mjs → audit-log-detail-LXYBIF4F.mjs} +1 -1
- package/dist/{audit-log-list-DQPAQ362.mjs → audit-log-list-4S6OVDNM.mjs} +2 -2
- package/dist/{campaign-detail-3Z5JFRSH.mjs → campaign-detail-4TKVN3VV.mjs} +3 -3
- package/dist/{campaign-list-7F6334LW.mjs → campaign-list-VOI4Q6D2.mjs} +3 -3
- package/dist/{category-detail-7TKUPPOH.mjs → category-detail-7ZJOQ4P5.mjs} +3 -3
- package/dist/{category-list-O7TA7L4M.mjs → category-list-OPWB7QVV.mjs} +1 -1
- package/dist/{chunk-PRJK2BND.mjs → chunk-3EYDNGH7.mjs} +6 -2
- package/dist/{chunk-4NVTIR7E.mjs → chunk-57DBFT4J.mjs} +1 -1
- package/dist/{chunk-6WUEHMV3.mjs → chunk-CPWHZQTM.mjs} +90 -83
- package/dist/{chunk-HRDVUIRK.mjs → chunk-DC4RO3ZG.mjs} +1 -1
- package/dist/{chunk-322ZJBUJ.mjs → chunk-FUQLCYVG.mjs} +19 -4
- package/dist/{chunk-J7ZU6P3A.mjs → chunk-KMJT7A27.mjs} +1 -1
- package/dist/{chunk-WYGELJWW.mjs → chunk-TNB62VYC.mjs} +1 -1
- package/dist/{chunk-HIBSPL7T.mjs → chunk-TWV2OTRR.mjs} +2 -2
- package/dist/{chunk-BIOBVEBK.mjs → chunk-XEVFDH7Y.mjs} +3 -0
- package/dist/{collection-detail-LCNIFQWZ.mjs → collection-detail-DXDRRCPC.mjs} +3 -3
- package/dist/{collection-list-SERKXNRV.mjs → collection-list-LLOD2JH6.mjs} +3 -3
- package/dist/components.js +9 -2
- package/dist/components.mjs +3 -3
- package/dist/{customer-detail-RVBLKJVP.mjs → customer-detail-EEAEMVHT.mjs} +3 -3
- package/dist/{customer-export-SCN766JX.mjs → customer-export-GF3I23SG.mjs} +1 -1
- package/dist/{customer-group-detail-5BHYCDQQ.mjs → customer-group-detail-IC3MHUPR.mjs} +3 -3
- package/dist/{customer-group-list-C62X4VLQ.mjs → customer-group-list-WFI3V3P3.mjs} +3 -3
- package/dist/{customer-list-CA465QMG.mjs → customer-list-KMRLEJ6P.mjs} +3 -3
- package/dist/hooks.d.mts +11 -2
- package/dist/hooks.d.ts +11 -2
- package/dist/hooks.js +4 -2
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/{inventory-detail-ACFXMFPH.mjs → inventory-detail-LQZ7YJC5.mjs} +1 -1
- package/dist/{inventory-list-67ODUKM5.mjs → inventory-list-DQO3UJY4.mjs} +3 -3
- package/dist/{location-detail-OLCCEGJ5.mjs → location-detail-ZIATTUX3.mjs} +1 -1
- package/dist/{location-list-NXHCB3KL.mjs → location-list-IMSHT7ZU.mjs} +3 -3
- package/dist/no-permissions-EAZVEKOA.mjs +9 -0
- package/dist/{order-detail-QF6QVJSO.mjs → order-detail-44JO2V4B.mjs} +2 -2
- package/dist/{order-export-EMVLXH4Q.mjs → order-export-FSXQLY2W.mjs} +1 -1
- package/dist/{order-list-D3DCYV4Z.mjs → order-list-NEMBNBSI.mjs} +3 -3
- package/dist/{policy-detail-ALJ37K6F.mjs → policy-detail-3EIUN2DY.mjs} +1 -1
- package/dist/{policy-list-JQOHLS77.mjs → policy-list-YXI6ZEOG.mjs} +2 -2
- package/dist/{price-list-detail-ZA6MSTSO.mjs → price-list-detail-LCOUPEIQ.mjs} +3 -3
- package/dist/{price-list-list-ZGBCEQ3L.mjs → price-list-list-VE62ABUW.mjs} +3 -3
- package/dist/{product-attributes-CSUHUAOC.mjs → product-attributes-XBPS2LAO.mjs} +2 -2
- package/dist/{product-create-QESUODSC.mjs → product-create-35KHO3UU.mjs} +2 -2
- package/dist/{product-detail-JL4YFSWW.mjs → product-detail-U47ZTOBA.mjs} +3 -3
- package/dist/{product-edit-R65Q33US.mjs → product-edit-7SWHOUD7.mjs} +2 -2
- package/dist/{product-export-MPORWEUV.mjs → product-export-VD3Y7UFK.mjs} +1 -1
- package/dist/{product-list-SC2CY4XX.mjs → product-list-TAF6CLGI.mjs} +3 -3
- package/dist/{product-option-detail-Y5LOIH5I.mjs → product-option-detail-WW7HYKGP.mjs} +3 -3
- package/dist/{product-option-list-DV3UEUHW.mjs → product-option-list-X4DK75PA.mjs} +3 -3
- package/dist/{product-option-value-detail-NOB5GBX3.mjs → product-option-value-detail-HXEKLIFV.mjs} +1 -1
- package/dist/{product-options-manage-ADHAS3G3.mjs → product-options-manage-FDO7XRL6.mjs} +3 -3
- package/dist/{product-organization-ECTMFJHP.mjs → product-organization-2POXLNAN.mjs} +2 -2
- package/dist/{product-tag-detail-6LA2KYFF.mjs → product-tag-detail-NG44S7C6.mjs} +3 -3
- package/dist/{product-tag-list-XGB5WW5M.mjs → product-tag-list-BXUVT7YI.mjs} +3 -3
- package/dist/{product-type-detail-GEO25OWW.mjs → product-type-detail-G7LKH2H2.mjs} +3 -3
- package/dist/{product-type-list-HYOJ5RWY.mjs → product-type-list-QE7JOLY7.mjs} +3 -3
- package/dist/{product-variant-detail-GA7VILOR.mjs → product-variant-detail-JH5YDTFT.mjs} +1 -1
- package/dist/{profile-detail-WU3KLTU2.mjs → profile-detail-K77TVKCW.mjs} +1 -1
- package/dist/{promotion-detail-BUXMR2S5.mjs → promotion-detail-AQZ7OZEI.mjs} +1 -1
- package/dist/{promotion-list-PVKO3PPL.mjs → promotion-list-GFFC7I7N.mjs} +3 -3
- package/dist/{property-labels-EKNGT5WM.mjs → property-labels-MXQLSPGL.mjs} +1 -1
- package/dist/{refund-reason-list-22D44BVT.mjs → refund-reason-list-DCRN6ZA3.mjs} +3 -3
- package/dist/{region-detail-PINOUNQH.mjs → region-detail-CTQ37FR3.mjs} +1 -1
- package/dist/{region-list-UVMI4ZV5.mjs → region-list-YFTXB44J.mjs} +4 -4
- package/dist/{reservation-detail-ZLMZERU2.mjs → reservation-detail-7FHSAAMV.mjs} +1 -1
- package/dist/{reservation-list-676ADP4B.mjs → reservation-list-ROAC2WGU.mjs} +3 -3
- package/dist/{return-reason-list-JJHC7EOL.mjs → return-reason-list-JLIHJ664.mjs} +3 -3
- package/dist/{role-detail-DMFSL3QS.mjs → role-detail-3HSSVBNC.mjs} +1 -1
- package/dist/{role-list-EQBO5ZOH.mjs → role-list-OFKUV2I4.mjs} +1 -1
- package/dist/{sales-channel-detail-TZWBVBAN.mjs → sales-channel-detail-GASKACJX.mjs} +1 -1
- package/dist/{sales-channel-list-UNW332J2.mjs → sales-channel-list-HOAWA6X5.mjs} +3 -3
- package/dist/{search-index-list-2IVCWMEO.mjs → search-index-list-JWHTOZIU.mjs} +1 -1
- package/dist/{shipping-option-type-detail-OQ7U23QC.mjs → shipping-option-type-detail-HDA5432F.mjs} +1 -1
- package/dist/{shipping-option-type-list-P4S3JNTG.mjs → shipping-option-type-list-5Y3HSVH7.mjs} +3 -3
- package/dist/{shipping-profile-detail-PWSRIIHW.mjs → shipping-profile-detail-LT6XTZZD.mjs} +1 -1
- package/dist/{shipping-profiles-list-HYYXOZC5.mjs → shipping-profiles-list-FEGM6AFY.mjs} +3 -3
- package/dist/{store-detail-EAQ6VN2C.mjs → store-detail-FBURCUDU.mjs} +1 -1
- package/dist/{tax-region-detail-JJDEZPQS.mjs → tax-region-detail-4Y77XNCB.mjs} +5 -5
- package/dist/{tax-region-list-QIBRDOWD.mjs → tax-region-list-UIIRXY3K.mjs} +1 -1
- package/dist/{tax-region-province-detail-XSWTXMZ4.mjs → tax-region-province-detail-VH2B5LCT.mjs} +5 -5
- package/dist/{tax-region-tax-override-create-CGSDVYD6.mjs → tax-region-tax-override-create-KPP6TXAF.mjs} +2 -2
- package/dist/{tax-region-tax-override-edit-PBPX7ERG.mjs → tax-region-tax-override-edit-DGKTQOAL.mjs} +3 -3
- package/dist/{translation-list-HLPTF4CW.mjs → translation-list-XKC3Z3JW.mjs} +1 -1
- package/dist/{user-detail-NHBHRN74.mjs → user-detail-2UZ6PWEJ.mjs} +1 -1
- package/dist/{user-list-MCO3RIXF.mjs → user-list-JN7XURA2.mjs} +3 -3
- package/dist/{workflow-execution-detail-73V64DYL.mjs → workflow-execution-detail-E2FQSCN4.mjs} +1 -1
- package/dist/{workflow-execution-list-AT2J7ENC.mjs → workflow-execution-list-JTANAHH2.mjs} +1 -1
- package/package.json +9 -9
- package/src/components/common/customer-info/__tests__/customer-info.spec.tsx +54 -0
- package/src/components/common/customer-info/customer-info.tsx +1 -1
- package/src/components/common/json-view-section/__tests__/json-view-section.spec.tsx +47 -0
- package/src/components/common/json-view-section/json-view-section.tsx +3 -0
- package/src/components/layout/notifications/__tests__/notifications.spec.tsx +47 -0
- package/src/components/layout/notifications/notifications.tsx +1 -0
- package/src/components/layout/shell/__tests__/toggle-sidebar.spec.tsx +29 -0
- package/src/components/layout/shell/shell.tsx +4 -1
- package/src/exports/hooks.ts +4 -1
- package/src/hooks/table/query/__tests__/parse-prefixed-query-params.spec.ts +51 -0
- package/src/hooks/table/query/parse-prefixed-query-params.ts +8 -3
- package/src/i18n/translations/$schema.json +18 -3
- package/src/i18n/translations/de.json +1 -1
- package/src/i18n/translations/en.json +4 -1
- package/src/routes/no-permissions/index.ts +1 -1
- package/src/routes/no-permissions/no-permissions.tsx +34 -3
- package/dist/no-permissions-UP3BFBXQ.mjs +0 -7
package/dist/{api-key-management-detail-ZX7SVQXQ.mjs → api-key-management-detail-MJEN4Z3O.mjs}
RENAMED
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
import "./chunk-3GLXEMCN.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ConfigurableDataTable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KMJT7A27.mjs";
|
|
14
14
|
import "./chunk-HGXZ5BJO.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-3EYDNGH7.mjs";
|
|
16
16
|
import "./chunk-RIV7FKGN.mjs";
|
|
17
17
|
import "./chunk-CEYKNZTH.mjs";
|
|
18
18
|
import "./chunk-WRSGHGAT.mjs";
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
import {
|
|
77
77
|
LayoutComposer,
|
|
78
78
|
detailPageDefaultEntries
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-XEVFDH7Y.mjs";
|
|
80
80
|
import "./chunk-5SZFF255.mjs";
|
|
81
81
|
import {
|
|
82
82
|
SingleColumnPageSkeleton,
|
|
@@ -20,10 +20,10 @@ import "./chunk-4ILLMYUD.mjs";
|
|
|
20
20
|
import "./chunk-IA4VUONG.mjs";
|
|
21
21
|
import {
|
|
22
22
|
ConfigurableDataTable
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KMJT7A27.mjs";
|
|
24
24
|
import "./chunk-EMIHDNB7.mjs";
|
|
25
25
|
import "./chunk-HGXZ5BJO.mjs";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-3EYDNGH7.mjs";
|
|
27
27
|
import "./chunk-RIV7FKGN.mjs";
|
|
28
28
|
import "./chunk-CEYKNZTH.mjs";
|
|
29
29
|
import "./chunk-WRSGHGAT.mjs";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
import "./chunk-GN7OLNI4.mjs";
|
|
58
58
|
import {
|
|
59
59
|
LayoutComposer
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-XEVFDH7Y.mjs";
|
|
61
61
|
import "./chunk-5SZFF255.mjs";
|
|
62
62
|
import "./chunk-WZL5JBYE.mjs";
|
|
63
63
|
import "./chunk-RX6DPJGC.mjs";
|
package/dist/app.js
CHANGED
|
@@ -4795,7 +4795,7 @@ var init_de = __esm({
|
|
|
4795
4795
|
search: "Suchen",
|
|
4796
4796
|
original: "Original",
|
|
4797
4797
|
of: "von",
|
|
4798
|
-
results: "
|
|
4798
|
+
results: "Ergebnissen",
|
|
4799
4799
|
pages: "Seiten",
|
|
4800
4800
|
next: "N\xE4chste",
|
|
4801
4801
|
prev: "Zur\xFCck",
|
|
@@ -13093,6 +13093,7 @@ var init_en = __esm({
|
|
|
13093
13093
|
},
|
|
13094
13094
|
json: {
|
|
13095
13095
|
header: "JSON",
|
|
13096
|
+
expand: "Expand {{title}}",
|
|
13096
13097
|
numberOfKeys_one: "{{count}} key",
|
|
13097
13098
|
numberOfKeys_other: "{{count}} keys",
|
|
13098
13099
|
drawer: {
|
|
@@ -13289,6 +13290,7 @@ var init_en = __esm({
|
|
|
13289
13290
|
title: "Navigation",
|
|
13290
13291
|
description: "Navigation menu for the dashboard."
|
|
13291
13292
|
},
|
|
13293
|
+
toggleSidebar: "Toggle sidebar",
|
|
13292
13294
|
common: {
|
|
13293
13295
|
extensions: "Extensions"
|
|
13294
13296
|
},
|
|
@@ -16995,7 +16997,8 @@ var init_en = __esm({
|
|
|
16995
16997
|
},
|
|
16996
16998
|
noPermissions: {
|
|
16997
16999
|
title: "No permissions yet",
|
|
16998
|
-
description: "You don't have any permissions assigned yet. Reach out to your administrator to request access to the areas you need."
|
|
17000
|
+
description: "You don't have any permissions assigned yet. Reach out to your administrator to request access to the areas you need.",
|
|
17001
|
+
noRoleDescription: "You don't have a role assigned yet. Ask an administrator to assign a role to you."
|
|
16999
17002
|
},
|
|
17000
17003
|
requiredPermissions: {
|
|
17001
17004
|
title: "Required permissions",
|
|
@@ -153447,6 +153450,9 @@ var init_json_view_section = __esm({
|
|
|
153447
153450
|
size: "small",
|
|
153448
153451
|
variant: "transparent",
|
|
153449
153452
|
className: "text-ui-fg-muted hover:text-ui-fg-subtle",
|
|
153453
|
+
"aria-label": t5("json.expand", {
|
|
153454
|
+
title: title ?? t5("json.header")
|
|
153455
|
+
}),
|
|
153450
153456
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons7.ArrowUpRightOnBox, {})
|
|
153451
153457
|
}
|
|
153452
153458
|
) }),
|
|
@@ -154818,6 +154824,7 @@ var init_notifications = __esm({
|
|
|
154818
154824
|
variant: "transparent",
|
|
154819
154825
|
size: "small",
|
|
154820
154826
|
className: "text-ui-fg-muted hover:text-ui-fg-subtle",
|
|
154827
|
+
"aria-label": t5("notifications.domain"),
|
|
154821
154828
|
children: hasUnread ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_icons13.BellAlertDone, {}) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_icons13.BellAlert, {})
|
|
154822
154829
|
}
|
|
154823
154830
|
) }),
|
|
@@ -155107,6 +155114,7 @@ var init_shell = __esm({
|
|
|
155107
155114
|
);
|
|
155108
155115
|
};
|
|
155109
155116
|
ToggleSidebar = () => {
|
|
155117
|
+
const { t: t5 } = (0, import_react_i18next17.useTranslation)();
|
|
155110
155118
|
const { toggle } = useSidebar();
|
|
155111
155119
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
|
|
155112
155120
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -155116,6 +155124,7 @@ var init_shell = __esm({
|
|
|
155116
155124
|
variant: "transparent",
|
|
155117
155125
|
onClick: () => toggle("desktop"),
|
|
155118
155126
|
size: "small",
|
|
155127
|
+
"aria-label": t5("app.nav.toggleSidebar"),
|
|
155119
155128
|
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons14.SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
|
|
155120
155129
|
}
|
|
155121
155130
|
),
|
|
@@ -155126,6 +155135,7 @@ var init_shell = __esm({
|
|
|
155126
155135
|
variant: "transparent",
|
|
155127
155136
|
onClick: () => toggle("mobile"),
|
|
155128
155137
|
size: "small",
|
|
155138
|
+
"aria-label": t5("app.nav.toggleSidebar"),
|
|
155129
155139
|
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons14.SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
|
|
155130
155140
|
}
|
|
155131
155141
|
)
|
|
@@ -156393,31 +156403,42 @@ var init_home2 = __esm({
|
|
|
156393
156403
|
});
|
|
156394
156404
|
|
|
156395
156405
|
// src/routes/no-permissions/no-permissions.tsx
|
|
156396
|
-
var import_icons20, import_ui26, import_react_i18next22, import_jsx_runtime44, NoPermissions;
|
|
156406
|
+
var import_icons20, import_ui26, import_react_i18next22, import_jsx_runtime44, NoPermissions, NoPermissionsRoute;
|
|
156397
156407
|
var init_no_permissions = __esm({
|
|
156398
156408
|
"src/routes/no-permissions/no-permissions.tsx"() {
|
|
156399
156409
|
"use strict";
|
|
156400
156410
|
import_icons20 = require("@medusajs/icons");
|
|
156401
156411
|
import_ui26 = require("@medusajs/ui");
|
|
156402
156412
|
import_react_i18next22 = require("react-i18next");
|
|
156413
|
+
init_permissions_provider2();
|
|
156403
156414
|
import_jsx_runtime44 = require("react/jsx-runtime");
|
|
156404
|
-
NoPermissions = (
|
|
156415
|
+
NoPermissions = ({
|
|
156416
|
+
hasRoleAssignment = true
|
|
156417
|
+
}) => {
|
|
156405
156418
|
const { t: t5 } = (0, import_react_i18next22.useTranslation)();
|
|
156406
156419
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex min-h-[60vh] w-full items-center justify-center p-4", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ui26.Container, { className: "max-w-md", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-col items-center gap-y-4 py-8 text-center", children: [
|
|
156407
156420
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "bg-ui-bg-subtle flex h-12 w-12 items-center justify-center rounded-full", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons20.ExclamationCircle, { className: "text-ui-fg-muted" }) }),
|
|
156408
156421
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-col gap-y-1", children: [
|
|
156409
156422
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ui26.Heading, { level: "h2", children: t5("permissions.noPermissions.title") }),
|
|
156410
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ui26.Text, { className: "text-ui-fg-subtle", children: t5("permissions.noPermissions.description") })
|
|
156423
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ui26.Text, { className: "text-ui-fg-subtle", children: hasRoleAssignment ? t5("permissions.noPermissions.description") : t5("permissions.noPermissions.noRoleDescription") })
|
|
156411
156424
|
] })
|
|
156412
156425
|
] }) }) });
|
|
156413
156426
|
};
|
|
156427
|
+
NoPermissionsRoute = () => {
|
|
156428
|
+
const { policy, isLoading } = usePermissions();
|
|
156429
|
+
if (isLoading) {
|
|
156430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex min-h-[60vh] w-full items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons20.Spinner, { className: "text-ui-fg-interactive animate-spin" }) });
|
|
156431
|
+
}
|
|
156432
|
+
const hasRoleAssignment = policy ? !!policy.roles?.length : true;
|
|
156433
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NoPermissions, { hasRoleAssignment });
|
|
156434
|
+
};
|
|
156414
156435
|
}
|
|
156415
156436
|
});
|
|
156416
156437
|
|
|
156417
156438
|
// src/routes/no-permissions/index.ts
|
|
156418
156439
|
var no_permissions_exports = {};
|
|
156419
156440
|
__export(no_permissions_exports, {
|
|
156420
|
-
Component: () =>
|
|
156441
|
+
Component: () => NoPermissionsRoute
|
|
156421
156442
|
});
|
|
156422
156443
|
var init_no_permissions2 = __esm({
|
|
156423
156444
|
"src/routes/no-permissions/index.ts"() {
|
|
@@ -164194,11 +164215,14 @@ var init_parse_filter_param = __esm({
|
|
|
164194
164215
|
function expandDottedKeys(params2) {
|
|
164195
164216
|
const result = {};
|
|
164196
164217
|
for (const [key, value] of Object.entries(params2)) {
|
|
164197
|
-
|
|
164218
|
+
const parts = key.split(".");
|
|
164219
|
+
if (parts.some((part) => UNSAFE_KEY_SEGMENTS.includes(part))) {
|
|
164220
|
+
continue;
|
|
164221
|
+
}
|
|
164222
|
+
if (parts.length === 1) {
|
|
164198
164223
|
result[key] = value;
|
|
164199
164224
|
continue;
|
|
164200
164225
|
}
|
|
164201
|
-
const parts = key.split(".");
|
|
164202
164226
|
let node = result;
|
|
164203
164227
|
for (let i = 0; i < parts.length - 1; i++) {
|
|
164204
164228
|
if (typeof node[parts[i]] !== "object" || node[parts[i]] === null) {
|
|
@@ -164227,12 +164251,13 @@ function parsePrefixedQueryParams(searchParams, prefix) {
|
|
|
164227
164251
|
});
|
|
164228
164252
|
return expandDottedKeys(params2);
|
|
164229
164253
|
}
|
|
164230
|
-
var NON_FILTER_KEYS;
|
|
164254
|
+
var NON_FILTER_KEYS, UNSAFE_KEY_SEGMENTS;
|
|
164231
164255
|
var init_parse_prefixed_query_params = __esm({
|
|
164232
164256
|
"src/hooks/table/query/parse-prefixed-query-params.ts"() {
|
|
164233
164257
|
"use strict";
|
|
164234
164258
|
init_parse_filter_param();
|
|
164235
164259
|
NON_FILTER_KEYS = ["offset", "limit", "order"];
|
|
164260
|
+
UNSAFE_KEY_SEGMENTS = ["__proto__", "constructor", "prototype"];
|
|
164236
164261
|
}
|
|
164237
164262
|
});
|
|
164238
164263
|
|
|
@@ -194466,7 +194491,7 @@ var init_customer_info = __esm({
|
|
|
194466
194491
|
const { t: t5 } = (0, import_react_i18next205.useTranslation)();
|
|
194467
194492
|
return /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)("div", { className: "grid grid-cols-2 items-start px-6 py-4 text-ui-fg-subtle", children: [
|
|
194468
194493
|
/* @__PURE__ */ (0, import_jsx_runtime299.jsx)(import_ui198.Text, { size: "small", leading: "compact", weight: "plus", children: type === "shipping" ? t5("addresses.shippingAddress.label") : t5("addresses.billingAddress.label") }),
|
|
194469
|
-
address ? /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)("div", { className: "grid grid-cols-[
|
|
194494
|
+
address ? /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)("div", { className: "grid grid-cols-[minmax(0,1fr)_20px] items-start gap-x-2", children: [
|
|
194470
194495
|
/* @__PURE__ */ (0, import_jsx_runtime299.jsx)(import_ui198.Text, { size: "small", leading: "compact", children: getFormattedAddress({ address }).map((line, i) => {
|
|
194471
194496
|
return /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)("span", { className: "wrap-break-word", children: [
|
|
194472
194497
|
line,
|
package/dist/app.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import "./chunk-P3UUX2T6.mjs";
|
|
|
14
14
|
import "./chunk-DG7J63J2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DashboardApp
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CPWHZQTM.mjs";
|
|
18
18
|
import "./chunk-ONB3JEHR.mjs";
|
|
19
19
|
import "./chunk-6RDE5MJP.mjs";
|
|
20
20
|
import "./chunk-4GQOUCX6.mjs";
|
|
@@ -48,7 +48,7 @@ import "./chunk-YOTXDDQ2.mjs";
|
|
|
48
48
|
import "./chunk-QQOAKYCZ.mjs";
|
|
49
49
|
import "./chunk-3LZACLSQ.mjs";
|
|
50
50
|
import "./chunk-6IYDMYAF.mjs";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-XEVFDH7Y.mjs";
|
|
52
52
|
import "./chunk-5SZFF255.mjs";
|
|
53
53
|
import "./chunk-WZL5JBYE.mjs";
|
|
54
54
|
import "./chunk-RX6DPJGC.mjs";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-OB7LEJUC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
parseFilterParam
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3EYDNGH7.mjs";
|
|
9
9
|
import "./chunk-RIV7FKGN.mjs";
|
|
10
10
|
import "./chunk-CEYKNZTH.mjs";
|
|
11
11
|
import "./chunk-WRSGHGAT.mjs";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-GN7OLNI4.mjs";
|
|
23
23
|
import {
|
|
24
24
|
LayoutComposer
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XEVFDH7Y.mjs";
|
|
26
26
|
import "./chunk-5SZFF255.mjs";
|
|
27
27
|
import "./chunk-RX6DPJGC.mjs";
|
|
28
28
|
import "./chunk-JEO4MPEM.mjs";
|
|
@@ -22,10 +22,10 @@ import "./chunk-4ILLMYUD.mjs";
|
|
|
22
22
|
import "./chunk-IA4VUONG.mjs";
|
|
23
23
|
import {
|
|
24
24
|
ConfigurableDataTable
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KMJT7A27.mjs";
|
|
26
26
|
import "./chunk-EMIHDNB7.mjs";
|
|
27
27
|
import "./chunk-HGXZ5BJO.mjs";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-3EYDNGH7.mjs";
|
|
29
29
|
import "./chunk-RIV7FKGN.mjs";
|
|
30
30
|
import "./chunk-CEYKNZTH.mjs";
|
|
31
31
|
import "./chunk-WRSGHGAT.mjs";
|
|
@@ -76,7 +76,7 @@ import "./chunk-GN7OLNI4.mjs";
|
|
|
76
76
|
import {
|
|
77
77
|
LayoutComposer,
|
|
78
78
|
detailPageDefaultEntries
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-XEVFDH7Y.mjs";
|
|
80
80
|
import "./chunk-5SZFF255.mjs";
|
|
81
81
|
import {
|
|
82
82
|
TwoColumnPageSkeleton
|
|
@@ -12,12 +12,12 @@ import "./chunk-4ILLMYUD.mjs";
|
|
|
12
12
|
import "./chunk-IA4VUONG.mjs";
|
|
13
13
|
import {
|
|
14
14
|
ConfigurableDataTable
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KMJT7A27.mjs";
|
|
16
16
|
import "./chunk-EMIHDNB7.mjs";
|
|
17
17
|
import "./chunk-HGXZ5BJO.mjs";
|
|
18
18
|
import {
|
|
19
19
|
useCampaignTableQuery
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3EYDNGH7.mjs";
|
|
21
21
|
import "./chunk-RIV7FKGN.mjs";
|
|
22
22
|
import "./chunk-CEYKNZTH.mjs";
|
|
23
23
|
import "./chunk-WRSGHGAT.mjs";
|
|
@@ -41,7 +41,7 @@ import "./chunk-DG7J63J2.mjs";
|
|
|
41
41
|
import "./chunk-GN7OLNI4.mjs";
|
|
42
42
|
import {
|
|
43
43
|
LayoutComposer
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XEVFDH7Y.mjs";
|
|
45
45
|
import "./chunk-5SZFF255.mjs";
|
|
46
46
|
import "./chunk-WZL5JBYE.mjs";
|
|
47
47
|
import "./chunk-RX6DPJGC.mjs";
|
|
@@ -27,10 +27,10 @@ import "./chunk-IA4VUONG.mjs";
|
|
|
27
27
|
import "./chunk-PABIC6D7.mjs";
|
|
28
28
|
import {
|
|
29
29
|
ConfigurableDataTable
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KMJT7A27.mjs";
|
|
31
31
|
import "./chunk-EMIHDNB7.mjs";
|
|
32
32
|
import "./chunk-HGXZ5BJO.mjs";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-3EYDNGH7.mjs";
|
|
34
34
|
import "./chunk-RIV7FKGN.mjs";
|
|
35
35
|
import "./chunk-CEYKNZTH.mjs";
|
|
36
36
|
import "./chunk-WRSGHGAT.mjs";
|
|
@@ -84,7 +84,7 @@ import "./chunk-GN7OLNI4.mjs";
|
|
|
84
84
|
import {
|
|
85
85
|
LayoutComposer,
|
|
86
86
|
detailPageDefaultEntries
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-XEVFDH7Y.mjs";
|
|
88
88
|
import "./chunk-5SZFF255.mjs";
|
|
89
89
|
import {
|
|
90
90
|
Skeleton,
|
|
@@ -21,14 +21,18 @@ function parseFilterParam(raw) {
|
|
|
21
21
|
|
|
22
22
|
// src/hooks/table/query/parse-prefixed-query-params.ts
|
|
23
23
|
var NON_FILTER_KEYS = ["offset", "limit", "order"];
|
|
24
|
+
var UNSAFE_KEY_SEGMENTS = ["__proto__", "constructor", "prototype"];
|
|
24
25
|
function expandDottedKeys(params) {
|
|
25
26
|
const result = {};
|
|
26
27
|
for (const [key, value] of Object.entries(params)) {
|
|
27
|
-
|
|
28
|
+
const parts = key.split(".");
|
|
29
|
+
if (parts.some((part) => UNSAFE_KEY_SEGMENTS.includes(part))) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (parts.length === 1) {
|
|
28
33
|
result[key] = value;
|
|
29
34
|
continue;
|
|
30
35
|
}
|
|
31
|
-
const parts = key.split(".");
|
|
32
36
|
let node = result;
|
|
33
37
|
for (let i = 0; i < parts.length - 1; i++) {
|
|
34
38
|
if (typeof node[parts[i]] !== "object" || node[parts[i]] === null) {
|