@mercurjs/admin 2.2.0-canary.39 → 2.2.0-canary.41

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 (203) hide show
  1. package/dist/{add-campaign-promotions-NT4LQZQJ.js → add-campaign-promotions-QK73ARX4.js} +4 -4
  2. package/dist/{api-key-management-list-SXHZJUJB.js → api-key-management-list-5RXBJ24C.js} +2 -2
  3. package/dist/{attribute-create-D4RUU5OT.js → attribute-create-VAR6C5GW.js} +11 -18
  4. package/dist/{attribute-detail-OU6557XI.js → attribute-detail-LBACUDU3.js} +5 -5
  5. package/dist/{attribute-edit-EQH3YMGW.js → attribute-edit-WXO5FGR6.js} +4 -4
  6. package/dist/{attribute-edit-possible-value-X7XTAVVL.js → attribute-edit-possible-value-RO7BY3NC.js} +2 -2
  7. package/dist/{attribute-edit-ranking-CHWUVK5Z.js → attribute-edit-ranking-YGR3KCSC.js} +1 -1
  8. package/dist/{attribute-list-5LGYNGO7.js → attribute-list-6A72PBIY.js} +2 -2
  9. package/dist/{campaign-detail-EHNTH6A7.js → campaign-detail-6J7PTIIP.js} +5 -5
  10. package/dist/{campaign-edit-MAS3DCFB.js → campaign-edit-DBAJFIH4.js} +18 -5
  11. package/dist/{campaign-list-FFGRXEVJ.js → campaign-list-XH7UM5JJ.js} +2 -2
  12. package/dist/{categories-metadata-EKY6TSUK.js → categories-metadata-4LXL2PWA.js} +1 -1
  13. package/dist/{category-create-AIS2MG7E.js → category-create-CJZZZLDD.js} +1 -1
  14. package/dist/{category-detail-HCRJDDA2.js → category-detail-XV6CDZZL.js} +6 -6
  15. package/dist/{category-edit-LYR2IOTA.js → category-edit-2NCWDSZY.js} +19 -6
  16. package/dist/{category-list-7ILXI55P.js → category-list-WYMOJJLW.js} +2 -2
  17. package/dist/{category-products-LZQATT5Z.js → category-products-CQV2TKLY.js} +5 -5
  18. package/dist/{chunk-S22SK4KO.js → chunk-25U23TXK.js} +1 -1
  19. package/dist/{chunk-O5MW4WPZ.js → chunk-27XNPAJP.js} +10 -4
  20. package/dist/{chunk-CYACZXMQ.js → chunk-2CJIE5MY.js} +19 -8
  21. package/dist/{chunk-SLKOHWKT.js → chunk-3L4IFGRJ.js} +46 -9
  22. package/dist/{chunk-MYJJMHR5.js → chunk-4BPQNCF5.js} +1 -1
  23. package/dist/{chunk-VSLKILOI.js → chunk-4RLXMDIJ.js} +2 -2
  24. package/dist/{chunk-5GVJXMOU.js → chunk-4XYSIVPO.js} +2 -2
  25. package/dist/{chunk-PSGHE5YJ.js → chunk-5DAFNAZJ.js} +52 -35
  26. package/dist/{chunk-BLR3NTU6.js → chunk-5PNM6QNB.js} +2 -0
  27. package/dist/{chunk-YUUDST4E.js → chunk-5UT374IW.js} +70 -25
  28. package/dist/{chunk-2YAVXVET.js → chunk-6BWJWA2F.js} +1 -1
  29. package/dist/{chunk-HSL5IICN.js → chunk-6ZVV2XHU.js} +1 -1
  30. package/dist/{chunk-5NC6SI6J.js → chunk-7U2JJYMP.js} +42 -14
  31. package/dist/{chunk-DI2KBXVH.js → chunk-ADTYNS4J.js} +2 -2
  32. package/dist/{chunk-CE2WRTS7.js → chunk-AMZ2QSSI.js} +1 -1
  33. package/dist/chunk-APAT344J.js +144 -0
  34. package/dist/{chunk-74WEDBZ7.js → chunk-BFUHW56P.js} +1 -1
  35. package/dist/{chunk-YNK25LVO.js → chunk-BQWSY6FS.js} +2 -2
  36. package/dist/{chunk-MANRAV52.js → chunk-CBD7HK2G.js} +60 -26
  37. package/dist/{chunk-FLPKTLXN.js → chunk-CHMIK6PK.js} +1 -1
  38. package/dist/{chunk-WKTRJNOK.js → chunk-COOOOQ2N.js} +1 -1
  39. package/dist/{chunk-5K5VNKSE.js → chunk-DJD3MWED.js} +1 -1
  40. package/dist/{chunk-2DSCC2VR.js → chunk-EOSJHPHN.js} +1 -1
  41. package/dist/{chunk-AVATBB62.js → chunk-F2SZ4LPF.js} +61 -5
  42. package/dist/{chunk-BVIIRGSW.js → chunk-F3F4JC7E.js} +3 -1
  43. package/dist/{chunk-7TWARCNU.js → chunk-FNCDMOOR.js} +54 -22
  44. package/dist/{chunk-DISTPZNS.js → chunk-GWSRWILC.js} +1 -1
  45. package/dist/{chunk-5DQED4UT.js → chunk-GXU246YJ.js} +32 -5
  46. package/dist/{chunk-73Y6HKIG.js → chunk-HT34QVZR.js} +1 -1
  47. package/dist/{chunk-O53E5U52.js → chunk-I5HY5Q3K.js} +1 -1
  48. package/dist/{chunk-23OLYWMR.js → chunk-IASJSRP5.js} +71 -50
  49. package/dist/{chunk-FZPSX44L.js → chunk-IMLKFVFH.js} +24 -7
  50. package/dist/{chunk-LZEEPVQY.js → chunk-IZBV7MCY.js} +71 -37
  51. package/dist/{chunk-XFKDDRB6.js → chunk-JEDX4KBB.js} +1 -1
  52. package/dist/{chunk-CY263OE4.js → chunk-JEN37H6L.js} +3 -1
  53. package/dist/{chunk-PRSTCHB5.js → chunk-JSVYNNPF.js} +1 -3
  54. package/dist/{chunk-BO4V6CQN.js → chunk-K2JORJRZ.js} +4 -2
  55. package/dist/{chunk-LH4WPKYK.js → chunk-K7H77TA5.js} +1 -1
  56. package/dist/{chunk-RNDDYLHV.js → chunk-KRFXBBBU.js} +3 -3
  57. package/dist/{chunk-CN4FCZPK.js → chunk-KT4DGVRQ.js} +2 -2
  58. package/dist/{chunk-DWNUEPMI.js → chunk-KUCNCDST.js} +5 -10
  59. package/dist/{chunk-4NAIC6RG.js → chunk-L2D2AMTK.js} +4 -2
  60. package/dist/{chunk-WKR3Y2KD.js → chunk-LBDSZT5Q.js} +19 -8
  61. package/dist/{chunk-P4LTLPTK.js → chunk-LGOPKYNG.js} +1 -1
  62. package/dist/{chunk-VSKHV5QF.js → chunk-LQSSUC7W.js} +1 -1
  63. package/dist/{chunk-RIURQMDE.js → chunk-MFCQTAVI.js} +16 -5
  64. package/dist/{chunk-EUXCKJPT.js → chunk-ML7UVBKL.js} +1 -1
  65. package/dist/{chunk-LX5XLXPI.js → chunk-NLJ5F7FS.js} +1 -1
  66. package/dist/{chunk-325DZAT2.js → chunk-NPHYCQMP.js} +6 -4
  67. package/dist/{chunk-Y62TJJ3P.js → chunk-ORCMDF54.js} +28 -12
  68. package/dist/{chunk-I3ARNGRC.js → chunk-OVUKVGGD.js} +19 -8
  69. package/dist/{chunk-IQDZZ5EQ.js → chunk-PLU2GB4L.js} +28 -8
  70. package/dist/{chunk-FNJEXQ2Z.js → chunk-QAONUPAX.js} +44 -15
  71. package/dist/{chunk-GUDWUAMT.js → chunk-QFFF542X.js} +10 -4
  72. package/dist/{chunk-2S2SBRZP.js → chunk-RATQZHCS.js} +7 -6
  73. package/dist/{chunk-ZO3OJ2UQ.js → chunk-RIO2IHPE.js} +1 -1
  74. package/dist/{chunk-WBSUHLO7.js → chunk-RMB7MPIT.js} +1 -1
  75. package/dist/{chunk-HWWET5ZP.js → chunk-S2C6DUQJ.js} +3 -3
  76. package/dist/{chunk-QH34LF36.js → chunk-TZM63FZ4.js} +2 -2
  77. package/dist/{chunk-3SHHDCA6.js → chunk-U4MV53CS.js} +33 -15
  78. package/dist/{chunk-KC4J2WOM.js → chunk-USG4EATH.js} +20 -5
  79. package/dist/{chunk-LRJNSCMR.js → chunk-VIJXGPDE.js} +79 -25
  80. package/dist/{chunk-JUMT5GX7.js → chunk-VLYPVR5U.js} +20 -9
  81. package/dist/{chunk-PWLDTJJX.js → chunk-VXDRQQRZ.js} +4 -4
  82. package/dist/{chunk-YZBEJ3CY.js → chunk-VYSB4CTB.js} +1500 -1370
  83. package/dist/{chunk-TBKNLE4M.js → chunk-WEVSVBVF.js} +1 -1
  84. package/dist/{chunk-WNTHKSLS.js → chunk-WMK3BQPH.js} +2 -2
  85. package/dist/{chunk-AROCMF45.js → chunk-X5PMVI7H.js} +2 -2
  86. package/dist/{chunk-RDUSAVT3.js → chunk-X6KFVVHH.js} +3 -3
  87. package/dist/{chunk-2FPQHWJZ.js → chunk-X7IR2TVL.js} +106 -24
  88. package/dist/{chunk-7RWFRMQG.js → chunk-ZU74CNL4.js} +1 -1
  89. package/dist/{collection-add-products-QIEQCILA.js → collection-add-products-XUKFZOCQ.js} +5 -5
  90. package/dist/{collection-detail-PTVRSXT3.js → collection-detail-ID4FKP22.js} +6 -6
  91. package/dist/{collection-edit-UMZN5JZ6.js → collection-edit-GPUKISIV.js} +18 -5
  92. package/dist/{collection-list-O5XBGFTN.js → collection-list-C6U4CPLD.js} +5 -5
  93. package/dist/{collection-metadata-TOHJL5WW.js → collection-metadata-SBK6SL4C.js} +1 -1
  94. package/dist/{commission-rule-commission-edit-EXLLNUKM.js → commission-rule-commission-edit-V5JVRNZN.js} +1 -3
  95. package/dist/{commission-rule-create-3MCNOSWN.js → commission-rule-create-EZ2C6AWK.js} +1 -3
  96. package/dist/{commission-rule-detail-VTP2JKEG.js → commission-rule-detail-ZQ3OHFA2.js} +2 -2
  97. package/dist/{commission-rule-edit-X45EQ6BK.js → commission-rule-edit-NQ5EYCGO.js} +1 -3
  98. package/dist/{commissions-list-T7735Y35.js → commissions-list-M5WLJD2P.js} +3 -3
  99. package/dist/{customer-detail-IPM3SBHE.js → customer-detail-IG2QAAQL.js} +2 -2
  100. package/dist/{customer-edit-D55FJLIN.js → customer-edit-TADBOMPB.js} +18 -5
  101. package/dist/{customer-group-add-customers-QBRVKXGO.js → customer-group-add-customers-O6A5ZFPM.js} +1 -1
  102. package/dist/{customer-group-detail-3HV3BJOU.js → customer-group-detail-2B7XJ7NT.js} +2 -2
  103. package/dist/{customer-group-edit-NZ5SUPFQ.js → customer-group-edit-BX4HKVNN.js} +33 -18
  104. package/dist/{customer-group-list-IR6CW36P.js → customer-group-list-7LN5TN3G.js} +2 -2
  105. package/dist/{customer-group-metadata-4W32YXXP.js → customer-group-metadata-JX7ZBXLJ.js} +1 -1
  106. package/dist/{customer-list-276YPXTE.js → customer-list-K5TV3PSF.js} +2 -2
  107. package/dist/{customer-metadata-L622ZJ43.js → customer-metadata-JT5GGCRV.js} +1 -1
  108. package/dist/{customers-add-customer-group-PWKJZJBP.js → customers-add-customer-group-KX3XNNMU.js} +1 -1
  109. package/dist/{edit-inventory-item-73BY4I5T.js → edit-inventory-item-4RXYRJ7O.js} +19 -6
  110. package/dist/{edit-reservation-BC5IOLK6.js → edit-reservation-HA6J6U2N.js} +18 -5
  111. package/dist/{edit-rules-OK44K33O.js → edit-rules-4PPNBI7B.js} +1 -1
  112. package/dist/extension-targets.d.ts +195 -0
  113. package/dist/extension-targets.js +1 -0
  114. package/dist/{global-commission-edit-7ZMMIV7B.js → global-commission-edit-TRSS5JBH.js} +1 -3
  115. package/dist/index.d.ts +6 -2
  116. package/dist/index.js +199 -171
  117. package/dist/{inventory-create-66YM6FST.js → inventory-create-B3FHGX6A.js} +1 -1
  118. package/dist/{inventory-detail-RYFIUKTJ.js → inventory-detail-7VEJHRBB.js} +3 -3
  119. package/dist/{inventory-list-U4W4AP4E.js → inventory-list-IRQUQD4G.js} +2 -2
  120. package/dist/{inventory-metadata-W6Z6J2Z2.js → inventory-metadata-W2E4KYG3.js} +1 -1
  121. package/dist/{inventory-stock-A3TSIGMD.js → inventory-stock-D2BNT2UL.js} +4 -4
  122. package/dist/{location-fulfillment-providers-TMPZH2KQ.js → location-fulfillment-providers-MFM4SHJJ.js} +3 -3
  123. package/dist/{location-service-zone-create-U77V3ROT.js → location-service-zone-create-O6GYRZEE.js} +2 -2
  124. package/dist/{location-service-zone-manage-areas-FUUAAIDJ.js → location-service-zone-manage-areas-DBP3P27I.js} +2 -2
  125. package/dist/{marketplace-add-currencies-KDNMN57C.js → marketplace-add-currencies-IPE5RJF6.js} +1 -1
  126. package/dist/{marketplace-detail-KBJSCI2N.js → marketplace-detail-IHGJXVZS.js} +2 -2
  127. package/dist/{marketplace-edit-26PFXTVD.js → marketplace-edit-WG6LMQ2P.js} +1 -1
  128. package/dist/{marketplace-metadata-VXFQ3JZW.js → marketplace-metadata-STYABOTX.js} +1 -1
  129. package/dist/{offer-detail-page-D3J547CC.js → offer-detail-page-THKNBFWZ.js} +62 -17
  130. package/dist/{offer-variant-detail-page-P4CKF442.js → offer-variant-detail-page-NDGPFP6P.js} +2 -2
  131. package/dist/{offers-7JTHN6FI.js → offers-LYLEYD3A.js} +23 -8
  132. package/dist/{order-create-claim-CHXOZH2C.js → order-create-claim-Y7ESDXLI.js} +1 -1
  133. package/dist/{order-create-edit-O4AOAOF7.js → order-create-edit-6L5S7KQM.js} +1 -1
  134. package/dist/{order-create-exchange-CG3ODKTK.js → order-create-exchange-WHO3K2MW.js} +1 -1
  135. package/dist/{order-create-return-DDOYLDT7.js → order-create-return-R5WJBQ5W.js} +1 -1
  136. package/dist/{order-detail-V6AL4RWB.js → order-detail-NYKOH7OO.js} +2 -2
  137. package/dist/{order-edit-billing-address-KVX4EPM7.js → order-edit-billing-address-BEOKFNLZ.js} +1 -1
  138. package/dist/{order-list-WHZJ6B4G.js → order-list-EZWCH5YW.js} +4 -4
  139. package/dist/{order-metadata-L6SCT4MO.js → order-metadata-VQOA3DOL.js} +1 -1
  140. package/dist/pages/index.d.ts +60 -60
  141. package/dist/pages/index.js +66 -66
  142. package/dist/{payout-list-SOWVPSFQ.js → payout-list-3GQJQSVU.js} +2 -2
  143. package/dist/{price-list-configuration-OTSYJ3AQ.js → price-list-configuration-BLHIGDSV.js} +2 -2
  144. package/dist/{price-list-create-2422HUBU.js → price-list-create-YHSA7U3L.js} +7 -7
  145. package/dist/{price-list-detail-CL3FMPVN.js → price-list-detail-3SS3DGRU.js} +6 -6
  146. package/dist/{price-list-edit-RZQMPHXU.js → price-list-edit-TRRPPI43.js} +19 -6
  147. package/dist/{price-list-list-A42VGE3L.js → price-list-list-REIHOWWT.js} +2 -2
  148. package/dist/{price-list-prices-add-OOG6526Y.js → price-list-prices-add-X2GLUD7O.js} +6 -6
  149. package/dist/{product-add-existing-attributes-DKKPTZMB.js → product-add-existing-attributes-GPAZOIXH.js} +2 -2
  150. package/dist/{product-create-IX4TOFNU.js → product-create-6FDBZUB4.js} +4 -4
  151. package/dist/{product-create-attribute-DQ2RMDPZ.js → product-create-attribute-YFIEH7HD.js} +1 -1
  152. package/dist/{product-create-variant-TBJJ74ZR.js → product-create-variant-4O22DW7M.js} +3 -3
  153. package/dist/{product-detail-BLZYOXLS.js → product-detail-VORTX3LT.js} +4 -4
  154. package/dist/{product-edit-attribute-BSPIDAZJ.js → product-edit-attribute-NUJB7M6R.js} +2 -2
  155. package/dist/{product-list-PLXUL3YW.js → product-list-2WE2JY4F.js} +16 -13
  156. package/dist/{product-media-TDEPDO3W.js → product-media-LINHO45U.js} +3 -3
  157. package/dist/{product-metadata-KBT4QGRF.js → product-metadata-LOF6TSJQ.js} +1 -1
  158. package/dist/{product-organization-HFC44AOV.js → product-organization-ISVMEWQG.js} +1 -1
  159. package/dist/{product-tag-detail-222RARIO.js → product-tag-detail-2PMM6RG6.js} +7 -7
  160. package/dist/{product-tag-list-EZ4JUW4U.js → product-tag-list-KBNI6UDN.js} +7 -7
  161. package/dist/{product-tag-metadata-4EUBENJ6.js → product-tag-metadata-BXC7GMBB.js} +1 -1
  162. package/dist/{product-type-detail-SSMTOG47.js → product-type-detail-UKJ6RIHU.js} +6 -6
  163. package/dist/{product-type-list-XTVTT7ZA.js → product-type-list-JN4SKTFE.js} +2 -2
  164. package/dist/{product-type-metadata-RAVB4BK2.js → product-type-metadata-24JU4JNK.js} +1 -1
  165. package/dist/{product-variant-edit-QJK2CLID.js → product-variant-edit-MAM2RQ4V.js} +2 -2
  166. package/dist/{product-variant-metadata-7VHJ4U6L.js → product-variant-metadata-5PUBLPDN.js} +1 -1
  167. package/dist/{promotion-create-AWZ7YA5T.js → promotion-create-3EDHAI7E.js} +2 -2
  168. package/dist/{promotion-detail-EEDQ3GQD.js → promotion-detail-PLGDC3A7.js} +3 -3
  169. package/dist/{promotion-edit-details-APVHD6J4.js → promotion-edit-details-RTLPOQ4H.js} +22 -13
  170. package/dist/{promotion-list-SXUXYV6R.js → promotion-list-D6HSZKGU.js} +5 -5
  171. package/dist/{refund-reason-list-OVTNXVLP.js → refund-reason-list-OWXAGHOQ.js} +5 -5
  172. package/dist/{region-add-countries-IIHNNE76.js → region-add-countries-UO5A42HM.js} +1 -1
  173. package/dist/{region-create-PHZNUCJR.js → region-create-7NA6RKWS.js} +1 -1
  174. package/dist/{region-detail-AECQQ62I.js → region-detail-636IAPYK.js} +2 -2
  175. package/dist/{region-list-IBQW5J3R.js → region-list-GIU6NFI4.js} +2 -2
  176. package/dist/{region-metadata-3KASKFZ3.js → region-metadata-NRV3L42D.js} +1 -1
  177. package/dist/{reservation-detail-MAWHNY2H.js → reservation-detail-PWZ3PLC4.js} +2 -2
  178. package/dist/{reservation-list-IUYMT4U6.js → reservation-list-URKNAFIX.js} +2 -2
  179. package/dist/{reservation-metadata-ENY4V2ED.js → reservation-metadata-ZFKKAOWG.js} +1 -1
  180. package/dist/{reset-password-UIDUOHVW.js → reset-password-UDA5ZMTZ.js} +1 -1
  181. package/dist/{return-reason-list-FRHFRNKK.js → return-reason-list-4ANB2PXX.js} +6 -6
  182. package/dist/{sales-channel-add-products-ZCUVTJQN.js → sales-channel-add-products-NATZ7L5S.js} +5 -5
  183. package/dist/{sales-channel-detail-EZVCWMMS.js → sales-channel-detail-VDYOKH35.js} +6 -6
  184. package/dist/{sales-channel-metadata-RXC4IDD3.js → sales-channel-metadata-5W4OZZYI.js} +1 -1
  185. package/dist/{shipping-option-type-list-Y43XD2XM.js → shipping-option-type-list-4FML2ZX5.js} +2 -2
  186. package/dist/{shipping-profile-metadata-HMQZ6LGB.js → shipping-profile-metadata-52ZW757T.js} +1 -1
  187. package/dist/{shipping-profiles-list-4VHKTKIL.js → shipping-profiles-list-PZQVMKR4.js} +2 -2
  188. package/dist/{store-address-edit-B4LWVP73.js → store-address-edit-IJ2UW6WC.js} +1 -1
  189. package/dist/{store-bulk-edit-IXWGUFY2.js → store-bulk-edit-I2J5YYZK.js} +1 -1
  190. package/dist/{store-create-PL2XGIR5.js → store-create-4UHISWQE.js} +3 -3
  191. package/dist/{store-details-4DAUF3CD.js → store-details-4D7MSGVL.js} +6 -6
  192. package/dist/{store-edit-ESFC2UXE.js → store-edit-MQZMWYXY.js} +23 -9
  193. package/dist/{store-list-KANREHW5.js → store-list-EBAHJOZO.js} +5 -5
  194. package/dist/{store-member-invite-U4UQS5VC.js → store-member-invite-J2JFDOHX.js} +2 -2
  195. package/dist/{tax-region-create-4YEJ3HFY.js → tax-region-create-GGDCD2VU.js} +1 -1
  196. package/dist/{tax-region-metadata-N3QNTXME.js → tax-region-metadata-4P667IOY.js} +1 -1
  197. package/dist/{tax-region-tax-override-create-JZHOHCXF.js → tax-region-tax-override-create-5PIUENUZ.js} +7 -7
  198. package/dist/{tax-region-tax-override-edit-SZRD23P4.js → tax-region-tax-override-edit-GBPRPUTS.js} +7 -7
  199. package/dist/{user-invite-UN6NCCII.js → user-invite-FCWARLW5.js} +1 -1
  200. package/dist/{user-list-27ZKEJXN.js → user-list-OU6WS25V.js} +2 -2
  201. package/dist/{user-metadata-BD73LJWB.js → user-metadata-CHHV7S3A.js} +1 -1
  202. package/package.json +23 -18
  203. package/dist/chunk-LFKTHNWI.js +0 -83
