@mercurjs/vendor 2.2.0-rc.0 → 2.2.0-rc.2

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 (266) hide show
  1. package/dist/{[id]-4HO4S2PX.js → [id]-3GF4DR5K.js} +704 -670
  2. package/dist/{[id]-4LIIFGET.js → [id]-3HIZGJWE.js} +140 -51
  3. package/dist/{[id]-XP5KEMNX.js → [id]-AXGVRF7M.js} +99 -62
  4. package/dist/{[id]-N7JEZFXQ.js → [id]-C7IFTDTJ.js} +4 -3
  5. package/dist/{[id]-DT5YJVKG.js → [id]-DKF4YEXN.js} +32 -31
  6. package/dist/{[id]-DCGPICT3.js → [id]-IFWREJVP.js} +37 -36
  7. package/dist/{[id]-IEBZ6V3W.js → [id]-LJABCC3D.js} +43 -42
  8. package/dist/{[id]-3LNKC5OJ.js → [id]-MIASQVLP.js} +93 -52
  9. package/dist/{[id]-U6FKX5UQ.js → [id]-NGB5OLRW.js} +68 -54
  10. package/dist/{[id]-XB45DY2D.js → [id]-ONBG5DZJ.js} +121 -43
  11. package/dist/{[id]-CUBGVODE.js → [id]-OV5VX7KD.js} +102 -61
  12. package/dist/{[id]-5P5LTATX.js → [id]-QWI3RWE6.js} +31 -13
  13. package/dist/{[id]-AQUUZFRX.js → [id]-RFC2YGFT.js} +142 -44
  14. package/dist/{[id]-5EECCIRP.js → [id]-VKEADKFV.js} +74 -49
  15. package/dist/{[location_id]-I4HHUHWY.js → [location_id]-ZG5GZKHC.js} +11 -10
  16. package/dist/{[province_id]-OYX4MOCF.js → [province_id]-KEDQTW6S.js} +31 -30
  17. package/dist/{add-RPRJWCYU.js → add-FDIWOFVE.js} +31 -30
  18. package/dist/{add-3T4GBFMM.js → add-ZIP3VEAV.js} +37 -37
  19. package/dist/{add-customer-groups-FB5T6PQN.js → add-customer-groups-EJIRM264.js} +25 -25
  20. package/dist/{add-products-F243SWGD.js → add-products-MW2JYTSJ.js} +30 -30
  21. package/dist/{add-promotions-TJDK7HLW.js → add-promotions-3BALABRA.js} +7 -7
  22. package/dist/{add-to-campaign-Q6OAJMUJ.js → add-to-campaign-B7RFNWPF.js} +5 -5
  23. package/dist/{address-XVBSNMFU.js → address-CP2MSWLA.js} +41 -29
  24. package/dist/{adjust-inventory-IZLRMQXV.js → adjust-inventory-CQPDV5X7.js} +3 -3
  25. package/dist/{allocate-items-Q3VALDYT.js → allocate-items-5HHGU3XW.js} +4 -4
  26. package/dist/{areas-IYGBRCRH.js → areas-XQE3AYPZ.js} +7 -7
  27. package/dist/{attributes-LGEM2JJW.js → attributes-HU6I723C.js} +2 -2
  28. package/dist/breadcrumb-3M7RKX5V.js +47 -0
  29. package/dist/{breadcrumb-WG6TIF4C.js → breadcrumb-4O2P6XRS.js} +5 -3
  30. package/dist/{breadcrumb-K4HBKZUE.js → breadcrumb-4Z7NR2BO.js} +3 -3
  31. package/dist/{breadcrumb-BC6XN2SE.js → breadcrumb-4ZZFD3UH.js} +3 -3
  32. package/dist/{breadcrumb-MOA2DBOE.js → breadcrumb-6VWM2EJF.js} +2 -2
  33. package/dist/{breadcrumb-YOY6Z36F.js → breadcrumb-75QGQDKN.js} +2 -2
  34. package/dist/{breadcrumb-FEYGZFJU.js → breadcrumb-C7X6FV2H.js} +3 -3
  35. package/dist/breadcrumb-EAYZVNKS.js +33 -0
  36. package/dist/{breadcrumb-H45Z2WNG.js → breadcrumb-FF7H3XPP.js} +4 -4
  37. package/dist/{breadcrumb-KZPOPXGG.js → breadcrumb-GLBWFHKW.js} +2 -2
  38. package/dist/{breadcrumb-XEZCMI55.js → breadcrumb-HK53R6S2.js} +2 -2
  39. package/dist/{breadcrumb-BFNJWOJ4.js → breadcrumb-KV6K64PW.js} +2 -2
  40. package/dist/{breadcrumb-LEFHXFLT.js → breadcrumb-KZ5TSCXK.js} +3 -3
  41. package/dist/breadcrumb-TPITDYD7.js +46 -0
  42. package/dist/{breadcrumb-XGXKCDYS.js → breadcrumb-UVODV3YP.js} +4 -4
  43. package/dist/{breadcrumb-L262VPBO.js → breadcrumb-WIB5IGST.js} +2 -2
  44. package/dist/{breadcrumb-BXD3SRM7.js → breadcrumb-X5TTCKIB.js} +2 -2
  45. package/dist/{campaigns-DZKRNCA4.js → campaigns-JKFMRYZE.js} +6 -6
  46. package/dist/{categories-JZJA2IBQ.js → categories-2PGWWGP6.js} +7 -7
  47. package/dist/{chunk-CRYZK4NU.js → chunk-2GVPLCQR.js} +2 -2
  48. package/dist/{chunk-MJP5V3JN.js → chunk-3IZSQI6K.js} +2 -2
  49. package/dist/chunk-432S4FGR.js +0 -0
  50. package/dist/{chunk-HDEOZN2Q.js → chunk-4OQLPIUZ.js} +27 -27
  51. package/dist/{chunk-JJP6AKMV.js → chunk-4U2BLH45.js} +1 -1
  52. package/dist/{chunk-WFHGJGCW.js → chunk-4ZWIWI2H.js} +27 -12
  53. package/dist/{chunk-DSTHXHJ5.js → chunk-52KJSIHS.js} +1358 -1392
  54. package/dist/{chunk-GSH6ZGI6.js → chunk-54SCBOWD.js} +35 -12
  55. package/dist/{chunk-MAW6ZT3D.js → chunk-55TS752B.js} +1 -1
  56. package/dist/{chunk-3ALBZK4M.js → chunk-57ZJ6HTU.js} +18 -4
  57. package/dist/{chunk-EPRYM3FA.js → chunk-5DKUSZQ7.js} +2 -2
  58. package/dist/{chunk-L57USMYC.js → chunk-5YZ3G5EZ.js} +1 -1
  59. package/dist/{chunk-3SH24DGG.js → chunk-656G74I2.js} +2 -2
  60. package/dist/{chunk-ZLYGEART.js → chunk-65HHU6D3.js} +1 -1
  61. package/dist/{chunk-ZTOYVPGA.js → chunk-6PSJJHI4.js} +1 -1
  62. package/dist/{chunk-FCZJAYMM.js → chunk-6RHJFSE3.js} +1 -1
  63. package/dist/{chunk-W3UHAQCV.js → chunk-7TQNE3E2.js} +1 -1
  64. package/dist/{chunk-FDKFUIYV.js → chunk-AAKR2CB4.js} +1 -1
  65. package/dist/{chunk-KTJLJTFO.js → chunk-ASN3XS2R.js} +95 -68
  66. package/dist/{chunk-UNE4VD5U.js → chunk-B25W27XK.js} +21 -10
  67. package/dist/{chunk-H6LZ77GX.js → chunk-BEPAXQMU.js} +4 -1
  68. package/dist/{chunk-PUAWN7SS.js → chunk-BHEU34FL.js} +1 -1
  69. package/dist/{chunk-634XVU3D.js → chunk-CVXKASWV.js} +2 -2
  70. package/dist/{chunk-S7NGDLZ3.js → chunk-D6RN3ONJ.js} +3 -3
  71. package/dist/{chunk-VD27SL7H.js → chunk-DHARUTMI.js} +7 -6
  72. package/dist/{chunk-6FDPVW7Y.js → chunk-DIAWPVYS.js} +2 -2
  73. package/dist/{chunk-MT6WOKIW.js → chunk-DREOA2LP.js} +3 -3
  74. package/dist/{chunk-RILHLBKW.js → chunk-DRKRLQZZ.js} +2 -2
  75. package/dist/{chunk-IEVN722X.js → chunk-DSY5PNK6.js} +1 -1
  76. package/dist/{chunk-LXZXXOJ3.js → chunk-DTGEFKK4.js} +14 -1
  77. package/dist/{chunk-JDNXS37G.js → chunk-E5VLRRZR.js} +2 -2
  78. package/dist/{chunk-GZ4KTAWS.js → chunk-EPSDO2MJ.js} +1 -1
  79. package/dist/{chunk-KZQFIPY2.js → chunk-ESXMD6CR.js} +12 -4
  80. package/dist/{chunk-D76WZZSB.js → chunk-F4ORNDFU.js} +8 -7
  81. package/dist/{chunk-VE6GRIIN.js → chunk-FV76G2D7.js} +2 -2
  82. package/dist/{chunk-WBCWER26.js → chunk-G64YUZSL.js} +1 -1
  83. package/dist/{chunk-Y4PM3IDZ.js → chunk-GGXGKMYK.js} +1 -1
  84. package/dist/{chunk-7MARNXFG.js → chunk-GHDLST2P.js} +1 -1
  85. package/dist/{chunk-2NPD4S55.js → chunk-H3PVTKOP.js} +2 -2
  86. package/dist/{chunk-E6W57UP3.js → chunk-HRUO43BZ.js} +2 -2
  87. package/dist/{chunk-OYUJYPDF.js → chunk-II3CLUXA.js} +3 -2
  88. package/dist/{chunk-CUAGC54B.js → chunk-IP6TSKUQ.js} +23 -9
  89. package/dist/{chunk-KIURBTC4.js → chunk-J2XUEO2E.js} +1 -1
  90. package/dist/{chunk-QIF4QE7T.js → chunk-K5324KIX.js} +1 -1
  91. package/dist/{chunk-5BYYDBLS.js → chunk-KGHHGMDU.js} +4 -4
  92. package/dist/{chunk-QWW6RHZC.js → chunk-KUH5ZX7G.js} +5 -4
  93. package/dist/{chunk-NTJ3BMOE.js → chunk-L2NJPDUD.js} +1 -1
  94. package/dist/{chunk-JK4M3ZKY.js → chunk-LFX6R456.js} +5 -5
  95. package/dist/{chunk-MAVQ636Y.js → chunk-MDFKI2FL.js} +1 -1
  96. package/dist/{chunk-WFE6CT6M.js → chunk-MDGTQT5D.js} +1 -1
  97. package/dist/{chunk-ZLHCZ5F2.js → chunk-MR6REQKT.js} +5 -5
  98. package/dist/{chunk-LWFBBTJ3.js → chunk-N7YRIXJA.js} +22 -11
  99. package/dist/{chunk-ZQCCVCHB.js → chunk-O72AIZUN.js} +1 -1
  100. package/dist/{chunk-RPU4UOQK.js → chunk-OATVHDPZ.js} +1 -1
  101. package/dist/{chunk-JY2XON7H.js → chunk-OCS24TF4.js} +7 -6
  102. package/dist/{chunk-3TST3EWQ.js → chunk-OQTL7PXK.js} +2 -2
  103. package/dist/{chunk-V5K6HISS.js → chunk-ORI73OPX.js} +2 -2
  104. package/dist/{chunk-2KA4TGBQ.js → chunk-OZ2UHCWA.js} +20 -9
  105. package/dist/{chunk-JTHDMXZV.js → chunk-P27MQBMZ.js} +2 -2
  106. package/dist/{chunk-4IRQSBA7.js → chunk-P76QYIFF.js} +1 -1
  107. package/dist/{chunk-5PAUN3PM.js → chunk-P7UBW2EI.js} +3 -3
  108. package/dist/{chunk-5RMLLTR7.js → chunk-PEXMLTJX.js} +2 -2
  109. package/dist/chunk-QEFPTNPC.js +81 -0
  110. package/dist/{chunk-BQHVM46E.js → chunk-RLRWDHME.js} +1 -1
  111. package/dist/{chunk-7BFQKYCJ.js → chunk-RPMYKDNA.js} +2 -2
  112. package/dist/{chunk-UX5UYDCY.js → chunk-RSOV55K7.js} +2 -2
  113. package/dist/{chunk-RTMMO6IU.js → chunk-RZHVUQ7G.js} +25 -13
  114. package/dist/{chunk-3I6ZAMGN.js → chunk-SFQOECF7.js} +1 -1
  115. package/dist/{chunk-LQSLDDPT.js → chunk-T35QBLG7.js} +1 -1
  116. package/dist/{chunk-7EXKHL5L.js → chunk-TDL742KZ.js} +1 -1
  117. package/dist/{chunk-6Q3J6ZMM.js → chunk-UDPMSL6L.js} +41 -19
  118. package/dist/{chunk-EDV4MTTT.js → chunk-VQTQILLY.js} +65 -37
  119. package/dist/{chunk-TPGIMZLI.js → chunk-VR7P4DAZ.js} +1 -1
  120. package/dist/{chunk-5BQO3YQP.js → chunk-VUWAOX7H.js} +2 -2
  121. package/dist/{chunk-JR7AABT5.js → chunk-VWPNMEOE.js} +2 -2
  122. package/dist/{chunk-MVEHWM7K.js → chunk-W34KDYZA.js} +15 -4
  123. package/dist/{chunk-EAAZV3B7.js → chunk-WJ4KVDFV.js} +24 -12
  124. package/dist/{chunk-MUGQQY6P.js → chunk-WN2NWWVO.js} +49 -11
  125. package/dist/chunk-WQTWBXKO.js +23 -0
  126. package/dist/{chunk-3BXCPHN6.js → chunk-XCHKUSUU.js} +1 -0
  127. package/dist/{chunk-KG2NUK4J.js → chunk-XEQU2OQP.js} +46 -15
  128. package/dist/{chunk-AOLE7MBM.js → chunk-XG76XXM2.js} +1 -1
  129. package/dist/{chunk-O7BGGWW6.js → chunk-XKEYHWBS.js} +5 -5
  130. package/dist/{chunk-DQ7LZZJX.js → chunk-XQO243HC.js} +24 -13
  131. package/dist/{chunk-TJKZ5QCJ.js → chunk-XUJUJD2E.js} +3 -3
  132. package/dist/{chunk-27WLUOI2.js → chunk-Y6S7K3YB.js} +1 -1
  133. package/dist/{chunk-G6YNCIVF.js → chunk-YAUGB4LD.js} +2 -2
  134. package/dist/{chunk-WCXFUBEF.js → chunk-YVI3LZ3X.js} +9 -9
  135. package/dist/{chunk-MNHP6YRC.js → chunk-YVYYOBAE.js} +3 -3
  136. package/dist/{chunk-3C2T27YW.js → chunk-YXWZT3PX.js} +1 -1
  137. package/dist/{chunk-QWJTJSIT.js → chunk-ZC2ME3UB.js} +1 -1
  138. package/dist/{collections-XIHCTMSJ.js → collections-BLDMQOVB.js} +31 -31
  139. package/dist/{configuration-3GCBMM27.js → configuration-UMRBE5RQ.js} +2 -2
  140. package/dist/{configuration-FWZTMYXY.js → configuration-YVYVOLSP.js} +4 -4
  141. package/dist/{create-BV3QDTK2.js → create-3SBSLZQO.js} +3 -3
  142. package/dist/{create-NF2LPVXA.js → create-3TN2CT6M.js} +2 -2
  143. package/dist/{create-VL7LDTVE.js → create-3WBHG32J.js} +12 -12
  144. package/dist/{create-2RGNAVVY.js → create-3ZQFAKYR.js} +27 -27
  145. package/dist/{create-PJVLJ7T6.js → create-4ZRQVXT5.js} +31 -31
  146. package/dist/{create-GO7APBBU.js → create-7Z63KA2P.js} +25 -25
  147. package/dist/{create-N534JQPH.js → create-B4VIR7YP.js} +7 -7
  148. package/dist/{create-U64NEOEL.js → create-EKDZW233.js} +2 -2
  149. package/dist/{create-X5SOAPD3.js → create-EMU23LKH.js} +2 -2
  150. package/dist/{create-RPBHXU32.js → create-FYKFT7TQ.js} +23 -23
  151. package/dist/{create-32MXB6FD.js → create-NNBIDU4Q.js} +23 -23
  152. package/dist/{create-FHIFVCSG.js → create-PO2JF7F5.js} +37 -37
  153. package/dist/{create-NEK6JCKR.js → create-PO3JC6QK.js} +13 -13
  154. package/dist/{create-YKYLCEAK.js → create-QZVZF3MJ.js} +5 -5
  155. package/dist/{create-K26SM34L.js → create-T3KSWODJ.js} +2 -2
  156. package/dist/{create-HEZYB7RF.js → create-TDQISX3H.js} +59 -25
  157. package/dist/{create-3AMFYYI6.js → create-XORPYXNT.js} +25 -25
  158. package/dist/{create-AMNH3WXL.js → create-XU35U2HL.js} +36 -32
  159. package/dist/{create-XLYGW5PN.js → create-ZLYEPOAQ.js} +24 -24
  160. package/dist/{customer-group-add-customers-2C53NFBJ.js → customer-group-add-customers-UTBBZ6T4.js} +5 -5
  161. package/dist/{customer-group-create-75QQEQZF.js → customer-group-create-L3H5REVP.js} +2 -2
  162. package/dist/{customer-group-detail-AOQYYAOG.js → customer-group-detail-WSBXE23J.js} +19 -15
  163. package/dist/{customer-group-edit-N77RCW6I.js → customer-group-edit-D6FJH5TK.js} +49 -28
  164. package/dist/{customer-groups-GNFV7VMT.js → customer-groups-TWCYFU3U.js} +37 -16
  165. package/dist/{customers-HNINO6YL.js → customers-6HDZKARD.js} +7 -7
  166. package/dist/{edit-UNN3QTEJ.js → edit-2RN3OT27.js} +24 -8
  167. package/dist/{edit-WEUFBORT.js → edit-5XPDTCB5.js} +25 -25
  168. package/dist/{edit-TD7QFM4Z.js → edit-CNXA4GKJ.js} +15 -17
  169. package/dist/{edit-BSD6667Q.js → edit-DCMMX4GW.js} +28 -29
  170. package/dist/{edit-NHQJLCAK.js → edit-DKUERO2V.js} +2 -2
  171. package/dist/{edit-I2RJUPWV.js → edit-FF2ZWS6U.js} +3 -3
  172. package/dist/{edit-3DUCWSLA.js → edit-ISFEI7YX.js} +79 -46
  173. package/dist/{edit-O65JD54W.js → edit-IVBVZ5NL.js} +6 -6
  174. package/dist/{edit-IJ6DCBUU.js → edit-K2IP2H25.js} +29 -12
  175. package/dist/{edit-ZOLSAIKF.js → edit-MUQ37ETA.js} +2 -2
  176. package/dist/{edit-JB7KVBOL.js → edit-NTTJKLUI.js} +4 -4
  177. package/dist/{edit-4PWAJ7A3.js → edit-OOY2XGLZ.js} +24 -24
  178. package/dist/{edit-7SBPHN6P.js → edit-P6YZBA32.js} +24 -8
  179. package/dist/{edit-3V34KJS2.js → edit-Q7KDO37A.js} +2 -2
  180. package/dist/{edit-ZGAOUZYP.js → edit-QII5YJ2R.js} +25 -25
  181. package/dist/{edit-WN2Q3TOX.js → edit-RRA6J5FW.js} +3 -3
  182. package/dist/{edit-SIKOSSHF.js → edit-Y4XONJJU.js} +23 -23
  183. package/dist/{edit-ZORE6RUD.js → edit-YDMBLXGU.js} +56 -37
  184. package/dist/{edit-7CLOJ3UZ.js → edit-YPIJHIGC.js} +37 -37
  185. package/dist/{edit-budget-D22WMVYR.js → edit-budget-PYPHUJPW.js} +2 -2
  186. package/dist/{edit-inventory-item-QMYWEBZ3.js → edit-inventory-item-5VBH365V.js} +23 -8
  187. package/dist/{edit-inventory-item-attributes-HLG6JR6S.js → edit-inventory-item-attributes-RMKG2IRO.js} +2 -2
  188. package/dist/{edit-price-F7ZWM3FN.js → edit-price-PDS4XN2J.js} +5 -5
  189. package/dist/{edit-stock-ITAZNHPU.js → edit-stock-UI6HXHJJ.js} +4 -4
  190. package/dist/extension-targets.d.ts +248 -0
  191. package/dist/extension-targets.js +1 -0
  192. package/dist/{fulfillment-U2GRQ6DD.js → fulfillment-6GC3NRFT.js} +33 -24
  193. package/dist/{fulfillment-providers-CMU2JB5X.js → fulfillment-providers-IND53UPG.js} +28 -28
  194. package/dist/index.css +24 -12
  195. package/dist/index.d.ts +2 -0
  196. package/dist/index.js +257 -230
  197. package/dist/{inventory-FKEXULLT.js → inventory-BDST2XIX.js} +7 -7
  198. package/dist/{inventory-4JKLAZ2Q.js → inventory-LSG2IEWD.js} +4 -4
  199. package/dist/{invite-3R2CEWLN.js → invite-CNJQ27AY.js} +30 -43
  200. package/dist/{invite-MNAX6EUC.js → invite-DD2G6UUM.js} +27 -27
  201. package/dist/{loader-MAAMUP2Z.js → loader-BLRQLIJT.js} +13 -11
  202. package/dist/{loader-HTPUNIOS.js → loader-MJTR2S7V.js} +14 -12
  203. package/dist/{locations-2VWSMWHL.js → locations-HHP2DZ4N.js} +3 -3
  204. package/dist/login-FK6ATIQV.js +41 -0
  205. package/dist/{manage-locations-RWGDXXJQ.js → manage-locations-V2AJVZXA.js} +3 -3
  206. package/dist/{media-P6WSFHY4.js → media-2Z2UIOQU.js} +27 -27
  207. package/dist/{media-YB4G5CMV.js → media-T26YU24S.js} +25 -25
  208. package/dist/{metadata-J447GEBP.js → metadata-3CER2AEK.js} +23 -23
  209. package/dist/{metadata-6OYHLPLA.js → metadata-BGYWXGMG.js} +23 -23
  210. package/dist/{metadata-VTQ2CGZX.js → metadata-MSAODJ2T.js} +23 -23
  211. package/dist/{metadata-5Q6FLVX4.js → metadata-WB37SSTG.js} +23 -23
  212. package/dist/{metadata-ADXGD4Y6.js → metadata-XS3VAC3N.js} +23 -23
  213. package/dist/{offer-create-page-ACPKTNHA.js → offer-create-page-QAHHXLLJ.js} +31 -29
  214. package/dist/{offer-detail-page-S4R4N5GL.js → offer-detail-page-ZLGP4ELR.js} +81 -28
  215. package/dist/{offer-variant-detail-page-XUMDXZUD.js → offer-variant-detail-page-2A7TRGYS.js} +28 -22
  216. package/dist/offers-ZBAZOZ7Q.js +54 -0
  217. package/dist/{onboarding-TUGXFOA6.js → onboarding-XCCZ2TMN.js} +70 -75
  218. package/dist/orders-VFSDZYOV.js +63 -0
  219. package/dist/{organization-YIOAVFHN.js → organization-YB45TRUN.js} +25 -25
  220. package/dist/{organize-OWT5QSJR.js → organize-HQLROEUF.js} +4 -4
  221. package/dist/{organize-BTA7NJD2.js → organize-T62CDRZC.js} +4 -4
  222. package/dist/pages/index.d.ts +17 -2
  223. package/dist/pages/index.js +69 -69
  224. package/dist/{payment-details-K2XFATEL.js → payment-details-O4EWCOYQ.js} +42 -30
  225. package/dist/{payouts-K5IDTJV3.js → payouts-7O5W2X5J.js} +8 -8
  226. package/dist/{price-lists-DNPIPDAW.js → price-lists-5CSCTVWN.js} +9 -9
  227. package/dist/{pricing-5VUPPNKS.js → pricing-CF3FJP6A.js} +5 -5
  228. package/dist/{pricing-J5FIDZIY.js → pricing-NHI4NSLA.js} +25 -25
  229. package/dist/{product-tags-SJYIGXEV.js → product-tags-2TLA7BVO.js} +38 -38
  230. package/dist/{product-types-4PTJW5DE.js → product-types-LZAMCLGS.js} +7 -7
  231. package/dist/{product-variant-detail-FO6J3RFA.js → product-variant-detail-UNG6LWDP.js} +27 -26
  232. package/dist/{product-variant-edit-55TAIBZO.js → product-variant-edit-K5U3JZFW.js} +25 -25
  233. package/dist/{products-XM57LXJK.js → products-27ASSSVK.js} +43 -42
  234. package/dist/{products-EQMANSO6.js → products-WJJBC3NI.js} +30 -30
  235. package/dist/{professional-details-WWZPTXSX.js → professional-details-ZCRAWCXZ.js} +41 -29
  236. package/dist/{profile-5IADQ727.js → profile-T2QLFLI7.js} +77 -38
  237. package/dist/{promotions-BYW6TZ5B.js → promotions-E4Z6APSX.js} +9 -9
  238. package/dist/{receive-MTXKKPKZ.js → receive-QCVCAR3R.js} +6 -6
  239. package/dist/{refund-3IXGYA7W.js → refund-GAOWE636.js} +74 -50
  240. package/dist/{register-U5PQZATC.js → register-IKY5DDUR.js} +28 -27
  241. package/dist/{reset-password-SKUJJLSV.js → reset-password-RMKCQLBX.js} +3 -3
  242. package/dist/{return-reasons-QDPSIJG3.js → return-reasons-RH6IEU2M.js} +20 -17
  243. package/dist/{sales-channels-GBSTCWVP.js → sales-channels-C5M2ZA5L.js} +6 -5
  244. package/dist/{sales-channels-N4NE3FXP.js → sales-channels-ZHYGTRWU.js} +7 -6
  245. package/dist/{settings-ZUBBFS67.js → settings-5IUDEPUN.js} +42 -42
  246. package/dist/{shipment-TKSCPC3M.js → shipment-UP2OGESO.js} +23 -23
  247. package/dist/{shipping-DODEUYOQ.js → shipping-ACK5UOA5.js} +4 -4
  248. package/dist/{shipping-profile-O4JMJLN7.js → shipping-profile-3US7LC5E.js} +2 -2
  249. package/dist/shipping-profiles-34432J3C.js +46 -0
  250. package/dist/{stock-GYK2GHJN.js → stock-VMND7PJY.js} +23 -23
  251. package/dist/{store-XWOALZ5Q.js → store-BCNSSIO6.js} +130 -60
  252. package/dist/{store-closure-46B3XZ2I.js → store-closure-QGR3F45Y.js} +23 -23
  253. package/dist/{store-select-E77E3ZY7.js → store-select-55ZOJGGV.js} +47 -27
  254. package/dist/{tax-regions-S2LFRTMP.js → tax-regions-RTPVM4IC.js} +11 -8
  255. package/dist/{team-N2C5JPSU.js → team-DAUWBJAI.js} +32 -31
  256. package/package.json +21 -16
  257. package/dist/breadcrumb-ILEAQRW7.js +0 -33
  258. package/dist/breadcrumb-NZYOCEEM.js +0 -47
  259. package/dist/breadcrumb-VY5DNTTJ.js +0 -46
  260. package/dist/chunk-HXGLPDZW.js +0 -34
  261. package/dist/chunk-KVKO6N4G.js +0 -13
  262. package/dist/login-YUWOWICV.js +0 -39
  263. package/dist/offers-OTZJBW43.js +0 -54
  264. package/dist/orders-PJSJNGZS.js +0 -63
  265. package/dist/shipping-profiles-4TJ4IH6U.js +0 -46
  266. /package/dist/{chunk-HFRHHT36.js → chunk-NWU7EGGF.js} +0 -0
