@medusajs/draft-order 2.12.0-preview-20251103150145 → 3.0.0-preview-20251201152819

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.
@@ -352,10 +352,14 @@ const DataTableAction = ({
352
352
  }
353
353
  return /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { ...buttonProps, onClick: props.onClick, children: label });
354
354
  };
355
+ const backendUrl = __BACKEND_URL__ ?? "/";
356
+ const authType = __AUTH_TYPE__ ?? "session";
357
+ const jwtTokenStorageKey = __JWT_TOKEN_STORAGE_KEY__ || void 0;
355
358
  const sdk = new Medusa__default.default({
356
- baseUrl: __BACKEND_URL__ || "/",
359
+ baseUrl: backendUrl,
357
360
  auth: {
358
- type: "session"
361
+ type: authType,
362
+ jwtTokenStorageKey
359
363
  }
360
364
  });
361
365
  const CUSTOMER_QUERY_KEY = "customers";
@@ -4654,9 +4658,6 @@ ZodReadonly.create = (type, params) => {
4654
4658
  ...processCreateParams(params)
4655
4659
  });
4656
4660
  };
4657
- ({
4658
- object: ZodObject.lazycreate
4659
- });
4660
4661
  var ZodFirstPartyTypeKind;
4661
4662
  (function(ZodFirstPartyTypeKind2) {
4662
4663
  ZodFirstPartyTypeKind2["ZodString"] = "ZodString";
@@ -4703,7 +4704,6 @@ const anyType = ZodAny.create;
4703
4704
  ZodNever.create;
4704
4705
  const arrayType = ZodArray.create;
4705
4706
  const objectType = ZodObject.create;
4706
- ZodObject.strictCreate;
4707
4707
  const unionType = ZodUnion.create;
4708
4708
  ZodIntersection.create;
4709
4709
  ZodTuple.create;
@@ -8729,7 +8729,7 @@ const Contact = ({ order }) => {
8729
8729
  children: phone
8730
8730
  }
8731
8731
  ),
8732
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Copy, { content: email, className: "text-ui-fg-muted" }) })
8732
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Copy, { content: phone, className: "text-ui-fg-muted" }) })
8733
8733
  ] })
8734
8734
  ] })
8735
8735
  ] });
@@ -13114,7 +13114,9 @@ const menuItemModule = {
13114
13114
  label: config.label,
13115
13115
  icon: void 0,
13116
13116
  path: "/draft-orders",
13117
- nested: "/orders"
13117
+ nested: "/orders",
13118
+ rank: void 0,
13119
+ translationNs: void 0
13118
13120
  }
13119
13121
  ]
13120
13122
  };
@@ -9,7 +9,7 @@ import Medusa from "@medusajs/js-sdk";
9
9
  import { format, formatDistance, sub, subDays, subMonths } from "date-fns";
10
10
  import { enUS } from "date-fns/locale";
11
11
  import { zodResolver } from "@hookform/resolvers/zod";
12
- import { FormProvider, Controller, useFormContext, useFormState, useForm, useWatch, useFieldArray } from "react-hook-form";
12
+ import { FormProvider, useFormContext, useFormState, Controller, useForm, useWatch, useFieldArray } from "react-hook-form";
13
13
  import { Slot, Collapsible, Accordion } from "radix-ui";
14
14
  import { ComboboxProvider, Combobox as Combobox$1, ComboboxDisclosure, ComboboxPopover, ComboboxItem, ComboboxItemCheck, ComboboxItemValue, Separator } from "@ariakit/react";
15
15
  import { matchSorter } from "match-sorter";
@@ -345,10 +345,14 @@ const DataTableAction = ({
345
345
  }
346
346
  return /* @__PURE__ */ jsx(Button, { ...buttonProps, onClick: props.onClick, children: label });
347
347
  };
348
+ const backendUrl = __BACKEND_URL__ ?? "/";
349
+ const authType = __AUTH_TYPE__ ?? "session";
350
+ const jwtTokenStorageKey = __JWT_TOKEN_STORAGE_KEY__ || void 0;
348
351
  const sdk = new Medusa({
349
- baseUrl: __BACKEND_URL__ || "/",
352
+ baseUrl: backendUrl,
350
353
  auth: {
351
- type: "session"
354
+ type: authType,
355
+ jwtTokenStorageKey
352
356
  }
353
357
  });
354
358
  const CUSTOMER_QUERY_KEY = "customers";
@@ -4647,9 +4651,6 @@ ZodReadonly.create = (type, params) => {
4647
4651
  ...processCreateParams(params)
4648
4652
  });
4649
4653
  };
4650
- ({
4651
- object: ZodObject.lazycreate
4652
- });
4653
4654
  var ZodFirstPartyTypeKind;