@@ -16,10 +16,10 @@ import {
16
16
  } from "./chunk-QJCUPZZQ.js";
17
17
  import {
18
18
  useProductTableColumns
19
- } from "./chunk-O53E5U52.js";
19
+ } from "./chunk-I5HY5Q3K.js";
20
20
  import {
21
21
  useProductTableFilters
22
- } from "./chunk-P4LTLPTK.js";
22
+ } from "./chunk-LGOPKYNG.js";
23
23
  import {
24
24
  useProductTableQuery
25
25
  } from "./chunk-H7NIKMPE.js";
@@ -29,7 +29,7 @@ import {
29
29
  import {
30
30
  _DataTable,
31
31
  useDataTable
32
- } from "./chunk-HSL5IICN.js";
32
+ } from "./chunk-6ZVV2XHU.js";
33
33
  import {
34
34
  ActionMenu
35
35
  } from "./chunk-BDGZ4EQO.js";
@@ -46,12 +46,14 @@ import {
46
46
  } from "./chunk-ZKHF75MZ.js";
47
47
 
48
48
  // src/pages/categories/category-detail/category-detail.tsx
49
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
49
50
  import { Children } from "react";
50
51
  import { useLoaderData, useParams } from "react-router-dom";
51
52
 
52
53
  // src/pages/categories/category-detail/components/category-general-section/category-general-section.tsx
