@mercurjs/admin 2.2.0-rc.0 → 2.2.0-rc.1

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 (297) hide show
  1. package/dist/{add-campaign-promotions-QK73ARX4.js → add-campaign-promotions-RH5L6VMH.js} +7 -7
  2. package/dist/{adjust-inventory-X45NEQFK.js → adjust-inventory-P2M7KZ77.js} +10 -10
  3. package/dist/{api-key-management-create-LOD37GOQ.js → api-key-management-create-KDKSGJ4C.js} +3 -3
  4. package/dist/{api-key-management-detail-HKNZPPR2.js → api-key-management-detail-2RZ6NOYH.js} +13 -13
  5. package/dist/{api-key-management-edit-JP2GUMMJ.js → api-key-management-edit-NOGBLKBT.js} +3 -3
  6. package/dist/{api-key-management-list-5RXBJ24C.js → api-key-management-list-CGHUURWX.js} +8 -8
  7. package/dist/{api-key-management-sales-channels-4GLVMHU6.js → api-key-management-sales-channels-VJMUPYV3.js} +5 -5
  8. package/dist/{attribute-create-VGL7LGIH.js → attribute-create-KR4DSDH2.js} +15 -13
  9. package/dist/{attribute-detail-EKDAYT4B.js → attribute-detail-6FMX7IDW.js} +21 -20
  10. package/dist/{attribute-edit-OBNLNOJS.js → attribute-edit-WXO5FGR6.js} +2 -2
  11. package/dist/{attribute-edit-possible-value-QDFVWLA3.js → attribute-edit-possible-value-RO7BY3NC.js} +2 -2
  12. package/dist/{attribute-list-6A72PBIY.js → attribute-list-PJXWYS4C.js} +15 -15
  13. package/dist/{breadcrumb-IEEJTH47.js → breadcrumb-OBHTESQD.js} +1 -1
  14. package/dist/{campaign-budget-edit-NONE5NMV.js → campaign-budget-edit-QXAXRI6B.js} +1 -1
  15. package/dist/{campaign-configuration-JYSVIQFE.js → campaign-configuration-A3E6G2VQ.js} +1 -1
  16. package/dist/{campaign-create-6U2PONHA.js → campaign-create-TZH66JVU.js} +2 -2
  17. package/dist/{campaign-detail-RNB3FEJZ.js → campaign-detail-3PNOOUGP.js} +26 -22
  18. package/dist/{campaign-edit-MAS3DCFB.js → campaign-edit-6CIGS4ZU.js} +23 -7
  19. package/dist/{campaign-list-CDV4GWWD.js → campaign-list-TNJDWTM5.js} +6 -6
  20. package/dist/{categories-metadata-4LXL2PWA.js → categories-metadata-AIT33J5U.js} +10 -10
  21. package/dist/{category-create-AIS2MG7E.js → category-create-NTSIOKLK.js} +3 -3
  22. package/dist/{category-detail-557376TZ.js → category-detail-3WUCMDWO.js} +29 -25
  23. package/dist/{category-edit-LYR2IOTA.js → category-edit-4PGWERPJ.js} +26 -9
  24. package/dist/{category-icon-edit-W2TPCSDC.js → category-icon-edit-C2VAH5JA.js} +2 -2
  25. package/dist/{category-list-XKRI24VN.js → category-list-D4J4G6HW.js} +8 -8
  26. package/dist/{category-media-PC4V7YU4.js → category-media-E5UUDN3I.js} +2 -2
  27. package/dist/category-organize-T45BC4HL.js +129 -0
  28. package/dist/{category-products-44PCDDNN.js → category-products-TTQGSVUC.js} +18 -18
  29. package/dist/{chunk-LVRCEGL7.js → chunk-2KERYQNF.js} +52 -26
  30. package/dist/{chunk-KGA2XI6W.js → chunk-3F4Z4BNA.js} +33 -15
  31. package/dist/{chunk-3BTRS4AA.js → chunk-3FKB6UTO.js} +2 -2
  32. package/dist/{chunk-GCU4LHGY.js → chunk-3KS7PC2Z.js} +79 -33
  33. package/dist/{chunk-HI7NZVSJ.js → chunk-3LDOWS4A.js} +4 -3
  34. package/dist/{chunk-HT34QVZR.js → chunk-3LGGCLSO.js} +4 -3
  35. package/dist/{chunk-UZ452ISX.js → chunk-3WCK2FT4.js} +42 -27
  36. package/dist/{chunk-DPG4AWSG.js → chunk-4DJL3XN7.js} +25 -13
  37. package/dist/{chunk-PFBJWWUA.js → chunk-4QQ6BFWQ.js} +2 -2
  38. package/dist/{chunk-NOKCLBAL.js → chunk-4TNOZ4VH.js} +2 -1
  39. package/dist/{chunk-FICKHCWL.js → chunk-4TW5RTWO.js} +5 -3
  40. package/dist/{chunk-6DJQITWV.js → chunk-5CHUXS7G.js} +1 -1
  41. package/dist/{chunk-QDUZCJ7F.js → chunk-5EOYDQAS.js} +1 -1
  42. package/dist/{chunk-CNODWD3F.js → chunk-5NAX6LXB.js} +5 -4
  43. package/dist/{chunk-BFUHW56P.js → chunk-5NC3VFXY.js} +1 -1
  44. package/dist/{chunk-H7NIKMPE.js → chunk-5NSOIZFB.js} +3 -1
  45. package/dist/{chunk-RIO2IHPE.js → chunk-67KYEPSA.js} +1 -1
  46. package/dist/{chunk-EOSJHPHN.js → chunk-6DDS7IRR.js} +6 -5
  47. package/dist/{chunk-XW2BES72.js → chunk-6R767EBC.js} +8 -5
  48. package/dist/{chunk-EGHDC6K6.js → chunk-6S5RUSUU.js} +12 -11
  49. package/dist/{chunk-TDJSZ73V.js → chunk-6TMGHMZ2.js} +38 -10
  50. package/dist/{chunk-CW3HYGS5.js → chunk-7CQD5AQ6.js} +2 -6
  51. package/dist/{chunk-JSVYNNPF.js → chunk-7IGLZARZ.js} +2 -2
  52. package/dist/{chunk-PAYQJPGK.js → chunk-7PPT3477.js} +2 -2
  53. package/dist/{chunk-JLCA6PWC.js → chunk-AASCLZ5N.js} +1 -1
  54. package/dist/{chunk-RGS5ZOY7.js → chunk-AFYILTAC.js} +4 -3
  55. package/dist/chunk-APAT344J.js +144 -0
  56. package/dist/{chunk-4346EIRG.js → chunk-APMBU7ZV.js} +3 -3
  57. package/dist/{chunk-VGXJXU7X.js → chunk-AW5OKJQZ.js} +7 -6
  58. package/dist/{chunk-VY72NX26.js → chunk-BBD4WOUK.js} +5 -4
  59. package/dist/{chunk-JU2O2H7I.js → chunk-BHF4TD3T.js} +6 -6
  60. package/dist/{chunk-THPXRTE5.js → chunk-BHSY6RCN.js} +34 -13
  61. package/dist/{chunk-VYQ6ASFF.js → chunk-CWQKHTH6.js} +26 -10
  62. package/dist/{chunk-56UFDHNO.js → chunk-DJD3MWED.js} +1 -1
  63. package/dist/{chunk-EX4AGESR.js → chunk-DMZDXTS5.js} +95 -34
  64. package/dist/{chunk-OPSGADQI.js → chunk-DP6YFZHP.js} +1 -1
  65. package/dist/{chunk-HGTPUAHD.js → chunk-DUVYF37J.js} +1 -1
  66. package/dist/{chunk-BTJR5RSV.js → chunk-F57NIOVJ.js} +49 -20
  67. package/dist/{chunk-CHMIK6PK.js → chunk-F6DGTW4E.js} +3 -3
  68. package/dist/{chunk-BNFTJW4L.js → chunk-FVG5DTS6.js} +2 -2
  69. package/dist/{chunk-LSMTJU6Y.js → chunk-G2LHEJLS.js} +3 -3
  70. package/dist/{chunk-7O7LYBHL.js → chunk-G67PGZDM.js} +67 -25
  71. package/dist/{chunk-6ZVV2XHU.js → chunk-GRFWCCUW.js} +1 -1
  72. package/dist/{chunk-BLR3NTU6.js → chunk-GVPKRQWI.js} +4 -6
  73. package/dist/{chunk-BF7X4JQT.js → chunk-H3D6V3KM.js} +3 -2
  74. package/dist/{chunk-TZM63FZ4.js → chunk-HC7FWIMY.js} +7 -6
  75. package/dist/{chunk-W7CJSBDM.js → chunk-HYDXR5K4.js} +27 -15
  76. package/dist/{chunk-AMZ2QSSI.js → chunk-I5FOWDOM.js} +9 -6
  77. package/dist/{chunk-OYZIFLLC.js → chunk-I5HY5Q3K.js} +1 -1
  78. package/dist/{chunk-YMOP6JKN.js → chunk-IGTR66D2.js} +2 -2
  79. package/dist/{chunk-WKDHY2DJ.js → chunk-IJ2CSCLP.js} +5 -2
  80. package/dist/{chunk-NISAIYSW.js → chunk-JJOITP32.js} +11 -10
  81. package/dist/{chunk-25U23TXK.js → chunk-KT7CXVLT.js} +6 -5
  82. package/dist/{chunk-BVIIRGSW.js → chunk-KUBTN5TC.js} +4 -2
  83. package/dist/{chunk-DL7ENIQB.js → chunk-LEQINL55.js} +2 -1
  84. package/dist/{chunk-FMJBQE56.js → chunk-LPIPSLR7.js} +1 -1
  85. package/dist/{chunk-KFYTUQXT.js → chunk-LQQERWMM.js} +11 -10
  86. package/dist/{chunk-4C7L7TJT.js → chunk-LXNWSQOE.js} +3 -3
  87. package/dist/{chunk-VBKFXL2Q.js → chunk-MEDZM6N7.js} +26 -10
  88. package/dist/{chunk-ZKHF75MZ.js → chunk-MMKUMSZS.js} +1 -1
  89. package/dist/{chunk-GISFIAGQ.js → chunk-MPRW23TB.js} +47 -17
  90. package/dist/{chunk-GCEOEV6P.js → chunk-MTHPNKQ4.js} +4 -4
  91. package/dist/{chunk-ZU74CNL4.js → chunk-MUKW4VRI.js} +8 -7
  92. package/dist/{chunk-TH26CWVG.js → chunk-NLJ5F7FS.js} +1 -1
  93. package/dist/{chunk-6KWWJE5P.js → chunk-O7SDCQD6.js} +6 -6
  94. package/dist/{chunk-HQM7D57C.js → chunk-ODDJZVYL.js} +8 -6
  95. package/dist/{chunk-2FPQHWJZ.js → chunk-OG5AVHPY.js} +110 -28
  96. package/dist/{chunk-HRDVGFS7.js → chunk-OX6HZPVY.js} +21 -11
  97. package/dist/{chunk-5ACJR6WB.js → chunk-P2DFLKCN.js} +3 -3
  98. package/dist/{chunk-NWSKT55Z.js → chunk-P2JA3QTQ.js} +7 -6
  99. package/dist/{chunk-ZVPTNPLI.js → chunk-P3GGL5JL.js} +1 -1
  100. package/dist/{chunk-NZVS6B77.js → chunk-PDID73QY.js} +574 -536
  101. package/dist/{chunk-5Y2AIJ2T.js → chunk-PEUWV5YK.js} +2 -1
  102. package/dist/{chunk-K7H77TA5.js → chunk-PHWYJ26A.js} +1 -1
  103. package/dist/{chunk-W3P3RP5R.js → chunk-PPRIEP4H.js} +25 -11
  104. package/dist/{chunk-JEDX4KBB.js → chunk-Q5DRFJPI.js} +6 -5
  105. package/dist/{chunk-J3L2FUIA.js → chunk-QA7S7WVH.js} +54 -38
  106. package/dist/{chunk-Q6QXFLUY.js → chunk-QEX45BI3.js} +3 -1
  107. package/dist/{chunk-JZJT26E3.js → chunk-QVIX6O76.js} +1 -1
  108. package/dist/{chunk-F2SZ4LPF.js → chunk-R2LW5LGL.js} +40 -22
  109. package/dist/{chunk-DI2M3J5Q.js → chunk-RMB7MPIT.js} +1 -1
  110. package/dist/{chunk-2Z2M5K5A.js → chunk-RT2MBSJQ.js} +7 -6
  111. package/dist/{chunk-65YE4SVL.js → chunk-RYISNVIR.js} +27 -14
  112. package/dist/{chunk-BILFRATX.js → chunk-SAU35JEB.js} +1 -1
  113. package/dist/{chunk-PMVWIBTI.js → chunk-SLAWONP2.js} +52 -17
  114. package/dist/{chunk-ML7UVBKL.js → chunk-TIG77LHS.js} +1 -1
  115. package/dist/{chunk-YRINVEI3.js → chunk-TJJ7S3GL.js} +3 -2
  116. package/dist/{chunk-4BCUGMOR.js → chunk-UK5BVJI7.js} +1 -1
  117. package/dist/{chunk-MOG7LT73.js → chunk-UK5CZJ4A.js} +9 -7
  118. package/dist/{chunk-4BPQNCF5.js → chunk-UVH7PC5B.js} +6 -5
  119. package/dist/{chunk-HB3KRNZM.js → chunk-VH4W6LKI.js} +4 -3
  120. package/dist/{chunk-YRUCTB6M.js → chunk-VHOCBKSA.js} +3 -2
  121. package/dist/{chunk-IVBNI2QE.js → chunk-VQ6OPDS3.js} +85 -30
  122. package/dist/{chunk-LQSSUC7W.js → chunk-VX6OCQLN.js} +6 -5
  123. package/dist/{chunk-DSTHXHJ5.js → chunk-VYSB4CTB.js} +1356 -1356
  124. package/dist/{chunk-6BWJWA2F.js → chunk-WF2PHYTE.js} +6 -5
  125. package/dist/{chunk-GLZLBHFC.js → chunk-WX4ABVXL.js} +2 -2
  126. package/dist/{chunk-VPYI4X6C.js → chunk-X4SSIHH7.js} +35 -16
  127. package/dist/{chunk-VJ4LQXMA.js → chunk-XDMCPTDG.js} +96 -69
  128. package/dist/{chunk-KT4DGVRQ.js → chunk-XNUH2AOW.js} +8 -7
  129. package/dist/{chunk-OAN4CZKX.js → chunk-XWP4ZGKN.js} +6 -4
  130. package/dist/{chunk-32ZNZDFT.js → chunk-XXV6ZSWY.js} +4 -3
  131. package/dist/{chunk-GWSRWILC.js → chunk-YLQ63F5E.js} +6 -5
  132. package/dist/{chunk-MZOINNCV.js → chunk-YNR25MNM.js} +78 -56
  133. package/dist/{chunk-YHEH25IE.js → chunk-Z6CIQQUZ.js} +2 -1
  134. package/dist/{chunk-YNN2YNSE.js → chunk-ZAANJVLM.js} +1 -1
  135. package/dist/{chunk-MW47LDBT.js → chunk-ZOTBKQLG.js} +1 -1
  136. package/dist/{collection-add-products-JFUIZEZI.js → collection-add-products-TXJAEXUT.js} +18 -18
  137. package/dist/{collection-create-5IGFVQKE.js → collection-create-7ZQONUJL.js} +4 -3
  138. package/dist/{collection-detail-2WOLOVWF.js → collection-detail-FGXNWXAN.js} +28 -24
  139. package/dist/{collection-edit-UMZN5JZ6.js → collection-edit-ZFAECPWC.js} +33 -10
  140. package/dist/{collection-icon-edit-WCSKUDXE.js → collection-icon-edit-642AZRHR.js} +2 -2
  141. package/dist/{collection-list-B3Y2ALLZ.js → collection-list-ZLBRTQAC.js} +22 -22
  142. package/dist/{collection-media-YIV5BV3Y.js → collection-media-LMJFEFVY.js} +2 -2
  143. package/dist/{collection-metadata-SBK6SL4C.js → collection-metadata-AZRN32RU.js} +10 -10
  144. package/dist/{commission-rule-detail-ZQ3OHFA2.js → commission-rule-detail-FOLHANWL.js} +5 -5
  145. package/dist/{commissions-list-M5WLJD2P.js → commissions-list-SGVCP2O4.js} +9 -9
  146. package/dist/{customer-create-ZQ4RTXBA.js → customer-create-SC6LAEVJ.js} +1 -1
  147. package/dist/{customer-create-address-P2QYUZJ5.js → customer-create-address-VZMOF5AE.js} +9 -4
  148. package/dist/{customer-detail-ZGDPIWA4.js → customer-detail-3KIDRBLW.js} +26 -23
  149. package/dist/{customer-edit-D55FJLIN.js → customer-edit-RAWO66UL.js} +25 -7
  150. package/dist/{customer-edit-address-R5RXDUNZ.js → customer-edit-address-ZEVUPAYN.js} +15 -6
  151. package/dist/{customer-group-add-customers-O6A5ZFPM.js → customer-group-add-customers-LKFLDXVO.js} +5 -5
  152. package/dist/{customer-group-create-44R3DDOT.js → customer-group-create-3KAC3R3N.js} +1 -1
  153. package/dist/{customer-group-detail-FXUICFYC.js → customer-group-detail-KWHS7V6F.js} +28 -25
  154. package/dist/{customer-group-edit-NZ5SUPFQ.js → customer-group-edit-E7JX2L4J.js} +41 -20
  155. package/dist/{customer-group-list-R2DP2D42.js → customer-group-list-3FCJBXFY.js} +16 -16
  156. package/dist/{customer-group-metadata-JX7ZBXLJ.js → customer-group-metadata-3QRU7FIE.js} +10 -10
  157. package/dist/{customer-list-Z4DUQHCH.js → customer-list-JT6YE2IW.js} +7 -7
  158. package/dist/{customer-metadata-JT5GGCRV.js → customer-metadata-7DMBCQXW.js} +10 -10
  159. package/dist/{customers-add-customer-group-KX3XNNMU.js → customers-add-customer-group-IAGH6MJJ.js} +14 -14
  160. package/dist/{edit-inventory-item-73BY4I5T.js → edit-inventory-item-QPWV4MSP.js} +32 -17
  161. package/dist/{edit-inventory-item-attributes-ZMB343AB.js → edit-inventory-item-attributes-J7WHYKMK.js} +10 -10
  162. package/dist/{edit-reservation-BC5IOLK6.js → edit-reservation-PTUSCC6C.js} +26 -8
  163. package/dist/{edit-rules-4PPNBI7B.js → edit-rules-2WZOLTL7.js} +11 -11
  164. package/dist/extension-targets.d.ts +269 -0
  165. package/dist/extension-targets.js +1 -0
  166. package/dist/index.css +3 -3
  167. package/dist/index.d.ts +6 -2
  168. package/dist/index.js +280 -252
  169. package/dist/{inventory-create-XQKH3HZQ.js → inventory-create-RDVKGH2S.js} +11 -11
  170. package/dist/{inventory-detail-RZJNTJDF.js → inventory-detail-LHWQTJ7S.js} +27 -23
  171. package/dist/{inventory-list-SPSBDJXO.js → inventory-list-Q2CCGYI5.js} +6 -6
  172. package/dist/{inventory-metadata-W2E4KYG3.js → inventory-metadata-CQHLKX4T.js} +10 -10
  173. package/dist/{inventory-stock-D2BNT2UL.js → inventory-stock-3TR47RNA.js} +10 -10
  174. package/dist/{loader-HRFMJ5TM.js → loader-ZYV22XGC.js} +15 -11
  175. package/dist/{location-detail-CNETNX3M.js → location-detail-ZRLP4XVJ.js} +12 -12
  176. package/dist/{location-fulfillment-providers-XXZ7AIUF.js → location-fulfillment-providers-CL7PKPTT.js} +20 -20
  177. package/dist/{location-list-RHUT7IRA.js → location-list-HW5F37YZ.js} +12 -12
  178. package/dist/{location-sales-channels-ZQBQ3VDH.js → location-sales-channels-Z4E5VA7M.js} +4 -4
  179. package/dist/{location-service-zone-create-O6GYRZEE.js → location-service-zone-create-WZXZFMA2.js} +4 -4
  180. package/dist/{location-service-zone-manage-areas-DBP3P27I.js → location-service-zone-manage-areas-5SYZKBQK.js} +4 -4
  181. package/dist/{location-service-zone-shipping-option-create-3PQ2EYD7.js → location-service-zone-shipping-option-create-Z3S7EUYH.js} +10 -10
  182. package/dist/{login-OKBXMSKY.js → login-JNIVGP2G.js} +10 -10
  183. package/dist/{manage-locations-SUJNIWWF.js → manage-locations-NGNUXP3N.js} +1 -1
  184. package/dist/{marketplace-add-currencies-IPE5RJF6.js → marketplace-add-currencies-ZBLGQQCX.js} +3 -3
  185. package/dist/{marketplace-detail-IHGJXVZS.js → marketplace-detail-RZWOCVGF.js} +15 -15
  186. package/dist/{marketplace-metadata-STYABOTX.js → marketplace-metadata-74YUQ6UC.js} +10 -10
  187. package/dist/{offer-detail-page-2G5BUOIB.js → offer-detail-page-XS52BE5U.js} +71 -25
  188. package/dist/{offer-variant-detail-page-V6TKNYZL.js → offer-variant-detail-page-QQGOMRUY.js} +9 -8
  189. package/dist/{offers-2QQFKGAX.js → offers-UUFYROYV.js} +38 -23
  190. package/dist/{order-create-claim-Y7ESDXLI.js → order-create-claim-AG3GMAE2.js} +5 -5
  191. package/dist/{order-create-edit-6L5S7KQM.js → order-create-edit-N3TDQQIT.js} +8 -8
  192. package/dist/{order-create-exchange-WHO3K2MW.js → order-create-exchange-ZCQBC54O.js} +15 -15
  193. package/dist/{order-create-refund-4ZO73NWS.js → order-create-refund-HXFCDZV5.js} +10 -10
  194. package/dist/{order-create-return-R5WJBQ5W.js → order-create-return-VUHKWVQM.js} +5 -5
  195. package/dist/{order-detail-QUGH2GXH.js → order-detail-CTZELMAQ.js} +23 -19
  196. package/dist/{order-edit-billing-address-BEOKFNLZ.js → order-edit-billing-address-S4YOG2EE.js} +11 -11
  197. package/dist/{order-edit-email-GLAQZCIT.js → order-edit-email-VSAS3M2E.js} +10 -10
  198. package/dist/{order-edit-shipping-address-PF54SFAG.js → order-edit-shipping-address-FZMDRJU5.js} +10 -10
  199. package/dist/{order-list-GMUOLGZY.js → order-list-EFBU3W6N.js} +13 -13
  200. package/dist/{order-metadata-VQOA3DOL.js → order-metadata-FKM3ZDNM.js} +10 -10
  201. package/dist/{order-request-transfer-BLQQ66IF.js → order-request-transfer-BCE6ED5E.js} +10 -10
  202. package/dist/pages/index.d.ts +25 -25
  203. package/dist/pages/index.js +107 -107
  204. package/dist/{payout-detail-6U2ANWOH.js → payout-detail-LY7SRCKO.js} +1 -1
  205. package/dist/{payout-list-3GQJQSVU.js → payout-list-WE3H7FKO.js} +5 -5
  206. package/dist/{price-list-configuration-BLHIGDSV.js → price-list-configuration-4UNGTKCM.js} +9 -9
  207. package/dist/{price-list-create-HKN72A6Q.js → price-list-create-XGRFJ74B.js} +21 -21
  208. package/dist/{price-list-detail-6JAMNNJW.js → price-list-detail-AE6S3CEM.js} +29 -25
  209. package/dist/{price-list-edit-RZQMPHXU.js → price-list-edit-4JPSL2NL.js} +26 -10
  210. package/dist/{price-list-list-HLWCOORV.js → price-list-list-EM3TNZQG.js} +9 -9
  211. package/dist/{price-list-prices-add-ST6WNQNH.js → price-list-prices-add-DF6W4N6L.js} +19 -19
  212. package/dist/{price-list-prices-edit-ZQE3Z3NK.js → price-list-prices-edit-AXJJTMKL.js} +10 -10
  213. package/dist/{product-add-existing-attributes-J6MML6MT.js → product-add-existing-attributes-UVVJDOEN.js} +15 -15
  214. package/dist/{product-attributes-4EPKS6MP.js → product-attributes-PCZDEFHM.js} +1 -1
  215. package/dist/{product-bulk-edit-TRI2KKHW.js → product-bulk-edit-FGB4T2KQ.js} +1 -1
  216. package/dist/{product-create-B4DTC2OM.js → product-create-3PZNLIDT.js} +22 -16
  217. package/dist/{product-create-attribute-BP6NN4GO.js → product-create-attribute-6AJPI6IJ.js} +2 -2
  218. package/dist/{product-create-variant-VDQQNHAK.js → product-create-variant-2OCZA6GW.js} +4 -4
  219. package/dist/{product-detail-MFJ3AIU6.js → product-detail-IVRD2OHL.js} +26 -21
  220. package/dist/{product-edit-26AWYWUU.js → product-edit-KMK7CMLI.js} +6 -2
  221. package/dist/{product-edit-attribute-AXPTES26.js → product-edit-attribute-FCEYWZWL.js} +3 -3
  222. package/dist/{product-list-DMQSLXM4.js → product-list-IMKQUEIM.js} +30 -27
  223. package/dist/{product-media-XRBLOV7D.js → product-media-B5D2HUQF.js} +4 -4
  224. package/dist/{product-metadata-LOF6TSJQ.js → product-metadata-6EFF4IPX.js} +10 -10
  225. package/dist/{product-organization-ISVMEWQG.js → product-organization-5FUCDOGD.js} +4 -4
  226. package/dist/{product-sales-channels-C6UUHWGB.js → product-sales-channels-GUK6FTDA.js} +4 -4
  227. package/dist/{product-shipping-profile-VTYQ22E4.js → product-shipping-profile-UFIRKPTG.js} +1 -1
  228. package/dist/{product-tag-create-AHG3Y4GE.js → product-tag-create-PSY5Q437.js} +10 -10
  229. package/dist/{product-tag-detail-4FL4CU5S.js → product-tag-detail-L5RXBCPS.js} +24 -24
  230. package/dist/{product-tag-edit-ACHNVZZP.js → product-tag-edit-NVGUS3CY.js} +10 -10
  231. package/dist/{product-tag-list-YPTIDXPX.js → product-tag-list-UX2GZALX.js} +24 -24
  232. package/dist/{product-tag-metadata-BXC7GMBB.js → product-tag-metadata-T4ZYOIXY.js} +10 -10
  233. package/dist/{product-type-detail-RAYCHYAF.js → product-type-detail-LJWSJ6V5.js} +20 -20
  234. package/dist/{product-type-list-JN4SKTFE.js → product-type-list-AQ3GEAZX.js} +5 -5
  235. package/dist/{product-type-metadata-24JU4JNK.js → product-type-metadata-OJJYUALT.js} +10 -10
  236. package/dist/{product-variant-detail-7CFNAI3A.js → product-variant-detail-FZL5OZFE.js} +11 -11
  237. package/dist/{product-variant-edit-C4HXFQFW.js → product-variant-edit-LSSJW4DS.js} +12 -12
  238. package/dist/{product-variant-metadata-5PUBLPDN.js → product-variant-metadata-D5AUINFJ.js} +10 -10
  239. package/dist/{profile-detail-PABUO545.js → profile-detail-PFJX3LPX.js} +1 -1
  240. package/dist/{promotion-add-campaign-WK36UMSF.js → promotion-add-campaign-PYEBYRHK.js} +2 -2
  241. package/dist/{promotion-create-7VBA6JFM.js → promotion-create-OFLXF3RZ.js} +14 -14
  242. package/dist/{promotion-detail-KXXWEFHW.js → promotion-detail-N7JHJGSW.js} +25 -19
  243. package/dist/{promotion-edit-details-YM5JPGEC.js → promotion-edit-details-GXA4FDTK.js} +25 -8
  244. package/dist/{promotion-list-56ZDROMH.js → promotion-list-MIL2B752.js} +9 -9
  245. package/dist/{refund-reason-create-UA3XS6DP.js → refund-reason-create-HTTX2UGC.js} +10 -10
  246. package/dist/{refund-reason-edit-3TAGKV3U.js → refund-reason-edit-I7XXP4EP.js} +10 -10
  247. package/dist/{refund-reason-list-PBLA5HYO.js → refund-reason-list-YYCNRERE.js} +18 -18
  248. package/dist/{region-add-countries-UO5A42HM.js → region-add-countries-WIJCJPOX.js} +3 -3
  249. package/dist/{region-create-7NA6RKWS.js → region-create-B3I3W7QJ.js} +3 -3
  250. package/dist/{region-detail-636IAPYK.js → region-detail-3OFMBGML.js} +5 -5
  251. package/dist/{region-list-GIU6NFI4.js → region-list-DD5S5BD2.js} +5 -5
  252. package/dist/{region-metadata-NRV3L42D.js → region-metadata-RRUP56B2.js} +10 -10
  253. package/dist/{reservation-create-ANLVF7EC.js → reservation-create-3RVQVMRF.js} +2 -2
  254. package/dist/{reservation-detail-MAWHNY2H.js → reservation-detail-QOVPIIMC.js} +20 -16
  255. package/dist/{reservation-list-UWZRPRPH.js → reservation-list-EJPMH7UX.js} +7 -7
  256. package/dist/{reservation-metadata-ZFKKAOWG.js → reservation-metadata-OAEUUCRG.js} +10 -10
  257. package/dist/{reset-password-UDA5ZMTZ.js → reset-password-AZ2RPOG5.js} +1 -1
  258. package/dist/{return-reason-list-NPAAMB5H.js → return-reason-list-PFDQCDWA.js} +10 -10
  259. package/dist/{sales-channel-add-products-2BBIMN6N.js → sales-channel-add-products-FXWQ4LZ6.js} +18 -18
  260. package/dist/{sales-channel-create-OC2BB67N.js → sales-channel-create-77PRY5T6.js} +2 -2
  261. package/dist/{sales-channel-detail-D5R7HPC7.js → sales-channel-detail-HVPDMOUJ.js} +20 -20
  262. package/dist/{sales-channel-edit-V62TBRC4.js → sales-channel-edit-PBN2XYEI.js} +2 -2
  263. package/dist/{sales-channel-list-LVW7XE7K.js → sales-channel-list-WBG6DUZJ.js} +13 -13
  264. package/dist/{sales-channel-metadata-5W4OZZYI.js → sales-channel-metadata-RXT26TCT.js} +10 -10
  265. package/dist/{shipping-option-type-create-GHOCZT64.js → shipping-option-type-create-2EVIHSGN.js} +10 -10
  266. package/dist/{shipping-option-type-detail-W32EHTBS.js → shipping-option-type-detail-BKFYUX2T.js} +11 -11
  267. package/dist/{shipping-option-type-edit-KRIP6HTC.js → shipping-option-type-edit-LTH6PE7B.js} +10 -10
  268. package/dist/{shipping-option-type-list-4FML2ZX5.js → shipping-option-type-list-7F5R6ACH.js} +15 -15
  269. package/dist/{shipping-profile-detail-UFGQ3CCH.js → shipping-profile-detail-FOPCKNOZ.js} +1 -1
  270. package/dist/{shipping-profile-metadata-52ZW757T.js → shipping-profile-metadata-WRFZ55C3.js} +10 -10
  271. package/dist/{shipping-profiles-list-PZQVMKR4.js → shipping-profiles-list-KXXYHJIY.js} +5 -5
  272. package/dist/{store-address-edit-IJ2UW6WC.js → store-address-edit-M6A37RFY.js} +1 -1
  273. package/dist/{store-bulk-edit-OIYKZ6AZ.js → store-bulk-edit-SYHKAJ6D.js} +2 -2
  274. package/dist/{store-closure-edit-H3EKROXP.js → store-closure-edit-VE7D5F7I.js} +1 -1
  275. package/dist/{store-create-Y3BGG5P5.js → store-create-6OQW7F4U.js} +11 -11
  276. package/dist/{store-details-56IHJJQV.js → store-details-YV4U4GZK.js} +25 -42
  277. package/dist/{store-edit-HWOGEOCH.js → store-edit-33N7EQE2.js} +49 -15
  278. package/dist/{store-list-5DRW6QZF.js → store-list-VTV3TYJN.js} +22 -22
  279. package/dist/{store-member-invite-7ORIMT73.js → store-member-invite-T5GCT6HV.js} +2 -2
  280. package/dist/{store-payment-details-edit-ERRJDLBO.js → store-payment-details-edit-JUM745OG.js} +1 -1
  281. package/dist/{store-professional-details-edit-VD2J4VYV.js → store-professional-details-edit-NKBYKBCA.js} +1 -1
  282. package/dist/{tax-region-create-GGDCD2VU.js → tax-region-create-7FXHJKVB.js} +11 -11
  283. package/dist/{tax-region-detail-L7STT6C7.js → tax-region-detail-6AFMQQP7.js} +16 -16
  284. package/dist/{tax-region-edit-6JOV3POI.js → tax-region-edit-N64TGNAG.js} +10 -10
  285. package/dist/{tax-region-list-NIAT626R.js → tax-region-list-IBT5YP3U.js} +4 -4
  286. package/dist/{tax-region-metadata-4P667IOY.js → tax-region-metadata-MKXFQ5B7.js} +10 -10
  287. package/dist/{tax-region-province-detail-2GRPOSWS.js → tax-region-province-detail-CBCYMSGF.js} +15 -15
  288. package/dist/{tax-region-tax-override-create-R5GKEOK6.js → tax-region-tax-override-create-DFOUTYWV.js} +23 -23
  289. package/dist/{tax-region-tax-override-edit-MLJKNLAR.js → tax-region-tax-override-edit-PY7XG5KR.js} +23 -23
  290. package/dist/{user-detail-452E7GII.js → user-detail-4FDNMJ6W.js} +2 -2
  291. package/dist/{user-invite-FCWARLW5.js → user-invite-LSWNFFLT.js} +3 -3
  292. package/dist/{user-list-OU6WS25V.js → user-list-B66HEMCD.js} +5 -5
  293. package/dist/{user-metadata-CHHV7S3A.js → user-metadata-5UFWFXLX.js} +10 -10
  294. package/package.json +17 -12
  295. package/dist/category-organize-H4JYCHDA.js +0 -112
  296. package/dist/chunk-LFKTHNWI.js +0 -83
  297. package/dist/{chunk-7OKYEA6I.js → chunk-HC2TEEKQ.js} +3 -3