@@ -6,16 +6,16 @@ import {
6
6
  } from "./chunk-BWGPN6XV.js";
7
7
  import {
8
8
  StatusCell
9
- } from "./chunk-Y4PM3IDZ.js";
9
+ } from "./chunk-GGXGKMYK.js";
10
10
  import "./chunk-FMFVTERD.js";
11
11
  import "./chunk-DB6ANJBO.js";
12
- import "./chunk-KZQFIPY2.js";
13
- import {
14
- NoRecords
15
- } from "./chunk-634XVU3D.js";
12
+ import "./chunk-ESXMD6CR.js";
16
13
  import {
17
14
  TwoColumnPage
18
15
  } from "./chunk-YV6MK4PZ.js";
16
+ import {
17
+ NoRecords
18
+ } from "./chunk-CVXKASWV.js";
19
19
  import "./chunk-LRD242C7.js";
20
20
  import {
21
21
  TwoColumnPageSkeleton
@@ -31,24 +31,28 @@ import {
31
31
  useDeletePromotion,
32
32
  usePromotion,
33
33
  usePromotionRules
34
- } from "./chunk-ZLHCZ5F2.js";
34
+ } from "./chunk-MR6REQKT.js";
35
35
  import {
36
36
  queryClient
37
37
  } from "./chunk-RHKRREUU.js";
