@mercurjs/vendor 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 (225) hide show
  1. package/dist/{[id]-5P5LTATX.js → [id]-2LOU4IGP.js} +29 -11
  2. package/dist/{[id]-DT5YJVKG.js → [id]-6K5OJU5T.js} +18 -17
  3. package/dist/{[id]-N7JEZFXQ.js → [id]-6RTJXOT5.js} +2 -1
  4. package/dist/{[id]-XP5KEMNX.js → [id]-7T4JCGCZ.js} +86 -49
  5. package/dist/{[id]-DCGPICT3.js → [id]-BMW6PEZT.js} +23 -22
  6. package/dist/{[id]-CUBGVODE.js → [id]-FN47ZDW5.js} +89 -48
  7. package/dist/{[id]-4HO4S2PX.js → [id]-KTJU7CRX.js} +691 -657
  8. package/dist/{[id]-3LNKC5OJ.js → [id]-NUH6WK7Y.js} +80 -39
  9. package/dist/{[id]-AQUUZFRX.js → [id]-RRWUTLTP.js} +141 -43
  10. package/dist/{[id]-4LIIFGET.js → [id]-TJF2WSOF.js} +139 -50
  11. package/dist/{[id]-IEBZ6V3W.js → [id]-UWBLKWZI.js} +29 -28
  12. package/dist/{[id]-5EECCIRP.js → [id]-VWIZD2JL.js} +61 -36
  13. package/dist/{[id]-U6FKX5UQ.js → [id]-XRSZYRKI.js} +55 -33
  14. package/dist/{[id]-XB45DY2D.js → [id]-YIP2TDVC.js} +120 -42
  15. package/dist/{[location_id]-I4HHUHWY.js → [location_id]-TUAKRLYQ.js} +6 -5
  16. package/dist/{[province_id]-OYX4MOCF.js → [province_id]-6VYYS4DZ.js} +17 -16
  17. package/dist/{add-RPRJWCYU.js → add-KB477RH5.js} +18 -17
  18. package/dist/{add-3T4GBFMM.js → add-NSLA2RT7.js} +24 -24
  19. package/dist/{add-customer-groups-FB5T6PQN.js → add-customer-groups-PB4LCA5E.js} +12 -12
  20. package/dist/{add-products-F243SWGD.js → add-products-O72MJ3N2.js} +17 -17
  21. package/dist/{add-promotions-TJDK7HLW.js → add-promotions-6X7N3DTU.js} +6 -6
  22. package/dist/{add-to-campaign-Q6OAJMUJ.js → add-to-campaign-7WAUGNNI.js} +4 -4
  23. package/dist/{address-XVBSNMFU.js → address-ZR4EM2QA.js} +28 -16
  24. package/dist/{adjust-inventory-IZLRMQXV.js → adjust-inventory-P4X6PFKW.js} +1 -1
  25. package/dist/{allocate-items-Q3VALDYT.js → allocate-items-NSQOU2QJ.js} +2 -2
  26. package/dist/{areas-IYGBRCRH.js → areas-N4ORDJTD.js} +3 -3
  27. package/dist/{attributes-LGEM2JJW.js → attributes-DRC3WYY6.js} +1 -1
  28. package/dist/{breadcrumb-XGXKCDYS.js → breadcrumb-4YT6FRUQ.js} +3 -3
  29. package/dist/{breadcrumb-H45Z2WNG.js → breadcrumb-BKBSL3PC.js} +3 -3
  30. package/dist/{breadcrumb-K4HBKZUE.js → breadcrumb-ETWGVI34.js} +2 -2
  31. package/dist/{breadcrumb-KZPOPXGG.js → breadcrumb-F4N5CPRD.js} +1 -1
  32. package/dist/{breadcrumb-BXD3SRM7.js → breadcrumb-JGDD7EHO.js} +1 -1
  33. package/dist/{breadcrumb-VY5DNTTJ.js → breadcrumb-JWDW3P6C.js} +10 -10
  34. package/dist/{breadcrumb-FEYGZFJU.js → breadcrumb-KKWNLFMC.js} +2 -2
  35. package/dist/{breadcrumb-WG6TIF4C.js → breadcrumb-PJOTRHG7.js} +4 -2
  36. package/dist/{breadcrumb-NZYOCEEM.js → breadcrumb-PYLGF3AN.js} +10 -10
  37. package/dist/{breadcrumb-XEZCMI55.js → breadcrumb-TO45VBVD.js} +1 -1
  38. package/dist/{breadcrumb-L262VPBO.js → breadcrumb-UEUUMDIY.js} +1 -1
  39. package/dist/{breadcrumb-ILEAQRW7.js → breadcrumb-VCRGVYJR.js} +10 -10
  40. package/dist/{breadcrumb-BFNJWOJ4.js → breadcrumb-WWLMQQQF.js} +1 -1
  41. package/dist/{breadcrumb-BC6XN2SE.js → breadcrumb-Y7N7L7DM.js} +2 -2
  42. package/dist/{campaigns-DZKRNCA4.js → campaigns-GPLRB2AR.js} +5 -5
  43. package/dist/{categories-JZJA2IBQ.js → categories-53X36JNS.js} +6 -6
  44. package/dist/{chunk-JDNXS37G.js → chunk-2INANL6V.js} +2 -2
  45. package/dist/{chunk-3I6ZAMGN.js → chunk-2P5H7EVR.js} +1 -1
  46. package/dist/{chunk-ZTOYVPGA.js → chunk-3F4MUPGR.js} +1 -1
  47. package/dist/chunk-432S4FGR.js +0 -0
  48. package/dist/{chunk-JY2XON7H.js → chunk-4CNLTLQP.js} +6 -5
  49. package/dist/{chunk-3SH24DGG.js → chunk-4EAC3GT7.js} +1 -1
  50. package/dist/{chunk-MVEHWM7K.js → chunk-4NADEZZQ.js} +14 -3
  51. package/dist/{chunk-HDEOZN2Q.js → chunk-4OQLPIUZ.js} +27 -27
  52. package/dist/{chunk-MAW6ZT3D.js → chunk-55TS752B.js} +1 -1
  53. package/dist/{chunk-O7BGGWW6.js → chunk-5NVY7JZC.js} +4 -4
  54. package/dist/{chunk-MUGQQY6P.js → chunk-5SRG2247.js} +49 -11
  55. package/dist/{chunk-L57USMYC.js → chunk-5YZ3G5EZ.js} +1 -1
  56. package/dist/{chunk-G6YNCIVF.js → chunk-744GLNZW.js} +1 -1
  57. package/dist/{chunk-CUAGC54B.js → chunk-7CQ4RKVV.js} +23 -9
  58. package/dist/{chunk-WBCWER26.js → chunk-7HLAOLG7.js} +1 -1
  59. package/dist/{chunk-W3UHAQCV.js → chunk-7TQNE3E2.js} +1 -1
  60. package/dist/{chunk-7EXKHL5L.js → chunk-7ZNZJIVN.js} +1 -1
  61. package/dist/{chunk-UNE4VD5U.js → chunk-APWPWXWQ.js} +21 -10
  62. package/dist/{chunk-EAAZV3B7.js → chunk-BXDN7ZA5.js} +24 -12
  63. package/dist/{chunk-5PAUN3PM.js → chunk-CLS6PNZY.js} +2 -2
  64. package/dist/{chunk-MJP5V3JN.js → chunk-COGWTNSC.js} +1 -1
  65. package/dist/{chunk-RPU4UOQK.js → chunk-CQRCUQC4.js} +1 -1
  66. package/dist/{chunk-634XVU3D.js → chunk-CVXKASWV.js} +2 -2
  67. package/dist/{chunk-CRYZK4NU.js → chunk-EFKHV25A.js} +1 -1
  68. package/dist/{chunk-KZQFIPY2.js → chunk-ESXMD6CR.js} +12 -4
  69. package/dist/{chunk-5BYYDBLS.js → chunk-EX5IIVVN.js} +2 -2
  70. package/dist/{chunk-TJKZ5QCJ.js → chunk-FXQWGW2J.js} +2 -2
  71. package/dist/{chunk-Y4PM3IDZ.js → chunk-GGXGKMYK.js} +1 -1
  72. package/dist/{chunk-EDV4MTTT.js → chunk-GK6X67DV.js} +65 -37
  73. package/dist/{chunk-2KA4TGBQ.js → chunk-GZRCPKO5.js} +19 -8
  74. package/dist/{chunk-3TST3EWQ.js → chunk-HLAV55RT.js} +1 -1
  75. package/dist/{chunk-E6W57UP3.js → chunk-HRUO43BZ.js} +2 -2
  76. package/dist/{chunk-UX5UYDCY.js → chunk-I3I5IYHO.js} +1 -1
  77. package/dist/{chunk-3ALBZK4M.js → chunk-ICKOFNHF.js} +5 -2
  78. package/dist/{chunk-RTMMO6IU.js → chunk-II2GAEVL.js} +25 -13
  79. package/dist/{chunk-HXGLPDZW.js → chunk-IMVZFBCM.js} +6 -17
  80. package/dist/{chunk-GSH6ZGI6.js → chunk-IPNO77ZJ.js} +35 -12
  81. package/dist/{chunk-4IRQSBA7.js → chunk-IWF43LO2.js} +1 -1
  82. package/dist/{chunk-ZLHCZ5F2.js → chunk-JIXW4WHZ.js} +4 -4
  83. package/dist/{chunk-IEVN722X.js → chunk-JLLFEA23.js} +1 -1
  84. package/dist/{chunk-7BFQKYCJ.js → chunk-KEXXZLVI.js} +1 -1
  85. package/dist/{chunk-JTHDMXZV.js → chunk-LOBDXF34.js} +2 -2
  86. package/dist/{chunk-5BQO3YQP.js → chunk-MABIMRLS.js} +1 -1
  87. package/dist/{chunk-WFE6CT6M.js → chunk-MDGTQT5D.js} +1 -1
  88. package/dist/{chunk-LWFBBTJ3.js → chunk-MJ4B2OFU.js} +21 -10
  89. package/dist/{chunk-S7NGDLZ3.js → chunk-MK44MYO7.js} +2 -2
  90. package/dist/{chunk-2NPD4S55.js → chunk-O4N6UK6M.js} +2 -2
  91. package/dist/{chunk-JK4M3ZKY.js → chunk-OOK3BD5Z.js} +3 -3
  92. package/dist/{chunk-V5K6HISS.js → chunk-P3ETXWHD.js} +1 -1
  93. package/dist/{chunk-D76WZZSB.js → chunk-P6XBOWET.js} +6 -5
  94. package/dist/{chunk-H6LZ77GX.js → chunk-QGZH3D2P.js} +4 -1
  95. package/dist/{chunk-KTJLJTFO.js → chunk-QMTSINXN.js} +93 -66
  96. package/dist/{chunk-KG2NUK4J.js → chunk-QU444FAP.js} +46 -15
  97. package/dist/{chunk-WFHGJGCW.js → chunk-S4ILPAEO.js} +27 -12
  98. package/dist/{chunk-QWW6RHZC.js → chunk-SYWAMZNQ.js} +3 -2
  99. package/dist/{chunk-LQSLDDPT.js → chunk-T35QBLG7.js} +1 -1
  100. package/dist/{chunk-VD27SL7H.js → chunk-TNZMNJRF.js} +6 -5
  101. package/dist/{chunk-DQ7LZZJX.js → chunk-U5MXCMDR.js} +24 -13
  102. package/dist/{chunk-6FDPVW7Y.js → chunk-UEPUKWD7.js} +1 -1
  103. package/dist/{chunk-MT6WOKIW.js → chunk-UKTJEFMZ.js} +1 -1
  104. package/dist/{chunk-EPRYM3FA.js → chunk-ULEW54ED.js} +1 -1
  105. package/dist/{chunk-TPGIMZLI.js → chunk-VR7P4DAZ.js} +1 -1
  106. package/dist/{chunk-DSTHXHJ5.js → chunk-VYSB4CTB.js} +1356 -1356
  107. package/dist/{chunk-WCXFUBEF.js → chunk-W5LVOEN2.js} +7 -7
  108. package/dist/{chunk-FDKFUIYV.js → chunk-WQQMCV7M.js} +1 -1
  109. package/dist/chunk-WQTWBXKO.js +23 -0
  110. package/dist/{chunk-3BXCPHN6.js → chunk-XCHKUSUU.js} +1 -0
  111. package/dist/{chunk-OYUJYPDF.js → chunk-XWHHBJGS.js} +2 -1
  112. package/dist/{chunk-27WLUOI2.js → chunk-Y6S7K3YB.js} +1 -1
  113. package/dist/{chunk-6Q3J6ZMM.js → chunk-YEPZGGUE.js} +41 -19
  114. package/dist/{chunk-RILHLBKW.js → chunk-YRXXO2RT.js} +2 -2
  115. package/dist/{chunk-3C2T27YW.js → chunk-YXWZT3PX.js} +1 -1
  116. package/dist/{chunk-QWJTJSIT.js → chunk-Z3SPAROE.js} +1 -1
  117. package/dist/{collections-XIHCTMSJ.js → collections-AE7QLCFD.js} +18 -18
  118. package/dist/{configuration-3GCBMM27.js → configuration-I6BUESSG.js} +1 -1
  119. package/dist/{configuration-FWZTMYXY.js → configuration-QVMG6LAM.js} +3 -3
  120. package/dist/{create-PJVLJ7T6.js → create-2DXKC5OJ.js} +18 -18
  121. package/dist/{create-2RGNAVVY.js → create-2WFPJBDQ.js} +14 -14
  122. package/dist/{create-VL7LDTVE.js → create-3PIY2COT.js} +8 -8
  123. package/dist/{create-HEZYB7RF.js → create-7HXY7U5W.js} +55 -21
  124. package/dist/{create-FHIFVCSG.js → create-BE2YNVX3.js} +24 -24
  125. package/dist/{create-YKYLCEAK.js → create-C2WABAJU.js} +4 -4
  126. package/dist/{create-NEK6JCKR.js → create-EIMV4KCC.js} +9 -9
  127. package/dist/{create-XLYGW5PN.js → create-F2VZZ7XS.js} +11 -11
  128. package/dist/{create-N534JQPH.js → create-K7V36IWH.js} +3 -3
  129. package/dist/{create-32MXB6FD.js → create-KW6KFXGI.js} +10 -10
  130. package/dist/{create-3AMFYYI6.js → create-MW33P4AB.js} +12 -12
  131. package/dist/{create-GO7APBBU.js → create-RXIY777H.js} +12 -12
  132. package/dist/{create-RPBHXU32.js → create-TPNH5U7Z.js} +10 -10
  133. package/dist/{create-AMNH3WXL.js → create-ZZBMZZQG.js} +23 -19
  134. package/dist/{customer-group-add-customers-2C53NFBJ.js → customer-group-add-customers-DZ3JYD6S.js} +4 -4
  135. package/dist/{customer-group-create-75QQEQZF.js → customer-group-create-6YNGAE2W.js} +1 -1
  136. package/dist/{customer-group-detail-AOQYYAOG.js → customer-group-detail-VZUHEIRY.js} +18 -14
  137. package/dist/{customer-group-edit-N77RCW6I.js → customer-group-edit-UA36663R.js} +48 -27
  138. package/dist/{customer-groups-GNFV7VMT.js → customer-groups-RGHBJV55.js} +36 -15
  139. package/dist/{customers-HNINO6YL.js → customers-7S2MK4VG.js} +6 -6
  140. package/dist/{edit-BSD6667Q.js → edit-3RDEZH6V.js} +12 -12
  141. package/dist/{edit-7CLOJ3UZ.js → edit-3XGZNC24.js} +24 -24
  142. package/dist/{edit-4PWAJ7A3.js → edit-45TYWHR6.js} +11 -11
  143. package/dist/{edit-3DUCWSLA.js → edit-5IQNX7YB.js} +66 -33
  144. package/dist/{edit-ZGAOUZYP.js → edit-GBTLRL6H.js} +12 -12
  145. package/dist/{edit-SIKOSSHF.js → edit-HXCSFGP5.js} +10 -10
  146. package/dist/{edit-UNN3QTEJ.js → edit-JT4OKP5H.js} +23 -7
  147. package/dist/{edit-O65JD54W.js → edit-PIOHPBF5.js} +2 -2
  148. package/dist/{edit-IJ6DCBUU.js → edit-UYYI6HIT.js} +28 -11
  149. package/dist/{edit-TD7QFM4Z.js → edit-VFHZ6GVR.js} +14 -9
  150. package/dist/{edit-WEUFBORT.js → edit-W7T5NAFW.js} +12 -12
  151. package/dist/{edit-ZORE6RUD.js → edit-X4DFAW7S.js} +46 -24
  152. package/dist/{edit-7SBPHN6P.js → edit-YLWMEXUS.js} +23 -7
  153. package/dist/{edit-budget-D22WMVYR.js → edit-budget-XVJ65KUO.js} +1 -1
  154. package/dist/{edit-inventory-item-QMYWEBZ3.js → edit-inventory-item-NHSXZ7UB.js} +22 -7
  155. package/dist/{edit-inventory-item-attributes-HLG6JR6S.js → edit-inventory-item-attributes-VTFPTLLT.js} +1 -1
  156. package/dist/{edit-price-F7ZWM3FN.js → edit-price-XCJDZ4CU.js} +3 -3
  157. package/dist/{edit-stock-ITAZNHPU.js → edit-stock-5SQJH74B.js} +2 -2
  158. package/dist/extension-targets.d.ts +248 -0
  159. package/dist/extension-targets.js +1 -0
  160. package/dist/{fulfillment-U2GRQ6DD.js → fulfillment-5LEDKCH7.js} +20 -11
  161. package/dist/{fulfillment-providers-CMU2JB5X.js → fulfillment-providers-KUIDFRP4.js} +15 -15
  162. package/dist/index.css +18 -12
  163. package/dist/index.d.ts +2 -0
  164. package/dist/index.js +228 -201
  165. package/dist/{inventory-4JKLAZ2Q.js → inventory-L26YLIBO.js} +2 -2
  166. package/dist/{inventory-FKEXULLT.js → inventory-ZWZ2SUYW.js} +5 -5
  167. package/dist/{invite-3R2CEWLN.js → invite-CQEODMVX.js} +16 -27
  168. package/dist/{invite-MNAX6EUC.js → invite-VYXX7ICP.js} +14 -14
  169. package/dist/{loader-HTPUNIOS.js → loader-CDW7SKZP.js} +2 -2
  170. package/dist/{loader-MAAMUP2Z.js → loader-OGR7BCER.js} +12 -10
  171. package/dist/{locations-2VWSMWHL.js → locations-UVMY2QLW.js} +1 -1
  172. package/dist/{login-YUWOWICV.js → login-Z43XSPNR.js} +12 -12
  173. package/dist/{manage-locations-RWGDXXJQ.js → manage-locations-WD3WRVMF.js} +1 -1
  174. package/dist/{media-YB4G5CMV.js → media-UAAKHWJZ.js} +12 -12
  175. package/dist/{media-P6WSFHY4.js → media-VRNKF2TX.js} +14 -14
  176. package/dist/{metadata-J447GEBP.js → metadata-6FYHGP2P.js} +10 -10
  177. package/dist/{metadata-5Q6FLVX4.js → metadata-GI4A7XUC.js} +10 -10
  178. package/dist/{metadata-VTQ2CGZX.js → metadata-GR7QS5N6.js} +10 -10
  179. package/dist/{metadata-ADXGD4Y6.js → metadata-MRDVKETB.js} +10 -10
  180. package/dist/{metadata-6OYHLPLA.js → metadata-QZEX5FQH.js} +10 -10
  181. package/dist/{offer-create-page-ACPKTNHA.js → offer-create-page-LRKRHBRT.js} +18 -16
  182. package/dist/{offer-detail-page-S4R4N5GL.js → offer-detail-page-RSBA6WJB.js} +80 -27
  183. package/dist/{offer-variant-detail-page-XUMDXZUD.js → offer-variant-detail-page-KBDN27ZG.js} +25 -16
  184. package/dist/{offers-OTZJBW43.js → offers-LBJILJQX.js} +17 -17
  185. package/dist/{onboarding-TUGXFOA6.js → onboarding-4DXHB5KY.js} +58 -59
  186. package/dist/{orders-PJSJNGZS.js → orders-JGKXRRJ6.js} +21 -21
  187. package/dist/{organization-YIOAVFHN.js → organization-NQHWLNES.js} +12 -12
  188. package/dist/{organize-OWT5QSJR.js → organize-PNLFCNY4.js} +3 -3
  189. package/dist/{organize-BTA7NJD2.js → organize-X4IMS4S5.js} +3 -3
  190. package/dist/pages/index.d.ts +17 -2
  191. package/dist/pages/index.js +55 -54
  192. package/dist/{payment-details-K2XFATEL.js → payment-details-T7CKYYQR.js} +29 -17
  193. package/dist/{payouts-K5IDTJV3.js → payouts-MGC6Z3AT.js} +6 -6
  194. package/dist/{price-lists-DNPIPDAW.js → price-lists-QJTMWEEP.js} +8 -8
  195. package/dist/{pricing-J5FIDZIY.js → pricing-CFDZXHIE.js} +12 -12
  196. package/dist/{pricing-5VUPPNKS.js → pricing-LEEEQ2TR.js} +3 -3
  197. package/dist/{product-tags-SJYIGXEV.js → product-tags-Z7DOYERG.js} +25 -25
  198. package/dist/{product-types-4PTJW5DE.js → product-types-F5YH6TBY.js} +4 -4
  199. package/dist/{product-variant-detail-FO6J3RFA.js → product-variant-detail-EUWXJWAJ.js} +14 -13
  200. package/dist/{product-variant-edit-55TAIBZO.js → product-variant-edit-OP7DAKIN.js} +12 -12
  201. package/dist/{products-EQMANSO6.js → products-QRYZFYMR.js} +17 -17
  202. package/dist/{products-XM57LXJK.js → products-SGYVJ33I.js} +30 -29
  203. package/dist/{professional-details-WWZPTXSX.js → professional-details-UVRM7GID.js} +28 -16
  204. package/dist/{profile-5IADQ727.js → profile-HYJJLO63.js} +58 -24
  205. package/dist/{promotions-BYW6TZ5B.js → promotions-TF4GPADY.js} +8 -8
  206. package/dist/{receive-MTXKKPKZ.js → receive-NHOBI4NE.js} +4 -4
  207. package/dist/{refund-3IXGYA7W.js → refund-6MXXZP2L.js} +73 -49
  208. package/dist/{register-U5PQZATC.js → register-SC2R7TDT.js} +13 -13
  209. package/dist/{reset-password-SKUJJLSV.js → reset-password-OIZAI2US.js} +1 -1
  210. package/dist/{return-reasons-QDPSIJG3.js → return-reasons-L5BFL5WW.js} +18 -15
  211. package/dist/{sales-channels-GBSTCWVP.js → sales-channels-57VSC3CU.js} +4 -3
  212. package/dist/{sales-channels-N4NE3FXP.js → sales-channels-VXOZQKLK.js} +4 -3
  213. package/dist/{settings-ZUBBFS67.js → settings-UZGHDHAR.js} +28 -28
  214. package/dist/{shipment-TKSCPC3M.js → shipment-KF4M3RDJ.js} +10 -10
  215. package/dist/{shipping-DODEUYOQ.js → shipping-3KKFZONF.js} +2 -2
  216. package/dist/{shipping-profile-O4JMJLN7.js → shipping-profile-ZHE4U2MG.js} +1 -1
  217. package/dist/{shipping-profiles-4TJ4IH6U.js → shipping-profiles-W6ESWKTU.js} +14 -14
  218. package/dist/{stock-GYK2GHJN.js → stock-JCDE7SMM.js} +10 -10
  219. package/dist/{store-XWOALZ5Q.js → store-UOOVXKZY.js} +121 -47
  220. package/dist/{store-closure-46B3XZ2I.js → store-closure-7TG7Y7LW.js} +10 -10
  221. package/dist/{store-select-E77E3ZY7.js → store-select-SARJSWL4.js} +32 -13
  222. package/dist/{tax-regions-S2LFRTMP.js → tax-regions-4NK7L6FA.js} +7 -4
  223. package/dist/{team-N2C5JPSU.js → team-45IARFMH.js} +19 -18
  224. package/package.json +17 -12
  225. /package/dist/{chunk-HFRHHT36.js → chunk-NWU7EGGF.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getStylizedAmount
3
- } from "./chunk-3BXCPHN6.js";
3
+ } from "./chunk-XCHKUSUU.js";
4
4
  import "./chunk-IQPN4PZJ.js";
