@medusajs/draft-order 3.0.0-snapshot-20251216145629 → 3.0.0-snapshot-20260102134455
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.
|
@@ -9,6 +9,7 @@ const icons = require("@medusajs/icons");
|
|
|
9
9
|
const Medusa = require("@medusajs/js-sdk");
|
|
10
10
|
const dateFns = require("date-fns");
|
|
11
11
|
const locale = require("date-fns/locale");
|
|
12
|
+
const reactI18next = require("react-i18next");
|
|
12
13
|
const zod = require("@hookform/resolvers/zod");
|
|
13
14
|
const reactHookForm = require("react-hook-form");
|
|
14
15
|
const radixUi = require("radix-ui");
|
|
@@ -944,6 +945,7 @@ const handle$1 = {
|
|
|
944
945
|
breadcrumb: () => "Draft Orders"
|
|
945
946
|
};
|
|
946
947
|
const List = () => {
|
|
948
|
+
const { t } = reactI18next.useTranslation();
|
|
947
949
|
const queryParams = useDraftOrderTableQuery({
|
|
948
950
|
pageSize: PAGE_SIZE
|
|
949
951
|
});
|
|
@@ -973,20 +975,20 @@ const List = () => {
|
|
|
973
975
|
isLoading: isPending,
|
|
974
976
|
pageSize: PAGE_SIZE,
|
|
975
977
|
rowCount: count,
|
|
976
|
-
heading: "
|
|
978
|
+
heading: t("draftOrders.domain"),
|
|
977
979
|
action: {
|
|
978
|
-
label: "
|
|
980
|
+
label: t("actions.create"),
|
|
979
981
|
to: "create"
|
|
980
982
|
},
|
|
981
983
|
rowHref: (row) => `${row.id}`,
|
|
982
984
|
emptyState: {
|
|
983
985
|
empty: {
|
|
984
|
-
heading: "
|
|
985
|
-
description: "
|
|
986
|
+
heading: t("draftOrders.list.noRecordsMessage"),
|
|
987
|
+
description: t("draftOrders.list.description")
|
|
986
988
|
},
|
|
987
989
|
filtered: {
|
|
988
|
-
heading: "
|
|
989
|
-
description: "
|
|
990
|
+
heading: t("draftOrders.list.filtered.heading"),
|
|
991
|
+
description: t("draftOrders.list.filtered.description")
|
|
990
992
|
}
|
|
991
993
|
}
|
|
992
994
|
}
|
|
@@ -8,6 +8,7 @@ import { EllipsisHorizontal, XMark, InformationCircleSolid, XMarkMini, Triangles
|
|
|
8
8
|
import Medusa from "@medusajs/js-sdk";
|
|
9
9
|
import { format, formatDistance, sub, subDays, subMonths } from "date-fns";
|
|
10
10
|
import { enUS } from "date-fns/locale";
|
|
11
|
+
import { useTranslation } from "react-i18next";
|
|
11
12
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
12
13
|
import { FormProvider, useFormContext, useFormState, Controller, useForm, useWatch, useFieldArray } from "react-hook-form";
|
|
13
14
|
import { Slot, Collapsible, Accordion } from "radix-ui";
|
|
@@ -937,6 +938,7 @@ const handle$1 = {
|
|
|
937
938
|
breadcrumb: () => "Draft Orders"
|
|
938
939
|
};
|
|
939
940
|
const List = () => {
|
|
941
|
+
const { t } = useTranslation();
|
|
940
942
|
const queryParams = useDraftOrderTableQuery({
|
|
941
943
|
pageSize: PAGE_SIZE
|
|
942
944
|
});
|
|
@@ -966,20 +968,20 @@ const List = () => {
|
|
|
966
968
|
isLoading: isPending,
|
|
967
969
|
pageSize: PAGE_SIZE,
|
|
968
970
|
rowCount: count,
|
|
969
|
-
heading: "
|
|
971
|
+
heading: t("draftOrders.domain"),
|
|
970
972
|
action: {
|
|
971
|
-
label: "
|
|
973
|
+
label: t("actions.create"),
|
|
972
974
|
to: "create"
|
|
973
975
|
},
|
|
974
976
|
rowHref: (row) => `${row.id}`,
|
|
975
977
|
emptyState: {
|
|
976
978
|
empty: {
|
|
977
|
-
heading: "
|
|
978
|
-
description: "
|
|
979
|
+
heading: t("draftOrders.list.noRecordsMessage"),
|
|
980
|
+
description: t("draftOrders.list.description")
|
|
979
981
|
},
|
|
980
982
|
filtered: {
|
|
981
|
-
heading: "
|
|
982
|
-
description: "
|
|
983
|
+
heading: t("draftOrders.list.filtered.heading"),
|
|
984
|
+
description: t("draftOrders.list.filtered.description")
|
|
983
985
|
}
|
|
984
986
|
}
|
|
985
987
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/draft-order",
|
|
3
|
-
"version": "3.0.0-snapshot-
|
|
3
|
+
"version": "3.0.0-snapshot-20260102134455",
|
|
4
4
|
"description": "A draft order plugin for Medusa.",
|
|
5
5
|
"author": "Medusa (https://medusajs.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@ariakit/react": "^0.4.15",
|
|
43
43
|
"@babel/runtime": "^7.26.10",
|
|
44
44
|
"@hookform/resolvers": "3.4.2",
|
|
45
|
-
"@medusajs/js-sdk": "3.0.0-snapshot-
|
|
45
|
+
"@medusajs/js-sdk": "3.0.0-snapshot-20260102134455",
|
|
46
46
|
"@tanstack/react-query": "5.64.2",
|
|
47
47
|
"@uiw/react-json-view": "^2.0.0-alpha.17",
|
|
48
48
|
"date-fns": "^3.6.0",
|
|
@@ -53,22 +53,22 @@
|
|
|
53
53
|
"react-hook-form": "7.49.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@medusajs/admin-sdk": "3.0.0-snapshot-
|
|
57
|
-
"@medusajs/cli": "3.0.0-snapshot-
|
|
58
|
-
"@medusajs/framework": "3.0.0-snapshot-
|
|
59
|
-
"@medusajs/icons": "3.0.0-snapshot-
|
|
60
|
-
"@medusajs/test-utils": "3.0.0-snapshot-
|
|
61
|
-
"@medusajs/types": "3.0.0-snapshot-
|
|
62
|
-
"@medusajs/ui": "4.0.
|
|
63
|
-
"@medusajs/ui-preset": "3.0.0-snapshot-
|
|
56
|
+
"@medusajs/admin-sdk": "3.0.0-snapshot-20260102134455",
|
|
57
|
+
"@medusajs/cli": "3.0.0-snapshot-20260102134455",
|
|
58
|
+
"@medusajs/framework": "3.0.0-snapshot-20260102134455",
|
|
59
|
+
"@medusajs/icons": "3.0.0-snapshot-20260102134455",
|
|
60
|
+
"@medusajs/test-utils": "3.0.0-snapshot-20260102134455",
|
|
61
|
+
"@medusajs/types": "3.0.0-snapshot-20260102134455",
|
|
62
|
+
"@medusajs/ui": "4.0.32-snapshot-20260102134455",
|
|
63
|
+
"@medusajs/ui-preset": "3.0.0-snapshot-20260102134455"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@medusajs/admin-sdk": "3.0.0-snapshot-
|
|
67
|
-
"@medusajs/cli": "3.0.0-snapshot-
|
|
68
|
-
"@medusajs/framework": "3.0.0-snapshot-
|
|
69
|
-
"@medusajs/icons": "3.0.0-snapshot-
|
|
70
|
-
"@medusajs/test-utils": "3.0.0-snapshot-
|
|
71
|
-
"@medusajs/ui": "4.0.
|
|
66
|
+
"@medusajs/admin-sdk": "3.0.0-snapshot-20260102134455",
|
|
67
|
+
"@medusajs/cli": "3.0.0-snapshot-20260102134455",
|
|
68
|
+
"@medusajs/framework": "3.0.0-snapshot-20260102134455",
|
|
69
|
+
"@medusajs/icons": "3.0.0-snapshot-20260102134455",
|
|
70
|
+
"@medusajs/test-utils": "3.0.0-snapshot-20260102134455",
|
|
71
|
+
"@medusajs/ui": "4.0.32-snapshot-20260102134455",
|
|
72
72
|
"react": "^18.3.1",
|
|
73
73
|
"react-dom": "^18.3.1",
|
|
74
74
|
"react-router-dom": "6.20.1"
|