38
38
  import "./chunk-ZA2KFUFR.js";
39
39
  import {
40
40
  fetchQuery
41
- } from "./chunk-LXZXXOJ3.js";
41
+ } from "./chunk-DTGEFKK4.js";
42
42
  import "./chunk-NBMM2TZK.js";
43
43
 
44
44
  // src/pages/promotions/[id]/loader.tsx
45
- var promotionDetailQuery = (id) => ({
46
- queryKey: promotionsQueryKeys.detail(id),
47
- queryFn: async () => fetchQuery(`/vendor/promotions/${id}`, {
48
- method: "GET",
49
- query: { fields: "+status" }
50
- })
51
- });
45
+ import { getLinkQuery } from "@mercurjs/dashboard-shared";
46
+ var promotionDetailQuery = (id) => {
47
+ const query = getLinkQuery("promotion", "+status");
48
+ return {
49
+ queryKey: promotionsQueryKeys.detail(id, query),
50
+ queryFn: async () => fetchQuery(`/vendor/promotions/${id}`, {
51
+ method: "GET",
52
+ query
53
+ })
54
+ };
55
+ };
52
56
  var loader = async ({ params }) => {
53
57
  const id = params.id;
54
58
  return queryClient.ensureQueryData(promotionDetailQuery(id));
@@ -57,12 +61,14 @@ var loader = async ({ params }) => {
57
61
  // src/pages/promotions/[id]/promotion-detail-page.tsx
58
62
  import { Children } from "react";
59
63
  import { useLoaderData, useParams as useParams2 } from "react-router-dom";
64
+ import { useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
60
65
 
61
66
  // src/pages/promotions/[id]/_components/campaign-section/campaign-section.tsx
62
67
  import { ArrowUpRightOnBox, PencilSquare } from "@medusajs/icons";
63
68
  import { Container, Heading, Text } from "@medusajs/ui";
64
69
  import { useTranslation } from "react-i18next";
65
70
  import { useParams } from "react-router-dom";
71
+ import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
66
72
  import { jsx, jsxs } from "react/jsx-runtime";
67
73
  var CampaignDetailSection = ({
68
74
  campaign
@@ -128,7 +134,8 @@ var CampaignSection = ({
128
134
  },
129
135
  buttonVariant: "transparentIconLeft"
130
136
  }
131
- )
137
+ ),
138
+ /* @__PURE__ */ jsx(DisplayExtensionZone, { model: "promotion", zone: "campaign", data: campaign })
132
139
  ] });
