@medusajs/dashboard 2.10.4-snapshot-20250922195925 → 2.10.4-snapshot-20250923121159

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 (151) hide show
  1. package/dist/{add-campaign-promotions-PLZXWFNV.mjs → add-campaign-promotions-JOVLXLS4.mjs} +3 -3
  2. package/dist/{api-key-management-detail-ZQFNZNWW.mjs → api-key-management-detail-I7T67TXF.mjs} +2 -3
  3. package/dist/{api-key-management-sales-channels-WL5L5XWM.mjs → api-key-management-sales-channels-6GN6RVZ2.mjs} +1 -1
  4. package/dist/app.css +0 -3
  5. package/dist/app.js +3320 -4024
  6. package/dist/app.mjs +3 -4
  7. package/dist/{campaign-detail-VTCCVWKS.mjs → campaign-detail-NRZHGINV.mjs} +4 -5
  8. package/dist/{categories-metadata-FTFYPASQ.mjs → categories-metadata-GXWJ3HOG.mjs} +1 -2
  9. package/dist/{category-detail-QHU2CLYA.mjs → category-detail-ENUI5EFL.mjs} +2 -3
  10. package/dist/{category-products-YGTL7GXQ.mjs → category-products-ZG5QDWSW.mjs} +2 -3
  11. package/dist/{chunk-JO6QASTJ.mjs → chunk-37UXEJF2.mjs} +1 -1
  12. package/dist/{chunk-BM5ZIV5V.mjs → chunk-5WKYR6PY.mjs} +1 -1
  13. package/dist/{chunk-VE7JFMAN.mjs → chunk-6AGMMT5H.mjs} +2 -2
  14. package/dist/{chunk-XTNS2NRD.mjs → chunk-BHZAQZYP.mjs} +1 -1
  15. package/dist/{chunk-6V6KATTW.mjs → chunk-JHXKKOHO.mjs} +10 -33
  16. package/dist/{chunk-FTVAORQM.mjs → chunk-JIQQKKLO.mjs} +1 -1
  17. package/dist/{chunk-5CE3JPWD.mjs → chunk-JMQ6V54O.mjs} +1 -1
  18. package/dist/{chunk-CU5EFQSB.mjs → chunk-NRBOPOMS.mjs} +1 -1
  19. package/dist/{chunk-BSBCIU6C.mjs → chunk-OGHQ6VJI.mjs} +5 -0
  20. package/dist/{chunk-K3OMOMRB.mjs → chunk-OKMF4YI7.mjs} +0 -25
  21. package/dist/{chunk-PHXKD2LR.mjs → chunk-OLUNPPBR.mjs} +1 -1
  22. package/dist/{chunk-WYDDFRYM.mjs → chunk-RVOPC44F.mjs} +103 -135
  23. package/dist/{chunk-YPDTZXV6.mjs → chunk-Y4YXZY7R.mjs} +1 -1
  24. package/dist/{chunk-UNM3LPTG.mjs → chunk-YM4QJC6Y.mjs} +24 -11
  25. package/dist/{chunk-PPI7PTY6.mjs → chunk-ZJA7VBUR.mjs} +6 -33
  26. package/dist/{collection-add-products-OJ2EZLC7.mjs → collection-add-products-2ISNNIHD.mjs} +2 -3
  27. package/dist/{collection-detail-RMZK523E.mjs → collection-detail-OSX6NHNQ.mjs} +2 -3
  28. package/dist/{collection-list-BJ3VNZAA.mjs → collection-list-MPIYSHQJ.mjs} +3 -4
  29. package/dist/{collection-metadata-R3DI65D3.mjs → collection-metadata-EOFYXEQI.mjs} +1 -2
  30. package/dist/{customer-detail-G7G6PYOO.mjs → customer-detail-FCNRRZSW.mjs} +1 -2
  31. package/dist/{customer-group-detail-XQ32DPQ3.mjs → customer-group-detail-QI3QLJJL.mjs} +1 -2
  32. package/dist/{customer-group-list-CARES5CM.mjs → customer-group-list-D26UKQMR.mjs} +2 -3
  33. package/dist/{customers-add-customer-group-NLPVKARS.mjs → customers-add-customer-group-5TFTVDB6.mjs} +1 -2
  34. package/dist/{edit-rules-JRLCVE26.mjs → edit-rules-63NG4QVR.mjs} +1 -2
  35. package/dist/{inventory-create-ZC6HV2FY.mjs → inventory-create-RIVJFJJQ.mjs} +1 -2
  36. package/dist/{inventory-detail-WVI4FTTH.mjs → inventory-detail-QHL7TJFZ.mjs} +2 -3
  37. package/dist/{inventory-metadata-BLIJBNQS.mjs → inventory-metadata-FH4CHJBA.mjs} +1 -2
  38. package/dist/{inventory-stock-ZCTXWRK6.mjs → inventory-stock-D6E4LQRK.mjs} +1 -2
  39. package/dist/{location-detail-GV3POY4C.mjs → location-detail-Z6ZDX6RY.mjs} +1 -2
  40. package/dist/{location-fulfillment-providers-INUQXJYU.mjs → location-fulfillment-providers-45VXZMZI.mjs} +2 -3
  41. package/dist/location-list-62KBWY4T.mjs +316 -0
  42. package/dist/{location-sales-channels-2BOIPBBG.mjs → location-sales-channels-O5XLIPAR.mjs} +1 -1
  43. package/dist/{location-service-zone-shipping-option-create-6KO3QDMQ.mjs → location-service-zone-shipping-option-create-NO3665DC.mjs} +1 -2
  44. package/dist/{login-57FIKGXA.mjs → login-DSPNELTI.mjs} +1 -2
  45. package/dist/{order-create-claim-LXKBCAWN.mjs → order-create-claim-V63BWLB5.mjs} +1 -2
  46. package/dist/{order-create-edit-264PTIEI.mjs → order-create-edit-NPF4UZ4D.mjs} +1 -2
  47. package/dist/{order-create-exchange-ZMUVPYM3.mjs → order-create-exchange-RHIPPSKU.mjs} +1 -2
  48. package/dist/{order-create-fulfillment-LE6O3SA5.mjs → order-create-fulfillment-4SSUHQ75.mjs} +1 -2
  49. package/dist/{order-create-refund-B7BO2EJL.mjs → order-create-refund-QVQC5ZP5.mjs} +1 -2
  50. package/dist/{order-create-shipment-UOPCS5N7.mjs → order-create-shipment-TJAARKWA.mjs} +1 -2
  51. package/dist/{order-detail-SG7AXBRS.mjs → order-detail-2MIN6B2I.mjs} +1 -2
  52. package/dist/{order-edit-billing-address-RPPJ4Z36.mjs → order-edit-billing-address-QP2I5F3E.mjs} +1 -2
  53. package/dist/{order-edit-email-A7D5HTU6.mjs → order-edit-email-7WT7XTHB.mjs} +1 -2
  54. package/dist/{order-edit-shipping-address-LXKC5CJE.mjs → order-edit-shipping-address-3QFMQP4I.mjs} +1 -2
  55. package/dist/{order-list-ZCMNSZYB.mjs → order-list-73DBATIK.mjs} +2 -2
  56. package/dist/{order-metadata-KS47UOEE.mjs → order-metadata-YJS26DHK.mjs} +1 -2
  57. package/dist/{order-receive-return-PDU2YVLT.mjs → order-receive-return-PZMMMUB2.mjs} +1 -2
  58. package/dist/{order-request-transfer-WMQKDLDF.mjs → order-request-transfer-QBIZD36E.mjs} +1 -2
  59. package/dist/{price-list-create-QZSB4W5Z.mjs → price-list-create-RXDH5CXF.mjs} +2 -3
  60. package/dist/{price-list-detail-2FMINPFT.mjs → price-list-detail-PKIKOJ4H.mjs} +2 -3
  61. package/dist/{price-list-prices-add-WYK2QBAI.mjs → price-list-prices-add-2CDPUSYA.mjs} +2 -3
  62. package/dist/{product-attributes-KDXI2RNP.mjs → product-attributes-FQDJCNUB.mjs} +4 -5
  63. package/dist/{product-create-TVYPK4VC.mjs → product-create-W37RQLON.mjs} +5 -6
  64. package/dist/{product-create-variant-6YWLDA2X.mjs → product-create-variant-KJKQ6ROY.mjs} +1 -2
  65. package/dist/{product-detail-RFKXMYE5.mjs → product-detail-TANIKAEK.mjs} +5 -6
  66. package/dist/{product-edit-5FNY7HG4.mjs → product-edit-DO76GHBI.mjs} +4 -5
  67. package/dist/{product-export-BEAUMFAZ.mjs → product-export-XERWEI5H.mjs} +2 -3
  68. package/dist/{product-import-SOX4UJPM.mjs → product-import-AGFJMSVK.mjs} +1 -2
  69. package/dist/{product-list-ZVXATJRE.mjs → product-list-KJ3HXPLB.mjs} +4 -5
  70. package/dist/{product-media-JPU23SPH.mjs → product-media-VG4YM2W6.mjs} +2 -2
  71. package/dist/{product-metadata-QRRCHZZB.mjs → product-metadata-NZ3HKO67.mjs} +1 -2
  72. package/dist/{product-organization-QTWB7VMB.mjs → product-organization-OOVUGXNP.mjs} +4 -5
  73. package/dist/{product-sales-channels-UGPAXFAV.mjs → product-sales-channels-QEJRSCAU.mjs} +1 -1
  74. package/dist/{product-shipping-profile-Q6UX6ZNJ.mjs → product-shipping-profile-FFMKOF6B.mjs} +4 -5
  75. package/dist/{product-stock-TSAIHVY6.mjs → product-stock-SUVEQZML.mjs} +1 -2
  76. package/dist/{product-tag-create-5NZJS2D2.mjs → product-tag-create-T6HVAQKN.mjs} +1 -2
  77. package/dist/{product-tag-detail-3XHUROBO.mjs → product-tag-detail-HOWUZC3P.mjs} +5 -6
  78. package/dist/{product-tag-edit-YYOOHKGG.mjs → product-tag-edit-WWQDNDRC.mjs} +1 -2
  79. package/dist/{product-tag-list-5XTTMNOA.mjs → product-tag-list-FAKSLONF.mjs} +5 -6
  80. package/dist/{product-tag-metadata-YAD3MPWF.mjs → product-tag-metadata-6B56VEZU.mjs} +1 -2
  81. package/dist/{product-type-detail-MNTAHQKJ.mjs → product-type-detail-KN64HYUV.mjs} +2 -3
  82. package/dist/{product-type-metadata-HWR3WBGT.mjs → product-type-metadata-F3FTI6OG.mjs} +1 -2
  83. package/dist/{product-variant-detail-DKFAG3KO.mjs → product-variant-detail-OUHBUY4J.mjs} +1 -2
  84. package/dist/{product-variant-edit-EZENYVAN.mjs → product-variant-edit-NBYHDUJ5.mjs} +1 -2
  85. package/dist/{product-variant-metadata-S7QENSUG.mjs → product-variant-metadata-XDVLJYGQ.mjs} +1 -2
  86. package/dist/{promotion-create-O3KUSPIU.mjs → promotion-create-UUOG52D5.mjs} +1 -2
  87. package/dist/{promotion-detail-5DU6ULJG.mjs → promotion-detail-GONXLJZ2.mjs} +113 -65
  88. package/dist/{promotion-list-Q2FOGORE.mjs → promotion-list-NNEMVJ6I.mjs} +3 -3
  89. package/dist/{region-metadata-G3JH5ZN6.mjs → region-metadata-IQVB4ERU.mjs} +1 -2
  90. package/dist/{reservation-detail-PJXS67UM.mjs → reservation-detail-RTGHD35L.mjs} +1 -2
  91. package/dist/{reservation-metadata-UCKQB66O.mjs → reservation-metadata-WKJXBRLQ.mjs} +1 -2
  92. package/dist/{reset-password-5KIEBJHN.mjs → reset-password-ANJHGYUE.mjs} +1 -1
  93. package/dist/{return-reason-list-OGFYWMC5.mjs → return-reason-list-MOP7YWMZ.mjs} +2 -2
  94. package/dist/{sales-channel-add-products-CSMNFGHD.mjs → sales-channel-add-products-OKVZJ6FI.mjs} +2 -3
  95. package/dist/{sales-channel-detail-ZSA3HNWW.mjs → sales-channel-detail-WESBK6Q7.mjs} +2 -3
  96. package/dist/{sales-channel-list-X5ADP34V.mjs → sales-channel-list-LKVHXUXW.mjs} +2 -3
  97. package/dist/{sales-channel-metadata-ABWIDI3B.mjs → sales-channel-metadata-2OQAHYB4.mjs} +1 -2
  98. package/dist/{shipping-option-type-create-Q2X5OMJS.mjs → shipping-option-type-create-3CGPGDYJ.mjs} +1 -2
  99. package/dist/{shipping-option-type-detail-VT3Y5QQ4.mjs → shipping-option-type-detail-S23H2OGW.mjs} +2 -3
  100. package/dist/{shipping-option-type-edit-IA3EER2N.mjs → shipping-option-type-edit-IHE7XM6M.mjs} +1 -2
  101. package/dist/{shipping-option-type-list-JZPKAL3H.mjs → shipping-option-type-list-47GRJ6EC.mjs} +2 -3
  102. package/dist/{shipping-profile-metadata-EYXBWBF2.mjs → shipping-profile-metadata-OXWOXAAR.mjs} +1 -2
  103. package/dist/{store-detail-LI72QMUZ.mjs → store-detail-4K7TW2TP.mjs} +1 -2
  104. package/dist/{store-metadata-ZITLAS5H.mjs → store-metadata-JP2CI7EF.mjs} +1 -2
  105. package/dist/{tax-region-create-IU2R5VIY.mjs → tax-region-create-IWM4755I.mjs} +2 -3
  106. package/dist/{tax-region-detail-6FHD35LB.mjs → tax-region-detail-V2F2DONN.mjs} +1 -2
  107. package/dist/{tax-region-edit-O2WJXYIE.mjs → tax-region-edit-CJPMYTBF.mjs} +1 -2
  108. package/dist/{tax-region-province-detail-YDBU4CUU.mjs → tax-region-province-detail-4PUQ5ADW.mjs} +1 -2
  109. package/dist/{tax-region-tax-override-create-EF3LLZWM.mjs → tax-region-tax-override-create-3SCIOK4P.mjs} +5 -6
  110. package/dist/{tax-region-tax-override-edit-2DG3J6CO.mjs → tax-region-tax-override-edit-P3QJKET3.mjs} +5 -6
  111. package/dist/{user-list-3YFYZFSK.mjs → user-list-MKJLB5CQ.mjs} +1 -1
  112. package/dist/{user-metadata-QUIFIM5G.mjs → user-metadata-ZURLDLGC.mjs} +1 -2
  113. package/dist/{workflow-execution-detail-PVSQ2VGE.mjs → workflow-execution-detail-4R6AFFHV.mjs} +1 -2
  114. package/package.json +9 -9
  115. package/src/components/data-table/data-table.tsx +64 -46
  116. package/src/components/layout/settings-layout/settings-layout.tsx +0 -4
  117. package/src/dashboard-app/routes/get-route.map.tsx +0 -36
  118. package/src/hooks/api/refund-reasons.tsx +9 -113
  119. package/src/hooks/table/columns/index.ts +0 -1
  120. package/src/hooks/table/query/index.ts +0 -1
  121. package/src/i18n/translations/$schema.json +19 -112
  122. package/src/i18n/translations/en.json +6 -33
  123. package/src/routes/locations/location-list/index.ts +0 -1
  124. package/src/routes/locations/location-list/location-list.tsx +51 -19
  125. package/src/routes/locations/location-list/use-location-list-table-columns.tsx +185 -0
  126. package/src/routes/locations/location-list/use-location-list-table-query.tsx +22 -0
  127. package/dist/chunk-BKJC5BGQ.mjs +0 -53
  128. package/dist/chunk-YZJ3W776.mjs +0 -87
  129. package/dist/location-list-BKK2PAKF.mjs +0 -297
  130. package/dist/refund-reason-create-NSZFGXWI.mjs +0 -158
  131. package/dist/refund-reason-edit-RKUSPQCL.mjs +0 -144
  132. package/dist/refund-reason-list-2F5PFERT.mjs +0 -273
  133. package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +0 -28
  134. package/src/hooks/table/query/use-refund-reason-table-query.tsx +0 -32
  135. package/src/routes/locations/location-list/components/location-list-header/index.ts +0 -1
  136. package/src/routes/locations/location-list/components/location-list-header/location-list-header.tsx +0 -21
  137. package/src/routes/locations/location-list/loader.ts +0 -36
  138. package/src/routes/refund-reasons/common/hooks/use-delete-refund-reason-action.tsx +0 -34
  139. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/index.ts +0 -1
  140. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +0 -131
  141. package/src/routes/refund-reasons/refund-reason-create/index.ts +0 -1
  142. package/src/routes/refund-reasons/refund-reason-create/refund-reason-create.tsx +0 -10
  143. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/index.ts +0 -1
  144. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +0 -119
  145. package/src/routes/refund-reasons/refund-reason-edit/index.ts +0 -1
  146. package/src/routes/refund-reasons/refund-reason-edit/refund-reason-edit.tsx +0 -33
  147. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/index.ts +0 -1
  148. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +0 -131
  149. package/src/routes/refund-reasons/refund-reason-list/index.ts +0 -2
  150. package/src/routes/refund-reasons/refund-reason-list/loader.ts +0 -16
  151. package/src/routes/refund-reasons/refund-reason-list/refund-reason-list.tsx +0 -21