5
5
  import {
6
6
  SingleColumnPage
@@ -18,11 +18,20 @@ import "./chunk-NBMM2TZK.js";
18
18
  // src/pages/payouts/[id]/payout-detail-page.tsx
19
19
  import { Children } from "react";
20
20
  import { useParams } from "react-router-dom";
21
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
21
22
 
22
23
  // src/pages/payouts/[id]/_components/payout-general-section.tsx
23
24
  import { Container, Heading, StatusBadge, Text } from "@medusajs/ui";
25
+ import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
24
26
  import { useTranslation } from "react-i18next";
25
27
  import { jsx, jsxs } from "react/jsx-runtime";
28
+ var GENERAL_FIELD_IDS = [
29
+ "display_id",
30
+ "status",
31
+ "amount",
32
+ "created_at",
33
+ "updated_at"
34
+ ];
26
35
  var payoutStatusColor = (status) => {
27
36
  switch (status) {
28
37
  case "paid":
@@ -45,17 +54,17 @@ var PayoutGeneralSection = ({ payout }) => {
45
54
  });
46
55
  return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
47
56
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
48
- /* @__PURE__ */ jsxs(Heading, { children: [
57
+ /* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "display_id", data: payout, children: /* @__PURE__ */ jsxs(Heading, { children: [
49
58
  "#",
50
59
  payout.display_id
51
- ] }),
52
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx(StatusBadge, { color: payoutStatusColor(payout.status), children: statusText }) })
60
+ ] }) }),
61
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "status", data: payout, children: /* @__PURE__ */ jsx(StatusBadge, { color: payoutStatusColor(payout.status), children: statusText }) }) })
53
62
  ] }),
