@medusajs/draft-order 2.11.4-preview-20251122120135 → 2.11.4-preview-20251122180129

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.
@@ -9830,27 +9830,6 @@ const EmailForm = ({ order }) => {
9830
9830
  const schema$4 = objectType({
9831
9831
  email: stringType().email()
9832
9832
  });
9833
- const CustomItems = () => {
9834
- return /* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer, { children: [
9835
- /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Edit Custom Items" }) }) }),
9836
- /* @__PURE__ */ jsxRuntime.jsx(CustomItemsForm, {})
9837
- ] });
9838
- };
9839
- const CustomItemsForm = () => {
9840
- const form = reactHookForm.useForm({
9841
- resolver: zod.zodResolver(schema$3)
9842
- });
9843
- return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
9844
- /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, {}),
9845
- /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
9846
- /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
9847
- /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", children: "Save" })
9848
- ] }) })
9849
- ] }) });
9850
- };
9851
- const schema$3 = objectType({
9852
- email: stringType().email()
9853
- });
9854
9833
  const NumberInput = React.forwardRef(
9855
9834
  ({
9856
9835
  value,
@@ -10825,6 +10804,27 @@ const customItemSchema = objectType({
10825
10804
  quantity: numberType(),
10826
10805
  unit_price: unionType([numberType(), stringType()])
10827
10806
  });
10807
+ const CustomItems = () => {
10808
+ return /* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer, { children: [
10809
+ /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Edit Custom Items" }) }) }),
10810
+ /* @__PURE__ */ jsxRuntime.jsx(CustomItemsForm, {})
10811
+ ] });
10812
+ };
10813
+ const CustomItemsForm = () => {
10814
+ const form = reactHookForm.useForm({
10815
+ resolver: zod.zodResolver(schema$3)
10816
+ });
10817
+ return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
10818
+ /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, {}),
10819
+ /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
10820
+ /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
10821
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", children: "Save" })
10822
+ ] }) })
10823
+ ] }) });
10824
+ };
10825
+ const schema$3 = objectType({
10826
+ email: stringType().email()
10827
+ });
10828
10828
  const InlineTip = React.forwardRef(
10829
10829
  ({ variant = "tip", label, className, children, ...props }, ref) => {
10830
10830
  const labelValue = label || (variant === "warning" ? "Warning" : "Tip");
@@ -13072,14 +13072,14 @@ const routeModule = {
13072
13072
  Component: Email,
13073
13073
  path: "/draft-orders/:id/email"
13074
13074
  },
13075
- {
13076
- Component: CustomItems,
13077
- path: "/draft-orders/:id/custom-items"
13078
- },
13079
13075
  {
13080
13076
  Component: Items,
13081
13077
  path: "/draft-orders/:id/items"
13082
13078
  },
13079
+ {
13080
+ Component: CustomItems,
13081
+ path: "/draft-orders/:id/custom-items"
13082
+ },
13083
13083
  {
13084
13084
  Component: Metadata,
13085
13085
  path: "/draft-orders/:id/metadata"
@@ -9823,27 +9823,6 @@ const EmailForm = ({ order }) => {
9823
9823
  const schema$4 = objectType({
9824
9824
  email: stringType().email()
9825
9825
  });
9826
- const CustomItems = () => {
9827
- return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
9828
- /* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit Custom Items" }) }) }),
9829
- /* @__PURE__ */ jsx(CustomItemsForm, {})
9830
- ] });
9831
- };
9832
- const CustomItemsForm = () => {
9833
- const form = useForm({
9834
- resolver: zodResolver(schema$3)
9835
- });
9836
- return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
9837
- /* @__PURE__ */ jsx(RouteDrawer.Body, {}),
9838
- /* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
9839
- /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
9840
- /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", children: "Save" })
9841
- ] }) })
9842
- ] }) });
9843
- };
9844
- const schema$3 = objectType({
9845
- email: stringType().email()
9846
- });
9847
9826
  const NumberInput = forwardRef(
9848
9827
  ({
9849
9828
  value,
@@ -10818,6 +10797,27 @@ const customItemSchema = objectType({
10818
10797
  quantity: numberType(),
10819
10798
  unit_price: unionType([numberType(), stringType()])
10820
10799
  });
10800
+ const CustomItems = () => {
10801
+ return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
10802
+ /* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit Custom Items" }) }) }),
10803
+ /* @__PURE__ */ jsx(CustomItemsForm, {})
10804
+ ] });
10805
+ };
10806
+ const CustomItemsForm = () => {
10807
+ const form = useForm({
10808
+ resolver: zodResolver(schema$3)
10809
+ });
10810
+ return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
10811
+ /* @__PURE__ */ jsx(RouteDrawer.Body, {}),
10812
+ /* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
10813
+ /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
10814
+ /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", children: "Save" })
10815
+ ] }) })
10816
+ ] }) });
10817
+ };
10818
+ const schema$3 = objectType({
10819
+ email: stringType().email()
10820
+ });
10821
10821
  const InlineTip = forwardRef(
10822
10822
  ({ variant = "tip", label, className, children, ...props }, ref) => {
10823
10823
  const labelValue = label || (variant === "warning" ? "Warning" : "Tip");
@@ -13065,14 +13065,14 @@ const routeModule = {
13065
13065
  Component: Email,
13066
13066
  path: "/draft-orders/:id/email"
13067
13067
  },
13068
- {
13069
- Component: CustomItems,
13070
- path: "/draft-orders/:id/custom-items"
13071
- },
13072
13068
  {
13073
13069
  Component: Items,
13074
13070
  path: "/draft-orders/:id/items"
13075
13071
  },
13072
+ {
13073
+ Component: CustomItems,
13074
+ path: "/draft-orders/:id/custom-items"
13075
+ },
13076
13076
  {
13077
13077
  Component: Metadata,
13078
13078
  path: "/draft-orders/:id/metadata"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/draft-order",
3
- "version": "2.11.4-preview-20251122120135",
3
+ "version": "2.11.4-preview-20251122180129",
4
4
  "description": "A starter for Medusa plugins.",
5
5
  "author": "Medusa (https://medusajs.com)",
6
6
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  "@ariakit/react": "^0.4.15",
38
38
  "@babel/runtime": "^7.26.10",
39
39
  "@hookform/resolvers": "3.4.2",
40
- "@medusajs/js-sdk": "2.11.4-preview-20251122120135",
40
+ "@medusajs/js-sdk": "2.11.4-preview-20251122180129",
41
41
  "@tanstack/react-query": "5.64.2",
42
42
  "@uiw/react-json-view": "^2.0.0-alpha.17",
43
43
  "date-fns": "^3.6.0",
@@ -48,22 +48,22 @@
48
48
  "react-hook-form": "7.49.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@medusajs/admin-sdk": "2.11.4-preview-20251122120135",
52
- "@medusajs/cli": "2.11.4-preview-20251122120135",
53
- "@medusajs/framework": "2.11.4-preview-20251122120135",
54
- "@medusajs/icons": "2.11.4-preview-20251122120135",
55
- "@medusajs/test-utils": "2.11.4-preview-20251122120135",
56
- "@medusajs/types": "2.11.4-preview-20251122120135",
57
- "@medusajs/ui": "4.0.28-preview-20251122120135",
58
- "@medusajs/ui-preset": "2.11.4-preview-20251122120135"
51
+ "@medusajs/admin-sdk": "2.11.4-preview-20251122180129",
52
+ "@medusajs/cli": "2.11.4-preview-20251122180129",
53
+ "@medusajs/framework": "2.11.4-preview-20251122180129",
54
+ "@medusajs/icons": "2.11.4-preview-20251122180129",
55
+ "@medusajs/test-utils": "2.11.4-preview-20251122180129",
56
+ "@medusajs/types": "2.11.4-preview-20251122180129",
57
+ "@medusajs/ui": "4.0.28-preview-20251122180129",
58
+ "@medusajs/ui-preset": "2.11.4-preview-20251122180129"
59
59
  },
60
60
  "peerDependencies": {
61
- "@medusajs/admin-sdk": "2.11.4-preview-20251122120135",
62
- "@medusajs/cli": "2.11.4-preview-20251122120135",
63
- "@medusajs/framework": "2.11.4-preview-20251122120135",
64
- "@medusajs/icons": "2.11.4-preview-20251122120135",
65
- "@medusajs/test-utils": "2.11.4-preview-20251122120135",
66
- "@medusajs/ui": "4.0.28-preview-20251122120135",
61
+ "@medusajs/admin-sdk": "2.11.4-preview-20251122180129",
62
+ "@medusajs/cli": "2.11.4-preview-20251122180129",
63
+ "@medusajs/framework": "2.11.4-preview-20251122180129",
64
+ "@medusajs/icons": "2.11.4-preview-20251122180129",
65
+ "@medusajs/test-utils": "2.11.4-preview-20251122180129",
66
+ "@medusajs/ui": "4.0.28-preview-20251122180129",
67
67
  "react": "^18.3.1",
68
68
  "react-dom": "^18.3.1",
69
69
  "react-router-dom": "6.20.1"