@mercurjs/vendor 2.2.0-canary.43 → 2.2.0-canary.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -3786,14 +3786,14 @@ function getRouteMap({
|
|
|
3786
3786
|
{
|
|
3787
3787
|
path: "",
|
|
3788
3788
|
lazy: async () => {
|
|
3789
|
-
const { ProfileDetailPage } = await import("./profile-
|
|
3789
|
+
const { ProfileDetailPage } = await import("./profile-KLS44GEM.js");
|
|
3790
3790
|
return { Component: ProfileDetailPage };
|
|
3791
3791
|
},
|
|
3792
3792
|
children: [
|
|
3793
3793
|
{
|
|
3794
3794
|
path: "edit",
|
|
3795
3795
|
lazy: async () => {
|
|
3796
|
-
const { ProfileEdit } = await import("./profile-
|
|
3796
|
+
const { ProfileEdit } = await import("./profile-KLS44GEM.js");
|
|
3797
3797
|
return { Component: ProfileEdit };
|
|
3798
3798
|
}
|
|
3799
3799
|
}
|
|
@@ -3812,7 +3812,7 @@ function getRouteMap({
|
|
|
3812
3812
|
{
|
|
3813
3813
|
path: "",
|
|
3814
3814
|
lazy: async () => {
|
|
3815
|
-
const { StoreDetailPage } = await import("./store-
|
|
3815
|
+
const { StoreDetailPage } = await import("./store-SKJHYA3T.js");
|
|
3816
3816
|
return { Component: StoreDetailPage };
|
|
3817
3817
|
},
|
|
3818
3818
|
children: [
|
|
@@ -4251,7 +4251,7 @@ function getRouteMap({
|
|
|
4251
4251
|
{
|
|
4252
4252
|
path: "/store-select",
|
|
4253
4253
|
lazy: async () => {
|
|
4254
|
-
const { StoreSelectPage } = await import("./store-select-
|
|
4254
|
+
const { StoreSelectPage } = await import("./store-select-2WFPGKQC.js");
|
|
4255
4255
|
return { Component: StoreSelectPage };
|
|
4256
4256
|
}
|
|
4257
4257
|
},
|
|
@@ -105,7 +105,15 @@ var ProfileGeneralSection = () => {
|
|
|
105
105
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("profile.fields.languageLabel") }),
|
|
106
106
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: languages.find((lang) => lang.code === i18n.language)?.display_name || "-" })
|
|
107
107
|
] }) }),
|
|
108
|
-
/* @__PURE__ */ jsx(
|
|
108
|
+
/* @__PURE__ */ jsx(
|
|
109
|
+
DisplayExtensionZone,
|
|
110
|
+
{
|
|
111
|
+
model: "member",
|
|
112
|
+
zone: "general",
|
|
113
|
+
data: member,
|
|
114
|
+
builtInFieldIds: ["first_name", "last_name", "language"]
|
|
115
|
+
}
|
|
116
|
+
)
|
|
109
117
|
] });
|
|
110
118
|
};
|
|
111
119
|
|
|
@@ -274,13 +274,17 @@ var StoreTimeOffSection = ({ seller }) => {
|
|
|
274
274
|
import { Children as Children2 } from "react";
|
|
275
275
|
import { Badge, Container as Container3, Text as Text2 } from "@medusajs/ui";
|
|
276
276
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
277
|
-
import {
|
|
277
|
+
import {
|
|
278
|
+
DisplayExtensionZone,
|
|
279
|
+
DisplayField as DisplayField2
|
|
280
|
+
} from "@mercurjs/dashboard-shared";
|
|
278
281
|
|
|
279
282
|
// src/pages/settings/store/_components/store-detail-header.tsx
|
|
280
283
|
import { Children } from "react";
|
|
281
284
|
import { CheckCircleSolid, PencilSquare as PencilSquare3 } from "@medusajs/icons";
|
|
282
285
|
import { Avatar, Heading as Heading3, StatusBadge, Tooltip } from "@medusajs/ui";
|
|
283
286
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
287
|
+
import { DisplayField } from "@mercurjs/dashboard-shared";
|
|
284
288
|
var import_types = __toESM(require_dist(), 1);
|
|
285
289
|
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
286
290
|
var getStatusColor = (status) => {
|
|
@@ -353,7 +357,16 @@ var StoreDetailActions = ({
|
|
|
353
357
|
}) => {
|
|
354
358
|
const { t } = useTranslation3();
|
|
355
359
|
return /* @__PURE__ */ jsx3("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
356
|
-
/* @__PURE__ */ jsx3(
|
|
360
|
+
/* @__PURE__ */ jsx3(
|
|
361
|
+
DisplayField,
|
|
362
|
+
{
|
|
363
|
+
model: "seller",
|
|
364
|
+
zone: "general",
|
|
365
|
+
id: "status",
|
|
366
|
+
data: seller,
|
|
367
|
+
children: /* @__PURE__ */ jsx3(StatusBadge, { color: getStatusColor(seller.status), children: getStatusLabel(seller.status, t) })
|
|
368
|
+
}
|
|
369
|
+
),
|
|
357
370
|
/* @__PURE__ */ jsx3(StoreDetailEditButton, {})
|
|
358
371
|
] }) });
|
|
359
372
|
};
|
|
@@ -399,7 +412,7 @@ var StoreGeneralSection = ({
|
|
|
399
412
|
) }),
|
|
400
413
|
/* @__PURE__ */ jsx4(StoreDetailHeader, { seller }),
|
|
401
414
|
/* @__PURE__ */ jsx4(
|
|
402
|
-
|
|
415
|
+
DisplayField2,
|
|
403
416
|
{
|
|
404
417
|
model: "seller",
|
|
405
418
|
zone: "general",
|
|
@@ -411,20 +424,20 @@ var StoreGeneralSection = ({
|
|
|
411
424
|
] })
|
|
412
425
|
}
|
|
413
426
|
),
|
|
414
|
-
/* @__PURE__ */ jsx4(
|
|
427
|
+
/* @__PURE__ */ jsx4(DisplayField2, { model: "seller", zone: "general", id: "handle", data: seller, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
415
428
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
416
429
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.handle ? `/${seller.handle}` : "-" })
|
|
417
430
|
] }) }),
|
|
418
|
-
/* @__PURE__ */ jsx4(
|
|
431
|
+
/* @__PURE__ */ jsx4(DisplayField2, { model: "seller", zone: "general", id: "email", data: seller, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
419
432
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
|
|
420
433
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.email || "-" })
|
|
421
434
|
] }) }),
|
|
422
|
-
/* @__PURE__ */ jsx4(
|
|
435
|
+
/* @__PURE__ */ jsx4(DisplayField2, { model: "seller", zone: "general", id: "phone", data: seller, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
423
436
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
|
|
424
437
|
/* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", children: seller.phone || "-" })
|
|
425
438
|
] }) }),
|
|
426
439
|
/* @__PURE__ */ jsx4(
|
|
427
|
-
|
|
440
|
+
DisplayField2,
|
|
428
441
|
{
|
|
429
442
|
model: "seller",
|
|
430
443
|
zone: "general",
|
|
@@ -437,7 +450,7 @@ var StoreGeneralSection = ({
|
|
|
437
450
|
}
|
|
438
451
|
),
|
|
439
452
|
/* @__PURE__ */ jsx4(
|
|
440
|
-
|
|
453
|
+
DisplayField2,
|
|
441
454
|
{
|
|
442
455
|
model: "seller",
|
|
443
456
|
zone: "general",
|
|
@@ -451,6 +464,23 @@ var StoreGeneralSection = ({
|
|
|
451
464
|
] })
|
|
452
465
|
] })
|
|
453
466
|
}
|
|
467
|
+
),
|
|
468
|
+
/* @__PURE__ */ jsx4(
|
|
469
|
+
DisplayExtensionZone,
|
|
470
|
+
{
|
|
471
|
+
model: "seller",
|
|
472
|
+
zone: "general",
|
|
473
|
+
data: seller,
|
|
474
|
+
builtInFieldIds: [
|
|
475
|
+
"status",
|
|
476
|
+
"description",
|
|
477
|
+
"handle",
|
|
478
|
+
"email",
|
|
479
|
+
"phone",
|
|
480
|
+
"website_url",
|
|
481
|
+
"currency_code"
|
|
482
|
+
]
|
|
483
|
+
}
|
|
454
484
|
)
|
|
455
485
|
] }) });
|
|
456
486
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercurjs/vendor",
|
|
3
|
-
"version": "2.2.0-canary.
|
|
3
|
+
"version": "2.2.0-canary.44",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mercurjs/mercur",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"lint": "oxlint --max-warnings 0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@mercurjs/dashboard-shared": "2.2.0-canary.
|
|
38
|
-
"@mercurjs/client": "2.2.0-canary.
|
|
37
|
+
"@mercurjs/dashboard-shared": "2.2.0-canary.44",
|
|
38
|
+
"@mercurjs/client": "2.2.0-canary.44",
|
|
39
39
|
"@ariakit/react": "^0.4.15",
|
|
40
40
|
"@babel/runtime": "^7.26.10",
|
|
41
41
|
"@dnd-kit/core": "^6.1.0",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"tsup": "^8.0.2",
|
|
89
89
|
"typescript": "5.9.3",
|
|
90
90
|
"@medusajs/types": "2.17.2",
|
|
91
|
-
"@mercurjs/core": "2.2.0-canary.
|
|
92
|
-
"@mercurjs/dashboard-sdk": "2.2.0-canary.
|
|
93
|
-
"@mercurjs/types": "2.2.0-canary.
|
|
91
|
+
"@mercurjs/core": "2.2.0-canary.44",
|
|
92
|
+
"@mercurjs/dashboard-sdk": "2.2.0-canary.44",
|
|
93
|
+
"@mercurjs/types": "2.2.0-canary.44"
|
|
94
94
|
}
|
|
95
95
|
}
|