54
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
63
+ /* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "amount", data: payout, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
55
64
  /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.amount") }),
56
65
  /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: getStylizedAmount(payout.amount, payout.currency_code) })
57
- ] }),
58
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
66
+ ] }) }),
67
+ /* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "created_at", data: payout, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
59
68
  /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.createdAt") }),
60
69
  /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: new Date(payout.created_at).toLocaleDateString(void 0, {
61
70
  year: "numeric",
@@ -64,8 +73,8 @@ var PayoutGeneralSection = ({ payout }) => {
64
73
  hour: "2-digit",
65
74
  minute: "2-digit"
66
75
  }) })
67
- ] }),
68
- /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
76
+ ] }) }),
77
+ /* @__PURE__ */ jsx(DisplayField, { model: "payout", zone: "general", id: "updated_at", data: payout, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
69
78
  /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.updatedAt") }),
70
79
  /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: new Date(payout.updated_at).toLocaleDateString(void 0, {
71
80
  year: "numeric",
@@ -74,7 +83,16 @@ var PayoutGeneralSection = ({ payout }) => {
74
83
  hour: "2-digit",
75
84
  minute: "2-digit"
76
85
  }) })
77
- ] })
86
+ ] }) }),
87
+ /* @__PURE__ */ jsx(
88
+ DisplayExtensionZone,
89
+ {
90
+ model: "payout",
91
+ zone: "general",
92
+ data: payout,
93
+ builtInFieldIds: GENERAL_FIELD_IDS
94
+ }
95
+ )
78
96
  ] });
