@medusajs/dashboard 3.0.0-snapshot-20251212092246 → 3.0.0-snapshot-20251212142124

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 (127) hide show
  1. package/dist/{api-key-management-detail-I45X6X64.mjs → api-key-management-detail-F7ZRCFPA.mjs} +3 -3
  2. package/dist/app.js +9074 -9199
  3. package/dist/app.mjs +4 -4
  4. package/dist/{campaign-detail-P3CSDHZN.mjs → campaign-detail-6VNSVZHQ.mjs} +3 -3
  5. package/dist/{categories-metadata-BCZ463KN.mjs → categories-metadata-ORPB2LIW.mjs} +3 -3
  6. package/dist/{category-detail-VDUHW3QT.mjs → category-detail-RICXPIVS.mjs} +6 -6
  7. package/dist/{category-products-VOD3XRPG.mjs → category-products-L4XIX3IQ.mjs} +6 -6
  8. package/dist/{chunk-M4Z2YEYB.mjs → chunk-4G2UHUXX.mjs} +8 -8
  9. package/dist/{chunk-F5NZDW7L.mjs → chunk-4VNR7DND.mjs} +2 -2
  10. package/dist/{chunk-HFT7Q5Y5.mjs → chunk-AMOGGDOW.mjs} +1 -1
  11. package/dist/{chunk-B3AOQW2B.mjs → chunk-EQBVGH3N.mjs} +1 -1
  12. package/dist/{chunk-SKA4AJO4.mjs → chunk-EXDBX4YX.mjs} +2 -2
  13. package/dist/{chunk-Z6NHG5LQ.mjs → chunk-FIFVOKTK.mjs} +1 -1
  14. package/dist/{chunk-RU4ZS47V.mjs → chunk-GN6OCHP4.mjs} +1 -11
  15. package/dist/{chunk-F63F3FIT.mjs → chunk-JJGE3EV6.mjs} +2 -2
  16. package/dist/{chunk-QPKW37WR.mjs → chunk-JUVGXLY5.mjs} +1 -1
  17. package/dist/{chunk-UWBENEHD.mjs → chunk-Q4E6LV6K.mjs} +105 -123
  18. package/dist/{chunk-EI27JC4V.mjs → chunk-UKECZ5PA.mjs} +1 -1
  19. package/dist/{chunk-MY6I7UJG.mjs → chunk-XTQ7UFA3.mjs} +1 -1
  20. package/dist/{chunk-YAPTGHGP.mjs → chunk-YV4ANEZF.mjs} +1 -1
  21. package/dist/{collection-add-products-P5B564HQ.mjs → collection-add-products-MO4FGYD5.mjs} +6 -6
  22. package/dist/{collection-detail-PCL3HYPB.mjs → collection-detail-ZCHVPXW5.mjs} +6 -6
  23. package/dist/{collection-list-ANPFZOFP.mjs → collection-list-3UUFO7AP.mjs} +13 -13
  24. package/dist/{collection-metadata-P4A5DXBQ.mjs → collection-metadata-ZOYQDOOT.mjs} +3 -3
  25. package/dist/{customer-detail-ENPJO3DW.mjs → customer-detail-RMZTHQIQ.mjs} +6 -6
  26. package/dist/{customer-group-detail-DVNRFZX5.mjs → customer-group-detail-4S7WB3WV.mjs} +6 -6
  27. package/dist/{customer-group-list-P2QX5AO4.mjs → customer-group-list-JQX6PW6E.mjs} +3 -3
  28. package/dist/{customers-add-customer-group-RVR476OP.mjs → customers-add-customer-group-JKTM33OU.mjs} +6 -6
  29. package/dist/{edit-rules-2W3BXEXR.mjs → edit-rules-AXG2NQNS.mjs} +3 -3
  30. package/dist/en.json +0 -12
  31. package/dist/{inventory-create-VQEK7C5T.mjs → inventory-create-6SKU4TZL.mjs} +3 -3
  32. package/dist/{inventory-detail-UYDDNO24.mjs → inventory-detail-LAYYI2QT.mjs} +3 -3
  33. package/dist/{inventory-metadata-X52VGHA7.mjs → inventory-metadata-Q6E6SZF3.mjs} +3 -3
  34. package/dist/{inventory-stock-EKTOYN2F.mjs → inventory-stock-SNAWXRBE.mjs} +3 -3
  35. package/dist/{location-detail-UVWYE6Q2.mjs → location-detail-XXH22FLG.mjs} +7 -7
  36. package/dist/{location-fulfillment-providers-3BGI2NNW.mjs → location-fulfillment-providers-FSC27EK7.mjs} +4 -4
  37. package/dist/{location-service-zone-shipping-option-create-M7G4SKNP.mjs → location-service-zone-shipping-option-create-GWNLLSM5.mjs} +3 -3
  38. package/dist/{login-NSCAMAU6.mjs → login-MFUCIAT6.mjs} +3 -3
  39. package/dist/{order-allocate-items-5T57NZOB.mjs → order-allocate-items-3DDI4V3W.mjs} +1 -1
  40. package/dist/{order-create-claim-JLCXZNHU.mjs → order-create-claim-G7BDA7WR.mjs} +5 -5
  41. package/dist/{order-create-edit-QB6LIWSF.mjs → order-create-edit-BXYPZRZV.mjs} +4 -4
  42. package/dist/{order-create-exchange-GOU4AJXP.mjs → order-create-exchange-AGEXEKOF.mjs} +11 -11
  43. package/dist/{order-create-fulfillment-SRRP6X64.mjs → order-create-fulfillment-GMLSBCEK.mjs} +3 -3
  44. package/dist/{order-create-refund-PTOM65QK.mjs → order-create-refund-BT33POIN.mjs} +3 -3
  45. package/dist/{order-create-return-3EOY7TOC.mjs → order-create-return-QGXWSPMP.mjs} +2 -2
  46. package/dist/{order-create-shipment-HNILNFXB.mjs → order-create-shipment-ZVTOKNC4.mjs} +3 -3
  47. package/dist/{order-detail-BCBUUVU7.mjs → order-detail-MORQRSHL.mjs} +11 -11
  48. package/dist/{order-edit-billing-address-3IO7GXIK.mjs → order-edit-billing-address-IUVC4GSZ.mjs} +3 -3
  49. package/dist/{order-edit-email-QIAEOUBV.mjs → order-edit-email-MKLJPREH.mjs} +3 -3
  50. package/dist/{order-edit-shipping-address-QGGMHGBC.mjs → order-edit-shipping-address-GFSRTDFG.mjs} +3 -3
  51. package/dist/{order-list-Y4FET3XV.mjs → order-list-QOYJFYD5.mjs} +82 -38
  52. package/dist/{order-metadata-ZBDTMBHZ.mjs → order-metadata-BRSYOGKE.mjs} +3 -3
  53. package/dist/{order-receive-return-V42FTCFY.mjs → order-receive-return-NI345L43.mjs} +4 -4
  54. package/dist/{order-request-transfer-A6NNIN2O.mjs → order-request-transfer-ZGGIUFRV.mjs} +3 -3
  55. package/dist/{price-list-configuration-54D4JW6G.mjs → price-list-configuration-CWTP3Y5X.mjs} +2 -2
  56. package/dist/{price-list-create-5DI6QXFL.mjs → price-list-create-HDYM5ZGW.mjs} +11 -11
  57. package/dist/{price-list-detail-7XY3MDV5.mjs → price-list-detail-GVGNB5AY.mjs} +6 -6
  58. package/dist/{price-list-prices-add-UA2DT4AM.mjs → price-list-prices-add-P4XHE3F4.mjs} +6 -6
  59. package/dist/{product-attributes-4AEBLFIM.mjs → product-attributes-AXSXHPI5.mjs} +4 -4
  60. package/dist/{product-create-TGR3I2H2.mjs → product-create-CAGTWFTS.mjs} +4 -4
  61. package/dist/{product-create-variant-WI6D5CDG.mjs → product-create-variant-5DLZZQPL.mjs} +3 -3
  62. package/dist/{product-detail-YLYXIRRB.mjs → product-detail-FSORFVRL.mjs} +4 -4
  63. package/dist/{product-edit-ALZUODMD.mjs → product-edit-EYQIREZ6.mjs} +4 -4
  64. package/dist/{product-export-CPL66H6S.mjs → product-export-4XRDDWZQ.mjs} +13 -13
  65. package/dist/{product-image-variants-edit-X3LUMPLJ.mjs → product-image-variants-edit-KCFCTXE2.mjs} +3 -3
  66. package/dist/{product-import-43UXKCL3.mjs → product-import-JTEXWYY7.mjs} +3 -3
  67. package/dist/{product-list-47T2IZ3F.mjs → product-list-T4OZG4OC.mjs} +6 -6
  68. package/dist/{product-metadata-55CAQTPS.mjs → product-metadata-5BLG4EIR.mjs} +3 -3
  69. package/dist/{product-organization-KHZELN3F.mjs → product-organization-BEXN2KXC.mjs} +4 -4
  70. package/dist/{product-stock-22S2HGMM.mjs → product-stock-SSJVQPBZ.mjs} +3 -3
  71. package/dist/{product-tag-create-7GPE246H.mjs → product-tag-create-ZPYRJTC4.mjs} +3 -3
  72. package/dist/{product-tag-detail-BQG2LJK6.mjs → product-tag-detail-VRGVJNDT.mjs} +15 -15
  73. package/dist/{product-tag-edit-WA6FGSIP.mjs → product-tag-edit-2KFYOID4.mjs} +3 -3
  74. package/dist/{product-tag-list-PW7WDCQH.mjs → product-tag-list-WTX6GV7O.mjs} +15 -15
  75. package/dist/{product-tag-metadata-EJ7FEXSE.mjs → product-tag-metadata-Y7YHTUKM.mjs} +3 -3
  76. package/dist/{product-type-detail-TJQS4BVU.mjs → product-type-detail-3ZLSMENL.mjs} +6 -6
  77. package/dist/{product-type-metadata-Q6W5GL7Z.mjs → product-type-metadata-GJACA4N6.mjs} +3 -3
  78. package/dist/{product-variant-detail-LYGQDASG.mjs → product-variant-detail-L5G4CPVH.mjs} +3 -3
  79. package/dist/{product-variant-edit-BW7QMHC5.mjs → product-variant-edit-YXALQPQT.mjs} +3 -3
  80. package/dist/{product-variant-metadata-GDMVC4MZ.mjs → product-variant-metadata-OQOE34VY.mjs} +3 -3
  81. package/dist/{promotion-create-HF6DTKCC.mjs → promotion-create-OXNLKBL7.mjs} +9 -9
  82. package/dist/{promotion-detail-MDVDMQUM.mjs → promotion-detail-N6VHHN3X.mjs} +3 -3
  83. package/dist/{refund-reason-create-RKIH46D6.mjs → refund-reason-create-L36EUXXM.mjs} +3 -3
  84. package/dist/{refund-reason-edit-V3KC6NMO.mjs → refund-reason-edit-364ALB4G.mjs} +3 -3
  85. package/dist/{refund-reason-list-FR7POQS5.mjs → refund-reason-list-ICO2GYRP.mjs} +4 -4
  86. package/dist/{region-metadata-5NGUNAXZ.mjs → region-metadata-VNLW6NYZ.mjs} +3 -3
  87. package/dist/{reservation-detail-JH77TQHN.mjs → reservation-detail-YXIUIN5I.mjs} +3 -3
  88. package/dist/{reservation-metadata-ERCWXYVL.mjs → reservation-metadata-7H7TYWZW.mjs} +3 -3
  89. package/dist/return-reason-list-IFFIDA5O.mjs +1 -1
  90. package/dist/{sales-channel-add-products-SPGDWA44.mjs → sales-channel-add-products-N7EPWF2N.mjs} +6 -6
  91. package/dist/{sales-channel-detail-D7VNPSCN.mjs → sales-channel-detail-DV6BKC5B.mjs} +6 -6
  92. package/dist/{sales-channel-list-QGWQVXVW.mjs → sales-channel-list-33QC2ZXP.mjs} +3 -3
  93. package/dist/{sales-channel-metadata-CMZN74K7.mjs → sales-channel-metadata-HYYQEVRZ.mjs} +3 -3
  94. package/dist/{shipping-option-type-create-4BN2GBHP.mjs → shipping-option-type-create-IXYDKBKG.mjs} +3 -3
  95. package/dist/{shipping-option-type-detail-YB3TCED2.mjs → shipping-option-type-detail-WMZ3DEY6.mjs} +4 -4
  96. package/dist/{shipping-option-type-edit-MDO7ALAU.mjs → shipping-option-type-edit-YYO3Q2QV.mjs} +3 -3
  97. package/dist/{shipping-option-type-list-6TPD3AMM.mjs → shipping-option-type-list-YAL6IQF2.mjs} +4 -4
  98. package/dist/{shipping-profile-metadata-HQI7PCPU.mjs → shipping-profile-metadata-YBXPOVZF.mjs} +3 -3
  99. package/dist/{store-add-locales-XJJCEO6Q.mjs → store-add-locales-AYY44DB3.mjs} +3 -3
  100. package/dist/{store-detail-DNK76PXP.mjs → store-detail-4YVABC3P.mjs} +3 -3
  101. package/dist/{store-metadata-ZJD23O4D.mjs → store-metadata-QQD2NP5U.mjs} +3 -3
  102. package/dist/{tax-region-create-NCO2OQ3I.mjs → tax-region-create-AFGAIC3C.mjs} +3 -3
  103. package/dist/{tax-region-detail-C42CLE64.mjs → tax-region-detail-LM7VIA2N.mjs} +17 -17
  104. package/dist/{tax-region-edit-YZALLSZY.mjs → tax-region-edit-ZLSY22NQ.mjs} +3 -3
  105. package/dist/{tax-region-province-detail-G2DPC6XM.mjs → tax-region-province-detail-ZF75A3Z2.mjs} +17 -17
  106. package/dist/{tax-region-tax-override-create-WIVKENVO.mjs → tax-region-tax-override-create-JVMTMMWB.mjs} +14 -14
  107. package/dist/{tax-region-tax-override-edit-UDEO3UIY.mjs → tax-region-tax-override-edit-HS4BCVC7.mjs} +15 -15
  108. package/dist/{user-metadata-4WOICEE7.mjs → user-metadata-U3WGLABX.mjs} +3 -3
  109. package/dist/{workflow-execution-detail-OKM6P4SX.mjs → workflow-execution-detail-L4IESFKA.mjs} +4 -4
  110. package/package.json +9 -9
  111. package/src/dashboard-app/routes/get-route.map.tsx +0 -6
  112. package/src/hooks/api/orders.tsx +1 -18
  113. package/src/i18n/translations/$schema.json +0 -40
  114. package/src/i18n/translations/en.json +0 -12
  115. package/src/routes/orders/order-list/components/order-list-table/configurable-order-list-table.tsx +6 -14
  116. package/src/routes/orders/order-list/components/order-list-table/order-list-table.tsx +2 -8
  117. package/dist/chunk-35LSPN2U.mjs +0 -66
  118. package/dist/order-export-LPAWHHSK.mjs +0 -121
  119. package/src/routes/orders/order-export/components/export-filters.tsx +0 -22
  120. package/src/routes/orders/order-export/index.ts +0 -1
  121. package/src/routes/orders/order-export/order-export.tsx +0 -66
  122. package/dist/{chunk-YWLAUILP.mjs → chunk-CZFLKMYE.mjs} +3 -3
  123. package/dist/{customer-group-add-customers-A7OGFFJ4.mjs → customer-group-add-customers-HUGHHMU6.mjs} +3 -3
  124. package/dist/{customer-list-TG4D4QOT.mjs → customer-list-ZXCGIXJC.mjs} +3 -3
  125. package/dist/{location-service-zone-shipping-option-edit-M2HJAASG.mjs → location-service-zone-shipping-option-edit-QS6HTWST.mjs} +3 -3
  126. package/dist/{product-type-list-7WQ5D2KV.mjs → product-type-list-QX7QC6RI.mjs} +3 -3
  127. package/dist/{region-list-JAQXIBYD.mjs → region-list-XQRIBDMF.mjs} +3 -3
