@mercurjs/admin 2.2.0-canary.3 → 2.2.0-canary.7

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 (251) hide show
  1. package/dist/{[id]-YI7UXOO2.js → [id]-272FUOXG.js} +7 -3
  2. package/dist/{add-campaign-promotions-OLNTDP26.js → add-campaign-promotions-2XFYP6GK.js} +3 -3
  3. package/dist/{adjust-inventory-CVWSBMHU.js → adjust-inventory-EAAPNIBZ.js} +17 -17
  4. package/dist/{api-key-management-create-7RWOCVAO.js → api-key-management-create-MRLR4WFZ.js} +3 -3
  5. package/dist/{api-key-management-detail-ZIIDMHFI.js → api-key-management-detail-PIN6NFQF.js} +18 -18
  6. package/dist/{api-key-management-edit-ACH6TJAX.js → api-key-management-edit-EZHFP3RR.js} +3 -3
  7. package/dist/{api-key-management-list-JHBBXGHH.js → api-key-management-list-OPANEDHB.js} +4 -4
  8. package/dist/{api-key-management-sales-channels-XEBTUB5V.js → api-key-management-sales-channels-PBL3V4IS.js} +3 -3
  9. package/dist/{attribute-create-HGNJXJBO.js → attribute-create-WDJSDXKD.js} +31 -34
  10. package/dist/{attribute-detail-JF2RHBXC.js → attribute-detail-3JGQV7BG.js} +19 -19
  11. package/dist/{attribute-edit-ADBGDZTL.js → attribute-edit-SSG3XZOJ.js} +2 -2
  12. package/dist/{attribute-edit-possible-value-OLHGHLA3.js → attribute-edit-possible-value-5TBYLJY4.js} +2 -2
  13. package/dist/{attribute-list-OHU2QMUG.js → attribute-list-URWKNTSJ.js} +16 -16
  14. package/dist/{campaign-create-VFFIIRE4.js → campaign-create-7BELREFT.js} +3 -3
  15. package/dist/{campaign-detail-AZKBPDLC.js → campaign-detail-336RBLOX.js} +20 -20
  16. package/dist/{categories-metadata-YZUP43OH.js → categories-metadata-5GXBBHEH.js} +16 -16
  17. package/dist/{category-create-2MRYTSYM.js → category-create-QPQQGIEN.js} +4 -4
  18. package/dist/{category-detail-B2TSD5V4.js → category-detail-RIKOZMPK.js} +24 -24
  19. package/dist/{category-edit-QLOS2LBA.js → category-edit-DJP7TK4X.js} +2 -2
  20. package/dist/{category-list-U7ZQBSZN.js → category-list-T5SE63HU.js} +4 -4
  21. package/dist/{category-organize-TIKTYJFZ.js → category-organize-DQQGAAJY.js} +2 -2
  22. package/dist/{category-products-KIP4KAF2.js → category-products-255EJFTV.js} +21 -21
  23. package/dist/{chunk-YXSTDH2B.js → chunk-2MVNFKL6.js} +6 -6
  24. package/dist/{chunk-CIZUUV2Y.js → chunk-2XVH2IJL.js} +8 -8
  25. package/dist/{chunk-UPNMDPFX.js → chunk-2YN2OI3W.js} +4 -4
  26. package/dist/{chunk-XZZTC7E5.js → chunk-2ZRWLCYP.js} +1 -1
  27. package/dist/{chunk-M75FCGHK.js → chunk-34OFJ74B.js} +2 -2
  28. package/dist/{chunk-GKW445WA.js → chunk-3L7M4E7W.js} +1 -1
  29. package/dist/{chunk-AXTQMIIK.js → chunk-46A3QXAL.js} +8 -27
  30. package/dist/{chunk-FTAR3BDS.js → chunk-4RT7P5ZQ.js} +1 -1
  31. package/dist/{chunk-IRTI3AS3.js → chunk-4XFFF2L5.js} +2 -2
  32. package/dist/{chunk-ZSFJVRRS.js → chunk-5AZCIOS4.js} +1 -1
  33. package/dist/{chunk-VOMVHF67.js → chunk-5J2HQOKK.js} +3 -3
  34. package/dist/{chunk-DQGGJSOO.js → chunk-6NDM5WGE.js} +1 -1
  35. package/dist/{chunk-K4TGNN4P.js → chunk-6RHAGO5O.js} +2 -2
  36. package/dist/{chunk-3O6YY3R5.js → chunk-6WBQDJIH.js} +217 -155
  37. package/dist/{chunk-EAC7NFA2.js → chunk-6XTHMAA2.js} +2 -2
  38. package/dist/{chunk-P25PIADJ.js → chunk-72SSKT5O.js} +1 -1
  39. package/dist/{chunk-GNLPUGYK.js → chunk-7BD24KNM.js} +2 -2
  40. package/dist/{chunk-WV4SQ57G.js → chunk-7O6WJTBI.js} +8 -10
  41. package/dist/{chunk-2LQ5SCPB.js → chunk-ACDG3RAL.js} +4 -4
  42. package/dist/{chunk-UXD3VNBO.js → chunk-AJLGY3LQ.js} +1 -2
  43. package/dist/{chunk-3EDQIZV6.js → chunk-B66CMFMH.js} +2 -2
  44. package/dist/{chunk-DTYQWWHT.js → chunk-BEJ3IR7B.js} +4 -4
  45. package/dist/{chunk-TP7L6M7V.js → chunk-BKNAX6QQ.js} +1 -1
  46. package/dist/{chunk-TITPJHIL.js → chunk-CKPGRDZS.js} +1 -1
  47. package/dist/{chunk-JRUUOZ5S.js → chunk-CKUIM5ZD.js} +5 -5
  48. package/dist/{chunk-PE4STCQ5.js → chunk-D2NBZVQC.js} +6 -6
  49. package/dist/{chunk-SNPNLTCO.js → chunk-DDANJIE7.js} +3 -3
  50. package/dist/{chunk-3P4VTL4S.js → chunk-DV7QV3X2.js} +7 -7
  51. package/dist/{chunk-UXQAHUGZ.js → chunk-DWCBB4QM.js} +1 -1
  52. package/dist/{chunk-OSEIN4Y2.js → chunk-E5WBU7ZR.js} +1 -1
  53. package/dist/{chunk-H5PYBIOZ.js → chunk-EB5QHYKL.js} +1 -1
  54. package/dist/{chunk-QIU6DJY6.js → chunk-EFZBEG7O.js} +1 -1
  55. package/dist/{chunk-SRDK3XX7.js → chunk-EZGIPTIF.js} +2 -2
  56. package/dist/{chunk-FMRP2CNF.js → chunk-F5H5JZQZ.js} +137 -179
  57. package/dist/{chunk-S5BJ5CMF.js → chunk-FEC24V7X.js} +1 -1
  58. package/dist/{chunk-G4PROEJI.js → chunk-FPV32HVT.js} +3 -3
  59. package/dist/{chunk-637OFDFC.js → chunk-FUE374HM.js} +9 -17
  60. package/dist/{chunk-6UQ5WDW6.js → chunk-G3GSRFTB.js} +4 -4
  61. package/dist/{chunk-AB2LHP3M.js → chunk-GIVLDQXN.js} +1 -1
  62. package/dist/{chunk-SUHCZ33F.js → chunk-GPJ6KVY2.js} +2 -2
  63. package/dist/{chunk-CKACZXMP.js → chunk-GQLVERZW.js} +1 -1
  64. package/dist/chunk-GVEF6UDT.js +8 -0
  65. package/dist/{chunk-BHOZKBYY.js → chunk-HZQGZQTV.js} +1 -1
  66. package/dist/{chunk-EREXPX6I.js → chunk-ISJOBO5P.js} +18 -35
  67. package/dist/{chunk-WKCYMDTV.js → chunk-IWI34SYT.js} +1 -1
  68. package/dist/{chunk-JQBSPUH2.js → chunk-J4MAIN7L.js} +1 -1
  69. package/dist/{chunk-2S6VXFBZ.js → chunk-K6L5PHHQ.js} +4 -4
  70. package/dist/{chunk-BCVUMATY.js → chunk-KJSCFEXT.js} +4 -4
  71. package/dist/{chunk-CBGXKU7Z.js → chunk-KMZOBR5Q.js} +4 -4
  72. package/dist/{chunk-V6OGMYAI.js → chunk-KT7X72J4.js} +158 -169
  73. package/dist/{chunk-WS63IRBI.js → chunk-L3E6LES5.js} +3 -3
  74. package/dist/chunk-LD7NVG2X.js +213 -0
  75. package/dist/{chunk-YGAX72XV.js → chunk-LO2ZWQGL.js} +0 -2
  76. package/dist/{chunk-BLYJZMNE.js → chunk-LO7NJYHZ.js} +2 -2
  77. package/dist/{chunk-QBVFUDNG.js → chunk-LXMGYWPO.js} +3 -3
  78. package/dist/{chunk-5DNAS3T4.js → chunk-M5AJSIRN.js} +1 -1
  79. package/dist/{chunk-YL3SCKWU.js → chunk-MFI5TG54.js} +6 -6
  80. package/dist/{chunk-YLKG7W4P.js → chunk-MKBCBAS2.js} +4 -4
  81. package/dist/{chunk-ALATTLBM.js → chunk-MSESXKMA.js} +1 -1
  82. package/dist/{chunk-BGGUVHDG.js → chunk-N3334MXP.js} +23 -23
  83. package/dist/{chunk-B3EEDC47.js → chunk-N3BYBEDV.js} +2 -2
  84. package/dist/{chunk-R2MI5GL4.js → chunk-NMFVQDVF.js} +4 -8
  85. package/dist/chunk-P42E3L6Z.js +142 -0
  86. package/dist/{chunk-6FIU2V6Y.js → chunk-PR7Y27BW.js} +1 -1
  87. package/dist/{chunk-NQBSSM5V.js → chunk-Q23KHB6V.js} +2 -2
  88. package/dist/{chunk-EJTB2SLE.js → chunk-Q6VW2MR5.js} +1 -1
  89. package/dist/{chunk-XODRTI2W.js → chunk-R5F52U3C.js} +1 -1
  90. package/dist/{chunk-XALYF4WJ.js → chunk-SFHM7YDA.js} +101 -405
  91. package/dist/{chunk-Q6I2IKJB.js → chunk-SONUZNDT.js} +2 -2
  92. package/dist/{chunk-X2IZZAII.js → chunk-SS7LB52P.js} +5 -5
  93. package/dist/{chunk-AMOSVDPE.js → chunk-TE245WV3.js} +4 -4
  94. package/dist/{chunk-PXTJJQKJ.js → chunk-TNNQPNXY.js} +1 -1
  95. package/dist/{chunk-WDH5C2NS.js → chunk-TXNRS2JR.js} +1 -1
  96. package/dist/{chunk-BE6JLTMI.js → chunk-UFGVU7RF.js} +1 -1
  97. package/dist/{chunk-6RQR3B6T.js → chunk-UKDC2AQR.js} +1 -2
  98. package/dist/{chunk-RVBZV3BH.js → chunk-UNOG2S56.js} +115 -180
  99. package/dist/{chunk-ZHOI4QMK.js → chunk-UXGLM3B4.js} +1 -1
  100. package/dist/{chunk-2V4BOCYF.js → chunk-VERWLDVW.js} +3 -3
  101. package/dist/{chunk-YPESX7CE.js → chunk-WRVGLMRW.js} +1 -1
  102. package/dist/{chunk-ED7XNGZD.js → chunk-X3PXBMI3.js} +1 -1
  103. package/dist/{chunk-N2LH7A4X.js → chunk-X7H7TIOT.js} +9 -9
  104. package/dist/{chunk-XTSMGXL2.js → chunk-XAIID3PU.js} +4 -4
  105. package/dist/{chunk-3IVTUFBM.js → chunk-Y6GMH5KH.js} +1 -1
  106. package/dist/{chunk-A772RAKB.js → chunk-ZB4SO44T.js} +1 -1
  107. package/dist/{chunk-2YYXP6XI.js → chunk-ZRFWXNT3.js} +1 -37
  108. package/dist/{collection-add-products-5ULJZWE2.js → collection-add-products-4ZTBHENL.js} +21 -21
  109. package/dist/{collection-create-HUNYHKUJ.js → collection-create-GPBN7KO6.js} +2 -2
  110. package/dist/{collection-detail-2KCCLJMV.js → collection-detail-W7OC2ALM.js} +22 -22
  111. package/dist/{collection-edit-OQGYTQDO.js → collection-edit-NVRFKO46.js} +2 -2
  112. package/dist/{collection-list-QHZSZGPO.js → collection-list-B7LALPSA.js} +23 -23
  113. package/dist/{collection-metadata-47N7TUOH.js → collection-metadata-E4C54MTU.js} +16 -16
  114. package/dist/{commission-rate-create-7SH3LKQP.js → commission-rate-create-7MEIKAXK.js} +33 -33
  115. package/dist/{commission-rate-detail-LAZZLZVX.js → commission-rate-detail-XBMB3Y7S.js} +17 -17
  116. package/dist/{commission-rate-edit-ISER2E7G.js → commission-rate-edit-XXUAGK5Q.js} +33 -33
  117. package/dist/{constants-26tEckuq.d.ts → constants-Bahlh59D.d.ts} +8 -4
  118. package/dist/{customer-detail-D5SSLNFT.js → customer-detail-ONZGPCHW.js} +20 -20
  119. package/dist/{customer-group-detail-KRT7E2JA.js → customer-group-detail-XTCDJX7O.js} +16 -16
  120. package/dist/{customer-group-list-KKDIESQ6.js → customer-group-list-63ER7WQH.js} +16 -16
  121. package/dist/{customer-group-metadata-J6JY7DZ3.js → customer-group-metadata-N7HGHXNC.js} +16 -16
  122. package/dist/{customer-metadata-AH2LBK4T.js → customer-metadata-63OWV4KB.js} +16 -16
  123. package/dist/{customers-add-customer-group-AHGAPEIS.js → customers-add-customer-group-NUXPXNUC.js} +16 -16
  124. package/dist/{edit-inventory-item-ADNLKLCN.js → edit-inventory-item-YOJTYA7H.js} +16 -16
  125. package/dist/{edit-inventory-item-attributes-XVR2WLDU.js → edit-inventory-item-attributes-JGY633F2.js} +16 -16
  126. package/dist/{edit-reservation-HQQL42QX.js → edit-reservation-ACDUXG33.js} +2 -2
  127. package/dist/{edit-rules-YMKM5JPI.js → edit-rules-4VAD5Q3L.js} +17 -17
  128. package/dist/index.d.ts +2 -2
  129. package/dist/index.js +517 -517
  130. package/dist/{inventory-create-IVESXFSV.js → inventory-create-3NJZLSFO.js} +19 -19
  131. package/dist/{inventory-detail-TINIAFVB.js → inventory-detail-B3HU2OVR.js} +17 -17
  132. package/dist/{inventory-list-YLIAKQXI.js → inventory-list-AE44PEW7.js} +2 -2
  133. package/dist/{inventory-metadata-6INRH2JC.js → inventory-metadata-WCFTI7AH.js} +16 -16
  134. package/dist/{inventory-stock-6YGTATID.js → inventory-stock-M65W4GRN.js} +201 -39
  135. package/dist/{loader-6KDBTRVR.js → loader-O4EABIXE.js} +1 -1
  136. package/dist/{location-detail-EK2S7WOK.js → location-detail-2NCZD5MO.js} +19 -19
  137. package/dist/{location-fulfillment-providers-YQAUTEWK.js → location-fulfillment-providers-3XKOFATD.js} +21 -21
  138. package/dist/{location-list-IV323QW2.js → location-list-VS6V2FXE.js} +16 -16
  139. package/dist/{location-sales-channels-EYUXMTW7.js → location-sales-channels-TEUZYDTT.js} +2 -2
  140. package/dist/{location-service-zone-shipping-option-create-36JZFRGY.js → location-service-zone-shipping-option-create-LAM3OHBC.js} +19 -19
  141. package/dist/{location-service-zone-shipping-option-pricing-JLGCOZGS.js → location-service-zone-shipping-option-pricing-POBJOF3Z.js} +7 -7
  142. package/dist/{login-6L3RMREO.js → login-DJWU5X5L.js} +16 -16
  143. package/dist/{manage-locations-CFTM6DNH.js → manage-locations-E2XQPKKE.js} +1 -1
  144. package/dist/{marketplace-detail-BAU2MEJT.js → marketplace-detail-IQLU7R3J.js} +19 -19
  145. package/dist/{marketplace-metadata-KRCGKOCA.js → marketplace-metadata-7DNBHUDD.js} +18 -18
  146. package/dist/{offers-566UJ2JF.js → offers-UJCSO3RD.js} +3 -3
  147. package/dist/{order-allocate-items-DJ2V4B7A.js → order-allocate-items-TMVWJUV3.js} +3 -3
  148. package/dist/{order-create-claim-RMDDCUZ6.js → order-create-claim-MPSXY24H.js} +8 -8
  149. package/dist/{order-create-edit-PQ54JFZZ.js → order-create-edit-6JLXERBY.js} +4 -4
  150. package/dist/{order-create-exchange-T6DBVS75.js → order-create-exchange-O6COEAGJ.js} +22 -22
  151. package/dist/{order-create-fulfillment-SMSUJSBN.js → order-create-fulfillment-Y4HQ5YRS.js} +17 -17
  152. package/dist/{order-create-refund-OW3MIXBY.js → order-create-refund-TCNCSOMX.js} +20 -20
  153. package/dist/{order-create-return-YCX6C3VP.js → order-create-return-EVSD6GKE.js} +4 -4
  154. package/dist/{order-create-shipment-5ZAWH5CZ.js → order-create-shipment-EWOJJXEM.js} +17 -17
  155. package/dist/{order-detail-2OAEGBQG.js → order-detail-BOW62X75.js} +28 -28
  156. package/dist/{order-edit-billing-address-VGZBQHF5.js → order-edit-billing-address-VKJV3V6N.js} +18 -18
  157. package/dist/{order-edit-email-OOCXVRET.js → order-edit-email-DQJW2SAM.js} +17 -17
  158. package/dist/{order-edit-shipping-address-B4F3E5RE.js → order-edit-shipping-address-RIML4XFQ.js} +17 -17
  159. package/dist/{order-list-M6F7PKVN.js → order-list-U5DZYLJK.js} +7 -7
  160. package/dist/{order-metadata-AN6MPHHT.js → order-metadata-WGZUETFN.js} +17 -17
  161. package/dist/{order-receive-return-DZ4IUOHY.js → order-receive-return-MDUU4L4X.js} +18 -18
  162. package/dist/{order-request-transfer-A2NJSQ4H.js → order-request-transfer-QFUMEZPD.js} +17 -17
  163. package/dist/pages/index.d.ts +35 -288
  164. package/dist/pages/index.js +162 -162
  165. package/dist/{price-list-configuration-XAHXLCXR.js → price-list-configuration-O3MR5IUA.js} +2 -2
  166. package/dist/{price-list-create-CZAQLDSW.js → price-list-create-J4AJG42T.js} +25 -25
  167. package/dist/{price-list-detail-6VXW6O5I.js → price-list-detail-D2ETNZ5N.js} +23 -23
  168. package/dist/{price-list-edit-ZVLD4M5T.js → price-list-edit-OJAYEUYO.js} +2 -2
  169. package/dist/{price-list-list-ER4TOZTY.js → price-list-list-ARICU2NA.js} +4 -4
  170. package/dist/{price-list-prices-add-FQI7EF6V.js → price-list-prices-add-FQLQ5DPX.js} +24 -24
  171. package/dist/{price-list-prices-edit-WHCIGSB2.js → price-list-prices-edit-4HBSUC5W.js} +18 -18
  172. package/dist/{product-add-existing-attributes-QKIGOAE2.js → product-add-existing-attributes-IHCIKDIH.js} +18 -18
  173. package/dist/{product-attributes-MHRXZK5S.js → product-attributes-ZURXNZ3J.js} +2 -2
  174. package/dist/{product-brand-detail-WYALM342.js → product-brand-detail-O7UKYV4H.js} +22 -22
  175. package/dist/{product-brand-metadata-EAMW6PQJ.js → product-brand-metadata-N2CJ5K3Z.js} +16 -16
  176. package/dist/{product-bulk-edit-J6ZP7GGM.js → product-bulk-edit-LHCPVFUX.js} +5 -7
  177. package/dist/{product-create-ZVQOFCJA.js → product-create-TRJMKG2C.js} +24 -24
  178. package/dist/{product-create-attribute-ZT3VZDNZ.js → product-create-attribute-UBWABT2Q.js} +2 -2
  179. package/dist/product-create-variant-MVYZPDO7.js +20 -0
  180. package/dist/{product-detail-N6W4M6TC.js → product-detail-I57XSYLB.js} +19 -20
  181. package/dist/{product-edit-EKAZRIJ6.js → product-edit-EDW3D2KW.js} +2 -4
  182. package/dist/{product-list-VWBUTMXT.js → product-list-PR532XII.js} +23 -23
  183. package/dist/{product-media-KREKRDOC.js → product-media-Y2KHDPMI.js} +5 -5
  184. package/dist/{product-metadata-O3BAEUYB.js → product-metadata-T2D4GEIP.js} +17 -17
  185. package/dist/{product-organization-SBQY44IF.js → product-organization-D6UMZAUE.js} +4 -4
  186. package/dist/{product-sales-channels-TFOGXCMI.js → product-sales-channels-NTT6KMSD.js} +3 -3
  187. package/dist/{product-shipping-profile-E4HJ4EYW.js → product-shipping-profile-WM7LORFB.js} +2 -2
  188. package/dist/{product-tag-create-7JBM6I3V.js → product-tag-create-47G425O2.js} +16 -16
  189. package/dist/{product-tag-detail-KSJ45MJU.js → product-tag-detail-VNGOBWYE.js} +32 -32
  190. package/dist/{product-tag-edit-O2ADFDD6.js → product-tag-edit-DN7IVL75.js} +16 -16
  191. package/dist/{product-tag-list-NQPPUWZG.js → product-tag-list-ZGRJZT2U.js} +32 -32
  192. package/dist/{product-tag-metadata-SBOUTUXY.js → product-tag-metadata-YLDBRJMI.js} +16 -16
  193. package/dist/{product-type-detail-L2ASZ4GW.js → product-type-detail-MPONGCVO.js} +23 -23
  194. package/dist/{product-type-metadata-KN5OXR6J.js → product-type-metadata-TDAER7JD.js} +17 -17
  195. package/dist/{product-variant-detail-H2YRFDAU.js → product-variant-detail-5BF6JTHV.js} +21 -30
  196. package/dist/{product-variant-edit-T267E4SW.js → product-variant-edit-2RHFG2CZ.js} +167 -257
  197. package/dist/{product-variant-metadata-QESZ7VS2.js → product-variant-metadata-G2LLH7YK.js} +16 -16
  198. package/dist/{promotion-create-TGC6BVWF.js → promotion-create-G3M4UJX2.js} +21 -21
  199. package/dist/{promotion-detail-VYIXZMMD.js → promotion-detail-6D6CP457.js} +19 -19
  200. package/dist/{promotion-list-C3SKV5BJ.js → promotion-list-TCRTBVR6.js} +4 -4
  201. package/dist/{refund-reason-create-2KEQFOID.js → refund-reason-create-6RPQHIJI.js} +16 -16
  202. package/dist/{refund-reason-edit-E7CB7SM3.js → refund-reason-edit-W2TVZB3N.js} +16 -16
  203. package/dist/{refund-reason-list-PAWAU6KN.js → refund-reason-list-TS6JWYS4.js} +27 -27
  204. package/dist/{region-metadata-723RQGHS.js → region-metadata-TNSJDCBM.js} +19 -19
  205. package/dist/{reservation-create-Y3HG4AZA.js → reservation-create-2TDZAX5A.js} +2 -2
  206. package/dist/{reservation-detail-HQMADZ56.js → reservation-detail-KFOVTTFH.js} +18 -18
  207. package/dist/{reservation-list-YKC3JJ6K.js → reservation-list-K4RPXJTO.js} +3 -3
  208. package/dist/{reservation-metadata-UG4YTEMY.js → reservation-metadata-HBFAVVPW.js} +17 -17
  209. package/dist/{reset-password-2VNU52CE.js → reset-password-7UH4IQ6R.js} +1 -1
  210. package/dist/{return-reason-list-YH3HHTLJ.js → return-reason-list-WBLPUYD4.js} +14 -14
  211. package/dist/{sales-channel-add-products-IOS5FT56.js → sales-channel-add-products-IHGDKRKH.js} +21 -21
  212. package/dist/{sales-channel-create-BSNCLZWR.js → sales-channel-create-MPZCRQBT.js} +2 -2
  213. package/dist/{sales-channel-detail-6T4M2IEH.js → sales-channel-detail-QCFO7VUA.js} +22 -22
  214. package/dist/{sales-channel-edit-FUDXMZYV.js → sales-channel-edit-GILK4QK3.js} +2 -2
  215. package/dist/{sales-channel-list-GYLGH4U7.js → sales-channel-list-YNHR5EHL.js} +17 -17
  216. package/dist/{sales-channel-metadata-H6RSHKVP.js → sales-channel-metadata-OEQVWJRQ.js} +16 -16
  217. package/dist/{shipping-option-type-create-QAOW7753.js → shipping-option-type-create-SMXDCF6I.js} +16 -16
  218. package/dist/{shipping-option-type-detail-QGWVDTDU.js → shipping-option-type-detail-MO3YRUVR.js} +18 -18
  219. package/dist/{shipping-option-type-edit-WXYBDRNY.js → shipping-option-type-edit-KO64TZS6.js} +16 -16
  220. package/dist/{shipping-option-type-list-YSWP6DSC.js → shipping-option-type-list-6C26GWDM.js} +18 -18
  221. package/dist/{shipping-profile-metadata-UE53IA3J.js → shipping-profile-metadata-FLTMLAZN.js} +16 -16
  222. package/dist/{store-bulk-edit-AMSI34AW.js → store-bulk-edit-LW6ABDJK.js} +2 -2
  223. package/dist/{store-create-WNFRHXWR.js → store-create-STR6YNFJ.js} +19 -19
  224. package/dist/{store-details-4KYA642K.js → store-details-3U4OEFWC.js} +27 -41
  225. package/dist/{store-edit-GWHK5PX5.js → store-edit-KBFFB2DI.js} +6 -6
  226. package/dist/{store-list-SUFT46IY.js → store-list-PJ3U254I.js} +23 -23
  227. package/dist/{store-member-invite-MUSU7EQ7.js → store-member-invite-AKH3KHMF.js} +1 -1
  228. package/dist/{tax-region-create-3KVECMFN.js → tax-region-create-I2ZGT2PH.js} +17 -17
  229. package/dist/{tax-region-detail-AOT4X4DZ.js → tax-region-detail-LVN5XSN5.js} +18 -18
  230. package/dist/{tax-region-edit-5T7VHKIA.js → tax-region-edit-4PJV5F5X.js} +16 -16
  231. package/dist/{tax-region-metadata-RSZCJGJT.js → tax-region-metadata-EYRFMJLL.js} +16 -16
  232. package/dist/{tax-region-province-detail-XEMIX5SQ.js → tax-region-province-detail-MTHKW7LW.js} +18 -18
  233. package/dist/{tax-region-tax-override-create-74C24OCP.js → tax-region-tax-override-create-OGW3MPBD.js} +31 -31
  234. package/dist/{tax-region-tax-override-edit-KSQI4ITI.js → tax-region-tax-override-edit-LTZCYN4Y.js} +33 -33
  235. package/dist/{user-detail-W7DGVXDZ.js → user-detail-2OTVNTCL.js} +1 -1
  236. package/dist/{user-metadata-3AFZX3DM.js → user-metadata-GIR3A7WO.js} +16 -16
  237. package/package.json +2 -2
  238. package/dist/chunk-IEPNHH7Z.js +0 -170
  239. package/dist/chunk-QSGR43JM.js +0 -30
  240. package/dist/chunk-RAWXS763.js +0 -652
  241. package/dist/chunk-RQ4NMLSS.js +0 -8
  242. package/dist/chunk-U7XILJH6.js +0 -423
  243. package/dist/product-create-option-NIAP75EE.js +0 -130
  244. package/dist/product-create-variant-KKOMOEDX.js +0 -60
  245. package/dist/product-edit-option-OZUZGMIM.js +0 -166
  246. package/dist/product-prices-R5JOHVGS.js +0 -267
  247. package/dist/product-stock-EIP2XJUR.js +0 -545
  248. package/dist/product-variant-manage-inventory-items-Q5MJG3EJ.js +0 -337
  249. package/dist/{chunk-WVKVPGJW.js → chunk-FNKBJCNF.js} +3 -3
  250. package/dist/{chunk-RQPDD3RI.js → chunk-NUC27ELX.js} +3 -3
  251. package/dist/{promotion-add-campaign-O3RTMS3W.js → promotion-add-campaign-S3JJSFHT.js} +2 -2
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useReturnReasonTableColumns
3
3
  } from "./chunk-5A4JNOK3.js";