79
97
  };
80
98
 
@@ -89,7 +107,7 @@ var Root = ({ children }) => {
89
107
  if (isError) {
90
108
  throw error;
91
109
  }
92
- return /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) });
110
+ return /* @__PURE__ */ jsx2(SingleColumnPage, { showMetadata: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(WidgetZone, { id: "payouts.detail.main", data: payout, children: /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) }) });
93
111
  };
94
112
  var PayoutDetailPage = Object.assign(Root, {
95
113
  GeneralSection: PayoutGeneralSection
@@ -2,12 +2,12 @@ import {
2
2
  TaxOverrideTable,
3
3
  TaxRateLine,
4
4
  useTaxOverrideTable
5
- } from "./chunk-5BYYDBLS.js";
5
+ } from "./chunk-EX5IIVVN.js";
6
6
  import "./chunk-Q4UVXS46.js";
7
7
  import {
8
8
  TaxRegionTable,
9
9
  useTaxRegionTable
10
- } from "./chunk-MJP5V3JN.js";
10
+ } from "./chunk-COGWTNSC.js";
11
11
  import {
12
12
  TaxRegionCard
13
13
  } from "./chunk-5RMLLTR7.js";
@@ -25,12 +25,12 @@ import {
25
25
  getCountryByIso2
26
26
  } from "./chunk-JRTZWK77.js";