53
54
  import { PencilSquare, Trash } from "@medusajs/icons";
54
55
  import { Container, Heading, StatusBadge, Text } from "@medusajs/ui";
56
+ import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
55
57
  import { useTranslation } from "react-i18next";
56
58
  import { jsx, jsxs } from "react/jsx-runtime";
57
59
  var CategoryGeneralSection = ({
@@ -63,11 +65,29 @@ var CategoryGeneralSection = ({
63
65
  const handleDelete = useDeleteProductCategoryAction(category);
64
66
  return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
65
67
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
66
- /* @__PURE__ */ jsx(Heading, { children: category.name }),
68
+ /* @__PURE__ */ jsx(DisplayField, { model: "category", zone: "general", id: "name", data: category, children: /* @__PURE__ */ jsx(Heading, { children: category.name }) }),
67
69
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-4", children: [
68
70
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
69
- /* @__PURE__ */ jsx(StatusBadge, { color: activeProps.color, children: activeProps.label }),
70
- /* @__PURE__ */ jsx(StatusBadge, { color: internalProps.color, children: internalProps.label })
71
+ /* @__PURE__ */ jsx(
72
+ DisplayField,
73
+ {
74
+ model: "category",
75
+ zone: "general",
76
+ id: "is_active",
77
+ data: category,
78
+ children: /* @__PURE__ */ jsx(StatusBadge, { color: activeProps.color, children: activeProps.label })
79
+ }
80
+ ),
81
+ /* @__PURE__ */ jsx(
82
+ DisplayField,
83
+ {
84
+ model: "category",
85
+ zone: "general",
86
+ id: "is_internal",
87
+ data: category,
88
+ children: /* @__PURE__ */ jsx(StatusBadge, { color: internalProps.color, children: internalProps.label })
89
+ }
90
+ )
71
91
  ] }),
72
92
  /* @__PURE__ */ jsx(
73
93
  ActionMenu,
@@ -96,23 +116,51 @@ var CategoryGeneralSection = ({
96
116
  )
97
117
  ] })
