@mercurjs/admin 2.3.6-canary.6 → 2.3.6-canary.7

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 (252) hide show
  1. package/dist/{add-campaign-promotions-6OB7BUPK.js → add-campaign-promotions-LGCLOFOD.js} +13 -8
  2. package/dist/{adjust-inventory-32UZ4BZC.js → adjust-inventory-H46YCNLT.js} +7 -2
  3. package/dist/{api-key-management-detail-ULNXV7YJ.js → api-key-management-detail-Z4KSJHUC.js} +5 -7
  4. package/dist/{api-key-management-list-KPWCB7NX.js → api-key-management-list-QZIRPINF.js} +5 -5
  5. package/dist/{api-key-management-sales-channels-RBK66ZGC.js → api-key-management-sales-channels-RGZ3QITG.js} +9 -7
  6. package/dist/{attribute-create-UWLP2DZY.js → attribute-create-OFTZRQCO.js} +3 -2
  7. package/dist/{attribute-detail-7PIMBKEE.js → attribute-detail-WVN5KOH2.js} +13 -7
  8. package/dist/{attribute-list-FLTRNSFI.js → attribute-list-ZC3CG5LS.js} +6 -6
  9. package/dist/{campaign-detail-WBWGUSMW.js → campaign-detail-MGDL2TQC.js} +10 -10
  10. package/dist/{campaign-list-M24QK43I.js → campaign-list-XCO4FJDZ.js} +5 -5
  11. package/dist/{categories-metadata-6F6EFZRQ.js → categories-metadata-QYH5U77W.js} +2 -2
  12. package/dist/{category-detail-3YY7FVY4.js → category-detail-FAP76OQB.js} +6 -7
  13. package/dist/{category-list-AT66O7HI.js → category-list-XDOYTQ4X.js} +5 -5
  14. package/dist/{category-products-RTOFMB25.js → category-products-35ZZYVWJ.js} +12 -5
  15. package/dist/{chunk-PH7TEL5B.js → chunk-23CSVCQK.js} +26 -15
  16. package/dist/{chunk-G4L2EPKT.js → chunk-25TWJMWE.js} +2 -2
  17. package/dist/{chunk-YJJ6YXFA.js → chunk-26REB3B6.js} +2 -1
  18. package/dist/{chunk-36C3CNJC.js → chunk-2IOADJUM.js} +27 -9
  19. package/dist/{chunk-ZH6TIKKW.js → chunk-2MOTQNEG.js} +1 -0
  20. package/dist/{chunk-4RKWEFNY.js → chunk-2XBNM6TM.js} +2 -2
  21. package/dist/{chunk-5KTSSLBG.js → chunk-3BKRMIWA.js} +21 -10
  22. package/dist/chunk-3UOYBH5O.js +8 -0
  23. package/dist/{chunk-T3AKFW7T.js → chunk-473QGQSA.js} +6 -3
  24. package/dist/{chunk-FV7B2OWJ.js → chunk-4AOVNA5G.js} +29 -18
  25. package/dist/{chunk-5LK5NAGN.js → chunk-4J4JAXXQ.js} +5 -3
  26. package/dist/{chunk-IKAUNMRC.js → chunk-4J74G7N2.js} +15 -3
  27. package/dist/{chunk-WIDHYDJQ.js → chunk-4JQDYQSX.js} +20 -10
  28. package/dist/{chunk-QPHY3XXC.js → chunk-4W77EUYY.js} +4 -2
  29. package/dist/{chunk-VKDZAXLK.js → chunk-5K4WEF2N.js} +19 -8
  30. package/dist/{chunk-AGO4ROOR.js → chunk-5OIFUF7R.js} +1 -1
  31. package/dist/{chunk-4CYHJ72Y.js → chunk-5QW3GY37.js} +25 -12
  32. package/dist/{chunk-BVKPOXLT.js → chunk-72DFLNNI.js} +9 -3
  33. package/dist/{chunk-X22JPPG6.js → chunk-7GCMYYFL.js} +5 -2
  34. package/dist/{chunk-AYKMFPKF.js → chunk-7LUKMT5J.js} +4 -2
  35. package/dist/{chunk-L3GVDREC.js → chunk-7OTRTHLL.js} +4 -2
  36. package/dist/{chunk-IZ77JV46.js → chunk-AUCCE46Q.js} +6 -3
  37. package/dist/{chunk-545HIUP3.js → chunk-AW4RL2SA.js} +58 -31
  38. package/dist/{chunk-62YRQVR7.js → chunk-AZV22U4V.js} +20 -5
  39. package/dist/{chunk-ZSXF4PEE.js → chunk-CX5XB56X.js} +4 -3
  40. package/dist/{chunk-J4SYK3RT.js → chunk-DGRHDZQO.js} +15 -5
  41. package/dist/{chunk-7UHN2CW7.js → chunk-DM52HEOD.js} +1 -1
  42. package/dist/{chunk-LMBIFEA5.js → chunk-DUKOOIQD.js} +3 -2
  43. package/dist/{chunk-VM35P6LF.js → chunk-DVFILGNQ.js} +7 -5
  44. package/dist/{chunk-5H4KS6M3.js → chunk-DWPBJEEM.js} +18 -5
  45. package/dist/{chunk-B4MSCLHO.js → chunk-E43YJQ2B.js} +42 -18
  46. package/dist/{chunk-NUMVOUQQ.js → chunk-EHLCUND7.js} +8 -6
  47. package/dist/{chunk-DBCNRZZE.js → chunk-EIPTLSNT.js} +3 -1
  48. package/dist/{chunk-7SHPS72O.js → chunk-EVYQCNVT.js} +4 -2
  49. package/dist/{chunk-VWK3K2CI.js → chunk-FCAJQFYT.js} +30 -10
  50. package/dist/{chunk-MKVEDGJ2.js → chunk-G63BL5AB.js} +5 -2
  51. package/dist/{chunk-BZPOERWW.js → chunk-GIV6KSQX.js} +18 -9
  52. package/dist/{chunk-QOMIRTO4.js → chunk-GQGCXLVP.js} +30 -11
  53. package/dist/{chunk-GWOZSV7A.js → chunk-GQYB3OOC.js} +105 -62
  54. package/dist/{chunk-IFG5ONPV.js → chunk-GZUXEIEB.js} +2 -2
  55. package/dist/{chunk-VOXWLJHA.js → chunk-H3TOETGJ.js} +11 -6
  56. package/dist/{chunk-B6XGTGMP.js → chunk-H4TJZB26.js} +24 -16
  57. package/dist/{chunk-AUTG5JEE.js → chunk-HHAM76HD.js} +41 -23
  58. package/dist/{chunk-XAQLGDAI.js → chunk-HPMMGA5B.js} +1 -1
  59. package/dist/{chunk-2IPSJDRD.js → chunk-I3RGMOTM.js} +18 -10
  60. package/dist/{chunk-4OCANHUL.js → chunk-IQRFJO4N.js} +3 -1
  61. package/dist/{chunk-WJPWYQYV.js → chunk-JFRYC6GK.js} +15 -8
  62. package/dist/{chunk-FOWWGEP7.js → chunk-JS2DAWKO.js} +9 -6
  63. package/dist/{chunk-ESVFENTS.js → chunk-K6OBX6ZR.js} +5 -4
  64. package/dist/{chunk-TN3HCAJ2.js → chunk-KB3BTLIB.js} +4 -2
  65. package/dist/{chunk-VIHLAFDA.js → chunk-KYOZ4CCY.js} +61 -29
  66. package/dist/{chunk-UFFLSUK4.js → chunk-LCUAIH7P.js} +4 -2
  67. package/dist/{chunk-3CLWBE4O.js → chunk-M7VHCFCW.js} +7 -5
  68. package/dist/{chunk-EVCAR6GP.js → chunk-MAEUKXZ4.js} +8 -5
  69. package/dist/{chunk-RU5IUJC2.js → chunk-MFGLOUTZ.js} +32 -10
  70. package/dist/{chunk-HFCJJJKP.js → chunk-MKKOAF2W.js} +26 -12
  71. package/dist/{chunk-AJCCPN5R.js → chunk-MNKJHZZT.js} +8 -4
  72. package/dist/{chunk-XV4YW4GE.js → chunk-NDS246VB.js} +20 -12
  73. package/dist/{chunk-ZPNRNL4X.js → chunk-NHZU2M7Z.js} +6 -4
  74. package/dist/{chunk-3JXOVOJI.js → chunk-NJ2NRKAJ.js} +55 -12
  75. package/dist/{chunk-CFQX7HAW.js → chunk-OCDZIJBM.js} +11 -5
  76. package/dist/{chunk-HBQ7EHHM.js → chunk-OGTWBHJC.js} +1 -1
  77. package/dist/{chunk-CBLCX5UK.js → chunk-Q2XWHI6K.js} +4 -1
  78. package/dist/{chunk-YWZQKODL.js → chunk-R55XYG6Y.js} +28 -15
  79. package/dist/{chunk-UZ2FWDJO.js → chunk-RAD3UMQ3.js} +4 -2
  80. package/dist/{chunk-WA3UZTKD.js → chunk-RUGB47D3.js} +1 -1
  81. package/dist/{chunk-ZOU25JF6.js → chunk-SU36MZXC.js} +11 -3
  82. package/dist/{chunk-SJEMUTO2.js → chunk-SW46WBFA.js} +29 -14
  83. package/dist/{chunk-NOK2356Y.js → chunk-SZSAJHN7.js} +4 -3
  84. package/dist/{chunk-QFYTIG3H.js → chunk-TPWSE5HE.js} +14 -9
  85. package/dist/{chunk-7ECQXPOG.js → chunk-TVCHVG2A.js} +3 -3
  86. package/dist/{chunk-ZPHVFD4N.js → chunk-TXZWIFWX.js} +1 -0
  87. package/dist/{chunk-HJACC6KV.js → chunk-UKQ6FES4.js} +6 -3
  88. package/dist/{chunk-7Y7YN7KG.js → chunk-USEE6QNQ.js} +65 -25
  89. package/dist/{chunk-JL3NKSLJ.js → chunk-USO2SWZV.js} +9 -4
  90. package/dist/{chunk-7C7YLUYT.js → chunk-V3UQOU5W.js} +4 -2
  91. package/dist/{chunk-HUJIVGX3.js → chunk-VD2CKAYG.js} +19 -8
  92. package/dist/{chunk-D3KEKNYN.js → chunk-VHO6ZXW2.js} +9 -5
  93. package/dist/{chunk-C4XKPQ6T.js → chunk-VLNTJXXO.js} +16 -3
  94. package/dist/{chunk-D3RDR3D3.js → chunk-W3LCOK3O.js} +153 -124
  95. package/dist/{chunk-IAMX7JMM.js → chunk-WD5XBWAN.js} +118 -53
  96. package/dist/chunk-WSK532ZA.js +236 -0
  97. package/dist/{chunk-RX7RU7VV.js → chunk-XI4SB5YZ.js} +120 -81
  98. package/dist/{chunk-KMLQ2ENL.js → chunk-XNGTE2VC.js} +1 -1
  99. package/dist/{chunk-TXEOM3WC.js → chunk-XUOGIKEE.js} +3 -3
  100. package/dist/{chunk-R22UAHRF.js → chunk-YDESULL7.js} +3 -1
  101. package/dist/{chunk-JODADMJ6.js → chunk-YN4KTMRA.js} +7 -5
  102. package/dist/{chunk-IVWSTXBV.js → chunk-YUKJJHI7.js} +8 -5
  103. package/dist/{chunk-4EQSS3YZ.js → chunk-Z2FX5GG4.js} +22 -10
  104. package/dist/{chunk-JQEAWWRP.js → chunk-ZPJOSHV7.js} +23 -12
  105. package/dist/{chunk-FX7HVGV5.js → chunk-ZQZFY3UY.js} +6 -4
  106. package/dist/{chunk-U2RBSUMY.js → chunk-ZU76OTV3.js} +2 -2
  107. package/dist/{collection-add-products-O5ILXKFY.js → collection-add-products-IIBLH7XQ.js} +12 -5
  108. package/dist/{collection-detail-N7VZKBIJ.js → collection-detail-IYZKDR4L.js} +6 -7
  109. package/dist/{collection-list-QQJAESFN.js → collection-list-EIDV4DEH.js} +11 -11
  110. package/dist/{collection-metadata-QUMWZABV.js → collection-metadata-IKYBHHEU.js} +2 -2
  111. package/dist/{commission-rule-create-CDLLQIY4.js → commission-rule-create-QDNXXBTV.js} +64 -30
  112. package/dist/{commission-rule-detail-CIE6TPXW.js → commission-rule-detail-QYJIK375.js} +3 -5
  113. package/dist/{commission-rule-edit-5CFKPI7U.js → commission-rule-edit-HICDPDLK.js} +58 -24
  114. package/dist/{commissions-list-US6OMDVL.js → commissions-list-AQUW636T.js} +6 -6
  115. package/dist/{customer-detail-CGKGZE2N.js → customer-detail-TBGKTNQQ.js} +8 -8
  116. package/dist/{customer-group-add-customers-XYWJSXKS.js → customer-group-add-customers-RWJOA2NJ.js} +3 -3
  117. package/dist/{customer-group-detail-JMBR3D72.js → customer-group-detail-47IPD337.js} +6 -7
  118. package/dist/{customer-group-list-GYEQ2GTL.js → customer-group-list-Q2AYIVO4.js} +6 -7
  119. package/dist/{customer-group-metadata-UQ2SCLOK.js → customer-group-metadata-T3WFBL7U.js} +2 -2
  120. package/dist/{customer-list-6X6RQDLK.js → customer-list-JOPTF4QB.js} +5 -6
  121. package/dist/{customer-metadata-UEQSIGLT.js → customer-metadata-YSMWL4L3.js} +2 -2
  122. package/dist/{customers-add-customer-group-AZYAIQ7E.js → customers-add-customer-group-AVRYBS6Q.js} +13 -6
  123. package/dist/{edit-inventory-item-ENA2OFSQ.js → edit-inventory-item-7M7Q6HL4.js} +1 -1
  124. package/dist/{edit-inventory-item-attributes-Z26UDTSH.js → edit-inventory-item-attributes-E7J2WFPF.js} +1 -1
  125. package/dist/{edit-reservation-W3THLKKK.js → edit-reservation-S3QTQRPY.js} +11 -3
  126. package/dist/{edit-rules-3DCWA5UF.js → edit-rules-NRF7U4AT.js} +1 -1
  127. package/dist/{home-RT4EIJFM.js → home-KKOF4FWS.js} +3 -3
  128. package/dist/index.css +3 -0
  129. package/dist/index.d.ts +10 -28
  130. package/dist/index.js +431 -545
  131. package/dist/{inventory-detail-PMJN4E2D.js → inventory-detail-U6TRGZRY.js} +6 -6
  132. package/dist/{inventory-list-XS3OFHLW.js → inventory-list-JWA7U2LB.js} +4 -5
  133. package/dist/{inventory-metadata-OGS7JMZ5.js → inventory-metadata-KO622YEI.js} +2 -2
  134. package/dist/{inventory-stock-LDBJQCJF.js → inventory-stock-WWXYVFK2.js} +20 -10
  135. package/dist/{location-detail-DKBNATDD.js → location-detail-27FBZML7.js} +4 -6
  136. package/dist/{location-fulfillment-providers-JGJOTGMZ.js → location-fulfillment-providers-XTYJWAVP.js} +19 -11
  137. package/dist/{location-list-JJN42JSH.js → location-list-RMHT36AO.js} +4 -6
  138. package/dist/{location-sales-channels-FT6TFVXJ.js → location-sales-channels-JB5OIMXE.js} +13 -6
  139. package/dist/{location-service-zone-create-KPM4RSCF.js → location-service-zone-create-JKAKZCZ2.js} +3 -3
  140. package/dist/{location-service-zone-manage-areas-NW5JUTCH.js → location-service-zone-manage-areas-K2BMFI5Y.js} +3 -3
  141. package/dist/{location-service-zone-shipping-option-create-RYAIECRU.js → location-service-zone-shipping-option-create-WJOLO6A3.js} +3 -3
  142. package/dist/{location-service-zone-shipping-option-edit-UUIR7B5S.js → location-service-zone-shipping-option-edit-I7BJGH76.js} +23 -10
  143. package/dist/{location-service-zone-shipping-option-pricing-Z5HCXRHG.js → location-service-zone-shipping-option-pricing-47Y3CP4U.js} +36 -12
  144. package/dist/{login-72TAMW53.js → login-ISNIWXU2.js} +1 -1
  145. package/dist/{manage-locations-TCMY6A4J.js → manage-locations-5FKFNJQN.js} +13 -2
  146. package/dist/{marketplace-add-currencies-Z6FUIAU5.js → marketplace-add-currencies-34XKWMI7.js} +33 -9
  147. package/dist/{marketplace-detail-UYBZIFQW.js → marketplace-detail-A76FTENH.js} +6 -6
  148. package/dist/{marketplace-edit-G7YNGABC.js → marketplace-edit-KXKUECZQ.js} +61 -30
  149. package/dist/{marketplace-metadata-2TZTRDRJ.js → marketplace-metadata-364KJG43.js} +2 -2
  150. package/dist/{offer-detail-page-XU6XK6YR.js → offer-detail-page-BDDDZSPL.js} +19 -8
  151. package/dist/{offer-variant-detail-page-FVJE5WLV.js → offer-variant-detail-page-HQU4HMZH.js} +4 -5
  152. package/dist/{offers-RS4UORI3.js → offers-OVX5AAQL.js} +6 -7
  153. package/dist/{order-create-claim-PPUQXVYH.js → order-create-claim-4ERPSGPD.js} +103 -59
  154. package/dist/{order-create-edit-QH25BOIU.js → order-create-edit-BGLNMKKI.js} +15 -8
  155. package/dist/{order-create-exchange-5PCJ25LK.js → order-create-exchange-TOPPZZGS.js} +104 -60
  156. package/dist/{order-create-refund-ZWMXQGUA.js → order-create-refund-M3K5MZDM.js} +38 -23
  157. package/dist/{order-create-return-ECGHPLEZ.js → order-create-return-64GZ2LCL.js} +107 -68
  158. package/dist/{order-detail-XYHRY25Y.js → order-detail-DIUKR6ZJ.js} +7 -7
  159. package/dist/{order-edit-billing-address-V6QS5DYF.js → order-edit-billing-address-CCRTK5E2.js} +2 -2
  160. package/dist/{order-edit-email-AGJU7YHU.js → order-edit-email-V45SEUCO.js} +1 -1
  161. package/dist/{order-edit-shipping-address-TKLEEHOE.js → order-edit-shipping-address-45Z6TNHL.js} +1 -1
  162. package/dist/{order-list-L2WZX5ED.js → order-list-C7PHMQ64.js} +5 -5
  163. package/dist/{order-metadata-NVC3A3A5.js → order-metadata-7245QRUQ.js} +2 -2
  164. package/dist/{order-request-transfer-7EZX5UOQ.js → order-request-transfer-JYPDXCY2.js} +27 -13
  165. package/dist/pages/index.d.ts +2 -2
  166. package/dist/pages/index.js +88 -88
  167. package/dist/{payout-list-WZ6QMJJY.js → payout-list-KILGQ4XP.js} +3 -3
  168. package/dist/{price-list-create-DRKZIV2D.js → price-list-create-UZRCHVU7.js} +9 -9
  169. package/dist/{price-list-customer-availability-WU2OGO37.js → price-list-customer-availability-CQY55U4O.js} +31 -14
  170. package/dist/{price-list-detail-AML5XNDJ.js → price-list-detail-IL7VSABK.js} +6 -7
  171. package/dist/{price-list-list-FPCLLS33.js → price-list-list-TD5JIO7L.js} +5 -5
  172. package/dist/{price-list-prices-add-HAYZV2XV.js → price-list-prices-add-DSRYUJUT.js} +8 -8
  173. package/dist/{price-list-prices-edit-S4V5ACN3.js → price-list-prices-edit-WELHT4O4.js} +18 -9
  174. package/dist/{product-add-existing-attributes-VWM3LNIO.js → product-add-existing-attributes-RPIHTSCE.js} +7 -5
  175. package/dist/{product-create-73WXVANY.js → product-create-PMV3LO62.js} +9 -9
  176. package/dist/{product-detail-ZKQXB7PH.js → product-detail-KVLZYO76.js} +6 -7
  177. package/dist/{product-edit-attribute-W3AS47FM.js → product-edit-attribute-URHTZ2EQ.js} +9 -3
  178. package/dist/{product-list-SYMPZR6W.js → product-list-M6B42KCG.js} +6 -7
  179. package/dist/{product-media-6XS74AU3.js → product-media-R2FIBFR5.js} +2 -2
  180. package/dist/{product-metadata-GKQUURAL.js → product-metadata-SC5BXN66.js} +2 -2
  181. package/dist/{product-organization-3PIQ4IY2.js → product-organization-BSPYZYZR.js} +87 -43
  182. package/dist/{product-sales-channels-PJNEIY4J.js → product-sales-channels-MNAFJKAI.js} +10 -5
  183. package/dist/{product-shipping-profile-SWB5FK7S.js → product-shipping-profile-G4NCDKSR.js} +25 -11
  184. package/dist/{product-tag-create-SYOFR5EK.js → product-tag-create-PX7Q2AXU.js} +1 -1
  185. package/dist/{product-tag-detail-Q3CKJBVX.js → product-tag-detail-LXO43RMB.js} +11 -11
  186. package/dist/{product-tag-edit-FJPBCFBH.js → product-tag-edit-PXSZMCCT.js} +1 -1
  187. package/dist/{product-tag-list-BNNJS67H.js → product-tag-list-XWTZGQTT.js} +11 -11
  188. package/dist/{product-tag-metadata-WQEGISQ5.js → product-tag-metadata-2SO7ICOZ.js} +2 -2
  189. package/dist/{product-type-detail-WZLA27WI.js → product-type-detail-NO4PKFYQ.js} +6 -7
  190. package/dist/{product-type-list-PAAE6ZSR.js → product-type-list-JXU3446J.js} +5 -5
  191. package/dist/{product-type-metadata-WCGB3U4N.js → product-type-metadata-7D3J3NSO.js} +2 -2
  192. package/dist/{product-variant-detail-7B26FRNG.js → product-variant-detail-VQ55W7PD.js} +3 -5
  193. package/dist/{product-variant-edit-UC34WTO7.js → product-variant-edit-3WSHMGDI.js} +1 -1
  194. package/dist/{product-variant-metadata-CTKNNNLM.js → product-variant-metadata-KFLIOCU2.js} +2 -2
  195. package/dist/{profile-detail-GDQQJUWF.js → profile-detail-SQZ6JFAN.js} +3 -5
  196. package/dist/{profile-edit-ZBD6N5SC.js → profile-edit-IVU3SBQA.js} +3 -3
  197. package/dist/{promotion-add-campaign-VAF3HTLK.js → promotion-add-campaign-SWTS4TM5.js} +2 -1
  198. package/dist/{promotion-create-FKRGXGI4.js → promotion-create-6TMK6PEP.js} +4 -3
  199. package/dist/{promotion-detail-HOXUK5VG.js → promotion-detail-WBTMSCTX.js} +6 -8
  200. package/dist/{promotion-list-LJKKLZNU.js → promotion-list-FPOTDLHX.js} +9 -9
  201. package/dist/{refund-reason-create-TOH2D225.js → refund-reason-create-HZOBFOPB.js} +1 -1
  202. package/dist/{refund-reason-edit-B32E4WHH.js → refund-reason-edit-KS6NMC22.js} +1 -1
  203. package/dist/{refund-reason-list-3YLXKHJX.js → refund-reason-list-4T7DIRZV.js} +5 -6
  204. package/dist/{region-add-countries-4CTAVHYW.js → region-add-countries-47QLUMX7.js} +2 -2
  205. package/dist/{region-create-S2WUJ4RA.js → region-create-7DI3QEPU.js} +25 -11
  206. package/dist/{region-detail-YTB7OEQU.js → region-detail-S5OT2PGL.js} +4 -5
  207. package/dist/{region-edit-NUMG2V5L.js → region-edit-IXCS3MRH.js} +32 -14
  208. package/dist/{region-list-JP3CZISQ.js → region-list-2MWAGD2D.js} +4 -5
  209. package/dist/{region-metadata-NAHNXAHQ.js → region-metadata-ADPG7OLJ.js} +2 -2
  210. package/dist/{reservation-create-H3T3AHTK.js → reservation-create-YEICXID2.js} +67 -44
  211. package/dist/{reservation-detail-M42OB6BC.js → reservation-detail-EBIDXEVF.js} +3 -5
  212. package/dist/{reservation-list-FQAWE7S5.js → reservation-list-5QNXC2WU.js} +4 -5
  213. package/dist/{reservation-metadata-AKR6FRG5.js → reservation-metadata-TWJE777O.js} +2 -2
  214. package/dist/{reset-password-RJ5VSBQV.js → reset-password-3YLCNWLP.js} +1 -1
  215. package/dist/{return-reason-list-PKAJDA6A.js → return-reason-list-BDR7VUEV.js} +5 -5
  216. package/dist/{review-detail-K555FECH.js → review-detail-NPB3OKCE.js} +2 -4
  217. package/dist/{review-list-5NGJJH23.js → review-list-NXBVRP5T.js} +4 -5
  218. package/dist/{sales-channel-add-products-RRTMXVAT.js → sales-channel-add-products-VAHBFZP3.js} +15 -6
  219. package/dist/{sales-channel-detail-7GAGHWEP.js → sales-channel-detail-A7HHMQVX.js} +6 -7
  220. package/dist/{sales-channel-list-BCL62DTX.js → sales-channel-list-246V7NV3.js} +4 -6
  221. package/dist/{sales-channel-metadata-BKNILVQ2.js → sales-channel-metadata-PMLMQIKU.js} +2 -2
  222. package/dist/settings-UYGKDTNO.js +63 -0
  223. package/dist/{shipping-option-type-create-ZVOMA222.js → shipping-option-type-create-NOFP2DOM.js} +1 -1
  224. package/dist/{shipping-option-type-detail-2VDQWYDS.js → shipping-option-type-detail-47AZVCFP.js} +3 -5
  225. package/dist/{shipping-option-type-edit-CZFRAZPJ.js → shipping-option-type-edit-42JILKHX.js} +1 -1
  226. package/dist/{shipping-option-type-list-2XUYXURQ.js → shipping-option-type-list-TTAA63ZN.js} +6 -6
  227. package/dist/{shipping-profile-detail-7SE5GLQZ.js → shipping-profile-detail-RGB67K3C.js} +2 -4
  228. package/dist/{shipping-profile-metadata-UEZYRBZQ.js → shipping-profile-metadata-GXMY5E57.js} +2 -2
  229. package/dist/{shipping-profiles-list-GC6AK77V.js → shipping-profiles-list-DD3G2THE.js} +4 -5
  230. package/dist/{store-create-JBY2MAIT.js → store-create-UQ333C5F.js} +36 -14
  231. package/dist/{store-details-MPTCI4VG.js → store-details-OAONJZHB.js} +8 -9
  232. package/dist/{store-edit-BXWV5H4Z.js → store-edit-6Q3GLLJE.js} +2 -2
  233. package/dist/{store-list-LPKSZF2E.js → store-list-PANSKKVA.js} +10 -11
  234. package/dist/{store-member-invite-A2WAB5GK.js → store-member-invite-235YGK55.js} +14 -5
  235. package/dist/{tax-region-create-OGVIIVMO.js → tax-region-create-ECRRD74Z.js} +2 -2
  236. package/dist/{tax-region-detail-3CMIPIKA.js → tax-region-detail-PU4Q42KO.js} +7 -8
  237. package/dist/{tax-region-edit-DUBTSOQ4.js → tax-region-edit-P4L2CUFV.js} +1 -1
  238. package/dist/{tax-region-list-U5JRCQZI.js → tax-region-list-PUNXDH34.js} +5 -6
  239. package/dist/{tax-region-metadata-KHODQCDW.js → tax-region-metadata-EDZ7YGYR.js} +2 -2
  240. package/dist/{tax-region-province-detail-XTPJ6DZZ.js → tax-region-province-detail-3ZQOCKZ2.js} +6 -7
  241. package/dist/{tax-region-tax-override-create-NMLHLS7J.js → tax-region-tax-override-create-CPWWLRMI.js} +10 -10
  242. package/dist/{tax-region-tax-override-edit-4SJ3DRAF.js → tax-region-tax-override-edit-TQCB5GSO.js} +41 -21
  243. package/dist/{user-detail-RD3T5WQT.js → user-detail-4H37KBIP.js} +3 -5
  244. package/dist/{user-edit-Y5VP6CKB.js → user-edit-42A2VX5E.js} +1 -1
  245. package/dist/{user-invite-4JFF3NRW.js → user-invite-5EJ3CIQZ.js} +5 -4
  246. package/dist/{user-list-X6UZ6UZM.js → user-list-EZ56HFI3.js} +5 -6
  247. package/dist/{user-metadata-XNM2JNNO.js → user-metadata-3GENWLUS.js} +2 -2
  248. package/package.json +6 -6
  249. package/dist/chunk-BDGZ4EQO.js +0 -86
  250. package/dist/settings-AVE3VCCM.js +0 -19
  251. package/dist/{customer-edit-5EH2AUGN.js → customer-edit-LDKAXHZ6.js} +3 -3
  252. package/dist/{store-bulk-edit-FQPQQR46.js → store-bulk-edit-XWDZQPFO.js} +1 -1
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-54EPH67T.js";
4
4
  import {
5
5
  useCustomerGroupTableFilters
6
- } from "./chunk-CFQX7HAW.js";
6
+ } from "./chunk-OCDZIJBM.js";
7
7
  import {
8
8
  useOrderGroupTableFilters
9
- } from "./chunk-JQEAWWRP.js";
9
+ } from "./chunk-ZPJOSHV7.js";
10
10
  import {
11
11
  useOrderTableQuery
12
12
  } from "./chunk-QUHSHIAC.js";