27
27
  import "./chunk-U2EI2ZLM.js";
28
- import "./chunk-YN3FGNJM.js";
29
- import "./chunk-KCHYLLVG.js";
30
- import "./chunk-634XVU3D.js";
31
28
  import {
32
29
  SingleColumnPage
33
30
  } from "./chunk-YV6MK4PZ.js";
31
+ import "./chunk-YN3FGNJM.js";
32
+ import "./chunk-KCHYLLVG.js";
33
+ import "./chunk-CVXKASWV.js";
34
34
  import "./chunk-THHRRYRS.js";
35
35
  import {
36
36
  SingleColumnPageSkeleton
@@ -50,22 +50,22 @@ import {
50
50
  } from "./chunk-7MARNXFG.js";
51
51
  import "./chunk-MNHP6YRC.js";
52
52
  import "./chunk-NTJ3BMOE.js";
53
- import "./chunk-5PAUN3PM.js";
54
- import "./chunk-ZLHCZ5F2.js";
53
+ import "./chunk-CLS6PNZY.js";
54
+ import "./chunk-JIXW4WHZ.js";
55
55
  import "./chunk-GZ4KTAWS.js";
56
56
  import "./chunk-PUAWN7SS.js";
57
- import "./chunk-MVEHWM7K.js";
58
- import "./chunk-OYUJYPDF.js";
59
- import "./chunk-O7BGGWW6.js";
57
+ import "./chunk-4NADEZZQ.js";
58
+ import "./chunk-XWHHBJGS.js";
59
+ import "./chunk-5NVY7JZC.js";
60
60
  import "./chunk-KIURBTC4.js";
61
- import "./chunk-3SH24DGG.js";
61
+ import "./chunk-4EAC3GT7.js";
62
62
  import "./chunk-JR7AABT5.js";
63
63
  import "./chunk-ZQCCVCHB.js";
64
- import "./chunk-5BQO3YQP.js";
65
- import "./chunk-EPRYM3FA.js";
66
- import "./chunk-6FDPVW7Y.js";
64
+ import "./chunk-MABIMRLS.js";
65
+ import "./chunk-ULEW54ED.js";
66
+ import "./chunk-UEPUKWD7.js";
67
67
  import "./chunk-JJP6AKMV.js";
68
- import "./chunk-G6YNCIVF.js";
68
+ import "./chunk-744GLNZW.js";
69
69
  import "./chunk-A5DJIOHN.js";
70
70
  import {
71
71
  queryClient
@@ -78,6 +78,7 @@ import "./chunk-NBMM2TZK.js";
78
78
 
79
79
  // src/pages/settings/tax-regions/[id]/index.tsx
80
80
  import { useLoaderData, useParams } from "react-router-dom";
81
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
81
82
 
82
83
  // src/pages/settings/tax-regions/[id]/_components/tax-region-detail-section.tsx
83
84
  import { Badge, Container, Tooltip } from "@medusajs/ui";
@@ -299,7 +300,7 @@ var TaxRegionDetail = () => {
299
300
  if (isError) {
300
301
  throw error;
301
302
  }
302
- return /* @__PURE__ */ jsxs3(SingleColumnPage, { data: taxRegion, children: [
303
+ return /* @__PURE__ */ jsx6(SingleColumnPage, { data: taxRegion, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "tax-regions.detail.main", data: taxRegion, children: [
303
304
  /* @__PURE__ */ jsx6(
304
305
  TaxRegionSublevelAlert,
305
306
  {
@@ -317,7 +318,7 @@ var TaxRegionDetail = () => {
317
318
  }
318
319
  ),
319
320
  /* @__PURE__ */ jsx6(TaxRegionOverrideSection, { taxRegion })
320
- ] });
321
+ ] }) });
321
322
  };
322
323
  var Component = TaxRegionDetail;
323
324
  export {
@@ -42,6 +42,7 @@ var shippingProfileLoader = async ({ params }) => {
42
42
  // src/pages/settings/shipping-profiles/[id]/shipping-profile-detail-page.tsx
43
43
  import { Children } from "react";
44
44
  import { useLoaderData, useParams } from "react-router-dom";
45
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
45
46
 
46
47
  // src/pages/settings/shipping-profiles/[id]/_components/shipping-profile-general-section.tsx
47
48
  import { Trash } from "@medusajs/icons";
@@ -126,7 +127,7 @@ var Root = ({ children }) => {
126
127
  if (isError) {
127
128
  throw error;
128
129
  }
129
- return /* @__PURE__ */ jsx2(SingleColumnPage, { data: shipping_profile, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(ShippingProfileGeneralSection, { profile: shipping_profile }) });
130
+ return /* @__PURE__ */ jsx2(SingleColumnPage, { data: shipping_profile, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(WidgetZone, { id: "shipping-profiles.detail.main", data: shipping_profile, children: /* @__PURE__ */ jsx2(ShippingProfileGeneralSection, { profile: shipping_profile }) }) });
130
131
  };
131
132
  var ShippingProfileDetailPage = Object.assign(Root, {
132
133
  GeneralSection: ShippingProfileGeneralSection
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-JHIMVLB2.js";
8
8
  import {
9
9
  useOrderTableColumns
10
- } from "./chunk-E6W57UP3.js";
10
+ } from "./chunk-HRUO43BZ.js";
11
11
  import {
12
12
  useOrderTableQuery
13
13
  } from "./chunk-XBKWFLJG.js";
@@ -19,28 +19,28 @@ import {
19
19
  } from "./chunk-CMHI2RPL.js";
20
20
  import "./chunk-HB3BP55W.js";
21
21
  import "./chunk-SYNUA6LQ.js";
22
- import "./chunk-L57USMYC.js";
23
- import "./chunk-LQSLDDPT.js";
24
- import "./chunk-3BXCPHN6.js";
22
+ import "./chunk-5YZ3G5EZ.js";
23
+ import "./chunk-T35QBLG7.js";
24
+ import "./chunk-XCHKUSUU.js";
25
25
  import {
26
26
  getCountryByIso2
27
27
  } from "./chunk-JRTZWK77.js";
28
28
  import "./chunk-DB6ANJBO.js";
29
29
  import "./chunk-PHOCVOZ5.js";
30
30
  import "./chunk-IQPN4PZJ.js";
31
+ import {
32
+ TwoColumnPage
33
+ } from "./chunk-YV6MK4PZ.js";
31
34
  import "./chunk-FQERBIVS.js";
32
35
  import {
33
36
  _DataTable,
34
37
  useDataTable
35
- } from "./chunk-W3UHAQCV.js";
38
+ } from "./chunk-7TQNE3E2.js";
36
39
  import "./chunk-YN3FGNJM.js";
37
40
  import "./chunk-KCHYLLVG.js";
38
41
  import {
39
42
  NoRecords
40
- } from "./chunk-634XVU3D.js";
41
- import {
42
- TwoColumnPage
43
- } from "./chunk-YV6MK4PZ.js";
43
+ } from "./chunk-CVXKASWV.js";
44
44
  import "./chunk-THHRRYRS.js";
45
45
  import "./chunk-LRD242C7.js";
46
46
  import {
@@ -58,31 +58,30 @@ import "./chunk-VE6GRIIN.js";
58
58
  import "./chunk-7MARNXFG.js";
59
59
  import "./chunk-MNHP6YRC.js";
60
60
  import "./chunk-NTJ3BMOE.js";
61
- import "./chunk-5PAUN3PM.js";
62
- import "./chunk-ZLHCZ5F2.js";
61
+ import "./chunk-CLS6PNZY.js";
62
+ import "./chunk-JIXW4WHZ.js";
63
63
  import "./chunk-GZ4KTAWS.js";
64
64
  import "./chunk-PUAWN7SS.js";
65
- import "./chunk-MVEHWM7K.js";
65
+ import "./chunk-4NADEZZQ.js";
66
66
  import {
67
+ customersQueryKeys,
67
68
  useBatchCustomerCustomerGroups,
68
69
  useCustomer,
69
70
  useCustomerGroups,
70
71
  useRemoveCustomersFromGroup
71
- } from "./chunk-OYUJYPDF.js";
72
- import "./chunk-O7BGGWW6.js";
72
+ } from "./chunk-XWHHBJGS.js";
73
+ import "./chunk-5NVY7JZC.js";
73
74
  import "./chunk-KIURBTC4.js";
74
- import "./chunk-3SH24DGG.js";
75
+ import "./chunk-4EAC3GT7.js";
75
76
  import "./chunk-JR7AABT5.js";
76
77
  import "./chunk-ZQCCVCHB.js";
77
- import "./chunk-5BQO3YQP.js";
78
- import "./chunk-EPRYM3FA.js";
78
+ import "./chunk-MABIMRLS.js";
79
+ import "./chunk-ULEW54ED.js";
79
80
  import {
80
81
  useOrders
81
- } from "./chunk-6FDPVW7Y.js";
82
+ } from "./chunk-UEPUKWD7.js";
82
83
  import "./chunk-JJP6AKMV.js";
83
- import {
84
- productsQueryKeys
85
- } from "./chunk-G6YNCIVF.js";
84
+ import "./chunk-744GLNZW.js";
86
85
  import "./chunk-A5DJIOHN.js";
87
86
  import {
88
87
  queryClient
@@ -94,13 +93,17 @@ import {
94
93
  import "./chunk-NBMM2TZK.js";
95
94
 
96
95
  // src/pages/customers/[id]/loader.tsx
97
- var customerDetailQuery = (id) => ({
98
- queryKey: productsQueryKeys.detail(id),
99
- queryFn: async () => fetchQuery(`/vendor/customers/${id}`, {
100
- method: "GET",
101
- query: { fields: "*groups, *groups.customers" }
102
- })
103
- });
96
+ import { getLinkQuery } from "@mercurjs/dashboard-shared";
97
+ var customerDetailQuery = (id) => {
98
+ const query = getLinkQuery("customer", "*groups, *groups.customers");
99
+ return {
100
+ queryKey: customersQueryKeys.detail(id, query),
101
+ queryFn: async () => fetchQuery(`/vendor/customers/${id}`, {
102
+ method: "GET",
103
+ query
104
+ })
105
+ };
106
+ };
104
107
  var loader = async ({ params }) => {
105
108
  const id = params.id;
106
109
  const query = customerDetailQuery(id);
@@ -110,9 +113,11 @@ var loader = async ({ params }) => {
110
113
  // src/pages/customers/[id]/customer-detail-page.tsx
111
114
  import { Children } from "react";
112
115
  import { useLoaderData, useParams } from "react-router-dom";
116
+ import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
113
117
 
114
118
  // src/pages/customers/[id]/_components/customer-address-section/customer-address-section.tsx
115
119
  import { Container, Heading, Text } from "@medusajs/ui";
120
+ import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
116
121
  import { useTranslation } from "react-i18next";
117
122
  import { jsx, jsxs } from "react/jsx-runtime";
118
123
  var getAddressLabel = (address) => {
@@ -194,12 +199,14 @@ var CustomerAddressSection = ({
194
199
  },
195
200
  address.id
196
201
  );
197
- }) })
202
+ }) }),
203
+ /* @__PURE__ */ jsx(DisplayExtensionZone, { model: "customer", zone: "addresses", data: customer })
198
204
  ] });
