@mercurjs/admin 2.1.0 → 2.1.2-canary.0
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/{add-campaign-promotions-WILFAFL4.js → add-campaign-promotions-VFBNY77C.js} +3 -3
- package/dist/{campaign-detail-S44LA6AX.js → campaign-detail-WDVAIMV4.js} +4 -4
- package/dist/{chunk-OVB4R5U5.js → chunk-2MNDOYVE.js} +3 -2
- package/dist/{chunk-WX6UWXY6.js → chunk-4HM6UJND.js} +2 -2
- package/dist/{chunk-ZEBQKDHR.js → chunk-4IRXP337.js} +1 -1
- package/dist/{chunk-7IKRJNID.js → chunk-6GLU4R7W.js} +1 -1
- package/dist/{chunk-NSUWKSBC.js → chunk-B2FKWBHU.js} +1 -1
- package/dist/{chunk-TVL4IXSL.js → chunk-BURG4MO3.js} +8 -8
- package/dist/{chunk-H55UROTU.js → chunk-CAXRMI6M.js} +1 -1
- package/dist/{chunk-BAJODL3V.js → chunk-GIU72QEP.js} +1 -1
- package/dist/{chunk-Z433IE4R.js → chunk-KFGOJI3P.js} +1 -1
- package/dist/{chunk-3U4C3UKN.js → chunk-LK4A7SJK.js} +1 -1
- package/dist/{chunk-5Q2DL7Z2.js → chunk-LZ6FY5SF.js} +1 -1
- package/dist/{chunk-3TOCWPCQ.js → chunk-NNCIV74Y.js} +5 -5
- package/dist/{chunk-YJNCEGX4.js → chunk-QOQSXNEF.js} +3 -1
- package/dist/{chunk-LET54CD5.js → chunk-QZBAACYC.js} +3 -2
- package/dist/{chunk-P5VTTPU2.js → chunk-UEFWVPQ7.js} +1 -1
- package/dist/{chunk-PJSWOWXT.js → chunk-UYDKJWYX.js} +539 -10
- package/dist/{chunk-NEAMPCCU.js → chunk-VBJFCAKU.js} +20 -11
- package/dist/{chunk-DSIZONVE.js → chunk-XZYRXNWO.js} +3 -1
- package/dist/{chunk-SMPTZ2RM.js → chunk-Y3I3LXKW.js} +24 -15
- package/dist/{commission-rate-create-CUSB36XK.js → commission-rate-create-AIT5K74P.js} +20 -20
- package/dist/{commission-rate-detail-7I4M7GOE.js → commission-rate-detail-D5WUXKER.js} +1 -1
- package/dist/{commission-rate-edit-KPY5EXDK.js → commission-rate-edit-EJ2SQKUP.js} +18 -16
- package/dist/{commission-rate-list-CFKHN2F5.js → commission-rate-list-TFMQC26F.js} +1 -1
- package/dist/index.js +34 -34
- package/dist/{order-detail-PSJFXQV7.js → order-detail-SFIBIQTI.js} +1 -1
- package/dist/{order-edit-billing-address-2WTUR5PX.js → order-edit-billing-address-6J5NMUDG.js} +1 -1
- package/dist/{order-list-DEFD5MI5.js → order-list-CAR3CH7Q.js} +1 -1
- package/dist/pages/index.js +19 -19
- package/dist/{payout-detail-C5WLFRRT.js → payout-detail-DZFTTDUR.js} +1 -1
- package/dist/{payout-list-WQIMALHI.js → payout-list-75YIMPCS.js} +1 -1
- package/dist/{product-create-WVC72ZZ2.js → product-create-5ZHAR523.js} +3 -3
- package/dist/{product-detail-7T5PLGCJ.js → product-detail-XXA3V6V3.js} +2 -2
- package/dist/{product-list-G23MTE7S.js → product-list-XXSHUGNI.js} +1 -1
- package/dist/{product-media-CBKZEHLD.js → product-media-BVK62TOR.js} +2 -2
- package/dist/{product-variant-detail-7UVACNQV.js → product-variant-detail-T2OM45NJ.js} +2 -2
- package/dist/{promotion-detail-6ZCWQYON.js → promotion-detail-FO635PUU.js} +3 -3
- package/dist/{promotion-list-ZARTSDFP.js → promotion-list-QXWQMUWX.js} +4 -4
- package/dist/{reset-password-J4XCWJXV.js → reset-password-454BEKIQ.js} +1 -1
- package/dist/{store-edit-U2Q6LMXR.js → store-edit-OZSRUCSA.js} +2 -2
- package/dist/{store-list-CWVEPRJM.js → store-list-AVI5EOS6.js} +1 -1
- package/dist/{tax-region-create-CQCW6ELU.js → tax-region-create-CAB4LLPE.js} +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-4IRXP337.js";
|
|
5
|
+
import "./chunk-CAXRMI6M.js";
|
|
6
6
|
import "./chunk-JHIMVLB2.js";
|
|
7
7
|
import "./chunk-FMFVTERD.js";
|
|
8
8
|
import "./chunk-DB6ANJBO.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import "./chunk-YBZWO4ZV.js";
|
|
16
16
|
import "./chunk-KAZ5BYTQ.js";
|
|
17
17
|
import "./chunk-634XVU3D.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-UYDKJWYX.js";
|
|
19
19
|
import "./chunk-TKGWSUEI.js";
|
|
20
20
|
import {
|
|
21
21
|
KeyboundForm
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CAMPAIGN_DETAIL_FIELDS,
|
|
3
3
|
CampaignDetailPage
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-B2FKWBHU.js";
|
|
5
|
+
import "./chunk-4IRXP337.js";
|
|
6
6
|
import "./chunk-RK5N3XIX.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-CAXRMI6M.js";
|
|
8
8
|
import "./chunk-JHIMVLB2.js";
|
|
9
9
|
import "./chunk-FMFVTERD.js";
|
|
10
10
|
import "./chunk-DB6ANJBO.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-KAZ5BYTQ.js";
|
|
|
17
17
|
import "./chunk-634XVU3D.js";
|
|
18
18
|
import "./chunk-XIZLPYEE.js";
|
|
19
19
|
import "./chunk-IQPN4PZJ.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-UYDKJWYX.js";
|
|
21
21
|
import "./chunk-INNFZYX2.js";
|
|
22
22
|
import "./chunk-BDGZ4EQO.js";
|
|
23
23
|
import "./chunk-LAVHRER2.js";
|
|
@@ -23,7 +23,8 @@ import { useTranslation } from "react-i18next";
|
|
|
23
23
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
24
24
|
var PAGE_SIZE = 10;
|
|
25
25
|
var PayoutListTitle = () => {
|
|
26
|
-
|
|
26
|
+
const { t } = useTranslation();
|
|
27
|
+
return /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("payouts.domain") });
|
|
27
28
|
};
|
|
28
29
|
var PayoutListActions = ({ children }) => {
|
|
29
30
|
return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : null });
|
|
@@ -73,7 +74,7 @@ var PayoutListDataTable = () => {
|
|
|
73
74
|
],
|
|
74
75
|
queryObject: raw,
|
|
75
76
|
noRecords: {
|
|
76
|
-
message: "
|
|
77
|
+
message: t("payouts.list.empty")
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
);
|
|
@@ -99,7 +99,7 @@ var useSellersTableColumns = () => {
|
|
|
99
99
|
() => [
|
|
100
100
|
columnHelper.display({
|
|
101
101
|
id: "name",
|
|
102
|
-
header: t("stores.fields.
|
|
102
|
+
header: t("stores.fields.seller"),
|
|
103
103
|
cell: ({ row }) => row.original.name
|
|
104
104
|
}),
|
|
105
105
|
columnHelper.display({
|
|
@@ -183,7 +183,7 @@ var StoreListDataTable = () => {
|
|
|
183
183
|
pagination: true,
|
|
184
184
|
navigateTo: (row) => `/stores/${row.original.id}`,
|
|
185
185
|
orderBy: [
|
|
186
|
-
{ key: "name", label: t("stores.fields.
|
|
186
|
+
{ key: "name", label: t("stores.fields.seller") },
|
|
187
187
|
{ key: "email", label: t("stores.fields.email") },
|
|
188
188
|
{ key: "created_at", label: t("fields.createdAt") }
|
|
189
189
|
],
|
|
@@ -198,7 +198,7 @@ var useOrderGroupTableFilters = () => {
|
|
|
198
198
|
// src/pages/orders/order-list/components/order-list-table/order-list-data-table.tsx
|
|
199
199
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
200
200
|
var PAGE_SIZE = 20;
|
|
201
|
-
function transformOrderGroups(orderGroups) {
|
|
201
|
+
function transformOrderGroups(orderGroups, t) {
|
|
202
202
|
return orderGroups.map((group) => {
|
|
203
203
|
const orders = group.orders ?? [];
|
|
204
204
|
const orderIds = orders.map((o) => `#${o.display_id}`).join(", ");
|
|
@@ -228,7 +228,7 @@ function transformOrderGroups(orderGroups) {
|
|
|
228
228
|
id: group.id,
|
|
229
229
|
display_id: `#G${group.display_id}`,
|
|
230
230
|
order_ids: orderIds,
|
|
231
|
-
vendor:
|
|
231
|
+
vendor: t("orders.fields.vendorsCount", { count: group.seller_count }),
|
|
232
232
|
created_at: new Date(group.created_at),
|
|
233
233
|
updated_at: new Date(group.updated_at),
|
|
234
234
|
customer_name: customerName,
|
|
@@ -255,8 +255,8 @@ var OrderListDataTable = () => {
|
|
|
255
255
|
}
|
|
256
256
|
);
|
|
257
257
|
const rows = useMemo2(
|
|
258
|
-
() => transformOrderGroups(order_groups ?? []),
|
|
259
|
-
[order_groups]
|
|
258
|
+
() => transformOrderGroups(order_groups ?? [], t),
|
|
259
|
+
[order_groups, t]
|
|
260
260
|
);
|
|
261
261
|
const filters = useOrderGroupTableFilters();
|
|
262
262
|
const columns = useColumns();
|
|
@@ -286,7 +286,7 @@ var OrderListDataTable = () => {
|
|
|
286
286
|
isLoading,
|
|
287
287
|
pageSize: PAGE_SIZE,
|
|
288
288
|
orderBy: [
|
|
289
|
-
{ key: "display_id", label: "
|
|
289
|
+
{ key: "display_id", label: t("orders.fields.displayId") },
|
|
290
290
|
{ key: "created_at", label: t("fields.createdAt") },
|
|
291
291
|
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
292
292
|
],
|
|
@@ -303,7 +303,7 @@ var useColumns = () => {
|
|
|
303
303
|
return useMemo2(
|
|
304
304
|
() => [
|
|
305
305
|
columnHelper.accessor("display_id", {
|
|
306
|
-
header: () => /* @__PURE__ */ jsx2(TextHeader, { text: "
|
|
306
|
+
header: () => /* @__PURE__ */ jsx2(TextHeader, { text: t("orders.fields.groupId") }),
|
|
307
307
|
cell: ({ row, getValue }) => {
|
|
308
308
|
if (row.original._type === "order") {
|
|
309
309
|
return null;
|
|
@@ -337,7 +337,7 @@ var useColumns = () => {
|
|
|
337
337
|
}
|
|
338
338
|
}),
|
|
339
339
|
columnHelper.accessor("order_ids", {
|
|
340
|
-
header: () => /* @__PURE__ */ jsx2(TextHeader, { text: "
|
|
340
|
+
header: () => /* @__PURE__ */ jsx2(TextHeader, { text: t("orders.fields.orderIds") }),
|
|
341
341
|
cell: ({ row, getValue }) => {
|
|
342
342
|
if (row.original._type === "group") {
|
|
343
343
|
return /* @__PURE__ */ jsx2(TextCell, { text: getValue() });
|
|
@@ -346,7 +346,7 @@ var useColumns = () => {
|
|
|
346
346
|
}
|
|
347
347
|
}),
|
|
348
348
|
columnHelper.accessor("vendor", {
|
|
349
|
-
header: () => /* @__PURE__ */ jsx2(TextHeader, { text: "
|
|
349
|
+
header: () => /* @__PURE__ */ jsx2(TextHeader, { text: t("orders.fields.vendor") }),
|
|
350
350
|
cell: ({ getValue }) => /* @__PURE__ */ jsx2(TextCell, { text: getValue() })
|
|
351
351
|
}),
|
|
352
352
|
columnHelper.accessor("created_at", {
|
|
@@ -1767,19 +1767,19 @@ var Fulfillment = ({
|
|
|
1767
1767
|
enabled: showLocation
|
|
1768
1768
|
}
|
|
1769
1769
|
);
|
|
1770
|
-
let statusText = fulfillment.requires_shipping ? isPickUpFulfillment ? "
|
|
1770
|
+
let statusText = fulfillment.requires_shipping ? isPickUpFulfillment ? t("orders.fulfillment.status.awaitingPickup") : t("orders.fulfillment.status.awaitingShipping") : t("orders.fulfillment.status.awaitingDelivery");
|
|
1771
1771
|
let statusColor = "blue";
|
|
1772
1772
|
let statusTimestamp = fulfillment.created_at;
|
|
1773
1773
|
if (fulfillment.canceled_at) {
|
|
1774
|
-
statusText = "
|
|
1774
|
+
statusText = t("orders.fulfillment.status.canceled");
|
|
1775
1775
|
statusColor = "red";
|
|
1776
1776
|
statusTimestamp = fulfillment.canceled_at;
|
|
1777
1777
|
} else if (fulfillment.delivered_at) {
|
|
1778
|
-
statusText = "
|
|
1778
|
+
statusText = t("orders.fulfillment.status.delivered");
|
|
1779
1779
|
statusColor = "green";
|
|
1780
1780
|
statusTimestamp = fulfillment.delivered_at;
|
|
1781
1781
|
} else if (fulfillment.shipped_at) {
|
|
1782
|
-
statusText = "
|
|
1782
|
+
statusText = t("orders.fulfillment.status.shipped");
|
|
1783
1783
|
statusColor = "green";
|
|
1784
1784
|
statusTimestamp = fulfillment.shipped_at;
|
|
1785
1785
|
}
|
|
@@ -1923,7 +1923,7 @@ var Fulfillment = ({
|
|
|
1923
1923
|
target: "_blank",
|
|
1924
1924
|
rel: "noopener noreferrer",
|
|
1925
1925
|
className: "text-ui-fg-interactive hover:text-ui-fg-interactive-hover transition-fg",
|
|
1926
|
-
children: /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", as: "span", children: "
|
|
1926
|
+
children: /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", as: "span", children: t("orders.fulfillment.labelLink") })
|
|
1927
1927
|
}
|
|
1928
1928
|
)
|
|
1929
1929
|
] }, tlink.tracking_number);
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
// src/pages/products/product-detail/components/product-seller-section/product-seller-section.tsx
|
|
2
2
|
import { TriangleRightMini } from "@medusajs/icons";
|
|
3
3
|
import { Avatar, Container, Heading } from "@medusajs/ui";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
4
5
|
import { Link } from "react-router-dom";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
var ProductSellerSection = ({ seller }) => {
|
|
8
|
+
const { t } = useTranslation();
|
|
7
9
|
if (!seller) {
|
|
8
10
|
return null;
|
|
9
11
|
}
|
|
10
12
|
return /* @__PURE__ */ jsxs(Container, { className: "p-0", children: [
|
|
11
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx(Heading, { level: "h2", children: "
|
|
13
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("products.associatedStore") }) }),
|
|
12
14
|
/* @__PURE__ */ jsx("div", { className: "txt-small flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx(
|
|
13
15
|
Link,
|
|
14
16
|
{
|
|
@@ -241,13 +241,14 @@ var ProductActions = ({ product }) => {
|
|
|
241
241
|
};
|
|
242
242
|
var columnHelper = createColumnHelper();
|
|
243
243
|
var useColumns = () => {
|
|
244
|
+
const { t } = useTranslation();
|
|
244
245
|
const base = useProductTableColumns();
|
|
245
246
|
const columns = useMemo(
|
|
246
247
|
() => [
|
|
247
248
|
...base,
|
|
248
249
|
columnHelper.display({
|
|
249
250
|
id: "seller",
|
|
250
|
-
header: "
|
|
251
|
+
header: t("store.domain"),
|
|
251
252
|
cell: ({ row }) => {
|
|
252
253
|
const seller = row.original.seller;
|
|
253
254
|
return seller?.name || "-";
|
|
@@ -268,7 +269,7 @@ var useColumns = () => {
|
|
|
268
269
|
}
|
|
269
270
|
})
|
|
270
271
|
],
|
|
271
|
-
[base]
|
|
272
|
+
[base, t]
|
|
272
273
|
);
|
|
273
274
|
return columns;
|
|
274
275
|
};
|