@medusajs/dashboard 2.12.2-snapshot-20251207121122 → 2.12.2-snapshot-20251207203158

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 (250) hide show
  1. package/dist/{add-campaign-promotions-JQKPED4U.mjs → add-campaign-promotions-I7HDYMBX.mjs} +1 -2
  2. package/dist/{adjust-inventory-4UKAL3IT.mjs → adjust-inventory-SDWITRN3.mjs} +3 -5
  3. package/dist/{api-key-management-create-6EQCRHTT.mjs → api-key-management-create-FHLY4DD4.mjs} +4 -5
  4. package/dist/{api-key-management-detail-ILTYVBJ5.mjs → api-key-management-detail-JQBB7UNB.mjs} +11 -11
  5. package/dist/{api-key-management-edit-6HBLLOLH.mjs → api-key-management-edit-5RQXMVDW.mjs} +5 -7
  6. package/dist/{api-key-management-list-FTLC3ELT.mjs → api-key-management-list-RGLZMUCB.mjs} +3 -3
  7. package/dist/{api-key-management-sales-channels-YLYYJAKB.mjs → api-key-management-sales-channels-327HJKDQ.mjs} +6 -7
  8. package/dist/app.css +3 -0
  9. package/dist/app.js +4708 -5301
  10. package/dist/app.mjs +11 -11
  11. package/dist/{campaign-budget-edit-6DMZGUCI.mjs → campaign-budget-edit-H2KQKD7B.mjs} +2 -4
  12. package/dist/{campaign-configuration-UNFRB5HR.mjs → campaign-configuration-A452A22M.mjs} +2 -4
  13. package/dist/{campaign-create-QXG7PD3S.mjs → campaign-create-LHL7FKQK.mjs} +2 -3
  14. package/dist/{campaign-detail-NIMMITXO.mjs → campaign-detail-DLPAADFC.mjs} +9 -9
  15. package/dist/{campaign-edit-HN4US7DV.mjs → campaign-edit-LZV56AYF.mjs} +2 -4
  16. package/dist/{categories-metadata-ZKNXQM37.mjs → categories-metadata-IN4T3BQY.mjs} +11 -12
  17. package/dist/{category-create-HRJJCBMA.mjs → category-create-U277OGU4.mjs} +3 -4
  18. package/dist/{category-detail-LVP6O7I6.mjs → category-detail-MJYZEZJX.mjs} +12 -12
  19. package/dist/{category-edit-2UTQ7QJD.mjs → category-edit-I2LT3SZW.mjs} +4 -6
  20. package/dist/{category-list-IJ3DLPYQ.mjs → category-list-AH2EGTI7.mjs} +3 -3
  21. package/dist/{category-organize-OE7VJVVT.mjs → category-organize-PNR7ZHPM.mjs} +3 -4
  22. package/dist/{category-products-MO5PV7AG.mjs → category-products-UH7BGTSC.mjs} +12 -13
  23. package/dist/{chunk-AF7A24XI.mjs → chunk-34KFHPN6.mjs} +1 -1
  24. package/dist/{chunk-4V2V73YZ.mjs → chunk-3HRJ5XSF.mjs} +3 -5
  25. package/dist/{chunk-WPNZNLRN.mjs → chunk-4GPZRJUJ.mjs} +15 -16
  26. package/dist/{chunk-MWBKAP7W.mjs → chunk-4VNR7DND.mjs} +2 -2
  27. package/dist/{chunk-GV4XPCM5.mjs → chunk-6BP5RSIK.mjs} +4 -18
  28. package/dist/{chunk-D4J3CEWH.mjs → chunk-6VRDTPH2.mjs} +2 -4
  29. package/dist/{chunk-X527GAL2.mjs → chunk-73EHKWNI.mjs} +2 -2
  30. package/dist/{chunk-56TDUOXV.mjs → chunk-7AX6R6G6.mjs} +1 -1
  31. package/dist/{chunk-EMOSYFKR.mjs → chunk-7HL4FXK7.mjs} +204 -206
  32. package/dist/{chunk-L4NOVTH5.mjs → chunk-7V2JZU2B.mjs} +2 -4
  33. package/dist/{chunk-CZFLKMYE.mjs → chunk-ACJ3PPQJ.mjs} +1 -1
  34. package/dist/{chunk-42OOM4DJ.mjs → chunk-AERWK3TJ.mjs} +212 -44
  35. package/dist/{chunk-ETOJCN3Q.mjs → chunk-AH4DORIW.mjs} +1 -1
  36. package/dist/{chunk-ZUPF2AWJ.mjs → chunk-CPF5RDPF.mjs} +1 -1
  37. package/dist/{chunk-REUYEF7L.mjs → chunk-EQBVGH3N.mjs} +1 -1
  38. package/dist/{chunk-WPXYFJEP.mjs → chunk-EUF6RSI7.mjs} +1 -1
  39. package/dist/{chunk-QHRVYT5N.mjs → chunk-FIFVOKTK.mjs} +3 -3
  40. package/dist/{chunk-A6PWH2CK.mjs → chunk-FQDPOKEK.mjs} +1 -1
  41. package/dist/{chunk-DKIUGYWW.mjs → chunk-GN6OCHP4.mjs} +2 -2
  42. package/dist/{chunk-ND5YSIPU.mjs → chunk-HMY4BGRC.mjs} +1 -1
  43. package/dist/{chunk-KWP436SM.mjs → chunk-JJGE3EV6.mjs} +2 -2
  44. package/dist/{chunk-AENRV3N7.mjs → chunk-LEJUZW3P.mjs} +3 -1
  45. package/dist/{chunk-G4BWCU5P.mjs → chunk-M32MJOJN.mjs} +3 -6
  46. package/dist/{chunk-K5QWNI6V.mjs → chunk-N3FCYZV6.mjs} +1 -1
  47. package/dist/{chunk-KLNRCI3K.mjs → chunk-N4O5FAUC.mjs} +1 -1
  48. package/dist/{chunk-O4RZ3Y65.mjs → chunk-NHDFPGQ3.mjs} +1 -1
  49. package/dist/{chunk-LHNU4DYZ.mjs → chunk-PMJJI6GO.mjs} +1 -1
  50. package/dist/{chunk-PCFUZKDS.mjs → chunk-R65S6ZZV.mjs} +4 -1
  51. package/dist/{chunk-VX2HE7O5.mjs → chunk-SFSBLI7G.mjs} +2 -2
  52. package/dist/{chunk-3YPRDSZ6.mjs → chunk-T2ANPJ36.mjs} +1 -1
  53. package/dist/{chunk-KF7ZWW4K.mjs → chunk-T57MRRCF.mjs} +2 -4
  54. package/dist/{chunk-KCWP7RF5.mjs → chunk-TBEGSDLQ.mjs} +1 -1
  55. package/dist/{chunk-AZKMRL4P.mjs → chunk-XBJCK4CT.mjs} +8 -5
  56. package/dist/{chunk-NKDCBX74.mjs → chunk-XHDXZAOR.mjs} +1 -1
  57. package/dist/{chunk-M3CKVBZC.mjs → chunk-XIVBRONM.mjs} +1 -1
  58. package/dist/{collection-add-products-5BHQKPB4.mjs → collection-add-products-F7GTK2YV.mjs} +12 -13
  59. package/dist/{collection-create-S3UK5EKP.mjs → collection-create-WMTSRDDL.mjs} +3 -4
  60. package/dist/{collection-detail-IMDGOIF5.mjs → collection-detail-EZ6UCFMP.mjs} +11 -11
  61. package/dist/{collection-edit-C5X34GX7.mjs → collection-edit-PSVEWWPH.mjs} +4 -6
  62. package/dist/{collection-list-GROVO4YH.mjs → collection-list-YUECGEOO.mjs} +12 -12
  63. package/dist/{collection-metadata-TN5UCQVV.mjs → collection-metadata-XYMR7UIM.mjs} +11 -12
  64. package/dist/{customer-create-XCLZENJS.mjs → customer-create-VL6SIRZ2.mjs} +1 -2
  65. package/dist/{customer-create-address-4HZUIAM7.mjs → customer-create-address-V5C6M52P.mjs} +1 -2
  66. package/dist/{customer-detail-RD4ADZ3C.mjs → customer-detail-7B35STSY.mjs} +10 -10
  67. package/dist/{customer-edit-BW5GVTQI.mjs → customer-edit-WTBPVWOF.mjs} +2 -4
  68. package/dist/{customer-group-add-customers-HUGHHMU6.mjs → customer-group-add-customers-QU4Q56SS.mjs} +1 -2
  69. package/dist/{customer-group-create-6YV7W6TI.mjs → customer-group-create-A3CB3Z4K.mjs} +1 -2
  70. package/dist/{customer-group-detail-M2Y6UFOX.mjs → customer-group-detail-TY4AFNQE.mjs} +9 -9
  71. package/dist/{customer-group-edit-7NXU34BQ.mjs → customer-group-edit-7KV2PNLE.mjs} +2 -4
  72. package/dist/{customer-group-list-PYSYUVWJ.mjs → customer-group-list-CELWB4WM.mjs} +11 -11
  73. package/dist/{customer-group-metadata-WK2BGEGO.mjs → customer-group-metadata-4F2SZF4M.mjs} +2 -3
  74. package/dist/{customer-metadata-ZUWCUTM7.mjs → customer-metadata-LZ3TAXCV.mjs} +2 -3
  75. package/dist/{customers-add-customer-group-NVHYIS75.mjs → customers-add-customer-group-524NN3AG.mjs} +10 -11
  76. package/dist/{edit-inventory-item-7P2MPPGK.mjs → edit-inventory-item-O3SDWW2W.mjs} +3 -5
  77. package/dist/{edit-inventory-item-attributes-NVYPIDCK.mjs → edit-inventory-item-attributes-3QLOZMGC.mjs} +3 -5
  78. package/dist/{edit-reservation-4BH62PDP.mjs → edit-reservation-ISSU5XAY.mjs} +4 -6
  79. package/dist/{edit-rules-I3CZ6JJ6.mjs → edit-rules-K2UXPE62.mjs} +11 -13
  80. package/dist/en.json +0 -7
  81. package/dist/{inventory-create-2NJLJGI6.mjs → inventory-create-SYD3QXIB.mjs} +10 -11
  82. package/dist/{inventory-detail-DMAHDXAH.mjs → inventory-detail-IWCB7FND.mjs} +11 -11
  83. package/dist/{inventory-list-RQBI7UJX.mjs → inventory-list-BQPHK3FV.mjs} +1 -1
  84. package/dist/{inventory-metadata-WN5VZIHI.mjs → inventory-metadata-YSDEZ4B7.mjs} +11 -12
  85. package/dist/{inventory-stock-G4BGY6HK.mjs → inventory-stock-JLJEWPUM.mjs} +10 -11
  86. package/dist/{location-create-RPLEXUZR.mjs → location-create-GDOHM4T3.mjs} +1 -2
  87. package/dist/{location-detail-37V7YZVV.mjs → location-detail-LNQUKDLQ.mjs} +9 -9
  88. package/dist/{location-edit-L4ISEQHX.mjs → location-edit-4SEMGQXA.mjs} +2 -4
  89. package/dist/{location-fulfillment-providers-ZLKGXNU3.mjs → location-fulfillment-providers-566Z6CCG.mjs} +12 -13
  90. package/dist/{location-list-Z42ZYHUF.mjs → location-list-OYBI7EGV.mjs} +2 -2
  91. package/dist/{location-sales-channels-QANELWVW.mjs → location-sales-channels-MXFZNLKR.mjs} +5 -6
  92. package/dist/{location-service-zone-create-NSMZCD5N.mjs → location-service-zone-create-35TTX636.mjs} +3 -5
  93. package/dist/{location-service-zone-edit-6OUAFEZD.mjs → location-service-zone-edit-RWZS2XYW.mjs} +2 -4
  94. package/dist/{location-service-zone-manage-areas-SEC6LKCZ.mjs → location-service-zone-manage-areas-RGMM5Y6C.mjs} +3 -5
  95. package/dist/{location-service-zone-shipping-option-create-52N7W7C2.mjs → location-service-zone-shipping-option-create-VENETBCK.mjs} +12 -14
  96. package/dist/{location-service-zone-shipping-option-edit-QS6HTWST.mjs → location-service-zone-shipping-option-edit-TTVV3BSV.mjs} +2 -4
  97. package/dist/{location-service-zone-shipping-option-pricing-23QLNSBT.mjs → location-service-zone-shipping-option-pricing-NQRIEGTX.mjs} +3 -5
  98. package/dist/{login-NQCTGOAW.mjs → login-R5C7HZ2A.mjs} +9 -9
  99. package/dist/{manage-locations-S7MCWAUJ.mjs → manage-locations-XEXCUBR7.mjs} +3 -5
  100. package/dist/{order-allocate-items-VY6KJFRE.mjs → order-allocate-items-W7HUKJ6F.mjs} +4 -5
  101. package/dist/{order-create-claim-QF2LTPUX.mjs → order-create-claim-M5NNIQWR.mjs} +13 -15
  102. package/dist/{order-create-edit-Z7LU7AVG.mjs → order-create-edit-A2TMNFRS.mjs} +12 -14
  103. package/dist/{order-create-exchange-5XWD2Q2E.mjs → order-create-exchange-CIB7URQD.mjs} +13 -15
  104. package/dist/{order-create-fulfillment-AQJXDSWH.mjs → order-create-fulfillment-YC4GFUTQ.mjs} +10 -11
  105. package/dist/{order-create-refund-B3WOHTK4.mjs → order-create-refund-EE7SWYLL.mjs} +11 -13
  106. package/dist/{order-create-return-XNBOIYPL.mjs → order-create-return-UWF4YKOP.mjs} +6 -8
  107. package/dist/{order-create-shipment-N2CVYZMG.mjs → order-create-shipment-DNVN7NYA.mjs} +10 -11
  108. package/dist/{order-detail-S3IQ75KS.mjs → order-detail-FZ7PM4K3.mjs} +13 -13
  109. package/dist/{order-edit-billing-address-6YKACKAU.mjs → order-edit-billing-address-XH37NDI5.mjs} +11 -13
  110. package/dist/{order-edit-email-HHOPFQEQ.mjs → order-edit-email-NZE32DBD.mjs} +11 -13
  111. package/dist/{order-edit-shipping-address-OLSZVXOS.mjs → order-edit-shipping-address-KMLTH4SM.mjs} +11 -13
  112. package/dist/{order-list-H2B5LA5D.mjs → order-list-NT5PQ2WS.mjs} +7 -7
  113. package/dist/{order-metadata-PGARNQGC.mjs → order-metadata-VWNNC7RO.mjs} +11 -12
  114. package/dist/{order-receive-return-F3RVWIUS.mjs → order-receive-return-O5P477EZ.mjs} +12 -14
  115. package/dist/{order-request-transfer-BSA2D7PD.mjs → order-request-transfer-XOAINCAS.mjs} +11 -13
  116. package/dist/{price-list-configuration-FXGLWS3K.mjs → price-list-configuration-N2WC2QQP.mjs} +5 -7
  117. package/dist/{price-list-create-Z7GJDHLB.mjs → price-list-create-NOTXIPOJ.mjs} +16 -17
  118. package/dist/{price-list-detail-SGYXWAHQ.mjs → price-list-detail-BD2QQKAR.mjs} +12 -12
  119. package/dist/{price-list-edit-S3DCFSO2.mjs → price-list-edit-UB2Z2726.mjs} +4 -6
  120. package/dist/{price-list-list-FLINOQCK.mjs → price-list-list-D4UPKCNL.mjs} +3 -3
  121. package/dist/{price-list-prices-add-SXP3V7NI.mjs → price-list-prices-add-25FOFNBS.mjs} +14 -14
  122. package/dist/{price-list-prices-edit-L4EETPG2.mjs → price-list-prices-edit-CXXOO22Q.mjs} +5 -5
  123. package/dist/{product-attributes-J6ZXEBZ2.mjs → product-attributes-W6URSOII.mjs} +15 -19
  124. package/dist/{product-create-7HZSIZI3.mjs → product-create-IJXK2CPJ.mjs} +15 -17
  125. package/dist/{product-create-option-JSL4OV4M.mjs → product-create-option-AQRYQJSJ.mjs} +7 -6
  126. package/dist/{product-create-variant-MNWLL3SD.mjs → product-create-variant-YBJ2ZVUG.mjs} +15 -14
  127. package/dist/{product-detail-GMNO25SN.mjs → product-detail-3QA6OXHI.mjs} +21 -15
  128. package/dist/{product-edit-LRBW7OOF.mjs → product-edit-WPVM44C2.mjs} +15 -19
  129. package/dist/{product-edit-option-OL6OBCK6.mjs → product-edit-option-BL5XHROM.mjs} +7 -6
  130. package/dist/{product-export-SQG7U5CK.mjs → product-export-H4ZOJWIB.mjs} +14 -16
  131. package/dist/{product-image-variants-edit-7IN3QHSF.mjs → product-image-variants-edit-3YEXAIKS.mjs} +15 -14
  132. package/dist/{product-import-6ZZIQ6R5.mjs → product-import-PPULHBTB.mjs} +11 -13
  133. package/dist/{product-list-E4KRZBEX.mjs → product-list-NPLVU37E.mjs} +14 -14
  134. package/dist/{product-media-NFLMXXXU.mjs → product-media-L4COURP2.mjs} +6 -4
  135. package/dist/{product-metadata-TY3LCH2W.mjs → product-metadata-SS7DIDYB.mjs} +15 -13
  136. package/dist/{product-organization-2SS6DA6S.mjs → product-organization-QG53UJ2J.mjs} +16 -20
  137. package/dist/{product-prices-DI4WDLZZ.mjs → product-prices-UZB2T6UD.mjs} +6 -4
  138. package/dist/{product-sales-channels-BOCECT5M.mjs → product-sales-channels-BKKIG6BE.mjs} +9 -7
  139. package/dist/{product-shipping-profile-MP6QBJHY.mjs → product-shipping-profile-MWE5S5TZ.mjs} +5 -53
  140. package/dist/{product-stock-UXOYOHMR.mjs → product-stock-3A22RDIR.mjs} +10 -11
  141. package/dist/{product-tag-create-OURLUGEL.mjs → product-tag-create-XIWCLMRJ.mjs} +10 -11
  142. package/dist/{product-tag-detail-MENTQYX2.mjs → product-tag-detail-NVV6QQMN.mjs} +13 -13
  143. package/dist/{product-tag-edit-BGPR3BIP.mjs → product-tag-edit-H7YA4HEV.mjs} +11 -13
  144. package/dist/{product-tag-list-B5YMQ2KC.mjs → product-tag-list-LGVKUJLL.mjs} +13 -13
  145. package/dist/{product-tag-metadata-5GOTVYAI.mjs → product-tag-metadata-JBYEI3M4.mjs} +11 -12
  146. package/dist/{product-type-create-HBDROTGB.mjs → product-type-create-Y752WGBV.mjs} +1 -2
  147. package/dist/{product-type-detail-WIIXVV2K.mjs → product-type-detail-S6YG37AR.mjs} +11 -11
  148. package/dist/{product-type-edit-H3JCMVRV.mjs → product-type-edit-SMPJ5ZEF.mjs} +2 -4
  149. package/dist/{product-type-metadata-XACGB4IA.mjs → product-type-metadata-LRTMJT2P.mjs} +11 -12
  150. package/dist/{product-variant-detail-EFKGSJ5B.mjs → product-variant-detail-GIHXE5YG.mjs} +9 -9
  151. package/dist/{product-variant-edit-7OJLUVHS.mjs → product-variant-edit-36MBVNPO.mjs} +13 -14
  152. package/dist/{product-variant-manage-inventory-items-HVU7YWDU.mjs → product-variant-manage-inventory-items-EYKESIRF.mjs} +2 -3
  153. package/dist/{product-variant-media-3JWQ27SI.mjs → product-variant-media-A3XHS3IZ.mjs} +2 -3
  154. package/dist/{product-variant-metadata-POPOT4LV.mjs → product-variant-metadata-LH7YGFW4.mjs} +11 -12
  155. package/dist/{profile-edit-5EEKOEO5.mjs → profile-edit-NFVR5Y4I.mjs} +2 -4
  156. package/dist/{promotion-add-campaign-JRTM7WBR.mjs → promotion-add-campaign-MKDYE7MW.mjs} +2 -3
  157. package/dist/{promotion-create-Q7EYW4L2.mjs → promotion-create-XOB4S6H5.mjs} +12 -13
  158. package/dist/{promotion-detail-Q5INURX6.mjs → promotion-detail-YR4MNPNS.mjs} +9 -9
  159. package/dist/{promotion-edit-details-AREFQ6O5.mjs → promotion-edit-details-AKKNOCLM.mjs} +2 -4
  160. package/dist/{refund-reason-create-MXVWKVZ5.mjs → refund-reason-create-LSAPI6XB.mjs} +10 -11
  161. package/dist/{refund-reason-edit-7EW5QRCM.mjs → refund-reason-edit-R4RV6BFG.mjs} +11 -13
  162. package/dist/{refund-reason-list-GHMGAXQY.mjs → refund-reason-list-MPTKOWX7.mjs} +12 -12
  163. package/dist/{region-add-countries-AFWXMQ6W.mjs → region-add-countries-6GB2QDJK.mjs} +1 -2
  164. package/dist/{region-create-YC4VZ4AS.mjs → region-create-QLPSK6TX.mjs} +2 -4
  165. package/dist/{region-edit-5GO25GDF.mjs → region-edit-JCJHA6TY.mjs} +2 -4
  166. package/dist/{region-metadata-MEJEMQ7Y.mjs → region-metadata-4IMJHPZO.mjs} +11 -12
  167. package/dist/{reservation-create-P66MJ6LN.mjs → reservation-create-UAUWU3UN.mjs} +3 -4
  168. package/dist/{reservation-detail-ARGPFIAK.mjs → reservation-detail-HWKSPGBU.mjs} +9 -9
  169. package/dist/{reservation-list-RGL67CIU.mjs → reservation-list-SOJRN5RI.mjs} +2 -2
  170. package/dist/{reservation-metadata-I5JUAZNA.mjs → reservation-metadata-IIX7FU74.mjs} +11 -12
  171. package/dist/{return-reason-create-NXWDC6AC.mjs → return-reason-create-PLQNC4KW.mjs} +1 -2
  172. package/dist/{return-reason-edit-M6IKNNKB.mjs → return-reason-edit-XJCPMZ6U.mjs} +2 -4
  173. package/dist/{return-reason-list-SGCFBGSL.mjs → return-reason-list-IFFIDA5O.mjs} +1 -1
  174. package/dist/{sales-channel-add-products-N6CLM26Y.mjs → sales-channel-add-products-VH7V4XWO.mjs} +12 -13
  175. package/dist/{sales-channel-create-74PCSWSX.mjs → sales-channel-create-YAORCXP3.mjs} +3 -4
  176. package/dist/{sales-channel-detail-WFCPUJF5.mjs → sales-channel-detail-VMRKBYCG.mjs} +11 -11
  177. package/dist/{sales-channel-edit-IUGTN65E.mjs → sales-channel-edit-6UDMBSO3.mjs} +4 -6
  178. package/dist/{sales-channel-list-TEH3IEG5.mjs → sales-channel-list-U7IVFVYC.mjs} +11 -11
  179. package/dist/{sales-channel-metadata-YYQAM5OW.mjs → sales-channel-metadata-5EO4EB6E.mjs} +11 -12
  180. package/dist/{shipping-option-type-create-73EVE35U.mjs → shipping-option-type-create-DJEHSOSG.mjs} +10 -11
  181. package/dist/{shipping-option-type-detail-WX6ZFA3K.mjs → shipping-option-type-detail-GWULT3WO.mjs} +10 -10
  182. package/dist/{shipping-option-type-edit-YSRIA7FD.mjs → shipping-option-type-edit-FSXPDBLI.mjs} +11 -13
  183. package/dist/{shipping-option-type-list-OKHJ5XQ3.mjs → shipping-option-type-list-DAKNQ3N6.mjs} +10 -10
  184. package/dist/{shipping-profile-create-752TMBBE.mjs → shipping-profile-create-NKFUOBVZ.mjs} +1 -2
  185. package/dist/{shipping-profile-metadata-GZOMZUZ5.mjs → shipping-profile-metadata-37GNDVFQ.mjs} +11 -12
  186. package/dist/{store-add-currencies-3VMLZ6KB.mjs → store-add-currencies-QVG2SI26.mjs} +1 -2
  187. package/dist/{store-detail-FU3AMVC5.mjs → store-detail-TTHDKQYD.mjs} +14 -280
  188. package/dist/store-edit-3XS6IC2Z.mjs +238 -0
  189. package/dist/{store-metadata-C32LZ5A5.mjs → store-metadata-KLQUPUQ4.mjs} +11 -12
  190. package/dist/{tax-region-create-JPIGFA7Q.mjs → tax-region-create-FIGRJOC5.mjs} +10 -11
  191. package/dist/{tax-region-detail-LM3TUUVX.mjs → tax-region-detail-AXT4TMZB.mjs} +16 -17
  192. package/dist/{tax-region-edit-J3COT5DI.mjs → tax-region-edit-UOGPNA25.mjs} +11 -13
  193. package/dist/{tax-region-province-create-5JP3PVID.mjs → tax-region-province-create-T2LKEDTK.mjs} +1 -2
  194. package/dist/{tax-region-province-detail-OLLH4XDG.mjs → tax-region-province-detail-4YCWNZPW.mjs} +16 -17
  195. package/dist/{tax-region-tax-override-create-BFIJFC4G.mjs → tax-region-tax-override-create-FHUXLTPK.mjs} +15 -17
  196. package/dist/{tax-region-tax-override-edit-OALFHSLF.mjs → tax-region-tax-override-edit-GQYS6HCW.mjs} +15 -16
  197. package/dist/{tax-region-tax-rate-create-O2SDSXCH.mjs → tax-region-tax-rate-create-UEOU5QRU.mjs} +1 -2
  198. package/dist/{tax-region-tax-rate-edit-W62VEVKT.mjs → tax-region-tax-rate-edit-ILCDNXHV.mjs} +2 -4
  199. package/dist/{user-detail-N6PT3KRP.mjs → user-detail-KEDJ7N3Q.mjs} +1 -1
  200. package/dist/{user-edit-LXQCTDGA.mjs → user-edit-25HD3BYT.mjs} +2 -4
  201. package/dist/{user-invite-2OKB7SCF.mjs → user-invite-CRQTVEYA.mjs} +1 -2
  202. package/dist/{user-list-YYUOQKQY.mjs → user-list-6KATHOTJ.mjs} +2 -2
  203. package/dist/{user-metadata-3FJIJONR.mjs → user-metadata-RU3Z3BLD.mjs} +11 -12
  204. package/dist/{workflow-execution-detail-P72V2O2R.mjs → workflow-execution-detail-R2FDAUMD.mjs} +9 -9
  205. package/package.json +9 -9
  206. package/src/components/search/use-search-results.tsx +3 -1
  207. package/src/components/utilities/error-boundary/error-boundary.tsx +20 -0
  208. package/src/dashboard-app/routes/get-route.map.tsx +0 -4
  209. package/src/hooks/api/feature-flags.tsx +5 -9
  210. package/src/hooks/api/index.ts +0 -1
  211. package/src/hooks/api/products.tsx +5 -1
  212. package/src/hooks/table/query/use-product-table-query.tsx +2 -1
  213. package/src/i18n/translations/$schema.json +0 -28
  214. package/src/i18n/translations/en.json +0 -7
  215. package/src/i18n/translations/es.json +0 -7
  216. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-prices-form.tsx +3 -1
  217. package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-prices-form.tsx +3 -1
  218. package/src/routes/price-lists/price-list-prices-edit/price-list-prices-edit.tsx +3 -1
  219. package/src/routes/product-variants/product-variant-edit/product-variant-edit.tsx +2 -1
  220. package/src/routes/products/product-attributes/product-attributes.tsx +3 -2
  221. package/src/routes/products/product-create-option/product-create-option.tsx +5 -1
  222. package/src/routes/products/product-create-variant/product-create-variant.tsx +4 -1
  223. package/src/routes/products/product-detail/breadcrumb.tsx +3 -2
  224. package/src/routes/products/product-edit/product-edit.tsx +3 -2
  225. package/src/routes/products/product-edit-option/product-edit-option.tsx +4 -1
  226. package/src/routes/products/product-image-variants-edit/product-image-variants-edit.tsx +5 -1
  227. package/src/routes/products/product-media/product-media.tsx +4 -1
  228. package/src/routes/products/product-metadata/product-metadata.tsx +5 -1
  229. package/src/routes/products/product-organization/product-organization.tsx +2 -2
  230. package/src/routes/products/product-prices/product-prices.tsx +4 -1
  231. package/src/routes/products/product-sales-channels/product-sales-channels.tsx +4 -1
  232. package/src/routes/products/product-shipping-profile/product-shipping-profile.tsx +3 -2
  233. package/src/routes/store/store-detail/components/store-general-section/store-general-section.tsx +0 -24
  234. package/src/routes/store/store-detail/store-detail.tsx +0 -4
  235. package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +3 -50
  236. package/src/routes/tax-regions/common/components/target-item/target-item.tsx +5 -1
  237. package/src/routes/tax-regions/common/components/tax-override-card/tax-override-card.tsx +10 -10
  238. package/dist/chunk-77XTTZK7.mjs +0 -13
  239. package/dist/chunk-XNIVMZHA.mjs +0 -50
  240. package/dist/chunk-XXBP2Z5M.mjs +0 -182
  241. package/dist/store-add-locales-LXRWHBME.mjs +0 -264
  242. package/dist/store-edit-EPAHLLKP.mjs +0 -288
  243. package/src/hooks/api/locales.tsx +0 -52
  244. package/src/routes/store/common/hooks/use-locales-table-columns.tsx +0 -29
  245. package/src/routes/store/common/hooks/use-locales-table-query.tsx +0 -21
  246. package/src/routes/store/store-add-locales/components/add-locales-form/add-locales-form.tsx +0 -240
  247. package/src/routes/store/store-add-locales/index.ts +0 -1
  248. package/src/routes/store/store-add-locales/store-add-locales.tsx +0 -29
  249. package/src/routes/store/store-detail/components/store-locale-section/index.ts +0 -1
  250. package/src/routes/store/store-detail/components/store-locale-section/store-locale-section.tsx +0 -290