@@ -33,9 +33,8 @@ import {
33
33
  } from "./chunk-LPEUYMRK.mjs";
34
34
  import "./chunk-3NJTXRIY.mjs";
35
35
  import "./chunk-OC7BQLYI.mjs";
36
- import "./chunk-BSBCIU6C.mjs";
36
+ import "./chunk-OGHQ6VJI.mjs";
37
37
  import "./chunk-KOSCMAIC.mjs";
38
- import "./chunk-YZJ3W776.mjs";
39
38
  import {
40
39
  useTaxRates
41
40
  } from "./chunk-X6DSNTTX.mjs";
@@ -3,15 +3,15 @@ import {
3
3
  TargetItem,
4
4
  TaxRateRuleReferenceSchema,
5
5
  createTaxRulePayload
6
- } from "./chunk-VE7JFMAN.mjs";
6
+ } from "./chunk-6AGMMT5H.mjs";
7
7
  import "./chunk-ENNEJRBR.mjs";
8
- import "./chunk-6V6KATTW.mjs";
8
+ import "./chunk-JHXKKOHO.mjs";
9
9
  import "./chunk-GLVCH422.mjs";
10
10
  import "./chunk-QMRGIWOP.mjs";
11
11
  import "./chunk-2WZUO66T.mjs";
