@mercurjs/vendor 2.2.0-canary.42 → 2.2.0-canary.44
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/{[id]-N7JEZFXQ.js → [id]-6RTJXOT5.js} +2 -1
- package/dist/{[id]-KUVSIFMW.js → [id]-I5QINHWH.js} +3 -2
- package/dist/{[id]-DT5YJVKG.js → [id]-JVBHYFZ7.js} +3 -2
- package/dist/{[id]-YDR5VTPB.js → [id]-R74PRGC6.js} +3 -2
- package/dist/{[location_id]-I4HHUHWY.js → [location_id]-T2HKGZ53.js} +3 -2
- package/dist/{[province_id]-OYX4MOCF.js → [province_id]-MHSQXGJR.js} +3 -2
- package/dist/{chunk-VD27SL7H.js → chunk-PC547EIJ.js} +2 -1
- package/dist/{chunk-JY2XON7H.js → chunk-RGCTY3EW.js} +2 -1
- package/dist/{chunk-QWW6RHZC.js → chunk-SYWAMZNQ.js} +3 -2
- package/dist/{chunk-D76WZZSB.js → chunk-X5UH62TE.js} +2 -1
- package/dist/extension-targets.d.ts +42 -2
- package/dist/index.js +26 -26
- package/dist/{locations-2VWSMWHL.js → locations-UVMY2QLW.js} +1 -1
- package/dist/{offer-variant-detail-page-KURNVWYU.js → offer-variant-detail-page-HA4MKY7Z.js} +5 -4
- package/dist/pages/index.js +4 -4
- package/dist/{product-tags-WBERDKIH.js → product-tags-TTRZ262G.js} +1 -1
- package/dist/{product-types-4PTJW5DE.js → product-types-4VMRNH6C.js} +1 -1
- package/dist/{product-variant-detail-FO6J3RFA.js → product-variant-detail-T7AHSBK7.js} +3 -2
- package/dist/{profile-SEF44YKY.js → profile-KLS44GEM.js} +13 -2
- package/dist/{return-reasons-ZX7KIFTS.js → return-reasons-DM3HM3DA.js} +4 -1
- package/dist/{settings-AYPJWXFO.js → settings-F7TIKVD7.js} +4 -4
- package/dist/{shipping-profiles-4TJ4IH6U.js → shipping-profiles-Y7FCO7YW.js} +1 -1
- package/dist/{store-LR3BGJJ6.js → store-SKJHYA3T.js} +39 -9
- package/dist/{store-select-7M2JBJ7G.js → store-select-2WFPGKQC.js} +2 -1
- package/dist/{tax-regions-S2LFRTMP.js → tax-regions-4O6JSS2K.js} +4 -1
- package/dist/{team-DZHLNPCO.js → team-HJPFQK6W.js} +2 -1
- package/package.json +6 -6
|
@@ -42,6 +42,7 @@ var shippingProfileLoader = async ({ params }) => {
|
|
|
42
42
|
// src/pages/settings/shipping-profiles/[id]/shipping-profile-detail-page.tsx
|
|
43
43
|
import { Children } from "react";
|
|
44
44
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
45
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
45
46
|
|
|
46
47
|
// src/pages/settings/shipping-profiles/[id]/_components/shipping-profile-general-section.tsx
|
|
47
48
|
import { Trash } from "@medusajs/icons";
|
|
@@ -126,7 +127,7 @@ var Root = ({ children }) => {
|
|
|
126
127
|
if (isError) {
|
|
127
128
|
throw error;
|
|
128
129
|
}
|
|
129
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { data: shipping_profile, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(ShippingProfileGeneralSection, { profile: shipping_profile }) });
|
|
130
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { data: shipping_profile, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(WidgetZone, { id: "shipping-profiles.detail.main", data: shipping_profile, children: /* @__PURE__ */ jsx2(ShippingProfileGeneralSection, { profile: shipping_profile }) }) });
|
|
130
131
|
};
|
|
131
132
|
var ShippingProfileDetailPage = Object.assign(Root, {
|
|
132
133
|
GeneralSection: ShippingProfileGeneralSection
|
|
@@ -127,6 +127,7 @@ var productTagLoader = async ({ params }) => {
|
|
|
127
127
|
// src/pages/settings/product-tags/[id]/product-tag-detail-page.tsx
|
|
128
128
|
import { Children } from "react";
|
|
129
129
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
130
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
130
131
|
|
|
131
132
|
// src/pages/settings/product-tags/[id]/_components/product-tag-general-section.tsx
|
|
132
133
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -277,7 +278,7 @@ var ProductTagProductSection = ({
|
|
|
277
278
|
};
|
|
278
279
|
|
|
279
280
|
// src/pages/settings/product-tags/[id]/product-tag-detail-page.tsx
|
|
280
|
-
import {
|
|
281
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
281
282
|
var Root = ({ children }) => {
|
|
282
283
|
const { id } = useParams();
|
|
283
284
|
const initialData = useLoaderData();
|
|
@@ -294,7 +295,7 @@ var Root = ({ children }) => {
|
|
|
294
295
|
if (isError) {
|
|
295
296
|
throw error;
|
|
296
297
|
}
|
|
297
|
-
return /* @__PURE__ */ jsx3(SingleColumnPage, { data: product_tag, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(
|
|
298
|
+
return /* @__PURE__ */ jsx3(SingleColumnPage, { data: product_tag, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(WidgetZone, { id: "product-tags.detail.main", data: product_tag, children: [
|
|
298
299
|
/* @__PURE__ */ jsx3(ProductTagGeneralSection, { productTag: product_tag }),
|
|
299
300
|
/* @__PURE__ */ jsx3(ProductTagProductSection, { productTag: product_tag })
|
|
300
301
|
] }) });
|
|
@@ -78,6 +78,7 @@ import "./chunk-NBMM2TZK.js";
|
|
|
78
78
|
|
|
79
79
|
// src/pages/settings/tax-regions/[id]/index.tsx
|
|
80
80
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
81
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
81
82
|
|
|
82
83
|
// src/pages/settings/tax-regions/[id]/_components/tax-region-detail-section.tsx
|
|
83
84
|
import { Badge, Container, Tooltip } from "@medusajs/ui";
|
|
@@ -299,7 +300,7 @@ var TaxRegionDetail = () => {
|
|
|
299
300
|
if (isError) {
|
|
300
301
|
throw error;
|
|
301
302
|
}
|
|
302
|
-
return /* @__PURE__ */
|
|
303
|
+
return /* @__PURE__ */ jsx6(SingleColumnPage, { data: taxRegion, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "tax-regions.detail.main", data: taxRegion, children: [
|
|
303
304
|
/* @__PURE__ */ jsx6(
|
|
304
305
|
TaxRegionSublevelAlert,
|
|
305
306
|
{
|
|
@@ -317,7 +318,7 @@ var TaxRegionDetail = () => {
|
|
|
317
318
|
}
|
|
318
319
|
),
|
|
319
320
|
/* @__PURE__ */ jsx6(TaxRegionOverrideSection, { taxRegion })
|
|
320
|
-
] });
|
|
321
|
+
] }) });
|
|
321
322
|
};
|
|
322
323
|
var Component = TaxRegionDetail;
|
|
323
324
|
export {
|
|
@@ -91,6 +91,7 @@ var productTypeLoader = async ({ params }) => {
|
|
|
91
91
|
// src/pages/settings/product-types/[id]/product-type-detail-page.tsx
|
|
92
92
|
import { Children } from "react";
|
|
93
93
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
94
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
94
95
|
|
|
95
96
|
// src/pages/settings/product-types/[id]/_components/product-type-general-section.tsx
|
|
96
97
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -187,7 +188,7 @@ var ProductTypeProductSection = ({
|
|
|
187
188
|
};
|
|
188
189
|
|
|
189
190
|
// src/pages/settings/product-types/[id]/product-type-detail-page.tsx
|
|
190
|
-
import {
|
|
191
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
191
192
|
var Root = ({ children }) => {
|
|
192
193
|
const { id } = useParams();
|
|
193
194
|
const initialData = useLoaderData();
|
|
@@ -204,7 +205,7 @@ var Root = ({ children }) => {
|
|
|
204
205
|
if (isError) {
|
|
205
206
|
throw error;
|
|
206
207
|
}
|
|
207
|
-
return /* @__PURE__ */ jsx3(SingleColumnPage, { data: product_type, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(
|
|
208
|
+
return /* @__PURE__ */ jsx3(SingleColumnPage, { data: product_type, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(WidgetZone, { id: "product-types.detail.main", data: product_type, children: [
|
|
208
209
|
/* @__PURE__ */ jsx3(ProductTypeGeneralSection, { productType: product_type }),
|
|
209
210
|
/* @__PURE__ */ jsx3(ProductTypeProductSection, { productType: product_type })
|
|
210
211
|
] }) });
|
|
@@ -80,6 +80,7 @@ var locationLoader = async ({ params }) => {
|
|
|
80
80
|
// src/pages/settings/locations/[location_id]/location-detail-page.tsx
|
|
81
81
|
import { Children } from "react";
|
|
82
82
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
83
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
83
84
|
|
|
84
85
|
// src/pages/settings/locations/[location_id]/_components/location-general-section.tsx
|
|
85
86
|
import {
|
|
@@ -668,8 +669,8 @@ var Root = ({ children }) => {
|
|
|
668
669
|
throw error;
|
|
669
670
|
}
|
|
670
671
|
return /* @__PURE__ */ jsx3(Fragment3, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(TwoColumnPage, { data: location, hasOutlet: true, children: [
|
|
671
|
-
/* @__PURE__ */ jsx3(TwoColumnPage.Main, { children: /* @__PURE__ */ jsx3(LocationGeneralSection, { location }) }),
|
|
672
|
-
/* @__PURE__ */ jsx3(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx3(location_fulfillment_providers_section_default, { location }) })
|
|
672
|
+
/* @__PURE__ */ jsx3(TwoColumnPage.Main, { children: /* @__PURE__ */ jsx3(WidgetZone, { id: "locations.detail.main", data: location, children: /* @__PURE__ */ jsx3(LocationGeneralSection, { location }) }) }),
|
|
673
|
+
/* @__PURE__ */ jsx3(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx3(WidgetZone, { id: "locations.detail.side", data: location, children: /* @__PURE__ */ jsx3(location_fulfillment_providers_section_default, { location }) }) })
|
|
673
674
|
] }) });
|
|
674
675
|
};
|
|
675
676
|
var LocationDetailPage = Object.assign(Root, {
|
|
@@ -69,6 +69,7 @@ import "./chunk-NBMM2TZK.js";
|
|
|
69
69
|
|
|
70
70
|
// src/pages/settings/tax-regions/[id]/provinces/[province_id]/index.tsx
|
|
71
71
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
72
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
72
73
|
|
|
73
74
|
// src/pages/settings/tax-regions/[id]/provinces/[province_id]/_components/tax-region-detail-section.tsx
|
|
74
75
|
import { Badge, Container, Tooltip } from "@medusajs/ui";
|
|
@@ -194,10 +195,10 @@ var TaxRegionProvinceDetail = () => {
|
|
|
194
195
|
if (isError) {
|
|
195
196
|
throw error;
|
|
196
197
|
}
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { data: taxRegion, children: /* @__PURE__ */ jsxs2(WidgetZone, { id: "tax-regions.province.detail.main", data: taxRegion, children: [
|
|
198
199
|
/* @__PURE__ */ jsx4(TaxRegionProvinceDetailSection, { taxRegion }),
|
|
199
200
|
/* @__PURE__ */ jsx4(TaxRegionProvinceOverrideSection, { taxRegion })
|
|
200
|
-
] });
|
|
201
|
+
] }) });
|
|
201
202
|
};
|
|
202
203
|
var Component = TaxRegionProvinceDetail;
|
|
203
204
|
export {
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
|
|
19
19
|
// src/pages/settings/shipping-profiles/shipping-profile-list-page.tsx
|
|
20
20
|
import { Children as Children3 } from "react";
|
|
21
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
21
22
|
|
|
22
23
|
// src/pages/settings/shipping-profiles/_components/shipping-profile-list-table.tsx
|
|
23
24
|
import { Children as Children2 } from "react";
|
|
@@ -260,7 +261,7 @@ var ShippingProfileListTable = ({ children }) => {
|
|
|
260
261
|
// src/pages/settings/shipping-profiles/shipping-profile-list-page.tsx
|
|
261
262
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
262
263
|
var Root = ({ children }) => {
|
|
263
|
-
return /* @__PURE__ */ jsx6(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx6(ShippingProfileListTable, {}) });
|
|
264
|
+
return /* @__PURE__ */ jsx6(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx6(WidgetZone, { id: "shipping-profiles.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx6(ShippingProfileListTable, {}) }) });
|
|
264
265
|
};
|
|
265
266
|
var ShippingProfileListPage = Object.assign(Root, {
|
|
266
267
|
Table: ShippingProfileListTable,
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
|
|
21
21
|
// src/pages/settings/product-tags/product-tag-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
23
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
23
24
|
|
|
24
25
|
// src/pages/settings/product-tags/_components/product-tag-list-table.tsx
|
|
25
26
|
import { Children as Children2 } from "react";
|
|
@@ -123,7 +124,7 @@ var ProductTagListTable = ({
|
|
|
123
124
|
// src/pages/settings/product-tags/product-tag-list-page.tsx
|
|
124
125
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
125
126
|
var Root = ({ children }) => {
|
|
126
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { showMetadata: false, showJSON: false, hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(ProductTagListTable, {}) });
|
|
127
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { showMetadata: false, showJSON: false, hasOutlet: true, children: /* @__PURE__ */ jsx4(WidgetZone, { id: "product-tags.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(ProductTagListTable, {}) }) });
|
|
127
128
|
};
|
|
128
129
|
var ProductTagListPage = Object.assign(Root, {
|
|
129
130
|
Table: ProductTagListTable,
|
|
@@ -51,6 +51,7 @@ import { Container as Container3, Heading as Heading2 } from "@medusajs/ui";
|
|
|
51
51
|
import { Children } from "react";
|
|
52
52
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
53
53
|
import { useLoaderData } from "react-router-dom";
|
|
54
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
54
55
|
|
|
55
56
|
// src/pages/settings/locations/_components/location-list-item.tsx
|
|
56
57
|
import { Buildings, PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -226,10 +227,10 @@ var Root = ({ children }) => {
|
|
|
226
227
|
throw error;
|
|
227
228
|
}
|
|
228
229
|
return /* @__PURE__ */ jsx3(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(TwoColumnPage, { children: [
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ jsx3(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "locations.list", children: [
|
|
230
231
|
/* @__PURE__ */ jsx3(LocationListHeader, {}),
|
|
231
232
|
/* @__PURE__ */ jsx3("div", { className: "flex flex-col gap-3 lg:col-span-2", children: stockLocations.map((location) => /* @__PURE__ */ jsx3(location_list_item_default, { location }, location.id)) })
|
|
232
|
-
] }),
|
|
233
|
+
] }) }),
|
|
233
234
|
/* @__PURE__ */ jsx3(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx3(LinksSection, {}) })
|
|
234
235
|
] }) });
|
|
235
236
|
};
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
|
|
27
27
|
// src/pages/settings/product-types/product-type-list-page.tsx
|
|
28
28
|
import { Children as Children3 } from "react";
|
|
29
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
29
30
|
|
|
30
31
|
// src/pages/settings/product-types/_components/product-type-list-table.tsx
|
|
31
32
|
import { Children as Children2 } from "react";
|
|
@@ -176,7 +177,7 @@ var ProductTypeListTable = ({ children }) => {
|
|
|
176
177
|
// src/pages/settings/product-types/product-type-list-page.tsx
|
|
177
178
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
178
179
|
var Root = ({ children }) => {
|
|
179
|
-
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(ProductTypeListTable, {}) });
|
|
180
|
+
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx5(WidgetZone, { id: "product-types.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(ProductTypeListTable, {}) }) });
|
|
180
181
|
};
|
|
181
182
|
var ProductTypeListPage = Object.assign(Root, {
|
|
182
183
|
Table: ProductTypeListTable,
|
|
@@ -36,12 +36,22 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
36
36
|
"inventory.detail.side.before": true
|
|
37
37
|
"inventory.list.after": true
|
|
38
38
|
"inventory.list.before": true
|
|
39
|
+
"locations.detail.main.after": true
|
|
40
|
+
"locations.detail.main.before": true
|
|
41
|
+
"locations.detail.side.after": true
|
|
42
|
+
"locations.detail.side.before": true
|
|
43
|
+
"locations.list.after": true
|
|
44
|
+
"locations.list.before": true
|
|
39
45
|
"login.after.after": true
|
|
40
46
|
"login.after.before": true
|
|
41
47
|
"login.before.after": true
|
|
42
48
|
"login.before.before": true
|
|
43
49
|
"login.logo.after": true
|
|
44
50
|
"login.logo.before": true
|
|
51
|
+
"offer-variants.detail.main.after": true
|
|
52
|
+
"offer-variants.detail.main.before": true
|
|
53
|
+
"offer-variants.detail.side.after": true
|
|
54
|
+
"offer-variants.detail.side.before": true
|
|
45
55
|
"offers.detail.main.after": true
|
|
46
56
|
"offers.detail.main.before": true
|
|
47
57
|
"offers.detail.side.after": true
|
|
@@ -64,26 +74,56 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
64
74
|
"price-lists.detail.side.before": true
|
|
65
75
|
"price-lists.list.after": true
|
|
66
76
|
"price-lists.list.before": true
|
|
77
|
+
"product-tags.detail.main.after": true
|
|
78
|
+
"product-tags.detail.main.before": true
|
|
79
|
+
"product-tags.list.after": true
|
|
80
|
+
"product-tags.list.before": true
|
|
81
|
+
"product-types.detail.main.after": true
|
|
82
|
+
"product-types.detail.main.before": true
|
|
83
|
+
"product-types.list.after": true
|
|
84
|
+
"product-types.list.before": true
|
|
85
|
+
"product-variants.detail.main.after": true
|
|
86
|
+
"product-variants.detail.main.before": true
|
|
67
87
|
"product.detail.main.after": true
|
|
68
88
|
"product.detail.main.before": true
|
|
69
89
|
"product.detail.side.after": true
|
|
70
90
|
"product.detail.side.before": true
|
|
71
91
|
"product.list.after": true
|
|
72
92
|
"product.list.before": true
|
|
93
|
+
"profile.detail.main.after": true
|
|
94
|
+
"profile.detail.main.before": true
|
|
73
95
|
"promotions.detail.main.after": true
|
|
74
96
|
"promotions.detail.main.before": true
|
|
75
97
|
"promotions.detail.side.after": true
|
|
76
98
|
"promotions.detail.side.before": true
|
|
77
99
|
"promotions.list.after": true
|
|
78
100
|
"promotions.list.before": true
|
|
101
|
+
"regions.detail.main.after": true
|
|
102
|
+
"regions.detail.main.before": true
|
|
103
|
+
"regions.list.after": true
|
|
104
|
+
"regions.list.before": true
|
|
79
105
|
"reservations.detail.main.after": true
|
|
80
106
|
"reservations.detail.main.before": true
|
|
81
107
|
"reservations.detail.side.after": true
|
|
82
108
|
"reservations.detail.side.before": true
|
|
83
109
|
"reservations.list.after": true
|
|
84
110
|
"reservations.list.before": true
|
|
85
|
-
"
|
|
86
|
-
"
|
|
111
|
+
"return-reasons.list.after": true
|
|
112
|
+
"return-reasons.list.before": true
|
|
113
|
+
"seller.setup.after": true
|
|
114
|
+
"seller.setup.before": true
|
|
115
|
+
"shipping-profiles.detail.main.after": true
|
|
116
|
+
"shipping-profiles.detail.main.before": true
|
|
117
|
+
"shipping-profiles.list.after": true
|
|
118
|
+
"shipping-profiles.list.before": true
|
|
119
|
+
"tax-regions.detail.main.after": true
|
|
120
|
+
"tax-regions.detail.main.before": true
|
|
121
|
+
"tax-regions.list.after": true
|
|
122
|
+
"tax-regions.list.before": true
|
|
123
|
+
"tax-regions.province.detail.main.after": true
|
|
124
|
+
"tax-regions.province.detail.main.before": true
|
|
125
|
+
"team.list.after": true
|
|
126
|
+
"team.list.before": true
|
|
87
127
|
}
|
|
88
128
|
|
|
89
129
|
interface NavItemRegistry {
|
package/dist/index.js
CHANGED
|
@@ -1914,7 +1914,7 @@ var StoreSetupWidget = () => {
|
|
|
1914
1914
|
if (!seller || !isTopLevelRoute(location.pathname)) {
|
|
1915
1915
|
return null;
|
|
1916
1916
|
}
|
|
1917
|
-
return /* @__PURE__ */ jsx9(WidgetZone, { id: "
|
|
1917
|
+
return /* @__PURE__ */ jsx9(WidgetZone, { id: "seller.setup", data: seller });
|
|
1918
1918
|
};
|
|
1919
1919
|
|
|
1920
1920
|
// src/components/layout/main-layout/main-layout.tsx
|
|
@@ -3019,7 +3019,7 @@ function getRouteMap({
|
|
|
3019
3019
|
{
|
|
3020
3020
|
path: "variants/:variant_id",
|
|
3021
3021
|
lazy: async () => {
|
|
3022
|
-
const { loader, Breadcrumb } = await import("./product-variant-detail-
|
|
3022
|
+
const { loader, Breadcrumb } = await import("./product-variant-detail-T7AHSBK7.js");
|
|
3023
3023
|
return {
|
|
3024
3024
|
Component: Outlet4,
|
|
3025
3025
|
loader,
|
|
@@ -3031,7 +3031,7 @@ function getRouteMap({
|
|
|
3031
3031
|
children: [
|
|
3032
3032
|
{
|
|
3033
3033
|
path: "",
|
|
3034
|
-
lazy: () => import("./product-variant-detail-
|
|
3034
|
+
lazy: () => import("./product-variant-detail-T7AHSBK7.js"),
|
|
3035
3035
|
children: [
|
|
3036
3036
|
{
|
|
3037
3037
|
path: "edit",
|
|
@@ -3448,7 +3448,7 @@ function getRouteMap({
|
|
|
3448
3448
|
{
|
|
3449
3449
|
path: "",
|
|
3450
3450
|
lazy: async () => {
|
|
3451
|
-
const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-
|
|
3451
|
+
const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-HA4MKY7Z.js");
|
|
3452
3452
|
return { Component: OfferVariantDetailPage };
|
|
3453
3453
|
},
|
|
3454
3454
|
children: [
|
|
@@ -3773,7 +3773,7 @@ function getRouteMap({
|
|
|
3773
3773
|
{
|
|
3774
3774
|
index: true,
|
|
3775
3775
|
errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
|
|
3776
|
-
lazy: () => import("./settings-
|
|
3776
|
+
lazy: () => import("./settings-F7TIKVD7.js")
|
|
3777
3777
|
},
|
|
3778
3778
|
// PROFILE
|
|
3779
3779
|
{
|
|
@@ -3786,14 +3786,14 @@ function getRouteMap({
|
|
|
3786
3786
|
{
|
|
3787
3787
|
path: "",
|
|
3788
3788
|
lazy: async () => {
|
|
3789
|
-
const { ProfileDetailPage } = await import("./profile-
|
|
3789
|
+
const { ProfileDetailPage } = await import("./profile-KLS44GEM.js");
|
|
3790
3790
|
return { Component: ProfileDetailPage };
|
|
3791
3791
|
},
|
|
3792
3792
|
children: [
|
|
3793
3793
|
{
|
|
3794
3794
|
path: "edit",
|
|
3795
3795
|
lazy: async () => {
|
|
3796
|
-
const { ProfileEdit } = await import("./profile-
|
|
3796
|
+
const { ProfileEdit } = await import("./profile-KLS44GEM.js");
|
|
3797
3797
|
return { Component: ProfileEdit };
|
|
3798
3798
|
}
|
|
3799
3799
|
}
|
|
@@ -3812,7 +3812,7 @@ function getRouteMap({
|
|
|
3812
3812
|
{
|
|
3813
3813
|
path: "",
|
|
3814
3814
|
lazy: async () => {
|
|
3815
|
-
const { StoreDetailPage } = await import("./store-
|
|
3815
|
+
const { StoreDetailPage } = await import("./store-SKJHYA3T.js");
|
|
3816
3816
|
return { Component: StoreDetailPage };
|
|
3817
3817
|
},
|
|
3818
3818
|
children: [
|
|
@@ -3850,7 +3850,7 @@ function getRouteMap({
|
|
|
3850
3850
|
{
|
|
3851
3851
|
path: "",
|
|
3852
3852
|
lazy: async () => {
|
|
3853
|
-
const { LocationListPage } = await import("./locations-
|
|
3853
|
+
const { LocationListPage } = await import("./locations-UVMY2QLW.js");
|
|
3854
3854
|
return { Component: LocationListPage };
|
|
3855
3855
|
},
|
|
3856
3856
|
children: [
|
|
@@ -3870,7 +3870,7 @@ function getRouteMap({
|
|
|
3870
3870
|
{
|
|
3871
3871
|
path: "",
|
|
3872
3872
|
lazy: async () => {
|
|
3873
|
-
const { ShippingProfileListPage } = await import("./shipping-profiles-
|
|
3873
|
+
const { ShippingProfileListPage } = await import("./shipping-profiles-Y7FCO7YW.js");
|
|
3874
3874
|
return { Component: ShippingProfileListPage };
|
|
3875
3875
|
},
|
|
3876
3876
|
children: [
|
|
@@ -3883,7 +3883,7 @@ function getRouteMap({
|
|
|
3883
3883
|
{
|
|
3884
3884
|
path: ":shipping_profile_id",
|
|
3885
3885
|
lazy: async () => {
|
|
3886
|
-
const { shippingProfileLoader: loader } = await import("./[id]-
|
|
3886
|
+
const { shippingProfileLoader: loader } = await import("./[id]-6RTJXOT5.js");
|
|
3887
3887
|
const {
|
|
3888
3888
|
ShippingProfileDetailBreadcrumb: Breadcrumb
|
|
3889
3889
|
} = await import("./breadcrumb-MOA2DBOE.js");
|
|
@@ -3899,7 +3899,7 @@ function getRouteMap({
|
|
|
3899
3899
|
{
|
|
3900
3900
|
path: "",
|
|
3901
3901
|
lazy: async () => {
|
|
3902
|
-
const { ShippingProfileDetailPage } = await import("./[id]-
|
|
3902
|
+
const { ShippingProfileDetailPage } = await import("./[id]-6RTJXOT5.js");
|
|
3903
3903
|
return {
|
|
3904
3904
|
Component: ShippingProfileDetailPage
|
|
3905
3905
|
};
|
|
@@ -3918,7 +3918,7 @@ function getRouteMap({
|
|
|
3918
3918
|
{
|
|
3919
3919
|
path: ":location_id",
|
|
3920
3920
|
lazy: async () => {
|
|
3921
|
-
const { loader } = await import("./[location_id]-
|
|
3921
|
+
const { loader } = await import("./[location_id]-T2HKGZ53.js");
|
|
3922
3922
|
const { LocationDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-LEFHXFLT.js");
|
|
3923
3923
|
return {
|
|
3924
3924
|
Component: Outlet4,
|
|
@@ -3932,7 +3932,7 @@ function getRouteMap({
|
|
|
3932
3932
|
{
|
|
3933
3933
|
path: "",
|
|
3934
3934
|
lazy: async () => {
|
|
3935
|
-
const { LocationDetailPage } = await import("./[location_id]-
|
|
3935
|
+
const { LocationDetailPage } = await import("./[location_id]-T2HKGZ53.js");
|
|
3936
3936
|
return { Component: LocationDetailPage };
|
|
3937
3937
|
},
|
|
3938
3938
|
children: [
|
|
@@ -3987,7 +3987,7 @@ function getRouteMap({
|
|
|
3987
3987
|
children: [
|
|
3988
3988
|
{
|
|
3989
3989
|
path: "",
|
|
3990
|
-
lazy: () => import("./tax-regions-
|
|
3990
|
+
lazy: () => import("./tax-regions-4O6JSS2K.js"),
|
|
3991
3991
|
children: [
|
|
3992
3992
|
{
|
|
3993
3993
|
path: "create",
|
|
@@ -3998,7 +3998,7 @@ function getRouteMap({
|
|
|
3998
3998
|
{
|
|
3999
3999
|
path: ":id",
|
|
4000
4000
|
lazy: async () => {
|
|
4001
|
-
const { Component, Breadcrumb, loader } = await import("./[id]-
|
|
4001
|
+
const { Component, Breadcrumb, loader } = await import("./[id]-JVBHYFZ7.js");
|
|
4002
4002
|
return {
|
|
4003
4003
|
Component,
|
|
4004
4004
|
loader,
|
|
@@ -4031,7 +4031,7 @@ function getRouteMap({
|
|
|
4031
4031
|
{
|
|
4032
4032
|
path: "provinces/:province_id",
|
|
4033
4033
|
lazy: async () => {
|
|
4034
|
-
const { Component, Breadcrumb, loader } = await import("./[province_id]-
|
|
4034
|
+
const { Component, Breadcrumb, loader } = await import("./[province_id]-MHSQXGJR.js");
|
|
4035
4035
|
return {
|
|
4036
4036
|
Component,
|
|
4037
4037
|
loader,
|
|
@@ -4073,14 +4073,14 @@ function getRouteMap({
|
|
|
4073
4073
|
{
|
|
4074
4074
|
path: "",
|
|
4075
4075
|
lazy: async () => {
|
|
4076
|
-
const { ProductTagListPage } = await import("./product-tags-
|
|
4076
|
+
const { ProductTagListPage } = await import("./product-tags-TTRZ262G.js");
|
|
4077
4077
|
return { Component: ProductTagListPage };
|
|
4078
4078
|
}
|
|
4079
4079
|
},
|
|
4080
4080
|
{
|
|
4081
4081
|
path: ":id",
|
|
4082
4082
|
lazy: async () => {
|
|
4083
|
-
const { loader } = await import("./[id]-
|
|
4083
|
+
const { loader } = await import("./[id]-I5QINHWH.js");
|
|
4084
4084
|
const { ProductTagDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-ILEAQRW7.js");
|
|
4085
4085
|
return {
|
|
4086
4086
|
Component: Outlet4,
|
|
@@ -4094,7 +4094,7 @@ function getRouteMap({
|
|
|
4094
4094
|
{
|
|
4095
4095
|
path: "",
|
|
4096
4096
|
lazy: async () => {
|
|
4097
|
-
const { ProductTagDetailPage } = await import("./[id]-
|
|
4097
|
+
const { ProductTagDetailPage } = await import("./[id]-I5QINHWH.js");
|
|
4098
4098
|
return { Component: ProductTagDetailPage };
|
|
4099
4099
|
},
|
|
4100
4100
|
children: [
|
|
@@ -4118,7 +4118,7 @@ function getRouteMap({
|
|
|
4118
4118
|
{
|
|
4119
4119
|
path: "",
|
|
4120
4120
|
lazy: async () => {
|
|
4121
|
-
const { TeamListPage } = await import("./team-
|
|
4121
|
+
const { TeamListPage } = await import("./team-HJPFQK6W.js");
|
|
4122
4122
|
return { Component: TeamListPage };
|
|
4123
4123
|
},
|
|
4124
4124
|
children: [
|
|
@@ -4143,7 +4143,7 @@ function getRouteMap({
|
|
|
4143
4143
|
{
|
|
4144
4144
|
path: "",
|
|
4145
4145
|
lazy: async () => {
|
|
4146
|
-
const { ProductTypeListPage } = await import("./product-types-
|
|
4146
|
+
const { ProductTypeListPage } = await import("./product-types-4VMRNH6C.js");
|
|
4147
4147
|
return { Component: ProductTypeListPage };
|
|
4148
4148
|
},
|
|
4149
4149
|
children: [
|
|
@@ -4158,7 +4158,7 @@ function getRouteMap({
|
|
|
4158
4158
|
{
|
|
4159
4159
|
path: ":id",
|
|
4160
4160
|
lazy: async () => {
|
|
4161
|
-
const { productTypeLoader: loader } = await import("./[id]-
|
|
4161
|
+
const { productTypeLoader: loader } = await import("./[id]-R74PRGC6.js");
|
|
4162
4162
|
const { ProductTypeDetailBreadcrumb: Breadcrumb } = await import("./breadcrumb-VY5DNTTJ.js");
|
|
4163
4163
|
return {
|
|
4164
4164
|
Component: Outlet4,
|
|
@@ -4172,7 +4172,7 @@ function getRouteMap({
|
|
|
4172
4172
|
{
|
|
4173
4173
|
path: "",
|
|
4174
4174
|
lazy: async () => {
|
|
4175
|
-
const { ProductTypeDetailPage } = await import("./[id]-
|
|
4175
|
+
const { ProductTypeDetailPage } = await import("./[id]-R74PRGC6.js");
|
|
4176
4176
|
return { Component: ProductTypeDetailPage };
|
|
4177
4177
|
},
|
|
4178
4178
|
children: [
|
|
@@ -4195,7 +4195,7 @@ function getRouteMap({
|
|
|
4195
4195
|
children: [
|
|
4196
4196
|
{
|
|
4197
4197
|
path: "",
|
|
4198
|
-
lazy: () => import("./return-reasons-
|
|
4198
|
+
lazy: () => import("./return-reasons-DM3HM3DA.js"),
|
|
4199
4199
|
children: [
|
|
4200
4200
|
{
|
|
4201
4201
|
path: "create",
|
|
@@ -4251,7 +4251,7 @@ function getRouteMap({
|
|
|
4251
4251
|
{
|
|
4252
4252
|
path: "/store-select",
|
|
4253
4253
|
lazy: async () => {
|
|
4254
|
-
const { StoreSelectPage } = await import("./store-select-
|
|
4254
|
+
const { StoreSelectPage } = await import("./store-select-2WFPGKQC.js");
|
|
4255
4255
|
return { Component: StoreSelectPage };
|
|
4256
4256
|
}
|
|
4257
4257
|
},
|
package/dist/{offer-variant-detail-page-KURNVWYU.js → offer-variant-detail-page-HA4MKY7Z.js}
RENAMED
|
@@ -47,6 +47,7 @@ import "./chunk-NBMM2TZK.js";
|
|
|
47
47
|
// src/pages/offers/[id]/variants/[offer_id]/offer-variant-detail-page.tsx
|
|
48
48
|
import { Children } from "react";
|
|
49
49
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
50
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
50
51
|
|
|
51
52
|
// src/pages/offers/[id]/_components/offer-inventory-section.tsx
|
|
52
53
|
import { Buildings } from "@medusajs/icons";
|
|
@@ -385,14 +386,14 @@ var Root = ({ children }) => {
|
|
|
385
386
|
}
|
|
386
387
|
const typed = offer;
|
|
387
388
|
return /* @__PURE__ */ jsx5(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: typed, hasOutlet: true, children: [
|
|
388
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ jsx5(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "offer-variants.detail.main", data: typed, children: [
|
|
389
390
|
/* @__PURE__ */ jsx5(OfferVariantGeneralSection, { offer: typed }),
|
|
390
391
|
/* @__PURE__ */ jsx5(OfferInventorySection, { offer: typed })
|
|
391
|
-
] }),
|
|
392
|
-
/* @__PURE__ */
|
|
392
|
+
] }) }),
|
|
393
|
+
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "offer-variants.detail.side", data: typed, children: [
|
|
393
394
|
/* @__PURE__ */ jsx5(OfferVariantShippingSection, { offer: typed }),
|
|
394
395
|
/* @__PURE__ */ jsx5(OfferPricingSection, { offer: typed })
|
|
395
|
-
] })
|
|
396
|
+
] }) })
|
|
396
397
|
] }) });
|
|
397
398
|
};
|
|
398
399
|
var OfferVariantDetailPage = Object.assign(Root, {
|
package/dist/pages/index.js
CHANGED
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
} from "../chunk-ZWTCVOHQ.js";
|
|
10
10
|
import {
|
|
11
11
|
ShippingProfileListPage
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-PC547EIJ.js";
|
|
13
13
|
import {
|
|
14
14
|
ProductTypeListPage
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-X5UH62TE.js";
|
|
16
16
|
import "../chunk-MAVQ636Y.js";
|
|
17
17
|
import {
|
|
18
18
|
ProductTagListPage
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-RGCTY3EW.js";
|
|
20
20
|
import "../chunk-N335VHD3.js";
|
|
21
21
|
import "../chunk-EBZ5VZEO.js";
|
|
22
22
|
import {
|
|
23
23
|
LocationListPage,
|
|
24
24
|
shippingListLoader
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-SYWAMZNQ.js";
|
|
26
26
|
import {
|
|
27
27
|
PriceListListPage
|
|
28
28
|
} from "../chunk-3N3K55NN.js";
|
|
@@ -71,6 +71,7 @@ var ProductVariantDetailBreadcrumb = (props) => {
|
|
|
71
71
|
// src/pages/product-variants/product-variant-detail/product-variant-detail.tsx
|
|
72
72
|
import { Children } from "react";
|
|
73
73
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
74
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
74
75
|
|
|
75
76
|
// src/pages/product-variants/product-variant-detail/components/variant-general-section/variant-general-section.tsx
|
|
76
77
|
import { Component, PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -336,7 +337,7 @@ var getMedia = (variant) => {
|
|
|
336
337
|
};
|
|
337
338
|
|
|
338
339
|
// src/pages/product-variants/product-variant-detail/product-variant-detail.tsx
|
|
339
|
-
import {
|
|
340
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
340
341
|
var Root = ({ children }) => {
|
|
341
342
|
const initialData = useLoaderData();
|
|
342
343
|
const { id, product_id, variant_id } = useParams();
|
|
@@ -355,7 +356,7 @@ var Root = ({ children }) => {
|
|
|
355
356
|
if (isError) {
|
|
356
357
|
throw error;
|
|
357
358
|
}
|
|
358
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { data: variant, hasOutlet: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(
|
|
359
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { data: variant, hasOutlet: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(WidgetZone, { id: "product-variants.detail.main", data: variant, children: [
|
|
359
360
|
/* @__PURE__ */ jsx4(VariantGeneralSection, { variant }),
|
|
360
361
|
/* @__PURE__ */ jsx4(VariantMediaSection, { variant })
|
|
361
362
|
] }) });
|
|
@@ -55,6 +55,7 @@ import "./chunk-NBMM2TZK.js";
|
|
|
55
55
|
|
|
56
56
|
// src/pages/settings/profile/profile-detail/profile-detail.tsx
|
|
57
57
|
import { Children } from "react";
|
|
58
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
58
59
|
|
|
59
60
|
// src/pages/settings/profile/profile-detail/components/profile-general-section/profile-general-section.tsx
|
|
60
61
|
import { PencilSquare } from "@medusajs/icons";
|
|
@@ -104,14 +105,24 @@ var ProfileGeneralSection = () => {
|
|
|
104
105
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("profile.fields.languageLabel") }),
|
|
105
106
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: languages.find((lang) => lang.code === i18n.language)?.display_name || "-" })
|
|
106
107
|
] }) }),
|
|
107
|
-
/* @__PURE__ */ jsx(
|
|
108
|
+
/* @__PURE__ */ jsx(
|
|
109
|
+
DisplayExtensionZone,
|
|
110
|
+
{
|
|
111
|
+
model: "member",
|
|
112
|
+
zone: "general",
|
|
113
|
+
data: member,
|
|
114
|
+
builtInFieldIds: ["first_name", "last_name", "language"]
|
|
115
|
+
}
|
|
116
|
+
)
|
|
108
117
|
] });
|
|
109
118
|
};
|
|
110
119
|
|
|
111
120
|
// src/pages/settings/profile/profile-detail/profile-detail.tsx
|
|
112
121
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
113
122
|
var Root = ({ children }) => {
|
|
114
|
-
|
|
123
|
+
const { seller_member } = useMe();
|
|
124
|
+
const member = seller_member?.member;
|
|
125
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(WidgetZone, { id: "profile.detail.main", data: member, children: /* @__PURE__ */ jsx2(ProfileGeneralSection, {}) }) });
|
|
115
126
|
};
|
|
116
127
|
var ProfileDetailPage = Object.assign(Root, {
|
|
117
128
|
GeneralSection: ProfileGeneralSection
|
|
@@ -66,6 +66,9 @@ import "./chunk-ZA2KFUFR.js";
|
|
|
66
66
|
import "./chunk-LXZXXOJ3.js";
|
|
67
67
|
import "./chunk-NBMM2TZK.js";
|
|
68
68
|
|
|
69
|
+
// src/pages/settings/return-reasons/index.tsx
|
|
70
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
71
|
+
|
|
69
72
|
// src/pages/settings/return-reasons/_components/return-reason-list-table.tsx
|
|
70
73
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
71
74
|
import { Button, Container, Heading, Text } from "@medusajs/ui";
|
|
@@ -207,7 +210,7 @@ var useColumns = () => {
|
|
|
207
210
|
// src/pages/settings/return-reasons/index.tsx
|
|
208
211
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
209
212
|
var ReturnReasonList = () => {
|
|
210
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: false, showJSON: false, hasOutlet: true, children: /* @__PURE__ */ jsx2(ReturnReasonListTable, {}) });
|
|
213
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: false, showJSON: false, hasOutlet: true, children: /* @__PURE__ */ jsx2(WidgetZone, { id: "return-reasons.list", children: /* @__PURE__ */ jsx2(ReturnReasonListTable, {}) }) });
|
|
211
214
|
};
|
|
212
215
|
var Component = ReturnReasonList;
|
|
213
216
|
export {
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
} from "./chunk-ZWTCVOHQ.js";
|
|
4
4
|
import {
|
|
5
5
|
ShippingProfileListPage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PC547EIJ.js";
|
|
7
7
|
import {
|
|
8
8
|
ProductTypeListPage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X5UH62TE.js";
|
|
10
10
|
import "./chunk-MAVQ636Y.js";
|
|
11
11
|
import {
|
|
12
12
|
ProductTagListPage
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RGCTY3EW.js";
|
|
14
14
|
import "./chunk-N335VHD3.js";
|
|
15
15
|
import "./chunk-EBZ5VZEO.js";
|
|
16
16
|
import {
|
|
17
17
|
LocationListPage,
|
|
18
18
|
shippingListLoader
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SYWAMZNQ.js";
|
|
20
20
|
import "./chunk-4F5GP7J7.js";
|
|
21
21
|
import "./chunk-7TIZP4YG.js";
|
|
22
22
|
import "./chunk-GJM5XI3E.js";
|
|
@@ -274,13 +274,17 @@ var StoreTimeOffSection = ({ seller }) => {
|
|
|
274
274
|
import { Children as Children2 } from "react";
|
|
275
275
|
import { Badge, Container as Container3, Text as Text2 } from "@medusajs/ui";
|
|
276
276
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
277
|
-
import {
|
|
277
|
+
import {
|
|
278
|
+
DisplayExtensionZone,
|
|
279
|
+
DisplayField as DisplayField2
|
|
280
|
+
} from "@mercurjs/dashboard-shared";
|
|
278
281
|
|
|
279
282
|
// src/pages/settings/store/_components/store-detail-header.tsx
|
|
280
283
|
import { Children } from "react";
|
|
281
284
|
import { CheckCircleSolid, PencilSquare as PencilSquare3 } from "@medusajs/icons";
|
|
282
285
|
import { Avatar, Heading as Heading3, StatusBadge, Tooltip } from "@medusajs/ui";
|
|
283
286
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
287
|
+
import { DisplayField } from "@mercurjs/dashboard-shared";
|
|
284
288
|
var import_types = __toESM(require_dist(), 1);
|
|
285
289
|
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
286
290
|
var getStatusColor = (status) => {
|
|
@@ -353,7 +357,16 @@ var StoreDetailActions = ({
|
|
|
353
357
|
}) => {
|
|
354
358
|
const { t } = useTranslation3();
|
|
355
359
|
return /* @__PURE__ */ jsx3("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
356
|
-
/* @__PURE__ */ jsx3(
|
|
360
|
+
/* @__PURE__ */ jsx3(
|
|
361
|
+
DisplayField,
|
|
362
|
+
{
|
|
363
|
+
model: "seller",
|
|
364
|
+
zone: "general",
|
|
365
|
+
id: "status",
|
|
366
|
+
data: seller,
|
|
367
|
+
children: /* @__PURE__ */ jsx3(StatusBadge, { color: getStatusColor(seller.status), children: getStatusLabel(seller.status, t) })
|
|
368
|
+
}
|
|
369
|
+
),
|
|
357
370
|
/* @__PURE__ */ jsx3(StoreDetailEditButton, {})
|
|
358
371
|
] }) });
|
|
359
372
|
};
|
|
@@ -399,7 +412,7 @@ var StoreGeneralSection = ({
|
|
|
399
412
|
) }),
|
|
400
413
|
/* @__PURE__ */ jsx4(StoreDetailHeader, { seller }),
|
|
401
414
|
/* @__PURE__ */ jsx4(
|
|
402
|
-
|
|
415
|
+
DisplayField2,
|
|
403
416
|
{
|
|
404
417
|
model: "seller",
|
|
405
418
|
zone: "general",
|
|
@@ -411,20 +424,20 @@ var StoreGeneralSection = ({
|
|
|
411
424
|
] })
|
|
412
425
|
}
|
|
413
426
|
),
|
|
414
|
-
/* @__PURE__ */ jsx4(
|
|
427
|
+
/* @__PURE__ */ jsx4(DisplayField2, { model: "seller", zone: "general", id: "handle", data: seller, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
415
428
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
416
429
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
|
|
417
430
|
] }) }),
|
|
418
|
-
/* @__PURE__ */ jsx4(
|
|
431
|
+
/* @__PURE__ */ jsx4(DisplayField2, { model: "seller", zone: "general", id: "email", data: seller, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
419
432
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
|
|
420
433
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.email || "-" })
|
|
421
434
|
] }) }),
|
|
422
|
-
/* @__PURE__ */ jsx4(
|
|
435
|
+
/* @__PURE__ */ jsx4(DisplayField2, { model: "seller", zone: "general", id: "phone", data: seller, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
423
436
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
|
|
424
437
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.phone || "-" })
|
|
425
438
|
] }) }),
|
|
426
439
|
/* @__PURE__ */ jsx4(
|
|
427
|
-
|
|
440
|
+
DisplayField2,
|
|
428
441
|
{
|
|
429
442
|
model: "seller",
|
|
430
443
|
zone: "general",
|
|
@@ -437,7 +450,7 @@ var StoreGeneralSection = ({
|
|
|
437
450
|
}
|
|
438
451
|
),
|
|
439
452
|
/* @__PURE__ */ jsx4(
|
|
440
|
-
|
|
453
|
+
DisplayField2,
|
|
441
454
|
{
|
|
442
455
|
model: "seller",
|
|
443
456
|
zone: "general",
|
|
@@ -451,6 +464,23 @@ var StoreGeneralSection = ({
|
|
|
451
464
|
] })
|
|
452
465
|
] })
|
|
453
466
|
}
|
|
467
|
+
),
|
|
468
|
+
/* @__PURE__ */ jsx4(
|
|
469
|
+
DisplayExtensionZone,
|
|
470
|
+
{
|
|
471
|
+
model: "seller",
|
|
472
|
+
zone: "general",
|
|
473
|
+
data: seller,
|
|
474
|
+
builtInFieldIds: [
|
|
475
|
+
"status",
|
|
476
|
+
"description",
|
|
477
|
+
"handle",
|
|
478
|
+
"email",
|
|
479
|
+
"phone",
|
|
480
|
+
"website_url",
|
|
481
|
+
"currency_code"
|
|
482
|
+
]
|
|
483
|
+
}
|
|
454
484
|
)
|
|
455
485
|
] }) });
|
|
456
486
|
};
|
|
@@ -586,7 +616,7 @@ var Root = ({ children }) => {
|
|
|
586
616
|
}
|
|
587
617
|
})();
|
|
588
618
|
const StatusBanner = () => /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
589
|
-
/* @__PURE__ */ jsx7(WidgetZone, { id: "
|
|
619
|
+
/* @__PURE__ */ jsx7(WidgetZone, { id: "seller.setup", data: seller }),
|
|
590
620
|
statusAlert && /* @__PURE__ */ jsxs7(Alert, { variant: statusAlert.variant, dismissible: true, className: "p-5", children: [
|
|
591
621
|
/* @__PURE__ */ jsx7("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: statusAlert.title }),
|
|
592
622
|
/* @__PURE__ */ jsx7(Text5, { className: "text-ui-fg-subtle txt-small leading-normal", children: statusAlert.description })
|
|
@@ -28,6 +28,9 @@ import "./chunk-ZA2KFUFR.js";
|
|
|
28
28
|
import "./chunk-LXZXXOJ3.js";
|
|
29
29
|
import "./chunk-NBMM2TZK.js";
|
|
30
30
|
|
|
31
|
+
// src/pages/settings/tax-regions/index.tsx
|
|
32
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
33
|
+
|
|
31
34
|
// src/pages/settings/tax-regions/_components/tax-region-list-view.tsx
|
|
32
35
|
import { Container, Heading, Text } from "@medusajs/ui";
|
|
33
36
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
@@ -79,7 +82,7 @@ var TaxRegionListView = () => {
|
|
|
79
82
|
// src/pages/settings/tax-regions/index.tsx
|
|
80
83
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
81
84
|
var TaxRegionsList = () => {
|
|
82
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx2(TaxRegionListView, {}) });
|
|
85
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx2(WidgetZone, { id: "tax-regions.list", children: /* @__PURE__ */ jsx2(TaxRegionListView, {}) }) });
|
|
83
86
|
};
|
|
84
87
|
var Component = TaxRegionsList;
|
|
85
88
|
export {
|
|
@@ -73,6 +73,7 @@ import {
|
|
|
73
73
|
|
|
74
74
|
// src/pages/settings/team/team-list-page.tsx
|
|
75
75
|
import { Children as Children3 } from "react";
|
|
76
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
76
77
|
|
|
77
78
|
// src/pages/settings/team/_components/team-list-table.tsx
|
|
78
79
|
import { Children as Children2 } from "react";
|
|
@@ -256,7 +257,7 @@ var TeamListTable = ({ children }) => {
|
|
|
256
257
|
// src/pages/settings/team/team-list-page.tsx
|
|
257
258
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
258
259
|
var Root = ({ children }) => {
|
|
259
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { hasOutlet: true, children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(TeamListTable, {}) });
|
|
260
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { hasOutlet: true, children: /* @__PURE__ */ jsx4(WidgetZone, { id: "team.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(TeamListTable, {}) }) });
|
|
260
261
|
};
|
|
261
262
|
var TeamListPage = Object.assign(Root, {
|
|
262
263
|
Table: TeamListTable,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercurjs/vendor",
|
|
3
|
-
"version": "2.2.0-canary.
|
|
3
|
+
"version": "2.2.0-canary.44",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mercurjs/mercur",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"lint": "oxlint --max-warnings 0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@mercurjs/dashboard-shared": "2.2.0-canary.
|
|
38
|
-
"@mercurjs/client": "2.2.0-canary.
|
|
37
|
+
"@mercurjs/dashboard-shared": "2.2.0-canary.44",
|
|
38
|
+
"@mercurjs/client": "2.2.0-canary.44",
|
|
39
39
|
"@ariakit/react": "^0.4.15",
|
|
40
40
|
"@babel/runtime": "^7.26.10",
|
|
41
41
|
"@dnd-kit/core": "^6.1.0",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"tsup": "^8.0.2",
|
|
89
89
|
"typescript": "5.9.3",
|
|
90
90
|
"@medusajs/types": "2.17.2",
|
|
91
|
-
"@mercurjs/core": "2.2.0-canary.
|
|
92
|
-
"@mercurjs/dashboard-sdk": "2.2.0-canary.
|
|
93
|
-
"@mercurjs/types": "2.2.0-canary.
|
|
91
|
+
"@mercurjs/core": "2.2.0-canary.44",
|
|
92
|
+
"@mercurjs/dashboard-sdk": "2.2.0-canary.44",
|
|
93
|
+
"@mercurjs/types": "2.2.0-canary.44"
|
|
94
94
|
}
|
|
95
95
|
}
|