4
- import {
5
- useReturnReasonTableQuery
6
- } from "./chunk-YPESX7CE.js";
7
4
  import {
8
5
  useDeleteReturnReason,
9
6
  useReturnReasons
10
7
  } from "./chunk-2FGRDEAD.js";
8
+ import {
9
+ useReturnReasonTableQuery
10
+ } from "./chunk-WRVGLMRW.js";
11
11
  import {
12
12
  _DataTable,
13
13
  useDataTable
@@ -3,7 +3,7 @@ import {
3
3
  CategoryHeader,
4
4
  ProductStatusCell,
5
5
  ProductStatusHeader
6
- } from "./chunk-6RQR3B6T.js";
6
+ } from "./chunk-UKDC2AQR.js";
7
7
  import {
8
8
  ProductCell,
9
9
  ProductHeader
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useDeleteShippingOptionTypeAction
3
- } from "./chunk-BE6JLTMI.js";
3
+ } from "./chunk-UFGVU7RF.js";
4
4
  import {
5
5
  useDateTableFilters
6
6
  } from "./chunk-26OOAKQ6.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-THHRRYRS.js";
23
23
  import {
24
24
  useShippingOptionTypes
25
- } from "./chunk-AXTQMIIK.js";
25
+ } from "./chunk-46A3QXAL.js";
26
26
  import {
27
27
  ActionMenu
28
28
  } from "./chunk-BDGZ4EQO.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-54RTJBYO.js";
