@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
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-3QSRE5LS.js";
15
15
  import {
16
16
  require_dist
17
- } from "./chunk-DSTHXHJ5.js";
17
+ } from "./chunk-VYSB4CTB.js";
18
18
  import {
19
19
  useFeatureFlags
20
20
  } from "./chunk-BQHVM46E.js";
@@ -23,25 +23,25 @@ import "./chunk-VE6GRIIN.js";
23
23
  import "./chunk-7MARNXFG.js";
24
24
  import "./chunk-MNHP6YRC.js";
25
25
  import "./chunk-NTJ3BMOE.js";
26
- import "./chunk-5PAUN3PM.js";
27
- import "./chunk-ZLHCZ5F2.js";
26
+ import "./chunk-CLS6PNZY.js";
27
+ import "./chunk-JIXW4WHZ.js";
28
28
  import "./chunk-GZ4KTAWS.js";
29
29
  import "./chunk-PUAWN7SS.js";
30
- import "./chunk-MVEHWM7K.js";
31
- import "./chunk-OYUJYPDF.js";
32
- import "./chunk-O7BGGWW6.js";
30
+ import "./chunk-4NADEZZQ.js";
31
+ import "./chunk-XWHHBJGS.js";
32
+ import "./chunk-5NVY7JZC.js";
33
33
  import "./chunk-KIURBTC4.js";
34
- import "./chunk-3SH24DGG.js";
34
+ import "./chunk-4EAC3GT7.js";
35
35
  import "./chunk-JR7AABT5.js";
36
36
  import "./chunk-ZQCCVCHB.js";
37
- import "./chunk-5BQO3YQP.js";
38
- import "./chunk-EPRYM3FA.js";
39
- import "./chunk-6FDPVW7Y.js";
37
+ import "./chunk-MABIMRLS.js";
38
+ import "./chunk-ULEW54ED.js";
39
+ import "./chunk-UEPUKWD7.js";
40
40
  import "./chunk-JJP6AKMV.js";
41
41
  import {
42
42
  useProduct,
43
43
  useUpdateProduct
44
- } from "./chunk-G6YNCIVF.js";
44
+ } from "./chunk-744GLNZW.js";
45
45
  import "./chunk-A5DJIOHN.js";
46
46
  import "./chunk-RHKRREUU.js";
47
47
  import "./chunk-ZA2KFUFR.js";