133
140
  };
134
141
 
@@ -136,6 +143,7 @@ var CampaignSection = ({
136
143
  import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
137
144
  import { Badge as Badge2, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
138
145
  import { useTranslation as useTranslation3 } from "react-i18next";
146
+ import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
139
147
 
140
148
  // src/components/common/badge-list-summary/badge-list-summary.tsx
141
149
  import { Badge, Tooltip, clx } from "@medusajs/ui";
@@ -258,7 +266,15 @@ var PromotionConditionsSection = ({
258
266
  }
259
267
  ),
260
268
  rules.map((rule) => /* @__PURE__ */ jsx3(RuleBlock, { rule }, `${rule.id}-${rule.attribute}`))
261
- ] })
269
+ ] }),
270
+ /* @__PURE__ */ jsx3(
271
+ DisplayExtensionZone2,
272
+ {
273
+ model: "promotion",
274
+ zone: `conditions-${ruleType}`,
275
+ data: rules
276
+ }
277
+ )
262
278
  ] });
263
279
  };
264
280
 
@@ -267,6 +283,7 @@ import { PencilSquare as PencilSquare3, Trash } from "@medusajs/icons";
267
283
  import { Badge as Badge3, Container as Container3, Copy, Heading as Heading3, Text as Text2, usePrompt } from "@medusajs/ui";
