@medusajs/dashboard 2.6.0-snapshot-20250221164338 → 3.0.0-preview-20250211091350

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 (152) hide show
  1. package/dist/{add-campaign-promotions-UZ54EPHR.mjs → add-campaign-promotions-YQ6JJK6I.mjs} +3 -3
  2. package/dist/{api-key-management-detail-4SSWQW4Y.mjs → api-key-management-detail-V6UELD25.mjs} +3 -2
  3. package/dist/{api-key-management-list-KS65RZEW.mjs → api-key-management-list-MKVE46ZE.mjs} +2 -1
  4. package/dist/app.css +0 -7
  5. package/dist/app.js +11038 -11102
  6. package/dist/app.mjs +113 -113
  7. package/dist/{campaign-detail-BSGQQVOO.mjs → campaign-detail-PGM2SOEA.mjs} +5 -4
  8. package/dist/{campaign-list-I5JP6MBH.mjs → campaign-list-6TW2SO7C.mjs} +2 -1
  9. package/dist/{categories-metadata-DCW4MWLW.mjs → categories-metadata-D3EM5VK2.mjs} +2 -1
  10. package/dist/{category-detail-Q5B3MS3Q.mjs → category-detail-Z6GWCJUW.mjs} +3 -2
  11. package/dist/{category-list-RCAUXT4U.mjs → category-list-6WTV4T7D.mjs} +2 -1
  12. package/dist/{category-products-TAKPXANA.mjs → category-products-ND7PSI4Q.mjs} +1 -1
  13. package/dist/{chunk-Y2ZAIM5S.mjs → chunk-4M3ZY7KA.mjs} +1 -3
  14. package/dist/chunk-53IEL2PE.mjs +46 -0
  15. package/dist/{chunk-7I5DQGWY.mjs → chunk-77TK23EH.mjs} +0 -1
  16. package/dist/{chunk-L5UZLG5F.mjs → chunk-HP4JZCP4.mjs} +4 -3
  17. package/dist/{chunk-BBQEC2BG.mjs → chunk-IQ2LC4FN.mjs} +1 -1
  18. package/dist/{chunk-NVPP33RF.mjs → chunk-MAWEQJDF.mjs} +1 -1
  19. package/dist/{chunk-DJD7KVMY.mjs → chunk-ODVOHYAS.mjs} +1 -1
  20. package/dist/{chunk-QXEWLJCG.mjs → chunk-QX7ANQDG.mjs} +10 -16
  21. package/dist/{chunk-OHX7ZPSQ.mjs → chunk-TKREK46F.mjs} +1 -1
  22. package/dist/{chunk-6AYVHNRZ.mjs → chunk-UT3IS7J3.mjs} +1 -16
  23. package/dist/{chunk-5MEZIE5U.mjs → chunk-VIJAVLIU.mjs} +32 -79
  24. package/dist/{chunk-3LLQ6F7F.mjs → chunk-W6N53UNG.mjs} +0 -13
  25. package/dist/{chunk-B3XEMIUY.mjs → chunk-ZVVQK46Y.mjs} +1 -1
  26. package/dist/{collection-add-products-2Z7QFHNL.mjs → collection-add-products-KGBBZFCE.mjs} +1 -1
  27. package/dist/{collection-detail-SUFD5QJS.mjs → collection-detail-AZZ2NT4L.mjs} +3 -2
  28. package/dist/{collection-list-KYQAHGDT.mjs → collection-list-2AFD2BXW.mjs} +3 -2
  29. package/dist/{collection-metadata-CPRJIHOK.mjs → collection-metadata-XSJPOGIP.mjs} +2 -1
  30. package/dist/{customer-detail-X2FBNDNC.mjs → customer-detail-MWT2NNQK.mjs} +2 -1
  31. package/dist/{customer-group-detail-JHFLLKLX.mjs → customer-group-detail-ULS2F7OQ.mjs} +2 -1
  32. package/dist/{customer-group-list-AXLT3R34.mjs → customer-group-list-LZSSOYBR.mjs} +2 -1
  33. package/dist/{customer-group-metadata-ZH3O4GSV.mjs → customer-group-metadata-MTAZJYBH.mjs} +2 -1
  34. package/dist/{customer-list-34WHJZX2.mjs → customer-list-JAKCVGFG.mjs} +2 -1
  35. package/dist/{customer-metadata-CFAZB6JT.mjs → customer-metadata-RO5DVFXZ.mjs} +2 -1
  36. package/dist/{edit-rules-7V6RS4IB.mjs → edit-rules-6XNJL6AE.mjs} +2 -2
  37. package/dist/{inventory-detail-B6URMXNE.mjs → inventory-detail-S56TNEU5.mjs} +2 -1
  38. package/dist/{inventory-list-SV4JJIXG.mjs → inventory-list-P2ZZH6EN.mjs} +2 -1
  39. package/dist/{inventory-metadata-3Z32WNP6.mjs → inventory-metadata-IDMV4XVV.mjs} +2 -1
  40. package/dist/{location-detail-B32EQ2K7.mjs → location-detail-IEGCZTAI.mjs} +7 -14
  41. package/dist/{location-list-CYLKB6HD.mjs → location-list-ITU5AOC7.mjs} +3 -2
  42. package/dist/{location-service-zone-create-DZYFXRJF.mjs → location-service-zone-create-2JT4IKFH.mjs} +7 -4
  43. package/dist/{location-service-zone-edit-NGJZWWTI.mjs → location-service-zone-edit-LKYVVXDR.mjs} +5 -2
  44. package/dist/{location-service-zone-manage-areas-FVUWYMND.mjs → location-service-zone-manage-areas-PT4R2I3K.mjs} +2 -2
  45. package/dist/{location-service-zone-shipping-option-create-7PGX2ROX.mjs → location-service-zone-shipping-option-create-KXZIUIZQ.mjs} +11 -41
  46. package/dist/{location-service-zone-shipping-option-edit-C7DKT3UB.mjs → location-service-zone-shipping-option-edit-SC4HD6LU.mjs} +6 -13
  47. package/dist/{login-NA32GY3B.mjs → login-TN5VDDLW.mjs} +2 -1
  48. package/dist/{order-create-claim-I63DJFYK.mjs → order-create-claim-FFWV762A.mjs} +2 -2
  49. package/dist/{order-create-edit-XM4R5G7H.mjs → order-create-edit-LS3ARJDM.mjs} +1 -1
  50. package/dist/{order-create-exchange-6EANY5IO.mjs → order-create-exchange-3OVNNNW3.mjs} +2 -2
  51. package/dist/{order-create-refund-2CADVJ27.mjs → order-create-refund-2D46DG3T.mjs} +1 -1
  52. package/dist/{order-create-return-JCVPCOKI.mjs → order-create-return-PJ3LFXDG.mjs} +2 -2
  53. package/dist/{order-detail-DLR4YI44.mjs → order-detail-YYP4INKH.mjs} +38 -26
  54. package/dist/{order-edit-billing-address-MXL5XNP2.mjs → order-edit-billing-address-3PYGDUWT.mjs} +1 -1
  55. package/dist/{order-edit-email-T6NWLCLB.mjs → order-edit-email-C5AMYZDN.mjs} +1 -1
  56. package/dist/{order-edit-shipping-address-VWRK7BYT.mjs → order-edit-shipping-address-T6I4D234.mjs} +1 -1
  57. package/dist/{order-list-CKBGBIQM.mjs → order-list-IMVPWMTQ.mjs} +2 -1
  58. package/dist/{order-metadata-GGAOWANV.mjs → order-metadata-DRR355QQ.mjs} +2 -1
  59. package/dist/{order-request-transfer-B3BQ3HMQ.mjs → order-request-transfer-U5OYJEI6.mjs} +2 -2
  60. package/dist/{price-list-create-EA66HJIE.mjs → price-list-create-QKTF4G3M.mjs} +1 -1
  61. package/dist/{price-list-detail-IAHWYG7T.mjs → price-list-detail-G5Y3VVRK.mjs} +3 -2
  62. package/dist/{price-list-list-FDPYDTKZ.mjs → price-list-list-XPNVK6IC.mjs} +2 -1
  63. package/dist/{price-list-prices-add-HM4BA5GZ.mjs → price-list-prices-add-NIFFLI7Y.mjs} +1 -1
  64. package/dist/{product-attributes-RLUJ3TMF.mjs → product-attributes-WLWSFTCO.mjs} +3 -2
  65. package/dist/{product-create-DI2OY2SB.mjs → product-create-P7U26TXX.mjs} +16 -10
  66. package/dist/{product-create-variant-YDVQX3WZ.mjs → product-create-variant-ZQKPGLQQ.mjs} +1 -1
  67. package/dist/{product-detail-5NIH3SMD.mjs → product-detail-6LXT2IIU.mjs} +4 -3
  68. package/dist/{product-edit-PIVZPPPB.mjs → product-edit-IDL5IGVQ.mjs} +3 -2
  69. package/dist/{product-export-WYNJBBNR.mjs → product-export-JGH4CULP.mjs} +1 -1
  70. package/dist/{product-list-QAJBAJCQ.mjs → product-list-XOFUYF5S.mjs} +3 -2
  71. package/dist/{product-media-PBKLEGU3.mjs → product-media-RSCMACQU.mjs} +2 -2
  72. package/dist/{product-metadata-FBTDH2FF.mjs → product-metadata-EW6JGOKL.mjs} +2 -1
  73. package/dist/{product-organization-DSLOXW5A.mjs → product-organization-6N7JBWH5.mjs} +4 -3
  74. package/dist/{product-prices-V2GFT2G7.mjs → product-prices-NPJIYAIK.mjs} +3 -1
  75. package/dist/{product-shipping-profile-NLRGC7KV.mjs → product-shipping-profile-EK6G3NTZ.mjs} +5 -12
  76. package/dist/{product-tag-detail-7XVM7Y5E.mjs → product-tag-detail-NDZJLI2Q.mjs} +3 -2
  77. package/dist/{product-tag-list-4RN3TID2.mjs → product-tag-list-A73PYQRI.mjs} +3 -2
  78. package/dist/{product-type-detail-QXOXDTQH.mjs → product-type-detail-AQ5SUXFF.mjs} +3 -2
  79. package/dist/{product-type-list-NI6QQVX4.mjs → product-type-list-TUHBNIIB.mjs} +2 -1
  80. package/dist/{product-variant-detail-WFDTTF4Y.mjs → product-variant-detail-3XZBP2QJ.mjs} +2 -1
  81. package/dist/{product-variant-edit-ZCOZ2OHG.mjs → product-variant-edit-7FZ7PQ6U.mjs} +1 -1
  82. package/dist/{product-variant-manage-inventory-items-2JUO2FGP.mjs → product-variant-manage-inventory-items-PRFQHHZD.mjs} +1 -1
  83. package/dist/{product-variant-metadata-TUYVF4C5.mjs → product-variant-metadata-PY76KWCU.mjs} +2 -1
  84. package/dist/{profile-detail-VCI642G7.mjs → profile-detail-EYSOSXIU.mjs} +2 -1
  85. package/dist/{promotion-create-UI7NBO2K.mjs → promotion-create-DUY3VRR7.mjs} +2 -2
  86. package/dist/{promotion-detail-LRLVERBI.mjs → promotion-detail-KUVY3KBM.mjs} +4 -3
  87. package/dist/{promotion-list-5FMJO53N.mjs → promotion-list-6PKG7DBB.mjs} +5 -4
  88. package/dist/{region-create-QE2IO46D.mjs → region-create-3UVS7VHZ.mjs} +1 -1
  89. package/dist/{region-detail-D7XDE57X.mjs → region-detail-SGGN2NPK.mjs} +2 -1
  90. package/dist/{region-edit-UTIINDKG.mjs → region-edit-GPMEIHUM.mjs} +1 -1
  91. package/dist/{region-list-I2G6N2SP.mjs → region-list-ETVUX5R3.mjs} +2 -1
  92. package/dist/{region-metadata-YFRRLV5I.mjs → region-metadata-J4QDEISD.mjs} +2 -1
  93. package/dist/{reservation-create-CENQKDIW.mjs → reservation-create-O3ALBX5F.mjs} +1 -1
  94. package/dist/{reservation-detail-4JHMO7WY.mjs → reservation-detail-X46PRDBS.mjs} +2 -1
  95. package/dist/{reservation-list-5D5YHF2E.mjs → reservation-list-HF5TGB2X.mjs} +2 -1
  96. package/dist/{reservation-metadata-XIHGYPGA.mjs → reservation-metadata-GBTOI33G.mjs} +2 -1
  97. package/dist/{reset-password-V7XNNW3U.mjs → reset-password-CXIAZ6KT.mjs} +1 -1
  98. package/dist/{return-reason-list-UHUURCNJ.mjs → return-reason-list-R2B2M5F3.mjs} +3 -2
  99. package/dist/{sales-channel-add-products-WO6ZGXV5.mjs → sales-channel-add-products-XX6XXL67.mjs} +1 -1
  100. package/dist/{sales-channel-detail-PAOUTJJB.mjs → sales-channel-detail-A5LWMTIW.mjs} +3 -2
  101. package/dist/{sales-channel-list-VH2MIY3C.mjs → sales-channel-list-WIDZSTDW.mjs} +2 -1
  102. package/dist/{sales-channel-metadata-B2OYQIVZ.mjs → sales-channel-metadata-EU2OLGZU.mjs} +2 -1
  103. package/dist/{shipping-profile-detail-7E5Y3TE7.mjs → shipping-profile-detail-E2ZVCQB5.mjs} +2 -1
  104. package/dist/{shipping-profile-metadata-5XEC3GKU.mjs → shipping-profile-metadata-B3XD5644.mjs} +2 -1
  105. package/dist/{shipping-profiles-list-Q5KNKB3G.mjs → shipping-profiles-list-QF6YVBB6.mjs} +2 -1
  106. package/dist/{store-detail-4MCDPZIL.mjs → store-detail-RK42OQIJ.mjs} +2 -1
  107. package/dist/{store-edit-FFZQFGNN.mjs → store-edit-VP2ZK6DB.mjs} +1 -1
  108. package/dist/{store-metadata-PMRHY3QN.mjs → store-metadata-Z2PO4TKS.mjs} +2 -1
  109. package/dist/{tax-region-detail-BQJHDRQT.mjs → tax-region-detail-MUS2Q44R.mjs} +2 -1
  110. package/dist/{tax-region-list-AYS4JBDG.mjs → tax-region-list-OAH2FFY2.mjs} +2 -1
  111. package/dist/{tax-region-province-detail-YLFL2QHN.mjs → tax-region-province-detail-WENPM2PD.mjs} +2 -1
  112. package/dist/{tax-region-tax-override-create-TCWZQYJ4.mjs → tax-region-tax-override-create-VANMBRAP.mjs} +2 -2
  113. package/dist/{tax-region-tax-override-edit-U6UWIVZX.mjs → tax-region-tax-override-edit-IY5SXK2S.mjs} +2 -2
  114. package/dist/{user-detail-MLWL3L57.mjs → user-detail-I53MPAAS.mjs} +2 -1
  115. package/dist/{user-list-6YBGEIUH.mjs → user-list-6DWTXQUP.mjs} +2 -1
  116. package/dist/{user-metadata-AKNNB4TJ.mjs → user-metadata-ISZ5VACI.mjs} +2 -1
  117. package/dist/{workflow-execution-detail-FDHQQNLK.mjs → workflow-execution-detail-ERZLGDON.mjs} +2 -1
  118. package/dist/{workflow-execution-list-GM7JUXXT.mjs → workflow-execution-list-VEHTWIZD.mjs} +2 -1
  119. package/package.json +11 -11
  120. package/src/components/common/inline-tip/index.ts +1 -0
  121. package/src/components/common/inline-tip/inline-tip.tsx +60 -0
  122. package/src/components/forms/metadata-form/metadata-form.tsx +8 -19
  123. package/src/components/inputs/combobox/combobox.tsx +0 -14
  124. package/src/extensions/forms/form-extension-zone/form-extension-zone.tsx +3 -5
  125. package/src/extensions/routes/utils.ts +32 -158
  126. package/src/extensions/types.ts +0 -2
  127. package/src/hooks/table/query/use-product-table-query.tsx +0 -4
  128. package/src/i18n/translations/$schema.json +2 -55
  129. package/src/i18n/translations/en.json +1 -16
  130. package/src/providers/router-provider/route-extensions.tsx +0 -1
  131. package/src/routes/api-key-management/api-key-management-detail/components/api-key-general-section/api-key-general-section.tsx +1 -3
  132. package/src/routes/locations/location-detail/components/location-general-section/location-general-section.tsx +3 -13
  133. package/src/routes/locations/location-service-zone-create/components/create-service-zone-form/create-service-zone-form.tsx +3 -2
  134. package/src/routes/locations/location-service-zone-edit/components/edit-region-form/edit-service-zone-form.tsx +3 -4
  135. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +46 -54
  136. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +2 -8
  137. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-prices-form.tsx +2 -27
  138. package/src/routes/locations/location-service-zone-shipping-option-create/location-service-zone-shipping-option-create.tsx +3 -14
  139. package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +42 -50
  140. package/src/routes/locations/location-service-zone-shipping-option-edit/location-service-zone-shipping-option-edit.tsx +1 -15
  141. package/src/routes/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx +4 -23
  142. package/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx +28 -21
  143. package/src/routes/orders/order-detail/constants.ts +0 -1
  144. package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +2 -2
  145. package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +9 -7
  146. package/src/routes/products/product-create/components/product-create-organize-form/components/product-create-organize-section/product-create-details-organize-section.tsx +1 -3
  147. package/src/routes/products/product-create/constants.ts +4 -4
  148. package/src/routes/products/product-create/utils.ts +1 -1
  149. package/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx +1 -2
  150. package/src/routes/products/product-prices/product-prices.tsx +3 -1
  151. package/src/routes/products/product-shipping-profile/components/product-organization-form/product-shipping-profile-form.tsx +2 -13
  152. package/dist/{chunk-EGUG76J6.mjs → chunk-N6PBCMOV.mjs} +3 -3
