@mercurjs/admin 2.3.6-canary.1 → 2.3.6-canary.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/dist/{add-campaign-promotions-PBGDZSCD.js → add-campaign-promotions-EIQFBRHD.js} +13 -8
  2. package/dist/{adjust-inventory-BBAU3NMM.js → adjust-inventory-H46YCNLT.js} +8 -3
  3. package/dist/{api-key-management-detail-ZGGQBQAM.js → api-key-management-detail-Z4KSJHUC.js} +6 -8
  4. package/dist/{api-key-management-list-T2WHT6MT.js → api-key-management-list-QZIRPINF.js} +5 -5
  5. package/dist/{api-key-management-sales-channels-FS3KXQQ6.js → api-key-management-sales-channels-RGZ3QITG.js} +9 -7
  6. package/dist/{attribute-create-C435ZHB2.js → attribute-create-7I5GNYFM.js} +6 -5
  7. package/dist/{attribute-detail-SPYDB3I5.js → attribute-detail-GP4PEFJ7.js} +17 -11
  8. package/dist/{attribute-edit-AAEAOP5B.js → attribute-edit-YNKCBXLU.js} +2 -2
  9. package/dist/{attribute-edit-possible-value-BJSQCTNO.js → attribute-edit-possible-value-XY7W42FB.js} +2 -2
  10. package/dist/{attribute-list-SCFBKH4L.js → attribute-list-ZC3CG5LS.js} +7 -7
  11. package/dist/{campaign-detail-BHRCOKL3.js → campaign-detail-OZWTK26Z.js} +11 -11
  12. package/dist/{campaign-list-GIMU2QVW.js → campaign-list-XCO4FJDZ.js} +5 -5
  13. package/dist/{categories-metadata-MJAYSCTW.js → categories-metadata-QYH5U77W.js} +3 -3
  14. package/dist/{category-detail-GVEDFNM7.js → category-detail-V2QUSUF3.js} +11 -12
  15. package/dist/{category-list-J7XYQDJU.js → category-list-XDOYTQ4X.js} +6 -6
  16. package/dist/{category-products-VVF5NXCE.js → category-products-DL4KV6NX.js} +16 -9
  17. package/dist/{chunk-NIDM2VQO.js → chunk-23CSVCQK.js} +28 -17
  18. package/dist/{chunk-DUFGVZ6H.js → chunk-25TWJMWE.js} +2 -2
  19. package/dist/{chunk-VTXMQTXK.js → chunk-26REB3B6.js} +4 -3
  20. package/dist/{chunk-ZH6TIKKW.js → chunk-2MOTQNEG.js} +1 -0
  21. package/dist/{chunk-M6X7KIBW.js → chunk-2XBNM6TM.js} +4 -4
  22. package/dist/{chunk-BQZ5P3IA.js → chunk-36KEGXUQ.js} +112 -75
  23. package/dist/{chunk-475XGX3J.js → chunk-3BKRMIWA.js} +24 -13
  24. package/dist/{chunk-NCDKLTDP.js → chunk-3H3BJSIK.js} +34 -12
  25. package/dist/chunk-3UOYBH5O.js +8 -0
  26. package/dist/{chunk-GFHUI2QK.js → chunk-473QGQSA.js} +9 -6
  27. package/dist/{chunk-3XS5ADKJ.js → chunk-4AOVNA5G.js} +31 -20
  28. package/dist/{chunk-IKAUNMRC.js → chunk-4J74G7N2.js} +15 -3
  29. package/dist/{chunk-WIDHYDJQ.js → chunk-4JQDYQSX.js} +20 -10
  30. package/dist/{chunk-RW3NEG36.js → chunk-4W77EUYY.js} +9 -7
  31. package/dist/{chunk-6UYV7B42.js → chunk-4Y7SBHXE.js} +10 -8
  32. package/dist/{chunk-VVIJHBKM.js → chunk-5MXEKSK4.js} +1 -1
  33. package/dist/{chunk-AGO4ROOR.js → chunk-5OIFUF7R.js} +1 -1
  34. package/dist/{chunk-S4WDCOQD.js → chunk-5QW3GY37.js} +27 -14
  35. package/dist/{chunk-5TIADRZ7.js → chunk-63JSBXD5.js} +8 -6
  36. package/dist/{chunk-5ENOJFDI.js → chunk-7CGMFCSU.js} +1 -1
  37. package/dist/{chunk-7QZFRDTU.js → chunk-7GCMYYFL.js} +7 -4
  38. package/dist/{chunk-OWWE5Y6T.js → chunk-7URQCA3H.js} +8 -6
  39. package/dist/{chunk-R2ODJ3D3.js → chunk-A3LCORSK.js} +11 -7
  40. package/dist/{chunk-IZ77JV46.js → chunk-AUCCE46Q.js} +6 -3
  41. package/dist/{chunk-PFQO7UQG.js → chunk-AW4RL2SA.js} +60 -33
  42. package/dist/{chunk-2NOIR4BR.js → chunk-AZV22U4V.js} +20 -2
  43. package/dist/{chunk-VYSTJIAD.js → chunk-CX5XB56X.js} +4 -3
  44. package/dist/{chunk-VWPX7GLC.js → chunk-DBGBLXBS.js} +1 -1
  45. package/dist/{chunk-J4SYK3RT.js → chunk-DGRHDZQO.js} +15 -5
  46. package/dist/{chunk-6AQYZWOC.js → chunk-DL5J4DV2.js} +2 -2
  47. package/dist/{chunk-7UHN2CW7.js → chunk-DM52HEOD.js} +1 -1
  48. package/dist/{chunk-EJGGX3ON.js → chunk-DMLXILXG.js} +12 -10
  49. package/dist/chunk-DQ6RPO6N.js +2954 -0
  50. package/dist/{chunk-VBHKRUON.js → chunk-DUKOOIQD.js} +6 -5
  51. package/dist/{chunk-BLU2WLIJ.js → chunk-DWPBJEEM.js} +21 -8
  52. package/dist/{chunk-6P7HBAUM.js → chunk-E4CMR4T2.js} +21 -13
  53. package/dist/{chunk-QEBISX7V.js → chunk-EBAFVGM3.js} +1 -1
  54. package/dist/{chunk-J34YB5R4.js → chunk-EHLCUND7.js} +12 -10
  55. package/dist/{chunk-DBCNRZZE.js → chunk-EIPTLSNT.js} +3 -1
  56. package/dist/{chunk-KWFSBUD6.js → chunk-ESRIX7ZH.js} +1485 -1411
  57. package/dist/{chunk-YM5X7CQL.js → chunk-FCAJQFYT.js} +32 -12
  58. package/dist/{chunk-437KXVGO.js → chunk-G63BL5AB.js} +8 -5
  59. package/dist/{chunk-BZPOERWW.js → chunk-GIV6KSQX.js} +18 -9
  60. package/dist/{chunk-G2KWNZV6.js → chunk-GMJLK3IK.js} +2 -2
  61. package/dist/{chunk-P2KYQNXQ.js → chunk-GQYB3OOC.js} +108 -65
  62. package/dist/{chunk-4FAYO6UJ.js → chunk-GZUXEIEB.js} +3 -3
  63. package/dist/{chunk-7ASAC2FM.js → chunk-H4TJZB26.js} +26 -18
  64. package/dist/{chunk-5SNW2DCY.js → chunk-HXDCSVQP.js} +42 -18
  65. package/dist/{chunk-NQEXDESI.js → chunk-IBTEL5KA.js} +32 -14
  66. package/dist/{chunk-Q732RWRD.js → chunk-IQRFJO4N.js} +7 -5
  67. package/dist/{chunk-LBFX6AVE.js → chunk-JFRYC6GK.js} +17 -10
  68. package/dist/{chunk-7YBZ2PEZ.js → chunk-JQ7GOJK6.js} +135 -58
  69. package/dist/{chunk-FOWWGEP7.js → chunk-JS2DAWKO.js} +9 -6
  70. package/dist/{chunk-IHCKU5FR.js → chunk-K6OBX6ZR.js} +8 -7
  71. package/dist/{chunk-RSDTHO3I.js → chunk-KB3BTLIB.js} +6 -4
  72. package/dist/{chunk-VIHLAFDA.js → chunk-KYOZ4CCY.js} +61 -29
  73. package/dist/{chunk-D6WRJZPH.js → chunk-LCUAIH7P.js} +7 -5
  74. package/dist/{chunk-F5EZQMOA.js → chunk-M7VHCFCW.js} +10 -8
  75. package/dist/{chunk-EVCAR6GP.js → chunk-MAEUKXZ4.js} +8 -5
  76. package/dist/{chunk-HFCJJJKP.js → chunk-MKKOAF2W.js} +26 -12
  77. package/dist/{chunk-MQFPD5J4.js → chunk-MNKJHZZT.js} +10 -6
  78. package/dist/{chunk-YUL4ES52.js → chunk-MSJ2QS4Y.js} +6 -4
  79. package/dist/{chunk-VE5FQQTG.js → chunk-MTP3MDAA.js} +10 -7
  80. package/dist/{chunk-24JEBPKI.js → chunk-NJ2NRKAJ.js} +57 -14
  81. package/dist/{chunk-XMIDY45X.js → chunk-NRRSESP2.js} +32 -13
  82. package/dist/{chunk-B7QLJF77.js → chunk-NUE5ZL5N.js} +11 -5
  83. package/dist/{chunk-B6KT5U7W.js → chunk-NZIDSNBJ.js} +10 -8
  84. package/dist/{chunk-PAG3PYAQ.js → chunk-O5W5DCKH.js} +1 -1
  85. package/dist/{chunk-CFQX7HAW.js → chunk-OCDZIJBM.js} +11 -5
  86. package/dist/{chunk-KTO2WJ75.js → chunk-OGTWBHJC.js} +2 -2
  87. package/dist/{chunk-3KRUGI6C.js → chunk-ONTZADVX.js} +1 -1
  88. package/dist/{chunk-W62DN2I2.js → chunk-OWSAXYGH.js} +1 -1
  89. package/dist/{chunk-ESNSDIEC.js → chunk-PDPCFFFH.js} +1 -1
  90. package/dist/{chunk-Q6M2TNLO.js → chunk-PGOJH3NS.js} +61 -329
  91. package/dist/{chunk-LXW3L56Z.js → chunk-Q2XWHI6K.js} +6 -3
  92. package/dist/{chunk-ENKVW7JW.js → chunk-QKW6ZECR.js} +29 -14
  93. package/dist/{chunk-JBT2FR4K.js → chunk-QPDL77XZ.js} +21 -10
  94. package/dist/{chunk-D7E6HL5O.js → chunk-QPXGSVW4.js} +10 -8
  95. package/dist/{chunk-M336ZIRO.js → chunk-QQ2UM2KH.js} +9 -7
  96. package/dist/{chunk-YWZQKODL.js → chunk-R55XYG6Y.js} +28 -15
  97. package/dist/{chunk-AOLP2YDZ.js → chunk-RAD3UMQ3.js} +7 -5
  98. package/dist/{chunk-HFM6N7R3.js → chunk-RLF7ADLP.js} +21 -13
  99. package/dist/{chunk-A2UTT4YX.js → chunk-SLXOKSG4.js} +58 -28
  100. package/dist/{chunk-ZOU25JF6.js → chunk-SU36MZXC.js} +11 -3
  101. package/dist/{chunk-F644YFJZ.js → chunk-SZSAJHN7.js} +7 -6
  102. package/dist/{chunk-GR7S7WTT.js → chunk-TPWSE5HE.js} +16 -11
  103. package/dist/{chunk-7ECQXPOG.js → chunk-TVCHVG2A.js} +3 -3
  104. package/dist/{chunk-HJACC6KV.js → chunk-UKQ6FES4.js} +6 -3
  105. package/dist/{chunk-JL3NKSLJ.js → chunk-USO2SWZV.js} +9 -4
  106. package/dist/chunk-USY2322P.js +17 -0
  107. package/dist/{chunk-6ASLWQB3.js → chunk-V3UQOU5W.js} +4 -2
  108. package/dist/{chunk-XXYVUV5F.js → chunk-VD2CKAYG.js} +21 -10
  109. package/dist/{chunk-C4XKPQ6T.js → chunk-VLNTJXXO.js} +16 -3
  110. package/dist/{chunk-D3RDR3D3.js → chunk-W3LCOK3O.js} +153 -124
  111. package/dist/{chunk-MXM5ZD4Y.js → chunk-W5U6NPSN.js} +10 -25
  112. package/dist/{chunk-MM5RRCPX.js → chunk-WVHNOE7Y.js} +1 -1
  113. package/dist/{chunk-RFENVF7Y.js → chunk-XUOGIKEE.js} +3 -3
  114. package/dist/{chunk-R22UAHRF.js → chunk-YDESULL7.js} +3 -1
  115. package/dist/{chunk-7I7G5ZJE.js → chunk-YIXWAK3A.js} +12 -7
  116. package/dist/{chunk-ZFPASY4R.js → chunk-Z2FX5GG4.js} +24 -12
  117. package/dist/chunk-ZNFBP5CQ.js +268 -0
  118. package/dist/{chunk-JQEAWWRP.js → chunk-ZPJOSHV7.js} +23 -12
  119. package/dist/{chunk-U2RBSUMY.js → chunk-ZU76OTV3.js} +2 -2
  120. package/dist/{collection-add-products-HCY2YT3W.js → collection-add-products-FWEVXBYC.js} +16 -9
  121. package/dist/{collection-detail-QAEPOJZX.js → collection-detail-U4AW4QJ3.js} +11 -12
  122. package/dist/{collection-list-AWLZYMWL.js → collection-list-PFXGNWL7.js} +15 -15
  123. package/dist/{collection-metadata-XM2EBCWF.js → collection-metadata-IKYBHHEU.js} +3 -3
  124. package/dist/{commission-rule-create-CDLLQIY4.js → commission-rule-create-QDNXXBTV.js} +64 -30
  125. package/dist/{commission-rule-detail-LFEZ5U6V.js → commission-rule-detail-QYJIK375.js} +3 -5
  126. package/dist/{commission-rule-edit-5CFKPI7U.js → commission-rule-edit-HICDPDLK.js} +58 -24
  127. package/dist/{commissions-list-MUKIEJWZ.js → commissions-list-AQUW636T.js} +6 -6
  128. package/dist/{customer-detail-XO7RBVUC.js → customer-detail-TBGKTNQQ.js} +9 -9
  129. package/dist/{customer-group-add-customers-XYWJSXKS.js → customer-group-add-customers-RWJOA2NJ.js} +3 -3
  130. package/dist/{customer-group-detail-4G53UKOS.js → customer-group-detail-47IPD337.js} +7 -8
  131. package/dist/{customer-group-list-5VA7HGD5.js → customer-group-list-Q2AYIVO4.js} +7 -8
  132. package/dist/{customer-group-metadata-FUJFFWCO.js → customer-group-metadata-T3WFBL7U.js} +3 -3
  133. package/dist/{customer-list-NEPELR3R.js → customer-list-JOPTF4QB.js} +5 -6
  134. package/dist/{customer-metadata-GWZC456X.js → customer-metadata-YSMWL4L3.js} +3 -3
  135. package/dist/{customers-add-customer-group-MYC76YGW.js → customers-add-customer-group-AVRYBS6Q.js} +14 -7
  136. package/dist/{edit-inventory-item-ZSV4WF6G.js → edit-inventory-item-7M7Q6HL4.js} +2 -2
  137. package/dist/{edit-inventory-item-attributes-NWSAQMKX.js → edit-inventory-item-attributes-E7J2WFPF.js} +2 -2
  138. package/dist/{edit-reservation-W3THLKKK.js → edit-reservation-S3QTQRPY.js} +11 -3
  139. package/dist/{edit-rules-RJC3AYJN.js → edit-rules-NRF7U4AT.js} +2 -2
  140. package/dist/extension-targets.d.ts +27 -0
  141. package/dist/home-4BDQXC4T.js +64 -0
  142. package/dist/index.css +226 -9
  143. package/dist/index.d.ts +10 -30
  144. package/dist/index.js +631 -3918
  145. package/dist/{inventory-detail-7HB5QEL4.js → inventory-detail-U6TRGZRY.js} +8 -8
  146. package/dist/{inventory-list-FN7FCI4W.js → inventory-list-JWA7U2LB.js} +4 -5
  147. package/dist/{inventory-metadata-FGHOW3YG.js → inventory-metadata-KO622YEI.js} +3 -3
  148. package/dist/{inventory-stock-PZ2ENOGF.js → inventory-stock-WWXYVFK2.js} +21 -11
  149. package/dist/{location-detail-B2BWLVAD.js → location-detail-27FBZML7.js} +5 -7
  150. package/dist/{location-fulfillment-providers-XIYMIEFN.js → location-fulfillment-providers-WT72L5JS.js} +21 -13
  151. package/dist/{location-list-VIAP63HV.js → location-list-RMHT36AO.js} +5 -7
  152. package/dist/{location-sales-channels-TNP3C7UW.js → location-sales-channels-JB5OIMXE.js} +13 -6
  153. package/dist/{location-service-zone-create-KPM4RSCF.js → location-service-zone-create-JKAKZCZ2.js} +3 -3
  154. package/dist/{location-service-zone-manage-areas-NW5JUTCH.js → location-service-zone-manage-areas-K2BMFI5Y.js} +3 -3
  155. package/dist/{location-service-zone-shipping-option-create-6O2JXV6I.js → location-service-zone-shipping-option-create-WJOLO6A3.js} +4 -4
  156. package/dist/{location-service-zone-shipping-option-edit-UUIR7B5S.js → location-service-zone-shipping-option-edit-I7BJGH76.js} +23 -10
  157. package/dist/{location-service-zone-shipping-option-pricing-Z5HCXRHG.js → location-service-zone-shipping-option-pricing-47Y3CP4U.js} +36 -12
  158. package/dist/{login-TZHRVYA5.js → login-ISNIWXU2.js} +3 -3
  159. package/dist/{manage-locations-ZFIRHMNH.js → manage-locations-5FKFNJQN.js} +158 -36
  160. package/dist/{marketplace-add-currencies-Z6FUIAU5.js → marketplace-add-currencies-34XKWMI7.js} +33 -9
  161. package/dist/{marketplace-detail-4IP5HIEW.js → marketplace-detail-A76FTENH.js} +7 -7
  162. package/dist/{marketplace-edit-G7YNGABC.js → marketplace-edit-KXKUECZQ.js} +61 -30
  163. package/dist/{marketplace-metadata-EGDXYKCE.js → marketplace-metadata-364KJG43.js} +3 -3
  164. package/dist/{offer-detail-page-WWEUCEFC.js → offer-detail-page-BDDDZSPL.js} +36 -13
  165. package/dist/{offer-variant-detail-page-FVJE5WLV.js → offer-variant-detail-page-HQU4HMZH.js} +4 -5
  166. package/dist/{offers-VG334CFD.js → offers-2JDCFVN4.js} +10 -11
  167. package/dist/{order-create-claim-4CIL76V5.js → order-create-claim-4ERPSGPD.js} +105 -61
  168. package/dist/{order-create-edit-BFE4N7RN.js → order-create-edit-BGLNMKKI.js} +17 -10
  169. package/dist/{order-create-exchange-CC7CQECO.js → order-create-exchange-TOPPZZGS.js} +107 -63
  170. package/dist/{order-create-refund-FJLL4CUD.js → order-create-refund-M3K5MZDM.js} +39 -24
  171. package/dist/{order-create-return-USO7AS7R.js → order-create-return-64GZ2LCL.js} +109 -70
  172. package/dist/{order-detail-3ODC5NOT.js → order-detail-DIUKR6ZJ.js} +9 -9
  173. package/dist/{order-edit-billing-address-SBVWRA25.js → order-edit-billing-address-ZAR5DETE.js} +3 -3
  174. package/dist/{order-edit-email-BREEW246.js → order-edit-email-V45SEUCO.js} +2 -2
  175. package/dist/{order-edit-shipping-address-XUG74AFY.js → order-edit-shipping-address-45Z6TNHL.js} +2 -2
  176. package/dist/{order-list-I6JZT6JK.js → order-list-KZHROLY3.js} +7 -7
  177. package/dist/{order-metadata-VIG5MGYV.js → order-metadata-7245QRUQ.js} +3 -3
  178. package/dist/{order-request-transfer-RYVK4WYW.js → order-request-transfer-JYPDXCY2.js} +28 -14
  179. package/dist/pages/index.d.ts +2 -2
  180. package/dist/pages/index.js +99 -98
  181. package/dist/{payout-list-WZ6QMJJY.js → payout-list-KILGQ4XP.js} +3 -3
  182. package/dist/{price-list-create-JFXLTNOJ.js → price-list-create-H3KJPUF4.js} +12 -12
  183. package/dist/{price-list-customer-availability-WU2OGO37.js → price-list-customer-availability-CQY55U4O.js} +31 -14
  184. package/dist/{price-list-detail-5YTX66KF.js → price-list-detail-I44VTKE6.js} +10 -11
  185. package/dist/{price-list-list-5CNSLAUF.js → price-list-list-TD5JIO7L.js} +5 -5
  186. package/dist/{price-list-prices-add-HVTEQOWQ.js → price-list-prices-add-XEJKCRTM.js} +11 -11
  187. package/dist/{price-list-prices-edit-OVHIDATP.js → price-list-prices-edit-WELHT4O4.js} +19 -10
  188. package/dist/{product-add-existing-attributes-2UFTXE2N.js → product-add-existing-attributes-5B6HD2M3.js} +10 -8
  189. package/dist/{product-create-SHIGHLQN.js → product-create-DTITIXGY.js} +12 -11
  190. package/dist/{product-create-attribute-QYRCPUFC.js → product-create-attribute-7TV3OHW7.js} +1 -1
  191. package/dist/{product-create-variant-MZLHG5JF.js → product-create-variant-S3UJRMMJ.js} +3 -3
  192. package/dist/{product-detail-UGSTCK7J.js → product-detail-2MYEE5AM.js} +9 -10
  193. package/dist/{product-edit-2CMVTDWT.js → product-edit-TAVV5CWR.js} +8 -3
  194. package/dist/{product-edit-attribute-W3AS47FM.js → product-edit-attribute-URHTZ2EQ.js} +9 -3
  195. package/dist/{product-list-XDJB3HX7.js → product-list-QYZXPM4I.js} +11 -12
  196. package/dist/{product-media-CO3F57JT.js → product-media-MFDAEXNQ.js} +3 -3
  197. package/dist/{product-metadata-5CRGB7TR.js → product-metadata-SC5BXN66.js} +3 -3
  198. package/dist/{product-organization-TNS7GBKN.js → product-organization-GCIGER6X.js} +87 -43
  199. package/dist/{product-sales-channels-PJNEIY4J.js → product-sales-channels-MNAFJKAI.js} +10 -5
  200. package/dist/{product-shipping-profile-SWB5FK7S.js → product-shipping-profile-G4NCDKSR.js} +25 -11
  201. package/dist/{product-tag-create-QORH6X2D.js → product-tag-create-PX7Q2AXU.js} +2 -2
  202. package/dist/{product-tag-detail-CDSYBTAM.js → product-tag-detail-4CGCZVSL.js} +18 -18
  203. package/dist/{product-tag-edit-JWYVCPCC.js → product-tag-edit-PXSZMCCT.js} +2 -2
  204. package/dist/{product-tag-list-RKLCU3UE.js → product-tag-list-2S6PHBIB.js} +18 -18
  205. package/dist/{product-tag-metadata-BCUPIIJ5.js → product-tag-metadata-2SO7ICOZ.js} +3 -3
  206. package/dist/{product-type-detail-IY7TWXUQ.js → product-type-detail-M4QLNFSG.js} +11 -12
  207. package/dist/{product-type-list-N3E5HQFW.js → product-type-list-JXU3446J.js} +5 -5
  208. package/dist/{product-type-metadata-DKBBQB6R.js → product-type-metadata-7D3J3NSO.js} +3 -3
  209. package/dist/{product-variant-detail-XHMS2UT5.js → product-variant-detail-VQ55W7PD.js} +4 -6
  210. package/dist/{product-variant-edit-4DPXTYPT.js → product-variant-edit-XEC7BR5G.js} +4 -4
  211. package/dist/{product-variant-metadata-ETVJBXSW.js → product-variant-metadata-KFLIOCU2.js} +3 -3
  212. package/dist/{profile-detail-KFLXUGQ5.js → profile-detail-SQZ6JFAN.js} +3 -5
  213. package/dist/{profile-edit-4FDALFG5.js → profile-edit-IVU3SBQA.js} +3 -3
  214. package/dist/{promotion-add-campaign-VAF3HTLK.js → promotion-add-campaign-SWTS4TM5.js} +2 -1
  215. package/dist/{promotion-create-7ZUJ4W2J.js → promotion-create-6TMK6PEP.js} +5 -4
  216. package/dist/{promotion-detail-SWO4PZDC.js → promotion-detail-YRWEIXY7.js} +7 -9
  217. package/dist/{promotion-list-S4B6SVD6.js → promotion-list-NFVGSR23.js} +9 -9
  218. package/dist/{refund-reason-create-P5FUFEGK.js → refund-reason-create-HZOBFOPB.js} +2 -2
  219. package/dist/{refund-reason-edit-AKOTWXCE.js → refund-reason-edit-KS6NMC22.js} +2 -2
  220. package/dist/{refund-reason-list-ABRFC3OQ.js → refund-reason-list-RL7WOHKC.js} +11 -12
  221. package/dist/{region-add-countries-4CTAVHYW.js → region-add-countries-47QLUMX7.js} +2 -2
  222. package/dist/{region-create-S2WUJ4RA.js → region-create-7DI3QEPU.js} +25 -11
  223. package/dist/{region-detail-IBLHFR57.js → region-detail-S5OT2PGL.js} +4 -5
  224. package/dist/{region-edit-NUMG2V5L.js → region-edit-IXCS3MRH.js} +32 -14
  225. package/dist/{region-list-JTR3SEWI.js → region-list-2MWAGD2D.js} +4 -5
  226. package/dist/{region-metadata-Q6HEMCHD.js → region-metadata-ADPG7OLJ.js} +3 -3
  227. package/dist/{reservation-create-H3T3AHTK.js → reservation-create-YEICXID2.js} +67 -44
  228. package/dist/{reservation-detail-5GYGVM3M.js → reservation-detail-EBIDXEVF.js} +4 -6
  229. package/dist/{reservation-list-VRRSKQ4W.js → reservation-list-5QNXC2WU.js} +4 -5
  230. package/dist/{reservation-metadata-P4G3JEDW.js → reservation-metadata-TWJE777O.js} +3 -3
  231. package/dist/{reset-password-VJY5CXJU.js → reset-password-FIZYJ2R4.js} +1 -1
  232. package/dist/{return-reason-list-6MQKG72S.js → return-reason-list-VDX6CFJL.js} +10 -10
  233. package/dist/{review-detail-K555FECH.js → review-detail-NPB3OKCE.js} +2 -4
  234. package/dist/{review-list-E56WE7VS.js → review-list-NXBVRP5T.js} +4 -5
  235. package/dist/{sales-channel-add-products-MPJ7UCEJ.js → sales-channel-add-products-MBSSIGYE.js} +19 -10
  236. package/dist/{sales-channel-detail-F37LBP6R.js → sales-channel-detail-R2BCF7TA.js} +11 -12
  237. package/dist/{sales-channel-list-XAWN5OKC.js → sales-channel-list-246V7NV3.js} +5 -7
  238. package/dist/{sales-channel-metadata-NBWFH4QX.js → sales-channel-metadata-PMLMQIKU.js} +3 -3
  239. package/dist/settings-XTXDKZEO.js +63 -0
  240. package/dist/{shipping-option-type-create-M23CI42D.js → shipping-option-type-create-NOFP2DOM.js} +2 -2
  241. package/dist/{shipping-option-type-detail-QIJZQ5WW.js → shipping-option-type-detail-47AZVCFP.js} +5 -7
  242. package/dist/{shipping-option-type-edit-WXTEQM32.js → shipping-option-type-edit-42JILKHX.js} +2 -2
  243. package/dist/{shipping-option-type-list-PRXZQSPR.js → shipping-option-type-list-TTAA63ZN.js} +8 -8
  244. package/dist/{shipping-profile-detail-KPRFJE4V.js → shipping-profile-detail-RGB67K3C.js} +2 -4
  245. package/dist/{shipping-profile-metadata-S7Z3IC6I.js → shipping-profile-metadata-GXMY5E57.js} +3 -3
  246. package/dist/{shipping-profiles-list-LK5ZXRJG.js → shipping-profiles-list-DD3G2THE.js} +4 -5
  247. package/dist/{store-bulk-edit-NBWZMDP7.js → store-bulk-edit-RRNJZEOU.js} +2 -2
  248. package/dist/{store-create-J4SL6SY3.js → store-create-UQ333C5F.js} +37 -15
  249. package/dist/{store-details-ITYKAZSI.js → store-details-D7RUCH5Y.js} +13 -14
  250. package/dist/{store-edit-NZMI7PNS.js → store-edit-RCNV5XI4.js} +3 -3
  251. package/dist/{store-list-RXPN3VVO.js → store-list-BMPOSAAE.js} +13 -14
  252. package/dist/{store-member-invite-IEUG54XA.js → store-member-invite-ALW6E3XA.js} +15 -6
  253. package/dist/{tax-region-create-PIDKQEWT.js → tax-region-create-3B6FWGWS.js} +3 -3
  254. package/dist/{tax-region-detail-7RNNZ4UE.js → tax-region-detail-PU4Q42KO.js} +8 -9
  255. package/dist/{tax-region-edit-I27QZZPB.js → tax-region-edit-P4L2CUFV.js} +2 -2
  256. package/dist/{tax-region-list-BXLYIYQT.js → tax-region-list-PUNXDH34.js} +5 -6
  257. package/dist/{tax-region-metadata-6YIZSRLO.js → tax-region-metadata-EDZ7YGYR.js} +3 -3
  258. package/dist/{tax-region-province-detail-AHS5SRP5.js → tax-region-province-detail-3ZQOCKZ2.js} +7 -8
  259. package/dist/{tax-region-tax-override-create-Z6S43XQ6.js → tax-region-tax-override-create-J5ZUAELL.js} +15 -15
  260. package/dist/{tax-region-tax-override-edit-4EOURL2M.js → tax-region-tax-override-edit-HDVKIL5P.js} +46 -26
  261. package/dist/{user-detail-5LOE6QGK.js → user-detail-4H37KBIP.js} +3 -5
  262. package/dist/{user-edit-O2M5II52.js → user-edit-42A2VX5E.js} +1 -1
  263. package/dist/{user-invite-SZIUG2WK.js → user-invite-5EJ3CIQZ.js} +35 -134
  264. package/dist/{user-list-6YRC6HYX.js → user-list-EZ56HFI3.js} +5 -6
  265. package/dist/{user-metadata-2PEU2IJE.js → user-metadata-3GENWLUS.js} +3 -3
  266. package/package.json +14 -14
  267. package/dist/chunk-4F6SHS7A.js +0 -83
  268. package/dist/chunk-BDGZ4EQO.js +0 -86
  269. package/dist/chunk-WMA3WTCM.js +0 -117
  270. package/dist/home-I3OILW5Z.js +0 -16
  271. package/dist/settings-AVE3VCCM.js +0 -19
  272. package/dist/{customer-edit-5EH2AUGN.js → customer-edit-LDKAXHZ6.js} +3 -3
  273. package/dist/{invite-6WUERQLW.js → invite-IZ2YTVPF.js} +1 -1