@@ -54,14 +54,17 @@ import {
54
54
  import { Heading } from "@medusajs/ui";
55
55
  import { useTranslation as useTranslation2 } from "react-i18next";
56
56
  import { useParams } from "react-router-dom";
57
+ import { linkFields, useExtension } from "@mercurjs/dashboard-shared";
57
58
 
58
59
  // src/pages/products/[id]/edit/edit-product-form/edit-product-form.tsx
59
60
  var import_types = __toESM(require_dist(), 1);
60
61
  import { Button, Input, Text, Textarea, toast } from "@medusajs/ui";
61
62
  import { useTranslation } from "react-i18next";
62
63
  import * as zod from "zod";
63
- import { useForm } from "react-hook-form";
64
- import { zodResolver } from "@hookform/resolvers/zod";
64
+ import {
65
+ FormExtensionZone,
66
+ useExtendableForm
67
+ } from "@mercurjs/dashboard-shared";
65
68
  import { jsx, jsxs } from "react/jsx-runtime";
66
69
  var EditProductSchema = zod.object({
67
70
  title: zod.string().min(1),
@@ -75,27 +78,33 @@ var EditProductForm = ({ product }) => {
75
78
  const { handleSuccess } = useRouteModal();
76
79
  const { feature_flags } = useFeatureFlags();
77
80
  const isProductRequestEnabled = !!feature_flags?.[import_types.MercurFeatureFlags.PRODUCT_REQUEST];
78
- const form = useForm({
81
+ const form = useExtendableForm({
82
+ schema: EditProductSchema,
83
+ model: "product",
84
+ zone: "edit",
85
+ data: product,
79
86
  defaultValues: {
80
87
  title: product.title,
81
88
  subtitle: product.subtitle || "",
82
89
  handle: product.handle || "",
83
90
  description: product.description || "",
84
91
  discountable: product.discountable
85
- },
86
- resolver: zodResolver(EditProductSchema)
92
+ }
87
93
  });
88
94
  const { mutateAsync, isPending } = useUpdateProduct(product.id);
89
95
  const handleSubmit = form.handleSubmit(async (data) => {
90
96
  const { description, discountable, handle, subtitle, title } = data;
97
+ const additional_data = data.additional_data;
98
+ const payload = {
99
+ description,
100
+ discountable,
101
+ handle,
102
+ subtitle: subtitle || null,
103
+ title,
104
+ ...additional_data && Object.keys(additional_data).length ? { additional_data } : {}
105
+ };
91
106
  await mutateAsync(
92
- {
93
- description,
94
- discountable,
95
- handle,
96
- subtitle: subtitle || null,
97
- title
98
- },
107
+ payload,
99
108
  {
100
109
  onSuccess: () => {
101
110
  toast.success(
@@ -198,6 +207,15 @@ var EditProductForm = ({ product }) => {
198
207
  label: t("fields.discountable"),
199
208
  description: t("products.discountableHint")
200
209
  }
210
+ ),
211
+ /* @__PURE__ */ jsx(
212
+ FormExtensionZone,
213
+ {
214
+ model: "product",
215
+ zone: "edit",
216
+ control: form.control,
217
+ data: product
218
+ }
201
219
  )
202
220
  ] }) }),
203
221
  /* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
@@ -214,7 +232,11 @@ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
214
232
  var Component = () => {
215
233
  const { id } = useParams();
216
234
  const { t } = useTranslation2();
217
- const { product, isLoading, isError, error } = useProduct(id);
235
+ const links = useExtension().getLinks("product");
236
+ const { product, isLoading, isError, error } = useProduct(
237
+ id,
238
+ links.length ? { fields: linkFields(links) } : void 0
239
+ );
218
240
  if (isError) {
219
241
  throw error;
220
242
  }
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  usePromotion,
17
17
  useUpdatePromotion
18
- } from "./chunk-ZLHCZ5F2.js";
18
+ } from "./chunk-JIXW4WHZ.js";
19
19
  import "./chunk-RHKRREUU.js";
20
20
  import "./chunk-ZA2KFUFR.js";
21
21
  import "./chunk-LXZXXOJ3.js";
@@ -23,15 +23,18 @@ import "./chunk-NBMM2TZK.js";
23
23
 
24
24
  // src/pages/promotions/[id]/edit/index.tsx
25
25
  import { Heading } from "@medusajs/ui";
26
+ import { useLinkQuery } from "@mercurjs/dashboard-shared";
26
27
  import { useTranslation as useTranslation2 } from "react-i18next";
27
28
  import { useParams } from "react-router-dom";
28
29
 
29
30
  // src/pages/promotions/[id]/edit/edit-promotion-form/edit-promotion-details-form.tsx
30
- import { zodResolver } from "@hookform/resolvers/zod";
31
31
  import { Button, Input, RadioGroup, Text } from "@medusajs/ui";
32
- import { useForm } from "react-hook-form";
33
32
  import { Trans, useTranslation } from "react-i18next";
34
33
  import * as zod from "zod";
34
+ import {
35
+ FormExtensionZone,
36
+ useExtendableForm
37
+ } from "@mercurjs/dashboard-shared";
35
38
  import { jsx, jsxs } from "react/jsx-runtime";
36
39
  var EditPromotionSchema = zod.object({
37
40
  is_automatic: zod.string().toLowerCase(),
@@ -44,7 +47,11 @@ var EditPromotionSchema = zod.object({
44
47
  var EditPromotionDetailsForm = ({ promotion }) => {
45
48
  const { t } = useTranslation();
46
49
  const { handleSuccess } = useRouteModal();
47
- const form = useForm({
50
+ const form = useExtendableForm({
51
+ schema: EditPromotionSchema,
52
+ model: "promotion",
53
+ zone: "edit",
54
+ data: promotion,
48
55
  defaultValues: {
49
56
  is_automatic: promotion.is_automatic.toString(),
50
57
  code: promotion.code,
@@ -52,8 +59,7 @@ var EditPromotionDetailsForm = ({ promotion }) => {
52
59
  value: promotion.application_method.value,
53
60
  value_type: promotion.application_method.type,
54
61
  max_quantity: promotion.application_method?.max_quantity ?? 1
55
- },
56
- resolver: zodResolver(EditPromotionSchema)
62
+ }
57
63
  });
58
64
  const { mutateAsync, isPending } = useUpdatePromotion(promotion.id);
59
65
  const handleSubmit = form.handleSubmit(async (data) => {
@@ -265,6 +271,15 @@ var EditPromotionDetailsForm = ({ promotion }) => {
265
271
  ] });
266
272
  }
267
273
  }
274
+ ),
275
+ /* @__PURE__ */ jsx(
276
+ FormExtensionZone,
277
+ {
278
+ model: "promotion",
279
+ zone: "edit",
280
+ control: form.control,
281
+ data: promotion
282
+ }
268
283
  )
269
284
  ] }) }),
