Update dependencies

This commit is contained in:
Darren Clarke 2024-11-25 09:31:25 +01:00
parent 48aa89f7cf
commit 7ad25e8a95
49 changed files with 2116 additions and 1699 deletions

View file

@ -1,10 +1,11 @@
import { Create } from "@link-stack/bridge-ui";
type PageProps = {
params: { segment: string[] };
params: Promise<{ segment: string[] }>;
};
export default function Page({ params: { segment } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { segment } = await params;
const service = segment[0];
return <Create service={service} />;

View file

@ -1,11 +1,12 @@
import { db } from "@link-stack/bridge-common";
import { serviceConfig, Detail } from "@link-stack/bridge-ui";
type Props = {
params: { segment: string[] };
type PageProps = {
params: Promise<{ segment: string[] }>;
};
export default async function Page({ params: { segment } }: Props) {
export default async function Page({ params }: PageProps) {
const { segment } = await params;
const service = segment[0];
const id = segment?.[1];

View file

@ -2,10 +2,11 @@ import { db } from "@link-stack/bridge-common";
import { serviceConfig, Edit } from "@link-stack/bridge-ui";
type PageProps = {
params: { segment: string[] };
params: Promise<{ segment: string[] }>;
};
export default async function Page({ params: { segment } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { segment } = await params;
const service = segment[0];
const id = segment?.[1];

View file

@ -2,12 +2,13 @@ import { db } from "@link-stack/bridge-common";
import { serviceConfig, List } from "@link-stack/bridge-ui";
type PageProps = {
params: {
params: Promise<{
segment: string[];
};
}>;
};
export default async function Page({ params: { segment } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { segment } = await params;
const service = segment[0];
if (!service) return null;

View file

@ -1,6 +1,6 @@
{
"name": "@link-stack/bridge-frontend",
"version": "2.2.0",
"version": "2.3.4",
"type": "module",
"scripts": {
"dev": "next dev",
@ -13,19 +13,19 @@
"migrate:down:one": "tsx database/migrate.ts down:one"
},
"dependencies": {
"@auth/kysely-adapter": "^1.5.2",
"@mui/icons-material": "^5",
"@mui/material": "^5",
"@mui/material-nextjs": "^5",
"@mui/x-license": "^7.18.0",
"@auth/kysely-adapter": "^1.7.4",
"@mui/icons-material": "^6",
"@mui/material": "^6",
"@mui/material-nextjs": "^6",
"@mui/x-license": "^7.21.0",
"@link-stack/bridge-common": "*",
"@link-stack/bridge-ui": "*",
"next": "14.2.13",
"next-auth": "^4.24.8",
"next": "15.0.3",
"next-auth": "^4.24.10",
"react": "18.3.1",
"react-dom": "18.3.1",
"sharp": "^0.33.5",
"tsx": "^4.19.1",
"tsx": "^4.19.2",
"@link-stack/ui": "*"
},
"devDependencies": {

View file

@ -1,6 +1,10 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@ -14,14 +18,24 @@
"jsx": "preserve",
"incremental": true,
"paths": {
"@/*": ["./*"]
"@/*": [
"./*"
]
},
"plugins": [
{
"name": "next"
}
]
],
"target": "ES2017"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}

View file

@ -1,6 +1,6 @@
{
"name": "@link-stack/bridge-migrations",
"version": "2.2.0",
"version": "2.3.4",
"type": "module",
"scripts": {
"migrate:up:all": "tsx migrate.ts up:all",
@ -11,8 +11,8 @@
"dependencies": {
"dotenv": "^16.4.5",
"kysely": "0.26.1",
"pg": "^8.13.0",
"tsx": "^4.19.1"
"pg": "^8.13.1",
"tsx": "^4.19.2"
},
"devDependencies": {
"@types/node": "^22",

View file

@ -1,26 +1,26 @@
{
"name": "@link-stack/bridge-whatsapp",
"version": "2.2.0",
"version": "2.3.4",
"main": "build/main/index.js",
"author": "Darren Clarke <darren@redaranj.com>",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@adiwajshing/keyed-db": "0.2.4",
"@hapi/hapi": "^21.3.10",
"@hapi/hapi": "^21.3.12",
"@hapipal/schmervice": "^3.0.0",
"@hapipal/toys": "^4.0.0",
"@whiskeysockets/baileys": "^6.7.8",
"@whiskeysockets/baileys": "^6.7.9",
"hapi-pino": "^12.1.0",
"link-preview-js": "^3.0.5"
"link-preview-js": "^3.0.12"
},
"devDependencies": {
"@link-stack/eslint-config": "*",
"@link-stack/jest-config": "*",
"@link-stack/typescript-config": "*",
"@types/node": "*",
"dotenv-cli": "^7.4.2",
"tsx": "^4.19.1",
"typescript": "^5.6.2"
"dotenv-cli": "^7.4.4",
"tsx": "^4.19.2",
"typescript": "^5.7.2"
},
"scripts": {
"build": "tsc -p tsconfig.json",

View file

@ -1,6 +1,6 @@
{
"name": "@link-stack/bridge-worker",
"version": "2.2.0",
"version": "2.3.4",
"type": "module",
"main": "build/main/index.js",
"author": "Darren Clarke <darren@redaranj.com>",
@ -16,14 +16,14 @@
"@link-stack/signal-api": "*",
"fluent-ffmpeg": "^2.1.3",
"graphile-worker": "^0.16.6",
"remeda": "^2.14.0",
"twilio": "^5.3.2"
"remeda": "^2.17.3",
"twilio": "^5.3.6"
},
"devDependencies": {
"@types/fluent-ffmpeg": "^2.1.26",
"dotenv-cli": "^7.4.2",
"@types/fluent-ffmpeg": "^2.1.27",
"dotenv-cli": "^7.4.4",
"@link-stack/eslint-config": "*",
"@link-stack/typescript-config": "*",
"typescript": "^5.6.2"
"typescript": "^5.7.2"
}
}

View file

@ -1,5 +1,10 @@
import { Suspense } from "react";
import { About } from "@link-stack/leafcutter-ui";
export default function Page() {
return <About />;
return (
<Suspense>
<About />
</Suspense>
);
}

View file

@ -1,5 +1,12 @@
import { Suspense } from "react";
import { FAQ } from "@link-stack/leafcutter-ui";
export default function Page() {
return <FAQ />;
export const dynamic = "force-dynamic";
export default async function Page() {
return (
<Suspense>
<FAQ />
</Suspense>
);
}

View file

@ -2,6 +2,8 @@ import { ReactNode } from "react";
import "app/_styles/global.css";
import { InternalLayout } from "../_components/InternalLayout";
export const dynamic = "force-dynamic";
type LayoutProps = {
children: ReactNode;
};

View file

@ -1,5 +1,10 @@
import { Suspense } from "react";
import { Setup } from "./_components/Setup";
export default function Page() {
return <Setup />;
return (
<Suspense>
<Setup />
</Suspense>
);
}

View file

@ -34,12 +34,13 @@ const getVisualization = async (visualizationID: string) => {
};
type PageProps = {
params: {
params: Promise<{
visualizationID: string;
};
}>;
};
export default async function Page({ params: { visualizationID } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { visualizationID } = await params;
const visualization = await getVisualization(visualizationID);
return <VisualizationDetail {...visualization} editing={false} />;

View file

@ -48,7 +48,6 @@ const MenuItem = ({
return (
<Link href={href} passHref>
<ListItem
button
sx={{
paddingLeft: "62px",
backgroundColor: selected ? leafcutterLightBlue : "transparent",

View file

@ -3,13 +3,13 @@ import { getServerSession } from "next-auth";
import { authOptions } from "app/_lib/auth";
import { deleteUserVisualization } from "app/_lib/opensearch";
export const POST = async (req: NextRequest, res: NextResponse) => {
const session = await getServerSession(authOptions);
const { user: { email } }: any = session;
const { id } = await req.json();
await deleteUserVisualization(email as string, id);
export const POST = async (req: NextRequest) => {
const session = await getServerSession(authOptions);
const {
user: { email },
}: any = session;
const { id } = await req.json();
await deleteUserVisualization(email as string, id);
return NextResponse.json({ id });
return NextResponse.json({ id });
};

View file

@ -1,8 +1,5 @@
module.exports = {
transpilePackages: ["@link-stack/leafcutter-ui", "@link-stack/opensearch-common"],
experimental: {
missingSuspenseWithCSRBailout: false,
},
poweredByHeader: false,
rewrites: async () => ({
fallback: [

View file

@ -1,6 +1,6 @@
{
"name": "@link-stack/leafcutter",
"version": "2.2.0",
"version": "2.3.4",
"scripts": {
"dev": "next dev -p 3001",
"login": "aws sso login --sso-session cdr",
@ -13,37 +13,37 @@
"lint": "next lint"
},
"dependencies": {
"@emotion/cache": "^11.13.1",
"@emotion/react": "^11.13.3",
"@emotion/cache": "^11.13.5",
"@emotion/react": "^11.13.5",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.13.0",
"@emotion/styled": "^11.13.5",
"@link-stack/leafcutter-ui": "*",
"@link-stack/opensearch-common": "*",
"@mui/icons-material": "^5",
"@mui/material": "^5",
"@mui/material-nextjs": "^5",
"@mui/x-date-pickers-pro": "^7.18.0",
"@opensearch-project/opensearch": "^2.12.0",
"@mui/icons-material": "^6",
"@mui/material": "^6",
"@mui/material-nextjs": "^6",
"@mui/x-date-pickers-pro": "^7.22.3",
"@opensearch-project/opensearch": "^2.13.0",
"date-fns": "^4.1.0",
"http-proxy-middleware": "^3.0.2",
"http-proxy-middleware": "^3.0.3",
"material-ui-popup-state": "^5.3.1",
"next": "14.2.13",
"next-auth": "^4.24.8",
"next": "15.0.3",
"next-auth": "^4.24.10",
"react": "18.3.1",
"react-cookie": "^7.2.0",
"react-cookie": "^7.2.2",
"react-cookie-consent": "^9.0.0",
"react-dom": "18.3.1",
"react-iframe": "^1.8.5",
"react-polyglot": "^0.7.2",
"sharp": "^0.33.5",
"uuid": "^10.0.0"
"uuid": "^11.0.3"
},
"devDependencies": {
"@types/node": "^22.7.3",
"@types/react": "18.3.9",
"@types/node": "^22.9.3",
"@types/react": "18.3.12",
"@types/uuid": "^10.0.0",
"@link-stack/eslint-config": "*",
"@link-stack/typescript-config": "*",
"typescript": "5.6.2"
"typescript": "5.7.2"
}
}

View file

@ -1,10 +1,11 @@
import { Create } from "@link-stack/bridge-ui";
type PageProps = {
params: { segment: string[] };
params: Promise<{ segment: string[] }>;
};
export default function Page({ params: { segment } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { segment } = await params;
const service = segment[0];
return <Create service={service} />;

View file

@ -1,11 +1,12 @@
import { db } from "@link-stack/bridge-common";
import { serviceConfig, Detail } from "@link-stack/bridge-ui";
type Props = {
params: { segment: string[] };
type PageProps = {
params: Promise<{ segment: string[] }>;
};
export default async function Page({ params: { segment } }: Props) {
export default async function Page({ params }: PageProps) {
const { segment } = await params;
const service = segment[0];
const id = segment?.[1];

View file

@ -2,10 +2,11 @@ import { db } from "@link-stack/bridge-common";
import { serviceConfig, Edit } from "@link-stack/bridge-ui";
type PageProps = {
params: { segment: string[] };
params: Promise<{ segment: string[] }>;
};
export default async function Page({ params: { segment } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { segment } = await params;
const service = segment[0];
const id = segment?.[1];

View file

@ -2,12 +2,13 @@ import { db } from "@link-stack/bridge-common";
import { serviceConfig, List } from "@link-stack/bridge-ui";
type PageProps = {
params: {
params: Promise<{
segment: string[];
};
}>;
};
export default async function Page({ params: { segment } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { segment } = await params;
const service = segment[0];
if (!service) return null;

View file

@ -6,14 +6,15 @@ const getSection = (overview: string) => {
};
type MetadataProps = {
params: {
params: Promise<{
overview: string;
};
}>;
};
export async function generateMetadata({
params: { overview },
params,
}: MetadataProps): Promise<Metadata> {
const { overview } = await params;
const section = getSection(overview);
return {
@ -22,12 +23,13 @@ export async function generateMetadata({
}
type PageProps = {
params: {
params: Promise<{
overview: string;
};
}>;
};
export default function Page({ params: { overview } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { overview } = await params;
const section = getSection(overview);
return <ZammadOverview name={section} />;

View file

@ -1,11 +1,13 @@
import { TicketDetail } from "./_components/TicketDetail";
type PageProps = {
params: {
params: Promise<{
id: string;
};
}>;
};
export default function Page({ params: { id } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { id } = await params;
return <TicketDetail id={id} />;
}

View file

@ -1,11 +1,13 @@
import { TicketEdit } from "./_components/TicketEdit";
type PageProps = {
params: {
params: Promise<{
id: string;
};
}>;
};
export default function Page({ params: { id } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { id } = await params;
return <TicketEdit id={id} />;
}

View file

@ -2,7 +2,7 @@ import { getServerSession } from "app/_lib/authentication";
import { cookies } from "next/headers";
const getHeaders = async () => {
const allCookies = cookies().getAll();
const allCookies = (await cookies()).getAll();
const session = await getServerSession();
const headers = {
"Content-Type": "application/json",

View file

@ -1,6 +1,6 @@
{
"name": "@link-stack/link",
"version": "2.2.0",
"version": "2.3.4",
"type": "module",
"scripts": {
"dev": "next dev",
@ -12,29 +12,29 @@
"dependencies": {
"@chatscope/chat-ui-kit-react": "^2.0.3",
"@chatscope/chat-ui-kit-styles": "^1.4.0",
"@emotion/cache": "^11.13.1",
"@emotion/react": "^11.13.3",
"@emotion/cache": "^11.13.5",
"@emotion/react": "^11.13.5",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.13.0",
"@emotion/styled": "^11.13.5",
"@link-stack/bridge-common": "*",
"@link-stack/bridge-ui": "*",
"@link-stack/leafcutter-ui": "*",
"@link-stack/opensearch-common": "*",
"@link-stack/ui": "*",
"@mui/icons-material": "^5",
"@mui/material": "^5",
"@mui/material-nextjs": "^5",
"@mui/x-data-grid-pro": "^7.18.0",
"@mui/x-date-pickers": "^7.18.0",
"@mui/x-date-pickers-pro": "^7.18.0",
"@mui/x-license": "^7.18.0",
"@mui/icons-material": "^6",
"@mui/material": "^6",
"@mui/material-nextjs": "^6",
"@mui/x-data-grid-pro": "^7.22.3",
"@mui/x-date-pickers": "^7.22.3",
"@mui/x-date-pickers-pro": "^7.22.3",
"@mui/x-license": "^7.21.0",
"date-fns": "^4.1.0",
"graphql-request": "^7.1.0",
"mui-chips-input": "^2.1.5",
"next": "14.2.13",
"next-auth": "^4.24.8",
"graphql-request": "^7.1.2",
"mui-chips-input": "^4.0.1",
"next": "15.0.3",
"next-auth": "^4.24.10",
"react": "18.3.1",
"react-cookie": "^7.2.0",
"react-cookie": "^7.2.2",
"react-dom": "18.3.1",
"react-iframe": "^1.8.5",
"react-polyglot": "^0.7.2",
@ -42,8 +42,8 @@
},
"devDependencies": {
"@link-stack/eslint-config": "*",
"@types/node": "^22.7.3",
"@types/react": "18.3.9",
"@types/node": "^22.9.3",
"@types/react": "18.3.12",
"@types/uuid": "^10.0.0"
}
}