@medusajs/draft-order 2.11.2-snapshot-20251030153804 → 2.11.2-snapshot-20251030161427

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.
@@ -14,15 +14,14 @@ const reactHookForm = require("react-hook-form");
14
14
  const radixUi = require("radix-ui");
15
15
  const react = require("@ariakit/react");
16
16
  const matchSorter = require("match-sorter");
17
- const debounce = require("lodash.debounce");
17
+ const debounce = require("lodash/debounce");
18
18
  const Primitive = require("@uiw/react-json-view");
19
- const isEqual = require("lodash.isequal");
19
+ const lodash = require("lodash");
20
20
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
21
21
  const React__default = /* @__PURE__ */ _interopDefault(React);
22
22
  const Medusa__default = /* @__PURE__ */ _interopDefault(Medusa);
23
23
  const debounce__default = /* @__PURE__ */ _interopDefault(debounce);
24
24
  const Primitive__default = /* @__PURE__ */ _interopDefault(Primitive);
25
- const isEqual__default = /* @__PURE__ */ _interopDefault(isEqual);
26
25
  function useQueryParams(keys, prefix) {
27
26
  const [params] = reactRouterDom.useSearchParams();
28
27
  const result = {};
@@ -9762,6 +9761,27 @@ const BillingAddressForm = ({ order }) => {
9762
9761
  ) });
9763
9762
  };
9764
9763
  const schema$5 = addressSchema;
9764
+ const CustomItems = () => {
9765
+ return /* @__PURE__ */ jsxRuntime.jsxs(RouteDrawer, { children: [
9766
+ /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Edit Custom Items" }) }) }),
9767
+ /* @__PURE__ */ jsxRuntime.jsx(CustomItemsForm, {})
9768
+ ] });
9769
+ };
9770
+ const CustomItemsForm = () => {
9771
+ const form = reactHookForm.useForm({
9772
+ resolver: zod.zodResolver(schema$4)
9773
+ });
9774
+ return /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxRuntime.jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
9775
+ /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Body, {}),
9776
+ /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
9777
+ /* @__PURE__ */ jsxRuntime.jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
9778
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "small", type: "submit", children: "Save" })
9779
+ ] }) })
9780
+ ] }) });
9781
+ };
9782
+ const schema$4 = objectType({
9783
+ email: stringType().email()
9784
+ });
9765
9785
  const Email = () => {
9766
9786
  const { id } = reactRouterDom.useParams();
9767
9787
  const { order, isPending, isError, error } = useOrder(id, {
@@ -9784,7 +9804,7 @@ const EmailForm = ({ order }) => {
9784
9804
  defaultValues: {
9785
9805
  email: order.email ?? ""
9786
9806
  },
9787
- resolver: zod.zodResolver(schema$4)
9807
+ resolver: zod.zodResolver(schema$3)
9788
9808
  });
9789
9809
  const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
9790
9810
  const { handleSuccess } = useRouteModal();
@@ -9827,27 +9847,6 @@ const EmailForm = ({ order }) => {
9827
9847
  }
9828
9848
  ) });
9829
9849
  };
9830
- const schema$4 = objectType({
9831
- email: stringType().email()
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
9850
  const schema$3 = objectType({
9852
9851
  email: stringType().email()
9853
9852
  });
@@ -11583,7 +11582,7 @@ const Shipping = () => {
11583
11582
  const isReady = preview && !isPreviewPending && order && !isPending;
11584
11583
  return /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal, { onClose: onCancel, children: !orderHasItems ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col overflow-hidden ", children: [
11585
11584
  /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Header, {}),
11586
- /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 px-6 py-16", children: [
11585
+ /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 py-16 px-6", children: [
11587
11586
  /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Shipping" }) }),
11588
11587
  /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", className: "text-ui-fg-subtle", children: "This draft order currently has no items. Add items to the order before adding shipping." }) })
11589
11588
  ] }) }) }),
@@ -11670,14 +11669,14 @@ const ShippingForm = ({ preview, order }) => {
11670
11669
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col overflow-hidden", children: [
11671
11670
  /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Header, {}),
11672
11671
  /* @__PURE__ */ jsxRuntime.jsxs(RouteFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: [
11673
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 px-6 py-16", children: [
11672
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 py-16 px-6", children: [
11674
11673
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
11675
11674
  /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Shipping" }) }),
11676
11675
  /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", className: "text-ui-fg-subtle", children: "Choose which shipping method(s) to use for the items in the order." }) })
11677
11676
  ] }),
