@mercurjs/vendor 2.1.2-canary.5 → 2.1.2
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]-5M6VHH3W.js → [id]-3G5G7ZFV.js} +3 -3
- package/dist/{[id]-EGXWMHVQ.js → [id]-4VCL3MMM.js} +4 -4
- package/dist/{[id]-CLZ7BUYL.js → [id]-6PXEWRG7.js} +3 -3
- package/dist/{[id]-UO5NDM4O.js → [id]-7RUAH3TI.js} +1 -1
- package/dist/{[id]-I5ES5RW7.js → [id]-B3LHVQM5.js} +3 -3
- package/dist/{[id]-STUTFCFY.js → [id]-BYP37PU4.js} +31 -13
- package/dist/{[id]-MZU34PWO.js → [id]-H3C3ZSC6.js} +4 -4
- package/dist/{[id]-HD5OSKLX.js → [id]-INOFZHL7.js} +22 -19
- package/dist/{[id]-RHMPOA6V.js → [id]-PDGHF5J2.js} +5 -5
- package/dist/{[id]-QSE3P3LI.js → [id]-T2ROPEGY.js} +1 -1
- package/dist/{[id]-ZD26ACGU.js → [id]-TO6KT3ZE.js} +4 -4
- package/dist/{[id]-DZFTYO7U.js → [id]-UTKO3VG4.js} +3 -3
- package/dist/{[id]-5VUGXK2D.js → [id]-X4DDKOMQ.js} +4 -4
- package/dist/{[id]-XRGNT7CY.js → [id]-Y7GAMNC5.js} +1 -1
- package/dist/{[location_id]-7ZUB2TTU.js → [location_id]-D55RQOXT.js} +1 -1
- package/dist/{[province_id]-XGKNI5CN.js → [province_id]-OFH2ZOFQ.js} +3 -3
- package/dist/{add-O5M7AHMZ.js → add-C6OX5C54.js} +6 -6
- package/dist/{add-AYU5KCKP.js → add-KRAGFFBJ.js} +2 -2
- package/dist/{add-customer-groups-TJVGXKOA.js → add-customer-groups-PJRJUWS2.js} +2 -2
- package/dist/{add-products-NZ7TOIER.js → add-products-INOLNPO6.js} +3 -3
- package/dist/{add-promotions-FBRIMPCD.js → add-promotions-AHDOP52Q.js} +2 -2
- package/dist/{allocate-items-HUPFVTUR.js → allocate-items-SUCUZU4D.js} +7 -3
- package/dist/{areas-JO6L3M7Y.js → areas-UUMZDXLX.js} +3 -3
- package/dist/{bulk-edit-S7UU3C3C.js → bulk-edit-3SMBLIOA.js} +1 -1
- package/dist/{campaigns-SF2YDBID.js → campaigns-HS6MIO7X.js} +4 -4
- package/dist/{categories-IKMG6JX7.js → categories-PKWR3FM3.js} +4 -4
- package/dist/{chunk-AW4WN2EK.js → chunk-2RHAI7WK.js} +2 -2
- package/dist/{chunk-S2Q7PO7I.js → chunk-4KX6CBJ4.js} +1 -0
- package/dist/{chunk-DBTM52PI.js → chunk-4URLUCTD.js} +2 -2
- package/dist/{chunk-AIRJ4WZG.js → chunk-5M3SL4UZ.js} +4 -5
- package/dist/{chunk-5BONGICL.js → chunk-5UD4P6YL.js} +1 -1
- package/dist/{chunk-2SLAVXFY.js → chunk-6SBMVLJ2.js} +2 -2
- package/dist/{chunk-GWD2S44A.js → chunk-7Q5SDEK7.js} +3 -3
- package/dist/{chunk-QXUKJDZB.js → chunk-AIF2KTEE.js} +15 -12
- package/dist/{chunk-RM5RSDYP.js → chunk-CAS74NLJ.js} +4 -2
- package/dist/{chunk-3U63R3MT.js → chunk-CNLP35S7.js} +0 -2
- package/dist/{chunk-2UBZMAHM.js → chunk-CYTNBXWF.js} +2 -2
- package/dist/{chunk-DRLJXEDA.js → chunk-DKQ4XMSN.js} +2 -2
- package/dist/{chunk-A4LYFHPW.js → chunk-HGQTL7NX.js} +2 -2
- package/dist/{chunk-MXDS2AT4.js → chunk-I2IKYOZX.js} +3 -3
- package/dist/{chunk-KY5JBVSS.js → chunk-ITI54CII.js} +1 -1
- package/dist/{chunk-GL6V5Z6U.js → chunk-J6BRLL3F.js} +2 -2
- package/dist/{chunk-FEUCCLKR.js → chunk-JQP7MOFH.js} +2 -2
- package/dist/chunk-LQYMBSRQ.js +66 -0
- package/dist/{chunk-RXHRAJX6.js → chunk-OXXL4WQU.js} +1 -1
- package/dist/{chunk-DRAZNW7J.js → chunk-P3ZTO6T2.js} +2 -2
- package/dist/{chunk-3BZBEC3Y.js → chunk-PDQSPKG5.js} +6 -5
- package/dist/{chunk-3DXMZA7M.js → chunk-PEKANQ3T.js} +2 -2
- package/dist/{chunk-TZTKHOEK.js → chunk-PFU6FSXY.js} +3 -3
- package/dist/{chunk-5LKZCG77.js → chunk-PPLC4IKI.js} +6 -15
- package/dist/{chunk-SGT6QYWH.js → chunk-PTW7JNAP.js} +1 -1
- package/dist/{chunk-I5K5USJM.js → chunk-QJEOPT2P.js} +1 -1
- package/dist/{chunk-EFIF2GCZ.js → chunk-QX45GVAL.js} +10 -4
- package/dist/{chunk-W4727YRF.js → chunk-STR3NGWE.js} +39 -32
- package/dist/{chunk-M2RIKNDT.js → chunk-VQ5EKDA3.js} +2 -2
- package/dist/{chunk-RLETOWCM.js → chunk-WITQNQXN.js} +2 -2
- package/dist/{chunk-WQX4ASK4.js → chunk-WNVEMFIK.js} +2 -2
- package/dist/{chunk-FQTYHU6G.js → chunk-X4FLOQ45.js} +2 -2
- package/dist/{chunk-W3TUVTRK.js → chunk-Y2QI7KWS.js} +9 -8
- package/dist/chunk-YGRTRAWX.js +163 -0
- package/dist/{chunk-LYUCDASZ.js → chunk-YN3FGNJM.js} +11 -4
- package/dist/{collections-UJ4B6SLM.js → collections-DJZI2RM2.js} +6 -6
- package/dist/{configuration-O5GDANA7.js → configuration-GN3TO77H.js} +4 -25
- package/dist/{create-W7DMQS3H.js → create-3DOO3RNH.js} +8 -4
- package/dist/{create-HDINR4VV.js → create-3EK5CNNX.js} +5 -5
- package/dist/{create-P7DGM4QT.js → create-3ZVXEPX5.js} +11 -26
- package/dist/{create-WT6EYIQD.js → create-G4T2PAJH.js} +7 -2
- package/dist/{create-6CQ3HRIK.js → create-HKJVSFB7.js} +1 -1
- package/dist/{create-Q6ITSYJM.js → create-I7HV3RM6.js} +1 -1
- package/dist/{create-IOUKWPE4.js → create-OCFPLNNY.js} +3 -3
- package/dist/{create-6LLSQO2D.js → create-OGLPDVOI.js} +11 -3
- package/dist/{create-B25YUE35.js → create-YO55Z3YD.js} +8 -8
- package/dist/{customers-OXAD52MC.js → customers-6ZLE65UX.js} +4 -4
- package/dist/{edit-G5BAEVBL.js → edit-2KRJIPRK.js} +3 -3
- package/dist/{edit-A2TSQ7UD.js → edit-B75KK5ZX.js} +5 -5
- package/dist/{edit-PD56B3YH.js → edit-IR6V2IDN.js} +3 -3
- package/dist/{edit-PGXUW4QC.js → edit-QBISX7D3.js} +29 -23
- package/dist/{edit-MU726DI3.js → edit-VO5XLIEL.js} +1 -1
- package/dist/{edit-4RBKLEW5.js → edit-ZSOI56BQ.js} +1 -1
- package/dist/{edit-stocks-and-prices-ZXBXENLJ.js → edit-stocks-and-prices-MHHQFWFA.js} +3 -3
- package/dist/{fulfillment-R7LRV54N.js → fulfillment-DCS67LTK.js} +14 -2
- package/dist/{fulfillment-providers-2YQGSI7R.js → fulfillment-providers-GM5PO6N3.js} +7 -9
- package/dist/index.js +100 -100
- package/dist/{inventory-W6S2NIBI.js → inventory-OPZ2FSEE.js} +4 -4
- package/dist/{invite-TVMB7OZZ.js → invite-764K3TJS.js} +2 -2
- package/dist/{locations-7SQJ3O2F.js → locations-ZVPTQCQY.js} +2 -2
- package/dist/{manage-locations-R4T72DTA.js → manage-locations-YUKEFCBJ.js} +32 -29
- package/dist/{media-T5CVLOQY.js → media-4KYFHB5V.js} +2 -2
- package/dist/{onboarding-4HGCO3EK.js → onboarding-WXZHW62K.js} +3 -18
- package/dist/{orders-SSLTNL27.js → orders-LWJ472VM.js} +6 -6
- package/dist/{organization-QCSXE52A.js → organization-LPYQRTQC.js} +1 -1
- package/dist/{organize-5W5KNBM2.js → organize-OVKJ3HZO.js} +1 -1
- package/dist/{organize-U2LVYSOD.js → organize-RFOMQCBG.js} +1 -1
- package/dist/pages/index.js +27 -27
- package/dist/{payouts-MHAHAAFV.js → payouts-TR7K5I37.js} +4 -4
- package/dist/{price-lists-JX22K5EO.js → price-lists-S2WNELFZ.js} +4 -4
- package/dist/{prices-V25NS7PW.js → prices-3OXV5RGY.js} +3 -3
- package/dist/{pricing-WFBOYUSG.js → pricing-UF27DAXA.js} +2 -2
- package/dist/{product-tags-3UAZGIBS.js → product-tags-2CKH2M6D.js} +6 -6
- package/dist/{product-types-MBLFYJOA.js → product-types-FX43JEO2.js} +4 -4
- package/dist/{product-variant-detail-NQRHFOHY.js → product-variant-detail-WV4KXVXR.js} +4 -4
- package/dist/{products-SD7IIG4V.js → products-2LHGS7X3.js} +13 -13
- package/dist/{products-ZQY7KYGJ.js → products-H5EMRJYS.js} +3 -3
- package/dist/{profile-3DVJYKC3.js → profile-PB27WIRW.js} +1 -1
- package/dist/{promotions-Y3NDK3BZ.js → promotions-5EYPGHJP.js} +4 -4
- package/dist/{return-reasons-EMJMFU2L.js → return-reasons-LOKYRGMI.js} +3 -3
- package/dist/{sales-channels-2OVI6RTV.js → sales-channels-7R2IY3KG.js} +1 -1
- package/dist/{sales-channels-BKOYQXVC.js → sales-channels-Y4LRP7JC.js} +1 -1
- package/dist/{settings-XS2GTIVD.js → settings-2XDLFYMS.js} +9 -9
- package/dist/{shipping-profile-JJBIVZPM.js → shipping-profile-R3NABPQF.js} +1 -1
- package/dist/{shipping-profiles-UNNPBX5T.js → shipping-profiles-QVKNFLCW.js} +4 -4
- package/dist/{stock-JQG3Y67T.js → stock-5RXNUPUT.js} +1 -1
- package/dist/{stock-Z3CVQETI.js → stock-GPC3BCL6.js} +1 -1
- package/dist/{store-BGZ7YFQ5.js → store-DE2RGX7T.js} +37 -31
- package/dist/{tax-regions-FPMGLITT.js → tax-regions-UD6P5FVC.js} +1 -1
- package/dist/{team-UJ4ZSZPU.js → team-JXKAVRPU.js} +3 -3
- package/package.json +2 -2
- package/dist/chunk-4DYUQ3G5.js +0 -146
- package/dist/chunk-NCYTM57J.js +0 -160
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
import "./chunk-FQERBIVS.js";
|
|
8
8
|
import {
|
|
9
9
|
useProductTableFilters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CNLP35S7.js";
|
|
11
11
|
import "./chunk-DB6ANJBO.js";
|
|
12
12
|
import "./chunk-PHOCVOZ5.js";
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-AIF2KTEE.js";
|
|
17
|
+
import "./chunk-YN3FGNJM.js";
|
|
18
18
|
import "./chunk-KAZ5BYTQ.js";
|
|
19
19
|
import "./chunk-3EF54XFY.js";
|
|
20
20
|
import "./chunk-TKGWSUEI.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PromotionListPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4URLUCTD.js";
|
|
4
4
|
import "./chunk-N7OVXN72.js";
|
|
5
5
|
import "./chunk-BLVJAKBA.js";
|
|
6
6
|
import "./chunk-JHIMVLB2.js";
|
|
@@ -9,12 +9,12 @@ import "./chunk-FMFVTERD.js";
|
|
|
9
9
|
import "./chunk-FQERBIVS.js";
|
|
10
10
|
import "./chunk-DB6ANJBO.js";
|
|
11
11
|
import "./chunk-PHOCVOZ5.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-AIF2KTEE.js";
|
|
13
|
+
import "./chunk-YN3FGNJM.js";
|
|
14
14
|
import "./chunk-KAZ5BYTQ.js";
|
|
15
15
|
import "./chunk-3EF54XFY.js";
|
|
16
16
|
import "./chunk-KQGVSLUI.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-CAS74NLJ.js";
|
|
18
18
|
import "./chunk-THHRRYRS.js";
|
|
19
19
|
import "./chunk-LRD242C7.js";
|
|
20
20
|
import "./chunk-BOZJOOGW.js";
|
|
@@ -37,14 +37,14 @@ import "./chunk-PHOCVOZ5.js";
|
|
|
37
37
|
import {
|
|
38
38
|
_DataTable,
|
|
39
39
|
useDataTable
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-AIF2KTEE.js";
|
|
41
|
+
import "./chunk-YN3FGNJM.js";
|
|
42
42
|
import "./chunk-KAZ5BYTQ.js";
|
|
43
43
|
import "./chunk-3EF54XFY.js";
|
|
44
44
|
import "./chunk-IQPN4PZJ.js";
|
|
45
45
|
import {
|
|
46
46
|
SingleColumnPage
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-CAS74NLJ.js";
|
|
48
48
|
import "./chunk-THHRRYRS.js";
|
|
49
49
|
import "./chunk-LRD242C7.js";
|
|
50
50
|
import "./chunk-JRTZWK77.js";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
} from "./chunk-ZWTCVOHQ.js";
|
|
4
4
|
import {
|
|
5
5
|
ProductTypeListPage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JQP7MOFH.js";
|
|
7
7
|
import "./chunk-MWQQVKRU.js";
|
|
8
8
|
import {
|
|
9
9
|
ProductTagListPage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HGQTL7NX.js";
|
|
11
11
|
import {
|
|
12
12
|
LocationListPage,
|
|
13
13
|
shippingListLoader
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5UD4P6YL.js";
|
|
15
15
|
import "./chunk-N335VHD3.js";
|
|
16
16
|
import "./chunk-EBZ5VZEO.js";
|
|
17
17
|
import {
|
|
18
18
|
ShippingProfileListPage
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6SBMVLJ2.js";
|
|
20
20
|
import "./chunk-4F5GP7J7.js";
|
|
21
21
|
import "./chunk-7TIZP4YG.js";
|
|
22
22
|
import "./chunk-JQV7CXEC.js";
|
|
@@ -37,7 +37,7 @@ import "./chunk-S2WEYEQR.js";
|
|
|
37
37
|
import "./chunk-X22KTLZ7.js";
|
|
38
38
|
import "./chunk-6WY5X4PE.js";
|
|
39
39
|
import "./chunk-6YA3C4NB.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-LQYMBSRQ.js";
|
|
41
41
|
import "./chunk-CMHI2RPL.js";
|
|
42
42
|
import "./chunk-BCU3FKP2.js";
|
|
43
43
|
import "./chunk-VW56KWO2.js";
|
|
@@ -51,18 +51,18 @@ import "./chunk-PXYDR7WQ.js";
|
|
|
51
51
|
import "./chunk-GC33DBKG.js";
|
|
52
52
|
import "./chunk-4MFMCZEJ.js";
|
|
53
53
|
import "./chunk-FQERBIVS.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-CNLP35S7.js";
|
|
55
55
|
import "./chunk-DB6ANJBO.js";
|
|
56
56
|
import "./chunk-PHOCVOZ5.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-AIF2KTEE.js";
|
|
58
|
+
import "./chunk-YN3FGNJM.js";
|
|
59
59
|
import "./chunk-KAZ5BYTQ.js";
|
|
60
60
|
import "./chunk-3EF54XFY.js";
|
|
61
61
|
import "./chunk-IQPN4PZJ.js";
|
|
62
62
|
import "./chunk-4GPAS5GW.js";
|
|
63
63
|
import "./chunk-U2EI2ZLM.js";
|
|
64
64
|
import "./chunk-W6Y3PPU5.js";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-CAS74NLJ.js";
|
|
66
66
|
import "./chunk-THHRRYRS.js";
|
|
67
67
|
import "./chunk-LRD242C7.js";
|
|
68
68
|
import "./chunk-JRTZWK77.js";
|
|
@@ -91,7 +91,7 @@ var ProductShippingProfileForm = ({
|
|
|
91
91
|
if (typeof selectedShippingProfile === "undefined") {
|
|
92
92
|
form.setValue("shipping_profile_id", "");
|
|
93
93
|
}
|
|
94
|
-
}, [selectedShippingProfile]);
|
|
94
|
+
}, [selectedShippingProfile, form]);
|
|
95
95
|
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { onSubmit: handleSubmit, className: "flex h-full flex-col", children: [
|
|
96
96
|
/* @__PURE__ */ jsx(RouteDrawer.Body, { children: /* @__PURE__ */ jsx("div", { className: "flex h-full flex-col gap-y-4", children: /* @__PURE__ */ jsx(
|
|
97
97
|
Form.Field,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShippingProfileListPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6SBMVLJ2.js";
|
|
4
4
|
import "./chunk-FQERBIVS.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-AIF2KTEE.js";
|
|
6
|
+
import "./chunk-YN3FGNJM.js";
|
|
7
7
|
import "./chunk-KAZ5BYTQ.js";
|
|
8
8
|
import "./chunk-3EF54XFY.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-CAS74NLJ.js";
|
|
10
10
|
import "./chunk-THHRRYRS.js";
|
|
11
11
|
import "./chunk-LRD242C7.js";
|
|
12
12
|
import "./chunk-47SXTGLN.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk-U2EI2ZLM.js";
|
|
16
16
|
import {
|
|
17
17
|
TwoColumnPage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CAS74NLJ.js";
|
|
19
19
|
import {
|
|
20
20
|
DataTable
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PPLC4IKI.js";
|
|
22
22
|
import "./chunk-THHRRYRS.js";
|
|
23
23
|
import {
|
|
24
24
|
useDate
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
|
|
73
73
|
// src/pages/settings/store/store-detail-page.tsx
|
|
74
74
|
import { Children as Children3 } from "react";
|
|
75
|
-
import { Alert, Text as
|
|
75
|
+
import { Alert, Text as Text6 } from "@medusajs/ui";
|
|
76
76
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
77
77
|
import components from "virtual:mercur/components";
|
|
78
78
|
var import_types2 = __toESM(require_dist(), 1);
|
|
@@ -233,7 +233,13 @@ var StoreTimeOffSection = ({ seller }) => {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
],
|
|
236
|
-
|
|
236
|
+
/* oxlint-disable react-hooks/exhaustive-deps */
|
|
237
|
+
[
|
|
238
|
+
t,
|
|
239
|
+
getFullDate,
|
|
240
|
+
handleDelete
|
|
241
|
+
]
|
|
242
|
+
/* oxlint-enable react-hooks/exhaustive-deps */
|
|
237
243
|
);
|
|
238
244
|
if (data.length === 0) {
|
|
239
245
|
return /* @__PURE__ */ jsxs2(Container2, { className: "flex flex-col overflow-hidden p-0", children: [
|
|
@@ -269,7 +275,7 @@ var StoreTimeOffSection = ({ seller }) => {
|
|
|
269
275
|
|
|
270
276
|
// src/pages/settings/store/_components/store-general-section.tsx
|
|
271
277
|
import { Children as Children2 } from "react";
|
|
272
|
-
import { Badge, Container as Container3, Text as
|
|
278
|
+
import { Badge, Container as Container3, Text as Text2 } from "@medusajs/ui";
|
|
273
279
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
274
280
|
|
|
275
281
|
// src/pages/settings/store/_components/store-detail-header.tsx
|
|
@@ -395,30 +401,30 @@ var StoreGeneralSection = ({
|
|
|
395
401
|
) }),
|
|
396
402
|
/* @__PURE__ */ jsx4(StoreDetailHeader, { seller }),
|
|
397
403
|
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
398
|
-
/* @__PURE__ */ jsx4(
|
|
399
|
-
/* @__PURE__ */ jsx4(
|
|
404
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
|
|
405
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.description || "-" })
|
|
400
406
|
] }),
|
|
401
407
|
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
402
|
-
/* @__PURE__ */ jsx4(
|
|
403
|
-
/* @__PURE__ */ jsx4(
|
|
408
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
409
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
|
|
404
410
|
] }),
|
|
405
411
|
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
406
|
-
/* @__PURE__ */ jsx4(
|
|
407
|
-
/* @__PURE__ */ jsx4(
|
|
412
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
|
|
413
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.email || "-" })
|
|
408
414
|
] }),
|
|
409
415
|
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
410
|
-
/* @__PURE__ */ jsx4(
|
|
411
|
-
/* @__PURE__ */ jsx4(
|
|
416
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
|
|
417
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.phone || "-" })
|
|
412
418
|
] }),
|
|
413
419
|
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
414
|
-
/* @__PURE__ */ jsx4(
|
|
415
|
-
/* @__PURE__ */ jsx4(
|
|
420
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.website") }),
|
|
421
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.website_url || "-" })
|
|
416
422
|
] }),
|
|
417
423
|
/* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
418
|
-
/* @__PURE__ */ jsx4(
|
|
424
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.currency") }),
|
|
419
425
|
/* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
|
|
420
426
|
/* @__PURE__ */ jsx4(Badge, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
|
|
421
|
-
/* @__PURE__ */ jsx4(
|
|
427
|
+
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: currencies[seller.currency_code?.toUpperCase()]?.name || "-" })
|
|
422
428
|
] })
|
|
423
429
|
] })
|
|
424
430
|
] }) });
|
|
@@ -426,7 +432,7 @@ var StoreGeneralSection = ({
|
|
|
426
432
|
|
|
427
433
|
// src/pages/settings/store/_components/store-subscription-section.tsx
|
|
428
434
|
import { CurrencyDollar } from "@medusajs/icons";
|
|
429
|
-
import { Container as Container4, Heading as Heading4, Text as
|
|
435
|
+
import { Container as Container4, Heading as Heading4, Text as Text3 } from "@medusajs/ui";
|
|
430
436
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
431
437
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
432
438
|
var StoreSubscriptionSection = ({
|
|
@@ -443,9 +449,9 @@ var StoreSubscriptionSection = ({
|
|
|
443
449
|
/* @__PURE__ */ jsx5("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx5("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-4", children: [
|
|
444
450
|
/* @__PURE__ */ jsx5(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx5(CurrencyDollar, {}) }),
|
|
445
451
|
/* @__PURE__ */ jsxs5("div", { className: "flex flex-1 flex-col", children: [
|
|
446
|
-
/* @__PURE__ */ jsx5(
|
|
452
|
+
/* @__PURE__ */ jsx5(Text3, { size: "small", leading: "compact", weight: "plus", children: subscription_plan.currency_code?.toUpperCase() }),
|
|
447
453
|
/* @__PURE__ */ jsxs5(
|
|
448
|
-
|
|
454
|
+
Text3,
|
|
449
455
|
{
|
|
450
456
|
size: "small",
|
|
451
457
|
leading: "compact",
|
|
@@ -467,7 +473,7 @@ var StoreSubscriptionSection = ({
|
|
|
467
473
|
|
|
468
474
|
// src/pages/settings/store/_components/store-payment-details-section.tsx
|
|
469
475
|
import { CreditCard, PencilSquare as PencilSquare4 } from "@medusajs/icons";
|
|
470
|
-
import { Container as Container5, Heading as Heading5, Text as
|
|
476
|
+
import { Container as Container5, Heading as Heading5, Text as Text4 } from "@medusajs/ui";
|
|
471
477
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
472
478
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
473
479
|
var StorePaymentDetailsSection = ({
|
|
@@ -501,9 +507,9 @@ var StorePaymentDetailsSection = ({
|
|
|
501
507
|
details ? /* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx6("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-4", children: [
|
|
502
508
|
/* @__PURE__ */ jsx6(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx6(CreditCard, {}) }),
|
|
503
509
|
/* @__PURE__ */ jsxs6("div", { className: "flex flex-1 flex-col", children: [
|
|
504
|
-
/* @__PURE__ */ jsx6(
|
|
510
|
+
/* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: details.holder_name || "-" }),
|
|
505
511
|
/* @__PURE__ */ jsx6(
|
|
506
|
-
|
|
512
|
+
Text4,
|
|
507
513
|
{
|
|
508
514
|
size: "small",
|
|
509
515
|
leading: "compact",
|
|
@@ -513,15 +519,15 @@ var StorePaymentDetailsSection = ({
|
|
|
513
519
|
)
|
|
514
520
|
] })
|
|
515
521
|
] }) }) }) : /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
|
|
516
|
-
/* @__PURE__ */ jsx6(
|
|
517
|
-
/* @__PURE__ */ jsx6(
|
|
522
|
+
/* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: t("store.paymentDetails.empty.title") }),
|
|
523
|
+
/* @__PURE__ */ jsx6(Text4, { size: "small", className: "text-ui-fg-muted", children: t("store.paymentDetails.empty.message") })
|
|
518
524
|
] })
|
|
519
525
|
] });
|
|
520
526
|
};
|
|
521
527
|
|
|
522
528
|
// src/pages/settings/store/_components/store-professional-details-section.tsx
|
|
523
529
|
import { Buildings, PencilSquare as PencilSquare5 } from "@medusajs/icons";
|
|
524
|
-
import { Container as Container6, Heading as Heading6, Text as
|
|
530
|
+
import { Container as Container6, Heading as Heading6, Text as Text5 } from "@medusajs/ui";
|
|
525
531
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
526
532
|
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
527
533
|
var StoreProfessionalDetailsSection = ({
|
|
@@ -553,9 +559,9 @@ var StoreProfessionalDetailsSection = ({
|
|
|
553
559
|
hasDetails ? /* @__PURE__ */ jsx7("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx7("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-4", children: [
|
|
554
560
|
/* @__PURE__ */ jsx7(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx7(Buildings, {}) }),
|
|
555
561
|
/* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
|
|
556
|
-
/* @__PURE__ */ jsx7(
|
|
562
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", weight: "plus", children: details?.corporate_name || "-" }),
|
|
557
563
|
/* @__PURE__ */ jsx7(
|
|
558
|
-
|
|
564
|
+
Text5,
|
|
559
565
|
{
|
|
560
566
|
size: "small",
|
|
561
567
|
leading: "compact",
|
|
@@ -565,8 +571,8 @@ var StoreProfessionalDetailsSection = ({
|
|
|
565
571
|
)
|
|
566
572
|
] })
|
|
567
573
|
] }) }) }) : /* @__PURE__ */ jsxs7("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
|
|
568
|
-
/* @__PURE__ */ jsx7(
|
|
569
|
-
/* @__PURE__ */ jsx7(
|
|
574
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", weight: "plus", children: t("store.professionalDetails.empty.title") }),
|
|
575
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", className: "text-ui-fg-muted", children: t("store.professionalDetails.empty.message") })
|
|
570
576
|
] })
|
|
571
577
|
] });
|
|
572
578
|
};
|
|
@@ -605,7 +611,7 @@ var Root = ({ children }) => {
|
|
|
605
611
|
StoreSetup && /* @__PURE__ */ jsx8(StoreSetup, { seller }),
|
|
606
612
|
statusAlert && /* @__PURE__ */ jsxs8(Alert, { variant: statusAlert.variant, dismissible: true, className: "p-5", children: [
|
|
607
613
|
/* @__PURE__ */ jsx8("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: statusAlert.title }),
|
|
608
|
-
/* @__PURE__ */ jsx8(
|
|
614
|
+
/* @__PURE__ */ jsx8(Text6, { className: "text-ui-fg-subtle txt-small leading-normal", children: statusAlert.description })
|
|
609
615
|
] })
|
|
610
616
|
] });
|
|
611
617
|
if (Children3.count(children) > 0) {
|
|
@@ -21,13 +21,13 @@ import "./chunk-PHOCVOZ5.js";
|
|
|
21
21
|
import {
|
|
22
22
|
_DataTable,
|
|
23
23
|
useDataTable
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-AIF2KTEE.js";
|
|
25
|
+
import "./chunk-YN3FGNJM.js";
|
|
26
26
|
import "./chunk-KAZ5BYTQ.js";
|
|
27
27
|
import "./chunk-3EF54XFY.js";
|
|
28
28
|
import {
|
|
29
29
|
SingleColumnPage
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CAS74NLJ.js";
|
|
31
31
|
import "./chunk-THHRRYRS.js";
|
|
32
32
|
import "./chunk-LRD242C7.js";
|
|
33
33
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercurjs/vendor",
|
|
3
|
-
"version": "2.1.2
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mercurjs/mercur",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"dev": "tsup --watch",
|
|
28
28
|
"build": "tsup",
|
|
29
|
-
"lint": "
|
|
29
|
+
"lint": "oxlint --max-warnings 0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@mercurjs/dashboard-shared": "2.1.2-canary.0",
|
package/dist/chunk-4DYUQ3G5.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useRegions
|
|
3
|
-
} from "./chunk-UL4O5M4S.js";
|
|
4
|
-
import {
|
|
5
|
-
useSalesChannels
|
|
6
|
-
} from "./chunk-3B34B2M2.js";
|
|
7
|
-
|
|
8
|
-
// src/hooks/table/filters/use-order-table-filters.tsx
|
|
9
|
-
import { useTranslation } from "react-i18next";
|
|
10
|
-
import { useMemo } from "react";
|
|
11
|
-
var useOrderTableFilters = () => {
|
|
12
|
-
const { t } = useTranslation();
|
|
13
|
-
const { regions } = useRegions({
|
|
14
|
-
limit: 1e3,
|
|
15
|
-
fields: "id,name"
|
|
16
|
-
});
|
|
17
|
-
const { sales_channels } = useSalesChannels({
|
|
18
|
-
limit: 1e3,
|
|
19
|
-
fields: "id,name"
|
|
20
|
-
});
|
|
21
|
-
return useMemo(() => {
|
|
22
|
-
let filters = [];
|
|
23
|
-
if (regions) {
|
|
24
|
-
const regionFilter = {
|
|
25
|
-
key: "region_id",
|
|
26
|
-
label: t("fields.region"),
|
|
27
|
-
type: "select",
|
|
28
|
-
options: regions.map((r) => ({
|
|
29
|
-
label: r.name,
|
|
30
|
-
value: r.id
|
|
31
|
-
})),
|
|
32
|
-
multiple: true,
|
|
33
|
-
searchable: true
|
|
34
|
-
};
|
|
35
|
-
filters.push(regionFilter);
|
|
36
|
-
}
|
|
37
|
-
if (sales_channels) {
|
|
38
|
-
const salesChannelFilter = {
|
|
39
|
-
key: "sales_channel_id",
|
|
40
|
-
label: t("fields.salesChannel"),
|
|
41
|
-
type: "select",
|
|
42
|
-
multiple: true,
|
|
43
|
-
searchable: true,
|
|
44
|
-
options: sales_channels.map((s) => ({
|
|
45
|
-
label: s.name,
|
|
46
|
-
value: s.id
|
|
47
|
-
}))
|
|
48
|
-
};
|
|
49
|
-
filters.push(salesChannelFilter);
|
|
50
|
-
}
|
|
51
|
-
const paymentStatusFilter = {
|
|
52
|
-
key: "payment_status",
|
|
53
|
-
label: t("orders.payment.statusLabel"),
|
|
54
|
-
type: "select",
|
|
55
|
-
multiple: true,
|
|
56
|
-
options: [
|
|
57
|
-
{
|
|
58
|
-
label: t("orders.payment.status.notPaid"),
|
|
59
|
-
value: "not_paid"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: t("orders.payment.status.awaiting"),
|
|
63
|
-
value: "awaiting"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
label: t("orders.payment.status.captured"),
|
|
67
|
-
value: "captured"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
label: t("orders.payment.status.refunded"),
|
|
71
|
-
value: "refunded"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
label: t("orders.payment.status.partiallyRefunded"),
|
|
75
|
-
value: "partially_refunded"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
label: t("orders.payment.status.canceled"),
|
|
79
|
-
value: "canceled"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
label: t("orders.payment.status.requiresAction"),
|
|
83
|
-
value: "requires_action"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
};
|
|
87
|
-
const fulfillmentStatusFilter = {
|
|
88
|
-
key: "fulfillment_status",
|
|
89
|
-
label: t("orders.fulfillment.statusLabel"),
|
|
90
|
-
type: "select",
|
|
91
|
-
multiple: true,
|
|
92
|
-
options: [
|
|
93
|
-
{
|
|
94
|
-
label: t("orders.fulfillment.status.notFulfilled"),
|
|
95
|
-
value: "not_fulfilled"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
label: t("orders.fulfillment.status.fulfilled"),
|
|
99
|
-
value: "fulfilled"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
label: t("orders.fulfillment.status.partiallyFulfilled"),
|
|
103
|
-
value: "partially_fulfilled"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
label: t("orders.fulfillment.status.returned"),
|
|
107
|
-
value: "returned"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
label: t("orders.fulfillment.status.partiallyReturned"),
|
|
111
|
-
value: "partially_returned"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
label: t("orders.fulfillment.status.shipped"),
|
|
115
|
-
value: "shipped"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
label: t("orders.fulfillment.status.partiallyShipped"),
|
|
119
|
-
value: "partially_shipped"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
label: t("orders.fulfillment.status.canceled"),
|
|
123
|
-
value: "canceled"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
label: t("orders.fulfillment.status.requiresAction"),
|
|
127
|
-
value: "requires_action"
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
};
|
|
131
|
-
const dateFilters = [
|
|
132
|
-
{ label: t("fields.createdAt"), key: "created_at" },
|
|
133
|
-
{ label: t("fields.updatedAt"), key: "updated_at" }
|
|
134
|
-
].map((f) => ({
|
|
135
|
-
key: f.key,
|
|
136
|
-
label: f.label,
|
|
137
|
-
type: "date"
|
|
138
|
-
}));
|
|
139
|
-
filters.push(...dateFilters);
|
|
140
|
-
return filters;
|
|
141
|
-
}, [regions, sales_channels, t]);
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export {
|
|
145
|
-
useOrderTableFilters
|
|
146
|
-
};
|