Skip to content

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

Python

dead code cleanup (#1873)

Mike Fortmane13379b3f274
diff --git a/frontend/app/api/mutations/useDeleteDocument.ts b/frontend/app/api/mutations/useDeleteDocument.ts
index 20039ad07..8f92c579c 100644
--- a/frontend/app/api/mutations/useDeleteDocument.ts
+++ b/frontend/app/api/mutations/useDeleteDocument.ts
@@ -13,7 +13,7 @@ interface DeleteDocumentResponse {
message: string;
}
-export async function deleteDocumentByFilename(
+async function deleteDocumentByFilename(
filename: string,
): Promise<DeleteDocumentResponse> {
const response = await fetch("/api/documents/delete-by-filename", {
diff --git a/frontend/app/api/mutations/useUpdateSettingsMutation.ts b/frontend/app/api/mutations/useUpdateSettingsMutation.ts
index 1cd1377a0..569a105b6 100644
--- a/frontend/app/api/mutations/useUpdateSettingsMutation.ts
+++ b/frontend/app/api/mutations/useUpdateSettingsMutation.ts
@@ -51,7 +51,7 @@ export interface AffectedEmbeddingModel {
// Typed error that preserves the structured 409 payload returned by
// POST /api/settings when removing a provider whose embedding models are
// still referenced by indexed documents.
-export class UpdateSettingsError extends Error {
+class UpdateSettingsError extends Error {
readonly status: number;
readonly code?: string;
readonly affectedProvider?: string;
diff --git a/frontend/app/api/queries/useGetConnectorsQuery.ts b/frontend/app/api/queries/useGetConnectorsQuery.ts
index d0a0aa27a..18417f06b 100644
--- a/frontend/app/api/queries/useGetConnectorsQuery.ts
+++ b/frontend/app/api/queries/useGetConnectorsQuery.ts
@@ -15,7 +15,7 @@ import {
} from "@/lib/brand";
/** Prefix for all connector list queries (see `connectorsQueryKey`). */
-export const CONNECTORS_QUERY_KEY_ROOT = ["connectors"] as const;
+const CONNECTORS_QUERY_KEY_ROOT = ["connectors"] as const;
/**
* Cache key from policy + deployment filter context (inputs to `getConnectors`).
@@ -23,7 +23,7 @@ export const CONNECTORS_QUERY_KEY_ROOT = ["connectors"] as const;
* `applyWorkspacePolicy`: SaaS workspace policy path in the query fn.
* `isCloudBrand` / `isIbmAuthMode`: client deployment visibility (`isConnectorTypeVisible`).
*/
-export function connectorsQueryKey(
+function connectorsQueryKey(
cloudContext: boolean,
applyWorkspacePolicy: boolean,
isCloudBrand: boolean,
@@ -80,7 +80,7 @@ export function updateAllConnectorQueries(
}
/** Shared policy context for connector list query key + optimistic updates. */
-export function useConnectorsQueryKey() {
+function useConnectorsQueryKey() {
const { isIbmAuthMode, cloudContext } = useAuth();
const { brand } = useBrand();
const isCloudBrand = useIsCloudBrand();
@@ -260,7 +260,7 @@ export interface ConnectorAccessItem {
export const CONNECTOR_USER_ACCESS_KEY = ["connector-user-access"] as const;
-export function connectorUserAccessQueryKey(
+function connectorUserAccessQueryKey(
isCloudBrand: boolean,
isIbmAuthMode: boolean,
) {
diff --git a/frontend/app/api/queries/useGetOnboardingStatusQuery.ts b/frontend/app/api/queries/useGetOnboardingStatusQuery.ts
deleted file mode 100644
index e68ec99c8..000000000
--- a/frontend/app/api/queries/useGetOnboardingStatusQuery.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import { type UseQueryOptions, useQuery } from "@tanstack/react-query";
-
-export interface OnboardingStatus {
- onboarded: boolean;
- /** Step indicator from OnboardingState — historically an integer
- * index, may become a named step in future. Treat as opaque. */
- current_step: number | string | null;
-}
-
-/**
- * Public query — hits GET /api/onboarding-status. The endpoint is
- * unauthenticated so this works pre-login and is used by the auth
- * context to decide between rendering the onboarding wizard and the
- * login flow.
- */
-export const useGetOnboardingStatusQuery = (
- options?: Omit<UseQueryOptions<OnboardingStatus>, "queryKey" | "queryFn">,
-) => {
- async function fetchStatus(): Promise<OnboardingStatus> {
- const response = await fetch("/api/onboarding-status");
- if (response.ok) return await response.json();
- // Conservative fallback: assume NOT onboarded if the endpoint is
- // unreachable. Avoids accidentally hiding the wizard on a brand-new
- // install whose backend is still booting.
- return { onboarded: false, current_step: null };
- }
-
- return useQuery({
- queryKey: ["onboarding-status"],
- queryFn: fetchStatus,
- staleTime: Infinity, // doesn't change during a session
- ...options,
- });
-};
diff --git a/frontend/app/api/queries/useGetTaskQuery.ts b/frontend/app/api/queries/useGetTaskQuery.ts
index 692585782..cf36e598a 100644
--- a/frontend/app/api/queries/useGetTaskQuery.ts
+++ b/frontend/app/api/queries/useGetTaskQuery.ts
@@ -1,6 +1,7 @@
import { type UseQueryOptions, useQuery } from "@tanstack/react-query";
import type { Task } from "@/app/api/queries/useGetTasksQuery";
-export const TASK_DETAIL_QUERY_KEY = ["tasks", "detail"] as const;
+
+const TASK_DETAIL_QUERY_KEY = ["tasks", "detail"] as const;
export function taskDetailQueryKey(taskId: string) {
return [...TASK_DETAIL_QUERY_KEY, taskId] as const;
diff --git a/frontend/app/settings/_components/model-selectors.tsx b/frontend/app/settings/_components/model-selectors.tsx
deleted file mode 100644
index 14c8b9695..000000000
--- a/frontend/app/settings/_components/model-selectors.tsx
+++ /dev/null
@@ -1,136 +0,0 @@
-import { type ReactNode, useEffect } from "react";
-import { Controller, useFormContext } from "react-hook-form";
-import type { ModelOption } from "@/app/api/queries/useGetModelsQuery";
-import { ModelSelector } from "@/app/onboarding/_components/model-selector";
-import { LabelWrapper } from "@/components/label-wrapper";
-
-interface ModelSelectorsProps {
- languageModels?: ModelOption[];
- embeddingModels?: ModelOption[];
- isLoadingModels: boolean;
- logo: ReactNode;
- languageModelName?: string;
- embeddingModelName?: string;
-}
-
-export function ModelSelectors({
- languageModels,
- embeddingModels,
- isLoadingModels,
- logo,
- languageModelName = "llmModel",
- embeddingModelName = "embeddingModel",
-}: ModelSelectorsProps) {
- const {
- control,
- watch,
- formState: { errors },
- setValue,
- } = useFormContext<Record<string, any>>();
-
- const llmModel = watch(languageModelName);
- const embeddingModel = watch(embeddingModelName);
-
- const defaultLlmModel =
- languageModels?.find((model) => model.default)?.value ||
- languageModels?.[0]?.value ||
- "";
- const defaultEmbeddingModel =
- embeddingModels?.find((model) => model.default)?.value ||
- embeddingModels?.[0]?.value ||
- "";
-
- useEffect(() => {
- if (defaultLlmModel && !llmModel) {
- setValue(languageModelName, defaultLlmModel, { shouldValidate: true });
- }
- if (defaultEmbeddingModel && !embeddingModel) {
- setValue(embeddingModelName, defaultEmbeddingModel, {
- shouldValidate: true,
- });
- }
- }, [
- defaultLlmModel,
- defaultEmbeddingModel,
- llmModel,
- embeddingModel,
- setValue,
- languageModelName,
- embeddingModelName,
- ]);
-
- return (
- <>
- {embeddingModels !== undefined && (
- <div className="space-y-2">
- <LabelWrapper
- label="Embedding model"
- helperText="Model used for knowledge ingest and retrieval"
- id="embedding-model"
- required={true}
- >
- <Controller
- control={control}
- name={embeddingModelName}
- rules={{ required: "Embedding model is required" }}
- render={({ field }) => (
- <ModelSelector
- options={embeddingModels}
- icon={logo}
- noOptionsPlaceholder={
- isLoadingModels
- ? "Loading models..."
- : "No embedding models detected"
- }
- placeholder="Select an embedding model"
- value={field.value}
- onValueChange={field.onChange}
- />
- )}
- />
- </LabelWrapper>
- {embeddingModels.length > 0 && errors[embeddingModelName] && (
- <p className="text-sm text-destructive">
- {errors[embeddingModelName]?.message as string}
- </p>
- )}
- </div>
- )}
- {languageModels !== undefined && (
- <div className="space-y-2">
- <LabelWrapper
- label="Language model"
- helperText="Model used for chat"
- id="language-model"
- required={true}
- >
- <Controller
- control={control}
- name={languageModelName}
- rules={{ required: "Language model is required" }}
- render={({ field }) => (
- <ModelSelector
- options={languageModels}
- icon={logo}
- noOptionsPlaceholder={
- isLoadingModels
- ? "Loading models..."
- : "No language models detected"
- }
- placeholder="Select a language model"
- value={field.value}
- onValueChange={field.onChange}
- />
- )}
- />
- </LabelWrapper>
- {languageModels.length > 0 && errors[languageModelName] && (
- <p className="text-sm text-destructive">
- {errors[languageModelName]?.message as string}
- </p>
- )}
- </div>
- )}
- </>
- );
-}
diff --git a/frontend/app/settings/_helpers/model-select-item.tsx b/frontend/app/settings/_helpers/model-select-item.tsx
index 3fd36727d..450adab48 100644
--- a/frontend/app/settings/_helpers/model-select-item.tsx
+++ b/frontend/app/settings/_helpers/model-select-item.tsx
@@ -10,7 +10,7 @@ interface ModelSelectItemProps {
provider?: ModelProvider;
}
-export function ModelSelectItem({ model, provider }: ModelSelectItemProps) {
+function ModelSelectItem({ model, provider }: ModelSelectItemProps) {
return (
<SelectItem value={model.value}>
<div className="flex items-center gap-2">
diff --git a/frontend/components/brand-switcher.tsx b/frontend/components/brand-switcher.tsx
index 464aaf3b2..631bfad94 100644
--- a/frontend/components/brand-switcher.tsx
+++ b/frontend/components/brand-switcher.tsx
@@ -36,5 +36,3 @@ export function BrandSwitcher() {
</div>
);
}
-
-export default BrandSwitcher;
diff --git a/frontend/components/cloud-picker/onedrive-v8-handler.ts b/frontend/components/cloud-picker/onedrive-v8-handler.ts
deleted file mode 100644
index 2afd4746d..000000000
--- a/frontend/components/cloud-picker/onedrive-v8-handler.ts
+++ /dev/null
@@ -1,470 +0,0 @@
-"use client";
-
-import { CloudFile } from "./types";
-
-/**
- * OneDrive File Picker v8 Handler for Personal OneDrive
- *
- * Uses Microsoft's File Picker v8 which communicates via postMessage.
- * This is for personal Microsoft accounts (consumer OneDrive).
- *
- * Reference: https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/
- */
-
-interface PickerOptions {
- sdk: string;
- entry: {
- oneDrive?: {
- files?: { folder?: string };
- };
- };
- authentication: Record<string, unknown>;
- messaging: {
- origin: string;
- channelId: string;
- };
- selection?: {
- mode?: "single" | "multiple";
- };
- typesAndSources?: {
- mode?: "files" | "folders" | "all";
- };
- commands?: {
- pick?: {
- action?: "select" | "share" | "download";
- select?: {
- urls?: {
- download?: boolean;
- };
- };
- };
- };
-}
-
-interface PickedItem {
- id: string;
- name: string;
- size?: number;
- file?: {
- mimeType?: string;
- };
- folder?: Record<string, unknown>;
- webUrl?: string;
- lastModifiedDateTime?: string;
- "@microsoft.graph.downloadUrl"?: string;
- parentReference?: {
- driveId: string;
- };
-}
-
-interface PickCommand {
- command: "pick";
- items: PickedItem[];
-}
-
-interface AuthenticateCommand {
- command: "authenticate";
- resource: string;
- type: string;
-}
-
-interface CloseCommand {
- command: "close";
-}
-
-type PickerCommand =
- | PickCommand
- | AuthenticateCommand
- | CloseCommand
- | { command: string };
-
-export class OneDriveV8Handler {
- private win: Window | null = null;
- private port: MessagePort | null = null;
- private channelId: string;
- private accessToken: string;
- private clientId: string;
- private onFileSelected: ((files: CloudFile[]) => void) | null = null;
- private onPickerStateChange: ((isOpen: boolean) => void) | null = null;
- private messageListener: ((event: MessageEvent) => void) | null = null;
-
- // OneDrive personal picker URL
- private static readonly ONEDRIVE_PICKER_URL =
- "https://onedrive.live.com/picker";
-
- constructor(
- accessToken: string,
- clientId: string,
- onPickerStateChange?: (isOpen: boolean) => void,
- ) {
- this.accessToken = accessToken;
- this.clientId = clientId;
- this.channelId = this.generateUUID();
- this.onPickerStateChange = onPickerStateChange || null;
- }
-
- private generateUUID(): string {
- // Generate a UUID v4
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
- const r = (Math.random() * 16) | 0;
- const v = c === "x" ? r : (r & 0x3) | 0x8;
- return v.toString(16);
- });
- }
-
- async loadPickerApi(): Promise<boolean> {
- // v8 picker doesn't require loading an SDK - it's all postMessage based
- // We just need to verify we have the required parameters
- return !!(this.accessToken && this.clientId);
- }
-
- openPicker(onFileSelected: (files: CloudFile[]) => void): void {
- this.onFileSelected = onFileSelected;
- this.onPickerStateChange?.(true);
-
- try {
- // Generate a new channel ID for this picker instance
- this.channelId = this.generateUUID();
-
- // Open popup window (recommended size by Microsoft: 1080x680, min: 250x230)
- this.win = window.open("", "OneDrivePicker", "width=1080,height=680");
-
- if (!this.win) {
- console.error(
- "Failed to open OneDrive picker popup - popup may be blocked",
- );
- this.onPickerStateChange?.(false);
- return;
- }
-
- // Create picker configuration for personal OneDrive
- const options: PickerOptions = {
- sdk: "8.0",
- entry: {
- // For personal OneDrive, use oneDrive entry
- oneDrive: {
- files: {},
- },
- },
- // Empty authentication object tells picker we'll provide tokens via messaging
- authentication: {},
- messaging: {
- origin: window.location.origin,
- channelId: this.channelId,
- },
- selection: {
- mode: "multiple",
- },
- typesAndSources: {
- mode: "all", // Allow both files and folders
- },
- commands: {
- pick: {
- action: "select",
- },
- },
- };
-
- // Build the URL with configuration in query string
- const queryString = new URLSearchParams({
- filePicker: JSON.stringify(options),
- locale: "en-us",
- });
-
- const pickerUrl = `${OneDriveV8Handler.ONEDRIVE_PICKER_URL}?${queryString}`;
- console.log("OneDrive v8 picker: Opening picker at", pickerUrl);
-
- // Create and submit form to the picker URL
- const form = this.win.document.createElement("form");
- form.setAttribute("action", pickerUrl);
- form.setAttribute("method", "POST");
-
- // Add access token as hidden input
- const tokenInput = this.win.document.createElement("input");
- tokenInput.setAttribute("type", "hidden");
- tokenInput.setAttribute("name", "access_token");
- tokenInput.setAttribute("value", this.accessToken);
- form.appendChild(tokenInput);
-
- // Append form to popup body and submit
- this.win.document.body.appendChild(form);
- form.submit();
-
- // Setup message listener for communication with picker
- this.messageListener = this.handleWindowMessage.bind(this);
- window.addEventListener("message", this.messageListener);
-
- // Monitor if popup is closed by user
- const checkClosed = setInterval(() => {
- if (this.win?.closed) {
- clearInterval(checkClosed);
- this.cleanup();
- }
- }, 500);
- } catch (error) {
- console.error("Error opening OneDrive v8 picker:", error);
- this.cleanup();
- }
- }
-
- private handleWindowMessage(event: MessageEvent): void {
- // Verify the message is from our picker window
- if (event.source !== this.win) {
- return;
- }
-
- const message = event.data;
-
- // Handle initialization message
- if (message.type === "initialize" && message.channelId === this.channelId) {
- console.log("OneDrive v8 picker: Received initialize message");
-
- // Get the MessagePort for further communication
- this.port = event.ports[0];
-
- if (this.port) {
- // Setup port message handler
- this.port.addEventListener(
- "message",
- this.handlePortMessage.bind(this),
- );
- this.port.start();
-
- // Activate the picker
- this.port.postMessage({ type: "activate" });
- console.log("OneDrive v8 picker: Activated");
- }
- }
- }
-
- private handlePortMessage(event: MessageEvent): void {
- const payload = event.data;
- console.log("OneDrive v8 picker: Port message received:", payload.type);
-
- switch (payload.type) {
- case "notification":
- this.handleNotification(payload.data);
- break;
-
- case "command":
- this.handleCommand(payload.id, payload.data);
- break;
- }
- }
-
- private handleNotification(notification: { notification: string }): void {
- console.log("OneDrive v8 picker: Notification:", notification.notification);
-
- if (notification.notification === "page-loaded") {
- console.log("OneDrive v8 picker: Page loaded and ready");
- }
- }
-
- private handleCommand(id: string, command: PickerCommand): void {
- // All commands must be acknowledged first
- this.port?.postMessage({
- type: "acknowledge",
- id: id,
- });
-
- console.log("OneDrive v8 picker: Command:", command.command);
-
- switch (command.command) {
- case "authenticate":
- this.handleAuthenticate(id, command as AuthenticateCommand);
- break;
-
- case "pick":
- this.handlePick(id, command as PickCommand);
- break;
-
- case "close":
- this.handleClose(id);
- break;
-
- default:
- // Unknown command - send error response
- this.port?.postMessage({
- type: "result",
- id: id,
- data: {
- result: "error",
- error: {
- code: "unsupportedCommand",
- message: `Command not supported: ${command.command}`,
- },
- },
- });
- }
- }
-
- private handleAuthenticate(id: string, command: AuthenticateCommand): void {
- console.log(
- "OneDrive v8 picker: Auth request for resource:",
- command.resource,
- );
-
- // For now, we use the same token for all requests
- // The token should be a Microsoft Graph token with Files.Read scope
- try {
- this.port?.postMessage({
- type: "result",
- id: id,
- data: {
- result: "token",
- token: this.accessToken,
- },
- });
- console.log("OneDrive v8 picker: Provided auth token");
- } catch (error) {
- console.error("OneDrive v8 picker: Failed to provide auth token:", error);
- this.port?.postMessage({
- type: "result",
- id: id,
- data: {
- result: "error",
- error: {
- code: "unableToObtainToken",
- message:
- error instanceof Error ? error.message : "Failed to obtain token",
- },
- },
- });
- }
- }
-
- private handlePick(id: string, command: PickCommand): void {
- console.log("OneDrive v8 picker: Files picked:", command.items?.length);
-
- try {
- // Convert picked items to CloudFile format
- const files: CloudFile[] = (command.items || []).map((item) => {
- // Determine mime type
- let mimeType = item.file?.mimeType;
- if (!mimeType && item.name) {
- mimeType = this.inferMimeType(item.name);
- }
-
- // Log the download URL for debugging
- const downloadUrl = item["@microsoft.graph.downloadUrl"] || "";
- console.log(
- `OneDrive v8 picker: File "${item.name}" downloadUrl: ${downloadUrl ? "present" : "MISSING"}`,
- );
-
- return {
- id: item.id,
- name: item.name || "Unknown",
- mimeType: mimeType || "application/octet-stream",
- webUrl: item.webUrl || "",
- downloadUrl: downloadUrl,
- size: item.size,
- modifiedTime: item.lastModifiedDateTime,
- isFolder: !!item.folder,
- };
- });
-
- // Call the callback with selected files
- if (this.onFileSelected) {
- this.onFileSelected(files);
- }
-
- // Send success response
- this.port?.postMessage({
- type: "result",
- id: id,
- data: {
- result: "success",
- },
- });
-
- // Close the picker
- this.win?.close();
- this.cleanup();
- } catch (error) {
- console.error("OneDrive v8 picker: Error handling pick:", error);
- this.port?.postMessage({
- type: "result",
- id: id,
- data: {
- result: "error",
- error: {
- code: "unusableItem",
- message:
- error instanceof Error
- ? error.message
- : "Failed to process picked items",
- },
- },
- });
- }
- }
-
- private handleClose(id: string): void {
- console.log("OneDrive v8 picker: Close requested");
-
- // Send response before closing
- this.port?.postMessage({
- type: "result",
- id: id,
- data: {
- result: "success",
- },
- });
-
- this.win?.close();
- this.cleanup();
- }
-
- private inferMimeType(filename: string): string {
- const ext = filename.split(".").pop()?.toLowerCase();
- const mimeTypes: { [key: string]: string } = {
- pdf: "application/pdf",
- doc: "application/msword",
- docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
- xls: "application/vnd.ms-excel",
- xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
- ppt: "application/vnd.ms-powerpoint",
- pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
- txt: "text/plain",
- csv: "text/csv",
- json: "application/json",
- xml: "application/xml",
- html: "text/html",
- htm: "text/html",
- jpg: "image/jpeg",
- jpeg: "image/jpeg",
- png: "image/png",
- gif: "image/gif",
- svg: "image/svg+xml",
- webp: "image/webp",
- mp4: "video/mp4",
- mp3: "audio/mpeg",
- wav: "audio/wav",
- zip: "application/zip",
- rar: "application/x-rar-compressed",
- "7z": "application/x-7z-compressed",
- };
- return mimeTypes[ext || ""] || "application/octet-stream";
- }
-
- private cleanup(): void {
- // Remove message listener
- if (this.messageListener) {
- window.removeEventListener("message", this.messageListener);
- this.messageListener = null;
- }
-
- // Close port
- if (this.port) {
- this.port.close();
- this.port = null;
- }
-
- // Notify state change
- this.onPickerStateChange?.(false);
-
- // Clear references
- this.win = null;
- this.onFileSelected = null;
- }
-}
diff --git a/frontend/components/cloud-picker/provider-handlers.ts b/frontend/components/cloud-picker/provider-handlers.ts
index 738d19b4a..224a9a8e1 100644
--- a/frontend/components/cloud-picker/provider-handlers.ts
+++ b/frontend/components/cloud-picker/provider-handlers.ts
@@ -8,7 +8,7 @@ import {
GooglePickerDocument,
} from "./types";
-export class GoogleDriveHandler {
+class GoogleDriveHandler {
private accessToken: string;
private onPickerStateChange?: (isOpen: boolean) => void;
@@ -154,7 +154,7 @@ export class GoogleDriveHandler {
}
}
-export class OneDriveHandler {
+class OneDriveHandler {
private accessToken: string;
private clientId: string;
private provider: CloudProvider;
diff --git a/frontend/components/ui/banner.tsx b/frontend/components/ui/banner.tsx
index 1cb8fff97..13e8c481e 100644
--- a/frontend/components/ui/banner.tsx
+++ b/frontend/components/ui/banner.tsx
@@ -16,7 +16,7 @@ type BannerContextProps = {
setShow: (show: boolean) => void;
};
-export const BannerContext = createContext<BannerContextProps>({
+const BannerContext = createContext<BannerContextProps>({
show: true,
setShow: () => {},
});
@@ -104,7 +104,7 @@ export const BannerAction = ({
export type BannerCloseProps = ComponentProps<typeof Button>;
-export const BannerClose = ({
+const BannerClose = ({
variant = "ghost",
size = "icon",
onClick,
diff --git a/frontend/components/ui/sheet.tsx b/frontend/components/ui/sheet.tsx
deleted file mode 100644
index 40bb715ee..000000000
--- a/frontend/components/ui/sheet.tsx
+++ /dev/null
@@ -1,140 +0,0 @@
-"use client";
-
-import * as SheetPrimitive from "@radix-ui/react-dialog";
-import { cva, type VariantProps } from "class-variance-authority";
-import { X } from "lucide-react";
-import * as React from "react";
-
-import { cn } from "@/lib/utils";
-
-const Sheet = SheetPrimitive.Root;
-
-const SheetTrigger = SheetPrimitive.Trigger;
-
-const SheetClose = SheetPrimitive.Close;
-
-const SheetPortal = SheetPrimitive.Portal;
-
-const SheetOverlay = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Overlay>,
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
->(({ className, ...props }, ref) => (
- <SheetPrimitive.Overlay
- className={cn(
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
- className,
- )}
- {...props}
- ref={ref}
- />
-));
-SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
-
-const sheetVariants = cva(
- "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
- {
- variants: {
- side: {
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
- bottom:
- "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
- right:
- "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
- },
- },
- defaultVariants: {
- side: "right",
- },
- },
-);
-
-interface SheetContentProps
- extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
- VariantProps<typeof sheetVariants> {}
-
-const SheetContent = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Content>,
- SheetContentProps
->(({ side = "right", className, children, ...props }, ref) => (
- <SheetPortal>
- <SheetOverlay />
- <SheetPrimitive.Content
- ref={ref}
- className={cn(sheetVariants({ side }), className)}
- {...props}
- >
- {children}
- <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
- <X className="h-4 w-4" />
- <span className="sr-only">Close</span>
- </SheetPrimitive.Close>
- </SheetPrimitive.Content>
- </SheetPortal>
-));
-SheetContent.displayName = SheetPrimitive.Content.displayName;
-
-const SheetHeader = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col space-y-2 text-center sm:text-left",
- className,
- )}
- {...props}
- />
-);
-SheetHeader.displayName = "SheetHeader";
-
-const SheetFooter = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
- className,
- )}
- {...props}
- />
-);
-SheetFooter.displayName = "SheetFooter";
-
-const SheetTitle = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Title>,
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
->(({ className, ...props }, ref) => (
- <SheetPrimitive.Title
- ref={ref}
- className={cn("text-lg font-semibold text-foreground", className)}
- {...props}
- />
-));
-SheetTitle.displayName = SheetPrimitive.Title.displayName;
-
-const SheetDescription = React.forwardRef<
- React.ElementRef<typeof SheetPrimitive.Description>,
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
->(({ className, ...props }, ref) => (
- <SheetPrimitive.Description
- ref={ref}
- className={cn("text-sm text-muted-foreground", className)}
- {...props}
- />
-));
-SheetDescription.displayName = SheetPrimitive.Description.displayName;
-
-export {
- Sheet,
- SheetClose,
- SheetContent,
- SheetDescription,
- SheetFooter,
- SheetHeader,
- SheetOverlay,
- SheetPortal,
- SheetTitle,
- SheetTrigger,
-};
diff --git a/frontend/components/ui/sidebar.tsx b/frontend/components/ui/sidebar.tsx
deleted file mode 100644
index 2bb08a8ba..000000000
--- a/frontend/components/ui/sidebar.tsx
+++ /dev/null
@@ -1,784 +0,0 @@
-"use client";
-
-import { Slot } from "@radix-ui/react-slot";
-import { cva, type VariantProps } from "class-variance-authority";
-import { PanelLeft } from "lucide-react";
-import * as React from "react";
-import { Button } from "@/components/ui/button";
-import { Input } from "@/components/ui/input";
-import { Separator } from "@/components/ui/separator";
-import {
- Sheet,
- SheetContent,
- SheetDescription,
- SheetHeader,
- SheetTitle,
-} from "@/components/ui/sheet";
-import { Skeleton } from "@/components/ui/skeleton";
-import {
- Tooltip,
- TooltipContent,
- TooltipProvider,
- TooltipTrigger,
-} from "@/components/ui/tooltip";
-import { useIsMobile } from "@/hooks/use-mobile";
-import { cn } from "@/lib/utils";
-
-const SIDEBAR_COOKIE_NAME = "sidebar_state";
-const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
-const SIDEBAR_WIDTH = "16rem";
-const SIDEBAR_WIDTH_MOBILE = "18rem";
-const SIDEBAR_WIDTH_ICON = "3rem";
-const SIDEBAR_KEYBOARD_SHORTCUT = "b";
-
-type SidebarContextProps = {
- state: "expanded" | "collapsed";
- open: boolean;
- setOpen: (open: boolean) => void;
- openMobile: boolean;
- setOpenMobile: (open: boolean) => void;
- isMobile: boolean;
- toggleSidebar: () => void;
-};
-
-const SidebarContext = React.createContext<SidebarContextProps | null>(null);
-
-function useSidebar() {
- const context = React.useContext(SidebarContext);
- if (!context) {
- throw new Error("useSidebar must be used within a SidebarProvider.");
- }
-
- return context;
-}
-
-const SidebarProvider = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & {
- defaultOpen?: boolean;
- open?: boolean;
- onOpenChange?: (open: boolean) => void;
- }
->(
- (
- {
- defaultOpen = true,
- open: openProp,
- onOpenChange: setOpenProp,
- className,
- style,
- children,
- ...props
- },
- ref,
- ) => {
- const isMobile = useIsMobile();
- const [openMobile, setOpenMobile] = React.useState(false);
-
- // This is the internal state of the sidebar.
- // We use openProp and setOpenProp for control from outside the component.
- const [_open, _setOpen] = React.useState(defaultOpen);
- const open = openProp ?? _open;
- const setOpen = React.useCallback(
- (value: boolean | ((value: boolean) => boolean)) => {
- const openState = typeof value === "function" ? value(open) : value;
- if (setOpenProp) {
- setOpenProp(openState);
- } else {
- _setOpen(openState);
- }
-
- // This sets the cookie to keep the sidebar state.
- document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
- },
- [setOpenProp, open],
- );
-
- // Helper to toggle the sidebar.
- const toggleSidebar = React.useCallback(() => {
- return isMobile
- ? setOpenMobile((open) => !open)
- : setOpen((open) => !open);
- }, [isMobile, setOpen, setOpenMobile]);
-
- // Adds a keyboard shortcut to toggle the sidebar.
- React.useEffect(() => {
- const handleKeyDown = (event: KeyboardEvent) => {
- if (
- event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
- (event.metaKey || event.ctrlKey)
- ) {
- event.preventDefault();
- toggleSidebar();
- }
- };
-
- window.addEventListener("keydown", handleKeyDown);
- return () => window.removeEventListener("keydown", handleKeyDown);
- }, [toggleSidebar]);
-
- // We add a state so that we can do data-state="expanded" or "collapsed".
- // This makes it easier to style the sidebar with Tailwind classes.
- const state = open ? "expanded" : "collapsed";
-
- const contextValue = React.useMemo<SidebarContextProps>(
- () => ({
- state,
- open,
- setOpen,
- isMobile,
- openMobile,
- setOpenMobile,
- toggleSidebar,
- }),
- [
- state,
- open,
- setOpen,
- isMobile,
- openMobile,
- setOpenMobile,
- toggleSidebar,
- ],
- );
-
- return (
- <SidebarContext.Provider value={contextValue}>
- <TooltipProvider delayDuration={0}>
- <div
- style={
- {
- "--sidebar-width": SIDEBAR_WIDTH,
- "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
- ...style,
- } as React.CSSProperties
- }
- className={cn(
- "group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",
- className,
- )}
- ref={ref}
- {...props}
- >
- {children}
- </div>
- </TooltipProvider>
- </SidebarContext.Provider>
- );
- },
-);
-SidebarProvider.displayName = "SidebarProvider";
-
-const Sidebar = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & {
- side?: "left" | "right";
- variant?: "sidebar" | "floating" | "inset";
- collapsible?: "offcanvas" | "icon" | "none";
- }
->(
- (
- {
- side = "left",
- variant = "sidebar",
- collapsible = "offcanvas",
- className,
- children,
- ...props
- },
- ref,
- ) => {
- const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
-
- if (collapsible === "none") {
- return (
- <div
- className={cn(
- "flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
- className,
- )}
- ref={ref}
- {...props}
- >
- {children}
- </div>
- );
- }
-
- if (isMobile) {
- return (
- <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>
- <SheetContent
- data-sidebar="sidebar"
- data-mobile="true"
- className="w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
- style={
- {
- "--sidebar-width": SIDEBAR_WIDTH_MOBILE,
- } as React.CSSProperties
- }
- side={side}
- >
- <SheetHeader className="sr-only">
- <SheetTitle>Sidebar</SheetTitle>
- <SheetDescription>Displays the mobile sidebar.</SheetDescription>
- </SheetHeader>
- <div className="flex h-full w-full flex-col">{children}</div>
- </SheetContent>
- </Sheet>
- );
- }
-
- return (
- <div
- ref={ref}
- className="group peer hidden text-sidebar-foreground md:block"
- data-state={state}
- data-collapsible={state === "collapsed" ? collapsible : ""}
- data-variant={variant}
- data-side={side}
- >
- {/* This is what handles the sidebar gap on desktop */}
- <div
- className={cn(
- "relative bg-transparent transition-[width] duration-200 ease-linear",
- side === "right"
- ? "w-0"
- : cn(
- "w-[--sidebar-width]",
- "group-data-[collapsible=offcanvas]:w-0",
- variant === "floating" || variant === "inset"
- ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]"
- : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]",
- ),
- )}
- />
- <div
- className={cn(
- "fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
- side === "left"
- ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
- : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
- // Adjust the padding for floating and inset variants.
- variant === "floating" || variant === "inset"
- ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]"
- : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
- className,
- )}
- {...props}
- >
- <div
- data-sidebar="sidebar"
- className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow"
- >
- {children}
- </div>
- </div>
- </div>
- );
- },
-);
-Sidebar.displayName = "Sidebar";
-
-const SidebarTrigger = React.forwardRef<
- React.ElementRef<typeof Button>,
- React.ComponentProps<typeof Button>
->(({ className, onClick, ...props }, ref) => {
- const { toggleSidebar } = useSidebar();
-
- return (
- <Button
- ref={ref}
- data-sidebar="trigger"
- variant="ghost"
- size="icon"
- className={cn("h-7 w-7", className)}
- onClick={(event) => {
- onClick?.(event);
- toggleSidebar();
- }}
- {...props}
- >
- <PanelLeft />
- <span className="sr-only">Toggle Sidebar</span>
- </Button>
- );
-});
-SidebarTrigger.displayName = "SidebarTrigger";
-
-const SidebarRail = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<"button">
->(({ className, ...props }, ref) => {
- const { toggleSidebar } = useSidebar();
-
- return (
- <button
- ref={ref}
- data-sidebar="rail"
- aria-label="Toggle Sidebar"
- tabIndex={-1}
- onClick={toggleSidebar}
- title="Toggle Sidebar"
- className={cn(
- "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
- "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
- "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
- "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
- "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
- "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
- className,
- )}
- {...props}
- />
- );
-});
-SidebarRail.displayName = "SidebarRail";
-
-const SidebarInset = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"main">
->(({ className, ...props }, ref) => {
- return (
- <main
- ref={ref}
- className={cn(
- "relative flex w-full flex-1 flex-col bg-background",
- "md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
- className,
- )}
- {...props}
- />
- );
-});
-SidebarInset.displayName = "SidebarInset";
-
-const SidebarInput = React.forwardRef<
- React.ElementRef<typeof Input>,
- React.ComponentProps<typeof Input>
->(({ className, ...props }, ref) => {
- return (
- <Input
- ref={ref}
- data-sidebar="input"
- className={cn(
- "h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
- className,
- )}
- {...props}
- />
- );
-});
-SidebarInput.displayName = "SidebarInput";
-
-const SidebarHeader = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => {
- return (
- <div
- ref={ref}
- data-sidebar="header"
- className={cn("flex flex-col gap-2 p-2", className)}
- {...props}
- />
- );
-});
-SidebarHeader.displayName = "SidebarHeader";
-
-const SidebarFooter = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => {
- return (
- <div
- ref={ref}
- data-sidebar="footer"
- className={cn("flex flex-col gap-2 p-2", className)}
- {...props}
- />
- );
-});
-SidebarFooter.displayName = "SidebarFooter";
-
-const SidebarSeparator = React.forwardRef<
- React.ElementRef<typeof Separator>,
- React.ComponentProps<typeof Separator>
->(({ className, ...props }, ref) => {
- return (
- <Separator
- ref={ref}
- data-sidebar="separator"
- className={cn("mx-2 w-auto bg-sidebar-border", className)}
- {...props}
- />
- );
-});
-SidebarSeparator.displayName = "SidebarSeparator";
-
-const SidebarContent = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => {
- return (
- <div
- ref={ref}
- data-sidebar="content"
- className={cn(
- "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
- className,
- )}
- {...props}
- />
- );
-});
-SidebarContent.displayName = "SidebarContent";
-
-const SidebarGroup = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => {
- return (
- <div
- ref={ref}
- data-sidebar="group"
- className={cn("relative flex w-full min-w-0 flex-col p-2", className)}
- {...props}
- />
- );
-});
-SidebarGroup.displayName = "SidebarGroup";
-
-const SidebarGroupLabel = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & { asChild?: boolean }
->(({ className, asChild = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "div";
-
- return (
- <Comp
- ref={ref}
- data-sidebar="group-label"
- className={cn(
- "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
- "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
- className,
- )}
- {...props}
- />
- );
-});
-SidebarGroupLabel.displayName = "SidebarGroupLabel";
-
-const SidebarGroupAction = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<"button"> & { asChild?: boolean }
->(({ className, asChild = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "button";
-
- return (
- <Comp
- ref={ref}
- data-sidebar="group-action"
- className={cn(
- "absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
- // Increases the hit area of the button on mobile.
- "after:absolute after:-inset-2 after:md:hidden",
- "group-data-[collapsible=icon]:hidden",
- className,
- )}
- {...props}
- />
- );
-});
-SidebarGroupAction.displayName = "SidebarGroupAction";
-
-const SidebarGroupContent = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => (
- <div
- ref={ref}
- data-sidebar="group-content"
- className={cn("w-full text-sm", className)}
- {...props}
- />
-));
-SidebarGroupContent.displayName = "SidebarGroupContent";
-
-const SidebarMenu = React.forwardRef<
- HTMLUListElement,
- React.ComponentProps<"ul">
->(({ className, ...props }, ref) => (
- <ul
- ref={ref}
- data-sidebar="menu"
- className={cn("flex w-full min-w-0 flex-col gap-1", className)}
- {...props}
- />
-));
-SidebarMenu.displayName = "SidebarMenu";
-
-const SidebarMenuItem = React.forwardRef<
- HTMLLIElement,
- React.ComponentProps<"li">
->(({ className, ...props }, ref) => (
- <li
- ref={ref}
- data-sidebar="menu-item"
- className={cn("group/menu-item relative", className)}
- {...props}
- />
-));
-SidebarMenuItem.displayName = "SidebarMenuItem";
-
-const sidebarMenuButtonVariants = cva(
- "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
- {
- variants: {
- variant: {
- default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
- outline:
- "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
- },
- size: {
- default: "h-8 text-sm",
- sm: "h-7 text-xs",
- lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0",
- },
- },
- defaultVariants: {
- variant: "default",
- size: "default",
- },
- },
-);
-
-const SidebarMenuButton = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<"button"> & {
- asChild?: boolean;
- isActive?: boolean;
- tooltip?: string | React.ComponentProps<typeof TooltipContent>;
- } & VariantProps<typeof sidebarMenuButtonVariants>
->(
- (
- {
- asChild = false,
- isActive = false,
- variant = "default",
- size = "default",
- tooltip,
- className,
- ...props
- },
- ref,
- ) => {
- const Comp = asChild ? Slot : "button";
- const { isMobile, state } = useSidebar();
-
- const button = (
- <Comp
- ref={ref}
- data-sidebar="menu-button"
- data-size={size}
- data-active={isActive}
- className={cn(sidebarMenuButtonVariants({ variant, size }), className)}
- {...props}
- />
- );
-
- if (!tooltip) {
- return button;
- }
-
- if (typeof tooltip === "string") {
- tooltip = {
- children: tooltip,
- };
- }
-
- return (
- <Tooltip>
- <TooltipTrigger asChild>{button}</TooltipTrigger>
- <TooltipContent
- side="right"
- align="center"
- hidden={state !== "collapsed" || isMobile}
- {...tooltip}
- />
- </Tooltip>
- );
- },
-);
-SidebarMenuButton.displayName = "SidebarMenuButton";
-
-const SidebarMenuAction = React.forwardRef<
- HTMLButtonElement,
- React.ComponentProps<"button"> & {
- asChild?: boolean;
- showOnHover?: boolean;
- }
->(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "button";
-
- return (
- <Comp
- ref={ref}
- data-sidebar="menu-action"
- className={cn(
- "absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
- // Increases the hit area of the button on mobile.
- "after:absolute after:-inset-2 after:md:hidden",
- "peer-data-[size=sm]/menu-button:top-1",
- "peer-data-[size=default]/menu-button:top-1.5",
- "peer-data-[size=lg]/menu-button:top-2.5",
- "group-data-[collapsible=icon]:hidden",
- showOnHover &&
- "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
- className,
- )}
- {...props}
- />
- );
-});
-SidebarMenuAction.displayName = "SidebarMenuAction";
-
-const SidebarMenuBadge = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div">
->(({ className, ...props }, ref) => (
- <div
- ref={ref}
- data-sidebar="menu-badge"
- className={cn(
- "pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground",
- "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
- "peer-data-[size=sm]/menu-button:top-1",
- "peer-data-[size=default]/menu-button:top-1.5",
- "peer-data-[size=lg]/menu-button:top-2.5",
- "group-data-[collapsible=icon]:hidden",
- className,
- )}
- {...props}
- />
-));
-SidebarMenuBadge.displayName = "SidebarMenuBadge";
-
-const SidebarMenuSkeleton = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & {
- showIcon?: boolean;
- }
->(({ className, showIcon = false, ...props }, ref) => {
- // Random width between 50 to 90%.
- const width = React.useMemo(() => {
- return `${Math.floor(Math.random() * 40) + 50}%`;
- }, []);
-
- return (
- <div
- ref={ref}
- data-sidebar="menu-skeleton"
- className={cn("flex h-8 items-center gap-2 rounded-md px-2", className)}
- {...props}
- >
- {showIcon && (
- <Skeleton
- className="size-4 rounded-md"
- data-sidebar="menu-skeleton-icon"
- />
- )}
- <Skeleton
- className="h-4 max-w-[--skeleton-width] flex-1"
- data-sidebar="menu-skeleton-text"
- style={
- {
- "--skeleton-width": width,
- } as React.CSSProperties
- }
- />
- </div>
- );
-});
-SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
-
-const SidebarMenuSub = React.forwardRef<
- HTMLUListElement,
- React.ComponentProps<"ul">
->(({ className, ...props }, ref) => (
- <ul
- ref={ref}
- data-sidebar="menu-sub"
- className={cn(
- "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",
- "group-data-[collapsible=icon]:hidden",
- className,
- )}
- {...props}
- />
-));
-SidebarMenuSub.displayName = "SidebarMenuSub";
-
-const SidebarMenuSubItem = React.forwardRef<
- HTMLLIElement,
- React.ComponentProps<"li">
->(({ ...props }, ref) => <li ref={ref} {...props} />);
-SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
-
-const SidebarMenuSubButton = React.forwardRef<
- HTMLAnchorElement,
- React.ComponentProps<"a"> & {
- asChild?: boolean;
- size?: "sm" | "md";
- isActive?: boolean;
- }
->(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
- const Comp = asChild ? Slot : "a";
-
- return (
- <Comp
- ref={ref}
- data-sidebar="menu-sub-button"
- data-size={size}
- data-active={isActive}
- className={cn(
- "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
- "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
- size === "sm" && "text-xs",
- size === "md" && "text-sm",
- "group-data-[collapsible=icon]:hidden",
- className,
- )}
- {...props}
- />
- );
-});
-SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
-
-export {
- Sidebar,
- SidebarContent,
- SidebarFooter,
- SidebarGroup,
- SidebarGroupAction,
- SidebarGroupContent,
- SidebarGroupLabel,
- SidebarHeader,
- SidebarInput,
- SidebarInset,
- SidebarMenu,
- SidebarMenuAction,
- SidebarMenuBadge,
- SidebarMenuButton,
- SidebarMenuItem,
- SidebarMenuSkeleton,
- SidebarMenuSub,
- SidebarMenuSubButton,
- SidebarMenuSubItem,
- SidebarProvider,
- SidebarRail,
- SidebarSeparator,
- SidebarTrigger,
- useSidebar,
-};
diff --git a/frontend/enhancements/connectors/ibm-cos/useIBMCOSBucketsQuery.ts b/frontend/enhancements/connectors/ibm-cos/useIBMCOSBucketsQuery.ts
deleted file mode 100644
index f7583aeff..000000000
--- a/frontend/enhancements/connectors/ibm-cos/useIBMCOSBucketsQuery.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-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[];
-}
-
-export function useIBMCOSBucketsQuery(
- 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,
- });
-}
diff --git a/frontend/hooks/use-mobile.tsx b/frontend/hooks/use-mobile.tsx
deleted file mode 100644
index a93d58393..000000000
--- a/frontend/hooks/use-mobile.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import * as React from "react";
-
-const MOBILE_BREAKPOINT = 768;
-
-export function useIsMobile() {
- const [isMobile, setIsMobile] = React.useState<boolean | undefined>(
- undefined,
- );
-
- React.useEffect(() => {
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
- const onChange = () => {
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
- };
- mql.addEventListener("change", onChange);
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
- return () => mql.removeEventListener("change", onChange);
- }, []);
-
- return !!isMobile;
-}
diff --git a/frontend/lib/analytics.ts b/frontend/lib/analytics.ts
index 64a2866d0..8102e4fd2 100644
--- a/frontend/lib/analytics.ts
+++ b/frontend/lib/analytics.ts
@@ -19,14 +19,13 @@ interface RequiredSegmentStaticProperties {
// These properties are required by IBM Segment event schema for all events or they will be blocked
// See: https://w3.ibm.com/w3publisher/instrumentation-at-ibm/required-properties
-export const getRequiredStaticProperties =
- (): RequiredSegmentStaticProperties => ({
- UT30: "30AW0",
- environment: _environment,
- productCode: "WW1544",
- productCodeType: "WWPC",
- productTitle: "OpenRAG",
- });
+const getRequiredStaticProperties = (): RequiredSegmentStaticProperties => ({
+ UT30: "30AW0",
+ environment: _environment,
+ productCode: "WW1544",
+ productCodeType: "WWPC",
+ productTitle: "OpenRAG",
+});
export const page = (
pageTitle?: string,
@@ -39,10 +38,7 @@ export const page = (
});
};
-export const track = (
- eventName: string,
- properties: Record<string, unknown> = {},
-) => {
+const track = (eventName: string, properties: Record<string, unknown> = {}) => {
if (!analytics) return;
try {
analytics.track(eventName, {
@@ -88,7 +84,7 @@ interface EndProcessParams {
category?: string;
}
-export const trackEndProcess = <T = Record<string, unknown>>(
+const trackEndProcess = <T = Record<string, unknown>>(
props: T & EndProcessParams,
): void => track("Ended Process", props as Record<string, unknown>);
diff --git a/frontend/lib/brand.ts b/frontend/lib/brand.ts
index ebcac330b..819a05daf 100644
--- a/frontend/lib/brand.ts
+++ b/frontend/lib/brand.ts
@@ -44,7 +44,7 @@ export function isSaasPolicyContext({
}
/** False when the admin explicitly disabled this connector for the workspace. */
-export function isConnectorAllowedByWorkspace(
+function isConnectorAllowedByWorkspace(
type: string,
storedAccess: Record<string, boolean>,
): boolean {
diff --git a/frontend/lib/filter-normalization.ts b/frontend/lib/filter-normalization.ts
index 7b1aaaaff..59427f288 100644
--- a/frontend/lib/filter-normalization.ts
+++ b/frontend/lib/filter-normalization.ts
@@ -19,7 +19,7 @@ function normalizeFilterDimension(values?: string[]): string[] {
return values;
}
-export function normalizeSelectedFilters(
+function normalizeSelectedFilters(
filters?: FilterInput,
): NormalizedSelectedFilters {
return {
diff --git a/frontend/lib/task-error-display.ts b/frontend/lib/task-error-display.ts
index 7c19f2bce..87aa39406 100644
--- a/frontend/lib/task-error-display.ts
+++ b/frontend/lib/task-error-display.ts
@@ -107,14 +107,14 @@ export function buildRowStatusLabel(failedStep: TaskPipelineStepId): string {
return `${PIPELINE_STEP_LABELS[failedStep]} issue`;
}
-export function buildFailureSummary(failedStep: TaskPipelineStepId): string {
+function buildFailureSummary(failedStep: TaskPipelineStepId): string {
if (failedStep === "cancelled") {
return "Cancelled";
}
return `Failed at ${PIPELINE_STEP_LABELS[failedStep].toLowerCase()}`;
}
-export function buildPipelineStepsFromFailurePhase(
+function buildPipelineStepsFromFailurePhase(
failurePhase: TaskPipelineStepId,
): IngestionPipelineStep[] {
if (
diff --git a/frontend/lib/task-utils.ts b/frontend/lib/task-utils.ts
index 28d0c7e21..c2ba96f8d 100644
--- a/frontend/lib/task-utils.ts
+++ b/frontend/lib/task-utils.ts
@@ -22,7 +22,7 @@ export type TaskFileFilterOptions = {
task?: Task;
};
-export function isTaskFileCompleted(fileInfo: TaskFileEntry): boolean {
+function isTaskFileCompleted(fileInfo: TaskFileEntry): boolean {
return fileInfo.status === "completed";
}
@@ -65,7 +65,7 @@ export function getTaskFileName(
}
/** Lowercase extension without dot, or empty string when none. */
-export function getFileExtensionFromName(filename: string): string {
+function getFileExtensionFromName(filename: string): string {
const trimmed = filename.trim();
const dotIndex = trimmed.lastIndexOf(".");
if (dotIndex <= 0 || dotIndex === trimmed.length - 1) {
@@ -74,10 +74,7 @@ export function getFileExtensionFromName(filename: string): string {
return trimmed.slice(dotIndex + 1).toLowerCase();
}
-export function getTaskFileTypeKey(
- filePath: string,
- fileInfo: TaskFileEntry,
-): string {
+function getTaskFileTypeKey(filePath: string, fileInfo: TaskFileEntry): string {
const extension = getFileExtensionFromName(
getTaskFileName(filePath, fileInfo),
);
@@ -131,7 +128,7 @@ export function countRetryIngestionFiles(task: Task): number {
}
/** Maps a file to a dialog filter chip bucket (aligned with per-file status labels). */
-export function getTaskFileStatusCategory(
+function getTaskFileStatusCategory(
fileInfo: TaskFileEntry,
): TaskFileStatusCategory {
if (isTaskFileFailed(fileInfo)) {
@@ -171,7 +168,7 @@ export function countTaskFileEntriesByCategory(
return counts;
}
-export function countTaskFilesByCategory(
+function countTaskFilesByCategory(
task: Task,
): Record<TaskFileStatusCategory, number> {
return countTaskFileEntriesByCategory(getTaskFileEntries(task));
@@ -225,9 +222,7 @@ export function filterTaskFileEntries(
});
}
-export function getFailedFileEntries(
- task: Task,
-): Array<[string, TaskFileEntry]> {
+function getFailedFileEntries(task: Task): Array<[string, TaskFileEntry]> {
return Object.entries(task.files || {}).filter(([, fileInfo]) =>
isTaskFileFailed(fileInfo),
);
@@ -267,7 +262,7 @@ export function isTerminalFailedTask(task: Task): boolean {
return task.status === "failed" || task.status === "error";
}
-export function isCompletedWithFailures(task: Task): boolean {
+function isCompletedWithFailures(task: Task): boolean {
return task.status === "completed" && hasFailedFileEntries(task);
}
@@ -340,14 +335,11 @@ export function didTaskReachCompleted(
* The enhanced list drops completed files from `files` while a task is still running.
*/
/** Stable overlay key before the backend temp path is known. */
-export function pendingTaskFileSourceUrl(
- taskId: string,
- filename: string,
-): string {
+function pendingTaskFileSourceUrl(taskId: string, filename: string): string {
return `pending:${taskId}:${filename}`;
}
-export function isPendingTaskFileSourceUrl(sourceUrl: string): boolean {
+function isPendingTaskFileSourceUrl(sourceUrl: string): boolean {
return sourceUrl.startsWith("pending:");
}
diff --git a/frontend/lib/time-utils.ts b/frontend/lib/time-utils.ts
index ef30b9d1b..ce7da6760 100644
--- a/frontend/lib/time-utils.ts
+++ b/frontend/lib/time-utils.ts
@@ -23,13 +23,13 @@ export function parseTimestampMs(value: string): number | null {
return parsed ? parsed.getTime() : null;
}
-export function formatClockTime(date: Date): string {
+function formatClockTime(date: Date): string {
return date
.toLocaleTimeString([], { hour: "numeric", minute: "2-digit" })
.toLowerCase();
}
-export function formatRelativeTime(date: Date, nowMs: number): string {
+function formatRelativeTime(date: Date, nowMs: number): string {
const diffMs = nowMs - date.getTime();
const diffSeconds = Math.floor(diffMs / 1000);
const diffMinutes = Math.floor(diffMs / 60000);
diff --git a/frontend/lib/url-utils.ts b/frontend/lib/url-utils.ts
index d08b7f5af..f553fc4d9 100644
--- a/frontend/lib/url-utils.ts
+++ b/frontend/lib/url-utils.ts
@@ -67,7 +67,7 @@ export function resolveLangflowEditUrl({
* The transformation appends "-langflow" to the instance ID segment of the hostname.
* Returns null if the current URL does not match the expected IBM SaaS pattern.
*/
-export function deriveCloudLangflowUrl(
+function deriveCloudLangflowUrl(
locationOrigin: string = typeof window !== "undefined"
? window.location.origin
: "",
@@ -104,7 +104,7 @@ export function deriveCloudLangflowUrl(
* The transformation swaps the "openrag-fe-" host prefix for "openrag-lf-".
* Returns null if the current URL does not match the expected on-prem pattern.
*/
-export function deriveOnPremLangflowUrl(
+function deriveOnPremLangflowUrl(
locationOrigin: string = typeof window !== "undefined"
? window.location.origin
: "",
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index a9d83dcfc..b14103154 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -37,7 +37,6 @@
"motion": "^12.40.0",
"next": "^16.2.9",
"next-themes": "^0.4.6",
- "radix-ui": "^1.5.0",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-dropzone": "^15.0.0",
@@ -51,8 +50,7 @@
"sonner": "^2.0.7",
"tailwind-merge": "^3.6.0",
"tailwindcss-animate": "^1.0.7",
- "use-stick-to-bottom": "^1.1.6",
- "zustand": "^5.0.14"
+ "use-stick-to-bottom": "^1.1.6"
},
"devDependencies": {
"@biomejs/biome": "2.4.16",
@@ -266,7 +264,6 @@
"integrity": "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"@emnapi/wasi-threads": "1.2.2",
"tslib": "^2.4.0"
@@ -278,7 +275,6 @@
"integrity": "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"tslib": "^2.4.0"
}
@@ -1272,7 +1268,6 @@
"integrity": "sha512-O71yZIbAh/PxDMNGns37GHBIfrVkEVyn+AXyIa5dOTfb4/xNvRWV+Vv/NMbNCtODB/pO7vLlF2OTmMVLhmr7Ag==",
"devOptional": true,
"license": "Apache-2.0",
- "peer": true,
"dependencies": {
"playwright": "1.60.0"
},
@@ -1295,29 +1290,6 @@
"integrity": "sha512-7AdCK9PQyiljKoBDbN8OuctCbd/esdwZPQ8RtOE3SsyQtUpiPb+ND75q0jEhC1m1ecBI0MFNeLJvwIh9iKHRcQ==",
"license": "MIT"
},
- "node_modules/@radix-ui/react-accessible-icon": {
- "version": "1.1.9",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-accessible-icon/-/react-accessible-icon-1.1.9.tgz",
- "integrity": "sha512-5W9KzJz/3DeYbGJHbZv8Q6AkxMOKUmALfc+PRg9dWwJZMk6zD37Sz8sZrF7UD6CBkiJvn7dNeRzn5G7XiCMyig==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-visually-hidden": "1.2.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-accordion": {
"version": "1.2.13",
"resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.13.tgz",
@@ -1349,34 +1321,6 @@
}
}
},
- "node_modules/@radix-ui/react-alert-dialog": {
- "version": "1.1.16",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-alert-dialog/-/react-alert-dialog-1.1.16.tgz",
- "integrity": "sha512-vPaIgo0mxYlvcFaM9jB2Uot9TjGXMuAPEvrc6BOLeV+I5U8s1dkIoouYaa6lmSfc5SPMo5x5djOTOTvaigdGMQ==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-dialog": "1.1.16",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-slot": "1.2.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-arrow": {
"version": "1.1.9",
"resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.9.tgz",
@@ -1400,29 +1344,6 @@
}
}
},
- "node_modules/@radix-ui/react-aspect-ratio": {
- "version": "1.1.9",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-aspect-ratio/-/react-aspect-ratio-1.1.9.tgz",
- "integrity": "sha512-Xy+Dpxt/5n9rVTdPrNFmf8GwG1NlT1pzCF/z1MgOGZMLZWdWl+km+ZRWGQAPEhbkzSwYEsfYmTca8NhUtVxqnw==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-primitive": "2.1.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-avatar": {
"version": "1.1.12",
"resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.1.12.tgz",
@@ -1450,36 +1371,6 @@
}
}
},
- "node_modules/@radix-ui/react-checkbox": {
- "version": "1.3.4",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.4.tgz",
- "integrity": "sha512-m3JmIOAX5ZzZ6VPjxEU2dbTOhoHi0nT5riwcDwe8idocsWf4a5DXJLDtZ6LfJwMBx7W+A2b7kp2TgPEKtaiF6A==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-presence": "1.1.6",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-use-controllable-state": "1.2.3",
- "@radix-ui/react-use-previous": "1.1.2",
- "@radix-ui/react-use-size": "1.1.2"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-collapsible": {
"version": "1.1.13",
"resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.13.tgz",
@@ -1566,33 +1457,6 @@
}
}
},
- "node_modules/@radix-ui/react-context-menu": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-context-menu/-/react-context-menu-2.3.0.tgz",
- "integrity": "sha512-d7CouXhAW+CGmFOqmB+IEvd3E9GcaqfgvfjCc3hfulp2pkaUCEVEGa0SN5nNWYA+IvQ6g1Pt+S5dpNn1AoY9hg==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-menu": "2.1.17",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-use-controllable-state": "1.2.3"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-dialog": {
"version": "1.1.16",
"resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.16.tgz",
@@ -1740,65 +1604,6 @@
}
}
},
- "node_modules/@radix-ui/react-form": {
- "version": "0.1.9",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-form/-/react-form-0.1.9.tgz",
- "integrity": "sha512-eTPyThIKDacJ3mJDvYwf/PSmsEYlOyA2Qcb+aGyWwYv+P5w57VPUkMVA2XJ9z0Du2KBY1HoHQzhPV9iYL/r4hg==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-id": "1.1.2",
- "@radix-ui/react-label": "2.1.9",
- "@radix-ui/react-primitive": "2.1.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-hover-card": {
- "version": "1.1.16",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-hover-card/-/react-hover-card-1.1.16.tgz",
- "integrity": "sha512-hAileDBtd6CX7nlZOarOnISQ6PP4q0e16BX51ulzdZ+7IzjL0sDTVpFdmSYrIjw6zVNsfQBao5gG6AWr3qwfvA==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-dismissable-layer": "1.1.12",
- "@radix-ui/react-popper": "1.3.0",
- "@radix-ui/react-portal": "1.1.11",
- "@radix-ui/react-presence": "1.1.6",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-use-controllable-state": "1.2.3"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-id": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.2.tgz",
@@ -1841,161 +1646,29 @@
}
},
"node_modules/@radix-ui/react-menu": {
- "version": "2.1.17",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.17.tgz",
- "integrity": "sha512-fmbNnFyf+JYCN0DhhWnEdUTDnZD1mXaPQWivdsPIb8oOSbARfD3LIQJbLCG8a8QLCwoMxiJ7GVPIFcC8Dw8v2Q==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-collection": "1.1.9",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-dismissable-layer": "1.1.12",
- "@radix-ui/react-focus-guards": "1.1.4",
- "@radix-ui/react-focus-scope": "1.1.9",
- "@radix-ui/react-id": "1.1.2",
- "@radix-ui/react-popper": "1.3.0",
- "@radix-ui/react-portal": "1.1.11",
- "@radix-ui/react-presence": "1.1.6",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-roving-focus": "1.1.12",
- "@radix-ui/react-slot": "1.2.5",
- "@radix-ui/react-use-callback-ref": "1.1.2",
- "aria-hidden": "^1.2.4",
- "react-remove-scroll": "^2.7.2"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-menubar": {
- "version": "1.1.17",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-menubar/-/react-menubar-1.1.17.tgz",
- "integrity": "sha512-AKtZ4O782yO7qwIyq73WpulYt1IHhQ0htDb6wNcxzxnSDCcSWMVBiU9ycpcA90XzQO4IVIxIErtak6Kg/Vt0rQ==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-collection": "1.1.9",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-id": "1.1.2",
- "@radix-ui/react-menu": "2.1.17",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-roving-focus": "1.1.12",
- "@radix-ui/react-use-controllable-state": "1.2.3"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-navigation-menu": {
- "version": "1.2.15",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.15.tgz",
- "integrity": "sha512-/fS8hKCcRt4DwCGa5QIB3juRXmfYSOk4a2AEe/BDIyy7Hm+eje2Y13oUx5zejl+wFt1owrM7E8NWlbaEl5EGpg==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-collection": "1.1.9",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-dismissable-layer": "1.1.12",
- "@radix-ui/react-id": "1.1.2",
- "@radix-ui/react-presence": "1.1.6",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-use-callback-ref": "1.1.2",
- "@radix-ui/react-use-controllable-state": "1.2.3",
- "@radix-ui/react-use-layout-effect": "1.1.2",
- "@radix-ui/react-use-previous": "1.1.2",
- "@radix-ui/react-visually-hidden": "1.2.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-one-time-password-field": {
- "version": "0.1.9",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-one-time-password-field/-/react-one-time-password-field-0.1.9.tgz",
- "integrity": "sha512-fvCzA9hm7yN5xxTPJIi4VhSmH5gv+76ILsxguBK3cm3icD5BR4vW7POQmu8Zio0yh91uuouG/Kang40IbMkaSQ==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/number": "1.1.2",
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-collection": "1.1.9",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-roving-focus": "1.1.12",
- "@radix-ui/react-use-controllable-state": "1.2.3",
- "@radix-ui/react-use-effect-event": "0.0.3",
- "@radix-ui/react-use-is-hydrated": "0.1.1",
- "@radix-ui/react-use-layout-effect": "1.1.2"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-password-toggle-field": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-password-toggle-field/-/react-password-toggle-field-0.1.4.tgz",
- "integrity": "sha512-qoDSkObZ9faJlsjlwyBH6ia7kq9vaJ2QwWTowT3nQpzPvUTAKesmWuGJYpd91HIoJqS+5ZPXy5uFPp+HlwdaAg==",
+ "version": "2.1.17",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.17.tgz",
+ "integrity": "sha512-fmbNnFyf+JYCN0DhhWnEdUTDnZD1mXaPQWivdsPIb8oOSbARfD3LIQJbLCG8a8QLCwoMxiJ7GVPIFcC8Dw8v2Q==",
"license": "MIT",
"dependencies": {
"@radix-ui/primitive": "1.1.4",
+ "@radix-ui/react-collection": "1.1.9",
"@radix-ui/react-compose-refs": "1.1.3",
"@radix-ui/react-context": "1.1.4",
+ "@radix-ui/react-direction": "1.1.2",
+ "@radix-ui/react-dismissable-layer": "1.1.12",
+ "@radix-ui/react-focus-guards": "1.1.4",
+ "@radix-ui/react-focus-scope": "1.1.9",
"@radix-ui/react-id": "1.1.2",
+ "@radix-ui/react-popper": "1.3.0",
+ "@radix-ui/react-portal": "1.1.11",
+ "@radix-ui/react-presence": "1.1.6",
"@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-use-controllable-state": "1.2.3",
- "@radix-ui/react-use-effect-event": "0.0.3",
- "@radix-ui/react-use-is-hydrated": "0.1.1"
+ "@radix-ui/react-roving-focus": "1.1.12",
+ "@radix-ui/react-slot": "1.2.5",
+ "@radix-ui/react-use-callback-ref": "1.1.2",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.7.2"
},
"peerDependencies": {
"@types/react": "*",
@@ -2151,62 +1824,6 @@
}
}
},
- "node_modules/@radix-ui/react-progress": {
- "version": "1.1.9",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.9.tgz",
- "integrity": "sha512-+EOkvg1Zn1vI1+fRDfRSAiJ7BWfcDAo5ASMmbqrcLZ4s4USk2FGkoHgeb2X+CkUgo2zJMiyObwf1k44CrRWsyw==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-primitive": "2.1.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-radio-group": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.4.0.tgz",
- "integrity": "sha512-eHdV5bLx9sH+tBnbDjkIBdvQEH/c6MEtQYhTbxkaDK9qsIFFLtmJYEQFVdwhnruWotLfQmIuWEL/J+L3utE8rQ==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-presence": "1.1.6",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-roving-focus": "1.1.12",
- "@radix-ui/react-use-controllable-state": "1.2.3",
- "@radix-ui/react-use-previous": "1.1.2",
- "@radix-ui/react-use-size": "1.1.2"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-roving-focus": {
"version": "1.1.12",
"resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.12.tgz",
@@ -2238,37 +1855,6 @@
}
}
},
- "node_modules/@radix-ui/react-scroll-area": {
- "version": "1.2.11",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.11.tgz",
- "integrity": "sha512-DS39ziOgea75U/TrXKU2/oKp0be2jrDHnzFLvahg/0iNAT1Zq16e4Uw0WXwyXvsK+mG3BRyMb7A3NRZMDuEXtQ==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/number": "1.1.2",
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-presence": "1.1.6",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-use-callback-ref": "1.1.2",
- "@radix-ui/react-use-layout-effect": "1.1.2"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-select": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.3.0.tgz",
@@ -2446,123 +2032,6 @@
}
}
},
- "node_modules/@radix-ui/react-toast": {
- "version": "1.2.16",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.2.16.tgz",
- "integrity": "sha512-WUymDDiN2DpoGudRN1aW4wF5O3BNQjZZO/5nngPoNiEVqjyOzirvZZNO0R6dC1ifucSINVaSv8JX1aq47VGgiA==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-collection": "1.1.9",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-dismissable-layer": "1.1.12",
- "@radix-ui/react-portal": "1.1.11",
- "@radix-ui/react-presence": "1.1.6",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-use-callback-ref": "1.1.2",
- "@radix-ui/react-use-controllable-state": "1.2.3",
- "@radix-ui/react-use-layout-effect": "1.1.2",
- "@radix-ui/react-visually-hidden": "1.2.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-toggle": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle/-/react-toggle-1.1.11.tgz",
- "integrity": "sha512-FikrKJemoBGZQ6uRID0HJqSPBP6D7OppdD2OhLl0ZYLlAyPXI7MezoYGmumwNkrAoRm35xXkb4C8JPfJZZzcaw==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-use-controllable-state": "1.2.3"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-toggle-group": {
- "version": "1.1.12",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle-group/-/react-toggle-group-1.1.12.tgz",
- "integrity": "sha512-TEgECgJaWGAHJJZGzNNEYTNBdIXqX7LchANycpyP7DkfjmuiSN7ISt1k/ZRGVJgVJonsgP4vwaiKMn5utrcwWQ==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-roving-focus": "1.1.12",
- "@radix-ui/react-toggle": "1.1.11",
- "@radix-ui/react-use-controllable-state": "1.2.3"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-toolbar": {
- "version": "1.1.12",
- "resolved": "https://registry.npmjs.org/@radix-ui/react-toolbar/-/react-toolbar-1.1.12.tgz",
- "integrity": "sha512-4wHtJVdIgqMmEwUvxA0BYg/2JMRbt0L3+8UD8Ml/nhKkfXtiZcM8u/S15gQ5xj9YEd/0qlrm5bE805LsjQ+J8A==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-roving-focus": "1.1.12",
- "@radix-ui/react-separator": "1.1.9",
- "@radix-ui/react-toggle-group": "1.1.12"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-tooltip": {
"version": "1.2.9",
"resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.9.tgz",
@@ -3017,7 +2486,6 @@
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.17.tgz",
"integrity": "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==",
"license": "MIT",
- "peer": true,
"dependencies": {
"csstype": "^3.2.2"
}
@@ -3028,7 +2496,6 @@
"integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
"devOptional": true,
"license": "MIT",
- "peer": true,
"peerDependencies": {
"@types/react": "^19.2.0"
}
@@ -3280,7 +2747,6 @@
}
],
"license": "MIT",
- "peer": true,
"dependencies": {
"baseline-browser-mapping": "^2.10.12",
"caniuse-lite": "^1.0.30001782",
@@ -5844,7 +5310,6 @@
}
],
"license": "MIT",
- "peer": true,
"dependencies": {
"nanoid": "^3.3.12",
"picocolors": "^1.1.1",
@@ -6044,89 +5509,11 @@
],
"license": "MIT"
},
- "node_modules/radix-ui": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/radix-ui/-/radix-ui-1.5.0.tgz",
- "integrity": "sha512-Nzh2HNpClgB31FBHRqt2xG8XNUfVfQRpf34hACC5PNrXTd5JdXdqOXwLs3BL+D8CNYiNQiJiT8QGr5Q4vq+00w==",
- "license": "MIT",
- "dependencies": {
- "@radix-ui/primitive": "1.1.4",
- "@radix-ui/react-accessible-icon": "1.1.9",
- "@radix-ui/react-accordion": "1.2.13",
- "@radix-ui/react-alert-dialog": "1.1.16",
- "@radix-ui/react-arrow": "1.1.9",
- "@radix-ui/react-aspect-ratio": "1.1.9",
- "@radix-ui/react-avatar": "1.1.12",
- "@radix-ui/react-checkbox": "1.3.4",
- "@radix-ui/react-collapsible": "1.1.13",
- "@radix-ui/react-collection": "1.1.9",
- "@radix-ui/react-compose-refs": "1.1.3",
- "@radix-ui/react-context": "1.1.4",
- "@radix-ui/react-context-menu": "2.3.0",
- "@radix-ui/react-dialog": "1.1.16",
- "@radix-ui/react-direction": "1.1.2",
- "@radix-ui/react-dismissable-layer": "1.1.12",
- "@radix-ui/react-dropdown-menu": "2.1.17",
- "@radix-ui/react-focus-guards": "1.1.4",
- "@radix-ui/react-focus-scope": "1.1.9",
- "@radix-ui/react-form": "0.1.9",
- "@radix-ui/react-hover-card": "1.1.16",
- "@radix-ui/react-label": "2.1.9",
- "@radix-ui/react-menu": "2.1.17",
- "@radix-ui/react-menubar": "1.1.17",
- "@radix-ui/react-navigation-menu": "1.2.15",
- "@radix-ui/react-one-time-password-field": "0.1.9",
- "@radix-ui/react-password-toggle-field": "0.1.4",
- "@radix-ui/react-popover": "1.1.16",
- "@radix-ui/react-popper": "1.3.0",
- "@radix-ui/react-portal": "1.1.11",
- "@radix-ui/react-presence": "1.1.6",
- "@radix-ui/react-primitive": "2.1.5",
- "@radix-ui/react-progress": "1.1.9",
- "@radix-ui/react-radio-group": "1.4.0",
- "@radix-ui/react-roving-focus": "1.1.12",
- "@radix-ui/react-scroll-area": "1.2.11",
- "@radix-ui/react-select": "2.3.0",
- "@radix-ui/react-separator": "1.1.9",
- "@radix-ui/react-slider": "1.4.0",
- "@radix-ui/react-slot": "1.2.5",
- "@radix-ui/react-switch": "1.3.0",
- "@radix-ui/react-tabs": "1.1.14",
- "@radix-ui/react-toast": "1.2.16",
- "@radix-ui/react-toggle": "1.1.11",
- "@radix-ui/react-toggle-group": "1.1.12",
- "@radix-ui/react-toolbar": "1.1.12",
- "@radix-ui/react-tooltip": "1.2.9",
- "@radix-ui/react-use-callback-ref": "1.1.2",
- "@radix-ui/react-use-controllable-state": "1.2.3",
- "@radix-ui/react-use-effect-event": "0.0.3",
- "@radix-ui/react-use-escape-keydown": "1.1.2",
- "@radix-ui/react-use-is-hydrated": "0.1.1",
- "@radix-ui/react-use-layout-effect": "1.1.2",
- "@radix-ui/react-use-size": "1.1.2",
- "@radix-ui/react-visually-hidden": "1.2.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
- "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
"node_modules/react": {
"version": "19.2.7",
"resolved": "https://registry.npmjs.org/react/-/react-19.2.7.tgz",
"integrity": "sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=0.10.0"
}
@@ -6136,7 +5523,6 @@
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.7.tgz",
"integrity": "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==",
"license": "MIT",
- "peer": true,
"dependencies": {
"scheduler": "^0.27.0"
},
@@ -6785,7 +6171,6 @@
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",
"integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",
"license": "MIT",
- "peer": true,
"dependencies": {
"@alloc/quick-lru": "^5.2.0",
"arg": "^5.0.2",
@@ -7406,35 +6791,6 @@
"url": "https://github.com/sponsors/colinhacks"
}
},
- "node_modules/zustand": {
- "version": "5.0.14",
- "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.14.tgz",
- "integrity": "sha512-/8tAspM5LMPr28b3fwLYrtdj77ECpfZviaP75CMTnwO8ISyaE4GDIG/9rDDYq/cH9D2Xw2A2RXglLInmVBQB/g==",
- "license": "MIT",
- "engines": {
- "node": ">=12.20.0"
- },
- "peerDependencies": {
- "@types/react": ">=18.0.0",
- "immer": ">=9.0.6",
- "react": ">=18.0.0",
- "use-sync-external-store": ">=1.2.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "immer": {
- "optional": true
- },
- "react": {
- "optional": true
- },
- "use-sync-external-store": {
- "optional": true
- }
- }
- },
"node_modules/zwitch": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index de1c65bb7..b10679d35 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -46,7 +46,6 @@
"motion": "^12.40.0",
"next": "^16.2.9",
"next-themes": "^0.4.6",
- "radix-ui": "^1.5.0",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-dropzone": "^15.0.0",
@@ -60,8 +59,7 @@
"sonner": "^2.0.7",
"tailwind-merge": "^3.6.0",
"tailwindcss-animate": "^1.0.7",
- "use-stick-to-bottom": "^1.1.6",
- "zustand": "^5.0.14"
+ "use-stick-to-bottom": "^1.1.6"
},
"devDependencies": {
"@biomejs/biome": "2.4.16",