268
284
  import { useTranslation as useTranslation4 } from "react-i18next";
269
285
  import { useNavigate } from "react-router-dom";
286
+ import { DisplayExtensionZone as DisplayExtensionZone3, DisplayField } from "@mercurjs/dashboard-shared";
270
287
 
271
288
  // src/lib/format-currency.ts
272
289
  var formatCurrency = (amount, currency) => {
@@ -325,9 +342,18 @@ var PromotionGeneralSection = ({
325
342
  const displayValue = getDisplayValue(promotion);
326
343
  return /* @__PURE__ */ jsxs4(Container3, { className: "divide-y p-0", children: [
327
344
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", children: [
328
- /* @__PURE__ */ jsx4("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx4(Heading3, { children: promotion.code }) }),
345
+ /* @__PURE__ */ jsx4("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "code", data: promotion, children: /* @__PURE__ */ jsx4(Heading3, { children: promotion.code }) }) }),
329
346
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
330
- /* @__PURE__ */ jsx4(StatusCell, { promotion }),
347
+ /* @__PURE__ */ jsx4(
348
+ DisplayField,
349
+ {
350
+ model: "promotion",
351
+ zone: "general",
352
+ id: "status",
353
+ data: promotion,
354
+ children: /* @__PURE__ */ jsx4(StatusCell, { promotion })
355
+ }
356
+ ),
331
357
  /* @__PURE__ */ jsx4(
332
358
  ActionMenu,
333
359
  {
@@ -355,45 +381,105 @@ var PromotionGeneralSection = ({
355
381
  )
356
382
  ] })
357
383
  ] }),
358
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
359
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.method") }),
360
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty", children: promotion.is_automatic ? t("promotions.form.method.automatic.title") : t("promotions.form.method.code.title") })
361
- ] }),
362
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
363
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("fields.code") }),
364
- /* @__PURE__ */ jsx4(
365
- Copy,
366
- {
367
- content: promotion.code,
368
- className: "text-ui-tag-neutral-text",
369
- asChild: true,
370
- children: /* @__PURE__ */ jsx4(
371
- Badge3,
384
+ /* @__PURE__ */ jsx4(
385
+ DisplayField,
386
+ {
387
+ model: "promotion",
388
+ zone: "general",
389
+ id: "is_automatic",
390
+ data: promotion,
391
+ children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
392
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.method") }),
393
+ /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty", children: promotion.is_automatic ? t("promotions.form.method.automatic.title") : t("promotions.form.method.code.title") })
394
+ ] })
395
+ }
396
+ ),
397
+ /* @__PURE__ */ jsx4(
398
+ DisplayField,
399
+ {
400
+ model: "promotion",
401
+ zone: "general",
402
+ id: "code_value",
403
+ data: promotion,
404
+ children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
405
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("fields.code") }),
406
+ /* @__PURE__ */ jsx4(
407
+ Copy,
372
408
  {
373
- size: "2xsmall",
374
- rounded: "full",
375
- className: "cursor-pointer text-pretty",
376
- children: promotion.code
409
+ content: promotion.code,
410
+ className: "text-ui-tag-neutral-text",
411
+ asChild: true,
412
+ children: /* @__PURE__ */ jsx4(
413
+ Badge3,
414
+ {
415
+ size: "2xsmall",
416
+ rounded: "full",
417
+ className: "cursor-pointer text-pretty",
418
+ children: promotion.code
419
+ }
420
+ )
377
421
  }
378
422
  )
