@medusajs/draft-order 2.23.1 → 2.23.2-preview-20261130205001

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.
@@ -6,12 +6,14 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
- key = keys[i];
11
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
- get: ((k) => from[k]).bind(null, key),
13
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
- });
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) {
11
+ desc = __getOwnPropDesc(from, key);
12
+ __defProp(to, key, {
13
+ get: desc && desc.get && !desc.configurable ? desc.get : () => from[key],
14
+ enumerable: !desc || desc.enumerable
15
+ });
16
+ }
15
17
  }
16
18
  return to;
17
19
  };
@@ -25,13 +27,11 @@ let _medusajs_dashboard_hooks = require("@medusajs/dashboard/hooks");
25
27
  let _medusajs_ui = require("@medusajs/ui");
26
28
  let _tanstack_react_query = require("@tanstack/react-query");
27
29
  let react = require("react");
28
- react = __toESM(react);
29
30
  let react_i18next = require("react-i18next");
30
31
  let react_router_dom = require("react-router-dom");
31
32
  let _medusajs_icons = require("@medusajs/icons");
32
33
  let react_jsx_runtime = require("react/jsx-runtime");
33
34
  let _medusajs_js_sdk = require("@medusajs/js-sdk");
34
- _medusajs_js_sdk = __toESM(_medusajs_js_sdk);
35
35
  let date_fns = require("date-fns");
36
36
  let date_fns_locale = require("date-fns/locale");
37
37
  let _hookform_resolvers_zod = require("@hookform/resolvers/zod");
@@ -41,10 +41,12 @@ let radix_ui = require("radix-ui");
41
41
  let _ariakit_react = require("@ariakit/react");
42
42
  let match_sorter = require("match-sorter");
43
43
  let lodash_debounce = require("lodash.debounce");
44
- lodash_debounce = __toESM(lodash_debounce);
45
44
  let _uiw_react_json_view = require("@uiw/react-json-view");
46
- _uiw_react_json_view = __toESM(_uiw_react_json_view);
47
45
  let dequal = require("dequal");
46
+ react = __toESM(react);
47
+ _medusajs_js_sdk = __toESM(_medusajs_js_sdk);
48
+ lodash_debounce = __toESM(lodash_debounce);
49
+ _uiw_react_json_view = __toESM(_uiw_react_json_view);
48
50
  // src/admin/hooks/common/use-query-params.tsx
49
51
  function useQueryParams(keys, prefix) {
50
52
  const [params] = (0, react_router_dom.useSearchParams)();
@@ -1,7 +1,7 @@
1
1
  import { defineRouteConfig } from "@medusajs/admin-sdk";
2
2
  import { LayoutComposer } from "@medusajs/dashboard/components";
3
3
  import { PermissionGuard, usePermissions } from "@medusajs/dashboard/hooks";
4
- import { Avatar, Badge, Button, Container, Copy, CurrencyInput, DataTable, Divider, Drawer, DropdownMenu, FocusModal, Heading, Hint, IconButton, Input, Kbd, Label, Prompt, Select, Skeleton, StatusBadge, Switch, Text, Tooltip, clx, createDataTableColumnHelper, createDataTableFilterHelper, toast, useDataTable, usePrompt } from "@medusajs/ui";
4
+ import { Avatar, Badge, Button, Container, Copy, CurrencyInput, DataTable as DataTable$1, Divider, Drawer, DropdownMenu, FocusModal, Heading, Hint as Hint$1, IconButton, Input, Kbd, Label as Label$1, Prompt, Select, Skeleton, StatusBadge, Switch, Text, Tooltip, clx, createDataTableColumnHelper, createDataTableFilterHelper, toast, useDataTable, usePrompt } from "@medusajs/ui";
5
5
  import { keepPreviousData, useInfiniteQuery, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
6
6
  import React, { Fragment, Suspense, createContext, forwardRef, useCallback, useContext, useDeferredValue, useEffect, useId, useImperativeHandle, useMemo, useRef, useState, useTransition } from "react";
7
7
  import { useTranslation } from "react-i18next";
@@ -15,7 +15,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
15
15
  import { Controller, FormProvider, useFieldArray, useForm, useFormContext, useFormState, useWatch } from "react-hook-form";
16
16
  import { z } from "zod";
17
17
  import { Accordion, Collapsible, Slot } from "radix-ui";
18
- import { Combobox, ComboboxDisclosure, ComboboxItem, ComboboxItemCheck, ComboboxItemValue, ComboboxPopover, ComboboxProvider, Separator } from "@ariakit/react";
18
+ import { Combobox as Combobox$1, ComboboxDisclosure, ComboboxItem, ComboboxItemCheck, ComboboxItemValue, ComboboxPopover, ComboboxProvider, Separator } from "@ariakit/react";
19
19
  import { matchSorter } from "match-sorter";
20
20
  import debounce from "lodash.debounce";
21
21
  import Primitive from "@uiw/react-json-view";
@@ -82,7 +82,7 @@ var ActionMenu = ({ groups, variant = "transparent", children }) => {
82
82
  }) })] });