@@ -20,16 +20,16 @@ import {
20
20
  import {
21
21
  useDocumentDirection
22
22
  } from "./chunk-S4DMV3ZT.mjs";
23
- import "./chunk-QPKW37WR.mjs";
23
+ import "./chunk-JUVGXLY5.mjs";
24
24
  import "./chunk-I4OBEAOJ.mjs";
25
25
  import "./chunk-HI6URQ7H.mjs";
26
26
  import "./chunk-6CLQKVAU.mjs";
27
+ import "./chunk-HKIF5HVL.mjs";
28
+ import "./chunk-XIVBRONM.mjs";
27
29
  import {
28
30
  useWorkflowExecution,
29
31
  workflowExecutionsQueryKeys
30
32
  } from "./chunk-KI7TOXBR.mjs";
31
- import "./chunk-HKIF5HVL.mjs";
32
- import "./chunk-XIVBRONM.mjs";
33
33
  import "./chunk-WAXMT4IY.mjs";
34
34
  import "./chunk-DYDGGABK.mjs";
35
35
  import "./chunk-LGNTHZ5Y.mjs";
@@ -41,7 +41,7 @@ import "./chunk-NHDFPGQ3.mjs";
41
41
  import "./chunk-A63RZVX6.mjs";
42
42
  import "./chunk-HBXV7ENS.mjs";
43
43
  import "./chunk-CDORR33H.mjs";
44
- import "./chunk-RU4ZS47V.mjs";
44
+ import "./chunk-GN6OCHP4.mjs";
45
45
  import "./chunk-N4O5FAUC.mjs";
46
46
  import "./chunk-7AX6R6G6.mjs";
47
47
  import "./chunk-N3FCYZV6.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/dashboard",
3
- "version": "3.0.0-snapshot-20251212092246",
3
+ "version": "3.0.0-snapshot-20251212142124",
4
4
  "scripts": {
5
5
  "generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
6
6
  "dev": "../../../node_modules/.bin/vite",
@@ -46,10 +46,10 @@
46
46
  "@dnd-kit/utilities": "^3.2.2",
47
47
  "@hookform/error-message": "^2.0.1",
48
48
  "@hookform/resolvers": "3.4.2",
49
- "@medusajs/admin-shared": "3.0.0-snapshot-20251212092246",
50
- "@medusajs/icons": "3.0.0-snapshot-20251212092246",
51
- "@medusajs/js-sdk": "3.0.0-snapshot-20251212092246",
52
- "@medusajs/ui": "4.0.31-snapshot-20251212092246",
49
+ "@medusajs/admin-shared": "3.0.0-snapshot-20251212142124",
50
+ "@medusajs/icons": "3.0.0-snapshot-20251212142124",
51
+ "@medusajs/js-sdk": "3.0.0-snapshot-20251212142124",
52
+ "@medusajs/ui": "4.0.31-snapshot-20251212142124",
53
53
  "@radix-ui/react-dialog": "1.1.4",
54
54
  "@radix-ui/react-dismissable-layer": "1.1.4",
55
55
  "@tanstack/react-query": "5.64.2",
@@ -80,10 +80,10 @@
80
80
  "zod": "3.25.76"
81
81
  },
82
82
  "devDependencies": {
83
- "@medusajs/admin-shared": "3.0.0-snapshot-20251212092246",
84
- "@medusajs/admin-vite-plugin": "3.0.0-snapshot-20251212092246",
85
- "@medusajs/types": "3.0.0-snapshot-20251212092246",
86
- "@medusajs/ui-preset": "3.0.0-snapshot-20251212092246"
83
+ "@medusajs/admin-shared": "3.0.0-snapshot-20251212142124",
84
+ "@medusajs/admin-vite-plugin": "3.0.0-snapshot-20251212142124",
85
+ "@medusajs/types": "3.0.0-snapshot-20251212142124",
86
+ "@medusajs/ui-preset": "3.0.0-snapshot-20251212142124"
87
87
  },
88
88
  "packageManager": "yarn@3.2.1"
89
89
  }