@@ -2448,33 +2448,26 @@
2448
2448
  "manageYourStoresDetails": "Gestiona los detalles de tu tienda",
2449
2449
  "editStore": "Editar tienda",
2450
2450
  "defaultCurrency": "Moneda por defecto",
2451
- "defaultLocale": "Idioma por defecto",
2452
2451
  "defaultRegion": "Región por defecto",
2453
2452
  "defaultSalesChannel": "Canal de ventas predeterminado",
2454
2453
  "defaultLocation": "Ubicación predeterminada",
2455
2454
  "swapLinkTemplate": "Plantilla de enlace de cambio",
2456
2455
  "paymentLinkTemplate": "Plantilla de enlace de pago",
2457
2456
  "inviteLinkTemplate": "Plantilla de enlace de invitación",
2458
- "locales": "Idiomas",
2459
2457
  "currencies": "Monedas",
2460
2458
  "addCurrencies": "Agregar monedas",
2461
2459
  "enableTaxInclusivePricing": "Habilitar precios con impuestos incluidos",
2462
2460
  "disableTaxInclusivePricing": "Deshabilitar precios con impuestos incluidos",
2463
2461
  "removeCurrencyWarning_one": "Estás a punto de eliminar {{count}} moneda de tu tienda. Asegúrate de haber eliminado todos los precios que usen esta moneda antes de continuar.",