83
83
  };
84
84
  // src/admin/components/common/data-table.tsx
85
- var DataTable$1 = ({ data = [], columns, filters, commands, action, actionMenu, getRowId, rowCount = 0, enablePagination = true, enableSearch = true, autoFocusSearch = false, rowHref, heading, subHeading, prefix, pageSize = 10, emptyState, rowSelection, isLoading = false, layout = "auto" }) => {
85
+ var DataTable = ({ data = [], columns, filters, commands, action, actionMenu, getRowId, rowCount = 0, enablePagination = true, enableSearch = true, autoFocusSearch = false, rowHref, heading, subHeading, prefix, pageSize = 10, emptyState, rowSelection, isLoading = false, layout = "auto" }) => {
86
86
  const { t } = useTranslation();
87
87
  const enableFiltering = filters && filters.length > 0;
88
88
  const enableCommands = commands && commands.length > 0;
@@ -183,11 +183,11 @@ var DataTable$1 = ({ data = [], columns, filters, commands, action, actionMenu,
183
183
  isLoading
184
184
  });
185
185
  const shouldRenderHeading = heading || subHeading;
186
- return /* @__PURE__ */ jsxs(DataTable, {
186
+ return /* @__PURE__ */ jsxs(DataTable$1, {
187
187
  instance,
188
188
  className: clx({ "h-full [&_tr]:last-of-type:!border-b": layout === "fill" }),
189
189
  children: [
190
- /* @__PURE__ */ jsxs(DataTable.Toolbar, {
190
+ /* @__PURE__ */ jsxs(DataTable$1.Toolbar, {
191
191
  className: "flex flex-col items-start justify-between gap-2 md:flex-row md:items-center",
192
192
  translations: {
193
193
  clearAll: t("actions.clearAll"),
@@ -204,8 +204,8 @@ var DataTable$1 = ({ data = [], columns, filters, commands, action, actionMenu,
204
204
  })] }), /* @__PURE__ */ jsxs("div", {
205
205
  className: "flex items-center justify-end gap-x-2 md:hidden",
206
206
  children: [
207
- enableFiltering && /* @__PURE__ */ jsx(DataTable.FilterMenu, { tooltip: t("filters.filterLabel") }),
208
- /* @__PURE__ */ jsx(DataTable.SortingMenu, { tooltip: t("filters.sortLabel") }),
207
+ enableFiltering && /* @__PURE__ */ jsx(DataTable$1.FilterMenu, { tooltip: t("filters.filterLabel") }),
208
+ /* @__PURE__ */ jsx(DataTable$1.SortingMenu, { tooltip: t("filters.sortLabel") }),
209
209
  actionMenu && /* @__PURE__ */ jsx(ActionMenu, {
210
210
  variant: "primary",
211
211
  ...actionMenu
@@ -217,7 +217,7 @@ var DataTable$1 = ({ data = [], columns, filters, commands, action, actionMenu,
217
217
  className: "flex w-full items-center gap-2 md:justify-end",
218
218
  children: [enableSearch && /* @__PURE__ */ jsx("div", {
219
219
  className: "w-full md:w-auto",
220
- children: /* @__PURE__ */ jsx(DataTable.Search, {
220
+ children: /* @__PURE__ */ jsx(DataTable$1.Search, {
221
221
  "data-modal-id": "modal-search-input",
222
222
  placeholder: t("filters.searchLabel"),
223
223
  autoFocus: autoFocusSearch
@@ -225,8 +225,8 @@ var DataTable$1 = ({ data = [], columns, filters, commands, action, actionMenu,
225
225
  }), /* @__PURE__ */ jsxs("div", {
226
226
  className: "hidden items-center gap-x-2 md:flex",
227
227
  children: [
228
- enableFiltering && /* @__PURE__ */ jsx(DataTable.FilterMenu, { tooltip: t("filters.filterLabel") }),
229
- /* @__PURE__ */ jsx(DataTable.SortingMenu, { tooltip: t("filters.sortLabel") }),
228
+ enableFiltering && /* @__PURE__ */ jsx(DataTable$1.FilterMenu, { tooltip: t("filters.filterLabel") }),
229
+ /* @__PURE__ */ jsx(DataTable$1.SortingMenu, { tooltip: t("filters.sortLabel") }),
230
230
  actionMenu && /* @__PURE__ */ jsx(ActionMenu, {
231
231
  variant: "primary",
232
232
  ...actionMenu
@@ -236,15 +236,15 @@ var DataTable$1 = ({ data = [], columns, filters, commands, action, actionMenu,
236
236
  })]
237
237
  })]
238
238
  }),
239
- /* @__PURE__ */ jsx(DataTable.Table, { emptyState }),
240
- enablePagination && /* @__PURE__ */ jsx(DataTable.Pagination, { translations: {
239
+ /* @__PURE__ */ jsx(DataTable$1.Table, { emptyState }),
240
+ enablePagination && /* @__PURE__ */ jsx(DataTable$1.Pagination, { translations: {
241
241
  of: t("general.of"),
242
242
  results: t("general.results"),
243
243
  pages: t("general.pages"),
244
244
  prev: t("general.prev"),
245
245
  next: t("general.next")
246
246
  } }),
247
- enableCommands && /* @__PURE__ */ jsx(DataTable.CommandBar, { selectedLabel: (count) => `${count} selected` })
247
+ enableCommands && /* @__PURE__ */ jsx(DataTable$1.CommandBar, { selectedLabel: (count) => `${count} selected` })
248
248
  ]
249
249
  });
250
250
  };
@@ -949,7 +949,7 @@ var List = () => {
949
949
  id: "DraftOrderListTable",
950
950
  children: /* @__PURE__ */ jsx(Container, {
951
951
  className: "p-0",
952
- children: /* @__PURE__ */ jsx(DataTable$1, {
952
+ children: /* @__PURE__ */ jsx(DataTable, {
953
953
  data: draft_orders,
954
954
  getRowId: (row) => row.id,
955
955
  columns,
@@ -3045,12 +3045,12 @@ var Item$2 = forwardRef(({ className, ...props }, ref) => {
3045
3045
  });
3046
3046
  });
3047
3047
  Item$2.displayName = "Form.Item";
3048
- var Label$1 = forwardRef(({ className, optional = false, tooltip, icon, variant = "default", ...props }, ref) => {
3048
+ var Label = forwardRef(({ className, optional = false, tooltip, icon, variant = "default", ...props }, ref) => {
3049
3049
  const { formLabelId, formItemId } = useFormField();
3050
3050
  return /* @__PURE__ */ jsxs("div", {
3051
3051
  className: "flex items-center gap-x-1",
3052
3052
  children: [
3053
- /* @__PURE__ */ jsx(Label, {
3053
+ /* @__PURE__ */ jsx(Label$1, {
3054
3054
  id: formLabelId,
3055
3055
  ref,
3056
3056
  className: clx({ "text-ui-fg-subtle": variant === "subtle" }, className),
@@ -3073,7 +3073,7 @@ var Label$1 = forwardRef(({ className, optional = false, tooltip, icon, variant
3073
3073
  ]
3074
3074
  });
3075
3075
  });
3076
- Label$1.displayName = "Form.Label";
3076
+ Label.displayName = "Form.Label";
3077
3077
  var Control = forwardRef(({ ...props }, ref) => {
3078
3078
  const { error, formItemId, formDescriptionId, formErrorMessageId, formLabelId } = useFormField();
3079
3079
  return /* @__PURE__ */ jsx(Slot.Root, {
@@ -3086,21 +3086,21 @@ var Control = forwardRef(({ ...props }, ref) => {
3086
3086
  });
3087
3087
  });
3088
3088
  Control.displayName = "Form.Control";
3089
- var Hint$1 = forwardRef(({ className, ...props }, ref) => {
3089
+ var Hint = forwardRef(({ className, ...props }, ref) => {
3090
3090
  const { formDescriptionId } = useFormField();
3091
- return /* @__PURE__ */ jsx(Hint, {
3091
+ return /* @__PURE__ */ jsx(Hint$1, {
3092
3092
  ref,
3093
3093
  id: formDescriptionId,
3094
3094
  className,
3095
3095
  ...props
3096
3096
  });
3097
3097
  });
3098
- Hint$1.displayName = "Form.Hint";
3098
+ Hint.displayName = "Form.Hint";
3099
3099
  var ErrorMessage = forwardRef(({ className, children, ...props }, ref) => {
3100
3100
  const { error, formErrorMessageId } = useFormField();
3101
3101
  const msg = error ? String(error?.message) : children;
3102
3102
  if (!msg || msg === "undefined") return null;
3103
- return /* @__PURE__ */ jsx(Hint, {
3103
+ return /* @__PURE__ */ jsx(Hint$1, {
3104
3104
  ref,
3105
3105
  id: formErrorMessageId,
3106
3106
  className,
@@ -3112,9 +3112,9 @@ var ErrorMessage = forwardRef(({ className, children, ...props }, ref) => {
3112
3112
  ErrorMessage.displayName = "Form.ErrorMessage";
3113
3113
  var Form$2 = Object.assign(Provider, {
3114
3114
  Item: Item$2,
3115
- Label: Label$1,
3115
+ Label,
3116
3116
  Control,
3117
- Hint: Hint$1,
3117
+ Hint,
3118
3118
  ErrorMessage,
3119
3119
  Field
3120
3120
  });
@@ -3271,7 +3271,7 @@ var ComboboxImpl = ({ value: controlledValue, onChange, searchValue: controlledS
3271
3271
  children: selectedLabel
3272
3272
  })
3273
3273
  }),
3274
- /* @__PURE__ */ jsx(Combobox, {
3274
+ /* @__PURE__ */ jsx(Combobox$1, {
3275
3275
  autoSelect: true,
3276
3276
  ref: comboboxRef,
3277
3277
  onFocus: () => setOpen(true),
@@ -3356,7 +3356,7 @@ var ComboboxImpl = ({ value: controlledValue, onChange, searchValue: controlledS
3356
3356
  })]
3357
3357
  });
3358
3358
  };
3359
- var Combobox$1 = genericForwardRef(ComboboxImpl);
3359
+ var Combobox = genericForwardRef(ComboboxImpl);
3360
3360
  // src/admin/components/inputs/country-select.tsx
3361
3361
  var CountrySelect = forwardRef(({ className, disabled, placeholder, value, defaultValue, ...props }, ref) => {
3362
3362
  const innerRef = useRef(null);
@@ -3923,7 +3923,7 @@ var CreateForm = () => {
3923
3923
  render: ({ field }) => {
3924
3924
  return /* @__PURE__ */ jsx(Form$2.Item, { children: /* @__PURE__ */ jsxs("div", {
3925
3925
  className: "grid grid-cols-2 gap-x-3",
3926
- children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Label, { children: "Region" }), /* @__PURE__ */ jsx(Form$2.Hint, { children: "Choose region" })] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox$1, {
3926
+ children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Label, { children: "Region" }), /* @__PURE__ */ jsx(Form$2.Hint, { children: "Choose region" })] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox, {
3927
3927
  options: regions.options,
3928
3928
  fetchNextPage: regions.fetchNextPage,
3929
3929
  isFetchingNextPage: regions.isFetchingNextPage,
@@ -3943,7 +3943,7 @@ var CreateForm = () => {
3943
3943
  render: ({ field }) => {
3944
3944
  return /* @__PURE__ */ jsx(Form$2.Item, { children: /* @__PURE__ */ jsxs("div", {
3945
3945
  className: "grid grid-cols-2 gap-x-3",
3946
- children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Label, { children: "Sales Channel" }), /* @__PURE__ */ jsx(Form$2.Hint, { children: "Choose sales channel" })] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox$1, {
3946
+ children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Label, { children: "Sales Channel" }), /* @__PURE__ */ jsx(Form$2.Hint, { children: "Choose sales channel" })] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox, {
3947
3947
  options: salesChannels.options,
3948
3948
  fetchNextPage: salesChannels.fetchNextPage,
3949
3949
  isFetchingNextPage: salesChannels.isFetchingNextPage,
@@ -4071,7 +4071,7 @@ var CustomerField$1 = ({ control, setValue }) => {
4071
4071
  }), /* @__PURE__ */ jsx(Form$2.Hint, { children: "Choose an existing customer" })] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Control, { children: customerId ? /* @__PURE__ */ jsx(CustomerCard, {
4072
4072
  customerId,
4073
4073
  onRemove
4074
- }) : /* @__PURE__ */ jsx(Combobox$1, {
4074
+ }) : /* @__PURE__ */ jsx(Combobox, {
4075
4075
  options: customers.options,
4076
4076
  fetchNextPage: customers.fetchNextPage,
4077
4077
  isFetchingNextPage: customers.isFetchingNextPage,
@@ -4141,11 +4141,11 @@ var AddressField = ({ type, control, setValue }) => {
4141
4141
  className: "grid grid-cols-2 gap-x-3",
4142
4142
  children: [/* @__PURE__ */ jsxs("div", {
4143
4143
  className: "flex flex-col gap-y-1",
4144
- children: [/* @__PURE__ */ jsx(Label, {
4144
+ children: [/* @__PURE__ */ jsx(Label$1, {
4145
4145
  size: "small",
4146
4146
  weight: "plus",
4147
4147
  children: type === "shipping_address" ? "Shipping address" : "Billing address"
4148
- }), /* @__PURE__ */ jsxs(Hint, { children: [
4148
+ }), /* @__PURE__ */ jsxs(Hint$1, { children: [
4149
4149
  "Address used for",
4150
4150
  " ",
4151
4151
  type === "shipping_address" ? "shipping" : "billing"
@@ -4200,7 +4200,7 @@ var AddressField = ({ type, control, setValue }) => {
4200
4200
  children: "Saved addresses"
4201
4201
  }),
4202
4202
  /* @__PURE__ */ jsx(Form$2.Hint, { children: "Choose one of the customers saved addresses." }),
4203
- /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox$1, {
4203
+ /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox, {
4204
4204
  options: addresses.options,
4205
4205
  fetchNextPage: addresses.fetchNextPage,
4206
4206
  isFetchingNextPage: addresses.isFetchingNextPage,
@@ -6878,7 +6878,7 @@ var ExistingItemsForm = ({ orderId, items }) => {
6878
6878
  })] }),
6879
6879
  /* @__PURE__ */ jsx(StackedFocusModal.Body, {
6880
6880
  className: "flex-1 overflow-hidden",
6881
- children: /* @__PURE__ */ jsx(DataTable$1, {
6881
+ children: /* @__PURE__ */ jsx(DataTable, {
6882
6882
  data: variants,
6883
6883
  columns,
6884
6884
  isLoading: isPending,
@@ -7549,16 +7549,16 @@ var PromotionForm = ({ preview }) => {
7549
7549
  className: "flex flex-col gap-3",
7550
7550
  children: [/* @__PURE__ */ jsxs("div", {
7551
7551
  className: "flex flex-col",
7552
- children: [/* @__PURE__ */ jsx(Label, {
7552
+ children: [/* @__PURE__ */ jsx(Label$1, {
7553
7553
  size: "small",
7554
7554
  weight: "plus",
7555
7555
  htmlFor: "promotion-combobox",
7556
7556
  children: "Apply promotions"
7557
- }), /* @__PURE__ */ jsx(Hint, {
7557
+ }), /* @__PURE__ */ jsx(Hint$1, {
7558
7558
  id: "promotion-combobox-hint",
7559
7559
  children: "Manage promotions that should be applied to the order."
7560
7560
  })]
7561
- }), /* @__PURE__ */ jsx(Combobox$1, {
7561
+ }), /* @__PURE__ */ jsx(Combobox, {
7562
7562
  id: "promotion-combobox",
7563
7563
  "aria-describedby": "promotion-combobox-hint",
7564
7564
  isFetchingNextPage: comboboxData.isFetchingNextPage,
@@ -7758,7 +7758,7 @@ var SalesChannelField = ({ control, order }) => {
7758
7758
  render: ({ field }) => {
7759
7759
  return /* @__PURE__ */ jsxs(Form$2.Item, { children: [
7760
7760
  /* @__PURE__ */ jsx(Form$2.Label, { children: "Sales Channel" }),
7761
- /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox$1, {
7761
+ /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox, {
7762
7762
  options: salesChannels.options,
7763
7763
  fetchNextPage: salesChannels.fetchNextPage,
7764
7764
  isFetchingNextPage: salesChannels.isFetchingNextPage,
@@ -8406,7 +8406,7 @@ var LocationField = ({ control, setValue }) => {
8406
8406
  render: ({ field: { onChange, ...field } }) => {
8407
8407
  return /* @__PURE__ */ jsx(Form$2.Item, { children: /* @__PURE__ */ jsxs("div", {
8408
8408
  className: "grid grid-cols-2 gap-x-3",
8409
- children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Label, { children: "Location" }), /* @__PURE__ */ jsx(Form$2.Hint, { children: "Choose where you want to ship the items from." })] }), /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox$1, {
8409
+ children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Form$2.Label, { children: "Location" }), /* @__PURE__ */ jsx(Form$2.Hint, { children: "Choose where you want to ship the items from." })] }), /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox, {
8410
8410
  options: locations.options,
8411
8411
  fetchNextPage: locations.fetchNextPage,
8412
8412
  isFetchingNextPage: locations.isFetchingNextPage,
@@ -8469,7 +8469,7 @@ var ShippingOptionField = ({ shippingProfileId, preview, control }) => {
8469
8469
  }), /* @__PURE__ */ jsx(ConditionalTooltip, {
8470
8470
  content: tooltipContent,
8471
8471
  showTooltip: !locationId || !shippingProfileId,
8472
- children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox$1, {
8472
+ children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox, {
8473
8473
  options: shippingOptions.options,
8474
8474
  fetchNextPage: shippingOptions.fetchNextPage,
8475
8475
  isFetchingNextPage: shippingOptions.isFetchingNextPage,
@@ -8759,12 +8759,12 @@ var TransferOwnershipForm = ({ order }) => {
8759
8759
  className: "flex flex-col gap-y-3",
8760
8760
  children: [/* @__PURE__ */ jsxs("div", {
8761
8761
  className: "flex flex-col",
8762
- children: [/* @__PURE__ */ jsx(Label, {
8762
+ children: [/* @__PURE__ */ jsx(Label$1, {
8763
8763
  size: "small",
8764
8764
  weight: "plus",
8765
8765
  htmlFor: "current-customer",
8766
8766
  children: "Current owner"
8767
- }), /* @__PURE__ */ jsx(Hint, { children: "The customer that is currently associated with this draft order." })]
8767
+ }), /* @__PURE__ */ jsx(Hint$1, { children: "The customer that is currently associated with this draft order." })]
8768
8768
  }), /* @__PURE__ */ jsxs(Select, {
8769
8769
  disabled: true,
8770
8770
  value: currentCustomer.value,
@@ -8830,7 +8830,7 @@ var CustomerField = ({ control, currentCustomerId }) => {
8830
8830
  className: "flex flex-col",
8831
8831
  children: [/* @__PURE__ */ jsx(Form$2.Label, { children: "New customer" }), /* @__PURE__ */ jsx(Form$2.Hint, { children: "The customer to transfer this draft order to." })]
8832
8832
  }),
8833
- /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox$1, {
8833
+ /* @__PURE__ */ jsx(Form$2.Control, { children: /* @__PURE__ */ jsx(Combobox, {
8834
8834
  options: customers.options,
8835
8835
  fetchNextPage: customers.fetchNextPage,
8836
8836
  isFetchingNextPage: customers.isFetchingNextPage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/draft-order",
3
- "version": "2.23.1",
3
+ "version": "2.23.2-preview-20261130205001",
4
4
  "description": "A draft order plugin for Medusa.",
5
5
  "author": "Medusa (https://medusajs.com)",
6
6
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  "@ariakit/react": "^0.4.15",
51
51
  "@babel/runtime": "^8.0.10",
52
52
  "@hookform/resolvers": "6.0.0",
53
- "@medusajs/js-sdk": "2.23.1",
53
+ "@medusajs/js-sdk": "2.23.2-preview-20261130205001",
54
54
  "@tanstack/react-query": "5.107.1",
55
55
  "@uiw/react-json-view": "^2.0.0-alpha.17",
56
56
  "date-fns": "^4.4.0",
@@ -62,25 +62,25 @@
62
62
  "zod": "4.6.7"
63
63
  },
64
64
  "devDependencies": {
65
- "@medusajs/admin-sdk": "2.23.1",
66
- "@medusajs/cli": "2.23.1",
67
- "@medusajs/dashboard": "2.23.1",
68
- "@medusajs/framework": "2.23.1",
69
- "@medusajs/icons": "2.23.1",
70
- "@medusajs/test-utils": "2.23.1",
71
- "@medusajs/types": "2.23.1",
72
- "@medusajs/ui": "4.3.1",
73
- "@medusajs/ui-preset": "2.23.1",
65
+ "@medusajs/admin-sdk": "2.23.2-preview-20261130205001",
66
+ "@medusajs/cli": "2.23.2-preview-20261130205001",
67
+ "@medusajs/dashboard": "2.23.2-preview-20261130205001",
68
+ "@medusajs/framework": "2.23.2-preview-20261130205001",
69
+ "@medusajs/icons": "2.23.2-preview-20261130205001",
70
+ "@medusajs/test-utils": "2.23.2-preview-20261130205001",
71
+ "@medusajs/types": "2.23.2-preview-20261130205001",
72
+ "@medusajs/ui": "4.3.2-preview-20261130205001",
73
+ "@medusajs/ui-preset": "2.23.2-preview-20261130205001",
74
74
  "cross-env": "^10.1.0"
75
75
  },
76
76
  "peerDependencies": {
77
- "@medusajs/admin-sdk": "2.23.1",
78
- "@medusajs/cli": "2.23.1",
79
- "@medusajs/dashboard": "2.23.1",
80
- "@medusajs/framework": "2.23.1",
81
- "@medusajs/icons": "2.23.1",
82
- "@medusajs/test-utils": "2.23.1",
83
- "@medusajs/ui": "4.3.1",
77
+ "@medusajs/admin-sdk": "2.23.2-preview-20261130205001",
78
+ "@medusajs/cli": "2.23.2-preview-20261130205001",
79
+ "@medusajs/dashboard": "2.23.2-preview-20261130205001",
80
+ "@medusajs/framework": "2.23.2-preview-20261130205001",
81
+ "@medusajs/icons": "2.23.2-preview-20261130205001",
82
+ "@medusajs/test-utils": "2.23.2-preview-20261130205001",
83
+ "@medusajs/ui": "4.3.2-preview-20261130205001",
84
84
  "react": "^19.3.1",
85
85
  "react-dom": "^19.3.1",
86
86
  "react-router-dom": "^6.30.4 || ^7.0.0"