@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
|
@@ -13,16 +13,16 @@ 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";
|
|
20
23
|
import {
|
|
21
24
|
useSellers
|
|
22
25
|
} from "./chunk-HRMANL53.js";
|
|
23
|
-
import {
|
|
24
|
-
ActionMenu
|
|
25
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
26
26
|
import {
|
|
27
27
|
useDeleteInventoryItem,
|
|
28
28
|
useInventoryItems
|
|
@@ -79,7 +79,8 @@ var InventoryActions = ({ item }) => {
|
|
|
79
79
|
{
|
|
80
80
|
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
81
81
|
label: t("actions.edit"),
|
|
82
|
-
to: `${item.id}/edit
|
|
82
|
+
to: `${item.id}/edit`,
|
|
83
|
+
permission: "inventory_items:edit"
|
|
83
84
|
}
|
|
84
85
|
]
|
|
85
86
|
},
|
|
@@ -88,7 +89,8 @@ var InventoryActions = ({ item }) => {
|
|
|
88
89
|
{
|
|
89
90
|
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
90
91
|
label: t("actions.delete"),
|
|
91
|
-
onClick: handleDelete
|
|
92
|
+
onClick: handleDelete,
|
|
93
|
+
permission: "inventory_items:manage"
|
|
92
94
|
}
|
|
93
95
|
]
|
|
94
96
|
}
|
|
@@ -246,13 +248,21 @@ var useInventoryTableColumns = () => {
|
|
|
246
248
|
};
|
|
247
249
|
|
|
248
250
|
// src/pages/inventory/inventory-list/components/use-inventory-table-filters.tsx
|
|
251
|
+
import { usePermissions } from "@mercurjs/dashboard-shared";
|
|
249
252
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
250
253
|
var useInventoryTableFilters = () => {
|
|
251
254
|
const { t } = useTranslation3();
|
|
252
|
-
const {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
const { can } = usePermissions();
|
|
256
|
+
const { stock_locations } = useStockLocations(
|
|
257
|
+
{
|
|
258
|
+
limit: 1e3
|
|
259
|
+
},
|
|
260
|
+
{ enabled: can("stock_locations") }
|
|
261
|
+
);
|
|
262
|
+
const { sellers } = useSellers(
|
|
263
|
+
{ limit: 1e3 },
|
|
264
|
+
{ enabled: can("sellers") }
|
|
265
|
+
);
|
|
256
266
|
const filters = [];
|
|
257
267
|
filters.push({
|
|
258
268
|
type: "string",
|
|
@@ -467,6 +477,7 @@ var InventoryListDataTable = () => {
|
|
|
467
477
|
);
|
|
468
478
|
},
|
|
469
479
|
label: t("inventory.stock.action"),
|
|
480
|
+
permission: "inventory_items:edit",
|
|
470
481
|
shortcut: "i"
|
|
471
482
|
}
|
|
472
483
|
]
|
|
@@ -3,25 +3,31 @@ import {
|
|
|
3
3
|
} from "./chunk-THHRRYRS.js";
|
|
4
4
|
import {
|
|
5
5
|
ActionMenu
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3UOYBH5O.js";
|
|
7
7
|
|
|
8
8
|
// src/components/data-table/data-table.tsx
|
|
9
|
+
import { usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
10
|
+
import {
|
|
11
|
+
usePermittedCommands
|
|
12
|
+
} from "@mercurjs/dashboard-shared";
|
|
9
13
|
import {
|
|
10
14
|
DataTable as UiDataTable,
|
|
11
15
|
useDataTable,
|
|
12
16
|
Heading,
|
|
13
17
|
Text,
|
|
14
|
-
Button
|
|
18
|
+
Button,
|
|
19
|
+
Tooltip
|
|
15
20
|
} from "@medusajs/ui";
|
|
16
21
|
import React, { useCallback, useMemo } from "react";
|
|
17
22
|
import { useTranslation } from "react-i18next";
|
|
18
23
|
import { Link, useNavigate, useSearchParams } from "react-router-dom";
|
|
19
24
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
+
var EMPTY_COMMANDS = [];
|
|
20
26
|
var DataTable = ({
|
|
21
27
|
data = [],
|
|
22
28
|
columns,
|
|
23
29
|
filters,
|
|
24
|
-
commands,
|
|
30
|
+
commands: declaredCommands,
|
|
25
31
|
action,
|
|
26
32
|
actions,
|
|
27
33
|
actionMenu,
|
|
@@ -54,6 +60,8 @@ var DataTable = ({
|
|
|
54
60
|
const { t } = useTranslation();
|
|
55
61
|
const enableFiltering = filters && filters.length > 0;
|
|
56
62
|
const showFilterMenu = enableFilterMenu !== void 0 ? enableFilterMenu : enableFiltering;
|
|
63
|
+
const permittedCommands = usePermittedCommands(declaredCommands ?? EMPTY_COMMANDS);
|
|
64
|
+
const commands = declaredCommands ? permittedCommands : void 0;
|
|
57
65
|
const enableCommands = commands && commands.length > 0;
|
|
58
66
|
const enableSorting = columns.some((column) => column.enableSorting);
|
|
59
67
|
const [columnVisibility, setColumnVisibility] = React.useState(initialColumnVisibility);
|
|
@@ -324,14 +332,19 @@ var useDataTableTranslations = () => {
|
|
|
324
332
|
var DataTableAction = ({
|
|
325
333
|
label,
|
|
326
334
|
disabled,
|
|
335
|
+
permission,
|
|
327
336
|
...props
|
|
328
337
|
}) => {
|
|
338
|
+
const gate = usePermissionGate(permission);
|
|
329
339
|
const buttonProps = {
|
|
330
340
|
size: "small",
|
|
331
341
|
disabled: disabled ?? false,
|
|
332
342
|
type: "button",
|
|
333
343
|
variant: "secondary"
|
|
334
344
|
};
|
|
345
|
+
if (gate.denied) {
|
|
346
|
+
return /* @__PURE__ */ jsx(Tooltip, { content: gate.tooltip, children: /* @__PURE__ */ jsx("span", { className: "inline-flex", children: /* @__PURE__ */ jsx(Button, { ...buttonProps, disabled: true, children: label }) }) });
|
|
347
|
+
}
|
|
335
348
|
if ("to" in props) {
|
|
336
349
|
return /* @__PURE__ */ jsx(Button, { ...buttonProps, asChild: true, children: /* @__PURE__ */ jsx(Link, { to: props.to, children: label }) });
|
|
337
350
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDebouncedSearch
|
|
3
3
|
} from "./chunk-PYDRHQTY.js";
|
|
4
|
+
import {
|
|
5
|
+
ConditionalTooltip
|
|
6
|
+
} from "./chunk-LAVHRER2.js";
|
|
4
7
|
import {
|
|
5
8
|
useProductCategories
|
|
6
9
|
} from "./chunk-SQ7J4KTS.js";
|
|
@@ -17,6 +20,7 @@ import {
|
|
|
17
20
|
XMarkMini
|
|
18
21
|
} from "@medusajs/icons";
|
|
19
22
|
import { Divider, Text, clx } from "@medusajs/ui";
|
|
23
|
+
import { usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
20
24
|
import { Popover as RadixPopover } from "radix-ui";
|
|
21
25
|
import {
|
|
22
26
|
Fragment,
|
|
@@ -32,7 +36,8 @@ import { Trans, useTranslation } from "react-i18next";
|
|
|
32
36
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
37
|
var TABLUAR_NUM_WIDTH = 8;
|
|
34
38
|
var TAG_BASE_WIDTH = 28;
|
|
35
|
-
var CategoryCombobox = forwardRef(({ value, onChange, className, isSingleSelect, ...props }, ref) => {
|
|
39
|
+
var CategoryCombobox = forwardRef(({ value, onChange, className, isSingleSelect, disabled, ...props }, ref) => {
|
|
40
|
+
const categoriesGate = usePermissionGate("product_categories:view");
|
|
36
41
|
const innerRef = useRef(null);
|
|
37
42
|
useImperativeHandle(
|
|
38
43
|
ref,
|
|
@@ -50,7 +55,7 @@ var CategoryCombobox = forwardRef(({ value, onChange, className, isSingleSelect,
|
|
|
50
55
|
include_descendants_tree: !searchValue
|
|
51
56
|
},
|
|
52
57
|
{
|
|
53
|
-
enabled: open
|
|
58
|
+
enabled: open && categoriesGate.allowed
|
|
54
59
|
}
|
|
55
60
|
);
|
|
56
61
|
const [showLoading, setShowLoading] = useState(false);
|
|
@@ -185,81 +190,90 @@ var CategoryCombobox = forwardRef(({ value, onChange, className, isSingleSelect,
|
|
|
185
190
|
}
|
|
186
191
|
return /* @__PURE__ */ jsxs(RadixPopover.Root, { open, onOpenChange: handleOpenChange, children: [
|
|
187
192
|
/* @__PURE__ */ jsx(
|
|
188
|
-
|
|
193
|
+
ConditionalTooltip,
|
|
189
194
|
{
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
children: /* @__PURE__ */ jsxs(
|
|
197
|
-
"div",
|
|
195
|
+
showTooltip: categoriesGate.denied,
|
|
196
|
+
content: categoriesGate.tooltip,
|
|
197
|
+
children: /* @__PURE__ */ jsx(
|
|
198
|
+
RadixPopover.Anchor,
|
|
198
199
|
{
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
"has-[input:focus]:shadow-borders-interactive-with-active",
|
|
205
|
-
"has-[:invalid]:shadow-borders-error has-[[aria-invalid=true]]:shadow-borders-error",
|
|
206
|
-
"has-[:disabled]:bg-ui-bg-disabled has-[:disabled]:text-ui-fg-disabled has-[:disabled]:cursor-not-allowed",
|
|
207
|
-
{
|
|
208
|
-
"shadow-borders-interactive-with-active": open
|
|
209
|
-
},
|
|
210
|
-
className
|
|
211
|
-
),
|
|
212
|
-
style: {
|
|
213
|
-
"--tag-width": `${tagWidth}px`
|
|
200
|
+
asChild: true,
|
|
201
|
+
onClick: () => {
|
|
202
|
+
if (!open && categoriesGate.allowed) {
|
|
203
|
+
handleOpenChange(true);
|
|
204
|
+
}
|
|
214
205
|
},
|
|
215
|
-
children:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
]
|
|
229
|
-
}
|
|
230
|
-
),
|
|
231
|
-
showSelected && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-y-0 start-[calc(var(--tag-width)+8px)] flex size-full items-center", children: /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: t("general.selected") }) }),
|
|
232
|
-
/* @__PURE__ */ jsx(
|
|
233
|
-
"input",
|
|
234
|
-
{
|
|
235
|
-
ref: innerRef,
|
|
236
|
-
value: searchValue,
|
|
237
|
-
onChange: (e) => {
|
|
238
|
-
onSearchValueChange(e.target.value);
|
|
206
|
+
children: /* @__PURE__ */ jsxs(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
"data-anchor": true,
|
|
210
|
+
className: clx(
|
|
211
|
+
"relative flex cursor-pointer items-center gap-x-2 overflow-hidden",
|
|
212
|
+
"h-8 w-full rounded-md",
|
|
213
|
+
"bg-ui-bg-field transition-fg shadow-borders-base",
|
|
214
|
+
"has-[input:focus]:shadow-borders-interactive-with-active",
|
|
215
|
+
"has-[:invalid]:shadow-borders-error has-[[aria-invalid=true]]:shadow-borders-error",
|
|
216
|
+
"has-[:disabled]:bg-ui-bg-disabled has-[:disabled]:text-ui-fg-disabled has-[:disabled]:cursor-not-allowed",
|
|
217
|
+
{
|
|
218
|
+
"shadow-borders-interactive-with-active": open
|
|
239
219
|
},
|
|
240
|
-
className
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
220
|
+
className
|
|
221
|
+
),
|
|
222
|
+
style: {
|
|
223
|
+
"--tag-width": `${tagWidth}px`
|
|
224
|
+
},
|
|
225
|
+
children: [
|
|
226
|
+
showTag && /* @__PURE__ */ jsxs(
|
|
227
|
+
"button",
|
|
245
228
|
{
|
|
246
|
-
"
|
|
247
|
-
|
|
229
|
+
type: "button",
|
|
230
|
+
onClick: (e) => {
|
|
231
|
+
e.preventDefault();
|
|
232
|
+
onChange([]);
|
|
233
|
+
},
|
|
234
|
+
className: "bg-ui-bg-base hover:bg-ui-bg-base-hover txt-compact-small-plus text-ui-fg-subtle focus-within:border-ui-fg-interactive transition-fg absolute start-0.5 top-0.5 flex h-[28px] items-center rounded-[4px] border py-[3px] ps-1.5 pe-1 outline-none",
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ jsx("span", { className: "tabular-nums", children: value.length }),
|
|
237
|
+
/* @__PURE__ */ jsx(XMarkMini, { className: "text-ui-fg-muted" })
|
|
238
|
+
]
|
|
248
239
|
}
|
|
249
240
|
),
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
241
|
+
showSelected && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-y-0 start-[calc(var(--tag-width)+8px)] flex size-full items-center", children: /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: t("general.selected") }) }),
|
|
242
|
+
/* @__PURE__ */ jsx(
|
|
243
|
+
"input",
|
|
244
|
+
{
|
|
245
|
+
ref: innerRef,
|
|
246
|
+
value: searchValue,
|
|
247
|
+
onChange: (e) => {
|
|
248
|
+
onSearchValueChange(e.target.value);
|
|
249
|
+
},
|
|
250
|
+
className: clx(
|
|
251
|
+
"txt-compact-small size-full cursor-pointer appearance-none bg-transparent pe-8 outline-none",
|
|
252
|
+
"hover:bg-ui-bg-field-hover",
|
|
253
|
+
"focus:cursor-text",
|
|
254
|
+
"placeholder:text-ui-fg-muted",
|
|
255
|
+
{
|
|
256
|
+
"ps-2": !showTag,
|
|
257
|
+
"ps-[calc(var(--tag-width)+8px)]": showTag
|
|
258
|
+
}
|
|
259
|
+
),
|
|
260
|
+
...props,
|
|
261
|
+
disabled: disabled || categoriesGate.denied
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
/* @__PURE__ */ jsx(
|
|
265
|
+
"button",
|
|
266
|
+
{
|
|
267
|
+
type: "button",
|
|
268
|
+
disabled: disabled || categoriesGate.denied,
|
|
269
|
+
onClick: () => handleOpenChange(true),
|
|
270
|
+
className: "text-ui-fg-muted transition-fg hover:bg-ui-bg-field-hover absolute end-0 flex size-8 items-center justify-center rounded-r outline-none",
|
|
271
|
+
children: /* @__PURE__ */ jsx(TrianglesMini, { className: "text-ui-fg-muted" })
|
|
272
|
+
}
|
|
273
|
+
)
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
)
|
|
263
277
|
}
|
|
264
278
|
)
|
|
265
279
|
}
|
|
@@ -428,6 +442,7 @@ import {
|
|
|
428
442
|
TrianglesMini as TrianglesMini2
|
|
429
443
|
} from "@medusajs/icons";
|
|
430
444
|
import { Divider as Divider2, Text as Text2, clx as clx2 } from "@medusajs/ui";
|
|
445
|
+
import { isForbidden, usePermissionGate as usePermissionGate2 } from "@mercurjs/dashboard-shared";
|
|
431
446
|
import { Popover as RadixPopover2 } from "radix-ui";
|
|
432
447
|
import {
|
|
433
448
|
Fragment as Fragment2,
|
|
@@ -440,7 +455,9 @@ import {
|
|
|
440
455
|
} from "react";
|
|
441
456
|
import { Trans as Trans2, useTranslation as useTranslation2 } from "react-i18next";
|
|
442
457
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
443
|
-
var SingleCategoryCombobox = forwardRef2(({ value, onChange, className, ...props }, ref) => {
|
|
458
|
+
var SingleCategoryCombobox = forwardRef2(({ value, onChange, className, disabled, ...props }, ref) => {
|
|
459
|
+
const categoriesGate = usePermissionGate2("product_categories:view");
|
|
460
|
+
const canViewCategories = categoriesGate.allowed;
|
|
444
461
|
const innerRef = useRef2(null);
|
|
445
462
|
useImperativeHandle2(
|
|
446
463
|
ref,
|
|
@@ -458,14 +475,14 @@ var SingleCategoryCombobox = forwardRef2(({ value, onChange, className, ...props
|
|
|
458
475
|
include_descendants_tree: !searchValue ? true : false
|
|
459
476
|
},
|
|
460
477
|
{
|
|
461
|
-
enabled: open
|
|
478
|
+
enabled: open && canViewCategories
|
|
462
479
|
}
|
|
463
480
|
);
|
|
464
481
|
const { product_categories: selectedCategories } = useProductCategories(
|
|
465
482
|
{ id: value ? [value] : [] },
|
|
466
|
-
{ enabled: !!value }
|
|
483
|
+
{ enabled: !!value && canViewCategories }
|
|
467
484
|
);
|
|
468
|
-
const selectedLabel = selectedCategories?.[0]?.name ??
|
|
485
|
+
const selectedLabel = selectedCategories?.[0]?.name ?? value;
|
|
469
486
|
const [showLoading, setShowLoading] = useState2(false);
|
|
470
487
|
useEffect2(() => {
|
|
471
488
|
let timeoutId;
|
|
@@ -517,6 +534,9 @@ var SingleCategoryCombobox = forwardRef2(({ value, onChange, className, ...props
|
|
|
517
534
|
[value, onChange, handleOpenChange]
|
|
518
535
|
);
|
|
519
536
|
function handleOpenChange(open2) {
|
|
537
|
+
if (open2 && !canViewCategories) {
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
520
540
|
if (!open2) {
|
|
521
541
|
onSearchValueChange("");
|
|
522
542
|
setLevel([]);
|
|
@@ -584,67 +604,76 @@ var SingleCategoryCombobox = forwardRef2(({ value, onChange, className, ...props
|
|
|
584
604
|
window.removeEventListener("keydown", handleKeyDown);
|
|
585
605
|
};
|
|
586
606
|
}, [handleKeyDown]);
|
|
587
|
-
if (isError) {
|
|
607
|
+
if (isError && !isForbidden(error)) {
|
|
588
608
|
throw error;
|
|
589
609
|
}
|
|
590
610
|
return /* @__PURE__ */ jsxs2(RadixPopover2.Root, { open, onOpenChange: handleOpenChange, children: [
|
|
591
611
|
/* @__PURE__ */ jsx2(
|
|
592
|
-
|
|
612
|
+
ConditionalTooltip,
|
|
593
613
|
{
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
children: /* @__PURE__ */ jsxs2(
|
|
601
|
-
"div",
|
|
614
|
+
showTooltip: categoriesGate.denied,
|
|
615
|
+
content: categoriesGate.tooltip,
|
|
616
|
+
children: /* @__PURE__ */ jsx2(
|
|
617
|
+
RadixPopover2.Anchor,
|
|
602
618
|
{
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
"
|
|
619
|
+
asChild: true,
|
|
620
|
+
onClick: () => {
|
|
621
|
+
if (!open) {
|
|
622
|
+
handleOpenChange(true);
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
children: /* @__PURE__ */ jsxs2(
|
|
626
|
+
"div",
|
|
611
627
|
{
|
|
612
|
-
"
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
value: searchValue,
|
|
623
|
-
onChange: (e) => {
|
|
624
|
-
onSearchValueChange(e.target.value);
|
|
628
|
+
"data-anchor": true,
|
|
629
|
+
className: clx2(
|
|
630
|
+
"relative flex cursor-pointer items-center gap-x-2 overflow-hidden",
|
|
631
|
+
"h-8 w-full rounded-md",
|
|
632
|
+
"bg-ui-bg-field transition-fg shadow-borders-base",
|
|
633
|
+
"has-[input:focus]:shadow-borders-interactive-with-active",
|
|
634
|
+
"has-[:invalid]:shadow-borders-error has-[[aria-invalid=true]]:shadow-borders-error",
|
|
635
|
+
"has-[:disabled]:bg-ui-bg-disabled has-[:disabled]:text-ui-fg-disabled has-[:disabled]:cursor-not-allowed",
|
|
636
|
+
{
|
|
637
|
+
"shadow-borders-interactive-with-active": open
|
|
625
638
|
},
|
|
626
|
-
className
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
639
|
+
className
|
|
640
|
+
),
|
|
641
|
+
children: [
|
|
642
|
+
hideInput && /* @__PURE__ */ jsx2("div", { className: "pointer-events-none absolute inset-y-0 start-2 flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", className: "truncate", children: selectedLabel }) }),
|
|
643
|
+
/* @__PURE__ */ jsx2(
|
|
644
|
+
"input",
|
|
631
645
|
{
|
|
632
|
-
|
|
646
|
+
ref: innerRef,
|
|
647
|
+
value: searchValue,
|
|
648
|
+
onChange: (e) => {
|
|
649
|
+
onSearchValueChange(e.target.value);
|
|
650
|
+
},
|
|
651
|
+
className: clx2(
|
|
652
|
+
"txt-compact-small size-full cursor-pointer appearance-none bg-transparent ps-2 pe-8 outline-none",
|
|
653
|
+
"hover:bg-ui-bg-field-hover",
|
|
654
|
+
"focus:cursor-text",
|
|
655
|
+
"placeholder:text-ui-fg-muted",
|
|
656
|
+
{
|
|
657
|
+
"opacity-0": hideInput
|
|
658
|
+
}
|
|
659
|
+
),
|
|
660
|
+
...props,
|
|
661
|
+
disabled: disabled || !canViewCategories
|
|
633
662
|
}
|
|
634
663
|
),
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
664
|
+
/* @__PURE__ */ jsx2(
|
|
665
|
+
"button",
|
|
666
|
+
{
|
|
667
|
+
type: "button",
|
|
668
|
+
disabled: disabled || !canViewCategories,
|
|
669
|
+
onClick: () => handleOpenChange(true),
|
|
670
|
+
className: "text-ui-fg-muted transition-fg hover:bg-ui-bg-field-hover absolute end-0 flex size-8 items-center justify-center rounded-r outline-none",
|
|
671
|
+
children: /* @__PURE__ */ jsx2(TrianglesMini2, { className: "text-ui-fg-muted" })
|
|
672
|
+
}
|
|
673
|
+
)
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
)
|
|
648
677
|
}
|
|
649
678
|
)
|
|
650
679
|
}
|
|
@@ -11,30 +11,17 @@ import {
|
|
|
11
11
|
sdk
|
|
12
12
|
} from "./chunk-DTGEFKK4.js";
|
|
13
13
|
|
|
14
|
-
// src/hooks/api/notification.tsx
|
|
15
|
-
import { useQuery } from "@tanstack/react-query";
|
|
16
|
-
var NOTIFICATION_QUERY_KEY = "notification";
|
|
17
|
-
var notificationQueryKeys = queryKeysFactory(NOTIFICATION_QUERY_KEY);
|
|
18
|
-
var useNotifications = (query, options) => {
|
|
19
|
-
const { data, ...rest } = useQuery({
|
|
20
|
-
queryFn: () => sdk.admin.notifications.query({ ...query }),
|
|
21
|
-
queryKey: notificationQueryKeys.list(query),
|
|
22
|
-
...options
|
|
23
|
-
});
|
|
24
|
-
return { ...data, ...rest };
|
|
25
|
-
};
|
|
26
|
-
|
|
27
14
|
// src/hooks/api/refund-reasons.tsx
|
|
28
15
|
import {
|
|
29
16
|
useMutation,
|
|
30
|
-
useQuery
|
|
17
|
+
useQuery
|
|
31
18
|
} from "@tanstack/react-query";
|
|
32
19
|
var REFUND_REASONS_QUERY_KEY = "refund_reasons";
|
|
33
20
|
var refundReasonsQueryKeys = queryKeysFactory(
|
|
34
21
|
REFUND_REASONS_QUERY_KEY
|
|
35
22
|
);
|
|
36
23
|
var useRefundReasons = (query, options) => {
|
|
37
|
-
const { data, ...rest } =
|
|
24
|
+
const { data, ...rest } = useQuery({
|
|
38
25
|
queryFn: () => sdk.admin.refundReasons.query({ ...query }),
|
|
39
26
|
queryKey: refundReasonsQueryKeys.list(query),
|
|
40
27
|
...options
|
|
@@ -42,7 +29,7 @@ var useRefundReasons = (query, options) => {
|
|
|
42
29
|
return { ...data, ...rest };
|
|
43
30
|
};
|
|
44
31
|
var useRefundReason = (id, query, options) => {
|
|
45
|
-
const { data, ...rest } =
|
|
32
|
+
const { data, ...rest } = useQuery({
|
|
46
33
|
queryFn: () => sdk.admin.refundReasons.$id.query({ $id: id, ...query }),
|
|
47
34
|
queryKey: refundReasonsQueryKeys.detail(id),
|
|
48
35
|
...options
|
|
@@ -95,14 +82,14 @@ var useDeleteRefundReasonLazy = (options) => {
|
|
|
95
82
|
// src/hooks/api/shipping-option-types.tsx
|
|
96
83
|
import {
|
|
97
84
|
useMutation as useMutation2,
|
|
98
|
-
useQuery as
|
|
85
|
+
useQuery as useQuery2
|
|
99
86
|
} from "@tanstack/react-query";
|
|
100
87
|
var SHIPPING_OPTION_TYPES_QUERY_KEY = "shipping_option_types";
|
|
101
88
|
var shippingOptionTypesQueryKeys = queryKeysFactory(
|
|
102
89
|
SHIPPING_OPTION_TYPES_QUERY_KEY
|
|
103
90
|
);
|
|
104
91
|
var useShippingOptionType = (id, query, options) => {
|
|
105
|
-
const { data, ...rest } =
|
|
92
|
+
const { data, ...rest } = useQuery2({
|
|
106
93
|
queryFn: () => sdk.admin.shippingOptionTypes.$id.query({ $id: id, ...query }),
|
|
107
94
|
queryKey: shippingOptionTypesQueryKeys.detail(id),
|
|
108
95
|
...options
|
|
@@ -110,7 +97,7 @@ var useShippingOptionType = (id, query, options) => {
|
|
|
110
97
|
return { ...data, ...rest };
|
|
111
98
|
};
|
|
112
99
|
var useShippingOptionTypes = (query, options) => {
|
|
113
|
-
const { data, ...rest } =
|
|
100
|
+
const { data, ...rest } = useQuery2({
|
|
114
101
|
queryFn: () => sdk.admin.shippingOptionTypes.query({ ...query }),
|
|
115
102
|
queryKey: shippingOptionTypesQueryKeys.list(query),
|
|
116
103
|
...options
|
|
@@ -163,12 +150,12 @@ var useDeleteShippingOptionType = (id, options) => {
|
|
|
163
150
|
// src/hooks/api/tags.tsx
|
|
164
151
|
import {
|
|
165
152
|
useMutation as useMutation3,
|
|
166
|
-
useQuery as
|
|
153
|
+
useQuery as useQuery3
|
|
167
154
|
} from "@tanstack/react-query";
|
|
168
155
|
var TAGS_QUERY_KEY = "tags";
|
|
169
156
|
var productTagsQueryKeys = queryKeysFactory(TAGS_QUERY_KEY);
|
|
170
157
|
var useProductTag = (id, query, options) => {
|
|
171
|
-
const { data, ...rest } =
|
|
158
|
+
const { data, ...rest } = useQuery3({
|
|
172
159
|
queryKey: productTagsQueryKeys.detail(id, query),
|
|
173
160
|
queryFn: () => sdk.admin.productTags.$id.query({ $id: id, ...query }),
|
|
174
161
|
...options
|
|
@@ -176,7 +163,7 @@ var useProductTag = (id, query, options) => {
|
|
|
176
163
|
return { ...data, ...rest };
|
|
177
164
|
};
|
|
178
165
|
var useProductTags = (query, options) => {
|
|
179
|
-
const { data, ...rest } =
|
|
166
|
+
const { data, ...rest } = useQuery3({
|
|
180
167
|
queryKey: productTagsQueryKeys.list(query),
|
|
181
168
|
queryFn: () => sdk.admin.productTags.query({ ...query }),
|
|
182
169
|
...options
|
|
@@ -262,7 +249,7 @@ var useMarkPaymentCollectionAsPaid = (orderId, paymentCollectionId, options) =>
|
|
|
262
249
|
// src/hooks/api/payments.tsx
|
|
263
250
|
import {
|
|
264
251
|
useMutation as useMutation6,
|
|
265
|
-
useQuery as
|
|
252
|
+
useQuery as useQuery4
|
|
266
253
|
} from "@tanstack/react-query";
|
|
267
254
|
var PAYMENT_QUERY_KEY = "payment";
|
|
268
255
|
var paymentQueryKeys = queryKeysFactory(PAYMENT_QUERY_KEY);
|
|
@@ -302,8 +289,6 @@ var useRefundPayment = (orderId, paymentId, options) => {
|
|
|
302
289
|
};
|
|
303
290
|
|
|
304
291
|
export {
|
|
305
|
-
notificationQueryKeys,
|
|
306
|
-
useNotifications,
|
|
307
292
|
useMarkPaymentCollectionAsPaid,
|
|
308
293
|
useCapturePayment,
|
|
309
294
|
useRefundPayment,
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
TaxOverrideTable,
|
|
3
3
|
TaxRateLine,
|
|
4
4
|
useTaxOverrideTable
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FCAJQFYT.js";
|
|
6
6
|
import {
|
|
7
7
|
TaxRegionTable,
|
|
8
8
|
useTaxRegionTable
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CX5XB56X.js";
|
|
10
10
|
import {
|
|
11
11
|
TaxRegionCard
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q2XWHI6K.js";
|
|
13
13
|
import {
|
|
14
14
|
getCountryProvinceObjectByIso2
|
|
15
15
|
} from "./chunk-N2TQXB44.js";
|
|
@@ -3,10 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-XWOFQSGH.js";
|
|
4
4
|
|
|
5
5
|
// src/hooks/table/filters/use-customer-table-filters.tsx
|
|
6
|
+
import { usePermissions } from "@mercurjs/dashboard-shared";
|
|
6
7
|
import { useTranslation } from "react-i18next";
|
|
7
8
|
var useCustomerTableFilters = (exclude) => {
|
|
8
9
|
const { t } = useTranslation();
|
|
9
|
-
const
|
|
10
|
+
const { can } = usePermissions();
|
|
11
|
+
const isGroupsExcluded = exclude?.includes("groups") || !can("customer_groups");
|
|
10
12
|
const { customer_groups } = useCustomerGroups(
|
|
11
13
|
{
|
|
12
14
|
limit: 1e3
|