@mercurjs/admin 2.3.6-canary.6 → 2.3.6-canary.8
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-6OB7BUPK.js → add-campaign-promotions-LGCLOFOD.js} +13 -8
- package/dist/{adjust-inventory-32UZ4BZC.js → adjust-inventory-H46YCNLT.js} +7 -2
- package/dist/{api-key-management-detail-ULNXV7YJ.js → api-key-management-detail-Z4KSJHUC.js} +5 -7
- package/dist/{api-key-management-list-KPWCB7NX.js → api-key-management-list-QZIRPINF.js} +5 -5
- package/dist/{api-key-management-sales-channels-RBK66ZGC.js → api-key-management-sales-channels-RGZ3QITG.js} +9 -7
- package/dist/{attribute-create-UWLP2DZY.js → attribute-create-OFTZRQCO.js} +3 -2
- package/dist/{attribute-detail-7PIMBKEE.js → attribute-detail-WVN5KOH2.js} +13 -7
- package/dist/{attribute-list-FLTRNSFI.js → attribute-list-ZC3CG5LS.js} +6 -6
- package/dist/{campaign-detail-WBWGUSMW.js → campaign-detail-MGDL2TQC.js} +10 -10
- package/dist/{campaign-list-M24QK43I.js → campaign-list-XCO4FJDZ.js} +5 -5
- package/dist/{categories-metadata-6F6EFZRQ.js → categories-metadata-QYH5U77W.js} +2 -2
- package/dist/{category-detail-3YY7FVY4.js → category-detail-FAP76OQB.js} +6 -7
- package/dist/{category-list-AT66O7HI.js → category-list-XDOYTQ4X.js} +5 -5
- package/dist/{category-products-RTOFMB25.js → category-products-35ZZYVWJ.js} +12 -5
- package/dist/{chunk-PH7TEL5B.js → chunk-23CSVCQK.js} +26 -15
- package/dist/{chunk-G4L2EPKT.js → chunk-25TWJMWE.js} +2 -2
- package/dist/{chunk-YJJ6YXFA.js → chunk-26REB3B6.js} +2 -1
- package/dist/{chunk-36C3CNJC.js → chunk-2IOADJUM.js} +27 -9
- package/dist/{chunk-ZH6TIKKW.js → chunk-2MOTQNEG.js} +1 -0
- package/dist/{chunk-4RKWEFNY.js → chunk-2XBNM6TM.js} +2 -2
- package/dist/{chunk-5KTSSLBG.js → chunk-3BKRMIWA.js} +21 -10
- package/dist/chunk-3UOYBH5O.js +8 -0
- package/dist/{chunk-T3AKFW7T.js → chunk-473QGQSA.js} +6 -3
- package/dist/{chunk-FV7B2OWJ.js → chunk-4AOVNA5G.js} +29 -18
- package/dist/{chunk-5LK5NAGN.js → chunk-4J4JAXXQ.js} +5 -3
- package/dist/{chunk-IKAUNMRC.js → chunk-4J74G7N2.js} +15 -3
- package/dist/{chunk-WIDHYDJQ.js → chunk-4JQDYQSX.js} +20 -10
- package/dist/{chunk-QPHY3XXC.js → chunk-4W77EUYY.js} +4 -2
- package/dist/{chunk-VKDZAXLK.js → chunk-5K4WEF2N.js} +19 -8
- package/dist/{chunk-AGO4ROOR.js → chunk-5OIFUF7R.js} +1 -1
- package/dist/{chunk-4CYHJ72Y.js → chunk-5QW3GY37.js} +25 -12
- package/dist/{chunk-BVKPOXLT.js → chunk-72DFLNNI.js} +9 -3
- package/dist/{chunk-X22JPPG6.js → chunk-7GCMYYFL.js} +5 -2
- package/dist/{chunk-AYKMFPKF.js → chunk-7LUKMT5J.js} +4 -2
- package/dist/{chunk-L3GVDREC.js → chunk-7OTRTHLL.js} +4 -2
- package/dist/{chunk-IZ77JV46.js → chunk-AUCCE46Q.js} +6 -3
- package/dist/{chunk-545HIUP3.js → chunk-AW4RL2SA.js} +58 -31
- package/dist/{chunk-62YRQVR7.js → chunk-AZV22U4V.js} +20 -5
- package/dist/{chunk-ZSXF4PEE.js → chunk-CX5XB56X.js} +4 -3
- package/dist/{chunk-J4SYK3RT.js → chunk-DGRHDZQO.js} +15 -5
- package/dist/{chunk-7UHN2CW7.js → chunk-DM52HEOD.js} +1 -1
- package/dist/{chunk-LMBIFEA5.js → chunk-DUKOOIQD.js} +3 -2
- package/dist/{chunk-VM35P6LF.js → chunk-DVFILGNQ.js} +7 -5
- package/dist/{chunk-5H4KS6M3.js → chunk-DWPBJEEM.js} +18 -5
- package/dist/{chunk-B4MSCLHO.js → chunk-E43YJQ2B.js} +42 -18
- package/dist/{chunk-NUMVOUQQ.js → chunk-EHLCUND7.js} +8 -6
- package/dist/{chunk-DBCNRZZE.js → chunk-EIPTLSNT.js} +3 -1
- package/dist/{chunk-7SHPS72O.js → chunk-EVYQCNVT.js} +4 -2
- package/dist/{chunk-VWK3K2CI.js → chunk-FCAJQFYT.js} +30 -10
- package/dist/{chunk-MKVEDGJ2.js → chunk-G63BL5AB.js} +5 -2
- package/dist/{chunk-BZPOERWW.js → chunk-GIV6KSQX.js} +18 -9
- package/dist/{chunk-QOMIRTO4.js → chunk-GQGCXLVP.js} +30 -11
- package/dist/{chunk-GWOZSV7A.js → chunk-GQYB3OOC.js} +105 -62
- package/dist/{chunk-IFG5ONPV.js → chunk-GZUXEIEB.js} +2 -2
- package/dist/{chunk-VOXWLJHA.js → chunk-H3TOETGJ.js} +11 -6
- package/dist/{chunk-B6XGTGMP.js → chunk-H4TJZB26.js} +24 -16
- package/dist/{chunk-AUTG5JEE.js → chunk-HHAM76HD.js} +41 -23
- package/dist/{chunk-XAQLGDAI.js → chunk-HPMMGA5B.js} +1 -1
- package/dist/{chunk-2IPSJDRD.js → chunk-I3RGMOTM.js} +18 -10
- package/dist/{chunk-4OCANHUL.js → chunk-IQRFJO4N.js} +3 -1
- package/dist/{chunk-WJPWYQYV.js → chunk-JFRYC6GK.js} +15 -8
- package/dist/{chunk-FOWWGEP7.js → chunk-JS2DAWKO.js} +9 -6
- package/dist/{chunk-ESVFENTS.js → chunk-K6OBX6ZR.js} +5 -4
- package/dist/{chunk-TN3HCAJ2.js → chunk-KB3BTLIB.js} +4 -2
- package/dist/{chunk-VIHLAFDA.js → chunk-KYOZ4CCY.js} +61 -29
- package/dist/{chunk-UFFLSUK4.js → chunk-LCUAIH7P.js} +4 -2
- package/dist/{chunk-3CLWBE4O.js → chunk-M7VHCFCW.js} +7 -5
- package/dist/{chunk-EVCAR6GP.js → chunk-MAEUKXZ4.js} +8 -5
- package/dist/{chunk-RU5IUJC2.js → chunk-MFGLOUTZ.js} +32 -10
- package/dist/{chunk-HFCJJJKP.js → chunk-MKKOAF2W.js} +26 -12
- package/dist/{chunk-AJCCPN5R.js → chunk-MNKJHZZT.js} +8 -4
- package/dist/{chunk-XV4YW4GE.js → chunk-NDS246VB.js} +20 -12
- package/dist/{chunk-ZPNRNL4X.js → chunk-NHZU2M7Z.js} +6 -4
- package/dist/{chunk-3JXOVOJI.js → chunk-NJ2NRKAJ.js} +55 -12
- package/dist/{chunk-CFQX7HAW.js → chunk-OCDZIJBM.js} +11 -5
- package/dist/{chunk-HBQ7EHHM.js → chunk-OGTWBHJC.js} +1 -1
- package/dist/{chunk-CBLCX5UK.js → chunk-Q2XWHI6K.js} +4 -1
- package/dist/{chunk-YWZQKODL.js → chunk-R55XYG6Y.js} +28 -15
- package/dist/{chunk-UZ2FWDJO.js → chunk-RAD3UMQ3.js} +4 -2
- package/dist/{chunk-WA3UZTKD.js → chunk-RUGB47D3.js} +1 -1
- package/dist/{chunk-ZOU25JF6.js → chunk-SU36MZXC.js} +11 -3
- package/dist/{chunk-SJEMUTO2.js → chunk-SW46WBFA.js} +29 -14
- package/dist/{chunk-NOK2356Y.js → chunk-SZSAJHN7.js} +4 -3
- package/dist/{chunk-QFYTIG3H.js → chunk-TPWSE5HE.js} +14 -9
- package/dist/{chunk-7ECQXPOG.js → chunk-TVCHVG2A.js} +3 -3
- package/dist/{chunk-ZPHVFD4N.js → chunk-TXZWIFWX.js} +1 -0
- package/dist/{chunk-HJACC6KV.js → chunk-UKQ6FES4.js} +6 -3
- package/dist/{chunk-7Y7YN7KG.js → chunk-USEE6QNQ.js} +65 -25
- package/dist/{chunk-JL3NKSLJ.js → chunk-USO2SWZV.js} +9 -4
- package/dist/{chunk-7C7YLUYT.js → chunk-V3UQOU5W.js} +4 -2
- package/dist/{chunk-HUJIVGX3.js → chunk-VD2CKAYG.js} +19 -8
- package/dist/{chunk-D3KEKNYN.js → chunk-VHO6ZXW2.js} +9 -5
- package/dist/{chunk-C4XKPQ6T.js → chunk-VLNTJXXO.js} +16 -3
- package/dist/{chunk-D3RDR3D3.js → chunk-W3LCOK3O.js} +153 -124
- package/dist/{chunk-IAMX7JMM.js → chunk-WD5XBWAN.js} +118 -53
- package/dist/chunk-WSK532ZA.js +236 -0
- package/dist/{chunk-RX7RU7VV.js → chunk-XI4SB5YZ.js} +120 -81
- package/dist/{chunk-KMLQ2ENL.js → chunk-XNGTE2VC.js} +1 -1
- package/dist/{chunk-TXEOM3WC.js → chunk-XUOGIKEE.js} +3 -3
- package/dist/{chunk-R22UAHRF.js → chunk-YDESULL7.js} +3 -1
- package/dist/{chunk-JODADMJ6.js → chunk-YN4KTMRA.js} +7 -5
- package/dist/{chunk-IVWSTXBV.js → chunk-YUKJJHI7.js} +8 -5
- package/dist/{chunk-4EQSS3YZ.js → chunk-Z2FX5GG4.js} +22 -10
- package/dist/{chunk-JQEAWWRP.js → chunk-ZPJOSHV7.js} +23 -12
- package/dist/{chunk-FX7HVGV5.js → chunk-ZQZFY3UY.js} +6 -4
- package/dist/{chunk-U2RBSUMY.js → chunk-ZU76OTV3.js} +2 -2
- package/dist/{collection-add-products-O5ILXKFY.js → collection-add-products-IIBLH7XQ.js} +12 -5
- package/dist/{collection-detail-N7VZKBIJ.js → collection-detail-IYZKDR4L.js} +6 -7
- package/dist/{collection-list-QQJAESFN.js → collection-list-EIDV4DEH.js} +11 -11
- package/dist/{collection-metadata-QUMWZABV.js → collection-metadata-IKYBHHEU.js} +2 -2
- package/dist/{commission-rule-create-CDLLQIY4.js → commission-rule-create-QDNXXBTV.js} +64 -30
- package/dist/{commission-rule-detail-CIE6TPXW.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-US6OMDVL.js → commissions-list-AQUW636T.js} +6 -6
- package/dist/{customer-detail-CGKGZE2N.js → customer-detail-TBGKTNQQ.js} +8 -8
- package/dist/{customer-group-add-customers-XYWJSXKS.js → customer-group-add-customers-RWJOA2NJ.js} +3 -3
- package/dist/{customer-group-detail-JMBR3D72.js → customer-group-detail-47IPD337.js} +6 -7
- package/dist/{customer-group-list-GYEQ2GTL.js → customer-group-list-Q2AYIVO4.js} +6 -7
- package/dist/{customer-group-metadata-UQ2SCLOK.js → customer-group-metadata-T3WFBL7U.js} +2 -2
- package/dist/{customer-list-6X6RQDLK.js → customer-list-JOPTF4QB.js} +5 -6
- package/dist/{customer-metadata-UEQSIGLT.js → customer-metadata-YSMWL4L3.js} +2 -2
- package/dist/{customers-add-customer-group-AZYAIQ7E.js → customers-add-customer-group-AVRYBS6Q.js} +13 -6
- package/dist/{edit-inventory-item-ENA2OFSQ.js → edit-inventory-item-7M7Q6HL4.js} +1 -1
- package/dist/{edit-inventory-item-attributes-Z26UDTSH.js → edit-inventory-item-attributes-E7J2WFPF.js} +1 -1
- package/dist/{edit-reservation-W3THLKKK.js → edit-reservation-S3QTQRPY.js} +11 -3
- package/dist/{edit-rules-3DCWA5UF.js → edit-rules-NRF7U4AT.js} +1 -1
- package/dist/{home-RT4EIJFM.js → home-KKOF4FWS.js} +3 -3
- package/dist/index.css +3 -0
- package/dist/index.d.ts +10 -28
- package/dist/index.js +431 -545
- package/dist/{inventory-detail-PMJN4E2D.js → inventory-detail-U6TRGZRY.js} +6 -6
- package/dist/{inventory-list-XS3OFHLW.js → inventory-list-JWA7U2LB.js} +4 -5
- package/dist/{inventory-metadata-OGS7JMZ5.js → inventory-metadata-KO622YEI.js} +2 -2
- package/dist/{inventory-stock-LDBJQCJF.js → inventory-stock-WWXYVFK2.js} +20 -10
- package/dist/{location-detail-DKBNATDD.js → location-detail-27FBZML7.js} +4 -6
- package/dist/{location-fulfillment-providers-JGJOTGMZ.js → location-fulfillment-providers-XTYJWAVP.js} +19 -11
- package/dist/{location-list-JJN42JSH.js → location-list-RMHT36AO.js} +4 -6
- package/dist/{location-sales-channels-FT6TFVXJ.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-RYAIECRU.js → location-service-zone-shipping-option-create-WJOLO6A3.js} +3 -3
- 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-72TAMW53.js → login-ISNIWXU2.js} +1 -1
- package/dist/{manage-locations-TCMY6A4J.js → manage-locations-5FKFNJQN.js} +13 -2
- package/dist/{marketplace-add-currencies-Z6FUIAU5.js → marketplace-add-currencies-34XKWMI7.js} +33 -9
- package/dist/{marketplace-detail-UYBZIFQW.js → marketplace-detail-A76FTENH.js} +6 -6
- package/dist/{marketplace-edit-G7YNGABC.js → marketplace-edit-KXKUECZQ.js} +61 -30
- package/dist/{marketplace-metadata-2TZTRDRJ.js → marketplace-metadata-364KJG43.js} +2 -2
- package/dist/{offer-detail-page-XU6XK6YR.js → offer-detail-page-BDDDZSPL.js} +19 -8
- package/dist/{offer-variant-detail-page-FVJE5WLV.js → offer-variant-detail-page-HQU4HMZH.js} +4 -5
- package/dist/{offers-RS4UORI3.js → offers-OVX5AAQL.js} +6 -7
- package/dist/{order-create-claim-PPUQXVYH.js → order-create-claim-4ERPSGPD.js} +103 -59
- package/dist/{order-create-edit-QH25BOIU.js → order-create-edit-BGLNMKKI.js} +15 -8
- package/dist/{order-create-exchange-5PCJ25LK.js → order-create-exchange-TOPPZZGS.js} +104 -60
- package/dist/{order-create-refund-ZWMXQGUA.js → order-create-refund-M3K5MZDM.js} +38 -23
- package/dist/{order-create-return-ECGHPLEZ.js → order-create-return-64GZ2LCL.js} +107 -68
- package/dist/{order-detail-XYHRY25Y.js → order-detail-DIUKR6ZJ.js} +7 -7
- package/dist/{order-edit-billing-address-V6QS5DYF.js → order-edit-billing-address-CCRTK5E2.js} +2 -2
- package/dist/{order-edit-email-AGJU7YHU.js → order-edit-email-V45SEUCO.js} +1 -1
- package/dist/{order-edit-shipping-address-TKLEEHOE.js → order-edit-shipping-address-45Z6TNHL.js} +1 -1
- package/dist/{order-list-L2WZX5ED.js → order-list-C7PHMQ64.js} +5 -5
- package/dist/{order-metadata-NVC3A3A5.js → order-metadata-7245QRUQ.js} +2 -2
- package/dist/{order-request-transfer-7EZX5UOQ.js → order-request-transfer-JYPDXCY2.js} +27 -13
- package/dist/pages/index.d.ts +2 -2
- package/dist/pages/index.js +88 -88
- package/dist/{payout-list-WZ6QMJJY.js → payout-list-KILGQ4XP.js} +3 -3
- package/dist/{price-list-create-DRKZIV2D.js → price-list-create-UZRCHVU7.js} +9 -9
- package/dist/{price-list-customer-availability-WU2OGO37.js → price-list-customer-availability-CQY55U4O.js} +31 -14
- package/dist/{price-list-detail-AML5XNDJ.js → price-list-detail-IL7VSABK.js} +6 -7
- package/dist/{price-list-list-FPCLLS33.js → price-list-list-TD5JIO7L.js} +5 -5
- package/dist/{price-list-prices-add-HAYZV2XV.js → price-list-prices-add-DSRYUJUT.js} +8 -8
- package/dist/{price-list-prices-edit-S4V5ACN3.js → price-list-prices-edit-WELHT4O4.js} +18 -9
- package/dist/{product-add-existing-attributes-VWM3LNIO.js → product-add-existing-attributes-RPIHTSCE.js} +7 -5
- package/dist/{product-create-73WXVANY.js → product-create-PMV3LO62.js} +9 -9
- package/dist/{product-detail-ZKQXB7PH.js → product-detail-KVLZYO76.js} +6 -7
- package/dist/{product-edit-attribute-W3AS47FM.js → product-edit-attribute-URHTZ2EQ.js} +9 -3
- package/dist/{product-list-SYMPZR6W.js → product-list-M6B42KCG.js} +6 -7
- package/dist/{product-media-6XS74AU3.js → product-media-R2FIBFR5.js} +2 -2
- package/dist/{product-metadata-GKQUURAL.js → product-metadata-SC5BXN66.js} +2 -2
- package/dist/{product-organization-3PIQ4IY2.js → product-organization-BSPYZYZR.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-SYOFR5EK.js → product-tag-create-PX7Q2AXU.js} +1 -1
- package/dist/{product-tag-detail-Q3CKJBVX.js → product-tag-detail-LXO43RMB.js} +11 -11
- package/dist/{product-tag-edit-FJPBCFBH.js → product-tag-edit-PXSZMCCT.js} +1 -1
- package/dist/{product-tag-list-BNNJS67H.js → product-tag-list-XWTZGQTT.js} +11 -11
- package/dist/{product-tag-metadata-WQEGISQ5.js → product-tag-metadata-2SO7ICOZ.js} +2 -2
- package/dist/{product-type-detail-WZLA27WI.js → product-type-detail-NO4PKFYQ.js} +6 -7
- package/dist/{product-type-list-PAAE6ZSR.js → product-type-list-JXU3446J.js} +5 -5
- package/dist/{product-type-metadata-WCGB3U4N.js → product-type-metadata-7D3J3NSO.js} +2 -2
- package/dist/{product-variant-detail-7B26FRNG.js → product-variant-detail-VQ55W7PD.js} +3 -5
- package/dist/{product-variant-edit-UC34WTO7.js → product-variant-edit-3WSHMGDI.js} +1 -1
- package/dist/{product-variant-metadata-CTKNNNLM.js → product-variant-metadata-KFLIOCU2.js} +2 -2
- package/dist/{profile-detail-GDQQJUWF.js → profile-detail-SQZ6JFAN.js} +3 -5
- package/dist/{profile-edit-ZBD6N5SC.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-FKRGXGI4.js → promotion-create-6TMK6PEP.js} +4 -3
- package/dist/{promotion-detail-HOXUK5VG.js → promotion-detail-WBTMSCTX.js} +6 -8
- package/dist/{promotion-list-LJKKLZNU.js → promotion-list-FPOTDLHX.js} +9 -9
- package/dist/{refund-reason-create-TOH2D225.js → refund-reason-create-HZOBFOPB.js} +1 -1
- package/dist/{refund-reason-edit-B32E4WHH.js → refund-reason-edit-KS6NMC22.js} +1 -1
- package/dist/{refund-reason-list-3YLXKHJX.js → refund-reason-list-4T7DIRZV.js} +5 -6
- 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-YTB7OEQU.js → region-detail-S5OT2PGL.js} +4 -5
- package/dist/{region-edit-NUMG2V5L.js → region-edit-IXCS3MRH.js} +32 -14
- package/dist/{region-list-JP3CZISQ.js → region-list-2MWAGD2D.js} +4 -5
- package/dist/{region-metadata-NAHNXAHQ.js → region-metadata-ADPG7OLJ.js} +2 -2
- package/dist/{reservation-create-H3T3AHTK.js → reservation-create-YEICXID2.js} +67 -44
- package/dist/{reservation-detail-M42OB6BC.js → reservation-detail-EBIDXEVF.js} +3 -5
- package/dist/{reservation-list-FQAWE7S5.js → reservation-list-5QNXC2WU.js} +4 -5
- package/dist/{reservation-metadata-AKR6FRG5.js → reservation-metadata-TWJE777O.js} +2 -2
- package/dist/{reset-password-RJ5VSBQV.js → reset-password-3YLCNWLP.js} +1 -1
- package/dist/{return-reason-list-PKAJDA6A.js → return-reason-list-BDR7VUEV.js} +5 -5
- package/dist/{review-detail-K555FECH.js → review-detail-NPB3OKCE.js} +2 -4
- package/dist/{review-list-5NGJJH23.js → review-list-NXBVRP5T.js} +4 -5
- package/dist/{sales-channel-add-products-RRTMXVAT.js → sales-channel-add-products-VAHBFZP3.js} +15 -6
- package/dist/{sales-channel-detail-7GAGHWEP.js → sales-channel-detail-A7HHMQVX.js} +6 -7
- package/dist/{sales-channel-list-BCL62DTX.js → sales-channel-list-246V7NV3.js} +4 -6
- package/dist/{sales-channel-metadata-BKNILVQ2.js → sales-channel-metadata-PMLMQIKU.js} +2 -2
- package/dist/settings-UYGKDTNO.js +63 -0
- package/dist/{shipping-option-type-create-ZVOMA222.js → shipping-option-type-create-NOFP2DOM.js} +1 -1
- package/dist/{shipping-option-type-detail-2VDQWYDS.js → shipping-option-type-detail-47AZVCFP.js} +3 -5
- package/dist/{shipping-option-type-edit-CZFRAZPJ.js → shipping-option-type-edit-42JILKHX.js} +1 -1
- package/dist/{shipping-option-type-list-2XUYXURQ.js → shipping-option-type-list-TTAA63ZN.js} +6 -6
- package/dist/{shipping-profile-detail-7SE5GLQZ.js → shipping-profile-detail-RGB67K3C.js} +2 -4
- package/dist/{shipping-profile-metadata-UEZYRBZQ.js → shipping-profile-metadata-GXMY5E57.js} +2 -2
- package/dist/{shipping-profiles-list-GC6AK77V.js → shipping-profiles-list-DD3G2THE.js} +4 -5
- package/dist/{store-create-JBY2MAIT.js → store-create-UQ333C5F.js} +36 -14
- package/dist/{store-details-MPTCI4VG.js → store-details-OAONJZHB.js} +8 -9
- package/dist/{store-edit-BXWV5H4Z.js → store-edit-6Q3GLLJE.js} +2 -2
- package/dist/{store-list-LPKSZF2E.js → store-list-PANSKKVA.js} +10 -11
- package/dist/{store-member-invite-A2WAB5GK.js → store-member-invite-235YGK55.js} +14 -5
- package/dist/{tax-region-create-OGVIIVMO.js → tax-region-create-ECRRD74Z.js} +2 -2
- package/dist/{tax-region-detail-3CMIPIKA.js → tax-region-detail-PU4Q42KO.js} +7 -8
- package/dist/{tax-region-edit-DUBTSOQ4.js → tax-region-edit-P4L2CUFV.js} +1 -1
- package/dist/{tax-region-list-U5JRCQZI.js → tax-region-list-PUNXDH34.js} +5 -6
- package/dist/{tax-region-metadata-KHODQCDW.js → tax-region-metadata-EDZ7YGYR.js} +2 -2
- package/dist/{tax-region-province-detail-XTPJ6DZZ.js → tax-region-province-detail-3ZQOCKZ2.js} +6 -7
- package/dist/{tax-region-tax-override-create-NMLHLS7J.js → tax-region-tax-override-create-CPWWLRMI.js} +10 -10
- package/dist/{tax-region-tax-override-edit-4SJ3DRAF.js → tax-region-tax-override-edit-TQCB5GSO.js} +41 -21
- package/dist/{user-detail-RD3T5WQT.js → user-detail-4H37KBIP.js} +3 -5
- package/dist/{user-edit-Y5VP6CKB.js → user-edit-42A2VX5E.js} +1 -1
- package/dist/{user-invite-4JFF3NRW.js → user-invite-5EJ3CIQZ.js} +5 -4
- package/dist/{user-list-X6UZ6UZM.js → user-list-EZ56HFI3.js} +5 -6
- package/dist/{user-metadata-XNM2JNNO.js → user-metadata-3GENWLUS.js} +2 -2
- package/package.json +6 -6
- package/dist/chunk-BDGZ4EQO.js +0 -86
- package/dist/settings-AVE3VCCM.js +0 -19
- package/dist/{customer-edit-5EH2AUGN.js → customer-edit-LDKAXHZ6.js} +3 -3
- package/dist/{store-bulk-edit-FQPQQR46.js → store-bulk-edit-XWDZQPFO.js} +1 -1
|
@@ -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"),
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
_DataTable,
|
|
21
21
|
useDataTable
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SU36MZXC.js";
|
|
23
23
|
import {
|
|
24
24
|
ActionMenu
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3UOYBH5O.js";
|
|
26
26
|
import {
|
|
27
27
|
useShippingOptionTypes
|
|
28
28
|
} from "./chunk-W5U6NPSN.js";
|
|
@@ -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
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
usePromotionTableColumns,
|
|
7
7
|
usePromotionTableQuery
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HPMMGA5B.js";
|
|
9
9
|
import {
|
|
10
10
|
usePromotionTableFilters
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DGRHDZQO.js";
|
|
12
12
|
import {
|
|
13
13
|
DateRangeDisplay
|
|
14
14
|
} from "./chunk-O7324VFF.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
_DataTable,
|
|
20
20
|
useDataTable
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SU36MZXC.js";
|
|
22
22
|
import {
|
|
23
23
|
ActionMenu
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3UOYBH5O.js";
|
|
25
25
|
import {
|
|
26
26
|
useAddOrRemoveCampaignPromotions,
|
|
27
27
|
useCampaign,
|
|
@@ -35,7 +35,11 @@ import {
|
|
|
35
35
|
// src/pages/campaigns/campaign-detail/campaign-detail.tsx
|
|
36
36
|
import { Children } from "react";
|
|
37
37
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
38
|
-
import {
|
|
38
|
+
import {
|
|
39
|
+
PermissionGuard,
|
|
40
|
+
WidgetZone,
|
|
41
|
+
useLinkQuery
|
|
42
|
+
} from "@mercurjs/dashboard-shared";
|
|
39
43
|
|
|
40
44
|
// src/pages/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx
|
|
41
45
|
import { ChartPie, CurrencyDollar, PencilSquare } from "@medusajs/icons";
|
|
@@ -81,6 +85,7 @@ var BudgetPills = ({ pills }) => {
|
|
|
81
85
|
actions: [
|
|
82
86
|
{
|
|
83
87
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
88
|
+
permission: "campaigns:edit",
|
|
84
89
|
label: t("actions.edit"),
|
|
85
90
|
to: pill.editTo
|
|
86
91
|
}
|
|
@@ -181,6 +186,7 @@ var CampaignConfigurationSection = ({
|
|
|
181
186
|
{
|
|
182
187
|
actions: [
|
|
183
188
|
{
|
|
189
|
+
permission: "campaigns:edit",
|
|
184
190
|
label: t("actions.edit"),
|
|
185
191
|
icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
|
|
186
192
|
to: "configuration"
|
|
@@ -287,6 +293,7 @@ var CampaignGeneralSection = ({
|
|
|
287
293
|
actions: [
|
|
288
294
|
{
|
|
289
295
|
icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
|
|
296
|
+
permission: "campaigns:edit",
|
|
290
297
|
label: t("actions.edit"),
|
|
291
298
|
to: `/campaigns/${campaign.id}/edit`
|
|
292
299
|
}
|
|
@@ -296,6 +303,7 @@ var CampaignGeneralSection = ({
|
|
|
296
303
|
actions: [
|
|
297
304
|
{
|
|
298
305
|
icon: /* @__PURE__ */ jsx3(Trash, {}),
|
|
306
|
+
permission: "campaigns:manage",
|
|
299
307
|
label: t("actions.delete"),
|
|
300
308
|
onClick: handleDelete
|
|
301
309
|
}
|
|
@@ -345,7 +353,7 @@ import { createColumnHelper } from "@tanstack/react-table";
|
|
|
345
353
|
import { useMemo, useState } from "react";
|
|
346
354
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
347
355
|
import { Link } from "react-router-dom";
|
|
348
|
-
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
356
|
+
import { DisplayExtensionZone as DisplayExtensionZone3, PermissionAction } from "@mercurjs/dashboard-shared";
|
|
349
357
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
350
358
|
var PAGE_SIZE = 10;
|
|
351
359
|
var CampaignPromotionSection = ({
|
|
@@ -408,7 +416,7 @@ var CampaignPromotionSection = ({
|
|
|
408
416
|
return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", "data-testid": "campaign-promotion-section-container", children: [
|
|
409
417
|
/* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "campaign-promotion-section-header", children: [
|
|
410
418
|
/* @__PURE__ */ jsx4(Heading4, { level: "h2", "data-testid": "campaign-promotion-section-heading", children: t("promotions.domain") }),
|
|
411
|
-
/* @__PURE__ */ jsx4(
|
|
419
|
+
/* @__PURE__ */ jsx4(PermissionAction, { permission: "campaigns:edit", children: /* @__PURE__ */ jsx4(Button, { variant: "secondary", size: "small", asChild: true, "data-testid": "campaign-promotion-section-add-button", children: /* @__PURE__ */ jsx4(Link, { to: `/campaigns/${campaign.id}/add-promotions`, children: t("general.add") }) }) })
|
|
412
420
|
] }),
|
|
413
421
|
/* @__PURE__ */ jsx4(
|
|
414
422
|
_DataTable,
|
|
@@ -432,6 +440,7 @@ var CampaignPromotionSection = ({
|
|
|
432
440
|
commands: [
|
|
433
441
|
{
|
|
434
442
|
action: handleRemove,
|
|
443
|
+
permission: "campaigns:edit",
|
|
435
444
|
label: t("actions.remove"),
|
|
436
445
|
shortcut: "r"
|
|
437
446
|
}
|
|
@@ -487,6 +496,7 @@ var PromotionActions = ({
|
|
|
487
496
|
actions: [
|
|
488
497
|
{
|
|
489
498
|
icon: /* @__PURE__ */ jsx4(PencilSquare4, {}),
|
|
499
|
+
permission: "promotions:edit",
|
|
490
500
|
label: t("actions.edit"),
|
|
491
501
|
to: `/promotions/${promotion.id}/edit`
|
|
492
502
|
}
|
|
@@ -496,6 +506,7 @@ var PromotionActions = ({
|
|
|
496
506
|
actions: [
|
|
497
507
|
{
|
|
498
508
|
icon: /* @__PURE__ */ jsx4(Trash2, {}),
|
|
509
|
+
permission: "campaigns:edit",
|
|
499
510
|
label: t("actions.remove"),
|
|
500
511
|
onClick: handleRemove
|
|
501
512
|
}
|
|
@@ -590,7 +601,7 @@ var Root = ({ children }) => {
|
|
|
590
601
|
return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, "data-testid": "campaign-detail-page", children }) : /* @__PURE__ */ jsxs5(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, "data-testid": "campaign-detail-page", children: [
|
|
591
602
|
/* @__PURE__ */ jsx5(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "campaigns.detail.main", data: campaign, children: [
|
|
592
603
|
/* @__PURE__ */ jsx5(CampaignGeneralSection, { campaign }),
|
|
593
|
-
/* @__PURE__ */ jsx5(CampaignPromotionSection, { campaign })
|
|
604
|
+
/* @__PURE__ */ jsx5(PermissionGuard, { permission: "promotions:view", children: /* @__PURE__ */ jsx5(CampaignPromotionSection, { campaign }) })
|
|
594
605
|
] }) }),
|
|
595
606
|
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "campaigns.detail.side", data: campaign, children: [
|
|
596
607
|
/* @__PURE__ */ jsx5(CampaignConfigurationSection, { campaign }),
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-E74OUNA3.js";
|
|
7
7
|
import {
|
|
8
8
|
ActionMenu
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3UOYBH5O.js";
|
|
10
10
|
import {
|
|
11
11
|
useStockLocation
|
|
12
12
|
} from "./chunk-H5E3CGD7.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(
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
getPromotionStatus,
|
|
9
9
|
getPromotionType
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RUGB47D3.js";
|
|
11
11
|
import {
|
|
12
12
|
PROMOTION_DETAIL_BASE_FIELDS
|
|
13
13
|
} from "./chunk-LXTXP7ZM.js";
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from "./chunk-E74OUNA3.js";
|
|
23
23
|
import {
|
|
24
24
|
NoRecords
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4J74G7N2.js";
|
|
26
26
|
import {
|
|
27
27
|
ActionMenu
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3UOYBH5O.js";
|
|
29
29
|
import {
|
|
30
30
|
useDeletePromotion,
|
|
31
31
|
usePromotion,
|
|
@@ -84,6 +84,7 @@ var CampaignSection = ({
|
|
|
84
84
|
const warning = campaign && promotion?.status !== "active" ? t("promotions.campaignSection.warnings.promotionMustBeActive") : campaign?.ends_at ? t("promotions.campaignSection.warnings.promotionExpires") : void 0;
|
|
85
85
|
const actions = [
|
|
86
86
|
{
|
|
87
|
+
permission: "promotions:edit",
|
|
87
88
|
label: t("actions.edit"),
|
|
88
89
|
to: "add-to-campaign",
|
|
89
90
|
icon: /* @__PURE__ */ jsx(PencilSquare, {})
|
|
@@ -119,6 +120,7 @@ var CampaignSection = ({
|
|
|
119
120
|
message: t("promotions.campaignSection.noRecordsMessage"),
|
|
120
121
|
action: {
|
|
121
122
|
to: `/promotions/${id}/add-to-campaign`,
|
|
123
|
+
permission: "promotions:edit",
|
|
122
124
|
label: t("promotions.campaignSection.addToCampaign")
|
|
123
125
|
},
|
|
124
126
|
dataTestId: "promotion-campaign-section-add-to-campaign-button"
|
|
@@ -205,6 +207,7 @@ var PromotionConditionsSection = ({
|
|
|
205
207
|
actions: [
|
|
206
208
|
{
|
|
207
209
|
icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
|
|
210
|
+
permission: "promotions:edit",
|
|
208
211
|
label: t("actions.edit"),
|
|
209
212
|
to: `${ruleType}/edit`
|
|
210
213
|
}
|
|
@@ -236,6 +239,7 @@ var PromotionConditionsSection = ({
|
|
|
236
239
|
message: t("promotions.conditions.list.noRecordsMessage"),
|
|
237
240
|
action: {
|
|
238
241
|
to: `${ruleType}/edit`,
|
|
242
|
+
permission: "promotions:edit",
|
|
239
243
|
label: t("promotions.conditions.add")
|
|
240
244
|
},
|
|
241
245
|
dataTestId: `promotion-conditions-section-add-condition-button-${ruleType}`
|
|
@@ -373,6 +377,7 @@ var PromotionGeneralSection = ({
|
|
|
373
377
|
actions: [
|
|
374
378
|
{
|
|
375
379
|
icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
|
|
380
|
+
permission: "promotions:edit",
|
|
376
381
|
label: t("actions.edit"),
|
|
377
382
|
to: `/promotions/${promotion.id}/edit`
|
|
378
383
|
}
|
|
@@ -382,6 +387,7 @@ var PromotionGeneralSection = ({
|
|
|
382
387
|
actions: [
|
|
383
388
|
{
|
|
384
389
|
icon: /* @__PURE__ */ jsx3(Trash, {}),
|
|
390
|
+
permission: "promotions:manage",
|
|
385
391
|
label: t("actions.delete"),
|
|
386
392
|
onClick: handleDelete
|
|
387
393
|
}
|
|
@@ -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,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-H6MYB7GB.js";
|
|
18
18
|
import {
|
|
19
19
|
ActionMenu
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3UOYBH5O.js";
|
|
21
21
|
import {
|
|
22
22
|
useCommissionRule
|
|
23
23
|
} from "./chunk-CMVQ5SAG.js";
|
|
@@ -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"
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
_DataTable,
|
|
16
16
|
useDataTable
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SU36MZXC.js";
|
|
18
18
|
import {
|
|
19
19
|
ActionMenu
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3UOYBH5O.js";
|
|
21
21
|
|
|
22
22
|
// src/pages/return-reasons/return-reason-list/return-reason-list.tsx
|
|
23
23
|
import { Children } from "react";
|
|
@@ -130,6 +130,7 @@ var ReturnReasonRowActions = ({
|
|
|
130
130
|
actions: [
|
|
131
131
|
{
|
|
132
132
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
133
|
+
permission: "return_reasons:edit",
|
|
133
134
|
label: t("actions.edit"),
|
|
134
135
|
to: `${returnReason.id}/edit`
|
|
135
136
|
}
|
|
@@ -139,6 +140,7 @@ var ReturnReasonRowActions = ({
|
|
|
139
140
|
actions: [
|
|
140
141
|
{
|
|
141
142
|
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
143
|
+
permission: "return_reasons:manage",
|
|
142
144
|
label: t("actions.delete"),
|
|
143
145
|
onClick: handleDelete
|
|
144
146
|
}
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SU36MZXC.js";
|
|
20
20
|
import {
|
|
21
21
|
ActionMenu
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3UOYBH5O.js";
|
|
23
23
|
import {
|
|
24
24
|
useProductTags
|
|
25
25
|
} from "./chunk-W5U6NPSN.js";
|
|
@@ -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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ActionMenu
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3UOYBH5O.js";
|
|
4
4
|
import {
|
|
5
5
|
useUpdateProduct
|
|
6
6
|
} from "./chunk-Z476HUMI.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import { useState } from "react";
|
|
22
22
|
import { useTranslation } from "react-i18next";
|
|
23
23
|
import { Link } from "react-router-dom";
|
|
24
|
-
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
24
|
+
import { DisplayExtensionZone, PermissionAction, usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
25
25
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
26
|
var ProductMediaSection = ({
|
|
27
27
|
product,
|
|
@@ -29,6 +29,7 @@ var ProductMediaSection = ({
|
|
|
29
29
|
}) => {
|
|
30
30
|
const { t } = useTranslation();
|
|
31
31
|
const prompt = usePrompt();
|
|
32
|
+
const editGate = usePermissionGate("products:edit");
|
|
32
33
|
const [selection, setSelection] = useState({});
|
|
33
34
|
const media = getMedia(product);
|
|
34
35
|
const handleCheckedChange = (id) => {
|
|
@@ -85,6 +86,7 @@ var ProductMediaSection = ({
|
|
|
85
86
|
{
|
|
86
87
|
label: t("actions.edit"),
|
|
87
88
|
to: "media?view=edit",
|
|
89
|
+
permission: "products:edit",
|
|
88
90
|
icon: /* @__PURE__ */ jsx(PencilSquare, {})
|
|
89
91
|
}
|
|
90
92
|
]
|
|
@@ -164,7 +166,7 @@ var ProductMediaSection = ({
|
|
|
164
166
|
),
|
|
165
167
|
/* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-muted", "data-testid": "product-media-empty-state-description", children: t("products.media.emptyState.description") })
|
|
166
168
|
] }),
|
|
167
|
-
!readOnly && /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "product-media-empty-state-button", children: /* @__PURE__ */ jsx(Link, { to: "media?view=edit", "data-testid": "product-media-empty-state-link", children: t("products.media.emptyState.action") }) })
|
|
169
|
+
!readOnly && /* @__PURE__ */ jsx(PermissionAction, { permission: "products:edit", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "product-media-empty-state-button", children: /* @__PURE__ */ jsx(Link, { to: "media?view=edit", "data-testid": "product-media-empty-state-link", children: t("products.media.emptyState.action") }) }) })
|
|
168
170
|
] }),
|
|
169
171
|
!readOnly && /* @__PURE__ */ jsx(CommandBar, { open: !!Object.keys(selection).length, "data-testid": "product-media-command-bar", children: /* @__PURE__ */ jsxs(CommandBar.Bar, { "data-testid": "product-media-command-bar-bar", children: [
|
|
170
172
|
/* @__PURE__ */ jsx(CommandBar.Value, { "data-testid": "product-media-command-bar-value", children: t("general.countSelected", {
|
|
@@ -175,6 +177,7 @@ var ProductMediaSection = ({
|
|
|
175
177
|
CommandBar.Command,
|
|
176
178
|
{
|
|
177
179
|
action: handleDelete,
|
|
180
|
+
disabled: editGate.denied,
|
|
178
181
|
label: t("actions.delete"),
|
|
179
182
|
shortcut: "d",
|
|
180
183
|
"data-testid": "product-media-command-bar-delete"
|