4654
4655
  (function(ZodFirstPartyTypeKind2) {
4655
4656
  ZodFirstPartyTypeKind2["ZodString"] = "ZodString";
@@ -4696,7 +4697,6 @@ const anyType = ZodAny.create;
4696
4697
  ZodNever.create;
4697
4698
  const arrayType = ZodArray.create;
4698
4699
  const objectType = ZodObject.create;
4699
- ZodObject.strictCreate;
4700
4700
  const unionType = ZodUnion.create;
4701
4701
  ZodIntersection.create;
4702
4702
  ZodTuple.create;
@@ -8722,7 +8722,7 @@ const Contact = ({ order }) => {
8722
8722
  children: phone
8723
8723
  }
8724
8724
  ),
8725
- /* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(Copy, { content: email, className: "text-ui-fg-muted" }) })
8725
+ /* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(Copy, { content: phone, className: "text-ui-fg-muted" }) })
8726
8726
  ] })
8727
8727
  ] })
8728
8728
  ] });
@@ -13107,7 +13107,9 @@ const menuItemModule = {
13107
13107
  label: config.label,
13108
13108
  icon: void 0,
13109
13109
  path: "/draft-orders",
13110
- nested: "/orders"
13110
+ nested: "/orders",
13111
+ rank: void 0,
13112
+ translationNs: void 0
13111
13113
  }
13112
13114
  ]
13113
13115
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/draft-order",
3
- "version": "2.12.0-preview-20251103150145",
3
+ "version": "3.0.0-preview-20251201152819",
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.12.0-preview-20251103150145",
40
+ "@medusajs/js-sdk": "3.0.0-preview-20251201152819",
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,37 +48,22 @@
48
48
  "react-hook-form": "7.49.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@medusajs/admin-sdk": "2.12.0-preview-20251103150145",
52
- "@medusajs/cli": "2.12.0-preview-20251103150145",
53
- "@medusajs/framework": "2.12.0-preview-20251103150145",
54
- "@medusajs/icons": "2.12.0-preview-20251103150145",
55
- "@medusajs/test-utils": "2.12.0-preview-20251103150145",
56
- "@medusajs/types": "2.12.0-preview-20251103150145",
57
- "@medusajs/ui": "4.0.27-preview-20251103150145",
58
- "@medusajs/ui-preset": "2.12.0-preview-20251103150145",
59
- "@swc/core": "^1.7.28",
60
- "@types/lodash": "^4.17.15",
61
- "@types/lodash.debounce": "^4.0.9",
62
- "@types/lodash.isequal": "^4.5.8",
63
- "@types/node": "^20.12.11",
64
- "@types/react": "^18.3.2",
65
- "@types/react-dom": "^18.2.25",
66
- "react": "^18.3.1",
67
- "react-dom": "^18.3.1",
68
- "react-router-dom": "6.20.1",
69
- "ts-node": "^10.9.2",
70
- "tsup": "^8.4.0",
71
- "typescript": "^5.6.2",
72
- "vite": "^5.4.14",
73
- "yalc": "^1.0.0-pre.53"
51
+ "@medusajs/admin-sdk": "3.0.0-preview-20251201152819",
52
+ "@medusajs/cli": "3.0.0-preview-20251201152819",
53
+ "@medusajs/framework": "3.0.0-preview-20251201152819",
54
+ "@medusajs/icons": "3.0.0-preview-20251201152819",
55
+ "@medusajs/test-utils": "3.0.0-preview-20251201152819",
56
+ "@medusajs/types": "3.0.0-preview-20251201152819",
57
+ "@medusajs/ui": "4.0.28-preview-20251201152819",
58
+ "@medusajs/ui-preset": "3.0.0-preview-20251201152819"
74
59
  },
75
60
  "peerDependencies": {
76
- "@medusajs/admin-sdk": "2.12.0-preview-20251103150145",
77
- "@medusajs/cli": "2.12.0-preview-20251103150145",
78
- "@medusajs/framework": "2.12.0-preview-20251103150145",
79
- "@medusajs/icons": "2.12.0-preview-20251103150145",
80
- "@medusajs/test-utils": "2.12.0-preview-20251103150145",
81
- "@medusajs/ui": "4.0.27-preview-20251103150145",
61
+ "@medusajs/admin-sdk": "3.0.0-preview-20251201152819",
62
+ "@medusajs/cli": "3.0.0-preview-20251201152819",
63
+ "@medusajs/framework": "3.0.0-preview-20251201152819",
64
+ "@medusajs/icons": "3.0.0-preview-20251201152819",
65
+ "@medusajs/test-utils": "3.0.0-preview-20251201152819",
66
+ "@medusajs/ui": "4.0.28-preview-20251201152819",
82
67
  "react": "^18.3.1",
83
68
  "react-dom": "^18.3.1",
84
69
  "react-router-dom": "6.20.1"