12
12
  import "./chunk-I3VB6NM2.mjs";
13
13
  import "./chunk-ZJRFL6ZN.mjs";
14
- import "./chunk-K3OMOMRB.mjs";
14
+ import "./chunk-OKMF4YI7.mjs";
15
15
  import "./chunk-I5HYE2RW.mjs";
16
16
  import "./chunk-RIV7FKGN.mjs";
17
17
  import "./chunk-TDK3JDOB.mjs";
@@ -54,7 +54,7 @@ import "./chunk-2HKRIUW4.mjs";
54
54
  import "./chunk-W7625H47.mjs";
55
55
  import "./chunk-DLZWPHHO.mjs";
56
56
  import "./chunk-LSEYENCI.mjs";
57
- import "./chunk-YPDTZXV6.mjs";
57
+ import "./chunk-Y4YXZY7R.mjs";
58
58
  import "./chunk-Z26G6WFJ.mjs";
59
59
  import "./chunk-M3VFKDXJ.mjs";
60
60
  import "./chunk-C76H5USB.mjs";
@@ -80,9 +80,8 @@ import "./chunk-67ORSRVT.mjs";
80
80
  import {
81
81
  Form
82
82
  } from "./chunk-OBQI23QM.mjs";
83
- import "./chunk-BSBCIU6C.mjs";
83
+ import "./chunk-OGHQ6VJI.mjs";
84
84
  import "./chunk-KOSCMAIC.mjs";
