Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

fix: frontend cve fixes (#1415)

Agnes Georgef812ea1cccf4
diff --git a/Dockerfile.frontend b/Dockerfile.frontend
index 5c81a45e2..1483dfb0a 100644
--- a/Dockerfile.frontend
+++ b/Dockerfile.frontend
@@ -1,6 +1,6 @@
-FROM node:20.20.0-slim
+FROM node:25.9-slim
-# Set working directory and ensure it is owned by the non-root node user
+# Set working directory and ensure it is owned by the non-root node user
WORKDIR /app
RUN chown node:node /app
@@ -9,7 +9,7 @@ USER node
# Copy frontend dependencies
COPY --chown=node:node frontend/package*.json ./
-RUN npm install
+RUN npm ci
# Copy frontend source
COPY --chown=node:node frontend/ ./
diff --git a/frontend/app/api/mutations/useIBMCOSConfigureMutation.ts b/frontend/app/api/mutations/useIBMCOSConfigureMutation.ts
index 89e0e23f4..67e66c97a 100644
--- a/frontend/app/api/mutations/useIBMCOSConfigureMutation.ts
+++ b/frontend/app/api/mutations/useIBMCOSConfigureMutation.ts
@@ -1,40 +1,40 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
export interface IBMCOSConfigurePayload {
- auth_mode: "iam" | "hmac";
- endpoint: string;
- // IAM
- api_key?: string;
- service_instance_id?: string;
- auth_endpoint?: string;
- // HMAC
- hmac_access_key?: string;
- hmac_secret_key?: string;
- // Bucket selection
- bucket_names?: string[];
- // Updating an existing connection
- connection_id?: string;
+ auth_mode: "iam" | "hmac";
+ endpoint: string;
+ // IAM
+ api_key?: string;
+ service_instance_id?: string;
+ auth_endpoint?: string;
+ // HMAC
+ hmac_access_key?: string;
+ hmac_secret_key?: string;
+ // Bucket selection
+ bucket_names?: string[];
+ // Updating an existing connection
+ connection_id?: string;
}
async function configureIBMCOS(payload: IBMCOSConfigurePayload) {
- const res = await fetch("/api/connectors/ibm_cos/configure", {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify(payload),
- });
- const data = await res.json();
- if (!res.ok) throw new Error(data.error || "Failed to configure IBM COS");
- return data as { connection_id: string; status: string };
+ const res = await fetch("/api/connectors/ibm_cos/configure", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(payload),
+ });
+ const data = await res.json();
+ if (!res.ok) throw new Error(data.error || "Failed to configure IBM COS");
+ return data as { connection_id: string; status: string };
}
export function useIBMCOSConfigureMutation() {
- const queryClient = useQueryClient();
+ const queryClient = useQueryClient();
- return useMutation({
- mutationFn: configureIBMCOS,
- onSuccess: () => {
- queryClient.invalidateQueries({ queryKey: ["connectors"] });
- queryClient.invalidateQueries({ queryKey: ["ibm-cos-defaults"] });
- },
- });
+ return useMutation({
+ mutationFn: configureIBMCOS,
+ onSuccess: () => {
+ queryClient.invalidateQueries({ queryKey: ["connectors"] });
+ queryClient.invalidateQueries({ queryKey: ["ibm-cos-defaults"] });
+ },
+ });
}
diff --git a/frontend/app/api/mutations/useS3ConfigureMutation.ts b/frontend/app/api/mutations/useS3ConfigureMutation.ts
index 1e4e16a5e..ad6c5eecb 100644
--- a/frontend/app/api/mutations/useS3ConfigureMutation.ts
+++ b/frontend/app/api/mutations/useS3ConfigureMutation.ts
@@ -1,33 +1,33 @@
import { useMutation, useQueryClient } from "@tanstack/react-query";
export interface S3ConfigurePayload {
- access_key?: string;
- secret_key?: string;
- endpoint_url?: string;
- region?: string;
- bucket_names?: string[];
- connection_id?: string;
+ access_key?: string;
+ secret_key?: string;
+ endpoint_url?: string;
+ region?: string;
+ bucket_names?: string[];
+ connection_id?: string;
}
async function configureS3(payload: S3ConfigurePayload) {
- const res = await fetch("/api/connectors/aws_s3/configure", {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify(payload),
- });
- const data = await res.json();
- if (!res.ok) throw new Error(data.error || "Failed to configure S3");
- return data as { connection_id: string; status: string };
+ const res = await fetch("/api/connectors/aws_s3/configure", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(payload),
+ });
+ const data = await res.json();
+ if (!res.ok) throw new Error(data.error || "Failed to configure S3");
+ return data as { connection_id: string; status: string };
}
export function useS3ConfigureMutation() {
- const queryClient = useQueryClient();
+ const queryClient = useQueryClient();
- return useMutation({
- mutationFn: configureS3,
- onSuccess: () => {
- queryClient.invalidateQueries({ queryKey: ["connectors"] });
- queryClient.invalidateQueries({ queryKey: ["s3-defaults"] });
- },
- });
+ return useMutation({
+ mutationFn: configureS3,
+ onSuccess: () => {
+ queryClient.invalidateQueries({ queryKey: ["connectors"] });
+ queryClient.invalidateQueries({ queryKey: ["s3-defaults"] });
+ },
+ });
}
diff --git a/frontend/app/api/queries/useIBMCOSBucketsQuery.ts b/frontend/app/api/queries/useIBMCOSBucketsQuery.ts
index a7daa619f..f7583aeff 100644
--- a/frontend/app/api/queries/useIBMCOSBucketsQuery.ts
+++ b/frontend/app/api/queries/useIBMCOSBucketsQuery.ts
@@ -1,23 +1,23 @@
import { useQuery } from "@tanstack/react-query";
async function fetchIBMCOSBuckets(connectionId: string): Promise<string[]> {
- const res = await fetch(`/api/connectors/ibm_cos/${connectionId}/buckets`);
- if (!res.ok) {
- const err = await res.json().catch(() => ({}));
- throw new Error(err.error || "Failed to list buckets");
- }
- const data = await res.json();
- return data.buckets as string[];
+ const res = await fetch(`/api/connectors/ibm_cos/${connectionId}/buckets`);
+ if (!res.ok) {
+ const err = await res.json().catch(() => ({}));
+ throw new Error(err.error || "Failed to list buckets");
+ }
+ const data = await res.json();
+ return data.buckets as string[];
}
export function useIBMCOSBucketsQuery(
- connectionId: string | null | undefined,
- options?: { enabled?: boolean },
+ connectionId: string | null | undefined,
+ options?: { enabled?: boolean },
) {
- return useQuery<string[]>({
- queryKey: ["ibm-cos-buckets", connectionId],
- queryFn: () => fetchIBMCOSBuckets(connectionId!),
- enabled: (options?.enabled ?? true) && !!connectionId,
- staleTime: 30_000,
- });
+ return useQuery<string[]>({
+ queryKey: ["ibm-cos-buckets", connectionId],
+ queryFn: () => fetchIBMCOSBuckets(connectionId!),
+ enabled: (options?.enabled ?? true) && !!connectionId,
+ staleTime: 30_000,
+ });
}
diff --git a/frontend/app/api/queries/useIBMCOSDefaultsQuery.ts b/frontend/app/api/queries/useIBMCOSDefaultsQuery.ts
index b44ee4c5b..5e0edabd1 100644
--- a/frontend/app/api/queries/useIBMCOSDefaultsQuery.ts
+++ b/frontend/app/api/queries/useIBMCOSDefaultsQuery.ts
@@ -1,28 +1,28 @@
import { useQuery } from "@tanstack/react-query";
export interface IBMCOSDefaults {
- api_key_set: boolean;
- service_instance_id: string;
- endpoint: string;
- hmac_access_key_set: boolean;
- hmac_secret_key_set: boolean;
- auth_mode: "iam" | "hmac";
- bucket_names: string[];
- connection_id: string | null;
- disable_iam: boolean;
+ api_key_set: boolean;
+ service_instance_id: string;
+ endpoint: string;
+ hmac_access_key_set: boolean;
+ hmac_secret_key_set: boolean;
+ auth_mode: "iam" | "hmac";
+ bucket_names: string[];
+ connection_id: string | null;
+ disable_iam: boolean;
}
async function fetchIBMCOSDefaults(): Promise<IBMCOSDefaults> {
- const res = await fetch("/api/connectors/ibm_cos/defaults");
- if (!res.ok) throw new Error("Failed to fetch IBM COS defaults");
- return res.json();
+ const res = await fetch("/api/connectors/ibm_cos/defaults");
+ if (!res.ok) throw new Error("Failed to fetch IBM COS defaults");
+ return res.json();
}
export function useIBMCOSDefaultsQuery(options?: { enabled?: boolean }) {
- return useQuery<IBMCOSDefaults>({
- queryKey: ["ibm-cos-defaults"],
- queryFn: fetchIBMCOSDefaults,
- enabled: options?.enabled ?? true,
- staleTime: 0,
- });
+ return useQuery<IBMCOSDefaults>({
+ queryKey: ["ibm-cos-defaults"],
+ queryFn: fetchIBMCOSDefaults,
+ enabled: options?.enabled ?? true,
+ staleTime: 0,
+ });
}
diff --git a/frontend/app/api/queries/useS3BucketStatusQuery.ts b/frontend/app/api/queries/useS3BucketStatusQuery.ts
index 595920933..eb47248b6 100644
--- a/frontend/app/api/queries/useS3BucketStatusQuery.ts
+++ b/frontend/app/api/queries/useS3BucketStatusQuery.ts
@@ -1,30 +1,34 @@
import { useQuery } from "@tanstack/react-query";
export interface S3BucketStatus {
- name: string;
- ingested_count: number;
- is_synced: boolean;
+ name: string;
+ ingested_count: number;
+ is_synced: boolean;
}
-async function fetchS3BucketStatus(connectionId: string): Promise<S3BucketStatus[]> {
- const res = await fetch(`/api/connectors/aws_s3/${connectionId}/bucket-status`);
- if (!res.ok) {
- const err = await res.json().catch(() => ({}));
- throw new Error(err.error || "Failed to fetch bucket status");
- }
- const data = await res.json();
- return data.buckets as S3BucketStatus[];
+async function fetchS3BucketStatus(
+ connectionId: string,
+): Promise<S3BucketStatus[]> {
+ const res = await fetch(
+ `/api/connectors/aws_s3/${connectionId}/bucket-status`,
+ );
+ if (!res.ok) {
+ const err = await res.json().catch(() => ({}));
+ throw new Error(err.error || "Failed to fetch bucket status");
+ }
+ const data = await res.json();
+ return data.buckets as S3BucketStatus[];
}
export function useS3BucketStatusQuery(
- connectionId: string | null | undefined,
- options?: { enabled?: boolean },
+ connectionId: string | null | undefined,
+ options?: { enabled?: boolean },
) {
- return useQuery<S3BucketStatus[]>({
- queryKey: ["s3-bucket-status", connectionId],
- queryFn: () => fetchS3BucketStatus(connectionId!),
- enabled: (options?.enabled ?? true) && !!connectionId,
- staleTime: 0,
- refetchOnMount: "always",
- });
+ return useQuery<S3BucketStatus[]>({
+ queryKey: ["s3-bucket-status", connectionId],
+ queryFn: () => fetchS3BucketStatus(connectionId!),
+ enabled: (options?.enabled ?? true) && !!connectionId,
+ staleTime: 0,
+ refetchOnMount: "always",
+ });
}
diff --git a/frontend/app/api/queries/useS3DefaultsQuery.ts b/frontend/app/api/queries/useS3DefaultsQuery.ts
index 9c7d24560..beb64d8f3 100644
--- a/frontend/app/api/queries/useS3DefaultsQuery.ts
+++ b/frontend/app/api/queries/useS3DefaultsQuery.ts
@@ -1,25 +1,25 @@
import { useQuery } from "@tanstack/react-query";
export interface S3Defaults {
- access_key_set: boolean;
- secret_key_set: boolean;
- endpoint: string;
- region: string;
- bucket_names: string[];
- connection_id: string | null;
+ access_key_set: boolean;
+ secret_key_set: boolean;
+ endpoint: string;
+ region: string;
+ bucket_names: string[];
+ connection_id: string | null;
}
async function fetchS3Defaults(): Promise<S3Defaults> {
- const res = await fetch("/api/connectors/aws_s3/defaults");
- if (!res.ok) throw new Error("Failed to fetch S3 defaults");
- return res.json();
+ const res = await fetch("/api/connectors/aws_s3/defaults");
+ if (!res.ok) throw new Error("Failed to fetch S3 defaults");
+ return res.json();
}
export function useS3DefaultsQuery(options?: { enabled?: boolean }) {
- return useQuery<S3Defaults>({
- queryKey: ["s3-defaults"],
- queryFn: fetchS3Defaults,
- enabled: options?.enabled ?? true,
- staleTime: 0,
- });
+ return useQuery<S3Defaults>({
+ queryKey: ["s3-defaults"],
+ queryFn: fetchS3Defaults,
+ enabled: options?.enabled ?? true,
+ staleTime: 0,
+ });
}
diff --git a/frontend/app/login/page.tsx b/frontend/app/login/page.tsx
index 1a6aeba38..42ae7d445 100644
--- a/frontend/app/login/page.tsx
+++ b/frontend/app/login/page.tsx
@@ -20,7 +20,14 @@ function LoginPageContent() {
if (!isLoading && (isAuthenticated || isNoAuthMode || isIbmAuthMode)) {
router.push(redirect);
}
- }, [isLoading, isAuthenticated, isNoAuthMode, isIbmAuthMode, router, redirect]);
+ }, [
+ isLoading,
+ isAuthenticated,
+ isNoAuthMode,
+ isIbmAuthMode,
+ router,
+ redirect,
+ ]);
if (isLoading) {
return (
diff --git a/frontend/app/settings/_components/ibm-cos-settings-dialog.tsx b/frontend/app/settings/_components/ibm-cos-settings-dialog.tsx
index 0d6a9b367..fcae96f5d 100644
--- a/frontend/app/settings/_components/ibm-cos-settings-dialog.tsx
+++ b/frontend/app/settings/_components/ibm-cos-settings-dialog.tsx
@@ -1,198 +1,205 @@
"use client";
+import { useQueryClient } from "@tanstack/react-query";
import { useState } from "react";
import { FormProvider, useForm } from "react-hook-form";
import { toast } from "sonner";
-import { useQueryClient } from "@tanstack/react-query";
+import { useIBMCOSConfigureMutation } from "@/app/api/mutations/useIBMCOSConfigureMutation";
+import { useIBMCOSDefaultsQuery } from "@/app/api/queries/useIBMCOSDefaultsQuery";
import IBMCOSIcon from "@/components/icons/ibm-cos-icon";
import { Button } from "@/components/ui/button";
import {
- Dialog,
- DialogContent,
- DialogFooter,
- DialogHeader,
- DialogTitle,
+ Dialog,
+ DialogContent,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
} from "@/components/ui/dialog";
-import { IBMCOSSettingsForm, type IBMCOSFormData } from "./ibm-cos-settings-form";
-import { useIBMCOSDefaultsQuery } from "@/app/api/queries/useIBMCOSDefaultsQuery";
-import { useIBMCOSConfigureMutation } from "@/app/api/mutations/useIBMCOSConfigureMutation";
+import {
+ type IBMCOSFormData,
+ IBMCOSSettingsForm,
+} from "./ibm-cos-settings-form";
interface IBMCOSSettingsDialogProps {
- open: boolean;
- setOpen: (open: boolean) => void;
+ open: boolean;
+ setOpen: (open: boolean) => void;
}
export default function IBMCOSSettingsDialog({
- open,
- setOpen,
+ open,
+ setOpen,
}: IBMCOSSettingsDialogProps) {
- const queryClient = useQueryClient();
-
- // Fetch env-based defaults to pre-fill the form
- const { data: defaults } = useIBMCOSDefaultsQuery({ enabled: open });
-
- const disableIam = defaults?.disable_iam ?? false;
-
- const methods = useForm<IBMCOSFormData>({
- mode: "onSubmit",
- values: {
- auth_mode: disableIam ? "hmac" : (defaults?.auth_mode ?? "hmac"),
- endpoint: defaults?.endpoint ?? "",
- api_key: "",
- service_instance_id: defaults?.service_instance_id ?? "",
- hmac_access_key: "",
- hmac_secret_key: "",
+ const queryClient = useQueryClient();
+
+ // Fetch env-based defaults to pre-fill the form
+ const { data: defaults } = useIBMCOSDefaultsQuery({ enabled: open });
+
+ const disableIam = defaults?.disable_iam ?? false;
+
+ const methods = useForm<IBMCOSFormData>({
+ mode: "onSubmit",
+ values: {
+ auth_mode: disableIam ? "hmac" : (defaults?.auth_mode ?? "hmac"),
+ endpoint: defaults?.endpoint ?? "",
+ api_key: "",
+ service_instance_id: defaults?.service_instance_id ?? "",
+ hmac_access_key: "",
+ hmac_secret_key: "",
+ },
+ });
+
+ const { handleSubmit } = methods;
+
+ // Bucket state
+ const [buckets, setBuckets] = useState<string[] | null>(
+ defaults?.bucket_names?.length ? defaults.bucket_names : null,
+ );
+ const [selectedBuckets, setSelectedBuckets] = useState<string[]>(
+ defaults?.bucket_names ?? [],
+ );
+ const [isFetchingBuckets, setIsFetchingBuckets] = useState(false);
+ const [bucketsError, setBucketsError] = useState<string | null>(null);
+ const [formError, setFormError] = useState<string | null>(null);
+
+ const configureMutation = useIBMCOSConfigureMutation();
+
+ // Inline bucket test: calls the configure endpoint without saving,
+ // then uses the returned connection_id to list buckets.
+ const handleTestConnection = handleSubmit(async (data) => {
+ setIsFetchingBuckets(true);
+ setBucketsError(null);
+ setFormError(null);
+
+ try {
+ // First configure (creates/updates connection) to get a connection_id
+ const result = await configureMutation.mutateAsync({
+ auth_mode: data.auth_mode,
+ endpoint: data.endpoint,
+ api_key: data.api_key || undefined,
+ service_instance_id: data.service_instance_id || undefined,
+ hmac_access_key: data.hmac_access_key || undefined,
+ hmac_secret_key: data.hmac_secret_key || undefined,
+ connection_id: defaults?.connection_id ?? undefined,
+ });
+
+ // Then list buckets using the connection
+ const res = await fetch(
+ `/api/connectors/ibm_cos/${result.connection_id}/buckets`,
+ );
+ const json = await res.json();
+ if (!res.ok) throw new Error(json.error || "Failed to list buckets");
+
+ const fetchedBuckets: string[] = json.buckets;
+ setBuckets(fetchedBuckets);
+
+ // Keep any previously selected buckets that still exist
+ setSelectedBuckets((prev) =>
+ prev.filter((b) => fetchedBuckets.includes(b)),
+ );
+
+ // Refresh defaults so we have the new connection_id
+ queryClient.invalidateQueries({ queryKey: ["ibm-cos-defaults"] });
+ } catch (err: any) {
+ setBucketsError(err.message ?? "Connection failed");
+ } finally {
+ setIsFetchingBuckets(false);
+ }
+ });
+
+ const onSubmit = handleSubmit(async (data) => {
+ setFormError(null);
+ if (buckets === null) {
+ setFormError("Test the connection first to validate credentials.");
+ return;
+ }
+
+ try {
+ // Refresh defaults to get latest connection_id
+ const latestDefaults = await queryClient.fetchQuery({
+ queryKey: ["ibm-cos-defaults"],
+ queryFn: async () => {
+ const res = await fetch("/api/connectors/ibm_cos/defaults");
+ return res.json();
},
- });
-
- const { handleSubmit } = methods;
-
- // Bucket state
- const [buckets, setBuckets] = useState<string[] | null>(
- defaults?.bucket_names?.length ? defaults.bucket_names : null,
- );
- const [selectedBuckets, setSelectedBuckets] = useState<string[]>(
- defaults?.bucket_names ?? [],
- );
- const [isFetchingBuckets, setIsFetchingBuckets] = useState(false);
- const [bucketsError, setBucketsError] = useState<string | null>(null);
- const [formError, setFormError] = useState<string | null>(null);
-
- const configureMutation = useIBMCOSConfigureMutation();
-
- // Inline bucket test: calls the configure endpoint without saving,
- // then uses the returned connection_id to list buckets.
- const handleTestConnection = handleSubmit(async (data) => {
- setIsFetchingBuckets(true);
- setBucketsError(null);
- setFormError(null);
-
- try {
- // First configure (creates/updates connection) to get a connection_id
- const result = await configureMutation.mutateAsync({
- auth_mode: data.auth_mode,
- endpoint: data.endpoint,
- api_key: data.api_key || undefined,
- service_instance_id: data.service_instance_id || undefined,
- hmac_access_key: data.hmac_access_key || undefined,
- hmac_secret_key: data.hmac_secret_key || undefined,
- connection_id: defaults?.connection_id ?? undefined,
- });
-
- // Then list buckets using the connection
- const res = await fetch(
- `/api/connectors/ibm_cos/${result.connection_id}/buckets`,
- );
- const json = await res.json();
- if (!res.ok) throw new Error(json.error || "Failed to list buckets");
-
- const fetchedBuckets: string[] = json.buckets;
- setBuckets(fetchedBuckets);
-
- // Keep any previously selected buckets that still exist
- setSelectedBuckets((prev) =>
- prev.filter((b) => fetchedBuckets.includes(b)),
- );
-
- // Refresh defaults so we have the new connection_id
- queryClient.invalidateQueries({ queryKey: ["ibm-cos-defaults"] });
- } catch (err: any) {
- setBucketsError(err.message ?? "Connection failed");
- } finally {
- setIsFetchingBuckets(false);
- }
- });
-
- const onSubmit = handleSubmit(async (data) => {
- setFormError(null);
- if (buckets === null) {
- setFormError("Test the connection first to validate credentials.");
- return;
- }
-
- try {
- // Refresh defaults to get latest connection_id
- const latestDefaults = await queryClient.fetchQuery({
- queryKey: ["ibm-cos-defaults"],
- queryFn: async () => {
- const res = await fetch("/api/connectors/ibm_cos/defaults");
- return res.json();
- },
- staleTime: 0,
- });
-
- await configureMutation.mutateAsync({
- auth_mode: data.auth_mode,
- endpoint: data.endpoint,
- api_key: data.api_key || undefined,
- service_instance_id: data.service_instance_id || undefined,
- hmac_access_key: data.hmac_access_key || undefined,
- hmac_secret_key: data.hmac_secret_key || undefined,
- bucket_names: selectedBuckets,
- connection_id: latestDefaults?.connection_id ?? defaults?.connection_id ?? undefined,
- });
-
- toast.success("IBM Cloud Object Storage configured", {
- description:
- selectedBuckets.length > 0
- ? `Will ingest from: ${selectedBuckets.join(", ")}`
- : "Will auto-discover and ingest all accessible buckets.",
- icon: <IBMCOSIcon className="w-4 h-4" />,
- });
-
- queryClient.invalidateQueries({ queryKey: ["connectors"] });
- setOpen(false);
- } catch (err: any) {
- setFormError(err.message ?? "Failed to save configuration");
- }
- });
-
- return (
- <Dialog open={open} onOpenChange={setOpen}>
- <DialogContent autoFocus={false} className="max-w-2xl max-h-[90vh] overflow-y-auto">
- <FormProvider {...methods}>
- <form onSubmit={onSubmit} className="grid gap-4">
- <DialogHeader className="mb-2">
- <DialogTitle className="flex items-center gap-3">
- <div className="w-8 h-8 rounded flex items-center justify-center bg-white border">
- <IBMCOSIcon className="text-black" />
- </div>
- IBM Cloud Object Storage Setup
- </DialogTitle>
- </DialogHeader>
-
- <IBMCOSSettingsForm
- buckets={buckets}
- selectedBuckets={selectedBuckets}
- onSelectedBucketsChange={setSelectedBuckets}
- isFetchingBuckets={isFetchingBuckets}
- bucketsError={bucketsError}
- onTestConnection={handleTestConnection as () => void}
- apiKeySet={defaults?.api_key_set}
- hmacAccessKeySet={defaults?.hmac_access_key_set}
- hmacSecretKeySet={defaults?.hmac_secret_key_set}
- formError={formError}
- disableIam={disableIam}
- />
-
- <DialogFooter className="mt-4">
- <Button
- variant="outline"
- type="button"
- onClick={() => setOpen(false)}
- >
- Cancel
- </Button>
- <Button
- type="submit"
- disabled={configureMutation.isPending || isFetchingBuckets}
- >
- {configureMutation.isPending ? "Saving…" : "Save"}
- </Button>
- </DialogFooter>
- </form>
- </FormProvider>
- </DialogContent>
- </Dialog>
- );
+ staleTime: 0,
+ });
+
+ await configureMutation.mutateAsync({
+ auth_mode: data.auth_mode,
+ endpoint: data.endpoint,
+ api_key: data.api_key || undefined,
+ service_instance_id: data.service_instance_id || undefined,
+ hmac_access_key: data.hmac_access_key || undefined,
+ hmac_secret_key: data.hmac_secret_key || undefined,
+ bucket_names: selectedBuckets,
+ connection_id:
+ latestDefaults?.connection_id ?? defaults?.connection_id ?? undefined,
+ });
+
+ toast.success("IBM Cloud Object Storage configured", {
+ description:
+ selectedBuckets.length > 0
+ ? `Will ingest from: ${selectedBuckets.join(", ")}`
+ : "Will auto-discover and ingest all accessible buckets.",
+ icon: <IBMCOSIcon className="w-4 h-4" />,
+ });
+
+ queryClient.invalidateQueries({ queryKey: ["connectors"] });
+ setOpen(false);
+ } catch (err: any) {
+ setFormError(err.message ?? "Failed to save configuration");
+ }
+ });
+
+ return (
+ <Dialog open={open} onOpenChange={setOpen}>
+ <DialogContent
+ autoFocus={false}
+ className="max-w-2xl max-h-[90vh] overflow-y-auto"
+ >
+ <FormProvider {...methods}>
+ <form onSubmit={onSubmit} className="grid gap-4">
+ <DialogHeader className="mb-2">
+ <DialogTitle className="flex items-center gap-3">
+ <div className="w-8 h-8 rounded flex items-center justify-center bg-white border">
+ <IBMCOSIcon className="text-black" />
+ </div>
+ IBM Cloud Object Storage Setup
+ </DialogTitle>
+ </DialogHeader>
+
+ <IBMCOSSettingsForm
+ buckets={buckets}
+ selectedBuckets={selectedBuckets}
+ onSelectedBucketsChange={setSelectedBuckets}
+ isFetchingBuckets={isFetchingBuckets}
+ bucketsError={bucketsError}
+ onTestConnection={handleTestConnection as () => void}
+ apiKeySet={defaults?.api_key_set}
+ hmacAccessKeySet={defaults?.hmac_access_key_set}
+ hmacSecretKeySet={defaults?.hmac_secret_key_set}
+ formError={formError}
+ disableIam={disableIam}
+ />
+
+ <DialogFooter className="mt-4">
+ <Button
+ variant="outline"
+ type="button"
+ onClick={() => setOpen(false)}
+ >
+ Cancel
+ </Button>
+ <Button
+ type="submit"
+ disabled={configureMutation.isPending || isFetchingBuckets}
+ >
+ {configureMutation.isPending ? "Saving…" : "Save"}
+ </Button>
+ </DialogFooter>
+ </form>
+ </FormProvider>
+ </DialogContent>
+ </Dialog>
+ );
}
diff --git a/frontend/app/settings/_components/ibm-cos-settings-form.tsx b/frontend/app/settings/_components/ibm-cos-settings-form.tsx
index 481aad35b..179e4de76 100644
--- a/frontend/app/settings/_components/ibm-cos-settings-form.tsx
+++ b/frontend/app/settings/_components/ibm-cos-settings-form.tsx
@@ -1,305 +1,326 @@
"use client";
-import { useFormContext, Controller } from "react-hook-form";
+import { Loader2, RefreshCcw } from "lucide-react";
+import { Controller, useFormContext } from "react-hook-form";
import { LabelWrapper } from "@/components/label-wrapper";
+import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
-import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";
-import { Loader2, RefreshCcw } from "lucide-react";
-import { Button } from "@/components/ui/button";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
export interface IBMCOSFormData {
- auth_mode: "iam" | "hmac";
- endpoint: string;
- // IAM
- api_key: string;
- service_instance_id: string;
- // HMAC
- hmac_access_key: string;
- hmac_secret_key: string;
+ auth_mode: "iam" | "hmac";
+ endpoint: string;
+ // IAM
+ api_key: string;
+ service_instance_id: string;
+ // HMAC
+ hmac_access_key: string;
+ hmac_secret_key: string;
}
interface IBMCOSSettingsFormProps {
- /** Available buckets after a successful test — null means not yet tested */
- buckets: string[] | null;
- selectedBuckets: string[];
- onSelectedBucketsChange: (buckets: string[]) => void;
- isFetchingBuckets: boolean;
- bucketsError: string | null;
- onTestConnection: () => void;
- apiKeySet?: boolean;
- hmacAccessKeySet?: boolean;
- hmacSecretKeySet?: boolean;
- formError?: string | null;
- /** When true, IAM tab is greyed out and HMAC is the only selectable option */
- disableIam?: boolean;
+ /** Available buckets after a successful test — null means not yet tested */
+ buckets: string[] | null;
+ selectedBuckets: string[];
+ onSelectedBucketsChange: (buckets: string[]) => void;
+ isFetchingBuckets: boolean;
+ bucketsError: string | null;
+ onTestConnection: () => void;
+ apiKeySet?: boolean;
+ hmacAccessKeySet?: boolean;
+ hmacSecretKeySet?: boolean;
+ formError?: string | null;
+ /** When true, IAM tab is greyed out and HMAC is the only selectable option */
+ disableIam?: boolean;
}
export function IBMCOSSettingsForm({
- buckets,
- selectedBuckets,
- onSelectedBucketsChange,
- isFetchingBuckets,
- bucketsError,
- onTestConnection,
- apiKeySet,
- hmacAccessKeySet,
- hmacSecretKeySet,
- formError,
- disableIam = false,
+ buckets,
+ selectedBuckets,
+ onSelectedBucketsChange,
+ isFetchingBuckets,
+ bucketsError,
+ onTestConnection,
+ apiKeySet,
+ hmacAccessKeySet,
+ hmacSecretKeySet,
+ formError,
+ disableIam = false,
}: IBMCOSSettingsFormProps) {
- const {
- register,
- control,
- formState: { errors },
- } = useFormContext<IBMCOSFormData>();
-
- const toggleBucket = (name: string, checked: boolean) => {
- if (checked) {
- onSelectedBucketsChange([...selectedBuckets, name]);
- } else {
- onSelectedBucketsChange(selectedBuckets.filter((b) => b !== name));
- }
- };
+ const {
+ register,
+ control,
+ formState: { errors },
+ } = useFormContext<IBMCOSFormData>();
- const toggleAll = (checked: boolean) => {
- onSelectedBucketsChange(checked ? (buckets ?? []) : []);
- };
+ const toggleBucket = (name: string, checked: boolean) => {
+ if (checked) {
+ onSelectedBucketsChange([...selectedBuckets, name]);
+ } else {
+ onSelectedBucketsChange(selectedBuckets.filter((b) => b !== name));
+ }
+ };
- return (
- <div className="space-y-5">
- {/* Auth mode selector using Tabs */}
- <div className="space-y-2">
- <Label className="text-sm font-medium">Authentication Method</Label>
- <Controller
- control={control}
- name="auth_mode"
- render={({ field }) => (
- <Tabs
- value={disableIam && field.value === "iam" ? "hmac" : field.value}
- onValueChange={(v) => {
- if (disableIam && v === "iam") return;
- field.onChange(v);
- }}
- >
- <TabsList className="w-full">
- <TabsTrigger value="hmac">
- <span className="font-semibold text-sm">HMAC</span>
- <span className="text-xs text-muted-foreground font-normal">
- Access Key + Secret Key
- </span>
- </TabsTrigger>
- <TabsTrigger
- value="iam"
- disabled={disableIam}
- className={disableIam ? "opacity-40 cursor-not-allowed" : ""}
- title={disableIam ? "IAM mode is disabled. Set OPENRAG_IBM_COS_IAM_UI=true to enable." : undefined}
- >
- <span className="font-semibold text-sm">IAM</span>
- <span className="text-xs text-muted-foreground font-normal">
- API Key + Resource Instance ID
- </span>
- </TabsTrigger>
- </TabsList>
+ const toggleAll = (checked: boolean) => {
+ onSelectedBucketsChange(checked ? (buckets ?? []) : []);
+ };
- {/* HMAC fields — first tab */}
- <TabsContent value="hmac">
- <div className="space-y-4">
- <div className="space-y-1">
- <LabelWrapper
- label="Access Key ID"
- helperText={'Copy "cos_hmac_keys.access_key_id" from your IBM COS Service Credentials JSON'}
- id="ibm-cos-hmac-key"
- required
- >
- <Input
- {...register("hmac_access_key", { setValueAs: (v) => v?.trim() })}
- id="ibm-cos-hmac-key"
- type="password"
- placeholder={
- hmacAccessKeySet
- ? "•••••••• (loaded from env)"
- : "cos_hmac_keys.access_key_id"
- }
- autoComplete="off"
- />
- </LabelWrapper>
- </div>
- <div className="space-y-1">
- <LabelWrapper
- label="Secret Access Key"
- helperText={'Copy "cos_hmac_keys.secret_access_key" from your IBM COS Service Credentials JSON'}
- id="ibm-cos-hmac-secret"
- required
- >
- <Input
- {...register("hmac_secret_key", { setValueAs: (v) => v?.trim() })}
- id="ibm-cos-hmac-secret"
- type="password"
- placeholder={
- hmacSecretKeySet
- ? "•••••••• (loaded from env)"
- : "cos_hmac_keys.secret_access_key"
- }
- autoComplete="off"
- />
- </LabelWrapper>
- </div>
- </div>
- </TabsContent>
+ return (
+ <div className="space-y-5">
+ {/* Auth mode selector using Tabs */}
+ <div className="space-y-2">
+ <Label className="text-sm font-medium">Authentication Method</Label>
+ <Controller
+ control={control}
+ name="auth_mode"
+ render={({ field }) => (
+ <Tabs
+ value={disableIam && field.value === "iam" ? "hmac" : field.value}
+ onValueChange={(v) => {
+ if (disableIam && v === "iam") return;
+ field.onChange(v);
+ }}
+ >
+ <TabsList className="w-full">
+ <TabsTrigger value="hmac">
+ <span className="font-semibold text-sm">HMAC</span>
+ <span className="text-xs text-muted-foreground font-normal">
+ Access Key + Secret Key
+ </span>
+ </TabsTrigger>
+ <TabsTrigger
+ value="iam"
+ disabled={disableIam}
+ className={disableIam ? "opacity-40 cursor-not-allowed" : ""}
+ title={
+ disableIam
+ ? "IAM mode is disabled. Set OPENRAG_IBM_COS_IAM_UI=true to enable."
+ : undefined
+ }
+ >
+ <span className="font-semibold text-sm">IAM</span>
+ <span className="text-xs text-muted-foreground font-normal">
+ API Key + Resource Instance ID
+ </span>
+ </TabsTrigger>
+ </TabsList>
- {/* IAM fields — second tab */}
- <TabsContent value="iam">
- <div className="space-y-4">
- <div className="space-y-1">
- <LabelWrapper
- label="API Key"
- helperText={'Copy the "apikey" field from your IBM COS Service Credentials JSON'}
- id="ibm-cos-api-key"
- required
- >
- <Input
- {...register("api_key", { setValueAs: (v) => v?.trim() })}
- id="ibm-cos-api-key"
- type="password"
- placeholder={
- apiKeySet
- ? "•••••••• (loaded from env)"
- : 'apikey value from Service Credentials'
- }
- autoComplete="off"
- />
- </LabelWrapper>
- </div>
- <div className="space-y-1">
- <LabelWrapper
- label="Resource Instance ID"
- helperText={'Copy the "resource_instance_id" field from your IBM COS Service Credentials JSON'}
- id="ibm-cos-svc-id"
- required
- >
- <Input
- {...register("service_instance_id", { setValueAs: (v) => v?.trim() })}
- id="ibm-cos-svc-id"
- placeholder="crn:v1:bluemix:public:cloud-object-storage:..."
- />
- </LabelWrapper>
- </div>
- </div>
- </TabsContent>
- </Tabs>
- )}
- />
- </div>
+ {/* HMAC fields — first tab */}
+ <TabsContent value="hmac">
+ <div className="space-y-4">
+ <div className="space-y-1">
+ <LabelWrapper
+ label="Access Key ID"
+ helperText={
+ 'Copy "cos_hmac_keys.access_key_id" from your IBM COS Service Credentials JSON'
+ }
+ id="ibm-cos-hmac-key"
+ required
+ >
+ <Input
+ {...register("hmac_access_key", {
+ setValueAs: (v) => v?.trim(),
+ })}
+ id="ibm-cos-hmac-key"
+ type="password"
+ placeholder={
+ hmacAccessKeySet
+ ? "•••••••• (loaded from env)"
+ : "cos_hmac_keys.access_key_id"
+ }
+ autoComplete="off"
+ />
+ </LabelWrapper>
+ </div>
+ <div className="space-y-1">
+ <LabelWrapper
+ label="Secret Access Key"
+ helperText={
+ 'Copy "cos_hmac_keys.secret_access_key" from your IBM COS Service Credentials JSON'
+ }
+ id="ibm-cos-hmac-secret"
+ required
+ >
+ <Input
+ {...register("hmac_secret_key", {
+ setValueAs: (v) => v?.trim(),
+ })}
+ id="ibm-cos-hmac-secret"
+ type="password"
+ placeholder={
+ hmacSecretKeySet
+ ? "•••••••• (loaded from env)"
+ : "cos_hmac_keys.secret_access_key"
+ }
+ autoComplete="off"
+ />
+ </LabelWrapper>
+ </div>
+ </div>
+ </TabsContent>
- {/* Endpoint — shared by both auth modes */}
- <div className="space-y-1">
- <LabelWrapper
- label="Service Endpoint"
- helperText="Public endpoint for your bucket region, e.g. https://s3.us-south.cloud-object-storage.appdomain.cloud — find yours at IBM Cloud → COS → Buckets → Configuration → Endpoints"
- id="ibm-cos-endpoint"
- required
- >
- <Input
- {...register("endpoint", { required: "Endpoint is required", setValueAs: (v) => v?.trim() })}
- id="ibm-cos-endpoint"
- placeholder="https://s3.us-south.cloud-object-storage.appdomain.cloud"
- className={errors.endpoint ? "!border-destructive" : ""}
- />
- </LabelWrapper>
- {errors.endpoint && (
- <p className="text-sm text-destructive">{errors.endpoint.message}</p>
- )}
- </div>
+ {/* IAM fields — second tab */}
+ <TabsContent value="iam">
+ <div className="space-y-4">
+ <div className="space-y-1">
+ <LabelWrapper
+ label="API Key"
+ helperText={
+ 'Copy the "apikey" field from your IBM COS Service Credentials JSON'
+ }
+ id="ibm-cos-api-key"
+ required
+ >
+ <Input
+ {...register("api_key", {
+ setValueAs: (v) => v?.trim(),
+ })}
+ id="ibm-cos-api-key"
+ type="password"
+ placeholder={
+ apiKeySet
+ ? "•••••••• (loaded from env)"
+ : "apikey value from Service Credentials"
+ }
+ autoComplete="off"
+ />
+ </LabelWrapper>
+ </div>
+ <div className="space-y-1">
+ <LabelWrapper
+ label="Resource Instance ID"
+ helperText={
+ 'Copy the "resource_instance_id" field from your IBM COS Service Credentials JSON'
+ }
+ id="ibm-cos-svc-id"
+ required
+ >
+ <Input
+ {...register("service_instance_id", {
+ setValueAs: (v) => v?.trim(),
+ })}
+ id="ibm-cos-svc-id"
+ placeholder="crn:v1:bluemix:public:cloud-object-storage:..."
+ />
+ </LabelWrapper>
+ </div>
+ </div>
+ </TabsContent>
+ </Tabs>
+ )}
+ />
+ </div>
- {/* Test connection */}
- <Button
- type="button"
- variant="outline"
- onClick={onTestConnection}
- disabled={isFetchingBuckets}
- className="w-full"
- >
- {isFetchingBuckets ? (
- <>
- <Loader2 className="h-4 w-4 mr-2 animate-spin" />
- Connecting…
- </>
- ) : buckets !== null ? (
- <>
- <RefreshCcw className="h-4 w-4 mr-2" />
- Refresh Buckets
- </>
- ) : (
- "Test Connection & List Buckets"
- )}
- </Button>
+ {/* Endpoint — shared by both auth modes */}
+ <div className="space-y-1">
+ <LabelWrapper
+ label="Service Endpoint"
+ helperText="Public endpoint for your bucket region, e.g. https://s3.us-south.cloud-object-storage.appdomain.cloud — find yours at IBM Cloud → COS → Buckets → Configuration → Endpoints"
+ id="ibm-cos-endpoint"
+ required
+ >
+ <Input
+ {...register("endpoint", {
+ required: "Endpoint is required",
+ setValueAs: (v) => v?.trim(),
+ })}
+ id="ibm-cos-endpoint"
+ placeholder="https://s3.us-south.cloud-object-storage.appdomain.cloud"
+ className={errors.endpoint ? "!border-destructive" : ""}
+ />
+ </LabelWrapper>
+ {errors.endpoint && (
+ <p className="text-sm text-destructive">{errors.endpoint.message}</p>
+ )}
+ </div>
- {bucketsError && (
- <p className="text-sm text-destructive rounded-lg border border-destructive/50 p-3">
- {bucketsError}
- </p>
- )}
+ {/* Test connection */}
+ <Button
+ type="button"
+ variant="outline"
+ onClick={onTestConnection}
+ disabled={isFetchingBuckets}
+ className="w-full"
+ >
+ {isFetchingBuckets ? (
+ <>
+ <Loader2 className="h-4 w-4 mr-2 animate-spin" />
+ Connecting…
+ </>
+ ) : buckets !== null ? (
+ <>
+ <RefreshCcw className="h-4 w-4 mr-2" />
+ Refresh Buckets
+ </>
+ ) : (
+ "Test Connection & List Buckets"
+ )}
+ </Button>
- {formError && (
- <p className="text-sm text-destructive rounded-lg border border-destructive/50 p-3">
- {formError}
- </p>
- )}
+ {bucketsError && (
+ <p className="text-sm text-destructive rounded-lg border border-destructive/50 p-3">
+ {bucketsError}
+ </p>
+ )}
- {/* Bucket selector — native checkboxes styled with Tailwind */}
- {buckets !== null && (
- <div className="space-y-2">
- <div className="flex items-center justify-between">
- <Label className="text-sm font-medium">
- Select Buckets to Ingest
- <span className="ml-1 text-muted-foreground font-normal">
- (leave all unchecked to ingest everything)
- </span>
- </Label>
- {buckets.length > 1 && (
- <button
- type="button"
- className="text-xs text-primary underline-offset-2 hover:underline"
- onClick={() =>
- toggleAll(selectedBuckets.length !== buckets.length)
- }
- >
- {selectedBuckets.length === buckets.length
- ? "Deselect all"
- : "Select all"}
- </button>
- )}
- </div>
+ {formError && (
+ <p className="text-sm text-destructive rounded-lg border border-destructive/50 p-3">
+ {formError}
+ </p>
+ )}
- {buckets.length === 0 ? (
- <p className="text-sm text-muted-foreground">
- No buckets found for this account.
- </p>
- ) : (
- <div className="max-h-48 overflow-y-auto rounded-lg border p-3 space-y-2">
- {buckets.map((bucket) => (
- <label
- key={bucket}
- htmlFor={`bucket-${bucket}`}
- className="flex items-center gap-2.5 cursor-pointer select-none"
- >
- <input
- id={`bucket-${bucket}`}
- type="checkbox"
- className="h-4 w-4 rounded border-border accent-primary"
- checked={selectedBuckets.includes(bucket)}
- onChange={(e) =>
- toggleBucket(bucket, e.target.checked)
- }
- />
- <span className="text-sm">{bucket}</span>
- </label>
- ))}
- </div>
- )}
- </div>
+ {/* Bucket selector — native checkboxes styled with Tailwind */}
+ {buckets !== null && (
+ <div className="space-y-2">
+ <div className="flex items-center justify-between">
+ <Label className="text-sm font-medium">
+ Select Buckets to Ingest
+ <span className="ml-1 text-muted-foreground font-normal">
+ (leave all unchecked to ingest everything)
+ </span>
+ </Label>
+ {buckets.length > 1 && (
+ <button
+ type="button"
+ className="text-xs text-primary underline-offset-2 hover:underline"
+ onClick={() =>
+ toggleAll(selectedBuckets.length !== buckets.length)
+ }
+ >
+ {selectedBuckets.length === buckets.length
+ ? "Deselect all"
+ : "Select all"}
+ </button>
)}
+ </div>
+
+ {buckets.length === 0 ? (
+ <p className="text-sm text-muted-foreground">
+ No buckets found for this account.
+ </p>
+ ) : (
+ <div className="max-h-48 overflow-y-auto rounded-lg border p-3 space-y-2">
+ {buckets.map((bucket) => (
+ <label
+ key={bucket}
+ htmlFor={`bucket-${bucket}`}
+ className="flex items-center gap-2.5 cursor-pointer select-none"
+ >
+ <input
+ id={`bucket-${bucket}`}
+ type="checkbox"
+ className="h-4 w-4 rounded border-border accent-primary"
+ checked={selectedBuckets.includes(bucket)}
+ onChange={(e) => toggleBucket(bucket, e.target.checked)}
+ />
+ <span className="text-sm">{bucket}</span>
+ </label>
+ ))}
+ </div>
+ )}
</div>
- );
+ )}
+ </div>
+ );
}
diff --git a/frontend/app/settings/_components/s3-settings-dialog.tsx b/frontend/app/settings/_components/s3-settings-dialog.tsx
index 1f32dd0e5..942dcbdd0 100644
--- a/frontend/app/settings/_components/s3-settings-dialog.tsx
+++ b/frontend/app/settings/_components/s3-settings-dialog.tsx
@@ -1,190 +1,194 @@
"use client";
-import { useState, useEffect } from "react";
+import { useQueryClient } from "@tanstack/react-query";
+import { useEffect, useState } from "react";
import { FormProvider, useForm } from "react-hook-form";
import { toast } from "sonner";
-import { useQueryClient } from "@tanstack/react-query";
+import { useS3ConfigureMutation } from "@/app/api/mutations/useS3ConfigureMutation";
+import { useS3DefaultsQuery } from "@/app/api/queries/useS3DefaultsQuery";
import AwsLogo from "@/components/icons/aws-logo";
import { Button } from "@/components/ui/button";
import {
- Dialog,
- DialogContent,
- DialogFooter,
- DialogHeader,
- DialogTitle,
+ Dialog,
+ DialogContent,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
} from "@/components/ui/dialog";
-import { S3SettingsForm, type S3FormData } from "./s3-settings-form";
-import { useS3DefaultsQuery } from "@/app/api/queries/useS3DefaultsQuery";
-import { useS3ConfigureMutation } from "@/app/api/mutations/useS3ConfigureMutation";
+import { type S3FormData, S3SettingsForm } from "./s3-settings-form";
interface S3SettingsDialogProps {
- open: boolean;
- setOpen: (open: boolean) => void;
+ open: boolean;
+ setOpen: (open: boolean) => void;
}
export default function S3SettingsDialog({
- open,
- setOpen,
+ open,
+ setOpen,
}: S3SettingsDialogProps) {
- const queryClient = useQueryClient();
-
- const { data: defaults } = useS3DefaultsQuery({ enabled: open });
-
- const methods = useForm<S3FormData>({
- mode: "onSubmit",
- values: {
- access_key: "",
- secret_key: "",
- endpoint_url: defaults?.endpoint ?? "",
- region: defaults?.region ?? "",
+ const queryClient = useQueryClient();
+
+ const { data: defaults } = useS3DefaultsQuery({ enabled: open });
+
+ const methods = useForm<S3FormData>({
+ mode: "onSubmit",
+ values: {
+ access_key: "",
+ secret_key: "",
+ endpoint_url: defaults?.endpoint ?? "",
+ region: defaults?.region ?? "",
+ },
+ });
+
+ const { handleSubmit } = methods;
+
+ const [buckets, setBuckets] = useState<string[] | null>(
+ defaults?.bucket_names?.length ? defaults.bucket_names : null,
+ );
+ const [selectedBuckets, setSelectedBuckets] = useState<string[]>(
+ defaults?.bucket_names ?? [],
+ );
+
+ // Sync bucket state when defaults load asynchronously after dialog mount
+ useEffect(() => {
+ if (defaults?.bucket_names?.length) {
+ setBuckets(defaults.bucket_names);
+ setSelectedBuckets((prev) =>
+ prev.length ? prev : defaults.bucket_names,
+ );
+ }
+ }, [defaults?.bucket_names?.join(",")]);
+
+ const [isFetchingBuckets, setIsFetchingBuckets] = useState(false);
+ const [bucketsError, setBucketsError] = useState<string | null>(null);
+ const [formError, setFormError] = useState<string | null>(null);
+
+ const configureMutation = useS3ConfigureMutation();
+
+ const handleTestConnection = handleSubmit(async (data) => {
+ setIsFetchingBuckets(true);
+ setBucketsError(null);
+ setFormError(null);
+
+ try {
+ const result = await configureMutation.mutateAsync({
+ access_key: data.access_key || undefined,
+ secret_key: data.secret_key || undefined,
+ endpoint_url: data.endpoint_url || undefined,
+ region: data.region || undefined,
+ connection_id: defaults?.connection_id ?? undefined,
+ });
+
+ const res = await fetch(
+ `/api/connectors/aws_s3/${result.connection_id}/buckets`,
+ );
+ const json = await res.json();
+ if (!res.ok) throw new Error(json.error || "Failed to list buckets");
+
+ const fetchedBuckets: string[] = json.buckets;
+ setBuckets(fetchedBuckets);
+
+ setSelectedBuckets((prev) =>
+ prev.filter((b) => fetchedBuckets.includes(b)),
+ );
+
+ queryClient.invalidateQueries({ queryKey: ["s3-defaults"] });
+ } catch (err: any) {
+ setBucketsError(err.message ?? "Connection failed");
+ } finally {
+ setIsFetchingBuckets(false);
+ }
+ });
+
+ const onSubmit = handleSubmit(async (data) => {
+ setFormError(null);
+ if (buckets === null) {
+ setFormError("Test the connection first to validate credentials.");
+ return;
+ }
+
+ try {
+ const latestDefaults = await queryClient.fetchQuery({
+ queryKey: ["s3-defaults"],
+ queryFn: async () => {
+ const res = await fetch("/api/connectors/aws_s3/defaults");
+ return res.json();
},
- });
-
- const { handleSubmit } = methods;
-
- const [buckets, setBuckets] = useState<string[] | null>(
- defaults?.bucket_names?.length ? defaults.bucket_names : null,
- );
- const [selectedBuckets, setSelectedBuckets] = useState<string[]>(
- defaults?.bucket_names ?? [],
- );
-
- // Sync bucket state when defaults load asynchronously after dialog mount
- useEffect(() => {
- if (defaults?.bucket_names?.length) {
- setBuckets(defaults.bucket_names);
- setSelectedBuckets((prev) =>
- prev.length ? prev : defaults.bucket_names,
- );
- }
- }, [defaults?.bucket_names?.join(",")]);
-
- const [isFetchingBuckets, setIsFetchingBuckets] = useState(false);
- const [bucketsError, setBucketsError] = useState<string | null>(null);
- const [formError, setFormError] = useState<string | null>(null);
-
- const configureMutation = useS3ConfigureMutation();
-
- const handleTestConnection = handleSubmit(async (data) => {
- setIsFetchingBuckets(true);
- setBucketsError(null);
- setFormError(null);
-
- try {
- const result = await configureMutation.mutateAsync({
- access_key: data.access_key || undefined,
- secret_key: data.secret_key || undefined,
- endpoint_url: data.endpoint_url || undefined,
- region: data.region || undefined,
- connection_id: defaults?.connection_id ?? undefined,
- });
-
- const res = await fetch(
- `/api/connectors/aws_s3/${result.connection_id}/buckets`,
- );
- const json = await res.json();
- if (!res.ok) throw new Error(json.error || "Failed to list buckets");
-
- const fetchedBuckets: string[] = json.buckets;
- setBuckets(fetchedBuckets);
-
- setSelectedBuckets((prev) =>
- prev.filter((b) => fetchedBuckets.includes(b)),
- );
-
- queryClient.invalidateQueries({ queryKey: ["s3-defaults"] });
- } catch (err: any) {
- setBucketsError(err.message ?? "Connection failed");
- } finally {
- setIsFetchingBuckets(false);
- }
- });
-
- const onSubmit = handleSubmit(async (data) => {
- setFormError(null);
- if (buckets === null) {
- setFormError("Test the connection first to validate credentials.");
- return;
- }
-
- try {
- const latestDefaults = await queryClient.fetchQuery({
- queryKey: ["s3-defaults"],
- queryFn: async () => {
- const res = await fetch("/api/connectors/aws_s3/defaults");
- return res.json();
- },
- staleTime: 0,
- });
-
- await configureMutation.mutateAsync({
- access_key: data.access_key || undefined,
- secret_key: data.secret_key || undefined,
- endpoint_url: data.endpoint_url || undefined,
- region: data.region || undefined,
- bucket_names: selectedBuckets,
- connection_id: latestDefaults?.connection_id ?? defaults?.connection_id ?? undefined,
- });
-
- toast.success("Amazon S3 configured", {
- description:
- selectedBuckets.length > 0
- ? `Will ingest from: ${selectedBuckets.join(", ")}`
- : "Will auto-discover and ingest all accessible buckets.",
- icon: <AwsLogo className="w-4 h-4" />,
- });
-
- queryClient.invalidateQueries({ queryKey: ["connectors"] });
- setOpen(false);
- } catch (err: any) {
- setFormError(err.message ?? "Failed to save configuration");
- }
- });
-
- return (
- <Dialog open={open} onOpenChange={setOpen}>
- <DialogContent autoFocus={false} className="max-w-2xl max-h-[90vh] overflow-y-auto">
- <FormProvider {...methods}>
- <form onSubmit={onSubmit} className="grid gap-4">
- <DialogHeader className="mb-2">
- <DialogTitle className="flex items-center gap-3">
- <div className="w-8 h-8 rounded flex items-center justify-center bg-white border">
- <AwsLogo className="text-black" />
- </div>
- Amazon S3 Setup
- </DialogTitle>
- </DialogHeader>
-
- <S3SettingsForm
- buckets={buckets}
- selectedBuckets={selectedBuckets}
- onSelectedBucketsChange={setSelectedBuckets}
- isFetchingBuckets={isFetchingBuckets}
- bucketsError={bucketsError}
- onTestConnection={handleTestConnection as () => void}
- accessKeySet={defaults?.access_key_set}
- secretKeySet={defaults?.secret_key_set}
- formError={formError}
- />
-
- <DialogFooter className="mt-4">
- <Button
- variant="outline"
- type="button"
- onClick={() => setOpen(false)}
- >
- Cancel
- </Button>
- <Button
- type="submit"
- disabled={configureMutation.isPending || isFetchingBuckets}
- >
- {configureMutation.isPending ? "Saving…" : "Save"}
- </Button>
- </DialogFooter>
- </form>
- </FormProvider>
- </DialogContent>
- </Dialog>
- );
+ staleTime: 0,
+ });
+
+ await configureMutation.mutateAsync({
+ access_key: data.access_key || undefined,
+ secret_key: data.secret_key || undefined,
+ endpoint_url: data.endpoint_url || undefined,
+ region: data.region || undefined,
+ bucket_names: selectedBuckets,
+ connection_id:
+ latestDefaults?.connection_id ?? defaults?.connection_id ?? undefined,
+ });
+
+ toast.success("Amazon S3 configured", {
+ description:
+ selectedBuckets.length > 0
+ ? `Will ingest from: ${selectedBuckets.join(", ")}`
+ : "Will auto-discover and ingest all accessible buckets.",
+ icon: <AwsLogo className="w-4 h-4" />,
+ });
+
+ queryClient.invalidateQueries({ queryKey: ["connectors"] });
+ setOpen(false);
+ } catch (err: any) {
+ setFormError(err.message ?? "Failed to save configuration");
+ }
+ });
+
+ return (
+ <Dialog open={open} onOpenChange={setOpen}>
+ <DialogContent
+ autoFocus={false}
+ className="max-w-2xl max-h-[90vh] overflow-y-auto"
+ >
+ <FormProvider {...methods}>
+ <form onSubmit={onSubmit} className="grid gap-4">
+ <DialogHeader className="mb-2">
+ <DialogTitle className="flex items-center gap-3">
+ <div className="w-8 h-8 rounded flex items-center justify-center bg-white border">
+ <AwsLogo className="text-black" />
+ </div>
+ Amazon S3 Setup
+ </DialogTitle>
+ </DialogHeader>
+
+ <S3SettingsForm
+ buckets={buckets}
+ selectedBuckets={selectedBuckets}
+ onSelectedBucketsChange={setSelectedBuckets}
+ isFetchingBuckets={isFetchingBuckets}
+ bucketsError={bucketsError}
+ onTestConnection={handleTestConnection as () => void}
+ accessKeySet={defaults?.access_key_set}
+ secretKeySet={defaults?.secret_key_set}
+ formError={formError}
+ />
+
+ <DialogFooter className="mt-4">
+ <Button
+ variant="outline"
+ type="button"
+ onClick={() => setOpen(false)}
+ >
+ Cancel
+ </Button>
+ <Button
+ type="submit"
+ disabled={configureMutation.isPending || isFetchingBuckets}
+ >
+ {configureMutation.isPending ? "Saving…" : "Save"}
+ </Button>
+ </DialogFooter>
+ </form>
+ </FormProvider>
+ </DialogContent>
+ </Dialog>
+ );
}
diff --git a/frontend/app/settings/_components/s3-settings-form.tsx b/frontend/app/settings/_components/s3-settings-form.tsx
index 22d36ac50..523e8cf64 100644
--- a/frontend/app/settings/_components/s3-settings-form.tsx
+++ b/frontend/app/settings/_components/s3-settings-form.tsx
@@ -1,223 +1,221 @@
"use client";
+import { Loader2, RefreshCcw } from "lucide-react";
import { useFormContext } from "react-hook-form";
import { LabelWrapper } from "@/components/label-wrapper";
+import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
-import { Loader2, RefreshCcw } from "lucide-react";
-import { Button } from "@/components/ui/button";
export interface S3FormData {
- access_key: string;
- secret_key: string;
- endpoint_url: string;
- region: string;
+ access_key: string;
+ secret_key: string;
+ endpoint_url: string;
+ region: string;
}
interface S3SettingsFormProps {
- /** Available buckets after a successful test — null means not yet tested */
- buckets: string[] | null;
- selectedBuckets: string[];
- onSelectedBucketsChange: (buckets: string[]) => void;
- isFetchingBuckets: boolean;
- bucketsError: string | null;
- onTestConnection: () => void;
- accessKeySet?: boolean;
- secretKeySet?: boolean;
- formError?: string | null;
+ /** Available buckets after a successful test — null means not yet tested */
+ buckets: string[] | null;
+ selectedBuckets: string[];
+ onSelectedBucketsChange: (buckets: string[]) => void;
+ isFetchingBuckets: boolean;
+ bucketsError: string | null;
+ onTestConnection: () => void;
+ accessKeySet?: boolean;
+ secretKeySet?: boolean;
+ formError?: string | null;
}
export function S3SettingsForm({
- buckets,
- selectedBuckets,
- onSelectedBucketsChange,
- isFetchingBuckets,
- bucketsError,
- onTestConnection,
- accessKeySet,
- secretKeySet,
- formError,
+ buckets,
+ selectedBuckets,
+ onSelectedBucketsChange,
+ isFetchingBuckets,
+ bucketsError,
+ onTestConnection,
+ accessKeySet,
+ secretKeySet,
+ formError,
}: S3SettingsFormProps) {
- const { register } = useFormContext<S3FormData>();
-
- const toggleBucket = (name: string, checked: boolean) => {
- if (checked) {
- onSelectedBucketsChange([...selectedBuckets, name]);
- } else {
- onSelectedBucketsChange(selectedBuckets.filter((b) => b !== name));
- }
- };
+ const { register } = useFormContext<S3FormData>();
- const toggleAll = (checked: boolean) => {
- onSelectedBucketsChange(checked ? (buckets ?? []) : []);
- };
+ const toggleBucket = (name: string, checked: boolean) => {
+ if (checked) {
+ onSelectedBucketsChange([...selectedBuckets, name]);
+ } else {
+ onSelectedBucketsChange(selectedBuckets.filter((b) => b !== name));
+ }
+ };
- return (
- <div className="space-y-5">
- {/* Access Key ID */}
- <div className="space-y-1">
- <LabelWrapper
- label="Access Key ID"
- helperText="From AWS IAM → Users → Security credentials. Or set the AWS_ACCESS_KEY_ID env var."
- id="s3-access-key"
- required
- >
- <Input
- {...register("access_key", { setValueAs: (v) => v?.trim() })}
- id="s3-access-key"
- type="password"
- placeholder={
- accessKeySet
- ? "•••••••• (loaded from env)"
- : "AKIAIOSFODNN7EXAMPLE"
- }
- autoComplete="off"
- />
- </LabelWrapper>
- </div>
+ const toggleAll = (checked: boolean) => {
+ onSelectedBucketsChange(checked ? (buckets ?? []) : []);
+ };
- {/* Secret Access Key */}
- <div className="space-y-1">
- <LabelWrapper
- label="Secret Access Key"
- helperText="Or set the AWS_SECRET_ACCESS_KEY env var."
- id="s3-secret-key"
- required
- >
- <Input
- {...register("secret_key", { setValueAs: (v) => v?.trim() })}
- id="s3-secret-key"
- type="password"
- placeholder={
- secretKeySet
- ? "•••••••• (loaded from env)"
- : "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
- }
- autoComplete="off"
- />
- </LabelWrapper>
- </div>
+ return (
+ <div className="space-y-5">
+ {/* Access Key ID */}
+ <div className="space-y-1">
+ <LabelWrapper
+ label="Access Key ID"
+ helperText="From AWS IAM → Users → Security credentials. Or set the AWS_ACCESS_KEY_ID env var."
+ id="s3-access-key"
+ required
+ >
+ <Input
+ {...register("access_key", { setValueAs: (v) => v?.trim() })}
+ id="s3-access-key"
+ type="password"
+ placeholder={
+ accessKeySet
+ ? "•••••••• (loaded from env)"
+ : "AKIAIOSFODNN7EXAMPLE"
+ }
+ autoComplete="off"
+ />
+ </LabelWrapper>
+ </div>
- {/* Endpoint URL (optional) */}
- <div className="space-y-1">
- <LabelWrapper
- label="Endpoint URL"
- helperText="Leave blank for AWS S3. For MinIO, Cloudflare R2, or other S3-compatible services, enter the endpoint URL. Or set the AWS_S3_ENDPOINT env var."
- id="s3-endpoint"
- >
- <Input
- {...register("endpoint_url", { setValueAs: (v) => v?.trim() })}
- id="s3-endpoint"
- placeholder="https://your-minio.example.com"
- autoComplete="off"
- />
- </LabelWrapper>
- </div>
+ {/* Secret Access Key */}
+ <div className="space-y-1">
+ <LabelWrapper
+ label="Secret Access Key"
+ helperText="Or set the AWS_SECRET_ACCESS_KEY env var."
+ id="s3-secret-key"
+ required
+ >
+ <Input
+ {...register("secret_key", { setValueAs: (v) => v?.trim() })}
+ id="s3-secret-key"
+ type="password"
+ placeholder={
+ secretKeySet
+ ? "•••••••• (loaded from env)"
+ : "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
+ }
+ autoComplete="off"
+ />
+ </LabelWrapper>
+ </div>
- {/* Region (optional) */}
- <div className="space-y-1">
- <LabelWrapper
- label="Region"
- helperText="AWS region (e.g. us-east-1, eu-west-1). Default: us-east-1. Or set the AWS_REGION env var."
- id="s3-region"
- >
- <Input
- {...register("region", { setValueAs: (v) => v?.trim() })}
- id="s3-region"
- placeholder="us-east-1"
- autoComplete="off"
- />
- </LabelWrapper>
- </div>
+ {/* Endpoint URL (optional) */}
+ <div className="space-y-1">
+ <LabelWrapper
+ label="Endpoint URL"
+ helperText="Leave blank for AWS S3. For MinIO, Cloudflare R2, or other S3-compatible services, enter the endpoint URL. Or set the AWS_S3_ENDPOINT env var."
+ id="s3-endpoint"
+ >
+ <Input
+ {...register("endpoint_url", { setValueAs: (v) => v?.trim() })}
+ id="s3-endpoint"
+ placeholder="https://your-minio.example.com"
+ autoComplete="off"
+ />
+ </LabelWrapper>
+ </div>
- {/* Test connection */}
- <Button
- type="button"
- variant="outline"
- onClick={onTestConnection}
- disabled={isFetchingBuckets}
- className="w-full"
- >
- {isFetchingBuckets ? (
- <>
- <Loader2 className="h-4 w-4 mr-2 animate-spin" />
- Connecting…
- </>
- ) : buckets !== null ? (
- <>
- <RefreshCcw className="h-4 w-4 mr-2" />
- Refresh Buckets
- </>
- ) : (
- "Test Connection & List Buckets"
- )}
- </Button>
+ {/* Region (optional) */}
+ <div className="space-y-1">
+ <LabelWrapper
+ label="Region"
+ helperText="AWS region (e.g. us-east-1, eu-west-1). Default: us-east-1. Or set the AWS_REGION env var."
+ id="s3-region"
+ >
+ <Input
+ {...register("region", { setValueAs: (v) => v?.trim() })}
+ id="s3-region"
+ placeholder="us-east-1"
+ autoComplete="off"
+ />
+ </LabelWrapper>
+ </div>
- {bucketsError && (
- <p className="text-sm text-destructive rounded-lg border border-destructive/50 p-3">
- {bucketsError}
- </p>
- )}
+ {/* Test connection */}
+ <Button
+ type="button"
+ variant="outline"
+ onClick={onTestConnection}
+ disabled={isFetchingBuckets}
+ className="w-full"
+ >
+ {isFetchingBuckets ? (
+ <>
+ <Loader2 className="h-4 w-4 mr-2 animate-spin" />
+ Connecting…
+ </>
+ ) : buckets !== null ? (
+ <>
+ <RefreshCcw className="h-4 w-4 mr-2" />
+ Refresh Buckets
+ </>
+ ) : (
+ "Test Connection & List Buckets"
+ )}
+ </Button>
- {formError && (
- <p className="text-sm text-destructive rounded-lg border border-destructive/50 p-3">
- {formError}
- </p>
- )}
+ {bucketsError && (
+ <p className="text-sm text-destructive rounded-lg border border-destructive/50 p-3">
+ {bucketsError}
+ </p>
+ )}
- {/* Bucket selector */}
- {buckets !== null && (
- <div className="space-y-2">
- <div className="flex items-center justify-between">
- <Label className="text-sm font-medium">
- Select Buckets to Ingest
- <span className="ml-1 text-muted-foreground font-normal">
- (leave all unchecked to ingest everything)
- </span>
- </Label>
- {buckets.length > 1 && (
- <button
- type="button"
- className="text-xs text-primary underline-offset-2 hover:underline"
- onClick={() =>
- toggleAll(selectedBuckets.length !== buckets.length)
- }
- >
- {selectedBuckets.length === buckets.length
- ? "Deselect all"
- : "Select all"}
- </button>
- )}
- </div>
+ {formError && (
+ <p className="text-sm text-destructive rounded-lg border border-destructive/50 p-3">
+ {formError}
+ </p>
+ )}
- {buckets.length === 0 ? (
- <p className="text-sm text-muted-foreground">
- No buckets found for this account.
- </p>
- ) : (
- <div className="max-h-48 overflow-y-auto rounded-lg border p-3 space-y-2">
- {buckets.map((bucket) => (
- <label
- key={bucket}
- htmlFor={`s3-bucket-${bucket}`}
- className="flex items-center gap-2.5 cursor-pointer select-none"
- >
- <input
- id={`s3-bucket-${bucket}`}
- type="checkbox"
- className="h-4 w-4 rounded border-border accent-primary"
- checked={selectedBuckets.includes(bucket)}
- onChange={(e) =>
- toggleBucket(bucket, e.target.checked)
- }
- />
- <span className="text-sm">{bucket}</span>
- </label>
- ))}
- </div>
- )}
- </div>
+ {/* Bucket selector */}
+ {buckets !== null && (
+ <div className="space-y-2">
+ <div className="flex items-center justify-between">
+ <Label className="text-sm font-medium">
+ Select Buckets to Ingest
+ <span className="ml-1 text-muted-foreground font-normal">
+ (leave all unchecked to ingest everything)
+ </span>
+ </Label>
+ {buckets.length > 1 && (
+ <button
+ type="button"
+ className="text-xs text-primary underline-offset-2 hover:underline"
+ onClick={() =>
+ toggleAll(selectedBuckets.length !== buckets.length)
+ }
+ >
+ {selectedBuckets.length === buckets.length
+ ? "Deselect all"
+ : "Select all"}
+ </button>
)}
+ </div>
+
+ {buckets.length === 0 ? (
+ <p className="text-sm text-muted-foreground">
+ No buckets found for this account.
+ </p>
+ ) : (
+ <div className="max-h-48 overflow-y-auto rounded-lg border p-3 space-y-2">
+ {buckets.map((bucket) => (
+ <label
+ key={bucket}
+ htmlFor={`s3-bucket-${bucket}`}
+ className="flex items-center gap-2.5 cursor-pointer select-none"
+ >
+ <input
+ id={`s3-bucket-${bucket}`}
+ type="checkbox"
+ className="h-4 w-4 rounded border-border accent-primary"
+ checked={selectedBuckets.includes(bucket)}
+ onChange={(e) => toggleBucket(bucket, e.target.checked)}
+ />
+ <span className="text-sm">{bucket}</span>
+ </label>
+ ))}
+ </div>
+ )}
</div>
- );
+ )}
+ </div>
+ );
}
diff --git a/frontend/components/cloud-picker/file-item.tsx b/frontend/components/cloud-picker/file-item.tsx
index b71792685..fc4573745 100644
--- a/frontend/components/cloud-picker/file-item.tsx
+++ b/frontend/components/cloud-picker/file-item.tsx
@@ -1,11 +1,11 @@
"use client";
import { FileText, Folder, Trash2 } from "lucide-react";
+import AwsLogo from "@/components/icons/aws-logo";
import GoogleDriveIcon from "@/components/icons/google-drive-logo";
import IBMCOSIcon from "@/components/icons/ibm-cos-icon";
import OneDriveIcon from "@/components/icons/one-drive-logo";
import SharePointIcon from "@/components/icons/share-point-logo";
-import AwsLogo from "@/components/icons/aws-logo";
import { Button } from "@/components/ui/button";
import type { CloudFile } from "./types";
diff --git a/frontend/components/protected-route.tsx b/frontend/components/protected-route.tsx
index 871d2bf5e..59d0f47c2 100644
--- a/frontend/components/protected-route.tsx
+++ b/frontend/components/protected-route.tsx
@@ -39,7 +39,14 @@ export function ProtectedRoute({ children }: ProtectedRouteProps) {
const redirectUrl = `/login?redirect=${encodeURIComponent(pathname)}`;
router.push(redirectUrl);
}
- }, [isLoading, isAuthenticated, isNoAuthMode, isIbmAuthMode, router, pathname]);
+ }, [
+ isLoading,
+ isAuthenticated,
+ isNoAuthMode,
+ isIbmAuthMode,
+ router,
+ pathname,
+ ]);
if (isLoading) {
return (
diff --git a/frontend/next.config.ts b/frontend/next.config.ts
index 2014ada9f..277ff016a 100644
--- a/frontend/next.config.ts
+++ b/frontend/next.config.ts
@@ -29,9 +29,9 @@ const nextConfig: NextConfig = {
async rewrites() {
return [{ source: "/mcp/:path*", destination: "/api/mcp/:path*" }];
},
- // Ignore ESLint errors during build
- eslint: {
- ignoreDuringBuilds: true,
+ // Ignore TypeScript errors during build (includes ESLint)
+ typescript: {
+ ignoreBuildErrors: true,
},
// Allow cross-origin requests in development
allowedDevOrigins: getAllowedDevOrigins(),
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 3da4e2013..e211d3657 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -34,7 +34,7 @@
"fuse.js": "^7.1.0",
"lucide-react": "^0.525.0",
"motion": "^12.23.12",
- "next": "^15.5.9",
+ "next": "^16.1.7",
"next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
@@ -522,14 +522,22 @@
"url": "https://github.com/sponsors/nzakas"
}
},
+ "node_modules/@img/colour": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
+ "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
+ "optional": true,
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/@img/sharp-darwin-arm64": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.3.tgz",
- "integrity": "sha512-ryFMfvxxpQRsgZJqBd4wsttYQbCxsJksrv9Lw/v798JcQ8+w84mBWuXwl+TT0WJ/WrYOLaYpwQXi3sA9nTIaIg==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
+ "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
"cpu": [
"arm64"
],
- "license": "Apache-2.0",
"optional": true,
"os": [
"darwin"
@@ -541,17 +549,16 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-darwin-arm64": "1.2.0"
+ "@img/sharp-libvips-darwin-arm64": "1.2.4"
}
},
"node_modules/@img/sharp-darwin-x64": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.3.tgz",
- "integrity": "sha512-yHpJYynROAj12TA6qil58hmPmAwxKKC7reUqtGLzsOHfP7/rniNGTL8tjWX6L3CTV4+5P4ypcS7Pp+7OB+8ihA==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",
+ "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",
"cpu": [
"x64"
],
- "license": "Apache-2.0",
"optional": true,
"os": [
"darwin"
@@ -563,17 +570,16 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-darwin-x64": "1.2.0"
+ "@img/sharp-libvips-darwin-x64": "1.2.4"
}
},
"node_modules/@img/sharp-libvips-darwin-arm64": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.0.tgz",
- "integrity": "sha512-sBZmpwmxqwlqG9ueWFXtockhsxefaV6O84BMOrhtg/YqbTaRdqDE7hxraVE3y6gVM4eExmfzW4a8el9ArLeEiQ==",
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
+ "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
"cpu": [
"arm64"
],
- "license": "LGPL-3.0-or-later",
"optional": true,
"os": [
"darwin"
@@ -583,13 +589,12 @@
}
},
"node_modules/@img/sharp-libvips-darwin-x64": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.0.tgz",
- "integrity": "sha512-M64XVuL94OgiNHa5/m2YvEQI5q2cl9d/wk0qFTDVXcYzi43lxuiFTftMR1tOnFQovVXNZJ5TURSDK2pNe9Yzqg==",
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",
+ "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",
"cpu": [
"x64"
],
- "license": "LGPL-3.0-or-later",
"optional": true,
"os": [
"darwin"
@@ -599,13 +604,12 @@
}
},
"node_modules/@img/sharp-libvips-linux-arm": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.0.tgz",
- "integrity": "sha512-mWd2uWvDtL/nvIzThLq3fr2nnGfyr/XMXlq8ZJ9WMR6PXijHlC3ksp0IpuhK6bougvQrchUAfzRLnbsen0Cqvw==",
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",
+ "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",
"cpu": [
"arm"
],
- "license": "LGPL-3.0-or-later",
"optional": true,
"os": [
"linux"
@@ -615,13 +619,12 @@
}
},
"node_modules/@img/sharp-libvips-linux-arm64": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.0.tgz",
- "integrity": "sha512-RXwd0CgG+uPRX5YYrkzKyalt2OJYRiJQ8ED/fi1tq9WQW2jsQIn0tqrlR5l5dr/rjqq6AHAxURhj2DVjyQWSOA==",
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",
+ "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",
"cpu": [
"arm64"
],
- "license": "LGPL-3.0-or-later",
"optional": true,
"os": [
"linux"
@@ -631,13 +634,27 @@
}
},
"node_modules/@img/sharp-libvips-linux-ppc64": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.0.tgz",
- "integrity": "sha512-Xod/7KaDDHkYu2phxxfeEPXfVXFKx70EAFZ0qyUdOjCcxbjqyJOEUpDe6RIyaunGxT34Anf9ue/wuWOqBW2WcQ==",
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",
+ "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",
"cpu": [
"ppc64"
],
- "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-riscv64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",
+ "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",
+ "cpu": [
+ "riscv64"
+ ],
"optional": true,
"os": [
"linux"
@@ -647,13 +664,12 @@
}
},
"node_modules/@img/sharp-libvips-linux-s390x": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.0.tgz",
- "integrity": "sha512-eMKfzDxLGT8mnmPJTNMcjfO33fLiTDsrMlUVcp6b96ETbnJmd4uvZxVJSKPQfS+odwfVaGifhsB07J1LynFehw==",
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",
+ "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",
"cpu": [
"s390x"
],
- "license": "LGPL-3.0-or-later",
"optional": true,
"os": [
"linux"
@@ -663,13 +679,12 @@
}
},
"node_modules/@img/sharp-libvips-linux-x64": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.0.tgz",
- "integrity": "sha512-ZW3FPWIc7K1sH9E3nxIGB3y3dZkpJlMnkk7z5tu1nSkBoCgw2nSRTFHI5pB/3CQaJM0pdzMF3paf9ckKMSE9Tg==",
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",
+ "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",
"cpu": [
"x64"
],
- "license": "LGPL-3.0-or-later",
"optional": true,
"os": [
"linux"
@@ -679,13 +694,12 @@
}
},
"node_modules/@img/sharp-libvips-linuxmusl-arm64": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.0.tgz",
- "integrity": "sha512-UG+LqQJbf5VJ8NWJ5Z3tdIe/HXjuIdo4JeVNADXBFuG7z9zjoegpzzGIyV5zQKi4zaJjnAd2+g2nna8TZvuW9Q==",
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",
+ "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",
"cpu": [
"arm64"
],
- "license": "LGPL-3.0-or-later",
"optional": true,
"os": [
"linux"
@@ -695,13 +709,12 @@
}
},
"node_modules/@img/sharp-libvips-linuxmusl-x64": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.0.tgz",
- "integrity": "sha512-SRYOLR7CXPgNze8akZwjoGBoN1ThNZoqpOgfnOxmWsklTGVfJiGJoC/Lod7aNMGA1jSsKWM1+HRX43OP6p9+6Q==",
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",
+ "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",
"cpu": [
"x64"
],
- "license": "LGPL-3.0-or-later",
"optional": true,
"os": [
"linux"
@@ -711,13 +724,12 @@
}
},
"node_modules/@img/sharp-linux-arm": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.3.tgz",
- "integrity": "sha512-oBK9l+h6KBN0i3dC8rYntLiVfW8D8wH+NPNT3O/WBHeW0OQWCjfWksLUaPidsrDKpJgXp3G3/hkmhptAW0I3+A==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",
+ "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",
"cpu": [
"arm"
],
- "license": "Apache-2.0",
"optional": true,
"os": [
"linux"
@@ -729,17 +741,16 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-arm": "1.2.0"
+ "@img/sharp-libvips-linux-arm": "1.2.4"
}
},
"node_modules/@img/sharp-linux-arm64": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.3.tgz",
- "integrity": "sha512-QdrKe3EvQrqwkDrtuTIjI0bu6YEJHTgEeqdzI3uWJOH6G1O8Nl1iEeVYRGdj1h5I21CqxSvQp1Yv7xeU3ZewbA==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",
+ "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",
"cpu": [
"arm64"
],
- "license": "Apache-2.0",
"optional": true,
"os": [
"linux"
@@ -751,17 +762,16 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-arm64": "1.2.0"
+ "@img/sharp-libvips-linux-arm64": "1.2.4"
}
},
"node_modules/@img/sharp-linux-ppc64": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.3.tgz",
- "integrity": "sha512-GLtbLQMCNC5nxuImPR2+RgrviwKwVql28FWZIW1zWruy6zLgA5/x2ZXk3mxj58X/tszVF69KK0Is83V8YgWhLA==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",
+ "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",
"cpu": [
"ppc64"
],
- "license": "Apache-2.0",
"optional": true,
"os": [
"linux"
@@ -773,17 +783,37 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-ppc64": "1.2.0"
+ "@img/sharp-libvips-linux-ppc64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-riscv64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",
+ "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",
+ "cpu": [
+ "riscv64"
+ ],
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-riscv64": "1.2.4"
}
},
"node_modules/@img/sharp-linux-s390x": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.3.tgz",
- "integrity": "sha512-3gahT+A6c4cdc2edhsLHmIOXMb17ltffJlxR0aC2VPZfwKoTGZec6u5GrFgdR7ciJSsHT27BD3TIuGcuRT0KmQ==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",
+ "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",
"cpu": [
"s390x"
],
- "license": "Apache-2.0",
"optional": true,
"os": [
"linux"
@@ -795,17 +825,16 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-s390x": "1.2.0"
+ "@img/sharp-libvips-linux-s390x": "1.2.4"
}
},
"node_modules/@img/sharp-linux-x64": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.3.tgz",
- "integrity": "sha512-8kYso8d806ypnSq3/Ly0QEw90V5ZoHh10yH0HnrzOCr6DKAPI6QVHvwleqMkVQ0m+fc7EH8ah0BB0QPuWY6zJQ==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",
+ "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",
"cpu": [
"x64"
],
- "license": "Apache-2.0",
"optional": true,
"os": [
"linux"
@@ -817,17 +846,16 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linux-x64": "1.2.0"
+ "@img/sharp-libvips-linux-x64": "1.2.4"
}
},
"node_modules/@img/sharp-linuxmusl-arm64": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.3.tgz",
- "integrity": "sha512-vAjbHDlr4izEiXM1OTggpCcPg9tn4YriK5vAjowJsHwdBIdx0fYRsURkxLG2RLm9gyBq66gwtWI8Gx0/ov+JKQ==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",
+ "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",
"cpu": [
"arm64"
],
- "license": "Apache-2.0",
"optional": true,
"os": [
"linux"
@@ -839,17 +867,16 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linuxmusl-arm64": "1.2.0"
+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4"
}
},
"node_modules/@img/sharp-linuxmusl-x64": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.3.tgz",
- "integrity": "sha512-gCWUn9547K5bwvOn9l5XGAEjVTTRji4aPTqLzGXHvIr6bIDZKNTA34seMPgM0WmSf+RYBH411VavCejp3PkOeQ==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",
+ "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",
"cpu": [
"x64"
],
- "license": "Apache-2.0",
"optional": true,
"os": [
"linux"
@@ -861,20 +888,19 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-libvips-linuxmusl-x64": "1.2.0"
+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4"
}
},
"node_modules/@img/sharp-wasm32": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.3.tgz",
- "integrity": "sha512-+CyRcpagHMGteySaWos8IbnXcHgfDn7pO2fiC2slJxvNq9gDipYBN42/RagzctVRKgxATmfqOSulgZv5e1RdMg==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",
+ "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",
"cpu": [
"wasm32"
],
- "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
"optional": true,
"dependencies": {
- "@emnapi/runtime": "^1.4.4"
+ "@emnapi/runtime": "^1.7.0"
},
"engines": {
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
@@ -884,13 +910,12 @@
}
},
"node_modules/@img/sharp-win32-arm64": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.3.tgz",
- "integrity": "sha512-MjnHPnbqMXNC2UgeLJtX4XqoVHHlZNd+nPt1kRPmj63wURegwBhZlApELdtxM2OIZDRv/DFtLcNhVbd1z8GYXQ==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",
+ "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",
"cpu": [
"arm64"
],
- "license": "Apache-2.0 AND LGPL-3.0-or-later",
"optional": true,
"os": [
"win32"
@@ -903,13 +928,12 @@
}
},
"node_modules/@img/sharp-win32-ia32": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.3.tgz",
- "integrity": "sha512-xuCdhH44WxuXgOM714hn4amodJMZl3OEvf0GVTm0BEyMeA2to+8HEdRPShH0SLYptJY1uBw+SCFP9WVQi1Q/cw==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",
+ "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",
"cpu": [
"ia32"
],
- "license": "Apache-2.0 AND LGPL-3.0-or-later",
"optional": true,
"os": [
"win32"
@@ -922,13 +946,12 @@
}
},
"node_modules/@img/sharp-win32-x64": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.3.tgz",
- "integrity": "sha512-OWwz05d++TxzLEv4VnsTz5CmZ6mI6S05sfQGEMrNrQcOEERbX46332IvE7pO/EUiw7jUrrS40z/M7kPyjfl04g==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",
+ "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",
"cpu": [
"x64"
],
- "license": "Apache-2.0 AND LGPL-3.0-or-later",
"optional": true,
"os": [
"win32"
@@ -1010,10 +1033,9 @@
}
},
"node_modules/@next/env": {
- "version": "15.5.9",
- "resolved": "https://registry.npmjs.org/@next/env/-/env-15.5.9.tgz",
- "integrity": "sha512-4GlTZ+EJM7WaW2HEZcyU317tIQDjkQIyENDLxYJfSWlfqguN+dHkZgyQTV/7ykvobU7yEH5gKvreNrH4B6QgIg==",
- "license": "MIT"
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/@next/env/-/env-16.2.3.tgz",
+ "integrity": "sha512-ZWXyj4uNu4GCWQw9cjRxWlbD+33mcDszIo9iQxFnBX3Wmgq9ulaSJcl6VhuWx5pCWqqD+9W6Wfz7N0lM5lYPMA=="
},
"node_modules/@next/eslint-plugin-next": {
"version": "15.5.12",
@@ -1026,13 +1048,12 @@
}
},
"node_modules/@next/swc-darwin-arm64": {
- "version": "15.5.7",
- "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.5.7.tgz",
- "integrity": "sha512-IZwtxCEpI91HVU/rAUOOobWSZv4P2DeTtNaCdHqLcTJU4wdNXgAySvKa/qJCgR5m6KI8UsKDXtO2B31jcaw1Yw==",
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.3.tgz",
+ "integrity": "sha512-u37KDKTKQ+OQLvY+z7SNXixwo4Q2/IAJFDzU1fYe66IbCE51aDSAzkNDkWmLN0yjTUh4BKBd+hb69jYn6qqqSg==",
"cpu": [
"arm64"
],
- "license": "MIT",
"optional": true,
"os": [
"darwin"
@@ -1042,13 +1063,12 @@
}
},
"node_modules/@next/swc-darwin-x64": {
- "version": "15.5.7",
- "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.5.7.tgz",
- "integrity": "sha512-UP6CaDBcqaCBuiq/gfCEJw7sPEoX1aIjZHnBWN9v9qYHQdMKvCKcAVs4OX1vIjeE+tC5EIuwDTVIoXpUes29lg==",
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.3.tgz",
+ "integrity": "sha512-gHjL/qy6Q6CG3176FWbAKyKh9IfntKZTB3RY/YOJdDFpHGsUDXVH38U4mMNpHVGXmeYW4wj22dMp1lTfmu/bTQ==",
"cpu": [
"x64"
],
- "license": "MIT",
"optional": true,
"os": [
"darwin"
@@ -1058,13 +1078,12 @@
}
},
"node_modules/@next/swc-linux-arm64-gnu": {
- "version": "15.5.7",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.5.7.tgz",
- "integrity": "sha512-NCslw3GrNIw7OgmRBxHtdWFQYhexoUCq+0oS2ccjyYLtcn1SzGzeM54jpTFonIMUjNbHmpKpziXnpxhSWLcmBA==",
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.3.tgz",
+ "integrity": "sha512-U6vtblPtU/P14Y/b/n9ZY0GOxbbIhTFuaFR7F4/uMBidCi2nSdaOFhA0Go81L61Zd6527+yvuX44T4ksnf8T+Q==",
"cpu": [
"arm64"
],
- "license": "MIT",
"optional": true,
"os": [
"linux"
@@ -1074,13 +1093,12 @@
}
},
"node_modules/@next/swc-linux-arm64-musl": {
- "version": "15.5.7",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.5.7.tgz",
- "integrity": "sha512-nfymt+SE5cvtTrG9u1wdoxBr9bVB7mtKTcj0ltRn6gkP/2Nu1zM5ei8rwP9qKQP0Y//umK+TtkKgNtfboBxRrw==",
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.3.tgz",
+ "integrity": "sha512-/YV0LgjHUmfhQpn9bVoGc4x4nan64pkhWR5wyEV8yCOfwwrH630KpvRg86olQHTwHIn1z59uh6JwKvHq1h4QEw==",
"cpu": [
"arm64"
],
- "license": "MIT",
"optional": true,
"os": [
"linux"
@@ -1090,13 +1108,12 @@
}
},
"node_modules/@next/swc-linux-x64-gnu": {
- "version": "15.5.7",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.5.7.tgz",
- "integrity": "sha512-hvXcZvCaaEbCZcVzcY7E1uXN9xWZfFvkNHwbe/n4OkRhFWrs1J1QV+4U1BN06tXLdaS4DazEGXwgqnu/VMcmqw==",
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.3.tgz",
+ "integrity": "sha512-/HiWEcp+WMZ7VajuiMEFGZ6cg0+aYZPqCJD3YJEfpVWQsKYSjXQG06vJP6F1rdA03COD9Fef4aODs3YxKx+RDQ==",
"cpu": [
"x64"
],
- "license": "MIT",
"optional": true,
"os": [
"linux"
@@ -1106,13 +1123,12 @@
}
},
"node_modules/@next/swc-linux-x64-musl": {
- "version": "15.5.7",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.5.7.tgz",
- "integrity": "sha512-4IUO539b8FmF0odY6/SqANJdgwn1xs1GkPO5doZugwZ3ETF6JUdckk7RGmsfSf7ws8Qb2YB5It33mvNL/0acqA==",
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.3.tgz",
+ "integrity": "sha512-Kt44hGJfZSefebhk/7nIdivoDr3Ugp5+oNz9VvF3GUtfxutucUIHfIO0ZYO8QlOPDQloUVQn4NVC/9JvHRk9hw==",
"cpu": [
"x64"
],
- "license": "MIT",
"optional": true,
"os": [
"linux"
@@ -1122,13 +1138,12 @@
}
},
"node_modules/@next/swc-win32-arm64-msvc": {
- "version": "15.5.7",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.5.7.tgz",
- "integrity": "sha512-CpJVTkYI3ZajQkC5vajM7/ApKJUOlm6uP4BknM3XKvJ7VXAvCqSjSLmM0LKdYzn6nBJVSjdclx8nYJSa3xlTgQ==",
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.3.tgz",
+ "integrity": "sha512-O2NZ9ie3Tq6xj5Z5CSwBT3+aWAMW2PIZ4egUi9MaWLkwaehgtB7YZjPm+UpcNpKOme0IQuqDcor7BsW6QBiQBw==",
"cpu": [
"arm64"
],
- "license": "MIT",
"optional": true,
"os": [
"win32"
@@ -1138,13 +1153,12 @@
}
},
"node_modules/@next/swc-win32-x64-msvc": {
- "version": "15.5.7",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.5.7.tgz",
- "integrity": "sha512-gMzgBX164I6DN+9/PGA+9dQiwmTkE4TloBNx8Kv9UiGARsr9Nba7IpcBRA1iTV9vwlYnrE3Uy6I7Aj6qLjQuqw==",
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.2.3.tgz",
+ "integrity": "sha512-Ibm29/GgB/ab5n7XKqlStkm54qqZE8v2FnijUPBgrd67FWrac45o/RsNlaOWjme/B5UqeWt/8KM4aWBwA1D2Kw==",
"cpu": [
"x64"
],
- "license": "MIT",
"optional": true,
"os": [
"win32"
@@ -3067,29 +3081,6 @@
"typescript": ">=4.8.4 <6.0.0"
}
},
- "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
- "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "18 || 20 || >=22"
- }
- },
- "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
- "version": "5.0.4",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.4.tgz",
- "integrity": "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "balanced-match": "^4.0.2"
- },
- "engines": {
- "node": "18 || 20 || >=22"
- }
- },
"node_modules/@typescript-eslint/typescript-estree/node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
@@ -3124,19 +3115,6 @@
"url": "https://github.com/sponsors/isaacs"
}
},
- "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {
- "version": "7.7.4",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
- "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
- "dev": true,
- "license": "ISC",
- "bin": {
- "semver": "bin/semver.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
"node_modules/@typescript-eslint/utils": {
"version": "8.56.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.56.1.tgz",
@@ -3480,10 +3458,9 @@
]
},
"node_modules/@xmldom/xmldom": {
- "version": "0.9.8",
- "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.8.tgz",
- "integrity": "sha512-p96FSY54r+WJ50FIOsCOjyj/wavs8921hG5+kVMmZgKcvIKxMXHTrjNJvRgWa/zuX3B6t2lijLNFaOyuxUH+2A==",
- "license": "MIT",
+ "version": "0.9.9",
+ "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.9.tgz",
+ "integrity": "sha512-qycIHAucxy/LXAYIjmLmtQ8q9GPnMbnjG1KXhWm9o5sCr6pOYDATkMPiTNa6/v8eELyqOQ2FsEqeoFYmgv/gJg==",
"engines": {
"node": ">=14.6"
}
@@ -3922,10 +3899,24 @@
}
},
"node_modules/balanced-match": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
- "license": "MIT"
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.10.18",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.18.tgz",
+ "integrity": "sha512-VSnGQAOLtP5mib/DPyg2/t+Tlv65NTBz83BJBJvmLVHHuKJVaDOBvJJykiT5TR++em5nfAySPccDZDa4oSrn8A==",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
},
"node_modules/binary-extensions": {
"version": "2.3.0",
@@ -3940,14 +3931,15 @@
}
},
"node_modules/brace-expansion": {
- "version": "1.1.12",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
- "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
- "dev": true,
+ "version": "5.0.5",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz",
+ "integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==",
"license": "MIT",
"dependencies": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
}
},
"node_modules/braces": {
@@ -4274,20 +4266,6 @@
"react-dom": "^18 || ^19 || ^19.0.0-rc"
}
},
- "node_modules/color": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",
- "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "color-convert": "^2.0.1",
- "color-string": "^1.9.0"
- },
- "engines": {
- "node": ">=12.5.0"
- }
- },
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
@@ -4306,17 +4284,6 @@
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"license": "MIT"
},
- "node_modules/color-string": {
- "version": "1.9.1",
- "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",
- "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "color-name": "^1.0.0",
- "simple-swizzle": "^0.2.2"
- }
- },
"node_modules/colorette": {
"version": "2.0.20",
"resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz",
@@ -4343,13 +4310,6 @@
"node": ">=18"
}
},
- "node_modules/concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/cross-spawn": {
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
@@ -4536,10 +4496,9 @@
}
},
"node_modules/detect-libc": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz",
- "integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==",
- "license": "Apache-2.0",
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
"optional": true,
"engines": {
"node": ">=8"
@@ -5514,11 +5473,10 @@
}
},
"node_modules/flatted": {
- "version": "3.3.4",
- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.4.tgz",
- "integrity": "sha512-3+mMldrTAPdta5kjX2G2J7iX4zxtnwpdA8Tr2ZSjkyPSanvbZAcy6flmtnXbEybHrDcU9641lxrMfFuUxVz9vA==",
- "dev": true,
- "license": "ISC"
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
+ "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
+ "dev": true
},
"node_modules/for-each": {
"version": "0.3.5",
@@ -5827,22 +5785,12 @@
"node": ">=10.13.0"
}
},
- "node_modules/glob/node_modules/brace-expansion": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
- "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
- "license": "MIT",
- "dependencies": {
- "balanced-match": "^1.0.0"
- }
- },
"node_modules/glob/node_modules/minimatch": {
- "version": "9.0.5",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
- "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
- "license": "ISC",
+ "version": "9.0.9",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz",
+ "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==",
"dependencies": {
- "brace-expansion": "^2.0.1"
+ "brace-expansion": "^2.0.2"
},
"engines": {
"node": ">=16 || 14 >=14.17"
@@ -6330,13 +6278,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/is-arrayish": {
- "version": "0.3.2",
- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
- "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==",
- "license": "MIT",
- "optional": true
- },
"node_modules/is-async-function": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz",
@@ -7000,19 +6941,6 @@
"jiti": "lib/jiti-cli.mjs"
}
},
- "node_modules/knip/node_modules/picomatch": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
- "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
"node_modules/knip/node_modules/strip-json-comments": {
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.0.3.tgz",
@@ -8430,13 +8358,13 @@
"license": "MIT"
},
"node_modules/next": {
- "version": "15.5.9",
- "resolved": "https://registry.npmjs.org/next/-/next-15.5.9.tgz",
- "integrity": "sha512-agNLK89seZEtC5zUHwtut0+tNrc0Xw4FT/Dg+B/VLEo9pAcS9rtTKpek3V6kVcVwsB2YlqMaHdfZL4eLEVYuCg==",
- "license": "MIT",
+ "version": "16.2.3",
+ "resolved": "https://registry.npmjs.org/next/-/next-16.2.3.tgz",
+ "integrity": "sha512-9V3zV4oZFza3PVev5/poB9g0dEafVcgNyQ8eTRop8GvxZjV2G15FC5ARuG1eFD42QgeYkzJBJzHghNP8Ad9xtA==",
"dependencies": {
- "@next/env": "15.5.9",
+ "@next/env": "16.2.3",
"@swc/helpers": "0.5.15",
+ "baseline-browser-mapping": "^2.9.19",
"caniuse-lite": "^1.0.30001579",
"postcss": "8.4.31",
"styled-jsx": "5.1.6"
@@ -8445,18 +8373,18 @@
"next": "dist/bin/next"
},
"engines": {
- "node": "^18.18.0 || ^19.8.0 || >= 20.0.0"
+ "node": ">=20.9.0"
},
"optionalDependencies": {
- "@next/swc-darwin-arm64": "15.5.7",
- "@next/swc-darwin-x64": "15.5.7",
- "@next/swc-linux-arm64-gnu": "15.5.7",
- "@next/swc-linux-arm64-musl": "15.5.7",
- "@next/swc-linux-x64-gnu": "15.5.7",
- "@next/swc-linux-x64-musl": "15.5.7",
- "@next/swc-win32-arm64-msvc": "15.5.7",
- "@next/swc-win32-x64-msvc": "15.5.7",
- "sharp": "^0.34.3"
+ "@next/swc-darwin-arm64": "16.2.3",
+ "@next/swc-darwin-x64": "16.2.3",
+ "@next/swc-linux-arm64-gnu": "16.2.3",
+ "@next/swc-linux-arm64-musl": "16.2.3",
+ "@next/swc-linux-x64-gnu": "16.2.3",
+ "@next/swc-linux-x64-musl": "16.2.3",
+ "@next/swc-win32-arm64-msvc": "16.2.3",
+ "@next/swc-win32-x64-msvc": "16.2.3",
+ "sharp": "^0.34.5"
},
"peerDependencies": {
"@opentelemetry/api": "^1.1.0",
@@ -8947,12 +8875,13 @@
"license": "ISC"
},
"node_modules/picomatch": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
"license": "MIT",
+ "peer": true,
"engines": {
- "node": ">=8.6"
+ "node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/jonschlinkert"
@@ -9780,11 +9709,10 @@
"license": "MIT"
},
"node_modules/semver": {
- "version": "7.7.2",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
- "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
+ "version": "7.7.4",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
"devOptional": true,
- "license": "ISC",
"bin": {
"semver": "bin/semver.js"
},
@@ -9842,16 +9770,15 @@
}
},
"node_modules/sharp": {
- "version": "0.34.3",
- "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.3.tgz",
- "integrity": "sha512-eX2IQ6nFohW4DbvHIOLRB3MHFpYqaqvXd3Tp5e/T/dSH83fxaNJQRvDMhASmkNTsNTVF2/OOopzRCt7xokgPfg==",
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",
+ "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",
"hasInstallScript": true,
- "license": "Apache-2.0",
"optional": true,
"dependencies": {
- "color": "^4.2.3",
- "detect-libc": "^2.0.4",
- "semver": "^7.7.2"
+ "@img/colour": "^1.0.0",
+ "detect-libc": "^2.1.2",
+ "semver": "^7.7.3"
},
"engines": {
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
@@ -9860,28 +9787,30 @@
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
- "@img/sharp-darwin-arm64": "0.34.3",
- "@img/sharp-darwin-x64": "0.34.3",
- "@img/sharp-libvips-darwin-arm64": "1.2.0",
- "@img/sharp-libvips-darwin-x64": "1.2.0",
- "@img/sharp-libvips-linux-arm": "1.2.0",
- "@img/sharp-libvips-linux-arm64": "1.2.0",
- "@img/sharp-libvips-linux-ppc64": "1.2.0",
- "@img/sharp-libvips-linux-s390x": "1.2.0",
- "@img/sharp-libvips-linux-x64": "1.2.0",
- "@img/sharp-libvips-linuxmusl-arm64": "1.2.0",
- "@img/sharp-libvips-linuxmusl-x64": "1.2.0",
- "@img/sharp-linux-arm": "0.34.3",
- "@img/sharp-linux-arm64": "0.34.3",
- "@img/sharp-linux-ppc64": "0.34.3",
- "@img/sharp-linux-s390x": "0.34.3",
- "@img/sharp-linux-x64": "0.34.3",
- "@img/sharp-linuxmusl-arm64": "0.34.3",
- "@img/sharp-linuxmusl-x64": "0.34.3",
- "@img/sharp-wasm32": "0.34.3",
- "@img/sharp-win32-arm64": "0.34.3",
- "@img/sharp-win32-ia32": "0.34.3",
- "@img/sharp-win32-x64": "0.34.3"
+ "@img/sharp-darwin-arm64": "0.34.5",
+ "@img/sharp-darwin-x64": "0.34.5",
+ "@img/sharp-libvips-darwin-arm64": "1.2.4",
+ "@img/sharp-libvips-darwin-x64": "1.2.4",
+ "@img/sharp-libvips-linux-arm": "1.2.4",
+ "@img/sharp-libvips-linux-arm64": "1.2.4",
+ "@img/sharp-libvips-linux-ppc64": "1.2.4",
+ "@img/sharp-libvips-linux-riscv64": "1.2.4",
+ "@img/sharp-libvips-linux-s390x": "1.2.4",
+ "@img/sharp-libvips-linux-x64": "1.2.4",
+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4",
+ "@img/sharp-linux-arm": "0.34.5",
+ "@img/sharp-linux-arm64": "0.34.5",
+ "@img/sharp-linux-ppc64": "0.34.5",
+ "@img/sharp-linux-riscv64": "0.34.5",
+ "@img/sharp-linux-s390x": "0.34.5",
+ "@img/sharp-linux-x64": "0.34.5",
+ "@img/sharp-linuxmusl-arm64": "0.34.5",
+ "@img/sharp-linuxmusl-x64": "0.34.5",
+ "@img/sharp-wasm32": "0.34.5",
+ "@img/sharp-win32-arm64": "0.34.5",
+ "@img/sharp-win32-ia32": "0.34.5",
+ "@img/sharp-win32-x64": "0.34.5"
}
},
"node_modules/shebang-command": {
@@ -9993,16 +9922,6 @@
"url": "https://github.com/sponsors/isaacs"
}
},
- "node_modules/simple-swizzle": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
- "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==",
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "is-arrayish": "^0.3.1"
- }
- },
"node_modules/slice-ansi": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz",
@@ -10047,11 +9966,10 @@
}
},
"node_modules/smol-toml": {
- "version": "1.5.2",
- "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.5.2.tgz",
- "integrity": "sha512-QlaZEqcAH3/RtNyet1IPIYPsEWAaYyXXv1Krsi+1L/QHppjX4Ifm8MQsBISz9vE8cHicIq3clogsheili5vhaQ==",
+ "version": "1.6.1",
+ "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.6.1.tgz",
+ "integrity": "sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==",
"dev": true,
- "license": "BSD-3-Clause",
"engines": {
"node": ">= 18"
},
@@ -10089,12 +10007,11 @@
}
},
"node_modules/speech-rule-engine": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/speech-rule-engine/-/speech-rule-engine-4.1.2.tgz",
- "integrity": "sha512-S6ji+flMEga+1QU79NDbwZ8Ivf0S/MpupQQiIC0rTpU/ZTKgcajijJJb1OcByBQDjrXCN1/DJtGz4ZJeBMPGJw==",
- "license": "Apache-2.0",
+ "version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/speech-rule-engine/-/speech-rule-engine-4.1.3.tgz",
+ "integrity": "sha512-SBMgkuJYvP4F62daRfBNwYC2nXTEhNXAfsBZ/BB7Ly85/KnbnjmKM7/45ZrFbH6jIMiAliDUDPSZFUuXDvcg6A==",
"dependencies": {
- "@xmldom/xmldom": "0.9.8",
+ "@xmldom/xmldom": "0.9.9",
"commander": "13.1.0",
"wicked-good-xpath": "1.3.0"
},
@@ -10675,20 +10592,6 @@
}
}
},
- "node_modules/tinyglobby/node_modules/picomatch": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
- "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
"node_modules/to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
@@ -11489,15 +11392,17 @@
}
},
"node_modules/yaml": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
- "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
- "license": "ISC",
+ "version": "2.8.3",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz",
+ "integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==",
"bin": {
"yaml": "bin.mjs"
},
"engines": {
"node": ">= 14.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/eemeli"
}
},
"node_modules/yocto-queue": {
diff --git a/frontend/package.json b/frontend/package.json
index 24e64d4f6..f221883f3 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -9,7 +9,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
- "lint": "biome lint && next lint",
+ "lint": "biome check .",
"lint:fix": "biome check --write",
"format": "biome format --write",
"knip": "knip",
@@ -42,7 +42,7 @@
"fuse.js": "^7.1.0",
"lucide-react": "^0.525.0",
"motion": "^12.23.12",
- "next": "^15.5.9",
+ "next": "^16.1.7",
"next-themes": "^0.4.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
@@ -78,6 +78,10 @@
"tailwindcss": "^3.4.17",
"typescript": "^5"
},
+ "overrides": {
+ "brace-expansion": "5.0.5",
+ "picomatch": "4.0.4"
+ },
"lint-staged": {
"**/*.{js,ts,jsx,tsx,css}": "biome check --write --files-ignore-unknown=true"
}
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index d8b93235f..705f5ce5e 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -11,7 +11,7 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
- "jsx": "preserve",
+ "jsx": "react-jsx",
"incremental": true,
"plugins": [
{
@@ -22,6 +22,12 @@
"@/*": ["./*"]
}
},
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
+ "include": [
+ "next-env.d.ts",
+ "**/*.ts",
+ "**/*.tsx",
+ ".next/types/**/*.ts",
+ ".next/dev/types/**/*.ts"
+ ],
"exclude": ["node_modules"]
}