98
118
  ] }),
99
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 gap-3 px-6 py-4", children: [
100
- /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
101
- /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: category.description || "-" })
102
- ] }),
103
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 gap-3 px-6 py-4", children: [
104
- /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
105
- /* @__PURE__ */ jsxs(Text, { size: "small", leading: "compact", children: [
106
- "/",
107
- category.handle
108
- ] })
109
- ] })
119
+ /* @__PURE__ */ jsx(
120
+ DisplayField,
121
+ {
122
+ model: "category",
123
+ zone: "general",
124
+ id: "description",
125
+ data: category,
126
+ children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 gap-3 px-6 py-4", children: [
127
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.description") }),
128
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: category.description || "-" })
129
+ ] })
130
+ }
131
+ ),
132
+ /* @__PURE__ */ jsx(
133
+ DisplayField,
134
+ {
135
+ model: "category",
136
+ zone: "general",
137
+ id: "handle",
138
+ data: category,
139
+ children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 gap-3 px-6 py-4", children: [
140
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
141
+ /* @__PURE__ */ jsxs(Text, { size: "small", leading: "compact", children: [
142
+ "/",
143
+ category.handle
144
+ ] })
145
+ ] })
146
+ }
147
+ ),
148
+ /* @__PURE__ */ jsx(
149
+ DisplayExtensionZone,
150
+ {
151
+ model: "category",
152
+ zone: "general",
153
+ data: category,
154
+ builtInFieldIds: ["name", "is_active", "is_internal", "description", "handle"]
155
+ }
156
+ )
110
157
  ] });