11678
11677
  /* @__PURE__ */ jsxRuntime.jsx(ui.Divider, { variant: "dashed" }),
11679
- /* @__PURE__ */ jsxRuntime.jsx(radixUi.Accordion.Root, { type: "multiple", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-ui-bg-subtle shadow-elevation-card-rest rounded-xl", children: [
11680
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between px-4 py-2", children: [
11678
+ /* @__PURE__ */ jsxRuntime.jsx(radixUi.Accordion.Root, { type: "multiple", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-ui-bg-subtle rounded-xl shadow-elevation-card-rest", children: [
11679
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-4 py-2 flex items-center justify-between", children: [
11681
11680
  /* @__PURE__ */ jsxRuntime.jsx(
11682
11681
  ui.Text,
11683
11682
  {
@@ -11719,8 +11718,8 @@ const ShippingForm = ({ preview, order }) => {
11719
11718
  value: profile.id,
11720
11719
  className: "bg-ui-bg-base shadow-elevation-card-rest rounded-lg",
11721
11720
  children: [
11722
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3 px-3 py-2", children: [
11723
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center gap-x-3 overflow-hidden", children: [
11721
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-3 py-2 flex items-center justify-between gap-3", children: [
11722
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-x-3 w-full overflow-hidden", children: [
11724
11723
  /* @__PURE__ */ jsxRuntime.jsx(radixUi.Accordion.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
11725
11724
  ui.IconButton,
11726
11725
  {
@@ -11728,12 +11727,12 @@ const ShippingForm = ({ preview, order }) => {
11728
11727
  variant: "transparent",
11729
11728
  className: "group/trigger",
11730
11729
  disabled: !hasItems,
11731
- children: /* @__PURE__ */ jsxRuntime.jsx(icons.TriangleRightMini, { className: "transition-transform group-data-[state=open]/trigger:rotate-90" })
11730
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons.TriangleRightMini, { className: "group-data-[state=open]/trigger:rotate-90 transition-transform" })
11732
11731
  }
11733
11732
  ) }),
11734
11733
  !shippingOption ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-x-3", children: [
11735
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shadow-borders-base flex size-7 items-center justify-center rounded-md", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-ui-bg-component-hover flex size-6 items-center justify-center rounded", children: /* @__PURE__ */ jsxRuntime.jsx(icons.Shopping, { className: "text-ui-fg-subtle" }) }) }),
11736
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col", children: [
11734
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-7 rounded-md shadow-borders-base flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-6 rounded bg-ui-bg-component-hover flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(icons.Shopping, { className: "text-ui-fg-subtle" }) }) }),
11735
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col flex-1", children: [
11737
11736
  /* @__PURE__ */ jsxRuntime.jsx(
11738
11737
  ui.Text,
11739
11738
  {
@@ -11757,7 +11756,7 @@ const ShippingForm = ({ preview, order }) => {
11757
11756
  }
11758
11757
  )
11759
11758
  ] })
