@mercurjs/admin 2.3.6-canary.1 → 2.3.6-canary.11
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-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-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-DQ6RPO6N.js +2954 -0
- 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-ZNFBP5CQ.js +268 -0
- 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-4BDQXC4T.js +64 -0
- package/dist/index.css +226 -9
- package/dist/index.d.ts +10 -30
- package/dist/index.js +631 -3918
- 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-XTXDKZEO.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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteCommissionRuleAction,
|
|
3
3
|
useScopeReferenceNames
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-USO2SWZV.js";
|
|
5
5
|
import {
|
|
6
6
|
formatCommissionValue,
|
|
7
7
|
getIsActiveProps,
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
_DataTable,
|
|
29
29
|
useDataTable
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SU36MZXC.js";
|
|
31
|
+
import {
|
|
32
|
+
ActionMenu
|
|
33
|
+
} from "./chunk-3UOYBH5O.js";
|
|
31
34
|
import {
|
|
32
35
|
useCommissionRules,
|
|
33
36
|
useDefaultCommission
|
|
34
37
|
} from "./chunk-CMVQ5SAG.js";
|
|
35
|
-
import {
|
|
36
|
-
ActionMenu
|
|
37
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
38
38
|
import {
|
|
39
39
|
Skeleton
|
|
40
40
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -71,6 +71,7 @@ var GlobalCommissionSection = () => {
|
|
|
71
71
|
{
|
|
72
72
|
actions: [
|
|
73
73
|
{
|
|
74
|
+
permission: "commission_rates:edit",
|
|
74
75
|
label: t("actions.edit"),
|
|
75
76
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
76
77
|
to: "edit-global"
|
|
@@ -283,6 +284,7 @@ var CommissionRuleRowActions = ({ rule }) => {
|
|
|
283
284
|
{
|
|
284
285
|
actions: [
|
|
285
286
|
{
|
|
287
|
+
permission: "commission_rates:edit",
|
|
286
288
|
label: t("actions.edit"),
|
|
287
289
|
to: `/settings/commissions/${rule.id}/edit`,
|
|
288
290
|
icon: /* @__PURE__ */ jsx2(PencilSquare2, {})
|
|
@@ -292,6 +294,7 @@ var CommissionRuleRowActions = ({ rule }) => {
|
|
|
292
294
|
{
|
|
293
295
|
actions: [
|
|
294
296
|
{
|
|
297
|
+
permission: "commission_rates:manage",
|
|
295
298
|
label: t("actions.delete"),
|
|
296
299
|
onClick: handleDelete,
|
|
297
300
|
icon: /* @__PURE__ */ jsx2(Trash, {})
|
|
@@ -352,7 +355,7 @@ var CommissionRulesHeader = () => {
|
|
|
352
355
|
const { t } = useTranslation4();
|
|
353
356
|
return /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
354
357
|
/* @__PURE__ */ jsx3(Heading2, { children: t("commissions.rules.title") }),
|
|
355
|
-
/* @__PURE__ */ jsx3(PermissionGuard, {
|
|
358
|
+
/* @__PURE__ */ jsx3(PermissionGuard, { permission: "commission_rates:edit", children: /* @__PURE__ */ jsx3(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx3(Link, { to: "create", children: t("actions.create") }) }) })
|
|
356
359
|
] });
|
|
357
360
|
};
|
|
358
361
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-XFR5JLNF.js";
|
|
6
6
|
import {
|
|
7
7
|
UserLink
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V3UQOU5W.js";
|
|
9
9
|
import {
|
|
10
10
|
useSalesChannelTableColumns,
|
|
11
11
|
useSalesChannelTableEmptyState,
|
|
@@ -14,13 +14,16 @@ import {
|
|
|
14
14
|
} from "./chunk-NFZEX33S.js";
|
|
15
15
|
import {
|
|
16
16
|
DataTable
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VLNTJXXO.js";
|
|
18
18
|
import {
|
|
19
19
|
SingleColumnPage
|
|
20
20
|
} from "./chunk-H6MYB7GB.js";
|
|
21
21
|
import {
|
|
22
22
|
useDate
|
|
23
23
|
} from "./chunk-EIWPJWKF.js";
|
|
24
|
+
import {
|
|
25
|
+
ActionMenu
|
|
26
|
+
} from "./chunk-3UOYBH5O.js";
|
|
24
27
|
import {
|
|
25
28
|
useApiKey,
|
|
26
29
|
useBatchRemoveSalesChannelsFromApiKey,
|
|
@@ -29,10 +32,7 @@ import {
|
|
|
29
32
|
} from "./chunk-ALJIXUKL.js";
|
|
30
33
|
import {
|
|
31
34
|
useUser
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import {
|
|
34
|
-
ActionMenu
|
|
35
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
35
|
+
} from "./chunk-AZV22U4V.js";
|
|
36
36
|
import {
|
|
37
37
|
useSalesChannels
|
|
38
38
|
} from "./chunk-JC2FFAMW.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
// src/pages/api-key-management/api-key-management-detail/api-key-management-detail.tsx
|
|
45
45
|
import { Children } from "react";
|
|
46
46
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
47
|
-
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
47
|
+
import { PermissionGuard, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
48
48
|
|
|
49
49
|
// src/pages/api-key-management/api-key-management-detail/components/api-key-general-section/api-key-general-section.tsx
|
|
50
50
|
import { PencilSquare, Trash, XCircle } from "@medusajs/icons";
|
|
@@ -58,6 +58,7 @@ import {
|
|
|
58
58
|
toast,
|
|
59
59
|
usePrompt
|
|
60
60
|
} from "@medusajs/ui";
|
|
61
|
+
import { useCan } from "@mercurjs/dashboard-shared";
|
|
61
62
|
import { useTranslation } from "react-i18next";
|
|
62
63
|
import { useNavigate } from "react-router-dom";
|
|
63
64
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -122,6 +123,7 @@ var ApiKeyGeneralSection = ({ apiKey }) => {
|
|
|
122
123
|
const dangerousActions = [
|
|
123
124
|
{
|
|
124
125
|
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
126
|
+
permission: "api_keys:manage",
|
|
125
127
|
label: t("actions.delete"),
|
|
126
128
|
onClick: handleDelete,
|
|
127
129
|
disabled: !apiKey.revoked_at
|
|
@@ -130,6 +132,7 @@ var ApiKeyGeneralSection = ({ apiKey }) => {
|
|
|
130
132
|
if (!apiKey.revoked_at) {
|
|
131
133
|
dangerousActions.unshift({
|
|
132
134
|
icon: /* @__PURE__ */ jsx(XCircle, {}),
|
|
135
|
+
permission: "api_keys:edit",
|
|
133
136
|
label: t("apiKeyManagement.actions.revoke"),
|
|
134
137
|
onClick: handleRevoke,
|
|
135
138
|
disabled: !!apiKey.revoked_at
|
|
@@ -149,6 +152,7 @@ var ApiKeyGeneralSection = ({ apiKey }) => {
|
|
|
149
152
|
{
|
|
150
153
|
actions: [
|
|
151
154
|
{
|
|
155
|
+
permission: "api_keys:edit",
|
|
152
156
|
label: t("actions.edit"),
|
|
153
157
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
154
158
|
to: "edit"
|
|
@@ -193,11 +197,12 @@ var ApiKeyGeneralSection = ({ apiKey }) => {
|
|
|
193
197
|
] });
|
|
194
198
|
};
|
|
195
199
|
var ActionBy = ({ userId, "data-testid": dataTestId }) => {
|
|
200
|
+
const canViewUsers = useCan("users");
|
|
196
201
|
const { user, isLoading, isError, error } = useUser(userId, void 0, {
|
|
197
|
-
enabled: !!userId
|
|
202
|
+
enabled: !!userId && canViewUsers
|
|
198
203
|
});
|
|
199
|
-
if (!userId) {
|
|
200
|
-
return /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", "data-testid": dataTestId, children: "-" });
|
|
204
|
+
if (!userId || !canViewUsers) {
|
|
205
|
+
return /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", "data-testid": dataTestId, children: userId ?? "-" });
|
|
201
206
|
}
|
|
202
207
|
if (isError) {
|
|
203
208
|
throw error;
|
|
@@ -227,6 +232,7 @@ import { keepPreviousData } from "@tanstack/react-query";
|
|
|
227
232
|
import { useCallback, useMemo, useState } from "react";
|
|
228
233
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
229
234
|
import { useNavigate as useNavigate2 } from "react-router-dom";
|
|
235
|
+
import { usePermissions } from "@mercurjs/dashboard-shared";
|
|
230
236
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
231
237
|
var PAGE_SIZE = 10;
|
|
232
238
|
var PREFIX = "sc";
|
|
@@ -267,6 +273,7 @@ var ApiKeySalesChannelSection = ({
|
|
|
267
273
|
},
|
|
268
274
|
rowHref: (row) => `/settings/sales-channels/${row.id}`,
|
|
269
275
|
action: {
|
|
276
|
+
permission: "api_keys:edit",
|
|
270
277
|
label: t("actions.add"),
|
|
271
278
|
to: "sales-channels"
|
|
272
279
|
},
|
|
@@ -279,6 +286,7 @@ var ApiKeySalesChannelSection = ({
|
|
|
279
286
|
var columnHelper = createDataTableColumnHelper();
|
|
280
287
|
var useColumns = (id) => {
|
|
281
288
|
const { t } = useTranslation2();
|
|
289
|
+
const { can } = usePermissions();
|
|
282
290
|
const navigate = useNavigate2();
|
|
283
291
|
const prompt = usePrompt2();
|
|
284
292
|
const base = useSalesChannelTableColumns();
|
|
@@ -317,7 +325,7 @@ var useColumns = (id) => {
|
|
|
317
325
|
...base,
|
|
318
326
|
columnHelper.action({
|
|
319
327
|
actions: (ctx) => [
|
|
320
|
-
[
|
|
328
|
+
!can("sales_channels", "edit") ? [] : [
|
|
321
329
|
{
|
|
322
330
|
label: t("actions.edit"),
|
|
323
331
|
icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
|
|
@@ -326,17 +334,17 @@ var useColumns = (id) => {
|
|
|
326
334
|
}
|
|
327
335
|
}
|
|
328
336
|
],
|
|
329
|
-
[
|
|
337
|
+
!can("api_keys", "edit") ? [] : [
|
|
330
338
|
{
|
|
331
339
|
icon: /* @__PURE__ */ jsx2(Trash2, {}),
|
|
332
340
|
label: t("actions.delete"),
|
|
333
341
|
onClick: () => handleDelete(ctx.row.original)
|
|
334
342
|
}
|
|
335
343
|
]
|
|
336
|
-
]
|
|
344
|
+
].filter((group) => group.length > 0)
|
|
337
345
|
})
|
|
338
346
|
],
|
|
339
|
-
[base, handleDelete, navigate, t]
|
|
347
|
+
[base, handleDelete, navigate, t, can]
|
|
340
348
|
);
|
|
341
349
|
};
|
|
342
350
|
var commandHelper = createDataTableCommandHelper();
|
|
@@ -376,11 +384,14 @@ var useCommands = (id, setRowSelection) => {
|
|
|
376
384
|
);
|
|
377
385
|
return useMemo(
|
|
378
386
|
() => [
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
387
|
+
{
|
|
388
|
+
...commandHelper.command({
|
|
389
|
+
action: handleRemove,
|
|
390
|
+
label: t("actions.remove"),
|
|
391
|
+
shortcut: "r"
|
|
392
|
+
}),
|
|
393
|
+
permission: "api_keys:edit"
|
|
394
|
+
}
|
|
384
395
|
],
|
|
385
396
|
[handleRemove, t]
|
|
386
397
|
);
|
|
@@ -419,7 +430,7 @@ var Root = ({ children }) => {
|
|
|
419
430
|
"data-testid": `${api_key.type}-api-key-detail-page`,
|
|
420
431
|
children: /* @__PURE__ */ jsxs2(WidgetZone, { id: "api-keys.detail.main", data: api_key, children: [
|
|
421
432
|
/* @__PURE__ */ jsx3(ApiKeyGeneralSection, { apiKey: api_key }),
|
|
422
|
-
isPublishable && /* @__PURE__ */ jsx3(ApiKeySalesChannelSection, { apiKey: api_key })
|
|
433
|
+
isPublishable && /* @__PURE__ */ jsx3(PermissionGuard, { permission: "sales_channels:view", children: /* @__PURE__ */ jsx3(ApiKeySalesChannelSection, { apiKey: api_key }) })
|
|
423
434
|
] })
|
|
424
435
|
}
|
|
425
436
|
);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// src/components/common/empty-table-content/empty-table-content.tsx
|
|
2
|
+
import { usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
3
|
+
import { cloneElement } from "react";
|
|
2
4
|
import { ExclamationCircle, MagnifyingGlass, PlusMini } from "@medusajs/icons";
|
|
3
|
-
import { Button, Text, clx } from "@medusajs/ui";
|
|
5
|
+
import { Button, Text, clx, Tooltip } from "@medusajs/ui";
|
|
4
6
|
import { useTranslation } from "react-i18next";
|
|
5
7
|
import { Link } from "react-router-dom";
|
|
6
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -26,8 +28,18 @@ var NoResults = ({
|
|
|
26
28
|
}
|
|
27
29
|
);
|
|
28
30
|
};
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
+
var ActionLink = ({
|
|
32
|
+
action,
|
|
33
|
+
children
|
|
34
|
+
}) => {
|
|
35
|
+
const gate = usePermissionGate(action.permission);
|
|
36
|
+
if (gate.denied) {
|
|
37
|
+
return /* @__PURE__ */ jsx(Tooltip, { content: gate.tooltip, children: /* @__PURE__ */ jsx("span", { className: "inline-flex", children: cloneElement(children, { disabled: true }) }) });
|
|
38
|
+
}
|
|
39
|
+
return /* @__PURE__ */ jsx(Link, { to: action.to, children });
|
|
40
|
+
};
|
|
41
|
+
var DefaultButton = ({ action, dataTestId }) => action && /* @__PURE__ */ jsx(ActionLink, { action, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "small", "data-testid": dataTestId, children: action.label }) });
|
|
42
|
+
var TransparentIconLeftButton = ({ action, dataTestId }) => action && /* @__PURE__ */ jsx(ActionLink, { action, children: /* @__PURE__ */ jsxs(
|
|
31
43
|
Button,
|
|
32
44
|
{
|
|
33
45
|
variant: "transparent",
|
|
@@ -6,17 +6,27 @@ import {
|
|
|
6
6
|
} from "./chunk-JC2FFAMW.js";
|
|
7
7
|
|
|
8
8
|
// src/hooks/table/filters/use-order-table-filters.tsx
|
|
9
|
+
import { usePermissions } from "@mercurjs/dashboard-shared";
|
|
9
10
|
import { useTranslation } from "react-i18next";
|
|
10
11
|
var useOrderTableFilters = () => {
|
|
11
12
|
const { t } = useTranslation();
|
|
12
|
-
const {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
const { can } = usePermissions();
|
|
14
|
+
const canViewRegions = can("regions");
|
|
15
|
+
const canViewSalesChannels = can("sales_channels");
|
|
16
|
+
const { regions } = useRegions(
|
|
17
|
+
{
|
|
18
|
+
limit: 1e3,
|
|
19
|
+
fields: "id,name"
|
|
20
|
+
},
|
|
21
|
+
{ enabled: canViewRegions }
|
|
22
|
+
);
|
|
23
|
+
const { sales_channels } = useSalesChannels(
|
|
24
|
+
{
|
|
25
|
+
limit: 1e3,
|
|
26
|
+
fields: "id,name"
|
|
27
|
+
},
|
|
28
|
+
{ enabled: canViewSalesChannels }
|
|
29
|
+
);
|
|
20
30
|
const statusFilter = {
|
|
21
31
|
key: "status",
|
|
22
32
|
label: t("fields.status"),
|
|
@@ -30,7 +40,7 @@ var useOrderTableFilters = () => {
|
|
|
30
40
|
]
|
|
31
41
|
};
|
|
32
42
|
let filters = [statusFilter];
|
|
33
|
-
if (regions) {
|
|
43
|
+
if (regions && canViewRegions) {
|
|
34
44
|
const regionFilter = {
|
|
35
45
|
key: "region_id",
|
|
36
46
|
label: t("fields.region"),
|
|
@@ -44,7 +54,7 @@ var useOrderTableFilters = () => {
|
|
|
44
54
|
};
|
|
45
55
|
filters = [...filters, regionFilter];
|
|
46
56
|
}
|
|
47
|
-
if (sales_channels) {
|
|
57
|
+
if (sales_channels && canViewSalesChannels) {
|
|
48
58
|
const salesChannelFilter = {
|
|
49
59
|
key: "sales_channel_id",
|
|
50
60
|
label: t("fields.salesChannel"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteShippingOptionTypeAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PDPCFFFH.js";
|
|
4
4
|
import {
|
|
5
5
|
useDateTableFilters
|
|
6
6
|
} from "./chunk-26OOAKQ6.js";
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
_DataTable,
|
|
21
21
|
useDataTable
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
useShippingOptionTypes
|
|
25
|
-
} from "./chunk-MXM5ZD4Y.js";
|
|
22
|
+
} from "./chunk-SU36MZXC.js";
|
|
26
23
|
import {
|
|
27
24
|
ActionMenu
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3UOYBH5O.js";
|
|
26
|
+
import {
|
|
27
|
+
useShippingOptionTypes
|
|
28
|
+
} from "./chunk-W5U6NPSN.js";
|
|
29
29
|
|
|
30
30
|
// src/pages/shipping-option-types/shipping-option-type-list/shipping-option-type-list.tsx
|
|
31
31
|
import { Children as Children3 } from "react";
|
|
@@ -128,6 +128,7 @@ var ShippingOptionTypeRowActions = ({
|
|
|
128
128
|
{
|
|
129
129
|
actions: [
|
|
130
130
|
{
|
|
131
|
+
permission: "shipping_options:edit",
|
|
131
132
|
label: t("actions.edit"),
|
|
132
133
|
icon: /* @__PURE__ */ jsx2(PencilSquare, {}),
|
|
133
134
|
to: `/settings/locations/shipping-option-types/${shippingOptionType.id}/edit`
|
|
@@ -137,6 +138,7 @@ var ShippingOptionTypeRowActions = ({
|
|
|
137
138
|
{
|
|
138
139
|
actions: [
|
|
139
140
|
{
|
|
141
|
+
permission: "shipping_options:manage",
|
|
140
142
|
label: t("actions.delete"),
|
|
141
143
|
icon: /* @__PURE__ */ jsx2(Trash, {}),
|
|
142
144
|
onClick: handleDelete
|
|
@@ -242,7 +244,7 @@ var ShippingOptionTypeListActions = ({
|
|
|
242
244
|
children
|
|
243
245
|
}) => {
|
|
244
246
|
const { t } = useTranslation4();
|
|
245
|
-
return /* @__PURE__ */ jsx4("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx4(PermissionGuard, {
|
|
247
|
+
return /* @__PURE__ */ jsx4("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx4(PermissionGuard, { permission: "shipping_options:edit", children: /* @__PURE__ */ jsx4(
|
|
246
248
|
Button,
|
|
247
249
|
{
|
|
248
250
|
size: "small",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteProductTagAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DBGBLXBS.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTagTableColumns
|
|
6
6
|
} from "./chunk-KPNSESNF.js";
|
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
} from "./chunk-KOURHC2N.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTagTableQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EBAFVGM3.js";
|
|
13
13
|
import {
|
|
14
14
|
SingleColumnPage
|
|
15
15
|
} from "./chunk-H6MYB7GB.js";
|
|
16
16
|
import {
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
useProductTags
|
|
22
|
-
} from "./chunk-MXM5ZD4Y.js";
|
|
19
|
+
} from "./chunk-SU36MZXC.js";
|
|
23
20
|
import {
|
|
24
21
|
ActionMenu
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3UOYBH5O.js";
|
|
23
|
+
import {
|
|
24
|
+
useProductTags
|
|
25
|
+
} from "./chunk-W5U6NPSN.js";
|
|
26
26
|
|
|
27
27
|
// src/pages/product-tags/product-tag-list/product-tag-list.tsx
|
|
28
28
|
import { Children as Children3 } from "react";
|
|
@@ -101,6 +101,7 @@ var ProductTagRowActions = ({
|
|
|
101
101
|
actions: [
|
|
102
102
|
{
|
|
103
103
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
104
|
+
permission: "product_tags:edit",
|
|
104
105
|
label: t("actions.edit"),
|
|
105
106
|
to: `${productTag.id}/edit`
|
|
106
107
|
}
|
|
@@ -110,6 +111,7 @@ var ProductTagRowActions = ({
|
|
|
110
111
|
actions: [
|
|
111
112
|
{
|
|
112
113
|
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
114
|
+
permission: "product_tags:manage",
|
|
113
115
|
label: t("actions.delete"),
|
|
114
116
|
onClick: handleDelete
|
|
115
117
|
}
|
|
@@ -150,7 +152,7 @@ var ProductTagListActions = ({
|
|
|
150
152
|
children
|
|
151
153
|
}) => {
|
|
152
154
|
const { t } = useTranslation2();
|
|
153
|
-
return /* @__PURE__ */ jsx2("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PermissionGuard, {
|
|
155
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PermissionGuard, { permission: "product_tags:edit", children: /* @__PURE__ */ jsx2(
|
|
154
156
|
Button,
|
|
155
157
|
{
|
|
156
158
|
variant: "secondary",
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
TwoColumnPage
|
|
6
6
|
} from "./chunk-E74OUNA3.js";
|
|
7
|
+
import {
|
|
8
|
+
ActionMenu
|
|
9
|
+
} from "./chunk-3UOYBH5O.js";
|
|
7
10
|
import {
|
|
8
11
|
useStockLocation
|
|
9
12
|
} from "./chunk-H5E3CGD7.js";
|
|
10
13
|
import {
|
|
11
14
|
useReservationItem
|
|
12
15
|
} from "./chunk-S7TEUVP7.js";
|
|
13
|
-
import {
|
|
14
|
-
ActionMenu
|
|
15
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
16
16
|
import {
|
|
17
17
|
TwoColumnPageSkeleton
|
|
18
18
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -23,11 +23,15 @@ import {
|
|
|
23
23
|
// src/pages/reservations/reservation-detail/reservation-detail.tsx
|
|
24
24
|
import { Children } from "react";
|
|
25
25
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
26
|
-
import { useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
26
|
+
import { useCan, useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
27
27
|
|
|
28
28
|
// src/pages/reservations/reservation-detail/components/reservation-general-section/reservation-general-section.tsx
|
|
29
29
|
import { Container, Heading, Text } from "@medusajs/ui";
|
|
30
|
-
import {
|
|
30
|
+
import {
|
|
31
|
+
DisplayExtensionZone,
|
|
32
|
+
DisplayField,
|
|
33
|
+
usePermissions
|
|
34
|
+
} from "@mercurjs/dashboard-shared";
|
|
31
35
|
import { PencilSquare } from "@medusajs/icons";
|
|
32
36
|
import { useTranslation } from "react-i18next";
|
|
33
37
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -35,12 +39,19 @@ var ReservationGeneralSection = ({
|
|
|
35
39
|
reservation
|
|
36
40
|
}) => {
|
|
37
41
|
const { t } = useTranslation();
|
|
38
|
-
const {
|
|
39
|
-
const
|
|
40
|
-
|
|
42
|
+
const { can } = usePermissions();
|
|
43
|
+
const canViewItem = can("inventory_items");
|
|
44
|
+
const canViewLocation = can("stock_locations");
|
|
45
|
+
const { inventory_item: inventoryItem, isPending: isLoadingInventoryItem } = useInventoryItem(reservation.inventory_item_id, void 0, {
|
|
46
|
+
enabled: canViewItem
|
|
47
|
+
});
|
|
48
|
+
const { stock_location: location, isPending: isLoadingLocation } = useStockLocation(reservation.location_id, void 0, {
|
|
49
|
+
enabled: canViewLocation
|
|
50
|
+
});
|
|
51
|
+
if (canViewItem && (isLoadingInventoryItem || !inventoryItem) || canViewLocation && (isLoadingLocation || !location)) {
|
|
41
52
|
return /* @__PURE__ */ jsx("div", { children: "Loading..." });
|
|
42
53
|
}
|
|
43
|
-
const locationLevel = inventoryItem
|
|
54
|
+
const locationLevel = inventoryItem?.location_levels?.find(
|
|
44
55
|
(level) => level.location_id === reservation.location_id
|
|
45
56
|
);
|
|
46
57
|
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
|
|
@@ -53,7 +64,7 @@ var ReservationGeneralSection = ({
|
|
|
53
64
|
id: "header",
|
|
54
65
|
data: reservation,
|
|
55
66
|
children: /* @__PURE__ */ jsx(Heading, { children: t("inventory.reservation.header", {
|
|
56
|
-
itemName: inventoryItem
|
|
67
|
+
itemName: inventoryItem?.title ?? inventoryItem?.sku ?? reservation.inventory_item_id
|
|
57
68
|
}) })
|
|
58
69
|
}
|
|
59
70
|
),
|
|
@@ -66,7 +77,8 @@ var ReservationGeneralSection = ({
|
|
|
66
77
|
{
|
|
67
78
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
68
79
|
label: t("actions.edit"),
|
|
69
|
-
to: `edit
|
|
80
|
+
to: `edit`,
|
|
81
|
+
permission: "reservations:edit"
|
|
70
82
|
}
|
|
71
83
|
]
|
|
72
84
|
}
|
|
@@ -85,7 +97,7 @@ var ReservationGeneralSection = ({
|
|
|
85
97
|
SectionRow,
|
|
86
98
|
{
|
|
87
99
|
title: t("inventory.reservation.itemId"),
|
|
88
|
-
value: inventoryItem
|
|
100
|
+
value: inventoryItem?.sku ?? reservation.inventory_item_id
|
|
89
101
|
}
|
|
90
102
|
)
|
|
91
103
|
}
|
|
@@ -117,7 +129,7 @@ var ReservationGeneralSection = ({
|
|
|
117
129
|
SectionRow,
|
|
118
130
|
{
|
|
119
131
|
title: t("inventory.reservation.location"),
|
|
120
|
-
value: location?.name
|
|
132
|
+
value: location?.name ?? reservation.location_id
|
|
121
133
|
}
|
|
122
134
|
)
|
|
123
135
|
}
|
|
@@ -285,10 +297,11 @@ var Root = ({ children }) => {
|
|
|
285
297
|
initialData
|
|
286
298
|
}
|
|
287
299
|
);
|
|
300
|
+
const canViewInventoryItems = useCan("inventory_items");
|
|
288
301
|
const { inventory_item } = useInventoryItem(
|
|
289
302
|
reservation?.inventory_item?.id,
|
|
290
303
|
useLinkQuery("inventory_item"),
|
|
291
|
-
{ enabled: !!reservation?.inventory_item?.id }
|
|
304
|
+
{ enabled: !!reservation?.inventory_item?.id && canViewInventoryItems }
|
|
292
305
|
);
|
|
293
306
|
if (isLoading || !reservation) {
|
|
294
307
|
return /* @__PURE__ */ jsx3(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_dist
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ESRIX7ZH.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTags
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W5U6NPSN.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTypes
|
|
9
9
|
} from "./chunk-AEBQQ2EG.js";
|
|
@@ -19,13 +19,15 @@ import {
|
|
|
19
19
|
|
|
20
20
|
// src/hooks/table/filters/use-product-table-filters.tsx
|
|
21
21
|
var import_types = __toESM(require_dist(), 1);
|
|
22
|
+
import { usePermissions } from "@mercurjs/dashboard-shared";
|
|
22
23
|
import { useTranslation } from "react-i18next";
|
|
23
24
|
var useProductTableFilters = (exclude) => {
|
|
24
25
|
const { t } = useTranslation();
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
26
|
+
const { can } = usePermissions();
|
|
27
|
+
const isCategoryExcluded = exclude?.includes("categories") || !can("product_categories");
|
|
28
|
+
const isCollectionExcluded = exclude?.includes("collections") || !can("product_collections");
|
|
29
|
+
const isProductTypeExcluded = exclude?.includes("product_types") || !can("product_types");
|
|
30
|
+
const isProductTagExcluded = exclude?.includes("product_tags") || !can("product_tags");
|
|
29
31
|
const { product_types } = useProductTypes(
|
|
30
32
|
{ limit: 1e3, offset: 0 },
|
|
31
33
|
{ enabled: !isProductTypeExcluded }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteCommissionRuleAction,
|
|
3
3
|
useScopeReferenceNames
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-USO2SWZV.js";
|
|
5
5
|
import {
|
|
6
6
|
formatCommissionValue,
|
|
7
7
|
getIsActiveProps,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
SingleColumnPage
|
|
17
17
|
} from "./chunk-H6MYB7GB.js";
|
|
18
|
+
import {
|
|
19
|
+
ActionMenu
|
|
20
|
+
} from "./chunk-3UOYBH5O.js";
|
|
18
21
|
import {
|
|
19
22
|
useCommissionRule
|
|
20
23
|
} from "./chunk-CMVQ5SAG.js";
|
|
21
|
-
import {
|
|
22
|
-
ActionMenu
|
|
23
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
24
24
|
|
|
25
25
|
// src/pages/commissions/commission-rule-detail/commission-rule-detail.tsx
|
|
26
26
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
@@ -49,6 +49,7 @@ var ScopeSection = ({ rule }) => {
|
|
|
49
49
|
{
|
|
50
50
|
actions: [
|
|
51
51
|
{
|
|
52
|
+
permission: "commission_rates:edit",
|
|
52
53
|
label: t("actions.edit"),
|
|
53
54
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
54
55
|
to: "edit"
|
|
@@ -58,6 +59,7 @@ var ScopeSection = ({ rule }) => {
|
|
|
58
59
|
{
|
|
59
60
|
actions: [
|
|
60
61
|
{
|
|
62
|
+
permission: "commission_rates:manage",
|
|
61
63
|
label: t("actions.delete"),
|
|
62
64
|
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
63
65
|
onClick: handleDelete
|
|
@@ -122,6 +124,7 @@ var CommissionSection = ({ rule }) => {
|
|
|
122
124
|
{
|
|
123
125
|
actions: [
|
|
124
126
|
{
|
|
127
|
+
permission: "commission_rates:edit",
|
|
125
128
|
label: t("actions.edit"),
|
|
126
129
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
127
130
|
to: "edit-commission"
|