@mercurjs/admin 2.3.4-canary.9 → 2.3.5-canary.0
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/{add-campaign-promotions-CJLMIYUH.js → add-campaign-promotions-PBGDZSCD.js} +6 -6
- package/dist/{api-key-management-detail-TTGN4LO7.js → api-key-management-detail-ZGGQBQAM.js} +4 -4
- package/dist/{api-key-management-list-3WC2IKZL.js → api-key-management-list-T2WHT6MT.js} +5 -5
- package/dist/{api-key-management-sales-channels-FFY3HIOX.js → api-key-management-sales-channels-FS3KXQQ6.js} +3 -3
- package/dist/{attribute-detail-ZLUXZJ5N.js → attribute-detail-SXF6Z3B7.js} +3 -3
- package/dist/{attribute-list-3N2H3QES.js → attribute-list-SCFBKH4L.js} +4 -4
- package/dist/{campaign-detail-DGQDVMML.js → campaign-detail-BHRCOKL3.js} +8 -8
- package/dist/{campaign-list-65FSRULA.js → campaign-list-GIMU2QVW.js} +6 -6
- package/dist/{category-detail-IYGDDX2H.js → category-detail-ADUIZLD2.js} +4 -4
- package/dist/{category-list-MMDWGDGY.js → category-list-J7XYQDJU.js} +4 -4
- package/dist/{category-products-S5QGU5DI.js → category-products-QKO7R74I.js} +3 -3
- package/dist/{chunk-ZKICT6SB.js → chunk-2PEUXNN2.js} +2 -2
- package/dist/{chunk-WS6IDWSK.js → chunk-3AJ26Y7Y.js} +1 -1
- package/dist/{chunk-5MKDC5JO.js → chunk-3NZGVRWE.js} +3 -3
- package/dist/{chunk-JCGEIG3Y.js → chunk-3XS5ADKJ.js} +2 -2
- package/dist/{chunk-3LGZ6ZFD.js → chunk-437KXVGO.js} +2 -2
- package/dist/{chunk-XQNVC4Q7.js → chunk-46WEBDVJ.js} +2 -2
- package/dist/{chunk-L4PKGKBA.js → chunk-475XGX3J.js} +2 -2
- package/dist/{chunk-J5DSIPXV.js → chunk-4FAYO6UJ.js} +1 -1
- package/dist/{chunk-T7FY2OVS.js → chunk-5ENOJFDI.js} +1 -1
- package/dist/{chunk-JA5N7UDN.js → chunk-6CIWAMKA.js} +1 -1
- package/dist/{chunk-QG6PLWNH.js → chunk-6G456XO4.js} +1 -1
- package/dist/{chunk-5FZXXWQE.js → chunk-7ASAC2FM.js} +2 -2
- package/dist/{chunk-GSMY4NVZ.js → chunk-7CUMT7BE.js} +1 -1
- package/dist/{chunk-FMXVAAUL.js → chunk-7UHN2CW7.js} +1 -1
- package/dist/{chunk-RKFEXC2J.js → chunk-7VO6VJZJ.js} +1 -1
- package/dist/{chunk-KXHK3YP3.js → chunk-AGO4ROOR.js} +2 -2
- package/dist/{chunk-TPOKXXQR.js → chunk-AOLP2YDZ.js} +1 -1
- package/dist/{chunk-ZSDYXND2.js → chunk-AYDWW5IL.js} +1 -1
- package/dist/{chunk-MDWCFAIH.js → chunk-B7QLJF77.js} +2 -2
- package/dist/{chunk-3TO6RG5L.js → chunk-BLU2WLIJ.js} +2 -2
- package/dist/{chunk-ZOE63MHR.js → chunk-CVHSVKHR.js} +1 -1
- package/dist/{chunk-3APMMXXA.js → chunk-CVTRLAPB.js} +2 -2
- package/dist/{chunk-ZSXV74UF.js → chunk-D6WRJZPH.js} +2 -2
- package/dist/{chunk-FBT44RFO.js → chunk-DIF3LIGG.js} +2 -2
- package/dist/{chunk-UZWFZMOX.js → chunk-EIWPJWKF.js} +1 -1
- package/dist/{chunk-25LYVP3C.js → chunk-F3XPA5ID.js} +1 -1
- package/dist/{chunk-CHCFLLTR.js → chunk-F5EZQMOA.js} +2 -2
- package/dist/{chunk-BQUNKXWY.js → chunk-F644YFJZ.js} +2 -2
- package/dist/{chunk-ALPXDBK6.js → chunk-FOOFDZXP.js} +1 -1
- package/dist/{chunk-PAYX77VD.js → chunk-FOWWGEP7.js} +1 -1
- package/dist/{chunk-YHUF3U6C.js → chunk-GAOSCJQT.js} +1 -1
- package/dist/{chunk-ZSZNRAAQ.js → chunk-GFHUI2QK.js} +1 -1
- package/dist/{chunk-I3SX57OC.js → chunk-GLMIYNXS.js} +3 -3
- package/dist/{chunk-NJMDQOS5.js → chunk-GR7S7WTT.js} +2 -2
- package/dist/{chunk-6MTBJ5JD.js → chunk-IHCKU5FR.js} +2 -2
- package/dist/{chunk-JIOYQIQ6.js → chunk-J34YB5R4.js} +1 -1
- package/dist/{chunk-X4W5GH6N.js → chunk-JBT2FR4K.js} +3 -3
- package/dist/{chunk-O5VKW5FL.js → chunk-JPYECNPC.js} +1 -1
- package/dist/{chunk-YPHF4ZG6.js → chunk-KPNSESNF.js} +2 -2
- package/dist/{chunk-F4IPSDDK.js → chunk-LBFX6AVE.js} +1 -1
- package/dist/{chunk-N44F45A2.js → chunk-M336ZIRO.js} +2 -2
- package/dist/{chunk-KG2PDEFS.js → chunk-M6X7KIBW.js} +1 -1
- package/dist/{chunk-N7WKTJDC.js → chunk-MJUHCGUM.js} +1 -1
- package/dist/{chunk-HFQ6MHXC.js → chunk-MQFPD5J4.js} +1 -1
- package/dist/{chunk-AFQS6E4N.js → chunk-MWEFUPRY.js} +1 -1
- package/dist/{chunk-HKHDRY5B.js → chunk-NFZEX33S.js} +1 -1
- package/dist/{chunk-5HX6KHYR.js → chunk-NIDM2VQO.js} +2 -2
- package/dist/{chunk-RK5N3XIX.js → chunk-O7324VFF.js} +1 -1
- package/dist/{chunk-JT3M2JKJ.js → chunk-P2KYQNXQ.js} +41 -26
- package/dist/{chunk-KGCVYMQF.js → chunk-P2L3454Z.js} +1 -1
- package/dist/{chunk-HY6MBAFS.js → chunk-PAG3PYAQ.js} +1 -1
- package/dist/{chunk-72CBEN5T.js → chunk-PFQO7UQG.js} +1 -1
- package/dist/{chunk-ORGUZM2H.js → chunk-Q6M2TNLO.js} +2 -2
- package/dist/{chunk-ULBM3G74.js → chunk-RW3NEG36.js} +2 -2
- package/dist/{chunk-KDCWJN33.js → chunk-SRF2L4MR.js} +2 -2
- package/dist/{chunk-ZHHZZ2VS.js → chunk-U2RBSUMY.js} +2 -2
- package/dist/{chunk-ALXBNI7W.js → chunk-VBHKRUON.js} +1 -1
- package/dist/{chunk-4K3MAWIG.js → chunk-X66JG3MJ.js} +2 -2
- package/dist/{chunk-XCIJQWA4.js → chunk-XAF5YRCD.js} +1 -1
- package/dist/{chunk-6PWVJ255.js → chunk-XG6V24T7.js} +1 -1
- package/dist/{chunk-PEL2ZKRI.js → chunk-XUSQNYGA.js} +1 -1
- package/dist/{chunk-6PWW6JYT.js → chunk-XXYVUV5F.js} +1 -1
- package/dist/{chunk-B3VAOHX4.js → chunk-YBFLE6HW.js} +1 -1
- package/dist/{chunk-7KHO4ZZJ.js → chunk-ZFPASY4R.js} +2 -2
- package/dist/{chunk-O5MP5XZZ.js → chunk-ZOU25JF6.js} +1 -1
- package/dist/{chunk-DBYUB2YI.js → chunk-ZVNGPUNQ.js} +1 -1
- package/dist/{collection-add-products-GV4Y5M4R.js → collection-add-products-O57OBPNL.js} +3 -3
- package/dist/{collection-detail-4CEF6VOR.js → collection-detail-MTKPUOT5.js} +4 -4
- package/dist/{collection-list-VW3SALNH.js → collection-list-KHLO6D2Q.js} +4 -4
- package/dist/{commissions-list-2U7NWK6F.js → commissions-list-MUKIEJWZ.js} +4 -4
- package/dist/{customer-detail-K2SUVEJC.js → customer-detail-XO7RBVUC.js} +5 -5
- package/dist/{customer-group-add-customers-ALRVLPTP.js → customer-group-add-customers-XYWJSXKS.js} +5 -5
- package/dist/{customer-group-detail-XS2RWO7D.js → customer-group-detail-4G53UKOS.js} +6 -6
- package/dist/{customer-group-list-4O75DIFE.js → customer-group-list-5VA7HGD5.js} +4 -4
- package/dist/{customer-list-KRFHAFW7.js → customer-list-NEPELR3R.js} +6 -6
- package/dist/{customers-add-customer-group-LXFCHUS7.js → customers-add-customer-group-MYC76YGW.js} +3 -3
- package/dist/extension-targets.d.ts +2 -0
- package/dist/index.js +106 -106
- package/dist/{inventory-detail-36XRAUM6.js → inventory-detail-7HB5QEL4.js} +4 -4
- package/dist/{inventory-list-OFM5C6MU.js → inventory-list-FN7FCI4W.js} +4 -4
- package/dist/{location-fulfillment-providers-6JDJGUD6.js → location-fulfillment-providers-JSO4KA2L.js} +3 -3
- package/dist/{location-sales-channels-UCPVQLCE.js → location-sales-channels-TNP3C7UW.js} +3 -3
- package/dist/{location-service-zone-create-HVHIYEJQ.js → location-service-zone-create-KPM4RSCF.js} +4 -4
- package/dist/{location-service-zone-manage-areas-TEYBTN4S.js → location-service-zone-manage-areas-NW5JUTCH.js} +4 -4
- package/dist/{marketplace-add-currencies-6DC7PCKQ.js → marketplace-add-currencies-Z6FUIAU5.js} +3 -3
- package/dist/{marketplace-detail-JNXGLKDM.js → marketplace-detail-4IP5HIEW.js} +4 -4
- package/dist/{offer-detail-page-RQ7UCQ3C.js → offer-detail-page-DYTD4MGP.js} +4 -4
- package/dist/{offer-variant-detail-page-GNWKM2TB.js → offer-variant-detail-page-YBQ3ZDCK.js} +4 -4
- package/dist/{offers-KWUU4PPB.js → offers-ICELN2UZ.js} +3 -3
- package/dist/{order-create-claim-U73SSQGE.js → order-create-claim-4CIL76V5.js} +3 -3
- package/dist/{order-create-edit-4OL4EVBS.js → order-create-edit-BFE4N7RN.js} +3 -3
- package/dist/{order-create-exchange-JK5CSGNY.js → order-create-exchange-CC7CQECO.js} +3 -3
- package/dist/{order-create-return-PFK2RKX6.js → order-create-return-USO7AS7R.js} +3 -3
- package/dist/{order-detail-IBESF6UB.js → order-detail-3ODC5NOT.js} +5 -5
- package/dist/{order-edit-billing-address-4TSKLA3U.js → order-edit-billing-address-SBVWRA25.js} +1 -1
- package/dist/{order-list-RRC7CY2Y.js → order-list-ZACAUPST.js} +5 -5
- package/dist/pages/index.js +63 -63
- package/dist/{payout-list-Q6EO4SH5.js → payout-list-WZ6QMJJY.js} +6 -6
- package/dist/{price-list-create-RMH6R44C.js → price-list-create-2KEYK2ER.js} +4 -4
- package/dist/{price-list-detail-QC6FG7AL.js → price-list-detail-NTQSV6BX.js} +5 -5
- package/dist/{price-list-list-RPMOTFFN.js → price-list-list-5CNSLAUF.js} +4 -4
- package/dist/{price-list-prices-add-K3HMP6NA.js → price-list-prices-add-IRV2A5IW.js} +4 -4
- package/dist/{product-create-64VMFGJZ.js → product-create-2YWZX7DK.js} +6 -6
- package/dist/{product-detail-2G7NC65N.js → product-detail-HHOTRDUN.js} +4 -4
- package/dist/{product-list-PPOJIJLU.js → product-list-6AHYHRAJ.js} +4 -4
- package/dist/{product-media-M4BGDLSR.js → product-media-RHIHFK55.js} +2 -2
- package/dist/{product-organization-TZTWHB7R.js → product-organization-TNS7GBKN.js} +1 -1
- package/dist/{product-sales-channels-OGWCSG2W.js → product-sales-channels-PJNEIY4J.js} +3 -3
- package/dist/{product-tag-detail-GLP2EB7F.js → product-tag-detail-MTCL2XBF.js} +11 -11
- package/dist/{product-tag-list-Y4QZLOAM.js → product-tag-list-LTBWGZWV.js} +11 -11
- package/dist/{product-type-detail-AFBLC5C6.js → product-type-detail-GOG3FDY5.js} +4 -4
- package/dist/{product-type-list-TRW4OULX.js → product-type-list-N3E5HQFW.js} +6 -6
- package/dist/{profile-detail-3T7XIJIX.js → profile-detail-KFLXUGQ5.js} +2 -2
- package/dist/{profile-edit-34K6IDKU.js → profile-edit-4FDALFG5.js} +1 -1
- package/dist/{promotion-detail-M73GSA5C.js → promotion-detail-SWO4PZDC.js} +6 -6
- package/dist/{promotion-list-6TLVURNM.js → promotion-list-S4B6SVD6.js} +7 -7
- package/dist/{refund-reason-list-SJQAPRP3.js → refund-reason-list-EBG7CCYY.js} +10 -10
- package/dist/{region-add-countries-5LHE7YJF.js → region-add-countries-4CTAVHYW.js} +3 -3
- package/dist/{region-create-LKMY5Y7J.js → region-create-S2WUJ4RA.js} +3 -3
- package/dist/{region-detail-IYPMOTYV.js → region-detail-IBLHFR57.js} +4 -4
- package/dist/{region-list-CGZMSSWB.js → region-list-JTR3SEWI.js} +4 -4
- package/dist/{reservation-list-KCM3JHTK.js → reservation-list-VRRSKQ4W.js} +5 -5
- package/dist/{reset-password-OFBOHX3N.js → reset-password-VJY5CXJU.js} +1 -1
- package/dist/{return-reason-list-N7H4BMUQ.js → return-reason-list-OQBRH3PU.js} +11 -11
- package/dist/{review-list-LVUCP6B6.js → review-list-E56WE7VS.js} +5 -5
- package/dist/{sales-channel-add-products-UOX7FWDV.js → sales-channel-add-products-BGV3V327.js} +3 -3
- package/dist/{sales-channel-detail-CLX7FMVY.js → sales-channel-detail-V2VBFNLX.js} +4 -4
- package/dist/{sales-channel-list-DUIEWTAO.js → sales-channel-list-XAWN5OKC.js} +4 -4
- package/dist/{shipping-option-type-list-GT7PFSHM.js → shipping-option-type-list-PRXZQSPR.js} +5 -5
- package/dist/{shipping-profiles-list-4PFZGQRS.js → shipping-profiles-list-LK5ZXRJG.js} +4 -4
- package/dist/{store-details-GWLDG6TN.js → store-details-TEWRGD33.js} +6 -6
- package/dist/{store-edit-YUZFKCVI.js → store-edit-NVILHPML.js} +2 -2
- package/dist/{store-list-MHSNWWRO.js → store-list-IHQUDNWF.js} +5 -5
- package/dist/{tax-region-create-FF3FNBZ3.js → tax-region-create-PIDKQEWT.js} +1 -1
- package/dist/{tax-region-tax-override-create-UOWDMXBS.js → tax-region-tax-override-create-W7WLHFR3.js} +11 -11
- package/dist/{tax-region-tax-override-edit-YL2HTVV6.js → tax-region-tax-override-edit-GPE6K7HE.js} +11 -11
- package/dist/{user-invite-HN65AOQW.js → user-invite-SZIUG2WK.js} +3 -3
- package/dist/{user-list-7LOODN5Z.js → user-list-6YRC6HYX.js} +5 -5
- package/package.json +6 -6
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
_DataTable,
|
|
12
12
|
useDataTable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZOU25JF6.js";
|
|
14
14
|
import {
|
|
15
15
|
useDate
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EIWPJWKF.js";
|
|
17
17
|
import {
|
|
18
18
|
useCustomerGroups,
|
|
19
19
|
useDeleteCustomerGroupLazy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DateCell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F3XPA5ID.js";
|
|
4
4
|
import {
|
|
5
5
|
SingleColumnPage
|
|
6
6
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
_DataTable,
|
|
12
12
|
useDataTable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZOU25JF6.js";
|
|
14
14
|
import {
|
|
15
15
|
useUsers
|
|
16
16
|
} from "./chunk-2NOIR4BR.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useOrderTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZVNGPUNQ.js";
|
|
4
4
|
import {
|
|
5
5
|
useOfferTableCommands
|
|
6
6
|
} from "./chunk-ZH6TIKKW.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-QUHSHIAC.js";
|
|
27
27
|
import {
|
|
28
28
|
DateCell
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-F3XPA5ID.js";
|
|
30
30
|
import {
|
|
31
31
|
DataTableStatusCell
|
|
32
32
|
} from "./chunk-MDABSESI.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
_DataTable,
|
|
44
44
|
useDataTable
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZOU25JF6.js";
|
|
46
46
|
import {
|
|
47
47
|
NoRecords
|
|
48
48
|
} from "./chunk-IKAUNMRC.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCustomerTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6G456XO4.js";
|
|
4
4
|
import {
|
|
5
5
|
useCustomerTableFilters
|
|
6
6
|
} from "./chunk-R22UAHRF.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZOU25JF6.js";
|
|
17
17
|
import {
|
|
18
18
|
useCustomerGroup,
|
|
19
19
|
useCustomers,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCustomerTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6G456XO4.js";
|
|
4
4
|
import {
|
|
5
5
|
useCustomerTableFilters
|
|
6
6
|
} from "./chunk-R22UAHRF.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZOU25JF6.js";
|
|
17
17
|
import {
|
|
18
18
|
useCustomers
|
|
19
19
|
} from "./chunk-XWOFQSGH.js";
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
usePromotionTableColumns,
|
|
7
7
|
usePromotionTableQuery
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5ENOJFDI.js";
|
|
9
9
|
import {
|
|
10
10
|
usePromotionTableFilters
|
|
11
11
|
} from "./chunk-J4SYK3RT.js";
|
|
12
12
|
import {
|
|
13
13
|
DateRangeDisplay
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O7324VFF.js";
|
|
15
15
|
import {
|
|
16
16
|
TwoColumnPage
|
|
17
17
|
} from "./chunk-E74OUNA3.js";
|
|
18
18
|
import {
|
|
19
19
|
_DataTable,
|
|
20
20
|
useDataTable
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZOU25JF6.js";
|
|
22
22
|
import {
|
|
23
23
|
useAddOrRemoveCampaignPromotions,
|
|
24
24
|
useCampaign,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ENOJFDI.js";
|
|
5
5
|
import {
|
|
6
6
|
usePromotionTableFilters
|
|
7
7
|
} from "./chunk-J4SYK3RT.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
_DataTable,
|
|
13
13
|
useDataTable
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZOU25JF6.js";
|
|
15
15
|
import {
|
|
16
16
|
useDeletePromotion,
|
|
17
17
|
usePromotions
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-THHRRYRS.js";
|
|
7
7
|
import {
|
|
8
8
|
useDate
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EIWPJWKF.js";
|
|
10
10
|
|
|
11
11
|
// src/components/data-table/helpers/sales-channels/use-sales-channel-table-columns.tsx
|
|
12
12
|
import { useMemo as useMemo2 } from "react";
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
_DataTable,
|
|
28
28
|
useDataTable
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZOU25JF6.js";
|
|
30
30
|
import {
|
|
31
31
|
useDate
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EIWPJWKF.js";
|
|
33
33
|
import {
|
|
34
34
|
useStockLocations
|
|
35
35
|
} from "./chunk-H5E3CGD7.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
import {
|
|
60
60
|
DateCell,
|
|
61
61
|
DateHeader
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-F3XPA5ID.js";
|
|
63
63
|
import {
|
|
64
64
|
getLocaleAmount,
|
|
65
65
|
getStylizedAmount,
|
|
@@ -78,10 +78,10 @@ import {
|
|
|
78
78
|
import {
|
|
79
79
|
_DataTable,
|
|
80
80
|
useDataTable
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-ZOU25JF6.js";
|
|
82
82
|
import {
|
|
83
83
|
useDate
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-EIWPJWKF.js";
|
|
85
85
|
import {
|
|
86
86
|
useCapturePayment,
|
|
87
87
|
useMarkPaymentCollectionAsPaid
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
// src/pages/orders/order-detail/order-detail.tsx
|
|
119
119
|
import { Children } from "react";
|
|
120
120
|
import { useLoaderData, useParams as useParams2 } from "react-router-dom";
|
|
121
|
-
import { useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
121
|
+
import { useLinkQuery, WidgetZone as WidgetZone2 } from "@mercurjs/dashboard-shared";
|
|
122
122
|
|
|
123
123
|
// src/pages/orders/order-detail/components/active-order-claim-section/active-order-claim-section.tsx
|
|
124
124
|
import { ExclamationCircle } from "@medusajs/icons";
|
|
@@ -463,6 +463,7 @@ import { Button as Button5, Text as Text6, Tooltip, clx, toast as toast5, usePro
|
|
|
463
463
|
import { Collapsible as RadixCollapsible } from "radix-ui";
|
|
464
464
|
import { useMemo as useMemo2, useState as useState3 } from "react";
|
|
465
465
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
466
|
+
import { useExtensionActivity } from "@mercurjs/dashboard-shared";
|
|
466
467
|
|
|
467
468
|
// src/pages/orders/order-detail/components/order-activity-section/activity-items.tsx
|
|
468
469
|
import { Popover, Text as Text4 } from "@medusajs/ui";
|
|
@@ -654,6 +655,7 @@ var OrderTimeline = ({ order }) => {
|
|
|
654
655
|
};
|
|
655
656
|
var useActivityItems = (order) => {
|
|
656
657
|
const { t } = useTranslation7();
|
|
658
|
+
const extensionActivity = useExtensionActivity("order", order);
|
|
657
659
|
const { order_changes: orderChanges = [] } = useOrderChanges(order.id, {
|
|
658
660
|
change_type: [
|
|
659
661
|
"edit",
|
|
@@ -969,6 +971,7 @@ var useActivityItems = (order) => {
|
|
|
969
971
|
timestamp: order.canceled_at
|
|
970
972
|
});
|
|
971
973
|
}
|
|
974
|
+
items.push(...extensionActivity);
|
|
972
975
|
const sortedActivities = items.sort((a, b) => {
|
|
973
976
|
return new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime();
|
|
974
977
|
});
|
|
@@ -987,6 +990,7 @@ var useActivityItems = (order) => {
|
|
|
987
990
|
isLoading,
|
|
988
991
|
itemsMap,
|
|
989
992
|
claims,
|
|
993
|
+
extensionActivity,
|
|
990
994
|
t
|
|
991
995
|
]);
|
|
992
996
|
};
|
|
@@ -1033,8 +1037,7 @@ var OrderActivityItem = ({
|
|
|
1033
1037
|
itemsToSend,
|
|
1034
1038
|
itemsToReturn,
|
|
1035
1039
|
itemsMap
|
|
1036
|
-
}
|
|
1037
|
-
title
|
|
1040
|
+
}
|
|
1038
1041
|
) : /* @__PURE__ */ jsx7(
|
|
1039
1042
|
Text6,
|
|
1040
1043
|
{
|
|
@@ -2441,7 +2444,9 @@ import {
|
|
|
2441
2444
|
import {
|
|
2442
2445
|
DisplayExtensionZone as DisplayExtensionZone5,
|
|
2443
2446
|
isOrderActionable as isOrderActionable2,
|
|
2444
|
-
isOrderAwaitingAction
|
|
2447
|
+
isOrderAwaitingAction,
|
|
2448
|
+
useActionLocks,
|
|
2449
|
+
WidgetZone
|
|
2445
2450
|
} from "@mercurjs/dashboard-shared";
|
|
2446
2451
|
import { format as format3 } from "date-fns";
|
|
2447
2452
|
|
|
@@ -2678,6 +2683,11 @@ var Header3 = ({
|
|
|
2678
2683
|
orderPreview
|
|
2679
2684
|
}) => {
|
|
2680
2685
|
const { t } = useTranslation17();
|
|
2686
|
+
const lock = useActionLocks("order", order);
|
|
2687
|
+
const editLock = lock("edit");
|
|
2688
|
+
const returnLock = lock("return");
|
|
2689
|
+
const exchangeLock = lock("exchange");
|
|
2690
|
+
const claimLock = lock("claim");
|
|
2681
2691
|
const shouldDisableReturn = order.items.every(
|
|
2682
2692
|
(i) => !(getReturnableQuantity(i) > 0)
|
|
2683
2693
|
);
|
|
@@ -2702,8 +2712,8 @@ var Header3 = ({
|
|
|
2702
2712
|
),
|
|
2703
2713
|
to: `/orders/${order.id}/edits`,
|
|
2704
2714
|
icon: /* @__PURE__ */ jsx17(PencilSquare, {}),
|
|
2705
|
-
disabledTooltip: isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0,
|
|
2706
|
-
disabled: !isOrderActionable2(order) || orderPreview?.order_change && orderPreview?.order_change?.change_type !== "edit" || orderPreview?.order_change?.change_type === "edit" && orderPreview?.order_change?.status === "requested"
|
|
2715
|
+
disabledTooltip: editLock ?? (isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0),
|
|
2716
|
+
disabled: !!editLock || !isOrderActionable2(order) || orderPreview?.order_change && orderPreview?.order_change?.change_type !== "edit" || orderPreview?.order_change?.change_type === "edit" && orderPreview?.order_change?.status === "requested"
|
|
2707
2717
|
}
|
|
2708
2718
|
]
|
|
2709
2719
|
},
|
|
@@ -2713,22 +2723,22 @@ var Header3 = ({
|
|
|
2713
2723
|
label: t("orders.returns.create"),
|
|
2714
2724
|
to: `/orders/${order.id}/returns`,
|
|
2715
2725
|
icon: /* @__PURE__ */ jsx17(ArrowUturnLeft2, {}),
|
|
2716
|
-
disabledTooltip: isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0,
|
|
2717
|
-
disabled: !isOrderActionable2(order) || shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
|
|
2726
|
+
disabledTooltip: returnLock ?? (isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0),
|
|
2727
|
+
disabled: !!returnLock || !isOrderActionable2(order) || shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
|
|
2718
2728
|
},
|
|
2719
2729
|
{
|
|
2720
2730
|
label: orderPreview?.order_change?.id && orderPreview?.order_change?.exchange_id ? t("orders.exchanges.manage") : t("orders.exchanges.create"),
|
|
2721
2731
|
to: `/orders/${order.id}/exchanges`,
|
|
2722
2732
|
icon: /* @__PURE__ */ jsx17(ArrowPath3, {}),
|
|
2723
|
-
disabledTooltip: isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0,
|
|
2724
|
-
disabled: !isOrderActionable2(order) || shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
|
|
2733
|
+
disabledTooltip: exchangeLock ?? (isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0),
|
|
2734
|
+
disabled: !!exchangeLock || !isOrderActionable2(order) || shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
|
|
2725
2735
|
},
|
|
2726
2736
|
{
|
|
2727
2737
|
label: orderPreview?.order_change?.id && orderPreview?.order_change?.claim_id ? t("orders.claims.manage") : t("orders.claims.create"),
|
|
2728
2738
|
to: `/orders/${order.id}/claims`,
|
|
2729
2739
|
icon: /* @__PURE__ */ jsx17(ExclamationCircle2, {}),
|
|
2730
|
-
disabledTooltip: isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0,
|
|
2731
|
-
disabled: !isOrderActionable2(order) || shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.claim_id || !!orderPreview?.order_change?.exchange_id
|
|
2740
|
+
disabledTooltip: claimLock ?? (isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0),
|
|
2741
|
+
disabled: !!claimLock || !isOrderActionable2(order) || shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.claim_id || !!orderPreview?.order_change?.exchange_id
|
|
2732
2742
|
}
|
|
2733
2743
|
]
|
|
2734
2744
|
}
|
|
@@ -2741,6 +2751,7 @@ var Header3 = ({
|
|
|
2741
2751
|
);
|
|
2742
2752
|
};
|
|
2743
2753
|
var Item = ({
|
|
2754
|
+
order,
|
|
2744
2755
|
item,
|
|
2745
2756
|
currencyCode,
|
|
2746
2757
|
reservation,
|
|
@@ -2827,15 +2838,18 @@ var Item = ({
|
|
|
2827
2838
|
/* @__PURE__ */ jsx17("span", { className: "tabular-nums", children: item.quantity }),
|
|
2828
2839
|
"x"
|
|
2829
2840
|
] }) }),
|
|
2830
|
-
/* @__PURE__ */
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2841
|
+
/* @__PURE__ */ jsxs17("div", { className: "overflow-visible", children: [
|
|
2842
|
+
isInventoryManaged && hasUnfulfilledItems && /* @__PURE__ */ jsx17(
|
|
2843
|
+
StatusBadge4,
|
|
2844
|
+
{
|
|
2845
|
+
color: reservation ? "green" : "orange",
|
|
2846
|
+
className: "text-nowrap",
|
|
2847
|
+
"data-testid": `order-summary-item-${item.id}-reservation-badge`,
|
|
2848
|
+
children: reservation ? t("orders.reservations.allocatedLabel") : t("orders.reservations.notAllocatedLabel")
|
|
2849
|
+
}
|
|
2850
|
+
),
|
|
2851
|
+
/* @__PURE__ */ jsx17(WidgetZone, { id: "orders.detail.item", data: { order, item } })
|
|
2852
|
+
] })
|
|
2839
2853
|
]
|
|
2840
2854
|
}
|
|
2841
2855
|
),
|
|
@@ -2893,6 +2907,7 @@ var ItemBreakdown = ({
|
|
|
2893
2907
|
return /* @__PURE__ */ jsx17(
|
|
2894
2908
|
Item,
|
|
2895
2909
|
{
|
|
2910
|
+
order,
|
|
2896
2911
|
item,
|
|
2897
2912
|
currencyCode: order.currency_code,
|
|
2898
2913
|
reservation,
|
|
@@ -3770,7 +3785,7 @@ var Root = ({ children }) => {
|
|
|
3770
3785
|
hasOutlet: true,
|
|
3771
3786
|
"data-testid": "order-detail-page",
|
|
3772
3787
|
children: [
|
|
3773
|
-
/* @__PURE__ */ jsx19(TwoColumnPage.Main, { "data-testid": "order-detail-main", children: /* @__PURE__ */ jsxs19(
|
|
3788
|
+
/* @__PURE__ */ jsx19(TwoColumnPage.Main, { "data-testid": "order-detail-main", children: /* @__PURE__ */ jsxs19(WidgetZone2, { id: "orders.detail.main", data: order, children: [
|
|
3774
3789
|
/* @__PURE__ */ jsx19(OrderActiveEditSection, { order }),
|
|
3775
3790
|
/* @__PURE__ */ jsx19(ActiveOrderClaimSection, { orderPreview }),
|
|
3776
3791
|
/* @__PURE__ */ jsx19(ActiveOrderExchangeSection, { orderPreview }),
|
|
@@ -3780,7 +3795,7 @@ var Root = ({ children }) => {
|
|
|
3780
3795
|
/* @__PURE__ */ jsx19(OrderPaymentSection, { order }),
|
|
3781
3796
|
/* @__PURE__ */ jsx19(OrderFulfillmentSection, { order })
|
|
3782
3797
|
] }) }),
|
|
3783
|
-
/* @__PURE__ */ jsx19(TwoColumnPage.Sidebar, { "data-testid": "order-detail-sidebar", children: /* @__PURE__ */ jsxs19(
|
|
3798
|
+
/* @__PURE__ */ jsx19(TwoColumnPage.Sidebar, { "data-testid": "order-detail-sidebar", children: /* @__PURE__ */ jsxs19(WidgetZone2, { id: "orders.detail.side", data: order, children: [
|
|
3784
3799
|
/* @__PURE__ */ jsx19(OrderCustomerSection, { order }),
|
|
3785
3800
|
/* @__PURE__ */ jsx19(OrderActivitySection, { order }),
|
|
3786
3801
|
/* @__PURE__ */ jsx19(OrderRemainingOrdersGroupSection, {})
|
|
@@ -122960,7 +122960,7 @@ var translations = {
|
|
|
122960
122960
|
pl: {
|
|
122961
122961
|
translation: pl_default
|
|
122962
122962
|
},
|
|
122963
|
-
|
|
122963
|
+
"pt-BR": {
|
|
122964
122964
|
translation: ptBR_default
|
|
122965
122965
|
},
|
|
122966
122966
|
th: {
|
|
@@ -122984,7 +122984,7 @@ var translations = {
|
|
|
122984
122984
|
ar: {
|
|
122985
122985
|
translation: ar_default
|
|
122986
122986
|
},
|
|
122987
|
-
|
|
122987
|
+
"zh-CN": {
|
|
122988
122988
|
translation: zhCN_default
|
|
122989
122989
|
},
|
|
122990
122990
|
fa: {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-26OOAKQ6.js";
|
|
7
7
|
import {
|
|
8
8
|
DateCell
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F3XPA5ID.js";
|
|
10
10
|
import {
|
|
11
11
|
TextCell
|
|
12
12
|
} from "./chunk-JHIMVLB2.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
_DataTable,
|
|
21
21
|
useDataTable
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZOU25JF6.js";
|
|
23
23
|
import {
|
|
24
24
|
useShippingOptionTypes
|
|
25
25
|
} from "./chunk-MXM5ZD4Y.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-EPIFCCE7.js";
|
|
7
7
|
import {
|
|
8
8
|
DateCell
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F3XPA5ID.js";
|
|
10
10
|
import {
|
|
11
11
|
StatusCell
|
|
12
12
|
} from "./chunk-DB6ANJBO.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
_DataTable,
|
|
21
21
|
useDataTable
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZOU25JF6.js";
|
|
23
23
|
import {
|
|
24
24
|
useSellers
|
|
25
25
|
} from "./chunk-HRMANL53.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
DateCell,
|
|
15
15
|
DateHeader
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-F3XPA5ID.js";
|
|
17
17
|
import {
|
|
18
18
|
getStylizedAmount
|
|
19
19
|
} from "./chunk-PXYDR7WQ.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
_DataTable,
|
|
29
29
|
useDataTable
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZOU25JF6.js";
|
|
31
31
|
import {
|
|
32
32
|
useOrderGroups
|
|
33
33
|
} from "./chunk-OQ2J45XW.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
decorateVariantsWithDefaultValues,
|
|
11
11
|
generateVariantsFromAttributes,
|
|
12
12
|
normalizeProductFormValues
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GAOSCJQT.js";
|
|
14
14
|
import {
|
|
15
15
|
HandleInput
|
|
16
16
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
import {
|
|
60
60
|
_DataTable,
|
|
61
61
|
useDataTable
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-ZOU25JF6.js";
|
|
63
63
|
import {
|
|
64
64
|
useRegions
|
|
65
65
|
} from "./chunk-2SCR7R3C.js";
|