11760
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full flex-1 items-center gap-[5px] overflow-hidden max-sm:flex-col max-sm:items-start", children: [
11759
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-[5px] max-sm:flex-col max-sm:items-start flex-1 w-full overflow-hidden", children: [
11761
11760
  /* @__PURE__ */ jsxRuntime.jsx(
11762
11761
  ui.Tooltip,
11763
11762
  {
@@ -11774,7 +11773,7 @@ const ShippingForm = ({ preview, order }) => {
11774
11773
  children: /* @__PURE__ */ jsxRuntime.jsxs(
11775
11774
  ui.Badge,
11776
11775
  {
11777
- className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
11776
+ className: "flex items-center gap-x-[3px] overflow-hidden cursor-default",
11778
11777
  size: "xsmall",
11779
11778
  children: [
11780
11779
  /* @__PURE__ */ jsxRuntime.jsx(icons.Shopping, { className: "shrink-0" }),
@@ -11799,7 +11798,7 @@ const ShippingForm = ({ preview, order }) => {
11799
11798
  children: /* @__PURE__ */ jsxRuntime.jsxs(
11800
11799
  ui.Badge,
11801
11800
  {
11802
- className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
11801
+ className: "flex items-center gap-x-[3px] overflow-hidden cursor-default",
11803
11802
  size: "xsmall",
11804
11803
  children: [
11805
11804
  /* @__PURE__ */ jsxRuntime.jsx(icons.Buildings, { className: "shrink-0" }),
@@ -11812,7 +11811,7 @@ const ShippingForm = ({ preview, order }) => {
11812
11811
  /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { content: shippingOption.name, children: /* @__PURE__ */ jsxRuntime.jsxs(
11813
11812
  ui.Badge,
11814
11813
  {
11815
- className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
11814
+ className: "flex items-center gap-x-[3px] overflow-hidden cursor-default",
11816
11815
  size: "xsmall",
11817
11816
  children: [
11818
11817
  /* @__PURE__ */ jsxRuntime.jsx(icons.TruckFast, { className: "shrink-0" }),
@@ -11883,17 +11882,17 @@ const ShippingForm = ({ preview, order }) => {
11883
11882
  /* @__PURE__ */ jsxRuntime.jsxs(
11884
11883
  "div",
11885
11884
  {
11886
- className: "flex items-center gap-x-3 px-3",
11885
+ className: "px-3 flex items-center gap-x-3",
11887
11886
  children: [
11888
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[56px] w-5 flex-col items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
11887
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-5 h-[56px] flex flex-col justify-center items-center", children: /* @__PURE__ */ jsxRuntime.jsx(
11889
11888
  ui.Divider,
11890
11889
  {
11891
11890
  variant: "dashed",
11892
11891
  orientation: "vertical"
11893
11892
  }
11894
11893
  ) }),
11895
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-x-3 py-2", children: [
11896
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-7 items-center justify-center tabular-nums", children: /* @__PURE__ */ jsxRuntime.jsxs(
11894
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "py-2 flex items-center gap-x-3", children: [
11895
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-7 flex items-center justify-center tabular-nums", children: /* @__PURE__ */ jsxRuntime.jsxs(
11897
11896
  ui.Text,
11898
11897
  {
11899
11898
  size: "small",
@@ -12030,7 +12029,7 @@ const ShippingProfileForm = ({
12030
12029
  isPending: isUpdatingShippingMethod
12031
12030
  } = useDraftOrderUpdateShippingMethod(order.id);
12032
12031
  const onSubmit = form.handleSubmit(async (values) => {
12033
- if (isEqual__default.default(values, form.formState.defaultValues)) {
12032
+ if (lodash.isEqual(values, form.formState.defaultValues)) {
12034
12033
  setIsOpen(STACKED_FOCUS_MODAL_ID, false);
12035
12034
  return;
12036
12035
  }
@@ -12074,7 +12073,7 @@ const ShippingProfileForm = ({
12074
12073
  onSubmit,
12075
12074
  children: [
12076
12075
  /* @__PURE__ */ jsxRuntime.jsx(StackedFocusModal.Header, {}),
12077
- /* @__PURE__ */ jsxRuntime.jsx(StackedFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 px-6 py-16", children: [
12076
+ /* @__PURE__ */ jsxRuntime.jsx(StackedFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 py-16 px-6", children: [
12078
12077
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
12079
12078
  /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Shipping" }) }),
12080
12079
  /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", className: "text-ui-fg-subtle", children: "Add a shipping method for the selected shipping profile. You can see the items that will be shipped using this method in the preview below." }) })
@@ -12147,14 +12146,14 @@ const ItemsPreview = ({ order, shippingProfileId }) => {
12147
12146
  /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", className: "text-ui-fg-subtle", children: "Items with the selected shipping profile." })
12148
12147
  ] }) }),
12149
12148
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-ui-bg-subtle shadow-elevation-card-rest rounded-xl", children: [
12150
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-ui-fg-muted grid grid-cols-2 gap-3 px-4 py-2", children: [
12149
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-3 px-4 py-2 text-ui-fg-muted", children: [
12151
12150
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", weight: "plus", children: "Item" }) }),
12152
12151
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", weight: "plus", children: "Quantity" }) })
12153
12152
  ] }),
12154
12153
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-y-1.5 px-[5px] pb-[5px]", children: matches.length > 0 ? matches == null ? void 0 : matches.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
12155
12154
  "div",
12156
12155
  {
12157
- className: "bg-ui-bg-base shadow-elevation-card-rest grid grid-cols-2 items-center gap-3 rounded-lg px-4 py-2",
12156
+ className: "grid grid-cols-2 gap-3 px-4 py-2 bg-ui-bg-base shadow-elevation-card-rest rounded-lg items-center",
12158
12157
  children: [
12159
12158
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-x-3", children: [
12160
12159
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -12207,7 +12206,7 @@ const ItemsPreview = ({ order, shippingProfileId }) => {
12207
12206
  ]
12208
12207
  },
12209
12208
  item.id
12210
- )) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-ui-bg-base shadow-elevation-card-rest flex flex-col items-center justify-center gap-1 gap-x-3 rounded-lg p-4", children: [
12209
+ )) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-x-3 bg-ui-bg-base rounded-lg p-4 shadow-elevation-card-rest flex-col gap-1", children: [
12211
12210
  /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", weight: "plus", leading: "compact", children: "No items found" }),
12212
12211
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Text, { size: "small", className: "text-ui-fg-subtle", children: [
12213
12212
  'No items found for "',
@@ -13068,14 +13067,14 @@ const routeModule = {
13068
13067
  Component: BillingAddress,
13069
13068
  path: "/draft-orders/:id/billing-address"
13070
13069
  },
13071
- {
13072
- Component: Email,
13073
- path: "/draft-orders/:id/email"
13074
- },
13075
13070
  {
13076
13071
  Component: CustomItems,
13077
13072
  path: "/draft-orders/:id/custom-items"
13078
13073
  },
13074
+ {
13075
+ Component: Email,
13076
+ path: "/draft-orders/:id/email"
13077
+ },
13079
13078
  {
13080
13079
  Component: Items,
13081
13080
  path: "/draft-orders/:id/items"
@@ -13,9 +13,9 @@ import { FormProvider, Controller, useFormContext, useFormState, useForm, useWat
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";
16
- import debounce from "lodash.debounce";
16
+ import debounce from "lodash/debounce";
17
17
  import Primitive from "@uiw/react-json-view";
18
- import isEqual from "lodash.isequal";
18
+ import { isEqual } from "lodash";
19
19
  function useQueryParams(keys, prefix) {
20
20
  const [params] = useSearchParams();
21
21
  const result = {};
@@ -9755,6 +9755,27 @@ const BillingAddressForm = ({ order }) => {
9755
9755
  ) });
9756
9756
  };
9757
9757
  const schema$5 = addressSchema;
9758
+ const CustomItems = () => {
9759
+ return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
9760
+ /* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Edit Custom Items" }) }) }),
9761
+ /* @__PURE__ */ jsx(CustomItemsForm, {})
9762
+ ] });
9763
+ };
9764
+ const CustomItemsForm = () => {
9765
+ const form = useForm({
9766
+ resolver: zodResolver(schema$4)
9767
+ });
9768
+ return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { className: "flex flex-1 flex-col", children: [
9769
+ /* @__PURE__ */ jsx(RouteDrawer.Body, {}),
9770
+ /* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
9771
+ /* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: "Cancel" }) }),
9772
+ /* @__PURE__ */ jsx(Button, { size: "small", type: "submit", children: "Save" })
9773
+ ] }) })
9774
+ ] }) });
9775
+ };
9776
+ const schema$4 = objectType({
9777
+ email: stringType().email()
9778
+ });
9758
9779
  const Email = () => {
9759
9780
  const { id } = useParams();
9760
9781
  const { order, isPending, isError, error } = useOrder(id, {
@@ -9777,7 +9798,7 @@ const EmailForm = ({ order }) => {
9777
9798
  defaultValues: {
9778
9799
  email: order.email ?? ""
9779
9800
  },
9780
- resolver: zodResolver(schema$4)
9801
+ resolver: zodResolver(schema$3)
9781
9802
  });
9782
9803
  const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
9783
9804
  const { handleSuccess } = useRouteModal();
@@ -9820,27 +9841,6 @@ const EmailForm = ({ order }) => {
9820
9841
  }
9821
9842
  ) });
9822
9843
  };
9823
- const schema$4 = objectType({
9824
- email: stringType().email()
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
9844
  const schema$3 = objectType({
9845
9845
  email: stringType().email()
9846
9846
  });
@@ -11576,7 +11576,7 @@ const Shipping = () => {
11576
11576
  const isReady = preview && !isPreviewPending && order && !isPending;
11577
11577
  return /* @__PURE__ */ jsx(RouteFocusModal, { onClose: onCancel, children: !orderHasItems ? /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col overflow-hidden ", children: [
11578
11578
  /* @__PURE__ */ jsx(RouteFocusModal.Header, {}),
11579
- /* @__PURE__ */ jsx(RouteFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 px-6 py-16", children: [
11579
+ /* @__PURE__ */ jsx(RouteFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 py-16 px-6", children: [
11580
11580
  /* @__PURE__ */ jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Shipping" }) }),
11581
11581
  /* @__PURE__ */ jsx(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: "This draft order currently has no items. Add items to the order before adding shipping." }) })
11582
11582
  ] }) }) }),
@@ -11663,14 +11663,14 @@ const ShippingForm = ({ preview, order }) => {
11663
11663
  return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col overflow-hidden", children: [
11664
11664
  /* @__PURE__ */ jsx(RouteFocusModal.Header, {}),
11665
11665
  /* @__PURE__ */ jsxs(RouteFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: [
11666
- /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 px-6 py-16", children: [
11666
+ /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 py-16 px-6", children: [
11667
11667
  /* @__PURE__ */ jsxs("div", { children: [
11668
11668
  /* @__PURE__ */ jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Shipping" }) }),
11669
11669
  /* @__PURE__ */ jsx(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: "Choose which shipping method(s) to use for the items in the order." }) })
11670
11670
  ] }),
11671
11671
  /* @__PURE__ */ jsx(Divider, { variant: "dashed" }),
11672
- /* @__PURE__ */ jsx(Accordion.Root, { type: "multiple", children: /* @__PURE__ */ jsxs("div", { className: "bg-ui-bg-subtle shadow-elevation-card-rest rounded-xl", children: [
11673
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 py-2", children: [
11672
+ /* @__PURE__ */ jsx(Accordion.Root, { type: "multiple", children: /* @__PURE__ */ jsxs("div", { className: "bg-ui-bg-subtle rounded-xl shadow-elevation-card-rest", children: [
11673
+ /* @__PURE__ */ jsxs("div", { className: "px-4 py-2 flex items-center justify-between", children: [
11674
11674
  /* @__PURE__ */ jsx(
11675
11675
  Text,
11676
11676
  {
@@ -11712,8 +11712,8 @@ const ShippingForm = ({ preview, order }) => {
11712
11712
  value: profile.id,
11713
11713
  className: "bg-ui-bg-base shadow-elevation-card-rest rounded-lg",
11714
11714
  children: [
11715
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 px-3 py-2", children: [
11716
- /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-x-3 overflow-hidden", children: [
11715
+ /* @__PURE__ */ jsxs("div", { className: "px-3 py-2 flex items-center justify-between gap-3", children: [
11716
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3 w-full overflow-hidden", children: [
11717
11717
  /* @__PURE__ */ jsx(Accordion.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(
11718
11718
  IconButton,
11719
11719
  {
@@ -11721,12 +11721,12 @@ const ShippingForm = ({ preview, order }) => {
11721
11721
  variant: "transparent",
11722
11722
  className: "group/trigger",
11723
11723
  disabled: !hasItems,
11724
- children: /* @__PURE__ */ jsx(TriangleRightMini, { className: "transition-transform group-data-[state=open]/trigger:rotate-90" })
11724
+ children: /* @__PURE__ */ jsx(TriangleRightMini, { className: "group-data-[state=open]/trigger:rotate-90 transition-transform" })
11725
11725
  }
11726
11726
  ) }),
11727
11727
  !shippingOption ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
11728
- /* @__PURE__ */ jsx("div", { className: "shadow-borders-base flex size-7 items-center justify-center rounded-md", children: /* @__PURE__ */ jsx("div", { className: "bg-ui-bg-component-hover flex size-6 items-center justify-center rounded", children: /* @__PURE__ */ jsx(Shopping, { className: "text-ui-fg-subtle" }) }) }),
11729
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col", children: [
11728
+ /* @__PURE__ */ jsx("div", { className: "size-7 rounded-md shadow-borders-base flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "size-6 rounded bg-ui-bg-component-hover flex items-center justify-center", children: /* @__PURE__ */ jsx(Shopping, { className: "text-ui-fg-subtle" }) }) }),
11729
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1", children: [
11730
11730
  /* @__PURE__ */ jsx(
11731
11731
  Text,
11732
11732
  {
@@ -11750,7 +11750,7 @@ const ShippingForm = ({ preview, order }) => {
11750
11750
  }
11751
11751
  )
11752
11752
  ] })
11753
- ] }) : /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-1 items-center gap-[5px] overflow-hidden max-sm:flex-col max-sm:items-start", children: [
11753
+ ] }) : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[5px] max-sm:flex-col max-sm:items-start flex-1 w-full overflow-hidden", children: [
11754
11754
  /* @__PURE__ */ jsx(
11755
11755
  Tooltip,
11756
11756
  {
@@ -11767,7 +11767,7 @@ const ShippingForm = ({ preview, order }) => {
11767
11767
  children: /* @__PURE__ */ jsxs(
11768
11768
  Badge,
11769
11769
  {
11770
- className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
11770
+ className: "flex items-center gap-x-[3px] overflow-hidden cursor-default",
11771
11771
  size: "xsmall",
11772
11772
  children: [
11773
11773
  /* @__PURE__ */ jsx(Shopping, { className: "shrink-0" }),
@@ -11792,7 +11792,7 @@ const ShippingForm = ({ preview, order }) => {
11792
11792
  children: /* @__PURE__ */ jsxs(
11793
11793
  Badge,
11794
11794
  {
11795
- className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
11795
+ className: "flex items-center gap-x-[3px] overflow-hidden cursor-default",
11796
11796
  size: "xsmall",
11797
11797
  children: [
11798
11798
  /* @__PURE__ */ jsx(Buildings, { className: "shrink-0" }),
@@ -11805,7 +11805,7 @@ const ShippingForm = ({ preview, order }) => {
11805
11805
  /* @__PURE__ */ jsx(Tooltip, { content: shippingOption.name, children: /* @__PURE__ */ jsxs(
11806
11806
  Badge,
11807
11807
  {
11808
- className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
11808
+ className: "flex items-center gap-x-[3px] overflow-hidden cursor-default",
11809
11809
  size: "xsmall",
11810
11810
  children: [
11811
11811
  /* @__PURE__ */ jsx(TruckFast, { className: "shrink-0" }),
@@ -11876,17 +11876,17 @@ const ShippingForm = ({ preview, order }) => {
11876
11876
  /* @__PURE__ */ jsxs(
11877
11877
  "div",
11878
11878
  {
11879
- className: "flex items-center gap-x-3 px-3",
11879
+ className: "px-3 flex items-center gap-x-3",
11880
11880
  children: [
11881
- /* @__PURE__ */ jsx("div", { className: "flex h-[56px] w-5 flex-col items-center justify-center", children: /* @__PURE__ */ jsx(
11881
+ /* @__PURE__ */ jsx("div", { className: "w-5 h-[56px] flex flex-col justify-center items-center", children: /* @__PURE__ */ jsx(
11882
11882
  Divider,
11883
11883
  {
11884
11884
  variant: "dashed",
11885
11885
  orientation: "vertical"
11886
11886
  }
11887
11887
  ) }),
11888
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3 py-2", children: [
11889
- /* @__PURE__ */ jsx("div", { className: "flex size-7 items-center justify-center tabular-nums", children: /* @__PURE__ */ jsxs(
11888
+ /* @__PURE__ */ jsxs("div", { className: "py-2 flex items-center gap-x-3", children: [
11889
+ /* @__PURE__ */ jsx("div", { className: "size-7 flex items-center justify-center tabular-nums", children: /* @__PURE__ */ jsxs(
11890
11890
  Text,
11891
11891
  {
11892
11892
  size: "small",
@@ -12067,7 +12067,7 @@ const ShippingProfileForm = ({
12067
12067
  onSubmit,
12068
12068
  children: [
12069
12069
  /* @__PURE__ */ jsx(StackedFocusModal.Header, {}),
12070
- /* @__PURE__ */ jsx(StackedFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 px-6 py-16", children: [
12070
+ /* @__PURE__ */ jsx(StackedFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 flex-col items-center overflow-y-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-6 py-16 px-6", children: [
12071
12071
  /* @__PURE__ */ jsxs("div", { children: [
12072
12072
  /* @__PURE__ */ jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: "Shipping" }) }),
12073
12073
  /* @__PURE__ */ jsx(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: "Add a shipping method for the selected shipping profile. You can see the items that will be shipped using this method in the preview below." }) })
@@ -12140,14 +12140,14 @@ const ItemsPreview = ({ order, shippingProfileId }) => {
12140
12140
  /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: "Items with the selected shipping profile." })
12141
12141
  ] }) }),
12142
12142
  /* @__PURE__ */ jsxs("div", { className: "bg-ui-bg-subtle shadow-elevation-card-rest rounded-xl", children: [
12143
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-muted grid grid-cols-2 gap-3 px-4 py-2", children: [
12143
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-3 px-4 py-2 text-ui-fg-muted", children: [
12144
12144
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", children: "Item" }) }),
12145
12145
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", children: "Quantity" }) })
12146
12146
  ] }),
12147
12147
  /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-1.5 px-[5px] pb-[5px]", children: matches.length > 0 ? matches == null ? void 0 : matches.map((item) => /* @__PURE__ */ jsxs(
12148
12148
  "div",
12149
12149
  {
12150
- className: "bg-ui-bg-base shadow-elevation-card-rest grid grid-cols-2 items-center gap-3 rounded-lg px-4 py-2",
12150
+ className: "grid grid-cols-2 gap-3 px-4 py-2 bg-ui-bg-base shadow-elevation-card-rest rounded-lg items-center",
12151
12151
  children: [
12152
12152
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
12153
12153
  /* @__PURE__ */ jsx(
@@ -12200,7 +12200,7 @@ const ItemsPreview = ({ order, shippingProfileId }) => {
12200
12200
  ]
12201
12201
  },
12202
12202
  item.id
12203
- )) : /* @__PURE__ */ jsxs("div", { className: "bg-ui-bg-base shadow-elevation-card-rest flex flex-col items-center justify-center gap-1 gap-x-3 rounded-lg p-4", children: [
12203
+ )) : /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-x-3 bg-ui-bg-base rounded-lg p-4 shadow-elevation-card-rest flex-col gap-1", children: [
12204
12204
  /* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", leading: "compact", children: "No items found" }),
12205
12205
  /* @__PURE__ */ jsxs(Text, { size: "small", className: "text-ui-fg-subtle", children: [
12206
12206
  'No items found for "',
@@ -13061,14 +13061,14 @@ const routeModule = {
13061
13061
  Component: BillingAddress,
13062
13062
  path: "/draft-orders/:id/billing-address"
13063
13063
  },
13064
- {
13065
- Component: Email,
13066
- path: "/draft-orders/:id/email"
13067
- },
13068
13064
  {
13069
13065
  Component: CustomItems,
13070
13066
  path: "/draft-orders/:id/custom-items"
13071
13067
  },
13068
+ {
13069
+ Component: Email,
13070
+ path: "/draft-orders/:id/email"
13071
+ },
13072
13072
  {
13073
13073
  Component: Items,
13074
13074
  path: "/draft-orders/:id/items"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/draft-order",
3
- "version": "2.11.2-snapshot-20251030153804",
3
+ "version": "2.11.2-snapshot-20251030161427",
4
4
  "description": "A starter for Medusa plugins.",
5
5
  "author": "Medusa (https://medusajs.com)",
6
6
  "license": "MIT",
@@ -27,60 +27,59 @@
27
27
  "medusa-plugin",
28
28
  "medusa-v2"
29
29
  ],
30
+ "scripts": {
31
+ "build": "medusa plugin:build",
32
+ "dev": "medusa plugin:develop",
33
+ "prepare": "cross-env NODE_ENV=production yarn run build",
34
+ "link:watch": "medusa plugin:publish && medusa plugin:develop"
35
+ },
30
36
  "dependencies": {
31
37
  "@ariakit/react": "^0.4.15",
32
- "@babel/runtime": "^7.26.0",
33
38
  "@hookform/resolvers": "3.4.2",
34
- "@medusajs/js-sdk": "2.11.2-snapshot-20251030153804",
39
+ "@medusajs/js-sdk": "2.11.2-snapshot-20251030161427",
35
40
  "@tanstack/react-query": "5.64.2",
36
41
  "@uiw/react-json-view": "^2.0.0-alpha.17",
37
42
  "date-fns": "^3.6.0",
38
- "lodash.debounce": "^4.0.8",
39
- "lodash.isequal": "^4.5.0",
40
43
  "match-sorter": "^6.3.4",
41
44
  "radix-ui": "1.1.2",
42
45
  "react-hook-form": "7.49.1"
43
46
  },
44
47
  "devDependencies": {
45
- "@medusajs/admin-sdk": "2.11.2-snapshot-20251030153804",
46
- "@medusajs/cli": "2.11.2-snapshot-20251030153804",
47
- "@medusajs/framework": "2.11.2-snapshot-20251030153804",
48
- "@medusajs/icons": "2.11.2-snapshot-20251030153804",
49
- "@medusajs/test-utils": "2.11.2-snapshot-20251030153804",
50
- "@medusajs/types": "2.11.2-snapshot-20251030153804",
51
- "@medusajs/ui": "4.0.26-snapshot-20251030153804",
52
- "@medusajs/ui-preset": "2.11.2-snapshot-20251030153804",
53
- "@swc/core": "^1.7.28",
48
+ "@medusajs/admin-sdk": "2.11.2-snapshot-20251030161427",
49
+ "@medusajs/cli": "2.11.2-snapshot-20251030161427",
50
+ "@medusajs/framework": "2.11.2-snapshot-20251030161427",
51
+ "@medusajs/icons": "2.11.2-snapshot-20251030161427",
52
+ "@medusajs/test-utils": "2.11.2-snapshot-20251030161427",
53
+ "@medusajs/types": "2.11.2-snapshot-20251030161427",
54
+ "@medusajs/ui": "4.0.26-snapshot-20251030161427",
55
+ "@medusajs/ui-preset": "2.11.2-snapshot-20251030161427",
56
+ "@swc/core": "1.5.7",
54
57
  "@types/lodash": "^4.17.15",
55
- "@types/lodash.debounce": "^4.0.9",
56
- "@types/lodash.isequal": "^4.5.8",
57
- "@types/node": "^20.12.11",
58
+ "@types/node": "^20.0.0",
58
59
  "@types/react": "^18.3.2",
59
60
  "@types/react-dom": "^18.2.25",
60
- "react": "^18.3.1",
61
- "react-dom": "^18.3.1",
61
+ "lodash": "^4.17.21",
62
+ "react": "^18.2.0",
63
+ "react-dom": "^18.2.0",
62
64
  "react-router-dom": "6.20.1",
63
65
  "ts-node": "^10.9.2",
64
66
  "tsup": "^8.4.0",
65
67
  "typescript": "^5.6.2",
66
- "vite": "^5.4.14",
68
+ "vite": "^5.2.11",
67
69
  "yalc": "^1.0.0-pre.53"
68
70
  },
69
71
  "peerDependencies": {
70
- "@medusajs/admin-sdk": "2.11.2-snapshot-20251030153804",
71
- "@medusajs/cli": "2.11.2-snapshot-20251030153804",
72
- "@medusajs/framework": "2.11.2-snapshot-20251030153804",
73
- "@medusajs/icons": "2.11.2-snapshot-20251030153804",
74
- "@medusajs/test-utils": "2.11.2-snapshot-20251030153804",
75
- "@medusajs/ui": "4.0.26-snapshot-20251030153804",
72
+ "@medusajs/admin-sdk": "2.11.2-snapshot-20251030161427",
73
+ "@medusajs/cli": "2.11.2-snapshot-20251030161427",
74
+ "@medusajs/framework": "2.11.2-snapshot-20251030161427",
75
+ "@medusajs/icons": "2.11.2-snapshot-20251030161427",
76
+ "@medusajs/test-utils": "2.11.2-snapshot-20251030161427",
77
+ "@medusajs/ui": "4.0.26-snapshot-20251030161427",
78
+ "lodash": "^4.17.21",
76
79
  "react-router-dom": "6.20.1"
77
80
  },
78
81
  "engines": {
79
82
  "node": ">=20"
80
83
  },
81
- "scripts": {
82
- "build": "medusa plugin:build",
83
- "dev": "medusa plugin:develop",
84
- "link:watch": "medusa plugin:publish && medusa plugin:develop"
85
- }
86
- }
84
+ "packageManager": "yarn@3.2.1"
85
+ }