@mercurjs/admin 2.2.0-canary.46 → 2.2.0-canary.48

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 (156) hide show
  1. package/dist/{add-campaign-promotions-GMISP6W2.js → add-campaign-promotions-BC7ISVHX.js} +3 -3
  2. package/dist/{adjust-inventory-7Q6ANY2I.js → adjust-inventory-P2M7KZ77.js} +2 -2
  3. package/dist/{api-key-management-detail-X5IJYRBQ.js → api-key-management-detail-O6KKT7V2.js} +2 -2
  4. package/dist/{attribute-create-QJPUHJGK.js → attribute-create-KR4DSDH2.js} +2 -2
  5. package/dist/{attribute-detail-K76NIC37.js → attribute-detail-LWKL6UMS.js} +2 -2
  6. package/dist/{attribute-list-5CL73TN5.js → attribute-list-QUSXFHRZ.js} +2 -2
  7. package/dist/{campaign-detail-WCJYFHPN.js → campaign-detail-KC3F4S57.js} +6 -6
  8. package/dist/{categories-metadata-EC4BPQNH.js → categories-metadata-AIT33J5U.js} +2 -2
  9. package/dist/{category-detail-IIOP4FKR.js → category-detail-P5NZLIVR.js} +4 -4
  10. package/dist/category-organize-T45BC4HL.js +129 -0
  11. package/dist/{category-products-QDEZIZS5.js → category-products-SX6CH3ZZ.js} +3 -3
  12. package/dist/{chunk-7EH4RTXE.js → chunk-26PTCTT3.js} +1 -1
  13. package/dist/{chunk-X3F25JYB.js → chunk-2CHED2KM.js} +2 -2
  14. package/dist/{chunk-HMAI53UR.js → chunk-2GHNKPYY.js} +1 -1
  15. package/dist/{chunk-X56QGEKG.js → chunk-4SPHSUWU.js} +1 -1
  16. package/dist/{chunk-6NPGMPD6.js → chunk-4XGFT4RZ.js} +30 -3
  17. package/dist/{chunk-YE45H6IA.js → chunk-5EOYDQAS.js} +1 -1
  18. package/dist/{chunk-H7NIKMPE.js → chunk-5NSOIZFB.js} +3 -1
  19. package/dist/{chunk-F62CJRAN.js → chunk-5WTNXDRM.js} +1 -1
  20. package/dist/{chunk-WMK3BQPH.js → chunk-655ECEGW.js} +1 -1
  21. package/dist/{chunk-XIYDO6V3.js → chunk-6PGIRZA6.js} +3 -3
  22. package/dist/{chunk-XELBXBN2.js → chunk-7MYE6VFQ.js} +2 -2
  23. package/dist/{chunk-KSFAQAHQ.js → chunk-AFYILTAC.js} +1 -1
  24. package/dist/{chunk-ZIXVM3RJ.js → chunk-BGQCG4S5.js} +1 -1
  25. package/dist/{chunk-D5D6AMDL.js → chunk-CQKCZECQ.js} +1 -1
  26. package/dist/{chunk-X7Y67EIX.js → chunk-DUVYF37J.js} +1 -1
  27. package/dist/{chunk-KZVGXSF5.js → chunk-EQGJGBA5.js} +3 -5
  28. package/dist/{chunk-7PBDGDUJ.js → chunk-G2LHEJLS.js} +1 -1
  29. package/dist/{chunk-27MKUJMG.js → chunk-GLWJ5J3F.js} +4 -4
  30. package/dist/{chunk-COOOOQ2N.js → chunk-IJ2CSCLP.js} +4 -1
  31. package/dist/{chunk-S3QMHTMJ.js → chunk-JPFPQWNT.js} +1 -1
  32. package/dist/{chunk-KF6RF4CP.js → chunk-KA3BALYJ.js} +1 -1
  33. package/dist/{chunk-JDOFH5FG.js → chunk-KHW3GRN4.js} +16 -8
  34. package/dist/{chunk-UPWZN6WB.js → chunk-KL4DBMVO.js} +1 -1
  35. package/dist/{chunk-BFQOVAYB.js → chunk-LXNWSQOE.js} +1 -1
  36. package/dist/{chunk-VC7SWTRU.js → chunk-MJTFEVGB.js} +2 -2
  37. package/dist/{chunk-A2ASKUKM.js → chunk-O6KUSG6F.js} +10 -3
  38. package/dist/{chunk-GFW6MPBI.js → chunk-PFD4SHVF.js} +1 -1
  39. package/dist/{chunk-NSCSEWCD.js → chunk-QVQJOMEY.js} +1 -1
  40. package/dist/{chunk-F2SZ4LPF.js → chunk-QZETW7FG.js} +19 -2
  41. package/dist/{chunk-74XH2WHQ.js → chunk-RCI2GQZY.js} +1 -1
  42. package/dist/{chunk-SHVUBFM6.js → chunk-SHFF3Y5U.js} +2 -2
  43. package/dist/{chunk-D7CD2YHR.js → chunk-TVTI7RG5.js} +1 -1
  44. package/dist/{chunk-BC3OQ3LQ.js → chunk-UQZBS67R.js} +1 -1
  45. package/dist/{chunk-EXUFS4XF.js → chunk-VHOCBKSA.js} +1 -1
  46. package/dist/{chunk-JMERPTO6.js → chunk-VU6KTPOZ.js} +1 -1
  47. package/dist/{chunk-RIO2IHPE.js → chunk-WR7ZTUOY.js} +1 -1
  48. package/dist/{chunk-KY62FA2U.js → chunk-XJQ4MWBR.js} +2 -2
  49. package/dist/{chunk-ML7UVBKL.js → chunk-YR6Q3TKU.js} +1 -1
  50. package/dist/{chunk-MADWSA3U.js → chunk-Z7XMG6DA.js} +8 -3
  51. package/dist/{collection-add-products-6OPZKS7K.js → collection-add-products-TRY52HYQ.js} +3 -3
  52. package/dist/{collection-create-WVGBHXS6.js → collection-create-7ZQONUJL.js} +2 -1
  53. package/dist/{collection-detail-OEHGL3RM.js → collection-detail-K4L3X45M.js} +4 -4
  54. package/dist/{collection-edit-C5HXKSRQ.js → collection-edit-VD57ORSY.js} +7 -2
  55. package/dist/{collection-list-WZ3O36YS.js → collection-list-YMCTIJ52.js} +6 -6
  56. package/dist/{collection-metadata-AQQQDRHX.js → collection-metadata-AZRN32RU.js} +2 -2
  57. package/dist/{customer-create-EFKMWD5V.js → customer-create-SC6LAEVJ.js} +1 -1
  58. package/dist/{customer-create-address-XYZTHMNF.js → customer-create-address-VZMOF5AE.js} +9 -4
  59. package/dist/{customer-detail-V4NNMOGG.js → customer-detail-VIWHZUOZ.js} +4 -4
  60. package/dist/{customer-edit-DCZYBCRT.js → customer-edit-MHSXLB6U.js} +1 -1
  61. package/dist/{customer-edit-address-5BUZX7M5.js → customer-edit-address-ZEVUPAYN.js} +15 -6
  62. package/dist/{customer-group-add-customers-UIV57OR3.js → customer-group-add-customers-VKUSW6AS.js} +2 -2
  63. package/dist/{customer-group-create-LWOVJSHM.js → customer-group-create-3KAC3R3N.js} +1 -1
  64. package/dist/{customer-group-detail-HGHX4I6K.js → customer-group-detail-JVULZZTT.js} +4 -4
  65. package/dist/{customer-group-edit-Q3WW3VWQ.js → customer-group-edit-LXPAPBZ7.js} +1 -1
  66. package/dist/{customer-group-list-FIHBQQ4Z.js → customer-group-list-SKODEZKB.js} +3 -3
  67. package/dist/{customer-group-metadata-U6OCF6QT.js → customer-group-metadata-3QRU7FIE.js} +2 -2
  68. package/dist/{customer-list-DCIMAKII.js → customer-list-LYDL4IEG.js} +3 -3
  69. package/dist/{customer-metadata-OYPOGB6N.js → customer-metadata-7DMBCQXW.js} +2 -2
  70. package/dist/{customers-add-customer-group-HDNWCJO5.js → customers-add-customer-group-FXRUE5SD.js} +2 -2
  71. package/dist/{edit-inventory-item-N4DG4L7E.js → edit-inventory-item-4J3KFOUC.js} +2 -2
  72. package/dist/{edit-inventory-item-attributes-SCBD3MFQ.js → edit-inventory-item-attributes-J7WHYKMK.js} +2 -2
  73. package/dist/{edit-rules-EJA7JZ77.js → edit-rules-2WZOLTL7.js} +2 -2
  74. package/dist/index.js +143 -143
  75. package/dist/{inventory-create-FIGYS3YS.js → inventory-create-RDVKGH2S.js} +2 -2
  76. package/dist/{inventory-detail-VKV2QONG.js → inventory-detail-J7NMO7EZ.js} +2 -2
  77. package/dist/{inventory-metadata-KTWGDGVM.js → inventory-metadata-CQHLKX4T.js} +2 -2
  78. package/dist/{inventory-stock-XZ53SPGT.js → inventory-stock-3TR47RNA.js} +2 -2
  79. package/dist/{location-detail-BPYXRIGB.js → location-detail-DTBVSZBJ.js} +2 -2
  80. package/dist/{location-fulfillment-providers-QVSFVMKK.js → location-fulfillment-providers-P5U5K4NO.js} +3 -3
  81. package/dist/{location-list-VAQ2HK5S.js → location-list-LH27WJBT.js} +2 -2
  82. package/dist/{location-service-zone-shipping-option-create-UXYBVYZZ.js → location-service-zone-shipping-option-create-Z3S7EUYH.js} +2 -2
  83. package/dist/{login-IRLFICHS.js → login-JNIVGP2G.js} +2 -2
  84. package/dist/{marketplace-detail-ORZRXVQO.js → marketplace-detail-VNCNRAE4.js} +2 -2
  85. package/dist/{marketplace-metadata-DACJAMHW.js → marketplace-metadata-74YUQ6UC.js} +2 -2
  86. package/dist/{offers-QY7RL6IS.js → offers-NW24IATZ.js} +2 -2
  87. package/dist/{order-create-exchange-USGGDRWD.js → order-create-exchange-QGSECB7D.js} +2 -2
  88. package/dist/{order-create-refund-E7DVXS2C.js → order-create-refund-HXFCDZV5.js} +2 -2
  89. package/dist/{order-detail-IEPA4KAB.js → order-detail-DGZXN7IQ.js} +3 -3
  90. package/dist/{order-edit-billing-address-H4UWMN5H.js → order-edit-billing-address-3OMGU4CK.js} +3 -3
  91. package/dist/{order-edit-email-7JRPWQRJ.js → order-edit-email-VSAS3M2E.js} +2 -2
  92. package/dist/{order-edit-shipping-address-TVPJQGJA.js → order-edit-shipping-address-FZMDRJU5.js} +2 -2
  93. package/dist/{order-list-VEUNZUC4.js → order-list-6LIYSO2R.js} +5 -5
  94. package/dist/{order-metadata-HMRZDVIY.js → order-metadata-FKM3ZDNM.js} +2 -2
  95. package/dist/{order-request-transfer-LHSSUF4Z.js → order-request-transfer-BCE6ED5E.js} +2 -2
  96. package/dist/pages/index.d.ts +25 -25
  97. package/dist/pages/index.js +38 -38
  98. package/dist/{price-list-configuration-LMDQIFY6.js → price-list-configuration-DYFBYDQE.js} +3 -3
  99. package/dist/{price-list-create-RFA7OHN3.js → price-list-create-U2DMHUQE.js} +5 -5
  100. package/dist/{price-list-detail-SRZRO5SM.js → price-list-detail-CAK3AFSU.js} +13 -9
  101. package/dist/{price-list-edit-IRAPRHS3.js → price-list-edit-UADWQDT2.js} +2 -2
  102. package/dist/{price-list-list-7HWQ77GE.js → price-list-list-PJIIPQOF.js} +4 -4
  103. package/dist/{price-list-prices-add-G2SJQT3G.js → price-list-prices-add-6TO5RTTD.js} +4 -4
  104. package/dist/{price-list-prices-edit-XPRFEVI6.js → price-list-prices-edit-AXJJTMKL.js} +2 -2
  105. package/dist/{product-add-existing-attributes-GKYAS7YS.js → product-add-existing-attributes-XIJB2NXI.js} +2 -2
  106. package/dist/{product-create-TBYJYEQR.js → product-create-3LKSDOHR.js} +5 -5
  107. package/dist/{product-detail-O4PB5OM5.js → product-detail-N7YTQ45T.js} +2 -2
  108. package/dist/{product-edit-EVPI6ABS.js → product-edit-KMK7CMLI.js} +5 -1
  109. package/dist/{product-list-3YSNXY5P.js → product-list-CIHKL6N7.js} +4 -4
  110. package/dist/{product-media-OSPTFLJP.js → product-media-SHU5ULOK.js} +2 -2
  111. package/dist/{product-metadata-FU3FIUVA.js → product-metadata-6EFF4IPX.js} +2 -2
  112. package/dist/{product-organization-GJHMXOEH.js → product-organization-JSYFCGNL.js} +1 -1
  113. package/dist/{product-tag-create-YBYA6HON.js → product-tag-create-PSY5Q437.js} +2 -2
  114. package/dist/{product-tag-detail-Y6MIL3IZ.js → product-tag-detail-D54OKWUZ.js} +6 -6
  115. package/dist/{product-tag-edit-AS73D34P.js → product-tag-edit-NVGUS3CY.js} +2 -2
  116. package/dist/{product-tag-list-WVGEWC26.js → product-tag-list-QNWZAU5G.js} +6 -6
  117. package/dist/{product-tag-metadata-KGRVD5Q3.js → product-tag-metadata-T4ZYOIXY.js} +2 -2
  118. package/dist/{product-type-detail-VK6XZ4I7.js → product-type-detail-TXZ6HTOV.js} +4 -4
  119. package/dist/{product-type-metadata-4BL2E575.js → product-type-metadata-OJJYUALT.js} +2 -2
  120. package/dist/{product-variant-detail-DVSWHRP6.js → product-variant-detail-FZL5OZFE.js} +2 -2
  121. package/dist/{product-variant-edit-SSF5TW6P.js → product-variant-edit-LSSJW4DS.js} +2 -2
  122. package/dist/{product-variant-metadata-63GOAHDZ.js → product-variant-metadata-D5AUINFJ.js} +2 -2
  123. package/dist/{promotion-create-SU4D4WXT.js → promotion-create-OFLXF3RZ.js} +2 -2
  124. package/dist/{promotion-detail-5XVYJH4P.js → promotion-detail-GP5KBQB7.js} +5 -5
  125. package/dist/{promotion-list-NKDKMGCE.js → promotion-list-2MUOOIOJ.js} +4 -4
  126. package/dist/{refund-reason-create-K6M7LVYN.js → refund-reason-create-HTTX2UGC.js} +2 -2
  127. package/dist/{refund-reason-edit-NEAH64Z3.js → refund-reason-edit-I7XXP4EP.js} +2 -2
  128. package/dist/{refund-reason-list-HYG75JKO.js → refund-reason-list-YYCNRERE.js} +5 -5
  129. package/dist/{region-metadata-MF4UH2GC.js → region-metadata-RRUP56B2.js} +2 -2
  130. package/dist/{reservation-detail-NAB67VPF.js → reservation-detail-QOVPIIMC.js} +2 -2
  131. package/dist/{reservation-metadata-42KGZX7U.js → reservation-metadata-OAEUUCRG.js} +2 -2
  132. package/dist/{reset-password-UDA5ZMTZ.js → reset-password-C347RVO7.js} +1 -1
  133. package/dist/{return-reason-list-4AJKJFLL.js → return-reason-list-HMSZJDKI.js} +3 -3
  134. package/dist/{sales-channel-add-products-JFB2GTH4.js → sales-channel-add-products-6TXYF3HM.js} +3 -3
  135. package/dist/{sales-channel-detail-WJR4O277.js → sales-channel-detail-SYE4FUXD.js} +4 -4
  136. package/dist/{sales-channel-list-FW5H477Q.js → sales-channel-list-4CNHLSBR.js} +2 -2
  137. package/dist/{sales-channel-metadata-JGI7RVLO.js → sales-channel-metadata-RXT26TCT.js} +2 -2
  138. package/dist/{shipping-option-type-create-SCWA3QLZ.js → shipping-option-type-create-2EVIHSGN.js} +2 -2
  139. package/dist/{shipping-option-type-detail-2ALEOMJP.js → shipping-option-type-detail-BKFYUX2T.js} +2 -2
  140. package/dist/{shipping-option-type-edit-MFGXPMSD.js → shipping-option-type-edit-LTH6PE7B.js} +2 -2
  141. package/dist/{shipping-option-type-list-GWMDSXLO.js → shipping-option-type-list-7NSGG7ZI.js} +2 -2
  142. package/dist/{shipping-profile-metadata-AIQVGLOU.js → shipping-profile-metadata-WRFZ55C3.js} +2 -2
  143. package/dist/{store-create-QGVW2REU.js → store-create-6OQW7F4U.js} +2 -2
  144. package/dist/{store-details-YXVIBDRH.js → store-details-45RPSTMU.js} +9 -26
  145. package/dist/{store-edit-MQXR6RY4.js → store-edit-GIKORSX3.js} +2 -2
  146. package/dist/{store-list-LHAFRH75.js → store-list-XZU26QTH.js} +6 -6
  147. package/dist/{tax-region-create-U6GWAQO5.js → tax-region-create-EGMJMBYE.js} +3 -3
  148. package/dist/{tax-region-detail-RULPJVEP.js → tax-region-detail-UGD2KK2H.js} +2 -2
  149. package/dist/{tax-region-edit-EAWY3WX5.js → tax-region-edit-N64TGNAG.js} +2 -2
  150. package/dist/{tax-region-metadata-RSORMRTE.js → tax-region-metadata-MKXFQ5B7.js} +2 -2
  151. package/dist/{tax-region-province-detail-6G6DDKR7.js → tax-region-province-detail-LITAO6EZ.js} +2 -2
  152. package/dist/{tax-region-tax-override-create-NN2BLNVX.js → tax-region-tax-override-create-NCAWHUOU.js} +6 -6
  153. package/dist/{tax-region-tax-override-edit-6NWCTRB7.js → tax-region-tax-override-edit-OOP7RQZR.js} +6 -6
  154. package/dist/{user-metadata-3RCSKTNE.js → user-metadata-5UFWFXLX.js} +2 -2
  155. package/package.json +6 -6
  156. package/dist/category-organize-Y7ZY7E2S.js +0 -112
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-4F5GP7J7.js";
4
4
  import {
5
5
  useDeletePriceListAction
6
- } from "./chunk-YE45H6IA.js";
6
+ } from "./chunk-5EOYDQAS.js";
7
7
  import {
8
8
  getPriceListStatus
9
9
  } from "./chunk-U5MJIHLY.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-APMBU7ZV.js";