2464
2462
  "removeCurrencyWarning_other": "Estás a punto de eliminar {{count}} monedas de tu tienda. Asegúrate de haber eliminado todos los precios que usen estas monedas antes de continuar.",
2465
- "removeLocaleWarning_one": "Estás a punto de eliminar {{count}} idioma de tu tienda. Cualquier traducción que use este idioma será eliminada.",
2466
- "removeLocaleWarning_other": "Estás a punto de eliminar {{count}} idiomas de tu tienda. Cualquier traducción que use estos idiomas será eliminada.",
2467
2463
  "currencyAlreadyAdded": "La moneda ya ha sido agregada a tu tienda.",
2468
- "localeAlreadyAdded": "El idioma ya ha sido agregado a tu tienda.",
2469
2464
  "edit": {
2470
2465
  "header": "Editar Tienda"
2471
2466
  },
2472
2467
  "toast": {
2473
2468
  "update": "Tienda actualizada exitosamente",
2474
2469
  "currenciesUpdated": "Monedas actualizadas exitosamente",
2475
- "localesUpdated": "Idiomas actualizados exitosamente",
2476
2470
  "currenciesRemoved": "Monedas eliminadas de la tienda exitosamente",
2477
- "localesRemoved": "Idiomas eliminados de la tienda exitosamente",
2478
2471
  "updatedTaxInclusivitySuccessfully": "Precios con impuestos incluidos actualizados exitosamente"
2479
2472
  }
