@medusajs/draft-order 2.11.2-snapshot-20251030151523 → 2.11.2-snapshot-20251030153804
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.
- package/.medusa/server/src/admin/index.js +51 -50
- package/.medusa/server/src/admin/index.mjs +49 -49
- package/package.json +32 -31
|
@@ -14,14 +14,15 @@ 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
|
|
17
|
+
const debounce = require("lodash.debounce");
|
|
18
18
|
const Primitive = require("@uiw/react-json-view");
|
|
19
|
-
const
|
|
19
|
+
const isEqual = require("lodash.isequal");
|
|
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);
|
|
25
26
|
function useQueryParams(keys, prefix) {
|
|
26
27
|
const [params] = reactRouterDom.useSearchParams();
|
|
27
28
|
const result = {};
|
|
@@ -9761,27 +9762,6 @@ const BillingAddressForm = ({ order }) => {
|
|
|
9761
9762
|
) });
|
|
9762
9763
|
};
|
|
9763
9764
|
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
|
-
});
|
|
9785
9765
|
const Email = () => {
|
|
9786
9766
|
const { id } = reactRouterDom.useParams();
|
|
9787
9767
|
const { order, isPending, isError, error } = useOrder(id, {
|
|
@@ -9804,7 +9784,7 @@ const EmailForm = ({ order }) => {
|
|
|
9804
9784
|
defaultValues: {
|
|
9805
9785
|
email: order.email ?? ""
|
|
9806
9786
|
},
|
|
9807
|
-
resolver: zod.zodResolver(schema$
|
|
9787
|
+
resolver: zod.zodResolver(schema$4)
|
|
9808
9788
|
});
|
|
9809
9789
|
const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
|
|
9810
9790
|
const { handleSuccess } = useRouteModal();
|
|
@@ -9847,6 +9827,27 @@ const EmailForm = ({ order }) => {
|
|
|
9847
9827
|
}
|
|
9848
9828
|
) });
|
|
9849
9829
|
};
|
|
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
|
+
};
|
|
9850
9851
|
const schema$3 = objectType({
|
|
9851
9852
|
email: stringType().email()
|
|
9852
9853
|
});
|
|
@@ -11582,7 +11583,7 @@ const Shipping = () => {
|
|
|
11582
11583
|
const isReady = preview && !isPreviewPending && order && !isPending;
|
|
11583
11584
|
return /* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal, { onClose: onCancel, children: !orderHasItems ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col overflow-hidden ", children: [
|
|
11584
11585
|
/* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Header, {}),
|
|
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
|
|
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: [
|
|
11586
11587
|
/* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Shipping" }) }),
|
|
11587
11588
|
/* @__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." }) })
|
|
11588
11589
|
] }) }) }),
|
|
@@ -11669,14 +11670,14 @@ const ShippingForm = ({ preview, order }) => {
|
|
|
11669
11670
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full flex-col overflow-hidden", children: [
|
|
11670
11671
|
/* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Header, {}),
|
|
11671
11672
|
/* @__PURE__ */ jsxRuntime.jsxs(RouteFocusModal.Body, { className: "flex flex-1 flex-col overflow-hidden", 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
|
|
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: [
|
|
11673
11674
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
11674
11675
|
/* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Shipping" }) }),
|
|
11675
11676
|
/* @__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." }) })
|
|
11676
11677
|
] }),
|
|
11677
11678
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Divider, { variant: "dashed" }),
|
|
11678
|
-
/* @__PURE__ */ jsxRuntime.jsx(radixUi.Accordion.Root, { type: "multiple", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-ui-bg-subtle
|
|
11679
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "
|
|
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: [
|
|
11680
11681
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11681
11682
|
ui.Text,
|
|
11682
11683
|
{
|
|
@@ -11718,8 +11719,8 @@ const ShippingForm = ({ preview, order }) => {
|
|
|
11718
11719
|
value: profile.id,
|
|
11719
11720
|
className: "bg-ui-bg-base shadow-elevation-card-rest rounded-lg",
|
|
11720
11721
|
children: [
|
|
11721
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "
|
|
11722
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-x-3
|
|
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: [
|
|
11723
11724
|
/* @__PURE__ */ jsxRuntime.jsx(radixUi.Accordion.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11724
11725
|
ui.IconButton,
|
|
11725
11726
|
{
|
|
@@ -11727,12 +11728,12 @@ const ShippingForm = ({ preview, order }) => {
|
|
|
11727
11728
|
variant: "transparent",
|
|
11728
11729
|
className: "group/trigger",
|
|
11729
11730
|
disabled: !hasItems,
|
|
11730
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(icons.TriangleRightMini, { className: "group-data-[state=open]/trigger:rotate-90
|
|
11731
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons.TriangleRightMini, { className: "transition-transform group-data-[state=open]/trigger:rotate-90" })
|
|
11731
11732
|
}
|
|
11732
11733
|
) }),
|
|
11733
11734
|
!shippingOption ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-x-3", children: [
|
|
11734
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
11735
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-
|
|
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: [
|
|
11736
11737
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11737
11738
|
ui.Text,
|
|
11738
11739
|
{
|
|
@@ -11756,7 +11757,7 @@ const ShippingForm = ({ preview, order }) => {
|
|
|
11756
11757
|
}
|
|
11757
11758
|
)
|
|
11758
11759
|
] })
|
|
11759
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-[5px] max-sm:flex-col max-sm:items-start
|
|
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: [
|
|
11760
11761
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11761
11762
|
ui.Tooltip,
|
|
11762
11763
|
{
|
|
@@ -11773,7 +11774,7 @@ const ShippingForm = ({ preview, order }) => {
|
|
|
11773
11774
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11774
11775
|
ui.Badge,
|
|
11775
11776
|
{
|
|
11776
|
-
className: "flex items-center gap-x-[3px] overflow-hidden
|
|
11777
|
+
className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
|
|
11777
11778
|
size: "xsmall",
|
|
11778
11779
|
children: [
|
|
11779
11780
|
/* @__PURE__ */ jsxRuntime.jsx(icons.Shopping, { className: "shrink-0" }),
|
|
@@ -11798,7 +11799,7 @@ const ShippingForm = ({ preview, order }) => {
|
|
|
11798
11799
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11799
11800
|
ui.Badge,
|
|
11800
11801
|
{
|
|
11801
|
-
className: "flex items-center gap-x-[3px] overflow-hidden
|
|
11802
|
+
className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
|
|
11802
11803
|
size: "xsmall",
|
|
11803
11804
|
children: [
|
|
11804
11805
|
/* @__PURE__ */ jsxRuntime.jsx(icons.Buildings, { className: "shrink-0" }),
|
|
@@ -11811,7 +11812,7 @@ const ShippingForm = ({ preview, order }) => {
|
|
|
11811
11812
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { content: shippingOption.name, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11812
11813
|
ui.Badge,
|
|
11813
11814
|
{
|
|
11814
|
-
className: "flex items-center gap-x-[3px] overflow-hidden
|
|
11815
|
+
className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
|
|
11815
11816
|
size: "xsmall",
|
|
11816
11817
|
children: [
|
|
11817
11818
|
/* @__PURE__ */ jsxRuntime.jsx(icons.TruckFast, { className: "shrink-0" }),
|
|
@@ -11882,17 +11883,17 @@ const ShippingForm = ({ preview, order }) => {
|
|
|
11882
11883
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
11883
11884
|
"div",
|
|
11884
11885
|
{
|
|
11885
|
-
className: "
|
|
11886
|
+
className: "flex items-center gap-x-3 px-3",
|
|
11886
11887
|
children: [
|
|
11887
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
11888
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[56px] w-5 flex-col items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11888
11889
|
ui.Divider,
|
|
11889
11890
|
{
|
|
11890
11891
|
variant: "dashed",
|
|
11891
11892
|
orientation: "vertical"
|
|
11892
11893
|
}
|
|
11893
11894
|
) }),
|
|
11894
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "
|
|
11895
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-7
|
|
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(
|
|
11896
11897
|
ui.Text,
|
|
11897
11898
|
{
|
|
11898
11899
|
size: "small",
|
|
@@ -12029,7 +12030,7 @@ const ShippingProfileForm = ({
|
|
|
12029
12030
|
isPending: isUpdatingShippingMethod
|
|
12030
12031
|
} = useDraftOrderUpdateShippingMethod(order.id);
|
|
12031
12032
|
const onSubmit = form.handleSubmit(async (values) => {
|
|
12032
|
-
if (
|
|
12033
|
+
if (isEqual__default.default(values, form.formState.defaultValues)) {
|
|
12033
12034
|
setIsOpen(STACKED_FOCUS_MODAL_ID, false);
|
|
12034
12035
|
return;
|
|
12035
12036
|
}
|
|
@@ -12073,7 +12074,7 @@ const ShippingProfileForm = ({
|
|
|
12073
12074
|
onSubmit,
|
|
12074
12075
|
children: [
|
|
12075
12076
|
/* @__PURE__ */ jsxRuntime.jsx(StackedFocusModal.Header, {}),
|
|
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
|
|
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: [
|
|
12077
12078
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
12078
12079
|
/* @__PURE__ */ jsxRuntime.jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { children: "Shipping" }) }),
|
|
12079
12080
|
/* @__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." }) })
|
|
@@ -12146,14 +12147,14 @@ const ItemsPreview = ({ order, shippingProfileId }) => {
|
|
|
12146
12147
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", className: "text-ui-fg-subtle", children: "Items with the selected shipping profile." })
|
|
12147
12148
|
] }) }),
|
|
12148
12149
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-ui-bg-subtle shadow-elevation-card-rest rounded-xl", children: [
|
|
12149
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-3 px-4 py-2
|
|
12150
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-ui-fg-muted grid grid-cols-2 gap-3 px-4 py-2", children: [
|
|
12150
12151
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", weight: "plus", children: "Item" }) }),
|
|
12151
12152
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", weight: "plus", children: "Quantity" }) })
|
|
12152
12153
|
] }),
|
|
12153
12154
|
/* @__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(
|
|
12154
12155
|
"div",
|
|
12155
12156
|
{
|
|
12156
|
-
className: "
|
|
12157
|
+
className: "bg-ui-bg-base shadow-elevation-card-rest grid grid-cols-2 items-center gap-3 rounded-lg px-4 py-2",
|
|
12157
12158
|
children: [
|
|
12158
12159
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-x-3", children: [
|
|
12159
12160
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12206,7 +12207,7 @@ const ItemsPreview = ({ order, shippingProfileId }) => {
|
|
|
12206
12207
|
]
|
|
12207
12208
|
},
|
|
12208
12209
|
item.id
|
|
12209
|
-
)) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-x-3
|
|
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: [
|
|
12210
12211
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Text, { size: "small", weight: "plus", leading: "compact", children: "No items found" }),
|
|
12211
12212
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Text, { size: "small", className: "text-ui-fg-subtle", children: [
|
|
12212
12213
|
'No items found for "',
|
|
@@ -13067,14 +13068,14 @@ const routeModule = {
|
|
|
13067
13068
|
Component: BillingAddress,
|
|
13068
13069
|
path: "/draft-orders/:id/billing-address"
|
|
13069
13070
|
},
|
|
13070
|
-
{
|
|
13071
|
-
Component: CustomItems,
|
|
13072
|
-
path: "/draft-orders/:id/custom-items"
|
|
13073
|
-
},
|
|
13074
13071
|
{
|
|
13075
13072
|
Component: Email,
|
|
13076
13073
|
path: "/draft-orders/:id/email"
|
|
13077
13074
|
},
|
|
13075
|
+
{
|
|
13076
|
+
Component: CustomItems,
|
|
13077
|
+
path: "/draft-orders/:id/custom-items"
|
|
13078
|
+
},
|
|
13078
13079
|
{
|
|
13079
13080
|
Component: Items,
|
|
13080
13081
|
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
|
|
16
|
+
import debounce from "lodash.debounce";
|
|
17
17
|
import Primitive from "@uiw/react-json-view";
|
|
18
|
-
import
|
|
18
|
+
import isEqual from "lodash.isequal";
|
|
19
19
|
function useQueryParams(keys, prefix) {
|
|
20
20
|
const [params] = useSearchParams();
|
|
21
21
|
const result = {};
|
|
@@ -9755,27 +9755,6 @@ 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
|
-
});
|
|
9779
9758
|
const Email = () => {
|
|
9780
9759
|
const { id } = useParams();
|
|
9781
9760
|
const { order, isPending, isError, error } = useOrder(id, {
|
|
@@ -9798,7 +9777,7 @@ const EmailForm = ({ order }) => {
|
|
|
9798
9777
|
defaultValues: {
|
|
9799
9778
|
email: order.email ?? ""
|
|
9800
9779
|
},
|
|
9801
|
-
resolver: zodResolver(schema$
|
|
9780
|
+
resolver: zodResolver(schema$4)
|
|
9802
9781
|
});
|
|
9803
9782
|
const { mutateAsync, isPending } = useUpdateDraftOrder(order.id);
|
|
9804
9783
|
const { handleSuccess } = useRouteModal();
|
|
@@ -9841,6 +9820,27 @@ const EmailForm = ({ order }) => {
|
|
|
9841
9820
|
}
|
|
9842
9821
|
) });
|
|
9843
9822
|
};
|
|
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 py-16
|
|
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: [
|
|
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 py-16
|
|
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: [
|
|
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
|
|
11673
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
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: [
|
|
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: "
|
|
11716
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3
|
|
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: [
|
|
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: "group-data-[state=open]/trigger:rotate-90
|
|
11724
|
+
children: /* @__PURE__ */ jsx(TriangleRightMini, { className: "transition-transform group-data-[state=open]/trigger:rotate-90" })
|
|
11725
11725
|
}
|
|
11726
11726
|
) }),
|
|
11727
11727
|
!shippingOption ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
|
|
11728
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
11729
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-
|
|
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: [
|
|
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 items-center gap-[5px] max-sm:flex-col max-sm:items-start
|
|
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: [
|
|
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 items-center gap-x-[3px] overflow-hidden
|
|
11770
|
+
className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
|
|
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 items-center gap-x-[3px] overflow-hidden
|
|
11795
|
+
className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
|
|
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 items-center gap-x-[3px] overflow-hidden
|
|
11808
|
+
className: "flex cursor-default items-center gap-x-[3px] overflow-hidden",
|
|
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: "
|
|
11879
|
+
className: "flex items-center gap-x-3 px-3",
|
|
11880
11880
|
children: [
|
|
11881
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
11881
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-[56px] w-5 flex-col items-center justify-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: "
|
|
11889
|
-
/* @__PURE__ */ jsx("div", { className: "size-7
|
|
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(
|
|
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 py-16
|
|
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: [
|
|
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: "grid grid-cols-2 gap-3 px-4 py-2
|
|
12143
|
+
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-muted grid grid-cols-2 gap-3 px-4 py-2", 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: "
|
|
12150
|
+
className: "bg-ui-bg-base shadow-elevation-card-rest grid grid-cols-2 items-center gap-3 rounded-lg px-4 py-2",
|
|
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: "flex items-center justify-center gap-x-3
|
|
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: [
|
|
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: CustomItems,
|
|
13066
|
-
path: "/draft-orders/:id/custom-items"
|
|
13067
|
-
},
|
|
13068
13064
|
{
|
|
13069
13065
|
Component: Email,
|
|
13070
13066
|
path: "/draft-orders/:id/email"
|
|
13071
13067
|
},
|
|
13068
|
+
{
|
|
13069
|
+
Component: CustomItems,
|
|
13070
|
+
path: "/draft-orders/:id/custom-items"
|
|
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-
|
|
3
|
+
"version": "2.11.2-snapshot-20251030153804",
|
|
4
4
|
"description": "A starter for Medusa plugins.",
|
|
5
5
|
"author": "Medusa (https://medusajs.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,59 +27,60 @@
|
|
|
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
|
-
},
|
|
36
30
|
"dependencies": {
|
|
37
31
|
"@ariakit/react": "^0.4.15",
|
|
32
|
+
"@babel/runtime": "^7.26.0",
|
|
38
33
|
"@hookform/resolvers": "3.4.2",
|
|
39
|
-
"@medusajs/js-sdk": "2.11.2-snapshot-
|
|
34
|
+
"@medusajs/js-sdk": "2.11.2-snapshot-20251030153804",
|
|
40
35
|
"@tanstack/react-query": "5.64.2",
|
|
41
36
|
"@uiw/react-json-view": "^2.0.0-alpha.17",
|
|
42
37
|
"date-fns": "^3.6.0",
|
|
38
|
+
"lodash.debounce": "^4.0.8",
|
|
39
|
+
"lodash.isequal": "^4.5.0",
|
|
43
40
|
"match-sorter": "^6.3.4",
|
|
44
41
|
"radix-ui": "1.1.2",
|
|
45
42
|
"react-hook-form": "7.49.1"
|
|
46
43
|
},
|
|
47
44
|
"devDependencies": {
|
|
48
|
-
"@medusajs/admin-sdk": "2.11.2-snapshot-
|
|
49
|
-
"@medusajs/cli": "2.11.2-snapshot-
|
|
50
|
-
"@medusajs/framework": "2.11.2-snapshot-
|
|
51
|
-
"@medusajs/icons": "2.11.2-snapshot-
|
|
52
|
-
"@medusajs/test-utils": "2.11.2-snapshot-
|
|
53
|
-
"@medusajs/types": "2.11.2-snapshot-
|
|
54
|
-
"@medusajs/ui": "4.0.26-snapshot-
|
|
55
|
-
"@medusajs/ui-preset": "2.11.2-snapshot-
|
|
56
|
-
"@swc/core": "1.
|
|
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",
|
|
57
54
|
"@types/lodash": "^4.17.15",
|
|
58
|
-
"@types/
|
|
55
|
+
"@types/lodash.debounce": "^4.0.9",
|
|
56
|
+
"@types/lodash.isequal": "^4.5.8",
|
|
57
|
+
"@types/node": "^20.12.11",
|
|
59
58
|
"@types/react": "^18.3.2",
|
|
60
59
|
"@types/react-dom": "^18.2.25",
|
|
61
|
-
"
|
|
62
|
-
"react": "^18.
|
|
63
|
-
"react-dom": "^18.2.0",
|
|
60
|
+
"react": "^18.3.1",
|
|
61
|
+
"react-dom": "^18.3.1",
|
|
64
62
|
"react-router-dom": "6.20.1",
|
|
65
63
|
"ts-node": "^10.9.2",
|
|
66
64
|
"tsup": "^8.4.0",
|
|
67
65
|
"typescript": "^5.6.2",
|
|
68
|
-
"vite": "^5.
|
|
66
|
+
"vite": "^5.4.14",
|
|
69
67
|
"yalc": "^1.0.0-pre.53"
|
|
70
68
|
},
|
|
71
69
|
"peerDependencies": {
|
|
72
|
-
"@medusajs/admin-sdk": "2.11.2-snapshot-
|
|
73
|
-
"@medusajs/cli": "2.11.2-snapshot-
|
|
74
|
-
"@medusajs/framework": "2.11.2-snapshot-
|
|
75
|
-
"@medusajs/icons": "2.11.2-snapshot-
|
|
76
|
-
"@medusajs/test-utils": "2.11.2-snapshot-
|
|
77
|
-
"@medusajs/ui": "4.0.26-snapshot-
|
|
78
|
-
"lodash": "^4.17.21",
|
|
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",
|
|
79
76
|
"react-router-dom": "6.20.1"
|
|
80
77
|
},
|
|
81
78
|
"engines": {
|
|
82
79
|
"node": ">=20"
|
|
83
80
|
},
|
|
84
|
-
"
|
|
85
|
-
|
|
81
|
+
"scripts": {
|
|
82
|
+
"build": "medusa plugin:build",
|
|
83
|
+
"dev": "medusa plugin:develop",
|
|
84
|
+
"link:watch": "medusa plugin:publish && medusa plugin:develop"
|
|
85
|
+
}
|
|
86
|
+
}
|