270
285
  /* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
@@ -296,7 +311,8 @@ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
296
311
  var Component = () => {
297
312
  const { id } = useParams();
298
313
  const { t } = useTranslation2();
299
- const { promotion, isLoading, isError, error } = usePromotion(id);
314
+ const linkQuery = useLinkQuery("promotion");
315
+ const { promotion, isLoading, isError, error } = usePromotion(id, linkQuery);
300
316
  if (isError) throw error;
301
317
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
302
318
  /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading, { children: t("promotions.edit.title") }) }),
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  useCampaign,
17
17
  useUpdateCampaign
18
- } from "./chunk-ZLHCZ5F2.js";
18
+ } from "./chunk-JIXW4WHZ.js";
19
19
  import "./chunk-RHKRREUU.js";
20
20
  import "./chunk-ZA2KFUFR.js";
21
21
  import "./chunk-LXZXXOJ3.js";
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  useInventoryItem,
14
14
  useUpdateInventoryItem
15
- } from "./chunk-G6YNCIVF.js";
15
+ } from "./chunk-744GLNZW.js";
16
16
  import "./chunk-A5DJIOHN.js";
17
17
  import "./chunk-RHKRREUU.js";
18
18
  import "./chunk-ZA2KFUFR.js";
@@ -23,13 +23,16 @@ import "./chunk-NBMM2TZK.js";
23
23
  import { Heading } from "@medusajs/ui";
24
24
  import { useTranslation as useTranslation2 } from "react-i18next";
25
25
  import { useParams } from "react-router-dom";
26
+ import { useLinkQuery } from "@mercurjs/dashboard-shared";
26
27
 
27
28
  // src/pages/inventory/[id]/_components/edit-inventory-item/components/edit-item-form.tsx
28
29
  import { Button, Input, toast } from "@medusajs/ui";
29
- import { zodResolver } from "@hookform/resolvers/zod";
30
- import { useForm } from "react-hook-form";
31
30
  import { useTranslation } from "react-i18next";
32
31
  import { z } from "zod";
32
+ import {
33
+ FormExtensionZone,
34
+ useExtendableForm
35
+ } from "@mercurjs/dashboard-shared";
33
36
  import { jsx, jsxs } from "react/jsx-runtime";
34
37
  var EditInventoryItemSchema = z.object({
35
38
  title: z.string().optional(),
@@ -44,9 +47,12 @@ var getDefaultValues = (item) => {
44
47
  var EditInventoryItemForm = ({ item }) => {
45
48
  const { t } = useTranslation();
46
49
  const { handleSuccess } = useRouteModal();
47
- const form = useForm({
48
- defaultValues: getDefaultValues(item),
49
- resolver: zodResolver(EditInventoryItemSchema)
50
+ const form = useExtendableForm({
51
+ schema: EditInventoryItemSchema,
52
+ model: "inventory_item",
53
+ zone: "edit",
54
+ data: item,
55
+ defaultValues: getDefaultValues(item)
50
56
  });
51
57
  const { mutateAsync, isPending: isLoading } = useUpdateInventoryItem(item.id);
52
58
  const handleSubmit = form.handleSubmit(async (values) => {
@@ -92,6 +98,15 @@ var EditInventoryItemForm = ({ item }) => {
92
98
  ] });
93
99
  }
94
100
  }
101
+ ),
102
+ /* @__PURE__ */ jsx(
103
+ FormExtensionZone,
104
+ {
105
+ model: "inventory_item",
106
+ zone: "edit",
107
+ control: form.control,
108
+ data: item
109
+ }
95
110
  )