85
- import "./chunk-YZJ3W776.mjs";
86
85
  import {
87
86
  useCreateTaxRate
88
87
  } from "./chunk-X6DSNTTX.mjs";
@@ -3,15 +3,15 @@ import {
3
3
  TargetItem,
4
4
  TaxRateRuleReferenceSchema,
5
5
  createTaxRulePayload
6
- } from "./chunk-VE7JFMAN.mjs";
6
+ } from "./chunk-6AGMMT5H.mjs";
7
7
  import "./chunk-ENNEJRBR.mjs";
8
- import "./chunk-6V6KATTW.mjs";
8
+ import "./chunk-JHXKKOHO.mjs";
9
9
  import "./chunk-GLVCH422.mjs";
10
10
  import "./chunk-QMRGIWOP.mjs";
11
11
  import "./chunk-2WZUO66T.mjs";
12
12
  import "./chunk-I3VB6NM2.mjs";
13
13
  import "./chunk-ZJRFL6ZN.mjs";
14
- import "./chunk-K3OMOMRB.mjs";
14
+ import "./chunk-OKMF4YI7.mjs";
15
15
  import "./chunk-I5HYE2RW.mjs";
16
16
  import "./chunk-RIV7FKGN.mjs";
17
17
  import "./chunk-TDK3JDOB.mjs";