@@ -7,13 +7,13 @@ import {
7
7
  import {
8
8
  useRegionTableQuery
9
9
  } from "./chunk-7SVLKK6Q.js";
10
- import {
11
- _DataTable,
12
- useDataTable
13
- } from "./chunk-6ZVV2XHU.js";
14
10
  import {
15
11
  SingleColumnPage
16
12
  } from "./chunk-H6MYB7GB.js";
13
+ import {
14
+ _DataTable,
15
+ useDataTable
16
+ } from "./chunk-GRFWCCUW.js";
17
17
  import {
18
18
  useDeleteRegion,
19
19
  useRegions
@@ -24,6 +24,7 @@ import {
24
24
 
25
25
  // src/pages/regions/region-list/region-list.tsx
26
26
  import { Children as Children3 } from "react";
27
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
27
28
 
28
29
  // src/pages/regions/region-list/components/region-list-view/region-list-view.tsx
29
30
  import { Children as Children2 } from "react";
@@ -230,7 +231,7 @@ var RegionListView = ({
230
231
  // src/pages/regions/region-list/region-list.tsx
231
232
  import { jsx as jsx4 } from "react/jsx-runtime";
232
233
  var Root = ({ children }) => {
233
- return /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(RegionListView, {}) });
234
+ return /* @__PURE__ */ jsx4(SingleColumnPage, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "regions.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(RegionListView, {}) }) });
234
235
  };
235
236
  var RegionListPage = Object.assign(Root, {
236
237
  Table: RegionListView,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  inventoryItemLevelsQueryKeys,
3
3
  inventoryItemsQueryKeys
4
- } from "./chunk-ZKHF75MZ.js";
4
+ } from "./chunk-MMKUMSZS.js";
5
5
  import {
6
6
  queryClient
7
7
  } from "./chunk-RHKRREUU.js";
@@ -23,7 +23,7 @@ var reservationItemsQueryKeys = queryKeysFactory(
23
23
  );
24
24
  var useReservationItem = (id, query, options) => {
25
25
  const { data, ...rest } = useQuery({
26
- queryKey: reservationItemsQueryKeys.detail(id),
26
+ queryKey: reservationItemsQueryKeys.detail(id, query),
27
27
  queryFn: () => sdk.admin.reservations.$id.query({ $id: id, ...query }),
28
28
  ...options
29
29
  });
@@ -3,23 +3,23 @@ import {
3
3
  } from "./chunk-QG6PLWNH.js";
4
4
  import {
5
5
  useCustomerTableFilters
6
- } from "./chunk-HGTPUAHD.js";
6
+ } from "./chunk-DUVYF37J.js";
7
7
  import {
8
8
  useCustomerTableQuery
9
9
  } from "./chunk-GRH7C3QN.js";
10
- import {
11
- _DataTable,
12
- useDataTable
13
- } from "./chunk-6ZVV2XHU.js";
14
10
  import {
15
11
  SingleColumnPage
16
12
  } from "./chunk-H6MYB7GB.js";
13
+ import {
14
+ _DataTable,
15
+ useDataTable
16
+ } from "./chunk-GRFWCCUW.js";
17
17
  import {
18
18
  useCustomerGroup,
19
19
  useCustomers,
20
20
  useDeleteCustomerGroup,
21
21
  useRemoveCustomersFromGroup
22
- } from "./chunk-RGS5ZOY7.js";
22
+ } from "./chunk-AFYILTAC.js";
23
23
  import {
24
24
  ActionMenu
25
25
  } from "./chunk-BDGZ4EQO.js";
@@ -30,10 +30,12 @@ import {
30
30
  // src/pages/customer-groups/customer-group-detail/customer-group-detail.tsx
31
31
  import { Children } from "react";
32
32
  import { useLoaderData, useParams } from "react-router-dom";
33
+ import { useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
33
34
 
34
35
  // src/pages/customer-groups/customer-group-detail/components/customer-group-customer-section/customer-group-customer-section.tsx
35
36
  import { PencilSquare, Trash } from "@medusajs/icons";
36
37
  import { Button, Checkbox, Container, Heading, usePrompt } from "@medusajs/ui";
38
+ import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
37
39
  import { createColumnHelper } from "@tanstack/react-table";
38
40
  import { useMemo, useState } from "react";
39
41
  import { useTranslation } from "react-i18next";
@@ -131,6 +133,14 @@ var CustomerGroupCustomerSection = ({
131
133
  message: t("customerGroups.customers.list.noRecordsMessage")
132
134
  }
133
135
  }
136
+ ),
137
+ /* @__PURE__ */ jsx(
138
+ DisplayExtensionZone,
139
+ {
140
+ model: "customer_group",
141
+ zone: "customers",
142
+ data: group
143
+ }
134
144
  )
135
145
  ] });
136
146
  };