19
19
  import {
20
20
  useProductTableQuery
21
- } from "./chunk-H7NIKMPE.js";
21
+ } from "./chunk-5NSOIZFB.js";
22
22
  import {
23
23
  TwoColumnPage
24
24
  } from "./chunk-E74OUNA3.js";
@@ -29,10 +29,10 @@ import {
29
29
  import {
30
30
  usePriceList,
31
31
  usePriceListLinkProducts
32
- } from "./chunk-7PBDGDUJ.js";
32
+ } from "./chunk-G2LHEJLS.js";
33
33
  import {
34
34
  useCustomerGroups
35
- } from "./chunk-KSFAQAHQ.js";
35
+ } from "./chunk-AFYILTAC.js";
36
36
  import {
37
37
  ActionMenu
38
38
  } from "./chunk-BDGZ4EQO.js";
@@ -105,6 +105,7 @@ var useReturnReasonTableQuery = ({
105
105
  };
106
106
 
107
107
  // src/hooks/table/query/use-sellers-table-query.tsx
108
+ import { linkFields, useExtension } from "@mercurjs/dashboard-shared";
108
109
  var import_types = __toESM(require_dist(), 1);
109
110
  var ACTIVE_STATUSES = [
110
111
  import_types.SellerStatus.OPEN,
@@ -115,6 +116,7 @@ var useSellersTableQuery = ({
115
116
  prefix,
116
117
  pageSize = 20
117
118
  }) => {
119
+ const links = useExtension().getLinks("seller");
118
120
  const queryObject = useQueryParams(
119
121
  ["offset", "q", "created_at", "updated_at", "status", "is_premium", "order"],
120
122
  prefix
@@ -128,7 +130,8 @@ var useSellersTableQuery = ({
128
130
  status: status?.split(",") ?? ACTIVE_STATUSES,
129
131
  is_premium: is_premium ? is_premium === "true" : void 0,
130
132
  q,
131
- order: order ? order : "-created_at"
133
+ order: order ? order : "-created_at",
134
+ ...links.length ? { fields: linkFields(links) } : {}
132
135
  };
133
136
  return {
134
137
  searchParams,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-RQQ53CQJ.js";
8
8
  import {
9
9
  useReturnReasonTableQuery
10
- } from "./chunk-COOOOQ2N.js";
10
+ } from "./chunk-IJ2CSCLP.js";
11
11
  import {
12
12
  _DataTable,
13
13
  useDataTable
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-APMBU7ZV.js";
7
7
  import {
8
8
  useProductTableQuery
9
- } from "./chunk-H7NIKMPE.js";
9
+ } from "./chunk-5NSOIZFB.js";
10
10
  import {
11
11
  PRODUCT_IDS_KEY
12
12
  } from "./chunk-LO2ZWQGL.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-APMBU7ZV.js";
11
11
  import {
12
12
  useProductTableQuery
13
- } from "./chunk-H7NIKMPE.js";
13
+ } from "./chunk-5NSOIZFB.js";
14
14
  import {
15
15
  _DataTable,
16
16
  useDataTable
@@ -40,7 +40,7 @@ import { WidgetZone, useLinkQuery } from "@mercurjs/dashboard-shared";
40
40
 
41
41
  // src/pages/collections/collection-detail/components/collection-general-section/collection-general-section.tsx
42
42
  import { PencilSquare, Trash } from "@medusajs/icons";
43
- import { Container, Heading, Text, usePrompt } from "@medusajs/ui";
43
+ import { Container, Heading, Text, toast, usePrompt } from "@medusajs/ui";
44
44
  import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
45
45
  import { useTranslation } from "react-i18next";
46
46
  import { useNavigate } from "react-router-dom";
@@ -63,7 +63,14 @@ var CollectionGeneralSection = ({
63
63
  if (!res) {
64
64
  return;
65
65
  }
66
- await mutateAsync();
66
+ await mutateAsync(void 0, {
67
+ onSuccess: () => {
68
+ toast.success(t("collections.deleteSuccess"));
69
+ },
70
+ onError: (error) => {
71
+ toast.error(error.message);
72
+ }
73
+ });
67
74
  navigate("../", { replace: true });
68
75
  };
69
76
  return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
@@ -245,7 +252,7 @@ var CollectionMediaSection = ({
245
252
 
246
253
  // src/pages/collections/collection-detail/components/collection-product-section/collection-product-section.tsx
247
254
  import { PencilSquare as PencilSquare4, Plus, Trash as Trash2 } from "@medusajs/icons";
248
- import { Checkbox, Container as Container4, Heading as Heading4, toast, usePrompt as usePrompt2 } from "@medusajs/ui";
255
+ import { Checkbox, Container as Container4, Heading as Heading4, toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
249
256
  import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
250
257
  import { keepPreviousData } from "@tanstack/react-query";
251
258
  import { createColumnHelper } from "@tanstack/react-table";
@@ -303,14 +310,14 @@ var CollectionProductSection = ({
303
310
  },
304
311
  {
305
312
  onSuccess: () => {
306
- toast.success(
313
+ toast2.success(
307
314
  t("collections.products.remove.successToast", {
308
315
  count: ids.length
309
316
  })
310
317
  );
311
318
  },
312
319
  onError: (e) => {
313
- toast.error(e.message);
320
+ toast2.error(e.message);
314
321
  }
315
322
  }
316
323
  );
@@ -355,6 +362,7 @@ var CollectionProductSection = ({
355
362
  { key: "created_at", label: t("fields.createdAt") },
356
363
  { key: "updated_at", label: t("fields.updatedAt") }
357
364
  ],
365
+ defaultOrder: searchParams.order,
358
366
  queryObject: raw,
359
367
  commands: [
360
368
  {
@@ -396,14 +404,14 @@ var ProductActions = ({
396
404
  },
397
405
  {
398
406
  onSuccess: () => {
399
- toast.success(
407
+ toast2.success(
400
408
  t("collections.products.remove.successToast", {
401
409
  count: 1
402
410
  })
403
411
  );
404
412
  },
405
413
  onError: (e) => {
406
- toast.error(e.message);
414
+ toast2.error(e.message);
407
415
  }
408
416
  }
409
417
  );
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-KOURHC2N.js";
10
10
  import {
11
11
  useProductTagTableQuery
12
- } from "./chunk-COOOOQ2N.js";
12
+ } from "./chunk-IJ2CSCLP.js";
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SAU35JEB.js";
4
4
  import {
5
5
  useCustomers
6
- } from "./chunk-KSFAQAHQ.js";
6
+ } from "./chunk-AFYILTAC.js";
7
7
  import {
8
8
  useSalesChannels
9
9
  } from "./chunk-ZOTBKQLG.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-QG6PLWNH.js";
4
4
  import {
5
5
  useCustomerTableFilters
6
- } from "./chunk-X7Y67EIX.js";
6
+ } from "./chunk-DUVYF37J.js";
7
7
  import {
8
8
  useCustomerTableQuery
9
9
  } from "./chunk-GRH7C3QN.js";
@@ -19,7 +19,7 @@ import {
19
19
  useCustomers,
20
20
  useDeleteCustomerGroup,
21
21
  useRemoveCustomersFromGroup
22
- } from "./chunk-KSFAQAHQ.js";
22
+ } from "./chunk-AFYILTAC.js";
23
23
  import {
24
24
  ActionMenu
25
25
  } from "./chunk-BDGZ4EQO.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-KOURHC2N.js";
7
7
  import {
8
8
  useCollectionTableQuery
9
- } from "./chunk-COOOOQ2N.js";
9
+ } from "./chunk-IJ2CSCLP.js";
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
@@ -67,7 +67,7 @@ import { useTranslation as useTranslation3 } from "react-i18next";
67
67
 
68
68
  // src/pages/collections/collection-list/components/collection-list-table/collection-row-actions.tsx
69
69
  import { PencilSquare, Trash } from "@medusajs/icons";
70
- import { usePrompt } from "@medusajs/ui";
70
+ import { toast, usePrompt } from "@medusajs/ui";
71
71
  import { useTranslation as useTranslation2 } from "react-i18next";
72
72
  import { jsx as jsx2 } from "react/jsx-runtime";
73
73
  var CollectionRowActions = ({
@@ -90,7 +90,14 @@ var CollectionRowActions = ({
90
90
  if (!res) {
91
91
  return;
92
92
  }
93
- await mutateAsync();
93
+ await mutateAsync(void 0, {
94
+ onSuccess: () => {
95
+ toast.success(t("collections.deleteSuccess"));
96
+ },
97
+ onError: (error) => {
98
+ toast.error(error.message);
99
+ }
100
+ });
94
101
  };
95
102
  return /* @__PURE__ */ jsx2(
96
103
  ActionMenu,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-KOURHC2N.js";
4
4
  import {
5
5
  useSellersTableQuery
6
- } from "./chunk-COOOOQ2N.js";
6
+ } from "./chunk-IJ2CSCLP.js";
7
7
  import {
8
8
  DateCell
9
9
  } from "./chunk-25LYVP3C.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-APMBU7ZV.js";
23
23
  import {
24
24
  useProductTableQuery
25
- } from "./chunk-H7NIKMPE.js";
25
+ } from "./chunk-5NSOIZFB.js";
26
26
  import {
27
27
  TwoColumnPage
28
28
  } from "./chunk-E74OUNA3.js";
@@ -9692,8 +9692,16 @@ var en_default = {
9692
9692
  subtitle: "Organize products into collections.",
9693
9693
  createCollection: "Create Collection",
9694
9694
  createCollectionHint: "Create a new collection to organize your products.",
9695
- createSuccess: "Collection created successfully.",
9695
+ createSuccess: "Collection was successfully created.",
9696
+ deleteSuccess: "Collection was successfully deleted.",
9697
+ updateSuccess: "Collection was successfully updated.",
9698
+ validation: {
9699
+ titleRequired: "Please enter a title"
9700
+ },
9696
9701
  editCollection: "Edit Collection",
9702
+ validation: {
9703
+ titleRequired: "Please enter a title"
9704
+ },
9697
9705
  handleTooltip: "The handle is used to reference the collection in your storefront. If not specified, the handle will be generated from the collection title.",
9698
9706
  deleteWarning: "You are about to delete the collection {{title}}. This action cannot be undone.",
9699
9707
  removeSingleProductWarning: "You are about to remove the product {{title}} from the collection. This action cannot be undone.",
@@ -9808,7 +9816,8 @@ var en_default = {
9808
9816
  },
9809
9817
  organize: {
9810
9818
  header: "Organize",
9811
- action: "Edit ranking"
9819
+ action: "Edit ranking",
9820
+ successToast: "Category ranking was updated successfully."
9812
9821
  },
9813
9822
  media: {
9814
9823
  label: "Media",
@@ -10050,6 +10059,14 @@ var en_default = {
10050
10059
  header: "Edit Address",
10051
10060
  hint: "Edit the customer's address.",
10052
10061
  successToast: "Address was successfully updated."
10062
+ },
10063
+ delete: {
10064
+ successToast: "Address was successfully deleted."
10065
+ },
10066
+ validation: {
10067
+ addressNameRequired: "Please enter an address name",
10068
+ addressRequired: "Please enter an address",
10069
+ countryRequired: "Please select a country"
10053
10070
  }
10054
10071
  }
10055
10072
  },
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-ML7UVBKL.js";
4
+ } from "./chunk-YR6Q3TKU.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-QG6PLWNH.js";
4
4
  import {
5
5
  useCustomerTableFilters
6
- } from "./chunk-X7Y67EIX.js";
6
+ } from "./chunk-DUVYF37J.js";
7
7
  import {
8
8
  useCustomerTableQuery
9
9
  } from "./chunk-GRH7C3QN.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-H6MYB7GB.js";
17
17
  import {
18
18
  useCustomers
19
- } from "./chunk-KSFAQAHQ.js";
19
+ } from "./chunk-AFYILTAC.js";
20
20
  import {
21
21
  ActionMenu
22
22
  } from "./chunk-BDGZ4EQO.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-APMBU7ZV.js";
10
10
  import {
11
11
  useProductTableQuery
12
- } from "./chunk-H7NIKMPE.js";
12
+ } from "./chunk-5NSOIZFB.js";
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RK5N3XIX.js";
4
4
  import {
5
5
  getPromotionStatus
6
- } from "./chunk-RIO2IHPE.js";
6
+ } from "./chunk-WR7ZTUOY.js";
7
7
  import {
8
8
  formatPercentage
9
9
  } from "./chunk-QDPLZDMX.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5A4JNOK3.js";
4
4
  import {
5
5
  useRefundReasonTableQuery
6
- } from "./chunk-COOOOQ2N.js";
6
+ } from "./chunk-IJ2CSCLP.js";
7
7
  import {
8
8
  DataTable
9
9
  } from "./chunk-C4XKPQ6T.js";
@@ -106,7 +106,7 @@ import {
106
106
  } from "./chunk-PYF5EER5.js";
107
107
  import {
108
108
  useCustomer
109
- } from "./chunk-KSFAQAHQ.js";
109
+ } from "./chunk-AFYILTAC.js";
110
110
  import {
111
111
  ActionMenu
112
112
  } from "./chunk-BDGZ4EQO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  i18n
3
- } from "./chunk-F2SZ4LPF.js";
3
+ } from "./chunk-QZETW7FG.js";
4
4
 
5
5
  // src/lib/promotions.ts
6
6
  var getPromotionStatusMap = () => ({
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-APMBU7ZV.js";
16
16
  import {
17
17
  useProductTableQuery
18
- } from "./chunk-H7NIKMPE.js";
18
+ } from "./chunk-5NSOIZFB.js";
19
19
  import {
20
20
  TabbedForm,
21
21
  defineTabMeta,
@@ -35,7 +35,7 @@ import {
35
35
  import {
36
36
  useBatchPriceListPrices,
37
37
  usePriceList
38
- } from "./chunk-7PBDGDUJ.js";
38
+ } from "./chunk-G2LHEJLS.js";
39
39
  import {
40
40
  useProducts
41
41
  } from "./chunk-MMKUMSZS.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPromotionStatus
3
- } from "./chunk-RIO2IHPE.js";
3
+ } from "./chunk-WR7ZTUOY.js";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useOrderGroupTableFilters
3
- } from "./chunk-BFQOVAYB.js";
3
+ } from "./chunk-LXNWSQOE.js";
4
4
  import {
5
5
  useOrderTableQuery
6
6
  } from "./chunk-QUHSHIAC.js";