111
158
  };
112
159
 
113
160
  // src/pages/categories/category-detail/components/category-icon-section/category-icon-section.tsx
114
161
  import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
115
162
  import { Container as Container2, Heading as Heading2, Text as Text2 } from "@medusajs/ui";
163
+ import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
116
164
  import { useTranslation as useTranslation2 } from "react-i18next";
117
165
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
118
166
  var CategoryIconSection = ({
@@ -161,13 +209,14 @@ var CategoryIconSection = ({
161
209
  }
162
210
  ),
163
211
  /* @__PURE__ */ jsx2(Text2, { size: "small", className: "text-ui-fg-muted", children: t("categories.icon.empty.description") })
164
- ] }) })
212
+ ] }) }),
213
+ /* @__PURE__ */ jsx2(DisplayExtensionZone2, { model: "category", zone: "icon", data: category })
165
214
  ] });
166
215
  };
167
216
 
168
217
  // src/pages/categories/category-detail/components/category-media-section/category-media-section.tsx
169
218
  import { PencilSquare as PencilSquare3, ThumbnailBadge } from "@medusajs/icons";
170
- import { ListBadge } from "@mercurjs/dashboard-shared";
219
+ import { DisplayExtensionZone as DisplayExtensionZone3, ListBadge } from "@mercurjs/dashboard-shared";
171
220
  import { Container as Container3, Heading as Heading3, Text as Text3, Tooltip } from "@medusajs/ui";