8
8
  import {
9
9
  PRODUCT_DETAIL_QUERY
10
- } from "./chunk-RQ4NMLSS.js";
10
+ } from "./chunk-GVEF6UDT.js";
11
11
  import {
12
12
  TwoColumnPage
13
13
  } from "./chunk-E74OUNA3.js";
@@ -19,19 +19,23 @@ import {
19
19
  } from "./chunk-LYZT5REU.js";
20
20
  import {
21
21
  require_dist
22
- } from "./chunk-FMRP2CNF.js";
22
+ } from "./chunk-F5H5JZQZ.js";
23
23
  import {
24
24
  useQueryParams
25
25
  } from "./chunk-THHRRYRS.js";
26
26
  import {
27
27
  useProductTag
28
- } from "./chunk-AXTQMIIK.js";
28
+ } from "./chunk-46A3QXAL.js";
29
+ import {
30
+ productAttributesQueryKeys,
31
+ useProductAttribute
32
+ } from "./chunk-533GMKEG.js";
29
33
  import {
30
34
  useProductType
31
35
  } from "./chunk-46M463BR.js";
32
36
  import {
33
37
  useCollection
34
- } from "./chunk-XZZTC7E5.js";
38
+ } from "./chunk-2ZRWLCYP.js";
35
39
  import {
36
40
  useSeller
37
41
  } from "./chunk-LEG67A2R.js";