96
111
  ] }),
97
112
  /* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
@@ -113,7 +128,7 @@ var InventoryItemEdit = () => {
113
128
  isPending: isLoading,
114
129
  isError,
115
130
  error
116
- } = useInventoryItem(id);
131
+ } = useInventoryItem(id, useLinkQuery("inventory_item"));
117
132
  const ready = !isLoading && inventoryItem;
118
133
  if (isError) {
119
134
  throw error;
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  useInventoryItem,
19
19
  useUpdateInventoryItem
20
- } from "./chunk-G6YNCIVF.js";
20
+ } from "./chunk-744GLNZW.js";
21
21
  import "./chunk-A5DJIOHN.js";
22
22
  import "./chunk-RHKRREUU.js";
23
23
  import "./chunk-ZA2KFUFR.js";
@@ -27,14 +27,14 @@ import {
27
27
  } from "./chunk-PUAWN7SS.js";
28
28
  import {
29
29
  useCurrentSeller
30
- } from "./chunk-MVEHWM7K.js";
30
+ } from "./chunk-4NADEZZQ.js";
31
31
  import {
32
32
  offerQueryKeys
33
- } from "./chunk-EPRYM3FA.js";
33
+ } from "./chunk-ULEW54ED.js";
34
34
  import {
35
35
  productsQueryKeys,
36
36
  useProduct
37
- } from "./chunk-G6YNCIVF.js";
37
+ } from "./chunk-744GLNZW.js";
38
38
  import "./chunk-A5DJIOHN.js";
39
39
  import {
40
40
  queryClient
@@ -27,12 +27,12 @@ import {
27
27
  } from "./chunk-ZQCCVCHB.js";
28
28
  import {
29
29
  offerQueryKeys
30
- } from "./chunk-EPRYM3FA.js";
30
+ } from "./chunk-ULEW54ED.js";
31
31
  import {
32
32
  productsQueryKeys,
33
33
  useBatchInventoryItemsLocationLevels,
34
34
  useProduct
35
- } from "./chunk-G6YNCIVF.js";
35
+ } from "./chunk-744GLNZW.js";
36
36
  import "./chunk-A5DJIOHN.js";
37
37
  import {
38
38
  queryClient
@@ -0,0 +1,248 @@
1
+ // GENERATED by scripts/generate-extension-targets.ts — do not edit by hand.
2
+ // Seeds the built-in extension target ids from this panel's host usages.
3
+ import "@mercurjs/dashboard-sdk"
4
+
5
+ declare module "@mercurjs/dashboard-sdk" {
6
+ interface WidgetZoneRegistry {
7
+ "campaigns.detail.main.after": true
8
+ "campaigns.detail.main.before": true
9
+ "campaigns.detail.side.after": true
10
+ "campaigns.detail.side.before": true
11
+ "campaigns.list.after": true
12
+ "campaigns.list.before": true
13
+ "categories.detail.main.after": true
14
+ "categories.detail.main.before": true
15
+ "categories.detail.side.after": true
16
+ "categories.detail.side.before": true
17
+ "categories.list.after": true
18
+ "categories.list.before": true
19
+ "collections.detail.main.after": true
20
+ "collections.detail.main.before": true
21
+ "collections.list.after": true
22
+ "collections.list.before": true
23
+ "customer-groups.detail.main.after": true
24
+ "customer-groups.detail.main.before": true
25
+ "customer-groups.list.after": true
26
+ "customer-groups.list.before": true
27
+ "customers.detail.main.after": true
28
+ "customers.detail.main.before": true
29
+ "customers.detail.side.after": true
30
+ "customers.detail.side.before": true
31
+ "customers.list.after": true
32
+ "customers.list.before": true
33
+ "inventory.detail.main.after": true
34
+ "inventory.detail.main.before": true
35
+ "inventory.detail.side.after": true
36
+ "inventory.detail.side.before": true
37
+ "inventory.list.after": true
38
+ "inventory.list.before": true
39
+ "locations.detail.main.after": true
40
+ "locations.detail.main.before": true
41
+ "locations.detail.side.after": true
42
+ "locations.detail.side.before": true
43
+ "locations.list.after": true
44
+ "locations.list.before": true
45
+ "login.after.after": true
46
+ "login.after.before": true
47
+ "login.before.after": true
48
+ "login.before.before": true
49
+ "login.logo.after": true
50
+ "login.logo.before": true
51
+ "offer-variants.detail.main.after": true
52
+ "offer-variants.detail.main.before": true
53
+ "offer-variants.detail.side.after": true
54
+ "offer-variants.detail.side.before": true
55
+ "offers.detail.main.after": true
56
+ "offers.detail.main.before": true
57
+ "offers.detail.side.after": true
58
+ "offers.detail.side.before": true
59
+ "offers.list.after": true
60
+ "offers.list.before": true
61
+ "orders.detail.main.after": true
62
+ "orders.detail.main.before": true
63
+ "orders.detail.side.after": true
64
+ "orders.detail.side.before": true
65
+ "orders.detail.summary.after": true
66
+ "orders.detail.summary.before": true
67
+ "orders.list.after": true
68
+ "orders.list.before": true
69
+ "payouts.detail.main.after": true
70
+ "payouts.detail.main.before": true
71
+ "payouts.list.after": true
72
+ "payouts.list.before": true
73
+ "price-lists.detail.main.after": true
74
+ "price-lists.detail.main.before": true
75
+ "price-lists.detail.side.after": true
76
+ "price-lists.detail.side.before": true
77
+ "price-lists.list.after": true
78
+ "price-lists.list.before": true
79
+ "product-tags.detail.main.after": true
80
+ "product-tags.detail.main.before": true
81
+ "product-tags.list.after": true
82
+ "product-tags.list.before": true
83
+ "product-types.detail.main.after": true
84
+ "product-types.detail.main.before": true
85
+ "product-types.list.after": true
86
+ "product-types.list.before": true
87
+ "product-variants.detail.main.after": true
88
+ "product-variants.detail.main.before": true
89
+ "product.detail.main.after": true
90
+ "product.detail.main.before": true
91
+ "product.detail.side.after": true
92
+ "product.detail.side.before": true
93
+ "product.list.after": true
94
+ "product.list.before": true
95
+ "profile.detail.main.after": true
96
+ "profile.detail.main.before": true
97
+ "promotions.detail.main.after": true
98
+ "promotions.detail.main.before": true
99
+ "promotions.detail.side.after": true
100
+ "promotions.detail.side.before": true
101
+ "promotions.list.after": true
102
+ "promotions.list.before": true
103
+ "regions.detail.main.after": true
104
+ "regions.detail.main.before": true
105
+ "regions.list.after": true
106
+ "regions.list.before": true
107
+ "reservations.detail.main.after": true
108
+ "reservations.detail.main.before": true
109
+ "reservations.detail.side.after": true
110
+ "reservations.detail.side.before": true
111
+ "reservations.list.after": true
112
+ "reservations.list.before": true
113
+ "return-reasons.list.after": true
114
+ "return-reasons.list.before": true
115
+ "seller.setup.after": true
116
+ "seller.setup.before": true
117
+ "shipping-profiles.detail.main.after": true
118
+ "shipping-profiles.detail.main.before": true
119
+ "shipping-profiles.list.after": true
120
+ "shipping-profiles.list.before": true
121
+ "tax-regions.detail.main.after": true
122
+ "tax-regions.detail.main.before": true
123
+ "tax-regions.list.after": true
124
+ "tax-regions.list.before": true
125
+ "tax-regions.province.detail.main.after": true
126
+ "tax-regions.province.detail.main.before": true
127
+ "team.list.after": true
128
+ "team.list.before": true
129
+ }
130
+
131
+ interface NavItemRegistry {
132
+ "campaigns": true
133
+ "categories": true
134
+ "collections": true
135
+ "customer-groups": true
136
+ "customers": true
137
+ "inventory": true
138
+ "offers": true
139
+ "orders": true
140
+ "payouts": true
141
+ "price-lists": true
142
+ "products": true
143
+ "promotions": true
144
+ }
145
+
146
+ interface NavParentRegistry {
147
+ "customers": true
148
+ "inventory": true
149
+ "orders": true
150
+ "payouts": true
151
+ "price-lists": true
152
+ "products": true
153
+ "promotions": true
154
+ }
155
+
156
+ interface CustomFieldsRegistry {
157
+ "campaign": {
158
+ formZones: "edit"
159
+ formTabs: Record<string, string>
160
+ displayZones: "budget" | "configuration" | "general" | "promotions" | "spend"
161
+ displayFieldIds: "campaign_identifier" | "currency_code" | "description" | "name" | "status"
162
+ }
163
+ "category": {
164
+ formZones: never
165
+ formTabs: Record<string, string>
166
+ displayZones: "general" | "icon" | "media" | "organize" | "products"
167
+ displayFieldIds: "description" | "handle" | "name"
168
+ }
169
+ "collection": {
170
+ formZones: never
171
+ formTabs: Record<string, string>
172
+ displayZones: "general" | "icon" | "media" | "products"
173
+ displayFieldIds: "handle" | "title"
174
+ }
175
+ "customer": {
176
+ formZones: never
177
+ formTabs: Record<string, string>
178
+ displayZones: "addresses" | "general" | "groups" | "orders"
179
+ displayFieldIds: "company_name" | "email" | "name" | "phone" | "status"
180
+ }
181
+ "customer_group": {
182
+ formZones: "edit"
183
+ formTabs: Record<string, string>
184
+ displayZones: "customers" | "general"
185
+ displayFieldIds: "customers" | "name"
186
+ }
187
+ "inventory_item": {
188
+ formZones: "edit"
189
+ formTabs: Record<string, string>
190
+ displayZones: "attributes" | "general" | "locations" | "variants"
191
+ displayFieldIds: "available" | "in_stock" | "reserved" | "sku" | "title"
192
+ }
193
+ "member": {
194
+ formZones: "edit"
195
+ formTabs: Record<string, string>
196
+ displayZones: "general"
197
+ displayFieldIds: "first_name" | "language" | "last_name"
198
+ }
199
+ "offer": {
200
+ formZones: "create" | "edit"
201
+ formTabs: { "create": "catalogue" | "stockLevelsAndPrices" }
202
+ displayZones: "associated-product" | "general" | "inventory" | "prices" | "shipping" | "variant-general" | "variants"
203
+ displayFieldIds: "description" | "discountable" | "handle" | "status" | "subtitle" | "title"
204
+ }
205
+ "order": {
206
+ formZones: never
207
+ formTabs: Record<string, string>
208
+ displayZones: "active-claim" | "active-edit" | "active-exchange" | "active-return" | "activity" | "customer" | "fulfillment" | "general" | "payment" | "summary"
209
+ displayFieldIds: "display_id" | "fulfillment_status" | "payment_status" | "status"
210
+ }
211
+ "payout": {
212
+ formZones: never
213
+ formTabs: Record<string, string>
214
+ displayZones: "general"
215
+ displayFieldIds: "amount" | "created_at" | "display_id" | "status" | "updated_at"
216
+ }
217
+ "price_list": {
218
+ formZones: "edit"
219
+ formTabs: Record<string, string>
220
+ displayZones: "configuration" | "general" | "products"
221
+ displayFieldIds: "description" | "price_overrides" | "status" | "title" | "type"
222
+ }
223
+ "product": {
224
+ formZones: "create" | "edit"
225
+ formTabs: { "create": "attributes" | "details" | "organize" | "variants" }
226
+ displayZones: "attributes" | "general" | "media" | "organize" | "sales-channels" | "shipping-profile" | "variants"
227
+ displayFieldIds: "description" | "discountable" | "handle" | "status" | "subtitle" | "title"
228
+ }
229
+ "promotion": {
230
+ formZones: "edit"
231
+ formTabs: Record<string, string>
232
+ displayZones: "campaign" | "general"
233
+ displayFieldIds: "allocation" | "code" | "code_value" | "is_automatic" | "status" | "type" | "value"
234
+ }
235
+ "reservation": {
236
+ formZones: "edit"
237
+ formTabs: Record<string, string>
238
+ displayZones: "general"
239
+ displayFieldIds: "available_quantity" | "description" | "line_item_id" | "location" | "reserved_quantity" | "stocked_quantity" | "title"
240
+ }
241
+ "seller": {
242
+ formZones: "address" | "edit" | "onboarding" | "payment-details" | "professional-details"
243
+ formTabs: Record<string, string>
244
+ displayZones: "general" | "seller-select"
245
+ displayFieldIds: "currency_code" | "description" | "email" | "handle" | "phone" | "status" | "website_url"
246
+ }
247
+ }
248
+ }
@@ -0,0 +1 @@
1
+ export {}
@@ -25,29 +25,29 @@ import "./chunk-VE6GRIIN.js";
25
25
  import "./chunk-7MARNXFG.js";
26
26
  import "./chunk-MNHP6YRC.js";
27
27
  import "./chunk-NTJ3BMOE.js";
28
- import "./chunk-5PAUN3PM.js";
29
- import "./chunk-ZLHCZ5F2.js";
28
+ import "./chunk-CLS6PNZY.js";
29
+ import "./chunk-JIXW4WHZ.js";
30
30
  import "./chunk-GZ4KTAWS.js";
31
31
  import "./chunk-PUAWN7SS.js";
32
- import "./chunk-MVEHWM7K.js";
33
- import "./chunk-OYUJYPDF.js";
34
- import "./chunk-O7BGGWW6.js";
32
+ import "./chunk-4NADEZZQ.js";
33
+ import "./chunk-XWHHBJGS.js";
34
+ import "./chunk-5NVY7JZC.js";
35
35
  import "./chunk-KIURBTC4.js";
36
- import "./chunk-3SH24DGG.js";
36
+ import "./chunk-4EAC3GT7.js";
37
37
  import {
38
38
  useShippingOptions
39
39
  } from "./chunk-JR7AABT5.js";
40
40
  import {
41
41
  useStockLocations
42
42
  } from "./chunk-ZQCCVCHB.js";
43
- import "./chunk-5BQO3YQP.js";
44
- import "./chunk-EPRYM3FA.js";
43
+ import "./chunk-MABIMRLS.js";
44
+ import "./chunk-ULEW54ED.js";
45
45
  import {
46
46
  useCreateOrderFulfillment,
47
47
  useOrder
48
- } from "./chunk-6FDPVW7Y.js";
48
+ } from "./chunk-UEPUKWD7.js";
49
49
  import "./chunk-JJP6AKMV.js";
50
- import "./chunk-G6YNCIVF.js";
50
+ import "./chunk-744GLNZW.js";
51
51
  import "./chunk-A5DJIOHN.js";
52
52
  import "./chunk-RHKRREUU.js";
53
53
  import "./chunk-ZA2KFUFR.js";
@@ -357,12 +357,21 @@ function OrderCreateFulfillmentForm({
357
357
  quantity
358
358
  }))
359
359
  };
360
+ if (!payload.items.length) {
361
+ toast.error(t("orders.fulfillment.error.noItems"));
362
+ return;
363
+ }
360
364
  try {
361
365
  await createOrderFulfillment(payload);
362
366
  toast.success(t("orders.fulfillment.toast.created"));
363
367
  handleSuccess(`/orders/${order.id}`);
364
368
  } catch (e) {
365
- toast.error(e.message);
369
+ const message = e?.message ?? "";
370
+ if (message.includes("exceeds the reserved quantity")) {
371
+ toast.error(t("orders.fulfillment.error.exceedsReservedQuantity"));
372
+ return;
373
+ }
374
+ toast.error(message);
366
375
  }
367
376
  });
368
377
  useEffect2(() => {