172
221
  import { useTranslation as useTranslation3 } from "react-i18next";
173
222
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
@@ -230,7 +279,8 @@ var CategoryMediaSection = ({
230
279
  }
231
280
  ),
232
281
  /* @__PURE__ */ jsx3(Text3, { size: "small", className: "text-ui-fg-muted", children: t("categories.media.empty.description") })
233
- ] }) })
282
+ ] }) }),
283
+ /* @__PURE__ */ jsx3(DisplayExtensionZone3, { model: "category", zone: "media", data: category })
234
284
  ] });
235
285
  };
236
286
 
@@ -241,6 +291,7 @@ import {
241
291
  TriangleRightMini
242
292
  } from "@medusajs/icons";
243
293
  import { Badge, Container as Container4, Heading as Heading4, Text as Text4, Tooltip as Tooltip2 } from "@medusajs/ui";
294
+ import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
244
295
  import { useMemo, useState } from "react";
245
296
  import { useTranslation as useTranslation4 } from "react-i18next";
246
297
  import { Link } from "react-router-dom";
@@ -276,7 +327,8 @@ var CategoryOrganizeSection = ({
276
327
  /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start gap-3 px-6 py-4", children: [
277
328
  /* @__PURE__ */ jsx4(Text4, { size: "small", leading: "compact", weight: "plus", children: t("categories.fields.children.label") }),
278
329
  /* @__PURE__ */ jsx4(ChildrenDisplay, { category })
279
- ] })
330
+ ] }),
331
+ /* @__PURE__ */ jsx4(DisplayExtensionZone4, { model: "category", zone: "organize", data: category })
280
332
  ] });