@@ -235,6 +245,7 @@ var useColumns = () => {
235
245
  // src/pages/customer-groups/customer-group-detail/components/customer-group-general-section/customer-group-general-section.tsx
236
246
  import { PencilSquare as PencilSquare2, Trash as Trash2 } from "@medusajs/icons";
237
247
  import { Container as Container2, Heading as Heading2, Text, toast, usePrompt as usePrompt2 } from "@medusajs/ui";
248
+ import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
238
249
  import { useTranslation as useTranslation2 } from "react-i18next";
239
250
  import { useNavigate } from "react-router-dom";
240
251
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
@@ -273,7 +284,7 @@ var CustomerGroupGeneralSection = ({
273
284
  };
274
285
  return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "customer-group-general-section", children: [
275
286
  /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "customer-group-general-section-header", children: [
276
- /* @__PURE__ */ jsx2(Heading2, { "data-testid": "customer-group-general-section-name", children: group.name }),
287
+ /* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "name", data: group, children: /* @__PURE__ */ jsx2(Heading2, { "data-testid": "customer-group-general-section-name", children: group.name }) }),
277
288
  /* @__PURE__ */ jsx2(
278
289
  ActionMenu,
279
290
  {
@@ -301,14 +312,23 @@ var CustomerGroupGeneralSection = ({
301
312
  }
302
313
  )
303
314
  ] }),
304
- /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-customers-row", children: [
315
+ /* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "customers", data: group, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-customers-row", children: [
305
316
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "customer-group-general-section-customers-label", children: t("customers.domain") }),
306
317
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", "data-testid": "customer-group-general-section-customers-value", children: group.customers?.length || "-" })
307
- ] }),
308
- /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-owner-row", children: [
318
+ ] }) }),
319
+ /* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "owner", data: group, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-owner-row", children: [
309
320
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "customer-group-general-section-owner-label", children: t("fields.owner") }),
310
321
  /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", "data-testid": "customer-group-general-section-owner-value", children: group.seller?.name || "-" })
311
- ] })
322
+ ] }) }),
323
+ /* @__PURE__ */ jsx2(
324
+ DisplayExtensionZone2,
325
+ {
326
+ model: "customer_group",
327
+ zone: "general",
328
+ data: group,
329
+ builtInFieldIds: ["name", "customers", "owner"]
330
+ }
331
+ )
312
332
  ] });
