@mercurjs/admin 2.2.0-canary.51 → 2.2.0-canary.53
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/{category-detail-3WUCMDWO.js → category-detail-KVGWGOXO.js} +2 -2
- package/dist/{category-products-TTQGSVUC.js → category-products-3Z7IEXQX.js} +1 -1
- package/dist/{chunk-PEUWV5YK.js → chunk-3GOUKEPE.js} +22 -8
- package/dist/{chunk-RT2MBSJQ.js → chunk-3VMIKSCF.js} +1 -1
- package/dist/{chunk-BHF4TD3T.js → chunk-4CF6MCTB.js} +1 -1
- package/dist/{chunk-DMZDXTS5.js → chunk-6FZYSGM6.js} +1 -1
- package/dist/{chunk-2KERYQNF.js → chunk-7KLIV4DG.js} +1 -1
- package/dist/{chunk-UK5CZJ4A.js → chunk-CKWG7MDV.js} +1 -1
- package/dist/{chunk-3F4Z4BNA.js → chunk-CLDUJCYN.js} +1 -1
- package/dist/{chunk-VHOCBKSA.js → chunk-D74PZCTO.js} +1 -1
- package/dist/{chunk-QA7S7WVH.js → chunk-DPBZDNIP.js} +5 -3
- package/dist/{chunk-O7SDCQD6.js → chunk-EFUP5XI6.js} +2 -2
- package/dist/{chunk-CWQKHTH6.js → chunk-EQV3YDNF.js} +3 -4
- package/dist/{chunk-F57NIOVJ.js → chunk-HSSKMCXJ.js} +1 -1
- package/dist/{chunk-IJ2CSCLP.js → chunk-JSI7IOMU.js} +3 -3
- package/dist/{chunk-P2JA3QTQ.js → chunk-NM7UMMTI.js} +1 -1
- package/dist/{chunk-6S5RUSUU.js → chunk-OSDDXAP2.js} +1 -1
- package/dist/{chunk-EKPXN6RL.js → chunk-PDID73QY.js} +538 -536
- package/dist/{chunk-JJOITP32.js → chunk-QXJFQDMJ.js} +1 -1
- package/dist/{chunk-LQQERWMM.js → chunk-RX4VERJZ.js} +1 -1
- package/dist/{chunk-5NSOIZFB.js → chunk-S4IDR46L.js} +3 -3
- package/dist/{chunk-HYDXR5K4.js → chunk-VB7LMHAF.js} +1 -1
- package/dist/{chunk-VQ6OPDS3.js → chunk-WTVSHPKP.js} +1 -1
- package/dist/{collection-add-products-TXJAEXUT.js → collection-add-products-LULJ6HVD.js} +1 -1
- package/dist/{collection-detail-FGXNWXAN.js → collection-detail-WEZP4V3E.js} +2 -2
- package/dist/{collection-list-ZLBRTQAC.js → collection-list-KBONBULB.js} +3 -3
- package/dist/extension-targets.d.ts +7 -1
- package/dist/index.js +39 -39
- package/dist/{order-detail-BU6ZKDVG.js → order-detail-CTZELMAQ.js} +1 -1
- package/dist/{order-list-EFBU3W6N.js → order-list-D6RWIRDG.js} +3 -3
- package/dist/pages/index.js +20 -20
- package/dist/{price-list-create-XGRFJ74B.js → price-list-create-6XVYEUCA.js} +2 -2
- package/dist/{price-list-detail-AE6S3CEM.js → price-list-detail-PBMKVUIE.js} +2 -2
- package/dist/{price-list-prices-add-DF6W4N6L.js → price-list-prices-add-MZXRSG77.js} +2 -2
- package/dist/{product-edit-KMK7CMLI.js → product-edit-HCJYIONN.js} +3 -5
- package/dist/{product-list-IMKQUEIM.js → product-list-E3GWVLRE.js} +4 -5
- package/dist/{product-tag-detail-L5RXBCPS.js → product-tag-detail-RTRJYLTX.js} +3 -3
- package/dist/{product-tag-list-UX2GZALX.js → product-tag-list-OTYBGV3W.js} +3 -3
- package/dist/{product-type-detail-LJWSJ6V5.js → product-type-detail-DTFOBWJ6.js} +2 -2
- package/dist/{profile-detail-PFJX3LPX.js → profile-detail-H5QMV4F4.js} +1 -1
- package/dist/{profile-edit-O6Z3XJ4U.js → profile-edit-FQYTJKYW.js} +3 -1
- package/dist/{refund-reason-list-YYCNRERE.js → refund-reason-list-LLDTOBXO.js} +3 -3
- package/dist/{return-reason-list-PFDQCDWA.js → return-reason-list-3YXRYEFA.js} +3 -3
- package/dist/{sales-channel-add-products-FXWQ4LZ6.js → sales-channel-add-products-4MJ7BSJQ.js} +1 -1
- package/dist/{sales-channel-detail-HVPDMOUJ.js → sales-channel-detail-2NDESJPC.js} +2 -2
- package/dist/{store-address-edit-M6A37RFY.js → store-address-edit-4SDHKPM7.js} +3 -1
- package/dist/{store-closure-edit-VE7D5F7I.js → store-closure-edit-DCLHOBDW.js} +3 -1
- package/dist/{store-details-YV4U4GZK.js → store-details-Y3IF7R24.js} +3 -3
- package/dist/{store-list-VTV3TYJN.js → store-list-P6RDAS5M.js} +3 -3
- package/dist/{store-payment-details-edit-JUM745OG.js → store-payment-details-edit-KSD2S64U.js} +3 -1
- package/dist/{store-professional-details-edit-NKBYKBCA.js → store-professional-details-edit-BYQQX7FL.js} +3 -1
- package/dist/{tax-region-tax-override-create-DFOUTYWV.js → tax-region-tax-override-create-UIF2BQFK.js} +3 -3
- package/dist/{tax-region-tax-override-edit-PY7XG5KR.js → tax-region-tax-override-edit-USEIJ2VG.js} +3 -3
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryDetailPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WTVSHPKP.js";
|
|
4
4
|
import "./chunk-7AV5EJJ5.js";
|
|
5
5
|
import "./chunk-7CQD5AQ6.js";
|
|
6
6
|
import "./chunk-Y456KVIN.js";
|
|
@@ -9,7 +9,7 @@ import "./chunk-I5HY5Q3K.js";
|
|
|
9
9
|
import "./chunk-RMB7MPIT.js";
|
|
10
10
|
import "./chunk-APMBU7ZV.js";
|
|
11
11
|
import "./chunk-FWPGOIFA.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-S4IDR46L.js";
|
|
13
13
|
import "./chunk-DB6ANJBO.js";
|
|
14
14
|
import "./chunk-PHOCVOZ5.js";
|
|
15
15
|
import "./chunk-VSLHL2AZ.js";
|
|
@@ -16,12 +16,16 @@ import {
|
|
|
16
16
|
|
|
17
17
|
// src/pages/profile/profile-detail/profile-detail.tsx
|
|
18
18
|
import { Children } from "react";
|
|
19
|
-
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
19
|
+
import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
20
20
|
|
|
21
21
|
// src/pages/profile/profile-detail/components/profile-general-section/profile-general-section.tsx
|
|
22
22
|
import { PencilSquare } from "@medusajs/icons";
|
|
23
23
|
import { Container, Heading, Text } from "@medusajs/ui";
|
|
24
24
|
import { useTranslation } from "react-i18next";
|
|
25
|
+
import {
|
|
26
|
+
DisplayExtensionZone,
|
|
27
|
+
DisplayField
|
|
28
|
+
} from "@mercurjs/dashboard-shared";
|
|
25
29
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
30
|
var ProfileGeneralSection = ({ user }) => {
|
|
27
31
|
const { i18n, t } = useTranslation();
|
|
@@ -50,25 +54,35 @@ var ProfileGeneralSection = ({ user }) => {
|
|
|
50
54
|
}
|
|
51
55
|
)
|
|
52
56
|
] }),
|
|
53
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "profile-general-section-name-row", children: [
|
|
57
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "user", zone: "general", id: "name", data: user, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "profile-general-section-name-row", children: [
|
|
54
58
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "profile-general-section-name-label", children: t("fields.name") }),
|
|
55
59
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", "data-testid": "profile-general-section-name-value", children: name || "-" })
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 items-center px-6 py-4", "data-testid": "profile-general-section-email-row", children: [
|
|
60
|
+
] }) }),
|
|
61
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "user", zone: "general", id: "email", data: user, children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 items-center px-6 py-4", "data-testid": "profile-general-section-email-row", children: [
|
|
58
62
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "profile-general-section-email-label", children: t("fields.email") }),
|
|
59
63
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", "data-testid": "profile-general-section-email-value", children: user.email })
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 items-center px-6 py-4", "data-testid": "profile-general-section-language-row", children: [
|
|
64
|
+
] }) }),
|
|
65
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "user", zone: "general", id: "language", data: user, children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 items-center px-6 py-4", "data-testid": "profile-general-section-language-row", children: [
|
|
62
66
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "profile-general-section-language-label", children: t("profile.fields.languageLabel") }),
|
|
63
67
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", "data-testid": "profile-general-section-language-value", children: languages.find((lang) => lang.code === i18n.language)?.display_name || "-" })
|
|
64
|
-
] })
|
|
68
|
+
] }) }),
|
|
69
|
+
/* @__PURE__ */ jsx(
|
|
70
|
+
DisplayExtensionZone,
|
|
71
|
+
{
|
|
72
|
+
model: "user",
|
|
73
|
+
zone: "general",
|
|
74
|
+
data: user,
|
|
75
|
+
builtInFieldIds: ["name", "email", "language"]
|
|
76
|
+
}
|
|
77
|
+
)
|
|
65
78
|
] });
|
|
66
79
|
};
|
|
67
80
|
|
|
68
81
|
// src/pages/profile/profile-detail/profile-detail.tsx
|
|
69
82
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
70
83
|
var Root = ({ children }) => {
|
|
71
|
-
const
|
|
84
|
+
const meQuery = useLinkQuery("user");
|
|
85
|
+
const { user, isPending: isLoading, isError, error } = useMe(meQuery);
|
|
72
86
|
if (isLoading || !user) {
|
|
73
87
|
return /* @__PURE__ */ jsx2(SingleColumnPageSkeleton, { sections: 1 });
|
|
74
88
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KOURHC2N.js";
|
|
4
4
|
import {
|
|
5
5
|
useSellersTableQuery
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JSI7IOMU.js";
|
|
7
7
|
import {
|
|
8
8
|
DateCell
|
|
9
9
|
} from "./chunk-25LYVP3C.js";
|
|
@@ -73,7 +73,7 @@ import { keepPreviousData } from "@tanstack/react-query";
|
|
|
73
73
|
import {
|
|
74
74
|
createColumnHelper as createColumnHelper2
|
|
75
75
|
} from "@tanstack/react-table";
|
|
76
|
-
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
76
|
+
import { useExtendableTable, useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
77
77
|
|
|
78
78
|
// src/hooks/table/columns/use-seller-table-columns.tsx
|
|
79
79
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
@@ -151,9 +151,11 @@ var StoreListDataTable = () => {
|
|
|
151
151
|
const { searchParams, raw } = useSellersTableQuery({
|
|
152
152
|
pageSize: PAGE_SIZE
|
|
153
153
|
});
|
|
154
|
+
const linkQuery = useLinkQuery("seller");
|
|
154
155
|
const { sellers, count, isLoading } = useSellers(
|
|
155
156
|
{
|
|
156
|
-
...searchParams
|
|
157
|
+
...searchParams,
|
|
158
|
+
...linkQuery
|
|
157
159
|
},
|
|
158
160
|
{
|
|
159
161
|
placeholderData: keepPreviousData
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-HC25LNX7.js";
|
|
16
16
|
import {
|
|
17
17
|
useShippingOptionTableQuery
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JSI7IOMU.js";
|
|
19
19
|
import {
|
|
20
20
|
useProductTypeTableQuery
|
|
21
21
|
} from "./chunk-VOHEQ7B5.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-APMBU7ZV.js";
|
|
34
34
|
import {
|
|
35
35
|
useProductTableQuery
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-S4IDR46L.js";
|
|
37
37
|
import {
|
|
38
38
|
StackedDrawer,
|
|
39
39
|
StackedFocusModal
|
|
@@ -74,8 +74,7 @@ import { keepPreviousData } from "@tanstack/react-query";
|
|
|
74
74
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
75
75
|
import {
|
|
76
76
|
useExtendableTable,
|
|
77
|
-
|
|
78
|
-
withLinkFields
|
|
77
|
+
useLinkQuery
|
|
79
78
|
} from "@mercurjs/dashboard-shared";
|
|
80
79
|
import { useMemo } from "react";
|
|
81
80
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
@@ -189,11 +188,11 @@ var OrderListDataTable = () => {
|
|
|
189
188
|
const { searchParams, raw } = useOrderTableQuery({
|
|
190
189
|
pageSize: PAGE_SIZE
|
|
191
190
|
});
|
|
192
|
-
const
|
|
191
|
+
const linkQuery = useLinkQuery("order", DEFAULT_FIELDS);
|
|
193
192
|
const { order_groups, count, isError, error, isLoading } = useOrderGroups(
|
|
194
193
|
{
|
|
195
194
|
...searchParams,
|
|
196
|
-
fields:
|
|
195
|
+
fields: linkQuery.fields
|
|
197
196
|
},
|
|
198
197
|
{
|
|
199
198
|
placeholderData: keepPreviousData
|
|
@@ -105,7 +105,7 @@ var useReturnReasonTableQuery = ({
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
// src/hooks/table/query/use-sellers-table-query.tsx
|
|
108
|
-
import {
|
|
108
|
+
import { useLinkQuery } from "@mercurjs/dashboard-shared";
|
|
109
109
|
var import_types = __toESM(require_dist(), 1);
|
|
110
110
|
var ACTIVE_STATUSES = [
|
|
111
111
|
import_types.SellerStatus.OPEN,
|
|
@@ -116,7 +116,7 @@ var useSellersTableQuery = ({
|
|
|
116
116
|
prefix,
|
|
117
117
|
pageSize = 20
|
|
118
118
|
}) => {
|
|
119
|
-
const
|
|
119
|
+
const linkQuery = useLinkQuery("seller");
|
|
120
120
|
const queryObject = useQueryParams(
|
|
121
121
|
["offset", "q", "created_at", "updated_at", "status", "is_premium", "order"],
|
|
122
122
|
prefix
|
|
@@ -131,7 +131,7 @@ var useSellersTableQuery = ({
|
|
|
131
131
|
is_premium: is_premium ? is_premium === "true" : void 0,
|
|
132
132
|
q,
|
|
133
133
|
order: order ? order : "-created_at",
|
|
134
|
-
...
|
|
134
|
+
...linkQuery
|
|
135
135
|
};
|
|
136
136
|
return {
|
|
137
137
|
searchParams,
|