@@ -8,15 +8,15 @@ import {
8
8
  import {
9
9
  getCountryByIso2
10
10
  } from "./chunk-JRTZWK77.js";
11
+ import {
12
+ ActionMenu
13
+ } from "./chunk-3UOYBH5O.js";
11
14
  import {
12
15
  useDeleteTaxRate
13
16
  } from "./chunk-LHE6LM6S.js";
14
17
  import {
15
18
  useDeleteTaxRegion
16
19
  } from "./chunk-BOPIWKTU.js";
17
- import {
18
- ActionMenu
19
- } from "./chunk-BDGZ4EQO.js";
20
20
 
21
21
  // src/pages/tax-regions/common/components/tax-region-card/tax-region-card.tsx
22
22
  import { Heading, Text, Tooltip, clx } from "@medusajs/ui";
@@ -215,6 +215,7 @@ var TaxRegionCardActions = ({
215
215
  actions: [
216
216
  {
217
217
  icon: /* @__PURE__ */ jsx(Plus, {}),
218
+ permission: "tax_regions:edit",
218
219
  label: t("taxRegions.fields.defaultTaxRate.action"),
219
220
  to: `tax-rates/create`
220
221
  }
@@ -225,11 +226,13 @@ var TaxRegionCardActions = ({
225
226
  actions: [
226
227
  !hasParent && {
227
228
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
229
+ permission: "tax_regions:edit",
228
230
  label: t("actions.edit"),
229
231
  to: `/settings/tax-regions/${taxRegion.id}/edit`
230
232
  },
231
233
  {
232
234
  icon: /* @__PURE__ */ jsx(Trash, {}),
235
+ permission: "tax_regions:manage",
233
236
  label: t("actions.delete"),
234
237
  onClick: handleDelete
235
238
  }
@@ -3,12 +3,12 @@ import {
3
3
  buildOfferGridData,
4
4
  usePriceListCurrencyData,
5
5
  usePriceListGridColumns
6
- } from "./chunk-BZPOERWW.js";
6
+ } from "./chunk-GIV6KSQX.js";
7
7
  import {
8
8
  useOfferTableColumns,
9
9
  useOfferTableFilters,
10
10
  useOfferTableQuery
11
- } from "./chunk-NQEXDESI.js";
11
+ } from "./chunk-IBTEL5KA.js";
12
12
  import {
13
13
  extractPricesFromOffers
14
14
  } from "./chunk-KVAD5JGS.js";
@@ -30,7 +30,7 @@ import {
30
30
  import {
31
31
  _DataTable,
32
32
  useDataTable
33
- } from "./chunk-ZOU25JF6.js";
33
+ } from "./chunk-SU36MZXC.js";
34
34
  import {
35
35
  useBatchPriceListPrices,
36
36
  usePriceList
@@ -64,6 +64,7 @@ var PriceListPricesAddProductsFields = Object.keys(
64
64
  // src/pages/price-lists/price-list-prices-add/price-list-prices-add.tsx
65
65
  import { Children as Children2 } from "react";
66
66
  import { useParams } from "react-router-dom";
67
+ import { SectionNoAccess as SectionNoAccess2 } from "@mercurjs/dashboard-shared";
67
68
 
68
69
  // src/pages/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx
69
70
  import { zodResolver } from "@hookform/resolvers/zod";
@@ -73,6 +74,7 @@ import { useForm } from "react-hook-form";
73
74
  import { useTranslation as useTranslation2 } from "react-i18next";
74
75
 
75
76
  // src/pages/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-prices-form.tsx
77
+ import { usePermissions } from "@mercurjs/dashboard-shared";
76
78
  import { useEffect, useMemo } from "react";
77
79
  import { useWatch } from "react-hook-form";
78
80
  import { jsx } from "react/jsx-runtime";
@@ -86,13 +88,14 @@ var Root = ({
86
88
  const { setCloseOnEscape } = useRouteModal();
87
89
  const offerIds = useWatch({ control: form.control, name: "offer_ids" });
88
90
  const existingOffers = useWatch({ control: form.control, name: "offers" });
91
+ const { can } = usePermissions();
89
92
  const { offers: selectedOffers } = useOffers(
90
93
  {
91
94
  id: offerIds,
92
95
  limit: offerIds?.length || 1,
93
96
  fields: "id,variant_id,product_id,seller_id,sku,seller.name,product.title,product.thumbnail"
94
97
  },
95
- { enabled: (offerIds?.length ?? 0) > 0 }
98
+ { enabled: (offerIds?.length ?? 0) > 0 && can("offers") }
96
99
  );
97
100
  const productIds = useMemo(
98
101
  () => Array.from(
@@ -102,7 +105,7 @@ var Root = ({
102
105
  );
103
106
  const { products, isLoading } = useProducts(
104
107
  { id: productIds, limit: productIds.length || 1, fields: "id,*variants" },
105
- { enabled: productIds.length > 0 }
108
+ { enabled: productIds.length > 0 && can("products") }
106
109
  );
107
110
  const { gridData, variantIdByOffer } = useMemo(
108
111
  () => buildOfferGridData(
@@ -153,6 +156,7 @@ import {
153
156
  } from "@tanstack/react-table";
154
157
  import { useMemo as useMemo2, useRef, useState } from "react";
155
158
  import { useTranslation } from "react-i18next";
159
+ import { SectionNoAccess, isForbidden, useCan } from "@mercurjs/dashboard-shared";
156
160
  import { jsx as jsx2 } from "react/jsx-runtime";
157
161
  var PAGE_SIZE = 50;
158
162
  var PREFIX = "p";
@@ -179,8 +183,10 @@ var Root2 = ({ priceList }) => {
179
183
  pageSize: PAGE_SIZE,
180
184
  prefix: PREFIX
181
185
  });
186
+ const canViewOffers = useCan("offers");
182
187
  const { offers, count, isLoading, isError, error } = useOffers(searchParams, {
183
- placeholderData: keepPreviousData
188
+ placeholderData: keepPreviousData,
189
+ enabled: canViewOffers
184
190
  });
185
191
  const offerMeta = useRef({});
186
192
  for (const offer of offers ?? []) {
@@ -227,6 +233,9 @@ var Root2 = ({ priceList }) => {
227
233
  pageSize: PAGE_SIZE,
228
234
  prefix: PREFIX
229
235
  });
236
+ if (!canViewOffers || isForbidden(error)) {
237
+ return /* @__PURE__ */ jsx2(SectionNoAccess, {});
238
+ }
230
239
  if (isError) {
231
240
  throw error;
232
241
  }
@@ -361,7 +370,7 @@ var PriceListPricesAddForm = ({
361
370
  };
362
371
 
363
372
  // src/pages/price-lists/price-list-prices-add/price-list-prices-add.tsx
364
- import { jsx as jsx4 } from "react/jsx-runtime";
373
+ import { Fragment, jsx as jsx4, jsxs } from "react/jsx-runtime";
365
374
  var Root3 = ({ children }) => {
366
375
  const { id } = useParams();
367
376
  const { price_list, isPending, isError, error } = usePriceList(id, {
@@ -372,13 +381,19 @@ var Root3 = ({ children }) => {
372
381
  if (isError) {
373
382
  throw error;
374
383
  }
375
- return /* @__PURE__ */ jsx4(RouteFocusModal, { prev: `/price-lists/${id}`, children: ready && (Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx4(
376
- PriceListPricesAddForm,
377
- {
378
- priceList: price_list,
379
- ...currencyData
380
- }
381
- )) });
384
+ return /* @__PURE__ */ jsxs(RouteFocusModal, { prev: `/price-lists/${id}`, children: [
385
+ currencyData.isForbidden && /* @__PURE__ */ jsxs(Fragment, { children: [
386
+ /* @__PURE__ */ jsx4(RouteFocusModal.Header, {}),
387
+ /* @__PURE__ */ jsx4(RouteFocusModal.Body, { children: /* @__PURE__ */ jsx4(SectionNoAccess2, {}) })
388
+ ] }),
389
+ ready && (Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx4(
390
+ PriceListPricesAddForm,
391
+ {
392
+ priceList: price_list,
393
+ ...currencyData
394
+ }
395
+ ))
396
+ ] });
382
397
  };
383
398
  var PriceListPricesAddPage = Object.assign(Root3, {
384
399
  Form: PriceListPricesAddForm,
@@ -5,10 +5,10 @@ import {
5
5
  import {
6
6
  usePromotionTableColumns,
7
7
  usePromotionTableQuery
8
- } from "./chunk-5ENOJFDI.js";
8
+ } from "./chunk-7CGMFCSU.js";
9
9
  import {
10
10
  usePromotionTableFilters
11
- } from "./chunk-J4SYK3RT.js";
11
+ } from "./chunk-DGRHDZQO.js";
12
12
  import {
13
13
  DateRangeDisplay
14
14
  } from "./chunk-O7324VFF.js";
@@ -18,16 +18,16 @@ import {
18
18
  import {
19
19
  _DataTable,
20
20
  useDataTable
21
- } from "./chunk-ZOU25JF6.js";
21
+ } from "./chunk-SU36MZXC.js";
22
+ import {
23
+ ActionMenu
24
+ } from "./chunk-3UOYBH5O.js";
22
25
  import {
23
26
  useAddOrRemoveCampaignPromotions,
24
27
  useCampaign,
25
28
  useDeleteCampaign,
26
29
  usePromotions
27
30
  } from "./chunk-E5PC2WDZ.js";
28
- import {
29
- ActionMenu
30
- } from "./chunk-BDGZ4EQO.js";
31
31
  import {
32
32
  TwoColumnPageSkeleton
33
33
  } from "./chunk-INNFZYX2.js";
@@ -35,7 +35,11 @@ import {
35
35
  // src/pages/campaigns/campaign-detail/campaign-detail.tsx
36
36
  import { Children } from "react";
37
37
  import { useLoaderData, useParams } from "react-router-dom";
38
- import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
38
+ import {
39
+ PermissionGuard,
40
+ WidgetZone,
41
+ useLinkQuery
42
+ } from "@mercurjs/dashboard-shared";
39
43
 
40
44
  // src/pages/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx
41
45
  import { ChartPie, CurrencyDollar, PencilSquare } from "@medusajs/icons";
@@ -81,6 +85,7 @@ var BudgetPills = ({ pills }) => {
81
85
  actions: [
82
86
  {
83
87
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
88
+ permission: "campaigns:edit",
84
89
  label: t("actions.edit"),
85
90
  to: pill.editTo
86
91
  }
@@ -181,6 +186,7 @@ var CampaignConfigurationSection = ({
181
186
  {
182
187
  actions: [
183
188
  {
189
+ permission: "campaigns:edit",
184
190
  label: t("actions.edit"),
185
191
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
186
192
  to: "configuration"
@@ -287,6 +293,7 @@ var CampaignGeneralSection = ({
287
293
  actions: [
288
294
  {
289
295
  icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
296
+ permission: "campaigns:edit",
290
297
  label: t("actions.edit"),
291
298
  to: `/campaigns/${campaign.id}/edit`
292
299
  }
@@ -296,6 +303,7 @@ var CampaignGeneralSection = ({
296
303
  actions: [
297
304
  {
298
305
  icon: /* @__PURE__ */ jsx3(Trash, {}),
306
+ permission: "campaigns:manage",
299
307
  label: t("actions.delete"),
300
308
  onClick: handleDelete
301
309
  }
@@ -345,7 +353,7 @@ import { createColumnHelper } from "@tanstack/react-table";
345
353
  import { useMemo, useState } from "react";
346
354
  import { useTranslation as useTranslation4 } from "react-i18next";
347
355
  import { Link } from "react-router-dom";
348
- import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
356
+ import { DisplayExtensionZone as DisplayExtensionZone3, PermissionAction } from "@mercurjs/dashboard-shared";
349
357
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
350
358
  var PAGE_SIZE = 10;
351
359
  var CampaignPromotionSection = ({
@@ -408,7 +416,7 @@ var CampaignPromotionSection = ({
408
416
  return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", "data-testid": "campaign-promotion-section-container", children: [
409
417
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "campaign-promotion-section-header", children: [
410
418
  /* @__PURE__ */ jsx4(Heading4, { level: "h2", "data-testid": "campaign-promotion-section-heading", children: t("promotions.domain") }),
411
- /* @__PURE__ */ jsx4(Link, { to: `/campaigns/${campaign.id}/add-promotions`, children: /* @__PURE__ */ jsx4(Button, { variant: "secondary", size: "small", "data-testid": "campaign-promotion-section-add-button", children: t("general.add") }) })
419
+ /* @__PURE__ */ jsx4(PermissionAction, { permission: "campaigns:edit", children: /* @__PURE__ */ jsx4(Button, { variant: "secondary", size: "small", asChild: true, "data-testid": "campaign-promotion-section-add-button", children: /* @__PURE__ */ jsx4(Link, { to: `/campaigns/${campaign.id}/add-promotions`, children: t("general.add") }) }) })
412
420
  ] }),
413
421
  /* @__PURE__ */ jsx4(
414
422
  _DataTable,
@@ -432,6 +440,7 @@ var CampaignPromotionSection = ({
432
440
  commands: [
433
441
  {
434
442
  action: handleRemove,
443
+ permission: "campaigns:edit",
435
444
  label: t("actions.remove"),
436
445
  shortcut: "r"
437
446
  }
@@ -487,6 +496,7 @@ var PromotionActions = ({
487
496
  actions: [
488
497
  {
489
498
  icon: /* @__PURE__ */ jsx4(PencilSquare4, {}),
499
+ permission: "promotions:edit",
490
500
  label: t("actions.edit"),
491
501
  to: `/promotions/${promotion.id}/edit`
492
502
  }
@@ -496,6 +506,7 @@ var PromotionActions = ({
496
506
  actions: [
497
507
  {
498
508
  icon: /* @__PURE__ */ jsx4(Trash2, {}),
509
+ permission: "campaigns:edit",
499
510
  label: t("actions.remove"),
500
511
  onClick: handleRemove
501
512
  }
@@ -590,7 +601,7 @@ var Root = ({ children }) => {
590
601
  return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, "data-testid": "campaign-detail-page", children }) : /* @__PURE__ */ jsxs5(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, "data-testid": "campaign-detail-page", children: [
591
602
  /* @__PURE__ */ jsx5(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "campaigns.detail.main", data: campaign, children: [
592
603
  /* @__PURE__ */ jsx5(CampaignGeneralSection, { campaign }),
593
- /* @__PURE__ */ jsx5(CampaignPromotionSection, { campaign })
604
+ /* @__PURE__ */ jsx5(PermissionGuard, { permission: "promotions:view", children: /* @__PURE__ */ jsx5(CampaignPromotionSection, { campaign }) })
594
605
  ] }) }),
595
606
  /* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "campaigns.detail.side", data: campaign, children: [
596
607
  /* @__PURE__ */ jsx5(CampaignConfigurationSection, { campaign }),
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-KOURHC2N.js";
4
4
  import {
5
5
  useSellersTableQuery
6
- } from "./chunk-QEBISX7V.js";
6
+ } from "./chunk-EBAFVGM3.js";
7
7
  import {
8
8
  DateCell
9
9
  } from "./chunk-F3XPA5ID.js";
@@ -15,17 +15,17 @@ import {
15
15
  } from "./chunk-H6MYB7GB.js";
16
16
  import {
17
17
  require_dist
18
- } from "./chunk-KWFSBUD6.js";
18
+ } from "./chunk-ESRIX7ZH.js";
19
19
  import {
20
20
  _DataTable,
21
21
  useDataTable
22
- } from "./chunk-ZOU25JF6.js";
22
+ } from "./chunk-SU36MZXC.js";
23
+ import {
24
+ ActionMenu
25
+ } from "./chunk-3UOYBH5O.js";
23
26
  import {
24
27
  useSellers
25
28
  } from "./chunk-HRMANL53.js";
26
- import {
27
- ActionMenu
28
- } from "./chunk-BDGZ4EQO.js";
29
29
  import {
30
30
  __toESM
31
31
  } from "./chunk-NBMM2TZK.js";
@@ -53,7 +53,7 @@ var StoreListActions = ({
53
53
  children
54
54
  }) => {
55
55
  const { t } = useTranslation();
56
- return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(PermissionGuard, { resource: "seller", operation: "create", children: /* @__PURE__ */ jsx(Link, { to: "create", children: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "small", children: t("actions.create") }) }) }) });
56
+ return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(PermissionGuard, { permission: "sellers:edit", children: /* @__PURE__ */ jsx(Link, { to: "create", children: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "small", children: t("actions.create") }) }) }) });
57
57
  };
58
58
  var StoreListHeader = ({
59
59
  children
@@ -207,6 +207,7 @@ var StoreListDataTable = () => {
207
207
  navigate(`bulk-edit?ids=${ids.join(",")}`);
208
208
  },
209
209
  label: t("stores.actions.edit.label"),
210
+ permission: "sellers:edit",
210
211
  shortcut: "e"
211
212
  }
212
213
  ]
@@ -225,7 +226,8 @@ var StoreActions = ({ seller }) => {
225
226
  {
226
227
  icon: /* @__PURE__ */ jsx4(PencilSquare, {}),
227
228
  label: t("actions.edit"),
228
- to: `/stores/${seller.id}/edit`
229
+ to: `/stores/${seller.id}/edit`,
230
+ permission: "sellers:edit"
229
231
  }
230
232
  ]
231
233
  }
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-5ENOJFDI.js";
4
+ } from "./chunk-7CGMFCSU.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
- } from "./chunk-J4SYK3RT.js";
7
+ } from "./chunk-DGRHDZQO.js";
8
8
  import {
9
9
  SingleColumnPage
10
10
  } from "./chunk-H6MYB7GB.js";
11
11
  import {
12
12
  _DataTable,
13
13
  useDataTable
14
- } from "./chunk-ZOU25JF6.js";
14
+ } from "./chunk-SU36MZXC.js";
15
+ import {
16
+ ActionMenu
17
+ } from "./chunk-3UOYBH5O.js";
15
18
  import {
16
19
  useDeletePromotion,
17
20
  usePromotions
18
21
  } from "./chunk-E5PC2WDZ.js";
19
- import {
20
- ActionMenu
21
- } from "./chunk-BDGZ4EQO.js";
22
22
 
23
23
  // src/pages/promotions/promotion-list/promotions-list.tsx
24
24
  import { Children as Children2 } from "react";
@@ -42,7 +42,7 @@ var PromotionListTitle = () => {
42
42
  };
43
43
  var PromotionListCreateButton = () => {
44
44
  const { t } = useTranslation();
45
- return /* @__PURE__ */ jsx(PermissionGuard, { resource: "promotion", operation: "create", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "promotion-list-table-create-button", children: /* @__PURE__ */ jsx(Link, { to: "create", children: t("actions.create") }) }) });
45
+ return /* @__PURE__ */ jsx(PermissionGuard, { permission: "promotions:edit", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "promotion-list-table-create-button", children: /* @__PURE__ */ jsx(Link, { to: "create", children: t("actions.create") }) }) });
46
46
  };
47
47
  var PromotionListActions = ({ children }) => {
48
48
  return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(PromotionListCreateButton, {}) });
@@ -161,11 +161,13 @@ var PromotionActions = ({ promotion }) => {
161
161
  actions: [
162
162
  {
163
163
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
164
+ permission: "promotions:edit",
164
165
  label: t("actions.edit"),
165
166
  to: `/promotions/${promotion.id}/edit`
166
167
  },
167
168
  {
168
169
  icon: /* @__PURE__ */ jsx(Trash, {}),
170
+ permission: "promotions:manage",
169
171
  label: t("actions.delete"),
170
172
  onClick: handleDelete
171
173
  }
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-MAEP2UCK.js";
11
11
  import {
12
12
  AddCampaignPromotionFields
13
- } from "./chunk-HFCJJJKP.js";
13
+ } from "./chunk-MKKOAF2W.js";
14
14
  import {
15
15
  useComboboxData
16
16
  } from "./chunk-5KGMGL4N.js";
@@ -33,6 +33,9 @@ import {
33
33
  import {
34
34
  Form
35
35
  } from "./chunk-3QSRE5LS.js";
36
+ import {
37
+ ConditionalTooltip
38
+ } from "./chunk-LAVHRER2.js";
36
39
  import {
37
40
  useCreatePromotion,
38
41
  useUpsertPromotionCost
@@ -172,6 +175,7 @@ import {
172
175
  } from "@medusajs/ui";
173
176
  import { useWatch as useWatch2 } from "react-hook-form";
174
177
  import { Trans, useTranslation } from "react-i18next";
178
+ import { usePermissionGate } from "@mercurjs/dashboard-shared";
175
179
  import { SwitchBox } from "@mercurjs/dashboard-shared";
176
180
  import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
177
181
  var Root2 = ({ currentTemplate }) => {
@@ -210,6 +214,7 @@ var Root2 = ({ currentTemplate }) => {
210
214
  name: "cost_bearer"
211
215
  });
212
216
  const isSharedCost = watchCostBearer === "shared";
217
+ const storesGate = usePermissionGate("sellers:view");
213
218
  const stores = useComboboxData({
214
219
  queryKey: ["promotion_stores"],
215
220
  queryFn: (params) => sdk.admin.sellers.query({ ...params, fields: "id,name" }),
@@ -217,7 +222,7 @@ var Root2 = ({ currentTemplate }) => {
217
222
  label: seller.name,
218
223
  value: seller.id
219
224
  })),
220
- enabled: isTypeBuyGet
225
+ enabled: isTypeBuyGet && storesGate.allowed
221
226
  });
222
227
  return /* @__PURE__ */ jsx2("div", { className: "flex size-full flex-col items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-8 py-16", children: [
223
228
  /* @__PURE__ */ jsxs(
@@ -855,21 +860,29 @@ var Root2 = ({ currentTemplate }) => {
855
860
  "data-testid": "promotion-create-form-store-item",
856
861
  children: [
857
862
  /* @__PURE__ */ jsx2(Form.Label, { "data-testid": "promotion-create-form-store-label", children: t("promotions.form.storeOffers.label") }),
858
- /* @__PURE__ */ jsx2(Form.Control, { "data-testid": "promotion-create-form-store-control", children: /* @__PURE__ */ jsx2(
859
- Combobox,
863
+ /* @__PURE__ */ jsx2(
864
+ ConditionalTooltip,
860
865
  {
861
- ...field,
862
- value: field.value ?? "",
863
- options: stores.options,
864
- searchValue: stores.searchValue,
865
- onSearchValueChange: stores.onSearchValueChange,
866
- fetchNextPage: stores.fetchNextPage,
867
- placeholder: t(
868
- "promotions.form.storeOffers.placeholder"
869
- ),
870
- "data-testid": "promotion-create-form-store-select"
866
+ showTooltip: storesGate.denied,
867
+ content: storesGate.tooltip,
868
+ children: /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(Form.Control, { "data-testid": "promotion-create-form-store-control", children: /* @__PURE__ */ jsx2(
869
+ Combobox,
870
+ {
871
+ ...field,
872
+ value: field.value ?? "",
873
+ options: stores.options,
874
+ searchValue: stores.searchValue,
875
+ onSearchValueChange: stores.onSearchValueChange,
876
+ fetchNextPage: stores.fetchNextPage,
877
+ placeholder: t(
878
+ "promotions.form.storeOffers.placeholder"
879
+ ),
880
+ disabled: storesGate.denied,
881
+ "data-testid": "promotion-create-form-store-select"
882
+ }
883
+ ) }) })
871
884
  }
872
- ) }),
885
+ ),
873
886
  /* @__PURE__ */ jsx2(Form.ErrorMessage, { "data-testid": "promotion-create-form-store-error" })
874
887
  ]
875
888
  }
@@ -20,13 +20,13 @@ import {
20
20
  import {
21
21
  _DataTable,
22
22
  useDataTable
23
- } from "./chunk-ZOU25JF6.js";
23
+ } from "./chunk-SU36MZXC.js";
24
+ import {
25
+ ActionMenu
26
+ } from "./chunk-3UOYBH5O.js";
24
27
  import {
25
28
  usePriceLists
26
29
  } from "./chunk-56XMCNDS.js";
27
- import {
28
- ActionMenu
29
- } from "./chunk-BDGZ4EQO.js";
30
30
 
31
31
  // src/pages/price-lists/price-list-list/price-list-list.tsx
32
32
  import { Children as Children3 } from "react";
@@ -51,7 +51,7 @@ var PriceListListActions = ({
51
51
  children
52
52
  }) => {
53
53
  const { t } = useTranslation();
54
- return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(PermissionGuard, { resource: "price_list", operation: "create", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx(Link, { to: "create", children: t("actions.create") }) }) }) });
54
+ return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(PermissionGuard, { permission: "price_lists:edit", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx(Link, { to: "create", children: t("actions.create") }) }) }) });
55
55
  };
56
56
  var PriceListListHeader = ({
57
57
  children
@@ -199,6 +199,7 @@ var PriceListListTableActions = ({ priceList }) => {
199
199
  {
200
200
  actions: [
201
201
  {
202
+ permission: "price_lists:edit",
202
203
  label: t("actions.edit"),
203
204
  to: `${priceList.id}/edit`,
204
205
  icon: /* @__PURE__ */ jsx3(PencilSquare, {})
@@ -208,6 +209,7 @@ var PriceListListTableActions = ({ priceList }) => {
208
209
  {
209
210
  actions: [
210
211
  {
212
+ permission: "price_lists:manage",
211
213
  label: t("actions.delete"),
212
214
  onClick: handleDelete,
213
215
  icon: /* @__PURE__ */ jsx3(Trash, {})
@@ -16,10 +16,10 @@ import {
16
16
  } from "./chunk-2HV33DOE.js";
17
17
  import {
18
18
  useProductTableColumns
19
- } from "./chunk-3KRUGI6C.js";
19
+ } from "./chunk-ONTZADVX.js";
20
20
  import {
21
21
  useProductTableFilters
22
- } from "./chunk-5TIADRZ7.js";
22
+ } from "./chunk-63JSBXD5.js";
23
23
  import {
24
24
  useProductTableQuery
25
25
  } from "./chunk-S4IDR46L.js";
@@ -29,10 +29,10 @@ import {
29
29
  import {
30
30
  _DataTable,
31
31
  useDataTable
32
- } from "./chunk-ZOU25JF6.js";
32
+ } from "./chunk-SU36MZXC.js";
33
33
  import {
34
34
  ActionMenu
35
- } from "./chunk-BDGZ4EQO.js";
35
+ } from "./chunk-3UOYBH5O.js";
36
36
  import {
37
37
  useProductCategory,
38
38
  useUpdateProductCategoryProducts
@@ -46,7 +46,7 @@ import {
46
46
  } from "./chunk-Z476HUMI.js";
47
47
 
48
48
  // src/pages/categories/category-detail/category-detail.tsx
49
- import { useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
49
+ import { PermissionGuard, useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
50
50
  import { Children } from "react";
51
51
  import { useLoaderData, useParams } from "react-router-dom";
52
52
 
@@ -98,7 +98,8 @@ var CategoryGeneralSection = ({
98
98
  {
99
99
  label: t("actions.edit"),
100
100
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
101
- to: "edit"
101
+ to: "edit",
102
+ permission: "product_categories:edit"
102
103
  }
103
104
  ]
104
105
  },
@@ -107,7 +108,8 @@ var CategoryGeneralSection = ({
107
108
  {
108
109
  label: t("actions.delete"),
109
110
  icon: /* @__PURE__ */ jsx(Trash, {}),
110
- onClick: handleDelete
111
+ onClick: handleDelete,
112
+ permission: "product_categories:manage"
111
113
  }
112
114
  ]
113
115
  }
@@ -180,7 +182,8 @@ var CategoryIconSection = ({
180
182
  {
181
183
  label: t("actions.edit"),
182
184
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
183
- to: "icon/edit"
185
+ to: "icon/edit",
186
+ permission: "product_categories:edit"
184
187
  }
185
188
  ]
186
189
  }
@@ -237,7 +240,8 @@ var CategoryMediaSection = ({
237
240
  {
238
241
  label: t("actions.edit"),
239
242
  icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
240
- to: "media?view=edit"
243
+ to: "media?view=edit",
244
+ permission: "product_categories:edit"
241
245
  }
242
246
  ]
243
247
  }
@@ -312,7 +316,8 @@ var CategoryOrganizeSection = ({
312
316
  {
313
317
  label: t("categories.organize.action"),
314
318
  icon: /* @__PURE__ */ jsx4(PencilSquare4, {}),
315
- to: `organize`
319
+ to: `organize`,
320
+ permission: "product_categories:edit"
316
321
  }
317
322
  ]
318
323
  }
@@ -432,7 +437,7 @@ var ChildrenDisplay = ({
432
437
 
433
438
  // src/pages/categories/category-detail/components/category-product-section/category-product-section.tsx
434
439
  import { ExclamationCircle, PlusMini } from "@medusajs/icons";
435
- import { DisplayExtensionZone as DisplayExtensionZone5 } from "@mercurjs/dashboard-shared";
440
+ import { DisplayExtensionZone as DisplayExtensionZone5, usePermissionGate } from "@mercurjs/dashboard-shared";
436
441
  import {
437
442
  Checkbox,
438
443
  CommandBar,
@@ -453,6 +458,7 @@ var CategoryProductSection = ({
453
458
  }) => {
454
459
  const { t } = useTranslation5();
455
460
  const prompt = usePrompt();
461
+ const editGate = usePermissionGate("product_categories:edit");
456
462
  const [selection, setSelection] = useState2({});
457
463
  const { raw, searchParams } = useProductTableQuery({ pageSize: PAGE_SIZE });
458
464
  const { products, count, isLoading, isError, error } = useProducts(
@@ -524,7 +530,8 @@ var CategoryProductSection = ({
524
530
  {
525
531
  label: t("actions.add"),
526
532
  icon: /* @__PURE__ */ jsx5(PlusMini, {}),
527
- to: "products"
533
+ to: "products",
534
+ permission: "product_categories:edit"
528
535
  }
529
536
  ]
530
537
  }
@@ -568,6 +575,7 @@ var CategoryProductSection = ({
568
575
  CommandBar.Command,
569
576
  {
570
577
  action: handleRemove,
578
+ disabled: editGate.denied,
571
579
  label: t("actions.remove"),
572
580
  shortcut: "r"
573
581
  }
@@ -639,7 +647,7 @@ var Root = ({ children }) => {
639
647
  /* @__PURE__ */ jsx6(CategoryGeneralSection, { category: product_category }),
640
648
  /* @__PURE__ */ jsx6(CategoryMediaSection, { category: product_category }),
641
649
  /* @__PURE__ */ jsx6(CategoryIconSection, { category: product_category }),
642
- /* @__PURE__ */ jsx6(CategoryProductSection, { category: product_category })
650
+ /* @__PURE__ */ jsx6(PermissionGuard, { permission: "products:view", children: /* @__PURE__ */ jsx6(CategoryProductSection, { category: product_category }) })
643
651
  ] }) }),
644
652
  /* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx6(WidgetZone, { id: "categories.detail.side", data: product_category, children: /* @__PURE__ */ jsx6(CategoryOrganizeSection, { category: product_category }) }) })
645
653
  ] });