313
333
  };
314
334
 
@@ -320,11 +340,10 @@ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
320
340
  var Root = ({ children }) => {
321
341
  const initialData = useLoaderData();
322
342
  const { id } = useParams();
343
+ const query = useLinkQuery("customer_group", CUSTOMER_GROUP_DETAIL_FIELDS);
323
344
  const { customer_group, isLoading, isError, error } = useCustomerGroup(
324
345
  id,
325
- {
326
- fields: CUSTOMER_GROUP_DETAIL_FIELDS
327
- },
346
+ query,
328
347
  { initialData }
329
348
  );
330
349
  if (isLoading || !customer_group) {
@@ -333,10 +352,10 @@ var Root = ({ children }) => {
333
352
  if (isError) {
334
353
  throw error;
335
354
  }
336
- return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children }) : /* @__PURE__ */ jsxs3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children: [
355
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "customer-groups.detail.main", data: customer_group, children: [
337
356
  /* @__PURE__ */ jsx3(CustomerGroupGeneralSection, { group: customer_group }),
338
357
  /* @__PURE__ */ jsx3(CustomerGroupCustomerSection, { group: customer_group })
339
- ] });
358
+ ] }) });
340
359
  };
341
360
  var CustomerGroupDetailPage = Object.assign(Root, {
342
361
  GeneralSection: CustomerGroupGeneralSection,
@@ -10,7 +10,7 @@ import {
10
10
  decorateVariantsWithDefaultValues,
11
11
  generateVariantsFromAttributes,
12
12
  normalizeProductFormValues
13
- } from "./chunk-3BTRS4AA.js";
13
+ } from "./chunk-3FKB6UTO.js";
14
14
  import {
15
15
  HandleInput
16
16
  } from "./chunk-HJ56YXBU.js";
@@ -20,12 +20,9 @@ import {
20
20
  import {
21
21
  useAttributeTableQuery
22
22
  } from "./chunk-4YWKKCTT.js";
23
- import {
24
- DataTable
25
- } from "./chunk-C4XKPQ6T.js";
26
23
  import {
27
24
  SingleCategoryCombobox
28
- } from "./chunk-OPSGADQI.js";
25
+ } from "./chunk-DP6YFZHP.js";
29
26
  import {
30
27
  useComboboxData
31
28
  } from "./chunk-5KGMGL4N.js";
@@ -58,7 +55,11 @@ import {
58
55
  } from "./chunk-3QSRE5LS.js";
59
56
  import {
60
57
  require_dist
61
- } from "./chunk-DSTHXHJ5.js";
58
+ } from "./chunk-VYSB4CTB.js";
59
+ import {
60
+ _DataTable,
61
+ useDataTable
62
+ } from "./chunk-GRFWCCUW.js";
62
63
  import {
63
64
  useProductAttributes
64
65
  } from "./chunk-F5NW4XBU.js";
