@medusajs/dashboard 2.22.4 → 2.22.5
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/CHANGELOG.md +1668 -0
- package/dist/{add-campaign-promotions-4IS2DZDR.mjs → add-campaign-promotions-MOYHZ7R6.mjs} +2 -2
- package/dist/{add-locales-ZIOTFU4W.mjs → add-locales-4TF5MQEO.mjs} +3 -3
- package/dist/{api-key-management-list-72FGNWLN.mjs → api-key-management-list-DSY44XOD.mjs} +2 -2
- package/dist/app.js +566 -21
- package/dist/app.mjs +1 -1
- package/dist/{campaign-detail-I3VAQGCD.mjs → campaign-detail-CVQKALST.mjs} +2 -2
- package/dist/{campaign-list-QHZTX5N4.mjs → campaign-list-W6USHL4F.mjs} +2 -2
- package/dist/{category-detail-ZWGZV3GK.mjs → category-detail-OX7UOEPP.mjs} +2 -2
- package/dist/{category-list-7OWX64KZ.mjs → category-list-RKXFUVBY.mjs} +2 -2
- package/dist/{category-products-JFOCVVES.mjs → category-products-366JZ75Z.mjs} +2 -2
- package/dist/{chunk-X6NC2PCL.mjs → chunk-ADRLL74C.mjs} +1 -1
- package/dist/{chunk-ZOZT3BKD.mjs → chunk-CO3CSPIC.mjs} +1 -1
- package/dist/{chunk-ODGLX5SI.mjs → chunk-CWUDCK52.mjs} +1 -1
- package/dist/{chunk-LUN2NQQ6.mjs → chunk-CXFGIOFH.mjs} +1 -1
- package/dist/{chunk-6DQ5276V.mjs → chunk-HAUFNAKB.mjs} +3 -3
- package/dist/{chunk-YA6D52TX.mjs → chunk-HCY46OCD.mjs} +1 -1
- package/dist/{chunk-6NO4U2MM.mjs → chunk-TYDUNOYT.mjs} +1 -1
- package/dist/{chunk-DUUYIEXV.mjs → chunk-UAADDZQ3.mjs} +496 -76
- package/dist/{chunk-KGNC2OCS.mjs → chunk-YGO2NC6V.mjs} +1 -1
- package/dist/{chunk-MHSYOFRJ.mjs → chunk-YOMBWDNH.mjs} +1 -1
- package/dist/{collection-add-products-6JXRFJ4G.mjs → collection-add-products-WJVNV4HM.mjs} +2 -2
- package/dist/{collection-detail-Y6BHSCXG.mjs → collection-detail-JR7J2VOJ.mjs} +2 -2
- package/dist/{collection-list-HDIRXKLE.mjs → collection-list-CUPGMCFO.mjs} +2 -2
- package/dist/{customer-detail-LOE3MY3G.mjs → customer-detail-LAFCPQTR.mjs} +2 -2
- package/dist/{customer-export-OOZLASA3.mjs → customer-export-BT67OK6G.mjs} +1 -1
- package/dist/{customer-group-add-customers-J63FTIJD.mjs → customer-group-add-customers-LEKBQ3KO.mjs} +2 -2
- package/dist/{customer-group-detail-HPJDH5RR.mjs → customer-group-detail-ZEAZLKCG.mjs} +2 -2
- package/dist/{customer-list-XDUW2EXI.mjs → customer-list-YJBIU3V6.mjs} +2 -2
- package/dist/{customers-add-customer-group-YIO75DAW.mjs → customers-add-customer-group-L4SQAGEY.mjs} +2 -2
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/{inventory-detail-BYJSRM5D.mjs → inventory-detail-3DZG7JPD.mjs} +2 -2
- package/dist/{inventory-export-K4QKP2SO.mjs → inventory-export-4VVMMFGL.mjs} +1 -1
- package/dist/{inventory-list-MDZY6UUA.mjs → inventory-list-6FEBQQMB.mjs} +2 -2
- package/dist/{location-fulfillment-providers-V4BVPBVH.mjs → location-fulfillment-providers-NHSCQYSB.mjs} +2 -2
- package/dist/{location-service-zone-create-OZNB62US.mjs → location-service-zone-create-CT3ZPGW7.mjs} +3 -3
- package/dist/{location-service-zone-manage-areas-Y5GG6I5W.mjs → location-service-zone-manage-areas-5OZSVN6X.mjs} +3 -3
- package/dist/{order-create-claim-B4UQWQU5.mjs → order-create-claim-WG372Z4M.mjs} +2 -2
- package/dist/{order-create-edit-75Z7SB47.mjs → order-create-edit-Z76JCWSY.mjs} +2 -2
- package/dist/{order-create-exchange-YROMSPRA.mjs → order-create-exchange-YCG4IGFV.mjs} +2 -2
- package/dist/{order-create-return-XDVZDBOY.mjs → order-create-return-DHCISEN6.mjs} +2 -2
- package/dist/{order-export-HFIACWTO.mjs → order-export-R2LCBB2E.mjs} +1 -1
- package/dist/{order-list-AFZF7LDJ.mjs → order-list-QIS5CQ5W.mjs} +2 -2
- package/dist/{price-list-configuration-L4DVL3L2.mjs → price-list-configuration-5FDQXKLJ.mjs} +3 -3
- package/dist/{price-list-create-JLPFUX72.mjs → price-list-create-6UR4WXGD.mjs} +3 -3
- package/dist/{price-list-detail-TRZ5SW55.mjs → price-list-detail-C55YKIHK.mjs} +2 -2
- package/dist/{price-list-list-LRMQZOQY.mjs → price-list-list-AJWKDJHG.mjs} +2 -2
- package/dist/{price-list-prices-add-YUCQE2CY.mjs → price-list-prices-add-Z5WQUPDN.mjs} +2 -2
- package/dist/{product-attributes-HEJKFIWK.mjs → product-attributes-6A7AKIXH.mjs} +1 -1
- package/dist/{product-create-75A5WK7S.mjs → product-create-ZKCFJHP6.mjs} +1 -1
- package/dist/{product-detail-FI6SFWJD.mjs → product-detail-UMAO2TNN.mjs} +2 -2
- package/dist/{product-edit-RFHTL3MQ.mjs → product-edit-OZBFHQ7P.mjs} +1 -1
- package/dist/{product-export-4EPIPWU7.mjs → product-export-B7MVYAGR.mjs} +1 -1
- package/dist/{product-image-variants-edit-VQW6WXD6.mjs → product-image-variants-edit-Q723QKNL.mjs} +2 -2
- package/dist/{product-list-OL64CKID.mjs → product-list-PKRCZCCL.mjs} +2 -2
- package/dist/{product-options-manage-VHGM7NLR.mjs → product-options-manage-KOJWADBS.mjs} +2 -2
- package/dist/{product-organization-KWPYEBPB.mjs → product-organization-P7V5YZIA.mjs} +1 -1
- package/dist/{product-tag-detail-ADECGGCK.mjs → product-tag-detail-CNBXBF76.mjs} +2 -2
- package/dist/{product-tag-list-D67D2MGE.mjs → product-tag-list-EUUS662S.mjs} +2 -2
- package/dist/{product-type-detail-WUMMDJ2C.mjs → product-type-detail-5JJBZM3C.mjs} +2 -2
- package/dist/{product-type-list-6RL6BGIK.mjs → product-type-list-IEQGAYCG.mjs} +2 -2
- package/dist/{product-variant-detail-NEDAYLTV.mjs → product-variant-detail-EXGUAGNY.mjs} +2 -2
- package/dist/{promotion-create-BKSMDKVU.mjs → promotion-create-FFHY43AY.mjs} +66 -2
- package/dist/{promotion-edit-details-IXYJMC5G.mjs → promotion-edit-details-3L6H7A5Z.mjs} +65 -4
- package/dist/{promotion-list-4BSBAUKT.mjs → promotion-list-GZIM77EC.mjs} +2 -2
- package/dist/{region-add-countries-4KKOHLXX.mjs → region-add-countries-7XQT2MTT.mjs} +2 -2
- package/dist/{region-create-LTMEUC37.mjs → region-create-VUPBCDRL.mjs} +2 -2
- package/dist/{region-detail-CSXOQG7A.mjs → region-detail-DFHJAA6C.mjs} +2 -2
- package/dist/{region-list-Y44IXBPZ.mjs → region-list-I2QFN5XB.mjs} +2 -2
- package/dist/{reservation-list-QVKOJRTU.mjs → reservation-list-TIZ73DVJ.mjs} +2 -2
- package/dist/{role-add-users-73A3T7YW.mjs → role-add-users-IOL6DHZ2.mjs} +2 -2
- package/dist/{role-detail-NGSCD3T5.mjs → role-detail-PJHSL7SA.mjs} +2 -2
- package/dist/{sales-channel-add-products-VCIVQXLD.mjs → sales-channel-add-products-BZIK5GGS.mjs} +2 -2
- package/dist/{sales-channel-detail-HCF2NPCI.mjs → sales-channel-detail-YJPXBRCQ.mjs} +2 -2
- package/dist/{shipping-option-type-list-TUJNPQZ5.mjs → shipping-option-type-list-5I4TY2RU.mjs} +2 -2
- package/dist/{shipping-profiles-list-47N2HJJS.mjs → shipping-profiles-list-IL2IXW6E.mjs} +2 -2
- package/dist/{store-add-currencies-RDV436R7.mjs → store-add-currencies-DISZFFBJ.mjs} +2 -2
- package/dist/{store-add-locales-4MSC7SVZ.mjs → store-add-locales-ASP4AZ53.mjs} +3 -3
- package/dist/{store-detail-OKXBO5J5.mjs → store-detail-KM2ICJO4.mjs} +2 -2
- package/dist/{tax-region-detail-WYH6P2PB.mjs → tax-region-detail-EZJXUOTY.mjs} +5 -5
- package/dist/{tax-region-province-detail-JDQVRGUF.mjs → tax-region-province-detail-SYZB7KDW.mjs} +5 -5
- package/dist/{tax-region-tax-override-create-KSIIWIYU.mjs → tax-region-tax-override-create-THVCBH5F.mjs} +3 -3
- package/dist/{tax-region-tax-override-edit-QWM6VJA5.mjs → tax-region-tax-override-edit-FWFMVWG6.mjs} +4 -4
- package/dist/{user-invite-TSVRT52I.mjs → user-invite-GUYNRH6V.mjs} +2 -2
- package/dist/{workflow-execution-list-YAFEJKIJ.mjs → workflow-execution-list-7PQHT65J.mjs} +2 -2
- package/package.json +13 -13
- package/src/components/table/data-table/data-table-filter/date-filter.tsx +1 -1
- package/src/i18n/translations/$schema.json +42 -0
- package/src/i18n/translations/ar.json +12 -0
- package/src/i18n/translations/bg.json +12 -0
- package/src/i18n/translations/bs.json +12 -0
- package/src/i18n/translations/cs.json +12 -0
- package/src/i18n/translations/de.json +12 -0
- package/src/i18n/translations/el.json +12 -0
- package/src/i18n/translations/en.json +12 -0
- package/src/i18n/translations/enGB.json +12 -0
- package/src/i18n/translations/es.json +12 -0
- package/src/i18n/translations/fa.json +12 -0
- package/src/i18n/translations/fi.json +12 -0
- package/src/i18n/translations/fr.json +12 -0
- package/src/i18n/translations/he.json +12 -0
- package/src/i18n/translations/hr.json +12 -0
- package/src/i18n/translations/hu.json +12 -0
- package/src/i18n/translations/id.json +12 -0
- package/src/i18n/translations/it.json +12 -0
- package/src/i18n/translations/ja.json +12 -0
- package/src/i18n/translations/ko.json +12 -0
- package/src/i18n/translations/lt.json +12 -0
- package/src/i18n/translations/mk.json +12 -0
- package/src/i18n/translations/mn.json +12 -0
- package/src/i18n/translations/nl.json +12 -0
- package/src/i18n/translations/pl.json +12 -0
- package/src/i18n/translations/ptBR.json +12 -0
- package/src/i18n/translations/ptPT.json +12 -0
- package/src/i18n/translations/ro.json +12 -0
- package/src/i18n/translations/ru.json +12 -0
- package/src/i18n/translations/sv.json +12 -0
- package/src/i18n/translations/th.json +12 -0
- package/src/i18n/translations/tr.json +12 -0
- package/src/i18n/translations/uk.json +12 -0
- package/src/i18n/translations/vi.json +12 -0
- package/src/i18n/translations/zhCN.json +12 -0
- package/src/i18n/translations/zhTW.json +12 -0
- package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +57 -0
- package/src/routes/promotions/promotion-create/components/create-promotion-form/form-schema.ts +3 -0
- package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/edit-promotion-details-form.tsx +56 -0
|
@@ -135,7 +135,8 @@ var CreatePromotionSchema = z.object({
|
|
|
135
135
|
target_rules: RuleSchema,
|
|
136
136
|
buy_rules: RuleSchema,
|
|
137
137
|
type: z.enum(["fixed", "percentage"]),
|
|
138
|
-
target_type: z.enum(["order", "shipping_methods", "items"])
|
|
138
|
+
target_type: z.enum(["order", "shipping_methods", "items"]),
|
|
139
|
+
target_selection_strategy: z.enum(["most_expensive_first", "cheapest_first"]).optional()
|
|
139
140
|
}),
|
|
140
141
|
campaign: CreateCampaignSchema.optional()
|
|
141
142
|
}).refine(
|
|
@@ -302,6 +303,7 @@ var defaultValues = {
|
|
|
302
303
|
type: "fixed",
|
|
303
304
|
target_type: "items",
|
|
304
305
|
max_quantity: 1,
|
|
306
|
+
target_selection_strategy: "most_expensive_first",
|
|
305
307
|
target_rules: [],
|
|
306
308
|
buy_rules: []
|
|
307
309
|
},
|
|
@@ -337,6 +339,7 @@ var CreatePromotionForm = () => {
|
|
|
337
339
|
const {
|
|
338
340
|
target_rules: targetRulesData = [],
|
|
339
341
|
buy_rules: buyRulesData = [],
|
|
342
|
+
target_selection_strategy,
|
|
340
343
|
...applicationMethodData
|
|
341
344
|
} = application_method;
|
|
342
345
|
const disguisedRules = [
|
|
@@ -368,7 +371,10 @@ var CreatePromotionForm = () => {
|
|
|
368
371
|
...applicationMethodRuleData,
|
|
369
372
|
value: parseFloat(applicationMethodData.value),
|
|
370
373
|
target_rules: buildRulesData(targetRulesData),
|
|
371
|
-
buy_rules: buildRulesData(buyRulesData)
|
|
374
|
+
buy_rules: buildRulesData(buyRulesData),
|
|
375
|
+
...promotionData.type === "buyget" && {
|
|
376
|
+
target_selection_strategy
|
|
377
|
+
}
|
|
372
378
|
},
|
|
373
379
|
is_tax_inclusive,
|
|
374
380
|
is_automatic: is_automatic === "true"
|
|
@@ -1029,6 +1035,64 @@ var CreatePromotionForm = () => {
|
|
|
1029
1035
|
}
|
|
1030
1036
|
)
|
|
1031
1037
|
] }),
|
|
1038
|
+
isTypeBuyGet && /* @__PURE__ */ jsx(
|
|
1039
|
+
Form.Field,
|
|
1040
|
+
{
|
|
1041
|
+
control: form.control,
|
|
1042
|
+
name: "application_method.target_selection_strategy",
|
|
1043
|
+
render: ({ field }) => {
|
|
1044
|
+
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
1045
|
+
/* @__PURE__ */ jsx(
|
|
1046
|
+
Form.Label,
|
|
1047
|
+
{
|
|
1048
|
+
tooltip: t(
|
|
1049
|
+
"promotions.fields.targetSelectionStrategyTooltip"
|
|
1050
|
+
),
|
|
1051
|
+
children: t("promotions.fields.targetSelectionStrategy")
|
|
1052
|
+
}
|
|
1053
|
+
),
|
|
1054
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
|
1055
|
+
RadioGroup,
|
|
1056
|
+
{
|
|
1057
|
+
dir: direction,
|
|
1058
|
+
className: "flex gap-y-3",
|
|
1059
|
+
...field,
|
|
1060
|
+
onValueChange: field.onChange,
|
|
1061
|
+
children: [
|
|
1062
|
+
/* @__PURE__ */ jsx(
|
|
1063
|
+
RadioGroup.ChoiceBox,
|
|
1064
|
+
{
|
|
1065
|
+
value: "most_expensive_first",
|
|
1066
|
+
label: t(
|
|
1067
|
+
"promotions.form.target_selection_strategy.most_expensive_first.title"
|
|
1068
|
+
),
|
|
1069
|
+
description: t(
|
|
1070
|
+
"promotions.form.target_selection_strategy.most_expensive_first.description"
|
|
1071
|
+
),
|
|
1072
|
+
className: clx("basis-1/2")
|
|
1073
|
+
}
|
|
1074
|
+
),
|
|
1075
|
+
/* @__PURE__ */ jsx(
|
|
1076
|
+
RadioGroup.ChoiceBox,
|
|
1077
|
+
{
|
|
1078
|
+
value: "cheapest_first",
|
|
1079
|
+
label: t(
|
|
1080
|
+
"promotions.form.target_selection_strategy.cheapest_first.title"
|
|
1081
|
+
),
|
|
1082
|
+
description: t(
|
|
1083
|
+
"promotions.form.target_selection_strategy.cheapest_first.description"
|
|
1084
|
+
),
|
|
1085
|
+
className: clx("basis-1/2")
|
|
1086
|
+
}
|
|
1087
|
+
)
|
|
1088
|
+
]
|
|
1089
|
+
}
|
|
1090
|
+
) }),
|
|
1091
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
1092
|
+
] });
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
),
|
|
1032
1096
|
isTypeStandard && !currentTemplate?.hiddenFields?.includes(
|
|
1033
1097
|
"application_method.allocation"
|
|
1034
1098
|
) && /* @__PURE__ */ jsx(
|
|
@@ -55,7 +55,8 @@ var EditPromotionSchema = zod.object({
|
|
|
55
55
|
value: zod.number().min(0).or(zod.string().min(1)),
|
|
56
56
|
allocation: zod.enum(["each", "across", "once"]),
|
|
57
57
|
target_type: zod.enum(["order", "shipping_methods", "items"]),
|
|
58
|
-
max_quantity: zod.number().min(1).optional().nullable()
|
|
58
|
+
max_quantity: zod.number().min(1).optional().nullable(),
|
|
59
|
+
target_selection_strategy: zod.enum(["most_expensive_first", "cheapest_first"]).optional()
|
|
59
60
|
});
|
|
60
61
|
var EditPromotionDetailsForm = ({
|
|
61
62
|
promotion
|
|
@@ -72,7 +73,8 @@ var EditPromotionDetailsForm = ({
|
|
|
72
73
|
allocation: promotion.application_method.allocation,
|
|
73
74
|
value_type: promotion.application_method.type,
|
|
74
75
|
target_type: promotion.application_method.target_type,
|
|
75
|
-
max_quantity: promotion.application_method.max_quantity
|
|
76
|
+
max_quantity: promotion.application_method.max_quantity,
|
|
77
|
+
target_selection_strategy: promotion.application_method.target_selection_strategy
|
|
76
78
|
},
|
|
77
79
|
resolver: zodResolver(EditPromotionSchema)
|
|
78
80
|
});
|
|
@@ -103,7 +105,10 @@ var EditPromotionDetailsForm = ({
|
|
|
103
105
|
value: parseFloat(String(data.value)),
|
|
104
106
|
type: data.value_type,
|
|
105
107
|
allocation: data.allocation,
|
|
106
|
-
max_quantity: data.max_quantity
|
|
108
|
+
max_quantity: data.max_quantity,
|
|
109
|
+
...promotion.type === "buyget" && {
|
|
110
|
+
target_selection_strategy: data.target_selection_strategy
|
|
111
|
+
}
|
|
107
112
|
}
|
|
108
113
|
},
|
|
109
114
|
{
|
|
@@ -468,7 +473,63 @@ var EditPromotionDetailsForm = ({
|
|
|
468
473
|
}
|
|
469
474
|
}
|
|
470
475
|
)
|
|
471
|
-
] })
|
|
476
|
+
] }),
|
|
477
|
+
promotion.type === "buyget" && /* @__PURE__ */ jsx(
|
|
478
|
+
Form.Field,
|
|
479
|
+
{
|
|
480
|
+
control: form.control,
|
|
481
|
+
name: "target_selection_strategy",
|
|
482
|
+
render: ({ field }) => {
|
|
483
|
+
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
484
|
+
/* @__PURE__ */ jsx(
|
|
485
|
+
Form.Label,
|
|
486
|
+
{
|
|
487
|
+
tooltip: t(
|
|
488
|
+
"promotions.fields.targetSelectionStrategyTooltip"
|
|
489
|
+
),
|
|
490
|
+
children: t("promotions.fields.targetSelectionStrategy")
|
|
491
|
+
}
|
|
492
|
+
),
|
|
493
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
|
494
|
+
RadioGroup,
|
|
495
|
+
{
|
|
496
|
+
dir: direction,
|
|
497
|
+
className: "flex-col gap-y-3",
|
|
498
|
+
...field,
|
|
499
|
+
onValueChange: field.onChange,
|
|
500
|
+
children: [
|
|
501
|
+
/* @__PURE__ */ jsx(
|
|
502
|
+
RadioGroup.ChoiceBox,
|
|
503
|
+
{
|
|
504
|
+
value: "most_expensive_first",
|
|
505
|
+
label: t(
|
|
506
|
+
"promotions.form.target_selection_strategy.most_expensive_first.title"
|
|
507
|
+
),
|
|
508
|
+
description: t(
|
|
509
|
+
"promotions.form.target_selection_strategy.most_expensive_first.description"
|
|
510
|
+
)
|
|
511
|
+
}
|
|
512
|
+
),
|
|
513
|
+
/* @__PURE__ */ jsx(
|
|
514
|
+
RadioGroup.ChoiceBox,
|
|
515
|
+
{
|
|
516
|
+
value: "cheapest_first",
|
|
517
|
+
label: t(
|
|
518
|
+
"promotions.form.target_selection_strategy.cheapest_first.title"
|
|
519
|
+
),
|
|
520
|
+
description: t(
|
|
521
|
+
"promotions.form.target_selection_strategy.cheapest_first.description"
|
|
522
|
+
)
|
|
523
|
+
}
|
|
524
|
+
)
|
|
525
|
+
]
|
|
526
|
+
}
|
|
527
|
+
) }),
|
|
528
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
529
|
+
] });
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
)
|
|
472
533
|
] }) }),
|
|
473
534
|
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
474
535
|
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
@@ -14,9 +14,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
14
14
|
import {
|
|
15
15
|
_DataTable,
|
|
16
16
|
useDataTable
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
18
18
|
import "./chunk-HQKGZADC.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
20
20
|
import {
|
|
21
21
|
ConfigurableDataTable
|
|
22
22
|
} from "./chunk-HEKHP4X7.mjs";
|
|
@@ -8,9 +8,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
8
8
|
import {
|
|
9
9
|
_DataTable,
|
|
10
10
|
useDataTable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
12
12
|
import "./chunk-HQKGZADC.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
14
14
|
import "./chunk-EMIHDNB7.mjs";
|
|
15
15
|
import {
|
|
16
16
|
countries
|
|
@@ -11,9 +11,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
11
11
|
import {
|
|
12
12
|
_DataTable,
|
|
13
13
|
useDataTable
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
15
15
|
import "./chunk-HQKGZADC.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
17
17
|
import "./chunk-EMIHDNB7.mjs";
|
|
18
18
|
import {
|
|
19
19
|
countries
|
|
@@ -20,9 +20,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
20
20
|
import {
|
|
21
21
|
_DataTable,
|
|
22
22
|
useDataTable
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
24
24
|
import "./chunk-HQKGZADC.mjs";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
26
26
|
import "./chunk-EMIHDNB7.mjs";
|
|
27
27
|
import "./chunk-P5RN6AUG.mjs";
|
|
28
28
|
import "./chunk-CKBLQMX4.mjs";
|
|
@@ -16,9 +16,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
16
16
|
import {
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
20
20
|
import "./chunk-HQKGZADC.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
22
22
|
import {
|
|
23
23
|
ConfigurableDataTable
|
|
24
24
|
} from "./chunk-HEKHP4X7.mjs";
|
|
@@ -3,9 +3,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
_DataTable,
|
|
5
5
|
useDataTable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
7
7
|
import "./chunk-HQKGZADC.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ConfigurableDataTable
|
|
11
11
|
} from "./chunk-HEKHP4X7.mjs";
|
|
@@ -2,9 +2,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
_DataTable,
|
|
4
4
|
useDataTable
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
6
6
|
import "./chunk-HQKGZADC.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
8
8
|
import "./chunk-EMIHDNB7.mjs";
|
|
9
9
|
import "./chunk-IUCDCPJU.mjs";
|
|
10
10
|
import {
|
|
@@ -12,9 +12,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
12
12
|
import {
|
|
13
13
|
_DataTable,
|
|
14
14
|
useDataTable
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
16
16
|
import "./chunk-HQKGZADC.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
18
18
|
import "./chunk-EMIHDNB7.mjs";
|
|
19
19
|
import "./chunk-P5RN6AUG.mjs";
|
|
20
20
|
import "./chunk-CKBLQMX4.mjs";
|
package/dist/{sales-channel-add-products-VCIVQXLD.mjs → sales-channel-add-products-BZIK5GGS.mjs}
RENAMED
|
@@ -5,12 +5,12 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
5
5
|
import {
|
|
6
6
|
_DataTable,
|
|
7
7
|
useDataTable
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
9
9
|
import "./chunk-HQKGZADC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useProductTableFilters
|
|
12
12
|
} from "./chunk-BPBUHRC6.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
14
14
|
import "./chunk-PABIC6D7.mjs";
|
|
15
15
|
import "./chunk-EMIHDNB7.mjs";
|
|
16
16
|
import {
|
|
@@ -5,12 +5,12 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
5
5
|
import {
|
|
6
6
|
_DataTable,
|
|
7
7
|
useDataTable
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
9
9
|
import "./chunk-HQKGZADC.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useProductTableFilters
|
|
12
12
|
} from "./chunk-BPBUHRC6.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
14
14
|
import "./chunk-PABIC6D7.mjs";
|
|
15
15
|
import "./chunk-EMIHDNB7.mjs";
|
|
16
16
|
import {
|
package/dist/{shipping-option-type-list-TUJNPQZ5.mjs → shipping-option-type-list-5I4TY2RU.mjs}
RENAMED
|
@@ -12,9 +12,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
12
12
|
import {
|
|
13
13
|
_DataTable,
|
|
14
14
|
useDataTable
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
16
16
|
import "./chunk-HQKGZADC.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
18
18
|
import {
|
|
19
19
|
ConfigurableDataTable
|
|
20
20
|
} from "./chunk-HEKHP4X7.mjs";
|
|
@@ -3,9 +3,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
_DataTable,
|
|
5
5
|
useDataTable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
7
7
|
import "./chunk-HQKGZADC.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ConfigurableDataTable
|
|
11
11
|
} from "./chunk-HEKHP4X7.mjs";
|
|
@@ -7,9 +7,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
7
7
|
import {
|
|
8
8
|
_DataTable,
|
|
9
9
|
useDataTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
11
11
|
import "./chunk-HQKGZADC.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
13
13
|
import "./chunk-EMIHDNB7.mjs";
|
|
14
14
|
import "./chunk-P3UUX2T6.mjs";
|
|
15
15
|
import "./chunk-IUCDCPJU.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AddLocalesForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CO3CSPIC.mjs";
|
|
4
4
|
import "./chunk-6PNOUH6F.mjs";
|
|
5
5
|
import "./chunk-DRHDNSJA.mjs";
|
|
6
6
|
import "./chunk-LQTHYS2Z.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-TYDUNOYT.mjs";
|
|
8
8
|
import "./chunk-HQKGZADC.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
10
10
|
import "./chunk-EMIHDNB7.mjs";
|
|
11
11
|
import "./chunk-P3UUX2T6.mjs";
|
|
12
12
|
import "./chunk-IUCDCPJU.mjs";
|
|
@@ -14,9 +14,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
14
14
|
import {
|
|
15
15
|
_DataTable,
|
|
16
16
|
useDataTable
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
18
18
|
import "./chunk-HQKGZADC.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
20
20
|
import "./chunk-EMIHDNB7.mjs";
|
|
21
21
|
import "./chunk-P3UUX2T6.mjs";
|
|
22
22
|
import "./chunk-CKBLQMX4.mjs";
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
TaxOverrideTable,
|
|
3
3
|
TaxRateLine,
|
|
4
4
|
useTaxOverrideTable
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HAUFNAKB.mjs";
|
|
6
|
+
import "./chunk-CXFGIOFH.mjs";
|
|
7
|
+
import "./chunk-ADRLL74C.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TaxRegionTable,
|
|
10
10
|
useTaxRegionTable
|
|
@@ -44,10 +44,10 @@ import "./chunk-4DZUJIAL.mjs";
|
|
|
44
44
|
import "./chunk-Z6YL2ABK.mjs";
|
|
45
45
|
import "./chunk-365GERX4.mjs";
|
|
46
46
|
import "./chunk-LQTHYS2Z.mjs";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-TYDUNOYT.mjs";
|
|
48
48
|
import "./chunk-HQKGZADC.mjs";
|
|
49
49
|
import "./chunk-BPBUHRC6.mjs";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
51
51
|
import "./chunk-PABIC6D7.mjs";
|
|
52
52
|
import "./chunk-EMIHDNB7.mjs";
|
|
53
53
|
import {
|
package/dist/{tax-region-province-detail-JDQVRGUF.mjs → tax-region-province-detail-SYZB7KDW.mjs}
RENAMED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
TaxOverrideTable,
|
|
3
3
|
TaxRateLine,
|
|
4
4
|
useTaxOverrideTable
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HAUFNAKB.mjs";
|
|
6
|
+
import "./chunk-CXFGIOFH.mjs";
|
|
7
|
+
import "./chunk-ADRLL74C.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TaxRegionCard
|
|
10
10
|
} from "./chunk-HZDKGSOR.mjs";
|
|
@@ -39,10 +39,10 @@ import "./chunk-4DZUJIAL.mjs";
|
|
|
39
39
|
import "./chunk-Z6YL2ABK.mjs";
|
|
40
40
|
import "./chunk-365GERX4.mjs";
|
|
41
41
|
import "./chunk-LQTHYS2Z.mjs";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-TYDUNOYT.mjs";
|
|
43
43
|
import "./chunk-HQKGZADC.mjs";
|
|
44
44
|
import "./chunk-BPBUHRC6.mjs";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
46
46
|
import "./chunk-PABIC6D7.mjs";
|
|
47
47
|
import "./chunk-EMIHDNB7.mjs";
|
|
48
48
|
import {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
TargetItem,
|
|
4
4
|
TaxRateRuleReferenceSchema,
|
|
5
5
|
createTaxRulePayload
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ADRLL74C.mjs";
|
|
7
7
|
import {
|
|
8
8
|
PercentageInput
|
|
9
9
|
} from "./chunk-GCKZ7Z5U.mjs";
|
|
@@ -31,10 +31,10 @@ import "./chunk-W7625H47.mjs";
|
|
|
31
31
|
import "./chunk-4DZUJIAL.mjs";
|
|
32
32
|
import "./chunk-365GERX4.mjs";
|
|
33
33
|
import "./chunk-LQTHYS2Z.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-TYDUNOYT.mjs";
|
|
35
35
|
import "./chunk-HQKGZADC.mjs";
|
|
36
36
|
import "./chunk-BPBUHRC6.mjs";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
38
38
|
import "./chunk-PABIC6D7.mjs";
|
|
39
39
|
import "./chunk-EMIHDNB7.mjs";
|
|
40
40
|
import "./chunk-PRJK2BND.mjs";
|
package/dist/{tax-region-tax-override-edit-QWM6VJA5.mjs → tax-region-tax-override-edit-FWFMVWG6.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DISPLAY_OVERRIDE_ITEMS_LIMIT,
|
|
3
3
|
TaxRegionTaxOverrideEditForm
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-CXFGIOFH.mjs";
|
|
5
|
+
import "./chunk-ADRLL74C.mjs";
|
|
6
6
|
import "./chunk-GCKZ7Z5U.mjs";
|
|
7
7
|
import "./chunk-UC26CCHZ.mjs";
|
|
8
8
|
import "./chunk-UQQD6PHX.mjs";
|
|
@@ -28,10 +28,10 @@ import "./chunk-W7625H47.mjs";
|
|
|
28
28
|
import "./chunk-4DZUJIAL.mjs";
|
|
29
29
|
import "./chunk-365GERX4.mjs";
|
|
30
30
|
import "./chunk-LQTHYS2Z.mjs";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-TYDUNOYT.mjs";
|
|
32
32
|
import "./chunk-HQKGZADC.mjs";
|
|
33
33
|
import "./chunk-BPBUHRC6.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
35
35
|
import "./chunk-PABIC6D7.mjs";
|
|
36
36
|
import "./chunk-EMIHDNB7.mjs";
|
|
37
37
|
import "./chunk-PRJK2BND.mjs";
|
|
@@ -5,9 +5,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
5
5
|
import {
|
|
6
6
|
_DataTable,
|
|
7
7
|
useDataTable
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
9
9
|
import "./chunk-HQKGZADC.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
11
11
|
import "./chunk-EMIHDNB7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
useUserInviteTableQuery
|
|
@@ -10,9 +10,9 @@ import "./chunk-LQTHYS2Z.mjs";
|
|
|
10
10
|
import {
|
|
11
11
|
_DataTable,
|
|
12
12
|
useDataTable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TYDUNOYT.mjs";
|
|
14
14
|
import "./chunk-HQKGZADC.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-YGO2NC6V.mjs";
|
|
16
16
|
import "./chunk-EMIHDNB7.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DateCell,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/dashboard",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "yarn run -T tsc --noEmit -p tsconfig.typecheck.json",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"i18n:validate": "node ./scripts/i18n/validate-translation.js",
|
|
15
15
|
"i18n:schema": "node ./scripts/i18n/generate-schema.js",
|
|
16
16
|
"i18n:sync": "node ./scripts/i18n/sync-translations.js",
|
|
17
|
-
"lint": "
|
|
17
|
+
"lint": "eslint . --ext ts,tsx --ignore-pattern dist --report-unused-disable-directives --max-warnings 0"
|
|
18
18
|
},
|
|
19
19
|
"main": "dist/app.js",
|
|
20
20
|
"module": "dist/app.mjs",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"@dnd-kit/utilities": "^3.2.2",
|
|
73
73
|
"@hookform/error-message": "^2.0.1",
|
|
74
74
|
"@hookform/resolvers": "6.0.0",
|
|
75
|
-
"@medusajs/admin-shared": "2.22.
|
|
76
|
-
"@medusajs/icons": "2.22.
|
|
77
|
-
"@medusajs/js-sdk": "2.22.
|
|
78
|
-
"@medusajs/ui": "4.2.
|
|
75
|
+
"@medusajs/admin-shared": "2.22.5",
|
|
76
|
+
"@medusajs/icons": "2.22.5",
|
|
77
|
+
"@medusajs/js-sdk": "2.22.5",
|
|
78
|
+
"@medusajs/ui": "4.2.12",
|
|
79
79
|
"@radix-ui/react-dialog": "1.1.4",
|
|
80
80
|
"@radix-ui/react-dismissable-layer": "1.1.4",
|
|
81
81
|
"@tanstack/react-query": "5.64.2",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"cmdk": "^1.1.1",
|
|
87
87
|
"copy-to-clipboard": "^4.0.2",
|
|
88
88
|
"date-fns": "^4.4.0",
|
|
89
|
+
"dequal": "^2.0.3",
|
|
89
90
|
"i18next": "23.7.11",
|
|
90
91
|
"i18next-browser-languagedetector": "7.2.0",
|
|
91
92
|
"lodash.debounce": "^4.0.8",
|
|
92
|
-
"lodash.isequal": "^4.5.0",
|
|
93
93
|
"match-sorter": "^8.3.0",
|
|
94
94
|
"motion": "^14.6.0",
|
|
95
95
|
"qrcode": "^1.5.4",
|
|
@@ -107,16 +107,16 @@
|
|
|
107
107
|
"zod": "4.6.6"
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
|
-
"@medusajs/admin-shared": "2.22.
|
|
111
|
-
"@medusajs/admin-vite-plugin": "2.22.
|
|
112
|
-
"@medusajs/types": "2.22.
|
|
113
|
-
"@medusajs/ui-preset": "2.22.
|
|
110
|
+
"@medusajs/admin-shared": "2.22.5",
|
|
111
|
+
"@medusajs/admin-vite-plugin": "2.22.5",
|
|
112
|
+
"@medusajs/types": "2.22.5",
|
|
113
|
+
"@medusajs/ui-preset": "2.22.5",
|
|
114
114
|
"@types/qrcode": "^1.5.5",
|
|
115
|
-
"eslint": "^
|
|
115
|
+
"eslint": "^10.13.0",
|
|
116
116
|
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
117
117
|
},
|
|
118
118
|
"packageManager": "yarn@4.18.1",
|
|
119
119
|
"engines": {
|
|
120
120
|
"node": ">=22.22.0"
|
|
121
121
|
}
|
|
122
|
-
}
|
|
122
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EllipseMiniSolid } from "@medusajs/icons"
|
|
2
2
|
import { DatePicker, Text, clx } from "@medusajs/ui"
|
|
3
|
-
import isEqual from "
|
|
3
|
+
import { dequal as isEqual } from "dequal"
|
|
4
4
|
import { Popover as RadixPopover } from "radix-ui"
|
|
5
5
|
import { useMemo, useState } from "react"
|
|
6
6
|
|