423
+ ] })
424
+ }
425
+ ),
426
+ /* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "type", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
427
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.type") }),
428
+ /* @__PURE__ */ jsx4(
429
+ Text2,
430
+ {
431
+ size: "small",
432
+ leading: "compact",
433
+ className: "text-pretty capitalize",
434
+ children: promotion.type
379
435
  }
380
436
  )
381
- ] }),
382
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
383
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.type") }),
384
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.type })
385
- ] }),
386
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
437
+ ] }) }),
438
+ /* @__PURE__ */ jsx4(DisplayField, { model: "promotion", zone: "general", id: "value", data: promotion, children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
387
439
  /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.value") }),
388
440
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
389
441
  /* @__PURE__ */ jsx4(Text2, { className: "inline", size: "small", leading: "compact", children: displayValue || "-" }),
390
442
  promotion?.application_method?.type === "fixed" && /* @__PURE__ */ jsx4(Badge3, { size: "2xsmall", rounded: "full", children: promotion?.application_method?.currency_code?.toUpperCase() })
391
443
  ] })
392
- ] }),
393
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
394
- /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.allocation") }),
395
- /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.application_method?.allocation })
396
- ] })
444
+ ] }) }),
445
+ /* @__PURE__ */ jsx4(
446
+ DisplayField,
447
+ {
448
+ model: "promotion",
449
+ zone: "general",
450
+ id: "allocation",
451
+ data: promotion,
452
+ children: /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
453
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.allocation") }),
454
+ /* @__PURE__ */ jsx4(
455
+ Text2,
456
+ {
457
+ size: "small",
458
+ leading: "compact",
459
+ className: "text-pretty capitalize",
460
+ children: promotion.application_method?.allocation
461
+ }
462
+ )
463
+ ] })
464
+ }
465
+ ),
466
+ /* @__PURE__ */ jsx4(
467
+ DisplayExtensionZone3,
468
+ {
469
+ model: "promotion",
470
+ zone: "general",
471
+ data: promotion,
472
+ builtInFieldIds: [
473
+ "code",
474
+ "status",
475
+ "is_automatic",
476
+ "code_value",
477
+ "type",
478
+ "value",
479
+ "allocation"
480
+ ]
481
+ }
482
+ )
397
483
  ] });