@@ -54,7 +54,7 @@ import "./chunk-2HKRIUW4.mjs";
54
54
  import "./chunk-W7625H47.mjs";
55
55
  import "./chunk-DLZWPHHO.mjs";
56
56
  import "./chunk-LSEYENCI.mjs";
57
- import "./chunk-YPDTZXV6.mjs";
57
+ import "./chunk-Y4YXZY7R.mjs";
58
58
  import "./chunk-Z26G6WFJ.mjs";
59
59
  import "./chunk-M3VFKDXJ.mjs";
60
60
  import "./chunk-C76H5USB.mjs";
@@ -80,9 +80,8 @@ import "./chunk-67ORSRVT.mjs";
80
80
  import {
81
81
  Form
82
82
  } from "./chunk-OBQI23QM.mjs";
83
- import "./chunk-BSBCIU6C.mjs";
83
+ import "./chunk-OGHQ6VJI.mjs";
84
84
  import "./chunk-KOSCMAIC.mjs";
85
- import "./chunk-YZJ3W776.mjs";
86
85
  import {
87
86
  useTaxRate,
88
87
  useUpdateTaxRate
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-Q33G337Z.mjs";
10
10
  import {
11
11
  DataTable
12
- } from "./chunk-UNM3LPTG.mjs";
12
+ } from "./chunk-YM4QJC6Y.mjs";
13
13
  import {
14
14
  useQueryParams
15
15
  } from "./chunk-C76H5USB.mjs";