@@ -40,10 +44,7 @@ import {
40
44
  } from "./chunk-BDGZ4EQO.js";
41
45
  import {
42
46
  useProductCategory
43
- } from "./chunk-H5PYBIOZ.js";
44
- import {
45
- PRODUCT_VARIANT_IDS_KEY
46
- } from "./chunk-YGAX72XV.js";
47
+ } from "./chunk-EB5QHYKL.js";
47
48
  import {
48
49
  TwoColumnPageSkeleton
49
50
  } from "./chunk-INNFZYX2.js";
@@ -59,8 +60,9 @@ import {
59
60
  useRejectProduct,
60
61
  useRemoveAttributeFromProduct,
61
62
  useRequestProductChanges,
62
- useUpdateProduct
63
- } from "./chunk-2YYXP6XI.js";
63
+ useUpdateProduct,
64
+ variantsQueryKeys
65
+ } from "./chunk-ZRFWXNT3.js";
64
66
  import {
65
67
  sdk
66
68
  } from "./chunk-ZBWL72TB.js";
@@ -86,7 +88,7 @@ import {
86
88
  isReferenceField,
87
89
  partitionProductChangeActions
88
90
  } from "@mercurjs/dashboard-shared";
89
- import { useQuery } from "@tanstack/react-query";
91
+ import { useQueries, useQuery } from "@tanstack/react-query";
90
92
  import { useTranslation as useTranslation2 } from "react-i18next";