398
484
  };
399
485
 
@@ -402,7 +488,10 @@ import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
402
488
  var Root = ({ children }) => {
403
489
  const initialData = useLoaderData();
404
490
  const { id } = useParams2();
405
- const { promotion, isLoading } = usePromotion(id, { initialData });
491
+ const linkQuery = useLinkQuery("promotion", "+status");
492
+ const { promotion, isLoading } = usePromotion(id, linkQuery, {
493
+ initialData
494
+ });
406
495
  const query = {};
407
496
  if (promotion?.type === "buyget") query.promotion_type = promotion.type;
408
497
  const { rules } = usePromotionRules(id, "rules", query);
@@ -411,7 +500,7 @@ var Root = ({ children }) => {
411
500
  if (isLoading || !promotion)
412
501
  return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1, showJSON: true });
413
502
  return /* @__PURE__ */ jsx5(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: promotion, hasOutlet: true, children: [
414
- /* @__PURE__ */ jsxs5(TwoColumnPage.Main, { children: [
503
+ /* @__PURE__ */ jsx5(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "promotions.detail.main", data: promotion, children: [
415
504
  /* @__PURE__ */ jsx5(PromotionGeneralSection, { promotion }),
416
505
  /* @__PURE__ */ jsx5(PromotionConditionsSection, { rules: rules || [], ruleType: "rules" }),
417
506
  /* @__PURE__ */ jsx5(
@@ -428,8 +517,8 @@ var Root = ({ children }) => {
428
517
  ruleType: "buy-rules"
429
518
  }
430
519
  )
431
- ] }),
432
- /* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(CampaignSection, { campaign: promotion.campaign }) })
520
+ ] }) }),
521
+ /* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(WidgetZone, { id: "promotions.detail.side", data: promotion, children: /* @__PURE__ */ jsx5(CampaignSection, { campaign: promotion.campaign }) }) })
433
522
  ] }) });
