@mercurjs/vendor 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/{[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/{address-XVBSNMFU.js → address-S5J77GB2.js} +17 -6
- 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/{edit-IRH2IGXB.js → edit-RA54O5XJ.js} +19 -7
- package/dist/extension-targets.d.ts +51 -11
- package/dist/index.js +30 -30
- 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/{payment-details-K2XFATEL.js → payment-details-MEUERL4T.js} +18 -7
- 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/{professional-details-WWZPTXSX.js → professional-details-ZTDNQO6F.js} +17 -6
- package/dist/{profile-5IADQ727.js → profile-LA6WIOLF.js} +32 -13
- 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-FK643K5M.js → store-M5FE4MWL.js} +7 -7
- package/dist/{store-select-IWYWXESC.js → store-select-7M2JBJ7G.js} +2 -2
- 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 {
|
|
@@ -50,12 +50,11 @@ import { Heading } from "@medusajs/ui";
|
|
|
50
50
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
51
51
|
|
|
52
52
|
// src/pages/settings/store/address/store-address-form.tsx
|
|
53
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
|
54
53
|
import i18n from "i18next";
|
|
55
54
|
import { Button, Input, toast } from "@medusajs/ui";
|
|
56
|
-
import { useForm } from "react-hook-form";
|
|
57
55
|
import { useTranslation } from "react-i18next";
|
|
58
56
|
import * as zod from "zod";
|
|
57
|
+
import { FormExtensionZone, useExtendableForm } from "@mercurjs/dashboard-shared";
|
|
59
58
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
60
59
|
var StoreAddressSchema = zod.object({
|
|
61
60
|
name: zod.string().min(1, { message: i18n.t("store.address.validation.nameRequired") }),
|
|
@@ -70,7 +69,10 @@ var StoreAddressForm = ({ seller }) => {
|
|
|
70
69
|
const { t } = useTranslation();
|
|
71
70
|
const { handleSuccess } = useRouteModal();
|
|
72
71
|
const address = seller.address;
|
|
73
|
-
const form =
|
|
72
|
+
const form = useExtendableForm({
|
|
73
|
+
schema: StoreAddressSchema,
|
|
74
|
+
model: "seller",
|
|
75
|
+
data: seller,
|
|
74
76
|
defaultValues: {
|
|
75
77
|
name: address?.name ?? "",
|
|
76
78
|
address_1: address?.address_1 ?? "",
|
|
@@ -79,8 +81,7 @@ var StoreAddressForm = ({ seller }) => {
|
|
|
79
81
|
province: address?.province ?? "",
|
|
80
82
|
postal_code: address?.postal_code ?? "",
|
|
81
83
|
country_code: address?.country_code ?? ""
|
|
82
|
-
}
|
|
83
|
-
resolver: zodResolver(StoreAddressSchema)
|
|
84
|
+
}
|
|
84
85
|
});
|
|
85
86
|
const { mutateAsync, isPending } = useUpdateSellerAddress(seller.id);
|
|
86
87
|
const handleSubmit = form.handleSubmit(async (values) => {
|
|
@@ -92,7 +93,8 @@ var StoreAddressForm = ({ seller }) => {
|
|
|
92
93
|
city: values.city || null,
|
|
93
94
|
province: values.province || null,
|
|
94
95
|
postal_code: values.postal_code || null,
|
|
95
|
-
country_code: values.country_code
|
|
96
|
+
country_code: values.country_code,
|
|
97
|
+
additional_data: values.additional_data
|
|
96
98
|
},
|
|
97
99
|
{
|
|
98
100
|
onSuccess: () => {
|
|
@@ -197,6 +199,15 @@ var StoreAddressForm = ({ seller }) => {
|
|
|
197
199
|
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
198
200
|
] })
|
|
199
201
|
}
|
|
202
|
+
),
|
|
203
|
+
/* @__PURE__ */ jsx(
|
|
204
|
+
FormExtensionZone,
|
|
205
|
+
{
|
|
206
|
+
model: "seller",
|
|
207
|
+
zone: "address",
|
|
208
|
+
control: form.control,
|
|
209
|
+
data: seller
|
|
210
|
+
}
|
|
200
211
|
)
|
|
201
212
|
] }),
|
|
202
213
|
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
@@ -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,
|
|
@@ -61,7 +61,6 @@ import { Heading as Heading2 } from "@medusajs/ui";
|
|
|
61
61
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
62
62
|
|
|
63
63
|
// src/pages/settings/store/edit/_components/edit-store-form.tsx
|
|
64
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
|
65
64
|
import i18n from "i18next";
|
|
66
65
|
import { InformationCircleSolid } from "@medusajs/icons";
|
|
67
66
|
import {
|
|
@@ -73,10 +72,11 @@ import {
|
|
|
73
72
|
Textarea,
|
|
74
73
|
toast
|
|
75
74
|
} from "@medusajs/ui";
|
|
76
|
-
import { useFieldArray
|
|
75
|
+
import { useFieldArray } from "react-hook-form";
|
|
77
76
|
import { useTranslation } from "react-i18next";
|
|
78
77
|
import * as zod from "zod";
|
|
79
78
|
import { useCallback } from "react";
|
|
79
|
+
import { FormExtensionZone, useExtendableForm } from "@mercurjs/dashboard-shared";
|
|
80
80
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
81
81
|
var EditStoreSchema = zod.object({
|
|
82
82
|
name: zod.string().min(1, { message: i18n.t("store.validation.nameRequired") }),
|
|
@@ -125,7 +125,10 @@ var ensureWebsiteProtocol = (url) => {
|
|
|
125
125
|
var EditStoreForm = ({ seller }) => {
|
|
126
126
|
const { t } = useTranslation();
|
|
127
127
|
const { handleSuccess } = useRouteModal();
|
|
128
|
-
const form =
|
|
128
|
+
const form = useExtendableForm({
|
|
129
|
+
schema: EditStoreSchema,
|
|
130
|
+
model: "seller",
|
|
131
|
+
data: seller,
|
|
129
132
|
defaultValues: {
|
|
130
133
|
name: seller.name ?? "",
|
|
131
134
|
handle: seller.handle ?? "",
|
|
@@ -135,8 +138,7 @@ var EditStoreForm = ({ seller }) => {
|
|
|
135
138
|
website_url: stripWebsiteProtocol(seller.website_url),
|
|
136
139
|
media: seller.logo ? [{ id: "existing-logo", url: seller.logo, isThumbnail: false, file: null }] : [],
|
|
137
140
|
bannerMedia: seller.banner ? [{ id: "existing-banner", url: seller.banner, isThumbnail: false, file: null }] : []
|
|
138
|
-
}
|
|
139
|
-
resolver: zodResolver(EditStoreSchema)
|
|
141
|
+
}
|
|
140
142
|
});
|
|
141
143
|
const { fields: logoFields } = useFieldArray({
|
|
142
144
|
name: "media",
|
|
@@ -186,7 +188,8 @@ var EditStoreForm = ({ seller }) => {
|
|
|
186
188
|
description: values.description || null,
|
|
187
189
|
website_url: ensureWebsiteProtocol(values.website_url),
|
|
188
190
|
logo: logoUrl,
|
|
189
|
-
banner: bannerUrl
|
|
191
|
+
banner: bannerUrl,
|
|
192
|
+
additional_data: values.additional_data
|
|
190
193
|
},
|
|
191
194
|
{
|
|
192
195
|
onSuccess: () => {
|
|
@@ -392,7 +395,16 @@ var EditStoreForm = ({ seller }) => {
|
|
|
392
395
|
/* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("store.edit.mediaTipBody") })
|
|
393
396
|
] })
|
|
394
397
|
] })
|
|
395
|
-
] })
|
|
398
|
+
] }),
|
|
399
|
+
/* @__PURE__ */ jsx(
|
|
400
|
+
FormExtensionZone,
|
|
401
|
+
{
|
|
402
|
+
model: "seller",
|
|
403
|
+
zone: "edit",
|
|
404
|
+
control: form.control,
|
|
405
|
+
data: seller
|
|
406
|
+
}
|
|
407
|
+
)
|
|
396
408
|
] }),
|
|
397
409
|
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
398
410
|
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
@@ -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 {
|
|
@@ -148,6 +188,12 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
148
188
|
displayZones: "attributes" | "general" | "locations" | "variants"
|
|
149
189
|
displayFieldIds: "available" | "in_stock" | "reserved" | "sku" | "title"
|
|
150
190
|
}
|
|
191
|
+
"member": {
|
|
192
|
+
formZones: "edit"
|
|
193
|
+
formTabs: Record<string, string>
|
|
194
|
+
displayZones: "general"
|
|
195
|
+
displayFieldIds: "first_name" | "language" | "last_name"
|
|
196
|
+
}
|
|
151
197
|
"offer": {
|
|
152
198
|
formZones: "create" | "edit"
|
|
153
199
|
formTabs: { "create": "catalogue" | "stockLevelsAndPrices" }
|
|
@@ -191,16 +237,10 @@ declare module "@mercurjs/dashboard-sdk" {
|
|
|
191
237
|
displayFieldIds: "available_quantity" | "description" | "line_item_id" | "location" | "reserved_quantity" | "stocked_quantity" | "title"
|
|
192
238
|
}
|
|
193
239
|
"seller": {
|
|
194
|
-
formZones: "onboarding"
|
|
240
|
+
formZones: "address" | "edit" | "onboarding" | "payment-details" | "professional-details"
|
|
195
241
|
formTabs: Record<string, string>
|
|
196
|
-
displayZones: "
|
|
197
|
-
displayFieldIds: "status"
|
|
198
|
-
}
|
|
199
|
-
"store": {
|
|
200
|
-
formZones: never
|
|
201
|
-
formTabs: Record<string, string>
|
|
202
|
-
displayZones: "general"
|
|
203
|
-
displayFieldIds: "currency_code" | "description" | "email" | "handle" | "phone" | "website_url"
|
|
242
|
+
displayZones: "general" | "seller-select"
|
|
243
|
+
displayFieldIds: "currency_code" | "description" | "email" | "handle" | "phone" | "status" | "website_url"
|
|
204
244
|
}
|
|
205
245
|
}
|
|
206
246
|
}
|
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-LA6WIOLF.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-LA6WIOLF.js");
|
|
3797
3797
|
return { Component: ProfileEdit };
|
|
3798
3798
|
}
|
|
3799
3799
|
}
|
|
@@ -3812,25 +3812,25 @@ function getRouteMap({
|
|
|
3812
3812
|
{
|
|
3813
3813
|
path: "",
|
|
3814
3814
|
lazy: async () => {
|
|
3815
|
-
const { StoreDetailPage } = await import("./store-
|
|
3815
|
+
const { StoreDetailPage } = await import("./store-M5FE4MWL.js");
|
|
3816
3816
|
return { Component: StoreDetailPage };
|
|
3817
3817
|
},
|
|
3818
3818
|
children: [
|
|
3819
3819
|
{
|
|
3820
3820
|
path: "edit",
|
|
3821
|
-
lazy: () => import("./edit-
|
|
3821
|
+
lazy: () => import("./edit-RA54O5XJ.js")
|
|
3822
3822
|
},
|
|
3823
3823
|
{
|
|
3824
3824
|
path: "address",
|
|
3825
|
-
lazy: () => import("./address-
|
|
3825
|
+
lazy: () => import("./address-S5J77GB2.js")
|
|
3826
3826
|
},
|
|
3827
3827
|
{
|
|
3828
3828
|
path: "payment-details",
|
|
3829
|
-
lazy: () => import("./payment-details-
|
|
3829
|
+
lazy: () => import("./payment-details-MEUERL4T.js")
|
|
3830
3830
|
},
|
|
3831
3831
|
{
|
|
3832
3832
|
path: "professional-details",
|
|
3833
|
-
lazy: () => import("./professional-details-
|
|
3833
|
+
lazy: () => import("./professional-details-ZTDNQO6F.js")
|
|
3834
3834
|
},
|
|
3835
3835
|
{
|
|
3836
3836
|
path: "store-closure",
|
|
@@ -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-7M2JBJ7G.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";
|
|
@@ -49,12 +49,11 @@ import { Heading } from "@medusajs/ui";
|
|
|
49
49
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
50
50
|
|
|
51
51
|
// src/pages/settings/store/payment-details/store-payment-details-form.tsx
|
|
52
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
|
53
52
|
import i18n from "i18next";
|
|
54
53
|
import { Button, Input, toast } from "@medusajs/ui";
|
|
55
|
-
import { useForm } from "react-hook-form";
|
|
56
54
|
import { useTranslation } from "react-i18next";
|
|
57
55
|
import * as zod from "zod";
|
|
56
|
+
import { FormExtensionZone, useExtendableForm } from "@mercurjs/dashboard-shared";
|
|
58
57
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
59
58
|
var StorePaymentDetailsSchema = zod.object({
|
|
60
59
|
country_code: zod.string().min(1, {
|
|
@@ -74,7 +73,10 @@ var StorePaymentDetailsForm = ({
|
|
|
74
73
|
const { t } = useTranslation();
|
|
75
74
|
const { handleSuccess } = useRouteModal();
|
|
76
75
|
const details = seller.payment_details;
|
|
77
|
-
const form =
|
|
76
|
+
const form = useExtendableForm({
|
|
77
|
+
schema: StorePaymentDetailsSchema,
|
|
78
|
+
model: "seller",
|
|
79
|
+
data: seller,
|
|
78
80
|
defaultValues: {
|
|
79
81
|
country_code: details?.country_code ?? "",
|
|
80
82
|
holder_name: details?.holder_name ?? "",
|
|
@@ -82,8 +84,7 @@ var StorePaymentDetailsForm = ({
|
|
|
82
84
|
bic: details?.bic ?? "",
|
|
83
85
|
routing_number: details?.routing_number ?? "",
|
|
84
86
|
account_number: details?.account_number ?? ""
|
|
85
|
-
}
|
|
86
|
-
resolver: zodResolver(StorePaymentDetailsSchema)
|
|
87
|
+
}
|
|
87
88
|
});
|
|
88
89
|
const selectedCountry = form.watch("country_code");
|
|
89
90
|
const { mutateAsync, isPending } = useUpdateSellerPaymentDetails(seller.id);
|
|
@@ -96,7 +97,8 @@ var StorePaymentDetailsForm = ({
|
|
|
96
97
|
iban: isABA ? null : values.iban || null,
|
|
97
98
|
bic: isABA ? null : values.bic || null,
|
|
98
99
|
routing_number: isABA ? values.routing_number || null : null,
|
|
99
|
-
account_number: values.account_number || null
|
|
100
|
+
account_number: values.account_number || null,
|
|
101
|
+
additional_data: values.additional_data
|
|
100
102
|
},
|
|
101
103
|
{
|
|
102
104
|
onSuccess: () => {
|
|
@@ -204,7 +206,16 @@ var StorePaymentDetailsForm = ({
|
|
|
204
206
|
] })
|
|
205
207
|
}
|
|
206
208
|
)
|
|
207
|
-
] })
|
|
209
|
+
] }),
|
|
210
|
+
/* @__PURE__ */ jsx(
|
|
211
|
+
FormExtensionZone,
|
|
212
|
+
{
|
|
213
|
+
model: "seller",
|
|
214
|
+
zone: "payment-details",
|
|
215
|
+
control: form.control,
|
|
216
|
+
data: seller
|
|
217
|
+
}
|
|
218
|
+
)
|
|
208
219
|
] }),
|
|
209
220
|
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
210
221
|
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "small", children: t("actions.cancel") }) }),
|
|
@@ -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
|
] }) });
|
|
@@ -45,11 +45,10 @@ import { Heading } from "@medusajs/ui";
|
|
|
45
45
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
46
46
|
|
|
47
47
|
// src/pages/settings/store/professional-details/store-professional-details-form.tsx
|
|
48
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
|
49
48
|
import { Button, Input, toast } from "@medusajs/ui";
|
|
50
|
-
import { useForm } from "react-hook-form";
|
|
51
49
|
import { useTranslation } from "react-i18next";
|
|
52
50
|
import * as zod from "zod";
|
|
51
|
+
import { FormExtensionZone, useExtendableForm } from "@mercurjs/dashboard-shared";
|
|
53
52
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
54
53
|
var StoreProfessionalDetailsSchema = zod.object({
|
|
55
54
|
corporate_name: zod.string().optional().or(zod.literal("")),
|
|
@@ -62,13 +61,15 @@ var StoreProfessionalDetailsForm = ({
|
|
|
62
61
|
const { t } = useTranslation();
|
|
63
62
|
const { handleSuccess } = useRouteModal();
|
|
64
63
|
const details = seller.professional_details;
|
|
65
|
-
const form =
|
|
64
|
+
const form = useExtendableForm({
|
|
65
|
+
schema: StoreProfessionalDetailsSchema,
|
|
66
|
+
model: "seller",
|
|
67
|
+
data: seller,
|
|
66
68
|
defaultValues: {
|
|
67
69
|
corporate_name: details?.corporate_name ?? "",
|
|
68
70
|
registration_number: details?.registration_number ?? "",
|
|
69
71
|
tax_id: details?.tax_id ?? ""
|
|
70
|
-
}
|
|
71
|
-
resolver: zodResolver(StoreProfessionalDetailsSchema)
|
|
72
|
+
}
|
|
72
73
|
});
|
|
73
74
|
const { mutateAsync, isPending } = useUpdateSellerProfessionalDetails(
|
|
74
75
|
seller.id
|
|
@@ -78,7 +79,8 @@ var StoreProfessionalDetailsForm = ({
|
|
|
78
79
|
{
|
|
79
80
|
corporate_name: values.corporate_name || null,
|
|
80
81
|
registration_number: values.registration_number || null,
|
|
81
|
-
tax_id: values.tax_id || null
|
|
82
|
+
tax_id: values.tax_id || null,
|
|
83
|
+
additional_data: values.additional_data
|
|
82
84
|
},
|
|
83
85
|
{
|
|
84
86
|
onSuccess: () => {
|
|
@@ -135,6 +137,15 @@ var StoreProfessionalDetailsForm = ({
|
|
|
135
137
|
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
136
138
|
] })
|
|
137
139
|
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
FormExtensionZone,
|
|
143
|
+
{
|
|
144
|
+
model: "seller",
|
|
145
|
+
zone: "professional-details",
|
|
146
|
+
control: form.control,
|
|
147
|
+
data: seller
|
|
148
|
+
}
|
|
138
149
|
)
|
|
139
150
|
] }),
|
|
140
151
|
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
@@ -55,11 +55,16 @@ 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";
|
|
61
62
|
import { Container, Heading, Text } from "@medusajs/ui";
|
|
62
63
|
import { useTranslation } from "react-i18next";
|
|
64
|
+
import {
|
|
65
|
+
DisplayExtensionZone,
|
|
66
|
+
DisplayField
|
|
67
|
+
} from "@mercurjs/dashboard-shared";
|
|
63
68
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
64
69
|
var ProfileGeneralSection = () => {
|
|
65
70
|
const { i18n, t } = useTranslation();
|
|
@@ -88,25 +93,28 @@ var ProfileGeneralSection = () => {
|
|
|
88
93
|
}
|
|
89
94
|
)
|
|
90
95
|
] }),
|
|
91
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
96
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "member", zone: "general", id: "first_name", data: member, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
92
97
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("profile.fields.firstName", "First name") }),
|
|
93
98
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: member?.first_name || "-" })
|
|
94
|
-
] }),
|
|
95
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
99
|
+
] }) }),
|
|
100
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "member", zone: "general", id: "last_name", data: member, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
96
101
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("profile.fields.lastName", "Last name") }),
|
|
97
102
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: member?.last_name || "-" })
|
|
98
|
-
] }),
|
|
99
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
103
|
+
] }) }),
|
|
104
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "member", zone: "general", id: "language", data: member, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
100
105
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("profile.fields.languageLabel") }),
|
|
101
106
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: languages.find((lang) => lang.code === i18n.language)?.display_name || "-" })
|
|
102
|
-
] })
|
|
107
|
+
] }) }),
|
|
108
|
+
/* @__PURE__ */ jsx(DisplayExtensionZone, { model: "member", zone: "general", data: member })
|
|
103
109
|
] });
|
|
104
110
|
};
|
|
105
111
|
|
|
106
112
|
// src/pages/settings/profile/profile-detail/profile-detail.tsx
|
|
107
113
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
108
114
|
var Root = ({ children }) => {
|
|
109
|
-
|
|
115
|
+
const { seller_member } = useMe();
|
|
116
|
+
const member = seller_member?.member;
|
|
117
|
+
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, {}) }) });
|
|
110
118
|
};
|
|
111
119
|
var ProfileDetailPage = Object.assign(Root, {
|
|
112
120
|
GeneralSection: ProfileGeneralSection
|
|
@@ -117,11 +125,10 @@ import { Heading as Heading2 } from "@medusajs/ui";
|
|
|
117
125
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
118
126
|
|
|
119
127
|
// src/pages/settings/profile/profile-edit/components/edit-profile-form/edit-profile-form.tsx
|
|
120
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
|
121
128
|
import { Button, Input, Select, toast } from "@medusajs/ui";
|
|
122
|
-
import { useForm } from "react-hook-form";
|
|
123
129
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
124
130
|
import * as zod from "zod";
|
|
131
|
+
import { FormExtensionZone, useExtendableForm } from "@mercurjs/dashboard-shared";
|
|
125
132
|
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
126
133
|
var EditProfileSchema = zod.object({
|
|
127
134
|
first_name: zod.string().optional().or(zod.literal("")),
|
|
@@ -134,13 +141,15 @@ var EditProfileForm = () => {
|
|
|
134
141
|
const direction = useDocumentDirection();
|
|
135
142
|
const { seller_member } = useMe();
|
|
136
143
|
const member = seller_member?.member;
|
|
137
|
-
const form =
|
|
144
|
+
const form = useExtendableForm({
|
|
145
|
+
schema: EditProfileSchema,
|
|
146
|
+
model: "member",
|
|
147
|
+
data: member,
|
|
138
148
|
defaultValues: {
|
|
139
149
|
first_name: member?.first_name ?? "",
|
|
140
150
|
last_name: member?.last_name ?? "",
|
|
141
151
|
language: i18n.language
|
|
142
|
-
}
|
|
143
|
-
resolver: zodResolver(EditProfileSchema)
|
|
152
|
+
}
|
|
144
153
|
});
|
|
145
154
|
const sortedLanguages = languages.sort(
|
|
146
155
|
(a, b) => a.display_name.localeCompare(b.display_name)
|
|
@@ -150,7 +159,8 @@ var EditProfileForm = () => {
|
|
|
150
159
|
await updateMe(
|
|
151
160
|
{
|
|
152
161
|
first_name: values.first_name || null,
|
|
153
|
-
last_name: values.last_name || null
|
|
162
|
+
last_name: values.last_name || null,
|
|
163
|
+
additional_data: values.additional_data
|
|
154
164
|
},
|
|
155
165
|
{
|
|
156
166
|
onSuccess: async () => {
|
|
@@ -234,6 +244,15 @@ var EditProfileForm = () => {
|
|
|
234
244
|
] })
|
|
235
245
|
] })
|
|
236
246
|
}
|
|
247
|
+
),
|
|
248
|
+
/* @__PURE__ */ jsx3(
|
|
249
|
+
FormExtensionZone,
|
|
250
|
+
{
|
|
251
|
+
model: "member",
|
|
252
|
+
zone: "edit",
|
|
253
|
+
control: form.control,
|
|
254
|
+
data: member
|
|
255
|
+
}
|
|
237
256
|
)
|
|
238
257
|
] }) }),
|
|
239
258
|
/* @__PURE__ */ jsx3(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
|
|
@@ -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";
|
|
@@ -401,7 +401,7 @@ var StoreGeneralSection = ({
|
|
|
401
401
|
/* @__PURE__ */ jsx4(
|
|
402
402
|
DisplayField,
|
|
403
403
|
{
|
|
404
|
-
model: "
|
|
404
|
+
model: "seller",
|
|
405
405
|
zone: "general",
|
|
406
406
|
id: "description",
|
|
407
407
|
data: seller,
|
|
@@ -411,22 +411,22 @@ var StoreGeneralSection = ({
|
|
|
411
411
|
] })
|
|
412
412
|
}
|
|
413
413
|
),
|
|
414
|
-
/* @__PURE__ */ jsx4(DisplayField, { model: "
|
|
414
|
+
/* @__PURE__ */ jsx4(DisplayField, { 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
415
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
416
416
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
|
|
417
417
|
] }) }),
|
|
418
|
-
/* @__PURE__ */ jsx4(DisplayField, { model: "
|
|
418
|
+
/* @__PURE__ */ jsx4(DisplayField, { 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
419
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
|
|
420
420
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.email || "-" })
|
|
421
421
|
] }) }),
|
|
422
|
-
/* @__PURE__ */ jsx4(DisplayField, { model: "
|
|
422
|
+
/* @__PURE__ */ jsx4(DisplayField, { 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
423
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
|
|
424
424
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.phone || "-" })
|
|
425
425
|
] }) }),
|
|
426
426
|
/* @__PURE__ */ jsx4(
|
|
427
427
|
DisplayField,
|
|
428
428
|
{
|
|
429
|
-
model: "
|
|
429
|
+
model: "seller",
|
|
430
430
|
zone: "general",
|
|
431
431
|
id: "website_url",
|
|
432
432
|
data: seller,
|
|
@@ -439,7 +439,7 @@ var StoreGeneralSection = ({
|
|
|
439
439
|
/* @__PURE__ */ jsx4(
|
|
440
440
|
DisplayField,
|
|
441
441
|
{
|
|
442
|
-
model: "
|
|
442
|
+
model: "seller",
|
|
443
443
|
zone: "general",
|
|
444
444
|
id: "currency_code",
|
|
445
445
|
data: seller,
|
|
@@ -586,7 +586,7 @@ var Root = ({ children }) => {
|
|
|
586
586
|
}
|
|
587
587
|
})();
|
|
588
588
|
const StatusBanner = () => /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
589
|
-
/* @__PURE__ */ jsx7(WidgetZone, { id: "
|
|
589
|
+
/* @__PURE__ */ jsx7(WidgetZone, { id: "seller.setup", data: seller }),
|
|
590
590
|
statusAlert && /* @__PURE__ */ jsxs7(Alert, { variant: statusAlert.variant, dismissible: true, className: "p-5", children: [
|
|
591
591
|
/* @__PURE__ */ jsx7("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: statusAlert.title }),
|
|
592
592
|
/* @__PURE__ */ jsx7(Text5, { className: "text-ui-fg-subtle txt-small leading-normal", children: statusAlert.description })
|
|
@@ -127,7 +127,7 @@ var StoreSelectList = ({
|
|
|
127
127
|
DisplayField,
|
|
128
128
|
{
|
|
129
129
|
model: "seller",
|
|
130
|
-
zone: "
|
|
130
|
+
zone: "seller-select",
|
|
131
131
|
id: "status",
|
|
132
132
|
data: seller,
|
|
133
133
|
children: badge ? /* @__PURE__ */ jsx(StatusBadge, { color: badge.color, children: badge.label }) : null
|
|
@@ -137,7 +137,7 @@ var StoreSelectList = ({
|
|
|
137
137
|
DisplayExtensionZone,
|
|
138
138
|
{
|
|
139
139
|
model: "seller",
|
|
140
|
-
zone: "
|
|
140
|
+
zone: "seller-select",
|
|
141
141
|
data: seller
|
|
142
142
|
}
|
|
143
143
|
),
|
|
@@ -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.43",
|
|
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.43",
|
|
38
|
+
"@mercurjs/client": "2.2.0-canary.43",
|
|
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.43",
|
|
92
|
+
"@mercurjs/dashboard-sdk": "2.2.0-canary.43",
|
|
93
|
+
"@mercurjs/types": "2.2.0-canary.43"
|
|
94
94
|
}
|
|
95
95
|
}
|