199
205
  };
200
206
 
201
207
  // src/pages/customers/[id]/_components/customer-general-section/customer-general-section.tsx
202
208
  import { Container as Container2, Heading as Heading2, StatusBadge, Text as Text2 } from "@medusajs/ui";
209
+ import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
203
210
  import { useTranslation as useTranslation2 } from "react-i18next";
204
211
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
205
212
  var CustomerGeneralSection = ({
@@ -211,25 +218,53 @@ var CustomerGeneralSection = ({
211
218
  const statusText = customer.has_account ? t2("customers.fields.registered") : t2("customers.fields.guest");
212
219
  return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", children: [
213
220
  /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
214
- /* @__PURE__ */ jsx2(Heading2, { children: customer.email }),
215
- /* @__PURE__ */ jsx2("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx2(StatusBadge, { color: statusColor, children: statusText }) })
221
+ /* @__PURE__ */ jsx2(DisplayField, { model: "customer", zone: "general", id: "email", data: customer, children: /* @__PURE__ */ jsx2(Heading2, { children: customer.email }) }),
222
+ /* @__PURE__ */ jsx2("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx2(
223
+ DisplayField,
224
+ {
225
+ model: "customer",
226
+ zone: "general",
227
+ id: "status",
228
+ data: customer,
229
+ children: /* @__PURE__ */ jsx2(StatusBadge, { color: statusColor, children: statusText })
230
+ }
231
+ ) })
216
232
  ] }),