@@ -73,10 +74,10 @@ import {
73
74
  } from "./chunk-BDGZ4EQO.js";
74
75
  import {
75
76
  useSalesChannel
76
- } from "./chunk-MW47LDBT.js";
77
+ } from "./chunk-ZOTBKQLG.js";
77
78
  import {
78
79
  useCreateProduct
79
- } from "./chunk-ZKHF75MZ.js";
80
+ } from "./chunk-MMKUMSZS.js";
80
81
  import {
81
82
  sdk
82
83
  } from "./chunk-LXZXXOJ3.js";
@@ -118,14 +119,13 @@ import {
118
119
  import { useTranslation as useTranslation2 } from "react-i18next";
119
120
 
120
121
  // src/pages/products/product-create/components/product-create-attributes-form/product-create-add-attributes-modal.tsx
122
+ import { Badge, Button, Checkbox } from "@medusajs/ui";
123
+ import { keepPreviousData } from "@tanstack/react-query";
121
124
  import {
122
- Badge,
123
- Button,
124
- createDataTableColumnHelper
125
- } from "@medusajs/ui";
125
+ createColumnHelper
126
+ } from "@tanstack/react-table";
126
127
  import { useEffect, useMemo, useState } from "react";
127
128
  import { useTranslation } from "react-i18next";