91
93
 
92
94
  // src/components/common/confirm-prompt/confirm-prompt.tsx
@@ -170,6 +172,7 @@ var ConfirmPrompt = ({
170
172
 
171
173
  // src/pages/products/product-detail/components/product-active-edit-section/product-active-edit-section.tsx
172
174
  import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
175
+ var VARIANT_LOOKUP_FIELDS = "id,title,sku,*images";
173
176
  var ImageStrip = ({
174
177
  images,
175
178
  faded
@@ -313,13 +316,92 @@ var FieldRow = ({ diff }) => {
313
316
  )
314
317
  ] });
315
318
  };
316
- var ActionLine = ({ action }) => {
319
+ var AttributeActionLine = ({
320
+ attributeId,
321
+ valueIds
322
+ }) => {
323
+ const { product_attribute } = useProductAttribute(attributeId);
324
+ const name = product_attribute?.name ?? attributeId;
325
+ const values = product_attribute?.values ?? [];
326
+ const selectedNames = valueIds && valueIds.length ? valueIds.map((id) => {
327
+ const match = values.find((v) => v.id === id);
328
+ return match?.name ?? id;
329
+ }) : [];
330
+ return /* @__PURE__ */ jsxs2(Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: [
331
+ /* @__PURE__ */ jsx2("span", { className: "font-medium text-ui-fg-base", children: name }),
332
+ selectedNames.length > 0 && `: ${selectedNames.join(", ")}`
333
+ ] });
334
+ };
335
+ var VariantActionLine = ({
336
+ title,
337
+ images
338
+ }) => /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-3", children: [
339
+ images && images.length > 0 && /* @__PURE__ */ jsx2(ImageStrip, { images }),
340
+ /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: /* @__PURE__ */ jsx2("span", { className: "font-medium text-ui-fg-base", children: title }) })
341
+ ] });
342
+ var ActionLine = ({
343
+ action,
344
+ variantsById
345
+ }) => {
317
346
  const { t } = useTranslation2();
347
+ const details = action.details ?? {};
348
+ if (action.action === import_types.ProductChangeActionType.ATTRIBUTE_ADD || action.action === import_types.ProductChangeActionType.ATTRIBUTE_REMOVE) {
349
+ if (!details.attribute_id) return null;
350
+ return /* @__PURE__ */ jsx2(
351
+ AttributeActionLine,
352
+ {
353
+ attributeId: details.attribute_id,
354
+ valueIds: action.action === import_types.ProductChangeActionType.ATTRIBUTE_ADD ? details.attribute_value_ids : void 0
355
+ }
356
+ );
357
+ }
358
+ const variantFallback = t("fields.variant", { defaultValue: "Variant" });
359
+ if (action.action === import_types.ProductChangeActionType.VARIANT_ADD) {
360
+ const title = details.variant?.title || details.variant?.sku || variantFallback;
361
+ return /* @__PURE__ */ jsx2(VariantActionLine, { title });
362
+ }
363
+ if (action.action === import_types.ProductChangeActionType.VARIANT_REMOVE) {
364
+ const variantId = details.variant_id ?? "";
365
+ const found = variantId ? variantsById.get(variantId) : void 0;
366
+ const title = found?.title || found?.sku || variantId || variantFallback;
367
+ const images = isImageList(found?.images) ? found?.images : void 0;
368
+ return /* @__PURE__ */ jsx2(VariantActionLine, { title, images });
369
+ }
318
370
  const label = describeProductChangeAction(action, {
319
- variant: t("fields.variant", { defaultValue: "Variant" })
371
+ variant: variantFallback
320
372
  });
321
373
  return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: label });
322
374
  };
