@medusajs/dashboard 2.10.4-snapshot-20250929154835 → 2.10.4-snapshot-20250929174531
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-TFNUPW6A.mjs → add-campaign-promotions-3BB3BLFD.mjs} +3 -3
- package/dist/{api-key-management-detail-6URA7AKM.mjs → api-key-management-detail-ZQLQKGYF.mjs} +2 -1
- package/dist/app.js +4 -71
- package/dist/app.mjs +4 -3
- package/dist/{campaign-detail-6TPA4ERV.mjs → campaign-detail-LASOFZ2O.mjs} +5 -4
- package/dist/{categories-metadata-LISTDI2Y.mjs → categories-metadata-HUIY6V4F.mjs} +2 -1
- package/dist/{category-detail-K3GNLMQZ.mjs → category-detail-ZJJBYVFX.mjs} +3 -2
- package/dist/{category-products-EGGFU5IA.mjs → category-products-7N4TITQ4.mjs} +3 -2
- package/dist/chunk-5U3FFMC7.mjs +84 -0
- package/dist/{chunk-4KGC42TY.mjs → chunk-5WMJLYEP.mjs} +1 -1
- package/dist/{chunk-QPBS3GN3.mjs → chunk-7DFTLGA5.mjs} +100 -100
- package/dist/{chunk-S34JJVBQ.mjs → chunk-7JJTWGHU.mjs} +0 -7
- package/dist/{chunk-VLNUSUNX.mjs → chunk-CXTAH75K.mjs} +1 -1
- package/dist/{chunk-H4ASVW4A.mjs → chunk-DKOCYXB5.mjs} +0 -4
- package/dist/{chunk-6IQV6XRM.mjs → chunk-IP2QPPWC.mjs} +1 -1
- package/dist/{chunk-FLPX3C4H.mjs → chunk-NFQXNOP7.mjs} +1 -1
- package/dist/{chunk-LFSI4NJU.mjs → chunk-PAG2HG6I.mjs} +22 -94
- package/dist/{chunk-4W6YIY7C.mjs → chunk-QPLPGRYF.mjs} +1 -1
- package/dist/{chunk-AHHACBNF.mjs → chunk-U4R5MBF2.mjs} +1 -1
- package/dist/{chunk-ZEED3CMI.mjs → chunk-VWQYN2RW.mjs} +1 -1
- package/dist/{chunk-WKSE3SCT.mjs → chunk-XR7I5HGZ.mjs} +1 -1
- package/dist/{collection-add-products-3FN6PUXN.mjs → collection-add-products-WKMNYPLS.mjs} +3 -2
- package/dist/{collection-detail-3XJA3YAW.mjs → collection-detail-NONKXELG.mjs} +3 -2
- package/dist/{collection-list-SDEPSNRJ.mjs → collection-list-3ZHLS2LP.mjs} +3 -2
- package/dist/{collection-metadata-U3U5IAXY.mjs → collection-metadata-J6P3K7U6.mjs} +2 -1
- package/dist/{customer-detail-3LRBZ3JI.mjs → customer-detail-5Y7ICDMA.mjs} +2 -1
- package/dist/{customer-group-detail-PSWUMSNT.mjs → customer-group-detail-PXP73BFA.mjs} +2 -1
- package/dist/{customer-group-list-CWMPWYDT.mjs → customer-group-list-3DB643XQ.mjs} +2 -1
- package/dist/{customers-add-customer-group-B2A4NE3V.mjs → customers-add-customer-group-BVUVU46N.mjs} +2 -1
- package/dist/{edit-rules-5IC62HEP.mjs → edit-rules-3MSTPCE5.mjs} +2 -1
- package/dist/{inventory-create-W5TWRGTB.mjs → inventory-create-NEYX7PZJ.mjs} +2 -1
- package/dist/{inventory-detail-NA3TYSDI.mjs → inventory-detail-66HDQL3W.mjs} +2 -1
- package/dist/{inventory-metadata-IHX3PKUU.mjs → inventory-metadata-OSTUWM23.mjs} +2 -1
- package/dist/{inventory-stock-N63HVL4Y.mjs → inventory-stock-XY2OCAY3.mjs} +2 -1
- package/dist/{location-detail-LTPCPYBB.mjs → location-detail-UZHD3IKW.mjs} +2 -1
- package/dist/{location-fulfillment-providers-D7RUW43H.mjs → location-fulfillment-providers-D4RMKQXU.mjs} +3 -2
- package/dist/{location-service-zone-shipping-option-create-7OWIMXRU.mjs → location-service-zone-shipping-option-create-OASLL2K7.mjs} +2 -1
- package/dist/{login-35YVS44T.mjs → login-LQRL2ZDY.mjs} +2 -1
- package/dist/{order-create-claim-IL5IJQDA.mjs → order-create-claim-7UF734QH.mjs} +2 -1
- package/dist/{order-create-edit-MZZBDG2K.mjs → order-create-edit-MZHUVTGE.mjs} +2 -1
- package/dist/{order-create-exchange-CWS4HFYS.mjs → order-create-exchange-2UGEF65S.mjs} +2 -1
- package/dist/{order-create-fulfillment-I22AFZNL.mjs → order-create-fulfillment-HGJ2YPUB.mjs} +2 -1
- package/dist/{order-create-refund-OQ7OZAA6.mjs → order-create-refund-CJDKVBSE.mjs} +8 -4
- package/dist/{order-create-shipment-DQ2MGT73.mjs → order-create-shipment-3FDVQ6WT.mjs} +2 -1
- package/dist/{order-detail-NPB65EAD.mjs → order-detail-SEPCRJW5.mjs} +2 -1
- package/dist/{order-edit-billing-address-LBI4BH2D.mjs → order-edit-billing-address-J75NQFRY.mjs} +2 -1
- package/dist/{order-edit-email-LZIAGMIQ.mjs → order-edit-email-ABFQKE6A.mjs} +2 -1
- package/dist/{order-edit-shipping-address-7ASMMZHB.mjs → order-edit-shipping-address-OXW7TAJD.mjs} +2 -1
- package/dist/{order-metadata-WKPBFYBS.mjs → order-metadata-5NF3ICQL.mjs} +2 -1
- package/dist/{order-receive-return-5NEE4MCK.mjs → order-receive-return-IM65P7XQ.mjs} +2 -1
- package/dist/{order-request-transfer-3VT2ZUA7.mjs → order-request-transfer-LZ25KEDA.mjs} +2 -1
- package/dist/{price-list-create-RSXHRPDW.mjs → price-list-create-EC5VGCMW.mjs} +3 -2
- package/dist/{price-list-detail-27WN2S6M.mjs → price-list-detail-CRTJA5O4.mjs} +3 -2
- package/dist/{price-list-prices-add-P76O76X3.mjs → price-list-prices-add-HYCM4QDY.mjs} +3 -2
- package/dist/{product-attributes-L2E6JYWT.mjs → product-attributes-WVQRK3GQ.mjs} +5 -4
- package/dist/{product-create-CDTVJV6K.mjs → product-create-PWSPOVUS.mjs} +5 -4
- package/dist/{product-create-variant-3A7UARG7.mjs → product-create-variant-V2QGXFEF.mjs} +2 -1
- package/dist/{product-detail-Q6BGZV5H.mjs → product-detail-EBPCCBI4.mjs} +5 -4
- package/dist/{product-edit-2C3PYCU5.mjs → product-edit-5E6D43KE.mjs} +5 -4
- package/dist/{product-export-EIIBIYBL.mjs → product-export-VFC3I5DK.mjs} +3 -2
- package/dist/{product-import-WXFKSQMH.mjs → product-import-V7EZJ2TU.mjs} +2 -1
- package/dist/{product-list-KEND4NTM.mjs → product-list-FFZO57JG.mjs} +3 -2
- package/dist/{product-media-OEV3BHUK.mjs → product-media-TRKQTA4G.mjs} +2 -2
- package/dist/{product-metadata-6WVU7KCL.mjs → product-metadata-VYQ65KYI.mjs} +2 -1
- package/dist/{product-organization-JCDB6V2Z.mjs → product-organization-OCVSTKEK.mjs} +5 -4
- package/dist/{product-shipping-profile-SL55OQ7S.mjs → product-shipping-profile-SG6NDHF4.mjs} +5 -4
- package/dist/{product-stock-EYYSNQN6.mjs → product-stock-LJRYRSKN.mjs} +2 -1
- package/dist/{product-tag-create-LZJJQDDN.mjs → product-tag-create-EB5CVUOP.mjs} +2 -1
- package/dist/{product-tag-detail-IZWWHAL4.mjs → product-tag-detail-V5CZY4R4.mjs} +5 -4
- package/dist/{product-tag-edit-GJ7T5EWE.mjs → product-tag-edit-YATSW5OK.mjs} +2 -1
- package/dist/{product-tag-list-CT5SDORF.mjs → product-tag-list-2LFGEFGL.mjs} +5 -4
- package/dist/{product-tag-metadata-2PE6F6PT.mjs → product-tag-metadata-R5P5FWAZ.mjs} +2 -1
- package/dist/{product-type-detail-X7TH5D5P.mjs → product-type-detail-BZNI5GJ5.mjs} +3 -2
- package/dist/{product-type-metadata-UBVJNWEL.mjs → product-type-metadata-SUQHWLWA.mjs} +2 -1
- package/dist/{product-variant-detail-IUAHUIF3.mjs → product-variant-detail-W2JHQQQJ.mjs} +2 -1
- package/dist/{product-variant-edit-7QDJ2IRD.mjs → product-variant-edit-DSY77FF4.mjs} +2 -1
- package/dist/{product-variant-metadata-VNDDDM3T.mjs → product-variant-metadata-HE3MRTJB.mjs} +2 -1
- package/dist/{promotion-create-SWL2YAZR.mjs → promotion-create-NBFV4XQV.mjs} +2 -1
- package/dist/{promotion-detail-T5Y3LGZN.mjs → promotion-detail-247QD6DA.mjs} +4 -3
- package/dist/{promotion-list-4YQXF4JL.mjs → promotion-list-WDHOSD55.mjs} +3 -3
- package/dist/{refund-reason-create-77GSQ4W5.mjs → refund-reason-create-45ZZOX7F.mjs} +3 -38
- package/dist/{refund-reason-edit-UHR7VTDK.mjs → refund-reason-edit-E2HDAQZI.mjs} +1 -49
- package/dist/{refund-reason-list-WIIPT75C.mjs → refund-reason-list-WI7NHRDS.mjs} +4 -3
- package/dist/{region-metadata-6VLWB5VQ.mjs → region-metadata-3JIGHAUI.mjs} +2 -1
- package/dist/{reservation-detail-3ATQ33U7.mjs → reservation-detail-FENCNQDA.mjs} +2 -1
- package/dist/{reservation-metadata-2SVXKSIC.mjs → reservation-metadata-DQ3A7MHU.mjs} +2 -1
- package/dist/{reset-password-IRRCZOIH.mjs → reset-password-LCVV4NOA.mjs} +1 -1
- package/dist/{return-reason-list-T7KQHIYV.mjs → return-reason-list-FW7OYUOW.mjs} +1 -1
- package/dist/{sales-channel-add-products-UFRCO4JR.mjs → sales-channel-add-products-G4EUOCWY.mjs} +3 -2
- package/dist/{sales-channel-detail-4B6KT7EU.mjs → sales-channel-detail-NT7PEVVH.mjs} +3 -2
- package/dist/{sales-channel-list-3KAKOZV7.mjs → sales-channel-list-REV2RETE.mjs} +2 -1
- package/dist/{sales-channel-metadata-VWG77T3Y.mjs → sales-channel-metadata-O5O6ADG5.mjs} +2 -1
- package/dist/{shipping-option-type-create-ZSUEJDPC.mjs → shipping-option-type-create-7FSJNHHA.mjs} +2 -1
- package/dist/{shipping-option-type-detail-LUIV6WLP.mjs → shipping-option-type-detail-6UQST7RY.mjs} +3 -2
- package/dist/{shipping-option-type-edit-MC4UYHRM.mjs → shipping-option-type-edit-B475WRRR.mjs} +2 -1
- package/dist/{shipping-option-type-list-AA3VLD4U.mjs → shipping-option-type-list-DTETSFSA.mjs} +3 -2
- package/dist/{shipping-profile-metadata-37X46LSP.mjs → shipping-profile-metadata-PRINFNSY.mjs} +2 -1
- package/dist/{store-detail-PGMGDA2T.mjs → store-detail-QKF2TVNW.mjs} +2 -1
- package/dist/{store-metadata-DPM7CH4C.mjs → store-metadata-M6GIKI5P.mjs} +2 -1
- package/dist/{tax-region-create-GCKJ6LII.mjs → tax-region-create-4DTM3RTZ.mjs} +3 -2
- package/dist/{tax-region-detail-HNTTGBII.mjs → tax-region-detail-SLCI3JYL.mjs} +2 -1
- package/dist/{tax-region-edit-ECTOKAGZ.mjs → tax-region-edit-CJ63JXFQ.mjs} +2 -1
- package/dist/{tax-region-province-detail-7DEEXMWA.mjs → tax-region-province-detail-BGL2USQF.mjs} +2 -1
- package/dist/{tax-region-tax-override-create-6EHKZAZ4.mjs → tax-region-tax-override-create-L4WOTSBO.mjs} +5 -4
- package/dist/{tax-region-tax-override-edit-AZBQQPYI.mjs → tax-region-tax-override-edit-2JAVNE37.mjs} +5 -4
- package/dist/{user-metadata-HPKKLNTP.mjs → user-metadata-DFTGB46F.mjs} +2 -1
- package/dist/{workflow-execution-detail-Z6JEL2HO.mjs → workflow-execution-detail-YNT2RKIP.mjs} +2 -1
- package/package.json +9 -9
- package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +0 -7
- package/src/i18n/translations/$schema.json +1 -14
- package/src/i18n/translations/en.json +0 -4
- package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +2 -0
- package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +0 -46
- package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +1 -23
@@ -10306,19 +10306,6 @@
|
|
10306
10306
|
"required": ["label", "placeholder"],
|
10307
10307
|
"additionalProperties": false
|
10308
10308
|
},
|
10309
|
-
"code": {
|
10310
|
-
"type": "object",
|
10311
|
-
"properties": {
|
10312
|
-
"label": {
|
10313
|
-
"type": "string"
|
10314
|
-
},
|
10315
|
-
"placeholder": {
|
10316
|
-
"type": "string"
|
10317
|
-
}
|
10318
|
-
},
|
10319
|
-
"required": ["label", "placeholder"],
|
10320
|
-
"additionalProperties": false
|
10321
|
-
},
|
10322
10309
|
"description": {
|
10323
10310
|
"type": "object",
|
10324
10311
|
"properties": {
|
@@ -10333,7 +10320,7 @@
|
|
10333
10320
|
"additionalProperties": false
|
10334
10321
|
}
|
10335
10322
|
},
|
10336
|
-
"required": ["label", "
|
10323
|
+
"required": ["label", "description"],
|
10337
10324
|
"additionalProperties": false
|
10338
10325
|
}
|
10339
10326
|
},
|
@@ -2771,10 +2771,6 @@
|
|
2771
2771
|
"label": "Label",
|
2772
2772
|
"placeholder": "Gesture of goodwill"
|
2773
2773
|
},
|
2774
|
-
"code": {
|
2775
|
-
"label": "Code",
|
2776
|
-
"placeholder": "gesture_of_goodwill"
|
2777
|
-
},
|
2778
2774
|
"description": {
|
2779
2775
|
"label": "Description",
|
2780
2776
|
"placeholder": "Customer had a bad shopping experience"
|
@@ -13,7 +13,6 @@ import { useCreateRefundReason } from "../../../../../hooks/api"
|
|
13
13
|
|
14
14
|
const RefundReasonCreateSchema = z.object({
|
15
15
|
label: z.string().min(1),
|
16
|
-
code: z.string().min(1),
|
17
16
|
description: z.string().optional(),
|
18
17
|
})
|
19
18
|
|
@@ -24,20 +23,11 @@ export const RefundReasonCreateForm = () => {
|
|
24
23
|
const form = useForm<z.infer<typeof RefundReasonCreateSchema>>({
|
25
24
|
defaultValues: {
|
26
25
|
label: "",
|
27
|
-
code: "",
|
28
26
|
description: "",
|
29
27
|
},
|
30
28
|
resolver: zodResolver(RefundReasonCreateSchema),
|
31
29
|
})
|
32
30
|
|
33
|
-
const generateCodeFromLabel = (label: string) => {
|
34
|
-
return label
|
35
|
-
.toLowerCase()
|
36
|
-
.replace(/[^a-z0-9]/g, "_")
|
37
|
-
.replace(/_+/g, "_")
|
38
|
-
.replace(/^_|_$/g, "")
|
39
|
-
}
|
40
|
-
|
41
31
|
const { mutateAsync, isPending } = useCreateRefundReason()
|
42
32
|
|
43
33
|
const handleSubmit = form.handleSubmit(async (data) => {
|
@@ -91,42 +81,6 @@ export const RefundReasonCreateForm = () => {
|
|
91
81
|
placeholder={t(
|
92
82
|
"refundReasons.fields.label.placeholder"
|
93
83
|
)}
|
94
|
-
onChange={(e) => {
|
95
|
-
if (
|
96
|
-
!form.getFieldState("code").isTouched ||
|
97
|
-
!form.getValues("code")
|
98
|
-
) {
|
99
|
-
form.setValue(
|
100
|
-
"code",
|
101
|
-
generateCodeFromLabel(e.target.value)
|
102
|
-
)
|
103
|
-
}
|
104
|
-
field.onChange(e)
|
105
|
-
}}
|
106
|
-
/>
|
107
|
-
</Form.Control>
|
108
|
-
<Form.ErrorMessage />
|
109
|
-
</Form.Item>
|
110
|
-
)
|
111
|
-
}}
|
112
|
-
/>
|
113
|
-
</div>
|
114
|
-
<div className="grid gap-4 md:grid-cols-2">
|
115
|
-
<Form.Field
|
116
|
-
control={form.control}
|
117
|
-
name="code"
|
118
|
-
render={({ field }) => {
|
119
|
-
return (
|
120
|
-
<Form.Item>
|
121
|
-
<Form.Label>
|
122
|
-
{t("refundReasons.fields.code.label")}
|
123
|
-
</Form.Label>
|
124
|
-
<Form.Control>
|
125
|
-
<Input
|
126
|
-
{...field}
|
127
|
-
placeholder={t(
|
128
|
-
"refundReasons.fields.code.placeholder"
|
129
|
-
)}
|
130
84
|
/>
|
131
85
|
</Form.Control>
|
132
86
|
<Form.ErrorMessage />
|
@@ -8,7 +8,7 @@ import { z } from "zod"
|
|
8
8
|
import { Form } from "../../../../../components/common/form"
|
9
9
|
import { RouteDrawer, useRouteModal } from "../../../../../components/modals"
|
10
10
|
import { KeyboundForm } from "../../../../../components/utilities/keybound-form"
|
11
|
-
import { useUpdateRefundReason } from "../../../../../hooks/api"
|
11
|
+
import { useUpdateRefundReason } from "../../../../../hooks/api/refund-reasons"
|
12
12
|
|
13
13
|
type RefundReasonEditFormProps = {
|
14
14
|
refundReason: HttpTypes.AdminRefundReason
|
@@ -16,7 +16,6 @@ type RefundReasonEditFormProps = {
|
|
16
16
|
|
17
17
|
const RefundReasonEditSchema = z.object({
|
18
18
|
label: z.string().min(1),
|
19
|
-
code: z.string().min(1),
|
20
19
|
description: z.string().optional(),
|
21
20
|
})
|
22
21
|
|
@@ -29,7 +28,6 @@ export const RefundReasonEditForm = ({
|
|
29
28
|
const form = useForm<z.infer<typeof RefundReasonEditSchema>>({
|
30
29
|
defaultValues: {
|
31
30
|
label: refundReason.label,
|
32
|
-
code: refundReason.code,
|
33
31
|
description: refundReason.description ?? undefined,
|
34
32
|
},
|
35
33
|
resolver: zodResolver(RefundReasonEditSchema),
|
@@ -80,26 +78,6 @@ export const RefundReasonEditForm = ({
|
|
80
78
|
)
|
81
79
|
}}
|
82
80
|
/>
|
83
|
-
<Form.Field
|
84
|
-
control={form.control}
|
85
|
-
name="code"
|
86
|
-
render={({ field }) => {
|
87
|
-
return (
|
88
|
-
<Form.Item>
|
89
|
-
<Form.Label>
|
90
|
-
{t("refundReasons.fields.code.label")}
|
91
|
-
</Form.Label>
|
92
|
-
<Form.Control>
|
93
|
-
<Input
|
94
|
-
{...field}
|
95
|
-
placeholder={t("refundReasons.fields.code.placeholder")}
|
96
|
-
/>
|
97
|
-
</Form.Control>
|
98
|
-
<Form.ErrorMessage />
|
99
|
-
</Form.Item>
|
100
|
-
)
|
101
|
-
}}
|
102
|
-
/>
|
103
81
|
<Form.Field
|
104
82
|
control={form.control}
|
105
83
|
name="description"
|