@@ -72,7 +72,11 @@ import { IconButton as IconButton2, clx } from "@medusajs/ui";
72
72
  import { TriangleRightMini } from "@medusajs/icons";
73
73
  import { keepPreviousData } from "@tanstack/react-query";
74
74
  import { createColumnHelper } from "@tanstack/react-table";
75
- import { useExtendableTable } from "@mercurjs/dashboard-shared";
75
+ import {
76
+ useExtendableTable,
77
+ useExtension,
78
+ withLinkFields
79
+ } from "@mercurjs/dashboard-shared";
76
80
  import { useMemo } from "react";
77
81
  import { useTranslation as useTranslation3 } from "react-i18next";
78
82
 
@@ -185,10 +189,11 @@ var OrderListDataTable = () => {
185
189
  const { searchParams, raw } = useOrderTableQuery({
186
190
  pageSize: PAGE_SIZE
187
191
  });
192
+ const links = useExtension().getLinks("order");
188
193
  const { order_groups, count, isError, error, isLoading } = useOrderGroups(
189
194
  {
190
195
  ...searchParams,
191
- fields: DEFAULT_FIELDS
196
+ fields: withLinkFields(DEFAULT_FIELDS, links)
192
197
  },
193
198
  {
194
199
  placeholderData: keepPreviousData
@@ -8,7 +8,7 @@ import {
8
8
  import "./chunk-FWPGOIFA.js";
9
9
  import {
10
10
  useProductTableQuery
11
- } from "./chunk-H7NIKMPE.js";
11
+ } from "./chunk-5NSOIZFB.js";
12
12
  import "./chunk-DB6ANJBO.js";
13
13
  import "./chunk-PHOCVOZ5.js";
14
14
  import {
@@ -47,7 +47,7 @@ import "./chunk-VHCDSNXF.js";
47
47
  import "./chunk-A2F5MDPU.js";
48
48
  import "./chunk-IC2PLPRP.js";
49
49
  import "./chunk-L7DIEO5B.js";
50
- import "./chunk-7PBDGDUJ.js";
50
+ import "./chunk-G2LHEJLS.js";
51
51
  import {
52
52
  useCollection,
53
53
  useUpdateCollectionProducts
@@ -61,7 +61,7 @@ import "./chunk-WX4ABVXL.js";
61
61
  import "./chunk-WF3ZDT5Z.js";
62
62
  import "./chunk-PYF5EER5.js";
63
63
  import "./chunk-SAU35JEB.js";
64
- import "./chunk-KSFAQAHQ.js";
64
+ import "./chunk-AFYILTAC.js";
65
65
  import "./chunk-ZOTBKQLG.js";
66
66
  import "./chunk-QVIX6O76.js";
67
67
  import "./chunk-Y7QKP6QU.js";
@@ -31,6 +31,7 @@ import "./chunk-NBMM2TZK.js";
31
31
  // src/pages/collections/collection-create/components/create-collection-form/create-collection-form.tsx
32
32
  import { zodResolver } from "@hookform/resolvers/zod";
33
33
  import { Button, Heading, Input, Text, toast } from "@medusajs/ui";
34
+ import i18n from "i18next";
34
35
  import { useForm } from "react-hook-form";
35
36
  import { useTranslation } from "react-i18next";
36
37
  import * as zod from "zod";
@@ -47,7 +48,7 @@ var CollectionIconSchema = zod.object({
47
48
  file: zod.any().nullable()
48
49
  });
49
50
  var CreateCollectionSchema = zod.object({
50
- title: zod.string().min(1),
51
+ title: zod.string().min(1, { message: i18n.t("collections.validation.titleRequired") }),
51
52
  handle: zod.string().optional(),
52
53
  media: zod.array(CollectionMediaSchema).optional(),
53
54
  icon: CollectionIconSchema.nullable().optional()
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CollectionDetailPage
3
- } from "./chunk-JDOFH5FG.js";
3
+ } from "./chunk-KHW3GRN4.js";
4
4
  import "./chunk-VM56ZITS.js";
5
5
  import "./chunk-I5HY5Q3K.js";
6
6
  import "./chunk-RMB7MPIT.js";
7
7
  import "./chunk-APMBU7ZV.js";
8
8
  import "./chunk-FWPGOIFA.js";
9
- import "./chunk-H7NIKMPE.js";
9
+ import "./chunk-5NSOIZFB.js";
10
10
  import "./chunk-DB6ANJBO.js";
11
11
  import "./chunk-PHOCVOZ5.js";
12
12
  import "./chunk-VSLHL2AZ.js";
@@ -38,7 +38,7 @@ import "./chunk-VHCDSNXF.js";
38
38
  import "./chunk-A2F5MDPU.js";
39
39
  import "./chunk-IC2PLPRP.js";
40
40
  import "./chunk-L7DIEO5B.js";
41
- import "./chunk-7PBDGDUJ.js";
41
+ import "./chunk-G2LHEJLS.js";
42
42
  import {
43
43
  collectionsQueryKeys,
44
44
  useCollection
@@ -52,7 +52,7 @@ import "./chunk-WX4ABVXL.js";
52
52
  import "./chunk-WF3ZDT5Z.js";
53
53
  import "./chunk-PYF5EER5.js";
54
54
  import "./chunk-SAU35JEB.js";
55
- import "./chunk-KSFAQAHQ.js";
55
+ import "./chunk-AFYILTAC.js";
56
56
  import "./chunk-BDGZ4EQO.js";
57
57
  import "./chunk-ZOTBKQLG.js";
58
58
  import "./chunk-QVIX6O76.js";
@@ -26,7 +26,8 @@ import { useParams } from "react-router-dom";
26
26
  import { useLinkQuery } from "@mercurjs/dashboard-shared";
27
27
 
28
28
  // src/pages/collections/collection-edit/components/edit-collection-form/edit-collection-form.tsx
29
- import { Button, Input, Text } from "@medusajs/ui";
29
+ import { Button, Input, Text, toast } from "@medusajs/ui";
30
+ import i18n from "i18next";
30
31
  import { useTranslation } from "react-i18next";
31
32
  import * as zod from "zod";
32
33
  import {
@@ -35,7 +36,7 @@ import {
35
36
  } from "@mercurjs/dashboard-shared";
36
37
  import { jsx, jsxs } from "react/jsx-runtime";
37
38
  var EditCollectionSchema = zod.object({
38
- title: zod.string().min(1),
39
+ title: zod.string().min(1, { message: i18n.t("collections.validation.titleRequired") }),
39
40
  handle: zod.string().min(1)
40
41
  });
41
42
  var EditCollectionForm = ({ collection }) => {
@@ -54,7 +55,11 @@ var EditCollectionForm = ({ collection }) => {
54
55
  const handleSubmit = form.handleSubmit(async (data) => {
55
56
  await mutateAsync(data, {
56
57
  onSuccess: () => {
58
+ toast.success(t("collections.updateSuccess"));
57
59
  handleSuccess();
60
+ },
61
+ onError: (error) => {
62
+ toast.error(error.message);
58
63
  }
59
64
  });
60
65
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CollectionListPage
3
- } from "./chunk-A2ASKUKM.js";
3
+ } from "./chunk-O6KUSG6F.js";
4
4
  import "./chunk-5BSSIDW6.js";
5
5
  import "./chunk-KOURHC2N.js";
6
6
  import "./chunk-2ZFELO2L.js";
@@ -8,10 +8,10 @@ import "./chunk-26OOAKQ6.js";
8
8
  import "./chunk-ZQZHFMD7.js";
9
9
  import "./chunk-UK5BVJI7.js";
10
10
  import "./chunk-LPIPSLR7.js";
11
- import "./chunk-X7Y67EIX.js";
11
+ import "./chunk-DUVYF37J.js";
12
12
  import "./chunk-VM56ZITS.js";
13
13
  import "./chunk-S2WEYEQR.js";
14
- import "./chunk-COOOOQ2N.js";
14
+ import "./chunk-IJ2CSCLP.js";
15
15
  import "./chunk-MG4GKUJW.js";
16
16
  import "./chunk-AYVH6Q5O.js";
17
17
  import "./chunk-VOHEQ7B5.js";
@@ -24,7 +24,7 @@ import "./chunk-GRH7C3QN.js";
24
24
  import "./chunk-DY3XQPHC.js";
25
25
  import "./chunk-JHIMVLB2.js";
26
26
  import "./chunk-APMBU7ZV.js";
27
- import "./chunk-H7NIKMPE.js";
27
+ import "./chunk-5NSOIZFB.js";
28
28
  import "./chunk-PHOCVOZ5.js";
29
29
  import "./chunk-RT6L7JXU.js";
30
30
  import "./chunk-4YWKKCTT.js";
@@ -57,7 +57,7 @@ import "./chunk-VHCDSNXF.js";
57
57
  import "./chunk-A2F5MDPU.js";
58
58
  import "./chunk-IC2PLPRP.js";
59
59
  import "./chunk-L7DIEO5B.js";
60
- import "./chunk-7PBDGDUJ.js";
60
+ import "./chunk-G2LHEJLS.js";
61
61
  import "./chunk-FVG5DTS6.js";
62
62
  import "./chunk-EJY35WBK.js";
63
63
  import "./chunk-GYRTURN7.js";
@@ -68,7 +68,7 @@ import "./chunk-WX4ABVXL.js";
68
68
  import "./chunk-WF3ZDT5Z.js";
69
69
  import "./chunk-PYF5EER5.js";
70
70
  import "./chunk-SAU35JEB.js";
71
- import "./chunk-KSFAQAHQ.js";
71
+ import "./chunk-AFYILTAC.js";
72
72
  import "./chunk-BDGZ4EQO.js";
73
73
  import "./chunk-ZOTBKQLG.js";
74
74
  import "./chunk-QVIX6O76.js";
@@ -21,7 +21,7 @@ import "./chunk-VHCDSNXF.js";
21
21
  import "./chunk-A2F5MDPU.js";
22
22
  import "./chunk-IC2PLPRP.js";
23
23
  import "./chunk-L7DIEO5B.js";
24
- import "./chunk-7PBDGDUJ.js";
24
+ import "./chunk-G2LHEJLS.js";
25
25
  import {
26
26
  useCollection,
27
27
  useUpdateCollection
@@ -35,7 +35,7 @@ import "./chunk-WX4ABVXL.js";
35
35
  import "./chunk-WF3ZDT5Z.js";
36
36
  import "./chunk-PYF5EER5.js";
37
37
  import "./chunk-SAU35JEB.js";
38
- import "./chunk-KSFAQAHQ.js";
38
+ import "./chunk-AFYILTAC.js";
39
39
  import "./chunk-ZOTBKQLG.js";
40
40
  import "./chunk-QVIX6O76.js";
41
41
  import "./chunk-LAVHRER2.js";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-3QSRE5LS.js";
12
12
  import {
13
13
  useCreateCustomer
14
- } from "./chunk-KSFAQAHQ.js";
14
+ } from "./chunk-AFYILTAC.js";
15
15
  import "./chunk-RHKRREUU.js";
16
16
  import "./chunk-ZA2KFUFR.js";
17
17
  import "./chunk-LXZXXOJ3.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-3QSRE5LS.js";
17
17
  import {
18
18
  useCreateCustomerAddress
19
- } from "./chunk-KSFAQAHQ.js";
19
+ } from "./chunk-AFYILTAC.js";
20
20
  import "./chunk-RHKRREUU.js";
21
21
  import "./chunk-ZA2KFUFR.js";
22
22
  import "./chunk-LXZXXOJ3.js";
@@ -25,16 +25,21 @@ import "./chunk-NBMM2TZK.js";
25
25
  // src/pages/customers/customer-create-address/components/create-customer-address-form/create-customer-address-form.tsx
26
26
  import { zodResolver } from "@hookform/resolvers/zod";
27
27
  import { Button, Heading, Input, Text, toast } from "@medusajs/ui";
28
+ import i18n from "i18next";
28
29
  import { useForm } from "react-hook-form";
29
30
  import { useTranslation } from "react-i18next";
30
31
  import { useParams } from "react-router-dom";
31
32
  import * as zod from "zod";
32
33
  import { jsx, jsxs } from "react/jsx-runtime";
33
34
  var CreateCustomerAddressSchema = zod.object({
34
- address_name: zod.string().min(1),
35
- address_1: zod.string().min(1),
35
+ address_name: zod.string().min(1, {
36
+ message: i18n.t("customers.addresses.validation.addressNameRequired")
37
+ }),
38
+ address_1: zod.string().min(1, {
39
+ message: i18n.t("customers.addresses.validation.addressRequired")
40
+ }),
36
41
  address_2: zod.string().optional(),
37
- country_code: zod.string().min(2).max(2),
42
+ country_code: zod.string().min(2, { message: i18n.t("customers.addresses.validation.countryRequired") }).max(2),
38
43
  city: zod.string().optional(),
39
44
  postal_code: zod.string().optional(),
40
45
  province: zod.string().optional(),