@@ -4,8 +4,8 @@ import {
4
4
  import {
5
5
  usePromotionTableColumns,
6
6
  usePromotionTableQuery
7
- } from "./chunk-OHX7ZPSQ.mjs";
8
- import "./chunk-NVPP33RF.mjs";
7
+ } from "./chunk-TKREK46F.mjs";
8
+ import "./chunk-MAWEQJDF.mjs";
9
9
  import "./chunk-MSDRGCRR.mjs";
10
10
  import "./chunk-4GQOUCX6.mjs";
11
11
  import "./chunk-ADOCJB6L.mjs";
@@ -21,7 +21,7 @@ import "./chunk-WX2SMNCD.mjs";
21
21
  import {
22
22
  currencies
23
23
  } from "./chunk-MWVM4TYO.mjs";
24
- import "./chunk-6AYVHNRZ.mjs";
24
+ import "./chunk-UT3IS7J3.mjs";
25
25
  import {
26
26
  usePromotionTableFilters
27
27
  } from "./chunk-LSEYENCI.mjs";
@@ -74,8 +74,9 @@ import "./chunk-SY6HAFQV.mjs";
74
74
  import "./chunk-HYULYW73.mjs";
75
75
  import {
76
76
  useDashboardExtension
77
- } from "./chunk-5MEZIE5U.mjs";
77
+ } from "./chunk-VIJAVLIU.mjs";
78
78
  import "./chunk-ONB3JEHR.mjs";