217
- /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
233
+ /* @__PURE__ */ jsx2(DisplayField, { model: "customer", zone: "general", id: "name", data: customer, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
218
234
  /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.name") }),
219
235
  /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: name || "-" })
220
- ] }),
221
- /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
222
- /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.company") }),
223
- /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: customer.company_name || "-" })
224
- ] }),
225
- /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
236
+ ] }) }),
237
+ /* @__PURE__ */ jsx2(
238
+ DisplayField,
239
+ {
240
+ model: "customer",
241
+ zone: "general",
242
+ id: "company_name",
243
+ data: customer,
244
+ children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
245
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.company") }),
246
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: customer.company_name || "-" })
247
+ ] })
248
+ }
249
+ ),
250
+ /* @__PURE__ */ jsx2(DisplayField, { model: "customer", zone: "general", id: "phone", data: customer, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
226
251
  /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.phone") }),
227
252
  /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: customer.phone || "-" })
228
- ] })
253
+ ] }) }),
254
+ /* @__PURE__ */ jsx2(
255
+ DisplayExtensionZone2,
256
+ {
257
+ model: "customer",
258
+ zone: "general",
259
+ data: customer,
260
+ builtInFieldIds: ["email", "status", "name", "company_name", "phone"]
261
+ }
262
+ )
229
263
  ] });
230
264
  };
231
265
 
232
266
  // src/pages/customers/[id]/_components/customer-group-section/customer-group-section.tsx
267
+ import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
233
268
  import {
234
269
  Button,
235
270
  Checkbox,
@@ -376,7 +411,8 @@ var CustomerGroupSection = ({
376
411
  icon: null
377
412
  }
378
413
  }
379
- )
414
+ ),
415
+ /* @__PURE__ */ jsx3(DisplayExtensionZone3, { model: "customer", zone: "groups", data: customer })
380
416
  ] });
381
417
  };
382
418
  var CustomerGroupRowActions = ({
@@ -490,6 +526,7 @@ var useColumns = (customerId, customerCountByGroup = {}) => {
490
526
 
491
527
  // src/pages/customers/[id]/_components/customer-order-section/customer-order-section.tsx
492
528
  import { Container as Container4, Heading as Heading4 } from "@medusajs/ui";
529
+ import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
493
530
  import { useMemo as useMemo2 } from "react";
494
531
  import { useTranslation as useTranslation4 } from "react-i18next";
495
532
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
@@ -555,7 +592,8 @@ var CustomerOrderSection = ({
555
592
  queryObject: raw,
556
593
  prefix: PREFIX2
557
594
  }
558
- )
595
+ ),
596
+ /* @__PURE__ */ jsx4(DisplayExtensionZone4, { model: "customer", zone: "orders", data: customer })
559
597
  ] });
560
598
  };
561
599
  var useColumns2 = () => {
@@ -570,22 +608,21 @@ import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
570
608
  var Root = ({ children }) => {
571
609
  const { id } = useParams();
572
610
  const initialData = useLoaderData();
573
- const { customer, isLoading, isError, error } = useCustomer(
574
- id,
575
- {},
576
- { initialData }
577
- );
611
+ const query = useLinkQuery("customer", "*groups, *groups.customers");
612
+ const { customer, isLoading, isError, error } = useCustomer(id, query, {
613
+ initialData
614
+ });
578
615
  if (isLoading || !customer) {
579
616
  return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1 });
580
617
  }
