@mercurjs/admin 2.2.0-canary.41 → 2.2.0-canary.43
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-HKNZPPR2.js → api-key-management-detail-5R7HJSK2.js} +1 -1
- package/dist/{api-key-management-list-5RXBJ24C.js → api-key-management-list-SQEBELT3.js} +1 -1
- package/dist/{attribute-detail-LBACUDU3.js → attribute-detail-2HDO6YCN.js} +3 -2
- package/dist/{attribute-list-6A72PBIY.js → attribute-list-OHBKYM37.js} +1 -1
- package/dist/{chunk-EOSJHPHN.js → chunk-2SMBVF6F.js} +2 -1
- package/dist/{chunk-JEDX4KBB.js → chunk-3WOU2BB5.js} +2 -1
- package/dist/{chunk-NOKCLBAL.js → chunk-4TNOZ4VH.js} +2 -1
- package/dist/{chunk-KT4DGVRQ.js → chunk-C4UDDNHP.js} +3 -2
- package/dist/{chunk-VY72NX26.js → chunk-DI33XMXB.js} +3 -2
- package/dist/{chunk-VGXJXU7X.js → chunk-DUXVIXHP.js} +4 -3
- package/dist/{chunk-5DAFNAZJ.js → chunk-E6326AHP.js} +1 -1
- package/dist/{chunk-VLYPVR5U.js → chunk-ELNENIRC.js} +2 -1
- package/dist/{chunk-BF7X4JQT.js → chunk-ESC6LVVC.js} +2 -1
- package/dist/{chunk-WEVSVBVF.js → chunk-EXUFS4XF.js} +2 -1
- package/dist/{chunk-LQSSUC7W.js → chunk-GT5A4XN2.js} +2 -1
- package/dist/{chunk-GWSRWILC.js → chunk-GWW6MPYK.js} +2 -1
- package/dist/{chunk-25U23TXK.js → chunk-J772X4Q3.js} +2 -1
- package/dist/{chunk-S2C6DUQJ.js → chunk-JCOBV3J2.js} +3 -2
- package/dist/{chunk-DL7ENIQB.js → chunk-LEQINL55.js} +2 -1
- package/dist/{chunk-5Y2AIJ2T.js → chunk-PEUWV5YK.js} +2 -1
- package/dist/{chunk-CNODWD3F.js → chunk-PEVS3GLB.js} +2 -1
- package/dist/{chunk-TZM63FZ4.js → chunk-PGDPJY7K.js} +2 -1
- package/dist/{chunk-HT34QVZR.js → chunk-QBPPEUNR.js} +3 -2
- package/dist/{chunk-XW2BES72.js → chunk-R5QHWCJH.js} +6 -3
- package/dist/{chunk-ZU74CNL4.js → chunk-RE2N7KGI.js} +3 -2
- package/dist/{chunk-KRFXBBBU.js → chunk-RS6HWWTT.js} +3 -2
- package/dist/{chunk-BQWSY6FS.js → chunk-S3QMHTMJ.js} +2 -1
- package/dist/{chunk-6BWJWA2F.js → chunk-THMINQBZ.js} +2 -1
- package/dist/{chunk-YRINVEI3.js → chunk-TJJ7S3GL.js} +3 -2
- package/dist/{chunk-ADTYNS4J.js → chunk-UPWZN6WB.js} +2 -1
- package/dist/{chunk-HB3KRNZM.js → chunk-UQGXKAFA.js} +3 -2
- package/dist/{chunk-IZBV7MCY.js → chunk-VE7RLYJ7.js} +15 -15
- package/dist/{chunk-32ZNZDFT.js → chunk-WY53X57R.js} +3 -2
- package/dist/{chunk-X6KFVVHH.js → chunk-XVYJBZOI.js} +3 -2
- package/dist/{chunk-4BPQNCF5.js → chunk-YBVXGODN.js} +2 -1
- package/dist/{chunk-HI7NZVSJ.js → chunk-YDAEPFPY.js} +2 -1
- package/dist/{chunk-AMZ2QSSI.js → chunk-YL7CBNVF.js} +5 -2
- package/dist/{chunk-YHEH25IE.js → chunk-Z6CIQQUZ.js} +2 -1
- package/dist/{commission-rule-detail-ZQ3OHFA2.js → commission-rule-detail-MLAJAVPU.js} +1 -1
- package/dist/{commissions-list-M5WLJD2P.js → commissions-list-GA2WX5C5.js} +1 -1
- package/dist/extension-targets.d.ts +75 -1
- package/dist/index.js +56 -56
- package/dist/{location-detail-CNETNX3M.js → location-detail-7TEMWMQG.js} +1 -1
- package/dist/{location-list-RHUT7IRA.js → location-list-EFMGNVII.js} +1 -1
- package/dist/{marketplace-detail-IHGJXVZS.js → marketplace-detail-NMNGD5PW.js} +1 -1
- package/dist/{offer-variant-detail-page-NDGPFP6P.js → offer-variant-detail-page-GESVAA2S.js} +5 -4
- package/dist/pages/index.js +34 -34
- package/dist/{payout-detail-6U2ANWOH.js → payout-detail-LY7SRCKO.js} +1 -1
- package/dist/{payout-list-3GQJQSVU.js → payout-list-VUJKOAOJ.js} +1 -1
- package/dist/{product-list-2WE2JY4F.js → product-list-IKAIBHDH.js} +1 -1
- package/dist/{product-tag-detail-2PMM6RG6.js → product-tag-detail-CEGLUXR2.js} +1 -1
- package/dist/{product-tag-list-KBNI6UDN.js → product-tag-list-RZ7JRSY5.js} +1 -1
- package/dist/{product-type-detail-UKJ6RIHU.js → product-type-detail-EITNHOVB.js} +1 -1
- package/dist/{product-type-list-JN4SKTFE.js → product-type-list-OZILJZLG.js} +1 -1
- package/dist/{product-variant-detail-7CFNAI3A.js → product-variant-detail-OKBXU3KF.js} +1 -1
- package/dist/{profile-detail-PABUO545.js → profile-detail-PFJX3LPX.js} +1 -1
- package/dist/{refund-reason-list-OWXAGHOQ.js → refund-reason-list-4Q6RPJ3O.js} +1 -1
- package/dist/{region-detail-636IAPYK.js → region-detail-VA4FGEKA.js} +1 -1
- package/dist/{region-list-GIU6NFI4.js → region-list-WU4LTP5Y.js} +1 -1
- package/dist/{return-reason-list-4ANB2PXX.js → return-reason-list-4AJKJFLL.js} +1 -1
- package/dist/{sales-channel-detail-VDYOKH35.js → sales-channel-detail-WX7V3AMQ.js} +1 -1
- package/dist/{sales-channel-list-LVW7XE7K.js → sales-channel-list-GUEEN52J.js} +1 -1
- package/dist/{shipping-option-type-detail-W32EHTBS.js → shipping-option-type-detail-AXPDURRK.js} +1 -1
- package/dist/{shipping-option-type-list-4FML2ZX5.js → shipping-option-type-list-INXNG2LU.js} +1 -1
- package/dist/{shipping-profile-detail-UFGQ3CCH.js → shipping-profile-detail-FOPCKNOZ.js} +1 -1
- package/dist/{shipping-profiles-list-PZQVMKR4.js → shipping-profiles-list-AKSZ4O35.js} +1 -1
- package/dist/{store-create-4UHISWQE.js → store-create-IKHZ52NO.js} +1 -1
- package/dist/{store-details-4D7MSGVL.js → store-details-CFWAS2MB.js} +1 -1
- package/dist/{store-edit-MQZMWYXY.js → store-edit-AZ4LD4C6.js} +4 -3
- package/dist/{store-list-EBAHJOZO.js → store-list-6XZEWHRE.js} +1 -1
- package/dist/{tax-region-detail-L7STT6C7.js → tax-region-detail-KN4IUVQW.js} +1 -1
- package/dist/{tax-region-list-NIAT626R.js → tax-region-list-GRZIXRD4.js} +1 -1
- package/dist/{tax-region-province-detail-2GRPOSWS.js → tax-region-province-detail-6NONQIBT.js} +1 -1
- package/dist/{user-detail-452E7GII.js → user-detail-PYBWVQYY.js} +1 -1
- package/dist/{user-list-OU6WS25V.js → user-list-62A6ZMIX.js} +1 -1
- package/package.json +6 -6
|
@@ -217,27 +217,27 @@ var StoreGeneralSection = ({
|
|
|
217
217
|
}
|
|
218
218
|
) }) }),
|
|
219
219
|
/* @__PURE__ */ jsx2(StoreDetailHeader, { seller }),
|
|
220
|
-
/* @__PURE__ */ jsx2(DisplayField, { model: "
|
|
220
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "description", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
221
221
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
|
|
222
222
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.description || "-" })
|
|
223
223
|
] }) }),
|
|
224
|
-
/* @__PURE__ */ jsx2(DisplayField, { model: "
|
|
224
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "handle", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
225
225
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
226
226
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
|
|
227
227
|
] }) }),
|
|
228
|
-
/* @__PURE__ */ jsx2(DisplayField, { model: "
|
|
228
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "email", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
229
229
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
|
|
230
230
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.email || "-" })
|
|
231
231
|
] }) }),
|
|
232
|
-
/* @__PURE__ */ jsx2(DisplayField, { model: "
|
|
232
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "phone", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
233
233
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
|
|
234
234
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.phone || "-" })
|
|
235
235
|
] }) }),
|
|
236
|
-
/* @__PURE__ */ jsx2(DisplayField, { model: "
|
|
236
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "website_url", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
237
237
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.website") }),
|
|
238
238
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.website_url || "-" })
|
|
239
239
|
] }) }),
|
|
240
|
-
/* @__PURE__ */ jsx2(DisplayField, { model: "
|
|
240
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "seller", zone: "general", id: "currency_code", data: seller, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
241
241
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
|
|
242
242
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
|
|
243
243
|
/* @__PURE__ */ jsx2(Badge, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
|
|
@@ -247,7 +247,7 @@ var StoreGeneralSection = ({
|
|
|
247
247
|
/* @__PURE__ */ jsx2(
|
|
248
248
|
DisplayExtensionZone,
|
|
249
249
|
{
|
|
250
|
-
model: "
|
|
250
|
+
model: "seller",
|
|
251
251
|
zone: "general",
|
|
252
252
|
data: seller,
|
|
253
253
|
builtInFieldIds: [
|
|
@@ -315,7 +315,7 @@ var StorePaymentDetailsSection = ({
|
|
|
315
315
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("store.paymentDetails.empty.title") }),
|
|
316
316
|
/* @__PURE__ */ jsx3(Text2, { size: "small", className: "text-ui-fg-muted", children: t("store.paymentDetails.empty.message") })
|
|
317
317
|
] }),
|
|
318
|
-
/* @__PURE__ */ jsx3(DisplayExtensionZone2, { model: "
|
|
318
|
+
/* @__PURE__ */ jsx3(DisplayExtensionZone2, { model: "seller", zone: "payment-details", data: seller })
|
|
319
319
|
] });
|
|
320
320
|
};
|
|
321
321
|
|
|
@@ -369,7 +369,7 @@ var StoreCompanyDetailsSection = ({
|
|
|
369
369
|
/* @__PURE__ */ jsx4(Text3, { size: "small", leading: "compact", weight: "plus", children: t("store.professionalDetails.empty.title") }),
|
|
370
370
|
/* @__PURE__ */ jsx4(Text3, { size: "small", className: "text-ui-fg-muted", children: t("store.professionalDetails.empty.message") })
|
|
371
371
|
] }),
|
|
372
|
-
/* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "
|
|
372
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone3, { model: "seller", zone: "company-details", data: seller })
|
|
373
373
|
] });
|
|
374
374
|
};
|
|
375
375
|
|
|
@@ -405,7 +405,7 @@ var StoreConfigurationSection = ({
|
|
|
405
405
|
message: t("store.timeOff.empty.message")
|
|
406
406
|
}
|
|
407
407
|
),
|
|
408
|
-
/* @__PURE__ */ jsx5(DisplayExtensionZone4, { model: "
|
|
408
|
+
/* @__PURE__ */ jsx5(DisplayExtensionZone4, { model: "seller", zone: "configuration", data: seller })
|
|
409
409
|
] });
|
|
410
410
|
};
|
|
411
411
|
|
|
@@ -466,7 +466,7 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
466
466
|
/* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: t("store.address.empty.title") }),
|
|
467
467
|
/* @__PURE__ */ jsx6(Text4, { size: "small", className: "text-ui-fg-muted", children: t("store.address.empty.message") })
|
|
468
468
|
] }),
|
|
469
|
-
/* @__PURE__ */ jsx6(DisplayExtensionZone5, { model: "
|
|
469
|
+
/* @__PURE__ */ jsx6(DisplayExtensionZone5, { model: "seller", zone: "address", data: seller })
|
|
470
470
|
] });
|
|
471
471
|
};
|
|
472
472
|
|
|
@@ -765,7 +765,7 @@ var StoreMembersSection = ({ sellerId }) => {
|
|
|
765
765
|
/* @__PURE__ */ jsx8(Link, { to: "invite", children: /* @__PURE__ */ jsx8(Button, { size: "small", variant: "secondary", children: t("stores.members.addUser.action") }) })
|
|
766
766
|
] }),
|
|
767
767
|
/* @__PURE__ */ jsx8(StoreMembersDataTable, { sellerId }),
|
|
768
|
-
/* @__PURE__ */ jsx8(DisplayExtensionZone6, { model: "
|
|
768
|
+
/* @__PURE__ */ jsx8(DisplayExtensionZone6, { model: "seller", zone: "members", data: sellerId })
|
|
769
769
|
] });
|
|
770
770
|
};
|
|
771
771
|
|
|
@@ -854,7 +854,7 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
854
854
|
}
|
|
855
855
|
)
|
|
856
856
|
] }),
|
|
857
|
-
/* @__PURE__ */ jsx9(DisplayExtensionZone7, { model: "
|
|
857
|
+
/* @__PURE__ */ jsx9(DisplayExtensionZone7, { model: "seller", zone: "requests", data: seller })
|
|
858
858
|
] });
|
|
859
859
|
};
|
|
860
860
|
var RequestActionPrompt = ({
|
|
@@ -1002,7 +1002,7 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
),
|
|
1005
|
-
/* @__PURE__ */ jsx10(DisplayExtensionZone8, { model: "
|
|
1005
|
+
/* @__PURE__ */ jsx10(DisplayExtensionZone8, { model: "seller", zone: "orders", data: sellerId })
|
|
1006
1006
|
] });
|
|
1007
1007
|
};
|
|
1008
1008
|
|
|
@@ -1086,7 +1086,7 @@ var StoreOffersSection = ({ sellerId }) => {
|
|
|
1086
1086
|
commands
|
|
1087
1087
|
}
|
|
1088
1088
|
),
|
|
1089
|
-
/* @__PURE__ */ jsx11(DisplayExtensionZone9, { model: "
|
|
1089
|
+
/* @__PURE__ */ jsx11(DisplayExtensionZone9, { model: "seller", zone: "offers", data: sellerId })
|
|
1090
1090
|
] });
|
|
1091
1091
|
};
|
|
1092
1092
|
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
// src/pages/tax-regions/tax-region-province-detail/tax-region-detail.tsx
|
|
26
26
|
import { Children } from "react";
|
|
27
27
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
28
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
28
29
|
|
|
29
30
|
// src/pages/tax-regions/tax-region-province-detail/components/tax-region-province-detail-section/tax-region-detail-section.tsx
|
|
30
31
|
import { Badge, Container, Tooltip } from "@medusajs/ui";
|
|
@@ -120,10 +121,10 @@ var Root = ({ children }) => {
|
|
|
120
121
|
if (isError) {
|
|
121
122
|
throw error;
|
|
122
123
|
}
|
|
123
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: taxRegion, showJSON: true, children }) : /* @__PURE__ */
|
|
124
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: taxRegion, showJSON: true, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { data: taxRegion, showJSON: true, children: /* @__PURE__ */ jsxs2(WidgetZone, { id: "tax-regions.province.detail.main", data: taxRegion, children: [
|
|
124
125
|
/* @__PURE__ */ jsx3(TaxRegionProvinceDetailSection, { taxRegion }),
|
|
125
126
|
/* @__PURE__ */ jsx3(TaxRegionProvinceOverrideSection, { taxRegion })
|
|
126
|
-
] });
|
|
127
|
+
] }) });
|
|
127
128
|
};
|
|
128
129
|
var TaxRegionProvinceDetailPage = Object.assign(Root, {
|
|
129
130
|
DetailSection: TaxRegionProvinceDetailSection,
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
// src/pages/sales-channels/sales-channel-detail/sales-channel-detail.tsx
|
|
33
33
|
import { Children } from "react";
|
|
34
34
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
35
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
35
36
|
|
|
36
37
|
// src/pages/sales-channels/sales-channel-detail/components/sales-channel-general-section/sales-channel-general-section.tsx
|
|
37
38
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -345,10 +346,10 @@ var Root = ({ children }) => {
|
|
|
345
346
|
if (isLoading || !sales_channel) {
|
|
346
347
|
return /* @__PURE__ */ jsx3(SingleColumnPageSkeleton, { sections: 2, showJSON: true, showMetadata: true });
|
|
347
348
|
}
|
|
348
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: sales_channel, children }) : /* @__PURE__ */
|
|
349
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: sales_channel, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: sales_channel, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "sales-channels.detail.main", data: sales_channel, children: [
|
|
349
350
|
/* @__PURE__ */ jsx3(SalesChannelGeneralSection, { salesChannel: sales_channel }),
|
|
350
351
|
/* @__PURE__ */ jsx3(SalesChannelProductSection, { salesChannel: sales_channel })
|
|
351
|
-
] });
|
|
352
|
+
] }) });
|
|
352
353
|
};
|
|
353
354
|
var SalesChannelDetailPage = Object.assign(Root, {
|
|
354
355
|
GeneralSection: SalesChannelGeneralSection,
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
|
|
19
19
|
// src/pages/shipping-profiles/shipping-profiles-list/shipping-profile-list.tsx
|
|
20
20
|
import { Children as Children3 } from "react";
|
|
21
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
21
22
|
|
|
22
23
|
// src/pages/shipping-profiles/shipping-profiles-list/components/shipping-profile-list-view/shipping-profile-list-view.tsx
|
|
23
24
|
import { Children as Children2 } from "react";
|
|
@@ -279,7 +280,7 @@ var ShippingProfileListView = ({
|
|
|
279
280
|
// src/pages/shipping-profiles/shipping-profiles-list/shipping-profile-list.tsx
|
|
280
281
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
281
282
|
var Root = ({ children }) => {
|
|
282
|
-
return /* @__PURE__ */ jsx6(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx6(ShippingProfileListView, {}) });
|
|
283
|
+
return /* @__PURE__ */ jsx6(SingleColumnPage, { children: /* @__PURE__ */ jsx6(WidgetZone, { id: "shipping-profiles.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx6(ShippingProfileListView, {}) }) });
|
|
283
284
|
};
|
|
284
285
|
var ShippingProfileListPage = Object.assign(Root, {
|
|
285
286
|
Table: ShippingProfileListView,
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
|
|
21
21
|
// src/pages/sales-channels/sales-channel-list/sales-channel-list.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/sales-channels/sales-channel-list/components/sales-channel-list-view/sales-channel-list-view.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -184,7 +185,7 @@ var SalesChannelListView = ({
|
|
|
184
185
|
// src/pages/sales-channels/sales-channel-list/sales-channel-list.tsx
|
|
185
186
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
186
187
|
var Root = ({ children }) => {
|
|
187
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(SalesChannelListView, {}) });
|
|
188
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx4(WidgetZone, { id: "sales-channels.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(SalesChannelListView, {}) }) });
|
|
188
189
|
};
|
|
189
190
|
var SalesChannelListPage = Object.assign(Root, {
|
|
190
191
|
Table: SalesChannelListView,
|
|
@@ -396,6 +396,9 @@ var RegionActions = ({ region }) => {
|
|
|
396
396
|
);
|
|
397
397
|
};
|
|
398
398
|
|
|
399
|
+
// src/pages/regions/region-detail/region-detail.tsx
|
|
400
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
401
|
+
|
|
399
402
|
// src/pages/regions/region-detail/constants.ts
|
|
400
403
|
var REGION_DETAIL_FIELDS = "*payment_providers,*countries,+automatic_taxes";
|
|
401
404
|
|
|
@@ -437,7 +440,7 @@ var Root = ({ children }) => {
|
|
|
437
440
|
if (isPreferencesError) {
|
|
438
441
|
throw preferencesError;
|
|
439
442
|
}
|
|
440
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children }) : /* @__PURE__ */
|
|
443
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "regions.detail.main", data: region, children: [
|
|
441
444
|
/* @__PURE__ */ jsx3(
|
|
442
445
|
RegionGeneralSection,
|
|
443
446
|
{
|
|
@@ -446,7 +449,7 @@ var Root = ({ children }) => {
|
|
|
446
449
|
}
|
|
447
450
|
),
|
|
448
451
|
/* @__PURE__ */ jsx3(RegionCountrySection, { region })
|
|
449
|
-
] });
|
|
452
|
+
] }) });
|
|
450
453
|
};
|
|
451
454
|
var RegionDetailPage = Object.assign(Root, {
|
|
452
455
|
GeneralSection: RegionGeneralSection,
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
// src/pages/payouts/payout-detail/payout-detail.tsx
|
|
15
15
|
import { Children } from "react";
|
|
16
16
|
import { useParams } from "react-router-dom";
|
|
17
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
17
18
|
|
|
18
19
|
// src/pages/payouts/payout-detail/components/payout-general-section.tsx
|
|
19
20
|
import { Container, Heading, StatusBadge, Text } from "@medusajs/ui";
|
|
@@ -85,7 +86,7 @@ var Root = ({ children }) => {
|
|
|
85
86
|
if (isError) {
|
|
86
87
|
throw error;
|
|
87
88
|
}
|
|
88
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children: /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) });
|
|
89
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children: /* @__PURE__ */ jsx2(WidgetZone, { id: "payouts.detail.main", data: payout, children: /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) }) });
|
|
89
90
|
};
|
|
90
91
|
var PayoutDetailPage = Object.assign(Root, {
|
|
91
92
|
GeneralSection: PayoutGeneralSection
|
|
@@ -4,6 +4,14 @@ import "@mercurjs/dashboard-sdk"
|
|
|
4
4
|
|
|
5
5
|
declare module "@mercurjs/dashboard-sdk" {
|
|
6
6
|
interface WidgetZoneRegistry {
|
|
7
|
+
"api-keys.detail.main.after": true
|
|
8
|
+
"api-keys.detail.main.before": true
|
|
9
|
+
"api-keys.list.after": true
|
|
10
|
+
"api-keys.list.before": true
|
|
11
|
+
"attributes.detail.main.after": true
|
|
12
|
+
"attributes.detail.main.before": true
|
|
13
|
+
"attributes.list.after": true
|
|
14
|
+
"attributes.list.before": true
|
|
7
15
|
"campaigns.detail.main.after": true
|
|
8
16
|
"campaigns.detail.main.before": true
|
|
9
17
|
"campaigns.detail.side.after": true
|
|
@@ -20,6 +28,10 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
20
28
|
"collections.detail.main.before": true
|
|
21
29
|
"collections.list.after": true
|
|
22
30
|
"collections.list.before": true
|
|
31
|
+
"commissions.detail.main.after": true
|
|
32
|
+
"commissions.detail.main.before": true
|
|
33
|
+
"commissions.list.after": true
|
|
34
|
+
"commissions.list.before": true
|
|
23
35
|
"customer-groups.detail.main.after": true
|
|
24
36
|
"customer-groups.detail.main.before": true
|
|
25
37
|
"customer-groups.list.after": true
|
|
@@ -36,6 +48,18 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
36
48
|
"inventory.detail.side.before": true
|
|
37
49
|
"inventory.list.after": true
|
|
38
50
|
"inventory.list.before": true
|
|
51
|
+
"locations.detail.main.after": true
|
|
52
|
+
"locations.detail.main.before": true
|
|
53
|
+
"locations.detail.side.after": true
|
|
54
|
+
"locations.detail.side.before": true
|
|
55
|
+
"locations.list.after": true
|
|
56
|
+
"locations.list.before": true
|
|
57
|
+
"marketplace.detail.main.after": true
|
|
58
|
+
"marketplace.detail.main.before": true
|
|
59
|
+
"offer-variants.detail.main.after": true
|
|
60
|
+
"offer-variants.detail.main.before": true
|
|
61
|
+
"offer-variants.detail.side.after": true
|
|
62
|
+
"offer-variants.detail.side.before": true
|
|
39
63
|
"offers.detail.main.after": true
|
|
40
64
|
"offers.detail.main.before": true
|
|
41
65
|
"offers.detail.side.after": true
|
|
@@ -48,34 +72,84 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
48
72
|
"orders.detail.side.before": true
|
|
49
73
|
"orders.list.after": true
|
|
50
74
|
"orders.list.before": true
|
|
75
|
+
"payouts.detail.main.after": true
|
|
76
|
+
"payouts.detail.main.before": true
|
|
77
|
+
"payouts.list.after": true
|
|
78
|
+
"payouts.list.before": true
|
|
51
79
|
"price-lists.detail.main.after": true
|
|
52
80
|
"price-lists.detail.main.before": true
|
|
53
81
|
"price-lists.detail.side.after": true
|
|
54
82
|
"price-lists.detail.side.before": true
|
|
55
83
|
"price-lists.list.after": true
|
|
56
84
|
"price-lists.list.before": true
|
|
85
|
+
"product-tags.detail.main.after": true
|
|
86
|
+
"product-tags.detail.main.before": true
|
|
87
|
+
"product-tags.list.after": true
|
|
88
|
+
"product-tags.list.before": true
|
|
89
|
+
"product-types.detail.main.after": true
|
|
90
|
+
"product-types.detail.main.before": true
|
|
91
|
+
"product-types.list.after": true
|
|
92
|
+
"product-types.list.before": true
|
|
93
|
+
"product-variants.detail.main.after": true
|
|
94
|
+
"product-variants.detail.main.before": true
|
|
95
|
+
"product-variants.detail.side.after": true
|
|
96
|
+
"product-variants.detail.side.before": true
|
|
57
97
|
"product.detail.main.after": true
|
|
58
98
|
"product.detail.main.before": true
|
|
59
99
|
"product.detail.side.after": true
|
|
60
100
|
"product.detail.side.before": true
|
|
101
|
+
"products.list.after": true
|
|
102
|
+
"products.list.before": true
|
|
103
|
+
"profile.detail.main.after": true
|
|
104
|
+
"profile.detail.main.before": true
|
|
61
105
|
"promotions.detail.main.after": true
|
|
62
106
|
"promotions.detail.main.before": true
|
|
63
107
|
"promotions.detail.side.after": true
|
|
64
108
|
"promotions.detail.side.before": true
|
|
65
109
|
"promotions.list.after": true
|
|
66
110
|
"promotions.list.before": true
|
|
111
|
+
"refund-reasons.list.after": true
|
|
112
|
+
"refund-reasons.list.before": true
|
|
113
|
+
"regions.detail.main.after": true
|
|
114
|
+
"regions.detail.main.before": true
|
|
115
|
+
"regions.list.after": true
|
|
116
|
+
"regions.list.before": true
|
|
67
117
|
"reservation.detail.main.after": true
|
|
68
118
|
"reservation.detail.main.before": true
|
|
69
119
|
"reservation.detail.side.after": true
|
|
70
120
|
"reservation.detail.side.before": true
|
|
71
121
|
"reservation.list.after": true
|
|
72
122
|
"reservation.list.before": true
|
|
123
|
+
"return-reasons.list.after": true
|
|
124
|
+
"return-reasons.list.before": true
|
|
125
|
+
"sales-channels.detail.main.after": true
|
|
126
|
+
"sales-channels.detail.main.before": true
|
|
127
|
+
"sales-channels.list.after": true
|
|
128
|
+
"sales-channels.list.before": true
|
|
129
|
+
"shipping-option-types.detail.main.after": true
|
|
130
|
+
"shipping-option-types.detail.main.before": true
|
|
131
|
+
"shipping-option-types.list.after": true
|
|
132
|
+
"shipping-option-types.list.before": true
|
|
133
|
+
"shipping-profiles.detail.main.after": true
|
|
134
|
+
"shipping-profiles.detail.main.before": true
|
|
135
|
+
"shipping-profiles.list.after": true
|
|
136
|
+
"shipping-profiles.list.before": true
|
|
73
137
|
"stores.detail.main.after": true
|
|
74
138
|
"stores.detail.main.before": true
|
|
75
139
|
"stores.detail.side.after": true
|
|
76
140
|
"stores.detail.side.before": true
|
|
77
141
|
"stores.list.after": true
|
|
78
142
|
"stores.list.before": true
|
|
143
|
+
"tax-regions.detail.main.after": true
|
|
144
|
+
"tax-regions.detail.main.before": true
|
|
145
|
+
"tax-regions.list.after": true
|
|
146
|
+
"tax-regions.list.before": true
|
|
147
|
+
"tax-regions.province.detail.main.after": true
|
|
148
|
+
"tax-regions.province.detail.main.before": true
|
|
149
|
+
"users.detail.main.after": true
|
|
150
|
+
"users.detail.main.before": true
|
|
151
|
+
"users.list.after": true
|
|
152
|
+
"users.list.before": true
|
|
79
153
|
}
|
|
80
154
|
|
|
81
155
|
interface NavItemRegistry {
|
|
@@ -185,7 +259,7 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
185
259
|
displayZones: "general"
|
|
186
260
|
displayFieldIds: "available_quantity" | "description" | "header" | "line_item_id" | "location" | "reserved_quantity" | "stocked_quantity"
|
|
187
261
|
}
|
|
188
|
-
"
|
|
262
|
+
"seller": {
|
|
189
263
|
formZones: "create" | "edit"
|
|
190
264
|
formTabs: { "create": "details" | "users" }
|
|
191
265
|
displayZones: "address" | "company-details" | "configuration" | "general" | "members" | "offers" | "orders" | "payment-details" | "requests"
|