375
+ var VariantUpdateBlock = ({
376
+ variantId,
377
+ diffs,
378
+ variantsById
379
+ }) => {
380
+ const { t } = useTranslation2();
381
+ const found = variantsById.get(variantId);
382
+ const title = found?.title || found?.sku || variantId || t("fields.variant", { defaultValue: "Variant" });
383
+ const images = isImageList(found?.images) ? found?.images : void 0;
384
+ return /* @__PURE__ */ jsxs2(
385
+ "div",
386
+ {
387
+ className: "flex flex-col gap-y-3",
388
+ "data-testid": `product-active-edit-variant-${variantId}`,
389
+ children: [
390
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-3", children: [
391
+ images && images.length > 0 && /* @__PURE__ */ jsx2(ImageStrip, { images }),
392
+ /* @__PURE__ */ jsxs2(Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: [
393
+ /* @__PURE__ */ jsx2("span", { className: "font-medium text-ui-fg-base", children: t("products.edits.panel.variantUpdated", {
394
+ defaultValue: "Variant updated"
395
+ }) }),
396
+ ": ",
397
+ title
398
+ ] })
399
+ ] }),
400
+ /* @__PURE__ */ jsx2("div", { className: "flex flex-col gap-y-4 pl-1", children: diffs.map((diff, idx) => /* @__PURE__ */ jsx2(FieldRow, { diff }, `${variantId}-${diff.field}-${idx}`)) })
401
+ ]
402
+ }
403
+ );
404
+ };
323
405
  var ProductActiveEditSection = ({
324
406
  product
325
407
  }) => {
@@ -339,13 +421,80 @@ var ProductActiveEditSection = ({
339
421
  () => partitionProductChangeActions(product_change?.actions ?? []),
340
422
  [product_change]
341
423
  );
424
+ const productUpdated = useMemo(
425
+ () => updated.filter((d) => !d.variant_id),
426
+ [updated]
427
+ );
428
+ const variantsUpdated = useMemo(() => {
429
+ const groups = /* @__PURE__ */ new Map();
430
+ for (const diff of updated) {
431
+ if (!diff.variant_id) continue;
432
+ const bucket = groups.get(diff.variant_id) ?? [];
433
+ bucket.push(diff);
434
+ groups.set(diff.variant_id, bucket);
435
+ }
436
+ return groups;
437
+ }, [updated]);
438
+ const attributeIds = useMemo(() => {
439
+ const ids = /* @__PURE__ */ new Set();
440
+ for (const action of [...added, ...removed]) {
441
+ if (action.action === import_types.ProductChangeActionType.ATTRIBUTE_ADD || action.action === import_types.ProductChangeActionType.ATTRIBUTE_REMOVE) {
442
+ const details = action.details ?? {};
443
+ if (details.attribute_id) ids.add(details.attribute_id);
444
+ }
445
+ }
446
+ return Array.from(ids);
447
+ }, [added, removed]);
448
+ const attributeQueries = useQueries({
449
+ queries: attributeIds.map((id) => ({
450
+ queryKey: productAttributesQueryKeys.detail(id),
451
+ queryFn: () => sdk.admin.productAttributes.$id.query({ $id: id })
452
+ }))
453
+ });
454
+ const isLoadingAttributes = attributeQueries.some((q) => q.isPending);
455
+ const variantIds = useMemo(() => {
456
+ const ids = /* @__PURE__ */ new Set();
457
+ for (const action of removed) {
458
+ if (action.action === import_types.ProductChangeActionType.VARIANT_REMOVE) {
459
+ const details = action.details ?? {};
460
+ if (details.variant_id) ids.add(details.variant_id);
461
+ }
462
+ }
463
+ for (const diff of updated) {
464
+ if (diff.variant_id) ids.add(diff.variant_id);
465
+ }
466
+ return Array.from(ids);
467
+ }, [removed, updated]);
468
+ const variantQueryInput = { fields: VARIANT_LOOKUP_FIELDS };
469
+ const variantQueries = useQueries({
470
+ queries: variantIds.map((variantId) => ({
471
+ queryKey: variantsQueryKeys.detail(variantId, variantQueryInput),
472
+ queryFn: () => sdk.admin.products.$id.variants.$variantId.query({
473
+ $id: product.id,
474
+ $variantId: variantId,
475
+ ...variantQueryInput
476
+ })
477
+ }))
478
+ });
479
+ const isLoadingVariants = variantQueries.some((q) => q.isPending);
480
+ const variantsById = useMemo(() => {
481
+ const map = /* @__PURE__ */ new Map();
482
+ for (const query of variantQueries) {
483
+ const variant = query.data?.variant;
484
+ if (variant?.id) map.set(variant.id, variant);
485
+ }
486
+ return map;
487
+ }, [variantQueries]);
342
488
  if (isError || !product_change) {
343
489
  return null;
344
490
  }
345
491
  if (product_change.status !== import_types.ProductChangeStatus.PENDING) {
346
492
  return null;
347
493
  }
348
- const hasContent = updated.length > 0 || added.length > 0 || removed.length > 0 || deleteRequested;
494
+ if (isLoadingAttributes || isLoadingVariants) {
495
+ return null;
496
+ }
497
+ const hasContent = productUpdated.length > 0 || variantsUpdated.size > 0 || added.length > 0 || removed.length > 0 || deleteRequested;
349
498
  const handleConfirm = async (note) => {
350
499
  try {
351
500
  await confirmChange({ internal_note: note });
@@ -378,7 +527,20 @@ var ProductActiveEditSection = ({
378
527
  store: requesterSeller?.name ?? t("products.request.fallbackStore")
379
528
  }) }) }),