79
+ import "./chunk-53IEL2PE.mjs";
79
80
  import "./chunk-5ZZZZK7A.mjs";
80
81
  import {
81
82
  queryClient
@@ -34,8 +34,9 @@ import {
34
34
  } from "./chunk-SWYL3QGB.mjs";
35
35
  import {
36
36
  useDashboardExtension
37
- } from "./chunk-5MEZIE5U.mjs";
37
+ } from "./chunk-VIJAVLIU.mjs";
38
38
  import "./chunk-ONB3JEHR.mjs";
39
+ import "./chunk-53IEL2PE.mjs";
39
40
  import "./chunk-FXYH54JP.mjs";
40
41
  import "./chunk-774WSTCC.mjs";
41
42
  import "./chunk-WAYDNCEG.mjs";
@@ -1,7 +1,7 @@
1
1
  import "./chunk-XRTVFYCW.mjs";
2
2
  import {
3
3
  MetadataForm
4
- } from "./chunk-QXEWLJCG.mjs";
4
+ } from "./chunk-QX7ANQDG.mjs";
5
5
  import "./chunk-LPEUYMRK.mjs";
6
6
  import "./chunk-OC7BQLYI.mjs";
7
7
  import "./chunk-QE3BG56P.mjs";
@@ -38,6 +38,7 @@ import "./chunk-6HTZNHPT.mjs";
38
38
  import {
39
39
  RouteDrawer
40
40
  } from "./chunk-AYRG2MQL.mjs";