@@ -36,13 +36,13 @@ import {
36
36
  import {
37
37
  _DataTable,
38
38
  useDataTable
39
- } from "./chunk-ZOU25JF6.js";
39
+ } from "./chunk-SU36MZXC.js";
40
40
  import {
41
41
  NoRecords
42
- } from "./chunk-IKAUNMRC.js";
42
+ } from "./chunk-4J74G7N2.js";
43
43
  import {
44
44
  ActionMenu
45
- } from "./chunk-BDGZ4EQO.js";
45
+ } from "./chunk-3UOYBH5O.js";
46
46
  import {
47
47
  useOrderGroups
48
48
  } from "./chunk-OQ2J45XW.js";
@@ -61,13 +61,13 @@ import {
61
61
  // src/pages/customers/customer-detail/customer-detail.tsx
62
62
  import { Children } from "react";
63
63
  import { useLoaderData, useParams } from "react-router-dom";
64
- import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
64
+ import { PermissionGuard, WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
65
65
 
66
66
  // src/pages/customers/customer-detail/components/customer-address-section/customer-address-section.tsx
67
67
  import { Button, clx, Container, Heading, toast, usePrompt } from "@medusajs/ui";
68
68
  import { useTranslation } from "react-i18next";
69
69
  import { PencilSquare, Trash } from "@medusajs/icons";
70
- import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
70
+ import { DisplayExtensionZone, PermissionAction } from "@mercurjs/dashboard-shared";
71
71
  import { Link, useNavigate } from "react-router-dom";
72
72
 
73
73
  // src/components/common/listicle/listicle.tsx
@@ -125,7 +125,7 @@ var CustomerAddressSection = ({
125
125
  return /* @__PURE__ */ jsxs2(Container, { className: "p-0", "data-testid": "customer-address-section", children: [
126
126
  /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "customer-address-section-header", children: [
127
127
  /* @__PURE__ */ jsx2(Heading, { level: "h2", "data-testid": "customer-address-section-heading", children: t2("addresses.title") }),
128
- /* @__PURE__ */ jsx2(Link, { to: `create-address`, "data-testid": "customer-address-section-add-link", children: /* @__PURE__ */ jsx2(Button, { variant: "secondary", size: "small", "data-testid": "customer-address-section-create-button", children: t2("actions.create") }) })
128
+ /* @__PURE__ */ jsx2(PermissionAction, { permission: "customers:edit", children: /* @__PURE__ */ jsx2(Button, { variant: "secondary", size: "small", asChild: true, "data-testid": "customer-address-section-create-button", children: /* @__PURE__ */ jsx2(Link, { to: `create-address`, "data-testid": "customer-address-section-add-link", children: t2("actions.create") }) }) })
129
129
  ] }),
130
130
  addresses.length === 0 && /* @__PURE__ */ jsx2("div", { "data-testid": "customer-address-section-no-records", children: /* @__PURE__ */ jsx2(
131
131
  NoRecords,
@@ -154,7 +154,8 @@ var CustomerAddressSection = ({
154
154
  {
155
155
  icon: /* @__PURE__ */ jsx2(PencilSquare, {}),
156
156
  label: t2("actions.edit"),
157
- to: `edit-address/${address.id}`
157
+ to: `edit-address/${address.id}`,
158
+ permission: "customers:edit"
158
159
  }
159
160
  ]
160
161
  },
@@ -163,6 +164,7 @@ var CustomerAddressSection = ({
163
164
  {
164
165
  icon: /* @__PURE__ */ jsx2(Trash, {}),
165
166
  label: t2("actions.delete"),
167
+ permission: "customers:manage",
166
168
  onClick: async () => {
167
169
  await handleDelete(address);
168
170
  }
@@ -247,7 +249,8 @@ var CustomerGeneralSection = ({
247
249
  {
248
250
  label: t2("actions.edit"),
249
251
  icon: /* @__PURE__ */ jsx3(PencilSquare2, {}),
250
- to: "edit"
252
+ to: "edit",
253
+ permission: "customers:edit"
251
254
  }
252
255
  ]
253
256
  },
@@ -256,7 +259,8 @@ var CustomerGeneralSection = ({
256
259
  {
257
260
  label: t2("actions.delete"),
258
261
  icon: /* @__PURE__ */ jsx3(Trash2, {}),
259
- onClick: handleDelete
262
+ onClick: handleDelete,
263
+ permission: "customers:manage"
260
264
  }
261
265
  ]
262
266
  }
@@ -302,7 +306,7 @@ import { createColumnHelper } from "@tanstack/react-table";
302
306
  import { t } from "i18next";
303
307
  import { useMemo, useState } from "react";
304
308
  import { PencilSquare as PencilSquare3, Trash as Trash3 } from "@medusajs/icons";
305
- import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
309
+ import { DisplayExtensionZone as DisplayExtensionZone3, PermissionAction as PermissionAction2 } from "@mercurjs/dashboard-shared";
306
310
  import { keepPreviousData } from "@tanstack/react-query";
307
311
  import { useTranslation as useTranslation3 } from "react-i18next";
308
312
  import { Link as Link2 } from "react-router-dom";
@@ -383,7 +387,7 @@ var CustomerGroupSection = ({
383
387
  return /* @__PURE__ */ jsxs4(Container3, { className: "divide-y p-0", "data-testid": "customer-group-section", children: [
384
388
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "customer-group-section-header", children: [
385
389
  /* @__PURE__ */ jsx4(Heading3, { level: "h2", "data-testid": "customer-group-section-heading", children: t("customerGroups.domain") }),
386
- /* @__PURE__ */ jsx4(Link2, { to: `/customers/${customer.id}/add-customer-groups`, "data-testid": "customer-group-section-add-link", children: /* @__PURE__ */ jsx4(Button2, { variant: "secondary", size: "small", "data-testid": "customer-group-section-add-button", children: t("general.add") }) })
390
+ /* @__PURE__ */ jsx4(PermissionAction2, { permission: "customers:edit", children: /* @__PURE__ */ jsx4(Button2, { variant: "secondary", size: "small", asChild: true, "data-testid": "customer-group-section-add-button", children: /* @__PURE__ */ jsx4(Link2, { to: `/customers/${customer.id}/add-customer-groups`, "data-testid": "customer-group-section-add-link", children: t("general.add") }) }) })
387
391
  ] }),
388
392
  /* @__PURE__ */ jsx4(
389
393
  _DataTable,
@@ -407,6 +411,7 @@ var CustomerGroupSection = ({
407
411
  commands: [
408
412
  {
409
413
  action: handleRemove,
414
+ permission: "customers:edit",
410
415
  label: t("actions.remove"),
411
416
  shortcut: "r"
412
417
  }
@@ -462,11 +467,13 @@ var CustomerGroupRowActions = ({
462
467
  {
463
468
  label: t2("actions.edit"),
464
469
  icon: /* @__PURE__ */ jsx4(PencilSquare3, {}),
465
- to: `/customer-groups/${group.id}/edit`
470
+ to: `/customer-groups/${group.id}/edit`,
471
+ permission: "customer_groups:edit"
466
472
  },
467
473
  {
468
474
  label: t2("actions.remove"),
469
475
  onClick: onRemove,
476
+ permission: "customer_groups:edit",
470
477
  icon: /* @__PURE__ */ jsx4(Trash3, {})
471
478
  }
472
479
  ]
@@ -676,6 +683,7 @@ var CustomerOrderActions = ({ orderId }) => {
676
683
  {
677
684
  label: t2("transferOwnership.label"),
678
685
  to: `${orderId}/transfer`,
686
+ permission: "orders:edit",
679
687
  icon: /* @__PURE__ */ jsx5(ArrowPath, {})
680
688
  }
681
689
  ]
@@ -809,8 +817,8 @@ var Root = ({ children }) => {
809
817
  return Children.count(children) > 0 ? /* @__PURE__ */ jsx6(TwoColumnPage, { data: customer, hasOutlet: true, showJSON: true, showMetadata: true, children }) : /* @__PURE__ */ jsxs6(TwoColumnPage, { data: customer, hasOutlet: true, showJSON: true, showMetadata: true, children: [
810
818
  /* @__PURE__ */ jsx6(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "customers.detail.main", data: customer, children: [
811
819
  /* @__PURE__ */ jsx6(CustomerGeneralSection, { customer }),
812
- /* @__PURE__ */ jsx6(CustomerOrderSection, { customer }),
813
- /* @__PURE__ */ jsx6(CustomerGroupSection, { customer })
820
+ /* @__PURE__ */ jsx6(PermissionGuard, { permission: "orders:view", children: /* @__PURE__ */ jsx6(CustomerOrderSection, { customer }) }),
821
+ /* @__PURE__ */ jsx6(PermissionGuard, { permission: "customer_groups:view", children: /* @__PURE__ */ jsx6(CustomerGroupSection, { customer }) })
814
822
  ] }) }),
815
823
  /* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx6(WidgetZone, { id: "customers.detail.side", data: customer, children: /* @__PURE__ */ jsx6(CustomerAddressSection, { customer }) }) })
816
824
  ] });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ProductMediaSection
3
- } from "./chunk-IZ77JV46.js";
3
+ } from "./chunk-AUCCE46Q.js";
4
4
  import {
5
5
  SectionRow
6
6
  } from "./chunk-3XPXUIK3.js";
@@ -22,10 +22,10 @@ import {
22
22
  import {
23
23
  _DataTable,
24
24
  useDataTable
25
- } from "./chunk-ZOU25JF6.js";
25
+ } from "./chunk-SU36MZXC.js";
26
26
  import {
27
27
  ActionMenu
28
- } from "./chunk-BDGZ4EQO.js";
28
+ } from "./chunk-3UOYBH5O.js";
29
29
  import {
30
30
  useSeller
31
31
  } from "./chunk-HRMANL53.js";
@@ -65,7 +65,9 @@ var import_types = __toESM(require_dist(), 1);
65
65
  import { useState as useState2 } from "react";
66
66
  import { Button, Text, toast } from "@medusajs/ui";
67
67
  import {
68
- ProductChangePanel
68
+ ProductChangePanel,
69
+ usePermissions,
70
+ PermissionAction
69
71
  } from "@mercurjs/dashboard-shared";
70
72
  import { useTranslation as useTranslation2 } from "react-i18next";
71
73
 
@@ -151,26 +153,31 @@ var ConfirmPrompt = ({
151
153
  // src/pages/products/product-detail/components/product-active-edit-section/product-active-edit-section.tsx
152
154
  import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
153
155
  var VARIANT_LOOKUP_FIELDS = "id,title,sku,*images";
154
- var resolversFor = (productId) => ({
156
+ var resolversFor = (productId, can) => ({
155
157
  getType: async (id) => {
158
+ if (!can("product_types")) return null;
156
159
  const { product_type } = await sdk.admin.productTypes.$id.query({ $id: id });
157
160
  return product_type?.value ?? null;
158
161
  },
159
162
  getCollection: async (id) => {
163
+ if (!can("product_collections")) return null;
160
164
  const { collection } = await sdk.admin.collections.$id.query({ $id: id });
161
165
  return collection?.title ?? null;
162
166
  },
163
167
  getCategory: async (id) => {
168
+ if (!can("product_categories")) return null;
164
169
  const { product_category } = await sdk.admin.productCategories.$id.query({
165
170
  $id: id
166
171
  });
167
172
  return product_category?.name ?? null;
168
173
  },
169
174
  getTag: async (id) => {
175
+ if (!can("product_tags")) return null;
170
176
  const { product_tag } = await sdk.admin.productTags.$id.query({ $id: id });
171
177
  return product_tag?.value ?? null;
172
178
  },
173
179
  getAttribute: async (id) => {
180
+ if (!can("product_attributes")) return null;
174
181
  const { product_attribute } = await sdk.admin.productAttributes.$id.query({
175
182
  $id: id
176
183
  });
@@ -196,6 +203,7 @@ var ProductActiveEditSection = ({
196
203
  product
197
204
  }) => {
198
205
  const { t } = useTranslation2();
206
+ const { can } = usePermissions();
199
207
  const [confirmOpen, setConfirmOpen] = useState2(false);
200
208
  const [rejectOpen, setRejectOpen] = useState2(false);
201
209
  const { product_change, isError } = useProductChange(product.id, {
@@ -203,7 +211,7 @@ var ProductActiveEditSection = ({
203
211
  });
204
212
  const requesterId = product_change?.created_by ?? "";
205
213
  const { seller: requesterSeller } = useSeller(requesterId, void 0, {
206
- enabled: !!requesterId
214
+ enabled: !!requesterId && can("sellers")
207
215
  });
208
216
  const { mutateAsync: confirmChange, isPending: isConfirming } = useConfirmProductChange(product_change?.id ?? "", product.id);
209
217
  const { mutateAsync: cancelChange, isPending: isRejecting } = useCancelProductChange(product_change?.id ?? "", product.id);
@@ -244,12 +252,12 @@ var ProductActiveEditSection = ({
244
252
  {
245
253
  product: panelProduct,
246
254
  actions: product_change.actions ?? [],
247
- resolvers: resolversFor(product.id),
255
+ resolvers: resolversFor(product.id, can),
248
256
  headerDescription: /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: t("products.edits.panel.description", {
249
257
  store: requesterSeller?.name ?? t("products.request.fallbackStore")
250
258
  }) }),
251
259
  footer: /* @__PURE__ */ jsxs2(Fragment, { children: [
252
- /* @__PURE__ */ jsx2(
260
+ /* @__PURE__ */ jsx2(PermissionAction, { permission: "products.review:edit", children: /* @__PURE__ */ jsx2(
253
261
  Button,
254
262
  {
255
263
  size: "small",
@@ -258,8 +266,8 @@ var ProductActiveEditSection = ({
258
266
  "data-testid": "product-active-edit-confirm-button",
259
267
  children: t("actions.confirm")
260
268
  }
261
- ),
262
- /* @__PURE__ */ jsx2(
269
+ ) }),
270
+ /* @__PURE__ */ jsx2(PermissionAction, { permission: "products.review:edit", children: /* @__PURE__ */ jsx2(
263
271
  Button,
264
272
  {
265
273
  size: "small",
@@ -268,7 +276,7 @@ var ProductActiveEditSection = ({
268
276
  "data-testid": "product-active-edit-reject-button",
269
277
  children: t("products.edits.actions.reject")
270
278
  }
271
- )
279
+ ) })
272
280
  ] })
273
281
  }
274
282
  ),
@@ -310,7 +318,7 @@ import { useState as useState3 } from "react";
310
318
  import { Button as Button2, Container, Heading, Text as Text2, toast as toast2 } from "@medusajs/ui";
311
319
  import { ExclamationCircleSolid } from "@medusajs/icons";
312
320
  import { useTranslation as useTranslation3 } from "react-i18next";
313
- import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
321
+ import { DisplayExtensionZone, PermissionAction as PermissionAction2 } from "@mercurjs/dashboard-shared";
314
322
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
315
323
  var ProductActiveRequestSection = ({
316
324
  product
@@ -378,7 +386,7 @@ var ProductActiveRequestSection = ({
378
386
  className: "bg-ui-bg-subtle flex items-center justify-end gap-x-2 rounded-b-xl px-6 py-4",
379
387
  "data-testid": "product-active-request-actions",
380
388
  children: [
381
- /* @__PURE__ */ jsx3(
389
+ /* @__PURE__ */ jsx3(PermissionAction2, { permission: "products.review:edit", children: /* @__PURE__ */ jsx3(
382
390
  Button2,
383
391
  {
384
392
  size: "small",
@@ -387,8 +395,8 @@ var ProductActiveRequestSection = ({
387
395
  "data-testid": "product-active-request-confirm-button",
388
396
  children: t("actions.confirm")
389
397
  }
390
- ),
391
- /* @__PURE__ */ jsx3(
398
+ ) }),
399
+ /* @__PURE__ */ jsx3(PermissionAction2, { permission: "products.review:edit", children: /* @__PURE__ */ jsx3(
392
400
  Button2,
393
401
  {
394
402
  size: "small",
@@ -397,8 +405,8 @@ var ProductActiveRequestSection = ({
397
405
  "data-testid": "product-active-request-request-update-button",
398
406
  children: t("products.request.actions.requestUpdate")
399
407
  }
400
- ),
401
- /* @__PURE__ */ jsx3(
408
+ ) }),
409
+ /* @__PURE__ */ jsx3(PermissionAction2, { permission: "products.review:edit", children: /* @__PURE__ */ jsx3(
402
410
  Button2,
403
411
  {
404
412
  size: "small",
@@ -407,7 +415,7 @@ var ProductActiveRequestSection = ({
407
415
  "data-testid": "product-active-request-reject-button",
408
416
  children: t("products.request.actions.reject")
409
417
  }
410
- )
418
+ ) })
411
419
  ]
412
420
  }
413
421
  ),
@@ -466,16 +474,18 @@ var ProductActiveRequestSection = ({
466
474
  // src/pages/products/product-detail/components/product-attribute-section/product-attribute-section.tsx
467
475
  import { toast as toast3 } from "@medusajs/ui";
468
476
  import {
469
- ProductAttributeSection as SharedProductAttributeSection
477
+ ProductAttributeSection as SharedProductAttributeSection,
478
+ useCan
470
479
  } from "@mercurjs/dashboard-shared";
471
480
  import { jsx as jsx4 } from "react/jsx-runtime";
472
481
  var ProductAttributeSection = ({
473
482
  product
474
483
  }) => {
484
+ const canViewAttributes = useCan("product_attributes");
475
485
  const categoryId = product.categories?.[0]?.id;
476
486
  const { product_attributes } = useProductAttributes(
477
487
  { category_id: categoryId, is_required: true },
478
- { enabled: !!categoryId }
488
+ { enabled: !!categoryId && canViewAttributes }
479
489
  );
480
490
  const { mutateAsync } = useBatchProductAttributes(product.id);
481
491
  const onDeleteAttribute = async (attribute) => {
@@ -491,6 +501,9 @@ var ProductAttributeSection = ({
491
501
  } catch {
492
502
  }
493
503
  };
504
+ if (!canViewAttributes) {
505
+ return null;
506
+ }
494
507
  return /* @__PURE__ */ jsx4(
495
508
  SharedProductAttributeSection,
496
509
  {
@@ -599,6 +612,7 @@ var ProductGeneralSection = ({
599
612
  {
600
613
  label: t("actions.edit"),
601
614
  to: "edit",
615
+ permission: "products:edit",
602
616
  icon: /* @__PURE__ */ jsx5(PencilSquare, {})
603
617
  }
604
618
  ]
@@ -608,6 +622,7 @@ var ProductGeneralSection = ({
608
622
  {
609
623
  label: t("actions.delete"),
610
624
  onClick: handleDelete,
625
+ permission: "products:manage",
611
626
  icon: /* @__PURE__ */ jsx5(Trash, {})
612
627
  }
613
628
  ]
@@ -716,6 +731,7 @@ var ProductOrganizationSection = ({
716
731
  {
717
732
  label: t("actions.edit"),
718
733
  to: "organization",
734
+ permission: "products:edit",
719
735
  icon: /* @__PURE__ */ jsx6(PencilSquare2, {})
720
736
  }
721
737
  ]
@@ -804,7 +820,7 @@ var OrganizationTag = ({ label, to }) => {
804
820
  // src/pages/products/product-detail/components/product-variant-section/product-variant-section.tsx
805
821
  import { useCallback, useMemo } from "react";
806
822
  import { PencilSquare as PencilSquare3, Trash as Trash2 } from "@medusajs/icons";
807
- import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
823
+ import { DisplayExtensionZone as DisplayExtensionZone4, PermissionAction as PermissionAction3 } from "@mercurjs/dashboard-shared";
808
824
  import {
809
825
  Badge as Badge2,
810
826
  Button as Button3,
@@ -861,7 +877,7 @@ var ProductVariantSection = ({
861
877
  return /* @__PURE__ */ jsxs6(Container4, { className: "divide-y p-0", "data-testid": "product-variant-section", children: [
862
878
  /* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between px-6 py-4", children: [
863
879
  /* @__PURE__ */ jsx7(Heading4, { level: "h2", children: t("products.variants.header") }),
864
- /* @__PURE__ */ jsx7(
880
+ /* @__PURE__ */ jsx7(PermissionAction3, { permission: "products:edit", children: /* @__PURE__ */ jsx7(
865
881
  Button3,
866
882
  {
867
883
  size: "small",
@@ -870,7 +886,7 @@ var ProductVariantSection = ({
870
886
  "data-testid": "product-variants-create-button",
871
887
  children: /* @__PURE__ */ jsx7(Link2, { to: "variants/create", children: t("actions.create") })
872
888
  }
873
- )
889
+ ) })
874
890
  ] }),
875
891
  /* @__PURE__ */ jsx7(
876
892
  _DataTable,
@@ -1006,6 +1022,7 @@ var useColumns = (product) => {
1006
1022
  {
1007
1023
  icon: /* @__PURE__ */ jsx7(PencilSquare3, {}),
1008
1024
  label: t("actions.edit"),
1025
+ permission: "products:edit",
1009
1026
  onClick: () => navigate(
1010
1027
  `edit-variant?variant_id=${row.original.id}&${tableSearchParams.toString()}`,
1011
1028
  {
@@ -1022,6 +1039,7 @@ var useColumns = (product) => {
1022
1039
  {
1023
1040
  icon: /* @__PURE__ */ jsx7(Trash2, {}),
1024
1041
  label: t("actions.delete"),
1042
+ permission: "products:manage",
1025
1043
  onClick: () => handleDelete(row.original.id, row.original.title ?? "")
1026
1044
  }
1027
1045
  ]
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getPromotionStatus,
3
3
  getPromotionType
4
- } from "./chunk-WA3UZTKD.js";
4
+ } from "./chunk-RUGB47D3.js";
5
5
  import {
6
6
  TextCell,
7
7
  TextHeader
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-KMSBY4PU.js";
8
8
  import {
9
9
  useProductTableFilters
10
- } from "./chunk-FX7HVGV5.js";
10
+ } from "./chunk-ZQZFY3UY.js";
11
11
  import {
12
12
  useProductTableQuery
13
13
  } from "./chunk-S4IDR46L.js";
@@ -17,10 +17,10 @@ import {
17
17
  import {
18
18
  _DataTable,
19
19
  useDataTable
20
- } from "./chunk-ZOU25JF6.js";
20
+ } from "./chunk-SU36MZXC.js";
21
21
  import {
22
22
  ActionMenu
23
- } from "./chunk-BDGZ4EQO.js";
23
+ } from "./chunk-3UOYBH5O.js";
24
24
  import {
25
25
  useCollection,
26
26
  useDeleteCollection,
@@ -36,7 +36,7 @@ import {
36
36
  // src/pages/collections/collection-detail/collection-detail.tsx
37
37
  import { Children } from "react";
38
38
  import { useLoaderData, useParams } from "react-router-dom";
39
- import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
39
+ import { PermissionGuard, WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
40
40
 
41
41
  // src/pages/collections/collection-detail/components/collection-general-section/collection-general-section.tsx
42
42
  import { PencilSquare, Trash } from "@medusajs/icons";
@@ -86,6 +86,7 @@ var CollectionGeneralSection = ({
86
86
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
87
87
  label: t("actions.edit"),
88
88
  to: `/collections/${collection.id}/edit`,
89
+ permission: "product_collections:edit",
89
90
  disabled: !collection.id
90
91
  }
91
92
  ]
@@ -96,6 +97,7 @@ var CollectionGeneralSection = ({
96
97
  icon: /* @__PURE__ */ jsx(Trash, {}),
97
98
  label: t("actions.delete"),
98
99
  onClick: handleDelete,
100
+ permission: "product_collections:manage",
99
101
  disabled: !collection.id
100
102
  }
101
103
  ]
@@ -146,7 +148,8 @@ var CollectionIconSection = ({
146
148
  {
147
149
  label: t("actions.edit"),
148
150
  icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
149
- to: "icon/edit"
151
+ to: "icon/edit",
152
+ permission: "product_collections:edit"
150
153
  }
151
154
  ]
152
155
  }
@@ -203,7 +206,8 @@ var CollectionMediaSection = ({
203
206
  {
204
207
  label: t("actions.edit"),
205
208
  icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
206
- to: "media?view=edit"
209
+ to: "media?view=edit",
210
+ permission: "product_collections:edit"
207
211
  }
208
212
  ]
209
213
  }
@@ -337,7 +341,8 @@ var CollectionProductSection = ({
337
341
  {
338
342
  icon: /* @__PURE__ */ jsx4(Plus, {}),
339
343
  label: t("actions.add"),
340
- to: "products"
344
+ to: "products",
345
+ permission: "product_collections:edit"
341
346
  }
342
347
  ]
343
348
  }
@@ -367,6 +372,7 @@ var CollectionProductSection = ({
367
372
  commands: [
368
373
  {
369
374
  action: handleRemove,
375
+ permission: "product_collections:edit",
370
376
  label: t("actions.remove"),
371
377
  shortcut: "r"
372
378
  }
@@ -427,7 +433,8 @@ var ProductActions = ({
427
433
  {
428
434
  icon: /* @__PURE__ */ jsx4(PencilSquare4, {}),
429
435
  label: t("actions.edit"),
430
- to: `/products/${product.id}/edit`
436
+ to: `/products/${product.id}/edit`,
437
+ permission: "products:edit"
431
438
  }
432
439
  ]
433
440
  },
@@ -436,7 +443,8 @@ var ProductActions = ({
436
443
  {
437
444
  icon: /* @__PURE__ */ jsx4(Trash2, {}),
438
445
  label: t("actions.remove"),
439
- onClick: handleRemove
446
+ onClick: handleRemove,
447
+ permission: "product_collections:edit"
440
448
  }
441
449
  ]
442
450
  }
@@ -510,7 +518,7 @@ var Root = ({ children }) => {
510
518
  /* @__PURE__ */ jsx5(CollectionGeneralSection, { collection }),
511
519
  /* @__PURE__ */ jsx5(CollectionMediaSection, { collection }),
512
520
  /* @__PURE__ */ jsx5(CollectionIconSection, { collection }),
513
- /* @__PURE__ */ jsx5(CollectionProductSection, { collection })
521
+ /* @__PURE__ */ jsx5(PermissionGuard, { permission: "products:view", children: /* @__PURE__ */ jsx5(CollectionProductSection, { collection }) })
514
522
  ] }) });
515
523
  };
516
524
  var CollectionDetailPage = Object.assign(Root, {
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-H6MYB7GB.js";
7
7
  import {
8
8
  ActionMenu
9
- } from "./chunk-BDGZ4EQO.js";
9
+ } from "./chunk-3UOYBH5O.js";
10
10
  import {
11
11
  useShippingOptionType
12
12
  } from "./chunk-W5U6NPSN.js";
@@ -42,6 +42,7 @@ var ShippingOptionTypeGeneralSection = ({
42
42
  {
43
43
  actions: [
44
44
  {
45
+ permission: "shipping_options:edit",
45
46
  label: t("actions.edit"),
46
47
  icon: /* @__PURE__ */ jsx(PencilSquare, {}),
47
48
  to: "edit"
@@ -51,6 +52,7 @@ var ShippingOptionTypeGeneralSection = ({
51
52
  {
52
53
  actions: [
53
54
  {
55
+ permission: "shipping_options:manage",
54
56
  label: t("actions.delete"),
55
57
  icon: /* @__PURE__ */ jsx(Trash, {}),
56
58
  onClick: handleDelete
@@ -21,10 +21,10 @@ import {
21
21
  import {
22
22
  _DataTable,
23
23
  useDataTable
24
- } from "./chunk-ZOU25JF6.js";
24
+ } from "./chunk-SU36MZXC.js";
25
25
  import {
26
26
  ActionMenu
27
- } from "./chunk-BDGZ4EQO.js";
27
+ } from "./chunk-3UOYBH5O.js";
28
28
  import {
29
29
  useDeleteRegion,
30
30
  useRegion,
@@ -142,6 +142,7 @@ var RegionCountrySection = ({ region }) => {
142
142
  {
143
143
  actions: [
144
144
  {
145
+ permission: "regions:edit",
145
146
  label: t("regions.addCountries"),
146
147
  icon: /* @__PURE__ */ jsx(PlusMini, {}),
147
148
  to: "countries/add"
@@ -171,6 +172,7 @@ var RegionCountrySection = ({ region }) => {
171
172
  commands: [
172
173
  {
173
174
  action: handleRemoveCountries,
175
+ permission: "regions:edit",
174
176
  label: t("actions.remove"),
175
177
  shortcut: "r"
176
178
  }
@@ -223,6 +225,7 @@ var CountryActions = ({
223
225
  {
224
226
  actions: [
225
227
  {
228
+ permission: "regions:edit",
226
229
  label: t("actions.remove"),
227
230
  onClick: handleRemove,
228
231
  icon: /* @__PURE__ */ jsx(Trash, {})
@@ -316,7 +319,7 @@ var RegionGeneralSection = ({
316
319
  "data-testid": "region-general-section-automatic-taxes"
317
320
  }
318
321
  ),
319
- /* @__PURE__ */ jsx2(
322
+ pricePreferences && /* @__PURE__ */ jsx2(
320
323
  SectionRow,
321
324
  {
322
325
  title: t("fields.taxInclusivePricing"),
@@ -376,6 +379,7 @@ var RegionActions = ({ region }) => {
376
379
  actions: [
377
380
  {
378
381
  icon: /* @__PURE__ */ jsx2(PencilSquare, {}),
382
+ permission: "regions:edit",
379
383
  label: t("actions.edit"),
380
384
  to: `/settings/regions/${region.id}/edit`
381
385
  }
@@ -385,6 +389,7 @@ var RegionActions = ({ region }) => {
385
389
  actions: [
386
390
  {
387
391
  icon: /* @__PURE__ */ jsx2(Trash2, {}),
392
+ permission: "regions:manage",
388
393
  label: t("actions.delete"),
389
394
  onClick: handleDelete
390
395
  }
@@ -397,7 +402,7 @@ var RegionActions = ({ region }) => {
397
402
  };
398
403
 
399
404
  // src/pages/regions/region-detail/region-detail.tsx
400
- import { WidgetZone } from "@mercurjs/dashboard-shared";
405
+ import { WidgetZone, isForbidden, useCan } from "@mercurjs/dashboard-shared";
401
406
 
402
407
  // src/pages/regions/region-detail/constants.ts
403
408
  var REGION_DETAIL_FIELDS = "*payment_providers,*countries,+automatic_taxes";
@@ -407,6 +412,7 @@ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
407
412
  var Root = ({ children }) => {
408
413
  const initialData = useLoaderData();
409
414
  const { id } = useParams();
415
+ const canViewPreferences = useCan("price_preferences");
410
416
  const {
411
417
  region,
412
418
  isPending: isLoading,
@@ -429,15 +435,16 @@ var Root = ({ children }) => {
429
435
  attribute: "region_id",
430
436
  value: id
431
437
  },
432
- { enabled: !!region }
438
+ { enabled: !!region && canViewPreferences }
433
439
  );
434
- if (isLoading || isLoadingPreferences || !region) {
440
+ const preferencesForbidden = !canViewPreferences || isForbidden(preferencesError);
441
+ if (isLoading || !preferencesForbidden && isLoadingPreferences || !region) {
435
442
  return /* @__PURE__ */ jsx3(SingleColumnPageSkeleton, { sections: 2, showJSON: true, showMetadata: true });
436
443
  }
437
444
  if (isRegionError) {
438
445
  throw regionError;
439
446
  }
440
- if (isPreferencesError) {
447
+ if (isPreferencesError && !preferencesForbidden) {
441
448
  throw preferencesError;
442
449
  }
443
450
  return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { data: region, showMetadata: true, showJSON: true, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "regions.detail.main", data: region, children: [
@@ -445,7 +452,7 @@ var Root = ({ children }) => {
445
452
  RegionGeneralSection,
446
453
  {
447
454
  region,
448
- pricePreferences: pricePreferences ?? []
455
+ pricePreferences: preferencesForbidden ? void 0 : pricePreferences ?? []
449
456
  }
450
457
  ),
451
458
  /* @__PURE__ */ jsx3(RegionCountrySection, { region })