281
333
  };
282
334
  var PathDisplay = ({
@@ -380,6 +432,7 @@ var ChildrenDisplay = ({
380
432
 
381
433
  // src/pages/categories/category-detail/components/category-product-section/category-product-section.tsx
382
434
  import { ExclamationCircle, PlusMini } from "@medusajs/icons";
435
+ import { DisplayExtensionZone as DisplayExtensionZone5 } from "@mercurjs/dashboard-shared";
383
436
  import {
384
437
  Checkbox,
385
438
  CommandBar,
@@ -519,7 +572,8 @@ var CategoryProductSection = ({
519
572
  shortcut: "r"
520
573
  }
521
574
  )
522
- ] }) })
575
+ ] }) }),
576
+ /* @__PURE__ */ jsx5(DisplayExtensionZone5, { model: "category", zone: "products", data: category })
523
577
  ] });
524
578
  };
525
579
  var columnHelper = createColumnHelper();
@@ -580,13 +634,13 @@ var Root = ({ children }) => {
580
634
  throw error;
581
635
  }
582
636
  return Children.count(children) > 0 ? /* @__PURE__ */ jsx6(TwoColumnPage, { showJSON: true, showMetadata: true, data: product_category, "data-testid": "category-detail-page", children }) : /* @__PURE__ */ jsxs6(TwoColumnPage, { showJSON: true, showMetadata: true, data: product_category, "data-testid": "category-detail-page", children: [
583
- /* @__PURE__ */ jsxs6(TwoColumnPage.Main, { children: [
637
+ /* @__PURE__ */ jsx6(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "categories.detail.main", data: product_category, children: [
584
638
  /* @__PURE__ */ jsx6(CategoryGeneralSection, { category: product_category }),
585
639
  /* @__PURE__ */ jsx6(CategoryMediaSection, { category: product_category }),
586
640
  /* @__PURE__ */ jsx6(CategoryIconSection, { category: product_category }),
587
641
  /* @__PURE__ */ jsx6(CategoryProductSection, { category: product_category })
588
- ] }),
589
- /* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx6(CategoryOrganizeSection, { category: product_category }) })
642
+ ] }) }),
643
+ /* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx6(WidgetZone, { id: "categories.detail.side", data: product_category, children: /* @__PURE__ */ jsx6(CategoryOrganizeSection, { category: product_category }) }) })
590
644
  ] });