41
+ import "./chunk-53IEL2PE.mjs";
41
42
  import "./chunk-5ZZZZK7A.mjs";
42
43
  import "./chunk-FXYH54JP.mjs";
43
44
  import "./chunk-774WSTCC.mjs";
@@ -27,7 +27,7 @@ import "./chunk-WX2SMNCD.mjs";
27
27
  import "./chunk-MNXC6Q4F.mjs";
28
28
  import {
29
29
  useProductTableQuery
30
- } from "./chunk-Y2ZAIM5S.mjs";
30
+ } from "./chunk-4M3ZY7KA.mjs";
31
31
  import {
32
32
  useProductTableFilters
33
33
  } from "./chunk-IPEN5VX6.mjs";
@@ -79,8 +79,9 @@ import "./chunk-SY6HAFQV.mjs";
79
79
  import "./chunk-HYULYW73.mjs";
80
80
  import {
81
81
  useDashboardExtension
82
- } from "./chunk-5MEZIE5U.mjs";
82
+ } from "./chunk-VIJAVLIU.mjs";
83
83
  import "./chunk-ONB3JEHR.mjs";
84
+ import "./chunk-53IEL2PE.mjs";
84
85
  import {
85
86
  useProducts
86
87
  } from "./chunk-5ZZZZK7A.mjs";
@@ -42,8 +42,9 @@ import {
42
42
  } from "./chunk-WHZIEWSQ.mjs";
43
43
  import {
44
44
  useDashboardExtension
45
- } from "./chunk-5MEZIE5U.mjs";
45
+ } from "./chunk-VIJAVLIU.mjs";
46
46
  import "./chunk-ONB3JEHR.mjs";
47
+ import "./chunk-53IEL2PE.mjs";
47
48
  import "./chunk-5ZZZZK7A.mjs";
48
49
  import "./chunk-FXYH54JP.mjs";
49
50
  import "./chunk-774WSTCC.mjs";
@@ -15,7 +15,7 @@ import "./chunk-WX2SMNCD.mjs";
15
15
  import "./chunk-MNXC6Q4F.mjs";
16
16
  import {
17
17
  useProductTableQuery
18
- } from "./chunk-Y2ZAIM5S.mjs";
18
+ } from "./chunk-4M3ZY7KA.mjs";
19
19
  import {
20
20
  useProductTableFilters
21
21
  } from "./chunk-IPEN5VX6.mjs";