434
523
  };
435
524
  var PromotionDetailPage = Object.assign(Root, {
@@ -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 {
@@ -52,37 +52,36 @@ import {
52
52
  import "./chunk-LAVHRER2.js";
53
53
  import "./chunk-QHQWEERJ.js";
54
54
  import "./chunk-Y7QKP6QU.js";
55
- import "./chunk-BQHVM46E.js";
56
- import "./chunk-QIF4QE7T.js";
57
- import "./chunk-VE6GRIIN.js";
58
- import "./chunk-7MARNXFG.js";
59
- import "./chunk-MNHP6YRC.js";
60
- import "./chunk-NTJ3BMOE.js";
61
- import "./chunk-5PAUN3PM.js";
62
- import "./chunk-ZLHCZ5F2.js";
63
- import "./chunk-GZ4KTAWS.js";
64
- import "./chunk-PUAWN7SS.js";
65
- import "./chunk-MVEHWM7K.js";
55
+ import "./chunk-RLRWDHME.js";
56
+ import "./chunk-K5324KIX.js";
57
+ import "./chunk-FV76G2D7.js";
58
+ import "./chunk-GHDLST2P.js";
59
+ import "./chunk-YVYYOBAE.js";
60
+ import "./chunk-L2NJPDUD.js";
61
+ import "./chunk-P7UBW2EI.js";
62
+ import "./chunk-MR6REQKT.js";
63
+ import "./chunk-EPSDO2MJ.js";
64
+ import "./chunk-BHEU34FL.js";
65
+ import "./chunk-W34KDYZA.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";
73
- import "./chunk-KIURBTC4.js";
74
- import "./chunk-3SH24DGG.js";
75
- import "./chunk-JR7AABT5.js";
76
- import "./chunk-ZQCCVCHB.js";
77
- import "./chunk-5BQO3YQP.js";
78
- import "./chunk-EPRYM3FA.js";
72
+ } from "./chunk-II3CLUXA.js";
73
+ import "./chunk-XKEYHWBS.js";
74
+ import "./chunk-J2XUEO2E.js";
75
+ import "./chunk-656G74I2.js";
76
+ import "./chunk-VWPNMEOE.js";
77
+ import "./chunk-O72AIZUN.js";
78
+ import "./chunk-VUWAOX7H.js";
79
+ import "./chunk-5DKUSZQ7.js";
79
80
  import {
80
81
  useOrders
81
- } from "./chunk-6FDPVW7Y.js";
82
- import "./chunk-JJP6AKMV.js";
83
- import {
84
- productsQueryKeys
85
- } from "./chunk-G6YNCIVF.js";
82
+ } from "./chunk-DIAWPVYS.js";
83
+ import "./chunk-4U2BLH45.js";
84
+ import "./chunk-YAUGB4LD.js";
86
85
  import "./chunk-A5DJIOHN.js";
87
86
  import {
88
87
  queryClient
@@ -90,17 +89,21 @@ import {
90
89
  import "./chunk-ZA2KFUFR.js";
91
90
  import {
92
91
  fetchQuery
93
- } from "./chunk-LXZXXOJ3.js";
92
+ } from "./chunk-DTGEFKK4.js";
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, {
@@ -16,14 +16,14 @@ import {
16
16
  shippingProfileQueryKeys,
17
17
  useDeleteShippingProfile,
18
18
  useShippingProfile
19
- } from "./chunk-GZ4KTAWS.js";
19
+ } from "./chunk-EPSDO2MJ.js";
20
20
  import {
21
21
  queryClient
22
22
  } from "./chunk-RHKRREUU.js";
23
23
  import "./chunk-ZA2KFUFR.js";
24
24
  import {
25
25
  fetchQuery
26
- } from "./chunk-LXZXXOJ3.js";
26
+ } from "./chunk-DTGEFKK4.js";
27
27
  import "./chunk-NBMM2TZK.js";
28
28
 
29
29
  // src/pages/settings/shipping-profiles/[id]/loader.ts
@@ -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