@mercurjs/admin 2.3.6-canary.1 → 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 +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-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
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
} from "./chunk-ZVNGPUNQ.js";
|
|
4
4
|
import {
|
|
5
5
|
useOfferTableCommands
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2MOTQNEG.js";
|
|
7
7
|
import {
|
|
8
8
|
useOfferTableColumns,
|
|
9
9
|
useOfferTableFilters,
|
|
10
10
|
useOfferTableQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IBTEL5KA.js";
|
|
12
12
|
import {
|
|
13
13
|
IconAvatar
|
|
14
14
|
} from "./chunk-U2EI2ZLM.js";
|
|
15
15
|
import {
|
|
16
16
|
useOrderTableFilters
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4JQDYQSX.js";
|
|
18
18
|
import {
|
|
19
19
|
useOffers
|
|
20
20
|
} from "./chunk-GNNOFJAK.js";
|
|
21
21
|
import {
|
|
22
22
|
useMemberTableQuery
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EBAFVGM3.js";
|
|
24
24
|
import {
|
|
25
25
|
useOrderTableQuery
|
|
26
26
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -38,14 +38,17 @@ import {
|
|
|
38
38
|
} from "./chunk-E74OUNA3.js";
|
|
39
39
|
import {
|
|
40
40
|
require_dist
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ESRIX7ZH.js";
|
|
42
42
|
import {
|
|
43
43
|
_DataTable,
|
|
44
44
|
useDataTable
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-SU36MZXC.js";
|
|
46
46
|
import {
|
|
47
47
|
NoRecords
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-4J74G7N2.js";
|
|
49
|
+
import {
|
|
50
|
+
ActionMenu
|
|
51
|
+
} from "./chunk-3UOYBH5O.js";
|
|
49
52
|
import {
|
|
50
53
|
useOrders
|
|
51
54
|
} from "./chunk-DYCCRR7B.js";
|
|
@@ -60,9 +63,6 @@ import {
|
|
|
60
63
|
useSellerMembers,
|
|
61
64
|
useSuspendSeller
|
|
62
65
|
} from "./chunk-HRMANL53.js";
|
|
63
|
-
import {
|
|
64
|
-
ActionMenu
|
|
65
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
66
66
|
import {
|
|
67
67
|
TwoColumnPageSkeleton
|
|
68
68
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -98,7 +98,12 @@ var storeDetailLoader = async ({ params }) => {
|
|
|
98
98
|
import { Children as Children3, useState as useState3 } from "react";
|
|
99
99
|
import { useParams } from "react-router-dom";
|
|
100
100
|
import { useTranslation as useTranslation12 } from "react-i18next";
|
|
101
|
-
import {
|
|
101
|
+
import {
|
|
102
|
+
WidgetZone,
|
|
103
|
+
useLinkQuery,
|
|
104
|
+
usePermissions,
|
|
105
|
+
useWidgetTabs
|
|
106
|
+
} from "@mercurjs/dashboard-shared";
|
|
102
107
|
var import_types3 = __toESM(require_dist(), 1);
|
|
103
108
|
|
|
104
109
|
// src/pages/stores/store-details/components/store-general-section.tsx
|
|
@@ -170,7 +175,8 @@ var StoreDetailEditButton = ({ seller }) => {
|
|
|
170
175
|
{
|
|
171
176
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
172
177
|
label: t("actions.edit"),
|
|
173
|
-
to: `/stores/${seller.id}/edit
|
|
178
|
+
to: `/stores/${seller.id}/edit`,
|
|
179
|
+
permission: "sellers:edit"
|
|
174
180
|
}
|
|
175
181
|
]
|
|
176
182
|
}
|
|
@@ -194,7 +200,8 @@ var StoreDetailActions = ({
|
|
|
194
200
|
{
|
|
195
201
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
196
202
|
label: t("actions.edit"),
|
|
197
|
-
to: `/stores/${seller.id}/edit
|
|
203
|
+
to: `/stores/${seller.id}/edit`,
|
|
204
|
+
permission: "sellers:edit"
|
|
198
205
|
}
|
|
199
206
|
]
|
|
200
207
|
}
|
|
@@ -316,7 +323,8 @@ var StorePaymentDetailsSection = ({
|
|
|
316
323
|
{
|
|
317
324
|
label: t("actions.edit"),
|
|
318
325
|
icon: /* @__PURE__ */ jsx3(PencilSquare2, {}),
|
|
319
|
-
to: `/stores/${seller.id}/payment-details
|
|
326
|
+
to: `/stores/${seller.id}/payment-details`,
|
|
327
|
+
permission: "sellers:edit"
|
|
320
328
|
}
|
|
321
329
|
]
|
|
322
330
|
}
|
|
@@ -370,7 +378,8 @@ var StoreCompanyDetailsSection = ({
|
|
|
370
378
|
{
|
|
371
379
|
label: t("actions.edit"),
|
|
372
380
|
icon: /* @__PURE__ */ jsx4(PencilSquare3, {}),
|
|
373
|
-
to: `/stores/${seller.id}/professional-details
|
|
381
|
+
to: `/stores/${seller.id}/professional-details`,
|
|
382
|
+
permission: "sellers:edit"
|
|
374
383
|
}
|
|
375
384
|
]
|
|
376
385
|
}
|
|
@@ -467,7 +476,8 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
467
476
|
{
|
|
468
477
|
label: t("actions.edit"),
|
|
469
478
|
icon: /* @__PURE__ */ jsx6(PencilSquare4, {}),
|
|
470
|
-
to: `/stores/${seller.id}/edit-address
|
|
479
|
+
to: `/stores/${seller.id}/edit-address`,
|
|
480
|
+
permission: "sellers:edit"
|
|
471
481
|
}
|
|
472
482
|
]
|
|
473
483
|
}
|
|
@@ -501,9 +511,10 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
501
511
|
import { Button, Container as Container6, Heading as Heading6 } from "@medusajs/ui";
|
|
502
512
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
503
513
|
import { Link } from "react-router-dom";
|
|
504
|
-
import { DisplayExtensionZone as DisplayExtensionZone6 } from "@mercurjs/dashboard-shared";
|
|
514
|
+
import { DisplayExtensionZone as DisplayExtensionZone6, PermissionAction } from "@mercurjs/dashboard-shared";
|
|
505
515
|
|
|
506
516
|
// src/pages/stores/store-details/components/store-members-section/store-members-data-table.tsx
|
|
517
|
+
import { useCan } from "@mercurjs/dashboard-shared";
|
|
507
518
|
import { useMemo } from "react";
|
|
508
519
|
import { ArrowPath, Link as LinkIcon, Trash, User } from "@medusajs/icons";
|
|
509
520
|
import { Badge as Badge2, toast } from "@medusajs/ui";
|
|
@@ -551,7 +562,12 @@ var StoreMembersDataTable = ({
|
|
|
551
562
|
{ limit: 100, offset: 0 },
|
|
552
563
|
{ placeholderData: keepPreviousData }
|
|
553
564
|
);
|
|
554
|
-
const
|
|
565
|
+
const canViewInvites = useCan("members.invites");
|
|
566
|
+
const { member_invites, isPending: isInvitesPending } = useSellerInvites(
|
|
567
|
+
sellerId,
|
|
568
|
+
void 0,
|
|
569
|
+
{ enabled: canViewInvites }
|
|
570
|
+
);
|
|
555
571
|
const rows = useMemo(() => {
|
|
556
572
|
const members = (seller_members ?? []).map((m) => ({
|
|
557
573
|
kind: "member",
|
|
@@ -598,7 +614,7 @@ var StoreMembersDataTable = ({
|
|
|
598
614
|
count: rows.length,
|
|
599
615
|
pageSize: PAGE_SIZE,
|
|
600
616
|
pagination: true,
|
|
601
|
-
isLoading: isMembersPending || isInvitesPending,
|
|
617
|
+
isLoading: isMembersPending || canViewInvites && isInvitesPending,
|
|
602
618
|
queryObject: raw,
|
|
603
619
|
orderBy: [
|
|
604
620
|
{ key: "created_at", label: t("fields.createdAt") },
|
|
@@ -722,7 +738,8 @@ var InviteActions = ({
|
|
|
722
738
|
{
|
|
723
739
|
icon: /* @__PURE__ */ jsx7(ArrowPath, {}),
|
|
724
740
|
label: t("users.resendInvite"),
|
|
725
|
-
onClick: handleResend
|
|
741
|
+
onClick: handleResend,
|
|
742
|
+
permission: "members.invites:edit"
|
|
726
743
|
},
|
|
727
744
|
{
|
|
728
745
|
icon: /* @__PURE__ */ jsx7(LinkIcon, {}),
|
|
@@ -736,7 +753,8 @@ var InviteActions = ({
|
|
|
736
753
|
{
|
|
737
754
|
icon: /* @__PURE__ */ jsx7(Trash, {}),
|
|
738
755
|
label: t("actions.delete"),
|
|
739
|
-
onClick: handleDelete
|
|
756
|
+
onClick: handleDelete,
|
|
757
|
+
permission: "members.invites:manage"
|
|
740
758
|
}
|
|
741
759
|
]
|
|
742
760
|
}
|
|
@@ -773,7 +791,8 @@ var MemberActions = ({
|
|
|
773
791
|
{
|
|
774
792
|
icon: /* @__PURE__ */ jsx7(Trash, {}),
|
|
775
793
|
label: t("actions.remove"),
|
|
776
|
-
onClick: handleRemove
|
|
794
|
+
onClick: handleRemove,
|
|
795
|
+
permission: "members:manage"
|
|
777
796
|
}
|
|
778
797
|
]
|
|
779
798
|
}
|
|
@@ -789,7 +808,7 @@ var StoreMembersSection = ({ sellerId }) => {
|
|
|
789
808
|
return /* @__PURE__ */ jsxs8(Container6, { className: "divide-y p-0", children: [
|
|
790
809
|
/* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
791
810
|
/* @__PURE__ */ jsx8(Heading6, { level: "h2", children: t("users.domain") }),
|
|
792
|
-
/* @__PURE__ */ jsx8(
|
|
811
|
+
/* @__PURE__ */ jsx8(PermissionAction, { permission: "members.invites:edit", children: /* @__PURE__ */ jsx8(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx8(Link, { to: "invite", children: t("stores.members.addUser.action") }) }) })
|
|
793
812
|
] }),
|
|
794
813
|
/* @__PURE__ */ jsx8(StoreMembersDataTable, { sellerId }),
|
|
795
814
|
/* @__PURE__ */ jsx8(DisplayExtensionZone6, { model: "seller", zone: "members", data: sellerId })
|
|
@@ -809,13 +828,23 @@ import {
|
|
|
809
828
|
toast as toast2
|
|
810
829
|
} from "@medusajs/ui";
|
|
811
830
|
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
812
|
-
import {
|
|
831
|
+
import {
|
|
832
|
+
DisplayExtensionZone as DisplayExtensionZone7,
|
|
833
|
+
PermissionAction as PermissionAction2,
|
|
834
|
+
useCan as useCan2,
|
|
835
|
+
usePermissionGate
|
|
836
|
+
} from "@mercurjs/dashboard-shared";
|
|
813
837
|
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
814
838
|
var StoreRequestSection = ({ seller }) => {
|
|
815
839
|
const { t } = useTranslation9();
|
|
816
840
|
const { mutateAsync: approveSeller, isPending: isApproving } = useApproveSeller(seller.id);
|
|
817
841
|
const { mutateAsync: suspendSeller, isPending: isRejecting } = useSuspendSeller(seller.id);
|
|
818
|
-
const
|
|
842
|
+
const canViewMembers = useCan2("members");
|
|
843
|
+
const { seller_members } = useSellerMembers(
|
|
844
|
+
seller.id,
|
|
845
|
+
{ limit: 100 },
|
|
846
|
+
{ enabled: canViewMembers }
|
|
847
|
+
);
|
|
819
848
|
const owner = seller_members?.find(
|
|
820
849
|
(m) => m.is_owner
|
|
821
850
|
);
|
|
@@ -896,6 +925,7 @@ var RequestActionPrompt = ({
|
|
|
896
925
|
const { t } = useTranslation9();
|
|
897
926
|
const [open, setOpen] = useState(false);
|
|
898
927
|
const [note, setNote] = useState("");
|
|
928
|
+
const gate = usePermissionGate("sellers.approval:edit");
|
|
899
929
|
const handleSubmit = async () => {
|
|
900
930
|
try {
|
|
901
931
|
await onConfirm(note);
|
|
@@ -905,7 +935,7 @@ var RequestActionPrompt = ({
|
|
|
905
935
|
}
|
|
906
936
|
};
|
|
907
937
|
return /* @__PURE__ */ jsxs9(Prompt, { open, onOpenChange: setOpen, children: [
|
|
908
|
-
/* @__PURE__ */ jsx9(Prompt.Trigger, { asChild: true, children: trigger }),
|
|
938
|
+
gate.allowed ? /* @__PURE__ */ jsx9(Prompt.Trigger, { asChild: true, children: trigger }) : /* @__PURE__ */ jsx9(PermissionAction2, { permission: "sellers.approval:edit", children: trigger }),
|
|
909
939
|
/* @__PURE__ */ jsxs9(Prompt.Content, { children: [
|
|
910
940
|
/* @__PURE__ */ jsxs9(Prompt.Header, { children: [
|
|
911
941
|
/* @__PURE__ */ jsx9(Prompt.Title, { children: title }),
|
|
@@ -1119,18 +1149,12 @@ var StoreOffersSection = ({ sellerId }) => {
|
|
|
1119
1149
|
|
|
1120
1150
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
1121
1151
|
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1122
|
-
var TABS = ["orders", "offers", "users", "timeOff"];
|
|
1123
1152
|
var TabBar = ({
|
|
1153
|
+
tabs,
|
|
1124
1154
|
activeTab,
|
|
1125
1155
|
onTabChange
|
|
1126
1156
|
}) => {
|
|
1127
1157
|
const { t } = useTranslation12();
|
|
1128
|
-
const labels = {
|
|
1129
|
-
orders: t("orders.domain"),
|
|
1130
|
-
users: t("users.domain"),
|
|
1131
|
-
offers: t("offers.domain"),
|
|
1132
|
-
timeOff: t("store.timeOff.header")
|
|
1133
|
-
};
|
|
1134
1158
|
return /* @__PURE__ */ jsx12(
|
|
1135
1159
|
"div",
|
|
1136
1160
|
{
|
|
@@ -1138,22 +1162,22 @@ var TabBar = ({
|
|
|
1138
1162
|
"aria-label": t("stores.domain"),
|
|
1139
1163
|
className: "mt-1 flex flex-wrap items-center gap-x-2",
|
|
1140
1164
|
"data-testid": "store-detail-tabs",
|
|
1141
|
-
children:
|
|
1142
|
-
const isActive = activeTab ===
|
|
1165
|
+
children: tabs.map(({ id, label }) => {
|
|
1166
|
+
const isActive = activeTab === id;
|
|
1143
1167
|
return /* @__PURE__ */ jsx12(
|
|
1144
1168
|
"button",
|
|
1145
1169
|
{
|
|
1146
1170
|
type: "button",
|
|
1147
|
-
onClick: () => onTabChange(
|
|
1171
|
+
onClick: () => onTabChange(id),
|
|
1148
1172
|
role: "tab",
|
|
1149
1173
|
"aria-selected": isActive,
|
|
1150
|
-
"aria-controls": `store-detail-tab-panel-${
|
|
1151
|
-
id: `store-detail-tab-${
|
|
1152
|
-
"data-testid": `store-detail-tab-${
|
|
1174
|
+
"aria-controls": `store-detail-tab-panel-${id}`,
|
|
1175
|
+
id: `store-detail-tab-${id}`,
|
|
1176
|
+
"data-testid": `store-detail-tab-${id}`,
|
|
1153
1177
|
className: `txt-compact-small-plus rounded-full px-3 py-1.5 transition-colors ${isActive ? "border-ui-border-base bg-ui-bg-base shadow-borders-base text-ui-fg-base" : "text-ui-fg-subtle hover:text-ui-fg-base"}`,
|
|
1154
|
-
children:
|
|
1178
|
+
children: label
|
|
1155
1179
|
},
|
|
1156
|
-
|
|
1180
|
+
id
|
|
1157
1181
|
);
|
|
1158
1182
|
})
|
|
1159
1183
|
}
|
|
@@ -1161,7 +1185,10 @@ var TabBar = ({
|
|
|
1161
1185
|
};
|
|
1162
1186
|
var Root = ({ children }) => {
|
|
1163
1187
|
const { id } = useParams();
|
|
1164
|
-
const
|
|
1188
|
+
const { t } = useTranslation12();
|
|
1189
|
+
const [selectedTab, setActiveTab] = useState3("orders");
|
|
1190
|
+
const { can } = usePermissions();
|
|
1191
|
+
const customTabs = useWidgetTabs("stores.detail.tabs");
|
|
1165
1192
|
const query = useLinkQuery("seller", STORE_DETAIL_FIELDS);
|
|
1166
1193
|
const { seller, isLoading, isError, error } = useSeller(id, query);
|
|
1167
1194
|
if (isLoading || !seller) {
|
|
@@ -1173,46 +1200,56 @@ var Root = ({ children }) => {
|
|
|
1173
1200
|
if (Children3.count(children) > 0) {
|
|
1174
1201
|
return /* @__PURE__ */ jsx12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children });
|
|
1175
1202
|
}
|
|
1203
|
+
const toTab = ({ id: id2, label, Component }) => ({
|
|
1204
|
+
id: id2,
|
|
1205
|
+
label: t(label, { defaultValue: label }),
|
|
1206
|
+
content: /* @__PURE__ */ jsx12(Component, { data: seller })
|
|
1207
|
+
});
|
|
1208
|
+
const tabs = [
|
|
1209
|
+
...customTabs.before.map(toTab),
|
|
1210
|
+
...can("orders") ? [
|
|
1211
|
+
{
|
|
1212
|
+
id: "orders",
|
|
1213
|
+
label: t("orders.domain"),
|
|
1214
|
+
content: /* @__PURE__ */ jsx12(StoreOrdersSection, { sellerId: seller.id })
|
|
1215
|
+
}
|
|
1216
|
+
] : [],
|
|
1217
|
+
...can("offers") ? [
|
|
1218
|
+
{
|
|
1219
|
+
id: "offers",
|
|
1220
|
+
label: t("offers.domain"),
|
|
1221
|
+
content: /* @__PURE__ */ jsx12(StoreOffersSection, { sellerId: seller.id })
|
|
1222
|
+
}
|
|
1223
|
+
] : [],
|
|
1224
|
+
...can("members") ? [
|
|
1225
|
+
{
|
|
1226
|
+
id: "users",
|
|
1227
|
+
label: t("users.domain"),
|
|
1228
|
+
content: /* @__PURE__ */ jsx12(StoreMembersSection, { sellerId: seller.id })
|
|
1229
|
+
}
|
|
1230
|
+
] : [],
|
|
1231
|
+
{
|
|
1232
|
+
id: "timeOff",
|
|
1233
|
+
label: t("store.timeOff.header"),
|
|
1234
|
+
content: /* @__PURE__ */ jsx12(StoreConfigurationSection, { seller })
|
|
1235
|
+
},
|
|
1236
|
+
...customTabs.after.map(toTab)
|
|
1237
|
+
];
|
|
1238
|
+
const activeTab = tabs.find((tab) => tab.id === selectedTab) ?? tabs[0];
|
|
1176
1239
|
return /* @__PURE__ */ jsxs12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children: [
|
|
1177
1240
|
/* @__PURE__ */ jsx12(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs12(WidgetZone, { id: "stores.detail.main", data: seller, children: [
|
|
1178
1241
|
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && !seller.rejected_at && /* @__PURE__ */ jsx12(StoreRequestSection, { seller }),
|
|
1179
1242
|
/* @__PURE__ */ jsx12(StoreGeneralSection, { seller }),
|
|
1180
|
-
/* @__PURE__ */ jsx12(TabBar, { activeTab, onTabChange: setActiveTab }),
|
|
1181
|
-
|
|
1182
|
-
"div",
|
|
1183
|
-
{
|
|
1184
|
-
role: "tabpanel",
|
|
1185
|
-
id: "store-detail-tab-panel-orders",
|
|
1186
|
-
"aria-labelledby": "store-detail-tab-orders",
|
|
1187
|
-
children: /* @__PURE__ */ jsx12(StoreOrdersSection, { sellerId: seller.id })
|
|
1188
|
-
}
|
|
1189
|
-
),
|
|
1190
|
-
activeTab === "users" && /* @__PURE__ */ jsx12(
|
|
1243
|
+
/* @__PURE__ */ jsx12(TabBar, { tabs, activeTab: activeTab.id, onTabChange: setActiveTab }),
|
|
1244
|
+
/* @__PURE__ */ jsx12(
|
|
1191
1245
|
"div",
|
|
1192
1246
|
{
|
|
1193
1247
|
role: "tabpanel",
|
|
1194
|
-
id:
|
|
1195
|
-
"aria-labelledby":
|
|
1196
|
-
children:
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
activeTab === "offers" && /* @__PURE__ */ jsx12(
|
|
1200
|
-
"div",
|
|
1201
|
-
{
|
|
1202
|
-
role: "tabpanel",
|
|
1203
|
-
id: "store-detail-tab-panel-offers",
|
|
1204
|
-
"aria-labelledby": "store-detail-tab-offers",
|
|
1205
|
-
children: /* @__PURE__ */ jsx12(StoreOffersSection, { sellerId: seller.id })
|
|
1206
|
-
}
|
|
1207
|
-
),
|
|
1208
|
-
activeTab === "timeOff" && /* @__PURE__ */ jsx12(
|
|
1209
|
-
"div",
|
|
1210
|
-
{
|
|
1211
|
-
role: "tabpanel",
|
|
1212
|
-
id: "store-detail-tab-panel-timeOff",
|
|
1213
|
-
"aria-labelledby": "store-detail-tab-timeOff",
|
|
1214
|
-
children: /* @__PURE__ */ jsx12(StoreConfigurationSection, { seller })
|
|
1215
|
-
}
|
|
1248
|
+
id: `store-detail-tab-panel-${activeTab.id}`,
|
|
1249
|
+
"aria-labelledby": `store-detail-tab-${activeTab.id}`,
|
|
1250
|
+
children: activeTab.content
|
|
1251
|
+
},
|
|
1252
|
+
activeTab.id
|
|
1216
1253
|
)
|
|
1217
1254
|
] }) }),
|
|
1218
1255
|
/* @__PURE__ */ jsx12(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs12(WidgetZone, { id: "stores.detail.side", data: seller, children: [
|
|
@@ -13,7 +13,10 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SU36MZXC.js";
|
|
17
|
+
import {
|
|
18
|
+
ActionMenu
|
|
19
|
+
} from "./chunk-3UOYBH5O.js";
|
|
17
20
|
import {
|
|
18
21
|
useStockLocations
|
|
19
22
|
} from "./chunk-H5E3CGD7.js";
|
|
@@ -24,9 +27,6 @@ import {
|
|
|
24
27
|
import {
|
|
25
28
|
useSellers
|
|
26
29
|
} from "./chunk-HRMANL53.js";
|
|
27
|
-
import {
|
|
28
|
-
ActionMenu
|
|
29
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
30
30
|
|
|
31
31
|
// src/pages/reservations/reservation-list/reservation-list.tsx
|
|
32
32
|
import { Children as Children2 } from "react";
|
|
@@ -110,6 +110,7 @@ var ReservationActions = ({
|
|
|
110
110
|
{
|
|
111
111
|
label: t("actions.edit"),
|
|
112
112
|
onClick: handleEdit,
|
|
113
|
+
permission: "reservations:edit",
|
|
113
114
|
icon: /* @__PURE__ */ jsx(PencilSquare, {})
|
|
114
115
|
}
|
|
115
116
|
]
|
|
@@ -119,6 +120,7 @@ var ReservationActions = ({
|
|
|
119
120
|
{
|
|
120
121
|
label: t("actions.delete"),
|
|
121
122
|
onClick: handleDelete,
|
|
123
|
+
permission: "reservations:manage",
|
|
122
124
|
icon: /* @__PURE__ */ jsx(Trash, {})
|
|
123
125
|
}
|
|
124
126
|
]
|
|
@@ -192,16 +194,24 @@ var useReservationTableColumns = () => {
|
|
|
192
194
|
};
|
|
193
195
|
|
|
194
196
|
// src/pages/reservations/reservation-list/components/reservation-list-table/use-reservation-table-filters.tsx
|
|
197
|
+
import { usePermissions } from "@mercurjs/dashboard-shared";
|
|
195
198
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
196
199
|
var useReservationTableFilters = () => {
|
|
197
200
|
const { t } = useTranslation3();
|
|
198
|
-
const {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
const { can } = usePermissions();
|
|
202
|
+
const { stock_locations } = useStockLocations(
|
|
203
|
+
{
|
|
204
|
+
limit: 1e3
|
|
205
|
+
},
|
|
206
|
+
{ enabled: can("stock_locations") }
|
|
207
|
+
);
|
|
208
|
+
const { sellers } = useSellers(
|
|
209
|
+
{
|
|
210
|
+
limit: 1e3,
|
|
211
|
+
fields: "id,name"
|
|
212
|
+
},
|
|
213
|
+
{ enabled: can("sellers") }
|
|
214
|
+
);
|
|
205
215
|
const filters = [];
|
|
206
216
|
filters.push({
|
|
207
217
|
type: "string",
|
|
@@ -291,7 +301,7 @@ var ReservationListTitle = () => {
|
|
|
291
301
|
};
|
|
292
302
|
var ReservationListCreateButton = () => {
|
|
293
303
|
const { t } = useTranslation4();
|
|
294
|
-
return /* @__PURE__ */ jsx3(PermissionGuard, {
|
|
304
|
+
return /* @__PURE__ */ jsx3(PermissionGuard, { permission: "reservations:edit", children: /* @__PURE__ */ jsx3(Button, { variant: "secondary", size: "small", asChild: true, children: /* @__PURE__ */ jsx3(Link, { to: "create", children: t("actions.create") }) }) });
|
|
295
305
|
};
|
|
296
306
|
var ReservationListActions = ({ children }) => {
|
|
297
307
|
return /* @__PURE__ */ jsx3("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx3(ReservationListCreateButton, {}) });
|
|
@@ -353,7 +363,8 @@ var ReservationListDataTable = () => {
|
|
|
353
363
|
message: t("reservations.list.noRecordsMessage"),
|
|
354
364
|
action: {
|
|
355
365
|
to: "create",
|
|
356
|
-
label: t("actions.create")
|
|
366
|
+
label: t("actions.create"),
|
|
367
|
+
permission: "reservations:edit"
|
|
357
368
|
}
|
|
358
369
|
}
|
|
359
370
|
}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-HC25LNX7.js";
|
|
16
16
|
import {
|
|
17
17
|
useShippingOptionTableQuery
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EBAFVGM3.js";
|
|
19
19
|
import {
|
|
20
20
|
useProductTypeTableQuery
|
|
21
21
|
} from "./chunk-VOHEQ7B5.js";
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
} from "./chunk-JHIMVLB2.js";
|
|
28
28
|
import {
|
|
29
29
|
useProductTableColumns
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ONTZADVX.js";
|
|
31
31
|
import {
|
|
32
32
|
useProductTableFilters
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-63JSBXD5.js";
|
|
34
34
|
import {
|
|
35
35
|
useProductTableQuery
|
|
36
36
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
_DataTable,
|
|
43
43
|
useDataTable
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-SU36MZXC.js";
|
|
45
45
|
import {
|
|
46
46
|
useProductTypes
|
|
47
47
|
} from "./chunk-AEBQQ2EG.js";
|
|
@@ -58,6 +58,7 @@ import {
|
|
|
58
58
|
|
|
59
59
|
// src/pages/tax-regions/common/components/target-form/target-form.tsx
|
|
60
60
|
import { Button, Checkbox } from "@medusajs/ui";
|
|
61
|
+
import { SectionNoAccess, isForbidden, useCan } from "@mercurjs/dashboard-shared";
|
|
61
62
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
62
63
|
import {
|
|
63
64
|
createColumnHelper as createColumnHelper2
|
|
@@ -209,10 +210,12 @@ var ProductTable = ({
|
|
|
209
210
|
pageSize: PAGE_SIZE,
|
|
210
211
|
prefix: PREFIX_PRODUCT
|
|
211
212
|
});
|
|
213
|
+
const canViewTargets = useCan("products");
|
|
212
214
|
const { products, count, isLoading, isError, error } = useProducts(
|
|
213
215
|
searchParams,
|
|
214
216
|
{
|
|
215
|
-
placeholderData: keepPreviousData
|
|
217
|
+
placeholderData: keepPreviousData,
|
|
218
|
+
enabled: canViewTargets
|
|
216
219
|
}
|
|
217
220
|
);
|
|
218
221
|
const updater = (value) => {
|
|
@@ -247,6 +250,9 @@ var ProductTable = ({
|
|
|
247
250
|
pageSize: PAGE_SIZE,
|
|
248
251
|
prefix: PREFIX_PRODUCT
|
|
249
252
|
});
|
|
253
|
+
if (!canViewTargets || isForbidden(error)) {
|
|
254
|
+
return /* @__PURE__ */ jsx2(SectionNoAccess, {});
|
|
255
|
+
}
|
|
250
256
|
if (isError) {
|
|
251
257
|
throw error;
|
|
252
258
|
}
|
|
@@ -319,10 +325,12 @@ var ProductTypeTable = ({
|
|
|
319
325
|
pageSize: PAGE_SIZE,
|
|
320
326
|
prefix: PREFIX_PRODUCT_TYPE
|
|
321
327
|
});
|
|
328
|
+
const canViewTargets = useCan("product_types");
|
|
322
329
|
const { product_types, count, isLoading, isError, error } = useProductTypes(
|
|
323
330
|
searchParams,
|
|
324
331
|
{
|
|
325
|
-
placeholderData: keepPreviousData
|
|
332
|
+
placeholderData: keepPreviousData,
|
|
333
|
+
enabled: canViewTargets
|
|
326
334
|
}
|
|
327
335
|
);
|
|
328
336
|
const updater = (value) => {
|
|
@@ -357,6 +365,9 @@ var ProductTypeTable = ({
|
|
|
357
365
|
pageSize: PAGE_SIZE,
|
|
358
366
|
prefix: PREFIX_PRODUCT_TYPE
|
|
359
367
|
});
|
|
368
|
+
if (!canViewTargets || isForbidden(error)) {
|
|
369
|
+
return /* @__PURE__ */ jsx2(SectionNoAccess, {});
|
|
370
|
+
}
|
|
360
371
|
if (isError) {
|
|
361
372
|
throw error;
|
|
362
373
|
}
|
|
@@ -429,13 +440,15 @@ var ShippingOptionTable = ({
|
|
|
429
440
|
pageSize: PAGE_SIZE,
|
|
430
441
|
prefix: PREFIX_SHIPPING_OPTION
|
|
431
442
|
});
|
|
443
|
+
const canViewTargets = useCan("shipping_options");
|
|
432
444
|
const { shipping_options, count, isLoading, isError, error } = useShippingOptions(
|
|
433
445
|
{
|
|
434
446
|
...searchParams,
|
|
435
447
|
fields: "+service_zone.fulfillment_set.location.*"
|
|
436
448
|
},
|
|
437
449
|
{
|
|
438
|
-
placeholderData: keepPreviousData
|
|
450
|
+
placeholderData: keepPreviousData,
|
|
451
|
+
enabled: canViewTargets
|
|
439
452
|
}
|
|
440
453
|
);
|
|
441
454
|
const updater = (value) => {
|
|
@@ -454,9 +467,13 @@ var ShippingOptionTable = ({
|
|
|
454
467
|
setIntermediate([...filteredIntermediate, ...newShippingOptions]);
|
|
455
468
|
setRowSelection(state);
|
|
456
469
|
};
|
|
457
|
-
const
|
|
458
|
-
|
|
459
|
-
|
|
470
|
+
const canViewLocations = useCan("stock_locations");
|
|
471
|
+
const { stock_locations } = useStockLocations(
|
|
472
|
+
{
|
|
473
|
+
limit: 1e3
|
|
474
|
+
},
|
|
475
|
+
{ enabled: canViewLocations }
|
|
476
|
+
);
|
|
460
477
|
const filters = useShippingOptionTableFilters(stock_locations || []);
|
|
461
478
|
const columns = useShippingOptionColumns();
|
|
462
479
|
const { table } = useDataTable({
|
|
@@ -473,6 +490,9 @@ var ShippingOptionTable = ({
|
|
|
473
490
|
pageSize: PAGE_SIZE,
|
|
474
491
|
prefix: PREFIX_SHIPPING_OPTION
|
|
475
492
|
});
|
|
493
|
+
if (!canViewTargets || isForbidden(error)) {
|
|
494
|
+
return /* @__PURE__ */ jsx2(SectionNoAccess, {});
|
|
495
|
+
}
|
|
476
496
|
if (isError) {
|
|
477
497
|
throw error;
|
|
478
498
|
}
|
|
@@ -555,6 +575,7 @@ var useCleanupSearchParams = (prefix) => {
|
|
|
555
575
|
// src/pages/tax-regions/common/components/target-item/target-item.tsx
|
|
556
576
|
import { XMarkMini } from "@medusajs/icons";
|
|
557
577
|
import { IconButton, Text } from "@medusajs/ui";
|
|
578
|
+
import { useCan as useCan2 } from "@mercurjs/dashboard-shared";
|
|
558
579
|
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
559
580
|
var TargetItem = ({
|
|
560
581
|
index,
|
|
@@ -562,13 +583,14 @@ var TargetItem = ({
|
|
|
562
583
|
onRemove,
|
|
563
584
|
value
|
|
564
585
|
}) => {
|
|
586
|
+
const canViewProducts = useCan2("products");
|
|
565
587
|
const { product } = useProduct(
|
|
566
588
|
value,
|
|
567
589
|
{ fields: "id,title" },
|
|
568
|
-
{ enabled: !label }
|
|
590
|
+
{ enabled: !label && canViewProducts }
|
|
569
591
|
);
|
|
570
592
|
return /* @__PURE__ */ jsxs2("div", { className: "bg-ui-bg-field-component shadow-borders-base flex items-center justify-between gap-2 rounded-md px-2 py-0.5", children: [
|
|
571
|
-
/* @__PURE__ */ jsx3(Text, { size: "small", leading: "compact", children: label || product?.title }),
|
|
593
|
+
/* @__PURE__ */ jsx3(Text, { size: "small", leading: "compact", children: label || product?.title || value }),
|
|
572
594
|
/* @__PURE__ */ jsx3(
|
|
573
595
|
IconButton,
|
|
574
596
|
{
|