@@ -3,7 +3,6 @@ import {
3
3
  } from "./chunk-C76H5USB.mjs";
4
4
 
5
5
  // src/hooks/table/query/use-product-table-query.tsx
6
- var DEFAULT_FIELDS = "id,title,handle,status,*collection,*sales_channels,variants.id";
7
6
  var useProductTableQuery = ({
8
7
  prefix,
9
8
  pageSize = 20
@@ -53,8 +52,7 @@ var useProductTableQuery = ({
53
52
  tag_id: tag_id ? tag_id.split(",") : void 0,
54
53
  type_id: type_id?.split(","),
55
54
  status: status?.split(","),
56
- q,
57
- fields: DEFAULT_FIELDS
55
+ q
58
56
  };
59
57
  return {
60
58
  searchParams,
@@ -0,0 +1,46 @@
1
+ // src/components/common/inline-tip/inline-tip.tsx
2
+ import { clx } from "@medusajs/ui";
3
+ import { forwardRef } from "react";
4
+ import { useTranslation } from "react-i18next";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var InlineTip = forwardRef(
7
+ ({ variant = "tip", label, className, children, ...props }, ref) => {
8
+ const { t } = useTranslation();
9
+ const labelValue = label || (variant === "warning" ? t("general.warning") : t("general.tip"));
10
+ return /* @__PURE__ */ jsxs(
11
+ "div",
12
+ {
13
+ ref,
14
+ className: clx(
15
+ "bg-ui-bg-component txt-small text-ui-fg-subtle grid grid-cols-[4px_1fr] items-start gap-3 rounded-lg border p-3",
16
+ className
17
+ ),
18
+ ...props,
19
+ children: [
20
+ /* @__PURE__ */ jsx(
21
+ "div",
22
+ {
23
+ role: "presentation",
24
+ className: clx("w-4px bg-ui-tag-neutral-icon h-full rounded-full", {
25
+ "bg-ui-tag-orange-icon": variant === "warning"
26
+ })
27
+ }
28
+ ),
29
+ /* @__PURE__ */ jsxs("div", { className: "text-pretty", children: [
30
+ /* @__PURE__ */ jsxs("strong", { className: "txt-small-plus text-ui-fg-base", children: [
31
+ labelValue,
32
+ ":"
33
+ ] }),
34
+ " ",
35
+ children
36
+ ] })
37
+ ]
38
+ }
39
+ );
40
+ }
41
+ );
42
+ InlineTip.displayName = "InlineTip";
43
+
44
+ export {
45
+ InlineTip
46
+ };
@@ -38,7 +38,6 @@ var DEFAULT_RELATIONS = [
38
38
  "*promotion",
39
39
  "*shipping_methods",
40
40
  "*fulfillments",
41
- "+fulfillments.shipping_option.service_zone.fulfillment_set.type",
42
41
  "*fulfillments.items",
43
42
  "*fulfillments.labels",
44
43
  "*fulfillments.labels",
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZQRKUG6J.mjs";
5
5
  import {
6
6
  i18n
7
- } from "./chunk-6AYVHNRZ.mjs";
7
+ } from "./chunk-UT3IS7J3.mjs";
8
8
  import {
9
9
  FileUpload
10
10
  } from "./chunk-TYTNUPXB.mjs";
@@ -26,7 +26,7 @@ var normalizeProductFormValues = (values) => {
26
26
  sales_channels: values?.sales_channels?.length ? values.sales_channels?.map((sc) => ({ id: sc.id })) : void 0,
27
27
  images,
28
28
  collection_id: values.collection_id || void 0,
29
- shipping_profile_id: values.shipping_profile_id || void 0,
29
+ shipping_profile_id: values.shipping_profile_id,
30
30
  categories: values.categories.map((id) => ({ id })),
31
31
  type_id: values.type_id || void 0,
32
32
  handle: values.handle || void 0,
@@ -151,7 +151,8 @@ var ProductCreateSchema = z.object({
151
151
  discountable: z.boolean(),
152
152
  type_id: z.string().optional(),
153
153
  collection_id: z.string().optional(),
154
- shipping_profile_id: z.string().optional(),
154
+ shipping_profile_id: z.string(),
155
+ // TODO: require min(1) when partial validation per tab is added
155
156
  categories: z.array(z.string()),
156
157
  tags: z.array(z.string()).optional(),
157
158
  sales_channels: z.array(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Combobox
3
- } from "./chunk-3LLQ6F7F.mjs";
3
+ } from "./chunk-W6N53UNG.mjs";
4
4
  import {
5
5
  usePromotionRuleAttributes,
6
6
  usePromotionRuleValues,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  i18n
3
- } from "./chunk-6AYVHNRZ.mjs";
3
+ } from "./chunk-UT3IS7J3.mjs";
4
4
 
5
5
  // src/lib/promotions.ts
6
6
  var promotionStatusMap = {
@@ -42,7 +42,7 @@ import {
42
42
  } from "./chunk-DLZWPHHO.mjs";
43
43
  import {
44
44
  useProductTableQuery
45
- } from "./chunk-Y2ZAIM5S.mjs";
45
+ } from "./chunk-4M3ZY7KA.mjs";
46
46
  import {
47
47
  useProductTableFilters
48
48
  } from "./chunk-IPEN5VX6.mjs";
@@ -11,6 +11,9 @@ import {
11
11
  RouteDrawer,
12
12
  useRouteModal
13
13
  } from "./chunk-AYRG2MQL.mjs";
14
+ import {
15
+ InlineTip
16
+ } from "./chunk-53IEL2PE.mjs";
14
17
  import {
15
18
  Form
16
19
  } from "./chunk-WAYDNCEG.mjs";
@@ -22,7 +25,6 @@ import {
22
25
  DropdownMenu,
23
26
  Heading,
24
27
  IconButton,
25
- InlineTip,
26
28
  clx,
27
29
  toast
28
30
  } from "@medusajs/ui";
@@ -73,7 +75,7 @@ var InnerForm = ({
73
75
  resolver: zodResolver(MetadataSchema)
74
76
  });
75
77
  const handleSubmit = form.handleSubmit(async (data) => {
76
- const parsedData = parseValues(data, metadata);
78
+ const parsedData = parseValues(data);
77
79
  await hook(
78
80
  {
79
81
  metadata: parsedData
@@ -322,26 +324,18 @@ function getDefaultValues(metadata) {
322
324
  };
323
325
  });
324
326
  }
325
- function parseValues(values, original) {
327
+ function parseValues(values) {
326
328
  const metadata = values.metadata;
327
329
  const isEmpty = !metadata.length || metadata.length === 1 && !metadata[0].key && !metadata[0].value;
328
330
  if (isEmpty) {
329
331
  return null;
330
332
  }
331
333
  const update = {};
332
- if (original) {
333
- Object.keys(original).forEach((originalKey) => {
334
- const exists = metadata.some((field) => field.key === originalKey);
335
- if (!exists) {
336
- update[originalKey] = "";
337
- }
338
- });
339
- }
340
334
  metadata.forEach((field) => {
341
335
  let key = field.key;
342
336
  let value = field.value;
343
337
  const disabled = field.disabled;
344
- if (!key) {
338
+ if (!key || !value) {
345
339
  return;
346
340
  }
347
341
  if (disabled) {
@@ -349,15 +343,15 @@ function parseValues(values, original) {
349
343
  return;
350
344
  }
351
345
  key = key.trim();
352
- value = value?.trim() ?? "";
346
+ value = value.trim();
353
347
  if (value === "true") {
354
348
  update[key] = true;
355
349
  } else if (value === "false") {
356
350
  update[key] = false;
357
351
  } else {
358
- const isNumeric = /^-?\d*\.?\d+$/.test(value);
359
- if (isNumeric) {
360
- update[key] = parseFloat(value);
352
+ const parsedNumber = parseFloat(value);
353
+ if (!isNaN(parsedNumber)) {
354
+ update[key] = parsedNumber;
361
355
  } else {
362
356
  update[key] = value;
363
357
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPromotionStatus
3
- } from "./chunk-NVPP33RF.mjs";
3
+ } from "./chunk-MAWEQJDF.mjs";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -7034,7 +7034,6 @@ var en_default = {
7034
7034
  available: "Available",
7035
7035
  inStock: "In stock",
7036
7036
  markAsShipped: "Mark as shipped",
7037
- markAsPickedUp: "Mark as picked up",
7038
7037
  markAsDelivered: "Mark as delivered",
7039
7038
  itemsToFulfillDesc: "Choose items and quantities to fulfill",
7040
7039
  locationDescription: "Choose which location you want to fulfill items from.",
@@ -7064,8 +7063,7 @@ var en_default = {
7064
7063
  created: "Fulfillment created successfully",
7065
7064
  canceled: "Fulfillment successfully canceled",
7066
7065
  fulfillmentShipped: "Cannot cancel an already shipped fulfillment",
7067
- fulfillmentDelivered: "Fulfillment marked as delivered successfully",
7068
- fulfillmentPickedUp: "Fulfillment marked as picked up successfully"
7066
+ fulfillmentDelivered: "Fulfillment marked as delivered successfully"
7069
7067
  },
7070
7068
  trackingLabel: "Tracking",
7071
7069
  shippingFromLabel: "Shipping from",
@@ -7275,11 +7273,6 @@ var en_default = {
7275
7273
  action: "Connect sales channels",
7276
7274
  successToast: "Sales channels were successfully updated."
7277
7275
  },
7278
- pickupOptions: {
7279
- edit: {
7280
- header: "Edit Pickup Option"
7281
- }
7282
- },
7283
7276
  shippingOptions: {
7284
7277
  create: {
7285
7278
  shipping: {
@@ -7288,12 +7281,6 @@ var en_default = {
7288
7281
  label: "Shipping options",
7289
7282
  successToast: "Shipping option {{name}} was successfully created."
7290
7283
  },
7291
- pickup: {
7292
- header: "Create Pickup Option for {{zone}}",
7293
- hint: "Create a new pickup option to define how products are picked up from this location.",
7294
- label: "Pickup options",
7295
- successToast: "Pickup option {{name}} was successfully created."
7296
- },
7297
7284
  returns: {
7298
7285
  header: "Create a Return Option for {{zone}}",
7299
7286
  hint: "Create a new return option to define how products are returned to this location.",
@@ -7357,8 +7344,6 @@ var en_default = {
7357
7344
  count: {
7358
7345
  shipping_one: "{{count}} shipping option",
7359
7346
  shipping_other: "{{count}} shipping options",
7360
- pickup_one: "{{count}} pickup option",
7361
- pickup_other: "{{count}} pickup options",
7362
7347
  returns_one: "{{count}} return option",
7363
7348
  returns_other: "{{count}} return options"
7364
7349
  },
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  isFetchError
3
3
  } from "./chunk-ONB3JEHR.mjs";
4
+ import {
5
+ InlineTip
6
+ } from "./chunk-53IEL2PE.mjs";
4
7
  import {
5
8
  Form
6
9
  } from "./chunk-WAYDNCEG.mjs";
@@ -265,8 +268,7 @@ var useDashboardExtension = () => {
265
268
  };
266
269
 
267
270
  // src/extensions/forms/form-extension-zone/form-extension-zone.tsx
268
- import { InlineTip, Input, Switch } from "@medusajs/ui";
269
- import { useTranslation } from "react-i18next";
271
+ import { Input, Switch } from "@medusajs/ui";
270
272
 
271
273
  // src/extensions/forms/form-extension-zone/utils.ts
272
274
  import {
@@ -352,7 +354,6 @@ var FormExtensionFieldComponent = ({
352
354
  component,
353
355
  placeholder
354
356
  }) => {
355
- const { t } = useTranslation();
356
357
  if (component) {
357
358
  const Component = component;
358
359
  return /* @__PURE__ */ jsx3(Component, { ...field, placeholder });
@@ -368,7 +369,7 @@ var FormExtensionFieldComponent = ({
368
369
  return /* @__PURE__ */ jsx3(Switch, { ...field });
369
370
  }
370
371
  default: {
371
- return /* @__PURE__ */ jsx3(InlineTip, { variant: "warning", label: t("general.warning"), children: "The field type does not support rendering a fallback component. Please provide a component prop." });
372
+ return /* @__PURE__ */ jsx3(InlineTip, { variant: "warning", children: "The field type does not support rendering a fallback component. Please provide a component prop." });
372
373
  }
373
374
  }
374
375
  };
@@ -440,13 +441,13 @@ function getLinkedFields(model, fields = "") {
440
441
  // src/components/utilities/error-boundary/error-boundary.tsx
441
442
  import { ExclamationCircle } from "@medusajs/icons";
442
443
  import { Text } from "@medusajs/ui";
443
- import { useTranslation as useTranslation2 } from "react-i18next";
444
+ import { useTranslation } from "react-i18next";
444
445
  import { Navigate, useLocation, useRouteError } from "react-router-dom";
445
446
  import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
446
447
  var ErrorBoundary = () => {
447
448
  const error = useRouteError();
448
449
  const location = useLocation();
449
- const { t } = useTranslation2();
450
+ const { t } = useTranslation();
450
451
  let code = null;
451
452
  if (isFetchError(error)) {
452
453
  if (error.status === 401) {
@@ -503,84 +504,36 @@ var getRouteExtensions = (module, type) => {
503
504
  return !settingsRouteRegex.test(route.path);
504
505
  });
505
506
  };
506
- var createBranchRoute = (segment) => ({
507
- path: segment,
508
- children: []
509
- });
510
- var createLeafRoute = (Component, loader, handle) => ({
511
- path: "",
512
- ErrorBoundary,
513
- async lazy() {
514
- const result = { Component };
515
- if (loader) {
516
- result.loader = loader;
517
- }
518
- if (handle) {
519
- result.handle = handle;
520
- }
521
- return result;
522
- }
523
- });
524
- var createParallelRoute = (path, Component, loader, handle) => ({
525
- path,
526
- async lazy() {
527
- const result = { Component };
528
- if (loader) {
529
- result.loader = loader;
530
- }
531
- if (handle) {
532
- result.handle = handle;
507
+ var createRouteMap = (routes, ignore) => {
508
+ const root = [];
509
+ const addRoute = (pathSegments, Component, currentLevel) => {
510
+ if (!pathSegments.length) {
511
+ return;
533
512
  }
534
- return result;
535
- }
536
- });
537
- var processParallelRoutes = (parallelRoutes, currentFullPath) => {
538
- return parallelRoutes?.map(({ path, Component, loader, handle }) => {
539
- const childPath = path?.replace(currentFullPath, "").replace(/^\/+/, "");
540
- if (!childPath) {
541
- return null;
513
+ const [currentSegment, ...remainingSegments] = pathSegments;
514
+ let route = currentLevel.find((r) => r.path === currentSegment);
515
+ if (!route) {
516
+ route = { path: currentSegment, children: [] };
517
+ currentLevel.push(route);
542
518
  }
543
- return createParallelRoute(childPath, Component, loader, handle);
544
- }).filter(Boolean);
545
- };
546
- var addRoute = (pathSegments, Component, currentLevel, loader, handle, parallelRoutes, fullPath) => {
547
- if (!pathSegments.length) {
548
- return;
549
- }
550
- const [currentSegment, ...remainingSegments] = pathSegments;
551
- let route = currentLevel.find((r) => r.path === currentSegment);
552
- if (!route) {
553
- route = createBranchRoute(currentSegment);
554
- currentLevel.push(route);
555
- }
556
- const currentFullPath = fullPath ? `${fullPath}/${currentSegment}` : currentSegment;
557
- if (remainingSegments.length === 0) {
558
- route.children || (route.children = []);
559
- const leaf = createLeafRoute(Component, loader);
560
- if (handle) {
561
- route.handle = handle;
519
+ if (remainingSegments.length === 0) {
520
+ route.children || (route.children = []);
521
+ route.children.push({
522
+ path: "",
523
+ ErrorBoundary,
524
+ async lazy() {
525
+ return { Component };
526
+ }
527
+ });
528
+ } else {
529
+ route.children || (route.children = []);
530
+ addRoute(remainingSegments, Component, route.children);
562
531
  }
563
- leaf.children = processParallelRoutes(parallelRoutes, currentFullPath);
564
- route.children.push(leaf);
565
- } else {
566
- route.children || (route.children = []);
567
- addRoute(
568
- remainingSegments,
569
- Component,
570
- route.children,
571
- loader,
572
- handle,
573
- parallelRoutes,
574
- currentFullPath
575
- );
576
- }
577
- };
578
- var createRouteMap = (routes, ignore) => {
579
- const root = [];
580
- routes.forEach(({ path, Component, loader, handle, children }) => {
532
+ };
533
+ routes.forEach(({ path, Component }) => {
581
534
  const cleanedPath = ignore ? path.replace(ignore, "").replace(/^\/+/, "") : path.replace(/^\/+/, "");
582
535
  const pathSegments = cleanedPath.split("/").filter(Boolean);
583
- addRoute(pathSegments, Component, root, loader, handle, children);
536
+ addRoute(pathSegments, Component, root);
584
537
  });
585
538
  return root;
586
539
  };
@@ -52,7 +52,6 @@ var ComboboxImpl = ({
52
52
  isFetchingNextPage,
53
53
  onCreateOption,
54
54
  noResultsPlaceholder,
55
- allowClear,
56
55
  ...inputProps
57
56
  }, ref) => {
58
57
  const [open, setOpen] = useState(false);
@@ -242,18 +241,6 @@ var ComboboxImpl = ({
242
241
  }
243
242
  )
244
243
  ] }),
245
- allowClear && controlledValue && /* @__PURE__ */ jsx(
246
- "button",
247
- {
248
- type: "button",
249
- onClick: (e) => {
250
- e.preventDefault();
251
- handleValueChange(void 0);
252
- },
253
- className: "bg-ui-bg-base hover:bg-ui-bg-base-hover txt-compact-small-plus text-ui-fg-subtle focus-within:border-ui-fg-interactive transition-fg absolute right-[28px] top-0.5 z-[1] flex h-[28px] items-center rounded-[4px] border px-1.5 py-[2px] outline-none",
254
- children: /* @__PURE__ */ jsx(XMarkMini, { className: "text-ui-fg-muted" })
255
- }
256
- ),
257
244
  /* @__PURE__ */ jsx(
258
245
  PrimitiveComboboxDisclosure,
259
246
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getLinkedFields
3
- } from "./chunk-5MEZIE5U.mjs";
3
+ } from "./chunk-VIJAVLIU.mjs";
4
4
 
5
5
  // src/routes/products/product-detail/constants.ts
6
6
  var PRODUCT_DETAIL_FIELDS = getLinkedFields(
@@ -14,7 +14,7 @@ import "./chunk-WX2SMNCD.mjs";
14
14
  import "./chunk-MNXC6Q4F.mjs";
15
15
  import {
16
16
  useProductTableQuery
17
- } from "./chunk-Y2ZAIM5S.mjs";
17
+ } from "./chunk-4M3ZY7KA.mjs";
18
18
  import {
19
19
  useProductTableFilters
20
20
  } from "./chunk-IPEN5VX6.mjs";
@@ -15,7 +15,7 @@ import "./chunk-WX2SMNCD.mjs";
15
15
  import "./chunk-MNXC6Q4F.mjs";
16
16
  import {
17
17
  useProductTableQuery
18
- } from "./chunk-Y2ZAIM5S.mjs";
18
+ } from "./chunk-4M3ZY7KA.mjs";
19
19
  import {
20
20
  useProductTableFilters
21
21
  } from "./chunk-IPEN5VX6.mjs";
@@ -67,8 +67,9 @@ import "./chunk-SY6HAFQV.mjs";
67
67
  import "./chunk-HYULYW73.mjs";
68
68
  import {
69
69
  useDashboardExtension
70
- } from "./chunk-5MEZIE5U.mjs";
70
+ } from "./chunk-VIJAVLIU.mjs";
71
71
  import "./chunk-ONB3JEHR.mjs";
72
+ import "./chunk-53IEL2PE.mjs";
72
73
  import {
73
74
  useProducts
74
75
  } from "./chunk-5ZZZZK7A.mjs";
@@ -33,7 +33,7 @@ import "./chunk-OMC5JCQH.mjs";
33
33
  import "./chunk-LSEYENCI.mjs";
34
34
  import "./chunk-XMAWMECC.mjs";
35
35
  import "./chunk-MRJ6KQAL.mjs";
36
- import "./chunk-Y2ZAIM5S.mjs";
36
+ import "./chunk-4M3ZY7KA.mjs";
37
37
  import "./chunk-IPEN5VX6.mjs";
38
38
  import "./chunk-JKKJMCX3.mjs";
39
39
  import "./chunk-M3VFKDXJ.mjs";
@@ -79,8 +79,9 @@ import "./chunk-SY6HAFQV.mjs";
79
79
  import "./chunk-HYULYW73.mjs";
80
80
  import {
81
81
  useDashboardExtension
82
- } from "./chunk-5MEZIE5U.mjs";
82
+ } from "./chunk-VIJAVLIU.mjs";
83
83
  import "./chunk-ONB3JEHR.mjs";
84
+ import "./chunk-53IEL2PE.mjs";
84
85
  import "./chunk-5ZZZZK7A.mjs";
85
86
  import "./chunk-FXYH54JP.mjs";
86
87
  import "./chunk-774WSTCC.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MetadataForm
3
- } from "./chunk-QXEWLJCG.mjs";
3
+ } from "./chunk-QX7ANQDG.mjs";
4
4
  import "./chunk-LPEUYMRK.mjs";
5
5
  import "./chunk-OC7BQLYI.mjs";
6
6
  import "./chunk-QE3BG56P.mjs";
@@ -35,6 +35,7 @@ import "./chunk-HYULYW73.mjs";
35
35
  import "./chunk-IUCDCPJU.mjs";
36
36
  import "./chunk-6HTZNHPT.mjs";
37
37
  import "./chunk-AYRG2MQL.mjs";
38
+ import "./chunk-53IEL2PE.mjs";
38
39
  import "./chunk-5ZZZZK7A.mjs";
39
40
  import "./chunk-FXYH54JP.mjs";
40
41
  import "./chunk-774WSTCC.mjs";
@@ -83,8 +83,9 @@ import "./chunk-SY6HAFQV.mjs";
83
83
  import "./chunk-HYULYW73.mjs";
84
84
  import {
85
85
  useDashboardExtension
86
- } from "./chunk-5MEZIE5U.mjs";
86
+ } from "./chunk-VIJAVLIU.mjs";
87
87
  import "./chunk-ONB3JEHR.mjs";
88
+ import "./chunk-53IEL2PE.mjs";
88
89
  import {
89
90
  productsQueryKeys
90
91
  } from "./chunk-5ZZZZK7A.mjs";
@@ -66,8 +66,9 @@ import "./chunk-SY6HAFQV.mjs";
66
66
  import "./chunk-HYULYW73.mjs";
67
67
  import {
68
68
  useDashboardExtension
69
- } from "./chunk-5MEZIE5U.mjs";
69
+ } from "./chunk-VIJAVLIU.mjs";
70
70
  import "./chunk-ONB3JEHR.mjs";
71
+ import "./chunk-53IEL2PE.mjs";
71
72
  import {
72
73
  productsQueryKeys
73
74
  } from "./chunk-5ZZZZK7A.mjs";