@mercurjs/admin 2.3.6-canary.0 → 2.3.6-canary.10
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-PBGDZSCD.js → add-campaign-promotions-EIQFBRHD.js} +13 -8
- package/dist/{adjust-inventory-BBAU3NMM.js → adjust-inventory-H46YCNLT.js} +8 -3
- package/dist/{api-key-management-detail-ZGGQBQAM.js → api-key-management-detail-Z4KSJHUC.js} +6 -8
- package/dist/{api-key-management-list-T2WHT6MT.js → api-key-management-list-QZIRPINF.js} +5 -5
- package/dist/{api-key-management-sales-channels-FS3KXQQ6.js → api-key-management-sales-channels-RGZ3QITG.js} +9 -7
- package/dist/{attribute-create-C435ZHB2.js → attribute-create-7I5GNYFM.js} +6 -5
- package/dist/{attribute-detail-SPYDB3I5.js → attribute-detail-GP4PEFJ7.js} +17 -11
- package/dist/{attribute-edit-AAEAOP5B.js → attribute-edit-YNKCBXLU.js} +2 -2
- package/dist/{attribute-edit-possible-value-BJSQCTNO.js → attribute-edit-possible-value-XY7W42FB.js} +2 -2
- package/dist/{attribute-list-SCFBKH4L.js → attribute-list-ZC3CG5LS.js} +7 -7
- package/dist/{campaign-detail-BHRCOKL3.js → campaign-detail-OZWTK26Z.js} +11 -11
- package/dist/{campaign-list-GIMU2QVW.js → campaign-list-XCO4FJDZ.js} +5 -5
- package/dist/{categories-metadata-MJAYSCTW.js → categories-metadata-QYH5U77W.js} +3 -3
- package/dist/{category-detail-GVEDFNM7.js → category-detail-V2QUSUF3.js} +11 -12
- package/dist/{category-list-J7XYQDJU.js → category-list-XDOYTQ4X.js} +6 -6
- package/dist/{category-products-VVF5NXCE.js → category-products-DL4KV6NX.js} +16 -9
- package/dist/{chunk-NIDM2VQO.js → chunk-23CSVCQK.js} +28 -17
- package/dist/{chunk-DUFGVZ6H.js → chunk-25TWJMWE.js} +2 -2
- package/dist/{chunk-VTXMQTXK.js → chunk-26REB3B6.js} +4 -3
- package/dist/{chunk-ZH6TIKKW.js → chunk-2MOTQNEG.js} +1 -0
- package/dist/{chunk-M6X7KIBW.js → chunk-2XBNM6TM.js} +4 -4
- package/dist/{chunk-BQZ5P3IA.js → chunk-36KEGXUQ.js} +112 -75
- package/dist/{chunk-475XGX3J.js → chunk-3BKRMIWA.js} +24 -13
- package/dist/{chunk-NCDKLTDP.js → chunk-3H3BJSIK.js} +34 -12
- package/dist/chunk-3PPYNV2Q.js +268 -0
- package/dist/chunk-3UOYBH5O.js +8 -0
- package/dist/{chunk-GFHUI2QK.js → chunk-473QGQSA.js} +9 -6
- package/dist/{chunk-3XS5ADKJ.js → chunk-4AOVNA5G.js} +31 -20
- package/dist/{chunk-IKAUNMRC.js → chunk-4J74G7N2.js} +15 -3
- package/dist/{chunk-WIDHYDJQ.js → chunk-4JQDYQSX.js} +20 -10
- package/dist/{chunk-RW3NEG36.js → chunk-4W77EUYY.js} +9 -7
- package/dist/{chunk-6UYV7B42.js → chunk-4Y7SBHXE.js} +10 -8
- package/dist/{chunk-VVIJHBKM.js → chunk-5MXEKSK4.js} +1 -1
- package/dist/{chunk-AGO4ROOR.js → chunk-5OIFUF7R.js} +1 -1
- package/dist/{chunk-S4WDCOQD.js → chunk-5QW3GY37.js} +27 -14
- package/dist/{chunk-5TIADRZ7.js → chunk-63JSBXD5.js} +8 -6
- package/dist/{chunk-5ENOJFDI.js → chunk-7CGMFCSU.js} +1 -1
- package/dist/{chunk-7QZFRDTU.js → chunk-7GCMYYFL.js} +7 -4
- package/dist/{chunk-OWWE5Y6T.js → chunk-7URQCA3H.js} +8 -6
- package/dist/{chunk-R2ODJ3D3.js → chunk-A3LCORSK.js} +11 -7
- package/dist/{chunk-IZ77JV46.js → chunk-AUCCE46Q.js} +6 -3
- package/dist/{chunk-PFQO7UQG.js → chunk-AW4RL2SA.js} +60 -33
- package/dist/{chunk-2NOIR4BR.js → chunk-AZV22U4V.js} +20 -2
- package/dist/chunk-BORT2CVW.js +2927 -0
- package/dist/{chunk-VYSTJIAD.js → chunk-CX5XB56X.js} +4 -3
- package/dist/{chunk-VWPX7GLC.js → chunk-DBGBLXBS.js} +1 -1
- package/dist/{chunk-J4SYK3RT.js → chunk-DGRHDZQO.js} +15 -5
- package/dist/{chunk-6AQYZWOC.js → chunk-DL5J4DV2.js} +2 -2
- package/dist/{chunk-7UHN2CW7.js → chunk-DM52HEOD.js} +1 -1
- package/dist/{chunk-EJGGX3ON.js → chunk-DMLXILXG.js} +12 -10
- package/dist/{chunk-VBHKRUON.js → chunk-DUKOOIQD.js} +6 -5
- package/dist/{chunk-BLU2WLIJ.js → chunk-DWPBJEEM.js} +21 -8
- package/dist/{chunk-6P7HBAUM.js → chunk-E4CMR4T2.js} +21 -13
- package/dist/{chunk-QEBISX7V.js → chunk-EBAFVGM3.js} +1 -1
- package/dist/{chunk-J34YB5R4.js → chunk-EHLCUND7.js} +12 -10
- package/dist/{chunk-DBCNRZZE.js → chunk-EIPTLSNT.js} +3 -1
- package/dist/{chunk-KWFSBUD6.js → chunk-ESRIX7ZH.js} +1485 -1411
- package/dist/{chunk-YM5X7CQL.js → chunk-FCAJQFYT.js} +32 -12
- package/dist/{chunk-437KXVGO.js → chunk-G63BL5AB.js} +8 -5
- package/dist/{chunk-BZPOERWW.js → chunk-GIV6KSQX.js} +18 -9
- package/dist/{chunk-G2KWNZV6.js → chunk-GMJLK3IK.js} +2 -2
- package/dist/{chunk-P2KYQNXQ.js → chunk-GQYB3OOC.js} +108 -65
- package/dist/{chunk-4FAYO6UJ.js → chunk-GZUXEIEB.js} +3 -3
- package/dist/{chunk-7ASAC2FM.js → chunk-H4TJZB26.js} +26 -18
- package/dist/{chunk-5SNW2DCY.js → chunk-HXDCSVQP.js} +42 -18
- package/dist/{chunk-NQEXDESI.js → chunk-IBTEL5KA.js} +32 -14
- package/dist/{chunk-Q732RWRD.js → chunk-IQRFJO4N.js} +7 -5
- package/dist/{chunk-LBFX6AVE.js → chunk-JFRYC6GK.js} +17 -10
- package/dist/{chunk-7YBZ2PEZ.js → chunk-JQ7GOJK6.js} +135 -58
- package/dist/{chunk-FOWWGEP7.js → chunk-JS2DAWKO.js} +9 -6
- package/dist/{chunk-IHCKU5FR.js → chunk-K6OBX6ZR.js} +8 -7
- package/dist/{chunk-RSDTHO3I.js → chunk-KB3BTLIB.js} +6 -4
- package/dist/{chunk-VIHLAFDA.js → chunk-KYOZ4CCY.js} +61 -29
- package/dist/{chunk-D6WRJZPH.js → chunk-LCUAIH7P.js} +7 -5
- package/dist/{chunk-F5EZQMOA.js → chunk-M7VHCFCW.js} +10 -8
- package/dist/{chunk-EVCAR6GP.js → chunk-MAEUKXZ4.js} +8 -5
- package/dist/{chunk-HFCJJJKP.js → chunk-MKKOAF2W.js} +26 -12
- package/dist/{chunk-MQFPD5J4.js → chunk-MNKJHZZT.js} +10 -6
- package/dist/{chunk-YUL4ES52.js → chunk-MSJ2QS4Y.js} +6 -4
- package/dist/{chunk-VE5FQQTG.js → chunk-MTP3MDAA.js} +10 -7
- package/dist/{chunk-24JEBPKI.js → chunk-NJ2NRKAJ.js} +57 -14
- package/dist/{chunk-XMIDY45X.js → chunk-NRRSESP2.js} +32 -13
- package/dist/{chunk-B7QLJF77.js → chunk-NUE5ZL5N.js} +11 -5
- package/dist/{chunk-B6KT5U7W.js → chunk-NZIDSNBJ.js} +10 -8
- package/dist/{chunk-PAG3PYAQ.js → chunk-O5W5DCKH.js} +1 -1
- package/dist/{chunk-CFQX7HAW.js → chunk-OCDZIJBM.js} +11 -5
- package/dist/{chunk-KTO2WJ75.js → chunk-OGTWBHJC.js} +2 -2
- package/dist/{chunk-3KRUGI6C.js → chunk-ONTZADVX.js} +1 -1
- package/dist/{chunk-W62DN2I2.js → chunk-OWSAXYGH.js} +1 -1
- package/dist/{chunk-ESNSDIEC.js → chunk-PDPCFFFH.js} +1 -1
- package/dist/{chunk-Q6M2TNLO.js → chunk-PGOJH3NS.js} +61 -329
- package/dist/{chunk-LXW3L56Z.js → chunk-Q2XWHI6K.js} +6 -3
- package/dist/{chunk-ENKVW7JW.js → chunk-QKW6ZECR.js} +29 -14
- package/dist/{chunk-JBT2FR4K.js → chunk-QPDL77XZ.js} +21 -10
- package/dist/{chunk-D7E6HL5O.js → chunk-QPXGSVW4.js} +10 -8
- package/dist/{chunk-M336ZIRO.js → chunk-QQ2UM2KH.js} +9 -7
- package/dist/{chunk-YWZQKODL.js → chunk-R55XYG6Y.js} +28 -15
- package/dist/{chunk-AOLP2YDZ.js → chunk-RAD3UMQ3.js} +7 -5
- package/dist/{chunk-HFM6N7R3.js → chunk-RLF7ADLP.js} +21 -13
- package/dist/{chunk-A2UTT4YX.js → chunk-SLXOKSG4.js} +58 -28
- package/dist/{chunk-ZOU25JF6.js → chunk-SU36MZXC.js} +11 -3
- package/dist/{chunk-F644YFJZ.js → chunk-SZSAJHN7.js} +7 -6
- package/dist/{chunk-GR7S7WTT.js → chunk-TPWSE5HE.js} +16 -11
- package/dist/{chunk-7ECQXPOG.js → chunk-TVCHVG2A.js} +3 -3
- package/dist/{chunk-HJACC6KV.js → chunk-UKQ6FES4.js} +6 -3
- package/dist/{chunk-JL3NKSLJ.js → chunk-USO2SWZV.js} +9 -4
- package/dist/chunk-USY2322P.js +17 -0
- package/dist/{chunk-6ASLWQB3.js → chunk-V3UQOU5W.js} +4 -2
- package/dist/{chunk-XXYVUV5F.js → chunk-VD2CKAYG.js} +21 -10
- package/dist/{chunk-C4XKPQ6T.js → chunk-VLNTJXXO.js} +16 -3
- package/dist/{chunk-D3RDR3D3.js → chunk-W3LCOK3O.js} +153 -124
- package/dist/{chunk-MXM5ZD4Y.js → chunk-W5U6NPSN.js} +10 -25
- package/dist/{chunk-MM5RRCPX.js → chunk-WVHNOE7Y.js} +1 -1
- package/dist/{chunk-RFENVF7Y.js → chunk-XUOGIKEE.js} +3 -3
- package/dist/{chunk-R22UAHRF.js → chunk-YDESULL7.js} +3 -1
- package/dist/{chunk-7I7G5ZJE.js → chunk-YIXWAK3A.js} +12 -7
- package/dist/{chunk-ZFPASY4R.js → chunk-Z2FX5GG4.js} +24 -12
- package/dist/{chunk-JQEAWWRP.js → chunk-ZPJOSHV7.js} +23 -12
- package/dist/{chunk-U2RBSUMY.js → chunk-ZU76OTV3.js} +2 -2
- package/dist/{collection-add-products-HCY2YT3W.js → collection-add-products-FWEVXBYC.js} +16 -9
- package/dist/{collection-detail-QAEPOJZX.js → collection-detail-U4AW4QJ3.js} +11 -12
- package/dist/{collection-list-AWLZYMWL.js → collection-list-PFXGNWL7.js} +15 -15
- package/dist/{collection-metadata-XM2EBCWF.js → collection-metadata-IKYBHHEU.js} +3 -3
- package/dist/{commission-rule-create-CDLLQIY4.js → commission-rule-create-QDNXXBTV.js} +64 -30
- package/dist/{commission-rule-detail-LFEZ5U6V.js → commission-rule-detail-QYJIK375.js} +3 -5
- package/dist/{commission-rule-edit-5CFKPI7U.js → commission-rule-edit-HICDPDLK.js} +58 -24
- package/dist/{commissions-list-MUKIEJWZ.js → commissions-list-AQUW636T.js} +6 -6
- package/dist/{customer-detail-XO7RBVUC.js → customer-detail-TBGKTNQQ.js} +9 -9
- package/dist/{customer-group-add-customers-XYWJSXKS.js → customer-group-add-customers-RWJOA2NJ.js} +3 -3
- package/dist/{customer-group-detail-4G53UKOS.js → customer-group-detail-47IPD337.js} +7 -8
- package/dist/{customer-group-list-5VA7HGD5.js → customer-group-list-Q2AYIVO4.js} +7 -8
- package/dist/{customer-group-metadata-FUJFFWCO.js → customer-group-metadata-T3WFBL7U.js} +3 -3
- package/dist/{customer-list-NEPELR3R.js → customer-list-JOPTF4QB.js} +5 -6
- package/dist/{customer-metadata-GWZC456X.js → customer-metadata-YSMWL4L3.js} +3 -3
- package/dist/{customers-add-customer-group-MYC76YGW.js → customers-add-customer-group-AVRYBS6Q.js} +14 -7
- package/dist/{edit-inventory-item-ZSV4WF6G.js → edit-inventory-item-7M7Q6HL4.js} +2 -2
- package/dist/{edit-inventory-item-attributes-NWSAQMKX.js → edit-inventory-item-attributes-E7J2WFPF.js} +2 -2
- package/dist/{edit-reservation-W3THLKKK.js → edit-reservation-S3QTQRPY.js} +11 -3
- package/dist/{edit-rules-RJC3AYJN.js → edit-rules-NRF7U4AT.js} +2 -2
- package/dist/extension-targets.d.ts +27 -0
- package/dist/home-E7IVATD3.js +64 -0
- package/dist/index.css +271 -9
- package/dist/index.d.ts +10 -30
- package/dist/index.js +635 -3925
- package/dist/{inventory-detail-7HB5QEL4.js → inventory-detail-U6TRGZRY.js} +8 -8
- package/dist/{inventory-list-FN7FCI4W.js → inventory-list-JWA7U2LB.js} +4 -5
- package/dist/{inventory-metadata-FGHOW3YG.js → inventory-metadata-KO622YEI.js} +3 -3
- package/dist/{inventory-stock-PZ2ENOGF.js → inventory-stock-WWXYVFK2.js} +21 -11
- package/dist/{location-detail-B2BWLVAD.js → location-detail-27FBZML7.js} +5 -7
- package/dist/{location-fulfillment-providers-XIYMIEFN.js → location-fulfillment-providers-WT72L5JS.js} +21 -13
- package/dist/{location-list-VIAP63HV.js → location-list-RMHT36AO.js} +5 -7
- package/dist/{location-sales-channels-TNP3C7UW.js → location-sales-channels-JB5OIMXE.js} +13 -6
- package/dist/{location-service-zone-create-KPM4RSCF.js → location-service-zone-create-JKAKZCZ2.js} +3 -3
- package/dist/{location-service-zone-manage-areas-NW5JUTCH.js → location-service-zone-manage-areas-K2BMFI5Y.js} +3 -3
- package/dist/{location-service-zone-shipping-option-create-6O2JXV6I.js → location-service-zone-shipping-option-create-WJOLO6A3.js} +4 -4
- package/dist/{location-service-zone-shipping-option-edit-UUIR7B5S.js → location-service-zone-shipping-option-edit-I7BJGH76.js} +23 -10
- package/dist/{location-service-zone-shipping-option-pricing-Z5HCXRHG.js → location-service-zone-shipping-option-pricing-47Y3CP4U.js} +36 -12
- package/dist/{login-TZHRVYA5.js → login-ISNIWXU2.js} +3 -3
- package/dist/{manage-locations-ZFIRHMNH.js → manage-locations-5FKFNJQN.js} +158 -36
- package/dist/{marketplace-add-currencies-Z6FUIAU5.js → marketplace-add-currencies-34XKWMI7.js} +33 -9
- package/dist/{marketplace-detail-4IP5HIEW.js → marketplace-detail-A76FTENH.js} +7 -7
- package/dist/{marketplace-edit-G7YNGABC.js → marketplace-edit-KXKUECZQ.js} +61 -30
- package/dist/{marketplace-metadata-EGDXYKCE.js → marketplace-metadata-364KJG43.js} +3 -3
- package/dist/{offer-detail-page-WWEUCEFC.js → offer-detail-page-BDDDZSPL.js} +36 -13
- package/dist/{offer-variant-detail-page-FVJE5WLV.js → offer-variant-detail-page-HQU4HMZH.js} +4 -5
- package/dist/{offers-VG334CFD.js → offers-2JDCFVN4.js} +10 -11
- package/dist/{order-create-claim-4CIL76V5.js → order-create-claim-4ERPSGPD.js} +105 -61
- package/dist/{order-create-edit-BFE4N7RN.js → order-create-edit-BGLNMKKI.js} +17 -10
- package/dist/{order-create-exchange-CC7CQECO.js → order-create-exchange-TOPPZZGS.js} +107 -63
- package/dist/{order-create-refund-FJLL4CUD.js → order-create-refund-M3K5MZDM.js} +39 -24
- package/dist/{order-create-return-USO7AS7R.js → order-create-return-64GZ2LCL.js} +109 -70
- package/dist/{order-detail-3ODC5NOT.js → order-detail-DIUKR6ZJ.js} +9 -9
- package/dist/{order-edit-billing-address-SBVWRA25.js → order-edit-billing-address-ZAR5DETE.js} +3 -3
- package/dist/{order-edit-email-BREEW246.js → order-edit-email-V45SEUCO.js} +2 -2
- package/dist/{order-edit-shipping-address-XUG74AFY.js → order-edit-shipping-address-45Z6TNHL.js} +2 -2
- package/dist/{order-list-I6JZT6JK.js → order-list-KZHROLY3.js} +7 -7
- package/dist/{order-metadata-VIG5MGYV.js → order-metadata-7245QRUQ.js} +3 -3
- package/dist/{order-request-transfer-RYVK4WYW.js → order-request-transfer-JYPDXCY2.js} +28 -14
- package/dist/pages/index.d.ts +2 -2
- package/dist/pages/index.js +99 -98
- package/dist/{payout-list-WZ6QMJJY.js → payout-list-KILGQ4XP.js} +3 -3
- package/dist/{price-list-create-JFXLTNOJ.js → price-list-create-H3KJPUF4.js} +12 -12
- package/dist/{price-list-customer-availability-WU2OGO37.js → price-list-customer-availability-CQY55U4O.js} +31 -14
- package/dist/{price-list-detail-5YTX66KF.js → price-list-detail-I44VTKE6.js} +10 -11
- package/dist/{price-list-list-5CNSLAUF.js → price-list-list-TD5JIO7L.js} +5 -5
- package/dist/{price-list-prices-add-HVTEQOWQ.js → price-list-prices-add-XEJKCRTM.js} +11 -11
- package/dist/{price-list-prices-edit-OVHIDATP.js → price-list-prices-edit-WELHT4O4.js} +19 -10
- package/dist/{product-add-existing-attributes-2UFTXE2N.js → product-add-existing-attributes-5B6HD2M3.js} +10 -8
- package/dist/{product-create-SHIGHLQN.js → product-create-DTITIXGY.js} +12 -11
- package/dist/{product-create-attribute-QYRCPUFC.js → product-create-attribute-7TV3OHW7.js} +1 -1
- package/dist/{product-create-variant-MZLHG5JF.js → product-create-variant-S3UJRMMJ.js} +3 -3
- package/dist/{product-detail-UGSTCK7J.js → product-detail-2MYEE5AM.js} +9 -10
- package/dist/{product-edit-2CMVTDWT.js → product-edit-TAVV5CWR.js} +8 -3
- package/dist/{product-edit-attribute-W3AS47FM.js → product-edit-attribute-URHTZ2EQ.js} +9 -3
- package/dist/{product-list-XDJB3HX7.js → product-list-QYZXPM4I.js} +11 -12
- package/dist/{product-media-CO3F57JT.js → product-media-MFDAEXNQ.js} +3 -3
- package/dist/{product-metadata-5CRGB7TR.js → product-metadata-SC5BXN66.js} +3 -3
- package/dist/{product-organization-TNS7GBKN.js → product-organization-GCIGER6X.js} +87 -43
- package/dist/{product-sales-channels-PJNEIY4J.js → product-sales-channels-MNAFJKAI.js} +10 -5
- package/dist/{product-shipping-profile-SWB5FK7S.js → product-shipping-profile-G4NCDKSR.js} +25 -11
- package/dist/{product-tag-create-QORH6X2D.js → product-tag-create-PX7Q2AXU.js} +2 -2
- package/dist/{product-tag-detail-CDSYBTAM.js → product-tag-detail-4CGCZVSL.js} +18 -18
- package/dist/{product-tag-edit-JWYVCPCC.js → product-tag-edit-PXSZMCCT.js} +2 -2
- package/dist/{product-tag-list-RKLCU3UE.js → product-tag-list-2S6PHBIB.js} +18 -18
- package/dist/{product-tag-metadata-BCUPIIJ5.js → product-tag-metadata-2SO7ICOZ.js} +3 -3
- package/dist/{product-type-detail-IY7TWXUQ.js → product-type-detail-M4QLNFSG.js} +11 -12
- package/dist/{product-type-list-N3E5HQFW.js → product-type-list-JXU3446J.js} +5 -5
- package/dist/{product-type-metadata-DKBBQB6R.js → product-type-metadata-7D3J3NSO.js} +3 -3
- package/dist/{product-variant-detail-XHMS2UT5.js → product-variant-detail-VQ55W7PD.js} +4 -6
- package/dist/{product-variant-edit-4DPXTYPT.js → product-variant-edit-XEC7BR5G.js} +4 -4
- package/dist/{product-variant-metadata-ETVJBXSW.js → product-variant-metadata-KFLIOCU2.js} +3 -3
- package/dist/{profile-detail-KFLXUGQ5.js → profile-detail-SQZ6JFAN.js} +3 -5
- package/dist/{profile-edit-4FDALFG5.js → profile-edit-IVU3SBQA.js} +3 -3
- package/dist/{promotion-add-campaign-VAF3HTLK.js → promotion-add-campaign-SWTS4TM5.js} +2 -1
- package/dist/{promotion-create-7ZUJ4W2J.js → promotion-create-6TMK6PEP.js} +5 -4
- package/dist/{promotion-detail-SWO4PZDC.js → promotion-detail-YRWEIXY7.js} +7 -9
- package/dist/{promotion-list-S4B6SVD6.js → promotion-list-NFVGSR23.js} +9 -9
- package/dist/{refund-reason-create-P5FUFEGK.js → refund-reason-create-HZOBFOPB.js} +2 -2
- package/dist/{refund-reason-edit-AKOTWXCE.js → refund-reason-edit-KS6NMC22.js} +2 -2
- package/dist/{refund-reason-list-ABRFC3OQ.js → refund-reason-list-RL7WOHKC.js} +11 -12
- package/dist/{region-add-countries-4CTAVHYW.js → region-add-countries-47QLUMX7.js} +2 -2
- package/dist/{region-create-S2WUJ4RA.js → region-create-7DI3QEPU.js} +25 -11
- package/dist/{region-detail-IBLHFR57.js → region-detail-S5OT2PGL.js} +4 -5
- package/dist/{region-edit-NUMG2V5L.js → region-edit-IXCS3MRH.js} +32 -14
- package/dist/{region-list-JTR3SEWI.js → region-list-2MWAGD2D.js} +4 -5
- package/dist/{region-metadata-Q6HEMCHD.js → region-metadata-ADPG7OLJ.js} +3 -3
- package/dist/{reservation-create-H3T3AHTK.js → reservation-create-YEICXID2.js} +67 -44
- package/dist/{reservation-detail-5GYGVM3M.js → reservation-detail-EBIDXEVF.js} +4 -6
- package/dist/{reservation-list-VRRSKQ4W.js → reservation-list-5QNXC2WU.js} +4 -5
- package/dist/{reservation-metadata-P4G3JEDW.js → reservation-metadata-TWJE777O.js} +3 -3
- package/dist/{reset-password-VJY5CXJU.js → reset-password-FIZYJ2R4.js} +1 -1
- package/dist/{return-reason-list-6MQKG72S.js → return-reason-list-VDX6CFJL.js} +10 -10
- package/dist/{review-detail-K555FECH.js → review-detail-NPB3OKCE.js} +2 -4
- package/dist/{review-list-E56WE7VS.js → review-list-NXBVRP5T.js} +4 -5
- package/dist/{sales-channel-add-products-MPJ7UCEJ.js → sales-channel-add-products-MBSSIGYE.js} +19 -10
- package/dist/{sales-channel-detail-F37LBP6R.js → sales-channel-detail-R2BCF7TA.js} +11 -12
- package/dist/{sales-channel-list-XAWN5OKC.js → sales-channel-list-246V7NV3.js} +5 -7
- package/dist/{sales-channel-metadata-NBWFH4QX.js → sales-channel-metadata-PMLMQIKU.js} +3 -3
- package/dist/settings-UG4P6CCP.js +63 -0
- package/dist/{shipping-option-type-create-M23CI42D.js → shipping-option-type-create-NOFP2DOM.js} +2 -2
- package/dist/{shipping-option-type-detail-QIJZQ5WW.js → shipping-option-type-detail-47AZVCFP.js} +5 -7
- package/dist/{shipping-option-type-edit-WXTEQM32.js → shipping-option-type-edit-42JILKHX.js} +2 -2
- package/dist/{shipping-option-type-list-PRXZQSPR.js → shipping-option-type-list-TTAA63ZN.js} +8 -8
- package/dist/{shipping-profile-detail-KPRFJE4V.js → shipping-profile-detail-RGB67K3C.js} +2 -4
- package/dist/{shipping-profile-metadata-S7Z3IC6I.js → shipping-profile-metadata-GXMY5E57.js} +3 -3
- package/dist/{shipping-profiles-list-LK5ZXRJG.js → shipping-profiles-list-DD3G2THE.js} +4 -5
- package/dist/{store-bulk-edit-NBWZMDP7.js → store-bulk-edit-RRNJZEOU.js} +2 -2
- package/dist/{store-create-J4SL6SY3.js → store-create-UQ333C5F.js} +37 -15
- package/dist/{store-details-ITYKAZSI.js → store-details-D7RUCH5Y.js} +13 -14
- package/dist/{store-edit-NZMI7PNS.js → store-edit-RCNV5XI4.js} +3 -3
- package/dist/{store-list-RXPN3VVO.js → store-list-BMPOSAAE.js} +13 -14
- package/dist/{store-member-invite-IEUG54XA.js → store-member-invite-ALW6E3XA.js} +15 -6
- package/dist/{tax-region-create-PIDKQEWT.js → tax-region-create-3B6FWGWS.js} +3 -3
- package/dist/{tax-region-detail-7RNNZ4UE.js → tax-region-detail-PU4Q42KO.js} +8 -9
- package/dist/{tax-region-edit-I27QZZPB.js → tax-region-edit-P4L2CUFV.js} +2 -2
- package/dist/{tax-region-list-BXLYIYQT.js → tax-region-list-PUNXDH34.js} +5 -6
- package/dist/{tax-region-metadata-6YIZSRLO.js → tax-region-metadata-EDZ7YGYR.js} +3 -3
- package/dist/{tax-region-province-detail-AHS5SRP5.js → tax-region-province-detail-3ZQOCKZ2.js} +7 -8
- package/dist/{tax-region-tax-override-create-Z6S43XQ6.js → tax-region-tax-override-create-J5ZUAELL.js} +15 -15
- package/dist/{tax-region-tax-override-edit-4EOURL2M.js → tax-region-tax-override-edit-HDVKIL5P.js} +46 -26
- package/dist/{user-detail-5LOE6QGK.js → user-detail-4H37KBIP.js} +3 -5
- package/dist/{user-edit-O2M5II52.js → user-edit-42A2VX5E.js} +1 -1
- package/dist/{user-invite-SZIUG2WK.js → user-invite-5EJ3CIQZ.js} +35 -134
- package/dist/{user-list-6YRC6HYX.js → user-list-EZ56HFI3.js} +5 -6
- package/dist/{user-metadata-2PEU2IJE.js → user-metadata-3GENWLUS.js} +3 -3
- package/package.json +14 -14
- package/dist/chunk-4F6SHS7A.js +0 -83
- package/dist/chunk-BDGZ4EQO.js +0 -86
- package/dist/chunk-WMA3WTCM.js +0 -117
- package/dist/home-I3OILW5Z.js +0 -16
- package/dist/settings-AVE3VCCM.js +0 -19
- package/dist/{customer-edit-5EH2AUGN.js → customer-edit-LDKAXHZ6.js} +3 -3
- package/dist/{invite-6WUERQLW.js → invite-IZ2YTVPF.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
By
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V3UQOU5W.js";
|
|
4
4
|
import {
|
|
5
5
|
getFormattedAddress,
|
|
6
6
|
isSameAddress
|
|
@@ -78,14 +78,17 @@ import {
|
|
|
78
78
|
import {
|
|
79
79
|
_DataTable,
|
|
80
80
|
useDataTable
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-SU36MZXC.js";
|
|
82
82
|
import {
|
|
83
83
|
useDate
|
|
84
84
|
} from "./chunk-EIWPJWKF.js";
|
|
85
|
+
import {
|
|
86
|
+
ActionMenu
|
|
87
|
+
} from "./chunk-3UOYBH5O.js";
|
|
85
88
|
import {
|
|
86
89
|
useCapturePayment,
|
|
87
90
|
useMarkPaymentCollectionAsPaid
|
|
88
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-W5U6NPSN.js";
|
|
89
92
|
import {
|
|
90
93
|
useStockLocation
|
|
91
94
|
} from "./chunk-H5E3CGD7.js";
|
|
@@ -107,9 +110,6 @@ import {
|
|
|
107
110
|
import {
|
|
108
111
|
useCustomer
|
|
109
112
|
} from "./chunk-XWOFQSGH.js";
|
|
110
|
-
import {
|
|
111
|
-
ActionMenu
|
|
112
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
113
113
|
import {
|
|
114
114
|
Skeleton,
|
|
115
115
|
TwoColumnPageSkeleton
|
|
@@ -121,6 +121,7 @@ import { useLoaderData, useParams as useParams2 } from "react-router-dom";
|
|
|
121
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
|
+
import { PermissionAction } from "@mercurjs/dashboard-shared";
|
|
124
125
|
import { ExclamationCircle } from "@medusajs/icons";
|
|
125
126
|
import { Button, Container, Heading, Text, toast } from "@medusajs/ui";
|
|
126
127
|
import { useTranslation } from "react-i18next";
|
|
@@ -169,8 +170,8 @@ var ActiveOrderClaimSection = ({
|
|
|
169
170
|
/* @__PURE__ */ jsx("div", { className: "gap-2 px-6 pb-4", "data-testid": "active-order-claim-description", children: /* @__PURE__ */ jsx(Text, { children: t("orders.claims.panel.description") }) })
|
|
170
171
|
] }),
|
|
171
172
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4", "data-testid": "active-order-claim-actions", children: [
|
|
172
|
-
/* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", onClick: onCancelClaim, "data-testid": "active-order-claim-cancel-button", children: t("orders.claims.cancel.title") }),
|
|
173
|
-
/* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", onClick: onContinueClaim, "data-testid": "active-order-claim-continue-button", children: t("actions.continue") })
|
|
173
|
+
/* @__PURE__ */ jsx(PermissionAction, { permission: "orders.returns:manage", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", onClick: onCancelClaim, "data-testid": "active-order-claim-cancel-button", children: t("orders.claims.cancel.title") }) }),
|
|
174
|
+
/* @__PURE__ */ jsx(PermissionAction, { permission: "orders.returns:edit", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", onClick: onContinueClaim, "data-testid": "active-order-claim-continue-button", children: t("actions.continue") }) })
|
|
174
175
|
] })
|
|
175
176
|
] }) })
|
|
176
177
|
}
|
|
@@ -178,6 +179,7 @@ var ActiveOrderClaimSection = ({
|
|
|
178
179
|
};
|
|
179
180
|
|
|
180
181
|
// src/pages/orders/order-detail/components/active-order-exchange-section/active-order-exchange-section.tsx
|
|
182
|
+
import { PermissionAction as PermissionAction2 } from "@mercurjs/dashboard-shared";
|
|
181
183
|
import { ArrowPath } from "@medusajs/icons";
|
|
182
184
|
import { Button as Button2, Container as Container2, Heading as Heading2, Text as Text2, toast as toast2 } from "@medusajs/ui";
|
|
183
185
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
@@ -226,8 +228,8 @@ var ActiveOrderExchangeSection = ({
|
|
|
226
228
|
/* @__PURE__ */ jsx2("div", { className: "gap-2 px-6 pb-4", "data-testid": "active-order-exchange-description", children: /* @__PURE__ */ jsx2(Text2, { children: t("orders.exchanges.panel.description") }) })
|
|
227
229
|
] }),
|
|
228
230
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4", "data-testid": "active-order-exchange-actions", children: [
|
|
229
|
-
/* @__PURE__ */ jsx2(Button2, { size: "small", variant: "secondary", onClick: onCancelExchange, "data-testid": "active-order-exchange-cancel-button", children: t("orders.exchanges.cancel.title") }),
|
|
230
|
-
/* @__PURE__ */ jsx2(
|
|
231
|
+
/* @__PURE__ */ jsx2(PermissionAction2, { permission: "orders.returns:manage", children: /* @__PURE__ */ jsx2(Button2, { size: "small", variant: "secondary", onClick: onCancelExchange, "data-testid": "active-order-exchange-cancel-button", children: t("orders.exchanges.cancel.title") }) }),
|
|
232
|
+
/* @__PURE__ */ jsx2(PermissionAction2, { permission: "orders.returns:edit", children: /* @__PURE__ */ jsx2(
|
|
231
233
|
Button2,
|
|
232
234
|
{
|
|
233
235
|
size: "small",
|
|
@@ -236,7 +238,7 @@ var ActiveOrderExchangeSection = ({
|
|
|
236
238
|
"data-testid": "active-order-exchange-continue-button",
|
|
237
239
|
children: t("actions.continue")
|
|
238
240
|
}
|
|
239
|
-
)
|
|
241
|
+
) })
|
|
240
242
|
] })
|
|
241
243
|
] }) })
|
|
242
244
|
}
|
|
@@ -244,6 +246,7 @@ var ActiveOrderExchangeSection = ({
|
|
|
244
246
|
};
|
|
245
247
|
|
|
246
248
|
// src/pages/orders/order-detail/components/active-order-return-section/active-order-return-section.tsx
|
|
249
|
+
import { PermissionAction as PermissionAction3 } from "@mercurjs/dashboard-shared";
|
|
247
250
|
import { ArrowUturnLeft } from "@medusajs/icons";
|
|
248
251
|
import { Button as Button3, Container as Container3, Heading as Heading3, Text as Text3, toast as toast3 } from "@medusajs/ui";
|
|
249
252
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
@@ -294,8 +297,8 @@ var ActiveOrderReturnSection = ({
|
|
|
294
297
|
/* @__PURE__ */ jsx3("div", { className: "gap-2 px-6 pb-4", "data-testid": "active-order-return-description", children: /* @__PURE__ */ jsx3(Text3, { children: t("orders.returns.panel.description") }) })
|
|
295
298
|
] }),
|
|
296
299
|
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4", "data-testid": "active-order-return-actions", children: [
|
|
297
|
-
/* @__PURE__ */ jsx3(Button3, { size: "small", variant: "secondary", onClick: onCancelReturn, "data-testid": "active-order-return-cancel-button", children: t("orders.returns.cancel.title") }),
|
|
298
|
-
/* @__PURE__ */ jsx3(Button3, { size: "small", variant: "secondary", onClick: onContinueReturn, "data-testid": "active-order-return-continue-button", children: t("actions.continue") })
|
|
300
|
+
/* @__PURE__ */ jsx3(PermissionAction3, { permission: "orders.returns:manage", children: /* @__PURE__ */ jsx3(Button3, { size: "small", variant: "secondary", onClick: onCancelReturn, "data-testid": "active-order-return-cancel-button", children: t("orders.returns.cancel.title") }) }),
|
|
301
|
+
/* @__PURE__ */ jsx3(PermissionAction3, { permission: "orders.returns:edit", children: /* @__PURE__ */ jsx3(Button3, { size: "small", variant: "secondary", onClick: onContinueReturn, "data-testid": "active-order-return-continue-button", children: t("actions.continue") }) })
|
|
299
302
|
] })
|
|
300
303
|
] }) })
|
|
301
304
|
}
|
|
@@ -303,6 +306,7 @@ var ActiveOrderReturnSection = ({
|
|
|
303
306
|
};
|
|
304
307
|
|
|
305
308
|
// src/pages/orders/order-detail/components/order-active-edit-section/order-active-edit-section.tsx
|
|
309
|
+
import { PermissionAction as PermissionAction4 } from "@mercurjs/dashboard-shared";
|
|
306
310
|
import { Button as Button4, Container as Container4, Copy, Heading as Heading4, toast as toast4 } from "@medusajs/ui";
|
|
307
311
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
308
312
|
import { ExclamationCircleSolid } from "@medusajs/icons";
|
|
@@ -416,7 +420,7 @@ var OrderActiveEditSection = ({
|
|
|
416
420
|
className: "bg-ui-bg-subtle flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4",
|
|
417
421
|
"data-testid": "order-active-edit-actions",
|
|
418
422
|
children: [
|
|
419
|
-
isPending ? /* @__PURE__ */ jsx4(
|
|
423
|
+
isPending ? /* @__PURE__ */ jsx4(PermissionAction4, { permission: "orders.edits:edit", children: /* @__PURE__ */ jsx4(
|
|
420
424
|
Button4,
|
|
421
425
|
{
|
|
422
426
|
size: "small",
|
|
@@ -425,7 +429,7 @@ var OrderActiveEditSection = ({
|
|
|
425
429
|
"data-testid": "order-active-edit-continue-button",
|
|
426
430
|
children: t("actions.continueEdit")
|
|
427
431
|
}
|
|
428
|
-
) : /* @__PURE__ */ jsx4(
|
|
432
|
+
) }) : /* @__PURE__ */ jsx4(PermissionAction4, { permission: "orders.edits:edit", children: /* @__PURE__ */ jsx4(
|
|
429
433
|
Button4,
|
|
430
434
|
{
|
|
431
435
|
size: "small",
|
|
@@ -434,8 +438,8 @@ var OrderActiveEditSection = ({
|
|
|
434
438
|
"data-testid": "order-active-edit-confirm-button",
|
|
435
439
|
children: t("actions.forceConfirm")
|
|
436
440
|
}
|
|
437
|
-
),
|
|
438
|
-
/* @__PURE__ */ jsx4(
|
|
441
|
+
) }),
|
|
442
|
+
/* @__PURE__ */ jsx4(PermissionAction4, { permission: "orders.edits:manage", children: /* @__PURE__ */ jsx4(
|
|
439
443
|
Button4,
|
|
440
444
|
{
|
|
441
445
|
size: "small",
|
|
@@ -444,7 +448,7 @@ var OrderActiveEditSection = ({
|
|
|
444
448
|
"data-testid": "order-active-edit-cancel-button",
|
|
445
449
|
children: t("actions.cancel")
|
|
446
450
|
}
|
|
447
|
-
)
|
|
451
|
+
) })
|
|
448
452
|
]
|
|
449
453
|
}
|
|
450
454
|
)
|
|
@@ -463,7 +467,7 @@ import { Button as Button5, Text as Text6, Tooltip, clx, toast as toast5, usePro
|
|
|
463
467
|
import { Collapsible as RadixCollapsible } from "radix-ui";
|
|
464
468
|
import { useMemo as useMemo2, useState as useState3 } from "react";
|
|
465
469
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
466
|
-
import { useExtensionActivity } from "@mercurjs/dashboard-shared";
|
|
470
|
+
import { useExtensionActivity, useCan, PermissionAction as PermissionAction5 } from "@mercurjs/dashboard-shared";
|
|
467
471
|
|
|
468
472
|
// src/pages/orders/order-detail/components/order-activity-section/activity-items.tsx
|
|
469
473
|
import { Popover, Text as Text4 } from "@medusajs/ui";
|
|
@@ -690,18 +694,28 @@ var useActivityItems = (order) => {
|
|
|
690
694
|
}
|
|
691
695
|
return _itemsMap;
|
|
692
696
|
}, [order.items, removedLineItems, missingLineItemIds]);
|
|
693
|
-
const
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
const {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
697
|
+
const canViewReturns = useCan("orders.returns");
|
|
698
|
+
const { returns = [] } = useReturns(
|
|
699
|
+
{
|
|
700
|
+
order_id: order.id,
|
|
701
|
+
fields: "+received_at,*items"
|
|
702
|
+
},
|
|
703
|
+
{ enabled: canViewReturns }
|
|
704
|
+
);
|
|
705
|
+
const { claims = [] } = useClaims(
|
|
706
|
+
{
|
|
707
|
+
order_id: order.id,
|
|
708
|
+
fields: "*additional_items"
|
|
709
|
+
},
|
|
710
|
+
{ enabled: canViewReturns }
|
|
711
|
+
);
|
|
712
|
+
const { exchanges = [] } = useExchanges(
|
|
713
|
+
{
|
|
714
|
+
order_id: order.id,
|
|
715
|
+
fields: "*additional_items"
|
|
716
|
+
},
|
|
717
|
+
{ enabled: canViewReturns }
|
|
718
|
+
);
|
|
705
719
|
const payments = getPaymentsFromOrder(order);
|
|
706
720
|
const _notes = [];
|
|
707
721
|
const isLoading = false;
|
|
@@ -1159,7 +1173,7 @@ var ReturnBody = ({
|
|
|
1159
1173
|
}) }),
|
|
1160
1174
|
isCreated && /* @__PURE__ */ jsxs7(Fragment, { children: [
|
|
1161
1175
|
/* @__PURE__ */ jsx7("div", { className: "mt-[2px] flex items-center leading-none", children: "\u22C5" }),
|
|
1162
|
-
/* @__PURE__ */ jsx7(
|
|
1176
|
+
/* @__PURE__ */ jsx7(PermissionAction5, { permission: "orders.returns:edit", children: /* @__PURE__ */ jsx7(
|
|
1163
1177
|
Button5,
|
|
1164
1178
|
{
|
|
1165
1179
|
onClick: onCancel,
|
|
@@ -1168,7 +1182,7 @@ var ReturnBody = ({
|
|
|
1168
1182
|
size: "small",
|
|
1169
1183
|
children: t("actions.cancel")
|
|
1170
1184
|
}
|
|
1171
|
-
)
|
|
1185
|
+
) })
|
|
1172
1186
|
] })
|
|
1173
1187
|
] });
|
|
1174
1188
|
};
|
|
@@ -1209,7 +1223,7 @@ var ClaimBody = ({
|
|
|
1209
1223
|
inboundItems > 0 && /* @__PURE__ */ jsx7(Text6, { size: "small", className: "text-ui-fg-subtle", children: t("orders.activity.events.claim.itemsOutbound", {
|
|
1210
1224
|
count: inboundItems
|
|
1211
1225
|
}) }),
|
|
1212
|
-
!isCanceled && /* @__PURE__ */ jsx7(
|
|
1226
|
+
!isCanceled && /* @__PURE__ */ jsx7(PermissionAction5, { permission: "orders.returns:edit", children: /* @__PURE__ */ jsx7(
|
|
1213
1227
|
Button5,
|
|
1214
1228
|
{
|
|
1215
1229
|
onClick: onCancel,
|
|
@@ -1218,7 +1232,7 @@ var ClaimBody = ({
|
|
|
1218
1232
|
size: "small",
|
|
1219
1233
|
children: t("actions.cancel")
|
|
1220
1234
|
}
|
|
1221
|
-
)
|
|
1235
|
+
) })
|
|
1222
1236
|
] });
|
|
1223
1237
|
};
|
|
1224
1238
|
var ExchangeBody = ({
|
|
@@ -1261,7 +1275,7 @@ var ExchangeBody = ({
|
|
|
1261
1275
|
inboundItems > 0 && /* @__PURE__ */ jsx7(Text6, { size: "small", className: "text-ui-fg-subtle", children: t("orders.activity.events.exchange.itemsOutbound", {
|
|
1262
1276
|
count: inboundItems
|
|
1263
1277
|
}) }),
|
|
1264
|
-
!isCanceled && /* @__PURE__ */ jsx7(
|
|
1278
|
+
!isCanceled && /* @__PURE__ */ jsx7(PermissionAction5, { permission: "orders.returns:edit", children: /* @__PURE__ */ jsx7(
|
|
1265
1279
|
Button5,
|
|
1266
1280
|
{
|
|
1267
1281
|
onClick: onCancel,
|
|
@@ -1270,7 +1284,7 @@ var ExchangeBody = ({
|
|
|
1270
1284
|
size: "small",
|
|
1271
1285
|
children: t("actions.cancel")
|
|
1272
1286
|
}
|
|
1273
|
-
)
|
|
1287
|
+
) })
|
|
1274
1288
|
] });
|
|
1275
1289
|
};
|
|
1276
1290
|
var OrderEditBody = ({ edit }) => {
|
|
@@ -1298,7 +1312,10 @@ var TransferOrderRequestBody = ({
|
|
|
1298
1312
|
const prompt = usePrompt();
|
|
1299
1313
|
const { t } = useTranslation7();
|
|
1300
1314
|
const action = transfer.actions[0];
|
|
1301
|
-
const
|
|
1315
|
+
const canViewCustomers = useCan("customers");
|
|
1316
|
+
const { customer } = useCustomer(action.reference_id, void 0, {
|
|
1317
|
+
enabled: canViewCustomers
|
|
1318
|
+
});
|
|
1302
1319
|
const isCompleted = !!transfer.confirmed_at;
|
|
1303
1320
|
const { mutateAsync: cancelTransfer } = useCancelOrderTransfer(
|
|
1304
1321
|
transfer.order_id
|
|
@@ -1327,9 +1344,9 @@ var TransferOrderRequestBody = ({
|
|
|
1327
1344
|
t("orders.activity.to"),
|
|
1328
1345
|
":",
|
|
1329
1346
|
" ",
|
|
1330
|
-
customer?.first_name ? `${customer?.first_name} ${customer?.last_name}` : customer?.email
|
|
1347
|
+
!canViewCustomers ? action.reference_id : customer?.first_name ? `${customer?.first_name} ${customer?.last_name}` : customer?.email
|
|
1331
1348
|
] }),
|
|
1332
|
-
!isCompleted && /* @__PURE__ */ jsx7(
|
|
1349
|
+
!isCompleted && /* @__PURE__ */ jsx7(PermissionAction5, { permission: "orders:edit", children: /* @__PURE__ */ jsx7(
|
|
1333
1350
|
Button5,
|
|
1334
1351
|
{
|
|
1335
1352
|
onClick: handleDelete,
|
|
@@ -1338,7 +1355,7 @@ var TransferOrderRequestBody = ({
|
|
|
1338
1355
|
size: "small",
|
|
1339
1356
|
children: t("actions.cancel")
|
|
1340
1357
|
}
|
|
1341
|
-
)
|
|
1358
|
+
) })
|
|
1342
1359
|
] });
|
|
1343
1360
|
};
|
|
1344
1361
|
function countItemsChange(actions) {
|
|
@@ -1581,6 +1598,7 @@ var Header = ({ order }) => {
|
|
|
1581
1598
|
{
|
|
1582
1599
|
label: t("transferOwnership.label"),
|
|
1583
1600
|
to: `transfer`,
|
|
1601
|
+
permission: "orders:edit",
|
|
1584
1602
|
icon: /* @__PURE__ */ jsx10(ArrowPath2, {})
|
|
1585
1603
|
}
|
|
1586
1604
|
]
|
|
@@ -1590,11 +1608,13 @@ var Header = ({ order }) => {
|
|
|
1590
1608
|
{
|
|
1591
1609
|
label: t("addresses.shippingAddress.editLabel"),
|
|
1592
1610
|
to: "shipping-address",
|
|
1611
|
+
permission: "orders:edit",
|
|
1593
1612
|
icon: /* @__PURE__ */ jsx10(FlyingBox, {})
|
|
1594
1613
|
},
|
|
1595
1614
|
{
|
|
1596
1615
|
label: t("addresses.billingAddress.editLabel"),
|
|
1597
1616
|
to: "billing-address",
|
|
1617
|
+
permission: "orders:edit",
|
|
1598
1618
|
icon: /* @__PURE__ */ jsx10(CurrencyDollar, {})
|
|
1599
1619
|
}
|
|
1600
1620
|
]
|
|
@@ -1604,6 +1624,7 @@ var Header = ({ order }) => {
|
|
|
1604
1624
|
{
|
|
1605
1625
|
label: t("email.editLabel"),
|
|
1606
1626
|
to: `email`,
|
|
1627
|
+
permission: "orders:edit",
|
|
1607
1628
|
icon: /* @__PURE__ */ jsx10(Envelope, {}),
|
|
1608
1629
|
disabled: order.status === "canceled"
|
|
1609
1630
|
}
|
|
@@ -1627,6 +1648,7 @@ import {
|
|
|
1627
1648
|
Text as Text8,
|
|
1628
1649
|
Tooltip as Tooltip2
|
|
1629
1650
|
} from "@medusajs/ui";
|
|
1651
|
+
import { isForbidden, useCan as useCan2 } from "@mercurjs/dashboard-shared";
|
|
1630
1652
|
import { format } from "date-fns";
|
|
1631
1653
|
import { useTranslation as useTranslation11 } from "react-i18next";
|
|
1632
1654
|
import { Link as Link2 } from "react-router-dom";
|
|
@@ -1740,7 +1762,8 @@ var Fulfillment = ({
|
|
|
1740
1762
|
index
|
|
1741
1763
|
}) => {
|
|
1742
1764
|
const { t } = useTranslation11();
|
|
1743
|
-
const
|
|
1765
|
+
const canViewLocations = useCan2("stock_locations");
|
|
1766
|
+
const showLocation = !!fulfillment.location_id && canViewLocations;
|
|
1744
1767
|
const isPickUpFulfillment = fulfillment.shipping_option?.service_zone.fulfillment_set.type === "pickup" /* Pickup */;
|
|
1745
1768
|
const { stock_location, isError, error } = useStockLocation(
|
|
1746
1769
|
fulfillment.location_id,
|
|
@@ -1765,7 +1788,7 @@ var Fulfillment = ({
|
|
|
1765
1788
|
statusColor = "green";
|
|
1766
1789
|
statusTimestamp = fulfillment.shipped_at;
|
|
1767
1790
|
}
|
|
1768
|
-
if (isError) {
|
|
1791
|
+
if (isError && !isForbidden(error)) {
|
|
1769
1792
|
throw error;
|
|
1770
1793
|
}
|
|
1771
1794
|
const isValidUrl = (url) => url && url.length > 0 && url !== "#";
|
|
@@ -1795,7 +1818,7 @@ var Fulfillment = ({
|
|
|
1795
1818
|
] }),
|
|
1796
1819
|
showLocation && /* @__PURE__ */ jsxs11("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
1797
1820
|
/* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.shippingFromLabel") }),
|
|
1798
|
-
stock_location ? /* @__PURE__ */ jsx11(
|
|
1821
|
+
isError ? /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", children: fulfillment.location_id }) : stock_location ? /* @__PURE__ */ jsx11(
|
|
1799
1822
|
Link2,
|
|
1800
1823
|
{
|
|
1801
1824
|
to: `/settings/locations/${stock_location.id}`,
|
|
@@ -1926,6 +1949,7 @@ var OrderGeneralSection = ({ order }) => {
|
|
|
1926
1949
|
{
|
|
1927
1950
|
label: t("actions.cancel"),
|
|
1928
1951
|
onClick: handleCancel,
|
|
1952
|
+
permission: "orders:edit",
|
|
1929
1953
|
disabled: cancelDisabled,
|
|
1930
1954
|
disabledTooltip: cancelDisabledTooltip,
|
|
1931
1955
|
icon: /* @__PURE__ */ jsx12(XCircle, {})
|
|
@@ -1991,7 +2015,7 @@ function DisplayId({ id, className }) {
|
|
|
1991
2015
|
var display_id_default = DisplayId;
|
|
1992
2016
|
|
|
1993
2017
|
// src/pages/orders/order-detail/components/order-payment-section/order-payment-section.tsx
|
|
1994
|
-
import { isOrderActionable } from "@mercurjs/dashboard-shared";
|
|
2018
|
+
import { isOrderActionable, PermissionAction as PermissionAction6 } from "@mercurjs/dashboard-shared";
|
|
1995
2019
|
|
|
1996
2020
|
// src/lib/payment.ts
|
|
1997
2021
|
var getTotalCaptured = (paymentCollections) => paymentCollections.reduce((acc, paymentCollection) => {
|
|
@@ -2229,6 +2253,7 @@ var Payment = ({
|
|
|
2229
2253
|
label: t("orders.payment.createRefund"),
|
|
2230
2254
|
icon: /* @__PURE__ */ jsx14(XCircle2, {}),
|
|
2231
2255
|
to: `/orders/${order.id}/refund?paymentId=${payment.id}`,
|
|
2256
|
+
permission: "orders.refunds:edit",
|
|
2232
2257
|
disabled: !isOrderActionable(order) || !payment.captured_at || !!payment.canceled_at || totalRefunded >= payment.amount
|
|
2233
2258
|
}
|
|
2234
2259
|
]
|
|
@@ -2256,7 +2281,7 @@ var Payment = ({
|
|
|
2256
2281
|
}
|
|
2257
2282
|
) })
|
|
2258
2283
|
] }),
|
|
2259
|
-
/* @__PURE__ */ jsxs14(
|
|
2284
|
+
/* @__PURE__ */ jsx14(PermissionAction6, { permission: "payments:edit", children: /* @__PURE__ */ jsxs14(
|
|
2260
2285
|
Button6,
|
|
2261
2286
|
{
|
|
2262
2287
|
className: "shrink-0",
|
|
@@ -2269,7 +2294,7 @@ var Payment = ({
|
|
|
2269
2294
|
/* @__PURE__ */ jsx14("span", { className: "sm:hidden", children: t("orders.payment.capture_short") })
|
|
2270
2295
|
]
|
|
2271
2296
|
}
|
|
2272
|
-
)
|
|
2297
|
+
) })
|
|
2273
2298
|
]
|
|
2274
2299
|
}
|
|
2275
2300
|
),
|
|
@@ -2446,7 +2471,10 @@ import {
|
|
|
2446
2471
|
isOrderActionable as isOrderActionable2,
|
|
2447
2472
|
isOrderAwaitingAction,
|
|
2448
2473
|
useActionLocks,
|
|
2449
|
-
WidgetZone
|
|
2474
|
+
WidgetZone,
|
|
2475
|
+
usePermissions,
|
|
2476
|
+
useCan as useCan3,
|
|
2477
|
+
PermissionAction as PermissionAction7
|
|
2450
2478
|
} from "@mercurjs/dashboard-shared";
|
|
2451
2479
|
import { format as format3 } from "date-fns";
|
|
2452
2480
|
|
|
@@ -2571,12 +2599,13 @@ import { Fragment as Fragment3, jsx as jsx17, jsxs as jsxs17 } from "react/jsx-r
|
|
|
2571
2599
|
var OrderSummarySection = ({ order }) => {
|
|
2572
2600
|
const { t } = useTranslation17();
|
|
2573
2601
|
const prompt = usePrompt4();
|
|
2602
|
+
const { can } = usePermissions();
|
|
2574
2603
|
const { reservations } = useReservationItems(
|
|
2575
2604
|
{
|
|
2576
2605
|
line_item_id: order?.items?.map((i) => i.id),
|
|
2577
2606
|
limit: getReservationsLimitCount(order)
|
|
2578
2607
|
},
|
|
2579
|
-
{ enabled: Array.isArray(order?.items) }
|
|
2608
|
+
{ enabled: Array.isArray(order?.items) && can("reservations") }
|
|
2580
2609
|
);
|
|
2581
2610
|
const { order: orderPreview } = useOrderPreview(order.id);
|
|
2582
2611
|
const unpaidPaymentCollection = order.payment_collections.find(
|
|
@@ -2645,7 +2674,7 @@ var OrderSummarySection = ({ order }) => {
|
|
|
2645
2674
|
className: "bg-ui-bg-subtle flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4",
|
|
2646
2675
|
"data-testid": "order-summary-actions",
|
|
2647
2676
|
children: [
|
|
2648
|
-
showPayment && /* @__PURE__ */ jsx17(
|
|
2677
|
+
showPayment && /* @__PURE__ */ jsx17(PermissionAction7, { permission: "payments:edit", children: /* @__PURE__ */ jsx17(
|
|
2649
2678
|
Button7,
|
|
2650
2679
|
{
|
|
2651
2680
|
size: "small",
|
|
@@ -2654,8 +2683,8 @@ var OrderSummarySection = ({ order }) => {
|
|
|
2654
2683
|
"data-testid": "order-summary-mark-as-paid-button",
|
|
2655
2684
|
children: t("orders.payment.markAsPaid")
|
|
2656
2685
|
}
|
|
2657
|
-
),
|
|
2658
|
-
showRefund && /* @__PURE__ */ jsx17(
|
|
2686
|
+
) }),
|
|
2687
|
+
showRefund && /* @__PURE__ */ jsx17(PermissionAction7, { permission: "orders.refunds:edit", children: /* @__PURE__ */ jsx17(
|
|
2659
2688
|
Button7,
|
|
2660
2689
|
{
|
|
2661
2690
|
size: "small",
|
|
@@ -2669,7 +2698,7 @@ var OrderSummarySection = ({ order }) => {
|
|
|
2669
2698
|
)
|
|
2670
2699
|
}) })
|
|
2671
2700
|
}
|
|
2672
|
-
)
|
|
2701
|
+
) })
|
|
2673
2702
|
]
|
|
2674
2703
|
}
|
|
2675
2704
|
),
|
|
@@ -2711,6 +2740,7 @@ var Header3 = ({
|
|
|
2711
2740
|
isOrderEditPending ? "orders.summary.editOrderContinue" : "orders.summary.editOrder"
|
|
2712
2741
|
),
|
|
2713
2742
|
to: `/orders/${order.id}/edits`,
|
|
2743
|
+
permission: "orders.edits:edit",
|
|
2714
2744
|
icon: /* @__PURE__ */ jsx17(PencilSquare, {}),
|
|
2715
2745
|
disabledTooltip: editLock ?? (isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0),
|
|
2716
2746
|
disabled: !!editLock || !isOrderActionable2(order) || orderPreview?.order_change && orderPreview?.order_change?.change_type !== "edit" || orderPreview?.order_change?.change_type === "edit" && orderPreview?.order_change?.status === "requested"
|
|
@@ -2722,6 +2752,7 @@ var Header3 = ({
|
|
|
2722
2752
|
{
|
|
2723
2753
|
label: t("orders.returns.create"),
|
|
2724
2754
|
to: `/orders/${order.id}/returns`,
|
|
2755
|
+
permission: "orders.returns:edit",
|
|
2725
2756
|
icon: /* @__PURE__ */ jsx17(ArrowUturnLeft2, {}),
|
|
2726
2757
|
disabledTooltip: returnLock ?? (isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0),
|
|
2727
2758
|
disabled: !!returnLock || !isOrderActionable2(order) || shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
|
|
@@ -2729,6 +2760,7 @@ var Header3 = ({
|
|
|
2729
2760
|
{
|
|
2730
2761
|
label: orderPreview?.order_change?.id && orderPreview?.order_change?.exchange_id ? t("orders.exchanges.manage") : t("orders.exchanges.create"),
|
|
2731
2762
|
to: `/orders/${order.id}/exchanges`,
|
|
2763
|
+
permission: "orders.returns:edit",
|
|
2732
2764
|
icon: /* @__PURE__ */ jsx17(ArrowPath3, {}),
|
|
2733
2765
|
disabledTooltip: exchangeLock ?? (isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0),
|
|
2734
2766
|
disabled: !!exchangeLock || !isOrderActionable2(order) || shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
|
|
@@ -2736,6 +2768,7 @@ var Header3 = ({
|
|
|
2736
2768
|
{
|
|
2737
2769
|
label: orderPreview?.order_change?.id && orderPreview?.order_change?.claim_id ? t("orders.claims.manage") : t("orders.claims.create"),
|
|
2738
2770
|
to: `/orders/${order.id}/claims`,
|
|
2771
|
+
permission: "orders.returns:edit",
|
|
2739
2772
|
icon: /* @__PURE__ */ jsx17(ExclamationCircle2, {}),
|
|
2740
2773
|
disabledTooltip: claimLock ?? (isOrderAwaitingAction(order) ? t("orders.requiresAction.actionUnavailable") : void 0),
|
|
2741
2774
|
disabled: !!claimLock || !isOrderActionable2(order) || shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.claim_id || !!orderPreview?.order_change?.exchange_id
|
|
@@ -2886,18 +2919,28 @@ var ItemBreakdown = ({
|
|
|
2886
2919
|
order,
|
|
2887
2920
|
reservations
|
|
2888
2921
|
}) => {
|
|
2889
|
-
const
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
const {
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2922
|
+
const canViewReturns = useCan3("orders.returns");
|
|
2923
|
+
const { claims = [] } = useClaims(
|
|
2924
|
+
{
|
|
2925
|
+
order_id: order.id,
|
|
2926
|
+
fields: "*additional_items"
|
|
2927
|
+
},
|
|
2928
|
+
{ enabled: canViewReturns }
|
|
2929
|
+
);
|
|
2930
|
+
const { exchanges = [] } = useExchanges(
|
|
2931
|
+
{
|
|
2932
|
+
order_id: order.id,
|
|
2933
|
+
fields: "*additional_items"
|
|
2934
|
+
},
|
|
2935
|
+
{ enabled: canViewReturns }
|
|
2936
|
+
);
|
|
2937
|
+
const { returns = [] } = useReturns(
|
|
2938
|
+
{
|
|
2939
|
+
order_id: order.id,
|
|
2940
|
+
fields: "*items,*items.reason"
|
|
2941
|
+
},
|
|
2942
|
+
{ enabled: canViewReturns }
|
|
2943
|
+
);
|
|
2901
2944
|
const reservationsMap = useMemo3(
|
|
2902
2945
|
() => new Map((reservations || []).map((r) => [r.line_item_id, r])),
|
|
2903
2946
|
[reservations]
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SU36MZXC.js";
|
|
17
17
|
import {
|
|
18
18
|
ActionMenu
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3UOYBH5O.js";
|
|
20
20
|
import {
|
|
21
21
|
productAttributesQueryKeys,
|
|
22
22
|
useDeleteProductAttribute,
|
|
@@ -349,7 +349,7 @@ var AttributeListActions = ({
|
|
|
349
349
|
children
|
|
350
350
|
}) => {
|
|
351
351
|
const { t } = useTranslation3();
|
|
352
|
-
return /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx3(PermissionGuard, {
|
|
352
|
+
return /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx3(PermissionGuard, { permission: "product_attributes:edit", children: /* @__PURE__ */ jsx3(
|
|
353
353
|
Button,
|
|
354
354
|
{
|
|
355
355
|
variant: "secondary",
|