@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.
Files changed (114) hide show
  1. package/dist/{add-campaign-promotions-TFNUPW6A.mjs → add-campaign-promotions-3BB3BLFD.mjs} +3 -3
  2. package/dist/{api-key-management-detail-6URA7AKM.mjs → api-key-management-detail-ZQLQKGYF.mjs} +2 -1
  3. package/dist/app.js +4 -71
  4. package/dist/app.mjs +4 -3
  5. package/dist/{campaign-detail-6TPA4ERV.mjs → campaign-detail-LASOFZ2O.mjs} +5 -4
  6. package/dist/{categories-metadata-LISTDI2Y.mjs → categories-metadata-HUIY6V4F.mjs} +2 -1
  7. package/dist/{category-detail-K3GNLMQZ.mjs → category-detail-ZJJBYVFX.mjs} +3 -2
  8. package/dist/{category-products-EGGFU5IA.mjs → category-products-7N4TITQ4.mjs} +3 -2
  9. package/dist/chunk-5U3FFMC7.mjs +84 -0
  10. package/dist/{chunk-4KGC42TY.mjs → chunk-5WMJLYEP.mjs} +1 -1
  11. package/dist/{chunk-QPBS3GN3.mjs → chunk-7DFTLGA5.mjs} +100 -100
  12. package/dist/{chunk-S34JJVBQ.mjs → chunk-7JJTWGHU.mjs} +0 -7
  13. package/dist/{chunk-VLNUSUNX.mjs → chunk-CXTAH75K.mjs} +1 -1
  14. package/dist/{chunk-H4ASVW4A.mjs → chunk-DKOCYXB5.mjs} +0 -4
  15. package/dist/{chunk-6IQV6XRM.mjs → chunk-IP2QPPWC.mjs} +1 -1
  16. package/dist/{chunk-FLPX3C4H.mjs → chunk-NFQXNOP7.mjs} +1 -1
  17. package/dist/{chunk-LFSI4NJU.mjs → chunk-PAG2HG6I.mjs} +22 -94
  18. package/dist/{chunk-4W6YIY7C.mjs → chunk-QPLPGRYF.mjs} +1 -1
  19. package/dist/{chunk-AHHACBNF.mjs → chunk-U4R5MBF2.mjs} +1 -1
  20. package/dist/{chunk-ZEED3CMI.mjs → chunk-VWQYN2RW.mjs} +1 -1
  21. package/dist/{chunk-WKSE3SCT.mjs → chunk-XR7I5HGZ.mjs} +1 -1
  22. package/dist/{collection-add-products-3FN6PUXN.mjs → collection-add-products-WKMNYPLS.mjs} +3 -2
  23. package/dist/{collection-detail-3XJA3YAW.mjs → collection-detail-NONKXELG.mjs} +3 -2
  24. package/dist/{collection-list-SDEPSNRJ.mjs → collection-list-3ZHLS2LP.mjs} +3 -2
  25. package/dist/{collection-metadata-U3U5IAXY.mjs → collection-metadata-J6P3K7U6.mjs} +2 -1
  26. package/dist/{customer-detail-3LRBZ3JI.mjs → customer-detail-5Y7ICDMA.mjs} +2 -1
  27. package/dist/{customer-group-detail-PSWUMSNT.mjs → customer-group-detail-PXP73BFA.mjs} +2 -1
  28. package/dist/{customer-group-list-CWMPWYDT.mjs → customer-group-list-3DB643XQ.mjs} +2 -1
  29. package/dist/{customers-add-customer-group-B2A4NE3V.mjs → customers-add-customer-group-BVUVU46N.mjs} +2 -1
  30. package/dist/{edit-rules-5IC62HEP.mjs → edit-rules-3MSTPCE5.mjs} +2 -1
  31. package/dist/{inventory-create-W5TWRGTB.mjs → inventory-create-NEYX7PZJ.mjs} +2 -1
  32. package/dist/{inventory-detail-NA3TYSDI.mjs → inventory-detail-66HDQL3W.mjs} +2 -1
  33. package/dist/{inventory-metadata-IHX3PKUU.mjs → inventory-metadata-OSTUWM23.mjs} +2 -1
  34. package/dist/{inventory-stock-N63HVL4Y.mjs → inventory-stock-XY2OCAY3.mjs} +2 -1
  35. package/dist/{location-detail-LTPCPYBB.mjs → location-detail-UZHD3IKW.mjs} +2 -1
  36. package/dist/{location-fulfillment-providers-D7RUW43H.mjs → location-fulfillment-providers-D4RMKQXU.mjs} +3 -2
  37. package/dist/{location-service-zone-shipping-option-create-7OWIMXRU.mjs → location-service-zone-shipping-option-create-OASLL2K7.mjs} +2 -1
  38. package/dist/{login-35YVS44T.mjs → login-LQRL2ZDY.mjs} +2 -1
  39. package/dist/{order-create-claim-IL5IJQDA.mjs → order-create-claim-7UF734QH.mjs} +2 -1
  40. package/dist/{order-create-edit-MZZBDG2K.mjs → order-create-edit-MZHUVTGE.mjs} +2 -1
  41. package/dist/{order-create-exchange-CWS4HFYS.mjs → order-create-exchange-2UGEF65S.mjs} +2 -1
  42. package/dist/{order-create-fulfillment-I22AFZNL.mjs → order-create-fulfillment-HGJ2YPUB.mjs} +2 -1
  43. package/dist/{order-create-refund-OQ7OZAA6.mjs → order-create-refund-CJDKVBSE.mjs} +8 -4
  44. package/dist/{order-create-shipment-DQ2MGT73.mjs → order-create-shipment-3FDVQ6WT.mjs} +2 -1
  45. package/dist/{order-detail-NPB65EAD.mjs → order-detail-SEPCRJW5.mjs} +2 -1
  46. package/dist/{order-edit-billing-address-LBI4BH2D.mjs → order-edit-billing-address-J75NQFRY.mjs} +2 -1
  47. package/dist/{order-edit-email-LZIAGMIQ.mjs → order-edit-email-ABFQKE6A.mjs} +2 -1
  48. package/dist/{order-edit-shipping-address-7ASMMZHB.mjs → order-edit-shipping-address-OXW7TAJD.mjs} +2 -1
  49. package/dist/{order-metadata-WKPBFYBS.mjs → order-metadata-5NF3ICQL.mjs} +2 -1
  50. package/dist/{order-receive-return-5NEE4MCK.mjs → order-receive-return-IM65P7XQ.mjs} +2 -1
  51. package/dist/{order-request-transfer-3VT2ZUA7.mjs → order-request-transfer-LZ25KEDA.mjs} +2 -1
  52. package/dist/{price-list-create-RSXHRPDW.mjs → price-list-create-EC5VGCMW.mjs} +3 -2
  53. package/dist/{price-list-detail-27WN2S6M.mjs → price-list-detail-CRTJA5O4.mjs} +3 -2
  54. package/dist/{price-list-prices-add-P76O76X3.mjs → price-list-prices-add-HYCM4QDY.mjs} +3 -2
  55. package/dist/{product-attributes-L2E6JYWT.mjs → product-attributes-WVQRK3GQ.mjs} +5 -4
  56. package/dist/{product-create-CDTVJV6K.mjs → product-create-PWSPOVUS.mjs} +5 -4
  57. package/dist/{product-create-variant-3A7UARG7.mjs → product-create-variant-V2QGXFEF.mjs} +2 -1
  58. package/dist/{product-detail-Q6BGZV5H.mjs → product-detail-EBPCCBI4.mjs} +5 -4
  59. package/dist/{product-edit-2C3PYCU5.mjs → product-edit-5E6D43KE.mjs} +5 -4
  60. package/dist/{product-export-EIIBIYBL.mjs → product-export-VFC3I5DK.mjs} +3 -2
  61. package/dist/{product-import-WXFKSQMH.mjs → product-import-V7EZJ2TU.mjs} +2 -1
  62. package/dist/{product-list-KEND4NTM.mjs → product-list-FFZO57JG.mjs} +3 -2
  63. package/dist/{product-media-OEV3BHUK.mjs → product-media-TRKQTA4G.mjs} +2 -2
  64. package/dist/{product-metadata-6WVU7KCL.mjs → product-metadata-VYQ65KYI.mjs} +2 -1
  65. package/dist/{product-organization-JCDB6V2Z.mjs → product-organization-OCVSTKEK.mjs} +5 -4
  66. package/dist/{product-shipping-profile-SL55OQ7S.mjs → product-shipping-profile-SG6NDHF4.mjs} +5 -4
  67. package/dist/{product-stock-EYYSNQN6.mjs → product-stock-LJRYRSKN.mjs} +2 -1
  68. package/dist/{product-tag-create-LZJJQDDN.mjs → product-tag-create-EB5CVUOP.mjs} +2 -1
  69. package/dist/{product-tag-detail-IZWWHAL4.mjs → product-tag-detail-V5CZY4R4.mjs} +5 -4
  70. package/dist/{product-tag-edit-GJ7T5EWE.mjs → product-tag-edit-YATSW5OK.mjs} +2 -1
  71. package/dist/{product-tag-list-CT5SDORF.mjs → product-tag-list-2LFGEFGL.mjs} +5 -4
  72. package/dist/{product-tag-metadata-2PE6F6PT.mjs → product-tag-metadata-R5P5FWAZ.mjs} +2 -1
  73. package/dist/{product-type-detail-X7TH5D5P.mjs → product-type-detail-BZNI5GJ5.mjs} +3 -2
  74. package/dist/{product-type-metadata-UBVJNWEL.mjs → product-type-metadata-SUQHWLWA.mjs} +2 -1
  75. package/dist/{product-variant-detail-IUAHUIF3.mjs → product-variant-detail-W2JHQQQJ.mjs} +2 -1
  76. package/dist/{product-variant-edit-7QDJ2IRD.mjs → product-variant-edit-DSY77FF4.mjs} +2 -1
  77. package/dist/{product-variant-metadata-VNDDDM3T.mjs → product-variant-metadata-HE3MRTJB.mjs} +2 -1
  78. package/dist/{promotion-create-SWL2YAZR.mjs → promotion-create-NBFV4XQV.mjs} +2 -1
  79. package/dist/{promotion-detail-T5Y3LGZN.mjs → promotion-detail-247QD6DA.mjs} +4 -3
  80. package/dist/{promotion-list-4YQXF4JL.mjs → promotion-list-WDHOSD55.mjs} +3 -3
  81. package/dist/{refund-reason-create-77GSQ4W5.mjs → refund-reason-create-45ZZOX7F.mjs} +3 -38
  82. package/dist/{refund-reason-edit-UHR7VTDK.mjs → refund-reason-edit-E2HDAQZI.mjs} +1 -49
  83. package/dist/{refund-reason-list-WIIPT75C.mjs → refund-reason-list-WI7NHRDS.mjs} +4 -3
  84. package/dist/{region-metadata-6VLWB5VQ.mjs → region-metadata-3JIGHAUI.mjs} +2 -1
  85. package/dist/{reservation-detail-3ATQ33U7.mjs → reservation-detail-FENCNQDA.mjs} +2 -1
  86. package/dist/{reservation-metadata-2SVXKSIC.mjs → reservation-metadata-DQ3A7MHU.mjs} +2 -1
  87. package/dist/{reset-password-IRRCZOIH.mjs → reset-password-LCVV4NOA.mjs} +1 -1
  88. package/dist/{return-reason-list-T7KQHIYV.mjs → return-reason-list-FW7OYUOW.mjs} +1 -1
  89. package/dist/{sales-channel-add-products-UFRCO4JR.mjs → sales-channel-add-products-G4EUOCWY.mjs} +3 -2
  90. package/dist/{sales-channel-detail-4B6KT7EU.mjs → sales-channel-detail-NT7PEVVH.mjs} +3 -2
  91. package/dist/{sales-channel-list-3KAKOZV7.mjs → sales-channel-list-REV2RETE.mjs} +2 -1
  92. package/dist/{sales-channel-metadata-VWG77T3Y.mjs → sales-channel-metadata-O5O6ADG5.mjs} +2 -1
  93. package/dist/{shipping-option-type-create-ZSUEJDPC.mjs → shipping-option-type-create-7FSJNHHA.mjs} +2 -1
  94. package/dist/{shipping-option-type-detail-LUIV6WLP.mjs → shipping-option-type-detail-6UQST7RY.mjs} +3 -2
  95. package/dist/{shipping-option-type-edit-MC4UYHRM.mjs → shipping-option-type-edit-B475WRRR.mjs} +2 -1
  96. package/dist/{shipping-option-type-list-AA3VLD4U.mjs → shipping-option-type-list-DTETSFSA.mjs} +3 -2
  97. package/dist/{shipping-profile-metadata-37X46LSP.mjs → shipping-profile-metadata-PRINFNSY.mjs} +2 -1
  98. package/dist/{store-detail-PGMGDA2T.mjs → store-detail-QKF2TVNW.mjs} +2 -1
  99. package/dist/{store-metadata-DPM7CH4C.mjs → store-metadata-M6GIKI5P.mjs} +2 -1
  100. package/dist/{tax-region-create-GCKJ6LII.mjs → tax-region-create-4DTM3RTZ.mjs} +3 -2
  101. package/dist/{tax-region-detail-HNTTGBII.mjs → tax-region-detail-SLCI3JYL.mjs} +2 -1
  102. package/dist/{tax-region-edit-ECTOKAGZ.mjs → tax-region-edit-CJ63JXFQ.mjs} +2 -1
  103. package/dist/{tax-region-province-detail-7DEEXMWA.mjs → tax-region-province-detail-BGL2USQF.mjs} +2 -1
  104. package/dist/{tax-region-tax-override-create-6EHKZAZ4.mjs → tax-region-tax-override-create-L4WOTSBO.mjs} +5 -4
  105. package/dist/{tax-region-tax-override-edit-AZBQQPYI.mjs → tax-region-tax-override-edit-2JAVNE37.mjs} +5 -4
  106. package/dist/{user-metadata-HPKKLNTP.mjs → user-metadata-DFTGB46F.mjs} +2 -1
  107. package/dist/{workflow-execution-detail-Z6JEL2HO.mjs → workflow-execution-detail-YNT2RKIP.mjs} +2 -1
  108. package/package.json +9 -9
  109. package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +0 -7
  110. package/src/i18n/translations/$schema.json +1 -14
  111. package/src/i18n/translations/en.json +0 -4
  112. package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +2 -0
  113. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +0 -46
  114. 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", "code", "description"],
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"
@@ -63,6 +63,8 @@ export const CreateRefundForm = ({ order }: CreateRefundFormProps) => {
63
63
  value: paymentAmount.toFixed(currency.decimal_digits),
64
64
  float: paymentAmount,
65
65
  },
66
+ note: "",
67
+ refund_reason_id: "",
66
68
  },
67
69
  resolver: zodResolver(CreateRefundSchema),
68
70
  })
@@ -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"