@mercurjs/vendor 2.2.0-canary.16 → 2.2.0-canary.18
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/dist/{[id]-Z47IMQRW.js → [id]-4J22S3D7.js} +2 -2
- package/dist/{[id]-DIGLKVTF.js → [id]-I2SLURKY.js} +1 -1
- package/dist/{[id]-KZ4AUWKS.js → [id]-SSZPPKKA.js} +27 -16
- package/dist/{[id]-CDA4INC4.js → [id]-TMHN5IMR.js} +3 -3
- package/dist/{add-UHIBPWNF.js → add-DEMEX3H3.js} +3 -3
- package/dist/{add-GEFJOVMN.js → add-XFF273OG.js} +2 -2
- package/dist/{add-customer-groups-IYXY4KM4.js → add-customer-groups-RAN4XHUY.js} +1 -1
- package/dist/{add-products-GX5Z63TJ.js → add-products-QBRJJQFE.js} +1 -1
- package/dist/{add-promotions-HDJ7XR6Z.js → add-promotions-SOHPPC5A.js} +4 -4
- package/dist/{add-to-campaign-QKYQCSR2.js → add-to-campaign-C6JDNB6F.js} +2 -2
- package/dist/{address-X5L7Q2VF.js → address-TVAAQLLV.js} +1 -1
- package/dist/{adjust-inventory-MCPV25XO.js → adjust-inventory-QITH4VUU.js} +1 -1
- package/dist/{allocate-items-HI7KLPIB.js → allocate-items-4OHVHEHB.js} +1 -1
- package/dist/{areas-IHZROM6V.js → areas-64VXOFYS.js} +1 -1
- package/dist/{attributes-2JXH2BT2.js → attributes-T6KRH3YF.js} +1 -1
- package/dist/{breadcrumb-VOZAYLW3.js → breadcrumb-CLUAJATZ.js} +1 -1
- package/dist/{chunk-SL4HFNPH.js → chunk-2ZAAN6GA.js} +1 -1
- package/dist/{chunk-REUNEGSN.js → chunk-36WXPGD2.js} +4 -2
- package/dist/{chunk-AASFRDIC.js → chunk-4NCZB4A3.js} +8 -8
- package/dist/{chunk-EXRCJ2KI.js → chunk-ABWPAEYM.js} +1 -1
- package/dist/{chunk-DO4F5FIO.js → chunk-CI4YXVQF.js} +1 -1
- package/dist/{chunk-NN7E6UBM.js → chunk-CQ7IPZLK.js} +3 -1
- package/dist/{chunk-BSBEIZPO.js → chunk-FCPNNFM4.js} +13 -6
- package/dist/{chunk-SGR4DMCW.js → chunk-FRYZRBLA.js} +1 -1
- package/dist/{chunk-4NQJN4KR.js → chunk-JM5J2RH7.js} +1 -1
- package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
- package/dist/{chunk-MGKFVZFH.js → chunk-LHYR6BUR.js} +3 -3
- package/dist/{chunk-LDX23XPT.js → chunk-MZRZVLWD.js} +2 -2
- package/dist/{chunk-GDME2OBZ.js → chunk-QI6MTLQF.js} +1 -1
- package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
- package/dist/{chunk-FW6NLFW2.js → chunk-T6UMXTUM.js} +1 -1
- package/dist/{chunk-DNEPOMOX.js → chunk-TKSKCYM3.js} +3 -1
- package/dist/{chunk-MQ7AZH5E.js → chunk-U4HFDAGW.js} +1 -1
- package/dist/{chunk-LQD232FW.js → chunk-WJ5EU3KW.js} +1 -1
- package/dist/{chunk-7GKAK7SG.js → chunk-XCXOAHAB.js} +3 -2
- package/dist/{chunk-NBKWY6XN.js → chunk-ZHR77OQI.js} +1 -1
- package/dist/{configuration-O6BMBYJZ.js → configuration-T75P2HCF.js} +1 -1
- package/dist/{configuration-C4IGBNXH.js → configuration-TXRAYMI4.js} +1 -1
- package/dist/{create-R7K3ECN6.js → create-3MUVY3UY.js} +1 -1
- package/dist/{create-5T2D7D4M.js → create-5AMF4EUU.js} +3 -3
- package/dist/{create-SFU3W3ZH.js → create-6DRXGPYA.js} +1 -1
- package/dist/{create-E75FI4OZ.js → create-7DTTZP3R.js} +25 -8
- package/dist/{create-VH33IROG.js → create-7GQDTYKQ.js} +3 -2
- package/dist/{create-YBF4YGWG.js → create-BHSMHOFN.js} +1 -1
- package/dist/{create-XVHOCZHJ.js → create-BVUZWMET.js} +1 -1
- package/dist/{create-G5DHEV55.js → create-ETLMKXIM.js} +35 -21
- package/dist/{create-MK6VRB4F.js → create-EXPTTUZO.js} +3 -3
- package/dist/{create-C5VKLWPC.js → create-LL2T7OYE.js} +3 -3
- package/dist/{create-OKYCDS6U.js → create-LOP7AF5N.js} +1 -1
- package/dist/{create-UPYB65PD.js → create-MKFDE32U.js} +1 -1
- package/dist/{create-F47J27YZ.js → create-QKINJHTJ.js} +9 -9
- package/dist/{create-JQSABIR4.js → create-RDUR6KJL.js} +1 -1
- package/dist/{create-5PSOIHIT.js → create-SYI6DVKM.js} +2 -2
- package/dist/{create-5NSIF5BL.js → create-TICEJWHQ.js} +1 -1
- package/dist/{create-SHDZQLXT.js → create-VBW6556Q.js} +2 -2
- package/dist/{create-VWZMWLSB.js → create-VWNQIVNZ.js} +2 -2
- package/dist/{create-AP4P3L3F.js → create-XYD4RK4Z.js} +2 -2
- package/dist/{edit-KP5W2WAX.js → edit-2GQSJXEO.js} +1 -1
- package/dist/{edit-ZMERG3L7.js → edit-3VNT35DW.js} +1 -1
- package/dist/{edit-IOM4RMSJ.js → edit-6DK6L3ZI.js} +4 -4
- package/dist/{edit-ORXS3A2Y.js → edit-6DUTTLEV.js} +1 -1
- package/dist/{edit-3HTGOJCC.js → edit-7CSEVJUJ.js} +18 -57
- package/dist/{edit-XZL6WZRK.js → edit-ABKSKVBA.js} +1 -1
- package/dist/{edit-ZAHCMF5U.js → edit-FQDSESVI.js} +1 -1
- package/dist/{edit-QM7LQGYO.js → edit-GQH3ZU4F.js} +3 -3
- package/dist/{edit-GQNIINRR.js → edit-JSAWDK47.js} +1 -1
- package/dist/{edit-O4JLGKQR.js → edit-MKVDAUA5.js} +1 -1
- package/dist/{edit-WHRMHGLX.js → edit-NMKAE2Y4.js} +1 -1
- package/dist/{edit-SY3POWMU.js → edit-NWRDZAV4.js} +1 -1
- package/dist/{edit-TNLEIQJX.js → edit-PJCUMB6W.js} +4 -4
- package/dist/{edit-522DG3BY.js → edit-RBREBAQQ.js} +1 -1
- package/dist/{edit-Q3UQIOLS.js → edit-RQHOHZR6.js} +1 -1
- package/dist/{edit-66N4HDDX.js → edit-RSRNWEKW.js} +1 -1
- package/dist/{edit-M5KYT35E.js → edit-SHHOKKZT.js} +2 -2
- package/dist/{edit-C4OCKQVU.js → edit-SM2GHVKW.js} +1 -1
- package/dist/{edit-CDSNMD4A.js → edit-UJ5IIV4W.js} +1 -1
- package/dist/{edit-KAKVPHZZ.js → edit-UVY3TEHD.js} +1 -1
- package/dist/{edit-budget-L3CCEWNF.js → edit-budget-4JMGEPNF.js} +1 -1
- package/dist/{edit-inventory-item-EQRH4IH7.js → edit-inventory-item-IATGKWGS.js} +1 -1
- package/dist/{edit-inventory-item-attributes-J3NRDMGO.js → edit-inventory-item-attributes-WZO2GO2Q.js} +1 -1
- package/dist/{edit-price-BVHSQFEU.js → edit-price-BLBCH6EZ.js} +2 -2
- package/dist/{edit-stock-Y4KJHMYJ.js → edit-stock-JGXTMH47.js} +2 -2
- package/dist/fulfillment-YGUMAF56.js +654 -0
- package/dist/{fulfillment-providers-P3JWD7UN.js → fulfillment-providers-VSCNFCAB.js} +1 -1
- package/dist/index.css +3 -0
- package/dist/index.js +110 -110
- package/dist/{inventory-FCP7K3G3.js → inventory-2AE5RR7V.js} +2 -2
- package/dist/{invite-HSK2XQRX.js → invite-WVCIYV32.js} +1 -1
- package/dist/{media-CYFQMAEX.js → media-5YGSQZDI.js} +5 -4
- package/dist/{media-QMQ27X4G.js → media-OJY6FYZZ.js} +3 -2
- package/dist/{metadata-HDA6BLVR.js → metadata-2NVBJV7J.js} +2 -2
- package/dist/{metadata-5BPOBBU2.js → metadata-BCB4YCJI.js} +2 -2
- package/dist/{metadata-IIN4NLRH.js → metadata-BCIFAEXH.js} +2 -2
- package/dist/{metadata-KMWGUE7G.js → metadata-KS7EYPMD.js} +2 -2
- package/dist/{metadata-DBVAS7ZM.js → metadata-W7MOLOHZ.js} +2 -2
- package/dist/{metadata-43O67QUY.js → metadata-XIUJTRBY.js} +2 -2
- package/dist/{offer-create-page-DX327WMW.js → offer-create-page-KT4HKQWZ.js} +3 -3
- package/dist/{organization-A4IG4WAR.js → organization-YSOQXGGR.js} +2 -2
- package/dist/pages/index.js +12 -12
- package/dist/{payment-details-DBRT7W2N.js → payment-details-CSYYFVJ4.js} +1 -1
- package/dist/{pricing-2YFK2AR5.js → pricing-EZX3DQ5U.js} +3 -3
- package/dist/{pricing-MQBWOWKW.js → pricing-PBZ5NY6F.js} +2 -2
- package/dist/{product-variant-detail-4Q4YCN3E.js → product-variant-detail-CQCURDL2.js} +1 -1
- package/dist/{product-variant-edit-7OCP6ZT7.js → product-variant-edit-F4AO6XQX.js} +1 -1
- package/dist/{products-KZLDM2QA.js → products-3W3HNFG2.js} +9 -9
- package/dist/{products-FGL7RHWE.js → products-QND6FIDH.js} +1 -1
- package/dist/{professional-details-IPTTXX52.js → professional-details-QT73KUKG.js} +1 -1
- package/dist/{profile-7AUYSTIZ.js → profile-BTN7M4HA.js} +1 -1
- package/dist/{promotions-75P5F3ZB.js → promotions-TB7XVCBJ.js} +4 -4
- package/dist/{receive-4IQGDJZU.js → receive-XGCTH7US.js} +1 -1
- package/dist/{refund-BVIKFQVS.js → refund-O4DJH7Y6.js} +1 -1
- package/dist/{register-CUKIMHHO.js → register-SOKUKD7W.js} +1 -1
- package/dist/{reset-password-MVLTJWIR.js → reset-password-67MLPGX5.js} +1 -1
- package/dist/{sales-channels-E6OYLORW.js → sales-channels-R6S6UQZQ.js} +1 -1
- package/dist/{shipment-2UN3V3OO.js → shipment-WYCW7YTA.js} +1 -1
- package/dist/{shipping-AYEJMMT6.js → shipping-D7TMNXBE.js} +1 -1
- package/dist/{shipping-profile-6DNDCV3D.js → shipping-profile-M3DXKELR.js} +1 -1
- package/dist/{stock-UWTFM2V7.js → stock-GUHPX6TN.js} +2 -2
- package/dist/{store-closure-7NGEFWM2.js → store-closure-D5M3F3DG.js} +1 -1
- package/package.json +1 -1
- package/dist/fulfillment-FU5QETOZ.js +0 -566
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-BWGPN6XV.js";
|
|
7
7
|
import {
|
|
8
8
|
StatusCell
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-T6UMXTUM.js";
|
|
10
10
|
import "./chunk-FMFVTERD.js";
|
|
11
11
|
import "./chunk-DB6ANJBO.js";
|
|
12
12
|
import {
|
|
13
13
|
NoRecords
|
|
14
14
|
} from "./chunk-3EF54XFY.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-FCPNNFM4.js";
|
|
16
16
|
import {
|
|
17
17
|
TwoColumnPage
|
|
18
18
|
} from "./chunk-YV6MK4PZ.js";
|
|
@@ -1535,7 +1535,7 @@ var Header = () => {
|
|
|
1535
1535
|
};
|
|
1536
1536
|
|
|
1537
1537
|
// src/pages/orders/[id]/_components/order-fulfillment-section/order-fulfillment-section.tsx
|
|
1538
|
-
import { XCircle } from "@medusajs/icons";
|
|
1538
|
+
import { DocumentText, XCircle } from "@medusajs/icons";
|
|
1539
1539
|
import {
|
|
1540
1540
|
Button as Button6,
|
|
1541
1541
|
Container as Container7,
|
|
@@ -1642,7 +1642,23 @@ var UnfulfilledItemDisplay = ({
|
|
|
1642
1642
|
/* @__PURE__ */ jsx19(Heading7, { level: "h2", children: t("orders.fulfillment.unfulfilledItems") }),
|
|
1643
1643
|
/* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-x-4", children: [
|
|
1644
1644
|
requiresShipping && /* @__PURE__ */ jsx19(StatusBadge, { color: "red", className: "text-nowrap", children: t("orders.fulfillment.requiresShipping") }),
|
|
1645
|
-
/* @__PURE__ */ jsx19(StatusBadge, { color: "red", className: "text-nowrap", children: t("orders.fulfillment.awaitingFulfillmentBadge") })
|
|
1645
|
+
/* @__PURE__ */ jsx19(StatusBadge, { color: "red", className: "text-nowrap", children: t("orders.fulfillment.awaitingFulfillmentBadge") }),
|
|
1646
|
+
/* @__PURE__ */ jsx19(
|
|
1647
|
+
ActionMenu,
|
|
1648
|
+
{
|
|
1649
|
+
groups: [
|
|
1650
|
+
{
|
|
1651
|
+
actions: [
|
|
1652
|
+
{
|
|
1653
|
+
label: t("orders.fulfillment.fulfillItems"),
|
|
1654
|
+
icon: /* @__PURE__ */ jsx19(DocumentText, {}),
|
|
1655
|
+
to: `/orders/${order.id}/fulfillment?requires_shipping=${requiresShipping}`
|
|
1656
|
+
}
|
|
1657
|
+
]
|
|
1658
|
+
}
|
|
1659
|
+
]
|
|
1660
|
+
}
|
|
1661
|
+
)
|
|
1646
1662
|
] })
|
|
1647
1663
|
] }),
|
|
1648
1664
|
/* @__PURE__ */ jsx19("div", { children: unfulfilledItems.map((item) => /* @__PURE__ */ jsx19(
|
|
@@ -1652,14 +1668,7 @@ var UnfulfilledItemDisplay = ({
|
|
|
1652
1668
|
currencyCode: order.currency_code
|
|
1653
1669
|
},
|
|
1654
1670
|
item.id
|
|
1655
|
-
)) })
|
|
1656
|
-
/* @__PURE__ */ jsx19("div", { className: "px-6 py-4 flex justify-end", children: /* @__PURE__ */ jsx19(
|
|
1657
|
-
Link3,
|
|
1658
|
-
{
|
|
1659
|
-
to: `/orders/${order.id}/fulfillment?requires_shipping=${requiresShipping}`,
|
|
1660
|
-
children: /* @__PURE__ */ jsx19(Button6, { size: "small", children: t("orders.fulfillment.fulfillItems") })
|
|
1661
|
-
}
|
|
1662
|
-
) })
|
|
1671
|
+
)) })
|
|
1663
1672
|
] });
|
|
1664
1673
|
};
|
|
1665
1674
|
var Fulfillment = ({
|
|
@@ -1702,6 +1711,7 @@ var Fulfillment = ({
|
|
|
1702
1711
|
);
|
|
1703
1712
|
const showShippingButton = !fulfillment.canceled_at && !fulfillment.shipped_at && !fulfillment.delivered_at && fulfillment.requires_shipping && !isPickUpFulfillment;
|
|
1704
1713
|
const showDeliveryButton = !fulfillment.canceled_at && !fulfillment.delivered_at;
|
|
1714
|
+
const cancelDisabled = !!fulfillment.canceled_at || !!fulfillment.shipped_at || !!fulfillment.delivered_at;
|
|
1705
1715
|
const handleMarkAsDelivered = async () => {
|
|
1706
1716
|
const res = await prompt({
|
|
1707
1717
|
title: t("general.areYouSure"),
|
|
@@ -1776,7 +1786,8 @@ var Fulfillment = ({
|
|
|
1776
1786
|
label: t("actions.cancel"),
|
|
1777
1787
|
icon: /* @__PURE__ */ jsx19(XCircle, {}),
|
|
1778
1788
|
onClick: handleCancel,
|
|
1779
|
-
disabled:
|
|
1789
|
+
disabled: cancelDisabled,
|
|
1790
|
+
disabledTooltip: fulfillment.shipped_at ? t("orders.fulfillment.cancelDisabledTooltip") : void 0
|
|
1780
1791
|
}
|
|
1781
1792
|
]
|
|
1782
1793
|
}
|
|
@@ -1967,7 +1978,7 @@ var OrderBadge = ({ order }) => {
|
|
|
1967
1978
|
};
|
|
1968
1979
|
|
|
1969
1980
|
// src/pages/orders/[id]/_components/order-payment-section/order-payment-section.tsx
|
|
1970
|
-
import { ArrowUturnLeft as ArrowUturnLeft2, DocumentText } from "@medusajs/icons";
|
|
1981
|
+
import { ArrowUturnLeft as ArrowUturnLeft2, DocumentText as DocumentText2 } from "@medusajs/icons";
|
|
1971
1982
|
import {
|
|
1972
1983
|
Badge,
|
|
1973
1984
|
Container as Container9,
|
|
@@ -2156,7 +2167,7 @@ var RefundRow = ({
|
|
|
2156
2167
|
/* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-x-2", children: [
|
|
2157
2168
|
/* @__PURE__ */ jsx21(Text19, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: t("orders.payment.refund") }),
|
|
2158
2169
|
reasonLabel && /* @__PURE__ */ jsx21(Badge, { size: "2xsmall", rounded: "full", children: reasonLabel }),
|
|
2159
|
-
refund.note && /* @__PURE__ */ jsx21(Tooltip3, { content: refund.note, children: /* @__PURE__ */ jsx21(
|
|
2170
|
+
refund.note && /* @__PURE__ */ jsx21(Tooltip3, { content: refund.note, children: /* @__PURE__ */ jsx21(DocumentText2, { className: "text-ui-fg-subtle h-3 w-3" }) })
|
|
2160
2171
|
] }),
|
|
2161
2172
|
refund.created_at && /* @__PURE__ */ jsx21(Text19, { size: "xsmall", leading: "compact", className: "text-ui-fg-subtle", children: getFullDate({ date: refund.created_at, includeTime: true }) })
|
|
2162
2173
|
] }),
|
|
@@ -2175,7 +2186,7 @@ import {
|
|
|
2175
2186
|
ArrowLongRight,
|
|
2176
2187
|
ArrowPath as ArrowPath2,
|
|
2177
2188
|
ArrowUturnLeft as ArrowUturnLeft3,
|
|
2178
|
-
DocumentText as
|
|
2189
|
+
DocumentText as DocumentText3,
|
|
2179
2190
|
ExclamationCircle as ExclamationCircle2,
|
|
2180
2191
|
PencilSquare,
|
|
2181
2192
|
TriangleDownMini
|
|
@@ -2623,7 +2634,7 @@ var ReturnBreakdownWithDamages = ({
|
|
|
2623
2634
|
/* @__PURE__ */ jsx24(Text21, { size: "small", children: t("orders.returns.damagedItemsReturned", {
|
|
2624
2635
|
quantity: damagedQuantity
|
|
2625
2636
|
}) }),
|
|
2626
|
-
item.note && /* @__PURE__ */ jsx24(Tooltip5, { content: item.note, children: /* @__PURE__ */ jsx24(
|
|
2637
|
+
item.note && /* @__PURE__ */ jsx24(Tooltip5, { content: item.note, children: /* @__PURE__ */ jsx24(DocumentText3, { className: "text-ui-tag-neutral-icon ml-1 inline" }) }),
|
|
2627
2638
|
item.reason && /* @__PURE__ */ jsx24(
|
|
2628
2639
|
Badge4,
|
|
2629
2640
|
{
|
|
@@ -2681,7 +2692,7 @@ var ReturnBreakdown = ({
|
|
|
2681
2692
|
requestedItemsCount: isRequested ? item.quantity : item.received_quantity
|
|
2682
2693
|
}
|
|
2683
2694
|
) }),
|
|
2684
|
-
item.note && /* @__PURE__ */ jsx24(Tooltip5, { content: item.note, children: /* @__PURE__ */ jsx24(
|
|
2695
|
+
item.note && /* @__PURE__ */ jsx24(Tooltip5, { content: item.note, children: /* @__PURE__ */ jsx24(DocumentText3, { className: "text-ui-tag-neutral-icon ml-1 inline" }) }),
|
|
2685
2696
|
item.reason && /* @__PURE__ */ jsx24(
|
|
2686
2697
|
Badge4,
|
|
2687
2698
|
{
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
usePromotionTableColumns,
|
|
9
9
|
usePromotionTableQuery
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-U4HFDAGW.js";
|
|
11
|
+
import "./chunk-T6UMXTUM.js";
|
|
12
12
|
import "./chunk-JHIMVLB2.js";
|
|
13
13
|
import {
|
|
14
14
|
usePromotionTableFilters
|
|
@@ -27,7 +27,7 @@ import "./chunk-3EF54XFY.js";
|
|
|
27
27
|
import {
|
|
28
28
|
currencies
|
|
29
29
|
} from "./chunk-IQPN4PZJ.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-FCPNNFM4.js";
|
|
31
31
|
import {
|
|
32
32
|
TwoColumnPage
|
|
33
33
|
} from "./chunk-YV6MK4PZ.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
PriceListCreateProductsSchema,
|
|
3
3
|
usePriceListCurrencyData,
|
|
4
4
|
usePriceListGridColumns
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JM5J2RH7.js";
|
|
6
6
|
import "./chunk-N335VHD3.js";
|
|
7
7
|
import "./chunk-EBZ5VZEO.js";
|
|
8
8
|
import "./chunk-4F5GP7J7.js";
|
|
@@ -56,7 +56,7 @@ import "./chunk-DB6ANJBO.js";
|
|
|
56
56
|
import "./chunk-PHOCVOZ5.js";
|
|
57
57
|
import {
|
|
58
58
|
DataGrid
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-TKSKCYM3.js";
|
|
60
60
|
import "./chunk-26OOAKQ6.js";
|
|
61
61
|
import {
|
|
62
62
|
_DataTable,
|
|
@@ -70,7 +70,7 @@ import "./chunk-SMQT3ZNO.js";
|
|
|
70
70
|
import "./chunk-TKGWSUEI.js";
|
|
71
71
|
import {
|
|
72
72
|
KeyboundForm
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-SITRHMZZ.js";
|
|
74
74
|
import {
|
|
75
75
|
RouteFocusModal,
|
|
76
76
|
useRouteModal
|
|
@@ -8,7 +8,7 @@ import "./chunk-VBRTC2VU.js";
|
|
|
8
8
|
import "./chunk-TKGWSUEI.js";
|
|
9
9
|
import {
|
|
10
10
|
KeyboundForm
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SITRHMZZ.js";
|
|
12
12
|
import {
|
|
13
13
|
RouteFocusModal,
|
|
14
14
|
useRouteModal
|
|
@@ -33,7 +33,7 @@ import "./chunk-QHQWEERJ.js";
|
|
|
33
33
|
import "./chunk-Y7QKP6QU.js";
|
|
34
34
|
import {
|
|
35
35
|
PRODUCT_DETAIL_QUERY
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-36WXPGD2.js";
|
|
37
37
|
import {
|
|
38
38
|
useBatchProductAttributes,
|
|
39
39
|
useProduct,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-U4HFDAGW.js";
|
|
5
|
+
import "./chunk-T6UMXTUM.js";
|
|
6
6
|
import "./chunk-JHIMVLB2.js";
|
|
7
7
|
import {
|
|
8
8
|
usePromotionTableFilters
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import "./chunk-YN3FGNJM.js";
|
|
19
19
|
import "./chunk-KCHYLLVG.js";
|
|
20
20
|
import "./chunk-3EF54XFY.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FCPNNFM4.js";
|
|
22
22
|
import "./chunk-TKGWSUEI.js";
|
|
23
23
|
import {
|
|
24
24
|
KeyboundForm
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SITRHMZZ.js";
|
|
26
26
|
import {
|
|
27
27
|
RouteFocusModal,
|
|
28
28
|
useRouteModal
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AddCampaignPromotionForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZHR77OQI.js";
|
|
4
4
|
import "./chunk-O7VOGTLX.js";
|
|
5
5
|
import "./chunk-IQPN4PZJ.js";
|
|
6
6
|
import "./chunk-TKGWSUEI.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-SITRHMZZ.js";
|
|
8
8
|
import {
|
|
9
9
|
RouteDrawer
|
|
10
10
|
} from "./chunk-GDWBOQI5.js";
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
var PRODUCT_DETAIL_FIELDS = [
|
|
3
3
|
"*variants.images",
|
|
4
4
|
// Variant identity used by the active edit-request block (MER-168).
|
|
5
|
-
"
|
|
6
|
-
|
|
5
|
+
// Use `+` so these don't trigger Medusa's "replace defaults" rule
|
|
6
|
+
// (any bare field strips title/description/subtitle from the product).
|
|
7
|
+
"+variants.title",
|
|
8
|
+
"+variants.sku",
|
|
7
9
|
"*categories",
|
|
8
10
|
"+additional_data",
|
|
9
11
|
"*scoped_attributes",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DataGrid,
|
|
6
6
|
createDataGridHelper
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TKSKCYM3.js";
|
|
8
8
|
import {
|
|
9
9
|
HandleInput
|
|
10
10
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -20,22 +20,22 @@ import {
|
|
|
20
20
|
} from "./chunk-YVCBMOJG.js";
|
|
21
21
|
import {
|
|
22
22
|
SingleCategoryCombobox
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XCXOAHAB.js";
|
|
24
24
|
import {
|
|
25
25
|
useComboboxData
|
|
26
26
|
} from "./chunk-OVPAOBZB.js";
|
|
27
27
|
import {
|
|
28
28
|
UploadMediaFormItem
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QI6MTLQF.js";
|
|
30
30
|
import {
|
|
31
31
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
32
32
|
ProductCreateSchema,
|
|
33
33
|
generateVariantsFromAttributes,
|
|
34
34
|
normalizeProductFormValues
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CQ7IPZLK.js";
|
|
36
36
|
import {
|
|
37
37
|
ChipInput
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-KDE4HKH2.js";
|
|
39
39
|
import {
|
|
40
40
|
useAttributeTableQuery
|
|
41
41
|
} from "./chunk-4YWKKCTT.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
TabbedForm,
|
|
47
47
|
useTabbedForm
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WJ5EU3KW.js";
|
|
49
49
|
import {
|
|
50
50
|
RouteFocusModal,
|
|
51
51
|
StackedFocusModal,
|
|
@@ -866,7 +866,7 @@ var RequiredAttributes = () => {
|
|
|
866
866
|
if (nextAttributes !== currentAttributes) {
|
|
867
867
|
form.setValue("attributes", nextAttributes);
|
|
868
868
|
}
|
|
869
|
-
}, [product_attributes]);
|
|
869
|
+
}, [product_attributes, form]);
|
|
870
870
|
if (!categoryId || !product_attributes?.length) return null;
|
|
871
871
|
const requiredEntries = attributes.map((attr, index) => ({ attr, index })).filter(({ attr }) => !attr.is_custom);
|
|
872
872
|
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
@@ -1784,7 +1784,7 @@ var ProductCreateForm = ({
|
|
|
1784
1784
|
if (JSON.stringify(newVariants.map((v) => v.options)) !== JSON.stringify(currentVariants.map((v) => v.options))) {
|
|
1785
1785
|
form.setValue("variants", newVariants);
|
|
1786
1786
|
}
|
|
1787
|
-
}, [watchedAttributes]);
|
|
1787
|
+
}, [watchedAttributes, form]);
|
|
1788
1788
|
const submitProduct = async (values, isDraftSubmission) => {
|
|
1789
1789
|
const media = values.media || [];
|
|
1790
1790
|
const payload = { ...values, media: void 0 };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-RIN4CBRB.js";
|
|
10
10
|
|
|
11
11
|
// src/pages/product-variants/product-variant-detail/loader.ts
|
|
12
|
-
var VARIANT_DETAIL_FIELDS = "*options,*options.option
|
|
12
|
+
var VARIANT_DETAIL_FIELDS = "*options,*options.option,+thumbnail,+images.id,+images.url,+images.rank,+images.variants.id,+product.images.id,+product.images.url,+product.images.rank,+product.images.variants.id";
|
|
13
13
|
var variantDetailQuery = (productId, variantId) => ({
|
|
14
14
|
queryKey: variantsQueryKeys.detail(variantId, { fields: VARIANT_DETAIL_FIELDS }),
|
|
15
15
|
queryFn: async () => sdk.vendor.products.$id.variants.$variantId.query({
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-AJLGY3LQ.js";
|
|
4
4
|
import {
|
|
5
5
|
i18n
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FCPNNFM4.js";
|
|
7
7
|
|
|
8
8
|
// src/pages/products/create/constants.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -445,6 +445,7 @@ var FileUpload = ({
|
|
|
445
445
|
"input",
|
|
446
446
|
{
|
|
447
447
|
hidden: true,
|
|
448
|
+
"aria-label": "File upload",
|
|
448
449
|
ref: inputRef,
|
|
449
450
|
onChange: handleFileChange,
|
|
450
451
|
type: "file",
|
|
@@ -495,6 +496,7 @@ var FileUpload = ({
|
|
|
495
496
|
"input",
|
|
496
497
|
{
|
|
497
498
|
hidden: true,
|
|
499
|
+
"aria-label": "File upload",
|
|
498
500
|
ref: inputRef,
|
|
499
501
|
onChange: handleFileChange,
|
|
500
502
|
type: "file",
|
|
@@ -9329,7 +9329,7 @@ var en_default = {
|
|
|
9329
9329
|
placeholder: "Small, Medium, Large"
|
|
9330
9330
|
},
|
|
9331
9331
|
productVariants: {
|
|
9332
|
-
searchPlaceholder: "Search
|
|
9332
|
+
searchPlaceholder: "Search",
|
|
9333
9333
|
media: "Media",
|
|
9334
9334
|
tip: "Only variants with prices and stock will be visible to customers.",
|
|
9335
9335
|
label: "Product variants",
|
|
@@ -10254,19 +10254,21 @@ var en_default = {
|
|
|
10254
10254
|
},
|
|
10255
10255
|
edits: {
|
|
10256
10256
|
title: "Edit order",
|
|
10257
|
-
confirm: "Confirm
|
|
10257
|
+
confirm: "Confirm",
|
|
10258
10258
|
confirmText: "You are about to confirm an Order Edit. This action cannot be undone.",
|
|
10259
|
-
cancel: "Cancel
|
|
10259
|
+
cancel: "Cancel",
|
|
10260
10260
|
currentItems: "Current items",
|
|
10261
10261
|
currentItemsDescription: "Adjust item quantity or remove.",
|
|
10262
10262
|
addItemsDescription: "You can add new items to the order.",
|
|
10263
10263
|
addItems: "Add items",
|
|
10264
10264
|
amountPaid: "Amount paid",
|
|
10265
10265
|
newTotal: "New total",
|
|
10266
|
-
differenceDue: "
|
|
10266
|
+
differenceDue: "Estimated difference",
|
|
10267
10267
|
create: "Edit Order",
|
|
10268
10268
|
currentTotal: "Current total",
|
|
10269
10269
|
noteHint: "Add an internal note for the edit",
|
|
10270
|
+
sendNotification: "Send notification",
|
|
10271
|
+
sendNotificationHint: "Notify customer about edit.",
|
|
10270
10272
|
cancelSuccessToast: "Order edit canceled",
|
|
10271
10273
|
createSuccessToast: "Order edit request created",
|
|
10272
10274
|
activeChangeError: "There is already active order change on the order (return, claim, exchange etc.). Please finish or cancel the change before editing the order.",
|
|
@@ -10530,9 +10532,14 @@ var en_default = {
|
|
|
10530
10532
|
},
|
|
10531
10533
|
fulfillment: {
|
|
10532
10534
|
cancelWarning: "You are about to cancel a fulfillment. This action cannot be undone.",
|
|
10535
|
+
cancelDisabledTooltip: "A shipped fulfillment can no longer be canceled.",
|
|
10533
10536
|
markAsDeliveredWarning: "You are about to mark fulfillment as delivered. This action cannot be undone.",
|
|
10534
10537
|
differentOptionSelected: "The selected shipping option is different from the one selected by the customer.",
|
|
10535
|
-
disabledItemTooltip: "The shipping option you have selected don\u2019t allow fulfillment of this item",
|
|
10538
|
+
disabledItemTooltip: "The location or shipping option you have selected don\u2019t allow fulfillment of this item.",
|
|
10539
|
+
noInventoryLevel: {
|
|
10540
|
+
title: "No inventory level",
|
|
10541
|
+
description: "The selected location does not have an inventory level for the selected items. To proceed with fulfillment, create an inventory level for selected location."
|
|
10542
|
+
},
|
|
10536
10543
|
unfulfilledItems: "Unfulfilled Items",
|
|
10537
10544
|
statusLabel: "Fulfillment status",
|
|
10538
10545
|
statusTitle: "Fulfillment Status",
|
|
@@ -31083,7 +31090,7 @@ var pl_default = {
|
|
|
31083
31090
|
hint: "Ta kolejno\u015B\u0107 wp\u0142ynie na porz\u0105dek wariant\xF3w w Twoim sklepie.",
|
|
31084
31091
|
alert: "Dodaj opcje, aby utworzy\u0107 warianty.",
|
|
31085
31092
|
tip: "Warianty, kt\xF3re nie zosta\u0142y wybrane, nie zostan\u0105 utworzone. Mo\u017Cesz zawsze p\xF3\u017Aniej doda\u0107 i edytowa\u0107 warianty.",
|
|
31086
|
-
searchPlaceholder: "Wyszukaj
|
|
31093
|
+
searchPlaceholder: "Wyszukaj",
|
|
31087
31094
|
media: "Media"
|
|
31088
31095
|
},
|
|
31089
31096
|
productOptions: {
|
|
@@ -135,6 +135,7 @@ var ChipInput = forwardRef(
|
|
|
135
135
|
/* @__PURE__ */ jsx(
|
|
136
136
|
"input",
|
|
137
137
|
{
|
|
138
|
+
"aria-label": "Chip input",
|
|
138
139
|
className: clx(
|
|
139
140
|
"caret-ui-fg-base text-ui-fg-base txt-compact-small flex-1 appearance-none bg-transparent",
|
|
140
141
|
"disabled:text-ui-fg-disabled disabled:cursor-not-allowed",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListUpdateProductsSchema,
|
|
3
3
|
usePriceListGridColumns
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JM5J2RH7.js";
|
|
5
5
|
import {
|
|
6
6
|
isProductRow
|
|
7
7
|
} from "./chunk-XRNDVICA.js";
|
|
8
8
|
import {
|
|
9
9
|
DataGrid
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TKSKCYM3.js";
|
|
11
11
|
import {
|
|
12
12
|
castNumber
|
|
13
13
|
} from "./chunk-SMQT3ZNO.js";
|
|
14
14
|
import {
|
|
15
15
|
KeyboundForm
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SITRHMZZ.js";
|
|
17
17
|
import {
|
|
18
18
|
RouteFocusModal,
|
|
19
19
|
useRouteModal
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useCombinedRefs,
|
|
10
10
|
useDataGridCell,
|
|
11
11
|
useDataGridCellError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TKSKCYM3.js";
|
|
13
13
|
import {
|
|
14
14
|
currencies
|
|
15
15
|
} from "./chunk-IQPN4PZJ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-SMQT3ZNO.js";
|
|
19
19
|
import {
|
|
20
20
|
KeyboundForm
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SITRHMZZ.js";
|
|
22
22
|
import {
|
|
23
23
|
StackedFocusModal
|
|
24
24
|
} from "./chunk-GDWBOQI5.js";
|
|
@@ -17,14 +17,17 @@ var KeyboundForm = React.forwardRef(({ onSubmit, onKeyDown, ...rest }, ref) => {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
return (
|
|
21
|
+
// oxlint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
"form",
|
|
24
|
+
{
|
|
25
|
+
...rest,
|
|
26
|
+
onSubmit: handleSubmit,
|
|
27
|
+
onKeyDown: onKeyDown ?? handleKeyDown,
|
|
28
|
+
ref
|
|
29
|
+
}
|
|
30
|
+
)
|
|
28
31
|
);
|
|
29
32
|
});
|
|
30
33
|
KeyboundForm.displayName = "KeyboundForm";
|