@medusajs/draft-order 2.10.2-preview-20250912060156 → 2.10.2-preview-20250912120159
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/.medusa/server/src/admin/index.js +73 -73
- package/.medusa/server/src/admin/index.mjs +73 -73
- package/package.json +16 -16
|
@@ -9763,23 +9763,70 @@ const BillingAddressForm = ({ order }) => {
|
|
|
9763
9763
|
) });
|
|
9764
9764
|
};
|
|
9765
9765
|
const schema$5 = addressSchema;
|
|
9766
|
-
const
|
|
9766
|
+
const Email = () => {
|
|
9767
|
+
const { id } = reactRouterDom.useParams();
|
|
9768
|
+
const { order, isPending, isError, error } = useOrder(id, {
|
|
9769
|
+
fields: "+email"
|
|
9770
|
+
});
|
|
9771
|
+
if (isError) {
|
|
9772
|
+
throw error;
|
|
9773
|
+
}
|
|
9774
|
+
const isReady = !isPending && !!order;
|
|
9767
9775
|
return /* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer, { children: [
|
|
9768
|
-
/* @__PURE__ */ jsxRuntime.
|
|
9769
|
-
|
|
9776
|
+
/* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer.Header, { children: [
|
|
9777
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Edit Email" }) }),
|
|
9778
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Description, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Edit the email for the draft order" }) })
|
|
9779
|
+
] }),
|
|
9780
|
+
isReady && /* @__PURE__ */ jsxRuntime.jsx(EmailForm, { order })
|
|
9770
9781
|
] });
|
|
9771
9782
|
};
|
|
9772
|
-
const
|
|
9783
|
+
const EmailForm = ({ order }) => {
|
|
9773
9784
|
const form = reactHookForm.useForm({
|
|
9785
|
+
defaultValues: {
|
|
9786
|
+
email: order.email ?? ""
|
|
9787
|
+
},
|
|
9774
9788
|
resolver: zod.zodResolver(schema$4)
|
|
9775
9789
|
});
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9790
|
+
const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
|
|
9791
|
+
const { handleSuccess } = useRouteModal();
|
|
9792
|
+
const onSubmit = form.handleSubmit(async (data) => {
|
|
9793
|
+
await mutateAsync(
|
|
9794
|
+
{ email: data.email },
|
|
9795
|
+
{
|
|
9796
|
+
onSuccess: () => {
|
|
9797
|
+
handleSuccess();
|
|
9798
|
+
},
|
|
9799
|
+
onError: (error) => {
|
|
9800
|
+
ui.toast.error(error.message);
|
|
9801
|
+
}
|
|
9802
|
+
}
|
|
9803
|
+
);
|
|
9804
|
+
});
|
|
9805
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9806
|
+
KeyboundForm,
|
|
9807
|
+
{
|
|
9808
|
+
className: "flex flex-1 flex-col overflow-hidden",
|
|
9809
|
+
onSubmit,
|
|
9810
|
+
children: [
|
|
9811
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, { className: "flex flex-col gap-y-6 overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9812
|
+
Form$2.Field,
|
|
9813
|
+
{
|
|
9814
|
+
control: form.control,
|
|
9815
|
+
name: "email",
|
|
9816
|
+
render: ({ field }) => /* @__PURE__ */ jsxRuntime.jsxs(Form$2.Item, { children: [
|
|
9817
|
+
/* @__PURE__ */ jsxRuntime.jsx(Form$2.Label, { children: "Email" }),
|
|
9818
|
+
/* @__PURE__ */ jsxRuntime.jsx(Form$2.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Input, { ...field }) }),
|
|
9819
|
+
/* @__PURE__ */ jsxRuntime.jsx(Form$2.ErrorMessage, {})
|
|
9820
|
+
] })
|
|
9821
|
+
}
|
|
9822
|
+
) }),
|
|
9823
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
9824
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
9825
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", isLoading: isPending, children: "Save" })
|
|
9826
|
+
] }) })
|
|
9827
|
+
]
|
|
9828
|
+
}
|
|
9829
|
+
) });
|
|
9783
9830
|
};
|
|
9784
9831
|
const schema$4 = objectType({
|
|
9785
9832
|
email: stringType().email()
|
|
@@ -12977,70 +13024,23 @@ const Illustration = () => {
|
|
|
12977
13024
|
const schema$1 = objectType({
|
|
12978
13025
|
customer_id: stringType().min(1)
|
|
12979
13026
|
});
|
|
12980
|
-
const
|
|
12981
|
-
const { id } = reactRouterDom.useParams();
|
|
12982
|
-
const { order, isPending, isError, error } = useOrder(id, {
|
|
12983
|
-
fields: "+email"
|
|
12984
|
-
});
|
|
12985
|
-
if (isError) {
|
|
12986
|
-
throw error;
|
|
12987
|
-
}
|
|
12988
|
-
const isReady = !isPending && !!order;
|
|
13027
|
+
const CustomItems = () => {
|
|
12989
13028
|
return /* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer, { children: [
|
|
12990
|
-
/* @__PURE__ */ jsxRuntime.
|
|
12991
|
-
|
|
12992
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Description, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Edit the email for the draft order" }) })
|
|
12993
|
-
] }),
|
|
12994
|
-
isReady && /* @__PURE__ */ jsxRuntime.jsx(EmailForm, { order })
|
|
13029
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Edit Custom Items" }) }) }),
|
|
13030
|
+
/* @__PURE__ */ jsxRuntime.jsx(CustomItemsForm, {})
|
|
12995
13031
|
] });
|
|
12996
13032
|
};
|
|
12997
|
-
const
|
|
13033
|
+
const CustomItemsForm = () => {
|
|
12998
13034
|
const form = reactHookForm.useForm({
|
|
12999
|
-
defaultValues: {
|
|
13000
|
-
email: order.email ?? ""
|
|
13001
|
-
},
|
|
13002
13035
|
resolver: zod.zodResolver(schema)
|
|
13003
13036
|
});
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
{
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
handleSuccess();
|
|
13012
|
-
},
|
|
13013
|
-
onError: (error) => {
|
|
13014
|
-
ui.toast.error(error.message);
|
|
13015
|
-
}
|
|
13016
|
-
}
|
|
13017
|
-
);
|
|
13018
|
-
});
|
|
13019
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13020
|
-
KeyboundForm,
|
|
13021
|
-
{
|
|
13022
|
-
className: "flex flex-1 flex-col overflow-hidden",
|
|
13023
|
-
onSubmit,
|
|
13024
|
-
children: [
|
|
13025
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, { className: "flex flex-col gap-y-6 overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13026
|
-
Form$2.Field,
|
|
13027
|
-
{
|
|
13028
|
-
control: form.control,
|
|
13029
|
-
name: "email",
|
|
13030
|
-
render: ({ field }) => /* @__PURE__ */ jsxRuntime.jsxs(Form$2.Item, { children: [
|
|
13031
|
-
/* @__PURE__ */ jsxRuntime.jsx(Form$2.Label, { children: "Email" }),
|
|
13032
|
-
/* @__PURE__ */ jsxRuntime.jsx(Form$2.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Input, { ...field }) }),
|
|
13033
|
-
/* @__PURE__ */ jsxRuntime.jsx(Form$2.ErrorMessage, {})
|
|
13034
|
-
] })
|
|
13035
|
-
}
|
|
13036
|
-
) }),
|
|
13037
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
13038
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
13039
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", isLoading: isPending, children: "Save" })
|
|
13040
|
-
] }) })
|
|
13041
|
-
]
|
|
13042
|
-
}
|
|
13043
|
-
) });
|
|
13037
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
13038
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, {}),
|
|
13039
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
13040
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
13041
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", children: "Save" })
|
|
13042
|
+
] }) })
|
|
13043
|
+
] }) });
|
|
13044
13044
|
};
|
|
13045
13045
|
const schema = objectType({
|
|
13046
13046
|
email: stringType().email()
|
|
@@ -13070,8 +13070,8 @@ const routeModule = {
|
|
|
13070
13070
|
path: "/draft-orders/:id/billing-address"
|
|
13071
13071
|
},
|
|
13072
13072
|
{
|
|
13073
|
-
Component:
|
|
13074
|
-
path: "/draft-orders/:id/
|
|
13073
|
+
Component: Email,
|
|
13074
|
+
path: "/draft-orders/:id/email"
|
|
13075
13075
|
},
|
|
13076
13076
|
{
|
|
13077
13077
|
Component: Items,
|
|
@@ -13102,8 +13102,8 @@ const routeModule = {
|
|
|
13102
13102
|
path: "/draft-orders/:id/transfer-ownership"
|
|
13103
13103
|
},
|
|
13104
13104
|
{
|
|
13105
|
-
Component:
|
|
13106
|
-
path: "/draft-orders/:id/
|
|
13105
|
+
Component: CustomItems,
|
|
13106
|
+
path: "/draft-orders/:id/custom-items"
|
|
13107
13107
|
}
|
|
13108
13108
|
]
|
|
13109
13109
|
}
|
|
@@ -9757,23 +9757,70 @@ const BillingAddressForm = ({ order }) => {
|
|
|
9757
9757
|
) });
|
|
9758
9758
|
};
|
|
9759
9759
|
const schema$5 = addressSchema;
|
|
9760
|
-
const
|
|
9760
|
+
const Email = () => {
|
|
9761
|
+
const { id } = useParams();
|
|
9762
|
+
const { order, isPending, isError, error } = useOrder(id, {
|
|
9763
|
+
fields: "+email"
|
|
9764
|
+
});
|
|
9765
|
+
if (isError) {
|
|
9766
|
+
throw error;
|
|
9767
|
+
}
|
|
9768
|
+
const isReady = !isPending && !!order;
|
|
9761
9769
|
return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
|
|
9762
|
-
/* @__PURE__ */
|
|
9763
|
-
|
|
9770
|
+
/* @__PURE__ */ jsxs(RouteDrawer.Header, { children: [
|
|
9771
|
+
/* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit Email" }) }),
|
|
9772
|
+
/* @__PURE__ */ jsx(RouteDrawer.Description, { asChild: true, children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Edit the email for the draft order" }) })
|
|
9773
|
+
] }),
|
|
9774
|
+
isReady && /* @__PURE__ */ jsx(EmailForm, { order })
|
|
9764
9775
|
] });
|
|
9765
9776
|
};
|
|
9766
|
-
const
|
|
9777
|
+
const EmailForm = ({ order }) => {
|
|
9767
9778
|
const form = useForm({
|
|
9779
|
+
defaultValues: {
|
|
9780
|
+
email: order.email ?? ""
|
|
9781
|
+
},
|
|
9768
9782
|
resolver: zodResolver(schema$4)
|
|
9769
9783
|
});
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9784
|
+
const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
|
|
9785
|
+
const { handleSuccess } = useRouteModal();
|
|
9786
|
+
const onSubmit = form.handleSubmit(async (data) => {
|
|
9787
|
+
await mutateAsync(
|
|
9788
|
+
{ email: data.email },
|
|
9789
|
+
{
|
|
9790
|
+
onSuccess: () => {
|
|
9791
|
+
handleSuccess();
|
|
9792
|
+
},
|
|
9793
|
+
onError: (error) => {
|
|
9794
|
+
toast.error(error.message);
|
|
9795
|
+
}
|
|
9796
|
+
}
|
|
9797
|
+
);
|
|
9798
|
+
});
|
|
9799
|
+
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(
|
|
9800
|
+
KeyboundForm,
|
|
9801
|
+
{
|
|
9802
|
+
className: "flex flex-1 flex-col overflow-hidden",
|
|
9803
|
+
onSubmit,
|
|
9804
|
+
children: [
|
|
9805
|
+
/* @__PURE__ */ jsx(RouteDrawer.Body, { className: "flex flex-col gap-y-6 overflow-y-auto", children: /* @__PURE__ */ jsx(
|
|
9806
|
+
Form$2.Field,
|
|
9807
|
+
{
|
|
9808
|
+
control: form.control,
|
|
9809
|
+
name: "email",
|
|
9810
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(Form$2.Item, { children: [
|
|
9811
|
+
/* @__PURE__ */ jsx(Form$2.Label, { children: "Email" }),
|
|
9812
|
+
/* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
|
|
9813
|
+
/* @__PURE__ */ jsx(Form$2.ErrorMessage, {})
|
|
9814
|
+
] })
|
|
9815
|
+
}
|
|
9816
|
+
) }),
|
|
9817
|
+
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
9818
|
+
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
9819
|
+
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: "Save" })
|
|
9820
|
+
] }) })
|
|
9821
|
+
]
|
|
9822
|
+
}
|
|
9823
|
+
) });
|
|
9777
9824
|
};
|
|
9778
9825
|
const schema$4 = objectType({
|
|
9779
9826
|
email: stringType().email()
|
|
@@ -12971,70 +13018,23 @@ const Illustration = () => {
|
|
|
12971
13018
|
const schema$1 = objectType({
|
|
12972
13019
|
customer_id: stringType().min(1)
|
|
12973
13020
|
});
|
|
12974
|
-
const
|
|
12975
|
-
const { id } = useParams();
|
|
12976
|
-
const { order, isPending, isError, error } = useOrder(id, {
|
|
12977
|
-
fields: "+email"
|
|
12978
|
-
});
|
|
12979
|
-
if (isError) {
|
|
12980
|
-
throw error;
|
|
12981
|
-
}
|
|
12982
|
-
const isReady = !isPending && !!order;
|
|
13021
|
+
const CustomItems = () => {
|
|
12983
13022
|
return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
|
|
12984
|
-
/* @__PURE__ */
|
|
12985
|
-
|
|
12986
|
-
/* @__PURE__ */ jsx(RouteDrawer.Description, { asChild: true, children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Edit the email for the draft order" }) })
|
|
12987
|
-
] }),
|
|
12988
|
-
isReady && /* @__PURE__ */ jsx(EmailForm, { order })
|
|
13023
|
+
/* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit Custom Items" }) }) }),
|
|
13024
|
+
/* @__PURE__ */ jsx(CustomItemsForm, {})
|
|
12989
13025
|
] });
|
|
12990
13026
|
};
|
|
12991
|
-
const
|
|
13027
|
+
const CustomItemsForm = () => {
|
|
12992
13028
|
const form = useForm({
|
|
12993
|
-
defaultValues: {
|
|
12994
|
-
email: order.email ?? ""
|
|
12995
|
-
},
|
|
12996
13029
|
resolver: zodResolver(schema)
|
|
12997
13030
|
});
|
|
12998
|
-
|
|
12999
|
-
|
|
13000
|
-
|
|
13001
|
-
|
|
13002
|
-
{
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
handleSuccess();
|
|
13006
|
-
},
|
|
13007
|
-
onError: (error) => {
|
|
13008
|
-
toast.error(error.message);
|
|
13009
|
-
}
|
|
13010
|
-
}
|
|
13011
|
-
);
|
|
13012
|
-
});
|
|
13013
|
-
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(
|
|
13014
|
-
KeyboundForm,
|
|
13015
|
-
{
|
|
13016
|
-
className: "flex flex-1 flex-col overflow-hidden",
|
|
13017
|
-
onSubmit,
|
|
13018
|
-
children: [
|
|
13019
|
-
/* @__PURE__ */ jsx(RouteDrawer.Body, { className: "flex flex-col gap-y-6 overflow-y-auto", children: /* @__PURE__ */ jsx(
|
|
13020
|
-
Form$2.Field,
|
|
13021
|
-
{
|
|
13022
|
-
control: form.control,
|
|
13023
|
-
name: "email",
|
|
13024
|
-
render: ({ field }) => /* @__PURE__ */ jsxs(Form$2.Item, { children: [
|
|
13025
|
-
/* @__PURE__ */ jsx(Form$2.Label, { children: "Email" }),
|
|
13026
|
-
/* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
|
|
13027
|
-
/* @__PURE__ */ jsx(Form$2.ErrorMessage, {})
|
|
13028
|
-
] })
|
|
13029
|
-
}
|
|
13030
|
-
) }),
|
|
13031
|
-
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
13032
|
-
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
13033
|
-
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: "Save" })
|
|
13034
|
-
] }) })
|
|
13035
|
-
]
|
|
13036
|
-
}
|
|
13037
|
-
) });
|
|
13031
|
+
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
13032
|
+
/* @__PURE__ */ jsx(RouteDrawer.Body, {}),
|
|
13033
|
+
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
13034
|
+
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
13035
|
+
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", children: "Save" })
|
|
13036
|
+
] }) })
|
|
13037
|
+
] }) });
|
|
13038
13038
|
};
|
|
13039
13039
|
const schema = objectType({
|
|
13040
13040
|
email: stringType().email()
|
|
@@ -13064,8 +13064,8 @@ const routeModule = {
|
|
|
13064
13064
|
path: "/draft-orders/:id/billing-address"
|
|
13065
13065
|
},
|
|
13066
13066
|
{
|
|
13067
|
-
Component:
|
|
13068
|
-
path: "/draft-orders/:id/
|
|
13067
|
+
Component: Email,
|
|
13068
|
+
path: "/draft-orders/:id/email"
|
|
13069
13069
|
},
|
|
13070
13070
|
{
|
|
13071
13071
|
Component: Items,
|
|
@@ -13096,8 +13096,8 @@ const routeModule = {
|
|
|
13096
13096
|
path: "/draft-orders/:id/transfer-ownership"
|
|
13097
13097
|
},
|
|
13098
13098
|
{
|
|
13099
|
-
Component:
|
|
13100
|
-
path: "/draft-orders/:id/
|
|
13099
|
+
Component: CustomItems,
|
|
13100
|
+
path: "/draft-orders/:id/custom-items"
|
|
13101
13101
|
}
|
|
13102
13102
|
]
|
|
13103
13103
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/draft-order",
|
|
3
|
-
"version": "2.10.2-preview-
|
|
3
|
+
"version": "2.10.2-preview-20250912120159",
|
|
4
4
|
"description": "A starter for Medusa plugins.",
|
|
5
5
|
"author": "Medusa (https://medusajs.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@ariakit/react": "^0.4.15",
|
|
38
38
|
"@hookform/resolvers": "3.4.2",
|
|
39
|
-
"@medusajs/js-sdk": "2.10.2-preview-
|
|
39
|
+
"@medusajs/js-sdk": "2.10.2-preview-20250912120159",
|
|
40
40
|
"@tanstack/react-query": "5.64.2",
|
|
41
41
|
"@uiw/react-json-view": "^2.0.0-alpha.17",
|
|
42
42
|
"date-fns": "^3.6.0",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"react-hook-form": "7.49.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@medusajs/admin-sdk": "2.10.2-preview-
|
|
49
|
-
"@medusajs/cli": "2.10.2-preview-
|
|
50
|
-
"@medusajs/framework": "2.10.2-preview-
|
|
51
|
-
"@medusajs/icons": "2.10.2-preview-
|
|
52
|
-
"@medusajs/test-utils": "2.10.2-preview-
|
|
53
|
-
"@medusajs/types": "2.10.2-preview-
|
|
54
|
-
"@medusajs/ui": "4.0.22-preview-
|
|
55
|
-
"@medusajs/ui-preset": "2.10.2-preview-
|
|
48
|
+
"@medusajs/admin-sdk": "2.10.2-preview-20250912120159",
|
|
49
|
+
"@medusajs/cli": "2.10.2-preview-20250912120159",
|
|
50
|
+
"@medusajs/framework": "2.10.2-preview-20250912120159",
|
|
51
|
+
"@medusajs/icons": "2.10.2-preview-20250912120159",
|
|
52
|
+
"@medusajs/test-utils": "2.10.2-preview-20250912120159",
|
|
53
|
+
"@medusajs/types": "2.10.2-preview-20250912120159",
|
|
54
|
+
"@medusajs/ui": "4.0.22-preview-20250912120159",
|
|
55
|
+
"@medusajs/ui-preset": "2.10.2-preview-20250912120159",
|
|
56
56
|
"@mikro-orm/cli": "6.4.3",
|
|
57
57
|
"@mikro-orm/core": "6.4.3",
|
|
58
58
|
"@mikro-orm/knex": "6.4.3",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"yalc": "^1.0.0-pre.53"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@medusajs/admin-sdk": "2.10.2-preview-
|
|
80
|
-
"@medusajs/cli": "2.10.2-preview-
|
|
81
|
-
"@medusajs/framework": "2.10.2-preview-
|
|
82
|
-
"@medusajs/icons": "2.10.2-preview-
|
|
83
|
-
"@medusajs/test-utils": "2.10.2-preview-
|
|
84
|
-
"@medusajs/ui": "4.0.22-preview-
|
|
79
|
+
"@medusajs/admin-sdk": "2.10.2-preview-20250912120159",
|
|
80
|
+
"@medusajs/cli": "2.10.2-preview-20250912120159",
|
|
81
|
+
"@medusajs/framework": "2.10.2-preview-20250912120159",
|
|
82
|
+
"@medusajs/icons": "2.10.2-preview-20250912120159",
|
|
83
|
+
"@medusajs/test-utils": "2.10.2-preview-20250912120159",
|
|
84
|
+
"@medusajs/ui": "4.0.22-preview-20250912120159",
|
|
85
85
|
"@mikro-orm/cli": "6.4.3",
|
|
86
86
|
"@mikro-orm/core": "6.4.3",
|
|
87
87
|
"@mikro-orm/knex": "6.4.3",
|