2480
2473
  },
@@ -35,7 +35,9 @@ export const PriceListPricesForm = ({
35
35
  const { products, isLoading, isError, error } = useProducts({
36
36
  id: ids.map((id) => id.id),
37
37
  limit: ids.length,
38
- fields: "title,thumbnail,*variants",
38
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
39
+ fields:
40
+ "title,thumbnail,*variants,-type,-collection,-options,-tags,-images,-sales_channels",
39
41
  })
40
42
 
41
43
  const { setCloseOnEscape } = useRouteModal()
@@ -36,7 +36,9 @@ export const PriceListPricesAddPricesForm = ({
36
36
  const { products, isLoading, isError, error } = useProducts({
37
37
  id: ids.map((id) => id.id),
38
38
  limit: ids.length,
39
- fields: "title,thumbnail,*variants",
39
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
40
+ fields:
41
+ "title,thumbnail,*variants,-type,-collection,-options,-tags,-images,-sales_channels",
40
42
  })
41
43
 
42
44
  const { setValue } = form
@@ -22,7 +22,9 @@ export const PriceListPricesEdit = () => {
22
22
  id: productIds,
23
23
  limit: productIds?.length || 9999, // Temporary until we support lazy loading in the DataGrid
24
24
  price_list_id: [id!],
25
- fields: "title,thumbnail,*variants",
25
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
26
+ fields:
27
+ "title,thumbnail,*variants,-type,-collection,-options,-tags,-images,-sales_channels",
26
28
  })
27
29
 
28
30
  const { isReady, regions, currencies, pricePreferences } =
@@ -33,7 +33,8 @@ export const ProductVariantEdit = () => {
33
33
  } = useProduct(
34
34
  variant?.product_id!,
35
35
  {
36
- fields: "-variants",
36
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
37
+ fields: "-type,-collection,-tags,-images,-variants,-sales_channels",
37
38
  },
38
39
  {
39
40
  enabled: !!variant?.product_id,
@@ -4,7 +4,6 @@ import { useParams } from "react-router-dom"
4
4
 
5
5
  import { RouteDrawer } from "../../../components/modals"
6
6
  import { useProduct } from "../../../hooks/api/products"
7
- import { PRODUCT_DETAIL_FIELDS } from "../product-detail/constants"
8
7
  import { ProductAttributesForm } from "./components/product-attributes-form"
9
8
 
10
9
  export const ProductAttributes = () => {
@@ -12,7 +11,9 @@ export const ProductAttributes = () => {
12
11
  const { t } = useTranslation()
13
12
 
14
13
  const { product, isLoading, isError, error } = useProduct(id!, {
15
- fields: PRODUCT_DETAIL_FIELDS,
14
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
15
+ fields:
16
+ "-type,-collection,-options,-tags,-images,-variants,-sales_channels",
16
17
  })
17
18
 
18
19
  if (isError) {
@@ -9,7 +9,11 @@ export const ProductCreateOption = () => {
9
9
  const { id } = useParams()
10
10
  const { t } = useTranslation()
11
11
 
12
- const { product, isLoading, isError, error } = useProduct(id!)
12
+ const { product, isLoading, isError, error } = useProduct(id!, {
13
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
14
+ fields:
15
+ "-type,-collection,-options,-tags,-images,-variants,-sales_channels",
16
+ })
13
17
 
14
18
  if (isError) {
15
19
  throw error
@@ -6,7 +6,10 @@ import { CreateProductVariantForm } from "./components/create-product-variant-fo
6
6
  export const ProductCreateVariant = () => {
7
7
  const { id } = useParams()
8
8
 
9
- const { product, isLoading, isError, error } = useProduct(id!)
9
+ const { product, isLoading, isError, error } = useProduct(id!, {
10
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
11
+ fields: "-type,-collection,-tags,-images,-variants,-sales_channels",
12
+ })
10
13
 
11
14
  if (isError) {
12
15
  throw error
@@ -1,7 +1,6 @@
1
1
  import { HttpTypes } from "@medusajs/types"
2
2
  import { UIMatch } from "react-router-dom"
3
3
  import { useProduct } from "../../../hooks/api"
4
- import { PRODUCT_DETAIL_FIELDS } from "./constants"
5
4
 
6
5
  type ProductDetailBreadcrumbProps = UIMatch<HttpTypes.AdminProductResponse>
7
6
 
@@ -13,7 +12,9 @@ export const ProductDetailBreadcrumb = (
13
12
  const { product } = useProduct(
14
13
  id!,
15
14
  {
16
- fields: PRODUCT_DETAIL_FIELDS,
15
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
16
+ fields:
17
+ "-type,-collection,-options,-tags,-images,-variants,-sales_channels",
17
18
  },
18
19
  {
19
20
  initialData: props.data,
@@ -4,7 +4,6 @@ import { useParams } from "react-router-dom"
4
4
 
5
5
  import { RouteDrawer } from "../../../components/modals"
6
6
  import { useProduct } from "../../../hooks/api/products"
7
- import { PRODUCT_DETAIL_FIELDS } from "../product-detail/constants"
8
7
  import { EditProductForm } from "./components/edit-product-form"
9
8
 
10
9
  export const ProductEdit = () => {
@@ -12,7 +11,9 @@ export const ProductEdit = () => {
12
11
  const { t } = useTranslation()
13
12
 
14
13
  const { product, isLoading, isError, error } = useProduct(id!, {
15
- fields: PRODUCT_DETAIL_FIELDS,
14
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
15
+ fields:
16
+ "-type,-collection,-options,-tags,-images,-variants,-sales_channels",
16
17
  })
17
18
 
18
19
  if (isError) {
@@ -9,7 +9,10 @@ export const ProductEditOption = () => {
9
9
  const { id, option_id } = useParams()
10
10
  const { t } = useTranslation()
11
11
 
12
- const { product, isPending, isFetching, isError, error } = useProduct(id!)
12
+ const { product, isPending, isFetching, isError, error } = useProduct(id!, {
13
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
14
+ fields: "-type,-collection,-tags,-images,-variants,-sales_channels",
15
+ })
13
16
 
14
17
  const option = product?.options.find((o) => o.id === option_id)
15
18
 
@@ -21,7 +21,11 @@ export const ProductImageVariantsEdit = () => {
21
21
 
22
22
  const { product, isPending } = useProduct(
23
23
  product_id!,
24
- { fields: "images.id,images.url,images.variants.id" },
24
+ {
25
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
26
+ fields:
27
+ "images.id,images.url,images.variants.id,-type,-collection,-options,-tags,-variants,-sales_channels",
28
+ },
25
29
  {
26
30
  enabled: !!product_id && !!image_id,
27
31
  }
@@ -8,7 +8,10 @@ export const ProductMedia = () => {
8
8
  const { t } = useTranslation()
9
9
  const { id } = useParams()
10
10
 
11
- const { product, isLoading, isError, error } = useProduct(id!)
11
+ const { product, isLoading, isError, error } = useProduct(id!, {
12
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
13
+ fields: "-type,-collection,-options,-tags,-variants,-sales_channels",
14
+ })
12
15
 
13
16
  const ready = !isLoading && product
14
17
 
@@ -5,7 +5,11 @@ import { useProduct, useUpdateProduct } from "../../../hooks/api"
5
5
  export const ProductMetadata = () => {
6
6
  const { id } = useParams()
7
7
 
8
- const { product, isPending, isError, error } = useProduct(id!)
8
+ const { product, isPending, isError, error } = useProduct(id!, {
9
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
10
+ fields:
11
+ "-type,-collection,-options,-tags,-images,-variants,-sales_channels",
12
+ })
9
13
 
10
14
  const { mutateAsync, isPending: isMutating } = useUpdateProduct(product?.id!)
11
15
 
@@ -4,7 +4,6 @@ import { useParams } from "react-router-dom"
4
4
 
5
5
  import { RouteDrawer } from "../../../components/modals"
6
6
  import { useProduct } from "../../../hooks/api/products"
7
- import { PRODUCT_DETAIL_FIELDS } from "../product-detail/constants"
8
7
  import { ProductOrganizationForm } from "./components/product-organization-form"
9
8
 
10
9
  export const ProductOrganization = () => {
@@ -12,7 +11,8 @@ export const ProductOrganization = () => {
12
11
  const { t } = useTranslation()
13
12
 
14
13
  const { product, isLoading, isError, error } = useProduct(id!, {
15
- fields: PRODUCT_DETAIL_FIELDS,
14
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
15
+ fields: "*categories,-options,-images,-variants,-sales_channels",
16
16
  })
17
17
 
18
18
  if (isError) {
@@ -7,7 +7,10 @@ import { PricingEdit } from "./pricing-edit"
7
7
  export const ProductPrices = () => {
8
8
  const { id, variant_id } = useParams()
9
9
 
10
- const { product, isLoading, isError, error } = useProduct(id!)
10
+ const { product, isLoading, isError, error } = useProduct(id!, {
11
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
12
+ fields: "-type,-collection,-options,-tags,-images,-sales_channels",
13
+ })
11
14
 
12
15
  if (isError) {
13
16
  throw error
@@ -6,7 +6,10 @@ import { EditSalesChannelsForm } from "./components/edit-sales-channels-form"
6
6
 
7
7
  export const ProductSalesChannels = () => {
8
8
  const { id } = useParams()
9
- const { product, isLoading, isError, error } = useProduct(id!)
9
+ const { product, isLoading, isError, error } = useProduct(id!, {
10
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
11
+ fields: "-type,-collection,-options,-tags,-images,-variants",
12
+ })
10
13
 
11
14
  if (isError) {
12
15
  throw error
@@ -4,7 +4,6 @@ import { useParams } from "react-router-dom"
4
4
 
5
5
  import { RouteDrawer } from "../../../components/modals"
6
6
  import { useProduct } from "../../../hooks/api/products"
7
- import { PRODUCT_DETAIL_FIELDS } from "../product-detail/constants"
8
7
  import { ProductShippingProfileForm } from "./components/product-organization-form"
9
8
 
10
9
  export const ProductShippingProfile = () => {
@@ -12,7 +11,9 @@ export const ProductShippingProfile = () => {
12
11
  const { t } = useTranslation()
13
12
 
14
13
  const { product, isLoading, isError, error } = useProduct(id!, {
15
- fields: PRODUCT_DETAIL_FIELDS,
14
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
15
+ fields:
16
+ "*shipping_profile,-type,-collection,-options,-tags,-images,-variants,-sales_channels",
16
17
  })
17
18
 
18
19
  if (isError) {
@@ -7,7 +7,6 @@ import { Link } from "react-router-dom"
7
7
  import { ActionMenu } from "../../../../../components/common/action-menu"
8
8
  import { useSalesChannel, useStockLocation } from "../../../../../hooks/api"
9
9
  import { useRegion } from "../../../../../hooks/api/regions"
10
- import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
11
10
 
12
11
  type StoreGeneralSectionProps = {
13
12
  store: AdminStore
@@ -15,14 +14,12 @@ type StoreGeneralSectionProps = {
15
14
 
16
15
  export const StoreGeneralSection = ({ store }: StoreGeneralSectionProps) => {
17
16
  const { t } = useTranslation()
18
- const isTranslationsEnabled = useFeatureFlag("translation")
19
17
 
20
18
  const { region } = useRegion(store.default_region_id!, undefined, {
21
19
  enabled: !!store.default_region_id,
22
20
  })
23
21
 
24
22
  const defaultCurrency = store.supported_currencies?.find((c) => c.is_default)
25
- const defaultLocale = store.supported_locales?.find((l) => l.is_default)
26
23
 
27
24
  const { sales_channel } = useSalesChannel(store.default_sales_channel_id!, {
28
25
  enabled: !!store.default_sales_channel_id,
@@ -88,27 +85,6 @@ export const StoreGeneralSection = ({ store }: StoreGeneralSectionProps) => {
88
85
  </Text>
89
86
  )}
90
87
  </div>
91
- {isTranslationsEnabled && (
92
- <div className="text-ui-fg-subtle grid grid-cols-2 px-6 py-4">
93
- <Text size="small" leading="compact" weight="plus">
94
- {t("store.defaultLocale")}
95
- </Text>
96
- {defaultLocale ? (
97
- <div className="flex items-center gap-x-2">
98
- <Badge size="2xsmall">
99
- {defaultLocale.locale_code?.toUpperCase()}
100
- </Badge>
101
- <Text size="small" leading="compact">
102
- {defaultLocale.locale?.name}
103
- </Text>
104
- </div>
105
- ) : (
106
- <Text size="small" leading="compact">
107
- -
108
- </Text>
109
- )}
110
- </div>
111
- )}
112
88
  <div className="text-ui-fg-subtle grid grid-cols-2 px-6 py-4">
113
89
  <Text size="small" leading="compact" weight="plus">
114
90
  {t("store.defaultRegion")}
@@ -8,12 +8,9 @@ import { SingleColumnPageSkeleton } from "../../../components/common/skeleton"
8
8
  import { SingleColumnPage } from "../../../components/layout/pages"
9
9
  import { useExtension } from "../../../providers/extension-provider"
10
10
  import { StoreCurrencySection } from "./components/store-currency-section"
11
- import { StoreLocaleSection } from "./components/store-locale-section"
12
- import { useFeatureFlag } from "../../../providers/feature-flag-provider"
13
11
 
14
12
  export const StoreDetail = () => {
15
13
  const initialData = useLoaderData() as Awaited<ReturnType<typeof storeLoader>>
16
- const isTranslationsEnabled = useFeatureFlag("translation")
17
14
 
18
15
  const { store, isPending, isError, error } = useStore(undefined, {
19
16
  initialData,
@@ -42,7 +39,6 @@ export const StoreDetail = () => {
42
39
  >
43
40
  <StoreGeneralSection store={store} />
44
41
  <StoreCurrencySection store={store} />
45
- {isTranslationsEnabled && <StoreLocaleSection store={store} />}
46
42
  </SingleColumnPage>
47
43
  )
48
44
  }
@@ -13,7 +13,6 @@ import { useUpdateStore } from "../../../../../hooks/api/store"
13
13
  import { useComboboxData } from "../../../../../hooks/use-combobox-data"
14
14
  import { sdk } from "../../../../../lib/client"
15
15
  import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
16
- import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
17
16
 
18
17
  type EditStoreFormProps = {
19
18
  store: HttpTypes.AdminStore
@@ -22,7 +21,6 @@ type EditStoreFormProps = {
22
21
  const EditStoreSchema = z.object({
23
22
  name: z.string().min(1),
24
23
  default_currency_code: z.string().optional(),
25
- default_locale_code: z.string().optional(),
26
24
  default_region_id: z.string().optional(),
27
25
  default_sales_channel_id: z.string().optional(),
28
26
  default_location_id: z.string().optional(),
@@ -30,16 +28,12 @@ const EditStoreSchema = z.object({
30
28
 
31
29
  export const EditStoreForm = ({ store }: EditStoreFormProps) => {
32
30
  const { t } = useTranslation()
33
- const isTranslationsEnabled = useFeatureFlag("translation")
34
31
  const { handleSuccess } = useRouteModal()
35
- const direction = useDocumentDirection()
32
+ const direction = useDocumentDirection()
36
33
  const form = useForm<z.infer<typeof EditStoreSchema>>({
37
34
  defaultValues: {
38
35
  name: store.name,
39
36
  default_region_id: store.default_region_id || undefined,
40
- default_locale_code:
41
- store.supported_locales?.find((l) => l.is_default)?.locale_code ||
42
- undefined,
43
37
  default_currency_code:
44
38
  store.supported_currencies?.find((c) => c.is_default)?.currency_code ||
45
39
  undefined,
@@ -79,14 +73,10 @@ export const EditStoreForm = ({ store }: EditStoreFormProps) => {
79
73
  })
80
74
 
81
75
  const handleSubmit = form.handleSubmit(async (values) => {
82
- const { default_currency_code, default_locale_code, ...rest } = values
76
+ const { default_currency_code, ...rest } = values
83
77
 
84
78
  const normalizedMutation: HttpTypes.AdminUpdateStore = {
85
79
  ...rest,
86
- supported_locales: store.supported_locales?.map((l) => ({
87
- ...l,
88
- is_default: l.locale_code === default_locale_code,
89
- })),
90
80
  supported_currencies: store.supported_currencies?.map((c) => ({
91
81
  ...c,
92
82
  is_default: c.currency_code === default_currency_code,
@@ -105,10 +95,7 @@ export const EditStoreForm = ({ store }: EditStoreFormProps) => {
105
95
 
106
96
  return (
107
97
  <RouteDrawer.Form form={form}>
108
- <KeyboundForm
109
- onSubmit={handleSubmit}
110
- className="flex h-full flex-col overflow-hidden"
111
- >
98
+ <KeyboundForm onSubmit={handleSubmit} className="flex h-full flex-col overflow-hidden">
112
99
  <RouteDrawer.Body className="overflow-y-auto">
113
100
  <div className="flex flex-col gap-y-8">
114
101
  <Form.Field
@@ -156,40 +143,6 @@ export const EditStoreForm = ({ store }: EditStoreFormProps) => {
156
143
  )
157
144
  }}
158
145
  />
159
- {isTranslationsEnabled && (
160
- <Form.Field
161
- control={form.control}
162
- name="default_locale_code"
163
- render={({ field: { onChange, ...field } }) => {
164
- return (
165
- <Form.Item>
166
- <Form.Label>{t("store.defaultLocale")}</Form.Label>
167
- <Form.Control>
168
- <Select
169
- dir={direction}
170
- {...field}
171
- onValueChange={onChange}
172
- >
173
- <Select.Trigger ref={field.ref}>
174
- <Select.Value />
175
- </Select.Trigger>
176
- <Select.Content>
177
- {store.supported_locales?.map((locale) => (
178
- <Select.Item
179
- key={locale.locale_code}
180
- value={locale.locale_code}
181
- >
182
- {locale.locale_code}
183
- </Select.Item>
184
- ))}
185
- </Select.Content>
186
- </Select>
187
- </Form.Control>
188
- </Form.Item>
189
- )
190
- }}
191
- />
192
- )}
193
146
  <Form.Field
194
147
  control={form.control}
195
148
  name="default_region_id"
@@ -17,7 +17,11 @@ export const TargetItem = ({
17
17
  }: TargetItemProps) => {
18
18
  const { product } = useProduct(
19
19
  value,
20
- { fields: "id,title" },
20
+ {
21
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
22
+ fields:
23
+ "id,title,-type,-collection,-options,-tags,-images,-variants,-sales_channels",
24
+ },
21
25
  { enabled: !label }
22
26
  )
23
27
 
@@ -39,18 +39,15 @@ export const TaxOverrideCard = ({ taxRate }: TaxOverrideCardProps) => {
39
39
  return null
40
40
  }
41
41
 
42
- const groupedRules = taxRate.rules.reduce(
43
- (acc, rule) => {
44
- if (!acc[rule.reference]) {
45
- acc[rule.reference] = []
46
- }
42
+ const groupedRules = taxRate.rules.reduce((acc, rule) => {
43
+ if (!acc[rule.reference]) {
44
+ acc[rule.reference] = []
45
+ }
47
46
 
48
- acc[rule.reference].push(rule.reference_id)
47
+ acc[rule.reference].push(rule.reference_id)
49
48
 
50
- return acc
51
- },
52
- {} as Record<string, string[]>
53
- )
49
+ return acc
50
+ }, {} as Record<string, string[]>)
54
51
 
55
52
  const validKeys = Object.values(TaxRateRuleReferenceType)
56
53
  const numberOfTargets = Object.keys(groupedRules).map((key) =>
@@ -282,6 +279,9 @@ const useReferenceValues = (
282
279
  {
283
280
  id: ids.slice(0, DISPLAY_OVERRIDE_ITEMS_LIMIT),
284
281
  limit: DISPLAY_OVERRIDE_ITEMS_LIMIT,
282
+ // TODO: Remove exclusion once we avoid including unnecessary relations by default in the query config
283
+ fields:
284
+ "-type,-collection,-options,-tags,-images,-variants,-sales_channels",
285
285
  },
286
286
  {
287
287
  enabled: !!ids.length && type === TaxRateRuleReferenceType.PRODUCT,
@@ -1,13 +0,0 @@
1
- import {
2
- getLinkedFields
3
- } from "./chunk-EMOSYFKR.mjs";
4
-
5
- // src/routes/products/product-detail/constants.ts
6
- var PRODUCT_DETAIL_FIELDS = getLinkedFields(
7
- "product",
8
- "*categories,*shipping_profile,-variants"
9
- );
10
-
11
- export {
12
- PRODUCT_DETAIL_FIELDS
13
- };
@@ -1,50 +0,0 @@
1
- import {
2
- TextCell,
3
- TextHeader
4
- } from "./chunk-MSDRGCRR.mjs";
5
- import {
6
- useQueryParams
7
- } from "./chunk-C76H5USB.mjs";
8
-
9
- // src/routes/store/common/hooks/use-locales-table-columns.tsx
10
- import { createColumnHelper } from "@tanstack/react-table";
11
- import { useMemo } from "react";
12
- import { useTranslation } from "react-i18next";
13
- import { jsx } from "react/jsx-runtime";
14
- var columnHelper = createColumnHelper();
15
- var useLocalesTableColumns = () => {
16
- const { t } = useTranslation();
17
- return useMemo(
18
- () => [
19
- columnHelper.accessor("code", {
20
- header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("fields.code") }),
21
- cell: ({ getValue }) => /* @__PURE__ */ jsx(TextCell, { text: getValue() })
22
- }),
23
- columnHelper.accessor("name", {
24
- header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("fields.name") }),
25
- cell: ({ getValue }) => /* @__PURE__ */ jsx(TextCell, { text: getValue() })
26
- })
27
- ],
28
- [t]
29
- );
30
- };
31
-
32
- // src/routes/store/common/hooks/use-locales-table-query.tsx
33
- var useLocalesTableQuery = ({
34
- pageSize = 10,
35
- prefix
36
- }) => {
37
- const raw = useQueryParams(["order", "q", "offset"], prefix);
38
- const { offset, ...rest } = raw;
39
- const searchParams = {
40
- limit: pageSize,
41
- offset: offset ? parseInt(offset) : 0,
42
- ...rest
43
- };
44
- return { searchParams, raw };
45
- };
46
-
47
- export {
48
- useLocalesTableColumns,
49
- useLocalesTableQuery
50
- };