@medusajs/draft-order 2.10.2-snapshot-20250903170608 → 2.10.2-snapshot-20250904140356
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 +26 -26
- package/.medusa/server/src/admin/index.mjs +26 -26
- package/package.json +16 -16
|
@@ -9750,27 +9750,6 @@ const BillingAddressForm = ({ order }) => {
|
|
|
9750
9750
|
) });
|
|
9751
9751
|
};
|
|
9752
9752
|
const schema$5 = addressSchema;
|
|
9753
|
-
const CustomItems = () => {
|
|
9754
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer, { children: [
|
|
9755
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Edit Custom Items" }) }) }),
|
|
9756
|
-
/* @__PURE__ */ jsxRuntime.jsx(CustomItemsForm, {})
|
|
9757
|
-
] });
|
|
9758
|
-
};
|
|
9759
|
-
const CustomItemsForm = () => {
|
|
9760
|
-
const form = reactHookForm.useForm({
|
|
9761
|
-
resolver: zod.zodResolver(schema$4)
|
|
9762
|
-
});
|
|
9763
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
9764
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, {}),
|
|
9765
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
9766
|
-
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
9767
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", children: "Save" })
|
|
9768
|
-
] }) })
|
|
9769
|
-
] }) });
|
|
9770
|
-
};
|
|
9771
|
-
const schema$4 = objectType({
|
|
9772
|
-
email: stringType().email()
|
|
9773
|
-
});
|
|
9774
9753
|
const Email = () => {
|
|
9775
9754
|
const { id } = reactRouterDom.useParams();
|
|
9776
9755
|
const { order, isPending, isError, error } = useOrder(id, {
|
|
@@ -9793,7 +9772,7 @@ const EmailForm = ({ order }) => {
|
|
|
9793
9772
|
defaultValues: {
|
|
9794
9773
|
email: order.email ?? ""
|
|
9795
9774
|
},
|
|
9796
|
-
resolver: zod.zodResolver(schema$
|
|
9775
|
+
resolver: zod.zodResolver(schema$4)
|
|
9797
9776
|
});
|
|
9798
9777
|
const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
|
|
9799
9778
|
const { handleSuccess } = useRouteModal();
|
|
@@ -9836,6 +9815,27 @@ const EmailForm = ({ order }) => {
|
|
|
9836
9815
|
}
|
|
9837
9816
|
) });
|
|
9838
9817
|
};
|
|
9818
|
+
const schema$4 = objectType({
|
|
9819
|
+
email: stringType().email()
|
|
9820
|
+
});
|
|
9821
|
+
const CustomItems = () => {
|
|
9822
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer, { children: [
|
|
9823
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Edit Custom Items" }) }) }),
|
|
9824
|
+
/* @__PURE__ */ jsxRuntime.jsx(CustomItemsForm, {})
|
|
9825
|
+
] });
|
|
9826
|
+
};
|
|
9827
|
+
const CustomItemsForm = () => {
|
|
9828
|
+
const form = reactHookForm.useForm({
|
|
9829
|
+
resolver: zod.zodResolver(schema$3)
|
|
9830
|
+
});
|
|
9831
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
9832
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, {}),
|
|
9833
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
9834
|
+
/* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
9835
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", children: "Save" })
|
|
9836
|
+
] }) })
|
|
9837
|
+
] }) });
|
|
9838
|
+
};
|
|
9839
9839
|
const schema$3 = objectType({
|
|
9840
9840
|
email: stringType().email()
|
|
9841
9841
|
});
|
|
@@ -13056,14 +13056,14 @@ const routeModule = {
|
|
|
13056
13056
|
Component: BillingAddress,
|
|
13057
13057
|
path: "/draft-orders/:id/billing-address"
|
|
13058
13058
|
},
|
|
13059
|
-
{
|
|
13060
|
-
Component: CustomItems,
|
|
13061
|
-
path: "/draft-orders/:id/custom-items"
|
|
13062
|
-
},
|
|
13063
13059
|
{
|
|
13064
13060
|
Component: Email,
|
|
13065
13061
|
path: "/draft-orders/:id/email"
|
|
13066
13062
|
},
|
|
13063
|
+
{
|
|
13064
|
+
Component: CustomItems,
|
|
13065
|
+
path: "/draft-orders/:id/custom-items"
|
|
13066
|
+
},
|
|
13067
13067
|
{
|
|
13068
13068
|
Component: Items,
|
|
13069
13069
|
path: "/draft-orders/:id/items"
|
|
@@ -9744,27 +9744,6 @@ const BillingAddressForm = ({ order }) => {
|
|
|
9744
9744
|
) });
|
|
9745
9745
|
};
|
|
9746
9746
|
const schema$5 = addressSchema;
|
|
9747
|
-
const CustomItems = () => {
|
|
9748
|
-
return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
|
|
9749
|
-
/* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit Custom Items" }) }) }),
|
|
9750
|
-
/* @__PURE__ */ jsx(CustomItemsForm, {})
|
|
9751
|
-
] });
|
|
9752
|
-
};
|
|
9753
|
-
const CustomItemsForm = () => {
|
|
9754
|
-
const form = useForm({
|
|
9755
|
-
resolver: zodResolver(schema$4)
|
|
9756
|
-
});
|
|
9757
|
-
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
9758
|
-
/* @__PURE__ */ jsx(RouteDrawer.Body, {}),
|
|
9759
|
-
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
9760
|
-
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
9761
|
-
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", children: "Save" })
|
|
9762
|
-
] }) })
|
|
9763
|
-
] }) });
|
|
9764
|
-
};
|
|
9765
|
-
const schema$4 = objectType({
|
|
9766
|
-
email: stringType().email()
|
|
9767
|
-
});
|
|
9768
9747
|
const Email = () => {
|
|
9769
9748
|
const { id } = useParams();
|
|
9770
9749
|
const { order, isPending, isError, error } = useOrder(id, {
|
|
@@ -9787,7 +9766,7 @@ const EmailForm = ({ order }) => {
|
|
|
9787
9766
|
defaultValues: {
|
|
9788
9767
|
email: order.email ?? ""
|
|
9789
9768
|
},
|
|
9790
|
-
resolver: zodResolver(schema$
|
|
9769
|
+
resolver: zodResolver(schema$4)
|
|
9791
9770
|
});
|
|
9792
9771
|
const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
|
|
9793
9772
|
const { handleSuccess } = useRouteModal();
|
|
@@ -9830,6 +9809,27 @@ const EmailForm = ({ order }) => {
|
|
|
9830
9809
|
}
|
|
9831
9810
|
) });
|
|
9832
9811
|
};
|
|
9812
|
+
const schema$4 = objectType({
|
|
9813
|
+
email: stringType().email()
|
|
9814
|
+
});
|
|
9815
|
+
const CustomItems = () => {
|
|
9816
|
+
return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
|
|
9817
|
+
/* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit Custom Items" }) }) }),
|
|
9818
|
+
/* @__PURE__ */ jsx(CustomItemsForm, {})
|
|
9819
|
+
] });
|
|
9820
|
+
};
|
|
9821
|
+
const CustomItemsForm = () => {
|
|
9822
|
+
const form = useForm({
|
|
9823
|
+
resolver: zodResolver(schema$3)
|
|
9824
|
+
});
|
|
9825
|
+
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
|
|
9826
|
+
/* @__PURE__ */ jsx(RouteDrawer.Body, {}),
|
|
9827
|
+
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
9828
|
+
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
|
|
9829
|
+
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", children: "Save" })
|
|
9830
|
+
] }) })
|
|
9831
|
+
] }) });
|
|
9832
|
+
};
|
|
9833
9833
|
const schema$3 = objectType({
|
|
9834
9834
|
email: stringType().email()
|
|
9835
9835
|
});
|
|
@@ -13050,14 +13050,14 @@ const routeModule = {
|
|
|
13050
13050
|
Component: BillingAddress,
|
|
13051
13051
|
path: "/draft-orders/:id/billing-address"
|
|
13052
13052
|
},
|
|
13053
|
-
{
|
|
13054
|
-
Component: CustomItems,
|
|
13055
|
-
path: "/draft-orders/:id/custom-items"
|
|
13056
|
-
},
|
|
13057
13053
|
{
|
|
13058
13054
|
Component: Email,
|
|
13059
13055
|
path: "/draft-orders/:id/email"
|
|
13060
13056
|
},
|
|
13057
|
+
{
|
|
13058
|
+
Component: CustomItems,
|
|
13059
|
+
path: "/draft-orders/:id/custom-items"
|
|
13060
|
+
},
|
|
13061
13061
|
{
|
|
13062
13062
|
Component: Items,
|
|
13063
13063
|
path: "/draft-orders/:id/items"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/draft-order",
|
|
3
|
-
"version": "2.10.2-snapshot-
|
|
3
|
+
"version": "2.10.2-snapshot-20250904140356",
|
|
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-snapshot-
|
|
39
|
+
"@medusajs/js-sdk": "2.10.2-snapshot-20250904140356",
|
|
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-snapshot-
|
|
49
|
-
"@medusajs/cli": "2.10.2-snapshot-
|
|
50
|
-
"@medusajs/framework": "2.10.2-snapshot-
|
|
51
|
-
"@medusajs/icons": "2.10.2-snapshot-
|
|
52
|
-
"@medusajs/test-utils": "2.10.2-snapshot-
|
|
53
|
-
"@medusajs/types": "2.10.2-snapshot-
|
|
54
|
-
"@medusajs/ui": "4.0.22-snapshot-
|
|
55
|
-
"@medusajs/ui-preset": "2.10.2-snapshot-
|
|
48
|
+
"@medusajs/admin-sdk": "2.10.2-snapshot-20250904140356",
|
|
49
|
+
"@medusajs/cli": "2.10.2-snapshot-20250904140356",
|
|
50
|
+
"@medusajs/framework": "2.10.2-snapshot-20250904140356",
|
|
51
|
+
"@medusajs/icons": "2.10.2-snapshot-20250904140356",
|
|
52
|
+
"@medusajs/test-utils": "2.10.2-snapshot-20250904140356",
|
|
53
|
+
"@medusajs/types": "2.10.2-snapshot-20250904140356",
|
|
54
|
+
"@medusajs/ui": "4.0.22-snapshot-20250904140356",
|
|
55
|
+
"@medusajs/ui-preset": "2.10.2-snapshot-20250904140356",
|
|
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-snapshot-
|
|
80
|
-
"@medusajs/cli": "2.10.2-snapshot-
|
|
81
|
-
"@medusajs/framework": "2.10.2-snapshot-
|
|
82
|
-
"@medusajs/icons": "2.10.2-snapshot-
|
|
83
|
-
"@medusajs/test-utils": "2.10.2-snapshot-
|
|
84
|
-
"@medusajs/ui": "4.0.22-snapshot-
|
|
79
|
+
"@medusajs/admin-sdk": "2.10.2-snapshot-20250904140356",
|
|
80
|
+
"@medusajs/cli": "2.10.2-snapshot-20250904140356",
|
|
81
|
+
"@medusajs/framework": "2.10.2-snapshot-20250904140356",
|
|
82
|
+
"@medusajs/icons": "2.10.2-snapshot-20250904140356",
|
|
83
|
+
"@medusajs/test-utils": "2.10.2-snapshot-20250904140356",
|
|
84
|
+
"@medusajs/ui": "4.0.22-snapshot-20250904140356",
|
|
85
85
|
"@mikro-orm/cli": "6.4.3",
|
|
86
86
|
"@mikro-orm/core": "6.4.3",
|
|
87
87
|
"@mikro-orm/knex": "6.4.3",
|