@mercurjs/vendor 2.2.0-canary.48 → 2.2.0-canary.49
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/{address-MGVOVZEW.js → address-ZR4EM2QA.js} +1 -0
- package/dist/{chunk-4YM7N6OQ.js → chunk-ICKOFNHF.js} +1 -1
- package/dist/{chunk-HXGLPDZW.js → chunk-IMVZFBCM.js} +6 -17
- package/dist/{customer-group-edit-5HHG26RH.js → customer-group-edit-UA36663R.js} +1 -0
- package/dist/{edit-JLU7XI3X.js → edit-2VECG7VL.js} +23 -12
- package/dist/{edit-YDAGY756.js → edit-JT4OKP5H.js} +1 -0
- package/dist/{edit-PQ56RFZD.js → edit-UYYI6HIT.js} +1 -0
- package/dist/{edit-QAEVZCLC.js → edit-X4DFAW7S.js} +1 -0
- package/dist/{edit-S3RDU3Z3.js → edit-YLWMEXUS.js} +1 -0
- package/dist/{edit-inventory-item-3TRMI5NI.js → edit-inventory-item-NHSXZ7UB.js} +1 -0
- package/dist/index.css +0 -6
- package/dist/index.js +17 -17
- package/dist/{invite-6EDS7MS7.js → invite-CQEODMVX.js} +6 -17
- package/dist/{login-FOJP63UB.js → login-Z43XSPNR.js} +2 -2
- package/dist/{onboarding-YVRSTSOV.js → onboarding-EHKVCM6M.js} +11 -32
- package/dist/pages/index.js +2 -2
- package/dist/{payment-details-7NCQIWZ6.js → payment-details-T7CKYYQR.js} +1 -0
- package/dist/{professional-details-B3RHBR23.js → professional-details-UVRM7GID.js} +1 -0
- package/dist/{profile-L373WUQS.js → profile-HYJJLO63.js} +1 -0
- package/dist/{register-GPQVBTLZ.js → register-SAHRSTMJ.js} +1 -1
- package/dist/{store-select-VDFMT3KZ.js → store-select-SARJSWL4.js} +1 -1
- package/package.json +6 -6
|
@@ -7,25 +7,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
var AuthLayout = ({ children }) => {
|
|
8
8
|
return /* @__PURE__ */ jsxs("div", { className: "flex h-dvh w-dvw overflow-hidden", children: [
|
|
9
9
|
/* @__PURE__ */ jsx("div", { className: "bg-ui-bg-base border-ui-border-base flex h-full w-full flex-col overflow-y-auto border-r lg:w-[584px] lg:shrink-0", children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col p-8 lg:px-14 lg:py-12", children }) }),
|
|
10
|
-
/* @__PURE__ */ jsx(
|
|
11
|
-
"
|
|
10
|
+
/* @__PURE__ */ jsx("div", { className: "relative hidden flex-1 overflow-hidden lg:flex", children: /* @__PURE__ */ jsx(
|
|
11
|
+
"img",
|
|
12
12
|
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
backgroundSize: "cover",
|
|
17
|
-
backgroundPosition: "center"
|
|
18
|
-
},
|
|
19
|
-
children: /* @__PURE__ */ jsx(
|
|
20
|
-
"img",
|
|
21
|
-
{
|
|
22
|
-
src: assetUrl("/onboarding/0.png"),
|
|
23
|
-
alt: "",
|
|
24
|
-
className: "max-h-[75%] w-[75%] object-contain"
|
|
25
|
-
}
|
|
26
|
-
)
|
|
13
|
+
src: assetUrl("/onboarding/illustration.svg"),
|
|
14
|
+
alt: "",
|
|
15
|
+
className: "h-full w-full object-cover"
|
|
27
16
|
}
|
|
28
|
-
)
|
|
17
|
+
) })
|
|
29
18
|
] });
|
|
30
19
|
};
|
|
31
20
|
|
|
@@ -64,13 +64,12 @@ import { useTranslation as useTranslation2 } from "react-i18next";
|
|
|
64
64
|
|
|
65
65
|
// src/pages/settings/store/edit/_components/edit-store-form.tsx
|
|
66
66
|
import i18n from "i18next";
|
|
67
|
-
import { InformationCircleSolid } from "@medusajs/icons";
|
|
68
67
|
import {
|
|
69
68
|
Button,
|
|
70
69
|
Heading,
|
|
70
|
+
Hint,
|
|
71
71
|
Input,
|
|
72
72
|
Select,
|
|
73
|
-
Text,
|
|
74
73
|
Textarea,
|
|
75
74
|
toast
|
|
76
75
|
} from "@medusajs/ui";
|
|
@@ -78,7 +77,10 @@ import { useFieldArray } from "react-hook-form";
|
|
|
78
77
|
import { useTranslation } from "react-i18next";
|
|
79
78
|
import * as zod from "zod";
|
|
80
79
|
import { useCallback } from "react";
|
|
81
|
-
import {
|
|
80
|
+
import {
|
|
81
|
+
FormExtensionZone,
|
|
82
|
+
useExtendableForm
|
|
83
|
+
} from "@mercurjs/dashboard-shared";
|
|
82
84
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
83
85
|
var EditStoreSchema = zod.object({
|
|
84
86
|
name: zod.string().min(1, { message: i18n.t("store.validation.nameRequired") }),
|
|
@@ -130,6 +132,7 @@ var EditStoreForm = ({ seller }) => {
|
|
|
130
132
|
const form = useExtendableForm({
|
|
131
133
|
schema: EditStoreSchema,
|
|
132
134
|
model: "seller",
|
|
135
|
+
zone: "edit",
|
|
133
136
|
data: seller,
|
|
134
137
|
defaultValues: {
|
|
135
138
|
name: seller.name ?? "",
|
|
@@ -138,8 +141,22 @@ var EditStoreForm = ({ seller }) => {
|
|
|
138
141
|
phone: seller.phone ?? "",
|
|
139
142
|
description: seller.description ?? "",
|
|
140
143
|
website_url: stripWebsiteProtocol(seller.website_url),
|
|
141
|
-
media: seller.logo ? [
|
|
142
|
-
|
|
144
|
+
media: seller.logo ? [
|
|
145
|
+
{
|
|
146
|
+
id: "existing-logo",
|
|
147
|
+
url: seller.logo,
|
|
148
|
+
isThumbnail: false,
|
|
149
|
+
file: null
|
|
150
|
+
}
|
|
151
|
+
] : [],
|
|
152
|
+
bannerMedia: seller.banner ? [
|
|
153
|
+
{
|
|
154
|
+
id: "existing-banner",
|
|
155
|
+
url: seller.banner,
|
|
156
|
+
isThumbnail: false,
|
|
157
|
+
file: null
|
|
158
|
+
}
|
|
159
|
+
] : []
|
|
143
160
|
}
|
|
144
161
|
});
|
|
145
162
|
const { fields: logoFields } = useFieldArray({
|
|
@@ -390,13 +407,7 @@ var EditStoreForm = ({ seller }) => {
|
|
|
390
407
|
}
|
|
391
408
|
}
|
|
392
409
|
),
|
|
393
|
-
/* @__PURE__ */
|
|
394
|
-
/* @__PURE__ */ jsx(InformationCircleSolid, { className: "text-ui-fg-interactive mt-[2px]" }),
|
|
395
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-0.5", children: [
|
|
396
|
-
/* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", className: "text-ui-fg-base", children: t("store.edit.mediaTipLabel") }),
|
|
397
|
-
/* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("store.edit.mediaTipBody") })
|
|
398
|
-
] })
|
|
399
|
-
] })
|
|
410
|
+
/* @__PURE__ */ jsx(Hint, { children: t("store.edit.mediaTipBody") })
|
|
400
411
|
] }),
|
|
401
412
|
/* @__PURE__ */ jsx(
|
|
402
413
|
FormExtensionZone,
|
package/dist/index.css
CHANGED
|
@@ -1797,9 +1797,6 @@ video {
|
|
|
1797
1797
|
.max-h-\[612px\] {
|
|
1798
1798
|
max-height: 612px;
|
|
1799
1799
|
}
|
|
1800
|
-
.max-h-\[75\%\] {
|
|
1801
|
-
max-height: 75%;
|
|
1802
|
-
}
|
|
1803
1800
|
.max-h-\[80vh\] {
|
|
1804
1801
|
max-height: 80vh;
|
|
1805
1802
|
}
|
|
@@ -1986,9 +1983,6 @@ video {
|
|
|
1986
1983
|
.w-\[720px\] {
|
|
1987
1984
|
width: 720px;
|
|
1988
1985
|
}
|
|
1989
|
-
.w-\[75\%\] {
|
|
1990
|
-
width: 75%;
|
|
1991
|
-
}
|
|
1992
1986
|
.w-\[calc\(100\%-16px\)\] {
|
|
1993
1987
|
width: calc(100% - 16px);
|
|
1994
1988
|
}
|
package/dist/index.js
CHANGED
|
@@ -2968,7 +2968,7 @@ function getRouteMap({
|
|
|
2968
2968
|
children: [
|
|
2969
2969
|
{
|
|
2970
2970
|
path: "edit",
|
|
2971
|
-
lazy: () => import("./edit-
|
|
2971
|
+
lazy: () => import("./edit-X4DFAW7S.js")
|
|
2972
2972
|
},
|
|
2973
2973
|
{
|
|
2974
2974
|
path: "edit-variant",
|
|
@@ -3369,7 +3369,7 @@ function getRouteMap({
|
|
|
3369
3369
|
children: [
|
|
3370
3370
|
{
|
|
3371
3371
|
path: "edit",
|
|
3372
|
-
lazy: () => import("./customer-group-edit-
|
|
3372
|
+
lazy: () => import("./customer-group-edit-UA36663R.js")
|
|
3373
3373
|
},
|
|
3374
3374
|
{
|
|
3375
3375
|
path: "add-customers",
|
|
@@ -3526,7 +3526,7 @@ function getRouteMap({
|
|
|
3526
3526
|
children: [
|
|
3527
3527
|
{
|
|
3528
3528
|
path: "edit",
|
|
3529
|
-
lazy: () => import("./edit-inventory-item-
|
|
3529
|
+
lazy: () => import("./edit-inventory-item-NHSXZ7UB.js")
|
|
3530
3530
|
},
|
|
3531
3531
|
{
|
|
3532
3532
|
path: "attributes",
|
|
@@ -3596,7 +3596,7 @@ function getRouteMap({
|
|
|
3596
3596
|
children: [
|
|
3597
3597
|
{
|
|
3598
3598
|
path: "edit",
|
|
3599
|
-
lazy: () => import("./edit-
|
|
3599
|
+
lazy: () => import("./edit-YLWMEXUS.js")
|
|
3600
3600
|
},
|
|
3601
3601
|
{
|
|
3602
3602
|
path: "add-to-campaign",
|
|
@@ -3658,7 +3658,7 @@ function getRouteMap({
|
|
|
3658
3658
|
children: [
|
|
3659
3659
|
{
|
|
3660
3660
|
path: "edit",
|
|
3661
|
-
lazy: () => import("./edit-
|
|
3661
|
+
lazy: () => import("./edit-JT4OKP5H.js")
|
|
3662
3662
|
},
|
|
3663
3663
|
{
|
|
3664
3664
|
path: "configuration",
|
|
@@ -3725,7 +3725,7 @@ function getRouteMap({
|
|
|
3725
3725
|
children: [
|
|
3726
3726
|
{
|
|
3727
3727
|
path: "edit",
|
|
3728
|
-
lazy: () => import("./edit-
|
|
3728
|
+
lazy: () => import("./edit-UYYI6HIT.js")
|
|
3729
3729
|
},
|
|
3730
3730
|
{
|
|
3731
3731
|
path: "configuration",
|
|
@@ -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-HYJJLO63.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-HYJJLO63.js");
|
|
3797
3797
|
return { Component: ProfileEdit };
|
|
3798
3798
|
}
|
|
3799
3799
|
}
|
|
@@ -3818,19 +3818,19 @@ function getRouteMap({
|
|
|
3818
3818
|
children: [
|
|
3819
3819
|
{
|
|
3820
3820
|
path: "edit",
|
|
3821
|
-
lazy: () => import("./edit-
|
|
3821
|
+
lazy: () => import("./edit-2VECG7VL.js")
|
|
3822
3822
|
},
|
|
3823
3823
|
{
|
|
3824
3824
|
path: "address",
|
|
3825
|
-
lazy: () => import("./address-
|
|
3825
|
+
lazy: () => import("./address-ZR4EM2QA.js")
|
|
3826
3826
|
},
|
|
3827
3827
|
{
|
|
3828
3828
|
path: "payment-details",
|
|
3829
|
-
lazy: () => import("./payment-details-
|
|
3829
|
+
lazy: () => import("./payment-details-T7CKYYQR.js")
|
|
3830
3830
|
},
|
|
3831
3831
|
{
|
|
3832
3832
|
path: "professional-details",
|
|
3833
|
-
lazy: () => import("./professional-details-
|
|
3833
|
+
lazy: () => import("./professional-details-UVRM7GID.js")
|
|
3834
3834
|
},
|
|
3835
3835
|
{
|
|
3836
3836
|
path: "store-closure",
|
|
@@ -4225,7 +4225,7 @@ function getRouteMap({
|
|
|
4225
4225
|
{
|
|
4226
4226
|
path: "/login",
|
|
4227
4227
|
lazy: async () => {
|
|
4228
|
-
const { LoginPage } = await import("./login-
|
|
4228
|
+
const { LoginPage } = await import("./login-Z43XSPNR.js");
|
|
4229
4229
|
return { Component: LoginPage };
|
|
4230
4230
|
}
|
|
4231
4231
|
},
|
|
@@ -4236,22 +4236,22 @@ function getRouteMap({
|
|
|
4236
4236
|
{
|
|
4237
4237
|
path: "/register",
|
|
4238
4238
|
lazy: async () => {
|
|
4239
|
-
const { RegisterPage } = await import("./register-
|
|
4239
|
+
const { RegisterPage } = await import("./register-SAHRSTMJ.js");
|
|
4240
4240
|
return { Component: RegisterPage };
|
|
4241
4241
|
}
|
|
4242
4242
|
},
|
|
4243
4243
|
{
|
|
4244
4244
|
path: "/onboarding",
|
|
4245
|
-
lazy: () => import("./onboarding-
|
|
4245
|
+
lazy: () => import("./onboarding-EHKVCM6M.js")
|
|
4246
4246
|
},
|
|
4247
4247
|
{
|
|
4248
4248
|
path: "/invite",
|
|
4249
|
-
lazy: () => import("./invite-
|
|
4249
|
+
lazy: () => import("./invite-CQEODMVX.js")
|
|
4250
4250
|
},
|
|
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-SARJSWL4.js");
|
|
4255
4255
|
return { Component: StoreSelectPage };
|
|
4256
4256
|
}
|
|
4257
4257
|
},
|
|
@@ -139,25 +139,14 @@ var Invite = () => {
|
|
|
139
139
|
},
|
|
140
140
|
"form"
|
|
141
141
|
) }) }),
|
|
142
|
-
/* @__PURE__ */ jsx(
|
|
143
|
-
"
|
|
142
|
+
/* @__PURE__ */ jsx("div", { className: "hidden lg:flex flex-1 relative overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
143
|
+
"img",
|
|
144
144
|
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
backgroundSize: "cover",
|
|
149
|
-
backgroundPosition: "center"
|
|
150
|
-
},
|
|
151
|
-
children: /* @__PURE__ */ jsx(
|
|
152
|
-
"img",
|
|
153
|
-
{
|
|
154
|
-
src: assetUrl("/onboarding/0.png"),
|
|
155
|
-
alt: "",
|
|
156
|
-
className: "w-[75%] max-h-[75%] object-contain"
|
|
157
|
-
}
|
|
158
|
-
)
|
|
145
|
+
src: assetUrl("/onboarding/illustration.svg"),
|
|
146
|
+
alt: "",
|
|
147
|
+
className: "h-full w-full object-cover"
|
|
159
148
|
}
|
|
160
|
-
)
|
|
149
|
+
) })
|
|
161
150
|
] });
|
|
162
151
|
};
|
|
163
152
|
var SuccessView = ({ sellerName }) => {
|
|
@@ -61,7 +61,7 @@ var onboardingLoader = async () => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/pages/onboarding/onboarding.tsx
|
|
64
|
-
import { useEffect
|
|
64
|
+
import { useEffect } from "react";
|
|
65
65
|
import { Navigate, useLocation } from "react-router-dom";
|
|
66
66
|
|
|
67
67
|
// src/components/onboarding-wizard/onboarding-wizard.tsx
|
|
@@ -130,38 +130,16 @@ var WizardSidebar = ({
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
// src/components/onboarding-wizard/wizard-preview.tsx
|
|
133
|
-
import { useEffect } from "react";
|
|
134
133
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
135
|
-
var
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
2: assetUrl("/onboarding/3.png"),
|
|
139
|
-
3: assetUrl("/onboarding/4.png")
|
|
140
|
-
};
|
|
141
|
-
var preloadImages = () => {
|
|
142
|
-
Object.values(STEP_IMAGES).forEach((src) => {
|
|
143
|
-
const img = new Image();
|
|
144
|
-
img.src = src;
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
var WizardPreview = ({ currentStep }) => {
|
|
148
|
-
useEffect(preloadImages, []);
|
|
149
|
-
const image = STEP_IMAGES[currentStep];
|
|
150
|
-
return /* @__PURE__ */ jsx2(
|
|
151
|
-
"div",
|
|
134
|
+
var WizardPreview = () => {
|
|
135
|
+
return /* @__PURE__ */ jsx2("div", { className: "hidden lg:flex flex-1 relative overflow-hidden", children: /* @__PURE__ */ jsx2(
|
|
136
|
+
"img",
|
|
152
137
|
{
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"img",
|
|
157
|
-
{
|
|
158
|
-
src: image,
|
|
159
|
-
alt: "",
|
|
160
|
-
className: "w-[75%] max-h-[75%] object-contain"
|
|
161
|
-
}
|
|
162
|
-
)
|
|
138
|
+
src: assetUrl("/onboarding/illustration.svg"),
|
|
139
|
+
alt: "",
|
|
140
|
+
className: "h-full w-full object-cover"
|
|
163
141
|
}
|
|
164
|
-
);
|
|
142
|
+
) });
|
|
165
143
|
};
|
|
166
144
|
|
|
167
145
|
// src/components/onboarding-wizard/wizard-step.tsx
|
|
@@ -367,6 +345,7 @@ var StoreStep = ({ onSubmit, isPending }) => {
|
|
|
367
345
|
const form = useExtendableForm({
|
|
368
346
|
schema: StoreStepSchema,
|
|
369
347
|
model: "seller",
|
|
348
|
+
zone: "onboarding",
|
|
370
349
|
data: store,
|
|
371
350
|
defaultValues: {
|
|
372
351
|
name: "",
|
|
@@ -949,7 +928,7 @@ var OnboardingWizard = ({ memberEmail }) => {
|
|
|
949
928
|
children: /* @__PURE__ */ jsx8(AnimatePresence, { mode: "wait", children: renderStep() })
|
|
950
929
|
}
|
|
951
930
|
),
|
|
952
|
-
/* @__PURE__ */ jsx8(WizardPreview, {
|
|
931
|
+
/* @__PURE__ */ jsx8(WizardPreview, {})
|
|
953
932
|
] });
|
|
954
933
|
};
|
|
955
934
|
|
|
@@ -959,7 +938,7 @@ var ONBOARDING_EMAIL_KEY = "mercur_onboarding_email";
|
|
|
959
938
|
var Onboarding = () => {
|
|
960
939
|
const location = useLocation();
|
|
961
940
|
const stateEmail = location.state?.email;
|
|
962
|
-
|
|
941
|
+
useEffect(() => {
|
|
963
942
|
if (stateEmail) {
|
|
964
943
|
sessionStorage.setItem(ONBOARDING_EMAIL_KEY, stateEmail);
|
|
965
944
|
}
|
package/dist/pages/index.js
CHANGED
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.49",
|
|
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.49",
|
|
38
|
+
"@mercurjs/client": "2.2.0-canary.49",
|
|
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.49",
|
|
92
|
+
"@mercurjs/dashboard-sdk": "2.2.0-canary.49",
|
|
93
|
+
"@mercurjs/types": "2.2.0-canary.49"
|
|
94
94
|
}
|
|
95
95
|
}
|