@@ -300,12 +300,6 @@ export function getRouteMap({
300
300
  {
301
301
  path: "",
302
302
  lazy: () => import("../../routes/orders/order-list"),
303
- children: [
304
- {
305
- path: "export",
306
- lazy: () => import("../../routes/orders/order-export"),
307
- },
308
- ],
309
303
  },
310
304
  {
311
305
  path: ":id",
@@ -10,8 +10,8 @@ import {
10
10
  import { sdk } from "../../lib/client"
11
11
  import { queryClient } from "../../lib/query-client"
12
12
  import { queryKeysFactory, TQueryKey } from "../../lib/query-key-factory"
13
- import { inventoryItemsQueryKeys } from "./inventory"
14
13
  import { reservationItemsQueryKeys } from "./reservations"
14
+ import { inventoryItemsQueryKeys } from "./inventory"
15
15
 
16
16
  const ORDERS_QUERY_KEY = "orders" as const
17
17
  const _orderKeys = queryKeysFactory(ORDERS_QUERY_KEY) as TQueryKey<"orders"> & {
@@ -438,20 +438,3 @@ export const useUpdateOrderChange = (
438
438
  ...options,
439
439
  })
440
440
  }
441
-
442
- export const useExportOrders = (
443
- query?: HttpTypes.AdminOrderFilters,
444
- options?: UseMutationOptions<
445
- { transaction_id: string },
446
- FetchError,
447
- HttpTypes.AdminOrderFilters
448
- >
449
- ) => {
450
- return useMutation({
451
- mutationFn: () => sdk.admin.order.export(query),
452
- onSuccess: (data, variables, context) => {
453
- options?.onSuccess?.(data, variables, context)
454
- },
455
- ...options,
456
- })
457
- }
@@ -4049,45 +4049,6 @@
4049
4049
  "required": ["noRecordsMessage"],
4050
4050
  "additionalProperties": false
4051
4051
  },
4052
- "export": {
4053
- "type": "object",
4054
- "properties": {
4055
- "header": {
4056
- "type": "string"
4057
- },
4058
- "description": {
4059
- "type": "string"
4060
- },
4061
- "success": {
4062
- "type": "object",
4063
- "properties": {
4064
- "title": {
4065
- "type": "string"
4066
- },
4067
- "description": {
4068
- "type": "string"
4069
- }
4070
- },
4071
- "required": ["title", "description"],
4072
- "additionalProperties": false
4073
- },
4074
- "filters": {
4075
- "type": "object",
4076
- "properties": {
4077
- "title": {
4078
- "type": "string"
4079
- },
4080
- "description": {
4081
- "type": "string"
4082
- }
4083
- },
4084
- "required": ["title", "description"],
4085
- "additionalProperties": false
4086
- }
4087
- },
4088
- "required": ["header", "description", "success", "filters"],
4089
- "additionalProperties": false
4090
- },
4091
4052
  "status": {
4092
4053
  "type": "object",
4093
4054
  "properties": {
@@ -5779,7 +5740,6 @@
5779
5740
  "orderCanceled",
5780
5741
  "onDateFromSalesChannel",
5781
5742
  "list",
5782
- "export",
5783
5743
  "status",
5784
5744
  "summary",
5785
5745
  "transfer",
@@ -1080,18 +1080,6 @@
1080
1080
  "list": {
1081
1081
  "noRecordsMessage": "Your orders will show up here."
1082
1082
  },
1083
- "export": {
1084
- "header": "Export Order List",
1085
- "description": "Export the order list to a CSV file.",
1086
- "success": {
1087
- "title": "Export started",
1088
- "description": "You will be notified when the export is ready."
1089
- },
1090
- "filters": {
1091
- "title": "Filters",
1092
- "description": "The following filters will be applied to the export."
1093
- }
1094
- },
1095
1083
  "status": {
1096
1084
  "not_paid": "Not paid",
1097
1085
  "pending": "Pending",
@@ -1,24 +1,16 @@
1
1
  import { useTranslation } from "react-i18next"
2
- import { Outlet, useLocation } from "react-router-dom"
3
-
4
2
  import { ConfigurableDataTable } from "../../../../../components/table/configurable-data-table"
5
3
  import { useOrderTableAdapter } from "./order-table-adapter"
6
4
 
7
5
  export const ConfigurableOrderListTable = () => {
8
6
  const { t } = useTranslation()
9
- const location = useLocation()
10
- const adapter = useOrderTableAdapter()
7
+ const orderAdapter = useOrderTableAdapter()
11
8
 
12
9
  return (
13
- <>
14
- <ConfigurableDataTable
15
- adapter={adapter}
16
- heading={t("orders.domain")}
17
- actions={[
18
- { label: t("actions.export"), to: `export${location.search}` },
19
- ]}
20
- />
21
- <Outlet />
22
- </>
10
+ <ConfigurableDataTable
11
+ adapter={orderAdapter}
12
+ heading={t("orders.domain")}
13
+ layout="fill"
14
+ />
23
15
  )
24
16
  }
@@ -1,16 +1,15 @@
1
- import { Button, Container, Heading } from "@medusajs/ui"
1
+ import { Container, Heading } from "@medusajs/ui"
2
2
  import { keepPreviousData } from "@tanstack/react-query"
3
3
  import { useTranslation } from "react-i18next"
4
- import { Link, Outlet, useLocation } from "react-router-dom"
5
4
 
6
5
  import { _DataTable } from "../../../../../components/table/data-table/data-table"
7
6
  import { useOrders } from "../../../../../hooks/api/orders"
8
7
  import { useOrderTableColumns } from "../../../../../hooks/table/columns/use-order-table-columns"
8
+ import { useOrderTableFilters } from "./use-order-table-filters"
9
9
  import { useOrderTableQuery } from "../../../../../hooks/table/query/use-order-table-query"
10
10
  import { useDataTable } from "../../../../../hooks/use-data-table"
11
11
  import { useFeatureFlag } from "../../../../../providers/feature-flag-provider"
12
12
  import { ConfigurableOrderListTable } from "./configurable-order-list-table"
13
- import { useOrderTableFilters } from "./use-order-table-filters"
14
13
 
15
14
  import { DEFAULT_FIELDS } from "../../const"
16
15
 
@@ -18,7 +17,6 @@ const PAGE_SIZE = 20
18
17
 
19
18
  export const OrderListTable = () => {
20
19
  const { t } = useTranslation()
21
- const location = useLocation()
22
20
  const isViewConfigEnabled = useFeatureFlag("view_configurations")
23
21
 
24
22
  // If feature flag is enabled, use the new configurable table
@@ -59,9 +57,6 @@ export const OrderListTable = () => {
59
57
  <Container className="divide-y p-0">
60
58
  <div className="flex items-center justify-between px-6 py-4">
61
59
  <Heading>{t("orders.domain")}</Heading>
62
- <Button size="small" variant="secondary" asChild>
63
- <Link to={`export${location.search}`}>{t("actions.export")}</Link>
64
- </Button>
65
60
  </div>
66
61
  <_DataTable
67
62
  columns={columns}
@@ -83,7 +78,6 @@ export const OrderListTable = () => {
83
78
  message: t("orders.list.noRecordsMessage"),
84
79
  }}
85
80
  />
86
- <Outlet />
87
81
  </Container>
88
82
  )
89
83
  }
@@ -1,66 +0,0 @@
1
- import {
2
- useSalesChannels
3
- } from "./chunk-N3FCYZV6.mjs";
4
- import {
5
- useRegions
6
- } from "./chunk-HP2JH45P.mjs";
7
-
8
- // src/routes/orders/order-list/components/order-list-table/use-order-table-filters.tsx
9
- import { useMemo } from "react";
10
- import { useTranslation } from "react-i18next";
11
- var useOrderTableFilters = () => {
12
- const { t } = useTranslation();
13
- const { regions } = useRegions({
14
- limit: 1e3,
15
- fields: "id,name"
16
- });
17
- const { sales_channels } = useSalesChannels({
18
- limit: 1e3,
19
- fields: "id,name"
20
- });
21
- return useMemo(() => {
22
- const filters = [
23
- {
24
- key: "created_at",
25
- label: t("fields.createdAt"),
26
- type: "date"
27
- },
28
- {
29
- key: "updated_at",
30
- label: t("fields.updatedAt"),
31
- type: "date"
32
- }
33
- ];
34
- if (regions?.length) {
35
- filters.push({
36
- key: "region_id",
37
- label: t("fields.region"),
38
- type: "select",
39
- multiple: true,
40
- searchable: true,
41
- options: regions.map((r) => ({
42
- label: r.name,
43
- value: r.id
44
- }))
45
- });
46
- }
47
- if (sales_channels?.length) {
48
- filters.push({
49
- key: "sales_channel_id",
50
- label: t("fields.salesChannel"),
51
- type: "select",
52
- multiple: true,
53
- searchable: true,
54
- options: sales_channels.map((s) => ({
55
- label: s.name,
56
- value: s.id
57
- }))
58
- });
59
- }
60
- return filters;
61
- }, [regions, sales_channels, t]);
62
- };
63
-
64
- export {
65
- useOrderTableFilters
66
- };
@@ -1,121 +0,0 @@
1
- import {
2
- useOrderTableFilters
3
- } from "./chunk-35LSPN2U.mjs";
4
- import "./chunk-MFALVTRQ.mjs";
5
- import "./chunk-RIV7FKGN.mjs";
6
- import "./chunk-TDK3JDOB.mjs";
7
- import "./chunk-FHSC5X62.mjs";
8
- import "./chunk-XR4GEMGR.mjs";
9
- import "./chunk-WRSGHGAT.mjs";
10
- import "./chunk-MOSRJHJ3.mjs";
11
- import "./chunk-OMC5JCQH.mjs";
12
- import {
13
- useOrderTableQuery
14
- } from "./chunk-IW4TACOD.mjs";
15
- import "./chunk-R65S6ZZV.mjs";
16
- import {
17
- DataTableFilter
18
- } from "./chunk-GU5PJRPM.mjs";
19
- import "./chunk-C76H5USB.mjs";
20
- import "./chunk-DZWH2RV6.mjs";
21
- import {
22
- RouteDrawer
23
- } from "./chunk-XXBP2Z5M.mjs";
24
- import {
25
- useRouteModal
26
- } from "./chunk-42OOM4DJ.mjs";
27
- import "./chunk-SUYYSKCB.mjs";
28
- import "./chunk-OBQI23QM.mjs";
29
- import "./chunk-QPKW37WR.mjs";
30
- import "./chunk-I4OBEAOJ.mjs";
31
- import "./chunk-HI6URQ7H.mjs";
32
- import "./chunk-6CLQKVAU.mjs";
33
- import "./chunk-KI7TOXBR.mjs";
34
- import "./chunk-HKIF5HVL.mjs";
35
- import "./chunk-XIVBRONM.mjs";
36
- import "./chunk-WAXMT4IY.mjs";
37
- import "./chunk-DYDGGABK.mjs";
38
- import "./chunk-LGNTHZ5Y.mjs";
39
- import "./chunk-CN7JXSGW.mjs";
40
- import "./chunk-5BQQRHQS.mjs";
41
- import "./chunk-Y5UO73CH.mjs";
42
- import "./chunk-5AFMB7XQ.mjs";
43
- import "./chunk-NHDFPGQ3.mjs";
44
- import "./chunk-A63RZVX6.mjs";
45
- import "./chunk-HBXV7ENS.mjs";
46
- import "./chunk-CDORR33H.mjs";
47
- import {
48
- useExportOrders
49
- } from "./chunk-RU4ZS47V.mjs";
50
- import "./chunk-N4O5FAUC.mjs";
51
- import "./chunk-7AX6R6G6.mjs";
52
- import "./chunk-N3FCYZV6.mjs";
53
- import "./chunk-3BF5SC66.mjs";
54
- import "./chunk-VCSSQVPD.mjs";
55
- import "./chunk-HP2JH45P.mjs";
56
- import "./chunk-SQDIZZDW.mjs";
57
- import "./chunk-LEJUZW3P.mjs";
58
- import "./chunk-FXYH54JP.mjs";
59
- import "./chunk-774WSTCC.mjs";
60
- import "./chunk-NFEK63OE.mjs";
61
- import "./chunk-QZ7TP4HQ.mjs";
62
-
63
- // src/routes/orders/order-export/order-export.tsx
64
- import { Button, Heading as Heading2, toast } from "@medusajs/ui";
65
- import { useTranslation as useTranslation2 } from "react-i18next";
66
-
67
- // src/routes/orders/order-export/components/export-filters.tsx
68
- import { Heading, Text } from "@medusajs/ui";
69
- import { useTranslation } from "react-i18next";
70
- import { jsx, jsxs } from "react/jsx-runtime";
71
- var ExportFilters = () => {
72
- const { t } = useTranslation();
73
- const filters = useOrderTableFilters();
74
- return /* @__PURE__ */ jsxs("div", { children: [
75
- /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("orders.export.filters.title") }),
76
- /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("orders.export.filters.description") }),
77
- /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(DataTableFilter, { filters, readonly: true }) })
78
- ] });
79
- };
80
-
81
- // src/routes/orders/order-export/order-export.tsx
82
- import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
83
- var OrderExport = () => {
84
- const { t } = useTranslation2();
85
- return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
86
- /* @__PURE__ */ jsxs2(RouteDrawer.Header, { children: [
87
- /* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading2, { children: t("orders.export.header") }) }),
88
- /* @__PURE__ */ jsx2(RouteDrawer.Description, { className: "sr-only", children: t("orders.export.description") })
89
- ] }),
90
- /* @__PURE__ */ jsx2(OrderExportContent, {})
91
- ] });
92
- };
93
- var OrderExportContent = () => {
94
- const { t } = useTranslation2();
95
- const { searchParams } = useOrderTableQuery({});
96
- const { mutateAsync } = useExportOrders(searchParams);
97
- const { handleSuccess } = useRouteModal();
98
- const handleExportRequest = async () => {
99
- await mutateAsync(searchParams, {
100
- onSuccess: () => {
101
- toast.info(t("orders.export.success.title"), {
102
- description: t("orders.export.success.description")
103
- });
104
- handleSuccess();
105
- },
106
- onError: (err) => {
107
- toast.error(err.message);
108
- }
109
- });
110
- };
111
- return /* @__PURE__ */ jsxs2(Fragment, { children: [
112
- /* @__PURE__ */ jsx2(RouteDrawer.Body, { children: /* @__PURE__ */ jsx2(ExportFilters, {}) }),
113
- /* @__PURE__ */ jsx2(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
114
- /* @__PURE__ */ jsx2(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx2(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
115
- /* @__PURE__ */ jsx2(Button, { onClick: handleExportRequest, size: "small", children: t("actions.export") })
116
- ] }) })
117
- ] });
118
- };
119
- export {
120
- OrderExport as Component
121
- };
@@ -1,22 +0,0 @@
1
- import { Heading, Text } from "@medusajs/ui"
2
- import { useTranslation } from "react-i18next"
3
- import { DataTableFilter } from "../../../../components/table/data-table/data-table-filter"
4
- import { useOrderTableFilters } from "../../order-list/components/order-list-table/use-order-table-filters"
5
-
6
- export const ExportFilters = () => {
7
- const { t } = useTranslation()
8
- const filters = useOrderTableFilters()
9
-
10
- return (
11
- <div>
12
- <Heading level="h2">{t("orders.export.filters.title")}</Heading>
13
- <Text size="small" className="text-ui-fg-subtle">
14
- {t("orders.export.filters.description")}
15
- </Text>
16
-
17
- <div className="mt-4">
18
- <DataTableFilter filters={filters} readonly />
19
- </div>
20
- </div>
21
- )
22
- }
@@ -1 +0,0 @@
1
- export { OrderExport as Component } from "./order-export"
@@ -1,66 +0,0 @@
1
- import { Button, Heading, toast } from "@medusajs/ui"
2
- import { useTranslation } from "react-i18next"
3
- import { RouteDrawer, useRouteModal } from "../../../components/modals"
4
- import { useExportOrders } from "../../../hooks/api"
5
- import { useOrderTableQuery } from "../../../hooks/table/query"
6
- import { ExportFilters } from "./components/export-filters"
7
-
8
- export const OrderExport = () => {
9
- const { t } = useTranslation()
10
-
11
- return (
12
- <RouteDrawer>
13
- <RouteDrawer.Header>
14
- <RouteDrawer.Title asChild>
15
- <Heading>{t("orders.export.header")}</Heading>
16
- </RouteDrawer.Title>
17
- <RouteDrawer.Description className="sr-only">
18
- {t("orders.export.description")}
19
- </RouteDrawer.Description>
20
- </RouteDrawer.Header>
21
- <OrderExportContent />
22
- </RouteDrawer>
23
- )
24
- }
25
-
26
- const OrderExportContent = () => {
27
- const { t } = useTranslation()
28
- const { searchParams } = useOrderTableQuery({})
29
-
30
- const { mutateAsync } = useExportOrders(searchParams)
31
- const { handleSuccess } = useRouteModal()
32
-
33
- const handleExportRequest = async () => {
34
- await mutateAsync(searchParams, {
35
- onSuccess: () => {
36
- toast.info(t("orders.export.success.title"), {
37
- description: t("orders.export.success.description"),
38
- })
39
- handleSuccess()
40
- },
41
- onError: (err) => {
42
- toast.error(err.message)
43
- },
44
- })
45
- }
46
-
47
- return (
48
- <>
49
- <RouteDrawer.Body>
50
- <ExportFilters />
51
- </RouteDrawer.Body>
52
- <RouteDrawer.Footer>
53
- <div className="flex items-center gap-x-2">
54
- <RouteDrawer.Close asChild>
55
- <Button size="small" variant="secondary">
56
- {t("actions.cancel")}
57
- </Button>
58
- </RouteDrawer.Close>
59
- <Button onClick={handleExportRequest} size="small">
60
- {t("actions.export")}
61
- </Button>
62
- </div>
63
- </RouteDrawer.Footer>
64
- </>
65
- )
66
- }
@@ -5,12 +5,12 @@ import {
5
5
  _DataTable,
6
6
  useDataTable
7
7
  } from "./chunk-YTN73JYH.mjs";