@@ -10,9 +10,8 @@ import {
10
10
  import "./chunk-LPEUYMRK.mjs";
11
11
  import "./chunk-OC7BQLYI.mjs";
12
12
  import "./chunk-OBQI23QM.mjs";
13
- import "./chunk-BSBCIU6C.mjs";
13
+ import "./chunk-OGHQ6VJI.mjs";
14
14
  import "./chunk-KOSCMAIC.mjs";
15
- import "./chunk-YZJ3W776.mjs";
16
15
  import "./chunk-X6DSNTTX.mjs";
17
16
  import "./chunk-I6E6CALJ.mjs";
18
17
  import "./chunk-4RG7UJCT.mjs";
@@ -17,9 +17,8 @@ import {
17
17
  import {
18
18
  SingleColumnPageSkeleton
19
19
  } from "./chunk-LPEUYMRK.mjs";
20
- import "./chunk-BSBCIU6C.mjs";
20
+ import "./chunk-OGHQ6VJI.mjs";
21
21
  import "./chunk-KOSCMAIC.mjs";
22
- import "./chunk-YZJ3W776.mjs";
23
22
  import "./chunk-X6DSNTTX.mjs";
24
23
  import "./chunk-I6E6CALJ.mjs";
25
24
  import "./chunk-4RG7UJCT.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/dashboard",
3
- "version": "2.10.4-snapshot-20250922195925",
3
+ "version": "2.10.4-snapshot-20250923121159",
4
4
  "scripts": {
5
5
  "generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
6
6
  "dev": "vite",
@@ -45,10 +45,10 @@
45
45
  "@dnd-kit/utilities": "^3.2.2",
46
46
  "@hookform/error-message": "^2.0.1",
47
47
  "@hookform/resolvers": "3.4.2",
48
- "@medusajs/admin-shared": "2.10.4-snapshot-20250922195925",
49
- "@medusajs/icons": "2.10.4-snapshot-20250922195925",
50
- "@medusajs/js-sdk": "2.10.4-snapshot-20250922195925",
51
- "@medusajs/ui": "4.0.24-snapshot-20250922195925",
48
+ "@medusajs/admin-shared": "2.10.4-snapshot-20250923121159",
49
+ "@medusajs/icons": "2.10.4-snapshot-20250923121159",
50
+ "@medusajs/js-sdk": "2.10.4-snapshot-20250923121159",
51
+ "@medusajs/ui": "4.0.24-snapshot-20250923121159",
52
52
  "@radix-ui/react-dialog": "1.1.4",
53
53
  "@radix-ui/react-dismissable-layer": "1.1.4",
54
54
  "@tanstack/react-query": "5.64.2",
@@ -78,10 +78,10 @@
78
78
  "zod": "3.25.76"
79
79
  },
80
80
  "devDependencies": {
81
- "@medusajs/admin-shared": "2.10.4-snapshot-20250922195925",
82
- "@medusajs/admin-vite-plugin": "2.10.4-snapshot-20250922195925",
83
- "@medusajs/types": "2.10.4-snapshot-20250922195925",
84
- "@medusajs/ui-preset": "2.10.4-snapshot-20250922195925",
81
+ "@medusajs/admin-shared": "2.10.4-snapshot-20250923121159",
82
+ "@medusajs/admin-vite-plugin": "2.10.4-snapshot-20250923121159",
83
+ "@medusajs/types": "2.10.4-snapshot-20250923121159",
84
+ "@medusajs/ui-preset": "2.10.4-snapshot-20250923121159",
85
85
  "@types/node": "^20.11.15",
86
86
  "@types/react": "^18.2.79",
87
87
  "@types/react-dom": "^18.2.25",
@@ -31,26 +31,26 @@ type DataTableActionProps = {
31
31
  label: string
32
32
  disabled?: boolean
33
33
  } & (
34
- | {
34
+ | {
35
35
  to: string
36
36
  }
37
- | {
37
+ | {
38
38
  onClick: () => void
39
39
  }
40
- )
40
+ )
41
41
 
42
42
  type DataTableActionMenuActionProps = {
43
43
  label: string
44
44
  icon: ReactNode
45
45
  disabled?: boolean
46
46
  } & (
47
- | {
47
+ | {
48
48
  to: string
49
49
  }
50
- | {
50
+ | {
51
51
  onClick: () => void
52
52
  }
53
- )
53
+ )
54
54
 
55
55
  type DataTableActionMenuGroupProps = {
56
56
  actions: DataTableActionMenuActionProps[]
@@ -138,15 +138,18 @@ export const DataTable = <TData,>({
138
138
  const isViewConfigEnabled = useFeatureFlag("view_configurations")
139
139
 
140
140
  // If view config is disabled, don't use column visibility features
141
- const effectiveEnableColumnVisibility = isViewConfigEnabled && enableColumnVisibility
141
+ const effectiveEnableColumnVisibility =
142
+ isViewConfigEnabled && enableColumnVisibility
142
143
  const effectiveEnableViewSelector = isViewConfigEnabled && enableViewSelector
143
144
 
144
145
  const enableFiltering = filters && filters.length > 0
145
- const showFilterMenu = enableFilterMenu !== undefined ? enableFilterMenu : enableFiltering
146
+ const showFilterMenu =
147
+ enableFilterMenu !== undefined ? enableFilterMenu : enableFiltering
146
148
  const enableCommands = commands && commands.length > 0
147
149
  const enableSorting = columns.some((column) => column.enableSorting)
148
150
 
149
- const [columnVisibility, setColumnVisibility] = React.useState<VisibilityState>(initialColumnVisibility)
151
+ const [columnVisibility, setColumnVisibility] =
152
+ React.useState<VisibilityState>(initialColumnVisibility)
150
153
 
151
154
  // Update column visibility when initial visibility changes
152
155
  React.useEffect(() => {
@@ -154,9 +157,12 @@ export const DataTable = <TData,>({
154
157
  const currentKeys = Object.keys(columnVisibility).sort()
155
158
  const newKeys = Object.keys(initialColumnVisibility).sort()
156
159
 
157
- const hasChanged = currentKeys.length !== newKeys.length ||
160
+ const hasChanged =
161
+ currentKeys.length !== newKeys.length ||
158
162
  currentKeys.some((key, index) => key !== newKeys[index]) ||
159
- Object.entries(initialColumnVisibility).some(([key, value]) => columnVisibility[key] !== value)
163
+ Object.entries(initialColumnVisibility).some(
164
+ ([key, value]) => columnVisibility[key] !== value
165
+ )
160
166
 
161
167
  if (hasChanged) {
162
168
  setColumnVisibility(initialColumnVisibility)
@@ -164,10 +170,13 @@ export const DataTable = <TData,>({
164
170
  }, [initialColumnVisibility])
165
171
 
166
172
  // Wrapper function to handle column visibility changes
167
- const handleColumnVisibilityChange = React.useCallback((visibility: VisibilityState) => {
168
- setColumnVisibility(visibility)
169
- onColumnVisibilityChange?.(visibility)
170
- }, [onColumnVisibilityChange])
173
+ const handleColumnVisibilityChange = React.useCallback(
174
+ (visibility: VisibilityState) => {
175
+ setColumnVisibility(visibility)
176
+ onColumnVisibilityChange?.(visibility)
177
+ },
178
+ [onColumnVisibilityChange]
179
+ )
171
180
 
172
181
  // Extract filter IDs for query param management
173
182
  const filterIds = useMemo(() => filters?.map((f) => f.id) ?? [], [filters])
@@ -231,7 +240,7 @@ export const DataTable = <TData,>({
231
240
  Array.from(prev.keys()).forEach((key) => {
232
241
  if (prefixedFilterIds.includes(key)) {
233
242
  // Extract the unprefixed key
234
- const unprefixedKey = prefix ? key.replace(`${prefix}_`, '') : key
243
+ const unprefixedKey = prefix ? key.replace(`${prefix}_`, "") : key
235
244
  if (!(unprefixedKey in value)) {
236
245
  prev.delete(key)
237
246
  }
@@ -257,11 +266,14 @@ export const DataTable = <TData,>({
257
266
  }, [order])
258
267
 
259
268
  // Memoize current configuration to prevent infinite loops
260
- const currentConfiguration = useMemo(() => ({
261
- filters: filtering,
262
- sorting: sorting,
263
- search: search,
264
- }), [filtering, sorting, search])
269
+ const currentConfiguration = useMemo(
270
+ () => ({
271
+ filters: filtering,
272
+ sorting: sorting,
273
+ search: search,
274
+ }),
275
+ [filtering, sorting, search]
276
+ )
265
277
 
266
278
  const handleSortingChange = (value: DataTableSortingState) => {
267
279
  setSearchParams((prev) => {
@@ -315,42 +327,43 @@ export const DataTable = <TData,>({
315
327
  onRowClick: rowHref ? onRowClick : undefined,
316
328
  pagination: enablePagination
317
329
  ? {
318
- state: pagination,
319
- onPaginationChange: handlePaginationChange,
320
- }
330
+ state: pagination,
331
+ onPaginationChange: handlePaginationChange,
332
+ }
321
333
  : undefined,
322
334
  filtering: enableFiltering
323
335
  ? {
324
- state: filtering,
325
- onFilteringChange: handleFilteringChange,
326
- }
336
+ state: filtering,
337
+ onFilteringChange: handleFilteringChange,
338
+ }
327
339
  : undefined,
328
340
  sorting: enableSorting
329
341
  ? {
330
- state: sorting,
331
- onSortingChange: handleSortingChange,
332
- }
342
+ state: sorting,
343
+ onSortingChange: handleSortingChange,
344
+ }
333
345
  : undefined,
334
346
  search: enableSearch
335
347
  ? {
336
- state: search,
337
- onSearchChange: handleSearchChange,
338
- }
348
+ state: search,
349
+ onSearchChange: handleSearchChange,
350
+ }
339
351
  : undefined,
340
352
  rowSelection,
341
353
  isLoading,
342
354
  columnVisibility: effectiveEnableColumnVisibility
343
355
  ? {
344
- state: columnVisibility,
345
- onColumnVisibilityChange: handleColumnVisibilityChange,
346
- }
347
- : undefined,
348
- columnOrder: effectiveEnableColumnVisibility && columnOrder && onColumnOrderChange
349
- ? {
350
- state: columnOrder,
351
- onColumnOrderChange: onColumnOrderChange,
352
- }
356
+ state: columnVisibility,
357
+ onColumnVisibilityChange: handleColumnVisibilityChange,
358
+ }
353
359
  : undefined,
360
+ columnOrder:
361
+ effectiveEnableColumnVisibility && columnOrder && onColumnOrderChange
362
+ ? {
363
+ state: columnOrder,
364
+ onColumnOrderChange: onColumnOrderChange,
365
+ }
366
+ : undefined,
354
367
  })
355
368
 
356
369
  const shouldRenderHeading = heading || subHeading
@@ -358,7 +371,9 @@ export const DataTable = <TData,>({
358
371
  return (
359
372
  <UiDataTable
360
373
  instance={instance}
361
- className={layout === "fill" ? "h-full [&_tr]:last-of-type:!border-b" : undefined}
374
+ className={
375
+ layout === "fill" ? "h-full [&_tr]:last-of-type:!border-b" : undefined
376
+ }
362
377
  >
363
378
  <UiDataTable.Toolbar
364
379
  className="flex flex-col items-start justify-between gap-2 md:flex-row md:items-center"
@@ -397,7 +412,9 @@ export const DataTable = <TData,>({
397
412
  </div>
398
413
  )}
399
414
  {actionMenu && <ActionMenu variant="primary" {...actionMenu} />}
400
- {actions && actions.length > 0 && <DataTableActions actions={actions} />}
415
+ {actions && actions.length > 0 && (
416
+ <DataTableActions actions={actions} />
417
+ )}
401
418
  {!actions && action && <DataTableAction {...action} />}
402
419
  </div>
403
420
  </div>
@@ -407,7 +424,9 @@ export const DataTable = <TData,>({
407
424
  <UiDataTable.Pagination translations={paginationTranslations} />
408
425
  )}
409
426
  {enableCommands && (
410
- <UiDataTable.CommandBar selectedLabel={(count) => `${count} selected`} />
427
+ <UiDataTable.CommandBar
428
+ selectedLabel={(count) => `${count} selected`}
429
+ />
411
430
  )}
412
431
  </UiDataTable>
413
432
  )
@@ -520,4 +539,3 @@ const DataTableActions = ({ actions }: { actions: DataTableActionProps[] }) => {
520
539
  </div>
521
540
  )
522
541
  }
523
-
@@ -43,10 +43,6 @@ const useSettingRoutes = (): INavItem[] => {
43
43
  label: t("returnReasons.domain"),
44
44
  to: "/settings/return-reasons",
45
45
  },
46
- {
47
- label: t("refundReasons.domain"),
48
- to: "/settings/refund-reasons",
49
- },
50
46
  {
51
47
  label: t("salesChannels.domain"),
52
48
  to: "/settings/sales-channels",
@@ -1780,42 +1780,6 @@ export function getRouteMap({
1780
1780
  },
1781
1781
  ],
1782
1782
  },
1783
- {
1784
- path: "refund-reasons",
1785
- element: <Outlet />,
1786
- handle: {
1787
- breadcrumb: () => t("refundReasons.domain"),
1788
- },
1789
- children: [
1790
- {
1791
- path: "",
1792
- lazy: () =>
1793
- import("../../routes/refund-reasons/refund-reason-list"),
1794
- children: [
1795
- {
1796
- path: "create",
1797
- lazy: () =>
1798
- import(
1799
- "../../routes/refund-reasons/refund-reason-create"
1800
- ),
1801
- },
1802
-
1803
- {
1804
- path: ":id",
1805
- children: [
1806
- {
1807
- path: "edit",
1808
- lazy: () =>
1809
- import(
1810
- "../../routes/refund-reasons/refund-reason-edit"
1811
- ),
1812
- },
1813
- ],
1814
- },
1815
- ],
1816
- },
1817
- ],
1818
- },
1819
1783
  ...(settingsRoutes?.[0]?.children || []),
1820
1784
  ],
1821
1785
  },
@@ -1,133 +1,29 @@
1
1
  import { HttpTypes } from "@medusajs/types"
2
- import {
3
- QueryKey,
4
- useMutation,
5
- UseMutationOptions,
6
- useQuery,
7
- UseQueryOptions,
8
- } from "@tanstack/react-query"
9
-
10
- import { FetchError } from "@medusajs/js-sdk"
2
+ import { QueryKey, useQuery, UseQueryOptions } from "@tanstack/react-query"
11
3
  import { sdk } from "../../lib/client"
12
- import { queryClient } from "../../lib/query-client"
13
4
  import { queryKeysFactory } from "../../lib/query-key-factory"
5
+ import { FetchError } from "@medusajs/js-sdk"
14
6
 
15
- const REFUND_REASONS_QUERY_KEY = "refund_reasons" as const
16
- export const refundReasonsQueryKeys = queryKeysFactory(REFUND_REASONS_QUERY_KEY)
7
+ const REFUND_REASON_QUERY_KEY = "refund-reason" as const
8
+ export const refundReasonQueryKeys = queryKeysFactory(REFUND_REASON_QUERY_KEY)
17
9
 
18
10
  export const useRefundReasons = (
19
- query?: HttpTypes.AdminRefundReasonListParams,
11
+ query?: HttpTypes.RefundReasonFilters,
20
12
  options?: Omit<
21
13
  UseQueryOptions<
22
- HttpTypes.AdminRefundReasonListResponse,
14
+ HttpTypes.RefundReasonsResponse,
23
15
  FetchError,
24
- HttpTypes.AdminRefundReasonListResponse,
16
+ HttpTypes.RefundReasonsResponse,
25
17
  QueryKey
26
18
  >,
27
- "queryFn" | "queryKey"
19
+ "queryKey" | "queryFn"
28
20
  >
29
21
  ) => {
30
22
  const { data, ...rest } = useQuery({
31
23
  queryFn: () => sdk.admin.refundReason.list(query),
32
- queryKey: refundReasonsQueryKeys.list(query),
33
- ...options,
34
- })
35
-
36
- return { ...data, ...rest }
37
- }
38
-
39
- export const useRefundReason = (
40
- id: string,
41
- query?: HttpTypes.AdminRefundReasonParams,
42
- options?: Omit<
43
- UseQueryOptions<
44
- HttpTypes.AdminRefundReasonResponse,
45
- FetchError,
46
- HttpTypes.AdminRefundReasonResponse,
47
- QueryKey
48
- >,
49
- "queryFn" | "queryKey"
50
- >
51
- ) => {
52
- const { data, ...rest } = useQuery({
53
- queryFn: () => sdk.admin.refundReason.retrieve(id, query),
54
- queryKey: refundReasonsQueryKeys.detail(id),
24
+ queryKey: [],
55
25
  ...options,
56
26
  })
57
27
 
58
28
  return { ...data, ...rest }
59
29
  }
60
-
61
- export const useCreateRefundReason = (
62
- query?: HttpTypes.AdminRefundReasonParams,
63
- options?: UseMutationOptions<
64
- HttpTypes.RefundReasonResponse,
65
- FetchError,
66
- HttpTypes.AdminCreateRefundReason
67
- >
68
- ) => {
69
- return useMutation({
70
- mutationFn: async (data) => sdk.admin.refundReason.create(data, query),
71
- onSuccess: (data, variables, context) => {
72
- queryClient.invalidateQueries({
73
- queryKey: refundReasonsQueryKeys.lists(),
74
- })
75
-
76
- options?.onSuccess?.(data, variables, context)
77
- },
78
- ...options,
79
- })
80
- }
81
-
82
- export const useUpdateRefundReason = (
83
- id: string,
84
- query?: HttpTypes.AdminRefundReasonParams,
85
- options?: UseMutationOptions<
86
- HttpTypes.AdminRefundReasonResponse,
87
- FetchError,
88
- HttpTypes.AdminUpdateRefundReason
89
- >
90
- ) => {
91
- return useMutation({
92
- mutationFn: async (data) => sdk.admin.refundReason.update(id, data, query),
93
- onSuccess: (data, variables, context) => {
94
- queryClient.invalidateQueries({
95
- queryKey: refundReasonsQueryKeys.lists(),
96
- })
97
- queryClient.invalidateQueries({
98
- queryKey: refundReasonsQueryKeys.detail(data.refund_reason.id, query),
99
- })
100
-
101
- options?.onSuccess?.(data, variables, context)
102
- },
103
- ...options,
104
- })
105
- }
106
-
107
- export const useDeleteRefundReason = (
108
- id: string,
109
- options?: UseMutationOptions<
110
- HttpTypes.AdminRefundReasonDeleteResponse,
111
- FetchError,
112
- void
113
- >
114
- ) => {
115
- return useMutation({
116
- mutationFn: () => sdk.admin.refundReason.delete(id),
117
- onSuccess: (data, variables, context) => {
118
- queryClient.invalidateQueries({
119
- queryKey: refundReasonsQueryKeys.lists(),
120
- })
121
- queryClient.invalidateQueries({
122
- queryKey: refundReasonsQueryKeys.detail(id),
123
- })
124
-
125
- queryClient.invalidateQueries({
126
- queryKey: refundReasonsQueryKeys.details(),
127
- })
128
-
129
- options?.onSuccess?.(data, variables, context)
130
- },
131
- ...options,
132
- })
133
- }
@@ -6,7 +6,6 @@ export * from "./use-order-table-columns"
6
6
  export * from "./use-product-table-columns"
7
7
  export * from "./use-product-tag-table-columns"
8
8
  export * from "./use-product-type-table-columns"
9
- export * from "./use-refund-reason-table-columns"
10
9
  export * from "./use-region-table-columns"
11
10
  export * from "./use-return-reason-table-columns"
12
11
  export * from "./use-tax-rates-table-columns"
@@ -6,7 +6,6 @@ export * from "./use-order-table-query"
6
6
  export * from "./use-product-table-query"
7
7
  export * from "./use-product-tag-table-query"
8
8
  export * from "./use-product-type-table-query"
9
- export * from "./use-refund-reason-table-query"
10
9
  export * from "./use-region-table-query"
11
10
  export * from "./use-return-reason-table-query"
12
11
  export * from "./use-shipping-option-table-query"