581
618
  if (isError) throw error;
582
619
  return /* @__PURE__ */ jsx5(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: customer, showJSON: true, hasOutlet: true, children: [
583
- /* @__PURE__ */ jsxs5(TwoColumnPage.Main, { children: [
620
+ /* @__PURE__ */ jsx5(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "customers.detail.main", data: customer, children: [
584
621
  /* @__PURE__ */ jsx5(CustomerGeneralSection, { customer }),
585
622
  /* @__PURE__ */ jsx5(CustomerOrderSection, { customer }),
586
623
  /* @__PURE__ */ jsx5(CustomerGroupSection, { customer })
587
- ] }),
588
- /* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(CustomerAddressSection, { customer }) })
624
+ ] }) }),
625
+ /* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(WidgetZone, { id: "customers.detail.side", data: customer, children: /* @__PURE__ */ jsx5(CustomerAddressSection, { customer }) }) })
589
626
  ] }) });
590
627
  };
591
628
  var CustomerDetailPage = Object.assign(Root, {
@@ -3,31 +3,31 @@ import {
3
3
  } from "./chunk-MAVQ636Y.js";
4
4
  import {
5
5
  useProductTableColumns
6
- } from "./chunk-FDKFUIYV.js";
7
- import "./chunk-WBCWER26.js";
6
+ } from "./chunk-WQQMCV7M.js";
7
+ import "./chunk-7HLAOLG7.js";
8
8
  import {
9
9
  useProductTableQuery
10
- } from "./chunk-H6LZ77GX.js";
10
+ } from "./chunk-QGZH3D2P.js";
11
11
  import "./chunk-FWPGOIFA.js";
12
12
  import {
13
13
  useProductTableFilters
14
- } from "./chunk-JK4M3ZKY.js";
14
+ } from "./chunk-OOK3BD5Z.js";
15
15
  import "./chunk-DB6ANJBO.js";
16
16
  import "./chunk-PHOCVOZ5.js";
17
+ import {
18
+ SingleColumnPage
19
+ } from "./chunk-YV6MK4PZ.js";
17
20
  import "./chunk-FQERBIVS.js";
18
21
  import {
19
22
  _DataTable,
20
23
  useDataTable
21
- } from "./chunk-W3UHAQCV.js";
24
+ } from "./chunk-7TQNE3E2.js";
22
25
  import "./chunk-YN3FGNJM.js";
23
26
  import "./chunk-KCHYLLVG.js";
24
- import "./chunk-634XVU3D.js";
25
- import {
26
- SingleColumnPage
27
- } from "./chunk-YV6MK4PZ.js";
27
+ import "./chunk-CVXKASWV.js";
28
28
  import "./chunk-THHRRYRS.js";
29
29
  import "./chunk-LRD242C7.js";
30
- import "./chunk-DSTHXHJ5.js";
30
+ import "./chunk-VYSB4CTB.js";
31
31
  import "./chunk-WIYFXWRI.js";
32
32
  import {
33
33
  SingleColumnPageSkeleton
@@ -47,24 +47,24 @@ import {
47
47
  productTypesQueryKeys,
48
48
  useProductType
49
49
  } from "./chunk-NTJ3BMOE.js";
50
- import "./chunk-5PAUN3PM.js";
51
- import "./chunk-ZLHCZ5F2.js";
50
+ import "./chunk-CLS6PNZY.js";
51
+ import "./chunk-JIXW4WHZ.js";
52
52
  import "./chunk-GZ4KTAWS.js";
53
53
  import "./chunk-PUAWN7SS.js";
54
- import "./chunk-MVEHWM7K.js";
55
- import "./chunk-OYUJYPDF.js";
56
- import "./chunk-O7BGGWW6.js";
54
+ import "./chunk-4NADEZZQ.js";
55
+ import "./chunk-XWHHBJGS.js";
56
+ import "./chunk-5NVY7JZC.js";
57
57
  import "./chunk-KIURBTC4.js";
58
- import "./chunk-3SH24DGG.js";
58
+ import "./chunk-4EAC3GT7.js";
59
59
  import "./chunk-JR7AABT5.js";
60
60
  import "./chunk-ZQCCVCHB.js";
61
- import "./chunk-5BQO3YQP.js";
62
- import "./chunk-EPRYM3FA.js";
63
- import "./chunk-6FDPVW7Y.js";
61
+ import "./chunk-MABIMRLS.js";
62
+ import "./chunk-ULEW54ED.js";
63
+ import "./chunk-UEPUKWD7.js";
64
64
  import "./chunk-JJP6AKMV.js";
65
65
  import {
66
66
  useProducts
67
- } from "./chunk-G6YNCIVF.js";
67
+ } from "./chunk-744GLNZW.js";
68
68
  import "./chunk-A5DJIOHN.js";
69
69
  import {
70
70
  queryClient
@@ -91,6 +91,7 @@ var productTypeLoader = async ({ params }) => {
91
91
  // src/pages/settings/product-types/[id]/product-type-detail-page.tsx
92
92
  import { Children } from "react";
93
93
  import { useLoaderData, useParams } from "react-router-dom";
94
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
94
95
 
95
96
  // src/pages/settings/product-types/[id]/_components/product-type-general-section.tsx
96
97
  import { PencilSquare, Trash } from "@medusajs/icons";
@@ -187,7 +188,7 @@ var ProductTypeProductSection = ({
187
188
  };
188
189
 
189
190
  // src/pages/settings/product-types/[id]/product-type-detail-page.tsx
190
- import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
191
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
191
192
  var Root = ({ children }) => {
192
193
  const { id } = useParams();
193
194
  const initialData = useLoaderData();
@@ -204,7 +205,7 @@ var Root = ({ children }) => {
204
205
  if (isError) {
205
206
  throw error;
206
207
  }
207
- return /* @__PURE__ */ jsx3(SingleColumnPage, { data: product_type, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(Fragment, { children: [
208
+ return /* @__PURE__ */ jsx3(SingleColumnPage, { data: product_type, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(WidgetZone, { id: "product-types.detail.main", data: product_type, children: [
208
209
  /* @__PURE__ */ jsx3(ProductTypeGeneralSection, { productType: product_type }),
209
210
  /* @__PURE__ */ jsx3(ProductTypeProductSection, { productType: product_type })
210
211
  ] }) });