8
- import {
9
- useCustomerGroupTableFilters
10
- } from "./chunk-DLZWPHHO.mjs";
11
8
  import {
12
9
  useCustomerGroupTableQuery
13
10
  } from "./chunk-MOSRJHJ3.mjs";
11
+ import {
12
+ useCustomerGroupTableFilters
13
+ } from "./chunk-DLZWPHHO.mjs";
14
14
  import {
15
15
  StackedDrawer,
16
16
  StackedFocusModal
@@ -11,12 +11,12 @@ import {
11
11
  } from "./chunk-YTN73JYH.mjs";
12
12
  import "./chunk-HQKGZADC.mjs";
13
13
  import "./chunk-EMIHDNB7.mjs";
14
- import {
15
- useCustomerTableFilters
16
- } from "./chunk-6OU4CHZI.mjs";
17
14
  import {
18
15
  useCustomerTableQuery
19
16
  } from "./chunk-WRSGHGAT.mjs";
17
+ import {
18
+ useCustomerTableFilters
19
+ } from "./chunk-6OU4CHZI.mjs";
20
20
  import "./chunk-GU5PJRPM.mjs";
21
21
  import "./chunk-C76H5USB.mjs";
22
22
  import "./chunk-DZWH2RV6.mjs";
@@ -11,12 +11,12 @@ import {
11
11
  } from "./chunk-YTN73JYH.mjs";
12
12
  import "./chunk-HQKGZADC.mjs";
13
13
  import "./chunk-EMIHDNB7.mjs";
14
- import {
15
- useCustomerTableFilters
16
- } from "./chunk-6OU4CHZI.mjs";
17
14
  import {
18
15
  useCustomerTableQuery
19
16
  } from "./chunk-WRSGHGAT.mjs";
17
+ import {
18
+ useCustomerTableFilters
19
+ } from "./chunk-6OU4CHZI.mjs";
20
20
  import "./chunk-GU5PJRPM.mjs";
21
21
  import {
22
22
  SingleColumnPage
@@ -1,12 +1,12 @@
1
- import {
2
- isOptionEnabledInStore
3
- } from "./chunk-UC26CCHZ.mjs";
4
1
  import {
5
2
  ShippingOptionPriceType
6
3
  } from "./chunk-PYIO3TDQ.mjs";
7
4
  import {
8
5
  formatProvider
9
6
  } from "./chunk-IR5DHEKS.mjs";
7
+ import {
8
+ isOptionEnabledInStore
9
+ } from "./chunk-UC26CCHZ.mjs";
10
10
  import {
11
11
  useComboboxData
12
12
  } from "./chunk-3TZOFKX2.mjs";
@@ -14,13 +14,13 @@ import {
14
14
  } from "./chunk-YTN73JYH.mjs";
15
15
  import "./chunk-HQKGZADC.mjs";
16
16
  import "./chunk-EMIHDNB7.mjs";
17
+ import {
18
+ useProductTypeTableQuery
19
+ } from "./chunk-TDK3JDOB.mjs";
17
20
  import {
18
21
  useProductTypeTableFilters
19
22
  } from "./chunk-CBSCX7RE.mjs";
20
23
  import "./chunk-W7625H47.mjs";
21
- import {
22
- useProductTypeTableQuery
23
- } from "./chunk-TDK3JDOB.mjs";
24
24
  import "./chunk-GU5PJRPM.mjs";
25
25
  import {
26
26
  SingleColumnPage
@@ -11,12 +11,12 @@ import {
11
11
  } from "./chunk-YTN73JYH.mjs";
12
12
  import "./chunk-HQKGZADC.mjs";
13
13
  import "./chunk-EMIHDNB7.mjs";
14
- import {
15
- useRegionTableFilters
16
- } from "./chunk-LT4MVCA7.mjs";
17
14
  import {
18
15
  useRegionTableQuery
19
16
  } from "./chunk-XR4GEMGR.mjs";
17
+ import {
18
+ useRegionTableFilters
19
+ } from "./chunk-LT4MVCA7.mjs";
20
20
  import "./chunk-GU5PJRPM.mjs";
21
21
  import {
22
22
  SingleColumnPage