591
645
  };
592
646
  var CategoryDetailPage = Object.assign(Root, {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useProductTableColumns
3
- } from "./chunk-O53E5U52.js";
3
+ } from "./chunk-I5HY5Q3K.js";
4
4
  import {
5
5
  useProductTableFilters
6
- } from "./chunk-P4LTLPTK.js";
6
+ } from "./chunk-LGOPKYNG.js";
7
7
  import {
8
8
  useProductTableQuery
9
9
  } from "./chunk-H7NIKMPE.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
16
- } from "./chunk-HSL5IICN.js";
16
+ } from "./chunk-6ZVV2XHU.js";
17
17
  import {
18
18
  SingleColumnPage
19
19
  } from "./chunk-H6MYB7GB.js";
@@ -40,7 +40,10 @@ import {
40
40
  usePrompt
41
41
  } from "@medusajs/ui";
42
42
  import { keepPreviousData } from "@tanstack/react-query";
43
- import { createColumnHelper } from "@tanstack/react-table";
43
+ import {
44
+ createColumnHelper
45
+ } from "@tanstack/react-table";
46
+ import { useExtendableTable } from "@mercurjs/dashboard-shared";
44
47
  import { useMemo, useState, Children } from "react";
45
48
  import { useTranslation } from "react-i18next";
46
49
  import { Link, Outlet, useLoaderData, useNavigate } from "react-router-dom";
@@ -103,8 +106,12 @@ var ProductListDataTable = () => {
103
106
  placeholderData: keepPreviousData
104
107
  }
105
108
  );
106
- const filters = useProductTableFilters();
107
- const columns = useColumns();
109
+ const baseFilters = useProductTableFilters();
110
+ const { columns, filters: extFilters } = useColumns();
111
+ const filters = useMemo(
112
+ () => [...baseFilters, ...extFilters],
113
+ [baseFilters, extFilters]
114
+ );
108
115
  const { table } = useDataTable({
109
116
  data: products ?? [],
110
117
  columns,
@@ -266,6 +273,10 @@ var ProductActions = ({ product }) => {
266
273
  var columnHelper = createColumnHelper();
267
274
  var useColumns = () => {
268
275
  const base = useProductTableColumns();
276
+ const { columns: extended, filters } = useExtendableTable({
277
+ model: "product",
278
+ columns: base
279
+ });
269
280
  const columns = useMemo(
270
281
  () => [
271
282
  columnHelper.display({
@@ -288,7 +299,7 @@ var useColumns = () => {
288
299
  }
289
300
  )
290
301
  }),
291
- ...base,
302
+ ...extended,
292
303
  columnHelper.display({
293
304
  id: "actions",
294
305
  header: () => /* @__PURE__ */ jsx(
@@ -304,9 +315,9 @@ var useColumns = () => {
304
315
  }
305
316
  })
306
317
  ],
307
- [base]
318
+ [extended]
308
319
  );
309
- return columns;
320
+ return { columns, filters };
310
321
  };
311
322
 
312
323
  // src/pages/products/product-list/product-list.tsx
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-HC25LNX7.js";
16
16
  import {
17
17
  useShippingOptionTableQuery
18
- } from "./chunk-WKTRJNOK.js";
18
+ } from "./chunk-COOOOQ2N.js";
19
19
  import {
20
20
  useProductTypeTableQuery
21
21
  } from "./chunk-VOHEQ7B5.js";
@@ -27,10 +27,10 @@ import {
27
27
  } from "./chunk-JHIMVLB2.js";
28
28
  import {
29
29
  useProductTableColumns
30
- } from "./chunk-O53E5U52.js";
30
+ } from "./chunk-I5HY5Q3K.js";
31
31
  import {
32
32
  useProductTableFilters
33
- } from "./chunk-P4LTLPTK.js";
33
+ } from "./chunk-LGOPKYNG.js";
34
34
  import {
35
35
  useProductTableQuery
36
36
  } from "./chunk-H7NIKMPE.js";
@@ -41,7 +41,7 @@ import {
41
41
  import {
42
42
  _DataTable,
43
43
  useDataTable
44
- } from "./chunk-HSL5IICN.js";
44
+ } from "./chunk-6ZVV2XHU.js";
45
45
  import {
46
46
  useProductTypes
47
47
  } from "./chunk-EWFOFSF7.js";