380
529
  hasContent && /* @__PURE__ */ jsxs2(Fragment2, { children: [
381
- updated.length > 0 && /* @__PURE__ */ jsxs2("div", { className: "flex items-start gap-4 px-6 py-4", children: [
530
+ productUpdated.length > 0 && /* @__PURE__ */ jsxs2("div", { className: "flex items-start gap-4 px-6 py-4", children: [
531
+ /* @__PURE__ */ jsx2(
532
+ Text,
533
+ {
534
+ size: "small",
535
+ weight: "plus",
536
+ leading: "compact",
537
+ className: "text-ui-fg-subtle w-[160px] shrink-0",
538
+ children: t("labels.updated")
539
+ }
540
+ ),
541
+ /* @__PURE__ */ jsx2("div", { className: "flex flex-1 flex-col gap-y-4", children: productUpdated.map((diff, idx) => /* @__PURE__ */ jsx2(FieldRow, { diff }, `${diff.field}-${idx}`)) })
542
+ ] }),
543
+ variantsUpdated.size > 0 && /* @__PURE__ */ jsxs2("div", { className: "flex items-start gap-4 px-6 py-4", children: [
382
544
  /* @__PURE__ */ jsx2(
383
545
  Text,
384
546
  {
@@ -389,7 +551,17 @@ var ProductActiveEditSection = ({
389
551
  children: t("labels.updated")
390
552
  }
391
553
  ),
392
- /* @__PURE__ */ jsx2("div", { className: "flex flex-1 flex-col gap-y-4", children: updated.map((diff, idx) => /* @__PURE__ */ jsx2(FieldRow, { diff }, `${diff.field}-${idx}`)) })
554
+ /* @__PURE__ */ jsx2("div", { className: "flex flex-1 flex-col gap-y-6", children: Array.from(variantsUpdated.entries()).map(
555
+ ([variantId, diffs]) => /* @__PURE__ */ jsx2(
556
+ VariantUpdateBlock,
557
+ {
558
+ variantId,
559
+ diffs,
560
+ variantsById
561
+ },
562
+ variantId
563
+ )
564
+ ) })
393
565
  ] }),
394
566
  added.length > 0 && /* @__PURE__ */ jsxs2("div", { className: "flex items-start gap-4 px-6 py-4", children: [
395
567
  /* @__PURE__ */ jsx2(
@@ -402,7 +574,14 @@ var ProductActiveEditSection = ({
402
574
  children: t("labels.added")
403
575
  }
404
576
  ),
405
- /* @__PURE__ */ jsx2("div", { className: "flex flex-1 flex-col gap-y-2", children: added.map((action) => /* @__PURE__ */ jsx2(ActionLine, { action }, action.id)) })
577
+ /* @__PURE__ */ jsx2("div", { className: "flex flex-1 flex-col gap-y-2", children: added.map((action) => /* @__PURE__ */ jsx2(
578
+ ActionLine,
579
+ {
580
+ action,
581
+ variantsById
582
+ },
583
+ action.id
584
+ )) })
406
585
  ] }),
407
586
  removed.length > 0 && /* @__PURE__ */ jsxs2("div", { className: "flex items-start gap-4 px-6 py-4", children: [
408
587
  /* @__PURE__ */ jsx2(
@@ -415,7 +594,14 @@ var ProductActiveEditSection = ({
415
594
  children: t("labels.removed")
416
595
  }
417
596
  ),
418
- /* @__PURE__ */ jsx2("div", { className: "flex flex-1 flex-col gap-y-2", children: removed.map((action) => /* @__PURE__ */ jsx2(ActionLine, { action }, action.id)) })
597
+ /* @__PURE__ */ jsx2("div", { className: "flex flex-1 flex-col gap-y-2", children: removed.map((action) => /* @__PURE__ */ jsx2(
598
+ ActionLine,
599
+ {
600
+ action,
601
+ variantsById
602
+ },
603
+ action.id
604
+ )) })
419
605
  ] }),
420
606
  deleteRequested && /* @__PURE__ */ jsxs2("div", { className: "flex items-start gap-4 px-6 py-4", children: [
421
607
  /* @__PURE__ */ jsx2(
@@ -854,8 +1040,6 @@ var productStatusColor = (status) => {
854
1040
  return "orange";
855
1041
  case "published":
856
1042
  return "green";
857
- case "requires_action":
858
- return "blue";
859
1043
  case "rejected":
860
1044
  return "red";
861
1045
  default:
@@ -1228,20 +1412,6 @@ var ProductOrganizationSection = ({
1228
1412
  "data-testid": "product-type-row"
1229
1413
  }
1230
1414
  ),
1231
- /* @__PURE__ */ jsx7(
1232
- SectionRow,
1233
- {
1234
- title: t("fields.brand"),
1235
- value: product.brand ? /* @__PURE__ */ jsx7(
1236
- OrganizationTag,
1237
- {
1238
- label: product.brand.name,
1239
- to: `/settings/product-brands/${product.brand.id}`
1240
- }
1241
- ) : void 0,
1242
- "data-testid": "product-brand-row"
1243
- }
1244
- ),
1245
1415
  /* @__PURE__ */ jsx7(
1246
1416
  SectionRow,
1247
1417
  {
@@ -1288,12 +1458,11 @@ var OrganizationTag = ({ label, to }) => {
1288
1458
 
1289
1459
  // src/pages/products/product-detail/components/product-variant-section/product-variant-section.tsx
1290
1460
  import { useCallback, useMemo as useMemo2 } from "react";
1291
- import { Buildings, Component, PencilSquare as PencilSquare4, Trash as Trash3 } from "@medusajs/icons";
1461
+ import { PencilSquare as PencilSquare4, Trash as Trash3 } from "@medusajs/icons";
1292
1462
  import {
1293
1463
  Badge as Badge3,
1294
1464
  Container as Container7,
1295
1465
  createDataTableColumnHelper,
1296
- createDataTableCommandHelper,
1297
1466
  Tooltip as Tooltip4,
1298
1467
  usePrompt as usePrompt4
1299
1468
  } from "@medusajs/ui";
@@ -1313,7 +1482,6 @@ var ProductVariantSection = ({
1313
1482
  );
1314
1483
  const columns = useColumns(product);
1315
1484
  const filters = useFilters();
1316
- const commands = useCommands();
1317
1485
  const { variants, count, isPending, isError, error } = useProductVariants(
1318
1486
  product.id,
1319
1487
  {
@@ -1323,7 +1491,7 @@ var ProductVariantSection = ({
1323
1491
  limit: PAGE_SIZE,
1324
1492
  created_at: created_at ? JSON.parse(created_at) : void 0,
1325
1493
  updated_at: updated_at ? JSON.parse(updated_at) : void 0,
1326
- fields: "title,created_at,updated_at,*attribute_values,*attribute_values.attribute"
1494
+ fields: "title,created_at,updated_at,*options,*options.option"
1327
1495
  },
1328
1496
  {
1329
1497
  placeholderData: keepPreviousData
@@ -1358,26 +1526,6 @@ var ProductVariantSection = ({
1358
1526
  label: t("actions.create"),
1359
1527
  to: `variants/create`
1360
1528
  },
1361
- actionMenu: {
1362
- groups: [
1363
- {
1364
- actions: [
1365
- {
1366
- label: t("products.editPrices"),
1367
- to: `prices`,
1368
- icon: /* @__PURE__ */ jsx8(PencilSquare4, {})
1369
- },
1370
- {
1371
- label: t("inventory.stock.action"),
1372
- to: `stock`,
1373
- icon: /* @__PURE__ */ jsx8(Buildings, {})
1374
- }
1375
- ]
1376
- }
1377
- ],
1378
- "data-testid": "product-variant-section-action-menu"
1379
- },
1380
- commands,
1381
1529
  prefix: PREFIX
1382
1530
  }
1383
1531
  ) }) });
@@ -1416,44 +1564,8 @@ var useColumns = (product) => {
1416
1564
  },
1417
1565
  [mutateAsync, prompt, t]
1418
1566
  );
1419
- const optionColumns = useMemo2(() => {
1420
- if (!product?.options) {
1421
- return [];
1422
- }
1423
- return product.options.map((option) => {
1424
- return columnHelper.display({
1425
- id: option.id,
1426
- header: option.title,
1427
- cell: ({ row }) => {
1428
- const variantOpt = row.original.options?.find(
1429
- (opt) => opt.option_id === option.id
1430
- );
1431
- if (!variantOpt) {
1432
- return /* @__PURE__ */ jsx8("span", { className: "text-ui-fg-muted", children: "-" });
1433
- }
1434
- return /* @__PURE__ */ jsx8(
1435
- "div",
1436
- {
1437
- className: "flex items-center",
1438
- "data-testid": `product-variant-option-${option.id}-${row.original.id}`,
1439
- children: /* @__PURE__ */ jsx8(Tooltip4, { content: variantOpt.value, children: /* @__PURE__ */ jsx8(
1440
- Badge3,
1441
- {
1442
- size: "2xsmall",
1443
- title: variantOpt.value,
1444
- className: "inline-flex min-w-[20px] max-w-[140px] items-center justify-center overflow-hidden truncate",
1445
- "data-testid": `product-variant-option-badge-${option.id}-${row.original.id}-${variantOpt.value}`,
1446
- children: variantOpt.value
1447
- }
1448
- ) })
1449
- }
1450
- );
1451
- }
1452
- });
1453
- });
1454
- }, [product]);
1455
1567
  const attributeColumns = useMemo2(() => {
1456
- const variantAttributes = product?.variant_attributes?.filter((attr) => attr.is_variant_axis);
1568
+ const variantAttributes = product?.attributes?.filter((attr) => attr.is_variant_axis);
1457
1569
  if (!variantAttributes?.length) {
1458
1570
  return [];
1459
1571
  }
@@ -1462,11 +1574,10 @@ var useColumns = (product) => {
1462
1574
  id: `attribute-${attribute.id}`,
1463
1575
  header: attribute.name,
1464
1576
  cell: ({ row }) => {
1465
- const variant = row.original;
1466
- const matches = variant.attribute_values?.filter(
1467
- (v) => v.attribute?.id === attribute.id
1468
- ) ?? [];
1469
- if (!matches.length) {
1577
+ const variantOpt = row.original.options?.find(
1578
+ (opt) => opt.option?.title === attribute.name
1579
+ );
1580
+ if (!variantOpt?.value) {
1470
1581
  return /* @__PURE__ */ jsx8("span", { className: "text-ui-fg-muted", children: "-" });
1471
1582
  }
1472
1583
  return /* @__PURE__ */ jsx8(
@@ -1474,16 +1585,16 @@ var useColumns = (product) => {
1474
1585
  {
1475
1586
  className: "flex flex-wrap items-center gap-1",
1476
1587
  "data-testid": `product-variant-attribute-${attribute.id}-${row.original.id}`,
1477
- children: matches.map((value) => /* @__PURE__ */ jsx8(Tooltip4, { content: value.name, children: /* @__PURE__ */ jsx8(
1588
+ children: /* @__PURE__ */ jsx8(Tooltip4, { content: variantOpt.value, children: /* @__PURE__ */ jsx8(
1478
1589
  Badge3,
1479
1590
  {
1480
1591
  size: "2xsmall",
1481
- title: value.name,
1592
+ title: variantOpt.value,
1482
1593
  className: "inline-flex min-w-[20px] max-w-[140px] items-center justify-center overflow-hidden truncate",
1483
- "data-testid": `product-variant-attribute-badge-${attribute.id}-${row.original.id}-${value.name}`,
1484
- children: value.name
1594
+ "data-testid": `product-variant-attribute-badge-${attribute.id}-${row.original.id}-${variantOpt.value}`,
1595
+ children: variantOpt.value
1485
1596
  }
1486
- ) }, value.id))
1597
+ ) })
1487
1598
  }
1488
1599
  );
1489
1600
  }
@@ -1516,38 +1627,6 @@ var useColumns = (product) => {
1516
1627
  onClick: () => handleDelete(variant.id, variant.title)
1517
1628
  }
1518
1629
  ];
1519
- const inventoryItemsCount = variant.inventory_items?.length || 0;
1520
- switch (inventoryItemsCount) {
1521
- case 0:
1522
- break;
1523
- case 1: {
1524
- const inventoryItemLink = `/inventory/${variant.inventory_items[0].inventory.id}`;
1525
- mainActions.push({
1526
- label: t("products.variant.inventory.actions.inventoryItems"),
1527
- onClick: () => {
1528
- navigate(inventoryItemLink);
1529
- },
1530
- icon: /* @__PURE__ */ jsx8(Buildings, {})
1531
- });
1532
- break;
1533
- }
1534
- default: {
1535
- const ids = variant.inventory_items?.map((i) => i.inventory?.id);
1536
- if (!ids || ids.length === 0) {
1537
- break;
1538
- }
1539
- const inventoryKitLink = `/inventory?${new URLSearchParams({
1540
- id: ids.join(",")
1541
- }).toString()}`;
1542
- mainActions.push({
1543
- label: t("products.variant.inventory.actions.inventoryKit"),
1544
- onClick: () => {
1545
- navigate(inventoryKitLink);
1546
- },
1547
- icon: /* @__PURE__ */ jsx8(Component, {})
1548
- });
1549
- }
1550
- }
1551
1630
  return [mainActions, secondaryActions];
1552
1631
  },
1553
1632
  [handleDelete, navigate, t, tableSearchParams]
@@ -1560,14 +1639,13 @@ var useColumns = (product) => {
1560
1639
  sortAscLabel: t("filters.sorting.alphabeticallyAsc"),
1561
1640
  sortDescLabel: t("filters.sorting.alphabeticallyDesc")
1562
1641
  }),
1563
- ...optionColumns,
1564
1642
  ...attributeColumns,
1565
1643
  ...dateColumns,
1566
1644
  columnHelper.action({
1567
1645
  actions: getActions
1568
1646
  })
1569
1647
  ];
1570
- }, [t, optionColumns, attributeColumns, dateColumns, getActions]);
1648
+ }, [t, attributeColumns, dateColumns, getActions]);
1571
1649
  };
1572
1650
  var useFilters = () => {
1573
1651
  const dateFilters = useDataTableDateFilters();
@@ -1577,22 +1655,6 @@ var useFilters = () => {
1577
1655
  ];
1578
1656
  }, [dateFilters]);
1579
1657
  };
1580
- var commandHelper = createDataTableCommandHelper();
1581
- var useCommands = () => {
1582
- const { t } = useTranslation8();
1583
- const navigate = useNavigate2();
1584
- return [
1585
- commandHelper.command({
1586
- label: t("inventory.stock.action"),
1587
- shortcut: "i",
1588
- action: async (selection) => {
1589
- navigate(
1590
- `stock?${PRODUCT_VARIANT_IDS_KEY}=${Object.keys(selection).join(",")}`
1591
- );
1592
- }
1593
- })
1594
- ];
1595
- };
1596
1658
 
1597
1659
  // src/pages/products/product-detail/product-detail.tsx
1598
1660
  import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-KOURHC2N.js";
7
7
  import {
8
8
  useCollectionTableQuery
9
- } from "./chunk-YPESX7CE.js";
9
+ } from "./chunk-WRVGLMRW.js";
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  useCollections,
19
19
  useDeleteCollection
20
- } from "./chunk-XZZTC7E5.js";
20
+ } from "./chunk-2ZRWLCYP.js";
21
21
  import {
22
22
  ActionMenu
23
23
  } from "./chunk-BDGZ4EQO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPromotionStatus
3
- } from "./chunk-AB2LHP3M.js";
3
+ } from "./chunk-GIVLDQXN.js";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  returnsQueryKeys
3
- } from "./chunk-GKW445WA.js";
3
+ } from "./chunk-3L7M4E7W.js";
4
4
  import {
5
5
  ordersQueryKeys
6
- } from "./chunk-B3EEDC47.js";
6
+ } from "./chunk-N3BYBEDV.js";
7
7
  import {
8
8
  queryClient
9
9
  } from "./chunk-RHKRREUU.js";
@@ -65,7 +65,6 @@ var OFFER_DETAIL_FIELDS = [
65
65
  "variant_id",
66
66
  "seller_id",
67
67
  "shipping_profile_id",
68
- "price_set_id",
69
68
  "metadata",
70
69
  "created_at",
71
70
  "updated_at",
@@ -80,15 +79,14 @@ var OFFER_DETAIL_FIELDS = [
80
79
  "shipping_profile.id",
81
80
  "shipping_profile.name",
82
81
  "shipping_profile.type",
83
- "price_set.id",
84
- "price_set.prices.id",
85
- "price_set.prices.amount",
86
- "price_set.prices.currency_code",
87
- "price_set.prices.min_quantity",
88
- "price_set.prices.max_quantity",
89
- "price_set.prices.rules_count",
90
- "price_set.prices.price_rules.attribute",
91
- "price_set.prices.price_rules.value",
82
+ "prices.id",
83
+ "prices.amount",
84
+ "prices.currency_code",
85
+ "prices.min_quantity",
86
+ "prices.max_quantity",
87
+ "prices.rules_count",
88
+ "prices.price_rules.attribute",
89
+ "prices.price_rules.value",
92
90
  "inventory_item_link.id",
93
91
  "inventory_item_link.required_quantity",
94
92
  "inventory_item_link.inventory_item_id",