128
- import { keepPreviousData } from "@tanstack/react-query";
129
129
  import { jsx, jsxs } from "react/jsx-runtime";
130
130
  var ADD_ATTRIBUTES_MODAL_ID = "add-attributes";
131
131
  var PAGE_SIZE = 20;
@@ -142,12 +142,10 @@ var ProductCreateAddAttributesModal = () => {
142
142
  const { t } = useTranslation();
143
143
  const { getValues, setValue } = form;
144
144
  const { setIsOpen, getIsOpen } = useStackedModal();
145
- const [rowSelection, setRowSelection] = useState(
146
- {}
147
- );
148
- const [state, setState] = useState([]);
145
+ const [rowSelection, setRowSelection] = useState({});
146
+ const [selected, setSelected] = useState([]);
149
147
  const categoryId = form.watch("category_id");
150
- const { searchParams } = useAttributeTableQuery({
148
+ const { searchParams, raw } = useAttributeTableQuery({
151
149
  pageSize: PAGE_SIZE,
152
150
  prefix: ADD_ATTRIBUTES_MODAL_ID
153
151
  });
@@ -166,12 +164,14 @@ var ProductCreateAddAttributesModal = () => {
166
164
  const attributes = getValues("attributes") ?? [];
167
165
  const existing = attributes.filter((a) => a.attribute_id);
168
166
  const selection = {};
169
- const stateEntries = [];
167
+ const entries = [];
170
168
  for (const a of existing) {
171
169
  if (a.attribute_id) {
172
170
  selection[a.attribute_id] = true;
173
- const apiAttr = product_attributes?.find((pa) => pa.id === a.attribute_id);
174
- stateEntries.push({
171
+ const apiAttr = product_attributes?.find(
172
+ (pa) => pa.id === a.attribute_id
173
+ );
174
+ entries.push({
175
175
  id: a.attribute_id,
176
176
  name: a.title,
177
177
  values: Array.isArray(a.values) ? a.values : a.values ? [a.values] : [],
@@ -185,7 +185,7 @@ var ProductCreateAddAttributesModal = () => {
185
185
  for (const attr of product_attributes) {
186
186
  if (attr.is_required && !selection[attr.id]) {
187
187
  selection[attr.id] = true;
188
- stateEntries.push({
188
+ entries.push({
189
189
  id: attr.id,
190
190
  name: attr.name,
191
191
  values: [],
@@ -197,9 +197,10 @@ var ProductCreateAddAttributesModal = () => {
197
197
  }
198
198
  }
199
199
  setRowSelection(selection);
200
- setState(stateEntries);
200
+ setSelected(entries);
201
201
  }, [open, getValues, product_attributes]);
202
- const onRowSelectionChange = (next) => {
202
+ const updater = (fn) => {
203
+ const next = typeof fn === "function" ? fn(rowSelection) : fn;
203
204
  if (product_attributes) {
204
205
  for (const attr of product_attributes) {
205
206
  if (attr.is_required) {
@@ -207,24 +208,20 @@ var ProductCreateAddAttributesModal = () => {
207
208
  }
208
209
  }
209
210
  }
210
- const ids = Object.keys(next);
211
- const addedIdsSet = new Set(
212
- ids.filter((id) => next[id] && !rowSelection[id])
211
+ const addedIds = new Set(
212
+ Object.keys(next).filter((id) => next[id] && !rowSelection[id])
213
213
  );
214
- let addedAttributes = [];
215
- if (addedIdsSet.size > 0) {
216
- addedAttributes = product_attributes?.filter((attr) => addedIdsSet.has(attr.id)).map((attr) => ({
217
- id: attr.id,
218
- name: attr.name,
219
- values: [],
220
- is_variant_axis: attr.is_variant_axis,
221
- type: attr.type,
222
- available_values: attr.values?.map((v) => ({ id: v.id, name: v.name })) ?? []
223
- })) ?? [];
224
- }
225
- setState((prev) => {
226
- const filteredPrev = prev.filter((a) => next[a.id]);
227
- return Array.from(/* @__PURE__ */ new Set([...filteredPrev, ...addedAttributes]));
214
+ const addedAttributes = addedIds.size > 0 ? product_attributes?.filter((attr) => addedIds.has(attr.id)).map((attr) => ({
215
+ id: attr.id,
216
+ name: attr.name,
217
+ values: [],
218
+ is_variant_axis: attr.is_variant_axis,
219
+ type: attr.type,
220
+ available_values: attr.values?.map((v) => ({ id: v.id, name: v.name })) ?? []
221
+ })) ?? [] : [];
222
+ setSelected((prev) => {
223
+ const kept = prev.filter((a) => next[a.id]);
224
+ return Array.from(/* @__PURE__ */ new Set([...kept, ...addedAttributes]));
228
225
  });
229
226
  setRowSelection(next);
230
227
  };
@@ -234,7 +231,7 @@ var ProductCreateAddAttributesModal = () => {
234
231
  const requiredIds = new Set(
235
232
  product_attributes?.filter((a) => a.is_required).map((a) => a.id) ?? []
236
233
  );
237
- const selectedAttributes = state.map((a) => ({
234
+ const selectedAttributes = selected.map((a) => ({
238
235
  attribute_id: a.id,
239
236
  title: a.name,
240
237
  values: a.values,
@@ -252,28 +249,42 @@ var ProductCreateAddAttributesModal = () => {
252
249
  };
253
250
  const filters = useAttributeTableFilters();
254
251
  const columns = useColumns();
252
+ const { table } = useDataTable({
253
+ data: product_attributes ?? [],
254
+ columns,
255
+ count,
256
+ getRowId: (row) => row.id,
257
+ pageSize: PAGE_SIZE,
258
+ enablePagination: true,
259
+ enableRowSelection: (row) => !row.original.is_required,
260
+ rowSelection: { state: rowSelection, updater },
261
+ prefix: ADD_ATTRIBUTES_MODAL_ID
262
+ });
255
263
  if (isError) {
256
264
  throw error;
257
265
  }
258
266
  return /* @__PURE__ */ jsxs(StackedFocusModal.Content, { className: "flex flex-col overflow-hidden", children: [
259
267
  /* @__PURE__ */ jsx(StackedFocusModal.Header, {}),
260
- /* @__PURE__ */ jsx(StackedFocusModal.Body, { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ jsx(
261
- DataTable,
268
+ /* @__PURE__ */ jsx(StackedFocusModal.Body, { className: "flex size-full flex-col overflow-hidden", children: /* @__PURE__ */ jsx(
269
+ _DataTable,
262
270
  {
263
- data: product_attributes,
271
+ table,
264
272
  columns,
265
- filters,
266
- rowCount: count,
273
+ count,
267
274
  pageSize: PAGE_SIZE,
268
- getRowId: (row) => row.id,
269
- rowSelection: {
270
- state: rowSelection,
271
- onRowSelectionChange,
272
- enableRowSelection: (row) => !row.original.is_required
273
- },
274
275
  isLoading,
276
+ filters,
277
+ orderBy: [
278
+ { key: "name", label: t("attributes.fields.name") },
279
+ { key: "created_at", label: t("fields.createdAt") },
280
+ { key: "updated_at", label: t("fields.updatedAt") }
281
+ ],
282
+ queryObject: raw,
283
+ prefix: ADD_ATTRIBUTES_MODAL_ID,
275
284
  layout: "fill",
276
- prefix: ADD_ATTRIBUTES_MODAL_ID
285
+ pagination: true,
286
+ search: true,
287
+ noRecords: { message: t("attributes.list.noRecordsMessage") }
277
288
  }
278
289
  ) }),
279
290
  /* @__PURE__ */ jsx(StackedFocusModal.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
@@ -282,28 +293,43 @@ var ProductCreateAddAttributesModal = () => {
282
293
  ] }) })
283
294
  ] });
284
295
  };
285
- var columnHelper = createDataTableColumnHelper();
296
+ var columnHelper = createColumnHelper();
286
297
  var useColumns = () => {
287
298
  const { t } = useTranslation();
288
299
  return useMemo(
289
300
  () => [
290
- columnHelper.select(),
301
+ columnHelper.display({
302
+ id: "select",
303
+ header: ({ table }) => /* @__PURE__ */ jsx(
304
+ Checkbox,
305
+ {
306
+ checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
307
+ onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
308
+ }
309
+ ),
310
+ cell: ({ row }) => /* @__PURE__ */ jsx(
311
+ Checkbox,
312
+ {
313
+ checked: row.getIsSelected(),
314
+ disabled: !row.getCanSelect(),
315
+ onCheckedChange: (value) => row.toggleSelected(!!value),
316
+ onClick: (e) => e.stopPropagation()
317
+ }
318
+ )
319
+ }),
291
320
  columnHelper.accessor("name", {
292
- header: t("attributes.fields.name"),
293
- enableSorting: false
321
+ header: t("attributes.fields.productAttribute")
294
322
  }),
295
323
  columnHelper.accessor("handle", {
296
324
  header: t("attributes.fields.handle"),
297
325
  cell: (info) => {
298
326
  const handle = info.getValue();
299
327
  return handle ? `/${handle}` : "-";
300
- },
301
- enableSorting: false
328
+ }
302
329
  }),
303
330
  columnHelper.accessor("is_required", {
304
331
  header: t("attributes.fields.required"),
305
- cell: (info) => info.getValue() ? t("filters.radio.yes") : t("filters.radio.no"),
306
- enableSorting: false
332
+ cell: (info) => info.getValue() ? t("filters.radio.yes") : t("filters.radio.no")
307
333
  }),
308
334
  columnHelper.accessor("type", {
309
335
  header: t("attributes.fields.type"),
@@ -311,13 +337,11 @@ var useColumns = () => {
311
337
  const type = info.getValue();
312
338
  const labelKey = ATTRIBUTE_TYPE_LABELS[type];
313
339
  return labelKey ? t(labelKey) : type;
314
- },
315
- enableSorting: false
340
+ }
316
341
  }),
317
342
  columnHelper.accessor("is_variant_axis", {
318
343
  header: t("attributes.fields.variantAxis"),
319
- cell: (info) => info.getValue() ? t("filters.radio.yes") : t("filters.radio.no"),
320
- enableSorting: false
344
+ cell: (info) => info.getValue() ? t("filters.radio.yes") : t("filters.radio.no")
321
345
  }),
322
346
  columnHelper.display({
323
347
  id: "values",
@@ -1285,7 +1309,7 @@ function formatFileSize(bytes, decimalPlaces = 2) {
1285
1309
  // src/pages/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx
1286
1310
  import {
1287
1311
  Alert,
1288
- Checkbox,
1312
+ Checkbox as Checkbox2,
1289
1313
  clx,
1290
1314
  Heading as Heading2,
1291
1315
  Hint as Hint2,
@@ -1391,7 +1415,7 @@ var ProductCreateVariantsSection = () => {
1391
1415
  },
1392
1416
  children: [
1393
1417
  /* @__PURE__ */ jsx5("div", { children: /* @__PURE__ */ jsx5(
1394
- Checkbox,
1418
+ Checkbox2,
1395
1419
  {
1396
1420
  className: "relative",
1397
1421
  checked: getCheckboxState(watchedVariants),
@@ -1432,7 +1456,7 @@ var ProductCreateVariantsSection = () => {
1432
1456
  render: ({
1433
1457
  field: { value, onChange, ...field }
1434
1458
  }) => /* @__PURE__ */ jsx5(Form.Item, { children: /* @__PURE__ */ jsx5(Form.Control, { children: /* @__PURE__ */ jsx5(
1435
- Checkbox,
1459
+ Checkbox2,
1436
1460
  {
1437
1461
  className: "relative",
1438
1462
  ...field,
@@ -2006,6 +2030,8 @@ var ProductCreateForm = ({
2006
2030
  return /* @__PURE__ */ jsx10(
2007
2031
  TabbedForm,
2008
2032
  {
2033
+ model: "product",
2034
+ zone: "create",
2009
2035
  form,
2010
2036
  onSubmit: handleSubmit,
2011
2037
  isLoading: isPending || isRegionsPending,
@@ -2028,6 +2054,7 @@ var ProductCreateForm = ({
2028
2054
  Button3,
2029
2055
  {
2030
2056
  "data-name": SAVE_DRAFT_BUTTON,
2057
+ variant: "secondary",
2031
2058
  size: "small",
2032
2059
  type: "submit",
2033
2060
  isLoading,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useDeleteCommissionRuleAction,
3
3
  useScopeReferenceNames
4
- } from "./chunk-JSVYNNPF.js";
4
+ } from "./chunk-7IGLZARZ.js";
5
5
  import {
6
6
  formatCommissionValue,
7
7
  getIsActiveProps,
@@ -18,16 +18,16 @@ import {
18
18
  import {
19
19
  SectionRow
20
20
  } from "./chunk-3XPXUIK3.js";
21
- import {
22
- _DataTable,
23
- useDataTable
24
- } from "./chunk-6ZVV2XHU.js";
25
21
  import {
26
22
  SingleColumnPage
27
23
  } from "./chunk-H6MYB7GB.js";
28
24
  import {
29
25
  useQueryParams
30
26
  } from "./chunk-THHRRYRS.js";
27
+ import {
28
+ _DataTable,
29
+ useDataTable
30
+ } from "./chunk-GRFWCCUW.js";
31
31
  import {
32
32
  useCommissionRules,
33
33
  useDefaultCommission
@@ -41,6 +41,7 @@ import {
41
41
 
42
42
  // src/pages/commissions/commissions-list/commissions-page.tsx
43
43
  import { Children } from "react";
44
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
44
45
 
45
46
  // src/pages/commissions/commissions-list/components/global-commission-section/global-commission-section.tsx
46
47
  import { PencilSquare } from "@medusajs/icons";
@@ -366,10 +367,10 @@ var CommissionRulesTable = () => {
366
367
  // src/pages/commissions/commissions-list/commissions-page.tsx
367
368
  import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
368
369
  var Root = ({ children }) => {
369
- return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, "data-testid": "commissions-page", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs4(Fragment2, { children: [
370
+ return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, "data-testid": "commissions-page", children: /* @__PURE__ */ jsx5(WidgetZone, { id: "commissions.list", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs4(Fragment2, { children: [
370
371
  /* @__PURE__ */ jsx5(GlobalCommissionSection, {}),
371
372
  /* @__PURE__ */ jsx5(CommissionRulesTable, {})
372
- ] }) });
373
+ ] }) }) });
373
374
  };
374
375
  var CommissionsPage = Object.assign(Root, {
375
376
  GlobalCommission: GlobalCommissionSection,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  RulesFormField
3
- } from "./chunk-K7H77TA5.js";
3
+ } from "./chunk-PHWYJ26A.js";
4
4
  import {
5
5
  CreateCampaignSchema,
6
6
  DEFAULT_CAMPAIGN_VALUES
7
- } from "./chunk-JLCA6PWC.js";
7
+ } from "./chunk-AASCLZ5N.js";
8
8
  import {
9
9
  DeprecatedPercentageInput
10
10
  } from "./chunk-MAEP2UCK.js";
11
11
  import {
12
12
  AddCampaignPromotionFields
13
- } from "./chunk-6DJQITWV.js";
13
+ } from "./chunk-5CHUXS7G.js";
14
14
  import {
15
15
  TabbedForm,
16
16
  defineTabMeta,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-3QSRE5LS.js";
30
30
  import {
31
31
  useCreatePromotion
32
- } from "./chunk-GCEOEV6P.js";
32
+ } from "./chunk-MTHPNKQ4.js";
33
33
  import {
34
34
  useDocumentDirection
35
35
  } from "./chunk-Y7QKP6QU.js";
@@ -1119,6 +1119,8 @@ function CreatePromotionForm({
1119
1119
  return /* @__PURE__ */ jsx4(
1120
1120
  TabbedForm,
1121
1121
  {
1122
+ model: "promotion",
1123
+ zone: "create",
1122
1124
  form,
1123
1125
  onSubmit: handleSubmit,
1124
1126
  isLoading,
@@ -2,7 +2,7 @@ import {
2
2
  TaxOverrideTable,
3
3
  TaxRateLine,
4
4
  useTaxOverrideTable
5
- } from "./chunk-PFBJWWUA.js";
5
+ } from "./chunk-4QQ6BFWQ.js";
6
6
  import {
7
7
  TaxRegionCard
8
8
  } from "./chunk-KXWN75T2.js";
@@ -25,6 +25,7 @@ import {
25
25
  // src/pages/tax-regions/tax-region-province-detail/tax-region-detail.tsx
26
26
  import { Children } from "react";
27
27
  import { useLoaderData, useParams } from "react-router-dom";
28
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
28
29
 
29
30
  // src/pages/tax-regions/tax-region-province-detail/components/tax-region-province-detail-section/tax-region-detail-section.tsx
30
31
  import { Badge, Container, Tooltip } from "@medusajs/ui";
@@ -120,10 +121,10 @@ var Root = ({ children }) => {
120
121
  if (isError) {
121
122
  throw error;
122
123
  }
123
- return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: taxRegion, showJSON: true, children }) : /* @__PURE__ */ jsxs2(SingleColumnPage, { data: taxRegion, showJSON: true, children: [
124
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: taxRegion, showJSON: true, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { data: taxRegion, showJSON: true, children: /* @__PURE__ */ jsxs2(WidgetZone, { id: "tax-regions.province.detail.main", data: taxRegion, children: [
124
125
  /* @__PURE__ */ jsx3(TaxRegionProvinceDetailSection, { taxRegion }),
125
126
  /* @__PURE__ */ jsx3(TaxRegionProvinceOverrideSection, { taxRegion })
126
- ] });
127
+ ] }) });
127
128
  };
128
129
  var TaxRegionProvinceDetailPage = Object.assign(Root, {
129
130
  DetailSection: TaxRegionProvinceDetailSection,
@@ -10,13 +10,13 @@ import {
10
10
  import {
11
11
  useProductTypeTableQuery
12
12
  } from "./chunk-VOHEQ7B5.js";
13
- import {
14
- _DataTable,
15
- useDataTable
16
- } from "./chunk-6ZVV2XHU.js";
17
13
  import {
18
14
  SingleColumnPage
19
15
  } from "./chunk-H6MYB7GB.js";
16
+ import {
17
+ _DataTable,
18
+ useDataTable
19
+ } from "./chunk-GRFWCCUW.js";
20
20
  import {
21
21
  useProductTypes
22
22
  } from "./chunk-EWFOFSF7.js";
@@ -26,6 +26,7 @@ import {
26
26
 
27
27
  // src/pages/product-types/product-type-list/product-type-list.tsx
28
28
  import { Children as Children3 } from "react";
29
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
29
30
 
30
31
  // src/pages/product-types/product-type-list/components/product-type-list-view/product-type-list-view.tsx
31
32
  import { Children as Children2 } from "react";
@@ -208,7 +209,7 @@ var ProductTypeListView = ({
208
209
  // src/pages/product-types/product-type-list/product-type-list.tsx
209
210
  import { jsx as jsx5 } from "react/jsx-runtime";
210
211
  var Root = ({ children }) => {
211
- return /* @__PURE__ */ jsx5(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(ProductTypeListView, {}) });
212
+ return /* @__PURE__ */ jsx5(SingleColumnPage, { children: /* @__PURE__ */ jsx5(WidgetZone, { id: "product-types.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(ProductTypeListView, {}) }) });
212
213
  };
213
214
  var ProductTypeListPage = Object.assign(Root, {
214
215
  Table: ProductTypeListView,