@mercurjs/admin 2.3.8-canary.2 → 2.3.8-canary.4
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-list-HTIDXZPK.js +1 -1
- package/dist/{attribute-list-7I2EJM2K.js → attribute-list-OPYSKNG4.js} +3 -3
- package/dist/campaign-detail-MMBFOZQQ.js +2 -2
- package/dist/campaign-list-2JPJGXHC.js +1 -1
- package/dist/category-detail-QCAHWH2R.js +1 -1
- package/dist/category-list-ICSYAEYY.js +2 -2
- package/dist/{chunk-KWGR4UXF.js → chunk-PRMXLEEH.js} +33 -44
- package/dist/collection-detail-4X4UBX5Z.js +1 -1
- package/dist/{commission-rule-detail-HSXGPG2B.js → commission-rule-detail-SHFZRM7C.js} +3 -3
- package/dist/{commissions-list-FKYBFSOA.js → commissions-list-CD3KR4SX.js} +3 -3
- package/dist/customer-detail-7MWXRKMQ.js +2 -2
- package/dist/extension-targets.d.ts +15 -0
- package/dist/index.js +43 -38
- package/dist/{inventory-detail-HIZQAPQD.js → inventory-detail-MRY6YCDY.js} +3 -3
- package/dist/marketplace-detail-XVPUQGBH.js +1 -1
- package/dist/order-detail-CARRAQQP.js +2 -2
- package/dist/pages/index.d.ts +2 -41
- package/dist/pages/index.js +13 -13
- package/dist/payout-detail-CPUQHAR5.js +1 -1
- package/dist/payout-list-W3I74MBK.js +1 -1
- package/dist/price-list-list-VGW4LCI2.js +1 -1
- package/dist/{product-detail-FVJBRAYF.js → product-detail-FG334JGH.js} +1 -3
- package/dist/{product-list-V2ZU4RWD.js → product-list-QYSRSGQI.js} +2 -2
- package/dist/product-type-list-NB77MNFR.js +1 -1
- package/dist/{product-variant-detail-IZNFBZ3U.js → product-variant-detail-FB2JDFPM.js} +3 -3
- package/dist/promotion-detail-ENSGRRUE.js +1 -1
- package/dist/promotion-list-34SCRAYC.js +2 -2
- package/dist/{region-detail-ENWOQP5Y.js → region-detail-D2B56VKX.js} +3 -3
- package/dist/{reservation-detail-TOQEPEO3.js → reservation-detail-4X34KVIH.js} +3 -3
- package/dist/shipping-option-type-list-GVN6RVYE.js +1 -1
- package/dist/{shipping-profile-detail-YZJXE6YI.js → shipping-profile-detail-DMIXWURE.js} +3 -3
- package/dist/{store-details-UMQ2WHVA.js → store-details-P6ICUMHM.js} +3 -3
- package/package.json +6 -6
- package/dist/{attribute-detail-DGX6DAM2.js → attribute-detail-HFAWLVDR.js} +4 -4
- package/dist/{chunk-WQ7DGZUJ.js → chunk-5GNRGXUV.js} +3 -3
- package/dist/{chunk-WPTMYAHA.js → chunk-6O6WCVRE.js} +3 -3
- package/dist/{chunk-6YQGQT3U.js → chunk-7LUDLPNC.js} +3 -3
- package/dist/{chunk-QKHSHWGZ.js → chunk-AM7D5DWK.js} +3 -3
- package/dist/{chunk-7ITAM2D5.js → chunk-EAUGTGH7.js} +3 -3
- package/dist/{chunk-FMVX2NNF.js → chunk-F5MYJKDV.js} +3 -3
- package/dist/{chunk-A7CLACER.js → chunk-LSQIVWZX.js} +3 -3
- package/dist/{chunk-GAZEPNOV.js → chunk-RVZPX3PK.js} +3 -3
- package/dist/{chunk-S62X2IXN.js → chunk-UOYKYVNP.js} +3 -3
- package/dist/{chunk-HK4AGDWR.js → chunk-YNNJFA7N.js} +3 -3
- package/dist/{collection-list-N2XHLQIB.js → collection-list-2IHIDKI3.js} +2 -2
- package/dist/{offer-detail-page-LX7BGYIB.js → offer-detail-page-CXNYOO3W.js} +4 -4
- package/dist/{offer-variant-detail-page-JYNPIOLD.js → offer-variant-detail-page-2Q2QPCNL.js} +4 -4
- package/dist/{order-list-FCDXC4I3.js → order-list-N5JRGG5K.js} +2 -2
- package/dist/{product-tag-detail-RT52RFSO.js → product-tag-detail-KU3YZGL3.js} +2 -2
- package/dist/{product-tag-list-IUVB5IP7.js → product-tag-list-3ZAYQS3L.js} +2 -2
- package/dist/{refund-reason-list-GKR4OGHA.js → refund-reason-list-JPMFJMZO.js} +2 -2
- package/dist/{return-reason-list-TXY3YHEE.js → return-reason-list-4RPZCXGM.js} +2 -2
- package/dist/{store-list-UZW63PM4.js → store-list-KCA75EPZ.js} +2 -2
|
@@ -6,9 +6,9 @@ import "./chunk-F3XPA5ID.js";
|
|
|
6
6
|
import "./chunk-JHIMVLB2.js";
|
|
7
7
|
import "./chunk-DB6ANJBO.js";
|
|
8
8
|
import "./chunk-PHOCVOZ5.js";
|
|
9
|
-
import "./chunk-LAVHRER2.js";
|
|
10
9
|
import "./chunk-E74OUNA3.js";
|
|
11
10
|
import "./chunk-H6MYB7GB.js";
|
|
11
|
+
import "./chunk-LAVHRER2.js";
|
|
12
12
|
import "./chunk-THHRRYRS.js";
|
|
13
13
|
import "./chunk-FQERBIVS.js";
|
|
14
14
|
import "./chunk-4JXRBULR.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttributeListPage,
|
|
3
3
|
attributeListLoader
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EAUGTGH7.js";
|
|
5
5
|
import "./chunk-JHIMVLB2.js";
|
|
6
6
|
import "./chunk-PHOCVOZ5.js";
|
|
7
|
+
import "./chunk-E74OUNA3.js";
|
|
8
|
+
import "./chunk-H6MYB7GB.js";
|
|
7
9
|
import "./chunk-RT6L7JXU.js";
|
|
8
10
|
import "./chunk-4YWKKCTT.js";
|
|
9
11
|
import "./chunk-LAVHRER2.js";
|
|
10
|
-
import "./chunk-E74OUNA3.js";
|
|
11
|
-
import "./chunk-H6MYB7GB.js";
|
|
12
12
|
import "./chunk-THHRRYRS.js";
|
|
13
13
|
import "./chunk-FQERBIVS.js";
|
|
14
14
|
import "./chunk-4JXRBULR.js";
|
|
@@ -11,10 +11,10 @@ import "./chunk-JHIMVLB2.js";
|
|
|
11
11
|
import "./chunk-MDABSESI.js";
|
|
12
12
|
import "./chunk-FMFVTERD.js";
|
|
13
13
|
import "./chunk-PHOCVOZ5.js";
|
|
14
|
-
import "./chunk-IUVOUIAX.js";
|
|
15
|
-
import "./chunk-LAVHRER2.js";
|
|
16
14
|
import "./chunk-E74OUNA3.js";
|
|
17
15
|
import "./chunk-H6MYB7GB.js";
|
|
16
|
+
import "./chunk-IUVOUIAX.js";
|
|
17
|
+
import "./chunk-LAVHRER2.js";
|
|
18
18
|
import "./chunk-THHRRYRS.js";
|
|
19
19
|
import "./chunk-FQERBIVS.js";
|
|
20
20
|
import "./chunk-4JXRBULR.js";
|
|
@@ -7,9 +7,9 @@ import "./chunk-LISOKQBZ.js";
|
|
|
7
7
|
import "./chunk-F3XPA5ID.js";
|
|
8
8
|
import "./chunk-JHIMVLB2.js";
|
|
9
9
|
import "./chunk-PHOCVOZ5.js";
|
|
10
|
-
import "./chunk-LAVHRER2.js";
|
|
11
10
|
import "./chunk-E74OUNA3.js";
|
|
12
11
|
import "./chunk-H6MYB7GB.js";
|
|
12
|
+
import "./chunk-LAVHRER2.js";
|
|
13
13
|
import "./chunk-THHRRYRS.js";
|
|
14
14
|
import "./chunk-FQERBIVS.js";
|
|
15
15
|
import "./chunk-4JXRBULR.js";
|
|
@@ -12,9 +12,9 @@ import "./chunk-SANVDYAL.js";
|
|
|
12
12
|
import "./chunk-S4IDR46L.js";
|
|
13
13
|
import "./chunk-DB6ANJBO.js";
|
|
14
14
|
import "./chunk-PHOCVOZ5.js";
|
|
15
|
-
import "./chunk-VSLHL2AZ.js";
|
|
16
15
|
import "./chunk-E74OUNA3.js";
|
|
17
16
|
import "./chunk-H6MYB7GB.js";
|
|
17
|
+
import "./chunk-VSLHL2AZ.js";
|
|
18
18
|
import "./chunk-U3I6S3RO.js";
|
|
19
19
|
import "./chunk-THHRRYRS.js";
|
|
20
20
|
import "./chunk-YJI74L4M.js";
|
|
@@ -7,10 +7,10 @@ import "./chunk-Y456KVIN.js";
|
|
|
7
7
|
import "./chunk-BP35TLCK.js";
|
|
8
8
|
import "./chunk-DB6ANJBO.js";
|
|
9
9
|
import "./chunk-PHOCVOZ5.js";
|
|
10
|
-
import "./chunk-VSLHL2AZ.js";
|
|
11
|
-
import "./chunk-LAVHRER2.js";
|
|
12
10
|
import "./chunk-E74OUNA3.js";
|
|
13
11
|
import "./chunk-H6MYB7GB.js";
|
|
12
|
+
import "./chunk-VSLHL2AZ.js";
|
|
13
|
+
import "./chunk-LAVHRER2.js";
|
|
14
14
|
import "./chunk-U3I6S3RO.js";
|
|
15
15
|
import "./chunk-THHRRYRS.js";
|
|
16
16
|
import "./chunk-FQERBIVS.js";
|
|
@@ -7,9 +7,6 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
PRODUCT_DETAIL_QUERY
|
|
9
9
|
} from "./chunk-6BAPAIQM.js";
|
|
10
|
-
import {
|
|
11
|
-
TwoColumnPage
|
|
12
|
-
} from "./chunk-E74OUNA3.js";
|
|
13
10
|
import {
|
|
14
11
|
Thumbnail
|
|
15
12
|
} from "./chunk-U3I6S3RO.js";
|
|
@@ -56,9 +53,20 @@ import {
|
|
|
56
53
|
} from "./chunk-NBMM2TZK.js";
|
|
57
54
|
|
|
58
55
|
// src/pages/products/product-detail/product-detail.tsx
|
|
59
|
-
import { Children } from "react";
|
|
60
56
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
61
|
-
|
|
57
|
+
|
|
58
|
+
// ../dashboard-sdk/dist/index.js
|
|
59
|
+
var CORE_LAYOUT_IDS = {
|
|
60
|
+
SINGLE_COLUMN: "core:single-column",
|
|
61
|
+
TWO_COLUMN: "core:two-column"
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// src/pages/products/product-detail/product-detail.tsx
|
|
65
|
+
import {
|
|
66
|
+
LayoutComposer,
|
|
67
|
+
detailPageDefaultEntries,
|
|
68
|
+
useLinkQuery
|
|
69
|
+
} from "@mercurjs/dashboard-shared";
|
|
62
70
|
|
|
63
71
|
// src/pages/products/product-detail/components/product-active-edit-section/product-active-edit-section.tsx
|
|
64
72
|
var import_types = __toESM(require_dist(), 1);
|
|
@@ -1074,8 +1082,8 @@ var useOrderBy = () => {
|
|
|
1074
1082
|
};
|
|
1075
1083
|
|
|
1076
1084
|
// src/pages/products/product-detail/product-detail.tsx
|
|
1077
|
-
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1078
|
-
var
|
|
1085
|
+
import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1086
|
+
var ProductDetailPage = () => {
|
|
1079
1087
|
const initialData = useLoaderData();
|
|
1080
1088
|
const { id } = useParams();
|
|
1081
1089
|
const query = useLinkQuery("product", PRODUCT_DETAIL_QUERY.fields);
|
|
@@ -1102,49 +1110,30 @@ var Root = ({ children }) => {
|
|
|
1102
1110
|
if (isError) {
|
|
1103
1111
|
throw error;
|
|
1104
1112
|
}
|
|
1105
|
-
return
|
|
1106
|
-
|
|
1107
|
-
{
|
|
1108
|
-
data: product,
|
|
1109
|
-
showJSON: true,
|
|
1110
|
-
showMetadata: true,
|
|
1111
|
-
"data-testid": "product-detail-page",
|
|
1112
|
-
children
|
|
1113
|
-
}
|
|
1114
|
-
) : /* @__PURE__ */ jsxs7(
|
|
1115
|
-
TwoColumnPage,
|
|
1113
|
+
return /* @__PURE__ */ jsx8(
|
|
1114
|
+
LayoutComposer,
|
|
1116
1115
|
{
|
|
1116
|
+
widgetsZonePrefix: "product.detail",
|
|
1117
|
+
preferredLayoutId: CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
1117
1118
|
data: product,
|
|
1118
|
-
showJSON: true,
|
|
1119
|
-
showMetadata: true,
|
|
1120
1119
|
"data-testid": "product-detail-page",
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
/* @__PURE__ */ jsx8(ProductActiveRequestSection, { product }),
|
|
1124
|
-
/* @__PURE__ */ jsx8(ProductActiveEditSection, { product }),
|
|
1125
|
-
/* @__PURE__ */ jsx8(ProductGeneralSection, { product }),
|
|
1126
|
-
/* @__PURE__ */ jsx8(ProductMediaSection, { product }),
|
|
1127
|
-
/* @__PURE__ */ jsx8(ProductVariantSection, { product })
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
/* @__PURE__ */ jsx8(
|
|
1132
|
-
|
|
1133
|
-
|
|
1120
|
+
sections: {
|
|
1121
|
+
main: /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
1122
|
+
/* @__PURE__ */ jsx8(LayoutComposer.Entry, { id: "ProductActiveRequestSection", children: /* @__PURE__ */ jsx8(ProductActiveRequestSection, { product }) }),
|
|
1123
|
+
/* @__PURE__ */ jsx8(LayoutComposer.Entry, { id: "ProductActiveEditSection", children: /* @__PURE__ */ jsx8(ProductActiveEditSection, { product }) }),
|
|
1124
|
+
/* @__PURE__ */ jsx8(LayoutComposer.Entry, { id: "ProductGeneralSection", children: /* @__PURE__ */ jsx8(ProductGeneralSection, { product }) }),
|
|
1125
|
+
/* @__PURE__ */ jsx8(LayoutComposer.Entry, { id: "ProductMediaSection", children: /* @__PURE__ */ jsx8(ProductMediaSection, { product }) }),
|
|
1126
|
+
/* @__PURE__ */ jsx8(LayoutComposer.Entry, { id: "ProductVariantSection", children: /* @__PURE__ */ jsx8(ProductVariantSection, { product }) }),
|
|
1127
|
+
detailPageDefaultEntries(product)
|
|
1128
|
+
] }),
|
|
1129
|
+
side: /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
1130
|
+
/* @__PURE__ */ jsx8(LayoutComposer.Entry, { id: "ProductOrganizationSection", children: /* @__PURE__ */ jsx8(ProductOrganizationSection, { product }) }),
|
|
1131
|
+
/* @__PURE__ */ jsx8(LayoutComposer.Entry, { id: "ProductAttributeSection", children: /* @__PURE__ */ jsx8(ProductAttributeSection, { product }) })
|
|
1132
|
+
] })
|
|
1133
|
+
}
|
|
1134
1134
|
}
|
|
1135
1135
|
);
|
|
1136
1136
|
};
|
|
1137
|
-
var ProductDetailPage = Object.assign(Root, {
|
|
1138
|
-
Main: TwoColumnPage.Main,
|
|
1139
|
-
Sidebar: TwoColumnPage.Sidebar,
|
|
1140
|
-
MainActiveRequestSection: ProductActiveRequestSection,
|
|
1141
|
-
MainActiveEditSection: ProductActiveEditSection,
|
|
1142
|
-
MainGeneralSection: ProductGeneralSection,
|
|
1143
|
-
MainMediaSection: ProductMediaSection,
|
|
1144
|
-
MainAttributeSection: ProductAttributeSection,
|
|
1145
|
-
MainVariantSection: ProductVariantSection,
|
|
1146
|
-
SidebarOrganizationSection: ProductOrganizationSection
|
|
1147
|
-
});
|
|
1148
1137
|
|
|
1149
1138
|
export {
|
|
1150
1139
|
ProductDetailPage
|
|
@@ -9,9 +9,9 @@ import "./chunk-SANVDYAL.js";
|
|
|
9
9
|
import "./chunk-S4IDR46L.js";
|
|
10
10
|
import "./chunk-DB6ANJBO.js";
|
|
11
11
|
import "./chunk-PHOCVOZ5.js";
|
|
12
|
-
import "./chunk-VSLHL2AZ.js";
|
|
13
12
|
import "./chunk-E74OUNA3.js";
|
|
14
13
|
import "./chunk-H6MYB7GB.js";
|
|
14
|
+
import "./chunk-VSLHL2AZ.js";
|
|
15
15
|
import "./chunk-U3I6S3RO.js";
|
|
16
16
|
import "./chunk-THHRRYRS.js";
|
|
17
17
|
import "./chunk-YJI74L4M.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommissionRuleDetail
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6O6WCVRE.js";
|
|
4
4
|
import "./chunk-4TE6D4KL.js";
|
|
5
5
|
import "./chunk-CGIVQ7D2.js";
|
|
6
|
-
import "./chunk-FI474ADU.js";
|
|
7
|
-
import "./chunk-3XPXUIK3.js";
|
|
8
6
|
import "./chunk-E74OUNA3.js";
|
|
9
7
|
import "./chunk-H6MYB7GB.js";
|
|
8
|
+
import "./chunk-FI474ADU.js";
|
|
9
|
+
import "./chunk-3XPXUIK3.js";
|
|
10
10
|
import "./chunk-3UOYBH5O.js";
|
|
11
11
|
import "./chunk-MD27DYVZ.js";
|
|
12
12
|
import {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommissionsPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AM7D5DWK.js";
|
|
4
4
|
import "./chunk-4TE6D4KL.js";
|
|
5
5
|
import "./chunk-CGIVQ7D2.js";
|
|
6
6
|
import "./chunk-JHIMVLB2.js";
|
|
7
7
|
import "./chunk-DB6ANJBO.js";
|
|
8
8
|
import "./chunk-PHOCVOZ5.js";
|
|
9
|
+
import "./chunk-E74OUNA3.js";
|
|
10
|
+
import "./chunk-H6MYB7GB.js";
|
|
9
11
|
import "./chunk-LAVHRER2.js";
|
|
10
12
|
import "./chunk-FI474ADU.js";
|
|
11
13
|
import "./chunk-3XPXUIK3.js";
|
|
12
|
-
import "./chunk-E74OUNA3.js";
|
|
13
|
-
import "./chunk-H6MYB7GB.js";
|
|
14
14
|
import "./chunk-THHRRYRS.js";
|
|
15
15
|
import "./chunk-FQERBIVS.js";
|
|
16
16
|
import "./chunk-4JXRBULR.js";
|
|
@@ -12,11 +12,11 @@ import "./chunk-PXYDR7WQ.js";
|
|
|
12
12
|
import "./chunk-JHIMVLB2.js";
|
|
13
13
|
import "./chunk-DB6ANJBO.js";
|
|
14
14
|
import "./chunk-PHOCVOZ5.js";
|
|
15
|
+
import "./chunk-E74OUNA3.js";
|
|
16
|
+
import "./chunk-H6MYB7GB.js";
|
|
15
17
|
import "./chunk-PYDRHQTY.js";
|
|
16
18
|
import "./chunk-IQPN4PZJ.js";
|
|
17
19
|
import "./chunk-LAVHRER2.js";
|
|
18
|
-
import "./chunk-E74OUNA3.js";
|
|
19
|
-
import "./chunk-H6MYB7GB.js";
|
|
20
20
|
import "./chunk-THHRRYRS.js";
|
|
21
21
|
import "./chunk-FQERBIVS.js";
|
|
22
22
|
import "./chunk-4JXRBULR.js";
|
|
@@ -100,8 +100,11 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
100
100
|
"product-variants.detail.main.before": true
|
|
101
101
|
"product-variants.detail.side.after": true
|
|
102
102
|
"product-variants.detail.side.before": true
|
|
103
|
+
"product.detail": true
|
|
104
|
+
"product.detail.main": true
|
|
103
105
|
"product.detail.main.after": true
|
|
104
106
|
"product.detail.main.before": true
|
|
107
|
+
"product.detail.side": true
|
|
105
108
|
"product.detail.side.after": true
|
|
106
109
|
"product.detail.side.before": true
|
|
107
110
|
"products.list.after": true
|
|
@@ -162,6 +165,18 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
162
165
|
"users.list.before": true
|
|
163
166
|
}
|
|
164
167
|
|
|
168
|
+
interface LayoutEntryRegistry {
|
|
169
|
+
"core:JsonViewSection": true
|
|
170
|
+
"core:MetadataSection": true
|
|
171
|
+
"core:ProductActiveEditSection": true
|
|
172
|
+
"core:ProductActiveRequestSection": true
|
|
173
|
+
"core:ProductAttributeSection": true
|
|
174
|
+
"core:ProductGeneralSection": true
|
|
175
|
+
"core:ProductMediaSection": true
|
|
176
|
+
"core:ProductOrganizationSection": true
|
|
177
|
+
"core:ProductVariantSection": true
|
|
178
|
+
}
|
|
179
|
+
|
|
165
180
|
interface NavItemRegistry {
|
|
166
181
|
"campaigns": true
|
|
167
182
|
"categories": true
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,9 @@ import {
|
|
|
18
18
|
getRoutesByType
|
|
19
19
|
} from "./chunk-AJF67M56.js";
|
|
20
20
|
import "./chunk-C6SUTRP2.js";
|
|
21
|
+
import {
|
|
22
|
+
SingleColumnPage
|
|
23
|
+
} from "./chunk-H6MYB7GB.js";
|
|
21
24
|
import {
|
|
22
25
|
TabbedForm,
|
|
23
26
|
defineTabMeta,
|
|
@@ -46,9 +49,6 @@ import {
|
|
|
46
49
|
PRODUCT_DETAIL_FIELDS,
|
|
47
50
|
PRODUCT_DETAIL_QUERY
|
|
48
51
|
} from "./chunk-6BAPAIQM.js";
|
|
49
|
-
import {
|
|
50
|
-
SingleColumnPage
|
|
51
|
-
} from "./chunk-H6MYB7GB.js";
|
|
52
52
|
import "./chunk-U3I6S3RO.js";
|
|
53
53
|
import "./chunk-FQERBIVS.js";
|
|
54
54
|
import {
|
|
@@ -113,9 +113,11 @@ import { customRoutes } from "virtual:mercur/routes";
|
|
|
113
113
|
import widgets from "virtual:mercur/widgets";
|
|
114
114
|
import navigation from "virtual:mercur/navigation";
|
|
115
115
|
import customFields from "virtual:mercur/custom-fields";
|
|
116
|
+
import layouts from "virtual:mercur/layouts";
|
|
117
|
+
import preferences from "virtual:mercur/preferences";
|
|
116
118
|
import { HelmetProvider } from "react-helmet-async";
|
|
117
119
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
118
|
-
import { ExtensionProvider } from "@mercurjs/dashboard-shared";
|
|
120
|
+
import { ExtensionProvider, resolveRouteOverrides } from "@mercurjs/dashboard-shared";
|
|
119
121
|
|
|
120
122
|
// src/providers/feature-flag-provider/index.tsx
|
|
121
123
|
import { createContext, useCallback, useContext, useMemo } from "react";
|
|
@@ -268,7 +270,7 @@ function getRouteMap({
|
|
|
268
270
|
children: [
|
|
269
271
|
{
|
|
270
272
|
path: "",
|
|
271
|
-
lazy: () => import("./product-list-
|
|
273
|
+
lazy: () => import("./product-list-QYSRSGQI.js"),
|
|
272
274
|
children: [
|
|
273
275
|
{
|
|
274
276
|
path: "create",
|
|
@@ -286,7 +288,7 @@ function getRouteMap({
|
|
|
286
288
|
path: ":id",
|
|
287
289
|
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
288
290
|
lazy: async () => {
|
|
289
|
-
const { Breadcrumb, loader } = await import("./product-detail-
|
|
291
|
+
const { Breadcrumb, loader } = await import("./product-detail-FG334JGH.js");
|
|
290
292
|
return {
|
|
291
293
|
Component: Outlet3,
|
|
292
294
|
loader: withPermission(loader, "products:view"),
|
|
@@ -298,7 +300,7 @@ function getRouteMap({
|
|
|
298
300
|
children: [
|
|
299
301
|
{
|
|
300
302
|
path: "",
|
|
301
|
-
lazy: () => import("./product-detail-
|
|
303
|
+
lazy: () => import("./product-detail-FG334JGH.js").then(withLoaderPermission("products:view")),
|
|
302
304
|
children: [
|
|
303
305
|
{
|
|
304
306
|
path: "edit",
|
|
@@ -365,7 +367,7 @@ function getRouteMap({
|
|
|
365
367
|
{
|
|
366
368
|
path: "variants/:variant_id",
|
|
367
369
|
lazy: async () => {
|
|
368
|
-
const { Breadcrumb, loader } = await import("./product-variant-detail-
|
|
370
|
+
const { Breadcrumb, loader } = await import("./product-variant-detail-FB2JDFPM.js");
|
|
369
371
|
return {
|
|
370
372
|
Component: Outlet3,
|
|
371
373
|
loader: withPermission(loader, "products:view"),
|
|
@@ -377,7 +379,7 @@ function getRouteMap({
|
|
|
377
379
|
children: [
|
|
378
380
|
{
|
|
379
381
|
path: "",
|
|
380
|
-
lazy: () => import("./product-variant-detail-
|
|
382
|
+
lazy: () => import("./product-variant-detail-FB2JDFPM.js").then(withLoaderPermission("products:view")),
|
|
381
383
|
children: [
|
|
382
384
|
{
|
|
383
385
|
path: "edit",
|
|
@@ -484,7 +486,7 @@ function getRouteMap({
|
|
|
484
486
|
children: [
|
|
485
487
|
{
|
|
486
488
|
path: "",
|
|
487
|
-
lazy: () => import("./order-list-
|
|
489
|
+
lazy: () => import("./order-list-N5JRGG5K.js")
|
|
488
490
|
},
|
|
489
491
|
{
|
|
490
492
|
path: ":id",
|
|
@@ -731,7 +733,7 @@ function getRouteMap({
|
|
|
731
733
|
children: [
|
|
732
734
|
{
|
|
733
735
|
path: "",
|
|
734
|
-
lazy: () => import("./collection-list-
|
|
736
|
+
lazy: () => import("./collection-list-2IHIDKI3.js"),
|
|
735
737
|
children: [
|
|
736
738
|
{
|
|
737
739
|
path: "create",
|
|
@@ -994,7 +996,7 @@ function getRouteMap({
|
|
|
994
996
|
children: [
|
|
995
997
|
{
|
|
996
998
|
path: "",
|
|
997
|
-
lazy: () => import("./store-list-
|
|
999
|
+
lazy: () => import("./store-list-KCA75EPZ.js"),
|
|
998
1000
|
children: [
|
|
999
1001
|
{
|
|
1000
1002
|
path: "create",
|
|
@@ -1011,7 +1013,7 @@ function getRouteMap({
|
|
|
1011
1013
|
{
|
|
1012
1014
|
path: ":id",
|
|
1013
1015
|
lazy: async () => {
|
|
1014
|
-
const { Breadcrumb } = await import("./store-details-
|
|
1016
|
+
const { Breadcrumb } = await import("./store-details-P6ICUMHM.js");
|
|
1015
1017
|
return {
|
|
1016
1018
|
Component: Outlet3,
|
|
1017
1019
|
handle: {
|
|
@@ -1022,7 +1024,7 @@ function getRouteMap({
|
|
|
1022
1024
|
children: [
|
|
1023
1025
|
{
|
|
1024
1026
|
path: "",
|
|
1025
|
-
lazy: () => import("./store-details-
|
|
1027
|
+
lazy: () => import("./store-details-P6ICUMHM.js").then(withLoaderPermission("sellers:view")),
|
|
1026
1028
|
children: [
|
|
1027
1029
|
{
|
|
1028
1030
|
path: "edit",
|
|
@@ -1120,7 +1122,7 @@ function getRouteMap({
|
|
|
1120
1122
|
{
|
|
1121
1123
|
path: ":id",
|
|
1122
1124
|
lazy: async () => {
|
|
1123
|
-
const { Breadcrumb, loader } = await import("./reservation-detail-
|
|
1125
|
+
const { Breadcrumb, loader } = await import("./reservation-detail-4X34KVIH.js");
|
|
1124
1126
|
return {
|
|
1125
1127
|
Component: Outlet3,
|
|
1126
1128
|
loader: withPermission(loader, "reservations:view"),
|
|
@@ -1132,7 +1134,7 @@ function getRouteMap({
|
|
|
1132
1134
|
children: [
|
|
1133
1135
|
{
|
|
1134
1136
|
path: "",
|
|
1135
|
-
lazy: () => import("./reservation-detail-
|
|
1137
|
+
lazy: () => import("./reservation-detail-4X34KVIH.js").then(withLoaderPermission("reservations:view")),
|
|
1136
1138
|
children: [
|
|
1137
1139
|
{
|
|
1138
1140
|
path: "edit",
|
|
@@ -1182,7 +1184,7 @@ function getRouteMap({
|
|
|
1182
1184
|
{
|
|
1183
1185
|
path: "",
|
|
1184
1186
|
lazy: async () => {
|
|
1185
|
-
const { OfferDetailPage } = await import("./offer-detail-page-
|
|
1187
|
+
const { OfferDetailPage } = await import("./offer-detail-page-CXNYOO3W.js");
|
|
1186
1188
|
return { Component: OfferDetailPage };
|
|
1187
1189
|
}
|
|
1188
1190
|
},
|
|
@@ -1203,7 +1205,7 @@ function getRouteMap({
|
|
|
1203
1205
|
{
|
|
1204
1206
|
path: "",
|
|
1205
1207
|
lazy: async () => {
|
|
1206
|
-
const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-
|
|
1208
|
+
const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-2Q2QPCNL.js");
|
|
1207
1209
|
return { Component: OfferVariantDetailPage };
|
|
1208
1210
|
}
|
|
1209
1211
|
}
|
|
@@ -1235,7 +1237,7 @@ function getRouteMap({
|
|
|
1235
1237
|
{
|
|
1236
1238
|
path: ":id",
|
|
1237
1239
|
lazy: async () => {
|
|
1238
|
-
const { Breadcrumb, loader } = await import("./inventory-detail-
|
|
1240
|
+
const { Breadcrumb, loader } = await import("./inventory-detail-MRY6YCDY.js");
|
|
1239
1241
|
return {
|
|
1240
1242
|
Component: Outlet3,
|
|
1241
1243
|
loader: withPermission(loader, "inventory_items:view"),
|
|
@@ -1247,7 +1249,7 @@ function getRouteMap({
|
|
|
1247
1249
|
children: [
|
|
1248
1250
|
{
|
|
1249
1251
|
path: "",
|
|
1250
|
-
lazy: () => import("./inventory-detail-
|
|
1252
|
+
lazy: () => import("./inventory-detail-MRY6YCDY.js").then(withLoaderPermission("inventory_items:view")),
|
|
1251
1253
|
children: [
|
|
1252
1254
|
{
|
|
1253
1255
|
path: "edit",
|
|
@@ -1351,7 +1353,7 @@ function getRouteMap({
|
|
|
1351
1353
|
{
|
|
1352
1354
|
path: ":id",
|
|
1353
1355
|
lazy: async () => {
|
|
1354
|
-
const { Breadcrumb, loader } = await import("./region-detail-
|
|
1356
|
+
const { Breadcrumb, loader } = await import("./region-detail-D2B56VKX.js");
|
|
1355
1357
|
return {
|
|
1356
1358
|
Component: Outlet3,
|
|
1357
1359
|
loader: withPermission(loader, "regions:view"),
|
|
@@ -1363,7 +1365,7 @@ function getRouteMap({
|
|
|
1363
1365
|
children: [
|
|
1364
1366
|
{
|
|
1365
1367
|
path: "",
|
|
1366
|
-
lazy: () => import("./region-detail-
|
|
1368
|
+
lazy: () => import("./region-detail-D2B56VKX.js").then(withLoaderPermission("regions:view")),
|
|
1367
1369
|
children: [
|
|
1368
1370
|
{
|
|
1369
1371
|
path: "edit",
|
|
@@ -1434,7 +1436,7 @@ function getRouteMap({
|
|
|
1434
1436
|
children: [
|
|
1435
1437
|
{
|
|
1436
1438
|
path: "",
|
|
1437
|
-
lazy: () => import("./commissions-list-
|
|
1439
|
+
lazy: () => import("./commissions-list-CD3KR4SX.js"),
|
|
1438
1440
|
children: [
|
|
1439
1441
|
{
|
|
1440
1442
|
path: "create",
|
|
@@ -1451,7 +1453,7 @@ function getRouteMap({
|
|
|
1451
1453
|
{
|
|
1452
1454
|
path: ":id",
|
|
1453
1455
|
lazy: async () => {
|
|
1454
|
-
const { Breadcrumb } = await import("./commission-rule-detail-
|
|
1456
|
+
const { Breadcrumb } = await import("./commission-rule-detail-SHFZRM7C.js");
|
|
1455
1457
|
return {
|
|
1456
1458
|
Component: Outlet3,
|
|
1457
1459
|
handle: {
|
|
@@ -1462,7 +1464,7 @@ function getRouteMap({
|
|
|
1462
1464
|
children: [
|
|
1463
1465
|
{
|
|
1464
1466
|
path: "",
|
|
1465
|
-
lazy: () => import("./commission-rule-detail-
|
|
1467
|
+
lazy: () => import("./commission-rule-detail-SHFZRM7C.js"),
|
|
1466
1468
|
children: [
|
|
1467
1469
|
{
|
|
1468
1470
|
path: "edit",
|
|
@@ -1631,7 +1633,7 @@ function getRouteMap({
|
|
|
1631
1633
|
{
|
|
1632
1634
|
path: ":shipping_profile_id",
|
|
1633
1635
|
lazy: async () => {
|
|
1634
|
-
const { Breadcrumb, loader } = await import("./shipping-profile-detail-
|
|
1636
|
+
const { Breadcrumb, loader } = await import("./shipping-profile-detail-DMIXWURE.js");
|
|
1635
1637
|
return {
|
|
1636
1638
|
Component: Outlet3,
|
|
1637
1639
|
loader: withPermission(loader, "shipping_profiles:view"),
|
|
@@ -1643,7 +1645,7 @@ function getRouteMap({
|
|
|
1643
1645
|
children: [
|
|
1644
1646
|
{
|
|
1645
1647
|
path: "",
|
|
1646
|
-
lazy: () => import("./shipping-profile-detail-
|
|
1648
|
+
lazy: () => import("./shipping-profile-detail-DMIXWURE.js").then(withLoaderPermission("shipping_profiles:view")),
|
|
1647
1649
|
children: [
|
|
1648
1650
|
{
|
|
1649
1651
|
path: "metadata/edit",
|
|
@@ -1803,7 +1805,7 @@ function getRouteMap({
|
|
|
1803
1805
|
children: [
|
|
1804
1806
|
{
|
|
1805
1807
|
path: "",
|
|
1806
|
-
lazy: () => import("./product-tag-list-
|
|
1808
|
+
lazy: () => import("./product-tag-list-3ZAYQS3L.js").then(withLoaderPermission("product_tags:view")),
|
|
1807
1809
|
children: [
|
|
1808
1810
|
{
|
|
1809
1811
|
path: "create",
|
|
@@ -1815,7 +1817,7 @@ function getRouteMap({
|
|
|
1815
1817
|
{
|
|
1816
1818
|
path: ":id",
|
|
1817
1819
|
lazy: async () => {
|
|
1818
|
-
const { Breadcrumb, loader } = await import("./product-tag-detail-
|
|
1820
|
+
const { Breadcrumb, loader } = await import("./product-tag-detail-KU3YZGL3.js");
|
|
1819
1821
|
return {
|
|
1820
1822
|
Component: Outlet3,
|
|
1821
1823
|
loader: withPermission(loader, "product_tags:view"),
|
|
@@ -1827,7 +1829,7 @@ function getRouteMap({
|
|
|
1827
1829
|
children: [
|
|
1828
1830
|
{
|
|
1829
1831
|
path: "",
|
|
1830
|
-
lazy: () => import("./product-tag-detail-
|
|
1832
|
+
lazy: () => import("./product-tag-detail-KU3YZGL3.js").then(withLoaderPermission("product_tags:view")),
|
|
1831
1833
|
children: [
|
|
1832
1834
|
{
|
|
1833
1835
|
path: "edit",
|
|
@@ -1856,7 +1858,7 @@ function getRouteMap({
|
|
|
1856
1858
|
children: [
|
|
1857
1859
|
{
|
|
1858
1860
|
path: "",
|
|
1859
|
-
lazy: () => import("./attribute-list-
|
|
1861
|
+
lazy: () => import("./attribute-list-OPYSKNG4.js").then(withLoaderPermission("product_attributes:view")),
|
|
1860
1862
|
children: [
|
|
1861
1863
|
{
|
|
1862
1864
|
path: "create",
|
|
@@ -1868,7 +1870,7 @@ function getRouteMap({
|
|
|
1868
1870
|
{
|
|
1869
1871
|
path: ":id",
|
|
1870
1872
|
lazy: async () => {
|
|
1871
|
-
const { Breadcrumb, loader } = await import("./attribute-detail-
|
|
1873
|
+
const { Breadcrumb, loader } = await import("./attribute-detail-HFAWLVDR.js");
|
|
1872
1874
|
return {
|
|
1873
1875
|
Component: Outlet3,
|
|
1874
1876
|
loader: withPermission(loader, "product_attributes:view"),
|
|
@@ -1880,7 +1882,7 @@ function getRouteMap({
|
|
|
1880
1882
|
children: [
|
|
1881
1883
|
{
|
|
1882
1884
|
path: "",
|
|
1883
|
-
lazy: () => import("./attribute-detail-
|
|
1885
|
+
lazy: () => import("./attribute-detail-HFAWLVDR.js").then(withLoaderPermission("product_attributes:view")),
|
|
1884
1886
|
children: [
|
|
1885
1887
|
{
|
|
1886
1888
|
path: "edit",
|
|
@@ -2200,7 +2202,7 @@ function getRouteMap({
|
|
|
2200
2202
|
children: [
|
|
2201
2203
|
{
|
|
2202
2204
|
path: "",
|
|
2203
|
-
lazy: () => import("./return-reason-list-
|
|
2205
|
+
lazy: () => import("./return-reason-list-4RPZCXGM.js").then(withLoaderPermission("return_reasons:view")),
|
|
2204
2206
|
children: [
|
|
2205
2207
|
{
|
|
2206
2208
|
path: "create",
|
|
@@ -2231,7 +2233,7 @@ function getRouteMap({
|
|
|
2231
2233
|
children: [
|
|
2232
2234
|
{
|
|
2233
2235
|
path: "",
|
|
2234
|
-
lazy: () => import("./refund-reason-list-
|
|
2236
|
+
lazy: () => import("./refund-reason-list-JPMFJMZO.js").then(withLoaderPermission("refund_reasons:view")),
|
|
2235
2237
|
children: [
|
|
2236
2238
|
{
|
|
2237
2239
|
path: "create",
|
|
@@ -2326,10 +2328,11 @@ import { useMemo as useMemo2 } from "react";
|
|
|
2326
2328
|
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
2327
2329
|
function App() {
|
|
2328
2330
|
const routes = useMemo2(() => {
|
|
2331
|
+
const resolved = resolveRouteOverrides(customRoutes);
|
|
2329
2332
|
return {
|
|
2330
|
-
settingsRoutes: createRouteMap(getRoutesByType(
|
|
2331
|
-
mainRoutes: createRouteMap(getRoutesByType(
|
|
2332
|
-
publicRoutes: createRouteMap(getRoutesByType(
|
|
2333
|
+
settingsRoutes: createRouteMap(getRoutesByType(resolved, "settings")),
|
|
2334
|
+
mainRoutes: createRouteMap(getRoutesByType(resolved, "main")),
|
|
2335
|
+
publicRoutes: createRouteMap(getRoutesByType(resolved, "public"))
|
|
2333
2336
|
};
|
|
2334
2337
|
}, []);
|
|
2335
2338
|
return /* @__PURE__ */ jsx5(TooltipProvider, { children: /* @__PURE__ */ jsx5(HelmetProvider, { children: /* @__PURE__ */ jsx5(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx5(ThemeProvider, { children: /* @__PURE__ */ jsx5(FeatureFlagProvider, { children: /* @__PURE__ */ jsxs(
|
|
@@ -2338,6 +2341,8 @@ function App() {
|
|
|
2338
2341
|
widgets,
|
|
2339
2342
|
navigation,
|
|
2340
2343
|
customFields,
|
|
2344
|
+
layouts,
|
|
2345
|
+
preferences,
|
|
2341
2346
|
children: [
|
|
2342
2347
|
/* @__PURE__ */ jsx5(I18n, {}),
|
|
2343
2348
|
/* @__PURE__ */ jsx5(I18nProvider, { children: /* @__PURE__ */ jsx5(
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
INVENTORY_DETAIL_FIELDS,
|
|
3
3
|
InventoryDetailPage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YNNJFA7N.js";
|
|
5
5
|
import "./chunk-UST2RGWB.js";
|
|
6
6
|
import "./chunk-U2EI2ZLM.js";
|
|
7
7
|
import "./chunk-W6Y3PPU5.js";
|
|
8
8
|
import "./chunk-JHIMVLB2.js";
|
|
9
9
|
import "./chunk-JRTZWK77.js";
|
|
10
10
|
import "./chunk-PHOCVOZ5.js";
|
|
11
|
+
import "./chunk-E74OUNA3.js";
|
|
12
|
+
import "./chunk-H6MYB7GB.js";
|
|
11
13
|
import "./chunk-LAVHRER2.js";
|
|
12
14
|
import "./chunk-FI474ADU.js";
|
|
13
15
|
import "./chunk-3XPXUIK3.js";
|
|
14
|
-
import "./chunk-E74OUNA3.js";
|
|
15
|
-
import "./chunk-H6MYB7GB.js";
|
|
16
16
|
import "./chunk-U3I6S3RO.js";
|
|
17
17
|
import "./chunk-THHRRYRS.js";
|
|
18
18
|
import "./chunk-FQERBIVS.js";
|
|
@@ -5,9 +5,9 @@ import "./chunk-64XMEZ5A.js";
|
|
|
5
5
|
import "./chunk-JHIMVLB2.js";
|
|
6
6
|
import "./chunk-DB6ANJBO.js";
|
|
7
7
|
import "./chunk-PHOCVOZ5.js";
|
|
8
|
-
import "./chunk-LAVHRER2.js";
|
|
9
8
|
import "./chunk-E74OUNA3.js";
|
|
10
9
|
import "./chunk-H6MYB7GB.js";
|
|
10
|
+
import "./chunk-LAVHRER2.js";
|
|
11
11
|
import "./chunk-THHRRYRS.js";
|
|
12
12
|
import "./chunk-FQERBIVS.js";
|
|
13
13
|
import "./chunk-4JXRBULR.js";
|