Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat: redirect to detail view of custom fields table after custom field create/insert

Brad Barbin8482f02b1cde
diff --git a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail.tsx b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail.tsx
index 13f290a831..4f28100c55 100644
--- a/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail.tsx
+++ b/apps/carbon/app/modules/resources/ui/Attributes/AttributeCategoryDetail.tsx
@@ -16,13 +16,14 @@ import {
} from "@carbon/react";
import { Link, useFetcher } from "@remix-run/react";
import { Reorder } from "framer-motion";
-import { useMemo, useState } from "react";
+import { useEffect, useMemo, useState } from "react";
import { AiOutlineNumber } from "react-icons/ai";
import { BiText } from "react-icons/bi";
import { BsCalendarDate, BsFillPenFill, BsToggleOn } from "react-icons/bs";
import { CgProfile } from "react-icons/cg";
import { IoMdTrash } from "react-icons/io";
import { MdOutlineDragIndicator } from "react-icons/md";
+import { New } from "~/components";
import { ConfirmDelete } from "~/components/Modals";
import { useUrlParams } from "~/hooks";
import type {
@@ -69,6 +70,16 @@ const AttributeCategoryDetail = ({
: []
);
+ useEffect(() => {
+ setSortOrder(
+ Array.isArray(attributeCategory.userAttribute)
+ ? attributeCategory.userAttribute
+ .sort((a, b) => a.sortOrder - b.sortOrder)
+ .map((attribute) => attribute.id)
+ : []
+ );
+ }, [attributeCategory.userAttribute]);
+
const onReorder = (newOrder: string[]) => {
let updates: Record<string, number> = {};
newOrder.forEach((id, index) => {
@@ -183,9 +194,7 @@ const AttributeCategoryDetail = ({
)}
</DrawerBody>
<DrawerFooter>
- <Button asChild size="md">
- <Link to={`new?${params.toString()}`}>New Attribute</Link>
- </Button>
+ <New to={`new?${params.toString()}`} label="Attribute" />
</DrawerFooter>
</DrawerContent>
</Drawer>
diff --git a/apps/carbon/app/modules/settings/settings.service.ts b/apps/carbon/app/modules/settings/settings.service.ts
index a094eee4b6..bad9c5d306 100644
--- a/apps/carbon/app/modules/settings/settings.service.ts
+++ b/apps/carbon/app/modules/settings/settings.service.ts
@@ -182,30 +182,6 @@ export async function insertCompany(
return client.from("company").insert(company);
}
-export async function insertCustomField(
- client: SupabaseClient<Database>,
- customField: Omit<z.infer<typeof customFieldValidator>, "id"> & {
- createdBy: string;
- }
-) {
- // TODO: the new version of supabase client has a max function
- const sortOrders = await client
- .from("customField")
- .select("sortOrder")
- .eq("customFieldTableId", customField.customFieldTableId);
-
- if (sortOrders.error) return sortOrders;
- const maxSortOrder = sortOrders.data.reduce((max, item) => {
- return Math.max(max, item.sortOrder);
- }, 0);
-
- return client
- .from("customField")
- .upsert([{ ...customField, sortOrder: maxSortOrder + 1 }])
- .select("id")
- .single();
-}
-
export async function rollbackNextSequence(
client: SupabaseClient<Database>,
table: string,
@@ -235,14 +211,32 @@ export async function updateCompany(
return client.from("company").update(sanitize(company)).eq("id", true);
}
-export async function updateCustomField(
+export async function upsertCustomField(
client: SupabaseClient<Database>,
- customField: Omit<z.infer<typeof customFieldValidator>, "id"> & {
- id: string;
- updatedBy: string;
- }
+ customField:
+ | (Omit<z.infer<typeof customFieldValidator>, "id"> & {
+ createdBy: string;
+ })
+ | (Omit<z.infer<typeof customFieldValidator>, "id"> & {
+ id: string;
+ updatedBy: string;
+ })
) {
- if (!customField.id) throw new Error("id is required");
+ if ("createdBy" in customField) {
+ const sortOrders = await client
+ .from("customField")
+ .select("sortOrder")
+ .eq("customFieldTableId", customField.customFieldTableId);
+
+ if (sortOrders.error) return sortOrders;
+ const maxSortOrder = sortOrders.data.reduce((max, item) => {
+ return Math.max(max, item.sortOrder);
+ }, 0);
+
+ return client
+ .from("customField")
+ .insert([{ ...customField, sortOrder: maxSortOrder + 1 }]);
+ }
return client
.from("customField")
.update(
diff --git a/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldForm.tsx b/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldForm.tsx
index fe1609645e..681d0c3a23 100644
--- a/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldForm.tsx
+++ b/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldForm.tsx
@@ -62,8 +62,6 @@ const CustomFieldForm = ({
);
};
- console.log({ initialValues });
-
return (
<Drawer
open
diff --git a/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldsTableDetail.tsx b/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldsTableDetail.tsx
index 2b82281591..cb10f200de 100644
--- a/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldsTableDetail.tsx
+++ b/apps/carbon/app/modules/settings/ui/CustomFields/CustomFieldsTableDetail.tsx
@@ -16,7 +16,7 @@ import {
} from "@carbon/react";
import { Link, useFetcher } from "@remix-run/react";
import { Reorder } from "framer-motion";
-import { useCallback, useMemo, useState } from "react";
+import { useCallback, useEffect, useMemo, useState } from "react";
import { AiOutlineNumber } from "react-icons/ai";
import { BiText } from "react-icons/bi";
import { BsCalendarDate, BsFillPenFill, BsToggleOn } from "react-icons/bs";
@@ -85,6 +85,19 @@ const CustomFieldCategoryDetail = ({
: []
);
+ useEffect(() => {
+ setSortOrder(
+ Array.isArray(customFieldTable.fields)
+ ? customFieldTable.fields
+ .sort(
+ (a, b) =>
+ (a as CustomField).sortOrder - (b as CustomField).sortOrder
+ )
+ .map((field) => (field as CustomField).id)
+ : []
+ );
+ }, [customFieldTable.fields, getAttributeDataType]);
+
const onReorder = (newOrder: string[]) => {
let updates: Record<string, number> = {};
newOrder.forEach((id, index) => {
diff --git a/apps/carbon/app/routes/x+/resources+/attribute.$attributeId.tsx b/apps/carbon/app/routes/x+/resources+/attribute.$attributeId.tsx
index da4dc4471b..8dc7231dc2 100644
--- a/apps/carbon/app/routes/x+/resources+/attribute.$attributeId.tsx
+++ b/apps/carbon/app/routes/x+/resources+/attribute.$attributeId.tsx
@@ -33,7 +33,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
);
return redirect(
- path.to.attributes,
+ path.to.attributeCategoryList(validation.data.userAttributeCategoryId),
await flash(request, success("Successfully updated attribtue"))
);
}
diff --git a/apps/carbon/app/routes/x+/resources+/attribute.new.tsx b/apps/carbon/app/routes/x+/resources+/attribute.new.tsx
index 6ffe37c462..ab6962eaae 100644
--- a/apps/carbon/app/routes/x+/resources+/attribute.new.tsx
+++ b/apps/carbon/app/routes/x+/resources+/attribute.new.tsx
@@ -48,5 +48,5 @@ export async function action({ request }: ActionFunctionArgs) {
);
}
- return redirect(path.to.attributes);
+ return redirect(path.to.attributeCategoryList(userAttributeCategoryId));
}
diff --git a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.$id.tsx b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.$id.tsx
index e463beadba..a4dd355202 100644
--- a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.$id.tsx
+++ b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.$id.tsx
@@ -11,7 +11,7 @@ import {
CustomFieldForm,
customFieldValidator,
getCustomField,
- updateCustomField,
+ upsertCustomField,
} from "~/modules/settings";
import { DataType } from "~/modules/shared";
import { path } from "~/utils/path";
@@ -67,7 +67,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
const { id, ...data } = validation.data;
if (!id) throw new Error("id is not found");
- const update = await updateCustomField(client, {
+ const update = await upsertCustomField(client, {
id,
...data,
updatedBy: userId,
@@ -79,7 +79,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
);
}
- return redirect(path.to.customFields);
+ return redirect(path.to.customFieldList(tableId));
}
export default function UpdateCustomFieldRoute() {
diff --git a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.new.tsx b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.new.tsx
index e56e24d32c..c36eb5c38b 100644
--- a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.new.tsx
+++ b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.new.tsx
@@ -4,7 +4,7 @@ import type { AttributeDataType } from "~/modules/resources";
import {
CustomFieldForm,
customFieldValidator,
- insertCustomField,
+ upsertCustomField,
} from "~/modules/settings";
import { DataType } from "~/modules/shared";
import { path } from "~/utils/path";
@@ -35,21 +35,18 @@ export async function action({ request, params }: ActionFunctionArgs) {
const { id, ...data } = validation.data;
- const createCustomField = await insertCustomField(client, {
+ const update = await upsertCustomField(client, {
...data,
createdBy: userId,
});
- if (createCustomField.error) {
+ if (update.error) {
return json(
{},
- await flash(
- request,
- error(createCustomField.error, "Failed to create custom field")
- )
+ await flash(request, error(update.error, "Failed to insert custom field"))
);
}
- return redirect(path.to.customFields);
+ return redirect(path.to.customFieldList(tableId));
}
export default function NewCustomFieldRoute() {
diff --git a/apps/carbon/package.json b/apps/carbon/package.json
index 67ffaec57b..49ffad7dc0 100644
--- a/apps/carbon/package.json
+++ b/apps/carbon/package.json
@@ -11,11 +11,11 @@
"@internationalized/date": "^3.3.0",
"@nanostores/react": "^0.7.1",
"@react-email/components": "0.0.14",
- "@remix-run/dev": "~2.5.1",
- "@remix-run/eslint-config": "~2.5.1",
- "@remix-run/node": "~2.5.1",
- "@remix-run/react": "~2.5.1",
- "@remix-run/serve": "~2.5.1",
+ "@remix-run/dev": "~2.8.1",
+ "@remix-run/eslint-config": "~2.8.1",
+ "@remix-run/node": "~2.8.1",
+ "@remix-run/react": "~2.8.1",
+ "@remix-run/serve": "~2.8.1",
"@supabase/functions-js": "2.1.5",
"@supabase/supabase-js": "^2.39.3",
"@tailwindcss/container-queries": "^0.1.1",
@@ -28,7 +28,7 @@
"@trigger.dev/remix": "^2.3.16",
"@trigger.dev/sdk": "^2.3.16",
"@vercel/analytics": "^1.0.2",
- "@vercel/remix": "2.5.1",
+ "@vercel/remix": "2.8.1",
"@visx/axis": "3.3.0",
"@visx/curve": "3.3.0",
"@visx/drag": "3.3.0",
diff --git a/package-lock.json b/package-lock.json
index 36feb4fc72..3ea6aa6517 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -43,11 +43,11 @@
"@internationalized/date": "^3.3.0",
"@nanostores/react": "^0.7.1",
"@react-email/components": "0.0.14",
- "@remix-run/dev": "~2.5.1",
- "@remix-run/eslint-config": "~2.5.1",
- "@remix-run/node": "~2.5.1",
- "@remix-run/react": "~2.5.1",
- "@remix-run/serve": "~2.5.1",
+ "@remix-run/dev": "~2.8.1",
+ "@remix-run/eslint-config": "~2.8.1",
+ "@remix-run/node": "~2.8.1",
+ "@remix-run/react": "~2.8.1",
+ "@remix-run/serve": "~2.8.1",
"@supabase/functions-js": "2.1.5",
"@supabase/supabase-js": "^2.39.3",
"@tailwindcss/container-queries": "^0.1.1",
@@ -118,6 +118,32 @@
"node": ">=18"
}
},
+ "apps/carbon/node_modules/@remix-run/node": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.8.1.tgz",
+ "integrity": "sha512-ddCwBVlfLvRxTQJHPcaM1lhfMjsFYG3EGmYpWJIWnnzDX5EbX9pUNHBWisMuH1eA0c7pbw0PbW0UtCttKYx2qg==",
+ "dependencies": {
+ "@remix-run/server-runtime": "2.8.1",
+ "@remix-run/web-fetch": "^4.4.2",
+ "@remix-run/web-file": "^3.1.0",
+ "@remix-run/web-stream": "^1.1.0",
+ "@web3-storage/multipart-parser": "^1.0.0",
+ "cookie-signature": "^1.1.0",
+ "source-map-support": "^0.5.21",
+ "stream-slice": "^0.1.2"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.1.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@aashutoshrathi/word-wrap": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
@@ -6100,9 +6126,9 @@
"integrity": "sha512-dyHY+sMF0ihPus3O27ODd4+agdHMEmuRdyiZJ2CCWjPV5UFmn17ZbElvk6WOGVE4rdCJKZQCrPV2BcikOMLUGQ=="
},
"node_modules/@remix-run/dev": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.5.1.tgz",
- "integrity": "sha512-IrYhWANubH+WM62Wz55n8NWT5kBqfbyytXDFlP0VoZLrr1IpJf2GtaT4IA+CODMaNoeXeMACOD5Tw5/Y2bO5lA==",
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.8.1.tgz",
+ "integrity": "sha512-qFt4jAsAJeIOyg6ngeSnTG/9Z5N9QJfeThP/8wRHc1crqYgTiEtcI3DZ8WlAXjVSF5emgn/ZZKqzLAI02OgMfQ==",
"dependencies": {
"@babel/core": "^7.21.8",
"@babel/generator": "^7.21.5",
@@ -6114,9 +6140,9 @@
"@babel/types": "^7.22.5",
"@mdx-js/mdx": "^2.3.0",
"@npmcli/package-json": "^4.0.1",
- "@remix-run/node": "2.5.1",
- "@remix-run/router": "1.14.2",
- "@remix-run/server-runtime": "2.5.1",
+ "@remix-run/node": "2.8.1",
+ "@remix-run/router": "1.15.3-pre.0",
+ "@remix-run/server-runtime": "2.8.1",
"@types/mdx": "^2.0.5",
"@vanilla-extract/integration": "^6.2.0",
"arg": "^5.0.1",
@@ -6165,9 +6191,10 @@
"node": ">=18.0.0"
},
"peerDependencies": {
- "@remix-run/serve": "^2.5.1",
+ "@remix-run/serve": "^2.8.1",
"typescript": "^5.1.0",
- "vite": "^5.0.0"
+ "vite": "^5.1.0",
+ "wrangler": "^3.28.2"
},
"peerDependenciesMeta": {
"@remix-run/serve": {
@@ -6178,6 +6205,9 @@
},
"vite": {
"optional": true
+ },
+ "wrangler": {
+ "optional": true
}
}
},
@@ -6511,17 +6541,19 @@
"node": ">=12"
}
},
- "node_modules/@remix-run/dev/node_modules/@remix-run/server-runtime": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.5.1.tgz",
- "integrity": "sha512-bP31jrVbYTJ2eP5sxZfDgT1YyXzDlzsfMxGYVzpaoLCYDJAekq1QpHLLXKGOXhmyb46O9rdhlQKfwD6WpAxr3A==",
+ "node_modules/@remix-run/dev/node_modules/@remix-run/node": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.8.1.tgz",
+ "integrity": "sha512-ddCwBVlfLvRxTQJHPcaM1lhfMjsFYG3EGmYpWJIWnnzDX5EbX9pUNHBWisMuH1eA0c7pbw0PbW0UtCttKYx2qg==",
"dependencies": {
- "@remix-run/router": "1.14.2",
- "@types/cookie": "^0.6.0",
+ "@remix-run/server-runtime": "2.8.1",
+ "@remix-run/web-fetch": "^4.4.2",
+ "@remix-run/web-file": "^3.1.0",
+ "@remix-run/web-stream": "^1.1.0",
"@web3-storage/multipart-parser": "^1.0.0",
- "cookie": "^0.6.0",
- "set-cookie-parser": "^2.4.8",
- "source-map": "^0.7.3"
+ "cookie-signature": "^1.1.0",
+ "source-map-support": "^0.5.21",
+ "stream-slice": "^0.1.2"
},
"engines": {
"node": ">=18.0.0"
@@ -6535,6 +6567,14 @@
}
}
},
+ "node_modules/@remix-run/dev/node_modules/@remix-run/router": {
+ "version": "1.15.3-pre.0",
+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.3-pre.0.tgz",
+ "integrity": "sha512-JUQb6sztqJpRbsdKpx3D4+6eaGmHU4Yb/QeKrES/ZbLuijlZMOmZ+gV0ohX5vrRDnJHJmcQPq3Tpk0GGPNM9gg==",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
"node_modules/@remix-run/dev/node_modules/brace-expansion": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
@@ -6703,14 +6743,6 @@
"node": ">=10"
}
},
- "node_modules/@remix-run/dev/node_modules/source-map": {
- "version": "0.7.4",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",
- "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",
- "engines": {
- "node": ">= 8"
- }
- },
"node_modules/@remix-run/dev/node_modules/strip-final-newline": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
@@ -6720,9 +6752,9 @@
}
},
"node_modules/@remix-run/eslint-config": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/eslint-config/-/eslint-config-2.5.1.tgz",
- "integrity": "sha512-PpLj0QSd2NZ12KdTA2QYPd/FK3Szu9Np7kTmx26VxDZJTzQYSgGb5i2O9uby+j2sD68zR/+EAYaIcOlq66ekJw==",
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/eslint-config/-/eslint-config-2.8.1.tgz",
+ "integrity": "sha512-lH5/H8oznYk0pVhrNTBt7+++U+guEKOYFwK1aO3zoeyrBtSc7OdX1KWWFlJw0IdGVMSKDqnW3U0n1VbIa4sX/g==",
"dependencies": {
"@babel/core": "^7.21.8",
"@babel/eslint-parser": "^7.21.8",
@@ -6756,11 +6788,11 @@
}
},
"node_modules/@remix-run/express": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.5.1.tgz",
- "integrity": "sha512-ISaf2hzHxDTS1hNsOovRoSfIQC29m4ogzXvBC6xp2BuJj0K8R0yQ4RFD4+qUFEUnS2n6MyWyjFQRhOC6PhQhRw==",
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.8.1.tgz",
+ "integrity": "sha512-p1eo8uwZk8uLihSDpUnPOPsTDfghWikVPQfa+e0ZMk6tnJCjcpHAyENKDFtn9vDh9h7YNUg6A7+19CStHgxd7Q==",
"dependencies": {
- "@remix-run/node": "2.5.1"
+ "@remix-run/node": "2.8.1"
},
"engines": {
"node": ">=18.0.0"
@@ -6775,6 +6807,32 @@
}
}
},
+ "node_modules/@remix-run/express/node_modules/@remix-run/node": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.8.1.tgz",
+ "integrity": "sha512-ddCwBVlfLvRxTQJHPcaM1lhfMjsFYG3EGmYpWJIWnnzDX5EbX9pUNHBWisMuH1eA0c7pbw0PbW0UtCttKYx2qg==",
+ "dependencies": {
+ "@remix-run/server-runtime": "2.8.1",
+ "@remix-run/web-fetch": "^4.4.2",
+ "@remix-run/web-file": "^3.1.0",
+ "@remix-run/web-stream": "^1.1.0",
+ "@web3-storage/multipart-parser": "^1.0.0",
+ "cookie-signature": "^1.1.0",
+ "source-map-support": "^0.5.21",
+ "stream-slice": "^0.1.2"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.1.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@remix-run/node": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.5.1.tgz",
@@ -6834,14 +6892,14 @@
}
},
"node_modules/@remix-run/react": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.5.1.tgz",
- "integrity": "sha512-MNXHLj4Iu9Iyi+3uY61JZJ1Rtx2nM/z11j9AtwQdEADkh1/t9GruhtT/8VLplToOl0qWZKItboWScKf6uRQsrw==",
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.8.1.tgz",
+ "integrity": "sha512-HTPm1U8+xz2jPaVjZnssrckfmFMA8sUZUdaWnoF5lmLWdReqcQv+XlBhIrQQ3jO9L8iYYdnzaSZZcRFYSdpTYg==",
"dependencies": {
- "@remix-run/router": "1.14.2",
- "@remix-run/server-runtime": "2.5.1",
- "react-router": "6.21.3",
- "react-router-dom": "6.21.3"
+ "@remix-run/router": "1.15.3",
+ "@remix-run/server-runtime": "2.8.1",
+ "react-router": "6.22.3",
+ "react-router-dom": "6.22.3"
},
"engines": {
"node": ">=18.0.0"
@@ -6857,36 +6915,12 @@
}
}
},
- "node_modules/@remix-run/react/node_modules/@remix-run/server-runtime": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.5.1.tgz",
- "integrity": "sha512-bP31jrVbYTJ2eP5sxZfDgT1YyXzDlzsfMxGYVzpaoLCYDJAekq1QpHLLXKGOXhmyb46O9rdhlQKfwD6WpAxr3A==",
- "dependencies": {
- "@remix-run/router": "1.14.2",
- "@types/cookie": "^0.6.0",
- "@web3-storage/multipart-parser": "^1.0.0",
- "cookie": "^0.6.0",
- "set-cookie-parser": "^2.4.8",
- "source-map": "^0.7.3"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "peerDependencies": {
- "typescript": "^5.1.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "node_modules/@remix-run/react/node_modules/source-map": {
- "version": "0.7.4",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",
- "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",
+ "node_modules/@remix-run/react/node_modules/@remix-run/router": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.3.tgz",
+ "integrity": "sha512-Oy8rmScVrVxWZVOpEF57ovlnhpZ8CCPlnIIumVcV9nFdiSIrus99+Lw78ekXyGvVDlIsFJbSfmSovJUhCWYV3w==",
"engines": {
- "node": ">= 8"
+ "node": ">=14.0.0"
}
},
"node_modules/@remix-run/router": {
@@ -6898,12 +6932,12 @@
}
},
"node_modules/@remix-run/serve": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.5.1.tgz",
- "integrity": "sha512-r1IWfirwkLrxADd8uFUIpLR1wMU8VeRI4ED4SpbhrKwqODLrYtv5irzjei+r/w0y0Oob8DMHnYxg03UY4T7ejg==",
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.8.1.tgz",
+ "integrity": "sha512-PyCV7IMnRshwfFw7JJ2hZJppX88VAhZyYjeTAmYb6PK7IDtdmqUf5eOrYDi8gCu914C+aZRu6blxpLRlpyCY8Q==",
"dependencies": {
- "@remix-run/express": "2.5.1",
- "@remix-run/node": "2.5.1",
+ "@remix-run/express": "2.8.1",
+ "@remix-run/node": "2.8.1",
"chokidar": "^3.5.3",
"compression": "^1.7.4",
"express": "^4.17.1",
@@ -6918,11 +6952,36 @@
"node": ">=18.0.0"
}
},
+ "node_modules/@remix-run/serve/node_modules/@remix-run/node": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.8.1.tgz",
+ "integrity": "sha512-ddCwBVlfLvRxTQJHPcaM1lhfMjsFYG3EGmYpWJIWnnzDX5EbX9pUNHBWisMuH1eA0c7pbw0PbW0UtCttKYx2qg==",
+ "dependencies": {
+ "@remix-run/server-runtime": "2.8.1",
+ "@remix-run/web-fetch": "^4.4.2",
+ "@remix-run/web-file": "^3.1.0",
+ "@remix-run/web-stream": "^1.1.0",
+ "@web3-storage/multipart-parser": "^1.0.0",
+ "cookie-signature": "^1.1.0",
+ "source-map-support": "^0.5.21",
+ "stream-slice": "^0.1.2"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "typescript": "^5.1.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@remix-run/server-runtime": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.8.1.tgz",
"integrity": "sha512-fh4SOEoONrN73Kvzc0gMDCmYpVRVbvoj9j3BUXHAcn0An8iX+HD/22gU7nTkIBzExM/F9xgEcwTewOnWqLw0Bg==",
- "peer": true,
"dependencies": {
"@remix-run/router": "1.15.3",
"@types/cookie": "^0.6.0",
@@ -6947,7 +7006,6 @@
"version": "1.15.3",
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.3.tgz",
"integrity": "sha512-Oy8rmScVrVxWZVOpEF57ovlnhpZ8CCPlnIIumVcV9nFdiSIrus99+Lw78ekXyGvVDlIsFJbSfmSovJUhCWYV3w==",
- "peer": true,
"engines": {
"node": ">=14.0.0"
}
@@ -6956,7 +7014,6 @@
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",
"integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",
- "peer": true,
"engines": {
"node": ">= 8"
}
@@ -25603,11 +25660,11 @@
}
},
"node_modules/react-router": {
- "version": "6.21.3",
- "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.21.3.tgz",
- "integrity": "sha512-a0H638ZXULv1OdkmiK6s6itNhoy33ywxmUFT/xtSoVyf9VnC7n7+VT4LjVzdIHSaF5TIh9ylUgxMXksHTgGrKg==",
+ "version": "6.22.3",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.22.3.tgz",
+ "integrity": "sha512-dr2eb3Mj5zK2YISHK++foM9w4eBnO23eKnZEDs7c880P6oKbrjz/Svg9+nxqtHQK+oMW4OtjZca0RqPglXxguQ==",
"dependencies": {
- "@remix-run/router": "1.14.2"
+ "@remix-run/router": "1.15.3"
},
"engines": {
"node": ">=14.0.0"
@@ -25617,12 +25674,12 @@
}
},
"node_modules/react-router-dom": {
- "version": "6.21.3",
- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.21.3.tgz",
- "integrity": "sha512-kNzubk7n4YHSrErzjLK72j0B5i969GsuCGazRl3G6j1zqZBLjuSlYBdVdkDOgzGdPIffUOc9nmgiadTEVoq91g==",
+ "version": "6.22.3",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.22.3.tgz",
+ "integrity": "sha512-7ZILI7HjcE+p31oQvwbokjk6OA/bnFxrhJ19n82Ex9Ph8fNAq+Hm/7KchpMGlTgWhUxRHMMCut+vEtNpWpowKw==",
"dependencies": {
- "@remix-run/router": "1.14.2",
- "react-router": "6.21.3"
+ "@remix-run/router": "1.15.3",
+ "react-router": "6.22.3"
},
"engines": {
"node": ">=14.0.0"
@@ -25632,6 +25689,22 @@
"react-dom": ">=16.8"
}
},
+ "node_modules/react-router-dom/node_modules/@remix-run/router": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.3.tgz",
+ "integrity": "sha512-Oy8rmScVrVxWZVOpEF57ovlnhpZ8CCPlnIIumVcV9nFdiSIrus99+Lw78ekXyGvVDlIsFJbSfmSovJUhCWYV3w==",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/react-router/node_modules/@remix-run/router": {
+ "version": "1.15.3",
+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.3.tgz",
+ "integrity": "sha512-Oy8rmScVrVxWZVOpEF57ovlnhpZ8CCPlnIIumVcV9nFdiSIrus99+Lw78ekXyGvVDlIsFJbSfmSovJUhCWYV3w==",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
"node_modules/react-stately": {
"version": "3.30.1",
"resolved": "https://registry.npmjs.org/react-stately/-/react-stately-3.30.1.tgz",