@medusajs/draft-order 2.10.2-snapshot-20250904140356 → 2.10.2-snapshot-20250904142832

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.
@@ -9750,6 +9750,27 @@ 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
+ });
9753
9774
  const Email = () => {
9754
9775
  const { id } = reactRouterDom.useParams();
9755
9776
  const { order, isPending, isError, error } = useOrder(id, {
@@ -9772,7 +9793,7 @@ const EmailForm = ({ order }) => {
9772
9793
  defaultValues: {
9773
9794
  email: order.email ?? ""
9774
9795
  },
9775
- resolver: zod.zodResolver(schema$4)
9796
+ resolver: zod.zodResolver(schema$3)
9776
9797
  });
9777
9798
  const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
9778
9799
  const { handleSuccess } = useRouteModal();
@@ -9815,27 +9836,6 @@ const EmailForm = ({ order }) => {
9815
9836
  }
9816
9837
  ) });
9817
9838
  };
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: Email,
13061
- path: "/draft-orders/:id/email"
13062
- },
13063
13059
  {
13064
13060
  Component: CustomItems,
13065
13061
  path: "/draft-orders/:id/custom-items"
13066
13062
  },
13063
+ {
13064
+ Component: Email,
13065
+ path: "/draft-orders/:id/email"
13066
+ },
13067
13067
  {
13068
13068
  Component: Items,
13069
13069
  path: "/draft-orders/:id/items"
@@ -9744,6 +9744,27 @@ 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
+ });
9747
9768
  const Email = () => {
9748
9769
  const { id } = useParams();
9749
9770
  const { order, isPending, isError, error } = useOrder(id, {
@@ -9766,7 +9787,7 @@ const EmailForm = ({ order }) => {
9766
9787
  defaultValues: {
9767
9788
  email: order.email ?? ""
9768
9789
  },
9769
- resolver: zodResolver(schema$4)
9790
+ resolver: zodResolver(schema$3)
9770
9791
  });
9771
9792
  const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
9772
9793
  const { handleSuccess } = useRouteModal();
@@ -9809,27 +9830,6 @@ const EmailForm = ({ order }) => {
9809
9830
  }
9810
9831
  ) });
9811
9832
  };
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: Email,
13055
- path: "/draft-orders/:id/email"
13056
- },
13057
13053
  {
13058
13054
  Component: CustomItems,
13059
13055
  path: "/draft-orders/:id/custom-items"
13060
13056
  },
13057
+ {
13058
+ Component: Email,
13059
+ path: "/draft-orders/:id/email"
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-20250904140356",
3
+ "version": "2.10.2-snapshot-20250904142832",
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-20250904140356",
39
+ "@medusajs/js-sdk": "2.10.2-snapshot-20250904142832",
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,19 +45,19 @@
45
45
  "react-hook-form": "7.49.1"
46
46
  },
47
47
  "devDependencies": {
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
- "@mikro-orm/cli": "6.4.3",
57
- "@mikro-orm/core": "6.4.3",
58
- "@mikro-orm/knex": "6.4.3",
59
- "@mikro-orm/migrations": "6.4.3",
60
- "@mikro-orm/postgresql": "6.4.3",
48
+ "@medusajs/admin-sdk": "2.10.2-snapshot-20250904142832",
49
+ "@medusajs/cli": "2.10.2-snapshot-20250904142832",
50
+ "@medusajs/framework": "2.10.2-snapshot-20250904142832",
51
+ "@medusajs/icons": "2.10.2-snapshot-20250904142832",
52
+ "@medusajs/test-utils": "2.10.2-snapshot-20250904142832",
53
+ "@medusajs/types": "2.10.2-snapshot-20250904142832",
54
+ "@medusajs/ui": "4.0.22-snapshot-20250904142832",
55
+ "@medusajs/ui-preset": "2.10.2-snapshot-20250904142832",
56
+ "@mikro-orm/cli": "6.5.2",
57
+ "@mikro-orm/core": "6.5.2",
58
+ "@mikro-orm/knex": "6.5.2",
59
+ "@mikro-orm/migrations": "6.5.2",
60
+ "@mikro-orm/postgresql": "6.5.2",
61
61
  "@swc/core": "1.5.7",
62
62
  "@types/lodash": "^4.17.15",
63
63
  "@types/node": "^20.0.0",
@@ -65,7 +65,7 @@
65
65
  "@types/react-dom": "^18.2.25",
66
66
  "awilix": "^8.0.1",
67
67
  "lodash": "^4.17.21",
68
- "pg": "^8.13.0",
68
+ "pg": "^8.16.3",
69
69
  "react": "^18.2.0",
70
70
  "react-dom": "^18.2.0",
71
71
  "react-router-dom": "6.20.1",
@@ -76,20 +76,20 @@
76
76
  "yalc": "^1.0.0-pre.53"
77
77
  },
78
78
  "peerDependencies": {
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
- "@mikro-orm/cli": "6.4.3",
86
- "@mikro-orm/core": "6.4.3",
87
- "@mikro-orm/knex": "6.4.3",
88
- "@mikro-orm/migrations": "6.4.3",
89
- "@mikro-orm/postgresql": "6.4.3",
79
+ "@medusajs/admin-sdk": "2.10.2-snapshot-20250904142832",
80
+ "@medusajs/cli": "2.10.2-snapshot-20250904142832",
81
+ "@medusajs/framework": "2.10.2-snapshot-20250904142832",
82
+ "@medusajs/icons": "2.10.2-snapshot-20250904142832",
83
+ "@medusajs/test-utils": "2.10.2-snapshot-20250904142832",
84
+ "@medusajs/ui": "4.0.22-snapshot-20250904142832",
85
+ "@mikro-orm/cli": "6.5.2",
86
+ "@mikro-orm/core": "6.5.2",
87
+ "@mikro-orm/knex": "6.5.2",
88
+ "@mikro-orm/migrations": "6.5.2",
89
+ "@mikro-orm/postgresql": "6.5.2",
90
90
  "awilix": "^8.0.1",
91
91
  "lodash": "^4.17.21",
92
- "pg": "^8.13.0",
92
+ "pg": "^8.16.3",
93
93
  "react-router-dom": "6.20.1"
94
94
  },
95
95
  "engines": {