@medusajs/dashboard 2.10.4-snapshot-20250922090257 → 2.10.4-snapshot-20250922195925
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.
- package/dist/{add-campaign-promotions-FE4BXGVN.mjs → add-campaign-promotions-PLZXWFNV.mjs} +3 -3
- package/dist/{api-key-management-detail-SAVBCKX7.mjs → api-key-management-detail-ZQFNZNWW.mjs} +2 -1
- package/dist/app.js +2278 -1562
- package/dist/app.mjs +4 -3
- package/dist/{campaign-detail-KTOLZNTA.mjs → campaign-detail-VTCCVWKS.mjs} +5 -4
- package/dist/{categories-metadata-GXWJ3HOG.mjs → categories-metadata-FTFYPASQ.mjs} +2 -1
- package/dist/{category-detail-ENUI5EFL.mjs → category-detail-QHU2CLYA.mjs} +3 -2
- package/dist/{category-products-ZG5QDWSW.mjs → category-products-YGTL7GXQ.mjs} +3 -2
- package/dist/{chunk-S45XMWVD.mjs → chunk-5CE3JPWD.mjs} +1 -1
- package/dist/{chunk-JHXKKOHO.mjs → chunk-6V6KATTW.mjs} +33 -10
- package/dist/{chunk-5WKYR6PY.mjs → chunk-BM5ZIV5V.mjs} +1 -1
- package/dist/{chunk-OGHQ6VJI.mjs → chunk-BSBCIU6C.mjs} +0 -5
- package/dist/{chunk-NRBOPOMS.mjs → chunk-CU5EFQSB.mjs} +1 -1
- package/dist/{chunk-KMUDF36P.mjs → chunk-FTVAORQM.mjs} +1 -1
- package/dist/{chunk-GB7CZNXI.mjs → chunk-JO6QASTJ.mjs} +1 -1
- package/dist/{chunk-OKMF4YI7.mjs → chunk-K3OMOMRB.mjs} +25 -0
- package/dist/{chunk-LAWIWR7K.mjs → chunk-PHXKD2LR.mjs} +1 -1
- package/dist/{chunk-JELVERJM.mjs → chunk-PPI7PTY6.mjs} +31 -0
- package/dist/{chunk-6AGMMT5H.mjs → chunk-VE7JFMAN.mjs} +2 -2
- package/dist/{chunk-IRJKUFJU.mjs → chunk-WYDDFRYM.mjs} +130 -98
- package/dist/{chunk-7YZF3THS.mjs → chunk-XTNS2NRD.mjs} +1 -1
- package/dist/{chunk-Y4YXZY7R.mjs → chunk-YPDTZXV6.mjs} +1 -1
- package/dist/chunk-YZJ3W776.mjs +87 -0
- package/dist/{collection-add-products-2ISNNIHD.mjs → collection-add-products-OJ2EZLC7.mjs} +3 -2
- package/dist/{collection-detail-OSX6NHNQ.mjs → collection-detail-RMZK523E.mjs} +3 -2
- package/dist/{collection-list-MPIYSHQJ.mjs → collection-list-BJ3VNZAA.mjs} +4 -3
- package/dist/{collection-metadata-EOFYXEQI.mjs → collection-metadata-R3DI65D3.mjs} +2 -1
- package/dist/{customer-detail-FCNRRZSW.mjs → customer-detail-G7G6PYOO.mjs} +2 -1
- package/dist/{customer-group-detail-QI3QLJJL.mjs → customer-group-detail-XQ32DPQ3.mjs} +2 -1
- package/dist/{customer-group-list-GPIKR66X.mjs → customer-group-list-CARES5CM.mjs} +2 -1
- package/dist/{customers-add-customer-group-5TFTVDB6.mjs → customers-add-customer-group-NLPVKARS.mjs} +2 -1
- package/dist/{edit-rules-63NG4QVR.mjs → edit-rules-JRLCVE26.mjs} +2 -1
- package/dist/{inventory-create-RIVJFJJQ.mjs → inventory-create-ZC6HV2FY.mjs} +2 -1
- package/dist/{inventory-detail-5433AAQ2.mjs → inventory-detail-WVI4FTTH.mjs} +2 -1
- package/dist/{inventory-metadata-FH4CHJBA.mjs → inventory-metadata-BLIJBNQS.mjs} +2 -1
- package/dist/{inventory-stock-D6E4LQRK.mjs → inventory-stock-ZCTXWRK6.mjs} +2 -1
- package/dist/{location-detail-Z6ZDX6RY.mjs → location-detail-GV3POY4C.mjs} +2 -1
- package/dist/{location-fulfillment-providers-45VXZMZI.mjs → location-fulfillment-providers-INUQXJYU.mjs} +3 -2
- package/dist/{location-service-zone-shipping-option-create-NO3665DC.mjs → location-service-zone-shipping-option-create-6KO3QDMQ.mjs} +2 -1
- package/dist/{login-DSPNELTI.mjs → login-57FIKGXA.mjs} +2 -1
- package/dist/{order-create-claim-V63BWLB5.mjs → order-create-claim-LXKBCAWN.mjs} +2 -1
- package/dist/{order-create-edit-NPF4UZ4D.mjs → order-create-edit-264PTIEI.mjs} +2 -1
- package/dist/{order-create-exchange-RHIPPSKU.mjs → order-create-exchange-ZMUVPYM3.mjs} +2 -1
- package/dist/{order-create-fulfillment-4SSUHQ75.mjs → order-create-fulfillment-LE6O3SA5.mjs} +2 -1
- package/dist/{order-create-refund-QVQC5ZP5.mjs → order-create-refund-B7BO2EJL.mjs} +2 -1
- package/dist/{order-create-shipment-TJAARKWA.mjs → order-create-shipment-UOPCS5N7.mjs} +2 -1
- package/dist/{order-detail-2MIN6B2I.mjs → order-detail-SG7AXBRS.mjs} +2 -1
- package/dist/{order-edit-billing-address-QP2I5F3E.mjs → order-edit-billing-address-RPPJ4Z36.mjs} +2 -1
- package/dist/{order-edit-email-7WT7XTHB.mjs → order-edit-email-A7D5HTU6.mjs} +2 -1
- package/dist/{order-edit-shipping-address-3QFMQP4I.mjs → order-edit-shipping-address-LXKC5CJE.mjs} +2 -1
- package/dist/{order-list-7S3N6H5A.mjs → order-list-ZCMNSZYB.mjs} +1 -1
- package/dist/{order-metadata-YJS26DHK.mjs → order-metadata-KS47UOEE.mjs} +2 -1
- package/dist/{order-receive-return-PZMMMUB2.mjs → order-receive-return-PDU2YVLT.mjs} +2 -1
- package/dist/{order-request-transfer-QBIZD36E.mjs → order-request-transfer-WMQKDLDF.mjs} +2 -1
- package/dist/{price-list-create-RXDH5CXF.mjs → price-list-create-QZSB4W5Z.mjs} +3 -2
- package/dist/{price-list-detail-PKIKOJ4H.mjs → price-list-detail-2FMINPFT.mjs} +3 -2
- package/dist/{price-list-prices-add-2CDPUSYA.mjs → price-list-prices-add-WYK2QBAI.mjs} +3 -2
- package/dist/{product-attributes-LVV3K24U.mjs → product-attributes-KDXI2RNP.mjs} +5 -4
- package/dist/{product-create-HQORHMCM.mjs → product-create-TVYPK4VC.mjs} +5 -4
- package/dist/{product-create-variant-KJKQ6ROY.mjs → product-create-variant-6YWLDA2X.mjs} +2 -1
- package/dist/{product-detail-UROTMCRL.mjs → product-detail-RFKXMYE5.mjs} +5 -4
- package/dist/{product-edit-4EVIUVKV.mjs → product-edit-5FNY7HG4.mjs} +5 -4
- package/dist/{product-export-XERWEI5H.mjs → product-export-BEAUMFAZ.mjs} +3 -2
- package/dist/{product-import-AGFJMSVK.mjs → product-import-SOX4UJPM.mjs} +2 -1
- package/dist/{product-list-3B742YCJ.mjs → product-list-ZVXATJRE.mjs} +4 -3
- package/dist/{product-media-APQKPFTT.mjs → product-media-JPU23SPH.mjs} +2 -2
- package/dist/{product-metadata-NZ3HKO67.mjs → product-metadata-QRRCHZZB.mjs} +2 -1
- package/dist/{product-organization-YQUIMUYX.mjs → product-organization-QTWB7VMB.mjs} +5 -4
- package/dist/{product-shipping-profile-FRIMAOZQ.mjs → product-shipping-profile-Q6UX6ZNJ.mjs} +5 -4
- package/dist/{product-stock-SUVEQZML.mjs → product-stock-TSAIHVY6.mjs} +2 -1
- package/dist/{product-tag-create-T6HVAQKN.mjs → product-tag-create-5NZJS2D2.mjs} +2 -1
- package/dist/{product-tag-detail-HOWUZC3P.mjs → product-tag-detail-3XHUROBO.mjs} +6 -5
- package/dist/{product-tag-edit-WWQDNDRC.mjs → product-tag-edit-YYOOHKGG.mjs} +2 -1
- package/dist/{product-tag-list-FAKSLONF.mjs → product-tag-list-5XTTMNOA.mjs} +6 -5
- package/dist/{product-tag-metadata-6B56VEZU.mjs → product-tag-metadata-YAD3MPWF.mjs} +2 -1
- package/dist/{product-type-detail-KN64HYUV.mjs → product-type-detail-MNTAHQKJ.mjs} +3 -2
- package/dist/{product-type-metadata-F3FTI6OG.mjs → product-type-metadata-HWR3WBGT.mjs} +2 -1
- package/dist/{product-variant-detail-OUHBUY4J.mjs → product-variant-detail-DKFAG3KO.mjs} +2 -1
- package/dist/{product-variant-edit-NBYHDUJ5.mjs → product-variant-edit-EZENYVAN.mjs} +2 -1
- package/dist/{product-variant-metadata-XDVLJYGQ.mjs → product-variant-metadata-S7QENSUG.mjs} +2 -1
- package/dist/{promotion-create-UUOG52D5.mjs → promotion-create-O3KUSPIU.mjs} +2 -1
- package/dist/{promotion-detail-6ZD7Z6BF.mjs → promotion-detail-5DU6ULJG.mjs} +4 -3
- package/dist/{promotion-list-GI64LDWI.mjs → promotion-list-Q2FOGORE.mjs} +3 -3
- package/dist/refund-reason-create-NSZFGXWI.mjs +158 -0
- package/dist/refund-reason-edit-RKUSPQCL.mjs +144 -0
- package/dist/refund-reason-list-2F5PFERT.mjs +273 -0
- package/dist/{region-metadata-IQVB4ERU.mjs → region-metadata-G3JH5ZN6.mjs} +2 -1
- package/dist/{reservation-detail-RTGHD35L.mjs → reservation-detail-PJXS67UM.mjs} +2 -1
- package/dist/{reservation-metadata-WKJXBRLQ.mjs → reservation-metadata-UCKQB66O.mjs} +2 -1
- package/dist/{reset-password-SXA6YKTJ.mjs → reset-password-5KIEBJHN.mjs} +1 -1
- package/dist/{return-reason-list-MOP7YWMZ.mjs → return-reason-list-OGFYWMC5.mjs} +2 -2
- package/dist/{sales-channel-add-products-OKVZJ6FI.mjs → sales-channel-add-products-CSMNFGHD.mjs} +3 -2
- package/dist/{sales-channel-detail-WESBK6Q7.mjs → sales-channel-detail-ZSA3HNWW.mjs} +3 -2
- package/dist/{sales-channel-list-ADIJMXNV.mjs → sales-channel-list-X5ADP34V.mjs} +2 -1
- package/dist/{sales-channel-metadata-2OQAHYB4.mjs → sales-channel-metadata-ABWIDI3B.mjs} +2 -1
- package/dist/{shipping-option-type-create-3CGPGDYJ.mjs → shipping-option-type-create-Q2X5OMJS.mjs} +2 -1
- package/dist/{shipping-option-type-detail-S23H2OGW.mjs → shipping-option-type-detail-VT3Y5QQ4.mjs} +3 -2
- package/dist/{shipping-option-type-edit-IHE7XM6M.mjs → shipping-option-type-edit-IA3EER2N.mjs} +2 -1
- package/dist/{shipping-option-type-list-47GRJ6EC.mjs → shipping-option-type-list-JZPKAL3H.mjs} +3 -2
- package/dist/{shipping-profile-metadata-OXWOXAAR.mjs → shipping-profile-metadata-EYXBWBF2.mjs} +2 -1
- package/dist/{store-detail-4K7TW2TP.mjs → store-detail-LI72QMUZ.mjs} +2 -1
- package/dist/{store-metadata-JP2CI7EF.mjs → store-metadata-ZITLAS5H.mjs} +2 -1
- package/dist/{tax-region-create-W3K5IFD3.mjs → tax-region-create-IU2R5VIY.mjs} +3 -2
- package/dist/{tax-region-detail-V2F2DONN.mjs → tax-region-detail-6FHD35LB.mjs} +2 -1
- package/dist/{tax-region-edit-CJPMYTBF.mjs → tax-region-edit-O2WJXYIE.mjs} +2 -1
- package/dist/{tax-region-province-detail-4PUQ5ADW.mjs → tax-region-province-detail-YDBU4CUU.mjs} +2 -1
- package/dist/{tax-region-tax-override-create-3SCIOK4P.mjs → tax-region-tax-override-create-EF3LLZWM.mjs} +6 -5
- package/dist/{tax-region-tax-override-edit-P3QJKET3.mjs → tax-region-tax-override-edit-2DG3J6CO.mjs} +6 -5
- package/dist/{user-metadata-ZURLDLGC.mjs → user-metadata-QUIFIM5G.mjs} +2 -1
- package/dist/{workflow-execution-detail-4R6AFFHV.mjs → workflow-execution-detail-PVSQ2VGE.mjs} +2 -1
- package/package.json +9 -9
- package/src/components/layout/settings-layout/settings-layout.tsx +4 -0
- package/src/dashboard-app/routes/get-route.map.tsx +36 -0
- package/src/hooks/api/refund-reasons.tsx +113 -9
- package/src/hooks/table/columns/index.ts +1 -0
- package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +28 -0
- package/src/hooks/table/query/index.ts +1 -0
- package/src/hooks/table/query/use-refund-reason-table-query.tsx +32 -0
- package/src/hooks/table/use-table-configuration.tsx +1 -1
- package/src/i18n/translations/$schema.json +181 -65
- package/src/i18n/translations/en.json +31 -0
- package/src/routes/refund-reasons/common/hooks/use-delete-refund-reason-action.tsx +34 -0
- package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +131 -0
- package/src/routes/refund-reasons/refund-reason-create/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-create/refund-reason-create.tsx +10 -0
- package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +119 -0
- package/src/routes/refund-reasons/refund-reason-edit/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-edit/refund-reason-edit.tsx +33 -0
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +131 -0
- package/src/routes/refund-reasons/refund-reason-list/index.ts +2 -0
- package/src/routes/refund-reasons/refund-reason-list/loader.ts +16 -0
- package/src/routes/refund-reasons/refund-reason-list/refund-reason-list.tsx +21 -0
package/dist/app.mjs
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import {
|
2
2
|
DashboardApp
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-WYDDFRYM.mjs";
|
4
4
|
import "./chunk-NQIC7ZFS.mjs";
|
5
5
|
import "./chunk-ONB3JEHR.mjs";
|
6
6
|
import "./chunk-4GQOUCX6.mjs";
|
7
7
|
import "./chunk-2VTICXJR.mjs";
|
8
8
|
import "./chunk-D3YQN7HV.mjs";
|
9
|
-
import "./chunk-
|
9
|
+
import "./chunk-PPI7PTY6.mjs";
|
10
10
|
import "./chunk-MNXC6Q4F.mjs";
|
11
11
|
import "./chunk-C5P5PL3E.mjs";
|
12
12
|
import "./chunk-DG7J63J2.mjs";
|
@@ -17,8 +17,9 @@ import "./chunk-3NJTXRIY.mjs";
|
|
17
17
|
import "./chunk-OC7BQLYI.mjs";
|
18
18
|
import "./chunk-67ORSRVT.mjs";
|
19
19
|
import "./chunk-OBQI23QM.mjs";
|
20
|
-
import "./chunk-
|
20
|
+
import "./chunk-BSBCIU6C.mjs";
|
21
21
|
import "./chunk-KOSCMAIC.mjs";
|
22
|
+
import "./chunk-YZJ3W776.mjs";
|
22
23
|
import "./chunk-X6DSNTTX.mjs";
|
23
24
|
import "./chunk-I6E6CALJ.mjs";
|
24
25
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -4,8 +4,8 @@ import {
|
|
4
4
|
import {
|
5
5
|
usePromotionTableColumns,
|
6
6
|
usePromotionTableQuery
|
7
|
-
} from "./chunk-
|
8
|
-
import "./chunk-
|
7
|
+
} from "./chunk-XTNS2NRD.mjs";
|
8
|
+
import "./chunk-FTVAORQM.mjs";
|
9
9
|
import "./chunk-MSDRGCRR.mjs";
|
10
10
|
import "./chunk-ADOCJB6L.mjs";
|
11
11
|
import "./chunk-LQTHYS2Z.mjs";
|
@@ -31,7 +31,7 @@ import {
|
|
31
31
|
import "./chunk-C76H5USB.mjs";
|
32
32
|
import "./chunk-PFKKVLZX.mjs";
|
33
33
|
import "./chunk-4GQOUCX6.mjs";
|
34
|
-
import "./chunk-
|
34
|
+
import "./chunk-PPI7PTY6.mjs";
|
35
35
|
import {
|
36
36
|
useExtension
|
37
37
|
} from "./chunk-C5P5PL3E.mjs";
|
@@ -43,8 +43,9 @@ import {
|
|
43
43
|
} from "./chunk-3NJTXRIY.mjs";
|
44
44
|
import "./chunk-OC7BQLYI.mjs";
|
45
45
|
import "./chunk-67ORSRVT.mjs";
|
46
|
-
import "./chunk-
|
46
|
+
import "./chunk-BSBCIU6C.mjs";
|
47
47
|
import "./chunk-KOSCMAIC.mjs";
|
48
|
+
import "./chunk-YZJ3W776.mjs";
|
48
49
|
import "./chunk-X6DSNTTX.mjs";
|
49
50
|
import "./chunk-I6E6CALJ.mjs";
|
50
51
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -10,8 +10,9 @@ import {
|
|
10
10
|
import "./chunk-LPEUYMRK.mjs";
|
11
11
|
import "./chunk-OC7BQLYI.mjs";
|
12
12
|
import "./chunk-OBQI23QM.mjs";
|
13
|
-
import "./chunk-
|
13
|
+
import "./chunk-BSBCIU6C.mjs";
|
14
14
|
import "./chunk-KOSCMAIC.mjs";
|
15
|
+
import "./chunk-YZJ3W776.mjs";
|
15
16
|
import "./chunk-X6DSNTTX.mjs";
|
16
17
|
import "./chunk-I6E6CALJ.mjs";
|
17
18
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -30,7 +30,7 @@ import "./chunk-AOFGTNG6.mjs";
|
|
30
30
|
import "./chunk-EMIHDNB7.mjs";
|
31
31
|
import {
|
32
32
|
useProductTableFilters
|
33
|
-
} from "./chunk-
|
33
|
+
} from "./chunk-YPDTZXV6.mjs";
|
34
34
|
import "./chunk-Z26G6WFJ.mjs";
|
35
35
|
import "./chunk-M3VFKDXJ.mjs";
|
36
36
|
import {
|
@@ -51,8 +51,9 @@ import {
|
|
51
51
|
} from "./chunk-3NJTXRIY.mjs";
|
52
52
|
import "./chunk-OC7BQLYI.mjs";
|
53
53
|
import "./chunk-67ORSRVT.mjs";
|
54
|
-
import "./chunk-
|
54
|
+
import "./chunk-BSBCIU6C.mjs";
|
55
55
|
import "./chunk-KOSCMAIC.mjs";
|
56
|
+
import "./chunk-YZJ3W776.mjs";
|
56
57
|
import "./chunk-X6DSNTTX.mjs";
|
57
58
|
import "./chunk-I6E6CALJ.mjs";
|
58
59
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -18,7 +18,7 @@ import "./chunk-AOFGTNG6.mjs";
|
|
18
18
|
import "./chunk-EMIHDNB7.mjs";
|
19
19
|
import {
|
20
20
|
useProductTableFilters
|
21
|
-
} from "./chunk-
|
21
|
+
} from "./chunk-YPDTZXV6.mjs";
|
22
22
|
import "./chunk-Z26G6WFJ.mjs";
|
23
23
|
import "./chunk-M3VFKDXJ.mjs";
|
24
24
|
import "./chunk-C76H5USB.mjs";
|
@@ -35,8 +35,9 @@ import "./chunk-MNXC6Q4F.mjs";
|
|
35
35
|
import "./chunk-LPEUYMRK.mjs";
|
36
36
|
import "./chunk-67ORSRVT.mjs";
|
37
37
|
import "./chunk-OBQI23QM.mjs";
|
38
|
-
import "./chunk-
|
38
|
+
import "./chunk-BSBCIU6C.mjs";
|
39
39
|
import "./chunk-KOSCMAIC.mjs";
|
40
|
+
import "./chunk-YZJ3W776.mjs";
|
40
41
|
import "./chunk-X6DSNTTX.mjs";
|
41
42
|
import "./chunk-I6E6CALJ.mjs";
|
42
43
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -36,18 +36,14 @@ var useProductTagTableColumns = () => {
|
|
36
36
|
);
|
37
37
|
};
|
38
38
|
|
39
|
-
// src/hooks/table/columns/use-
|
40
|
-
import { Badge } from "@medusajs/ui";
|
39
|
+
// src/hooks/table/columns/use-refund-reason-table-columns.tsx
|
41
40
|
import { createColumnHelper as createColumnHelper2 } from "@tanstack/react-table";
|
42
41
|
import { useMemo as useMemo2 } from "react";
|
43
42
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
44
43
|
var columnHelper2 = createColumnHelper2();
|
45
|
-
var
|
44
|
+
var useRefundReasonTableColumns = () => {
|
46
45
|
return useMemo2(
|
47
46
|
() => [
|
48
|
-
columnHelper2.accessor("value", {
|
49
|
-
cell: ({ getValue }) => /* @__PURE__ */ jsx2(Badge, { size: "2xsmall", children: getValue() })
|
50
|
-
}),
|
51
47
|
columnHelper2.accessor("label", {
|
52
48
|
cell: ({ row }) => {
|
53
49
|
const { label, description } = row.original;
|
@@ -62,20 +58,47 @@ var useReturnReasonTableColumns = () => {
|
|
62
58
|
);
|
63
59
|
};
|
64
60
|
|
65
|
-
// src/hooks/table/columns/use-
|
61
|
+
// src/hooks/table/columns/use-return-reason-table-columns.tsx
|
62
|
+
import { Badge } from "@medusajs/ui";
|
66
63
|
import { createColumnHelper as createColumnHelper3 } from "@tanstack/react-table";
|
67
64
|
import { useMemo as useMemo3 } from "react";
|
65
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
66
|
+
var columnHelper3 = createColumnHelper3();
|
67
|
+
var useReturnReasonTableColumns = () => {
|
68
|
+
return useMemo3(
|
69
|
+
() => [
|
70
|
+
columnHelper3.accessor("value", {
|
71
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx3(Badge, { size: "2xsmall", children: getValue() })
|
72
|
+
}),
|
73
|
+
columnHelper3.accessor("label", {
|
74
|
+
cell: ({ row }) => {
|
75
|
+
const { label, description } = row.original;
|
76
|
+
return /* @__PURE__ */ jsx3("div", { className: " py-4", children: /* @__PURE__ */ jsxs2("div", { className: "flex h-full w-full flex-col justify-center", children: [
|
77
|
+
/* @__PURE__ */ jsx3("span", { className: "truncate font-medium", children: label }),
|
78
|
+
/* @__PURE__ */ jsx3("span", { className: "truncate", children: description ? description : "-" })
|
79
|
+
] }) });
|
80
|
+
}
|
81
|
+
})
|
82
|
+
],
|
83
|
+
[]
|
84
|
+
);
|
85
|
+
};
|
86
|
+
|
87
|
+
// src/hooks/table/columns/use-tax-rates-table-columns.tsx
|
88
|
+
import { createColumnHelper as createColumnHelper4 } from "@tanstack/react-table";
|
89
|
+
import { useMemo as useMemo4 } from "react";
|
68
90
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
69
91
|
|
70
92
|
// src/components/table/table-cells/taxes/type-cell/type-cell.tsx
|
71
93
|
import { Badge as Badge2 } from "@medusajs/ui";
|
72
|
-
import { jsx as
|
94
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
73
95
|
|
74
96
|
// src/hooks/table/columns/use-tax-rates-table-columns.tsx
|
75
|
-
import { jsx as
|
76
|
-
var
|
97
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
98
|
+
var columnHelper4 = createColumnHelper4();
|
77
99
|
|
78
100
|
export {
|
79
101
|
useProductTagTableColumns,
|
102
|
+
useRefundReasonTableColumns,
|
80
103
|
useReturnReasonTableColumns
|
81
104
|
};
|
@@ -216,11 +216,6 @@ var useMarkPaymentCollectionAsPaid = (orderId, paymentCollectionId, options) =>
|
|
216
216
|
});
|
217
217
|
};
|
218
218
|
|
219
|
-
// src/hooks/api/refund-reasons.tsx
|
220
|
-
import { useQuery as useQuery6 } from "@tanstack/react-query";
|
221
|
-
var REFUND_REASON_QUERY_KEY = "refund-reason";
|
222
|
-
var refundReasonQueryKeys = queryKeysFactory(REFUND_REASON_QUERY_KEY);
|
223
|
-
|
224
219
|
export {
|
225
220
|
notificationQueryKeys,
|
226
221
|
useNotifications,
|
@@ -358,7 +358,7 @@ function useTableConfiguration({
|
|
358
358
|
enabled: isViewConfigEnabled
|
359
359
|
});
|
360
360
|
const queryParams = useQueryParams(
|
361
|
-
["q", "order", ...filters.map((f) => f.id)],
|
361
|
+
["q", "order", "offset", "limit", ...filters.map((f) => f.id)],
|
362
362
|
queryPrefix
|
363
363
|
);
|
364
364
|
const {
|
@@ -83,6 +83,30 @@ var useProductTagTableQuery = ({
|
|
83
83
|
};
|
84
84
|
};
|
85
85
|
|
86
|
+
// src/hooks/table/query/use-refund-reason-table-query.tsx
|
87
|
+
var useRefundReasonTableQuery = ({
|
88
|
+
prefix,
|
89
|
+
pageSize = 20
|
90
|
+
}) => {
|
91
|
+
const queryObject = useQueryParams(
|
92
|
+
["offset", "q", "order", "created_at", "updated_at"],
|
93
|
+
prefix
|
94
|
+
);
|
95
|
+
const { offset, q, order, created_at, updated_at } = queryObject;
|
96
|
+
const searchParams = {
|
97
|
+
limit: pageSize,
|
98
|
+
offset: offset ? Number(offset) : 0,
|
99
|
+
order,
|
100
|
+
created_at: created_at ? JSON.parse(created_at) : void 0,
|
101
|
+
updated_at: updated_at ? JSON.parse(updated_at) : void 0,
|
102
|
+
q
|
103
|
+
};
|
104
|
+
return {
|
105
|
+
searchParams,
|
106
|
+
raw: queryObject
|
107
|
+
};
|
108
|
+
};
|
109
|
+
|
86
110
|
// src/hooks/table/query/use-return-reason-table-query.tsx
|
87
111
|
var useReturnReasonTableQuery = ({
|
88
112
|
prefix,
|
@@ -160,6 +184,7 @@ export {
|
|
160
184
|
useCollectionTableColumns,
|
161
185
|
useCollectionTableQuery,
|
162
186
|
useProductTagTableQuery,
|
187
|
+
useRefundReasonTableQuery,
|
163
188
|
useReturnReasonTableQuery,
|
164
189
|
useShippingOptionTableQuery
|
165
190
|
};
|
@@ -11490,6 +11490,37 @@ var en_default = {
|
|
11490
11490
|
}
|
11491
11491
|
}
|
11492
11492
|
},
|
11493
|
+
refundReasons: {
|
11494
|
+
domain: "Refund Reasons",
|
11495
|
+
subtitle: "Manage reasons for refunded items.",
|
11496
|
+
calloutHint: "Manage the reasons to categorize refunds.",
|
11497
|
+
editReason: "Edit Refund Reason",
|
11498
|
+
create: {
|
11499
|
+
header: "Add Refund Reason",
|
11500
|
+
subtitle: "Specify the most common reasons for refunds.",
|
11501
|
+
hint: "Create a new refund reason to categorize refunds.",
|
11502
|
+
successToast: "Refund reason {{label}} was successfully created."
|
11503
|
+
},
|
11504
|
+
edit: {
|
11505
|
+
header: "Edit Refund Reason",
|
11506
|
+
subtitle: "Edit the value of the refund reason.",
|
11507
|
+
successToast: "Refund reason {{label}} was successfully updated."
|
11508
|
+
},
|
11509
|
+
delete: {
|
11510
|
+
confirmation: 'You are about to delete the refund reason "{{label}}". This action cannot be undone.',
|
11511
|
+
successToast: "Refund reason was successfully deleted."
|
11512
|
+
},
|
11513
|
+
fields: {
|
11514
|
+
label: {
|
11515
|
+
label: "Label",
|
11516
|
+
placeholder: "Gesture of goodwill"
|
11517
|
+
},
|
11518
|
+
description: {
|
11519
|
+
label: "Description",
|
11520
|
+
placeholder: "Customer had a bad shopping experience"
|
11521
|
+
}
|
11522
|
+
}
|
11523
|
+
},
|
11493
11524
|
login: {
|
11494
11525
|
forgotPassword: "Forgot password? - <0>Reset</0>",
|
11495
11526
|
title: "Welcome to Medusa",
|
@@ -6,7 +6,7 @@ import {
|
|
6
6
|
} from "./chunk-GLVCH422.mjs";
|
7
7
|
import {
|
8
8
|
useShippingOptionTableQuery
|
9
|
-
} from "./chunk-
|
9
|
+
} from "./chunk-K3OMOMRB.mjs";
|
10
10
|
import {
|
11
11
|
useProductTypeTableQuery
|
12
12
|
} from "./chunk-TDK3JDOB.mjs";
|
@@ -37,7 +37,7 @@ import {
|
|
37
37
|
} from "./chunk-CBSCX7RE.mjs";
|
38
38
|
import {
|
39
39
|
useProductTableFilters
|
40
|
-
} from "./chunk-
|
40
|
+
} from "./chunk-YPDTZXV6.mjs";
|
41
41
|
import {
|
42
42
|
StackedDrawer,
|
43
43
|
StackedFocusModal
|