Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
📦 feat: Move Shared Components to `@librechat/client` (#8685)
Danny Avila79197454f829
diff --git a/.github/workflows/client.yml b/.github/workflows/client.ymlindex 1f0e2fd86d..6b97a1e61d 100644--- a/.github/workflows/client.yml+++ b/.github/workflows/client.yml@@ -1,6 +1,11 @@name: Publish `@librechat/client` to NPMon:+ push:+ branches:+ - main+ paths:+ - 'packages/client/package.json'workflow_dispatch:inputs:reason:@@ -17,16 +22,37 @@ jobs:- name: Use Node.jsuses: actions/setup-node@v4with:- node-version: '18.x'-- - name: Check if client package exists+ node-version: '20.x'++ - name: Install client dependencies+ run: cd packages/client && npm ci++ - name: Build client+ run: cd packages/client && npm run build++ - name: Set up npm authentication+ run: echo "//registry.npmjs.org/:_authToken=${{ secrets.PUBLISH_NPM_TOKEN }}" > ~/.npmrc++ - name: Check version change+ id: check+ working-directory: packages/clientrun: |- if [ -d "packages/client" ]; then- echo "Client package directory found"+ PACKAGE_VERSION=$(node -p "require('./package.json').version")+ PUBLISHED_VERSION=$(npm view @librechat/client version 2>/dev/null || echo "0.0.0")+ if [ "$PACKAGE_VERSION" = "$PUBLISHED_VERSION" ]; then+ echo "No version change, skipping publish"+ echo "skip=true" >> $GITHUB_OUTPUTelse- echo "Client package directory not found - workflow ready for future use"- exit 0+ echo "Version changed, proceeding with publish"+ echo "skip=false" >> $GITHUB_OUTPUTfi-- - name: Placeholder for future publishing- run: echo "Client package publishing workflow is ready"\ No newline at end of file++ - name: Pack package+ if: steps.check.outputs.skip != 'true'+ working-directory: packages/client+ run: npm pack++ - name: Publish+ if: steps.check.outputs.skip != 'true'+ working-directory: packages/client+ run: npm publish *.tgz --access public\ No newline at end of filediff --git a/.github/workflows/i18n-unused-keys.yml b/.github/workflows/i18n-unused-keys.ymlindex 07cc77a1ae..9fb2fd6833 100644--- a/.github/workflows/i18n-unused-keys.yml+++ b/.github/workflows/i18n-unused-keys.yml@@ -6,6 +6,7 @@ on:- "client/src/**"- "api/**"- "packages/data-provider/src/**"+ - "packages/client/**"jobs:detect-unused-i18n-keys:@@ -23,7 +24,7 @@ jobs:# Define pathsI18N_FILE="client/src/locales/en/translation.json"- SOURCE_DIRS=("client/src" "api" "packages/data-provider/src")+ SOURCE_DIRS=("client/src" "api" "packages/data-provider/src" "packages/client")# Check if translation file existsif [[ ! -f "$I18N_FILE" ]]; thendiff --git a/.github/workflows/unused-packages.yml b/.github/workflows/unused-packages.ymlindex 5429a1abde..442925b69b 100644--- a/.github/workflows/unused-packages.yml+++ b/.github/workflows/unused-packages.yml@@ -7,6 +7,7 @@ on:- 'package-lock.json'- 'client/**'- 'api/**'+ - 'packages/client/**'jobs:detect-unused-packages:@@ -28,7 +29,7 @@ jobs:- name: Validate JSON filesrun: |- for FILE in package.json client/package.json api/package.json; do+ for FILE in package.json client/package.json api/package.json packages/client/package.json; doif [[ -f "$FILE" ]]; thenjq empty "$FILE" || (echo "::error title=Invalid JSON::$FILE is invalid" && exit 1)fi@@ -63,12 +64,31 @@ jobs:local folder=$1local output_file=$2if [[ -d "$folder" ]]; then- grep -rEho "require\\(['\"]([a-zA-Z0-9@/._-]+)['\"]\\)" "$folder" --include=\*.{js,ts,mjs,cjs} | \+ # Extract require() statements+ grep -rEho "require\\(['\"]([a-zA-Z0-9@/._-]+)['\"]\\)" "$folder" --include=\*.{js,ts,tsx,jsx,mjs,cjs} | \sed -E "s/require\\(['\"]([a-zA-Z0-9@/._-]+)['\"]\\)/\1/" > "$output_file"- grep -rEho "import .* from ['\"]([a-zA-Z0-9@/._-]+)['\"]" "$folder" --include=\*.{js,ts,mjs,cjs} | \+ # Extract ES6 imports - various patterns+ # import x from 'module'+ grep -rEho "import .* from ['\"]([a-zA-Z0-9@/._-]+)['\"]" "$folder" --include=\*.{js,ts,tsx,jsx,mjs,cjs} | \sed -E "s/import .* from ['\"]([a-zA-Z0-9@/._-]+)['\"]/\1/" >> "$output_file"++ # import 'module' (side-effect imports)+ grep -rEho "import ['\"]([a-zA-Z0-9@/._-]+)['\"]" "$folder" --include=\*.{js,ts,tsx,jsx,mjs,cjs} | \+ sed -E "s/import ['\"]([a-zA-Z0-9@/._-]+)['\"]/\1/" >> "$output_file"++ # export { x } from 'module' or export * from 'module'+ grep -rEho "export .* from ['\"]([a-zA-Z0-9@/._-]+)['\"]" "$folder" --include=\*.{js,ts,tsx,jsx,mjs,cjs} | \+ sed -E "s/export .* from ['\"]([a-zA-Z0-9@/._-]+)['\"]/\1/" >> "$output_file"++ # import type { x } from 'module' (TypeScript)+ grep -rEho "import type .* from ['\"]([a-zA-Z0-9@/._-]+)['\"]" "$folder" --include=\*.{ts,tsx} | \+ sed -E "s/import type .* from ['\"]([a-zA-Z0-9@/._-]+)['\"]/\1/" >> "$output_file"+ # Remove subpath imports but keep the base package+ # e.g., '@tanstack/react-query/devtools' becomes '@tanstack/react-query'+ sed -i -E 's|^(@?[a-zA-Z0-9-]+(/[a-zA-Z0-9-]+)?)/.*|\1|' "$output_file"+sort -u "$output_file" -o "$output_file"elsetouch "$output_file"@@ -78,6 +98,33 @@ jobs:extract_deps_from_code "." root_used_code.txtextract_deps_from_code "client" client_used_code.txtextract_deps_from_code "api" api_used_code.txt++ # Extract dependencies used by @librechat/client package+ extract_deps_from_code "packages/client" packages_client_used_code.txt++ - name: Get @librechat/client dependencies+ id: get-librechat-client-deps+ run: |+ if [[ -f "packages/client/package.json" ]]; then+ # Get all dependencies from @librechat/client (dependencies, devDependencies, and peerDependencies)+ DEPS=$(jq -r '.dependencies // {} | keys[]' packages/client/package.json 2>/dev/null || echo "")+ DEV_DEPS=$(jq -r '.devDependencies // {} | keys[]' packages/client/package.json 2>/dev/null || echo "")+ PEER_DEPS=$(jq -r '.peerDependencies // {} | keys[]' packages/client/package.json 2>/dev/null || echo "")++ # Combine all dependencies+ echo "$DEPS" > librechat_client_deps.txt+ echo "$DEV_DEPS" >> librechat_client_deps.txt+ echo "$PEER_DEPS" >> librechat_client_deps.txt++ # Also include dependencies that are imported in packages/client+ cat packages_client_used_code.txt >> librechat_client_deps.txt++ # Remove empty lines and sort+ grep -v '^$' librechat_client_deps.txt | sort -u > temp_deps.txt+ mv temp_deps.txt librechat_client_deps.txt+ else+ touch librechat_client_deps.txt+ fi- name: Extract Workspace Dependenciesid: extract-workspace-depsdiff --git a/bun.lockb b/bun.lockbindex 61118178fd..77b01df558 100755Binary files a/bun.lockb and b/bun.lockb differdiff --git a/client/package.json b/client/package.jsonindex d0c7c54e12..f1d68d27e5 100644--- a/client/package.json+++ b/client/package.json@@ -34,6 +34,7 @@"@dicebear/collection": "^9.2.2","@dicebear/core": "^9.2.2","@headlessui/react": "^2.1.2",+ "@librechat/client": "*","@marsidev/react-turnstile": "^1.1.0","@radix-ui/react-accordion": "^1.1.2","@radix-ui/react-alert-dialog": "^1.0.2",@@ -56,8 +57,8 @@"@react-spring/web": "^9.7.5","@tanstack/react-query": "^4.28.0","@tanstack/react-table": "^8.11.7",- "class-variance-authority": "^0.6.0",- "clsx": "^1.2.1",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1","copy-to-clipboard": "^3.3.3","cross-env": "^7.0.3","date-fns": "^3.3.1",@@ -70,11 +71,12 @@"i18next": "^24.2.2","i18next-browser-languagedetector": "^8.0.3","input-otp": "^1.4.2",+ "jotai": "^2.12.5","js-cookie": "^3.0.5","librechat-data-provider": "*","lodash": "^4.17.21","lucide-react": "^0.394.0",- "match-sorter": "^6.3.4",+ "match-sorter": "^8.1.0","micromark-extension-llm-math": "^3.1.0","qrcode.react": "^4.2.0","rc-input-number": "^7.4.2",diff --git a/client/src/App.jsx b/client/src/App.jsxindex 38e568e422..d329bdd9b3 100644--- a/client/src/App.jsx+++ b/client/src/App.jsx@@ -4,10 +4,10 @@ import { RouterProvider } from 'react-router-dom';import * as RadixToast from '@radix-ui/react-toast';import { HTML5Backend } from 'react-dnd-html5-backend';import { ReactQueryDevtools } from '@tanstack/react-query-devtools';+import { Toast, ThemeProvider, ToastProvider } from '@librechat/client';import { QueryClient, QueryClientProvider, QueryCache } from '@tanstack/react-query';-import { ScreenshotProvider, ThemeProvider, useApiErrorBoundary } from './hooks';-import { ToastProvider } from './Providers';-import Toast from './components/ui/Toast';+import { ScreenshotProvider, useApiErrorBoundary } from './hooks';+import { getThemeFromEnv } from './utils/getThemeFromEnv';import { LiveAnnouncer } from '~/a11y';import { router } from './routes';@@ -24,11 +24,23 @@ const App = () => {}),});+ // Load theme from environment variables if available+ const envTheme = getThemeFromEnv();+return (<QueryClientProvider client={queryClient}><RecoilRoot><LiveAnnouncer>- <ThemeProvider>+ <ThemeProvider+ // Only pass initialTheme and themeRGB if environment theme exists+ // This allows localStorage values to persist when no env theme is set+ {...(envTheme && { initialTheme: 'system', themeRGB: envTheme })}+ >+ {/* The ThemeProvider will automatically:+ 1. Apply dark/light mode classes+ 2. Apply custom theme colors if envTheme is provided+ 3. Otherwise use stored theme preferences from localStorage+ 4. Fall back to default theme colors if nothing is stored */}<RadixToast.Provider><ToastProvider><DndProvider backend={HTML5Backend}>diff --git a/client/src/Providers/index.ts b/client/src/Providers/index.tsindex caf5b82b73..7300813aec 100644--- a/client/src/Providers/index.ts+++ b/client/src/Providers/index.ts@@ -1,11 +1,9 @@export { default as AssistantsProvider } from './AssistantsContext';export { default as AgentsProvider } from './AgentsContext';-export { default as ToastProvider } from './ToastContext';export * from './ActivePanelContext';export * from './AgentPanelContext';export * from './ChatContext';export * from './ShareContext';-export * from './ToastContext';export * from './FileMapContext';export * from './AddedChatContext';export * from './EditorContext';diff --git a/client/src/a11y/LiveAnnouncer.tsx b/client/src/a11y/LiveAnnouncer.tsxindex 29912b49af..9a02711556 100644--- a/client/src/a11y/LiveAnnouncer.tsx+++ b/client/src/a11y/LiveAnnouncer.tsx@@ -1,8 +1,7 @@-// client/src/a11y/LiveAnnouncer.tsximport React, { useState, useCallback, useRef, useEffect, useMemo } from 'react';import type { AnnounceOptions } from '~/common';import AnnouncerContext from '~/Providers/AnnouncerContext';-import useLocalize from '~/hooks/useLocalize';+import { useLocalize } from '~/hooks';import Announcer from './Announcer';interface LiveAnnouncerProps {diff --git a/client/src/common/menus.ts b/client/src/common/menus.tsindex c46ad3f8bb..4d70f282c2 100644--- a/client/src/common/menus.ts+++ b/client/src/common/menus.ts@@ -1,4 +1,3 @@-/* eslint-disable @typescript-eslint/no-explicit-any */export type RenderProp<P = React.HTMLAttributes<any> & {ref?: React.Ref<any>;diff --git a/client/src/common/types.ts b/client/src/common/types.tsindex a222cb29b4..214dc349b5 100644--- a/client/src/common/types.ts+++ b/client/src/common/types.ts@@ -206,7 +206,9 @@ export type AgentPanelProps = {setActivePanel: React.Dispatch<React.SetStateAction<Panel>>;setMcp: React.Dispatch<React.SetStateAction<t.MCP | undefined>>;setAction: React.Dispatch<React.SetStateAction<t.Action | undefined>>;+ endpointsConfig?: t.TEndpointsConfig;setCurrentAgentId: React.Dispatch<React.SetStateAction<string | undefined>>;+ agentsConfig?: t.TAgentsEndpoint | null;};export type AgentPanelContextType = {@@ -217,14 +219,12 @@ export type AgentPanelContextType = {mcps?: t.MCP[];setMcp: React.Dispatch<React.SetStateAction<t.MCP | undefined>>;setMcps: React.Dispatch<React.SetStateAction<t.MCP[] | undefined>>;+ groupedTools: Record<string, t.AgentToolType & { tools?: t.AgentToolType[] }>;tools: t.AgentToolType[];activePanel?: string;setActivePanel: React.Dispatch<React.SetStateAction<Panel>>;setCurrentAgentId: React.Dispatch<React.SetStateAction<string | undefined>>;- groupedTools?: Record<string, t.AgentToolType & { tools?: t.AgentToolType[] }>;agent_id?: string;- agentsConfig?: t.TAgentsEndpoint | null;- endpointsConfig?: t.TEndpointsConfig | null;};export type AgentModelPanelProps = {@@ -336,16 +336,13 @@ export type TAskProps = {export type TOptions = {editedMessageId?: string | null;editedText?: string | null;- editedContent?: {- index: number;- text: string;- type: 'text' | 'think';- };isRegenerate?: boolean;isContinued?: boolean;isEdited?: boolean;overrideMessages?: t.TMessage[];- /** Currently only utilized when resubmitting user-created message, uses that message's currently attached files */+ /** This value is only true when the user submits a message with "Save & Submit" for a user-created message */+ isResubmission?: boolean;+ /** Currently only utilized when `isResubmission === true`, uses that message's currently attached files */overrideFiles?: t.TMessage['files'];};diff --git a/client/src/components/Artifacts/Artifacts.tsx b/client/src/components/Artifacts/Artifacts.tsxindex 4268ef5fe3..41c6201025 100644--- a/client/src/components/Artifacts/Artifacts.tsx+++ b/client/src/components/Artifacts/Artifacts.tsx@@ -6,9 +6,9 @@ import type { SandpackPreviewRef, CodeEditorRef } from '@codesandbox/sandpack-reimport useArtifacts from '~/hooks/Artifacts/useArtifacts';import DownloadArtifact from './DownloadArtifact';import { useEditorContext } from '~/Providers';-import useLocalize from '~/hooks/useLocalize';import ArtifactTabs from './ArtifactTabs';import { CopyCodeButton } from './Code';+import { useLocalize } from '~/hooks';import store from '~/store';export default function Artifacts() {diff --git a/client/src/components/Artifacts/Code.tsx b/client/src/components/Artifacts/Code.tsxindex 21db2055d7..4b6d1a0065 100644--- a/client/src/components/Artifacts/Code.tsx+++ b/client/src/components/Artifacts/Code.tsx@@ -1,12 +1,11 @@import React, { memo, useEffect, useRef, useState } from 'react';+import copy from 'copy-to-clipboard';import rehypeKatex from 'rehype-katex';import ReactMarkdown from 'react-markdown';import rehypeHighlight from 'rehype-highlight';-import copy from 'copy-to-clipboard';+import { Clipboard, CheckMark } from '@librechat/client';import { handleDoubleClick, langSubset } from '~/utils';-import Clipboard from '~/components/svg/Clipboard';-import CheckMark from '~/components/svg/CheckMark';-import useLocalize from '~/hooks/useLocalize';+import { useLocalize } from '~/hooks';type TCodeProps = {inline: boolean;diff --git a/client/src/components/Artifacts/DownloadArtifact.tsx b/client/src/components/Artifacts/DownloadArtifact.tsxindex a4b6f5031c..afced5a37f 100644--- a/client/src/components/Artifacts/DownloadArtifact.tsx+++ b/client/src/components/Artifacts/DownloadArtifact.tsx@@ -1,9 +1,9 @@import React, { useState } from 'react';import { Download } from 'lucide-react';import type { Artifact } from '~/common';+import { CheckMark } from '@librechat/client';import useArtifactProps from '~/hooks/Artifacts/useArtifactProps';import { useEditorContext } from '~/Providers';-import { CheckMark } from '~/components/svg';import { useLocalize } from '~/hooks';const DownloadArtifact = ({diff --git a/client/src/components/Artifacts/Mermaid.tsx b/client/src/components/Artifacts/Mermaid.tsxindex 551a5a5a78..f7291998a4 100644--- a/client/src/components/Artifacts/Mermaid.tsx+++ b/client/src/components/Artifacts/Mermaid.tsx@@ -1,8 +1,7 @@import React, { useEffect, useRef, useState } from 'react';import mermaid from 'mermaid';+import { Button } from '@librechat/client';import { TransformWrapper, TransformComponent, ReactZoomPanPinchRef } from 'react-zoom-pan-pinch';-// import { Button } from '/components/ui/Button'; // Live component-import { Button } from '~/components/ui/Button';import { ZoomIn, ZoomOut, RefreshCw } from 'lucide-react';interface MermaidDiagramProps {diff --git a/client/src/components/Audio/TTS.tsx b/client/src/components/Audio/TTS.tsxindex 9343b483d2..0d9351703e 100644--- a/client/src/components/Audio/TTS.tsx+++ b/client/src/components/Audio/TTS.tsx@@ -2,8 +2,8 @@import { useEffect } from 'react';import { useRecoilValue } from 'recoil';import type { TMessageAudio } from '~/common';+import { VolumeIcon, VolumeMuteIcon, Spinner } from '@librechat/client';import { useLocalize, useTTSBrowser, useTTSExternal } from '~/hooks';-import { VolumeIcon, VolumeMuteIcon, Spinner } from '~/components';import { logger } from '~/utils';import store from '~/store';diff --git a/client/src/components/Audio/Voices.tsx b/client/src/components/Audio/Voices.tsxindex 985e5e32d8..6064a16624 100644--- a/client/src/components/Audio/Voices.tsx+++ b/client/src/components/Audio/Voices.tsx@@ -1,8 +1,8 @@import React from 'react';import { useRecoilState } from 'recoil';+import { Dropdown } from '@librechat/client';import type { Option } from '~/common';import { useLocalize, useTTSBrowser, useTTSExternal } from '~/hooks';-import { Dropdown } from '~/components/ui';import { logger } from '~/utils';import store from '~/store';diff --git a/client/src/components/Auth/AuthLayout.tsx b/client/src/components/Auth/AuthLayout.tsxindex 02b3802917..c49ba2a7da 100644--- a/client/src/components/Auth/AuthLayout.tsx+++ b/client/src/components/Auth/AuthLayout.tsx@@ -1,9 +1,9 @@-import { TranslationKeys, useLocalize } from '~/hooks';+import { ThemeSelector } from '@librechat/client';import { TStartupConfig } from 'librechat-data-provider';import { ErrorMessage } from '~/components/Auth/ErrorMessage';+import { TranslationKeys, useLocalize } from '~/hooks';import SocialLoginRender from './SocialLoginRender';import { BlinkAnimation } from './BlinkAnimation';-import { ThemeSelector } from '~/components';import { Banner } from '../Banners';import Footer from './Footer';diff --git a/client/src/components/Auth/Login.tsx b/client/src/components/Auth/Login.tsxindex ee0b87246c..39406e300f 100644--- a/client/src/components/Auth/Login.tsx+++ b/client/src/components/Auth/Login.tsx@@ -1,10 +1,10 @@import { useOutletContext, useSearchParams } from 'react-router-dom';import { useEffect, useState } from 'react';-import { useAuthContext } from '~/hooks/AuthContext';+import { OpenIDIcon } from '@librechat/client';import type { TLoginLayoutContext } from '~/common';import { ErrorMessage } from '~/components/Auth/ErrorMessage';import SocialButton from '~/components/Auth/SocialButton';-import { OpenIDIcon } from '~/components';+import { useAuthContext } from '~/hooks/AuthContext';import { getLoginError } from '~/utils';import { useLocalize } from '~/hooks';import LoginForm from './LoginForm';diff --git a/client/src/components/Auth/LoginForm.tsx b/client/src/components/Auth/LoginForm.tsxindex c13535db23..c7a469fc2e 100644--- a/client/src/components/Auth/LoginForm.tsx+++ b/client/src/components/Auth/LoginForm.tsx@@ -1,11 +1,11 @@-import { useForm } from 'react-hook-form';import React, { useState, useEffect, useContext } from 'react';+import { useForm } from 'react-hook-form';import { Turnstile } from '@marsidev/react-turnstile';+import { ThemeContext, Spinner, Button } from '@librechat/client';import type { TLoginUser, TStartupConfig } from 'librechat-data-provider';import type { TAuthContext } from '~/common';import { useResendVerificationEmail, useGetStartupConfig } from '~/data-provider';-import { ThemeContext, useLocalize } from '~/hooks';-import { Spinner, Button } from '~/components';+import { useLocalize } from '~/hooks';type TLoginFormProps = {onSubmit: (data: TLoginUser) => void;diff --git a/client/src/components/Auth/Registration.tsx b/client/src/components/Auth/Registration.tsxindex b193cff11c..2e915e0137 100644--- a/client/src/components/Auth/Registration.tsx+++ b/client/src/components/Auth/Registration.tsx@@ -1,12 +1,12 @@import { useForm } from 'react-hook-form';import React, { useContext, useState } from 'react';import { Turnstile } from '@marsidev/react-turnstile';+import { ThemeContext, Spinner, Button } from '@librechat/client';import { useNavigate, useOutletContext, useLocation } from 'react-router-dom';import { useRegisterUserMutation } from 'librechat-data-provider/react-query';import type { TRegisterUser, TError } from 'librechat-data-provider';-import { useLocalize, TranslationKeys, ThemeContext } from '~/hooks';import type { TLoginLayoutContext } from '~/common';-import { Spinner, Button } from '~/components';+import { useLocalize, TranslationKeys } from '~/hooks';import { ErrorMessage } from './ErrorMessage';const Registration: React.FC = () => {diff --git a/client/src/components/Auth/RequestPasswordReset.tsx b/client/src/components/Auth/RequestPasswordReset.tsxindex c0ef5751ca..9f50a7e42c 100644--- a/client/src/components/Auth/RequestPasswordReset.tsx+++ b/client/src/components/Auth/RequestPasswordReset.tsx@@ -1,11 +1,11 @@import { useForm } from 'react-hook-form';import { useState, ReactNode } from 'react';+import { Spinner, Button } from '@librechat/client';import { useOutletContext } from 'react-router-dom';import { useRequestPasswordResetMutation } from 'librechat-data-provider/react-query';import type { TRequestPasswordReset, TRequestPasswordResetResponse } from 'librechat-data-provider';-import type { FC } from 'react';import type { TLoginLayoutContext } from '~/common';-import { Spinner, Button } from '~/components';+import type { FC } from 'react';import { useLocalize } from '~/hooks';const BodyTextWrapper: FC<{ children: ReactNode }> = ({ children }) => {diff --git a/client/src/components/Auth/ResetPassword.tsx b/client/src/components/Auth/ResetPassword.tsxindex 231c501cb8..2882e1dc53 100644--- a/client/src/components/Auth/ResetPassword.tsx+++ b/client/src/components/Auth/ResetPassword.tsx@@ -1,10 +1,10 @@import { useForm } from 'react-hook-form';+import { Spinner, Button } from '@librechat/client';import { useOutletContext } from 'react-router-dom';import { useNavigate, useSearchParams } from 'react-router-dom';import { useResetPasswordMutation } from 'librechat-data-provider/react-query';import type { TResetPassword } from 'librechat-data-provider';import type { TLoginLayoutContext } from '~/common';-import { Spinner, Button } from '~/components';import { useLocalize } from '~/hooks';function ResetPassword() {diff --git a/client/src/components/Auth/SocialLoginRender.tsx b/client/src/components/Auth/SocialLoginRender.tsxindex 55a8ade6ba..ad76354a53 100644--- a/client/src/components/Auth/SocialLoginRender.tsx+++ b/client/src/components/Auth/SocialLoginRender.tsx@@ -6,7 +6,7 @@ import {DiscordIcon,AppleIcon,SamlIcon,-} from '~/components';+} from '@librechat/client';import SocialButton from './SocialButton';diff --git a/client/src/components/Auth/TwoFactorScreen.tsx b/client/src/components/Auth/TwoFactorScreen.tsxindex 04f89d7cea..11eab660c7 100644--- a/client/src/components/Auth/TwoFactorScreen.tsx+++ b/client/src/components/Auth/TwoFactorScreen.tsx@@ -1,10 +1,10 @@import React, { useState, useCallback } from 'react';import { useSearchParams } from 'react-router-dom';+import { useToastContext } from '@librechat/client';import { useForm, Controller } from 'react-hook-form';import { REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from 'input-otp';-import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label } from '~/components';+import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label } from '@librechat/client';import { useVerifyTwoFactorTempMutation } from '~/data-provider';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';interface VerifyPayload {diff --git a/client/src/components/Auth/VerifyEmail.tsx b/client/src/components/Auth/VerifyEmail.tsxindex 9c143224b2..fb5c787196 100644--- a/client/src/components/Auth/VerifyEmail.tsx+++ b/client/src/components/Auth/VerifyEmail.tsx@@ -1,8 +1,7 @@-import { useSearchParams, useNavigate } from 'react-router-dom';import { useState, useEffect, useMemo, useCallback } from 'react';+import { Spinner, ThemeSelector } from '@librechat/client';+import { useSearchParams, useNavigate } from 'react-router-dom';import { useVerifyEmailMutation, useResendVerificationEmail } from '~/data-provider';-import { ThemeSelector } from '~/components/ui';-import { Spinner } from '~/components/svg';import { useLocalize } from '~/hooks';function RequestPasswordReset() {diff --git a/client/src/components/Bookmarks/BookmarkEditDialog.tsx b/client/src/components/Bookmarks/BookmarkEditDialog.tsxindex ae81c3b81e..7c0b494d7d 100644--- a/client/src/components/Bookmarks/BookmarkEditDialog.tsx+++ b/client/src/components/Bookmarks/BookmarkEditDialog.tsx@@ -1,10 +1,8 @@import React, { useRef, Dispatch, SetStateAction } from 'react';import { TConversationTag } from 'librechat-data-provider';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';+import { OGDialogTemplate, OGDialog, Button, Spinner, useToastContext } from '@librechat/client';import { useConversationTagMutation } from '~/data-provider';-import { OGDialog, Button, Spinner } from '~/components';import { NotificationSeverity } from '~/common';-import { useToastContext } from '~/Providers';import BookmarkForm from './BookmarkForm';import { useLocalize } from '~/hooks';import { logger } from '~/utils';diff --git a/client/src/components/Bookmarks/BookmarkForm.tsx b/client/src/components/Bookmarks/BookmarkForm.tsxindex c866216be0..857eacb10c 100644--- a/client/src/components/Bookmarks/BookmarkForm.tsx+++ b/client/src/components/Bookmarks/BookmarkForm.tsx@@ -2,11 +2,10 @@ import React, { useEffect } from 'react';import { QueryKeys } from 'librechat-data-provider';import { Controller, useForm } from 'react-hook-form';import { useQueryClient } from '@tanstack/react-query';+import { Checkbox, Label, TextareaAutosize, Input, useToastContext } from '@librechat/client';import type { TConversationTag, TConversationTagRequest } from 'librechat-data-provider';-import { Checkbox, Label, TextareaAutosize, Input } from '~/components';import { useBookmarkContext } from '~/Providers/BookmarkContext';import { useConversationTagMutation } from '~/data-provider';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';import { cn, logger } from '~/utils';diff --git a/client/src/components/Bookmarks/BookmarkItem.tsx b/client/src/components/Bookmarks/BookmarkItem.tsxindex 60698a3165..b12a5b5ac5 100644--- a/client/src/components/Bookmarks/BookmarkItem.tsx+++ b/client/src/components/Bookmarks/BookmarkItem.tsx@@ -1,8 +1,8 @@import { useState } from 'react';+import { Spinner } from '@librechat/client';import { MenuItem } from '@headlessui/react';import { BookmarkFilledIcon, BookmarkIcon } from '@radix-ui/react-icons';import type { FC } from 'react';-import { Spinner } from '~/components/svg';type MenuItemProps = {tag: string | React.ReactNode;diff --git a/client/src/components/Bookmarks/DeleteBookmarkButton.tsx b/client/src/components/Bookmarks/DeleteBookmarkButton.tsxindex 911659de74..e63feb7621 100644--- a/client/src/components/Bookmarks/DeleteBookmarkButton.tsx+++ b/client/src/components/Bookmarks/DeleteBookmarkButton.tsx@@ -1,10 +1,17 @@import { useCallback, useState } from 'react';+import {+ Button,+ TrashIcon,+ Label,+ OGDialog,+ OGDialogTrigger,+ TooltipAnchor,+ OGDialogTemplate,+ useToastContext,+} from '@librechat/client';import type { FC } from 'react';-import { Button, TrashIcon, Label, OGDialog, OGDialogTrigger, TooltipAnchor } from '~/components';import { useDeleteConversationTagMutation } from '~/data-provider';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';import { NotificationSeverity } from '~/common';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';const DeleteBookmarkButton: FC<{diff --git a/client/src/components/Bookmarks/EditBookmarkButton.tsx b/client/src/components/Bookmarks/EditBookmarkButton.tsxindex 6e976a53cf..7c4355be81 100644--- a/client/src/components/Bookmarks/EditBookmarkButton.tsx+++ b/client/src/components/Bookmarks/EditBookmarkButton.tsx@@ -1,7 +1,7 @@import { useState } from 'react';-import type { FC } from 'react';+import { TooltipAnchor, OGDialogTrigger, EditIcon, Button } from '@librechat/client';import type { TConversationTag } from 'librechat-data-provider';-import { TooltipAnchor, OGDialogTrigger, EditIcon, Button } from '~/components';+import type { FC } from 'react';import BookmarkEditDialog from './BookmarkEditDialog';import { useLocalize } from '~/hooks';diff --git a/client/src/components/Chat/AddMultiConvo.tsx b/client/src/components/Chat/AddMultiConvo.tsxindex 79131dfdb0..26395c7a6f 100644--- a/client/src/components/Chat/AddMultiConvo.tsx+++ b/client/src/components/Chat/AddMultiConvo.tsx@@ -1,8 +1,8 @@import { PlusCircle } from 'lucide-react';+import { TooltipAnchor } from '@librechat/client';import { isAssistantsEndpoint } from 'librechat-data-provider';import type { TConversation } from 'librechat-data-provider';import { useChatContext, useAddedChatContext } from '~/Providers';-import { TooltipAnchor } from '~/components';import { mainTextareaId } from '~/common';import { useLocalize } from '~/hooks';diff --git a/client/src/components/Chat/ChatView.tsx b/client/src/components/Chat/ChatView.tsxindex a554c5f7d1..f488d76b27 100644--- a/client/src/components/Chat/ChatView.tsx+++ b/client/src/components/Chat/ChatView.tsx@@ -1,6 +1,7 @@import { memo, useCallback } from 'react';import { useRecoilValue } from 'recoil';import { useForm } from 'react-hook-form';+import { Spinner } from '@librechat/client';import { useParams } from 'react-router-dom';import { Constants } from 'librechat-data-provider';import type { TMessage } from 'librechat-data-provider';@@ -10,7 +11,6 @@ import { useChatHelpers, useAddedResponse, useSSE } from '~/hooks';import ConversationStarters from './Input/ConversationStarters';import { useGetMessagesByConvoId } from '~/data-provider';import MessagesView from './Messages/MessagesView';-import { Spinner } from '~/components/svg';import Presentation from './Presentation';import { buildTree, cn } from '~/utils';import ChatForm from './Input/ChatForm';diff --git a/client/src/components/Chat/ExportAndShareMenu.tsx b/client/src/components/Chat/ExportAndShareMenu.tsxindex aa9ee8be9b..207efcbc8d 100644--- a/client/src/components/Chat/ExportAndShareMenu.tsx+++ b/client/src/components/Chat/ExportAndShareMenu.tsx@@ -2,11 +2,11 @@ import { useState, useId, useRef } from 'react';import { useRecoilValue } from 'recoil';import * as Ariakit from '@ariakit/react';import { Upload, Share2 } from 'lucide-react';+import { DropdownPopup, TooltipAnchor, useMediaQuery } from '@librechat/client';import type * as t from '~/common';import ExportModal from '~/components/Nav/ExportConversation/ExportModal';import { ShareButton } from '~/components/Conversations/ConvoOptions';-import { DropdownPopup, TooltipAnchor } from '~/components/ui';-import { useMediaQuery, useLocalize } from '~/hooks';+import { useLocalize } from '~/hooks';import store from '~/store';export default function ExportAndShareMenu({diff --git a/client/src/components/Chat/Header.tsx b/client/src/components/Chat/Header.tsxindex 93a265f4a2..d252e58df3 100644--- a/client/src/components/Chat/Header.tsx+++ b/client/src/components/Chat/Header.tsx@@ -1,4 +1,5 @@import { useMemo } from 'react';+import { useMediaQuery } from '@librechat/client';import { useOutletContext } from 'react-router-dom';import { getConfigDefaults, PermissionTypes, Permissions } from 'librechat-data-provider';import type { ContextType } from '~/common';@@ -6,10 +7,10 @@ import ModelSelector from './Menus/Endpoints/ModelSelector';import { PresetsMenu, HeaderNewChat, OpenSidebar } from './Menus';import { useGetStartupConfig } from '~/data-provider';import ExportAndShareMenu from './ExportAndShareMenu';-import { useMediaQuery, useHasAccess } from '~/hooks';import BookmarkMenu from './Menus/BookmarkMenu';import { TemporaryChat } from './TemporaryChat';import AddMultiConvo from './AddMultiConvo';+import { useHasAccess } from '~/hooks';const defaultInterface = getConfigDefaults().interface;diff --git a/client/src/components/Chat/Input/Artifacts.tsx b/client/src/components/Chat/Input/Artifacts.tsxindex eb2c49572f..493f126e3c 100644--- a/client/src/components/Chat/Input/Artifacts.tsx+++ b/client/src/components/Chat/Input/Artifacts.tsx@@ -1,8 +1,8 @@import React, { memo, useState, useCallback, useMemo } from 'react';import * as Ariakit from '@ariakit/react';+import { CheckboxButton } from '@librechat/client';import { ArtifactModes } from 'librechat-data-provider';import { WandSparkles, ChevronDown } from 'lucide-react';-import CheckboxButton from '~/components/ui/CheckboxButton';import { useBadgeRowContext } from '~/Providers';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/ArtifactsSubMenu.tsx b/client/src/components/Chat/Input/ArtifactsSubMenu.tsxindex 944ecb66c7..654c129fba 100644--- a/client/src/components/Chat/Input/ArtifactsSubMenu.tsx+++ b/client/src/components/Chat/Input/ArtifactsSubMenu.tsx@@ -1,8 +1,8 @@import React from 'react';import * as Ariakit from '@ariakit/react';+import { PinIcon } from '@librechat/client';import { ChevronRight, WandSparkles } from 'lucide-react';import { ArtifactModes } from 'librechat-data-provider';-import { PinIcon } from '~/components/svg';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/AudioRecorder.tsx b/client/src/components/Chat/Input/AudioRecorder.tsxindex eae7c266cf..ae4252f4f9 100644--- a/client/src/components/Chat/Input/AudioRecorder.tsx+++ b/client/src/components/Chat/Input/AudioRecorder.tsx@@ -1,8 +1,7 @@import { useCallback } from 'react';-import { useChatFormContext, useToastContext } from '~/Providers';-import { ListeningIcon, Spinner } from '~/components/svg';+import { useToastContext, TooltipAnchor, ListeningIcon, Spinner } from '@librechat/client';import { useLocalize, useSpeechToText } from '~/hooks';-import { TooltipAnchor } from '~/components/ui';+import { useChatFormContext } from '~/Providers';import { globalAudioId } from '~/common';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/BadgeRow.tsx b/client/src/components/Chat/Input/BadgeRow.tsxindex d77fc5426c..5036dcd5e4 100644--- a/client/src/components/Chat/Input/BadgeRow.tsx+++ b/client/src/components/Chat/Input/BadgeRow.tsx@@ -8,6 +8,7 @@ import React, {useReducer,useCallback,} from 'react';+import { Badge } from '@librechat/client';import { useRecoilValue, useRecoilCallback } from 'recoil';import type { LucideIcon } from 'lucide-react';import CodeInterpreter from './CodeInterpreter';@@ -15,7 +16,6 @@ import { BadgeRowProvider } from '~/Providers';import ToolsDropdown from './ToolsDropdown';import type { BadgeItem } from '~/common';import { useChatBadges } from '~/hooks';-import { Badge } from '~/components/ui';import ToolDialogs from './ToolDialogs';import FileSearch from './FileSearch';import Artifacts from './Artifacts';diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsxindex 0ca6448094..50fa318b3e 100644--- a/client/src/components/Chat/Input/ChatForm.tsx+++ b/client/src/components/Chat/Input/ChatForm.tsx@@ -1,5 +1,6 @@import { memo, useRef, useMemo, useEffect, useState, useCallback } from 'react';import { useWatch } from 'react-hook-form';+import { TextareaAutosize } from '@librechat/client';import { useRecoilState, useRecoilValue } from 'recoil';import { Constants, isAssistantsEndpoint, isAgentsEndpoint } from 'librechat-data-provider';import {@@ -20,7 +21,6 @@ import {import { mainTextareaId, BadgeItem } from '~/common';import AttachFileChat from './Files/AttachFileChat';import FileFormChat from './Files/FileFormChat';-import { TextareaAutosize } from '~/components';import { cn, removeFocusRings } from '~/utils';import TextareaHeader from './TextareaHeader';import PromptsCommand from './PromptsCommand';diff --git a/client/src/components/Chat/Input/CircleRender.tsx b/client/src/components/Chat/Input/CircleRender.tsxindex 88b7947633..5b46f65744 100644--- a/client/src/components/Chat/Input/CircleRender.tsx+++ b/client/src/components/Chat/Input/CircleRender.tsx@@ -1,6 +1,6 @@import React from 'react';-import { CircleIcon, CircleDotsIcon } from '~/components/svg';import { ECallState } from 'librechat-data-provider';+import { CircleIcon, CircleDotsIcon } from '@librechat/client';const CircleRender = ({ rmsLevel, isCameraOn, state }) => {const getIconComponent = (state) => {diff --git a/client/src/components/Chat/Input/CodeInterpreter.tsx b/client/src/components/Chat/Input/CodeInterpreter.tsxindex f2d9760cca..6805c3300c 100644--- a/client/src/components/Chat/Input/CodeInterpreter.tsx+++ b/client/src/components/Chat/Input/CodeInterpreter.tsx@@ -1,7 +1,7 @@import React, { memo } from 'react';import { TerminalSquareIcon } from 'lucide-react';+import { CheckboxButton } from '@librechat/client';import { PermissionTypes, Permissions } from 'librechat-data-provider';-import CheckboxButton from '~/components/ui/CheckboxButton';import { useLocalize, useHasAccess } from '~/hooks';import { useBadgeRowContext } from '~/Providers';diff --git a/client/src/components/Chat/Input/CollapseChat.tsx b/client/src/components/Chat/Input/CollapseChat.tsxindex 1bec592177..1ae0caf794 100644--- a/client/src/components/Chat/Input/CollapseChat.tsx+++ b/client/src/components/Chat/Input/CollapseChat.tsx@@ -1,6 +1,6 @@import React from 'react';+import { TooltipAnchor } from '@librechat/client';import { ChevronDown, ChevronUp } from 'lucide-react';-import { TooltipAnchor } from '~/components/ui';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/EditBadges.tsx b/client/src/components/Chat/Input/EditBadges.tsxindex 0c9c0b5b22..821fdd4b31 100644--- a/client/src/components/Chat/Input/EditBadges.tsx+++ b/client/src/components/Chat/Input/EditBadges.tsx@@ -1,9 +1,9 @@import React, { useCallback } from 'react';import { Edit3, Check, X } from 'lucide-react';+import { Button, Badge } from '@librechat/client';import type { LucideIcon } from 'lucide-react';import type { BadgeItem } from '~/common';import { useChatBadges, useLocalize } from '~/hooks';-import { Button, Badge } from '~/components/ui';interface EditBadgesProps {isEditingChatBadges: boolean;diff --git a/client/src/components/Chat/Input/FileSearch.tsx b/client/src/components/Chat/Input/FileSearch.tsxindex 4de6c35b6b..b5106dd054 100644--- a/client/src/components/Chat/Input/FileSearch.tsx+++ b/client/src/components/Chat/Input/FileSearch.tsx@@ -1,9 +1,8 @@import React, { memo } from 'react';+import { CheckboxButton, VectorIcon } from '@librechat/client';import { PermissionTypes, Permissions } from 'librechat-data-provider';-import CheckboxButton from '~/components/ui/CheckboxButton';import { useLocalize, useHasAccess } from '~/hooks';import { useBadgeRowContext } from '~/Providers';-import { VectorIcon } from '~/components/svg';function FileSearch() {const localize = useLocalize();diff --git a/client/src/components/Chat/Input/Files/AttachFile.tsx b/client/src/components/Chat/Input/Files/AttachFile.tsxindex fe8c03c80a..c896109abb 100644--- a/client/src/components/Chat/Input/Files/AttachFile.tsx+++ b/client/src/components/Chat/Input/Files/AttachFile.tsx@@ -1,5 +1,5 @@import React, { useRef } from 'react';-import { FileUpload, TooltipAnchor, AttachmentIcon } from '~/components';+import { FileUpload, TooltipAnchor, AttachmentIcon } from '@librechat/client';import { useLocalize, useFileHandling } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/Files/AttachFileMenu.tsx b/client/src/components/Chat/Input/Files/AttachFileMenu.tsxindex 9fe2988606..5e42dd063a 100644--- a/client/src/components/Chat/Input/Files/AttachFileMenu.tsx+++ b/client/src/components/Chat/Input/Files/AttachFileMenu.tsx@@ -1,11 +1,11 @@-import { useSetRecoilState } from 'recoil';-import * as Ariakit from '@ariakit/react';import React, { useRef, useState, useMemo } from 'react';+import * as Ariakit from '@ariakit/react';+import { useSetRecoilState } from 'recoil';import { FileSearch, ImageUpIcon, TerminalSquareIcon, FileType2Icon } from 'lucide-react';+import { FileUpload, TooltipAnchor, DropdownPopup, AttachmentIcon } from '@librechat/client';import { EToolResources, EModelEndpoint, defaultAgentCapabilities } from 'librechat-data-provider';import type { EndpointFileConfig } from 'librechat-data-provider';import { useLocalize, useGetAgentsConfig, useFileHandling, useAgentCapabilities } from '~/hooks';-import { FileUpload, TooltipAnchor, DropdownPopup, AttachmentIcon } from '~/components';import { ephemeralAgentByConvoId } from '~/store';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/Files/DragDropModal.tsx b/client/src/components/Chat/Input/Files/DragDropModal.tsxindex f80af70def..c3b337b42d 100644--- a/client/src/components/Chat/Input/Files/DragDropModal.tsx+++ b/client/src/components/Chat/Input/Files/DragDropModal.tsx@@ -1,8 +1,8 @@import React, { useMemo } from 'react';+import { OGDialog, OGDialogTemplate } from '@librechat/client';import { ImageUpIcon, FileSearch, TerminalSquareIcon, FileType2Icon } from 'lucide-react';import { EToolResources, defaultAgentCapabilities } from 'librechat-data-provider';import { useLocalize, useGetAgentsConfig, useAgentCapabilities } from '~/hooks';-import { OGDialog, OGDialogTemplate } from '~/components/ui';interface DragDropModalProps {onOptionSelect: (option: EToolResources | undefined) => void;diff --git a/client/src/components/Chat/Input/Files/FilePreview.tsx b/client/src/components/Chat/Input/Files/FilePreview.tsxindex 400834a5b5..6000922786 100644--- a/client/src/components/Chat/Input/Files/FilePreview.tsx+++ b/client/src/components/Chat/Input/Files/FilePreview.tsx@@ -1,7 +1,7 @@+import { Spinner } from '@librechat/client';import type { TFile } from 'librechat-data-provider';import type { ExtendedFile } from '~/common';-import FileIcon from '~/components/svg/Files/FileIcon';-import { Spinner } from '~/components';+import { FileIcon } from '~/components/svg';import SourceIcon from './SourceIcon';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/Files/FileRow.tsx b/client/src/components/Chat/Input/Files/FileRow.tsxindex 67d687eefd..47da77bbf9 100644--- a/client/src/components/Chat/Input/Files/FileRow.tsx+++ b/client/src/components/Chat/Input/Files/FileRow.tsx@@ -1,11 +1,11 @@import { useEffect } from 'react';+import { useToastContext } from '@librechat/client';import { EToolResources } from 'librechat-data-provider';import type { ExtendedFile } from '~/common';import { useDeleteFilesMutation } from '~/data-provider';-import { useToastContext } from '~/Providers';-import { useLocalize } from '~/hooks';import { useFileDeletion } from '~/hooks/Files';import FileContainer from './FileContainer';+import { useLocalize } from '~/hooks';import { logger } from '~/utils';import Image from './Image';diff --git a/client/src/components/Chat/Input/Files/FilesView.tsx b/client/src/components/Chat/Input/Files/FilesView.tsxindex afffa34c19..13a378b93d 100644--- a/client/src/components/Chat/Input/Files/FilesView.tsx+++ b/client/src/components/Chat/Input/Files/FilesView.tsx@@ -1,6 +1,6 @@import { FileSources, FileContext } from 'librechat-data-provider';import type { TFile } from 'librechat-data-provider';-import { OGDialog, OGDialogContent, OGDialogHeader, OGDialogTitle } from '~/components';+import { OGDialog, OGDialogContent, OGDialogHeader, OGDialogTitle } from '@librechat/client';import { useGetFiles } from '~/data-provider';import { DataTable, columns } from './Table';import { useLocalize } from '~/hooks';diff --git a/client/src/components/Chat/Input/Files/ImagePreview.tsx b/client/src/components/Chat/Input/Files/ImagePreview.tsxindex fe761da862..37d4e79008 100644--- a/client/src/components/Chat/Input/Files/ImagePreview.tsx+++ b/client/src/components/Chat/Input/Files/ImagePreview.tsx@@ -1,7 +1,7 @@import { useState, useEffect, useCallback } from 'react';import { Maximize2 } from 'lucide-react';-import { OGDialog, OGDialogContent } from '~/components/ui';import { FileSources } from 'librechat-data-provider';+import { OGDialog, OGDialogContent } from '@librechat/client';import ProgressCircle from './ProgressCircle';import SourceIcon from './SourceIcon';import { cn } from '~/utils';@@ -93,9 +93,9 @@ const ImagePreview = ({const style: styleProps = imageUrl? {- ...baseStyle,- backgroundImage: `url(${imageUrl})`,- }+ ...baseStyle,+ backgroundImage: `url(${imageUrl})`,+ }: baseStyle;if (typeof style.backgroundImage !== 'string' || style.backgroundImage.length === 0) {diff --git a/client/src/components/Chat/Input/Files/Table/Columns.tsx b/client/src/components/Chat/Input/Files/Table/Columns.tsxindex bc60de361f..fb0eccee67 100644--- a/client/src/components/Chat/Input/Files/Table/Columns.tsx+++ b/client/src/components/Chat/Input/Files/Table/Columns.tsx@@ -1,14 +1,19 @@/* eslint-disable react-hooks/rules-of-hooks */-import { ArrowUpDown, Database } from 'lucide-react';import { FileSources, FileContext } from 'librechat-data-provider';+import {+ Button,+ Checkbox,+ OpenAIMinimalIcon,+ AzureMinimalIcon,+ useMediaQuery,+} from '@librechat/client';import type { ColumnDef } from '@tanstack/react-table';import type { TFile } from 'librechat-data-provider';-import { Button, Checkbox, OpenAIMinimalIcon, AzureMinimalIcon } from '~/components';import ImagePreview from '~/components/Chat/Input/Files/ImagePreview';import FilePreview from '~/components/Chat/Input/Files/FilePreview';+import { TranslationKeys, useLocalize } from '~/hooks';import { SortFilterHeader } from './SortFilterHeader';-import { TranslationKeys, useLocalize, useMediaQuery } from '~/hooks';import { formatDate, getFileType } from '~/utils';const contextMap: Record<any, TranslationKeys> = {diff --git a/client/src/components/Chat/Input/Files/Table/DataTable.tsx b/client/src/components/Chat/Input/Files/Table/DataTable.tsxindex c8c3190bcb..ffb3e2825b 100644--- a/client/src/components/Chat/Input/Files/Table/DataTable.tsx+++ b/client/src/components/Chat/Input/Files/Table/DataTable.tsx@@ -16,8 +16,6 @@ import type {ColumnFiltersState,} from '@tanstack/react-table';import { FileContext } from 'librechat-data-provider';-import type { AugmentedColumnDef } from '~/common';-import type { TFile } from 'librechat-data-provider';import {Button,Input,@@ -31,11 +29,14 @@ import {DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuTrigger,-} from '~/components/ui';+ TrashIcon,+ Spinner,+ useMediaQuery,+} from '@librechat/client';+import type { TFile } from 'librechat-data-provider';+import type { AugmentedColumnDef } from '~/common';import { useDeleteFilesFromTable } from '~/hooks/Files';-import { TrashIcon, Spinner } from '~/components/svg';-import useLocalize from '~/hooks/useLocalize';-import { useMediaQuery } from '~/hooks';+import { useLocalize } from '~/hooks';import { cn } from '~/utils';import store from '~/store';diff --git a/client/src/components/Chat/Input/Files/Table/SortFilterHeader.tsx b/client/src/components/Chat/Input/Files/Table/SortFilterHeader.tsxindex bb9247c15a..d275044eef 100644--- a/client/src/components/Chat/Input/Files/Table/SortFilterHeader.tsx+++ b/client/src/components/Chat/Input/Files/Table/SortFilterHeader.tsx@@ -2,13 +2,13 @@ import { Column } from '@tanstack/react-table';import { ListFilter, FilterX } from 'lucide-react';import { ArrowDownIcon, ArrowUpIcon, CaretSortIcon } from '@radix-ui/react-icons';import {+ Button,DropdownMenu,DropdownMenuContent,DropdownMenuItem,DropdownMenuSeparator,DropdownMenuTrigger,-} from '~/components/ui/DropdownMenu';-import { Button } from '~/components/ui/Button';+} from '@librechat/client';import { useLocalize, TranslationKeys } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/Files/Table/TemplateTable.tsx b/client/src/components/Chat/Input/Files/Table/TemplateTable.tsxindex dc288c73a9..9f6b78f91c 100644--- a/client/src/components/Chat/Input/Files/Table/TemplateTable.tsx+++ b/client/src/components/Chat/Input/Files/Table/TemplateTable.tsx@@ -1,4 +1,4 @@-import { DotsIcon, TrashIcon } from '~/components/svg';+import { DotsIcon, TrashIcon } from '@librechat/client';export default function Template() {return (diff --git a/client/src/components/Chat/Input/HeaderOptions.tsx b/client/src/components/Chat/Input/HeaderOptions.tsxindex ac4b039768..5ba2639412 100644--- a/client/src/components/Chat/Input/HeaderOptions.tsx+++ b/client/src/components/Chat/Input/HeaderOptions.tsx@@ -2,12 +2,12 @@ import { useRecoilState } from 'recoil';import { Settings2 } from 'lucide-react';import { useState, useEffect, useMemo } from 'react';import { Root, Anchor } from '@radix-ui/react-popover';-import { EModelEndpoint, isParamEndpoint, tConvoUpdateSchema } from 'librechat-data-provider';+import { PluginStoreDialog, TooltipAnchor } from '@librechat/client';import { useUserKeyQuery } from 'librechat-data-provider/react-query';+import { EModelEndpoint, isParamEndpoint, tConvoUpdateSchema } from 'librechat-data-provider';import type { TPreset, TInterfaceConfig } from 'librechat-data-provider';import { EndpointSettings, SaveAsPresetDialog, AlternativeSettings } from '~/components/Endpoints';-import { useSetIndexOptions, useMediaQuery, useLocalize } from '~/hooks';-import { PluginStoreDialog, TooltipAnchor } from '~/components';+import { useSetIndexOptions, useLocalize } from '~/hooks';import { useGetEndpointsQuery } from '~/data-provider';import OptionsPopover from './OptionsPopover';import PopoverButtons from './PopoverButtons';diff --git a/client/src/components/Chat/Input/MCPConfigDialog.tsx b/client/src/components/Chat/Input/MCPConfigDialog.tsxnew file mode 100644index 0000000000..5cb2170869--- /dev/null+++ b/client/src/components/Chat/Input/MCPConfigDialog.tsx@@ -0,0 +1,121 @@+import React, { useEffect } from 'react';+import { useForm, Controller } from 'react-hook-form';+import { Button, Input, Label, OGDialog, OGDialogTemplate } from '@librechat/client';+import { useLocalize } from '~/hooks';++export interface ConfigFieldDetail {+ title: string;+ description: string;+}++interface MCPConfigDialogProps {+ isOpen: boolean;+ onOpenChange: (isOpen: boolean) => void;+ fieldsSchema: Record<string, ConfigFieldDetail>;+ initialValues: Record<string, string>;+ onSave: (updatedValues: Record<string, string>) => void;+ isSubmitting?: boolean;+ onRevoke?: () => void;+ serverName: string;+}++export default function MCPConfigDialog({+ isOpen,+ onOpenChange,+ fieldsSchema,+ initialValues,+ onSave,+ isSubmitting = false,+ onRevoke,+ serverName,+}: MCPConfigDialogProps) {+ const localize = useLocalize();+ const {+ control,+ handleSubmit,+ reset,+ formState: { errors, _ },+ } = useForm<Record<string, string>>({+ defaultValues: initialValues,+ });++ useEffect(() => {+ if (isOpen) {+ reset(initialValues);+ }+ }, [isOpen, initialValues, reset]);++ const onFormSubmit = (data: Record<string, string>) => {+ onSave(data);+ };++ const handleRevoke = () => {+ if (onRevoke) {+ onRevoke();+ }+ };++ const dialogTitle = localize('com_ui_configure_mcp_variables_for', { 0: serverName });+ const dialogDescription = localize('com_ui_mcp_dialog_desc');++ return (+ <OGDialog open={isOpen} onOpenChange={onOpenChange}>+ <OGDialogTemplate+ className="sm:max-w-lg"+ title={dialogTitle}+ description={dialogDescription}+ headerClassName="px-6 pt-6 pb-4"+ main={+ <form onSubmit={handleSubmit(onFormSubmit)} className="space-y-4 px-6 pb-2">+ {Object.entries(fieldsSchema).map(([key, details]) => (+ <div key={key} className="space-y-2">+ <Label htmlFor={key} className="text-sm font-medium">+ {details.title}+ </Label>+ <Controller+ name={key}+ control={control}+ defaultValue={initialValues[key] || ''}+ render={({ field }) => (+ <Input+ id={key}+ type="text"+ {...field}+ placeholder={localize('com_ui_mcp_enter_var', { 0: details.title })}+ className="w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm"+ />+ )}+ />+ {details.description && (+ <p+ className="text-xs text-text-secondary [&_a]:text-blue-500 [&_a]:hover:text-blue-600 dark:[&_a]:text-blue-400 dark:[&_a]:hover:text-blue-300"+ dangerouslySetInnerHTML={{ __html: details.description }}+ />+ )}+ {errors[key] && <p className="text-xs text-red-500">{errors[key]?.message}</p>}+ </div>+ ))}+ </form>+ }+ selection={{+ selectHandler: handleSubmit(onFormSubmit),+ selectClasses: 'bg-green-500 hover:bg-green-600 text-white',+ selectText: isSubmitting ? localize('com_ui_saving') : localize('com_ui_save'),+ }}+ buttons={+ onRevoke && (+ <Button+ onClick={handleRevoke}+ className="bg-red-600 text-white hover:bg-red-700 dark:hover:bg-red-800"+ disabled={isSubmitting}+ >+ {localize('com_ui_revoke')}+ </Button>+ )+ }+ footerClassName="flex justify-end gap-2 px-6 pb-6 pt-2"+ showCancelButton={true}+ />+ </OGDialog>+ );+}diff --git a/client/src/components/Chat/Input/MCPSelect.tsx b/client/src/components/Chat/Input/MCPSelect.tsxindex 2f9b4071c8..8160cdd2f9 100644--- a/client/src/components/Chat/Input/MCPSelect.tsx+++ b/client/src/components/Chat/Input/MCPSelect.tsx@@ -1,9 +1,8 @@import React, { memo, useCallback } from 'react';-import MCPConfigDialog from '~/components/ui/MCP/MCPConfigDialog';-import MCPServerStatusIcon from '~/components/ui/MCP/MCPServerStatusIcon';-import MultiSelect from '~/components/ui/MultiSelect';-import { MCPIcon } from '~/components/svg';+import { MultiSelect, MCPIcon } from '@librechat/client';+import MCPServerStatusIcon from '~/components/MCP/MCPServerStatusIcon';import { useMCPServerManager } from '~/hooks/MCP/useMCPServerManager';+import MCPConfigDialog from '~/components/MCP/MCPConfigDialog';function MCPSelect() {const {@@ -80,7 +79,6 @@ function MCPSelect() {items={configuredServers}selectedValues={mcpValues ?? []}setSelectedValues={batchToggleServers}- defaultSelectedValues={mcpValues ?? []}renderSelectedValues={renderSelectedValues}renderItemContent={renderItemContent}placeholder={placeholderText}diff --git a/client/src/components/Chat/Input/MCPSubMenu.tsx b/client/src/components/Chat/Input/MCPSubMenu.tsxindex 8f271c0b6c..1d704f2a6d 100644--- a/client/src/components/Chat/Input/MCPSubMenu.tsx+++ b/client/src/components/Chat/Input/MCPSubMenu.tsx@@ -1,10 +1,10 @@import React from 'react';import * as Ariakit from '@ariakit/react';import { ChevronRight } from 'lucide-react';-import { PinIcon, MCPIcon } from '~/components/svg';-import MCPConfigDialog from '~/components/ui/MCP/MCPConfigDialog';-import MCPServerStatusIcon from '~/components/ui/MCP/MCPServerStatusIcon';+import { PinIcon, MCPIcon } from '@librechat/client';+import MCPServerStatusIcon from '~/components/MCP/MCPServerStatusIcon';import { useMCPServerManager } from '~/hooks/MCP/useMCPServerManager';+import MCPConfigDialog from '~/components/MCP/MCPConfigDialog';import { cn } from '~/utils';interface MCPSubMenuProps {diff --git a/client/src/components/Chat/Input/Mention.tsx b/client/src/components/Chat/Input/Mention.tsxindex 067383711e..e3472a2aa0 100644--- a/client/src/components/Chat/Input/Mention.tsx+++ b/client/src/components/Chat/Input/Mention.tsx@@ -1,12 +1,13 @@import { useState, useRef, useEffect } from 'react';+import { useCombobox } from '@librechat/client';import { AutoSizer, List } from 'react-virtualized';import { EModelEndpoint } from 'librechat-data-provider';-import type { SetterOrUpdater } from 'recoil';import type { MentionOption, ConvoGenerator } from '~/common';+import type { SetterOrUpdater } from 'recoil';import useSelectMention from '~/hooks/Input/useSelectMention';+import { useLocalize, TranslationKeys } from '~/hooks';import { useAssistantsMapContext } from '~/Providers';import useMentions from '~/hooks/Input/useMentions';-import { useLocalize, useCombobox, TranslationKeys } from '~/hooks';import { removeCharIfLast } from '~/utils';import MentionItem from './MentionItem';diff --git a/client/src/components/Chat/Input/OptionsPopover.tsx b/client/src/components/Chat/Input/OptionsPopover.tsxindex a49d31f334..f3102bd27c 100644--- a/client/src/components/Chat/Input/OptionsPopover.tsx+++ b/client/src/components/Chat/Input/OptionsPopover.tsx@@ -1,11 +1,10 @@import { useRef } from 'react';import { Save } from 'lucide-react';import { Portal, Content } from '@radix-ui/react-popover';+import { Button, CrossIcon, useOnClickOutside } from '@librechat/client';import type { ReactNode } from 'react';-import { useLocalize, useOnClickOutside } from '~/hooks';import { cn, removeFocusOutlines } from '~/utils';-import { CrossIcon } from '~/components/svg';-import { Button } from '~/components/ui';+import { useLocalize } from '~/hooks';type TOptionsPopoverProps = {children: ReactNode;diff --git a/client/src/components/Chat/Input/PopoverButtons.tsx b/client/src/components/Chat/Input/PopoverButtons.tsxindex fa2211ecc6..31bb6ee2f6 100644--- a/client/src/components/Chat/Input/PopoverButtons.tsx+++ b/client/src/components/Chat/Input/PopoverButtons.tsx@@ -1,9 +1,8 @@import { useRecoilState } from 'recoil';import { EModelEndpoint, SettingsViews } from 'librechat-data-provider';+import { Button, MessagesSquared, GPTIcon, AssistantIcon, DataIcon } from '@librechat/client';import type { ReactNode } from 'react';-import { MessagesSquared, GPTIcon, AssistantIcon, DataIcon } from '~/components/svg';import { useChatContext } from '~/Providers';-import { Button } from '~/components/ui';import { useLocalize } from '~/hooks';import { cn } from '~/utils/';import store from '~/store';diff --git a/client/src/components/Chat/Input/PromptsCommand.tsx b/client/src/components/Chat/Input/PromptsCommand.tsxindex 835c7cd31d..0756be17e8 100644--- a/client/src/components/Chat/Input/PromptsCommand.tsx+++ b/client/src/components/Chat/Input/PromptsCommand.tsx@@ -1,5 +1,6 @@import { useState, useRef, useEffect, useMemo, memo, useCallback } from 'react';import { AutoSizer, List } from 'react-virtualized';+import { Spinner, useCombobox } from '@librechat/client';import { useSetRecoilState, useRecoilValue } from 'recoil';import { PermissionTypes, Permissions } from 'librechat-data-provider';import type { TPromptGroup } from 'librechat-data-provider';@@ -7,9 +8,8 @@ import type { PromptOption } from '~/common';import { removeCharIfLast, mapPromptGroups, detectVariables } from '~/utils';import VariableDialog from '~/components/Prompts/Groups/VariableDialog';import CategoryIcon from '~/components/Prompts/Groups/CategoryIcon';-import { useLocalize, useCombobox, useHasAccess } from '~/hooks';+import { useLocalize, useHasAccess } from '~/hooks';import { useGetAllPromptGroups } from '~/data-provider';-import { Spinner } from '~/components/svg';import MentionItem from './MentionItem';import store from '~/store';diff --git a/client/src/components/Chat/Input/SendButton.tsx b/client/src/components/Chat/Input/SendButton.tsxindex 52a2b4bed4..14c21f0586 100644--- a/client/src/components/Chat/Input/SendButton.tsx+++ b/client/src/components/Chat/Input/SendButton.tsx@@ -1,8 +1,7 @@import React, { forwardRef } from 'react';import { useWatch } from 'react-hook-form';import type { Control } from 'react-hook-form';-import { TooltipAnchor } from '~/components/ui';-import { SendIcon } from '~/components/svg';+import { SendIcon, TooltipAnchor } from '@librechat/client';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/StopButton.tsx b/client/src/components/Chat/Input/StopButton.tsxindex 6c785811cd..4a058777f1 100644--- a/client/src/components/Chat/Input/StopButton.tsx+++ b/client/src/components/Chat/Input/StopButton.tsx@@ -1,4 +1,4 @@-import { TooltipAnchor } from '~/components/ui';+import { TooltipAnchor } from '@librechat/client';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Input/ToolsDropdown.tsx b/client/src/components/Chat/Input/ToolsDropdown.tsxindex 159fe455d6..60ad0156f1 100644--- a/client/src/components/Chat/Input/ToolsDropdown.tsx+++ b/client/src/components/Chat/Input/ToolsDropdown.tsx@@ -1,6 +1,7 @@import React, { useState, useMemo, useCallback } from 'react';import * as Ariakit from '@ariakit/react';import { Globe, Settings, Settings2, TerminalSquareIcon } from 'lucide-react';+import { TooltipAnchor, DropdownPopup, PinIcon, VectorIcon } from '@librechat/client';import type { MenuItemProps } from '~/common';import {AuthType,@@ -9,11 +10,9 @@ import {PermissionTypes,defaultAgentCapabilities,} from 'librechat-data-provider';-import { TooltipAnchor, DropdownPopup } from '~/components';import { useLocalize, useHasAccess, useAgentCapabilities } from '~/hooks';import ArtifactsSubMenu from '~/components/Chat/Input/ArtifactsSubMenu';import MCPSubMenu from '~/components/Chat/Input/MCPSubMenu';-import { PinIcon, VectorIcon } from '~/components/svg';import { useBadgeRowContext } from '~/Providers';import { cn } from '~/utils';@@ -317,7 +316,7 @@ const ToolsDropdown = ({ disabled }: ToolsDropdownProps) => {return (<DropdownPopup- itemClassName="flex w-full cursor-pointer items-center justify-between hover:bg-surface-hover gap-5"+ itemClassName="flex w-full cursor-pointer rounded-lg items-center justify-between hover:bg-surface-hover gap-5"menuId="tools-dropdown-menu"isOpen={isPopoverActive}setIsOpen={setIsPopoverActive}diff --git a/client/src/components/Chat/Input/WebSearch.tsx b/client/src/components/Chat/Input/WebSearch.tsxindex f5139509fc..a6ca908411 100644--- a/client/src/components/Chat/Input/WebSearch.tsx+++ b/client/src/components/Chat/Input/WebSearch.tsx@@ -1,7 +1,7 @@import React, { memo } from 'react';import { Globe } from 'lucide-react';+import { CheckboxButton } from '@librechat/client';import { Permissions, PermissionTypes } from 'librechat-data-provider';-import CheckboxButton from '~/components/ui/CheckboxButton';import { useLocalize, useHasAccess } from '~/hooks';import { useBadgeRowContext } from '~/Providers';diff --git a/client/src/components/Chat/Landing.tsx b/client/src/components/Chat/Landing.tsxindex 655fa67401..15e53abaf0 100644--- a/client/src/components/Chat/Landing.tsx+++ b/client/src/components/Chat/Landing.tsx@@ -1,9 +1,9 @@import { useMemo, useCallback, useState, useEffect, useRef } from 'react';import { easings } from '@react-spring/web';import { EModelEndpoint } from 'librechat-data-provider';+import { BirthdayIcon, TooltipAnchor, SplitText } from '@librechat/client';import { useChatContext, useAgentsMapContext, useAssistantsMapContext } from '~/Providers';import { useGetEndpointsQuery, useGetStartupConfig } from '~/data-provider';-import { BirthdayIcon, TooltipAnchor, SplitText } from '~/components';import ConvoIcon from '~/components/Endpoints/ConvoIcon';import { useLocalize, useAuthContext } from '~/hooks';import { getIconEndpoint, getEntity } from '~/utils';diff --git a/client/src/components/Chat/Menus/BookmarkMenu.tsx b/client/src/components/Chat/Menus/BookmarkMenu.tsxindex 1f31249bda..f8ee05b2a4 100644--- a/client/src/components/Chat/Menus/BookmarkMenu.tsx+++ b/client/src/components/Chat/Menus/BookmarkMenu.tsx@@ -5,17 +5,15 @@ import { BookmarkPlusIcon } from 'lucide-react';import { useQueryClient } from '@tanstack/react-query';import { Constants, QueryKeys } from 'librechat-data-provider';import { BookmarkFilledIcon, BookmarkIcon } from '@radix-ui/react-icons';+import { DropdownPopup, TooltipAnchor, Spinner, useToastContext } from '@librechat/client';import type { TConversationTag } from 'librechat-data-provider';import type { FC } from 'react';import type * as t from '~/common';import { useConversationTagsQuery, useTagConversationMutation } from '~/data-provider';-import { DropdownPopup, TooltipAnchor } from '~/components/ui';import { BookmarkContext } from '~/Providers/BookmarkContext';import { BookmarkEditDialog } from '~/components/Bookmarks';import { useBookmarkSuccess, useLocalize } from '~/hooks';import { NotificationSeverity } from '~/common';-import { useToastContext } from '~/Providers';-import { Spinner } from '~/components';import { cn, logger } from '~/utils';import store from '~/store';diff --git a/client/src/components/Chat/Menus/Bookmarks/BookmarkMenuItems.tsx b/client/src/components/Chat/Menus/Bookmarks/BookmarkMenuItems.tsxindex 3bae5af3ab..327ec75202 100644--- a/client/src/components/Chat/Menus/Bookmarks/BookmarkMenuItems.tsx+++ b/client/src/components/Chat/Menus/Bookmarks/BookmarkMenuItems.tsx@@ -1,8 +1,8 @@import React, { useState } from 'react';import { BookmarkPlusIcon } from 'lucide-react';+import { OGDialogTrigger } from '@librechat/client';import type { FC } from 'react';import { BookmarkEditDialog, BookmarkItems, BookmarkItem } from '~/components/Bookmarks';-import { OGDialogTrigger } from '~/components/ui';import { useLocalize } from '~/hooks';export const BookmarkMenuItems: FC<{diff --git a/client/src/components/Chat/Menus/Endpoints/components/EndpointItem.tsx b/client/src/components/Chat/Menus/Endpoints/components/EndpointItem.tsxindex 19a1731652..6541383f39 100644--- a/client/src/components/Chat/Menus/Endpoints/components/EndpointItem.tsx+++ b/client/src/components/Chat/Menus/Endpoints/components/EndpointItem.tsx@@ -1,11 +1,11 @@import { useMemo } from 'react';import { SettingsIcon } from 'lucide-react';+import { TooltipAnchor, Spinner } from '@librechat/client';import { EModelEndpoint, isAgentsEndpoint, isAssistantsEndpoint } from 'librechat-data-provider';import type { Endpoint } from '~/common';import { CustomMenu as Menu, CustomMenuItem as MenuItem } from '../CustomMenu';import { useModelSelectorContext } from '../ModelSelectorContext';import { renderEndpointModels } from './EndpointModelItem';-import { TooltipAnchor, Spinner } from '~/components';import { filterModels } from '../utils';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Menus/HeaderNewChat.tsx b/client/src/components/Chat/Menus/HeaderNewChat.tsxindex 44e4384d3e..b2dc6416ab 100644--- a/client/src/components/Chat/Menus/HeaderNewChat.tsx+++ b/client/src/components/Chat/Menus/HeaderNewChat.tsx@@ -1,8 +1,7 @@import { useQueryClient } from '@tanstack/react-query';import { QueryKeys, Constants } from 'librechat-data-provider';+import { TooltipAnchor, Button, NewChatIcon } from '@librechat/client';import type { TMessage } from 'librechat-data-provider';-import { TooltipAnchor, Button } from '~/components/ui';-import { NewChatIcon } from '~/components/svg';import { useChatContext } from '~/Providers';import { useLocalize } from '~/hooks';diff --git a/client/src/components/Chat/Menus/OpenSidebar.tsx b/client/src/components/Chat/Menus/OpenSidebar.tsxindex 4c4f29414f..2c6e331233 100644--- a/client/src/components/Chat/Menus/OpenSidebar.tsx+++ b/client/src/components/Chat/Menus/OpenSidebar.tsx@@ -1,5 +1,4 @@-import { TooltipAnchor, Button } from '~/components/ui';-import { Sidebar } from '~/components/svg';+import { TooltipAnchor, Button, Sidebar } from '@librechat/client';import { useLocalize } from '~/hooks';export default function OpenSidebar({diff --git a/client/src/components/Chat/Menus/Presets/EditPresetDialog.tsx b/client/src/components/Chat/Menus/Presets/EditPresetDialog.tsxindex 9a723d94fa..bd64665cd5 100644--- a/client/src/components/Chat/Menus/Presets/EditPresetDialog.tsx+++ b/client/src/components/Chat/Menus/Presets/EditPresetDialog.tsx@@ -2,6 +2,14 @@ import { useRecoilState } from 'recoil';import { useCallback, useEffect, useMemo } from 'react';import { useQueryClient } from '@tanstack/react-query';import { QueryKeys, isAgentsEndpoint } from 'librechat-data-provider';+import {+ Input,+ Label,+ OGDialog,+ OGDialogTitle,+ SelectDropDown,+ OGDialogContent,+} from '@librechat/client';import type { TModelsConfig, TEndpointsConfig } from 'librechat-data-provider';import {cn,@@ -10,14 +18,6 @@ import {mapEndpoints,getConvoSwitchLogic,} from '~/utils';-import {- Input,- Label,- OGDialog,- OGDialogTitle,- SelectDropDown,- OGDialogContent,-} from '~/components';import { useSetIndexOptions, useLocalize, useDebouncedInput } from '~/hooks';import PopoverButtons from '~/components/Chat/Input/PopoverButtons';import { EndpointSettings } from '~/components/Endpoints';diff --git a/client/src/components/Chat/Menus/Presets/PresetItems.tsx b/client/src/components/Chat/Menus/Presets/PresetItems.tsxindex f1e8e738a1..4e7710e0a7 100644--- a/client/src/components/Chat/Menus/Presets/PresetItems.tsx+++ b/client/src/components/Chat/Menus/Presets/PresetItems.tsx@@ -1,13 +1,19 @@import { useRecoilValue } from 'recoil';import { Close } from '@radix-ui/react-popover';import { Flipper, Flipped } from 'react-flip-toolkit';-import type { FC } from 'react';+import {+ Dialog,+ DialogTrigger,+ Label,+ DialogTemplate,+ PinIcon,+ EditIcon,+ TrashIcon,+} from '@librechat/client';import type { TPreset } from 'librechat-data-provider';+import type { FC } from 'react';import { getPresetTitle, getEndpointField, getIconKey } from '~/utils';import FileUpload from '~/components/Chat/Input/Files/FileUpload';-import { PinIcon, EditIcon, TrashIcon } from '~/components/svg';-import { Dialog, DialogTrigger, Label } from '~/components/ui';-import DialogTemplate from '~/components/ui/DialogTemplate';import { useGetEndpointsQuery } from '~/data-provider';import { MenuSeparator, MenuItem } from '../UI';import { icons } from '~/hooks/Endpoint/Icons';diff --git a/client/src/components/Chat/Menus/PresetsMenu.tsx b/client/src/components/Chat/Menus/PresetsMenu.tsxindex a0d0790f99..2c05eff866 100644--- a/client/src/components/Chat/Menus/PresetsMenu.tsx+++ b/client/src/components/Chat/Menus/PresetsMenu.tsx@@ -1,10 +1,10 @@import type { FC } from 'react';import { BookCopy } from 'lucide-react';+import { TooltipAnchor } from '@librechat/client';import { Content, Portal, Root, Trigger } from '@radix-ui/react-popover';import { EditPresetDialog, PresetItems } from './Presets';import { useLocalize, usePresets } from '~/hooks';import { useChatContext } from '~/Providers';-import { TooltipAnchor } from '~/components';const PresetsMenu: FC = () => {const localize = useLocalize();diff --git a/client/src/components/Chat/Menus/UI/TitleButton.tsx b/client/src/components/Chat/Menus/UI/TitleButton.tsxindex c23fdeb3ab..d6f7dec095 100644--- a/client/src/components/Chat/Menus/UI/TitleButton.tsx+++ b/client/src/components/Chat/Menus/UI/TitleButton.tsx@@ -1,7 +1,7 @@import { useState } from 'react';import { ChevronDown } from 'lucide-react';import { Trigger } from '@radix-ui/react-popover';-import useLocalize from '~/hooks/useLocalize';+import { useLocalize } from '~/hooks';export default function TitleButton({ primaryText = '', secondaryText = '' }) {const localize = useLocalize();diff --git a/client/src/components/Chat/Messages/Content/ContentParts.tsx b/client/src/components/Chat/Messages/Content/ContentParts.tsxindex 49f6be255a..9c38dd92d9 100644--- a/client/src/components/Chat/Messages/Content/ContentParts.tsx+++ b/client/src/components/Chat/Messages/Content/ContentParts.tsx@@ -11,9 +11,9 @@ import { ThinkingButton } from '~/components/Artifacts/Thinking';import { MessageContext, SearchContext } from '~/Providers';import MemoryArtifacts from './MemoryArtifacts';import Sources from '~/components/Web/Sources';-import useLocalize from '~/hooks/useLocalize';import { mapAttachments } from '~/utils/map';import { EditTextPart } from './Parts';+import { useLocalize } from '~/hooks';import store from '~/store';import Part from './Part';diff --git a/client/src/components/Chat/Messages/Content/DialogImage.tsx b/client/src/components/Chat/Messages/Content/DialogImage.tsxindex 0711757df1..9eb5f9e71f 100644--- a/client/src/components/Chat/Messages/Content/DialogImage.tsx+++ b/client/src/components/Chat/Messages/Content/DialogImage.tsx@@ -1,6 +1,6 @@import { useState, useEffect, useCallback, useRef } from 'react';+import { Button, OGDialog, OGDialogContent, TooltipAnchor } from '@librechat/client';import { X, ArrowDownToLine, PanelLeftOpen, PanelLeftClose, RotateCcw } from 'lucide-react';-import { Button, OGDialog, OGDialogContent, TooltipAnchor } from '~/components';import { useLocalize } from '~/hooks';const getQualityStyles = (quality: string): string => {diff --git a/client/src/components/Chat/Messages/Content/EditMessage.tsx b/client/src/components/Chat/Messages/Content/EditMessage.tsxindex e2781aaa5f..e873210901 100644--- a/client/src/components/Chat/Messages/Content/EditMessage.tsx+++ b/client/src/components/Chat/Messages/Content/EditMessage.tsx@@ -1,10 +1,10 @@import { useRef, useEffect, useCallback } from 'react';-import { useRecoilState, useRecoilValue } from 'recoil';import { useForm } from 'react-hook-form';+import { useRecoilState, useRecoilValue } from 'recoil';+import { TextareaAutosize, TooltipAnchor } from '@librechat/client';import { useUpdateMessageMutation } from 'librechat-data-provider/react-query';import type { TEditProps } from '~/common';import { useChatContext, useAddedChatContext } from '~/Providers';-import { TextareaAutosize, TooltipAnchor } from '~/components/ui';import { cn, removeFocusRings } from '~/utils';import { useLocalize } from '~/hooks';import Container from './Container';diff --git a/client/src/components/Chat/Messages/Content/Image.tsx b/client/src/components/Chat/Messages/Content/Image.tsxindex ba4f65671a..450ed0fc22 100644--- a/client/src/components/Chat/Messages/Content/Image.tsx+++ b/client/src/components/Chat/Messages/Content/Image.tsx@@ -1,8 +1,8 @@import React, { useState, useRef, useMemo } from 'react';+import { Skeleton } from '@librechat/client';import { LazyLoadImage } from 'react-lazy-load-image-component';import { cn, scaleImage } from '~/utils';import DialogImage from './DialogImage';-import { Skeleton } from '~/components';const Image = ({imagePath,diff --git a/client/src/components/Chat/Messages/Content/MarkdownComponents.tsx b/client/src/components/Chat/Messages/Content/MarkdownComponents.tsxindex e0a381ff52..de1e82443e 100644--- a/client/src/components/Chat/Messages/Content/MarkdownComponents.tsx+++ b/client/src/components/Chat/Messages/Content/MarkdownComponents.tsx@@ -1,12 +1,13 @@import React, { memo, useMemo, useRef, useEffect } from 'react';import { useRecoilValue } from 'recoil';+import { useToastContext } from '@librechat/client';import { PermissionTypes, Permissions } from 'librechat-data-provider';-import { useToastContext, useCodeBlockContext } from '~/Providers';import CodeBlock from '~/components/Messages/Content/CodeBlock';import useHasAccess from '~/hooks/Roles/useHasAccess';import { useFileDownload } from '~/data-provider';-import useLocalize from '~/hooks/useLocalize';+import { useCodeBlockContext } from '~/Providers';import { handleDoubleClick } from '~/utils';+import { useLocalize } from '~/hooks';import store from '~/store';type TCodeProps = {diff --git a/client/src/components/Chat/Messages/Content/MessageContent.tsx b/client/src/components/Chat/Messages/Content/MessageContent.tsxindex f70a15b779..dd3433d564 100644--- a/client/src/components/Chat/Messages/Content/MessageContent.tsx+++ b/client/src/components/Chat/Messages/Content/MessageContent.tsx@@ -1,10 +1,10 @@import { memo, Suspense, useMemo } from 'react';import { useRecoilValue } from 'recoil';+import { DelayedRender } from '@librechat/client';import type { TMessage } from 'librechat-data-provider';import type { TMessageContentProps, TDisplayProps } from '~/common';import Error from '~/components/Messages/Content/Error';import Thinking from '~/components/Artifacts/Thinking';-import { DelayedRender } from '~/components/ui';import { useChatContext } from '~/Providers';import MarkdownLite from './MarkdownLite';import EditMessage from './EditMessage';diff --git a/client/src/components/Chat/Messages/Content/Parts/EditTextPart.tsx b/client/src/components/Chat/Messages/Content/Parts/EditTextPart.tsxindex ab15355d1e..1898920eaf 100644--- a/client/src/components/Chat/Messages/Content/Parts/EditTextPart.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/EditTextPart.tsx@@ -1,5 +1,6 @@import { useRef, useEffect, useCallback, useMemo } from 'react';import { useForm } from 'react-hook-form';+import { TextareaAutosize } from '@librechat/client';import { ContentTypes } from 'librechat-data-provider';import { useRecoilState, useRecoilValue } from 'recoil';import { useUpdateMessageContentMutation } from 'librechat-data-provider/react-query';@@ -7,7 +8,6 @@ import type { Agents } from 'librechat-data-provider';import type { TEditProps } from '~/common';import Container from '~/components/Chat/Messages/Content/Container';import { useChatContext, useAddedChatContext } from '~/Providers';-import { TextareaAutosize } from '~/components/ui';import { cn, removeFocusRings } from '~/utils';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Chat/Messages/Content/Parts/LogLink.tsx b/client/src/components/Chat/Messages/Content/Parts/LogLink.tsxindex 590b6d7b8a..d328f202ee 100644--- a/client/src/components/Chat/Messages/Content/Parts/LogLink.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/LogLink.tsx@@ -1,6 +1,6 @@import React from 'react';+import { useToastContext } from '@librechat/client';import { useCodeOutputDownload } from '~/data-provider';-import { useToastContext } from '~/Providers';interface LogLinkProps {href: string;diff --git a/client/src/components/Chat/Messages/Content/Parts/OpenAIImageGen/OpenAIImageGen.tsx b/client/src/components/Chat/Messages/Content/Parts/OpenAIImageGen/OpenAIImageGen.tsxindex ef24c3553e..c0f77b14f2 100644--- a/client/src/components/Chat/Messages/Content/Parts/OpenAIImageGen/OpenAIImageGen.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/OpenAIImageGen/OpenAIImageGen.tsx@@ -1,8 +1,8 @@import { useState, useEffect, useRef, useCallback } from 'react';+import { PixelCard } from '@librechat/client';import type { TAttachment, TFile, TAttachmentMetadata } from 'librechat-data-provider';import Image from '~/components/Chat/Messages/Content/Image';import ProgressText from './ProgressText';-import { PixelCard } from '~/components';import { scaleImage } from '~/utils';export default function OpenAIImageGen({diff --git a/client/src/components/Chat/Messages/Content/ProgressText.tsx b/client/src/components/Chat/Messages/Content/ProgressText.tsxindex 1d80309071..e131579f6d 100644--- a/client/src/components/Chat/Messages/Content/ProgressText.tsx+++ b/client/src/components/Chat/Messages/Content/ProgressText.tsx@@ -1,8 +1,8 @@import * as Popover from '@radix-ui/react-popover';+import { Spinner } from '@librechat/client';import { ChevronDown, ChevronUp } from 'lucide-react';import CancelledIcon from './CancelledIcon';import FinishedIcon from './FinishedIcon';-import { Spinner } from '~/components';import { cn } from '~/utils';const wrapperClass =diff --git a/client/src/components/Chat/Messages/Content/SearchContent.tsx b/client/src/components/Chat/Messages/Content/SearchContent.tsxindex 8b409804bf..81752ddf9c 100644--- a/client/src/components/Chat/Messages/Content/SearchContent.tsx+++ b/client/src/components/Chat/Messages/Content/SearchContent.tsx@@ -1,5 +1,6 @@import { Suspense, useMemo } from 'react';import { useRecoilValue } from 'recoil';+import { DelayedRender } from '@librechat/client';import { ContentTypes } from 'librechat-data-provider';import type {Agents,@@ -9,7 +10,6 @@ import type {TMessageContentParts,} from 'librechat-data-provider';import { UnfinishedMessage } from './MessageContent';-import { DelayedRender } from '~/components/ui';import Sources from '~/components/Web/Sources';import { cn, mapAttachments } from '~/utils';import { SearchContext } from '~/Providers';diff --git a/client/src/components/Chat/Messages/Content/ToolCall.tsx b/client/src/components/Chat/Messages/Content/ToolCall.tsxindex 3408ba5a58..84fc8cdf74 100644--- a/client/src/components/Chat/Messages/Content/ToolCall.tsx+++ b/client/src/components/Chat/Messages/Content/ToolCall.tsx@@ -1,4 +1,5 @@import { useMemo, useState, useEffect, useRef, useLayoutEffect } from 'react';+import { Button } from '@librechat/client';import { TriangleAlert } from 'lucide-react';import { actionDelimiter, actionDomainSeparator, Constants } from 'librechat-data-provider';import type { TAttachment } from 'librechat-data-provider';@@ -6,7 +7,6 @@ import { useLocalize, useProgress } from '~/hooks';import { AttachmentGroup } from './Parts';import ToolCallInfo from './ToolCallInfo';import ProgressText from './ProgressText';-import { Button } from '~/components';import { logger, cn } from '~/utils';export default function ToolCall({diff --git a/client/src/components/Chat/Messages/Feedback.tsx b/client/src/components/Chat/Messages/Feedback.tsxindex 4879808d90..a43b9700ee 100644--- a/client/src/components/Chat/Messages/Feedback.tsx+++ b/client/src/components/Chat/Messages/Feedback.tsx@@ -1,6 +1,14 @@import React, { useState, useCallback, useMemo, useEffect } from 'react';import * as Ariakit from '@ariakit/react';import { TFeedback, TFeedbackTag, getTagsForRating } from 'librechat-data-provider';+import {+ Button,+ OGDialog,+ OGDialogContent,+ OGDialogTitle,+ ThumbUpIcon,+ ThumbDownIcon,+} from '@librechat/client';import {AlertCircle,PenTool,@@ -11,14 +19,6 @@ import {Lightbulb,Search,} from 'lucide-react';-import {- Button,- OGDialog,- OGDialogContent,- OGDialogTitle,- ThumbUpIcon,- ThumbDownIcon,-} from '~/components';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Chat/Messages/Fork.tsx b/client/src/components/Chat/Messages/Fork.tsxindex 0a0c0a1141..810692c328 100644--- a/client/src/components/Chat/Messages/Fork.tsx+++ b/client/src/components/Chat/Messages/Fork.tsx@@ -3,11 +3,11 @@ import { useRecoilState } from 'recoil';import * as Ariakit from '@ariakit/react';import { VisuallyHidden } from '@ariakit/react';import { GitFork, InfoIcon } from 'lucide-react';+import { useToastContext } from '@librechat/client';import { ForkOptions } from 'librechat-data-provider';import { GitCommit, GitBranchPlus, ListTree } from 'lucide-react';import { TranslationKeys, useLocalize, useNavigateToConvo } from '~/hooks';import { useForkConvoMutation } from '~/data-provider';-import { useToastContext } from '~/Providers';import { cn } from '~/utils';import store from '~/store';diff --git a/client/src/components/Chat/Messages/HoverButtons.tsx b/client/src/components/Chat/Messages/HoverButtons.tsxindex a13266f04c..8c90673747 100644--- a/client/src/components/Chat/Messages/HoverButtons.tsx+++ b/client/src/components/Chat/Messages/HoverButtons.tsx@@ -1,7 +1,7 @@import React, { useState, useMemo, memo } from 'react';import { useRecoilState } from 'recoil';import type { TConversation, TMessage, TFeedback } from 'librechat-data-provider';-import { EditIcon, Clipboard, CheckMark, ContinueIcon, RegenerateIcon } from '~/components';+import { EditIcon, Clipboard, CheckMark, ContinueIcon, RegenerateIcon } from '@librechat/client';import { useGenerationsByLatest, useLocalize } from '~/hooks';import { Fork } from '~/components/Conversations';import MessageAudio from './MessageAudio';diff --git a/client/src/components/Chat/Messages/MessageParts.tsx b/client/src/components/Chat/Messages/MessageParts.tsxindex 889e75d4eb..d53522e641 100644--- a/client/src/components/Chat/Messages/MessageParts.tsx+++ b/client/src/components/Chat/Messages/MessageParts.tsx@@ -6,7 +6,6 @@ import { useMessageHelpers, useLocalize, useAttachments } from '~/hooks';import MessageIcon from '~/components/Chat/Messages/MessageIcon';import ContentParts from './Content/ContentParts';import SiblingSwitch from './SiblingSwitch';-import MultiMessage from './MultiMessage';import HoverButtons from './HoverButtons';import SubRow from './SubRow';diff --git a/client/src/components/Chat/Messages/MinimalHoverButtons.tsx b/client/src/components/Chat/Messages/MinimalHoverButtons.tsxindex 150cc59f7c..3f4e1711a6 100644--- a/client/src/components/Chat/Messages/MinimalHoverButtons.tsx+++ b/client/src/components/Chat/Messages/MinimalHoverButtons.tsx@@ -1,7 +1,7 @@import { useState } from 'react';+import { Clipboard, CheckMark } from '@librechat/client';import type { TMessage, TAttachment, SearchResultData } from 'librechat-data-provider';import { useLocalize, useCopyToClipboard } from '~/hooks';-import { Clipboard, CheckMark } from '~/components/svg';type THoverButtons = {message: TMessage;diff --git a/client/src/components/Chat/Messages/MultiMessage.tsx b/client/src/components/Chat/Messages/MultiMessage.tsxindex 9050a6149f..99733143f3 100644--- a/client/src/components/Chat/Messages/MultiMessage.tsx+++ b/client/src/components/Chat/Messages/MultiMessage.tsx@@ -3,11 +3,8 @@ import { useEffect, useCallback } from 'react';import { isAssistantsEndpoint } from 'librechat-data-provider';import type { TMessage } from 'librechat-data-provider';import type { TMessageProps } from '~/common';-import MessageContent from '~/components/Messages/MessageContent';-import MessageParts from './MessageParts';-import Message from './Message';import store from '~/store';diff --git a/client/src/components/Chat/TemporaryChat.tsx b/client/src/components/Chat/TemporaryChat.tsxindex 69e39a1a6c..a134379497 100644--- a/client/src/components/Chat/TemporaryChat.tsx+++ b/client/src/components/Chat/TemporaryChat.tsx@@ -1,8 +1,8 @@import React from 'react';import { motion } from 'framer-motion';+import { TooltipAnchor } from '@librechat/client';import { MessageCircleDashed } from 'lucide-react';import { useRecoilState, useRecoilCallback } from 'recoil';-import { TooltipAnchor } from '~/components/ui';import { useChatContext } from '~/Providers';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Conversations/Conversations.tsx b/client/src/components/Conversations/Conversations.tsxindex 46f217a83c..10203c89e3 100644--- a/client/src/components/Conversations/Conversations.tsx+++ b/client/src/components/Conversations/Conversations.tsx@@ -1,11 +1,11 @@import { useMemo, memo, type FC, useCallback } from 'react';import throttle from 'lodash/throttle';import { parseISO, isToday } from 'date-fns';+import { Spinner, useMediaQuery } from '@librechat/client';import { List, AutoSizer, CellMeasurer, CellMeasurerCache } from 'react-virtualized';-import { useLocalize, TranslationKeys, useMediaQuery } from '~/hooks';import { TConversation } from 'librechat-data-provider';+import { useLocalize, TranslationKeys } from '~/hooks';import { groupConversationsByDate } from '~/utils';-import { Spinner } from '~/components/svg';import Convo from './Convo';interface ConversationsProps {diff --git a/client/src/components/Conversations/Convo.tsx b/client/src/components/Conversations/Convo.tsxindex afd14a4cb5..3804cbf2bc 100644--- a/client/src/components/Conversations/Convo.tsx+++ b/client/src/components/Conversations/Convo.tsx@@ -2,14 +2,14 @@ import React, { useState, useEffect, useRef, useMemo } from 'react';import { useRecoilValue } from 'recoil';import { useParams } from 'react-router-dom';import { Constants } from 'librechat-data-provider';+import { useToastContext, useMediaQuery } from '@librechat/client';import type { TConversation } from 'librechat-data-provider';-import { useNavigateToConvo, useMediaQuery, useLocalize } from '~/hooks';import { useUpdateConversationMutation } from '~/data-provider';import EndpointIcon from '~/components/Endpoints/EndpointIcon';+import { useNavigateToConvo, useLocalize } from '~/hooks';import { useGetEndpointsQuery } from '~/data-provider';import { NotificationSeverity } from '~/common';import { ConvoOptions } from './ConvoOptions';-import { useToastContext } from '~/Providers';import RenameForm from './RenameForm';import ConvoLink from './ConvoLink';import { cn } from '~/utils';diff --git a/client/src/components/Conversations/ConvoOptions/ConvoOptions.tsx b/client/src/components/Conversations/ConvoOptions/ConvoOptions.tsxindex 87211c1a66..7affbd8e93 100644--- a/client/src/components/Conversations/ConvoOptions/ConvoOptions.tsx+++ b/client/src/components/Conversations/ConvoOptions/ConvoOptions.tsx@@ -1,6 +1,7 @@import { useState, useId, useRef, memo, useCallback, useMemo } from 'react';import * as Menu from '@ariakit/react/menu';import { useParams, useNavigate } from 'react-router-dom';+import { DropdownPopup, Spinner, useToastContext } from '@librechat/client';import { Ellipsis, Share2, Copy, Archive, Pen, Trash } from 'lucide-react';import type { MouseEvent } from 'react';import {@@ -9,9 +10,8 @@ import {useArchiveConvoMutation,} from '~/data-provider';import { useLocalize, useNavigateToConvo, useNewConvo } from '~/hooks';-import { useToastContext, useChatContext } from '~/Providers';-import { DropdownPopup, Spinner } from '~/components';import { NotificationSeverity } from '~/common';+import { useChatContext } from '~/Providers';import DeleteButton from './DeleteButton';import ShareButton from './ShareButton';import { cn } from '~/utils';diff --git a/client/src/components/Conversations/ConvoOptions/DeleteButton.tsx b/client/src/components/Conversations/ConvoOptions/DeleteButton.tsxindex c40ca52959..3c34cb8c3c 100644--- a/client/src/components/Conversations/ConvoOptions/DeleteButton.tsx+++ b/client/src/components/Conversations/ConvoOptions/DeleteButton.tsx@@ -2,7 +2,6 @@ import React, { useCallback, useState } from 'react';import { QueryKeys } from 'librechat-data-provider';import { useQueryClient } from '@tanstack/react-query';import { useParams, useNavigate } from 'react-router-dom';-import type { TMessage } from 'librechat-data-provider';import {Button,Spinner,@@ -10,11 +9,12 @@ import {OGDialogTitle,OGDialogHeader,OGDialogContent,-} from '~/components';+ useToastContext,+} from '@librechat/client';+import type { TMessage } from 'librechat-data-provider';import { useDeleteConversationMutation } from '~/data-provider';import { useLocalize, useNewConvo } from '~/hooks';import { NotificationSeverity } from '~/common';-import { useToastContext } from '~/Providers';type DeleteButtonProps = {conversationId: string;diff --git a/client/src/components/Conversations/ConvoOptions/ShareButton.tsx b/client/src/components/Conversations/ConvoOptions/ShareButton.tsxindex c979019f01..177dd5ae5f 100644--- a/client/src/components/Conversations/ConvoOptions/ShareButton.tsx+++ b/client/src/components/Conversations/ConvoOptions/ShareButton.tsx@@ -2,9 +2,8 @@ import React, { useState, useEffect } from 'react';import { QRCodeSVG } from 'qrcode.react';import { Copy, CopyCheck } from 'lucide-react';import { useGetSharedLinkQuery } from 'librechat-data-provider/react-query';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';+import { OGDialogTemplate, Button, Spinner, OGDialog } from '@librechat/client';import { useLocalize, useCopyToClipboard } from '~/hooks';-import { Button, Spinner, OGDialog } from '~/components';import SharedLinkButton from './SharedLinkButton';import { cn } from '~/utils';diff --git a/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx b/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsxindex 4255515745..35609ba5ec 100644--- a/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx+++ b/client/src/components/Conversations/ConvoOptions/SharedLinkButton.tsx@@ -1,15 +1,21 @@import { useState, useCallback } from 'react';import { QrCode, RotateCw, Trash2 } from 'lucide-react';+import {+ Button,+ OGDialog,+ Spinner,+ TooltipAnchor,+ Label,+ OGDialogTemplate,+ useToastContext,+} from '@librechat/client';import type { TSharedLinkGetResponse } from 'librechat-data-provider';import {useCreateSharedLinkMutation,useUpdateSharedLinkMutation,useDeleteSharedLinkMutation,} from '~/data-provider';-import { Button, OGDialog, Spinner, TooltipAnchor, Label } from '~/components';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';import { NotificationSeverity } from '~/common';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';export default function SharedLinkButton({diff --git a/client/src/components/Endpoints/Icon.tsx b/client/src/components/Endpoints/Icon.tsxindex aa9f4d16c3..acc6027697 100644--- a/client/src/components/Endpoints/Icon.tsx+++ b/client/src/components/Endpoints/Icon.tsx@@ -1,11 +1,11 @@import React, { memo, useState } from 'react';+import { UserIcon } from '@librechat/client';import type { TUser } from 'librechat-data-provider';import type { IconProps } from '~/common';import MessageEndpointIcon from './MessageEndpointIcon';import { useAuthContext } from '~/hooks/AuthContext';import useAvatar from '~/hooks/Messages/useAvatar';-import useLocalize from '~/hooks/useLocalize';-import { UserIcon } from '~/components/svg';+import { useLocalize } from '~/hooks';import { cn } from '~/utils';type UserAvatarProps = {@@ -48,15 +48,15 @@ const UserAvatar = memo(({ size, user, avatarSrc, username, className }: UserAva>{(!(user?.avatar ?? '') && (!(user?.username ?? '') || user?.username.trim() === '')) ||imageError ? (- renderDefaultAvatar()- ) : (- <img- className="rounded-full"- src={(user?.avatar ?? '') || avatarSrc}- alt="avatar"- onError={handleImageError}- />- )}+ renderDefaultAvatar()+ ) : (+ <img+ className="rounded-full"+ src={(user?.avatar ?? '') || avatarSrc}+ alt="avatar"+ onError={handleImageError}+ />+ )}</div>);});diff --git a/client/src/components/Endpoints/MessageEndpointIcon.tsx b/client/src/components/Endpoints/MessageEndpointIcon.tsxindex e405c01d31..1eb859c069 100644--- a/client/src/components/Endpoints/MessageEndpointIcon.tsx+++ b/client/src/components/Endpoints/MessageEndpointIcon.tsx@@ -12,7 +12,7 @@ import {AnthropicIcon,AzureMinimalIcon,CustomMinimalIcon,-} from '~/components/svg';+} from '@librechat/client';import UnknownIcon from '~/hooks/Endpoint/UnknownIcon';import { IconProps } from '~/common';import { cn } from '~/utils';diff --git a/client/src/components/Endpoints/MinimalIcon.tsx b/client/src/components/Endpoints/MinimalIcon.tsxindex 953859c43a..f21cad1e08 100644--- a/client/src/components/Endpoints/MinimalIcon.tsx+++ b/client/src/components/Endpoints/MinimalIcon.tsx@@ -10,7 +10,7 @@ import {AnthropicIcon,BedrockIcon,Sparkles,-} from '~/components/svg';+} from '@librechat/client';import UnknownIcon from '~/hooks/Endpoint/UnknownIcon';import { IconProps } from '~/common';import { cn } from '~/utils';diff --git a/client/src/components/Endpoints/SaveAsPresetDialog.tsx b/client/src/components/Endpoints/SaveAsPresetDialog.tsxindex b827a2d8c2..6467a4a408 100644--- a/client/src/components/Endpoints/SaveAsPresetDialog.tsx+++ b/client/src/components/Endpoints/SaveAsPresetDialog.tsx@@ -1,11 +1,9 @@import React, { useEffect, useState } from 'react';import { useCreatePresetMutation } from 'librechat-data-provider/react-query';+import { OGDialogTemplate, OGDialog, Input, Label, useToastContext } from '@librechat/client';import type { TEditPresetProps } from '~/common';-import { cn, removeFocusOutlines, cleanupPreset, defaultTextProps } from '~/utils/';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';-import { OGDialog, Input, Label } from '~/components/ui/';+import { cn, removeFocusOutlines, cleanupPreset, defaultTextProps } from '~/utils';import { NotificationSeverity } from '~/common';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';const SaveAsPresetDialog = ({ open, onOpenChange, preset }: TEditPresetProps) => {@@ -23,7 +21,7 @@ const SaveAsPresetDialog = ({ open, onOpenChange, preset }: TEditPresetProps) =>});const toastTitle =- _preset.title ?? '' ? `\`${_preset.title}\`` : localize('com_endpoint_preset_title');+ (_preset.title ?? '') ? `\`${_preset.title}\`` : localize('com_endpoint_preset_title');createPresetMutation.mutate(_preset, {onSuccess: () => {@@ -76,7 +74,7 @@ const SaveAsPresetDialog = ({ open, onOpenChange, preset }: TEditPresetProps) =>aria-label={localize('com_endpoint_preset_name')}className={cn(defaultTextProps,- 'flex h-10 max-h-10 w-full resize-none border-border-medium px-3 py-2 ',+ 'flex h-10 max-h-10 w-full resize-none border-border-medium px-3 py-2',removeFocusOutlines,)}/>diff --git a/client/src/components/Endpoints/Settings/Advanced.tsx b/client/src/components/Endpoints/Settings/Advanced.tsxindex 601e9a675c..d0beaa9020 100644--- a/client/src/components/Endpoints/Settings/Advanced.tsx+++ b/client/src/components/Endpoints/Settings/Advanced.tsx@@ -1,7 +1,5 @@import TextareaAutosize from 'react-textarea-autosize';import { ImageDetail, imageDetailNumeric, imageDetailValue } from 'librechat-data-provider';-import type { ValueType } from '@rc-component/mini-decimal';-import type { TModelSelectProps } from '~/common';import {Input,Label,@@ -10,8 +8,10 @@ import {HoverCard,InputNumber,HoverCardTrigger,-} from '~/components/ui';-import { cn, defaultTextProps, optionText, removeFocusOutlines } from '~/utils/';+} from '@librechat/client';+import type { ValueType } from '@rc-component/mini-decimal';+import type { TModelSelectProps } from '~/common';+import { cn, defaultTextProps, optionText, removeFocusOutlines } from '~/utils';import { useLocalize, useDebouncedInput } from '~/hooks';import OptionHover from './OptionHover';import { ESide } from '~/common';@@ -109,7 +109,7 @@ export default function Settings({placeholder={localize('com_endpoint_openai_prompt_prefix_placeholder')}className={cn(defaultTextProps,- 'flex max-h-[138px] min-h-[100px] w-full resize-none px-3 py-2 ',+ 'flex max-h-[138px] min-h-[100px] w-full resize-none px-3 py-2',)}/></div>diff --git a/client/src/components/Endpoints/Settings/AgentSettings.tsx b/client/src/components/Endpoints/Settings/AgentSettings.tsxindex 8ba20f2508..f41a8bc19e 100644--- a/client/src/components/Endpoints/Settings/AgentSettings.tsx+++ b/client/src/components/Endpoints/Settings/AgentSettings.tsx@@ -1,4 +1,3 @@-import type { TModelSelectProps } from '~/common';import {Switch,Label,@@ -7,7 +6,8 @@ import {InputNumber,SelectDropDown,HoverCardTrigger,-} from '~/components';+} from '@librechat/client';+import type { TModelSelectProps } from '~/common';import { cn, optionText, defaultTextProps, removeFocusRings } from '~/utils';import OptionHover from './OptionHover';import { useLocalize } from '~/hooks';diff --git a/client/src/components/Endpoints/Settings/Assistants.tsx b/client/src/components/Endpoints/Settings/Assistants.tsxindex a35f9f7eb3..1ae0f8cb41 100644--- a/client/src/components/Endpoints/Settings/Assistants.tsx+++ b/client/src/components/Endpoints/Settings/Assistants.tsx@@ -1,5 +1,6 @@import { useState, useMemo, useEffect } from 'react';import TextareaAutosize from 'react-textarea-autosize';+import { Label, HoverCard, SelectDropDown, HoverCardTrigger } from '@librechat/client';import type { Assistant, TPreset } from 'librechat-data-provider';import type { TModelSelectProps, Option } from '~/common';import {@@ -9,7 +10,6 @@ import {mapAssistants,createDropdownSetter,} from '~/utils';-import { Label, HoverCard, SelectDropDown, HoverCardTrigger } from '~/components/ui';import { useLocalize, useDebouncedInput, useAssistantListMap } from '~/hooks';import OptionHover from './OptionHover';import { ESide } from '~/common';@@ -121,6 +121,7 @@ export default function Settings({ conversation, setOption, models, readonly }:<div className="grid w-full items-center gap-2"><SelectDropDownvalue={model ?? ''}+ title={localize('com_ui_model')}setValue={createDropdownSetter(setModel)}availableValues={modelOptions}disabled={readonly}@@ -161,7 +162,7 @@ export default function Settings({ conversation, setOption, models, readonly }:placeholder={localize('com_endpoint_prompt_prefix_assistants_placeholder')}className={cn(defaultTextProps,- 'flex max-h-[240px] min-h-[80px] w-full resize-none px-3 py-2 ',+ 'flex max-h-[240px] min-h-[80px] w-full resize-none px-3 py-2',)}/></div>@@ -178,7 +179,7 @@ export default function Settings({ conversation, setOption, models, readonly }:placeholder={localize('com_endpoint_instructions_assistants_placeholder')}className={cn(defaultTextProps,- 'flex max-h-[240px] min-h-[80px] w-full resize-none px-3 py-2 ',+ 'flex max-h-[240px] min-h-[80px] w-full resize-none px-3 py-2',)}/></div>diff --git a/client/src/components/Endpoints/Settings/Examples.tsx b/client/src/components/Endpoints/Settings/Examples.tsxindex 98dac9ea94..10f6236855 100644--- a/client/src/components/Endpoints/Settings/Examples.tsx+++ b/client/src/components/Endpoints/Settings/Examples.tsx@@ -1,9 +1,9 @@import React from 'react';import { Plus, Minus } from 'lucide-react';+import { Button, Label } from '@librechat/client';import TextareaAutosize from 'react-textarea-autosize';import type { TExample } from 'librechat-data-provider';import type { TSetExample } from '~/common';-import { Button, Label } from '~/components/ui';import { cn, defaultTextProps } from '~/utils/';import { useLocalize } from '~/hooks';@@ -42,7 +42,7 @@ function Examples({ readonly, examples, setExample, addExample, removeExample }:placeholder="Set example input. Example is ignored if empty."className={cn(defaultTextProps,- 'flex max-h-[138px] min-h-[75px] w-full resize-none px-3 py-2 ',+ 'flex max-h-[138px] min-h-[75px] w-full resize-none px-3 py-2',)}/></div>@@ -67,7 +67,7 @@ function Examples({ readonly, examples, setExample, addExample, removeExample }:placeholder={'Set example output. Example is ignored if empty.'}className={cn(defaultTextProps,- 'flex max-h-[300px] min-h-[75px] w-full resize-none px-3 py-2 ',+ 'flex max-h-[300px] min-h-[75px] w-full resize-none px-3 py-2',)}/></div>diff --git a/client/src/components/Endpoints/Settings/Google.tsx b/client/src/components/Endpoints/Settings/Google.tsxindex 063d5f098e..6e513c1791 100644--- a/client/src/components/Endpoints/Settings/Google.tsx+++ b/client/src/components/Endpoints/Settings/Google.tsx@@ -1,6 +1,5 @@import TextareaAutosize from 'react-textarea-autosize';import { EModelEndpoint, endpointSettings } from 'librechat-data-provider';-import type { TModelSelectProps, OnInputNumberChange } from '~/common';import {Input,Label,@@ -9,7 +8,8 @@ import {InputNumber,SelectDropDown,HoverCardTrigger,-} from '~/components/ui';+} from '@librechat/client';+import type { TModelSelectProps, OnInputNumberChange } from '~/common';import { cn, defaultTextProps, optionText, removeFocusOutlines, removeFocusRings } from '~/utils';import OptionHoverAlt from '~/components/SidePanel/Parameters/OptionHover';import { useLocalize, useDebouncedInput } from '~/hooks';@@ -55,6 +55,7 @@ export default function Settings({ conversation, setOption, models, readonly }:<div className="col-span-5 flex flex-col items-center justify-start gap-6 sm:col-span-3"><div className="grid w-full items-center gap-2"><SelectDropDown+ title={localize('com_ui_model')}value={model ?? ''}setValue={setModel}availableValues={models}@@ -94,7 +95,7 @@ export default function Settings({ conversation, setOption, models, readonly }:placeholder={localize('com_endpoint_prompt_prefix_placeholder')}className={cn(defaultTextProps,- 'flex max-h-[138px] min-h-[100px] w-full resize-none px-3 py-2 ',+ 'flex max-h-[138px] min-h-[100px] w-full resize-none px-3 py-2',)}/></div>@@ -221,7 +222,7 @@ export default function Settings({ conversation, setOption, models, readonly }:<Label htmlFor="top-k-int" className="text-left text-sm font-medium">{localize('com_endpoint_top_k')}{' '}<small className="opacity-40">- ({localize('com_endpoint_default_with_num',{ 0: google.topK.default + '' })})+ ({localize('com_endpoint_default_with_num', { 0: google.topK.default + '' })})</small></Label><InputNumber@@ -261,7 +262,11 @@ export default function Settings({ conversation, setOption, models, readonly }:<Label htmlFor="max-tokens-int" className="text-left text-sm font-medium">{localize('com_endpoint_max_output_tokens')}{' '}<small className="opacity-40">- ({localize('com_endpoint_default_with_num', { 0: google.maxOutputTokens.default + '' })})+ (+ {localize('com_endpoint_default_with_num', {+ 0: google.maxOutputTokens.default + '',+ })}+ )</small></Label><InputNumberdiff --git a/client/src/components/Endpoints/Settings/OptionHover.tsx b/client/src/components/Endpoints/Settings/OptionHover.tsxindex 682ade5333..3a526e0b16 100644--- a/client/src/components/Endpoints/Settings/OptionHover.tsx+++ b/client/src/components/Endpoints/Settings/OptionHover.tsx@@ -1,7 +1,7 @@import React from 'react';-import { HoverCardPortal, HoverCardContent } from '~/components/ui';-import { ESide } from '~/common';+import { HoverCardPortal, HoverCardContent } from '@librechat/client';import { useLocalize } from '~/hooks';+import { ESide } from '~/common';type TOptionHoverProps = {endpoint: string;diff --git a/client/src/components/Endpoints/Settings/Plugins.tsx b/client/src/components/Endpoints/Settings/Plugins.tsxindex 0843fa7ddc..87ef709564 100644--- a/client/src/components/Endpoints/Settings/Plugins.tsx+++ b/client/src/components/Endpoints/Settings/Plugins.tsx@@ -2,8 +2,6 @@ import { useMemo } from 'react';import { useRecoilValue } from 'recoil';import TextareaAutosize from 'react-textarea-autosize';import { useAvailablePluginsQuery } from 'librechat-data-provider/react-query';-import type { TPlugin } from 'librechat-data-provider';-import type { TModelSelectProps, OnInputNumberChange } from '~/common';import {Input,Label,@@ -12,8 +10,9 @@ import {InputNumber,SelectDropDown,HoverCardTrigger,- MultiSelectDropDown,-} from '~/components/ui';+} from '@librechat/client';+import type { TModelSelectProps, OnInputNumberChange } from '~/common';+import type { TPlugin } from 'librechat-data-provider';import {removeFocusOutlines,defaultTextProps,@@ -24,6 +23,7 @@ import {cn,} from '~/utils';import OptionHoverAlt from '~/components/SidePanel/Parameters/OptionHover';+import MultiSelectDropDown from '~/components/Input/ModelSelect/MultiSelectDropDown';import { useLocalize, useDebouncedInput } from '~/hooks';import OptionHover from './OptionHover';import { ESide } from '~/common';@@ -165,7 +165,7 @@ export default function Settings({)}className={cn(defaultTextProps,- 'flex max-h-[138px] min-h-[100px] w-full resize-none px-3 py-2 ',+ 'flex max-h-[138px] min-h-[100px] w-full resize-none px-3 py-2',)}/></div>diff --git a/client/src/components/Files/ActionButton.tsx b/client/src/components/Files/ActionButton.tsxindex 03f58da6c8..0d4c59f8d7 100644--- a/client/src/components/Files/ActionButton.tsx+++ b/client/src/components/Files/ActionButton.tsx@@ -1,5 +1,5 @@import React from 'react';-import { Button } from '~/components/ui';+import { Button } from '@librechat/client';import { useLocalize } from '~/hooks';type ActionButtonProps = {diff --git a/client/src/components/Files/DeleteIconButton.tsx b/client/src/components/Files/DeleteIconButton.tsxindex 50ac461bab..0173a3d577 100644--- a/client/src/components/Files/DeleteIconButton.tsx+++ b/client/src/components/Files/DeleteIconButton.tsx@@ -1,6 +1,5 @@import React from 'react';-import { CrossIcon, TrashIcon } from '~/components/svg';-import { Button } from '~/components/ui';+import { Button, TrashIcon } from '@librechat/client';type DeleteIconButtonProps = {onClick: () => void;diff --git a/client/src/components/Files/FileList/DataTableFile.tsx b/client/src/components/Files/FileList/DataTableFile.tsxindex d64699e2ea..269001d0a3 100644--- a/client/src/components/Files/FileList/DataTableFile.tsx+++ b/client/src/components/Files/FileList/DataTableFile.tsx@@ -16,27 +16,28 @@ import type {ColumnFiltersState,} from '@tanstack/react-table';import { FileContext } from 'librechat-data-provider';-import type { AugmentedColumnDef } from '~/common';-import type { TFile } from 'librechat-data-provider';import {Input,Table,Button,+ Spinner,TableRow,TableBody,TableCell,TableHead,+ TrashIcon,TableHeader,DropdownMenu,DropdownMenuContent,DropdownMenuTrigger,DropdownMenuCheckboxItem,-} from '~/components/ui';+} from '@librechat/client';+import type { TFile } from 'librechat-data-provider';+import type { AugmentedColumnDef } from '~/common';import ActionButton from '~/components/Files/ActionButton';import { useDeleteFilesFromTable } from '~/hooks/Files';-import { TrashIcon, Spinner } from '~/components/svg';import UploadFileButton from './UploadFileButton';-import useLocalize from '~/hooks/useLocalize';+import { useLocalize } from '~/hooks';import store from '~/store';interface DataTableProps<TData, TValue> {diff --git a/client/src/components/Files/FileList/FileListItem.tsx b/client/src/components/Files/FileList/FileListItem.tsxindex 5760b2917b..e7ee5d1d29 100644--- a/client/src/components/Files/FileList/FileListItem.tsx+++ b/client/src/components/Files/FileList/FileListItem.tsx@@ -1,7 +1,6 @@-import type { TFile } from 'librechat-data-provider';import React from 'react';-import { TrashIcon } from '~/components/svg';-import { Button } from '~/components/ui';+import { Button, TrashIcon } from '@librechat/client';+import type { TFile } from 'librechat-data-provider';type FileListItemProps = {file: TFile;diff --git a/client/src/components/Files/FileList/FileListItem2.tsx b/client/src/components/Files/FileList/FileListItem2.tsxindex 2b8ff1d6a9..b692a69625 100644--- a/client/src/components/Files/FileList/FileListItem2.tsx+++ b/client/src/components/Files/FileList/FileListItem2.tsx@@ -1,9 +1,8 @@-import type { TFile } from 'librechat-data-provider';-import { FileIcon, PlusIcon } from 'lucide-react';import React from 'react';+import { FileIcon, PlusIcon } from 'lucide-react';+import { Button, DotsIcon, TrashIcon } from '@librechat/client';+import type { TFile } from 'librechat-data-provider';import { useNavigate } from 'react-router-dom';-import { DotsIcon, TrashIcon } from '~/components/svg';-import { Button } from '~/components/ui';type FileListItemProps = {file: TFile;diff --git a/client/src/components/Files/FileList/FilePreview.tsx b/client/src/components/Files/FileList/FilePreview.tsxindex e0c2624b34..0b416fa704 100644--- a/client/src/components/Files/FileList/FilePreview.tsx+++ b/client/src/components/Files/FileList/FilePreview.tsx@@ -1,11 +1,10 @@-import { TFile } from 'librechat-data-provider/dist/types';import React, { useState } from 'react';-import { TThread, TVectorStore } from '~/common';-import { CheckMark, TrashIcon } from '~/components/svg';-import { Button } from '~/components/ui';-import DeleteIconButton from '../DeleteIconButton';+import { TFile } from 'librechat-data-provider/dist/types';+import { CheckMark, TrashIcon, Button } from '@librechat/client';import VectorStoreButton from '../VectorStore/VectorStoreButton';import { CircleIcon, Clock3Icon, InfoIcon } from 'lucide-react';+import DeleteIconButton from '../DeleteIconButton';+import { TThread, TVectorStore } from '~/common';import { useParams } from 'react-router-dom';const tempFile: TFile = {diff --git a/client/src/components/Files/FileList/FileSidePanel.tsx b/client/src/components/Files/FileList/FileSidePanel.tsxindex e1552d2a8d..5b59678426 100644--- a/client/src/components/Files/FileList/FileSidePanel.tsx+++ b/client/src/components/Files/FileList/FileSidePanel.tsx@@ -1,10 +1,9 @@import React from 'react';import FileList from './FileList';+import { Button, Input } from '@librechat/client';import { TFile } from 'librechat-data-provider/dist/types';-import FilesSectionSelector from '../FilesSectionSelector';-import { Button, Input } from '~/components/ui';-import { ListFilter } from 'lucide-react';import UploadFileButton from './UploadFileButton';+import { ListFilter } from 'lucide-react';import { useLocalize } from '~/hooks';const fakeFiles = [diff --git a/client/src/components/Files/FileList/FileTableColumns.tsx b/client/src/components/Files/FileList/FileTableColumns.tsxindex 8e670aa805..754cb061db 100644--- a/client/src/components/Files/FileList/FileTableColumns.tsx+++ b/client/src/components/Files/FileList/FileTableColumns.tsx@@ -1,13 +1,10 @@/* eslint-disable react-hooks/rules-of-hooks */-import { FileSources, FileContext } from 'librechat-data-provider';+import { PlusIcon } from 'lucide-react';+import { Button, Checkbox, DotsIcon, FileIcon } from '@librechat/client';import type { ColumnDef } from '@tanstack/react-table';import type { TFile } from 'librechat-data-provider';-import { CrossIcon, DotsIcon } from '~/components/svg';-import { Button, Checkbox } from '~/components/ui';import { formatDate, getFileType } from '~/utils';-import useLocalize from '~/hooks/useLocalize';-import FileIcon from '~/components/svg/Files/FileIcon';-import { PlusIcon } from 'lucide-react';+import { useLocalize } from '~/hooks';export const fileTableColumns: ColumnDef<TFile>[] = [{diff --git a/client/src/components/Files/FileList/UploadFileButton.tsx b/client/src/components/Files/FileList/UploadFileButton.tsxindex e2b8acdd09..0823f706e3 100644--- a/client/src/components/Files/FileList/UploadFileButton.tsx+++ b/client/src/components/Files/FileList/UploadFileButton.tsx@@ -1,6 +1,6 @@-import { PlusIcon } from 'lucide-react';import React from 'react';-import { Button } from '~/components/ui';+import { PlusIcon } from 'lucide-react';+import { Button } from '@librechat/client';type UploadFileProps = {onClick: () => void;diff --git a/client/src/components/Files/FileList/UploadFileModal.tsx b/client/src/components/Files/FileList/UploadFileModal.tsxindex 4e2e31e278..7be59184a5 100644--- a/client/src/components/Files/FileList/UploadFileModal.tsx+++ b/client/src/components/Files/FileList/UploadFileModal.tsx@@ -1,6 +1,5 @@import React, { useState, ChangeEvent } from 'react';-import AttachFile from '~/components/Chat/Input/Files/AttachFile';-import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, Input } from '~/components/ui';+import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, Input } from '@librechat/client';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Files/VectorStore/VectorStoreButton.tsx b/client/src/components/Files/VectorStore/VectorStoreButton.tsxindex dc3e34c4f2..6eb0f35a26 100644--- a/client/src/components/Files/VectorStore/VectorStoreButton.tsx+++ b/client/src/components/Files/VectorStore/VectorStoreButton.tsx@@ -1,6 +1,6 @@-import { PlusIcon } from 'lucide-react';import React from 'react';-import { Button } from '~/components/ui';+import { PlusIcon } from 'lucide-react';+import { Button } from '@librechat/client';type VectorStoreButtonProps = {onClick: () => void;diff --git a/client/src/components/Files/VectorStore/VectorStoreListItem.tsx b/client/src/components/Files/VectorStore/VectorStoreListItem.tsxindex 720ebd0afe..66a54b1593 100644--- a/client/src/components/Files/VectorStore/VectorStoreListItem.tsx+++ b/client/src/components/Files/VectorStore/VectorStoreListItem.tsx@@ -1,8 +1,7 @@import React from 'react';import { useNavigate } from 'react-router-dom';+import { Button, DotsIcon, TrashIcon } from '@librechat/client';import { TVectorStore } from '~/common';-import { DotsIcon, TrashIcon } from '~/components/svg';-import { Button } from '~/components/ui';type VectorStoreListItemProps = {vectorStore: TVectorStore;diff --git a/client/src/components/Files/VectorStore/VectorStorePreview.tsx b/client/src/components/Files/VectorStore/VectorStorePreview.tsxindex c1d70107fa..d75a827425 100644--- a/client/src/components/Files/VectorStore/VectorStorePreview.tsx+++ b/client/src/components/Files/VectorStore/VectorStorePreview.tsx@@ -1,7 +1,6 @@import React, { useState } from 'react';import DeleteIconButton from '../DeleteIconButton';-import { Button } from '~/components/ui';-import { TrashIcon } from '~/components/svg';+import { TrashIcon, Button } from '@librechat/client';import { TFile } from 'librechat-data-provider/dist/types';import UploadFileButton from '../FileList/UploadFileButton';import UploadFileModal from '../FileList/UploadFileModal';@@ -99,7 +98,7 @@ export default function VectorStorePreview() {const params = useParams();return (- <div className="m-3 ml-1 mr-7 bg-white p-2 sm:p-4 md:p-6 lg:p-10">+ <div className="m-3 ml-1 mr-7 bg-white p-2 sm:p-4 md:p-6 lg:p-10"><div className="flex flex-col justify-between md:flex-row"><div className="flex flex-col"><b className="hidden text-base md:text-lg lg:block lg:text-xl">VECTOR STORE</b>diff --git a/client/src/components/Files/VectorStore/VectorStoreSidePanel.tsx b/client/src/components/Files/VectorStore/VectorStoreSidePanel.tsxindex b1d0fe166a..0616bcc7ba 100644--- a/client/src/components/Files/VectorStore/VectorStoreSidePanel.tsx+++ b/client/src/components/Files/VectorStore/VectorStoreSidePanel.tsx@@ -1,12 +1,9 @@import React from 'react';+import { ListFilter } from 'lucide-react';+import { Button, Input } from '@librechat/client';+import VectorStoreButton from './VectorStoreButton';import VectorStoreList from './VectorStoreList';import { TVectorStore } from '~/common';-import VectorStoreButton from './VectorStoreButton';-import { Button, Input } from '~/components/ui';-import FilesSectionSelector from '../FilesSectionSelector';-import ActionButton from '../ActionButton';-import DeleteIconButton from '../DeleteIconButton';-import { ListFilter } from 'lucide-react';import { useLocalize } from '~/hooks';const fakeVectorStores: TVectorStore[] = [diff --git a/client/src/components/Input/Generations/Regenerate.tsx b/client/src/components/Input/Generations/Regenerate.tsxindex 83eabf493f..715168cb92 100644--- a/client/src/components/Input/Generations/Regenerate.tsx+++ b/client/src/components/Input/Generations/Regenerate.tsx@@ -1,7 +1,7 @@+import { RegenerateIcon } from '@librechat/client';import type { TGenButtonProps } from '~/common';-import { RegenerateIcon } from '~/components/svg';-import Button from './Button';import { useLocalize } from '~/hooks';+import Button from './Button';export default function Regenerate({ onClick }: TGenButtonProps) {const localize = useLocalize();diff --git a/client/src/components/Input/Generations/Stop.tsx b/client/src/components/Input/Generations/Stop.tsxindex 8214152c47..d66baa9450 100644--- a/client/src/components/Input/Generations/Stop.tsx+++ b/client/src/components/Input/Generations/Stop.tsx@@ -1,14 +1,14 @@+import { StopGeneratingIcon } from '@librechat/client';import type { TGenButtonProps } from '~/common';-import { StopGeneratingIcon } from '~/components/svg';-import Button from './Button';import { useLocalize } from '~/hooks';+import Button from './Button';export default function Stop({ onClick }: TGenButtonProps) {const localize = useLocalize();return (<Button type="stop" onClick={onClick}>- <StopGeneratingIcon className="text-gray-600/90 dark:text-gray-400 " />+ <StopGeneratingIcon className="text-gray-600/90 dark:text-gray-400" />{localize('com_ui_stop')}</Button>);diff --git a/client/src/components/Input/ModelSelect/Anthropic.tsx b/client/src/components/Input/ModelSelect/Anthropic.tsxindex bbe634478b..38669871ea 100644--- a/client/src/components/Input/ModelSelect/Anthropic.tsx+++ b/client/src/components/Input/ModelSelect/Anthropic.tsx@@ -1,4 +1,4 @@-import { SelectDropDown, SelectDropDownPop } from '~/components/ui';+import { SelectDropDown, SelectDropDownPop } from '@librechat/client';import type { TModelSelectProps } from '~/common';import { cn, cardStyle } from '~/utils/';diff --git a/client/src/components/Input/ModelSelect/ChatGPT.tsx b/client/src/components/Input/ModelSelect/ChatGPT.tsxindex 89c884429e..1405bcdbd6 100644--- a/client/src/components/Input/ModelSelect/ChatGPT.tsx+++ b/client/src/components/Input/ModelSelect/ChatGPT.tsx@@ -1,4 +1,4 @@-import { SelectDropDown, SelectDropDownPop } from '~/components/ui';+import { SelectDropDown, SelectDropDownPop } from '@librechat/client';import type { TModelSelectProps } from '~/common';import { cn, cardStyle } from '~/utils/';diff --git a/client/src/components/Input/ModelSelect/Google.tsx b/client/src/components/Input/ModelSelect/Google.tsxindex eab7f95393..eb04adc9e4 100644--- a/client/src/components/Input/ModelSelect/Google.tsx+++ b/client/src/components/Input/ModelSelect/Google.tsx@@ -1,4 +1,4 @@-import { SelectDropDown, SelectDropDownPop } from '~/components/ui';+import { SelectDropDown, SelectDropDownPop } from '@librechat/client';import type { TModelSelectProps } from '~/common';import { cn, cardStyle } from '~/utils/';diff --git a/client/src/components/ui/MultiSelectDropDown.tsx b/client/src/components/Input/ModelSelect/MultiSelectDropDown.tsxsimilarity index 97%rename from client/src/components/ui/MultiSelectDropDown.tsxrename to client/src/components/Input/ModelSelect/MultiSelectDropDown.tsxindex 0e2724dcf8..6a1deee152 100644--- a/client/src/components/ui/MultiSelectDropDown.tsx+++ b/client/src/components/Input/ModelSelect/MultiSelectDropDown.tsx@@ -1,4 +1,6 @@import React, { useState, useRef } from 'react';+import { Wrench, ArrowRight } from 'lucide-react';+import { CheckMark, useOnClickOutside, useMultiSearch } from '@librechat/client';import {Listbox,ListboxButton,@@ -7,12 +9,8 @@ import {ListboxOption,Transition,} from '@headlessui/react';-import { Wrench, ArrowRight } from 'lucide-react';-import { CheckMark } from '~/components/svg';-import useOnClickOutside from '~/hooks/useOnClickOutside';-import { useMultiSearch } from './MultiSearch';-import { cn } from '~/utils/';import type { TPlugin } from 'librechat-data-provider';+import { cn } from '~/utils/';export type TMultiSelectDropDownProps = {title?: string;@@ -142,7 +140,7 @@ function MultiSelectDropDown({viewBox="0 0 24 24"strokeLinecap="round"strokeLinejoin="round"- className="h-4 w-4 text-gray-400"+ className="h-4 w-4 text-gray-400"height="1em"width="1em"xmlns="http://www.w3.org/2000/svg"diff --git a/client/src/components/ui/MultiSelectPop.tsx b/client/src/components/Input/ModelSelect/MultiSelectPop.tsxsimilarity index 95%rename from client/src/components/ui/MultiSelectPop.tsxrename to client/src/components/Input/ModelSelect/MultiSelectPop.tsxindex 3f43772915..8421c673ae 100644--- a/client/src/components/ui/MultiSelectPop.tsx+++ b/client/src/components/Input/ModelSelect/MultiSelectPop.tsx@@ -1,8 +1,8 @@import { Wrench } from 'lucide-react';+import { useMultiSearch } from '@librechat/client';import { Root, Trigger, Content, Portal } from '@radix-ui/react-popover';import type { TPlugin } from 'librechat-data-provider';import MenuItem from '~/components/Chat/Menus/UI/MenuItem';-import { useMultiSearch } from './MultiSearch';import { cn } from '~/utils/';type SelectDropDownProps = {@@ -32,8 +32,6 @@ function MultiSelectPop({optionValueKey = 'value',searchPlaceholder,}: SelectDropDownProps) {- // const localize = useLocalize();-const title = _title;const excludeIds = ['select-plugin', 'plugins-label', 'selected-plugins'];@@ -54,14 +52,14 @@ function MultiSelectPop({<buttondata-testid="select-dropdown-button"className={cn(- 'relative flex flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus:outline-none focus:ring-0 focus:ring-offset-0 dark:border-gray-700 dark:bg-gray-800 dark:bg-gray-800 sm:text-sm',+ 'relative flex flex-col rounded-md border border-black/10 bg-white py-2 pl-3 pr-10 text-left focus:outline-none focus:ring-0 focus:ring-offset-0 dark:border-gray-700 dark:bg-gray-800 sm:text-sm','pointer-cursor font-normal','hover:bg-gray-50 radix-state-open:bg-gray-50 dark:hover:bg-gray-700 dark:radix-state-open:bg-gray-700',)}>{' '}{showLabel && (- <label className="block text-xs text-gray-700 dark:text-gray-500 ">{title}</label>+ <label className="block text-xs text-gray-700 dark:text-gray-500">{title}</label>)}<span className="inline-flex" id={excludeIds[2]}><span@@ -73,7 +71,7 @@ function MultiSelectPop({{/* {!showLabel && title.length > 0 && (<span className="text-xs text-gray-700 dark:text-gray-500">{title}:</span>)} */}- <span className="flex items-center gap-1 ">+ <span className="flex items-center gap-1"><div className="flex gap-1">{value.length === 0 && 'None selected'}{value.map((v, i) => (@@ -98,7 +96,7 @@ function MultiSelectPop({viewBox="0 0 24 24"strokeLinecap="round"strokeLinejoin="round"- className="h-4 w-4 text-gray-400"+ className="h-4 w-4 text-gray-400"height="1em"width="1em"xmlns="http://www.w3.org/2000/svg"diff --git a/client/src/components/Input/ModelSelect/OpenAI.tsx b/client/src/components/Input/ModelSelect/OpenAI.tsxindex 5b68cb440c..daf64d0581 100644--- a/client/src/components/Input/ModelSelect/OpenAI.tsx+++ b/client/src/components/Input/ModelSelect/OpenAI.tsx@@ -1,4 +1,4 @@-import { SelectDropDown, SelectDropDownPop } from '~/components/ui';+import { SelectDropDown, SelectDropDownPop } from '@librechat/clienti';import type { TModelSelectProps } from '~/common';import { cn, cardStyle } from '~/utils/';diff --git a/client/src/components/Input/ModelSelect/PluginsByIndex.tsx b/client/src/components/Input/ModelSelect/PluginsByIndex.tsxindex 8546d82438..6e11a87fe0 100644--- a/client/src/components/Input/ModelSelect/PluginsByIndex.tsx+++ b/client/src/components/Input/ModelSelect/PluginsByIndex.tsx@@ -2,17 +2,18 @@ import { useRecoilValue } from 'recoil';import { ChevronDownIcon } from 'lucide-react';import { useState, useEffect, useMemo } from 'react';import { useAvailablePluginsQuery } from 'librechat-data-provider/react-query';-import type { TPlugin } from 'librechat-data-provider';-import type { TModelSelectProps } from '~/common';import {Button,- MultiSelectPop,SelectDropDown,SelectDropDownPop,MultiSelectDropDown,-} from '~/components/ui';-import { useSetIndexOptions, useAuthContext, useMediaQuery, useLocalize } from '~/hooks';+ useMediaQuery,+} from '@librechat/client';+import type { TPlugin } from 'librechat-data-provider';+import type { TModelSelectProps } from '~/common';+import { useSetIndexOptions, useAuthContext, useLocalize } from '~/hooks';import { cn, cardStyle, selectPlugins, processPlugins } from '~/utils';+import MultiSelectPop from './MultiSelectPop';import store from '~/store';export default function PluginsByIndex({diff --git a/client/src/components/ui/SelectDropDownPop.tsx b/client/src/components/Input/ModelSelect/SelectDropDownPop.tsxsimilarity index 98%rename from client/src/components/ui/SelectDropDownPop.tsxrename to client/src/components/Input/ModelSelect/SelectDropDownPop.tsxindex ce6868e56a..cfb1c33b12 100644--- a/client/src/components/ui/SelectDropDownPop.tsx+++ b/client/src/components/Input/ModelSelect/SelectDropDownPop.tsx@@ -1,10 +1,10 @@import React from 'react';+import { useMultiSearch } from '@librechat/client';import { Root, Trigger, Content, Portal } from '@radix-ui/react-popover';import MenuItem from '~/components/Chat/Menus/UI/MenuItem';import type { Option } from '~/common';import { useLocalize } from '~/hooks';import { cn } from '~/utils/';-import { useMultiSearch } from './MultiSearch';type SelectDropDownProps = {id?: string;diff --git a/client/src/components/Input/SetKeyDialog/GoogleConfig.tsx b/client/src/components/Input/SetKeyDialog/GoogleConfig.tsxindex c6f2eafd24..3efeb5c09c 100644--- a/client/src/components/Input/SetKeyDialog/GoogleConfig.tsx+++ b/client/src/components/Input/SetKeyDialog/GoogleConfig.tsx@@ -1,11 +1,11 @@import React from 'react';import { object, string } from 'zod';+import { Label } from '@librechat/client';import { AuthKeys } from 'librechat-data-provider';import type { TConfigProps } from '~/common';import FileUpload from '~/components/Chat/Input/Files/FileUpload';import { useLocalize, useMultipleKeys } from '~/hooks';import InputWithLabel from './InputWithLabel';-import { Label } from '~/components/ui';const CredentialsSchema = object({client_email: string().email().min(3),diff --git a/client/src/components/Input/SetKeyDialog/InputWithLabel.tsx b/client/src/components/Input/SetKeyDialog/InputWithLabel.tsxindex a45ab02325..38eb512f41 100644--- a/client/src/components/Input/SetKeyDialog/InputWithLabel.tsx+++ b/client/src/components/Input/SetKeyDialog/InputWithLabel.tsx@@ -1,7 +1,7 @@import { forwardRef } from 'react';+import { Input, Label } from '@librechat/client';import type { ChangeEvent, FC, Ref } from 'react';import { cn, defaultTextPropsLabel, removeFocusOutlines, defaultTextProps } from '~/utils/';-import { Input, Label } from '~/components/ui';import { useLocalize } from '~/hooks';interface InputWithLabelProps {diff --git a/client/src/components/Input/SetKeyDialog/SetKeyDialog.tsx b/client/src/components/Input/SetKeyDialog/SetKeyDialog.tsxindex 0cd8cf3d72..dc71e87f8b 100644--- a/client/src/components/Input/SetKeyDialog/SetKeyDialog.tsx+++ b/client/src/components/Input/SetKeyDialog/SetKeyDialog.tsx@@ -1,13 +1,11 @@import React, { useState } from 'react';import { useForm, FormProvider } from 'react-hook-form';+import { OGDialogTemplate, OGDialog, Dropdown, useToastContext } from '@librechat/client';import { EModelEndpoint, alternateName, isAssistantsEndpoint } from 'librechat-data-provider';import type { TDialogProps } from '~/common';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';import { useGetEndpointsQuery } from '~/data-provider';-import { OGDialog, Dropdown } from '~/components/ui';import { RevokeKeysButton } from '~/components/Nav';import { useUserKey, useLocalize } from '~/hooks';-import { useToastContext } from '~/Providers';import CustomConfig from './CustomEndpoint';import GoogleConfig from './GoogleConfig';import OpenAIConfig from './OpenAIConfig';@@ -171,8 +169,8 @@ const SetKeyDialog = ({{expiryTime === 'never'? localize('com_endpoint_config_key_never_expires'): `${localize('com_endpoint_config_key_encryption')} ${new Date(- expiryTime ?? 0,- ).toLocaleString()}`}+ expiryTime ?? 0,+ ).toLocaleString()}`}</small><Dropdownlabel="Expires "diff --git a/client/src/components/ui/MCP/CustomUserVarsSection.tsx b/client/src/components/MCP/CustomUserVarsSection.tsxsimilarity index 98%rename from client/src/components/ui/MCP/CustomUserVarsSection.tsxrename to client/src/components/MCP/CustomUserVarsSection.tsxindex 865ef91ba3..1d6060c914 100644--- a/client/src/components/ui/MCP/CustomUserVarsSection.tsx+++ b/client/src/components/MCP/CustomUserVarsSection.tsx@@ -1,8 +1,8 @@import React, { useMemo } from 'react';import { useForm, Controller } from 'react-hook-form';-import { Input, Label, Button } from '~/components/ui';-import { useLocalize } from '~/hooks';+import { Input, Label, Button } from '@librechat/client';import { useMCPAuthValuesQuery } from '~/data-provider/Tools/queries';+import { useLocalize } from '~/hooks';export interface CustomUserVarConfig {title: string;diff --git a/client/src/components/ui/MCP/MCPConfigDialog.tsx b/client/src/components/MCP/MCPConfigDialog.tsxsimilarity index 97%rename from client/src/components/ui/MCP/MCPConfigDialog.tsxrename to client/src/components/MCP/MCPConfigDialog.tsxindex fc0550453e..1ad0ea7b63 100644--- a/client/src/components/ui/MCP/MCPConfigDialog.tsx+++ b/client/src/components/MCP/MCPConfigDialog.tsx@@ -1,15 +1,15 @@import React from 'react';import { Loader2, KeyRound, PlugZap, AlertTriangle } from 'lucide-react';-import { MCPServerStatus } from 'librechat-data-provider/dist/types/types/queries';import {OGDialog,- OGDialogContent,- OGDialogHeader,OGDialogTitle,+ OGDialogHeader,+ OGDialogContent,OGDialogDescription,-} from '~/components/ui/OriginalDialog';-import CustomUserVarsSection from './CustomUserVarsSection';+} from '@librechat/client';+import type { MCPServerStatus } from 'librechat-data-provider';import ServerInitializationSection from './ServerInitializationSection';+import CustomUserVarsSection from './CustomUserVarsSection';import { useLocalize } from '~/hooks';export interface ConfigFieldDetail {diff --git a/client/src/components/ui/MCP/MCPServerStatusIcon.tsx b/client/src/components/MCP/MCPServerStatusIcon.tsxsimilarity index 100%rename from client/src/components/ui/MCP/MCPServerStatusIcon.tsxrename to client/src/components/MCP/MCPServerStatusIcon.tsxdiff --git a/client/src/components/ui/MCP/ServerInitializationSection.tsx b/client/src/components/MCP/ServerInitializationSection.tsxsimilarity index 96%rename from client/src/components/ui/MCP/ServerInitializationSection.tsxrename to client/src/components/MCP/ServerInitializationSection.tsxindex dd2588c2f2..ea30f71356 100644--- a/client/src/components/ui/MCP/ServerInitializationSection.tsx+++ b/client/src/components/MCP/ServerInitializationSection.tsx@@ -1,8 +1,7 @@-import { RefreshCw, Link } from 'lucide-react';import React, { useState, useCallback } from 'react';-import { useMCPServerInitialization } from '~/hooks/MCP/useMCPServerInitialization';-import { Button } from '~/components/ui';-import { useLocalize } from '~/hooks';+import { Button } from '@librechat/client';+import { RefreshCw, Link } from 'lucide-react';+import { useLocalize, useMCPServerInitialization } from '~/hooks';interface ServerInitializationSectionProps {serverName: string;diff --git a/client/src/components/Messages/Content/CodeBlock.tsx b/client/src/components/Messages/Content/CodeBlock.tsxindex d48c8042b7..8ed21790af 100644--- a/client/src/components/Messages/Content/CodeBlock.tsx+++ b/client/src/components/Messages/Content/CodeBlock.tsx@@ -1,15 +1,14 @@+import React, { useRef, useState, useMemo, useEffect } from 'react';import copy from 'copy-to-clipboard';import { InfoIcon } from 'lucide-react';import { Tools } from 'librechat-data-provider';-import React, { useRef, useState, useMemo, useEffect } from 'react';+import { Clipboard, CheckMark } from '@librechat/client';import type { CodeBarProps } from '~/common';import ResultSwitcher from '~/components/Messages/Content/ResultSwitcher';import { useToolCallsMapContext, useMessageContext } from '~/Providers';import { LogContent } from '~/components/Chat/Messages/Content/Parts';import RunCode from '~/components/Messages/Content/RunCode';-import Clipboard from '~/components/svg/Clipboard';-import CheckMark from '~/components/svg/CheckMark';-import useLocalize from '~/hooks/useLocalize';+import { useLocalize } from '~/hooks';import cn from '~/utils/cn';type CodeBlockProps = Pick<diff --git a/client/src/components/Messages/Content/Error.tsx b/client/src/components/Messages/Content/Error.tsxindex 77580a3737..5b375859fe 100644--- a/client/src/components/Messages/Content/Error.tsx+++ b/client/src/components/Messages/Content/Error.tsx@@ -3,7 +3,7 @@ import { ViolationTypes, ErrorTypes, alternateName } from 'librechat-data-providimport type { TOpenAIMessage } from 'librechat-data-provider';import type { LocalizeFunction } from '~/common';import { formatJSON, extractJson, isJson } from '~/utils/json';-import useLocalize from '~/hooks/useLocalize';+import { useLocalize } from '~/hooks';import CodeBlock from './CodeBlock';const localizedErrorPrefix = 'com_error';diff --git a/client/src/components/Messages/Content/Plugin.tsx b/client/src/components/Messages/Content/Plugin.tsxindex b2b7f7eed8..0703843806 100644--- a/client/src/components/Messages/Content/Plugin.tsx+++ b/client/src/components/Messages/Content/Plugin.tsx@@ -1,11 +1,11 @@-import { Disclosure, DisclosureButton, DisclosurePanel } from '@headlessui/react';import { useCallback, memo, ReactNode } from 'react';+import { Spinner } from '@librechat/client';import { ChevronDownIcon, LucideProps } from 'lucide-react';+import { Disclosure, DisclosureButton, DisclosurePanel } from '@headlessui/react';import type { TResPlugin, TInput } from 'librechat-data-provider';import { useGetEndpointsQuery } from '~/data-provider';import { useShareContext } from '~/Providers';import { cn, formatJSON } from '~/utils';-import { Spinner } from '~/components';import CodeBlock from './CodeBlock';type PluginIconProps = LucideProps & {@@ -66,7 +66,7 @@ const Plugin: React.FC<PluginProps> = ({ plugin }) => {if (!plugin.loading && latestPlugin === 'self reflection') {return 'Finished';} else if (latestPlugin === 'self reflection') {- return 'I\'m thinking...';+ return "I'm thinking...";} else {return (<>@@ -112,9 +112,7 @@ const Plugin: React.FC<PluginProps> = ({ plugin }) => {/>{plugin.outputs && plugin.outputs.length > 0 && (<CodeBlock- lang={- latestPlugin ? `RESPONSE FROM ${latestPlugin.toUpperCase()}` : 'RESPONSE'- }+ lang={latestPlugin ? `RESPONSE FROM ${latestPlugin.toUpperCase()}` : 'RESPONSE'}codeChildren={formatJSON(plugin.outputs ?? '')}plugin={true}classProp="max-h-[450px]"diff --git a/client/src/components/Messages/Content/RunCode.tsx b/client/src/components/Messages/Content/RunCode.tsxindex 10adb7df3f..da1e0767cf 100644--- a/client/src/components/Messages/Content/RunCode.tsx+++ b/client/src/components/Messages/Content/RunCode.tsx@@ -1,15 +1,14 @@+import React, { useMemo, useCallback, useEffect } from 'react';import debounce from 'lodash/debounce';-import { Tools, AuthType } from 'librechat-data-provider';import { TerminalSquareIcon } from 'lucide-react';-import React, { useMemo, useCallback, useEffect } from 'react';+import { Tools, AuthType } from 'librechat-data-provider';+import { Spinner, useToastContext } from '@librechat/client';import type { CodeBarProps } from '~/common';import { useVerifyAgentToolAuth, useToolCallMutation } from '~/data-provider';import ApiKeyDialog from '~/components/SidePanel/Agents/Code/ApiKeyDialog';import { useLocalize, useCodeApiKeyForm } from '~/hooks';import { useMessageContext } from '~/Providers';import { cn, normalizeLanguage } from '~/utils';-import { useToastContext } from '~/Providers';-import { Spinner } from '~/components';const RunCode: React.FC<CodeBarProps> = React.memo(({ lang, codeRef, blockIndex }) => {const localize = useLocalize();diff --git a/client/src/components/Nav/AccountSettings.tsx b/client/src/components/Nav/AccountSettings.tsxindex fc76e440a0..9b1f4ea92e 100644--- a/client/src/components/Nav/AccountSettings.tsx+++ b/client/src/components/Nav/AccountSettings.tsx@@ -2,12 +2,11 @@ import { useState, memo } from 'react';import { useRecoilState } from 'recoil';import * as Select from '@ariakit/react/select';import { FileText, LogOut } from 'lucide-react';-import { LinkIcon, GearIcon, DropdownMenuSeparator } from '~/components';+import { LinkIcon, GearIcon, DropdownMenuSeparator, UserIcon } from '@librechat/client';import { useGetStartupConfig, useGetUserBalance } from '~/data-provider';import FilesView from '~/components/Chat/Input/Files/FilesView';import { useAuthContext } from '~/hooks/AuthContext';import useAvatar from '~/hooks/Messages/useAvatar';-import { UserIcon } from '~/components/svg';import { useLocalize } from '~/hooks';import Settings from './Settings';import store from '~/store';diff --git a/client/src/components/Nav/Bookmarks/BookmarkNav.tsx b/client/src/components/Nav/Bookmarks/BookmarkNav.tsxindex c67ddd12fb..54a000df5e 100644--- a/client/src/components/Nav/Bookmarks/BookmarkNav.tsx+++ b/client/src/components/Nav/Bookmarks/BookmarkNav.tsx@@ -1,12 +1,12 @@import { useMemo } from 'react';import type { FC } from 'react';import { useRecoilValue } from 'recoil';+import { TooltipAnchor } from '@librechat/client';import { Menu, MenuButton, MenuItems } from '@headlessui/react';import { BookmarkFilledIcon, BookmarkIcon } from '@radix-ui/react-icons';import { BookmarkContext } from '~/Providers/BookmarkContext';import { useGetConversationTags } from '~/data-provider';import BookmarkNavItems from './BookmarkNavItems';-import { TooltipAnchor } from '~/components/ui';import { useLocalize } from '~/hooks';import { cn } from '~/utils';import store from '~/store';diff --git a/client/src/components/Nav/ExportConversation/ExportModal.tsx b/client/src/components/Nav/ExportConversation/ExportModal.tsxindex ad36a107f8..85a1f9be3c 100644--- a/client/src/components/Nav/ExportConversation/ExportModal.tsx+++ b/client/src/components/Nav/ExportConversation/ExportModal.tsx@@ -1,8 +1,15 @@import filenamify from 'filenamify';import { useEffect, useState, useMemo, useCallback } from 'react';+import {+ OGDialogTemplate,+ OGDialog,+ Button,+ Input,+ Label,+ Checkbox,+ Dropdown,+} from '@librechat/client';import type { TConversation } from 'librechat-data-provider';-import { OGDialog, Button, Input, Label, Checkbox, Dropdown } from '~/components/ui';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';import { useLocalize, useExportConversation } from '~/hooks';const TYPE_OPTIONS = [diff --git a/client/src/components/Nav/Nav.tsx b/client/src/components/Nav/Nav.tsxindex a692274719..2862e816de 100644--- a/client/src/components/Nav/Nav.tsx+++ b/client/src/components/Nav/Nav.tsx@@ -1,12 +1,12 @@import { useCallback, useEffect, useState, useMemo, memo, lazy, Suspense, useRef } from 'react';import { useRecoilValue } from 'recoil';+import { useMediaQuery } from '@librechat/client';import { PermissionTypes, Permissions } from 'librechat-data-provider';import type { ConversationListResponse } from 'librechat-data-provider';import type { InfiniteQueryObserverResult } from '@tanstack/react-query';import {useLocalize,useHasAccess,- useMediaQuery,useAuthContext,useLocalStorage,useNavScrolling,diff --git a/client/src/components/Nav/NavToggle.tsx b/client/src/components/Nav/NavToggle.tsxindex ec8dad939d..002ab5dd89 100644--- a/client/src/components/Nav/NavToggle.tsx+++ b/client/src/components/Nav/NavToggle.tsx@@ -1,5 +1,5 @@+import { TooltipAnchor } from '@librechat/client';import { useLocalize } from '~/hooks';-import { TooltipAnchor } from '~/components/ui';import { cn } from '~/utils';export default function NavToggle({@@ -35,7 +35,7 @@ export default function NavToggle({className,'-translate-y-1/2 transition-transform',navVisible ? 'rotate-0' : 'rotate-180',- navVisible && translateX ? 'translate-x-[260px]' : 'translate-x-0 ',+ navVisible && translateX ? 'translate-x-[260px]' : 'translate-x-0',)}onMouseEnter={() => setIsHovering(true)}onMouseLeave={() => setIsHovering(false)}diff --git a/client/src/components/Nav/NewChat.tsx b/client/src/components/Nav/NewChat.tsxindex ede40688cd..01426f1f29 100644--- a/client/src/components/Nav/NewChat.tsx+++ b/client/src/components/Nav/NewChat.tsx@@ -1,12 +1,9 @@import React, { useCallback } from 'react';-import { useRecoilValue } from 'recoil';import { useNavigate } from 'react-router-dom';import { useQueryClient } from '@tanstack/react-query';+import type { TMessage } from 'librechat-data-provider';import { QueryKeys, Constants } from 'librechat-data-provider';-import type { TMessage, TStartupConfig } from 'librechat-data-provider';-import { NewChatIcon, MobileSidebar, Sidebar } from '~/components/svg';-import { getDefaultModelSpec, getModelSpecPreset } from '~/utils';-import { TooltipAnchor, Button } from '~/components/ui';+import { NewChatIcon, MobileSidebar, Sidebar, TooltipAnchor, Button } from '@librechat/client';import { useLocalize, useNewConvo } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/Settings.tsx b/client/src/components/Nav/Settings.tsxindex a0b6535210..d1c05b7bbc 100644--- a/client/src/components/Nav/Settings.tsx+++ b/client/src/components/Nav/Settings.tsx@@ -1,23 +1,30 @@import React, { useState, useRef } from 'react';import * as Tabs from '@radix-ui/react-tabs';-import { MessageSquare, Command, DollarSign } from 'lucide-react';import { SettingsTabValues } from 'librechat-data-provider';-import { useGetStartupConfig } from '~/data-provider';-import type { TDialogProps } from '~/common';+import { MessageSquare, Command, DollarSign } from 'lucide-react';import { Dialog, DialogPanel, DialogTitle, Transition, TransitionChild } from '@headlessui/react';import {- Personalization,- Commands,+ GearIcon,+ DataIcon,+ UserIcon,+ SpeechIcon,+ useMediaQuery,+ PersonalizationIcon,+} from '@librechat/client';+import type { TDialogProps } from '~/common';+import {General,- Account,- Balance,+ Chat,+ Commands,Speech,+ Personalization,Data,- Chat,+ Balance,+ Account,} from './SettingsTabs';-import { GearIcon, DataIcon, SpeechIcon, UserIcon, PersonalizationIcon } from '~/components/svg';import usePersonalizationAccess from '~/hooks/usePersonalizationAccess';-import { useMediaQuery, useLocalize, TranslationKeys } from '~/hooks';+import { useLocalize, TranslationKeys } from '~/hooks';+import { useGetStartupConfig } from '~/data-provider';import { cn } from '~/utils';export default function Settings({ open, onOpenChange }: TDialogProps) {diff --git a/client/src/components/Nav/SettingsTabs/Account/Avatar.tsx b/client/src/components/Nav/SettingsTabs/Account/Avatar.tsxindex 5ecdb5a990..0ce86231a7 100644--- a/client/src/components/Nav/SettingsTabs/Account/Avatar.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/Avatar.tsx@@ -3,7 +3,6 @@ import { useSetRecoilState } from 'recoil';import AvatarEditor from 'react-avatar-editor';import { FileImage, RotateCw, Upload } from 'lucide-react';import { fileConfig as defaultFileConfig, mergeFileConfig } from 'librechat-data-provider';-import type { TUser } from 'librechat-data-provider';import {Slider,Button,@@ -13,9 +12,10 @@ import {OGDialogHeader,OGDialogTitle,OGDialogTrigger,-} from '~/components';+ useToastContext,+} from '@librechat/client';+import type { TUser } from 'librechat-data-provider';import { useUploadAvatarMutation, useGetFileConfig } from '~/data-provider';-import { useToastContext } from '~/Providers';import { cn, formatBytes } from '~/utils';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Account/BackupCodesItem.tsx b/client/src/components/Nav/SettingsTabs/Account/BackupCodesItem.tsxindex a034e2773a..cb05670736 100644--- a/client/src/components/Nav/SettingsTabs/Account/BackupCodesItem.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/BackupCodesItem.tsx@@ -11,10 +11,10 @@ import {Label,Spinner,TooltipAnchor,-} from '~/components';+ useToastContext,+} from '@librechat/client';import { useRegenerateBackupCodesMutation } from '~/data-provider';import { useAuthContext, useLocalize } from '~/hooks';-import { useToastContext } from '~/Providers';import { useSetRecoilState } from 'recoil';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Account/DeleteAccount.tsx b/client/src/components/Nav/SettingsTabs/Account/DeleteAccount.tsxindex b00e7498bc..bd2e36c45f 100644--- a/client/src/components/Nav/SettingsTabs/Account/DeleteAccount.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/DeleteAccount.tsx@@ -9,12 +9,12 @@ import {OGDialogTrigger,OGDialogHeader,OGDialogTitle,-} from '~/components';+} from '@librechat/client';import { useDeleteUserMutation } from '~/data-provider';import { useAuthContext } from '~/hooks/AuthContext';+import { LocalizeFunction } from '~/common';import { useLocalize } from '~/hooks';import { cn } from '~/utils';-import { LocalizeFunction } from '~/common';const DeleteAccount = ({ disabled = false }: { title?: string; disabled?: boolean }) => {const localize = useLocalize();diff --git a/client/src/components/Nav/SettingsTabs/Account/DisableTwoFactorToggle.tsx b/client/src/components/Nav/SettingsTabs/Account/DisableTwoFactorToggle.tsxindex e6e44f213a..4d4d83844e 100644--- a/client/src/components/Nav/SettingsTabs/Account/DisableTwoFactorToggle.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/DisableTwoFactorToggle.tsx@@ -1,7 +1,7 @@import React from 'react';// import { motion } from 'framer-motion';// import { LockIcon, UnlockIcon } from 'lucide-react';-import { Label, Button } from '~/components';+import { Label, Button } from '@librechat/client';import { useLocalize } from '~/hooks';interface DisableTwoFactorToggleProps {diff --git a/client/src/components/Nav/SettingsTabs/Account/DisplayUsernameMessages.tsx b/client/src/components/Nav/SettingsTabs/Account/DisplayUsernameMessages.tsxindex b72adcdb3f..011edc4685 100644--- a/client/src/components/Nav/SettingsTabs/Account/DisplayUsernameMessages.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/DisplayUsernameMessages.tsx@@ -1,7 +1,7 @@import React from 'react';import { useRecoilState } from 'recoil';+import { Switch, Label } from '@librechat/client';import HoverCardSettings from '../HoverCardSettings';-import { Switch, Label } from '~/components/ui';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Account/TwoFactorAuthentication.tsx b/client/src/components/Nav/SettingsTabs/Account/TwoFactorAuthentication.tsxindex eb88b594ce..0541ffced2 100644--- a/client/src/components/Nav/SettingsTabs/Account/TwoFactorAuthentication.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/TwoFactorAuthentication.tsx@@ -2,19 +2,25 @@ import React, { useCallback, useState } from 'react';import { useSetRecoilState } from 'recoil';import { SmartphoneIcon } from 'lucide-react';import { motion, AnimatePresence } from 'framer-motion';+import {+ OGDialog,+ useToastContext,+ OGDialogContent,+ OGDialogHeader,+ OGDialogTitle,+ Progress,+} from '@librechat/client';import type { TUser, TVerify2FARequest } from 'librechat-data-provider';-import { OGDialog, OGDialogContent, OGDialogHeader, OGDialogTitle, Progress } from '~/components';-import { SetupPhase, QRPhase, VerifyPhase, BackupPhase, DisablePhase } from './TwoFactorPhases';-import { DisableTwoFactorToggle } from './DisableTwoFactorToggle';-import { useAuthContext, useLocalize } from '~/hooks';-import { useToastContext } from '~/Providers';-import store from '~/store';import {useConfirmTwoFactorMutation,useDisableTwoFactorMutation,useEnableTwoFactorMutation,useVerifyTwoFactorMutation,} from '~/data-provider';+import { SetupPhase, QRPhase, VerifyPhase, BackupPhase, DisablePhase } from './TwoFactorPhases';+import { DisableTwoFactorToggle } from './DisableTwoFactorToggle';+import { useAuthContext, useLocalize } from '~/hooks';+import store from '~/store';export type Phase = 'setup' | 'qr' | 'verify' | 'backup' | 'disable';diff --git a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/BackupPhase.tsx b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/BackupPhase.tsxindex 67e05a1423..cc986ceda1 100644--- a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/BackupPhase.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/BackupPhase.tsx@@ -1,7 +1,7 @@import React from 'react';import { motion } from 'framer-motion';import { Download } from 'lucide-react';-import { Button, Label } from '~/components';+import { Button, Label } from '@librechat/client';import { useLocalize } from '~/hooks';const fadeAnimation = {diff --git a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/DisablePhase.tsx b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/DisablePhase.tsxindex fc444b918c..23017bec12 100644--- a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/DisablePhase.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/DisablePhase.tsx@@ -8,7 +8,7 @@ import {InputOTPSlot,InputOTPSeparator,Spinner,-} from '~/components';+} from '@librechat/client';import { useLocalize } from '~/hooks';const fadeAnimation = {diff --git a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/QRPhase.tsx b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/QRPhase.tsxindex 7a0eccae3f..246a090861 100644--- a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/QRPhase.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/QRPhase.tsx@@ -2,7 +2,7 @@ import React, { useState } from 'react';import { motion } from 'framer-motion';import { QRCodeSVG } from 'qrcode.react';import { Copy, Check } from 'lucide-react';-import { Input, Button, Label } from '~/components';+import { Input, Button, Label } from '@librechat/client';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/SetupPhase.tsx b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/SetupPhase.tsxindex feca4d3254..14910df786 100644--- a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/SetupPhase.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/SetupPhase.tsx@@ -1,7 +1,7 @@import React from 'react';import { QrCode } from 'lucide-react';import { motion } from 'framer-motion';-import { Button, Spinner } from '~/components';+import { Button, Spinner } from '@librechat/client';import { useLocalize } from '~/hooks';const fadeAnimation = {diff --git a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/VerifyPhase.tsx b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/VerifyPhase.tsxindex e872dfa0d2..b6c4acdb47 100644--- a/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/VerifyPhase.tsx+++ b/client/src/components/Nav/SettingsTabs/Account/TwoFactorPhases/VerifyPhase.tsx@@ -1,6 +1,12 @@import React from 'react';import { motion } from 'framer-motion';-import { Button, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from '~/components';+import {+ Button,+ InputOTP,+ InputOTPGroup,+ InputOTPSeparator,+ InputOTPSlot,+} from '@librechat/client';import { REGEXP_ONLY_DIGITS } from 'input-otp';import { useLocalize } from '~/hooks';diff --git a/client/src/components/Nav/SettingsTabs/Balance/AutoRefillSettings.tsx b/client/src/components/Nav/SettingsTabs/Balance/AutoRefillSettings.tsxindex f34e2bed23..f423980327 100644--- a/client/src/components/Nav/SettingsTabs/Balance/AutoRefillSettings.tsx+++ b/client/src/components/Nav/SettingsTabs/Balance/AutoRefillSettings.tsx@@ -1,7 +1,7 @@import React from 'react';-import { TranslationKeys, useLocalize } from '~/hooks';-import { Label } from '~/components';+import { Label } from '@librechat/client';import HoverCardSettings from '~/components/Nav/SettingsTabs/HoverCardSettings';+import { TranslationKeys, useLocalize } from '~/hooks';interface AutoRefillSettingsProps {lastRefill: Date;diff --git a/client/src/components/Nav/SettingsTabs/Balance/TokenCreditsItem.tsx b/client/src/components/Nav/SettingsTabs/Balance/TokenCreditsItem.tsxindex 745f401b7c..d96ecd98ed 100644--- a/client/src/components/Nav/SettingsTabs/Balance/TokenCreditsItem.tsx+++ b/client/src/components/Nav/SettingsTabs/Balance/TokenCreditsItem.tsx@@ -1,7 +1,7 @@import React from 'react';-import { useLocalize } from '~/hooks';-import { Label } from '~/components';+import { Label } from '@librechat/client';import HoverCardSettings from '~/components/Nav/SettingsTabs/HoverCardSettings';+import { useLocalize } from '~/hooks';interface TokenCreditsItemProps {tokenCredits?: number;diff --git a/client/src/components/Nav/SettingsTabs/Chat/ChatDirection.tsx b/client/src/components/Nav/SettingsTabs/Chat/ChatDirection.tsxindex e4bb42a627..7676617d32 100644--- a/client/src/components/Nav/SettingsTabs/Chat/ChatDirection.tsx+++ b/client/src/components/Nav/SettingsTabs/Chat/ChatDirection.tsx@@ -1,7 +1,7 @@import React from 'react';import { useRecoilState } from 'recoil';+import { Button } from '@librechat/client';import { useLocalize } from '~/hooks';-import { Button } from '~/components';import store from '~/store';const ChatDirection = () => {diff --git a/client/src/components/Nav/SettingsTabs/Chat/FontSizeSelector.tsx b/client/src/components/Nav/SettingsTabs/Chat/FontSizeSelector.tsxindex 211a2bd1d3..c638244bcf 100644--- a/client/src/components/Nav/SettingsTabs/Chat/FontSizeSelector.tsx+++ b/client/src/components/Nav/SettingsTabs/Chat/FontSizeSelector.tsx@@ -1,6 +1,5 @@import { useRecoilState } from 'recoil';-import { Dropdown } from '~/components/ui';-import { applyFontSize } from '~/utils';+import { Dropdown, applyFontSize } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Chat/ForkSettings.tsx b/client/src/components/Nav/SettingsTabs/Chat/ForkSettings.tsxindex a01fb6ab51..465fa1637a 100644--- a/client/src/components/Nav/SettingsTabs/Chat/ForkSettings.tsx+++ b/client/src/components/Nav/SettingsTabs/Chat/ForkSettings.tsx@@ -1,7 +1,7 @@import { useRecoilState } from 'recoil';-import HoverCardSettings from '../HoverCardSettings';+import { Dropdown, Switch } from '@librechat/client';import { ForkOptions } from 'librechat-data-provider';-import { Dropdown, Switch } from '~/components/ui';+import HoverCardSettings from '../HoverCardSettings';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Chat/SaveBadgesState.tsx b/client/src/components/Nav/SettingsTabs/Chat/SaveBadgesState.tsxindex 1be0171117..31b128bacf 100644--- a/client/src/components/Nav/SettingsTabs/Chat/SaveBadgesState.tsx+++ b/client/src/components/Nav/SettingsTabs/Chat/SaveBadgesState.tsx@@ -1,7 +1,7 @@import { useRecoilState } from 'recoil';+import { Switch } from '@librechat/client';import HoverCardSettings from '../HoverCardSettings';-import { Switch } from '~/components/ui';-import useLocalize from '~/hooks/useLocalize';+import { useLocalize } from '~/hooks';import store from '~/store';export default function SaveBadgesState({diff --git a/client/src/components/Nav/SettingsTabs/Chat/ShowThinking.tsx b/client/src/components/Nav/SettingsTabs/Chat/ShowThinking.tsxindex 6cd20c3040..15342fd945 100644--- a/client/src/components/Nav/SettingsTabs/Chat/ShowThinking.tsx+++ b/client/src/components/Nav/SettingsTabs/Chat/ShowThinking.tsx@@ -1,7 +1,7 @@import { useRecoilState } from 'recoil';+import { Switch } from '@librechat/client';import HoverCardSettings from '../HoverCardSettings';-import { Switch } from '~/components/ui';-import useLocalize from '~/hooks/useLocalize';+import { useLocalize } from '~/hooks';import store from '~/store';export default function SaveDraft({diff --git a/client/src/components/Nav/SettingsTabs/Commands/AtCommandSwitch.tsx b/client/src/components/Nav/SettingsTabs/Commands/AtCommandSwitch.tsxindex 1c4b8242ab..ab30c44dc0 100644--- a/client/src/components/Nav/SettingsTabs/Commands/AtCommandSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Commands/AtCommandSwitch.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Commands/PlusCommandSwitch.tsx b/client/src/components/Nav/SettingsTabs/Commands/PlusCommandSwitch.tsxindex 2351633945..2125f94a19 100644--- a/client/src/components/Nav/SettingsTabs/Commands/PlusCommandSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Commands/PlusCommandSwitch.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Commands/SlashCommandSwitch.tsx b/client/src/components/Nav/SettingsTabs/Commands/SlashCommandSwitch.tsxindex 18c24583fa..68b4636365 100644--- a/client/src/components/Nav/SettingsTabs/Commands/SlashCommandSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Commands/SlashCommandSwitch.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/DangerButton.tsx b/client/src/components/Nav/SettingsTabs/DangerButton.tsxindex c2bdae6cbf..be29d10cc2 100644--- a/client/src/components/Nav/SettingsTabs/DangerButton.tsx+++ b/client/src/components/Nav/SettingsTabs/DangerButton.tsx@@ -1,12 +1,11 @@import { forwardRef } from 'react';import type { ForwardedRef } from 'react';import { CheckIcon } from 'lucide-react';-import { DialogButton } from '~/components/ui';-import { Spinner } from '~/components/svg';+import { Spinner, DialogButton } from '@librechat/client';+import HoverCardSettings from './HoverCardSettings';import type { TDangerButtonProps } from '~/common';import { useLocalize } from '~/hooks';import { cn } from '~/utils';-import HoverCardSettings from './HoverCardSettings';const DangerButton = (props: TDangerButtonProps, ref: ForwardedRef<HTMLButtonElement>) => {const {diff --git a/client/src/components/Nav/SettingsTabs/Data/ClearChats.tsx b/client/src/components/Nav/SettingsTabs/Data/ClearChats.tsxindex 11e53ba570..bd745dcee8 100644--- a/client/src/components/Nav/SettingsTabs/Data/ClearChats.tsx+++ b/client/src/components/Nav/SettingsTabs/Data/ClearChats.tsx@@ -1,9 +1,15 @@import React, { useState } from 'react';import { useClearConversationsMutation } from 'librechat-data-provider/react-query';-import { Label, Button, OGDialog, OGDialogTrigger, Spinner } from '~/components';-import { useLocalize, useNewConvo } from '~/hooks';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';+import {+ OGDialogTemplate,+ Label,+ Button,+ OGDialog,+ OGDialogTrigger,+ Spinner,+} from '@librechat/client';import { clearAllConversationStorage } from '~/utils';+import { useLocalize, useNewConvo } from '~/hooks';export const ClearChats = () => {const localize = useLocalize();diff --git a/client/src/components/Nav/SettingsTabs/Data/Data.tsx b/client/src/components/Nav/SettingsTabs/Data/Data.tsxindex f2ee695504..8b35691613 100644--- a/client/src/components/Nav/SettingsTabs/Data/Data.tsx+++ b/client/src/components/Nav/SettingsTabs/Data/Data.tsx@@ -1,8 +1,8 @@import React, { useState, useRef } from 'react';+import { useOnClickOutside } from '@librechat/client';import ImportConversations from './ImportConversations';import { RevokeAllKeys } from './RevokeAllKeys';import { DeleteCache } from './DeleteCache';-import { useOnClickOutside } from '~/hooks';import { ClearChats } from './ClearChats';import SharedLinks from './SharedLinks';diff --git a/client/src/components/Nav/SettingsTabs/Data/DeleteCache.tsx b/client/src/components/Nav/SettingsTabs/Data/DeleteCache.tsxindex a2d36da586..573a87e7a4 100644--- a/client/src/components/Nav/SettingsTabs/Data/DeleteCache.tsx+++ b/client/src/components/Nav/SettingsTabs/Data/DeleteCache.tsx@@ -1,7 +1,14 @@import React, { useState, useCallback, useRef, useEffect } from 'react';-import { Label, Button, OGDialog, OGDialogTrigger, Spinner } from '~/components';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';-import { useOnClickOutside, useLocalize } from '~/hooks';+import {+ OGDialogTemplate,+ Label,+ Button,+ OGDialog,+ OGDialogTrigger,+ Spinner,+ useOnClickOutside,+} from '@librechat/client';+import { useLocalize } from '~/hooks';export const DeleteCache = ({ disabled = false }: { disabled?: boolean }) => {const localize = useLocalize();diff --git a/client/src/components/Nav/SettingsTabs/Data/ImportConversations.tsx b/client/src/components/Nav/SettingsTabs/Data/ImportConversations.tsxindex e3bafd9152..7837a052c0 100644--- a/client/src/components/Nav/SettingsTabs/Data/ImportConversations.tsx+++ b/client/src/components/Nav/SettingsTabs/Data/ImportConversations.tsx@@ -1,9 +1,8 @@import { useState, useRef } from 'react';import { Import } from 'lucide-react';+import { Spinner, useToastContext } from '@librechat/client';import type { TError } from 'librechat-data-provider';import { useUploadConversationsMutation } from '~/data-provider';-import { useToastContext } from '~/Providers';-import { Spinner } from '~/components/svg';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Nav/SettingsTabs/Data/RevokeAllKeys.tsx b/client/src/components/Nav/SettingsTabs/Data/RevokeAllKeys.tsxindex 1c03bc58f5..2b98e94c04 100644--- a/client/src/components/Nav/SettingsTabs/Data/RevokeAllKeys.tsx+++ b/client/src/components/Nav/SettingsTabs/Data/RevokeAllKeys.tsx@@ -1,6 +1,6 @@import React from 'react';+import { Label } from '@librechat/client';import { RevokeKeysButton } from './RevokeKeysButton';-import { Label } from '~/components/ui';import { useLocalize } from '~/hooks';export const RevokeAllKeys = () => {diff --git a/client/src/components/Nav/SettingsTabs/Data/RevokeKeysButton.tsx b/client/src/components/Nav/SettingsTabs/Data/RevokeKeysButton.tsxindex 19f706eded..51cf386a5d 100644--- a/client/src/components/Nav/SettingsTabs/Data/RevokeKeysButton.tsx+++ b/client/src/components/Nav/SettingsTabs/Data/RevokeKeysButton.tsx@@ -1,10 +1,16 @@+import React, { useState } from 'react';import {useRevokeAllUserKeysMutation,useRevokeUserKeyMutation,} from 'librechat-data-provider/react-query';-import React, { useState } from 'react';-import { Button, Label, OGDialog, OGDialogTrigger, Spinner } from '~/components';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';+import {+ OGDialogTemplate,+ Button,+ Label,+ OGDialog,+ OGDialogTrigger,+ Spinner,+} from '@librechat/client';import { useLocalize } from '~/hooks';export const RevokeKeysButton = ({diff --git a/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx b/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsxindex 218606f8b7..5f24a5770c 100644--- a/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx+++ b/client/src/components/Nav/SettingsTabs/Data/SharedLinks.tsx@@ -1,26 +1,29 @@import { useCallback, useState, useMemo, useEffect } from 'react';-import { Link } from 'react-router-dom';import debounce from 'lodash/debounce';+import { useRecoilValue } from 'recoil';+import { Link } from 'react-router-dom';import { TrashIcon, MessageSquare, ArrowUpDown, ArrowUp, ArrowDown } from 'lucide-react';import type { SharedLinkItem, SharedLinksListParams } from 'librechat-data-provider';import {OGDialog,+ useToastContext,+ OGDialogTemplate,OGDialogTrigger,OGDialogContent,+ useMediaQuery,OGDialogHeader,OGDialogTitle,TooltipAnchor,+ DataTable,+ Spinner,Button,Label,- Spinner,-} from '~/components';+} from '@librechat/client';import { useDeleteSharedLinkMutation, useSharedLinksQuery } from '~/data-provider';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';-import { useLocalize, useMediaQuery } from '~/hooks';-import DataTable from '~/components/ui/DataTable';+import { useLocalize } from '~/hooks';import { NotificationSeverity } from '~/common';-import { useToastContext } from '~/Providers';import { formatDate } from '~/utils';+import store from '~/store';const PAGE_SIZE = 25;@@ -36,6 +39,7 @@ export default function SharedLinks() {const localize = useLocalize();const { showToast } = useToastContext();const isSmallScreen = useMediaQuery('(max-width: 768px)');+ const isSearchEnabled = useRecoilValue(store.search);const [queryParams, setQueryParams] = useState<SharedLinksListParams>(DEFAULT_PARAMS);const [deleteRow, setDeleteRow] = useState<SharedLinkItem | null>(null);const [isDeleteOpen, setIsDeleteOpen] = useState(false);@@ -308,6 +312,7 @@ export default function SharedLinks() {onFilterChange={debouncedFilterChange}filterValue={queryParams.search}isLoading={isLoading}+ enableSearch={isSearchEnabled}/></OGDialogContent></OGDialog>diff --git a/client/src/components/Nav/SettingsTabs/General/ArchivedChats.tsx b/client/src/components/Nav/SettingsTabs/General/ArchivedChats.tsxindex 3904d3d554..2e6f6df07d 100644--- a/client/src/components/Nav/SettingsTabs/General/ArchivedChats.tsx+++ b/client/src/components/Nav/SettingsTabs/General/ArchivedChats.tsx@@ -1,6 +1,5 @@import { useState } from 'react';-import { OGDialog, OGDialogTrigger, Button } from '~/components';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';+import { OGDialogTemplate, OGDialog, OGDialogTrigger, Button } from '@librechat/client';import ArchivedChatsTable from './ArchivedChatsTable';import { useLocalize } from '~/hooks';diff --git a/client/src/components/Nav/SettingsTabs/General/ArchivedChatsTable.tsx b/client/src/components/Nav/SettingsTabs/General/ArchivedChatsTable.tsxindex 9071593b9a..ad79aed383 100644--- a/client/src/components/Nav/SettingsTabs/General/ArchivedChatsTable.tsx+++ b/client/src/components/Nav/SettingsTabs/General/ArchivedChatsTable.tsx@@ -1,7 +1,7 @@import { useState, useCallback, useMemo, useEffect } from 'react';import debounce from 'lodash/debounce';+import { useRecoilValue } from 'recoil';import { TrashIcon, ArchiveRestore, ArrowUp, ArrowDown, ArrowUpDown } from 'lucide-react';-import type { ConversationListParams, TConversation } from 'librechat-data-provider';import {Button,OGDialog,@@ -11,18 +11,21 @@ import {Label,TooltipAnchor,Spinner,-} from '~/components';+ DataTable,+ useToastContext,+ useMediaQuery,+} from '@librechat/client';+import type { ConversationListParams, TConversation } from 'librechat-data-provider';import {useArchiveConvoMutation,useConversationsInfiniteQuery,useDeleteConversationMutation,} from '~/data-provider';-import { useLocalize, useMediaQuery } from '~/hooks';import { MinimalIcon } from '~/components/Endpoints';-import DataTable from '~/components/ui/DataTable';import { NotificationSeverity } from '~/common';-import { useToastContext } from '~/Providers';+import { useLocalize } from '~/hooks';import { formatDate } from '~/utils';+import store from '~/store';const DEFAULT_PARAMS: ConversationListParams = {isArchived: true,@@ -39,7 +42,7 @@ export default function ArchivedChatsTable({const localize = useLocalize();const isSmallScreen = useMediaQuery('(max-width: 768px)');const { showToast } = useToastContext();-+ const isSearchEnabled = useRecoilValue(store.search);const [isDeleteOpen, setIsDeleteOpen] = useState(false);const [queryParams, setQueryParams] = useState<ConversationListParams>(DEFAULT_PARAMS);const [deleteConversation, setDeleteConversation] = useState<TConversation | null>(null);@@ -272,6 +275,7 @@ export default function ArchivedChatsTable({isFetchingNextPage={isFetchingNextPage}isLoading={isLoading}showCheckboxes={false}+ enableSearch={isSearchEnabled}/><OGDialog open={isDeleteOpen} onOpenChange={onOpenChange}>diff --git a/client/src/components/Nav/SettingsTabs/General/General.tsx b/client/src/components/Nav/SettingsTabs/General/General.tsxindex 4b87e74765..886867980a 100644--- a/client/src/components/Nav/SettingsTabs/General/General.tsx+++ b/client/src/components/Nav/SettingsTabs/General/General.tsx@@ -1,10 +1,10 @@import React, { useContext, useCallback } from 'react';import Cookies from 'js-cookie';import { useRecoilState } from 'recoil';-import { ThemeContext, useLocalize } from '~/hooks';+import { Dropdown, ThemeContext } from '@librechat/client';import ArchivedChats from './ArchivedChats';import ToggleSwitch from '../ToggleSwitch';-import { Dropdown } from '~/components';+import { useLocalize } from '~/hooks';import store from '~/store';const toggleSwitchConfigs = [diff --git a/client/src/components/Nav/SettingsTabs/HoverCardSettings.tsx b/client/src/components/Nav/SettingsTabs/HoverCardSettings.tsxindex 27d4ba7db5..04dcada200 100644--- a/client/src/components/Nav/SettingsTabs/HoverCardSettings.tsx+++ b/client/src/components/Nav/SettingsTabs/HoverCardSettings.tsx@@ -1,6 +1,11 @@import React from 'react';-import { HoverCard, HoverCardTrigger, HoverCardPortal, HoverCardContent } from '~/components/ui';-import { CircleHelpIcon } from '~/components/svg';+import {+ CircleHelpIcon,+ HoverCard,+ HoverCardTrigger,+ HoverCardPortal,+ HoverCardContent,+} from '@librechat/client';import { useLocalize } from '~/hooks';const HoverCardSettings = ({ side, text }) => {diff --git a/client/src/components/Nav/SettingsTabs/Personalization.tsx b/client/src/components/Nav/SettingsTabs/Personalization.tsxindex 929646a440..50ce452783 100644--- a/client/src/components/Nav/SettingsTabs/Personalization.tsx+++ b/client/src/components/Nav/SettingsTabs/Personalization.tsx@@ -1,7 +1,6 @@import { useState, useEffect } from 'react';+import { Switch, useToastContext } from '@librechat/client';import { useGetUserQuery, useUpdateMemoryPreferencesMutation } from '~/data-provider';-import { useToastContext } from '~/Providers';-import { Switch } from '~/components/ui';import { useLocalize } from '~/hooks';interface PersonalizationProps {diff --git a/client/src/components/Nav/SettingsTabs/Speech/ConversationModeSwitch.tsx b/client/src/components/Nav/SettingsTabs/Speech/ConversationModeSwitch.tsxindex 3fb662e3c9..5745943e57 100644--- a/client/src/components/Nav/SettingsTabs/Speech/ConversationModeSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/ConversationModeSwitch.tsx@@ -1,5 +1,5 @@+import { Switch } from '@librechat/client';import { useRecoilState, useRecoilValue } from 'recoil';-import { Switch } from '~/components/ui';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/STT/AutoSendTextSelector.tsx b/client/src/components/Nav/SettingsTabs/Speech/STT/AutoSendTextSelector.tsxindex 89a910f090..5c5e8e3da3 100644--- a/client/src/components/Nav/SettingsTabs/Speech/STT/AutoSendTextSelector.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/STT/AutoSendTextSelector.tsx@@ -1,7 +1,7 @@import React from 'react';import { useRecoilState, useRecoilValue } from 'recoil';+import { Slider, InputNumber } from '@librechat/client';import { cn, defaultTextProps, optionText } from '~/utils/';-import { Slider, InputNumber } from '~/components/ui';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/STT/AutoTranscribeAudioSwitch.tsx b/client/src/components/Nav/SettingsTabs/Speech/STT/AutoTranscribeAudioSwitch.tsxindex a2f3bebc9e..1304f35c63 100644--- a/client/src/components/Nav/SettingsTabs/Speech/STT/AutoTranscribeAudioSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/STT/AutoTranscribeAudioSwitch.tsx@@ -1,5 +1,5 @@+import { Switch } from '@librechat/client';import { useRecoilState, useRecoilValue } from 'recoil';-import { Switch } from '~/components/ui';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/STT/DecibelSelector.tsx b/client/src/components/Nav/SettingsTabs/Speech/STT/DecibelSelector.tsxindex b7fa279ece..f23de198c6 100755--- a/client/src/components/Nav/SettingsTabs/Speech/STT/DecibelSelector.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/STT/DecibelSelector.tsx@@ -1,9 +1,9 @@import React from 'react';+import { Slider, InputNumber } from '@librechat/client';import { useRecoilState, useRecoilValue } from 'recoil';-import { Slider, InputNumber } from '~/components/ui';+import { cn, defaultTextProps, optionText } from '~/utils';import { useLocalize } from '~/hooks';import store from '~/store';-import { cn, defaultTextProps, optionText } from '~/utils/';export default function DecibelSelector() {const localize = useLocalize();@@ -15,7 +15,9 @@ export default function DecibelSelector() {<div className="flex items-center justify-between"><div>{localize('com_nav_db_sensitivity')}</div><div className="w-2" />- <small className="opacity-40">({localize('com_endpoint_default_with_num', { 0: '-45' })})</small>+ <small className="opacity-40">+ ({localize('com_endpoint_default_with_num', { 0: '-45' })})+ </small></div><div className="flex items-center justify-between"><Sliderdiff --git a/client/src/components/Nav/SettingsTabs/Speech/STT/EngineSTTDropdown.tsx b/client/src/components/Nav/SettingsTabs/Speech/STT/EngineSTTDropdown.tsxindex 9f6c7bf4c7..f6bc4b91e7 100644--- a/client/src/components/Nav/SettingsTabs/Speech/STT/EngineSTTDropdown.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/STT/EngineSTTDropdown.tsx@@ -1,6 +1,6 @@import React from 'react';import { useRecoilState } from 'recoil';-import { Dropdown } from '~/components/ui';+import { Dropdown } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/STT/LanguageSTTDropdown.tsx b/client/src/components/Nav/SettingsTabs/Speech/STT/LanguageSTTDropdown.tsxindex 17e2cf04c3..c3bb37ceef 100644--- a/client/src/components/Nav/SettingsTabs/Speech/STT/LanguageSTTDropdown.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/STT/LanguageSTTDropdown.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Dropdown } from '~/components/ui';+import { Dropdown } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/STT/SpeechToTextSwitch.tsx b/client/src/components/Nav/SettingsTabs/Speech/STT/SpeechToTextSwitch.tsxindex 6ea5710351..99c81f60e5 100644--- a/client/src/components/Nav/SettingsTabs/Speech/STT/SpeechToTextSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/STT/SpeechToTextSwitch.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/Speech.tsx b/client/src/components/Nav/SettingsTabs/Speech/Speech.tsxindex 5fa967284b..acd87fa233 100644--- a/client/src/components/Nav/SettingsTabs/Speech/Speech.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/Speech.tsx@@ -1,7 +1,8 @@+import React, { useState, useRef, useEffect, useCallback } from 'react';import { useRecoilState } from 'recoil';import * as Tabs from '@radix-ui/react-tabs';import { Lightbulb, Cog } from 'lucide-react';-import React, { useState, useRef, useEffect, useCallback } from 'react';+import { useOnClickOutside, useMediaQuery } from '@librechat/client';import { useGetCustomConfigSpeechQuery } from 'librechat-data-provider/react-query';import {CloudBrowserVoicesSwitch,@@ -20,8 +21,8 @@ import {EngineSTTDropdown,DecibelSelector,} from './STT';-import { useOnClickOutside, useMediaQuery, useLocalize } from '~/hooks';import ConversationModeSwitch from './ConversationModeSwitch';+import { useLocalize } from '~/hooks';import { cn, logger } from '~/utils';import store from '~/store';@@ -145,8 +146,6 @@ function Speech() {}}, [engineTTS, setEngineTTS]);- logger.log({ sttExternal, ttsExternal });-const contentRef = useRef(null);useOnClickOutside(contentRef, () => confirmClear && setConfirmClear(false), []);diff --git a/client/src/components/Nav/SettingsTabs/Speech/TTS/AutomaticPlaybackSwitch.tsx b/client/src/components/Nav/SettingsTabs/Speech/TTS/AutomaticPlaybackSwitch.tsxindex 5de5e053c1..67537a8d65 100644--- a/client/src/components/Nav/SettingsTabs/Speech/TTS/AutomaticPlaybackSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/TTS/AutomaticPlaybackSwitch.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/TTS/CacheTTSSwitch.tsx b/client/src/components/Nav/SettingsTabs/Speech/TTS/CacheTTSSwitch.tsxindex b804581c28..b3268e1a4b 100644--- a/client/src/components/Nav/SettingsTabs/Speech/TTS/CacheTTSSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/TTS/CacheTTSSwitch.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/TTS/CloudBrowserVoicesSwitch.tsx b/client/src/components/Nav/SettingsTabs/Speech/TTS/CloudBrowserVoicesSwitch.tsxindex c0667018a2..6a10806baa 100644--- a/client/src/components/Nav/SettingsTabs/Speech/TTS/CloudBrowserVoicesSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/TTS/CloudBrowserVoicesSwitch.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/TTS/EngineTTSDropdown.tsx b/client/src/components/Nav/SettingsTabs/Speech/TTS/EngineTTSDropdown.tsxindex e2f758ec25..95d45671b3 100644--- a/client/src/components/Nav/SettingsTabs/Speech/TTS/EngineTTSDropdown.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/TTS/EngineTTSDropdown.tsx@@ -1,6 +1,6 @@import React from 'react';import { useRecoilState } from 'recoil';-import { Dropdown } from '~/components/ui';+import { Dropdown } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/TTS/PlaybackRate.tsx b/client/src/components/Nav/SettingsTabs/Speech/TTS/PlaybackRate.tsxindex 3865d0109d..571055a377 100755--- a/client/src/components/Nav/SettingsTabs/Speech/TTS/PlaybackRate.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/TTS/PlaybackRate.tsx@@ -1,9 +1,9 @@import React from 'react';import { useRecoilState, useRecoilValue } from 'recoil';-import { Slider, InputNumber } from '~/components/ui';+import { Slider, InputNumber } from '@librechat/client';+import { cn, defaultTextProps, optionText } from '~/utils';import { useLocalize } from '~/hooks';import store from '~/store';-import { cn, defaultTextProps, optionText } from '~/utils/';export default function DecibelSelector() {const localize = useLocalize();@@ -15,7 +15,9 @@ export default function DecibelSelector() {<div className="flex items-center justify-between"><div>{localize('com_nav_playback_rate')}</div><div className="w-2" />- <small className="opacity-40">({localize('com_endpoint_default_with_num', { 0: '1' })})</small>+ <small className="opacity-40">+ ({localize('com_endpoint_default_with_num', { 0: '1' })})+ </small></div><div className="flex items-center justify-between"><Sliderdiff --git a/client/src/components/Nav/SettingsTabs/Speech/TTS/TextToSpeechSwitch.tsx b/client/src/components/Nav/SettingsTabs/Speech/TTS/TextToSpeechSwitch.tsxindex 241d1aa768..b9a4ad1665 100644--- a/client/src/components/Nav/SettingsTabs/Speech/TTS/TextToSpeechSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/TTS/TextToSpeechSwitch.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import store from '~/store';diff --git a/client/src/components/Nav/SettingsTabs/Speech/TTS/VoiceDropdown.tsx b/client/src/components/Nav/SettingsTabs/Speech/TTS/VoiceDropdown.tsxindex 1e4dd2ecfe..259400fb77 100644--- a/client/src/components/Nav/SettingsTabs/Speech/TTS/VoiceDropdown.tsx+++ b/client/src/components/Nav/SettingsTabs/Speech/TTS/VoiceDropdown.tsx@@ -1,7 +1,7 @@import { useRecoilValue } from 'recoil';import { BrowserVoiceDropdown, ExternalVoiceDropdown } from '~/components/Audio/Voices';-import store from '~/store';import { TTSEndpoints } from '~/common';+import store from '~/store';const voiceDropdownComponentsMap = {[TTSEndpoints.browser]: BrowserVoiceDropdown,diff --git a/client/src/components/Nav/SettingsTabs/ToggleSwitch.tsx b/client/src/components/Nav/SettingsTabs/ToggleSwitch.tsxindex 4f6252f157..23a14d81b4 100644--- a/client/src/components/Nav/SettingsTabs/ToggleSwitch.tsx+++ b/client/src/components/Nav/SettingsTabs/ToggleSwitch.tsx@@ -1,8 +1,7 @@-import { useRecoilState } from 'recoil';+import { Switch } from '@librechat/client';+import { RecoilState, useRecoilState } from 'recoil';import HoverCardSettings from './HoverCardSettings';-import useLocalize from '~/hooks/useLocalize';-import { Switch } from '~/components/ui';-import { RecoilState } from 'recoil';+import { useLocalize } from '~/hooks';interface ToggleSwitchProps {stateAtom: RecoilState<boolean>;diff --git a/client/src/components/Plugins/Store/PluginAuthForm.tsx b/client/src/components/Plugins/Store/PluginAuthForm.tsxindex 2275bbe96f..f7a214e88b 100644--- a/client/src/components/Plugins/Store/PluginAuthForm.tsx+++ b/client/src/components/Plugins/Store/PluginAuthForm.tsx@@ -1,7 +1,7 @@import { Save } from 'lucide-react';import { useForm } from 'react-hook-form';+import { HoverCard, HoverCardTrigger } from '@librechat/client';import { TPlugin, TPluginAuthConfig, TPluginAction } from 'librechat-data-provider';-import { HoverCard, HoverCardTrigger } from '~/components/ui';import PluginTooltip from './PluginTooltip';import { useLocalize } from '~/hooks';diff --git a/client/src/components/Plugins/Store/PluginTooltip.tsx b/client/src/components/Plugins/Store/PluginTooltip.tsxindex 0a7df905b2..2f60d1e11f 100644--- a/client/src/components/Plugins/Store/PluginTooltip.tsx+++ b/client/src/components/Plugins/Store/PluginTooltip.tsx@@ -1,4 +1,4 @@-import { HoverCardPortal, HoverCardContent } from '~/components/ui';+import { HoverCardPortal, HoverCardContent } from '@librechat/client';import './styles.module.css';type TPluginTooltipProps = {diff --git a/client/src/components/Prompts/AdminSettings.tsx b/client/src/components/Prompts/AdminSettings.tsxindex c281cc6bf8..98d2ca8465 100644--- a/client/src/components/Prompts/AdminSettings.tsx+++ b/client/src/components/Prompts/AdminSettings.tsx@@ -1,10 +1,9 @@+import { useMemo, useEffect, useState } from 'react';import * as Ariakit from '@ariakit/react';import { ExternalLink } from 'lucide-react';-import { useMemo, useEffect, useState } from 'react';import { ShieldEllipsis } from 'lucide-react';import { useForm, Controller } from 'react-hook-form';import { Permissions, SystemRoles, roleDefaults, PermissionTypes } from 'librechat-data-provider';-import type { Control, UseFormSetValue, UseFormGetValues } from 'react-hook-form';import {OGDialog,OGDialogTitle,@@ -13,11 +12,12 @@ import {Button,Switch,DropdownPopup,-} from '~/components/ui';+ OGDialogTemplate,+ useToastContext,+} from '@librechat/client';+import type { Control, UseFormSetValue, UseFormGetValues } from 'react-hook-form';import { useUpdatePromptPermissionsMutation } from '~/data-provider';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';import { useLocalize, useAuthContext } from '~/hooks';-import { useToastContext } from '~/Providers';type FormValues = Record<Permissions, boolean>;diff --git a/client/src/components/Prompts/BackToChat.tsx b/client/src/components/Prompts/BackToChat.tsxindex ea233b72e2..db107c08be 100644--- a/client/src/components/Prompts/BackToChat.tsx+++ b/client/src/components/Prompts/BackToChat.tsx@@ -1,6 +1,6 @@-import { useNavigate } from 'react-router-dom';import { ArrowLeft } from 'lucide-react';-import { buttonVariants } from '~/components/ui';+import { useNavigate } from 'react-router-dom';+import { buttonVariants } from '@librechat/client';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Prompts/Command.tsx b/client/src/components/Prompts/Command.tsxindex e670410ae8..e2b8e7af82 100644--- a/client/src/components/Prompts/Command.tsx+++ b/client/src/components/Prompts/Command.tsx@@ -1,7 +1,7 @@+import { Input } from '@librechat/client';import { SquareSlash } from 'lucide-react';import { Constants } from 'librechat-data-provider';import { useState, useEffect } from 'react';-import { Input } from '~/components/ui';import { useLocalize } from '~/hooks';const Command = ({diff --git a/client/src/components/Prompts/DeleteVersion.tsx b/client/src/components/Prompts/DeleteVersion.tsxindex ad2852111a..541549145f 100644--- a/client/src/components/Prompts/DeleteVersion.tsx+++ b/client/src/components/Prompts/DeleteVersion.tsx@@ -1,6 +1,5 @@import { Trash2 } from 'lucide-react';-import { Button, OGDialog, OGDialogTrigger, Label } from '~/components/ui';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';+import { Button, OGDialog, OGDialogTrigger, Label, OGDialogTemplate } from '@librechat/client';import { useLocalize } from '~/hooks';const DeleteVersion = ({diff --git a/client/src/components/Prompts/Description.tsx b/client/src/components/Prompts/Description.tsxindex 70c1086940..d28a44259d 100644--- a/client/src/components/Prompts/Description.tsx+++ b/client/src/components/Prompts/Description.tsx@@ -1,5 +1,5 @@import { useState, useEffect } from 'react';-import { Input } from '~/components/ui';+import { Input } from '@librechat/client';import { useLocalize } from '~/hooks';import { Info } from 'lucide-react';diff --git a/client/src/components/Prompts/Groups/AlwaysMakeProd.tsx b/client/src/components/Prompts/Groups/AlwaysMakeProd.tsxindex 6a3132775e..17c82c648d 100644--- a/client/src/components/Prompts/Groups/AlwaysMakeProd.tsx+++ b/client/src/components/Prompts/Groups/AlwaysMakeProd.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import { cn } from '~/utils';import store from '~/store';diff --git a/client/src/components/Prompts/Groups/AutoSendPrompt.tsx b/client/src/components/Prompts/Groups/AutoSendPrompt.tsxindex ce4ae1e051..430506a748 100644--- a/client/src/components/Prompts/Groups/AutoSendPrompt.tsx+++ b/client/src/components/Prompts/Groups/AutoSendPrompt.tsx@@ -1,5 +1,5 @@import { useRecoilState } from 'recoil';-import { Switch } from '~/components/ui';+import { Switch } from '@librechat/client';import { useLocalize } from '~/hooks';import { cn } from '~/utils';import store from '~/store';diff --git a/client/src/components/Prompts/Groups/CategorySelector.tsx b/client/src/components/Prompts/Groups/CategorySelector.tsxindex 3c57778924..3ceb7242b7 100644--- a/client/src/components/Prompts/Groups/CategorySelector.tsx+++ b/client/src/components/Prompts/Groups/CategorySelector.tsx@@ -1,9 +1,9 @@import React, { useMemo } from 'react';+import { Dropdown } from '@librechat/client';import { useTranslation } from 'react-i18next';-import type { ReactNode } from 'react';import { useFormContext, Controller } from 'react-hook-form';import { LocalStorageKeys } from 'librechat-data-provider';-import { Dropdown } from '~/components/ui';+import type { ReactNode } from 'react';import { useCategories } from '~/hooks';interface CategorySelectorProps {diff --git a/client/src/components/Prompts/Groups/ChatGroupItem.tsx b/client/src/components/Prompts/Groups/ChatGroupItem.tsxindex f8818b9f68..818b018cfe 100644--- a/client/src/components/Prompts/Groups/ChatGroupItem.tsx+++ b/client/src/components/Prompts/Groups/ChatGroupItem.tsx@@ -1,13 +1,13 @@import { useState, useMemo, memo } from 'react';import { Menu as MenuIcon, Edit as EditIcon, EarthIcon, TextSearch } from 'lucide-react';-import type { TPromptGroup } from 'librechat-data-provider';import {DropdownMenu,DropdownMenuItem,DropdownMenuGroup,DropdownMenuContent,DropdownMenuTrigger,-} from '~/components/ui';+} from '@librechat/client';+import type { TPromptGroup } from 'librechat-data-provider';import { useLocalize, useSubmitMessage, useCustomLink, useAuthContext } from '~/hooks';import VariableDialog from '~/components/Prompts/Groups/VariableDialog';import PreviewPrompt from '~/components/Prompts/PreviewPrompt';diff --git a/client/src/components/Prompts/Groups/CreatePromptForm.tsx b/client/src/components/Prompts/Groups/CreatePromptForm.tsxindex 02642745fd..0cb04c3779 100644--- a/client/src/components/Prompts/Groups/CreatePromptForm.tsx+++ b/client/src/components/Prompts/Groups/CreatePromptForm.tsx@@ -1,13 +1,13 @@import { useEffect } from 'react';import { useNavigate } from 'react-router-dom';+import { Button, TextareaAutosize, Input } from '@librechat/client';import { useForm, Controller, FormProvider } from 'react-hook-form';import { LocalStorageKeys, PermissionTypes, Permissions } from 'librechat-data-provider';import CategorySelector from '~/components/Prompts/Groups/CategorySelector';+import VariablesDropdown from '~/components/Prompts/VariablesDropdown';import PromptVariables from '~/components/Prompts/PromptVariables';-import { Button, TextareaAutosize, Input } from '~/components/ui';import Description from '~/components/Prompts/Description';import { useLocalize, useHasAccess } from '~/hooks';-import VariablesDropdown from '~/components/Prompts/VariablesDropdown';import Command from '~/components/Prompts/Command';import { useCreatePrompt } from '~/data-provider';import { cn } from '~/utils';diff --git a/client/src/components/Prompts/Groups/DashGroupItem.tsx b/client/src/components/Prompts/Groups/DashGroupItem.tsxindex 7fb46df047..0a849ec2c9 100644--- a/client/src/components/Prompts/Groups/DashGroupItem.tsx+++ b/client/src/components/Prompts/Groups/DashGroupItem.tsx@@ -2,13 +2,19 @@ import { memo, useState, useRef, useMemo, useCallback, KeyboardEvent } from 'reaimport { EarthIcon, Pen } from 'lucide-react';import { useNavigate, useParams } from 'react-router-dom';import { SystemRoles, type TPromptGroup } from 'librechat-data-provider';+import {+ Input,+ Label,+ Button,+ OGDialog,+ OGDialogTrigger,+ OGDialogTemplate,+ TrashIcon,+} from '@librechat/client';import { useDeletePromptGroup, useUpdatePromptGroup } from '~/data-provider';-import { Input, Label, Button, OGDialog, OGDialogTrigger } from '~/components/ui';import CategoryIcon from '~/components/Prompts/Groups/CategoryIcon';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';import { useLocalize, useAuthContext } from '~/hooks';-import { TrashIcon } from '~/components/svg';-import { cn } from '~/utils/';+import { cn } from '~/utils';interface DashGroupItemProps {group: TPromptGroup;diff --git a/client/src/components/Prompts/Groups/FilterPrompts.tsx b/client/src/components/Prompts/Groups/FilterPrompts.tsxindex 19d2cde1f9..47608eba9b 100644--- a/client/src/components/Prompts/Groups/FilterPrompts.tsx+++ b/client/src/components/Prompts/Groups/FilterPrompts.tsx@@ -1,10 +1,10 @@-import { ListFilter, User, Share2 } from 'lucide-react';import React, { useState, useCallback, useMemo, useEffect } from 'react';-import { useRecoilValue, useSetRecoilState } from 'recoil';+import { ListFilter, User, Share2 } from 'lucide-react';import { SystemCategories } from 'librechat-data-provider';-import { usePromptGroupsNav, useLocalize, useCategories } from '~/hooks';-import { Dropdown, AnimatedSearchInput } from '~/components/ui';+import { useRecoilValue, useSetRecoilState } from 'recoil';+import { Dropdown, AnimatedSearchInput } from '@librechat/client';import type { Option } from '~/common';+import { usePromptGroupsNav, useLocalize, useCategories } from '~/hooks';import { cn } from '~/utils';import store from '~/store';diff --git a/client/src/components/Prompts/Groups/GroupSidePanel.tsx b/client/src/components/Prompts/Groups/GroupSidePanel.tsxindex e359d13ea0..ae263dca54 100644--- a/client/src/components/Prompts/Groups/GroupSidePanel.tsx+++ b/client/src/components/Prompts/Groups/GroupSidePanel.tsx@@ -1,9 +1,10 @@import { useMemo } from 'react';import { useLocation } from 'react-router-dom';+import { useMediaQuery } from '@librechat/client';import PanelNavigation from '~/components/Prompts/Groups/PanelNavigation';import ManagePrompts from '~/components/Prompts/ManagePrompts';-import { useMediaQuery, usePromptGroupsNav } from '~/hooks';import List from '~/components/Prompts/Groups/List';+import { usePromptGroupsNav } from '~/hooks';import { cn } from '~/utils';export default function GroupSidePanel({diff --git a/client/src/components/Prompts/Groups/List.tsx b/client/src/components/Prompts/Groups/List.tsxindex 6a7feae40e..dca07b07b0 100644--- a/client/src/components/Prompts/Groups/List.tsx+++ b/client/src/components/Prompts/Groups/List.tsx@@ -1,12 +1,12 @@import { Plus } from 'lucide-react';import { useNavigate } from 'react-router-dom';+import { Button, Skeleton } from '@librechat/client';import { PermissionTypes, Permissions } from 'librechat-data-provider';import type { TPromptGroup, TStartupConfig } from 'librechat-data-provider';import DashGroupItem from '~/components/Prompts/Groups/DashGroupItem';import ChatGroupItem from '~/components/Prompts/Groups/ChatGroupItem';import { useGetStartupConfig } from '~/data-provider';import { useLocalize, useHasAccess } from '~/hooks';-import { Button, Skeleton } from '~/components/ui';export default function List({groups = [],diff --git a/client/src/components/Prompts/Groups/ListCard.tsx b/client/src/components/Prompts/Groups/ListCard.tsxindex 4de783caaa..61f64fef7c 100644--- a/client/src/components/Prompts/Groups/ListCard.tsx+++ b/client/src/components/Prompts/Groups/ListCard.tsx@@ -1,6 +1,6 @@import React from 'react';+import { Label } from '@librechat/client';import CategoryIcon from '~/components/Prompts/Groups/CategoryIcon';-import { Label } from '~/components/ui';export default function ListCard({category,@@ -26,8 +26,7 @@ export default function ListCard({<divonClick={onClick}onKeyDown={handleKeyDown}- className="relative my-2 flex w-full cursor-pointer flex-col gap-2 rounded-xl border border-border-light px-3 pb-4 pt-3 text-start- align-top text-[15px] shadow-sm transition-all duration-300 ease-in-out hover:bg-surface-tertiary hover:shadow-lg"+ className="relative my-2 flex w-full cursor-pointer flex-col gap-2 rounded-xl border border-border-light px-3 pb-4 pt-3 text-start align-top text-[15px] shadow-sm transition-all duration-300 ease-in-out hover:bg-surface-tertiary hover:shadow-lg"role="button"tabIndex={0}aria-labelledby={`card-title-${name}`}diff --git a/client/src/components/Prompts/Groups/NoPromptGroup.tsx b/client/src/components/Prompts/Groups/NoPromptGroup.tsxindex f71f309a37..4bfa446ea7 100644--- a/client/src/components/Prompts/Groups/NoPromptGroup.tsx+++ b/client/src/components/Prompts/Groups/NoPromptGroup.tsx@@ -1,5 +1,5 @@+import { Button } from '@librechat/client';import { useNavigate } from 'react-router-dom';-import { Button } from '~/components/ui';import { useLocalize } from '~/hooks';export default function NoPromptGroup() {diff --git a/client/src/components/Prompts/Groups/PanelNavigation.tsx b/client/src/components/Prompts/Groups/PanelNavigation.tsxindex 5600415d7e..851f404dd8 100644--- a/client/src/components/Prompts/Groups/PanelNavigation.tsx+++ b/client/src/components/Prompts/Groups/PanelNavigation.tsx@@ -1,5 +1,5 @@import { memo } from 'react';-import { Button, ThemeSelector } from '~/components/ui';+import { Button, ThemeSelector } from '@librechat/client';import { useLocalize } from '~/hooks';function PanelNavigation({diff --git a/client/src/components/Prompts/Groups/VariableDialog.tsx b/client/src/components/Prompts/Groups/VariableDialog.tsxindex 3ac0106e42..7286b00b63 100644--- a/client/src/components/Prompts/Groups/VariableDialog.tsx+++ b/client/src/components/Prompts/Groups/VariableDialog.tsx@@ -1,7 +1,7 @@import React, { useMemo } from 'react';import * as DialogPrimitive from '@radix-ui/react-dialog';import type { TPromptGroup } from 'librechat-data-provider';-import { OGDialog, OGDialogTitle, OGDialogContent } from '~/components/ui';+import { OGDialog, OGDialogTitle, OGDialogContent } from '@librechat/client';import { detectVariables } from '~/utils';import VariableForm from './VariableForm';diff --git a/client/src/components/Prompts/Groups/VariableForm.tsx b/client/src/components/Prompts/Groups/VariableForm.tsxindex 48ad704f87..d11bc041c6 100644--- a/client/src/components/Prompts/Groups/VariableForm.tsx+++ b/client/src/components/Prompts/Groups/VariableForm.tsx@@ -6,11 +6,11 @@ import rehypeKatex from 'rehype-katex';import ReactMarkdown from 'react-markdown';import rehypeHighlight from 'rehype-highlight';import { replaceSpecialVars } from 'librechat-data-provider';+import { TextareaAutosize, InputCombobox, Button } from '@librechat/client';import { useForm, useFieldArray, Controller, useWatch } from 'react-hook-form';import type { TPromptGroup } from 'librechat-data-provider';import { codeNoExecution } from '~/components/Chat/Messages/Content/MarkdownComponents';import { cn, wrapVariable, defaultTextProps, extractVariableInfo } from '~/utils';-import { TextareaAutosize, InputCombobox, Button } from '~/components/ui';import { useAuthContext, useLocalize, useSubmitMessage } from '~/hooks';import { PromptVariableGfm } from '../Markdown';diff --git a/client/src/components/Prompts/ManagePrompts.tsx b/client/src/components/Prompts/ManagePrompts.tsxindex a05e54cbcb..5dce645bb9 100644--- a/client/src/components/Prompts/ManagePrompts.tsx+++ b/client/src/components/Prompts/ManagePrompts.tsx@@ -1,7 +1,7 @@import { useCallback } from 'react';import { useSetRecoilState } from 'recoil';+import { Button } from '@librechat/client';import { useLocalize, useCustomLink } from '~/hooks';-import { Button } from '~/components/ui';import { cn } from '~/utils';import store from '~/store';diff --git a/client/src/components/Prompts/PreviewLabels.tsx b/client/src/components/Prompts/PreviewLabels.tsxindex 9dca0dd2d9..6baa1d186d 100644--- a/client/src/components/Prompts/PreviewLabels.tsx+++ b/client/src/components/Prompts/PreviewLabels.tsx@@ -1,8 +1,8 @@import { useState } from 'react';+import { Input } from '@librechat/client';import { Cross1Icon } from '@radix-ui/react-icons';import type { TPrompt } from 'librechat-data-provider';import { useUpdatePromptLabels } from '~/data-provider';-import { Input } from '~/components/ui';const PromptForm = ({ selectedPrompt }: { selectedPrompt?: TPrompt }) => {const [labelInput, setLabelInput] = useState<string>('');diff --git a/client/src/components/Prompts/PreviewPrompt.tsx b/client/src/components/Prompts/PreviewPrompt.tsxindex b36cf15993..b16443cb75 100644--- a/client/src/components/Prompts/PreviewPrompt.tsx+++ b/client/src/components/Prompts/PreviewPrompt.tsx@@ -1,5 +1,5 @@+import { OGDialogContent, OGDialog } from '@librechat/client';import type { TPromptGroup } from 'librechat-data-provider';-import { OGDialogContent, OGDialog } from '~/components/ui';import PromptDetails from './PromptDetails';const PreviewPrompt = ({diff --git a/client/src/components/Prompts/PromptDetails.tsx b/client/src/components/Prompts/PromptDetails.tsxindex 62e9d02e34..f759079d18 100644--- a/client/src/components/Prompts/PromptDetails.tsx+++ b/client/src/components/Prompts/PromptDetails.tsx@@ -4,6 +4,7 @@ import remarkGfm from 'remark-gfm';import rehypeKatex from 'rehype-katex';import remarkMath from 'remark-math';import supersub from 'remark-supersub';+import { Label } from '@librechat/client';import rehypeHighlight from 'rehype-highlight';import { replaceSpecialVars } from 'librechat-data-provider';import type { TPromptGroup } from 'librechat-data-provider';@@ -12,7 +13,6 @@ import { useLocalize, useAuthContext } from '~/hooks';import CategoryIcon from './Groups/CategoryIcon';import PromptVariables from './PromptVariables';import { PromptVariableGfm } from './Markdown';-import { Label } from '~/components/ui';import Description from './Description';import Command from './Command';diff --git a/client/src/components/Prompts/PromptEditor.tsx b/client/src/components/Prompts/PromptEditor.tsxindex 75584f8495..3d7af5ec01 100644--- a/client/src/components/Prompts/PromptEditor.tsx+++ b/client/src/components/Prompts/PromptEditor.tsx@@ -1,19 +1,18 @@import { useMemo, memo } from 'react';-import { useRecoilValue } from 'recoil';-import { EditIcon } from 'lucide-react';-import type { PluggableList } from 'unified';-import rehypeHighlight from 'rehype-highlight';-import { Controller, useFormContext, useFormState } from 'react-hook-form';import remarkGfm from 'remark-gfm';-import rehypeKatex from 'rehype-katex';import remarkMath from 'remark-math';+import rehypeKatex from 'rehype-katex';import supersub from 'remark-supersub';+import { useRecoilValue } from 'recoil';+import { EditIcon } from 'lucide-react';import ReactMarkdown from 'react-markdown';+import rehypeHighlight from 'rehype-highlight';+import { SaveIcon, CrossIcon, TextareaAutosize } from '@librechat/client';+import { Controller, useFormContext, useFormState } from 'react-hook-form';+import type { PluggableList } from 'unified';import { codeNoExecution } from '~/components/Chat/Messages/Content/MarkdownComponents';import AlwaysMakeProd from '~/components/Prompts/Groups/AlwaysMakeProd';-import { SaveIcon, CrossIcon } from '~/components/svg';import VariablesDropdown from './VariablesDropdown';-import { TextareaAutosize } from '~/components/ui';import { PromptVariableGfm } from './Markdown';import { PromptsEditorMode } from '~/common';import { cn, langSubset } from '~/utils';diff --git a/client/src/components/Prompts/PromptForm.tsx b/client/src/components/Prompts/PromptForm.tsxindex e66e539d2c..32277d5b6d 100644--- a/client/src/components/Prompts/PromptForm.tsx+++ b/client/src/components/Prompts/PromptForm.tsx@@ -1,11 +1,12 @@+import { useEffect, useState, useMemo, useCallback, useRef } from 'react';import debounce from 'lodash/debounce';import { useRecoilValue } from 'recoil';import { Menu, Rocket } from 'lucide-react';import { useForm, FormProvider } from 'react-hook-form';import { useParams, useOutletContext } from 'react-router-dom';-import { useEffect, useState, useMemo, useCallback, useRef } from 'react';-import type { TCreatePrompt } from 'librechat-data-provider';+import { Button, Skeleton, useToastContext } from '@librechat/client';import { SystemRoles, PermissionTypes, Permissions } from 'librechat-data-provider';+import type { TCreatePrompt } from 'librechat-data-provider';import {useCreatePrompt,useGetPrompts,@@ -17,10 +18,8 @@ import {import { useAuthContext, usePromptGroupsNav, useHasAccess, useLocalize } from '~/hooks';import CategorySelector from './Groups/CategorySelector';import NoPromptGroup from './Groups/NoPromptGroup';-import { Button, Skeleton } from '~/components/ui';import PromptVariables from './PromptVariables';import { cn, findPromptGroup } from '~/utils';-import { useToastContext } from '~/Providers';import PromptVersions from './PromptVersions';import { PromptsEditorMode } from '~/common';import DeleteConfirm from './DeleteVersion';@@ -287,18 +286,18 @@ const PromptForm = () => {{editorMode === PromptsEditorMode.ADVANCED &&(isLoadingPrompts? Array.from({ length: 6 }).map((_, index: number) => (- <div key={index} className="my-2">- <Skeleton className="h-[72px] w-full" />- </div>- ))+ <div key={index} className="my-2">+ <Skeleton className="h-[72px] w-full" />+ </div>+ )): prompts.length > 0 && (- <PromptVersions- group={group}- prompts={prompts}- selectionIndex={selectionIndex}- setSelectionIndex={setSelectionIndex}- />- ))}+ <PromptVersions+ group={group}+ prompts={prompts}+ selectionIndex={selectionIndex}+ setSelectionIndex={setSelectionIndex}+ />+ ))}</div>);diff --git a/client/src/components/Prompts/PromptName.tsx b/client/src/components/Prompts/PromptName.tsxindex 3066d629e6..cfb18ec973 100644--- a/client/src/components/Prompts/PromptName.tsx+++ b/client/src/components/Prompts/PromptName.tsx@@ -1,5 +1,5 @@import React, { useEffect, useState, useRef } from 'react';-import { Button, Label, Input, EditIcon, SaveIcon } from '~/components';+import { Button, Label, Input, EditIcon, SaveIcon } from '@librechat/client';type Props = {name?: string;diff --git a/client/src/components/Prompts/PromptVariables.tsx b/client/src/components/Prompts/PromptVariables.tsxindex 783b56cba3..c08ae8cd87 100644--- a/client/src/components/Prompts/PromptVariables.tsx+++ b/client/src/components/Prompts/PromptVariables.tsx@@ -1,10 +1,10 @@import React, { useMemo } from 'react';import { Variable } from 'lucide-react';import ReactMarkdown from 'react-markdown';+import { Separator } from '@librechat/client';import { specialVariables } from 'librechat-data-provider';import { cn, extractUniqueVariables } from '~/utils';import { CodeVariableGfm } from './Markdown';-import { Separator } from '~/components/ui';import { useLocalize } from '~/hooks';const specialVariableClasses =diff --git a/client/src/components/Prompts/PromptVersions.tsx b/client/src/components/Prompts/PromptVersions.tsxindex b221087de4..cce643edcd 100644--- a/client/src/components/Prompts/PromptVersions.tsx+++ b/client/src/components/Prompts/PromptVersions.tsx@@ -1,8 +1,8 @@import React from 'react';import { format } from 'date-fns';import { Layers3, Crown, Zap } from 'lucide-react';+import { Tag, TooltipAnchor, Label } from '@librechat/client';import type { TPrompt, TPromptGroup } from 'librechat-data-provider';-import { Tag, TooltipAnchor, Label } from '~/components/ui';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/Prompts/SharePrompt.tsx b/client/src/components/Prompts/SharePrompt.tsxindex 2aa9f23b70..8127afe282 100644--- a/client/src/components/Prompts/SharePrompt.tsx+++ b/client/src/components/Prompts/SharePrompt.tsx@@ -2,11 +2,6 @@ import React, { useEffect, useMemo } from 'react';import { Share2Icon } from 'lucide-react';import { useForm, Controller } from 'react-hook-form';import { Permissions } from 'librechat-data-provider';-import type {- TPromptGroup,- TStartupConfig,- TUpdatePromptGroupPayload,-} from 'librechat-data-provider';import {Button,Switch,@@ -15,9 +10,14 @@ import {OGDialogClose,OGDialogContent,OGDialogTrigger,-} from '~/components/ui';+ useToastContext,+} from '@librechat/client';+import type {+ TPromptGroup,+ TStartupConfig,+ TUpdatePromptGroupPayload,+} from 'librechat-data-provider';import { useUpdatePromptGroup, useGetStartupConfig } from '~/data-provider';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';type FormValues = {diff --git a/client/src/components/Prompts/SkeletonForm.tsx b/client/src/components/Prompts/SkeletonForm.tsxindex f97838c0d0..fbaf17f3a1 100644--- a/client/src/components/Prompts/SkeletonForm.tsx+++ b/client/src/components/Prompts/SkeletonForm.tsx@@ -1,4 +1,4 @@-import { Skeleton } from '~/components/ui';+import { Skeleton } from '@librechat/client';export default function SkeletonForm() {return (diff --git a/client/src/components/Prompts/VariablesDropdown.tsx b/client/src/components/Prompts/VariablesDropdown.tsxindex e91ded0e6b..072fc91f5e 100644--- a/client/src/components/Prompts/VariablesDropdown.tsx+++ b/client/src/components/Prompts/VariablesDropdown.tsx@@ -2,9 +2,9 @@ import { useState, useId } from 'react';import { PlusCircle } from 'lucide-react';import * as Menu from '@ariakit/react/menu';import { useFormContext } from 'react-hook-form';+import { DropdownPopup } from '@librechat/client';import { specialVariables } from 'librechat-data-provider';import type { TSpecialVarLabel } from 'librechat-data-provider';-import { DropdownPopup } from '~/components';import { useLocalize } from '~/hooks';interface VariableOption {diff --git a/client/src/components/Share/MessageIcon.tsx b/client/src/components/Share/MessageIcon.tsxindex 0d198bf139..2e7d6989be 100644--- a/client/src/components/Share/MessageIcon.tsx+++ b/client/src/components/Share/MessageIcon.tsx@@ -1,10 +1,10 @@import { useMemo } from 'react';+import { UserIcon } from '@librechat/client';import type { TMessage, Assistant, Agent } from 'librechat-data-provider';import type { TMessageProps } from '~/common';import MessageEndpointIcon from '../Endpoints/MessageEndpointIcon';import ConvoIconURL from '~/components/Endpoints/ConvoIconURL';import { getIconEndpoint } from '~/utils';-import { UserIcon } from '../svg';export default function MessageIcon(props: Pick<TMessageProps, 'message' | 'conversation'> & {diff --git a/client/src/components/Share/ShareView.tsx b/client/src/components/Share/ShareView.tsxindex 8929e99b1b..2d1f52ac79 100644--- a/client/src/components/Share/ShareView.tsx+++ b/client/src/components/Share/ShareView.tsx@@ -1,10 +1,10 @@import { memo } from 'react';+import { Spinner } from '@librechat/client';import { useParams } from 'react-router-dom';import { useGetSharedMessages } from 'librechat-data-provider/react-query';import { useLocalize, useDocumentTitle } from '~/hooks';import { useGetStartupConfig } from '~/data-provider';import { ShareContext } from '~/Providers';-import { Spinner } from '~/components/svg';import MessagesView from './MessagesView';import { buildTree } from '~/utils';import Footer from '../Chat/Footer';diff --git a/client/src/components/SidePanel/Agents/ActionsInput.tsx b/client/src/components/SidePanel/Agents/ActionsInput.tsxindex b2c2b9d51b..9aeca38114 100644--- a/client/src/components/SidePanel/Agents/ActionsInput.tsx+++ b/client/src/components/SidePanel/Agents/ActionsInput.tsx@@ -1,6 +1,7 @@-import debounce from 'lodash/debounce';import { useState, useEffect } from 'react';+import debounce from 'lodash/debounce';import { useFormContext } from 'react-hook-form';+import { Spinner, useToastContext } from '@librechat/client';import {validateAndParseOpenAPISpec,openapiToFunction,@@ -17,9 +18,7 @@ import type { Spec } from './ActionsTable';import ActionCallback from '~/components/SidePanel/Builder/ActionCallback';import { ActionsTable, columns } from './ActionsTable';import { useUpdateAgentAction } from '~/data-provider';-import { useToastContext } from '~/Providers';-import useLocalize from '~/hooks/useLocalize';-import { Spinner } from '~/components/svg';+import { useLocalize } from '~/hooks';import { logger } from '~/utils';const debouncedValidation = debounce(diff --git a/client/src/components/SidePanel/Agents/ActionsPanel.tsx b/client/src/components/SidePanel/Agents/ActionsPanel.tsxindex 89b9a87f92..bbd9a2978c 100644--- a/client/src/components/SidePanel/Agents/ActionsPanel.tsx+++ b/client/src/components/SidePanel/Agents/ActionsPanel.tsx@@ -1,21 +1,26 @@import { useEffect } from 'react';import { ChevronLeft } from 'lucide-react';import { useForm, FormProvider } from 'react-hook-form';+import {AuthTypeEnum,AuthorizationTypeEnum,TokenExchangeMethodEnum,} from 'librechat-data-provider';+import {+ OGDialogTemplate,+ TrashIcon,+ OGDialog,+ OGDialogTrigger,+ Label,+ useToastContext,+} from '@librechat/client';import ActionsAuth from '~/components/SidePanel/Builder/ActionsAuth';import { useAgentPanelContext } from '~/Providers/AgentPanelContext';-import { OGDialog, OGDialogTrigger, Label } from '~/components/ui';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';import { useDeleteAgentAction } from '~/data-provider';import type { ActionAuthForm } from '~/common';-import useLocalize from '~/hooks/useLocalize';-import { useToastContext } from '~/Providers';-import { TrashIcon } from '~/components/svg';import ActionsInput from './ActionsInput';+import { useLocalize } from '~/hooks';import { Panel } from '~/common';export default function ActionsPanel() {diff --git a/client/src/components/SidePanel/Agents/AdminSettings.tsx b/client/src/components/SidePanel/Agents/AdminSettings.tsxindex fe2c62cb5c..35a6b6c6a6 100644--- a/client/src/components/SidePanel/Agents/AdminSettings.tsx+++ b/client/src/components/SidePanel/Agents/AdminSettings.tsx@@ -3,12 +3,19 @@ import { useMemo, useEffect, useState } from 'react';import { ShieldEllipsis } from 'lucide-react';import { useForm, Controller } from 'react-hook-form';import { Permissions, SystemRoles, roleDefaults, PermissionTypes } from 'librechat-data-provider';+import {+ OGDialog,+ OGDialogTitle,+ OGDialogContent,+ OGDialogTrigger,+ Button,+ Switch,+ DropdownPopup,+ useToastContext,+} from '@librechat/client';import type { Control, UseFormSetValue, UseFormGetValues } from 'react-hook-form';-import { OGDialog, OGDialogTitle, OGDialogContent, OGDialogTrigger } from '~/components/ui';import { useUpdateAgentPermissionsMutation } from '~/data-provider';-import { Button, Switch, DropdownPopup } from '~/components/ui';import { useLocalize, useAuthContext } from '~/hooks';-import { useToastContext } from '~/Providers';type FormValues = Record<Permissions, boolean>;diff --git a/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx b/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsxindex e75047b76d..e22d6aa513 100644--- a/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx+++ b/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx@@ -1,6 +1,6 @@import React from 'react';import { Settings2 } from 'lucide-react';-import { Button } from '~/components/ui';+import { Button } from '@librechat/client';import { useLocalize } from '~/hooks';import { Panel } from '~/common';diff --git a/client/src/components/SidePanel/Agents/Advanced/AgentChain.tsx b/client/src/components/SidePanel/Agents/Advanced/AgentChain.tsxindex 0a60705ce2..d4575d3b26 100644--- a/client/src/components/SidePanel/Agents/Advanced/AgentChain.tsx+++ b/client/src/components/SidePanel/Agents/Advanced/AgentChain.tsx@@ -1,13 +1,18 @@import { X, Link2, PlusCircle } from 'lucide-react';import { EModelEndpoint } from 'librechat-data-provider';import React, { useState, useMemo, useCallback, useEffect } from 'react';+import {+ ControlCombobox,+ HoverCard,+ HoverCardPortal,+ HoverCardContent,+ HoverCardTrigger,+ CircleHelpIcon,+} from '@librechat/client';import type { ControllerRenderProps } from 'react-hook-form';import type { TMessage } from 'librechat-data-provider';import type { AgentForm, OptionWithIcon } from '~/common';-import ControlCombobox from '~/components/ui/ControlCombobox';-import { HoverCard, HoverCardPortal, HoverCardContent, HoverCardTrigger } from '~/components/ui';import MessageIcon from '~/components/Share/MessageIcon';-import { CircleHelpIcon } from '~/components/svg';import { useAgentsMapContext } from '~/Providers';import { useLocalize } from '~/hooks';import { ESide } from '~/common';diff --git a/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx b/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsxindex 5e334282f9..09af3fd154 100644--- a/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx+++ b/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx@@ -1,13 +1,13 @@import { useFormContext, Controller } from 'react-hook-form';-import type { AgentForm } from '~/common';import {HoverCard,FormInput,HoverCardPortal,HoverCardContent,HoverCardTrigger,-} from '~/components/ui';-import { CircleHelpIcon } from '~/components/svg';+ CircleHelpIcon,+} from '@librechat/client';+import type { AgentForm } from '~/common';import { useLocalize } from '~/hooks';import { ESide } from '~/common';diff --git a/client/src/components/SidePanel/Agents/AgentAvatar.tsx b/client/src/components/SidePanel/Agents/AgentAvatar.tsxindex 80b58e787b..5d0790012b 100644--- a/client/src/components/SidePanel/Agents/AgentAvatar.tsx+++ b/client/src/components/SidePanel/Agents/AgentAvatar.tsx@@ -1,5 +1,6 @@-import * as Popover from '@radix-ui/react-popover';import { useState, useEffect, useRef } from 'react';+import * as Popover from '@radix-ui/react-popover';+import { useToastContext } from '@librechat/client';import { useQueryClient } from '@tanstack/react-query';import {fileConfig as defaultFileConfig,@@ -16,7 +17,6 @@ import type {} from 'librechat-data-provider';import { useUploadAgentAvatarMutation, useGetFileConfig } from '~/data-provider';import { AgentAvatarRender, NoImage, AvatarMenu } from './Images';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';import { formatBytes } from '~/utils';diff --git a/client/src/components/SidePanel/Agents/AgentConfig.tsx b/client/src/components/SidePanel/Agents/AgentConfig.tsxindex 84229174cf..1acd35b65f 100644--- a/client/src/components/SidePanel/Agents/AgentConfig.tsx+++ b/client/src/components/SidePanel/Agents/AgentConfig.tsx@@ -1,4 +1,5 @@import React, { useState, useMemo, useCallback } from 'react';+import { useToastContext } from '@librechat/client';import { EModelEndpoint } from 'librechat-data-provider';import { Controller, useWatch, useFormContext } from 'react-hook-form';import type { AgentForm, AgentPanelProps, IconComponentTypes } from '~/common';@@ -10,7 +11,7 @@ import {getIconKey,cn,} from '~/utils';-import { useToastContext, useFileMapContext, useAgentPanelContext } from '~/Providers';+import { useFileMapContext, useAgentPanelContext } from '~/Providers';import useAgentCapabilities from '~/hooks/Agents/useAgentCapabilities';import Action from '~/components/SidePanel/Builder/Action';import { ToolSelectDialog } from '~/components/Tools';diff --git a/client/src/components/SidePanel/Agents/AgentFooter.tsx b/client/src/components/SidePanel/Agents/AgentFooter.tsxindex 2b3aa1bcd7..d0c5ab3e7a 100644--- a/client/src/components/SidePanel/Agents/AgentFooter.tsx+++ b/client/src/components/SidePanel/Agents/AgentFooter.tsx@@ -1,16 +1,16 @@+import { Spinner } from '@librechat/client';import { useWatch, useFormContext } from 'react-hook-form';import { SystemRoles, Permissions, PermissionTypes } from 'librechat-data-provider';import type { AgentForm, AgentPanelProps } from '~/common';import { useLocalize, useAuthContext, useHasAccess } from '~/hooks';import { useUpdateAgentMutation } from '~/data-provider';import AdvancedButton from './Advanced/AdvancedButton';+import VersionButton from './Version/VersionButton';import DuplicateAgent from './DuplicateAgent';import AdminSettings from './AdminSettings';import DeleteButton from './DeleteButton';-import { Spinner } from '~/components';import ShareAgent from './ShareAgent';import { Panel } from '~/common';-import VersionButton from './Version/VersionButton';export default function AgentFooter({activePanel,diff --git a/client/src/components/SidePanel/Agents/AgentPanel.tsx b/client/src/components/SidePanel/Agents/AgentPanel.tsxindex 1df54f829d..37a7d33d59 100644--- a/client/src/components/SidePanel/Agents/AgentPanel.tsx+++ b/client/src/components/SidePanel/Agents/AgentPanel.tsx@@ -1,5 +1,6 @@import { Plus } from 'lucide-react';import React, { useMemo, useCallback } from 'react';+import { Button, useToastContext } from '@librechat/client';import { useWatch, useForm, FormProvider } from 'react-hook-form';import { useGetModelsQuery } from 'librechat-data-provider/react-query';import {@@ -20,11 +21,9 @@ import { useSelectAgent, useLocalize, useAuthContext } from '~/hooks';import { useAgentPanelContext } from '~/Providers/AgentPanelContext';import AgentPanelSkeleton from './AgentPanelSkeleton';import AdvancedPanel from './Advanced/AdvancedPanel';-import { useToastContext } from '~/Providers';import AgentConfig from './AgentConfig';import AgentSelect from './AgentSelect';import AgentFooter from './AgentFooter';-import { Button } from '~/components';import ModelPanel from './ModelPanel';import { Panel } from '~/common';diff --git a/client/src/components/SidePanel/Agents/AgentPanelSkeleton.tsx b/client/src/components/SidePanel/Agents/AgentPanelSkeleton.tsxindex d10271f112..8ecc13e0c4 100644--- a/client/src/components/SidePanel/Agents/AgentPanelSkeleton.tsx+++ b/client/src/components/SidePanel/Agents/AgentPanelSkeleton.tsx@@ -1,5 +1,5 @@import React from 'react';-import { Skeleton } from '~/components/ui';+import { Skeleton } from '@librechat/client';export default function AgentPanelSkeleton() {return (diff --git a/client/src/components/SidePanel/Agents/AgentSelect.tsx b/client/src/components/SidePanel/Agents/AgentSelect.tsxindex 496dd4ee6d..af852c5cfe 100644--- a/client/src/components/SidePanel/Agents/AgentSelect.tsx+++ b/client/src/components/SidePanel/Agents/AgentSelect.tsx@@ -1,4 +1,5 @@import { EarthIcon } from 'lucide-react';+import { ControlCombobox } from '@librechat/client';import { useCallback, useEffect, useRef } from 'react';import { useFormContext, Controller } from 'react-hook-form';import { AgentCapabilities, defaultAgentFormValues } from 'librechat-data-provider';@@ -7,7 +8,6 @@ import type { Agent, AgentCreateParams } from 'librechat-data-provider';import type { TAgentCapabilities, AgentForm } from '~/common';import { cn, createProviderOption, processAgentOption, getDefaultAgentFormValues } from '~/utils';import { useListAgentsQuery, useGetStartupConfig } from '~/data-provider';-import ControlCombobox from '~/components/ui/ControlCombobox';import { useLocalize } from '~/hooks';const keys = new Set(Object.keys(defaultAgentFormValues));diff --git a/client/src/components/SidePanel/Agents/AgentTool.tsx b/client/src/components/SidePanel/Agents/AgentTool.tsxindex 5703cede0a..07857c7be0 100644--- a/client/src/components/SidePanel/Agents/AgentTool.tsx+++ b/client/src/components/SidePanel/Agents/AgentTool.tsx@@ -4,13 +4,21 @@ import { ChevronDown } from 'lucide-react';import { useFormContext } from 'react-hook-form';import * as AccordionPrimitive from '@radix-ui/react-accordion';import { useUpdateUserPluginsMutation } from 'librechat-data-provider/react-query';+import {+ Accordion,+ AccordionItem,+ AccordionContent,+ TrashIcon,+ CircleHelpIcon,+ OGDialog,+ OGDialogTrigger,+ Label,+ Checkbox,+ OGDialogTemplate,+ useToastContext,+} from '@librechat/client';import type { AgentToolType } from 'librechat-data-provider';import type { AgentForm } from '~/common';-import { Accordion, AccordionItem, AccordionContent } from '~/components/ui/Accordion';-import { OGDialog, OGDialogTrigger, Label, Checkbox } from '~/components/ui';-import { TrashIcon, CircleHelpIcon } from '~/components/svg';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/SidePanel/Agents/Artifacts.tsx b/client/src/components/SidePanel/Agents/Artifacts.tsxindex a8b0bba7c6..4d401a1e1e 100644--- a/client/src/components/SidePanel/Agents/Artifacts.tsx+++ b/client/src/components/SidePanel/Agents/Artifacts.tsx@@ -1,15 +1,15 @@import { useFormContext } from 'react-hook-form';import { ArtifactModes, AgentCapabilities } from 'librechat-data-provider';-import type { AgentForm } from '~/common';import {Switch,HoverCard,HoverCardPortal,HoverCardContent,HoverCardTrigger,-} from '~/components/ui';+ CircleHelpIcon,+} from '@librechat/client';+import type { AgentForm } from '~/common';import { useLocalize } from '~/hooks';-import { CircleHelpIcon } from '~/components/svg';import { ESide } from '~/common';export default function Artifacts() {diff --git a/client/src/components/SidePanel/Agents/Code/Action.tsx b/client/src/components/SidePanel/Agents/Code/Action.tsxindex e655101b76..526e3c7311 100644--- a/client/src/components/SidePanel/Agents/Code/Action.tsx+++ b/client/src/components/SidePanel/Agents/Code/Action.tsx@@ -1,16 +1,16 @@import { KeyRoundIcon } from 'lucide-react';import { AuthType, AgentCapabilities } from 'librechat-data-provider';import { useFormContext, Controller, useWatch } from 'react-hook-form';-import type { AgentForm } from '~/common';import {Checkbox,HoverCard,+ CircleHelpIcon,HoverCardContent,HoverCardPortal,HoverCardTrigger,-} from '~/components/ui';+} from '@librechat/client';+import type { AgentForm } from '~/common';import { useLocalize, useCodeApiKeyForm } from '~/hooks';-import { CircleHelpIcon } from '~/components/svg';import ApiKeyDialog from './ApiKeyDialog';import { ESide } from '~/common';diff --git a/client/src/components/SidePanel/Agents/Code/ApiKeyDialog.tsx b/client/src/components/SidePanel/Agents/Code/ApiKeyDialog.tsxindex b2fcac1b5a..af586cdb99 100644--- a/client/src/components/SidePanel/Agents/Code/ApiKeyDialog.tsx+++ b/client/src/components/SidePanel/Agents/Code/ApiKeyDialog.tsx@@ -1,9 +1,8 @@+import { OGDialogTemplate, Input, Button, OGDialog } from '@librechat/client';import type { UseFormRegister, UseFormHandleSubmit } from 'react-hook-form';import type { ApiKeyFormData } from '~/common';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';-import { Input, Button, OGDialog } from '~/components/ui';-import { useLocalize } from '~/hooks';import type { RefObject } from 'react';+import { useLocalize } from '~/hooks';export default function ApiKeyDialog({isOpen,diff --git a/client/src/components/SidePanel/Agents/Code/Files.tsx b/client/src/components/SidePanel/Agents/Code/Files.tsxindex 1775ee88a9..412004b92b 100644--- a/client/src/components/SidePanel/Agents/Code/Files.tsx+++ b/client/src/components/SidePanel/Agents/Code/Files.tsx@@ -1,5 +1,6 @@import { useState, useRef } from 'react';import { useFormContext } from 'react-hook-form';+import { AttachmentIcon } from '@librechat/client';import {EToolResources,EModelEndpoint,@@ -12,7 +13,6 @@ import type { ExtendedFile, AgentForm } from '~/common';import { useFileHandling, useLocalize, useLazyEffect } from '~/hooks';import FileRow from '~/components/Chat/Input/Files/FileRow';import { useGetFileConfig } from '~/data-provider';-import { AttachmentIcon } from '~/components/svg';import { useChatContext } from '~/Providers';const tool_resource = EToolResources.execute_code;diff --git a/client/src/components/SidePanel/Agents/DeleteButton.tsx b/client/src/components/SidePanel/Agents/DeleteButton.tsxindex bfe08c666f..d6e0da5485 100644--- a/client/src/components/SidePanel/Agents/DeleteButton.tsx+++ b/client/src/components/SidePanel/Agents/DeleteButton.tsx@@ -1,13 +1,18 @@import { useFormContext } from 'react-hook-form';+import {+ OGDialog,+ OGDialogTrigger,+ Label,+ OGDialogTemplate,+ TrashIcon,+ useToastContext,+} from '@librechat/client';import type { Agent, AgentCreateParams } from 'librechat-data-provider';import type { UseMutationResult } from '@tanstack/react-query';import { cn, logger, removeFocusOutlines, getDefaultAgentFormValues } from '~/utils';-import { OGDialog, OGDialogTrigger, Label } from '~/components/ui';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';-import { useChatContext, useToastContext } from '~/Providers';import { useLocalize, useSetIndexOptions } from '~/hooks';import { useDeleteAgentMutation } from '~/data-provider';-import { TrashIcon } from '~/components/svg';+import { useChatContext } from '~/Providers';export default function DeleteButton({agent_id,diff --git a/client/src/components/SidePanel/Agents/DuplicateAgent.tsx b/client/src/components/SidePanel/Agents/DuplicateAgent.tsxindex 35ffd51754..3d0151d302 100644--- a/client/src/components/SidePanel/Agents/DuplicateAgent.tsx+++ b/client/src/components/SidePanel/Agents/DuplicateAgent.tsx@@ -1,7 +1,7 @@import { CopyIcon } from 'lucide-react';+import { useToastContext } from '@librechat/client';import { useDuplicateAgentMutation } from '~/data-provider';import { cn, removeFocusOutlines } from '~/utils';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';export default function DuplicateAgent({ agent_id }: { agent_id: string }) {diff --git a/client/src/components/SidePanel/Agents/FileContext.tsx b/client/src/components/SidePanel/Agents/FileContext.tsxindex eb0e9e9a13..299967579b 100644--- a/client/src/components/SidePanel/Agents/FileContext.tsx+++ b/client/src/components/SidePanel/Agents/FileContext.tsx@@ -5,12 +5,18 @@ import {mergeFileConfig,fileConfig as defaultFileConfig,} from 'librechat-data-provider';+import {+ HoverCard,+ HoverCardContent,+ HoverCardPortal,+ HoverCardTrigger,+ AttachmentIcon,+ CircleHelpIcon,+} from '@librechat/client';import type { ExtendedFile } from '~/common';import { useFileHandling, useLocalize, useLazyEffect } from '~/hooks';import FileRow from '~/components/Chat/Input/Files/FileRow';import { useGetFileConfig } from '~/data-provider';-import { HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger } from '~/components/ui';-import { AttachmentIcon, CircleHelpIcon } from '~/components/svg';import { useChatContext } from '~/Providers';import { ESide } from '~/common';diff --git a/client/src/components/SidePanel/Agents/FileSearch.tsx b/client/src/components/SidePanel/Agents/FileSearch.tsxindex ad640dbcf1..3eb55a81fc 100644--- a/client/src/components/SidePanel/Agents/FileSearch.tsx+++ b/client/src/components/SidePanel/Agents/FileSearch.tsx@@ -1,5 +1,6 @@import { useState, useRef } from 'react';import { useFormContext } from 'react-hook-form';+import { AttachmentIcon } from '@librechat/client';import {EModelEndpoint,EToolResources,@@ -12,7 +13,6 @@ import { useFileHandling, useLocalize, useLazyEffect } from '~/hooks';import FileRow from '~/components/Chat/Input/Files/FileRow';import FileSearchCheckbox from './FileSearchCheckbox';import { useGetFileConfig } from '~/data-provider';-import { AttachmentIcon } from '~/components/svg';import { useChatContext } from '~/Providers';export default function FileSearch({diff --git a/client/src/components/SidePanel/Agents/FileSearchCheckbox.tsx b/client/src/components/SidePanel/Agents/FileSearchCheckbox.tsxindex b0e3e4cbca..174123f388 100644--- a/client/src/components/SidePanel/Agents/FileSearchCheckbox.tsx+++ b/client/src/components/SidePanel/Agents/FileSearchCheckbox.tsx@@ -1,15 +1,15 @@import { memo } from 'react';import { AgentCapabilities } from 'librechat-data-provider';import { useFormContext, Controller } from 'react-hook-form';-import type { AgentForm } from '~/common';import {Checkbox,HoverCard,HoverCardContent,HoverCardPortal,HoverCardTrigger,-} from '~/components/ui';-import { CircleHelpIcon } from '~/components/svg';+ CircleHelpIcon,+} from '@librechat/client';+import type { AgentForm } from '~/common';import { useLocalize } from '~/hooks';import { ESide } from '~/common';diff --git a/client/src/components/SidePanel/Agents/ImageVision.tsx b/client/src/components/SidePanel/Agents/ImageVision.tsxindex 4be2443145..bc4e117896 100644--- a/client/src/components/SidePanel/Agents/ImageVision.tsx+++ b/client/src/components/SidePanel/Agents/ImageVision.tsx@@ -1,7 +1,7 @@-import { useFormContext, Controller } from 'react-hook-form';+import { Checkbox } from '@librechat/client';import { Capabilities } from 'librechat-data-provider';+import { useFormContext, Controller } from 'react-hook-form';import type { AgentForm } from '~/common';-import { Checkbox } from '~/components/ui';import { useLocalize } from '~/hooks';export default function ImageVision() {@@ -19,7 +19,7 @@ export default function ImageVision() {{...field}checked={field.value}onCheckedChange={field.onChange}- className="relative float-left mr-2 inline-flex h-4 w-4 cursor-pointer"+ className="relative float-left mr-2 inline-flex h-4 w-4 cursor-pointer"value={field.value?.toString()}/>)}diff --git a/client/src/components/SidePanel/Agents/Instructions.tsx b/client/src/components/SidePanel/Agents/Instructions.tsxindex 2bad496673..d2ea7f212d 100644--- a/client/src/components/SidePanel/Agents/Instructions.tsx+++ b/client/src/components/SidePanel/Agents/Instructions.tsx@@ -1,13 +1,13 @@import React, { useState, useId } from 'react';import { PlusCircle } from 'lucide-react';import * as Menu from '@ariakit/react/menu';+import { DropdownPopup } from '@librechat/client';import { specialVariables } from 'librechat-data-provider';-import type { TSpecialVarLabel } from 'librechat-data-provider';import { Controller, useFormContext } from 'react-hook-form';+import type { TSpecialVarLabel } from 'librechat-data-provider';import type { AgentForm } from '~/common';import { cn, defaultTextProps, removeFocusOutlines } from '~/utils';-// import ControlCombobox from '~/components/ui/ControlCombobox';-import { DropdownPopup } from '~/components';+// import { ControlCombobox } from '@librechat/client';import { useLocalize } from '~/hooks';const inputClass = cn(diff --git a/client/src/components/SidePanel/Agents/MCPIcon.tsx b/client/src/components/SidePanel/Agents/MCPIcon.tsxindex 101abb4c9e..46caee1a53 100644--- a/client/src/components/SidePanel/Agents/MCPIcon.tsx+++ b/client/src/components/SidePanel/Agents/MCPIcon.tsx@@ -1,5 +1,5 @@import { useState, useEffect, useRef } from 'react';-import SquirclePlusIcon from '~/components/svg/SquirclePlusIcon';+import { SquirclePlusIcon } from '@librechat/client';import { useLocalize } from '~/hooks';interface MCPIconProps {diff --git a/client/src/components/SidePanel/Agents/MCPInput.tsx b/client/src/components/SidePanel/Agents/MCPInput.tsxindex 6c2f2ce51e..6add301d85 100644--- a/client/src/components/SidePanel/Agents/MCPInput.tsx+++ b/client/src/components/SidePanel/Agents/MCPInput.tsx@@ -1,13 +1,11 @@import { useState, useEffect } from 'react';import { useFormContext, Controller } from 'react-hook-form';+import { Label, Checkbox, Spinner, useToastContext } from '@librechat/client';import type { MCP } from 'librechat-data-provider';import MCPAuth from '~/components/SidePanel/Builder/MCPAuth';import MCPIcon from '~/components/SidePanel/Agents/MCPIcon';-import { Label, Checkbox } from '~/components/ui';-import useLocalize from '~/hooks/useLocalize';-import { useToastContext } from '~/Providers';-import { Spinner } from '~/components/svg';import { MCPForm } from '~/common/types';+import { useLocalize } from '~/hooks';function useUpdateAgentMCP({onSuccess,diff --git a/client/src/components/SidePanel/Agents/MCPPanel.tsx b/client/src/components/SidePanel/Agents/MCPPanel.tsxindex 016e445e4f..6e793f13f6 100644--- a/client/src/components/SidePanel/Agents/MCPPanel.tsx+++ b/client/src/components/SidePanel/Agents/MCPPanel.tsx@@ -1,21 +1,25 @@import { useEffect } from 'react';import { ChevronLeft } from 'lucide-react';import { useForm, FormProvider } from 'react-hook-form';-import { useAgentPanelContext } from '~/Providers/AgentPanelContext';-import { OGDialog, OGDialogTrigger, Label } from '~/components/ui';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';-import { defaultMCPFormValues } from '~/common/mcp';-import useLocalize from '~/hooks/useLocalize';-import { useToastContext } from '~/Providers';-import { TrashIcon } from '~/components/svg';-import type { MCPForm } from '~/common';-import MCPInput from './MCPInput';-import { Panel } from '~/common';import {AuthTypeEnum,AuthorizationTypeEnum,TokenExchangeMethodEnum,} from 'librechat-data-provider';+import {+ OGDialog,+ OGDialogTrigger,+ Label,+ OGDialogTemplate,+ TrashIcon,+ useToastContext,+} from '@librechat/client';+import { useAgentPanelContext } from '~/Providers/AgentPanelContext';+import { defaultMCPFormValues } from '~/common/mcp';+import type { MCPForm } from '~/common';+import { useLocalize } from '~/hooks';+import MCPInput from './MCPInput';+import { Panel } from '~/common';// TODO: Add MCP delete (for now mocked for ui)// import { useDeleteAgentMCP } from '~/data-provider';diff --git a/client/src/components/SidePanel/Agents/MCPSection.tsx b/client/src/components/SidePanel/Agents/MCPSection.tsxindex 4575eb8f25..14d643a62c 100644--- a/client/src/components/SidePanel/Agents/MCPSection.tsx+++ b/client/src/components/SidePanel/Agents/MCPSection.tsx@@ -1,6 +1,6 @@import { useCallback } from 'react';import { useLocalize } from '~/hooks';-import { useToastContext } from '~/Providers';+import { useToastContext } from '@librechat/client';import { useAgentPanelContext } from '~/Providers/AgentPanelContext';import MCP from '~/components/SidePanel/Builder/MCP';import { Panel } from '~/common';diff --git a/client/src/components/SidePanel/Agents/ModelPanel.tsx b/client/src/components/SidePanel/Agents/ModelPanel.tsxindex 3987f24dcf..972ad8e788 100644--- a/client/src/components/SidePanel/Agents/ModelPanel.tsx+++ b/client/src/components/SidePanel/Agents/ModelPanel.tsx@@ -1,5 +1,6 @@-import keyBy from 'lodash/keyBy';import React, { useMemo, useEffect } from 'react';+import keyBy from 'lodash/keyBy';+import { ControlCombobox } from '@librechat/client';import { ChevronLeft, RotateCcw } from 'lucide-react';import { useFormContext, useWatch, Controller } from 'react-hook-form';import { componentMapping } from '~/components/SidePanel/Parameters/components';@@ -12,7 +13,6 @@ import {} from 'librechat-data-provider';import type * as t from 'librechat-data-provider';import type { AgentForm, AgentModelPanelProps, StringOption } from '~/common';-import ControlCombobox from '~/components/ui/ControlCombobox';import { useGetEndpointsQuery } from '~/data-provider';import { getEndpointField, cn } from '~/utils';import { useLocalize } from '~/hooks';diff --git a/client/src/components/SidePanel/Agents/Retrieval.tsx b/client/src/components/SidePanel/Agents/Retrieval.tsxindex 1900ae9f44..c23797b403 100644--- a/client/src/components/SidePanel/Agents/Retrieval.tsx+++ b/client/src/components/SidePanel/Agents/Retrieval.tsx@@ -4,12 +4,12 @@ import { useFormContext, Controller, useWatch } from 'react-hook-form';import {Checkbox,HoverCard,+ CircleHelpIcon,HoverCardContent,HoverCardPortal,HoverCardTrigger,-} from '~/components/ui';+} from '@librechat/client';import OptionHover from '~/components/SidePanel/Parameters/OptionHover';-import { CircleHelpIcon } from '~/components/svg';import type { AgentForm } from '~/common';import { useLocalize } from '~/hooks';import { ESide } from '~/common';diff --git a/client/src/components/SidePanel/Agents/Search/Action.tsx b/client/src/components/SidePanel/Agents/Search/Action.tsxindex df8ebaa9bf..1cc8d36e41 100644--- a/client/src/components/SidePanel/Agents/Search/Action.tsx+++ b/client/src/components/SidePanel/Agents/Search/Action.tsx@@ -1,16 +1,16 @@import { KeyRoundIcon } from 'lucide-react';import { AuthType, AgentCapabilities } from 'librechat-data-provider';import { useFormContext, Controller, useWatch } from 'react-hook-form';-import type { AgentForm } from '~/common';import {+ CircleHelpIcon,Checkbox,HoverCard,HoverCardContent,HoverCardPortal,HoverCardTrigger,-} from '~/components/ui';+} from '@librechat/client';+import type { AgentForm } from '~/common';import { useLocalize, useSearchApiKeyForm } from '~/hooks';-import { CircleHelpIcon } from '~/components/svg';import ApiKeyDialog from './ApiKeyDialog';import { ESide } from '~/common';diff --git a/client/src/components/SidePanel/Agents/Search/ApiKeyDialog.tsx b/client/src/components/SidePanel/Agents/Search/ApiKeyDialog.tsxindex 3058f4e140..ceda0ab346 100644--- a/client/src/components/SidePanel/Agents/Search/ApiKeyDialog.tsx+++ b/client/src/components/SidePanel/Agents/Search/ApiKeyDialog.tsx@@ -1,4 +1,5 @@import { useState } from 'react';+import { Button, OGDialog, OGDialogTemplate } from '@librechat/client';import {AuthType,SearchCategories,@@ -9,8 +10,6 @@ import {import type { SearchApiKeyFormData } from '~/hooks/Plugins/useAuthSearchTool';import type { UseFormRegister, UseFormHandleSubmit } from 'react-hook-form';import InputSection, { type DropdownOption } from './InputSection';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';-import { Button, OGDialog } from '~/components/ui';import { useGetStartupConfig } from '~/data-provider';import { useLocalize } from '~/hooks';diff --git a/client/src/components/SidePanel/Agents/Search/InputSection.tsx b/client/src/components/SidePanel/Agents/Search/InputSection.tsxindex e80e442603..a99abb0172 100644--- a/client/src/components/SidePanel/Agents/Search/InputSection.tsx+++ b/client/src/components/SidePanel/Agents/Search/InputSection.tsx@@ -1,11 +1,10 @@import { useState } from 'react';-import { ChevronDown, Eye, EyeOff } from 'lucide-react';import * as Menu from '@ariakit/react/menu';-import type { UseFormRegister } from 'react-hook-form';+import { ChevronDown, Eye, EyeOff } from 'lucide-react';+import { Input, Label, DropdownPopup } from '@librechat/client';import type { SearchApiKeyFormData } from '~/hooks/Plugins/useAuthSearchTool';+import type { UseFormRegister } from 'react-hook-form';import type { MenuItemProps } from '~/common';-import { Input, Label } from '~/components/ui';-import DropdownPopup from '~/components/ui/DropdownPopup';import { useLocalize } from '~/hooks';interface InputConfig {diff --git a/client/src/components/SidePanel/Agents/ShareAgent.tsx b/client/src/components/SidePanel/Agents/ShareAgent.tsxindex 7f025ef248..f095879518 100644--- a/client/src/components/SidePanel/Agents/ShareAgent.tsx+++ b/client/src/components/SidePanel/Agents/ShareAgent.tsx@@ -2,7 +2,6 @@ import React, { useEffect, useMemo } from 'react';import { Share2Icon } from 'lucide-react';import { useForm, Controller } from 'react-hook-form';import { Permissions } from 'librechat-data-provider';-import type { TStartupConfig, AgentUpdateParams } from 'librechat-data-provider';import {Button,Switch,@@ -11,10 +10,11 @@ import {OGDialogClose,OGDialogContent,OGDialogTrigger,-} from '~/components/ui';+ useToastContext,+} from '@librechat/client';+import type { TStartupConfig, AgentUpdateParams } from 'librechat-data-provider';import { useUpdateAgentMutation, useGetStartupConfig } from '~/data-provider';import { cn, removeFocusOutlines } from '~/utils';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';type FormValues = {diff --git a/client/src/components/SidePanel/Agents/Version/VersionButton.tsx b/client/src/components/SidePanel/Agents/Version/VersionButton.tsxindex 5708bd392f..a35c6b69d5 100644--- a/client/src/components/SidePanel/Agents/Version/VersionButton.tsx+++ b/client/src/components/SidePanel/Agents/Version/VersionButton.tsx@@ -1,7 +1,7 @@import { History } from 'lucide-react';-import { Panel } from '~/common';-import { Button } from '~/components/ui';+import { Button } from '@librechat/client';import { useLocalize } from '~/hooks';+import { Panel } from '~/common';interface VersionButtonProps {setActivePanel: (panel: Panel) => void;diff --git a/client/src/components/SidePanel/Agents/Version/VersionContent.tsx b/client/src/components/SidePanel/Agents/Version/VersionContent.tsxindex 0aa1fc4af8..f2f449cb1f 100644--- a/client/src/components/SidePanel/Agents/Version/VersionContent.tsx+++ b/client/src/components/SidePanel/Agents/Version/VersionContent.tsx@@ -1,7 +1,7 @@-import { Spinner } from '~/components/svg';-import { useLocalize } from '~/hooks';-import VersionItem from './VersionItem';+import { Spinner } from '@librechat/client';import type { VersionContext } from './types';+import VersionItem from './VersionItem';+import { useLocalize } from '~/hooks';type VersionContentProps = {selectedAgentId: string;diff --git a/client/src/components/SidePanel/Agents/Version/VersionPanel.tsx b/client/src/components/SidePanel/Agents/Version/VersionPanel.tsxindex 57048f66f7..871e92bce2 100644--- a/client/src/components/SidePanel/Agents/Version/VersionPanel.tsx+++ b/client/src/components/SidePanel/Agents/Version/VersionPanel.tsx@@ -1,16 +1,17 @@import { ChevronLeft } from 'lucide-react';import { useCallback, useMemo } from 'react';+import { useToastContext } from '@librechat/client';import { useGetAgentByIdQuery, useRevertAgentVersionMutation } from '~/data-provider';import type { AgentWithVersions, VersionContext } from './types';import { isActiveVersion } from './isActiveVersion';import { useAgentPanelContext } from '~/Providers';-import { useLocalize, useToast } from '~/hooks';import VersionContent from './VersionContent';+import { useLocalize } from '~/hooks';import { Panel } from '~/common';export default function VersionPanel() {const localize = useLocalize();- const { showToast } = useToast();+ const { showToast } = useToastContext();const { agent_id, setActivePanel } = useAgentPanelContext();const selectedAgentId = agent_id ?? '';diff --git a/client/src/components/SidePanel/Agents/Version/__tests__/VersionContent.spec.tsx b/client/src/components/SidePanel/Agents/Version/__tests__/VersionContent.spec.tsxindex 36cbf9eff5..3669fa75e0 100644--- a/client/src/components/SidePanel/Agents/Version/__tests__/VersionContent.spec.tsx+++ b/client/src/components/SidePanel/Agents/Version/__tests__/VersionContent.spec.tsx@@ -32,7 +32,7 @@ jest.mock('~/hooks', () => ({}),}));-jest.mock('~/components/svg', () => ({+jest.mock('@librechat/client', () => ({Spinner: () => <div data-testid="spinner" />,}));diff --git a/client/src/components/SidePanel/Agents/__tests__/AgentFooter.spec.tsx b/client/src/components/SidePanel/Agents/__tests__/AgentFooter.spec.tsxindex 9a73f94a57..8cb8460eaf 100644--- a/client/src/components/SidePanel/Agents/__tests__/AgentFooter.spec.tsx+++ b/client/src/components/SidePanel/Agents/__tests__/AgentFooter.spec.tsx@@ -198,14 +198,14 @@ describe('AgentFooter', () => {expect(screen.queryByTestId('admin-settings')).not.toBeInTheDocument();expect(screen.queryByTestId('share-agent')).not.toBeInTheDocument();expect(screen.queryByTestId('duplicate-agent')).not.toBeInTheDocument();- expect(screen.queryByTestId('spinner')).not.toBeInTheDocument();+ expect(document.querySelector('.spinner')).not.toBeInTheDocument();});test('handles loading states for createMutation', () => {const { unmount } = render(<AgentFooter {...defaultProps} createMutation={createBaseMutation(true)} />,);- expect(screen.getByTestId('spinner')).toBeInTheDocument();+ expect(document.querySelector('.spinner')).toBeInTheDocument();expect(screen.queryByText('Save')).not.toBeInTheDocument();expect(screen.getByRole('button')).toBeDisabled();expect(screen.getByRole('button')).toHaveAttribute('aria-busy', 'true');@@ -214,7 +214,7 @@ describe('AgentFooter', () => {test('handles loading states for updateMutation', () => {render(<AgentFooter {...defaultProps} updateMutation={createBaseMutation(true)} />);- expect(screen.getByTestId('spinner')).toBeInTheDocument();+ expect(document.querySelector('.spinner')).toBeInTheDocument();expect(screen.queryByText('Save')).not.toBeInTheDocument();});});diff --git a/client/src/components/SidePanel/Bookmarks/BookmarkTable.tsx b/client/src/components/SidePanel/Bookmarks/BookmarkTable.tsxindex 0506b3b0dd..738a628f0b 100644--- a/client/src/components/SidePanel/Bookmarks/BookmarkTable.tsx+++ b/client/src/components/SidePanel/Bookmarks/BookmarkTable.tsx@@ -1,6 +1,5 @@import React, { useCallback, useEffect, useState } from 'react';import { BookmarkPlusIcon } from 'lucide-react';-import type { ConversationTagsResponse, TConversationTag } from 'librechat-data-provider';import {Table,Input,@@ -11,7 +10,8 @@ import {TableCell,TableHeader,OGDialogTrigger,-} from '~/components/ui';+} from '@librechat/client';+import type { ConversationTagsResponse, TConversationTag } from 'librechat-data-provider';import { BookmarkContext, useBookmarkContext } from '~/Providers/BookmarkContext';import { BookmarkEditDialog } from '~/components/Bookmarks';import BookmarkTableRow from './BookmarkTableRow';diff --git a/client/src/components/SidePanel/Bookmarks/BookmarkTableRow.tsx b/client/src/components/SidePanel/Bookmarks/BookmarkTableRow.tsxindex 42fea897b3..a013e63ee6 100644--- a/client/src/components/SidePanel/Bookmarks/BookmarkTableRow.tsx+++ b/client/src/components/SidePanel/Bookmarks/BookmarkTableRow.tsx@@ -1,11 +1,10 @@import React, { useRef } from 'react';import { useDrag, useDrop } from 'react-dnd';import type { TConversationTag } from 'librechat-data-provider';+import { TableRow, TableCell, useToastContext } from '@librechat/client';import { DeleteBookmarkButton, EditBookmarkButton } from '~/components/Bookmarks';import { useConversationTagMutation } from '~/data-provider';-import { TableRow, TableCell } from '~/components/ui';import { NotificationSeverity } from '~/common';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';interface BookmarkTableRowProps {diff --git a/client/src/components/SidePanel/Builder/Action.tsx b/client/src/components/SidePanel/Builder/Action.tsxindex 656888a3d7..2cedf0c557 100644--- a/client/src/components/SidePanel/Builder/Action.tsx+++ b/client/src/components/SidePanel/Builder/Action.tsx@@ -1,6 +1,6 @@import { useState } from 'react';+import { GearIcon } from '@librechat/client';import type { Action } from 'librechat-data-provider';-import GearIcon from '~/components/svg/GearIcon';import { cn } from '~/utils';export default function Action({ action, onClick }: { action: Action; onClick: () => void }) {diff --git a/client/src/components/SidePanel/Builder/ActionCallback.tsx b/client/src/components/SidePanel/Builder/ActionCallback.tsxindex 851607f22f..f0e6006e52 100644--- a/client/src/components/SidePanel/Builder/ActionCallback.tsx+++ b/client/src/components/SidePanel/Builder/ActionCallback.tsx@@ -2,9 +2,8 @@ import { useState } from 'react';import { Copy, CopyCheck } from 'lucide-react';import { useFormContext } from 'react-hook-form';import { AuthTypeEnum } from 'librechat-data-provider';+import { Button, useToastContext } from '@librechat/client';import { useLocalize, useCopyToClipboard } from '~/hooks';-import { useToastContext } from '~/Providers';-import { Button } from '~/components/ui';import { cn } from '~/utils';export default function ActionCallback({ action_id }: { action_id?: string }) {diff --git a/client/src/components/SidePanel/Builder/ActionsAuth.tsx b/client/src/components/SidePanel/Builder/ActionsAuth.tsxindex 1d0c3eea1f..15ff89626e 100644--- a/client/src/components/SidePanel/Builder/ActionsAuth.tsx+++ b/client/src/components/SidePanel/Builder/ActionsAuth.tsx@@ -13,7 +13,7 @@ import {OGDialogHeader,OGDialogContent,OGDialogTrigger,-} from '~/components/ui';+} from '@librechat/client';import { TranslationKeys, useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/SidePanel/Builder/ActionsInput.tsx b/client/src/components/SidePanel/Builder/ActionsInput.tsxindex 410df8e9a3..84b72be682 100644--- a/client/src/components/SidePanel/Builder/ActionsInput.tsx+++ b/client/src/components/SidePanel/Builder/ActionsInput.tsx@@ -1,6 +1,7 @@import debounce from 'lodash/debounce';import { useState, useEffect } from 'react';import { useFormContext } from 'react-hook-form';+import { Spinner, useToastContext } from '@librechat/client';import {validateAndParseOpenAPISpec,openapiToFunction,@@ -16,11 +17,10 @@ import type {import type { ActionAuthForm, ActionWithNullableMetadata } from '~/common';import type { Spec } from './ActionsTable';import ActionCallback from '~/components/SidePanel/Builder/ActionCallback';-import { useAssistantsMapContext, useToastContext } from '~/Providers';+import { useAssistantsMapContext } from '~/Providers';import { ActionsTable, columns } from './ActionsTable';import { useUpdateAction } from '~/data-provider';-import useLocalize from '~/hooks/useLocalize';-import { Spinner } from '~/components/svg';+import { useLocalize } from '~/hooks';const debouncedValidation = debounce((input: string, callback: (result: ValidationResult) => void) => {diff --git a/client/src/components/SidePanel/Builder/ActionsPanel.tsx b/client/src/components/SidePanel/Builder/ActionsPanel.tsxindex 23071f5c70..13b605bc8a 100644--- a/client/src/components/SidePanel/Builder/ActionsPanel.tsx+++ b/client/src/components/SidePanel/Builder/ActionsPanel.tsx@@ -1,20 +1,25 @@import { useEffect } from 'react';+import { ChevronLeft } from 'lucide-react';import { useForm, FormProvider } from 'react-hook-form';import {AuthTypeEnum,AuthorizationTypeEnum,TokenExchangeMethodEnum,} from 'librechat-data-provider';-import { ChevronLeft } from 'lucide-react';+import {+ OGDialog,+ OGDialogTrigger,+ Label,+ OGDialogTemplate,+ useToastContext,+ TrashIcon,+} from '@librechat/client';import type { AssistantPanelProps, ActionAuthForm } from '~/common';-import { useAssistantsMapContext, useToastContext } from '~/Providers';-import { OGDialog, OGDialogTrigger, Label } from '~/components/ui';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';+import { useAssistantsMapContext } from '~/Providers';import { useDeleteAction } from '~/data-provider';-import { TrashIcon } from '~/components/svg';-import useLocalize from '~/hooks/useLocalize';import ActionsInput from './ActionsInput';import ActionsAuth from './ActionsAuth';+import { useLocalize } from '~/hooks';import { Panel } from '~/common';export default function ActionsPanel({diff --git a/client/src/components/SidePanel/Builder/AppendDateCheckbox.tsx b/client/src/components/SidePanel/Builder/AppendDateCheckbox.tsxindex cad4a7fc62..df68bce522 100644--- a/client/src/components/SidePanel/Builder/AppendDateCheckbox.tsx+++ b/client/src/components/SidePanel/Builder/AppendDateCheckbox.tsx@@ -1,15 +1,15 @@import { Control, Controller, UseFormSetValue, UseFormGetValues } from 'react-hook-form';-import { CircleHelpIcon } from '~/components/svg';-import { useLocalize } from '~/hooks';import {+ CircleHelpIcon,HoverCard,HoverCardContent,HoverCardPortal,HoverCardTrigger,Checkbox,-} from '~/components/ui';-import { ESide } from '~/common';+} from '@librechat/client';import type { AssistantForm } from '~/common';+import { useLocalize } from '~/hooks';+import { ESide } from '~/common';interface AppendDateCheckboxProps {control: Control<AssistantForm>;diff --git a/client/src/components/SidePanel/Builder/AssistantAvatar.tsx b/client/src/components/SidePanel/Builder/AssistantAvatar.tsxindex 4433cf1535..08f6bdb8ad 100644--- a/client/src/components/SidePanel/Builder/AssistantAvatar.tsx+++ b/client/src/components/SidePanel/Builder/AssistantAvatar.tsx@@ -1,5 +1,6 @@-import * as Popover from '@radix-ui/react-popover';import { useState, useEffect, useRef, useMemo } from 'react';+import * as Popover from '@radix-ui/react-popover';+import { useToastContext } from '@librechat/client';import { useQueryClient } from '@tanstack/react-query';import {fileConfig as defaultFileConfig,@@ -7,7 +8,6 @@ import {defaultOrderQuery,mergeFileConfig,} from 'librechat-data-provider';-import type { UseMutationResult } from '@tanstack/react-query';import type {Metadata,Assistant,@@ -15,10 +15,11 @@ import type {AssistantCreateParams,AssistantListResponse,} from 'librechat-data-provider';+import type { UseMutationResult } from '@tanstack/react-query';import { useUploadAssistantAvatarMutation, useGetFileConfig } from '~/data-provider';-import { useToastContext, useAssistantsMapContext } from '~/Providers';import { AssistantAvatar, NoImage, AvatarMenu } from './Images';-// import { Spinner } from '~/components/svg';+import { useAssistantsMapContext } from '~/Providers';+// import { Spinner } from '@librechat/client';import { useLocalize } from '~/hooks';import { formatBytes } from '~/utils';diff --git a/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx b/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsxindex 30b9157f1c..9c8da37b1b 100644--- a/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx+++ b/client/src/components/SidePanel/Builder/AssistantConversationStarters.tsx@@ -1,8 +1,8 @@import React, { useRef, useState } from 'react';import { Plus, X } from 'lucide-react';+import { TooltipAnchor } from '@librechat/client';import { Transition } from 'react-transition-group';import { Constants } from 'librechat-data-provider';-import { TooltipAnchor } from '~/components/ui';import { useLocalize } from '~/hooks';interface AssistantConversationStartersProps {diff --git a/client/src/components/SidePanel/Builder/AssistantPanel.tsx b/client/src/components/SidePanel/Builder/AssistantPanel.tsxindex 4c3a794823..c47a9aea53 100644--- a/client/src/components/SidePanel/Builder/AssistantPanel.tsx+++ b/client/src/components/SidePanel/Builder/AssistantPanel.tsx@@ -1,6 +1,7 @@import { useState, useMemo } from 'react';-import { useForm, FormProvider, Controller, useWatch } from 'react-hook-form';import { useGetModelsQuery } from 'librechat-data-provider/react-query';+import { Spinner, useToastContext, SelectDropDown } from '@librechat/client';+import { useForm, FormProvider, Controller, useWatch } from 'react-hook-form';import {Tools,Capabilities,@@ -18,16 +19,14 @@ import {import { cn, cardStyle, defaultTextProps, removeFocusOutlines } from '~/utils';import AssistantConversationStarters from './AssistantConversationStarters';import AssistantToolsDialog from '~/components/Tools/AssistantToolsDialog';-import { useAssistantsMapContext, useToastContext } from '~/Providers';import { useSelectAssistant, useLocalize } from '~/hooks';+import { useAssistantsMapContext } from '~/Providers';import AppendDateCheckbox from './AppendDateCheckbox';import CapabilitiesForm from './CapabilitiesForm';-import { SelectDropDown } from '~/components/ui';import AssistantAvatar from './AssistantAvatar';import AssistantSelect from './AssistantSelect';import ContextButton from './ContextButton';import AssistantTool from './AssistantTool';-import { Spinner } from '~/components/svg';import Knowledge from './Knowledge';import { Panel } from '~/common';import Action from './Action';diff --git a/client/src/components/SidePanel/Builder/AssistantSelect.tsx b/client/src/components/SidePanel/Builder/AssistantSelect.tsxindex 99f840e6d4..7d64cc62c5 100644--- a/client/src/components/SidePanel/Builder/AssistantSelect.tsx+++ b/client/src/components/SidePanel/Builder/AssistantSelect.tsx@@ -1,5 +1,6 @@-import { Plus } from 'lucide-react';import { useMemo, useCallback, useEffect, useRef } from 'react';+import { Plus } from 'lucide-react';+import { SelectDropDown } from '@librechat/client';import {Tools,FileSources,@@ -9,8 +10,6 @@ import {isImageVisionTool,defaultAssistantFormValues,} from 'librechat-data-provider';-import type { UseFormReset } from 'react-hook-form';-import type { UseMutationResult } from '@tanstack/react-query';import type {TPlugin,Assistant,@@ -25,7 +24,8 @@ import type {TAssistantOption,LastSelectedModels,} from '~/common';-import SelectDropDown from '~/components/ui/SelectDropDown';+import type { UseMutationResult } from '@tanstack/react-query';+import type { UseFormReset } from 'react-hook-form';import { useListAssistantsQuery } from '~/data-provider';import { useLocalize, useLocalStorage } from '~/hooks';import { cn, createDropdownSetter } from '~/utils';diff --git a/client/src/components/SidePanel/Builder/AssistantTool.tsx b/client/src/components/SidePanel/Builder/AssistantTool.tsxindex 317f6264dd..bd60216f91 100644--- a/client/src/components/SidePanel/Builder/AssistantTool.tsx+++ b/client/src/components/SidePanel/Builder/AssistantTool.tsx@@ -1,11 +1,15 @@import React, { useState } from 'react';import { useFormContext } from 'react-hook-form';-import type { TPlugin } from 'librechat-data-provider';import { useUpdateUserPluginsMutation } from 'librechat-data-provider/react-query';-import { OGDialog, OGDialogTrigger, Label } from '~/components/ui';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';-import { useToastContext } from '~/Providers';-import { TrashIcon } from '~/components/svg';+import {+ OGDialog,+ OGDialogTrigger,+ Label,+ OGDialogTemplate,+ TrashIcon,+ useToastContext,+} from '@librechat/client';+import type { TPlugin } from 'librechat-data-provider';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/SidePanel/Builder/Code.tsx b/client/src/components/SidePanel/Builder/Code.tsxindex 54341194fe..55937ff156 100644--- a/client/src/components/SidePanel/Builder/Code.tsx+++ b/client/src/components/SidePanel/Builder/Code.tsx@@ -1,14 +1,14 @@import { Capabilities } from 'librechat-data-provider';import { useFormContext, Controller } from 'react-hook-form';-import type { AssistantForm } from '~/common';import {Checkbox,HoverCard,HoverCardContent,HoverCardPortal,HoverCardTrigger,-} from '~/components/ui';-import { CircleHelpIcon } from '~/components/svg';+ CircleHelpIcon,+} from '@librechat/client';+import type { AssistantForm } from '~/common';import { useLocalize } from '~/hooks';import { ESide } from '~/common';@@ -29,7 +29,7 @@ export default function Code({ version }: { version: number | string }) {{...field}checked={field.value}onCheckedChange={field.onChange}- className="relative float-left mr-2 inline-flex h-4 w-4 cursor-pointer"+ className="relative float-left mr-2 inline-flex h-4 w-4 cursor-pointer"value={field.value.toString()}/>)}diff --git a/client/src/components/SidePanel/Builder/CodeFiles.tsx b/client/src/components/SidePanel/Builder/CodeFiles.tsxindex 22be0a5dcd..451bcf8cab 100644--- a/client/src/components/SidePanel/Builder/CodeFiles.tsx+++ b/client/src/components/SidePanel/Builder/CodeFiles.tsx@@ -9,8 +9,8 @@ import type { ExtendedFile } from '~/common';import FileRow from '~/components/Chat/Input/Files/FileRow';import { useGetFileConfig } from '~/data-provider';import { useFileHandling } from '~/hooks/Files';-import useLocalize from '~/hooks/useLocalize';import { useChatContext } from '~/Providers';+import { useLocalize } from '~/hooks';const tool_resource = EToolResources.code_interpreter;diff --git a/client/src/components/SidePanel/Builder/ContextButton.tsx b/client/src/components/SidePanel/Builder/ContextButton.tsxindex 6bd0e7245c..f84039ea64 100644--- a/client/src/components/SidePanel/Builder/ContextButton.tsx+++ b/client/src/components/SidePanel/Builder/ContextButton.tsx@@ -1,12 +1,17 @@+import {+ Dialog,+ DialogTrigger,+ Label,+ DialogTemplate,+ useToastContext,+ TrashIcon,+} from '@librechat/client';import type { Assistant, AssistantCreateParams, AssistantsEndpoint } from 'librechat-data-provider';import type { UseMutationResult } from '@tanstack/react-query';-import { Dialog, DialogTrigger, Label } from '~/components/ui';-import { useChatContext, useToastContext } from '~/Providers';import { useDeleteAssistantMutation } from '~/data-provider';-import DialogTemplate from '~/components/ui/DialogTemplate';import { useLocalize, useSetIndexOptions } from '~/hooks';-import { cn, removeFocusOutlines } from '~/utils/';-import { TrashIcon } from '~/components/svg';+import { cn, removeFocusOutlines } from '~/utils';+import { useChatContext } from '~/Providers';export default function ContextButton({activeModel,diff --git a/client/src/components/SidePanel/Builder/ImageVision.tsx b/client/src/components/SidePanel/Builder/ImageVision.tsxindex 162151da81..64781a41c9 100644--- a/client/src/components/SidePanel/Builder/ImageVision.tsx+++ b/client/src/components/SidePanel/Builder/ImageVision.tsx@@ -1,7 +1,7 @@-import { useFormContext, Controller } from 'react-hook-form';+import { Checkbox } from '@librechat/client';import { Capabilities } from 'librechat-data-provider';+import { useFormContext, Controller } from 'react-hook-form';import type { AssistantForm } from '~/common';-import { Checkbox, QuestionMark } from '~/components/ui';import { useLocalize } from '~/hooks';export default function ImageVision() {@@ -19,7 +19,7 @@ export default function ImageVision() {{...field}checked={field.value}onCheckedChange={field.onChange}- className="relative float-left mr-2 inline-flex h-4 w-4 cursor-pointer"+ className="relative float-left mr-2 inline-flex h-4 w-4 cursor-pointer"value={field.value.toString()}/>)}diff --git a/client/src/components/SidePanel/Builder/Knowledge.tsx b/client/src/components/SidePanel/Builder/Knowledge.tsxindex 01042cab4b..bf5263120e 100644--- a/client/src/components/SidePanel/Builder/Knowledge.tsx+++ b/client/src/components/SidePanel/Builder/Knowledge.tsx@@ -9,8 +9,8 @@ import type { ExtendedFile } from '~/common';import FileRow from '~/components/Chat/Input/Files/FileRow';import { useGetFileConfig } from '~/data-provider';import { useFileHandling } from '~/hooks/Files';-import useLocalize from '~/hooks/useLocalize';import { useChatContext } from '~/Providers';+import { useLocalize } from '~/hooks';const CodeInterpreterFiles = ({ children }: { children: React.ReactNode }) => {const localize = useLocalize();diff --git a/client/src/components/SidePanel/Builder/MCP.tsx b/client/src/components/SidePanel/Builder/MCP.tsxindex f632b6c00d..64ea37c51b 100644--- a/client/src/components/SidePanel/Builder/MCP.tsx+++ b/client/src/components/SidePanel/Builder/MCP.tsx@@ -1,7 +1,6 @@import { useState } from 'react';+import { GearIcon, MCPIcon } from '@librechat/client';import type { MCP } from 'librechat-data-provider';-import GearIcon from '~/components/svg/GearIcon';-import MCPIcon from '~/components/svg/MCPIcon';import { cn } from '~/utils';type MCPProps = {diff --git a/client/src/components/SidePanel/Builder/MCPAuth.tsx b/client/src/components/SidePanel/Builder/MCPAuth.tsxindex 4ea3faae61..2486f84d40 100644--- a/client/src/components/SidePanel/Builder/MCPAuth.tsx+++ b/client/src/components/SidePanel/Builder/MCPAuth.tsx@@ -1,11 +1,11 @@import { useEffect } from 'react';import { FormProvider, useForm } from 'react-hook-form';-import ActionsAuth from '~/components/SidePanel/Builder/ActionsAuth';import {AuthorizationTypeEnum,TokenExchangeMethodEnum,AuthTypeEnum,} from 'librechat-data-provider';+import ActionsAuth from '~/components/SidePanel/Builder/ActionsAuth';export default function MCPAuth() {// Create a separate form for authdiff --git a/client/src/components/SidePanel/Builder/Retrieval.tsx b/client/src/components/SidePanel/Builder/Retrieval.tsxindex 6a6ce8bbdc..ce226e8991 100644--- a/client/src/components/SidePanel/Builder/Retrieval.tsx+++ b/client/src/components/SidePanel/Builder/Retrieval.tsx@@ -8,13 +8,13 @@ import {HoverCardContent,HoverCardPortal,HoverCardTrigger,-} from '~/components/ui';+ CircleHelpIcon,+} from '@librechat/client';import OptionHover from '~/components/SidePanel/Parameters/OptionHover';-import { CircleHelpIcon } from '~/components/svg';import type { AssistantForm } from '~/common';import { useLocalize } from '~/hooks';import { ESide } from '~/common';-import { cn } from '~/utils/';+import { cn } from '~/utils';export default function Retrieval({version,diff --git a/client/src/components/SidePanel/Files/PanelColumns.tsx b/client/src/components/SidePanel/Files/PanelColumns.tsxindex 5d199dfc9a..fd58322afa 100644--- a/client/src/components/SidePanel/Files/PanelColumns.tsx+++ b/client/src/components/SidePanel/Files/PanelColumns.tsx@@ -1,9 +1,10 @@+/* eslint-disable react-hooks/rules-of-hooks */import { ArrowUpDown } from 'lucide-react';+import { Button } from '@librechat/client';import type { ColumnDef } from '@tanstack/react-table';import type { TFile } from 'librechat-data-provider';-import useLocalize from '~/hooks/useLocalize';import PanelFileCell from './PanelFileCell';-import { Button } from '~/components/ui';+import { useLocalize } from '~/hooks';import { formatDate } from '~/utils';export const columns: ColumnDef<TFile | undefined>[] = [diff --git a/client/src/components/SidePanel/Files/PanelTable.tsx b/client/src/components/SidePanel/Files/PanelTable.tsxindex 87a965a968..f341f2f00a 100644--- a/client/src/components/SidePanel/Files/PanelTable.tsx+++ b/client/src/components/SidePanel/Files/PanelTable.tsx@@ -1,6 +1,17 @@import { useState, useCallback, useMemo } from 'react';import { ArrowUpLeft } from 'lucide-react';import { useSetRecoilState } from 'recoil';+import {+ Button,+ Input,+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+ useToastContext,+} from '@librechat/client';import {flexRender,getCoreRowModel,@@ -21,18 +32,7 @@ import {isAssistantsEndpoint,type TFile,} from 'librechat-data-provider';--import {- Button,- Input,- Table,- TableBody,- TableCell,- TableHead,- TableHeader,- TableRow,-} from '~/components/ui';-import { useFileMapContext, useChatContext, useToastContext } from '~/Providers';+import { useFileMapContext, useChatContext } from '~/Providers';import { useLocalize, useUpdateFiles } from '~/hooks';import { useGetFileConfig } from '~/data-provider';import store from '~/store';diff --git a/client/src/components/SidePanel/MCP/MCPPanel.tsx b/client/src/components/SidePanel/MCP/MCPPanel.tsxindex e6a5266f84..0bb8f726ba 100644--- a/client/src/components/SidePanel/MCP/MCPPanel.tsx+++ b/client/src/components/SidePanel/MCP/MCPPanel.tsx@@ -1,16 +1,15 @@+import React, { useState, useMemo, useCallback } from 'react';import { ChevronLeft } from 'lucide-react';import { useQueryClient } from '@tanstack/react-query';-import React, { useState, useMemo, useCallback } from 'react';+import { Button, useToastContext } from '@librechat/client';import { Constants, QueryKeys } from 'librechat-data-provider';-import type { TUpdateUserPlugins } from 'librechat-data-provider';import { useUpdateUserPluginsMutation } from 'librechat-data-provider/react-query';-import ServerInitializationSection from '~/components/ui/MCP/ServerInitializationSection';-import CustomUserVarsSection from '~/components/ui/MCP/CustomUserVarsSection';+import type { TUpdateUserPlugins } from 'librechat-data-provider';+import ServerInitializationSection from '~/components/MCP/ServerInitializationSection';+import CustomUserVarsSection from '~/components/MCP/CustomUserVarsSection';import { useMCPConnectionStatusQuery } from '~/data-provider/Tools/queries';import { useGetStartupConfig } from '~/data-provider';import MCPPanelSkeleton from './MCPPanelSkeleton';-import { useToastContext } from '~/Providers';-import { Button } from '~/components/ui';import { useLocalize } from '~/hooks';export default function MCPPanel() {diff --git a/client/src/components/SidePanel/MCP/MCPPanelSkeleton.tsx b/client/src/components/SidePanel/MCP/MCPPanelSkeleton.tsxindex 61afbfcc2f..f28c98fe8a 100644--- a/client/src/components/SidePanel/MCP/MCPPanelSkeleton.tsx+++ b/client/src/components/SidePanel/MCP/MCPPanelSkeleton.tsx@@ -1,5 +1,5 @@import React from 'react';-import { Skeleton } from '~/components/ui';+import { Skeleton } from '@librechat/client';export default function MCPPanelSkeleton() {return (diff --git a/client/src/components/SidePanel/Memories/AdminSettings.tsx b/client/src/components/SidePanel/Memories/AdminSettings.tsxindex fcb347228d..f9c3e12f48 100644--- a/client/src/components/SidePanel/Memories/AdminSettings.tsx+++ b/client/src/components/SidePanel/Memories/AdminSettings.tsx@@ -3,12 +3,19 @@ import { useMemo, useEffect, useState } from 'react';import { ShieldEllipsis } from 'lucide-react';import { useForm, Controller } from 'react-hook-form';import { Permissions, SystemRoles, roleDefaults, PermissionTypes } from 'librechat-data-provider';+import {+ OGDialog,+ OGDialogTitle,+ OGDialogContent,+ OGDialogTrigger,+ Button,+ Switch,+ DropdownPopup,+ useToastContext,+} from '@librechat/client';import type { Control, UseFormSetValue, UseFormGetValues } from 'react-hook-form';-import { OGDialog, OGDialogTitle, OGDialogContent, OGDialogTrigger } from '~/components/ui';import { useUpdateMemoryPermissionsMutation } from '~/data-provider';-import { Button, Switch, DropdownPopup } from '~/components/ui';import { useLocalize, useAuthContext } from '~/hooks';-import { useToastContext } from '~/Providers';type FormValues = Record<Permissions, boolean>;diff --git a/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx b/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsxindex 3f916872cb..80e51a6190 100644--- a/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx+++ b/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx@@ -1,10 +1,16 @@import React, { useState } from 'react';import { PermissionTypes, Permissions } from 'librechat-data-provider';-import { OGDialog, OGDialogTemplate, Button, Label, Input } from '~/components/ui';+import {+ OGDialog,+ OGDialogTemplate,+ Button,+ Label,+ Input,+ Spinner,+ useToastContext,+} from '@librechat/client';import { useCreateMemoryMutation } from '~/data-provider';import { useLocalize, useHasAccess } from '~/hooks';-import { useToastContext } from '~/Providers';-import { Spinner } from '~/components/svg';interface MemoryCreateDialogProps {open: boolean;diff --git a/client/src/components/SidePanel/Memories/MemoryEditDialog.tsx b/client/src/components/SidePanel/Memories/MemoryEditDialog.tsxindex 6793bf3d6b..b55e8612b6 100644--- a/client/src/components/SidePanel/Memories/MemoryEditDialog.tsx+++ b/client/src/components/SidePanel/Memories/MemoryEditDialog.tsx@@ -1,11 +1,17 @@import React, { useState, useEffect } from 'react';import { PermissionTypes, Permissions } from 'librechat-data-provider';+import {+ OGDialog,+ OGDialogTemplate,+ Button,+ Label,+ Input,+ Spinner,+ useToastContext,+} from '@librechat/client';import type { TUserMemory } from 'librechat-data-provider';-import { OGDialog, OGDialogTemplate, Button, Label, Input } from '~/components/ui';import { useUpdateMemoryMutation, useMemoriesQuery } from '~/data-provider';import { useLocalize, useHasAccess } from '~/hooks';-import { useToastContext } from '~/Providers';-import { Spinner } from '~/components/svg';interface MemoryEditDialogProps {memory: TUserMemory | null;diff --git a/client/src/components/SidePanel/Memories/MemoryViewer.tsx b/client/src/components/SidePanel/Memories/MemoryViewer.tsxindex 638321f4f7..89459d66e3 100644--- a/client/src/components/SidePanel/Memories/MemoryViewer.tsx+++ b/client/src/components/SidePanel/Memories/MemoryViewer.tsx@@ -3,7 +3,6 @@ import { useMemo, useState, useRef, useEffect } from 'react';import { Plus } from 'lucide-react';import { matchSorter } from 'match-sorter';import { SystemRoles, PermissionTypes, Permissions } from 'librechat-data-provider';-import type { TUserMemory } from 'librechat-data-provider';import {Spinner,EditIcon,@@ -20,8 +19,11 @@ import {TableCell,TableHeader,TooltipAnchor,+ useToastContext,OGDialogTrigger,-} from '~/components';+ OGDialogTemplate,+} from '@librechat/client';+import type { TUserMemory } from 'librechat-data-provider';import {useGetUserQuery,useMemoriesQuery,@@ -29,10 +31,8 @@ import {useUpdateMemoryPreferencesMutation,} from '~/data-provider';import { useLocalize, useAuthContext, useHasAccess } from '~/hooks';-import OGDialogTemplate from '~/components/ui/OGDialogTemplate';import MemoryCreateDialog from './MemoryCreateDialog';import MemoryEditDialog from './MemoryEditDialog';-import { useToastContext } from '~/Providers';import AdminSettings from './AdminSettings';import { cn } from '~/utils';diff --git a/client/src/components/SidePanel/Nav.tsx b/client/src/components/SidePanel/Nav.tsxindex fa6d8751b1..5385a62e23 100644--- a/client/src/components/SidePanel/Nav.tsx+++ b/client/src/components/SidePanel/Nav.tsx@@ -1,6 +1,12 @@import * as AccordionPrimitive from '@radix-ui/react-accordion';+import {+ AccordionContent,+ AccordionItem,+ TooltipAnchor,+ Accordion,+ Button,+} from '@librechat/client';import type { NavLink, NavProps } from '~/common';-import { AccordionContent, AccordionItem, TooltipAnchor, Accordion, Button } from '~/components/ui';import { ActivePanelProvider, useActivePanel } from '~/Providers';import { useLocalize } from '~/hooks';import { cn } from '~/utils';diff --git a/client/src/components/SidePanel/Parameters/DynamicCheckbox.tsx b/client/src/components/SidePanel/Parameters/DynamicCheckbox.tsxindex 1c4b23aa5c..c69453506e 100644--- a/client/src/components/SidePanel/Parameters/DynamicCheckbox.tsx+++ b/client/src/components/SidePanel/Parameters/DynamicCheckbox.tsx@@ -1,7 +1,7 @@import { useMemo } from 'react';import { OptionTypes } from 'librechat-data-provider';import type { DynamicSettingProps } from 'librechat-data-provider';-import { Label, Checkbox, HoverCard, HoverCardTrigger } from '~/components/ui';+import { Label, Checkbox, HoverCard, HoverCardTrigger } from '@librechat/client';import { TranslationKeys, useLocalize, useDebouncedInput, useParameterEffects } from '~/hooks';import { useChatContext } from '~/Providers';import OptionHover from './OptionHover';@@ -62,7 +62,7 @@ function DynamicCheckbox({htmlFor={`${settingKey}-dynamic-checkbox`}className="text-left text-sm font-medium">- {labelCode ? localize(label as TranslationKeys) ?? label : label || settingKey}{' '}+ {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}{showDefault && (<small className="opacity-40">({localize('com_endpoint_default')}:{' '}@@ -81,7 +81,11 @@ function DynamicCheckbox({</HoverCardTrigger>{description && (<OptionHover- description={descriptionCode ? localize(description as TranslationKeys) ?? description : description}+ description={+ descriptionCode+ ? (localize(description as TranslationKeys) ?? description)+ : description+ }side={ESide.Left}/>)}diff --git a/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx b/client/src/components/SidePanel/Parameters/DynamicCombobox.tsxindex 0d7479d64f..7bc1a2b2d7 100644--- a/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx+++ b/client/src/components/SidePanel/Parameters/DynamicCombobox.tsx@@ -1,7 +1,6 @@import { useMemo, useState, useCallback } from 'react';import type { DynamicSettingProps } from 'librechat-data-provider';-import { Label, HoverCard, HoverCardTrigger } from '~/components/ui';-import ControlCombobox from '~/components/ui/ControlCombobox';+import { Label, HoverCard, HoverCardTrigger, ControlCombobox } from '@librechat/client';import { TranslationKeys, useLocalize, useParameterEffects } from '~/hooks';import { useChatContext } from '~/Providers';import OptionHover from './OptionHover';@@ -85,7 +84,7 @@ function DynamicCombobox({htmlFor={`${settingKey}-dynamic-combobox`}className="text-left text-sm font-medium">- {labelCode ? localize(label as TranslationKeys) ?? label : label || settingKey}+ {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{showDefault && (<small className="opacity-40">({localize('com_endpoint_default')}: {defaultValue})@@ -97,10 +96,14 @@ function DynamicCombobox({<ControlComboboxdisplayValue={selectedValue}selectPlaceholder={- selectPlaceholderCode === true ? localize(selectPlaceholder as TranslationKeys) : selectPlaceholder+ selectPlaceholderCode === true+ ? localize(selectPlaceholder as TranslationKeys)+ : selectPlaceholder}searchPlaceholder={- searchPlaceholderCode === true ? localize(searchPlaceholder as TranslationKeys) : searchPlaceholder+ searchPlaceholderCode === true+ ? localize(searchPlaceholder as TranslationKeys)+ : searchPlaceholder}isCollapsed={isCollapsed}ariaLabel={settingKey}@@ -112,7 +115,11 @@ function DynamicCombobox({</HoverCardTrigger>{description && (<OptionHover- description={descriptionCode ? localize(description as TranslationKeys) ?? description : description}+ description={+ descriptionCode+ ? (localize(description as TranslationKeys) ?? description)+ : description+ }side={ESide.Left}/>)}diff --git a/client/src/components/SidePanel/Parameters/DynamicDropdown.tsx b/client/src/components/SidePanel/Parameters/DynamicDropdown.tsxindex 0797c75a57..4814241e23 100644--- a/client/src/components/SidePanel/Parameters/DynamicDropdown.tsx+++ b/client/src/components/SidePanel/Parameters/DynamicDropdown.tsx@@ -1,7 +1,7 @@import { useMemo, useState } from 'react';import { OptionTypes } from 'librechat-data-provider';+import { Label, HoverCard, HoverCardTrigger, SelectDropDown } from '@librechat/client';import type { DynamicSettingProps } from 'librechat-data-provider';-import { Label, HoverCard, HoverCardTrigger, SelectDropDown } from '~/components/ui';import { TranslationKeys, useLocalize, useParameterEffects } from '~/hooks';import { useChatContext } from '~/Providers';import OptionHover from './OptionHover';@@ -78,7 +78,7 @@ function DynamicDropdown({htmlFor={`${settingKey}-dynamic-dropdown`}className="text-left text-sm font-medium">- {labelCode ? localize(label as TranslationKeys) ?? label : label || settingKey}+ {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{showDefault && (<small className="opacity-40">({localize('com_endpoint_default')}: {defaultValue})@@ -96,12 +96,20 @@ function DynamicDropdown({availableValues={options}containerClassName="w-full"id={`${settingKey}-dynamic-dropdown`}- placeholder={placeholderCode ? localize(placeholder as TranslationKeys) ?? placeholder : placeholder}+ placeholder={+ placeholderCode+ ? (localize(placeholder as TranslationKeys) ?? placeholder)+ : placeholder+ }/></HoverCardTrigger>{description && (<OptionHover- description={descriptionCode ? localize(description as TranslationKeys) ?? description : description}+ description={+ descriptionCode+ ? (localize(description as TranslationKeys) ?? description)+ : description+ }side={ESide.Left}/>)}diff --git a/client/src/components/SidePanel/Parameters/DynamicInput.tsx b/client/src/components/SidePanel/Parameters/DynamicInput.tsxindex 57e55d75ca..f9d27dd86a 100644--- a/client/src/components/SidePanel/Parameters/DynamicInput.tsx+++ b/client/src/components/SidePanel/Parameters/DynamicInput.tsx@@ -1,7 +1,7 @@import { OptionTypes } from 'librechat-data-provider';+import { Label, Input, HoverCard, HoverCardTrigger } from '@librechat/client';import type { DynamicSettingProps } from 'librechat-data-provider';import { useLocalize, useDebouncedInput, useParameterEffects, TranslationKeys } from '~/hooks';-import { Label, Input, HoverCard, HoverCardTrigger } from '~/components/ui';import { useChatContext } from '~/Providers';import OptionHover from './OptionHover';import { ESide } from '~/common';diff --git a/client/src/components/SidePanel/Parameters/DynamicSlider.tsx b/client/src/components/SidePanel/Parameters/DynamicSlider.tsxindex 9651110842..a9a2910c8f 100644--- a/client/src/components/SidePanel/Parameters/DynamicSlider.tsx+++ b/client/src/components/SidePanel/Parameters/DynamicSlider.tsx@@ -1,7 +1,7 @@import { useMemo, useCallback } from 'react';import { OptionTypes } from 'librechat-data-provider';import type { DynamicSettingProps } from 'librechat-data-provider';-import { Label, Slider, HoverCard, Input, InputNumber, HoverCardTrigger } from '~/components/ui';+import { Label, Slider, HoverCard, Input, InputNumber, HoverCardTrigger } from '@librechat/client';import { useLocalize, useDebouncedInput, useParameterEffects, TranslationKeys } from '~/hooks';import { cn, defaultTextProps, optionText } from '~/utils';import { ESide, defaultDebouncedDelay } from '~/common';diff --git a/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx b/client/src/components/SidePanel/Parameters/DynamicSwitch.tsxindex eff11f3453..4305ca1849 100644--- a/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx+++ b/client/src/components/SidePanel/Parameters/DynamicSwitch.tsx@@ -1,6 +1,6 @@import { useState } from 'react';import type { DynamicSettingProps } from 'librechat-data-provider';-import { Label, Switch, HoverCard, HoverCardTrigger } from '~/components/ui';+import { Label, Switch, HoverCard, HoverCardTrigger } from '@librechat/client';import { TranslationKeys, useLocalize, useParameterEffects } from '~/hooks';import { useChatContext } from '~/Providers';import OptionHover from './OptionHover';diff --git a/client/src/components/SidePanel/Parameters/DynamicTags.tsx b/client/src/components/SidePanel/Parameters/DynamicTags.tsxindex 413a18e062..e5c1f69c86 100644--- a/client/src/components/SidePanel/Parameters/DynamicTags.tsx+++ b/client/src/components/SidePanel/Parameters/DynamicTags.tsx@@ -1,11 +1,11 @@import { useState, useMemo, useCallback, useRef } from 'react';import type { DynamicSettingProps } from 'librechat-data-provider';-import { Label, Input, HoverCard, HoverCardTrigger, Tag } from '~/components/ui';-import { useChatContext, useToastContext } from '~/Providers';+import { Label, Input, HoverCard, HoverCardTrigger, Tag, useToastContext } from '@librechat/client';import { TranslationKeys, useLocalize, useParameterEffects } from '~/hooks';-import { cn } from '~/utils';+import { useChatContext } from '~/Providers';import OptionHover from './OptionHover';import { ESide } from '~/common';+import { cn } from '~/utils';function DynamicTags({label = '',diff --git a/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx b/client/src/components/SidePanel/Parameters/DynamicTextarea.tsxindex d4f0221394..dde7309e3c 100644--- a/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx+++ b/client/src/components/SidePanel/Parameters/DynamicTextarea.tsx@@ -1,11 +1,11 @@import { OptionTypes } from 'librechat-data-provider';import type { DynamicSettingProps } from 'librechat-data-provider';-import { Label, TextareaAutosize, HoverCard, HoverCardTrigger } from '~/components/ui';import { useLocalize, useDebouncedInput, useParameterEffects, TranslationKeys } from '~/hooks';-import { cn } from '~/utils';+import { Label, TextareaAutosize, HoverCard, HoverCardTrigger } from '@librechat/client';import { useChatContext } from '~/Providers';import OptionHover from './OptionHover';import { ESide } from '~/common';+import { cn } from '~/utils';function DynamicTextarea({label = '',@@ -58,7 +58,7 @@ function DynamicTextarea({htmlFor={`${settingKey}-dynamic-textarea`}className="text-left text-sm font-medium">- {labelCode ? localize(label as TranslationKeys) ?? label : label || settingKey}{' '}+ {labelCode ? (localize(label as TranslationKeys) ?? label) : label || settingKey}{' '}{showDefault && (<small className="opacity-40">(@@ -75,7 +75,11 @@ function DynamicTextarea({disabled={readonly}value={inputValue ?? ''}onChange={setInputValue}- placeholder={placeholderCode ? localize(placeholder as TranslationKeys) ?? placeholder : placeholder}+ placeholder={+ placeholderCode+ ? (localize(placeholder as TranslationKeys) ?? placeholder)+ : placeholder+ }className={cn(// TODO: configurable max height'flex max-h-[138px] min-h-[100px] w-full resize-none rounded-lg bg-surface-secondary px-3 py-2 focus:outline-none',@@ -84,7 +88,11 @@ function DynamicTextarea({</HoverCardTrigger>{description && (<OptionHover- description={descriptionCode ? localize(description as TranslationKeys) ?? description : description}+ description={+ descriptionCode+ ? (localize(description as TranslationKeys) ?? description)+ : description+ }side={ESide.Left}/>)}diff --git a/client/src/components/SidePanel/Parameters/OptionHover.tsx b/client/src/components/SidePanel/Parameters/OptionHover.tsxindex 51c4670b83..be23d66297 100644--- a/client/src/components/SidePanel/Parameters/OptionHover.tsx+++ b/client/src/components/SidePanel/Parameters/OptionHover.tsx@@ -1,5 +1,5 @@import React from 'react';-import { HoverCardPortal, HoverCardContent } from '~/components/ui';+import { HoverCardPortal, HoverCardContent } from '@librechat/client';import { TranslationKeys, useLocalize } from '~/hooks';import { ESide } from '~/common';diff --git a/client/src/components/SidePanel/Parameters/Panel.tsx b/client/src/components/SidePanel/Parameters/Panel.tsxindex 64742a7167..6f539a5f95 100644--- a/client/src/components/SidePanel/Parameters/Panel.tsx+++ b/client/src/components/SidePanel/Parameters/Panel.tsx@@ -1,5 +1,6 @@-import { RotateCcw } from 'lucide-react';import React, { useMemo, useState, useEffect, useCallback } from 'react';+import keyBy from 'lodash/keyBy';+import { RotateCcw } from 'lucide-react';import {excludedKeys,paramSettings,@@ -14,7 +15,6 @@ import { useGetEndpointsQuery } from '~/data-provider';import { getEndpointField, logger } from '~/utils';import { componentMapping } from './components';import { useChatContext } from '~/Providers';-import keyBy from 'lodash/keyBy';export default function Parameters() {const localize = useLocalize();diff --git a/client/src/components/SidePanel/SidePanel.tsx b/client/src/components/SidePanel/SidePanel.tsxindex cf36ae6c54..865fce20a9 100644--- a/client/src/components/SidePanel/SidePanel.tsx+++ b/client/src/components/SidePanel/SidePanel.tsx@@ -1,10 +1,10 @@import { useState, useCallback, useMemo, memo } from 'react';import { useUserKeyQuery } from 'librechat-data-provider/react-query';+import { ResizableHandleAlt, ResizablePanel, useMediaQuery } from '@librechat/client';import type { TEndpointsConfig, TInterfaceConfig } from 'librechat-data-provider';import type { ImperativePanelHandle } from 'react-resizable-panels';-import { ResizableHandleAlt, ResizablePanel } from '~/components/ui/Resizable';-import { useMediaQuery, useLocalStorage, useLocalize } from '~/hooks';import useSideNavLinks from '~/hooks/Nav/useSideNavLinks';+import { useLocalStorage, useLocalize } from '~/hooks';import { useGetEndpointsQuery } from '~/data-provider';import NavToggle from '~/components/Nav/NavToggle';import { useSidePanelContext } from '~/Providers';diff --git a/client/src/components/SidePanel/SidePanelGroup.tsx b/client/src/components/SidePanel/SidePanelGroup.tsxindex 8c67d6bc4c..ad2b6d7e11 100644--- a/client/src/components/SidePanel/SidePanelGroup.tsx+++ b/client/src/components/SidePanel/SidePanelGroup.tsx@@ -2,11 +2,15 @@ import { useState, useRef, useCallback, useEffect, useMemo, memo } from 'react';import throttle from 'lodash/throttle';import { useRecoilValue } from 'recoil';import { getConfigDefaults } from 'librechat-data-provider';+import {+ ResizableHandleAlt,+ ResizablePanel,+ ResizablePanelGroup,+ useMediaQuery,+} from '@librechat/client';import type { ImperativePanelHandle } from 'react-resizable-panels';-import { ResizableHandleAlt, ResizablePanel, ResizablePanelGroup } from '~/components/ui/Resizable';import { useGetStartupConfig } from '~/data-provider';import { normalizeLayout } from '~/utils';-import { useMediaQuery } from '~/hooks';import SidePanel from './SidePanel';import store from '~/store';diff --git a/client/src/components/Web/Sources.tsx b/client/src/components/Web/Sources.tsxindex 3acd106988..28b37efa00 100644--- a/client/src/components/Web/Sources.tsx+++ b/client/src/components/Web/Sources.tsx@@ -2,18 +2,18 @@ import React, { useMemo } from 'react';import * as Ariakit from '@ariakit/react';import { VisuallyHidden } from '@ariakit/react';import { X, Globe, Newspaper, Image, ChevronDown } from 'lucide-react';-import type { ValidSource, ImageResult } from 'librechat-data-provider';-import { FaviconImage, getCleanDomain } from '~/components/Web/SourceHovercard';-import { useSearchContext } from '~/Providers';-import { AnimatedTabs } from '~/components/ui';-import { useLocalize } from '~/hooks';import {+ AnimatedTabs,OGDialog,OGDialogClose,OGDialogTitle,OGDialogContent,OGDialogTrigger,-} from '~/components/ui/OriginalDialog';+} from '@librechat/client';+import type { ValidSource, ImageResult } from 'librechat-data-provider';+import { FaviconImage, getCleanDomain } from '~/components/Web/SourceHovercard';+import { useSearchContext } from '~/Providers';+import { useLocalize } from '~/hooks';interface SourceItemProps {source: ValidSource;@@ -21,7 +21,7 @@ interface SourceItemProps {expanded?: boolean;}-function SourceItem({ source, isNews, expanded = false }: SourceItemProps) {+function SourceItem({ source, isNews: _isNews, expanded = false }: SourceItemProps) {const localize = useLocalize();const domain = getCleanDomain(source.link);diff --git a/client/src/components/svg/Files/CodePaths.tsx b/client/src/components/svg/CodePaths.tsxsimilarity index 100%rename from client/src/components/svg/Files/CodePaths.tsxrename to client/src/components/svg/CodePaths.tsxdiff --git a/client/src/components/svg/Files/FileIcon.tsx b/client/src/components/svg/FileIcon.tsxsimilarity index 100%rename from client/src/components/svg/Files/FileIcon.tsxrename to client/src/components/svg/FileIcon.tsxdiff --git a/client/src/components/svg/Files/FilePaths.tsx b/client/src/components/svg/FilePaths.tsxsimilarity index 100%rename from client/src/components/svg/Files/FilePaths.tsxrename to client/src/components/svg/FilePaths.tsxdiff --git a/client/src/components/svg/Files/SheetPaths.tsx b/client/src/components/svg/SheetPaths.tsxsimilarity index 100%rename from client/src/components/svg/Files/SheetPaths.tsxrename to client/src/components/svg/SheetPaths.tsxdiff --git a/client/src/components/svg/Files/TextPaths.tsx b/client/src/components/svg/TextPaths.tsxsimilarity index 100%rename from client/src/components/svg/Files/TextPaths.tsxrename to client/src/components/svg/TextPaths.tsxdiff --git a/client/src/components/svg/index.ts b/client/src/components/svg/index.tsindex 9efffb91c1..308c24759a 100644--- a/client/src/components/svg/index.ts+++ b/client/src/components/svg/index.ts@@ -1,66 +1,5 @@-export { default as ArchiveIcon } from './ArchiveIcon';-export { default as Blocks } from './Blocks';-export { default as Plugin } from './Plugin';-export { default as GPTIcon } from './GPTIcon';-export { default as EditIcon } from './EditIcon';-export { default as DataIcon } from './DataIcon';-export { default as Sidebar } from './Sidebar';-export { default as MobileSidebar } from './MobileSidebar';-export { default as Spinner } from './Spinner';-export { default as Clipboard } from './Clipboard';-export { default as CheckMark } from './CheckMark';-export { default as CrossIcon } from './CrossIcon';-export { default as LogOutIcon } from './LogOutIcon';-export { default as CustomMinimalIcon } from './CustomMinimalIcon';-export { default as LightningIcon } from './LightningIcon';-export { default as AttachmentIcon } from './AttachmentIcon';-export { default as MessagesSquared } from './MessagesSquared';-export { default as StopGeneratingIcon } from './StopGeneratingIcon';-export { default as RegenerateIcon } from './RegenerateIcon';-export { default as ContinueIcon } from './ContinueIcon';-export { default as GoogleIcon } from './GoogleIcon';-export { default as FacebookIcon } from './FacebookIcon';-export { default as OpenIDIcon } from './OpenIDIcon';-export { default as GithubIcon } from './GithubIcon';-export { default as DiscordIcon } from './DiscordIcon';-export { default as AppleIcon } from './AppleIcon';-export { default as SamlIcon } from './SamlIcon';-export { default as AnthropicIcon } from './AnthropicIcon';-export { default as SendIcon } from './SendIcon';-export { default as LinkIcon } from './LinkIcon';-export { default as DotsIcon } from './DotsIcon';-export { default as GearIcon } from './GearIcon';-export { default as PinIcon } from './PinIcon';-export { default as TrashIcon } from './TrashIcon';-export { default as MinimalPlugin } from './MinimalPlugin';-export { default as AzureMinimalIcon } from './AzureMinimalIcon';-export { default as OpenAIMinimalIcon } from './OpenAIMinimalIcon';-export { default as ChatGPTMinimalIcon } from './ChatGPTMinimalIcon';-export { default as PaLMinimalIcon } from './PaLMinimalIcon';-export { default as PaLMIcon } from './PaLMIcon';-export { default as CodeyIcon } from './CodeyIcon';-export { default as GeminiIcon } from './GeminiIcon';-export { default as GoogleMinimalIcon } from './GoogleMinimalIcon';-export { default as AnthropicMinimalIcon } from './AnthropicMinimalIcon';-export { default as ListeningIcon } from './ListeningIcon';-export { default as VolumeIcon } from './VolumeIcon';-export { default as VolumeMuteIcon } from './VolumeMuteIcon';-export { default as SendMessageIcon } from './SendMessageIcon';-export { default as UserIcon } from './UserIcon';-export { default as LockIcon } from './LockIcon';-export { default as NewChatIcon } from './NewChatIcon';-export { default as ExperimentIcon } from './ExperimentIcon';-export { default as GoogleIconChat } from './GoogleIconChat';-export { default as BirthdayIcon } from './BirthdayIcon';-export { default as AssistantIcon } from './AssistantIcon';-export { default as Sparkles } from './Sparkles';-export { default as SpeechIcon } from './SpeechIcon';-export { default as SaveIcon } from './SaveIcon';-export { default as CircleHelpIcon } from './CircleHelpIcon';-export { default as BedrockIcon } from './BedrockIcon';-export { default as ThumbUpIcon } from './ThumbUpIcon';-export { default as ThumbDownIcon } from './ThumbDownIcon';-export { default as XAIcon } from './XAIcon';-export { default as PersonalizationIcon } from './PersonalizationIcon';-export { default as MCPIcon } from './MCPIcon';-export { default as VectorIcon } from './VectorIcon';+export { default as CodePaths } from './CodePaths';+export { default as FileIcon } from './FileIcon';+export { default as FilePaths } from './FilePaths';+export { default as SheetPaths } from './SheetPaths';+export { default as TextPaths } from './TextPaths';diff --git a/client/src/components/ui/AnimatedSearchInput.tsx b/client/src/components/ui/AnimatedSearchInput.tsxdeleted file mode 100644index dddfef4231..0000000000--- a/client/src/components/ui/AnimatedSearchInput.tsx+++ /dev/null@@ -1,111 +0,0 @@-import React from 'react';-import { Search } from 'lucide-react';-import { cn } from '~/utils';--const AnimatedSearchInput = ({- value,- onChange,- isSearching: searching,- placeholder,-}: {- value?: string;- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;- isSearching?: boolean;- placeholder: string;-}) => {- const isSearching = searching === true;- const hasValue = value != null && value.length > 0;-- return (- <div className="relative w-full">- <div className="relative rounded-lg transition-all duration-500 ease-in-out">- <div className="relative">- {/* Icon on the left */}- <div className="absolute left-3 top-1/2 z-50 -translate-y-1/2">- <Search- className={cn(- `- h-4 w-4 transition-all duration-500 ease-in-out`,- isSearching && hasValue ? 'text-blue-400' : 'text-gray-400',- )}- />- </div>-- {/* Input field */}- <input- type="text"- value={value}- onChange={onChange}- placeholder={placeholder}- className={`- peer relative z-20 w-full rounded-lg bg-surface-secondary px-10- py-2 outline-none ring-0 backdrop-blur-sm transition-all- duration-500 ease-in-out placeholder:text-gray-400- focus:outline-none focus:ring-0- `}- />-- {/* Gradient overlay */}- <div- className={`- pointer-events-none absolute inset-0 z-20 rounded-lg- bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20- transition-all duration-500 ease-in-out- ${isSearching && hasValue ? 'opacity-100 blur-sm' : 'opacity-0 blur-none'}- `}- />-- {/* Animated loading indicator */}- <div- className={`- absolute right-3 top-1/2 z-20 -translate-y-1/2- transition-all duration-500 ease-in-out- ${isSearching && hasValue ? 'scale-100 opacity-100' : 'scale-0 opacity-0'}- `}- >- <div className="relative h-2 w-2">- <div className="absolute inset-0 animate-ping rounded-full bg-blue-500/60" />- <div className="absolute inset-0 rounded-full bg-blue-500" />- </div>- </div>- </div>- </div>-- {/* Outer glow effect */}- <div- className={`- absolute -inset-8 -z-10- transition-all duration-700 ease-in-out- ${isSearching && hasValue ? 'scale-105 opacity-100' : 'scale-100 opacity-0'}- `}- >- <div className="absolute inset-0">- <div- className={`- bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent- transition-opacity duration-700 ease-in-out- ${isSearching && hasValue ? 'animate-pulse-slow opacity-100' : 'opacity-0'}- `}- />- <div- className={`- absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5- blur-xl transition-all duration-700 ease-in-out- ${isSearching && hasValue ? 'animate-gradient-x opacity-100' : 'opacity-0'}- `}- />- </div>- </div>- <div- className={`- absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10- via-purple-500/10 to-blue-500/10 opacity-0 blur-xl- transition-all duration-500 ease-in-out- peer-focus:scale-105 peer-focus:opacity-100- `}- />- </div>- );-};--export default AnimatedSearchInput;diff --git a/client/src/components/ui/DelayedRender.tsx b/client/src/components/ui/DelayedRender.tsxdeleted file mode 100644index 216bc7ff92..0000000000--- a/client/src/components/ui/DelayedRender.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { useDelayedRender } from '~/hooks';--const DelayedRender = ({ delay, children }) => useDelayedRender(delay)(() => children);--export default DelayedRender;diff --git a/client/src/components/ui/ModelParameters.tsx b/client/src/components/ui/ModelParameters.tsxdeleted file mode 100644index 17fd8c14be..0000000000--- a/client/src/components/ui/ModelParameters.tsx+++ /dev/null@@ -1,186 +0,0 @@-import React, { useState, useCallback, useRef, useEffect } from 'react';-import { TranslationKeys, useLocalize } from '~/hooks';-import { Minus, Plus } from 'lucide-react';--interface ModelParametersProps {- label?: string;- ariaLabel?: string;- min?: number;- max?: number;- step?: number;- stepClick?: number;- initialValue?: number;- showButtons?: boolean;- onChange?: (value: number) => void;- disabled?: boolean;-}--const ModelParameters: React.FC<ModelParametersProps> = ({- label = 'Value',- ariaLabel = 'Value',- min = 0,- max = 100,- step = 1,- stepClick = 1,- initialValue = 0,- showButtons = true,- onChange,- disabled = false,-}) => {- const localize = useLocalize();- const [value, setValue] = useState(initialValue);- const [isHovering, setIsHovering] = useState(false);- const rangeRef = useRef<HTMLInputElement>(null);-- const id = `model-parameter-${ariaLabel.toLowerCase().replace(/\s+/g, '-')}`;- const displayLabel =- label && label.startsWith('com_') ? localize(label as TranslationKeys) : label;-- const getDecimalPlaces = (num: number) => {- const match = ('' + num).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);- if (!match) {- return 0;- }- return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0));- };-- const decimalPlaces = getDecimalPlaces(step);-- const handleChange = useCallback(- (newValue: number) => {- const clampedValue = Math.min(Math.max(newValue, min), max);- const finalValue = Object.is(clampedValue, -0) ? 0 : clampedValue;- setValue(finalValue);- onChange?.(finalValue);- },- [min, max, onChange],- );-- const handleInputChange = useCallback(- (e: React.ChangeEvent<HTMLInputElement>) => {- handleChange(parseFloat(e.target.value));- },- [handleChange],- );-- const handleIncrement = useCallback(() => {- handleChange(value + stepClick);- }, [value, stepClick, handleChange]);-- const handleDecrement = useCallback(() => {- handleChange(value - stepClick);- }, [value, stepClick, handleChange]);-- const handleKeyDown = useCallback(- (e: React.KeyboardEvent<HTMLInputElement>) => {- if (e.key === 'ArrowRight' || e.key === 'ArrowUp') {- e.preventDefault();- handleIncrement();- } else if (e.key === 'ArrowLeft' || e.key === 'ArrowDown') {- e.preventDefault();- handleDecrement();- }- },- [handleIncrement, handleDecrement],- );-- useEffect(() => {- const rangeElement = rangeRef.current;- if (rangeElement) {- const percentage = ((value - min) / (max - min)) * 100;- rangeElement.style.backgroundSize = `${percentage}% 100%`;- }- }, [value, min, max]);-- return (- <div className="w-full">- <div className="mb-2 flex items-center justify-between">- <label- htmlFor={id}- className={`text-sm font-medium ${disabled ? 'text-gray-400 dark:text-gray-400' : ''}`}- >- {displayLabel}- </label>- <div className="flex items-center gap-2">- <output- htmlFor={id}- className={`select-none text-sm font-medium ${- disabled ? 'text-gray-400 dark:text-gray-400' : ''- }`}- aria-live="polite"- >- {value.toFixed(decimalPlaces).replace('-0.00', '0.00')}- </output>- {showButtons && (- <div className="flex items-center gap-1">- <button- type="button"- onClick={handleDecrement}- className={`rounded-md p-1 transition-colors ${- disabled- ? 'cursor-not-allowed text-gray-400 dark:text-gray-400'- : 'hover:bg-gray-200 dark:hover:bg-gray-700'- }`}- aria-label={`Decrease ${label}`}- disabled={disabled}- >- <Minus size={16} />- </button>- <button- type="button"- onClick={handleIncrement}- className={`rounded-md p-1 transition-colors ${- disabled- ? 'cursor-not-allowed text-gray-400 dark:text-gray-400'- : 'hover:bg-gray-200 dark:hover:bg-gray-700'- }`}- aria-label={`Increase ${label}`}- disabled={disabled}- >- <Plus size={16} />- </button>- </div>- )}- </div>- </div>- <div className="relative w-full">- <input- ref={rangeRef}- type="range"- id={id}- min={min}- max={max}- step={step}- value={value}- onChange={handleInputChange}- onKeyDown={handleKeyDown}- onMouseEnter={() => setIsHovering(true)}- onMouseLeave={() => setIsHovering(false)}- className={`slider-thumb h-2 w-full appearance-none rounded-lg bg-gradient-to-r from-gray-500 to-gray-500 bg-no-repeat focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 ${- disabled ? 'cursor-not-allowed opacity-50' : 'cursor-pointer'- }`}- tabIndex={0}- style={{- backgroundSize: '50% 100%',- backgroundPosition: 'left',- }}- aria-valuemin={min}- aria-valuemax={max}- aria-valuenow={value}- aria-valuetext={`${value.toFixed(decimalPlaces).replace('-0.00', '0.00')}`}- disabled={disabled}- />- {isHovering ? (- <div className="trab mt-1 flex justify-between">- <span className="text-xs text-gray-500">{min}</span>- <span className="text-xs text-gray-500">{max}</span>- </div>- ) : (- <div className="mt-1" style={{ height: '1rem' }}></div>- )}- </div>- </div>- );-};--export default React.memo(ModelParameters);diff --git a/client/src/components/ui/Prompt.tsx b/client/src/components/ui/Prompt.tsxdeleted file mode 100644index 3453ce436a..0000000000--- a/client/src/components/ui/Prompt.tsx+++ /dev/null@@ -1,22 +0,0 @@-import { useLocalize } from '~/hooks';--export default function Prompt({ title, prompt }: { title: string; prompt: string }) {- const localize = useLocalize();-- return (- <div- // onclick="selectPromptTemplate(0)"- className="flex w-full flex-col gap-2 rounded-md bg-gray-50 p-4 text-left hover:bg-gray-200 dark:bg-white/5 "- >- <h2 className="m-auto flex items-center gap-3 text-lg font-normal md:flex-col md:gap-2">- {title}- </h2>- <button>- <p className="w-full rounded-md bg-gray-50 p-3 hover:bg-gray-200 dark:bg-white/5 dark:hover:bg-gray-800">- {prompt}- </p>- </button>- <span className="font-medium">{localize('com_ui_use_prompt')} →</span>- </div>- );-}diff --git a/client/src/components/ui/Slider.tsx b/client/src/components/ui/Slider.tsxdeleted file mode 100644index 74908b4e62..0000000000--- a/client/src/components/ui/Slider.tsx+++ /dev/null@@ -1,26 +0,0 @@-import * as React from 'react';-import * as SliderPrimitive from '@radix-ui/react-slider';-import { cn } from '~/utils';--const Slider = React.forwardRef<- React.ElementRef<typeof SliderPrimitive.Root>,- React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> & { onDoubleClick?: () => void }- >(({ className, onDoubleClick, ...props }, ref) => (- <SliderPrimitive.Root- ref={ref}- className={cn(- 'relative flex w-full cursor-pointer touch-none select-none items-center',- className,- )}- onDoubleClick={onDoubleClick}- {...props}- >- <SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">- <SliderPrimitive.Range className="absolute h-full bg-primary" />- </SliderPrimitive.Track>- <SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />- </SliderPrimitive.Root>- ));-Slider.displayName = SliderPrimitive.Root.displayName;--export { Slider };diff --git a/client/src/components/ui/TermsAndConditionsModal.tsx b/client/src/components/ui/TermsAndConditionsModal.tsxindex bdf6e8fb3e..0736e422f1 100644--- a/client/src/components/ui/TermsAndConditionsModal.tsx+++ b/client/src/components/ui/TermsAndConditionsModal.tsx@@ -1,10 +1,8 @@import { useMemo } from 'react';+import { OGDialog, DialogTemplate, useToastContext } from '@librechat/client';import type { TTermsOfService } from 'librechat-data-provider';import MarkdownLite from '~/components/Chat/Messages/Content/MarkdownLite';-import DialogTemplate from '~/components/ui/DialogTemplate';import { useAcceptTermsMutation } from '~/data-provider';-import { useToastContext } from '~/Providers';-import { OGDialog } from '~/components/ui';import { useLocalize } from '~/hooks';const TermsAndConditionsModal = ({@@ -73,7 +71,7 @@ const TermsAndConditionsModal = ({main={<section// Motivation: This is a dialog, so its content should be focusable- // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex+tabIndex={0}className="max-h-[60vh] overflow-y-auto p-4"aria-label={localize('com_ui_terms_and_conditions')}diff --git a/client/src/components/ui/index.ts b/client/src/components/ui/index.tsindex 4f989484de..259f52a76a 100644--- a/client/src/components/ui/index.ts+++ b/client/src/components/ui/index.ts@@ -1,48 +1 @@-export * from './Accordion';-export * from './AnimatedTabs';-export * from './AlertDialog';-export * from './Breadcrumb';-export * from './Button';-export * from './Checkbox';-export * from './DataTableColumnHeader';-export * from './Dialog';-export * from './DropdownMenu';-export * from './HoverCard';-export * from './Input';-export * from './InputNumber';-export * from './Label';-export * from './OriginalDialog';-export * from './Prompt';-export * from './QuestionMark';-export * from './Slider';-export * from './Separator';-export * from './InputCombobox';-export * from './Skeleton';-export * from './Switch';-export * from './Table';-export * from './Tabs';-export * from './Tag';-export * from './Textarea';-export * from './TextareaAutosize';-export * from './Tooltip';-export * from './Pagination';-export * from './Progress';-export * from './InputOTP';-export { default as Badge } from './Badge';-export { default as Combobox } from './Combobox';-export { default as Dropdown } from './Dropdown';-export { default as SplitText } from './SplitText';-export { default as FormInput } from './FormInput';-export { default as PixelCard } from './PixelCard';-export { default as FileUpload } from './FileUpload';-export { default as DropdownPopup } from './DropdownPopup';-export { default as DelayedRender } from './DelayedRender';-export { default as ThemeSelector } from './ThemeSelector';-export { default as SelectDropDown } from './SelectDropDown';-export { default as MultiSelectPop } from './MultiSelectPop';-export { default as ModelParameters } from './ModelParameters';-export { default as OGDialogTemplate } from './OGDialogTemplate';-export { default as InputWithDropdown } from './InputWithDropDown';-export { default as SelectDropDownPop } from './SelectDropDownPop';-export { default as AnimatedSearchInput } from './AnimatedSearchInput';-export { default as MultiSelectDropDown } from './MultiSelectDropDown';+export { default as TermsAndConditionsModal } from './TermsAndConditionsModal';diff --git a/client/src/data-provider/Files/mutations.ts b/client/src/data-provider/Files/mutations.tsindex 04700fe552..715cd6457d 100644--- a/client/src/data-provider/Files/mutations.ts+++ b/client/src/data-provider/Files/mutations.ts@@ -1,3 +1,4 @@+import { useToastContext } from '@librechat/client';import { EToolResources } from 'librechat-data-provider';import { useMutation, useQueryClient } from '@tanstack/react-query';import {@@ -9,7 +10,6 @@ import {} from 'librechat-data-provider';import type * as t from 'librechat-data-provider';import type { UseMutationResult } from '@tanstack/react-query';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';export const useUploadFileMutation = (diff --git a/client/src/hooks/Conversations/usePresets.ts b/client/src/hooks/Conversations/usePresets.tsindex a0ff9a2517..b2bb156638 100644--- a/client/src/hooks/Conversations/usePresets.ts+++ b/client/src/hooks/Conversations/usePresets.ts@@ -1,5 +1,6 @@import filenamify from 'filenamify';import exportFromJSON from 'export-from-json';+import { useToastContext } from '@librechat/client';import { QueryKeys } from 'librechat-data-provider';import { useCallback, useEffect, useRef } from 'react';import { useQueryClient } from '@tanstack/react-query';@@ -13,11 +14,11 @@ import {} from '~/data-provider';import { cleanupPreset, removeUnavailableTools, getConvoSwitchLogic } from '~/utils';import useDefaultConvo from '~/hooks/Conversations/useDefaultConvo';-import { useChatContext, useToastContext } from '~/Providers';import { useAuthContext } from '~/hooks/AuthContext';import { NotificationSeverity } from '~/common';-import useLocalize from '~/hooks/useLocalize';import useNewConvo from '~/hooks/useNewConvo';+import { useChatContext } from '~/Providers';+import { useLocalize } from '~/hooks';import store from '~/store';export default function usePresets() {diff --git a/client/src/hooks/Endpoint/Icons.tsx b/client/src/hooks/Endpoint/Icons.tsxindex f69ee71c23..f5280cd7f3 100644--- a/client/src/hooks/Endpoint/Icons.tsx+++ b/client/src/hooks/Endpoint/Icons.tsx@@ -1,6 +1,5 @@-import { EModelEndpoint } from 'librechat-data-provider';-import type { IconMapProps, AgentIconMapProps, IconsRecord } from '~/common';import { Feather } from 'lucide-react';+import { EModelEndpoint } from 'librechat-data-provider';import {MinimalPlugin,GPTIcon,@@ -12,7 +11,8 @@ import {LightningIcon,BedrockIcon,Sparkles,-} from '~/components/svg';+} from '@librechat/client';+import type { IconMapProps, AgentIconMapProps, IconsRecord } from '~/common';import UnknownIcon from './UnknownIcon';import { cn } from '~/utils';diff --git a/client/src/hooks/Endpoint/UnknownIcon.tsx b/client/src/hooks/Endpoint/UnknownIcon.tsxindex dc2ad086b5..157c35dedb 100644--- a/client/src/hooks/Endpoint/UnknownIcon.tsx+++ b/client/src/hooks/Endpoint/UnknownIcon.tsx@@ -1,6 +1,6 @@import { memo } from 'react';+import { CustomMinimalIcon, XAIcon } from '@librechat/client';import { EModelEndpoint, KnownEndpoints } from 'librechat-data-provider';-import { CustomMinimalIcon, XAIcon } from '~/components/svg';import { IconContext } from '~/common';import { cn } from '~/utils';diff --git a/client/src/hooks/Files/useDelayedUploadToast.ts b/client/src/hooks/Files/useDelayedUploadToast.tsindex 3b0fd90ae5..53434e7d3a 100644--- a/client/src/hooks/Files/useDelayedUploadToast.ts+++ b/client/src/hooks/Files/useDelayedUploadToast.ts@@ -1,6 +1,6 @@import { useState } from 'react';-import { useToastContext } from '~/Providers/ToastContext';-import useLocalize from '~/hooks/useLocalize';+import { useToastContext } from '@librechat/client';+import { useLocalize } from '~/hooks';export const useDelayedUploadToast = () => {const localize = useLocalize();diff --git a/client/src/hooks/Files/useFileHandling.ts b/client/src/hooks/Files/useFileHandling.tsindex 3438417769..8c8f33e57e 100644--- a/client/src/hooks/Files/useFileHandling.ts+++ b/client/src/hooks/Files/useFileHandling.ts@@ -1,5 +1,6 @@import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';import { v4 } from 'uuid';+import { useToastContext } from '@librechat/client';import { useQueryClient } from '@tanstack/react-query';import {QueryKeys,@@ -17,7 +18,6 @@ import { useGetFileConfig, useUploadFileMutation } from '~/data-provider';import useLocalize, { TranslationKeys } from '~/hooks/useLocalize';import { useDelayedUploadToast } from './useDelayedUploadToast';import { processFileForUpload } from '~/utils/heicConverter';-import { useToastContext } from '~/Providers/ToastContext';import { useChatContext } from '~/Providers/ChatContext';import { logger, validateFiles } from '~/utils';import useClientResize from './useClientResize';diff --git a/client/src/hooks/Input/index.ts b/client/src/hooks/Input/index.tsindex bfc40ebb3e..dc959e3577 100644--- a/client/src/hooks/Input/index.ts+++ b/client/src/hooks/Input/index.ts@@ -2,7 +2,6 @@ export * from './useAutoSave';export { default as useUserKey } from './useUserKey';export { default as useDebounce } from './useDebounce';export { default as useTextarea } from './useTextarea';-export { default as useCombobox } from './useCombobox';export { default as useQueryParams } from './useQueryParams';export { default as useHandleKeyUp } from './useHandleKeyUp';export { default as useRequiresKey } from './useRequiresKey';diff --git a/client/src/hooks/Input/useSpeechToTextBrowser.ts b/client/src/hooks/Input/useSpeechToTextBrowser.tsindex 1d31c3348d..d4c301367f 100644--- a/client/src/hooks/Input/useSpeechToTextBrowser.ts+++ b/client/src/hooks/Input/useSpeechToTextBrowser.ts@@ -1,8 +1,8 @@import { useEffect, useRef, useMemo } from 'react';import { useRecoilState } from 'recoil';+import { useToastContext } from '@librechat/client';import SpeechRecognition, { useSpeechRecognition } from 'react-speech-recognition';import useGetAudioSettings from './useGetAudioSettings';-import { useToastContext } from '~/Providers';import store from '~/store';const useSpeechToTextBrowser = (diff --git a/client/src/hooks/Input/useSpeechToTextExternal.ts b/client/src/hooks/Input/useSpeechToTextExternal.tsindex 3160696e9c..6571a0911d 100644--- a/client/src/hooks/Input/useSpeechToTextExternal.ts+++ b/client/src/hooks/Input/useSpeechToTextExternal.ts@@ -1,8 +1,8 @@import { useState, useEffect, useRef } from 'react';import { useRecoilState } from 'recoil';+import { useToastContext } from '@librechat/client';import { useSpeechToTextMutation } from '~/data-provider';import useGetAudioSettings from './useGetAudioSettings';-import { useToastContext } from '~/Providers';import store from '~/store';const useSpeechToTextExternal = (@@ -107,7 +107,7 @@ const useSpeechToTextExternal = (});setPermission(true);audioStream.current = streamData ?? null;- } catch (err) {+ } catch {setPermission(false);}};@@ -268,6 +268,7 @@ const useSpeechToTextExternal = (return () => {window.removeEventListener('keydown', handleKeyDown);};+ // eslint-disable-next-line react-hooks/exhaustive-deps}, [isListening]);return {diff --git a/client/src/hooks/Input/useTextToSpeechExternal.ts b/client/src/hooks/Input/useTextToSpeechExternal.tsindex cf8edb0382..99c1a2344e 100644--- a/client/src/hooks/Input/useTextToSpeechExternal.ts+++ b/client/src/hooks/Input/useTextToSpeechExternal.ts@@ -1,8 +1,8 @@-import { useRecoilValue } from 'recoil';import { useState, useMemo, useRef, useCallback, useEffect } from 'react';+import { useRecoilValue } from 'recoil';+import { useToastContext } from '@librechat/client';import { useTextToSpeechMutation, useVoicesQuery } from '~/data-provider';-import { useToastContext } from '~/Providers/ToastContext';-import useLocalize from '~/hooks/useLocalize';+import { useLocalize } from '~/hooks';import store from '~/store';const createFormData = (text: string, voice: string) => {diff --git a/client/src/hooks/Input/useTextarea.ts b/client/src/hooks/Input/useTextarea.tsindex 7a0711e7ae..7d32cbbe02 100644--- a/client/src/hooks/Input/useTextarea.ts+++ b/client/src/hooks/Input/useTextarea.ts@@ -16,8 +16,8 @@ import useGetSender from '~/hooks/Conversations/useGetSender';import useFileHandling from '~/hooks/Files/useFileHandling';import { useInteractionHealthCheck } from '~/data-provider';import { useChatContext } from '~/Providers/ChatContext';-import useLocalize from '~/hooks/useLocalize';import { globalAudioId } from '~/common';+import { useLocalize } from '~/hooks';import store from '~/store';type KeyEvent = KeyboardEvent<HTMLTextAreaElement>;diff --git a/client/src/hooks/MCP/useMCPServerInitialization.ts b/client/src/hooks/MCP/useMCPServerInitialization.tsindex ec5ab2cc05..8a73c7d490 100644--- a/client/src/hooks/MCP/useMCPServerInitialization.ts+++ b/client/src/hooks/MCP/useMCPServerInitialization.ts@@ -1,12 +1,12 @@import { useCallback, useState, useEffect, useMemo } from 'react';-import { useQueryClient } from '@tanstack/react-query';+import { useToastContext } from '@librechat/client';import { QueryKeys } from 'librechat-data-provider';+import { useQueryClient } from '@tanstack/react-query';import {useReinitializeMCPServerMutation,useCancelMCPOAuthMutation,} from 'librechat-data-provider/react-query';import { useMCPConnectionStatusQuery } from '~/data-provider/Tools/queries';-import { useToastContext } from '~/Providers';import { useLocalize } from '~/hooks';import { logger } from '~/utils';diff --git a/client/src/hooks/MCP/useMCPServerManager.ts b/client/src/hooks/MCP/useMCPServerManager.tsindex 95891b47e5..a7d2c7c98c 100644--- a/client/src/hooks/MCP/useMCPServerManager.ts+++ b/client/src/hooks/MCP/useMCPServerManager.ts@@ -1,12 +1,12 @@+import { useCallback, useState, useMemo, useRef } from 'react';+import { useToastContext } from '@librechat/client';import { useQueryClient } from '@tanstack/react-query';import { Constants, QueryKeys } from 'librechat-data-provider';-import { useCallback, useState, useMemo, useRef } from 'react';import { useUpdateUserPluginsMutation } from 'librechat-data-provider/react-query';-import { useMCPServerInitialization } from '~/hooks/MCP/useMCPServerInitialization';-import type { ConfigFieldDetail } from '~/components/ui/MCP/MCPConfigDialog';import type { TUpdateUserPlugins, TPlugin } from 'librechat-data-provider';-import { useToastContext, useBadgeRowContext } from '~/Providers';-import { useLocalize } from '~/hooks';+import type { ConfigFieldDetail } from '~/components/MCP/MCPConfigDialog';+import { useLocalize, useMCPServerInitialization } from '~/hooks';+import { useBadgeRowContext } from '~/Providers';export function useMCPServerManager() {const localize = useLocalize();diff --git a/client/src/hooks/Nav/useSideNavLinks.ts b/client/src/hooks/Nav/useSideNavLinks.tsindex 728b856735..7345415215 100644--- a/client/src/hooks/Nav/useSideNavLinks.ts+++ b/client/src/hooks/Nav/useSideNavLinks.ts@@ -1,4 +1,5 @@import { useMemo } from 'react';+import { Blocks, MCPIcon, AttachmentIcon } from '@librechat/client';import { MessageSquareQuote, ArrowRightToLine, Settings2, Database, Bookmark } from 'lucide-react';import {isAssistantsEndpoint,@@ -15,7 +16,6 @@ import BookmarkPanel from '~/components/SidePanel/Bookmarks/BookmarkPanel';import MemoryViewer from '~/components/SidePanel/Memories/MemoryViewer';import PanelSwitch from '~/components/SidePanel/Builder/PanelSwitch';import PromptsAccordion from '~/components/Prompts/PromptsAccordion';-import { Blocks, MCPIcon, AttachmentIcon } from '~/components/svg';import Parameters from '~/components/SidePanel/Parameters/Panel';import FilesPanel from '~/components/SidePanel/Files/Panel';import MCPPanel from '~/components/SidePanel/MCP/MCPPanel';diff --git a/client/src/hooks/Plugins/useAuthCodeTool.ts b/client/src/hooks/Plugins/useAuthCodeTool.tsindex b33e05c169..f523fd01ef 100644--- a/client/src/hooks/Plugins/useAuthCodeTool.ts+++ b/client/src/hooks/Plugins/useAuthCodeTool.ts@@ -2,10 +2,8 @@ import { useCallback } from 'react';import { useQueryClient } from '@tanstack/react-query';import { AuthType, Tools, QueryKeys } from 'librechat-data-provider';import { useUpdateUserPluginsMutation } from 'librechat-data-provider/react-query';-// import { useToastContext } from '~/Providers';const useAuthCodeTool = (options?: { isEntityTool: boolean }) => {- // const { showToast } = useToastContext();const queryClient = useQueryClient();const isEntityTool = options?.isEntityTool ?? true;const updateUserPlugins = useUpdateUserPluginsMutation({diff --git a/client/src/hooks/Prompts/useCategories.tsx b/client/src/hooks/Prompts/useCategories.tsxindex a5083f8ed0..b4611e8dcc 100644--- a/client/src/hooks/Prompts/useCategories.tsx+++ b/client/src/hooks/Prompts/useCategories.tsx@@ -1,6 +1,6 @@import { useGetCategories } from '~/data-provider';import CategoryIcon from '~/components/Prompts/Groups/CategoryIcon';-import useLocalize, { TranslationKeys } from '~/hooks/useLocalize';+import { useLocalize, TranslationKeys } from '~/hooks';const loadingCategories: { label: TranslationKeys; value: string }[] = [{diff --git a/client/src/hooks/ScreenshotContext.tsx b/client/src/hooks/ScreenshotContext.tsxindex 2f9069c5f1..435327e571 100644--- a/client/src/hooks/ScreenshotContext.tsx+++ b/client/src/hooks/ScreenshotContext.tsx@@ -1,6 +1,6 @@import { createContext, useRef, useContext, RefObject } from 'react';import { toCanvas } from 'html-to-image';-import { ThemeContext } from '~/hooks/ThemeContext';+import { ThemeContext } from '@librechat/client';type ScreenshotContextType = {ref?: RefObject<HTMLDivElement>;diff --git a/client/src/hooks/index.ts b/client/src/hooks/index.tsindex 83cdb7fbc4..92fd39e370 100644--- a/client/src/hooks/index.ts+++ b/client/src/hooks/index.ts@@ -8,30 +8,26 @@ export * from './Nav';export * from './Files';export * from './Generic';export * from './Input';+export * from './MCP';export * from './Messages';export * from './Plugins';export * from './Prompts';export * from './Roles';export * from './SSE';export * from './AuthContext';-export * from './ThemeContext';export * from './ScreenshotContext';export * from './ApiErrorBoundaryContext';export * from './Endpoint';export type { TranslationKeys } from './useLocalize';-export { default as useToast } from './useToast';export { default as useTimeout } from './useTimeout';export { default as useNewConvo } from './useNewConvo';export { default as useLocalize } from './useLocalize';-export { default as useMediaQuery } from './useMediaQuery';export { default as useChatBadges } from './useChatBadges';export { default as useScrollToRef } from './useScrollToRef';export { default as useLocalStorage } from './useLocalStorage';export { default as useDocumentTitle } from './useDocumentTitle';-export { default as useDelayedRender } from './useDelayedRender';-export { default as useOnClickOutside } from './useOnClickOutside';export { default as useSpeechToText } from './Input/useSpeechToText';export { default as useTextToSpeech } from './Input/useTextToSpeech';export { default as useGenerationsByLatest } from './useGenerationsByLatest';diff --git a/client/src/locales/Translation.spec.ts b/client/src/locales/Translation.spec.tsindex 89c7b1d7b7..6c6e1b7ac8 100644--- a/client/src/locales/Translation.spec.ts+++ b/client/src/locales/Translation.spec.ts@@ -1,9 +1,8 @@-// Translation.spec.ts-import i18n from './i18n';import English from './en/translation.json';import French from './fr/translation.json';import Spanish from './es/translation.json';+import { TranslationKeys } from '~/hooks';describe('i18next translation tests', () => {// Ensure i18next is initialized before any tests run@@ -36,7 +35,7 @@ describe('i18next translation tests', () => {it('should return the key itself for an invalid key', () => {i18n.changeLanguage('en');- expect(i18n.t('invalid-key')).toBe('invalid-key'); // Returns the key itself+ expect(i18n.t('invalid-key' as TranslationKeys)).toBe('invalid-key'); // Returns the key itself});it('should correctly format placeholders in the translation', () => {@@ -46,4 +45,4 @@ describe('i18next translation tests', () => {i18n.changeLanguage('fr');expect(i18n.t('com_endpoint_default_with_num', { 0: 'Marie' })).toBe('par défaut : Marie');});-});\ No newline at end of file+});diff --git a/client/src/locales/en/translation.json b/client/src/locales/en/translation.jsonindex 95aa05fee2..444f869ddb 100644--- a/client/src/locales/en/translation.json+++ b/client/src/locales/en/translation.json@@ -1072,7 +1072,6 @@"com_ui_use_backup_code": "Use Backup Code Instead","com_ui_use_memory": "Use memory","com_ui_use_micrphone": "Use microphone",- "com_ui_use_prompt": "Use prompt","com_ui_used": "Used","com_ui_value": "Value","com_ui_variables": "Variables",@@ -1110,4 +1109,4 @@"com_ui_yes": "Yes","com_ui_zoom": "Zoom","com_user_message": "You"-}\ No newline at end of file+}diff --git a/client/src/routes/ChatRoute.tsx b/client/src/routes/ChatRoute.tsxindex 77c6d73976..d81cbc075c 100644--- a/client/src/routes/ChatRoute.tsx+++ b/client/src/routes/ChatRoute.tsx@@ -1,4 +1,5 @@import { useEffect } from 'react';+import { Spinner } from '@librechat/client';import { useParams } from 'react-router-dom';import { Constants, EModelEndpoint } from 'librechat-data-provider';import { useGetModelsQuery } from 'librechat-data-provider/react-query';@@ -10,7 +11,6 @@ import { ToolCallsMapProvider } from '~/Providers';import ChatView from '~/components/Chat/ChatView';import useAuthRedirect from './useAuthRedirect';import temporaryStore from '~/store/temporary';-import { Spinner } from '~/components/svg';import { useRecoilCallback } from 'recoil';import store from '~/store';diff --git a/client/src/routes/Layouts/DashBreadcrumb.tsx b/client/src/routes/Layouts/DashBreadcrumb.tsxindex 0138e63abc..c6db3a18bc 100644--- a/client/src/routes/Layouts/DashBreadcrumb.tsx+++ b/client/src/routes/Layouts/DashBreadcrumb.tsx@@ -14,7 +14,7 @@ import {// DropdownMenuItem,// DropdownMenuContent,// DropdownMenuTrigger,-} from '~/components/ui';+} from '@librechat/client';import { useLocalize, useCustomLink, useAuthContext } from '~/hooks';import AdvancedSwitch from '~/components/Prompts/AdvancedSwitch';// import { RightPanel } from '../../components/Prompts/RightPanel';diff --git a/client/src/routes/Root.tsx b/client/src/routes/Root.tsxindex 42ef88c344..bede0ba54f 100644--- a/client/src/routes/Root.tsx+++ b/client/src/routes/Root.tsx@@ -14,8 +14,8 @@ import {FileMapContext,SetConvoProvider,} from '~/Providers';-import TermsAndConditionsModal from '~/components/ui/TermsAndConditionsModal';import { useUserTermsQuery, useGetStartupConfig } from '~/data-provider';+import { TermsAndConditionsModal } from '~/components/ui';import { Nav, MobileNav } from '~/components/Nav';import { useHealthCheck } from '~/data-provider';import { Banner } from '~/components/Banners';diff --git a/client/src/routes/RouteErrorBoundary.tsx b/client/src/routes/RouteErrorBoundary.tsxindex 6221ab25b8..f112e29d7d 100644--- a/client/src/routes/RouteErrorBoundary.tsx+++ b/client/src/routes/RouteErrorBoundary.tsx@@ -1,5 +1,6 @@+/* eslint-disable i18next/no-literal-string */+import { Button } from '@librechat/client';import { useRouteError } from 'react-router-dom';-import { Button } from '~/components/ui';import logger from '~/utils/logger';interface UserAgentData {diff --git a/client/src/routes/Search.tsx b/client/src/routes/Search.tsxindex 9508806dfc..f7992745cd 100644--- a/client/src/routes/Search.tsx+++ b/client/src/routes/Search.tsx@@ -1,11 +1,11 @@import { useEffect, useMemo } from 'react';import { useRecoilValue } from 'recoil';+import { Spinner, useToastContext } from '@librechat/client';import MinimalMessagesWrapper from '~/components/Chat/Messages/MinimalMessages';import { useNavScrolling, useLocalize, useAuthContext } from '~/hooks';import SearchMessage from '~/components/Chat/Messages/SearchMessage';-import { useToastContext, useFileMapContext } from '~/Providers';import { useMessagesInfiniteQuery } from '~/data-provider';-import { Spinner } from '~/components';+import { useFileMapContext } from '~/Providers';import { buildTree } from '~/utils';import store from '~/store';@@ -23,7 +23,7 @@ export default function Search() {isError,fetchNextPage,isFetchingNextPage,- hasNextPage,+ hasNextPage: _hasNextPage,} = useMessagesInfiniteQuery({search: searchQuery || undefined,diff --git a/client/src/style.css b/client/src/style.cssindex 4139dfd043..d401bf5a12 100644--- a/client/src/style.css+++ b/client/src/style.css@@ -51,6 +51,7 @@--amber-800: #92400e;--amber-900: #78350f;--amber-950: #451a03;+ --brand-purple: #ab68ff;--gizmo-gray-500: #999;--gizmo-gray-600: #666;--gizmo-gray-950: #0f0f0f;@@ -61,6 +62,7 @@--font-size-xl: 1.25rem;}html {+ --brand-purple: #ab68ff;--presentation: var(--white);--text-primary: var(--gray-800);--text-secondary: var(--gray-600);@@ -121,6 +123,7 @@ html {--switch-unchecked: 0 0% 58%;}.dark {+ --brand-purple: #ab68ff;--presentation: var(--gray-800);--text-primary: var(--gray-100);--text-secondary: var(--gray-300);diff --git a/client/src/utils/files.ts b/client/src/utils/files.tsindex 3ca07e51d0..e989090127 100644--- a/client/src/utils/files.ts+++ b/client/src/utils/files.ts@@ -1,3 +1,4 @@+import { SheetPaths, TextPaths, FilePaths, CodePaths } from '~/components/svg';import {megabyte,QueryKeys,@@ -8,10 +9,6 @@ import {import type { TFile, EndpointFileConfig } from 'librechat-data-provider';import type { QueryClient } from '@tanstack/react-query';import type { ExtendedFile } from '~/common';-import SheetPaths from '~/components/svg/Files/SheetPaths';-import TextPaths from '~/components/svg/Files/TextPaths';-import FilePaths from '~/components/svg/Files/FilePaths';-import CodePaths from '~/components/svg/Files/CodePaths';export const partialTypes = ['text/x-'];diff --git a/client/src/utils/getThemeFromEnv.js b/client/src/utils/getThemeFromEnv.jsnew file mode 100644index 0000000000..b294d799a6--- /dev/null+++ b/client/src/utils/getThemeFromEnv.js@@ -0,0 +1,58 @@+/**+ * Loads theme configuration from environment variables+ * @returns {import('@librechat/client').IThemeRGB | undefined}+ */+export function getThemeFromEnv() {+ // Check if any theme environment variables are set+ const hasThemeEnvVars = Object.keys(process.env).some((key) =>+ key.startsWith('REACT_APP_THEME_'),+ );++ if (!hasThemeEnvVars) {+ return undefined; // Use default themes+ }++ // Build theme object from environment variables+ const theme = {};++ // Helper to get env value with prefix+ const getEnv = (key) => process.env[`REACT_APP_THEME_${key}`];++ // Text colors+ if (getEnv('TEXT_PRIMARY')) theme['rgb-text-primary'] = getEnv('TEXT_PRIMARY');+ if (getEnv('TEXT_SECONDARY')) theme['rgb-text-secondary'] = getEnv('TEXT_SECONDARY');+ if (getEnv('TEXT_TERTIARY')) theme['rgb-text-tertiary'] = getEnv('TEXT_TERTIARY');+ if (getEnv('TEXT_WARNING')) theme['rgb-text-warning'] = getEnv('TEXT_WARNING');++ // Surface colors+ if (getEnv('SURFACE_PRIMARY')) theme['rgb-surface-primary'] = getEnv('SURFACE_PRIMARY');+ if (getEnv('SURFACE_SECONDARY')) theme['rgb-surface-secondary'] = getEnv('SURFACE_SECONDARY');+ if (getEnv('SURFACE_TERTIARY')) theme['rgb-surface-tertiary'] = getEnv('SURFACE_TERTIARY');+ if (getEnv('SURFACE_SUBMIT')) theme['rgb-surface-submit'] = getEnv('SURFACE_SUBMIT');+ if (getEnv('SURFACE_SUBMIT_HOVER'))+ theme['rgb-surface-submit-hover'] = getEnv('SURFACE_SUBMIT_HOVER');+ if (getEnv('SURFACE_DESTRUCTIVE'))+ theme['rgb-surface-destructive'] = getEnv('SURFACE_DESTRUCTIVE');+ if (getEnv('SURFACE_DESTRUCTIVE_HOVER'))+ theme['rgb-surface-destructive-hover'] = getEnv('SURFACE_DESTRUCTIVE_HOVER');+ if (getEnv('SURFACE_DIALOG')) theme['rgb-surface-dialog'] = getEnv('SURFACE_DIALOG');+ if (getEnv('SURFACE_CHAT')) theme['rgb-surface-chat'] = getEnv('SURFACE_CHAT');++ // Border colors+ if (getEnv('BORDER_LIGHT')) theme['rgb-border-light'] = getEnv('BORDER_LIGHT');+ if (getEnv('BORDER_MEDIUM')) theme['rgb-border-medium'] = getEnv('BORDER_MEDIUM');+ if (getEnv('BORDER_HEAVY')) theme['rgb-border-heavy'] = getEnv('BORDER_HEAVY');+ if (getEnv('BORDER_XHEAVY')) theme['rgb-border-xheavy'] = getEnv('BORDER_XHEAVY');++ // Brand colors+ if (getEnv('BRAND_PURPLE')) theme['rgb-brand-purple'] = getEnv('BRAND_PURPLE');++ // Header colors+ if (getEnv('HEADER_PRIMARY')) theme['rgb-header-primary'] = getEnv('HEADER_PRIMARY');+ if (getEnv('HEADER_HOVER')) theme['rgb-header-hover'] = getEnv('HEADER_HOVER');++ // Presentation+ if (getEnv('PRESENTATION')) theme['rgb-presentation'] = getEnv('PRESENTATION');++ return Object.keys(theme).length > 0 ? theme : undefined;+}diff --git a/client/src/utils/index.ts b/client/src/utils/index.tsindex 82bf1f8a49..b86676a48a 100644--- a/client/src/utils/index.ts+++ b/client/src/utils/index.ts@@ -4,7 +4,6 @@ export * from './map';export * from './json';export * from './files';export * from './latex';-export * from './theme';export * from './forms';export * from './drafts';export * from './convos';@@ -25,6 +24,7 @@ export { default as cleanupPreset } from './cleanupPreset';export { default as buildDefaultConvo } from './buildDefaultConvo';export { default as getDefaultEndpoint } from './getDefaultEndpoint';export { default as createChatSearchParams } from './createChatSearchParams';+export { getThemeFromEnv } from './getThemeFromEnv';export const languages = ['java',diff --git a/client/tailwind.config.cjs b/client/tailwind.config.cjsindex f114a87334..e2f493ad60 100644--- a/client/tailwind.config.cjs+++ b/client/tailwind.config.cjs@@ -2,7 +2,11 @@/** @type {import('tailwindcss').Config} */module.exports = {- content: ['./src/**/*.{js,jsx,ts,tsx}'],+ content: [+ './src/**/*.{js,jsx,ts,tsx}',+ // Include component library files+ '../packages/client/src/**/*.{js,jsx,ts,tsx}',+ ],// darkMode: 'class',darkMode: ['class'],theme: {@@ -61,8 +65,8 @@ module.exports = {800: '#06373e',900: '#031f29',},- 'brand-purple': '#ab68ff',- 'presentation': 'var(--presentation)',+ 'brand-purple': 'var(--brand-purple)',+ presentation: 'var(--presentation)','text-primary': 'var(--text-primary)','text-secondary': 'var(--text-secondary)','text-secondary-alt': 'var(--text-secondary-alt)',@@ -135,7 +139,7 @@ module.exports = {},plugins: [require('tailwindcss-animate'),- require('tailwindcss-radix')(),+ require('tailwindcss-radix'),// require('@tailwindcss/typography'),],};diff --git a/client/test/setupTests.js b/client/test/setupTests.jsindex 043c7cdf67..c489fc8b5b 100644--- a/client/test/setupTests.js+++ b/client/test/setupTests.js@@ -20,6 +20,21 @@ import 'jest-canvas-mock';// Mock ResizeObserverimport './resizeObserver.mock';+// Mock window.matchMedia+Object.defineProperty(window, 'matchMedia', {+ writable: true,+ value: jest.fn().mockImplementation((query) => ({+ matches: false,+ media: query,+ onchange: null,+ addListener: jest.fn(), // deprecated+ removeListener: jest.fn(), // deprecated+ addEventListener: jest.fn(),+ removeEventListener: jest.fn(),+ dispatchEvent: jest.fn(),+ })),+});+beforeEach(() => {jest.clearAllMocks();});diff --git a/client/tsconfig.json b/client/tsconfig.jsonindex ba00b0d24c..59ea7f46cd 100644--- a/client/tsconfig.json+++ b/client/tsconfig.json@@ -35,5 +35,5 @@"test/setupTests.js","env.d.ts","../config/translations/**/*.ts"- ]+, "../packages/client/src/hooks/useDelayedRender.tsx" ]}diff --git a/config/update.js b/config/update.jsindex e0dba111e5..d6ffd55904 100644--- a/config/update.js+++ b/config/update.js@@ -19,6 +19,7 @@ const directories = [rootDir,path.resolve(rootDir, 'packages', 'data-provider'),path.resolve(rootDir, 'packages', 'data-schemas'),+ path.resolve(rootDir, 'packages', 'client'),path.resolve(rootDir, 'packages', 'api'),path.resolve(rootDir, 'client'),path.resolve(rootDir, 'api'),diff --git a/package-lock.json b/package-lock.jsonindex 97df522f40..9cef1c6644 100644--- a/package-lock.json+++ b/package-lock.json@@ -2744,6 +2744,7 @@"@dicebear/collection": "^9.2.2","@dicebear/core": "^9.2.2","@headlessui/react": "^2.1.2",+ "@librechat/client": "*","@marsidev/react-turnstile": "^1.1.0","@radix-ui/react-accordion": "^1.1.2","@radix-ui/react-alert-dialog": "^1.0.2",@@ -2766,8 +2767,8 @@"@react-spring/web": "^9.7.5","@tanstack/react-query": "^4.28.0","@tanstack/react-table": "^8.11.7",- "class-variance-authority": "^0.6.0",- "clsx": "^1.2.1",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1","copy-to-clipboard": "^3.3.3","cross-env": "^7.0.3","date-fns": "^3.3.1",@@ -2780,11 +2781,12 @@"i18next": "^24.2.2","i18next-browser-languagedetector": "^8.0.3","input-otp": "^1.4.2",+ "jotai": "^2.12.5","js-cookie": "^3.0.5","librechat-data-provider": "*","lodash": "^4.17.21","lucide-react": "^0.394.0",- "match-sorter": "^6.3.4",+ "match-sorter": "^8.1.0","micromark-extension-llm-math": "^3.1.0","qrcode.react": "^4.2.0","rc-input-number": "^7.4.2",@@ -2860,58 +2862,6 @@"vite-plugin-pwa": "^0.21.2"}},- "client/node_modules/@ariakit/react": {- "version": "0.4.15",- "resolved": "https://registry.npmjs.org/@ariakit/react/-/react-0.4.15.tgz",- "integrity": "sha512-0V2LkNPFrGRT+SEIiObx/LQjR6v3rR+mKEDUu/3tq7jfCZ+7+6Q6EMR1rFaK+XMkaRY1RWUcj/rRDWAUWnsDww==",- "dependencies": {- "@ariakit/react-core": "0.4.15"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/ariakit"- },- "peerDependencies": {- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"- }- },- "client/node_modules/@ariakit/react-core": {- "version": "0.4.17",- "resolved": "https://registry.npmjs.org/@ariakit/react-core/-/react-core-0.4.17.tgz",- "integrity": "sha512-kFF6n+gC/5CRQIyaMTFoBPio2xUe0k9rZhMNdUobWRmc/twfeLVkODx+8UVYaNyKilTge8G0JFqwvFKku/jKEw==",- "license": "MIT",- "dependencies": {- "@ariakit/core": "0.4.15",- "@floating-ui/dom": "^1.0.0",- "use-sync-external-store": "^1.2.0"- },- "peerDependencies": {- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"- }- },- "client/node_modules/@ariakit/react-core/node_modules/@ariakit/core": {- "version": "0.4.15",- "resolved": "https://registry.npmjs.org/@ariakit/core/-/core-0.4.15.tgz",- "integrity": "sha512-vvxmZvkNhiisKM+Y1TbGMUfVVchV/sWu9F0xw0RYADXcimWPK31dd9JnIZs/OQ5pwAryAHmERHwuGQVESkSjwQ==",- "license": "MIT"- },- "client/node_modules/@ariakit/react/node_modules/@ariakit/react-core": {- "version": "0.4.15",- "resolved": "https://registry.npmjs.org/@ariakit/react-core/-/react-core-0.4.15.tgz",- "integrity": "sha512-Up8+U97nAPJdyUh9E8BCEhJYTA+eVztWpHoo1R9zZfHd4cnBWAg5RHxEmMH+MamlvuRxBQA71hFKY/735fDg+A==",- "license": "MIT",- "dependencies": {- "@ariakit/core": "0.4.14",- "@floating-ui/dom": "^1.0.0",- "use-sync-external-store": "^1.2.0"- },- "peerDependencies": {- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"- }- },"client/node_modules/@babel/compat-data": {"version": "7.26.8","resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz",@@ -4612,6 +4562,22 @@"@dicebear/core": "^9.0.0"}},+ "client/node_modules/@react-spring/web": {+ "version": "9.7.5",+ "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.7.5.tgz",+ "integrity": "sha512-lmvqGwpe+CSttsWNZVr+Dg62adtKhauGwLyGE/RRyZ8AAMLgb9x3NDMA5RMElXo+IMyTkPp7nxTB8ZQlmhb6JQ==",+ "license": "MIT",+ "dependencies": {+ "@react-spring/animated": "~9.7.5",+ "@react-spring/core": "~9.7.5",+ "@react-spring/shared": "~9.7.5",+ "@react-spring/types": "~9.7.5"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"+ }+ },"client/node_modules/@types/jest": {"version": "29.5.14","resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz",@@ -4811,6 +4777,33 @@"node": ">=6"}},+ "client/node_modules/framer-motion": {+ "version": "11.18.2",+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.18.2.tgz",+ "integrity": "sha512-5F5Och7wrvtLVElIpclDT0CBzMVg3dL22B64aZwHtsIY8RB4mXICLrkajK4G9R+ieSAGcgrLeae2SeUTg2pr6w==",+ "license": "MIT",+ "dependencies": {+ "motion-dom": "^11.18.1",+ "motion-utils": "^11.18.1",+ "tslib": "^2.4.0"+ },+ "peerDependencies": {+ "@emotion/is-prop-valid": "*",+ "react": "^18.0.0 || ^19.0.0",+ "react-dom": "^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@emotion/is-prop-valid": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ }+ }+ },"client/node_modules/globals": {"version": "11.12.0","resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",@@ -4821,6 +4814,15 @@"node": ">=4"}},+ "client/node_modules/lucide-react": {+ "version": "0.394.0",+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.394.0.tgz",+ "integrity": "sha512-PzTbJ0bsyXRhH59k5qe7MpTd5MxlpYZUcM9kGSwvPGAfnn0J6FElDwu2EX6Vuh//F7y60rcVJiFQ7EK9DCMgfw==",+ "license": "ISC",+ "peerDependencies": {+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0"+ }+ },"client/node_modules/node-releases": {"version": "2.0.19","resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",@@ -4843,16 +4845,6 @@"node": ">=0.10.0"}},- "client/node_modules/react-resizable-panels": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-3.0.2.tgz",- "integrity": "sha512-j4RNII75fnHkLnbsTb5G5YsDvJsSEZrJK2XSF2z0Tc2jIonYlIVir/Yh/5LvcUFCfs1HqrMAoiBFmIrRjC4XnA==",- "license": "MIT",- "peerDependencies": {- "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",- "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"- }- },"client/node_modules/ts-jest": {"version": "29.2.5","resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.2.5.tgz",@@ -5027,9 +5019,42 @@}},"node_modules/@ariakit/core": {- "version": "0.4.14",- "resolved": "https://registry.npmjs.org/@ariakit/core/-/core-0.4.14.tgz",- "integrity": "sha512-hpzZvyYzGhP09S9jW1XGsU/FD5K3BKsH1eG/QJ8rfgEeUdPS7BvHPt5lHbOeJ2cMrRzBEvsEzLi1ivfDifHsVA=="+ "version": "0.4.15",+ "resolved": "https://registry.npmjs.org/@ariakit/core/-/core-0.4.15.tgz",+ "integrity": "sha512-vvxmZvkNhiisKM+Y1TbGMUfVVchV/sWu9F0xw0RYADXcimWPK31dd9JnIZs/OQ5pwAryAHmERHwuGQVESkSjwQ==",+ "license": "MIT"+ },+ "node_modules/@ariakit/react": {+ "version": "0.4.17",+ "resolved": "https://registry.npmjs.org/@ariakit/react/-/react-0.4.17.tgz",+ "integrity": "sha512-HQaIboE2axtlncJz1hRTaiQfJ1GGjhdtNcAnPwdjvl2RybfmlHowIB+HTVBp36LzroKPs/M4hPCxk7XTaqRZGg==",+ "license": "MIT",+ "dependencies": {+ "@ariakit/react-core": "0.4.17"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/ariakit"+ },+ "peerDependencies": {+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@ariakit/react-core": {+ "version": "0.4.17",+ "resolved": "https://registry.npmjs.org/@ariakit/react-core/-/react-core-0.4.17.tgz",+ "integrity": "sha512-kFF6n+gC/5CRQIyaMTFoBPio2xUe0k9rZhMNdUobWRmc/twfeLVkODx+8UVYaNyKilTge8G0JFqwvFKku/jKEw==",+ "license": "MIT",+ "dependencies": {+ "@ariakit/core": "0.4.15",+ "@floating-ui/dom": "^1.0.0",+ "use-sync-external-store": "^1.2.0"+ },+ "peerDependencies": {+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"+ }},"node_modules/@aws-crypto/crc32": {"version": "3.0.0",@@ -17750,6 +17775,25 @@"tslib": "^2.4.0"}},+ "node_modules/@emotion/is-prop-valid": {+ "version": "0.8.8",+ "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",+ "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "@emotion/memoize": "0.7.4"+ }+ },+ "node_modules/@emotion/memoize": {+ "version": "0.7.4",+ "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz",+ "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==",+ "license": "MIT",+ "optional": true,+ "peer": true+ },"node_modules/@esbuild/aix-ppc64": {"version": "0.25.1","resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.1.tgz",@@ -19028,21 +19072,23 @@}},"node_modules/@headlessui/react": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-2.1.2.tgz",- "integrity": "sha512-Kb3hgk9gRNRcTZktBrKdHhF3xFhYkca1Rk6e1/im2ENf83dgN54orMW0uSKTXFnUpZOUFZ+wcY05LlipwgZIFQ==",+ "version": "2.2.4",+ "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-2.2.4.tgz",+ "integrity": "sha512-lz+OGcAH1dK93rgSMzXmm1qKOJkBUqZf1L4M8TWLNplftQD3IkoEDdUFNfAn4ylsN6WOTVtWaLmvmaHOUk1dTA==",+ "license": "MIT","dependencies": {"@floating-ui/react": "^0.26.16",- "@react-aria/focus": "^3.17.1",- "@react-aria/interactions": "^3.21.3",- "@tanstack/react-virtual": "^3.8.1"+ "@react-aria/focus": "^3.20.2",+ "@react-aria/interactions": "^3.25.0",+ "@tanstack/react-virtual": "^3.13.9",+ "use-sync-external-store": "^1.5.0"},"engines": {"node": ">=10"},"peerDependencies": {- "react": "^18",- "react-dom": "^18"+ "react": "^18 || ^19 || ^19.0.0-rc",+ "react-dom": "^18 || ^19 || ^19.0.0-rc"}},"node_modules/@humanfs/core": {@@ -22143,6 +22189,10 @@"resolved": "api","link": true},+ "node_modules/@librechat/client": {+ "resolved": "packages/client",+ "link": true+ },"node_modules/@librechat/data-schemas": {"resolved": "packages/data-schemas","link": true@@ -22872,12 +22922,10 @@"integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw=="},"node_modules/@radix-ui/number": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.0.1.tgz",- "integrity": "sha512-T5gIdVO2mmPW3NNhjNgEP3cqMXjXL9UbO0BzWcXfvdBs+BohbQxvd/K5hSVKmn9/lbTdsQVKbUcP5WLCwvUbBg==",- "dependencies": {- "@babel/runtime": "^7.13.10"- }+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.1.tgz",+ "integrity": "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==",+ "license": "MIT"},"node_modules/@radix-ui/primitive": {"version": "1.0.1",@@ -22888,26 +22936,144 @@}},"node_modules/@radix-ui/react-accordion": {+ "version": "1.2.11",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.11.tgz",+ "integrity": "sha512-l3W5D54emV2ues7jjeG1xcyN7S3jnK3zE2zHqgn0CmMsy9lNJwmgcrmaxS+7ipw15FAivzKNzH3d5EcGoFKw0A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-collapsible": "1.1.11",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.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-accordion/node_modules/@radix-ui/primitive": {"version": "1.1.2",- "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.1.2.tgz",- "integrity": "sha512-fDG7jcoNKVjSK6yfmuAs0EnPDro0WMXIhMtXdTBWqEioVW206ku+4Lw07e+13lUkFkpoEQ2PdeMIAGpdqEAmDg==",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz",+ "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-collection": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz",+ "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==",+ "license": "MIT","dependencies": {- "@babel/runtime": "^7.13.10",- "@radix-ui/primitive": "1.0.1",- "@radix-ui/react-collapsible": "1.0.3",- "@radix-ui/react-collection": "1.0.3",- "@radix-ui/react-compose-refs": "1.0.1",- "@radix-ui/react-context": "1.0.1",- "@radix-ui/react-direction": "1.0.1",- "@radix-ui/react-id": "1.0.1",- "@radix-ui/react-primitive": "1.0.3",- "@radix-ui/react-use-controllable-state": "1.0.1"+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3"},"peerDependencies": {"@types/react": "*","@types/react-dom": "*",- "react": "^16.8 || ^17.0 || ^18.0",- "react-dom": "^16.8 || ^17.0 || ^18.0"+ "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/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-context": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-direction": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",+ "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-id": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",+ "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "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": {@@ -22918,6 +23084,58 @@}}},+ "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-effect-event": "0.0.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-accordion/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-alert-dialog": {"version": "1.0.5","resolved": "https://registry.npmjs.org/@radix-ui/react-alert-dialog/-/react-alert-dialog-1.0.5.tgz",@@ -23000,25 +23218,25 @@}},"node_modules/@radix-ui/react-collapsible": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.0.3.tgz",- "integrity": "sha512-UBmVDkmR6IvDsloHVN+3rtx4Mi5TFvylYXpluuv0f37dtaz3H99bp8No0LGXRigVpl3UAT4l9j6bIchh42S/Gg==",+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.11.tgz",+ "integrity": "sha512-2qrRsVGSCYasSz1RFOorXwl0H7g7J1frQtgpQgYrt+MOidtPAINHn9CPovQXb83r8ahapdx3Tu0fa/pdFFSdPg==",+ "license": "MIT","dependencies": {- "@babel/runtime": "^7.13.10",- "@radix-ui/primitive": "1.0.1",- "@radix-ui/react-compose-refs": "1.0.1",- "@radix-ui/react-context": "1.0.1",- "@radix-ui/react-id": "1.0.1",- "@radix-ui/react-presence": "1.0.1",- "@radix-ui/react-primitive": "1.0.3",- "@radix-ui/react-use-controllable-state": "1.0.1",- "@radix-ui/react-use-layout-effect": "1.0.1"+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-presence": "1.1.4",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"},"peerDependencies": {"@types/react": "*","@types/react-dom": "*",- "react": "^16.8 || ^17.0 || ^18.0",- "react-dom": "^16.8 || ^17.0 || ^18.0"+ "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": {@@ -23029,6 +23247,159 @@}}},+ "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/primitive": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz",+ "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-context": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-id": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",+ "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-presence": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.4.tgz",+ "integrity": "sha512-ueDqRbdc4/bkaQT3GIpLQssRlFgWaL/U2z/S31qRwwLWoxHLgry3SIfCwhxeQNbirEUXFa+lq3RL3oBYXtcmIA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "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/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "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-collapsible/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-effect-event": "0.0.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collapsible/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-collection": {"version": "1.0.3","resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.3.tgz",@@ -23441,18 +23812,18 @@}},"node_modules/@radix-ui/react-label": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.0.2.tgz",- "integrity": "sha512-N5ehvlM7qoTLx7nWPodsPYPgMzA5WM8zZChQg8nyFJKnDO5WHdba1vv5/H6IO5LtJMfD2Q3wh1qHFGNtK0w3bQ==",+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.7.tgz",+ "integrity": "sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==",+ "license": "MIT","dependencies": {- "@babel/runtime": "^7.13.10",- "@radix-ui/react-primitive": "1.0.3"+ "@radix-ui/react-primitive": "2.1.3"},"peerDependencies": {"@types/react": "*","@types/react-dom": "*",- "react": "^16.8 || ^17.0 || ^18.0",- "react-dom": "^16.8 || ^17.0 || ^18.0"+ "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": {@@ -23463,6 +23834,62 @@}}},+ "node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "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-label/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-menu": {"version": "2.1.1","resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.1.tgz",@@ -24183,27 +24610,27 @@}},"node_modules/@radix-ui/react-radio-group": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.1.3.tgz",- "integrity": "sha512-x+yELayyefNeKeTx4fjK6j99Fs6c4qKm3aY38G3swQVTN6xMpsrbigC0uHs2L//g8q4qR7qOcww8430jJmi2ag==",+ "version": "1.3.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.3.7.tgz",+ "integrity": "sha512-9w5XhD0KPOrm92OTTE0SysH3sYzHsSTHNvZgUBo/VZ80VdYyB5RneDbc0dKpURS24IxkoFRu/hI0i4XyfFwY6g==",+ "license": "MIT","dependencies": {- "@babel/runtime": "^7.13.10",- "@radix-ui/primitive": "1.0.1",- "@radix-ui/react-compose-refs": "1.0.1",- "@radix-ui/react-context": "1.0.1",- "@radix-ui/react-direction": "1.0.1",- "@radix-ui/react-presence": "1.0.1",- "@radix-ui/react-primitive": "1.0.3",- "@radix-ui/react-roving-focus": "1.0.4",- "@radix-ui/react-use-controllable-state": "1.0.1",- "@radix-ui/react-use-previous": "1.0.1",- "@radix-ui/react-use-size": "1.0.1"+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-presence": "1.1.4",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-roving-focus": "1.1.10",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1"},"peerDependencies": {"@types/react": "*","@types/react-dom": "*",- "react": "^16.8 || ^17.0 || ^18.0",- "react-dom": "^16.8 || ^17.0 || ^18.0"+ "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": {@@ -24214,6 +24641,279 @@}}},+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/primitive": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz",+ "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-collection": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz",+ "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "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-radio-group/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-context": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-direction": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",+ "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-id": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",+ "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-presence": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.4.tgz",+ "integrity": "sha512-ueDqRbdc4/bkaQT3GIpLQssRlFgWaL/U2z/S31qRwwLWoxHLgry3SIfCwhxeQNbirEUXFa+lq3RL3oBYXtcmIA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "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/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "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-radio-group/node_modules/@radix-ui/react-roving-focus": {+ "version": "1.1.10",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.10.tgz",+ "integrity": "sha512-dT9aOXUen9JSsxnMPv/0VqySQf5eDQ6LCk5Sw28kamz8wSOW2bJdlX2Bg5VUIIcV+6XlHpWTIuTPCf/UNIyq8Q==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-controllable-state": "1.2.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-radio-group/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz",+ "integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-effect-event": "0.0.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-previous": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",+ "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-use-size": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",+ "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-roving-focus": {"version": "1.0.4","resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.4.tgz",@@ -24246,38 +24946,255 @@}},"node_modules/@radix-ui/react-select": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.0.0.tgz",- "integrity": "sha512-RH5b7af4oHtkcHS7pG6Sgv5rk5Wxa7XI8W5gvB1N/yiuDGZxko1ynvOiVhFM7Cis2A8zxF9bTOUVbRDzPepe6w==",+ "version": "2.2.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.2.5.tgz",+ "integrity": "sha512-HnMTdXEVuuyzx63ME0ut4+sEMYW6oouHWNGUZc7ddvUWIcfCva/AMoqEW/3wnEllriMWBa0RHspCYnfCWJQYmA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/number": "1.1.1",+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-dismissable-layer": "1.1.10",+ "@radix-ui/react-focus-guards": "1.1.2",+ "@radix-ui/react-focus-scope": "1.1.7",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-popper": "1.2.7",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-layout-effect": "1.1.1",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-visually-hidden": "1.2.3",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.6.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-select/node_modules/@radix-ui/primitive": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz",+ "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-arrow": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.7.tgz",+ "integrity": "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==",+ "license": "MIT","dependencies": {- "@babel/runtime": "^7.13.10",- "@radix-ui/number": "1.0.1",- "@radix-ui/primitive": "1.0.1",- "@radix-ui/react-collection": "1.0.3",- "@radix-ui/react-compose-refs": "1.0.1",- "@radix-ui/react-context": "1.0.1",- "@radix-ui/react-direction": "1.0.1",- "@radix-ui/react-dismissable-layer": "1.0.5",- "@radix-ui/react-focus-guards": "1.0.1",- "@radix-ui/react-focus-scope": "1.0.4",- "@radix-ui/react-id": "1.0.1",- "@radix-ui/react-popper": "1.1.3",- "@radix-ui/react-portal": "1.0.4",- "@radix-ui/react-primitive": "1.0.3",- "@radix-ui/react-slot": "1.0.2",- "@radix-ui/react-use-callback-ref": "1.0.1",- "@radix-ui/react-use-controllable-state": "1.0.1",- "@radix-ui/react-use-layout-effect": "1.0.1",- "@radix-ui/react-use-previous": "1.0.1",- "@radix-ui/react-visually-hidden": "1.0.3",- "aria-hidden": "^1.1.1",- "react-remove-scroll": "2.5.5"+ "@radix-ui/react-primitive": "2.1.3"},"peerDependencies": {"@types/react": "*","@types/react-dom": "*",- "react": "^16.8 || ^17.0 || ^18.0",- "react-dom": "^16.8 || ^17.0 || ^18.0"+ "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/node_modules/@radix-ui/react-collection": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz",+ "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "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-select/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-context": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-direction": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",+ "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.1.10",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.10.tgz",+ "integrity": "sha512-IM1zzRV4W3HtVgftdQiiOmA0AdJlCtMLe00FXaHwgt3rAnNsIyDqshvkIW3hj/iu5hu8ERP7KIYki6NkqDxAwQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-escape-keydown": "1.1.1"+ },+ "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/node_modules/@radix-ui/react-focus-guards": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.2.tgz",+ "integrity": "sha512-fyjAACV62oPV925xFCrH8DR5xWhg9KYtJT4s3u54jxp+L/hbpTY2kIeEFFbFe+a/HCE94zGQMZLIpVTPVZDhaA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-focus-scope": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz",+ "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1"+ },+ "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/node_modules/@radix-ui/react-id": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",+ "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-popper": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.2.7.tgz",+ "integrity": "sha512-IUFAccz1JyKcf/RjB552PlWwxjeCJB8/4KxT7EhBHOJM+mN7LdW+B3kacJXILm32xawcMMjb2i0cIZpo+f9kiQ==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/react-dom": "^2.0.0",+ "@radix-ui/react-arrow": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-layout-effect": "1.1.1",+ "@radix-ui/react-use-rect": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1",+ "@radix-ui/rect": "1.1.1"+ },+ "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": {@@ -24288,19 +25205,256 @@}}},+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-portal": {+ "version": "1.1.9",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.9.tgz",+ "integrity": "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "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/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "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-select/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz",+ "integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-effect-event": "0.0.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-escape-keydown": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.1.tgz",+ "integrity": "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-callback-ref": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-previous": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",+ "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-rect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.1.tgz",+ "integrity": "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/rect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-use-size": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",+ "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-visually-hidden": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.3.tgz",+ "integrity": "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.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-select/node_modules/@radix-ui/rect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.1.tgz",+ "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-select/node_modules/react-remove-scroll": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.1.tgz",+ "integrity": "sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==",+ "license": "MIT",+ "dependencies": {+ "react-remove-scroll-bar": "^2.3.7",+ "react-style-singleton": "^2.2.3",+ "tslib": "^2.1.0",+ "use-callback-ref": "^1.3.3",+ "use-sidecar": "^1.1.3"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-separator": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.0.3.tgz",- "integrity": "sha512-itYmTy/kokS21aiV5+Z56MZB54KrhPgn6eHDKkFeOLR34HMN2s8PaN47qZZAGnvupcjxHaFZnW4pQEh0BvvVuw==",+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.7.tgz",+ "integrity": "sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==",+ "license": "MIT","dependencies": {- "@babel/runtime": "^7.13.10",- "@radix-ui/react-primitive": "1.0.3"+ "@radix-ui/react-primitive": "2.1.3"},"peerDependencies": {"@types/react": "*","@types/react-dom": "*",- "react": "^16.8 || ^17.0 || ^18.0",- "react-dom": "^16.8 || ^17.0 || ^18.0"+ "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": {@@ -24311,29 +25465,185 @@}}},+ "node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "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-separator/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-slider": {+ "version": "1.3.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.3.5.tgz",+ "integrity": "sha512-rkfe2pU2NBAYfGaxa3Mqosi7VZEWX5CxKaanRv0vZd4Zhl9fvQrg0VM93dv3xGLGfrHuoTRF3JXH8nb9g+B3fw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/number": "1.1.1",+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-layout-effect": "1.1.1",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1"+ },+ "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-slider/node_modules/@radix-ui/primitive": {"version": "1.1.2",- "resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.1.2.tgz",- "integrity": "sha512-NKs15MJylfzVsCagVSWKhGGLNR1W9qWs+HtgbmjjVUB3B9+lb3PYoXxVju3kOrpf0VKyVCtZp+iTwVoqpa1Chw==",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz",+ "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-collection": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz",+ "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==",+ "license": "MIT","dependencies": {- "@babel/runtime": "^7.13.10",- "@radix-ui/number": "1.0.1",- "@radix-ui/primitive": "1.0.1",- "@radix-ui/react-collection": "1.0.3",- "@radix-ui/react-compose-refs": "1.0.1",- "@radix-ui/react-context": "1.0.1",- "@radix-ui/react-direction": "1.0.1",- "@radix-ui/react-primitive": "1.0.3",- "@radix-ui/react-use-controllable-state": "1.0.1",- "@radix-ui/react-use-layout-effect": "1.0.1",- "@radix-ui/react-use-previous": "1.0.1",- "@radix-ui/react-use-size": "1.0.1"+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3"},"peerDependencies": {"@types/react": "*","@types/react-dom": "*",- "react": "^16.8 || ^17.0 || ^18.0",- "react-dom": "^16.8 || ^17.0 || ^18.0"+ "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-slider/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-context": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-direction": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",+ "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "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": {@@ -24344,6 +25654,91 @@}}},+ "node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-effect-event": "0.0.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-use-previous": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",+ "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-use-size": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",+ "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-slot": {"version": "1.0.2","resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz",@@ -24363,24 +25758,24 @@}},"node_modules/@radix-ui/react-switch": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.0.3.tgz",- "integrity": "sha512-mxm87F88HyHztsI7N+ZUmEoARGkC22YVW5CaC+Byc+HRpuvCrOBPTAnXgf+tZ/7i0Sg/eOePGdMhUKhPaQEqow==",+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.2.5.tgz",+ "integrity": "sha512-5ijLkak6ZMylXsaImpZ8u4Rlf5grRmoc0p0QeX9VJtlrM4f5m3nCTX8tWga/zOA8PZYIR/t0p2Mnvd7InrJ6yQ==",+ "license": "MIT","dependencies": {- "@babel/runtime": "^7.13.10",- "@radix-ui/primitive": "1.0.1",- "@radix-ui/react-compose-refs": "1.0.1",- "@radix-ui/react-context": "1.0.1",- "@radix-ui/react-primitive": "1.0.3",- "@radix-ui/react-use-controllable-state": "1.0.1",- "@radix-ui/react-use-previous": "1.0.1",- "@radix-ui/react-use-size": "1.0.1"+ "@radix-ui/primitive": "1.1.2",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1"},"peerDependencies": {"@types/react": "*","@types/react-dom": "*",- "react": "^16.8 || ^17.0 || ^18.0",- "react-dom": "^16.8 || ^17.0 || ^18.0"+ "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": {@@ -24391,6 +25786,150 @@}}},+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/primitive": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz",+ "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-context": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "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-switch/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-effect-event": "0.0.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-previous": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",+ "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-switch/node_modules/@radix-ui/react-use-size": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",+ "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-tabs": {"version": "1.0.4","resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.0.4.tgz",@@ -24490,6 +26029,39 @@}}},+ "node_modules/@radix-ui/react-use-effect-event": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz",+ "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-effect-event/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-use-escape-keydown": {"version": "1.0.3","resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.3.tgz",@@ -24621,49 +26193,43 @@}},"node_modules/@react-aria/focus": {- "version": "3.17.1",- "resolved": "https://registry.npmjs.org/@react-aria/focus/-/focus-3.17.1.tgz",- "integrity": "sha512-FLTySoSNqX++u0nWZJPPN5etXY0WBxaIe/YuL/GTEeuqUIuC/2bJSaw5hlsM6T2yjy6Y/VAxBcKSdAFUlU6njQ==",+ "version": "3.20.5",+ "resolved": "https://registry.npmjs.org/@react-aria/focus/-/focus-3.20.5.tgz",+ "integrity": "sha512-JpFtXmWQ0Oca7FcvkqgjSyo6xEP7v3oQOLUId6o0xTvm4AD5W0mU2r3lYrbhsJ+XxdUUX4AVR5473sZZ85kU4A==","license": "Apache-2.0","dependencies": {- "@react-aria/interactions": "^3.21.3",- "@react-aria/utils": "^3.24.1",- "@react-types/shared": "^3.23.1",+ "@react-aria/interactions": "^3.25.3",+ "@react-aria/utils": "^3.29.1",+ "@react-types/shared": "^3.30.0","@swc/helpers": "^0.5.0","clsx": "^2.0.0"},"peerDependencies": {- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"- }- },- "node_modules/@react-aria/focus/node_modules/clsx": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",- "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",- "license": "MIT",- "engines": {- "node": ">=6"+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},"node_modules/@react-aria/interactions": {- "version": "3.21.3",- "resolved": "https://registry.npmjs.org/@react-aria/interactions/-/interactions-3.21.3.tgz",- "integrity": "sha512-BWIuf4qCs5FreDJ9AguawLVS0lV9UU+sK4CCnbCNNmYqOWY+1+gRXCsnOM32K+oMESBxilAjdHW5n1hsMqYMpA==",+ "version": "3.25.3",+ "resolved": "https://registry.npmjs.org/@react-aria/interactions/-/interactions-3.25.3.tgz",+ "integrity": "sha512-J1bhlrNtjPS/fe5uJQ+0c7/jiXniwa4RQlP+Emjfc/iuqpW2RhbF9ou5vROcLzWIyaW8tVMZ468J68rAs/aZ5A==","license": "Apache-2.0","dependencies": {- "@react-aria/ssr": "^3.9.4",- "@react-aria/utils": "^3.24.1",- "@react-types/shared": "^3.23.1",+ "@react-aria/ssr": "^3.9.9",+ "@react-aria/utils": "^3.29.1",+ "@react-stately/flags": "^3.1.2",+ "@react-types/shared": "^3.30.0","@swc/helpers": "^0.5.0"},"peerDependencies": {- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},"node_modules/@react-aria/ssr": {- "version": "3.9.4",- "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.9.4.tgz",- "integrity": "sha512-4jmAigVq409qcJvQyuorsmBR4+9r3+JEC60wC+Y0MZV0HCtTmm8D9guYXlJMdx0SSkgj0hHAyFm/HvPNFofCoQ==",+ "version": "3.9.9",+ "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.9.9.tgz",+ "integrity": "sha512-2P5thfjfPy/np18e5wD4WPt8ydNXhij1jwA8oehxZTFqlgVMGXzcWKxTb4RtJrLFsqPO7RUQTiY8QJk0M4Vy2g==","license": "Apache-2.0","dependencies": {"@swc/helpers": "^0.5.0"@@ -24672,32 +26238,25 @@"node": ">= 12"},"peerDependencies": {- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},"node_modules/@react-aria/utils": {- "version": "3.24.1",- "resolved": "https://registry.npmjs.org/@react-aria/utils/-/utils-3.24.1.tgz",- "integrity": "sha512-O3s9qhPMd6n42x9sKeJ3lhu5V1Tlnzhu6Yk8QOvDuXf7UGuUjXf9mzfHJt1dYzID4l9Fwm8toczBzPM9t0jc8Q==",+ "version": "3.29.1",+ "resolved": "https://registry.npmjs.org/@react-aria/utils/-/utils-3.29.1.tgz",+ "integrity": "sha512-yXMFVJ73rbQ/yYE/49n5Uidjw7kh192WNN9PNQGV0Xoc7EJUlSOxqhnpHmYTyO0EotJ8fdM1fMH8durHjUSI8g==","license": "Apache-2.0","dependencies": {- "@react-aria/ssr": "^3.9.4",- "@react-stately/utils": "^3.10.1",- "@react-types/shared": "^3.23.1",+ "@react-aria/ssr": "^3.9.9",+ "@react-stately/flags": "^3.1.2",+ "@react-stately/utils": "^3.10.7",+ "@react-types/shared": "^3.30.0","@swc/helpers": "^0.5.0","clsx": "^2.0.0"},"peerDependencies": {- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"- }- },- "node_modules/@react-aria/utils/node_modules/clsx": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",- "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",- "license": "MIT",- "engines": {- "node": ">=6"+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},"node_modules/@react-dnd/asap": {@@ -24792,40 +26351,111 @@"license": "MIT"},"node_modules/@react-spring/web": {- "version": "9.7.5",- "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.7.5.tgz",- "integrity": "sha512-lmvqGwpe+CSttsWNZVr+Dg62adtKhauGwLyGE/RRyZ8AAMLgb9x3NDMA5RMElXo+IMyTkPp7nxTB8ZQlmhb6JQ==",+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-10.0.1.tgz",+ "integrity": "sha512-FgQk02OqFrYyJBTTnBTWAU0WPzkHkKXauc6aeexcvATvLapUxwnfGuLlsLYF8BYjEVfkivPT04ziAue6zyRBtQ==","license": "MIT",+ "peer": true,"dependencies": {- "@react-spring/animated": "~9.7.5",- "@react-spring/core": "~9.7.5",- "@react-spring/shared": "~9.7.5",- "@react-spring/types": "~9.7.5"+ "@react-spring/animated": "~10.0.1",+ "@react-spring/core": "~10.0.1",+ "@react-spring/shared": "~10.0.1",+ "@react-spring/types": "~10.0.1"},"peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@react-spring/web/node_modules/@react-spring/animated": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-10.0.1.tgz",+ "integrity": "sha512-BGL3hA66Y8Qm3KmRZUlfG/mFbDPYajgil2/jOP0VXf2+o2WPVmcDps/eEgdDqgf5Pv9eBbyj7LschLMuSjlW3Q==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@react-spring/shared": "~10.0.1",+ "@react-spring/types": "~10.0.1"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@react-spring/web/node_modules/@react-spring/core": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-10.0.1.tgz",+ "integrity": "sha512-KaMMsN1qHuVTsFpg/5ajAVye7OEqhYbCq0g4aKM9bnSZlDBBYpO7Uf+9eixyXN8YEbF+YXaYj9eoWDs+npZ+sA==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@react-spring/animated": "~10.0.1",+ "@react-spring/shared": "~10.0.1",+ "@react-spring/types": "~10.0.1"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/react-spring/donate"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@react-spring/web/node_modules/@react-spring/rafz": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-10.0.1.tgz",+ "integrity": "sha512-UrzG/d6Is+9i0aCAjsjWRqIlFFiC4lFqFHrH63zK935z2YDU95TOFio4VKGISJ5SG0xq4ULy7c1V3KU+XvL+Yg==",+ "license": "MIT",+ "peer": true+ },+ "node_modules/@react-spring/web/node_modules/@react-spring/shared": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-10.0.1.tgz",+ "integrity": "sha512-KR2tmjDShPruI/GGPfAZOOLvDgkhFseabjvxzZFFggJMPkyICLjO0J6mCIoGtdJSuHywZyc4Mmlgi+C88lS00g==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@react-spring/rafz": "~10.0.1",+ "@react-spring/types": "~10.0.1"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@react-spring/web/node_modules/@react-spring/types": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-10.0.1.tgz",+ "integrity": "sha512-Fk1wYVAKL+ZTYK+4YFDpHf3Slsy59pfFFvnnTfRjQQFGlyIo4VejPtDs3CbDiuBjM135YztRyZjIH2VbycB+ZQ==",+ "license": "MIT",+ "peer": true+ },+ "node_modules/@react-stately/flags": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@react-stately/flags/-/flags-3.1.2.tgz",+ "integrity": "sha512-2HjFcZx1MyQXoPqcBGALwWWmgFVUk2TuKVIQxCbRq7fPyWXIl6VHcakCLurdtYC2Iks7zizvz0Idv48MQ38DWg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@swc/helpers": "^0.5.0"}},"node_modules/@react-stately/utils": {- "version": "3.10.1",- "resolved": "https://registry.npmjs.org/@react-stately/utils/-/utils-3.10.1.tgz",- "integrity": "sha512-VS/EHRyicef25zDZcM/ClpzYMC5i2YGN6uegOeQawmgfGjb02yaCX0F0zR69Pod9m2Hr3wunTbtpgVXvYbZItg==",+ "version": "3.10.7",+ "resolved": "https://registry.npmjs.org/@react-stately/utils/-/utils-3.10.7.tgz",+ "integrity": "sha512-cWvjGAocvy4abO9zbr6PW6taHgF24Mwy/LbQ4TC4Aq3tKdKDntxyD+sh7AkSRfJRT2ccMVaHVv2+FfHThd3PKQ==","license": "Apache-2.0","dependencies": {"@swc/helpers": "^0.5.0"},"peerDependencies": {- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},"node_modules/@react-types/shared": {- "version": "3.23.1",- "resolved": "https://registry.npmjs.org/@react-types/shared/-/shared-3.23.1.tgz",- "integrity": "sha512-5d+3HbFDxGZjhbMBeFHRQhexMFt4pUce3okyRtUVKbbedQFUrtXSBg9VszgF2RTeQDKDkMCIQDtz5ccP/Lk1gw==",+ "version": "3.30.0",+ "resolved": "https://registry.npmjs.org/@react-types/shared/-/shared-3.30.0.tgz",+ "integrity": "sha512-COIazDAx1ncDg046cTJ8SFYsX8aS3lB/08LDnbkH/SkdYrFPWDlXMrO/sUam8j1WWM+PJ+4d1mj7tODIKNiFog==","license": "Apache-2.0","peerDependencies": {- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},"node_modules/@redis/bloom": {@@ -27082,12 +28712,12 @@}},"node_modules/@swc/helpers": {- "version": "0.5.11",- "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.11.tgz",- "integrity": "sha512-YNlnKRWF2sVojTpIyzwou9XoTNbzbzONwRhOoniEioF1AtaitTvVZblaQRrAzChWQ1bLYyYSWzM18y4WwgzJ+A==",+ "version": "0.5.17",+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.17.tgz",+ "integrity": "sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==","license": "Apache-2.0","dependencies": {- "tslib": "^2.4.0"+ "tslib": "^2.8.0"}},"node_modules/@tanstack/match-sorter-utils": {@@ -27181,20 +28811,20 @@}},"node_modules/@tanstack/react-virtual": {- "version": "3.8.2",- "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.8.2.tgz",- "integrity": "sha512-g78+DA29K0ByAfDkuibfLQqDshf8Aha/zcyEZ+huAX/yS/TWj/CUiEY4IJfDrFacdxIFmsLm0u4VtsLSKTngRw==",+ "version": "3.13.12",+ "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.13.12.tgz",+ "integrity": "sha512-Gd13QdxPSukP8ZrkbgS2RwoZseTTbQPLnQEn7HY/rqtM+8Zt95f7xKC7N0EsKs7aoz0WzZ+fditZux+F8EzYxA==","license": "MIT","dependencies": {- "@tanstack/virtual-core": "3.8.2"+ "@tanstack/virtual-core": "3.13.12"},"funding": {"type": "github","url": "https://github.com/sponsors/tannerlinsley"},"peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},"node_modules/@tanstack/table-core": {@@ -27210,9 +28840,9 @@}},"node_modules/@tanstack/virtual-core": {- "version": "3.8.2",- "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.8.2.tgz",- "integrity": "sha512-ffpN6kTaPGwQPoWMcBAHbdv2ZCpj1SugldoYAcY0C4xH+Pej1KCOEUisNeEgbUnXOp8Y/4q6wGPu2tFHthOIQw==",+ "version": "3.13.12",+ "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.13.12.tgz",+ "integrity": "sha512-1YBOJfRHV4sXUmWsFSf5rQor4Ss82G8dQWLRbnk3GA4jeP8hQt1hxXh0tmflpC0dz3VgEv/1+qwPyLeWkQuPFA==","license": "MIT","funding": {"type": "github",@@ -27350,6 +28980,16 @@"node": ">= 10"}},+ "node_modules/@trysound/sax": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz",+ "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10.13.0"+ }+ },"node_modules/@tsconfig/node10": {"version": "1.0.11","resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz",@@ -28540,9 +30180,10 @@"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="},"node_modules/aria-hidden": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.3.tgz",- "integrity": "sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==",+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz",+ "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==",+ "license": "MIT","dependencies": {"tslib": "^2.0.0"},@@ -29629,6 +31270,19 @@"node": ">= 6"}},+ "node_modules/caniuse-api": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",+ "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.0.0",+ "caniuse-lite": "^1.0.0",+ "lodash.memoize": "^4.1.2",+ "lodash.uniq": "^4.5.0"+ }+ },"node_modules/caniuse-lite": {"version": "1.0.30001706","resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001706.tgz",@@ -29857,14 +31511,15 @@"dev": true},"node_modules/class-variance-authority": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.6.1.tgz",- "integrity": "sha512-eurOEGc7YVx3majOrOb099PNKgO3KnKSApOprXI4BTq6bcfbqbQXPN2u+rPPmIJ2di23bMwhk0SxCCthBmszEQ==",+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",+ "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",+ "license": "Apache-2.0","dependencies": {- "clsx": "1.2.1"+ "clsx": "^2.1.1"},"funding": {- "url": "https://joebell.co.uk"+ "url": "https://polar.sh/cva"}},"node_modules/classnames": {@@ -30020,9 +31675,10 @@}},"node_modules/clsx": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",- "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT","engines": {"node": ">=6"}@@ -30177,6 +31833,13 @@"simple-swizzle": "^0.2.2"}},+ "node_modules/colord": {+ "version": "2.9.3",+ "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz",+ "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/colorette": {"version": "2.0.20","resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz",@@ -30235,6 +31898,16 @@"url": "https://github.com/sponsors/wooorm"}},+ "node_modules/commander": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",+ "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 10"+ }+ },"node_modules/common-tags": {"version": "1.8.2","resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz",@@ -30306,6 +31979,16 @@"node": ">= 6"}},+ "node_modules/concat-with-sourcemaps": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz",+ "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "source-map": "^0.6.1"+ }+ },"node_modules/console-browserify": {"version": "1.2.0","resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz",@@ -30656,6 +32339,19 @@"postcss": "^8.4"}},+ "node_modules/css-declaration-sorter": {+ "version": "6.4.1",+ "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz",+ "integrity": "sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^10 || ^12 || >=14"+ },+ "peerDependencies": {+ "postcss": "^8.0.9"+ }+ },"node_modules/css-has-pseudo": {"version": "5.0.2","resolved": "https://registry.npmjs.org/css-has-pseudo/-/css-has-pseudo-5.0.2.tgz",@@ -30709,6 +32405,20 @@"url": "https://github.com/sponsors/fb55"}},+ "node_modules/css-tree": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz",+ "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mdn-data": "2.0.14",+ "source-map": "^0.6.1"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },"node_modules/css-what": {"version": "6.1.0","resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz",@@ -30760,6 +32470,108 @@"integrity": "sha512-6tun4LoZnj7VN6YeegOVb67KBX/7JJsqvj+pv3ZA7F878/eN33AbGa5b/S/wXxS/tcp8nc40xRUrsPlxIyNUPg==","dev": true},+ "node_modules/cssnano": {+ "version": "5.1.15",+ "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.15.tgz",+ "integrity": "sha512-j+BKgDcLDQA+eDifLx0EO4XSA56b7uut3BQFH+wbSaSTuGLuiyTa/wbRYthUXX8LC9mLg+WWKe8h+qJuwTAbHw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssnano-preset-default": "^5.2.14",+ "lilconfig": "^2.0.3",+ "yaml": "^1.10.2"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/cssnano"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/cssnano-preset-default": {+ "version": "5.2.14",+ "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.14.tgz",+ "integrity": "sha512-t0SFesj/ZV2OTylqQVOrFgEh5uanxbO6ZAdeCrNsUQ6fVuXwYTxJPNAGvGTxHbD68ldIJNec7PyYZDBrfDQ+6A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "css-declaration-sorter": "^6.3.1",+ "cssnano-utils": "^3.1.0",+ "postcss-calc": "^8.2.3",+ "postcss-colormin": "^5.3.1",+ "postcss-convert-values": "^5.1.3",+ "postcss-discard-comments": "^5.1.2",+ "postcss-discard-duplicates": "^5.1.0",+ "postcss-discard-empty": "^5.1.1",+ "postcss-discard-overridden": "^5.1.0",+ "postcss-merge-longhand": "^5.1.7",+ "postcss-merge-rules": "^5.1.4",+ "postcss-minify-font-values": "^5.1.0",+ "postcss-minify-gradients": "^5.1.1",+ "postcss-minify-params": "^5.1.4",+ "postcss-minify-selectors": "^5.2.1",+ "postcss-normalize-charset": "^5.1.0",+ "postcss-normalize-display-values": "^5.1.0",+ "postcss-normalize-positions": "^5.1.1",+ "postcss-normalize-repeat-style": "^5.1.1",+ "postcss-normalize-string": "^5.1.0",+ "postcss-normalize-timing-functions": "^5.1.0",+ "postcss-normalize-unicode": "^5.1.1",+ "postcss-normalize-url": "^5.1.0",+ "postcss-normalize-whitespace": "^5.1.1",+ "postcss-ordered-values": "^5.1.3",+ "postcss-reduce-initial": "^5.1.2",+ "postcss-reduce-transforms": "^5.1.0",+ "postcss-svgo": "^5.1.0",+ "postcss-unique-selectors": "^5.1.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/cssnano-utils": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz",+ "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/cssnano/node_modules/yaml": {+ "version": "1.10.2",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/csso": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz",+ "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "css-tree": "^1.1.2"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },"node_modules/cssom": {"version": "0.5.0","resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz",@@ -33425,17 +35237,20 @@}},"node_modules/framer-motion": {- "version": "11.5.4",- "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.5.4.tgz",- "integrity": "sha512-E+tb3/G6SO69POkdJT+3EpdMuhmtCh9EWuK4I1DnIC23L7tFPrl8vxP+LSovwaw6uUr73rUbpb4FgK011wbRJQ==",+ "version": "12.23.9",+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.23.9.tgz",+ "integrity": "sha512-TqEHXj8LWfQSKqfdr5Y4mYltYLw96deu6/K9kGDd+ysqRJPNwF9nb5mZcrLmybHbU7gcJ+HQar41U3UTGanbbQ==","license": "MIT",+ "peer": true,"dependencies": {+ "motion-dom": "^12.23.9",+ "motion-utils": "^12.23.6","tslib": "^2.4.0"},"peerDependencies": {"@emotion/is-prop-valid": "*",- "react": "^18.0.0",- "react-dom": "^18.0.0"+ "react": "^18.0.0 || ^19.0.0",+ "react-dom": "^18.0.0 || ^19.0.0"},"peerDependenciesMeta": {"@emotion/is-prop-valid": {@@ -33449,6 +35264,23 @@}}},+ "node_modules/framer-motion/node_modules/motion-dom": {+ "version": "12.23.9",+ "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.23.9.tgz",+ "integrity": "sha512-6Sv++iWS8XMFCgU1qwKj9l4xuC47Hp4+2jvPfyTXkqDg2tTzSgX6nWKD4kNFXk0k7llO59LZTPuJigza4A2K1A==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "motion-utils": "^12.23.6"+ }+ },+ "node_modules/framer-motion/node_modules/motion-utils": {+ "version": "12.23.6",+ "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.23.6.tgz",+ "integrity": "sha512-eAWoPgr4eFEOFfg2WjIsMoqJTW6Z8MTUCgn/GZ3VRpClWBdnbjryiA3ZSNLyxCTmCQx4RmYX6jX1iWHbenUPNQ==",+ "license": "MIT",+ "peer": true+ },"node_modules/fresh": {"version": "0.5.2","resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",@@ -33591,6 +35423,16 @@"node": ">=12"}},+ "node_modules/generic-names": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/generic-names/-/generic-names-4.0.0.tgz",+ "integrity": "sha512-ySFolZQfw9FoDb3ed9d80Cm9f0+r7qj+HJkWjeD9RBfpxEVTlVhol+gvaQB/78WbwYfbnNh8nWHHBSlg072y6A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "loader-utils": "^3.2.0"+ }+ },"node_modules/generic-pool": {"version": "3.9.0","resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz",@@ -33977,7 +35819,8 @@"node_modules/hamt_plus": {"version": "1.0.2","resolved": "https://registry.npmjs.org/hamt_plus/-/hamt_plus-1.0.2.tgz",- "integrity": "sha512-t2JXKaehnMb9paaYA7J0BX8QQAY8lwfQ9Gjf4pg/mk4krt+cmwmU652HOoWonf+7+EQV97ARPMhhVgU1ra2GhA=="+ "integrity": "sha512-t2JXKaehnMb9paaYA7J0BX8QQAY8lwfQ9Gjf4pg/mk4krt+cmwmU652HOoWonf+7+EQV97ARPMhhVgU1ra2GhA==",+ "license": "MIT"},"node_modules/handlebars": {"version": "4.7.8",@@ -34586,9 +36429,9 @@}},"node_modules/i18next-browser-languagedetector": {- "version": "8.0.3",- "resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-8.0.3.tgz",- "integrity": "sha512-beOOLArattPBc2YZG5IXGJytdYFgUR7cS8Wd6HT4IczIoWKgmTspOQ2yasaGklelVo5seLPmnEKvLHR+E/MdWQ==",+ "version": "8.2.0",+ "resolved": "https://registry.npmjs.org/i18next-browser-languagedetector/-/i18next-browser-languagedetector-8.2.0.tgz",+ "integrity": "sha512-P+3zEKLnOF0qmiesW383vsLdtQVyKtCNA9cjSoKCppTKPQVfKd2W8hbVo5ZhNJKDqeM7BOcvNoKJOjpHh4Js9g==","license": "MIT","dependencies": {"@babel/runtime": "^7.23.2"@@ -34706,6 +36549,26 @@"node": ">=0.10.0"}},+ "node_modules/icss-replace-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz",+ "integrity": "sha512-chIaY3Vh2mh2Q3RGXttaDIzeiPvaVXJ+C4DAh/w3c37SKZ/U6PGMmuicR2EQQp9bKG8zLMCl7I+PtIoOOPp8Gg==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/icss-utils": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",+ "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },"node_modules/idb": {"version": "7.1.1","resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz",@@ -34757,6 +36620,19 @@"integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==","dev": true},+ "node_modules/import-cwd": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-3.0.0.tgz",+ "integrity": "sha512-4pnzH16plW+hgvRECbDWpQl3cqtvSofHWh44met7ESfZ8UZOWWddm8hEyDTqREJ9RbYHY8gi8DqmaelApoOGMg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "import-from": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/import-fresh": {"version": "3.3.0","resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",@@ -34773,6 +36649,29 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/import-from": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz",+ "integrity": "sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "resolve-from": "^5.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/import-from/node_modules/resolve-from": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/import-local": {"version": "3.1.0","resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz",@@ -34860,14 +36759,6 @@"resolved": "https://registry.npmjs.org/intersection-observer/-/intersection-observer-0.10.0.tgz","integrity": "sha512-fn4bQ0Xq8FTej09YC/jqKZwtijpvARlRp6wxL5WTA6yPe2YWSJ5RJh7Nm79rK2qB0wr6iDQzH60XGq5V/7u8YQ=="},- "node_modules/invariant": {- "version": "2.2.4",- "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",- "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",- "dependencies": {- "loose-envify": "^1.0.0"- }- },"node_modules/ioredis": {"version": "5.3.2","resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.3.2.tgz",@@ -36425,6 +38316,27 @@"url": "https://github.com/sponsors/panva"}},+ "node_modules/jotai": {+ "version": "2.12.5",+ "resolved": "https://registry.npmjs.org/jotai/-/jotai-2.12.5.tgz",+ "integrity": "sha512-G8m32HW3lSmcz/4mbqx0hgJIQ0ekndKWiYP7kWVKi0p6saLXdSoye+FZiOFyonnd7Q482LCzm8sMDl7Ar1NWDw==",+ "license": "MIT",+ "engines": {+ "node": ">=12.20.0"+ },+ "peerDependencies": {+ "@types/react": ">=17.0.0",+ "react": ">=17.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "react": {+ "optional": true+ }+ }+ },"node_modules/js-base64": {"version": "3.7.2","resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz",@@ -37347,6 +39259,16 @@"node": ">=6.11.5"}},+ "node_modules/loader-utils": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.3.1.tgz",+ "integrity": "sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 12.13.0"+ }+ },"node_modules/locate-path": {"version": "6.0.0","resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",@@ -37451,6 +39373,13 @@"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz","integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ=="},+ "node_modules/lodash.uniq": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",+ "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/log-update": {"version": "6.1.0","resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz",@@ -37785,11 +39714,13 @@"license": "ISC"},"node_modules/lucide-react": {- "version": "0.394.0",- "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.394.0.tgz",- "integrity": "sha512-PzTbJ0bsyXRhH59k5qe7MpTd5MxlpYZUcM9kGSwvPGAfnn0J6FElDwu2EX6Vuh//F7y60rcVJiFQ7EK9DCMgfw==",+ "version": "0.525.0",+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.525.0.tgz",+ "integrity": "sha512-Tm1txJ2OkymCGkvwoHt33Y2JpN5xucVq1slHcgE6Lk0WjDfjgKWor5CdVER8U6DvcfMwh4M8XxmpTiyzfmfDYQ==",+ "license": "ISC",+ "peer": true,"peerDependencies": {- "react": "^16.5.1 || ^17.0.0 || ^18.0.0"+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},"node_modules/lz-string": {@@ -37805,6 +39736,7 @@"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz","integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==","dev": true,+ "license": "MIT","dependencies": {"@jridgewell/sourcemap-codec": "^1.5.0"}@@ -37849,9 +39781,10 @@}},"node_modules/match-sorter": {- "version": "6.3.4",- "resolved": "https://registry.npmjs.org/match-sorter/-/match-sorter-6.3.4.tgz",- "integrity": "sha512-jfZW7cWS5y/1xswZo8VBOdudUiSd9nifYRWphc9M5D/ee4w4AoXLgBEdRbgVaxbMuagBPeUC5y2Hi8DO6o9aDg==",+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/match-sorter/-/match-sorter-8.1.0.tgz",+ "integrity": "sha512-0HX3BHPixkbECX+Vt7nS1vJ6P2twPgGTU3PMXjWrl1eyVCL24tFHeyYN1FN5RKLzve0TyzNI9qntqQGbebnfPQ==",+ "license": "MIT","dependencies": {"@babel/runtime": "^7.23.8","remove-accents": "0.5.0"@@ -37860,7 +39793,8 @@"node_modules/match-sorter/node_modules/remove-accents": {"version": "0.5.0","resolved": "https://registry.npmjs.org/remove-accents/-/remove-accents-0.5.0.tgz",- "integrity": "sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A=="+ "integrity": "sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A==",+ "license": "MIT"},"node_modules/math-intrinsics": {"version": "1.1.0",@@ -38486,6 +40420,13 @@"url": "https://opencollective.com/unified"}},+ "node_modules/mdn-data": {+ "version": "2.0.14",+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz",+ "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==",+ "dev": true,+ "license": "CC0-1.0"+ },"node_modules/media-typer": {"version": "0.3.0","resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",@@ -39466,6 +41407,21 @@"color-name": "^1.1.4"}},+ "node_modules/motion-dom": {+ "version": "11.18.1",+ "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-11.18.1.tgz",+ "integrity": "sha512-g76KvA001z+atjfxczdRtw/RXOM3OMSdd1f4DL77qCTF/+avrRJiawSG4yDibEQ215sr9kpinSlX2pCTJ9zbhw==",+ "license": "MIT",+ "dependencies": {+ "motion-utils": "^11.18.1"+ }+ },+ "node_modules/motion-utils": {+ "version": "11.18.1",+ "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-11.18.1.tgz",+ "integrity": "sha512-49Kt+HKjtbJKLtgO/LKj9Ld+6vw9BjH5d9sc40R/kVyH8GLAXgT42M2NnuPcJNuA3s9ZfZBUcwIgpmZWGEE+hA==",+ "license": "MIT"+ },"node_modules/mpath": {"version": "0.9.0","resolved": "https://registry.npmjs.org/mpath/-/mpath-0.9.0.tgz",@@ -39890,6 +41846,19 @@"node": ">=0.10.0"}},+ "node_modules/normalize-url": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz",+ "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/npm-run-path": {"version": "4.0.1","resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",@@ -40769,6 +42738,19 @@"node": ">=0.10"}},+ "node_modules/pify": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/pify/-/pify-5.0.0.tgz",+ "integrity": "sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/pirates": {"version": "4.0.6","resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz",@@ -40949,6 +42931,20 @@"postcss": "^8.4"}},+ "node_modules/postcss-calc": {+ "version": "8.2.4",+ "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz",+ "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "^6.0.9",+ "postcss-value-parser": "^4.2.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.2"+ }+ },"node_modules/postcss-clamp": {"version": "4.1.0","resolved": "https://registry.npmjs.org/postcss-clamp/-/postcss-clamp-4.1.0.tgz",@@ -41034,6 +43030,42 @@"postcss": "^8.4"}},+ "node_modules/postcss-colormin": {+ "version": "5.3.1",+ "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz",+ "integrity": "sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.21.4",+ "caniuse-api": "^3.0.0",+ "colord": "^2.9.1",+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-convert-values": {+ "version": "5.1.3",+ "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.3.tgz",+ "integrity": "sha512-82pC1xkJZtcJEfiLw6UXnXVXScgtBrjlO5CBmuDQc+dlb88ZYheFsjTn40+zBVi3DkfF7iezO0nJUPLcJK3pvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.21.4",+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },"node_modules/postcss-custom-media": {"version": "9.1.5","resolved": "https://registry.npmjs.org/postcss-custom-media/-/postcss-custom-media-9.1.5.tgz",@@ -41137,6 +43169,58 @@"postcss": "^8.4"}},+ "node_modules/postcss-discard-comments": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz",+ "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-discard-duplicates": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz",+ "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-discard-empty": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz",+ "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-discard-overridden": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz",+ "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },"node_modules/postcss-double-position-gradients": {"version": "4.0.4","resolved": "https://registry.npmjs.org/postcss-double-position-gradients/-/postcss-double-position-gradients-4.0.4.tgz",@@ -41405,6 +43489,221 @@"postcss": "^8.4"}},+ "node_modules/postcss-merge-longhand": {+ "version": "5.1.7",+ "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz",+ "integrity": "sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0",+ "stylehacks": "^5.1.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-merge-rules": {+ "version": "5.1.4",+ "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.4.tgz",+ "integrity": "sha512-0R2IuYpgU93y9lhVbO/OylTtKMVcHb67zjWIfCiKR9rWL3GUk1677LAqD/BcHizukdZEjT8Ru3oHRoAYoJy44g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.21.4",+ "caniuse-api": "^3.0.0",+ "cssnano-utils": "^3.1.0",+ "postcss-selector-parser": "^6.0.5"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-minify-font-values": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz",+ "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-minify-gradients": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.1.tgz",+ "integrity": "sha512-VGvXMTpCEo4qHTNSa9A0a3D+dxGFZCYwR6Jokk+/3oB6flu2/PnPXAh2x7x52EkY5xlIHLm+Le8tJxe/7TNhzw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "colord": "^2.9.1",+ "cssnano-utils": "^3.1.0",+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-minify-params": {+ "version": "5.1.4",+ "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.4.tgz",+ "integrity": "sha512-+mePA3MgdmVmv6g+30rn57USjOGSAyuxUmkfiWpzalZ8aiBkdPYjXWtHuwJGm1v5Ojy0Z0LaSYhHaLJQB0P8Jw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.21.4",+ "cssnano-utils": "^3.1.0",+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-minify-selectors": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.1.tgz",+ "integrity": "sha512-nPJu7OjZJTsVUmPdm2TcaiohIwxP+v8ha9NehQ2ye9szv4orirRU3SDdtUmKH+10nzn0bAyOXZ0UEr7OpvLehg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "^6.0.5"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-modules": {+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/postcss-modules/-/postcss-modules-4.3.1.tgz",+ "integrity": "sha512-ItUhSUxBBdNamkT3KzIZwYNNRFKmkJrofvC2nWab3CPKhYBQ1f27XXh1PAPE27Psx58jeelPsxWB/+og+KEH0Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "generic-names": "^4.0.0",+ "icss-replace-symbols": "^1.1.0",+ "lodash.camelcase": "^4.3.0",+ "postcss-modules-extract-imports": "^3.0.0",+ "postcss-modules-local-by-default": "^4.0.0",+ "postcss-modules-scope": "^3.0.0",+ "postcss-modules-values": "^4.0.0",+ "string-hash": "^1.1.1"+ },+ "peerDependencies": {+ "postcss": "^8.0.0"+ }+ },+ "node_modules/postcss-modules-extract-imports": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz",+ "integrity": "sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/postcss-modules-local-by-default": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.2.0.tgz",+ "integrity": "sha512-5kcJm/zk+GJDSfw+V/42fJ5fhjL5YbFDl8nVdXkJPLLW+Vf9mTD5Xe0wqIaDnLuL2U6cDNpTr+UQ+v2HWIBhzw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "icss-utils": "^5.0.0",+ "postcss-selector-parser": "^7.0.0",+ "postcss-value-parser": "^4.1.0"+ },+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/postcss-modules-local-by-default/node_modules/postcss-selector-parser": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.0.tgz",+ "integrity": "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-modules-scope": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.2.1.tgz",+ "integrity": "sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "postcss-selector-parser": "^7.0.0"+ },+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/postcss-modules-scope/node_modules/postcss-selector-parser": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.0.tgz",+ "integrity": "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-modules-values": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz",+ "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "icss-utils": "^5.0.0"+ },+ "engines": {+ "node": "^10 || ^12 || >= 14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },"node_modules/postcss-nested": {"version": "6.0.1","resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz",@@ -41449,6 +43748,149 @@"postcss": "^8.4"}},+ "node_modules/postcss-normalize-charset": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz",+ "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-normalize-display-values": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz",+ "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-normalize-positions": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.1.tgz",+ "integrity": "sha512-6UpCb0G4eofTCQLFVuI3EVNZzBNPiIKcA1AKVka+31fTVySphr3VUgAIULBhxZkKgwLImhzMR2Bw1ORK+37INg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-normalize-repeat-style": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.1.tgz",+ "integrity": "sha512-mFpLspGWkQtBcWIRFLmewo8aC3ImN2i/J3v8YCFUwDnPu3Xz4rLohDO26lGjwNsQxB3YF0KKRwspGzE2JEuS0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-normalize-string": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz",+ "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-normalize-timing-functions": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz",+ "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-normalize-unicode": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz",+ "integrity": "sha512-qnCL5jzkNUmKVhZoENp1mJiGNPcsJCs1aaRmURmeJGES23Z/ajaln+EPTD+rBeNkSryI+2WTdW+lwcVdOikrpA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.21.4",+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-normalize-url": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz",+ "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "normalize-url": "^6.0.1",+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-normalize-whitespace": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.1.tgz",+ "integrity": "sha512-83ZJ4t3NUDETIHTa3uEg6asWjSBYL5EdkVB0sDncx9ERzOKBVJIUeDO9RyA9Zwtig8El1d79HBp0JEi8wvGQnA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },"node_modules/postcss-opacity-percentage": {"version": "2.0.0","resolved": "https://registry.npmjs.org/postcss-opacity-percentage/-/postcss-opacity-percentage-2.0.0.tgz",@@ -41471,6 +43913,23 @@"postcss": "^8.2"}},+ "node_modules/postcss-ordered-values": {+ "version": "5.1.3",+ "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.3.tgz",+ "integrity": "sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssnano-utils": "^3.1.0",+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },"node_modules/postcss-overflow-shorthand": {"version": "4.0.1","resolved": "https://registry.npmjs.org/postcss-overflow-shorthand/-/postcss-overflow-shorthand-4.0.1.tgz",@@ -41617,6 +44076,39 @@"postcss": "^8.4"}},+ "node_modules/postcss-reduce-initial": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz",+ "integrity": "sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.21.4",+ "caniuse-api": "^3.0.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-reduce-transforms": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz",+ "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },"node_modules/postcss-replace-overflow-wrap": {"version": "4.0.0","resolved": "https://registry.npmjs.org/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-4.0.0.tgz",@@ -41657,6 +44149,39 @@"node": ">=4"}},+ "node_modules/postcss-svgo": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz",+ "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.2.0",+ "svgo": "^2.7.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },+ "node_modules/postcss-unique-selectors": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz",+ "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "^6.0.5"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },"node_modules/postcss-value-parser": {"version": "4.2.0","resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",@@ -42225,6 +44750,16 @@"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==","dev": true},+ "node_modules/promise.series": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/promise.series/-/promise.series-0.2.0.tgz",+ "integrity": "sha512-VWQJyU2bcDTgZw8kpfBpB/ejZASlCrzwz5f2hjb/zlujOEB4oeiAhHygAWq8ubsX2GVkD4kCU5V2dwOTaCY5EQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12"+ }+ },"node_modules/prompts": {"version": "2.4.2","resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",@@ -42841,19 +45376,20 @@}},"node_modules/react-remove-scroll-bar": {- "version": "2.3.4",- "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.4.tgz",- "integrity": "sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==",+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",+ "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==",+ "license": "MIT","dependencies": {- "react-style-singleton": "^2.2.1",+ "react-style-singleton": "^2.2.2","tslib": "^2.0.0"},"engines": {"node": ">=10"},"peerDependencies": {- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"},"peerDependenciesMeta": {"@types/react": {@@ -42861,6 +45397,16 @@}}},+ "node_modules/react-resizable-panels": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-3.0.3.tgz",+ "integrity": "sha512-7HA8THVBHTzhDK4ON0tvlGXyMAJN1zBeRpuyyremSikgYh2ku6ltD7tsGQOcXx4NKPrZtYCm/5CBr+dkruTGQw==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",+ "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ }+ },"node_modules/react-router": {"version": "6.22.0","resolved": "https://registry.npmjs.org/react-router/-/react-router-6.22.0.tgz",@@ -42900,20 +45446,20 @@}},"node_modules/react-style-singleton": {- "version": "2.2.1",- "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.1.tgz",- "integrity": "sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==",+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",+ "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==",+ "license": "MIT","dependencies": {"get-nonce": "^1.0.0",- "invariant": "^2.2.4","tslib": "^2.0.0"},"engines": {"node": ">=10"},"peerDependencies": {- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"},"peerDependenciesMeta": {"@types/react": {@@ -42970,6 +45516,15 @@"react-dom": "^16.3.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},+ "node_modules/react-virtualized/node_modules/clsx": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",+ "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/read-cache": {"version": "1.0.0","resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",@@ -43074,6 +45629,7 @@"version": "0.7.7","resolved": "https://registry.npmjs.org/recoil/-/recoil-0.7.7.tgz","integrity": "sha512-8Og5KPQW9LwC577Vc7Ug2P0vQshkv1y3zG3tSSkWMqkWSwHmE+by06L8JtnGocjW6gcCvfwB3YtrJG6/tWivNQ==",+ "license": "MIT","dependencies": {"hamt_plus": "1.0.2"},@@ -44161,6 +46717,74 @@"rollup": "*"}},+ "node_modules/rollup-plugin-postcss": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/rollup-plugin-postcss/-/rollup-plugin-postcss-4.0.2.tgz",+ "integrity": "sha512-05EaY6zvZdmvPUDi3uCcAQoESDcYnv8ogJJQRp6V5kZ6J6P7uAVJlrTZcaaA20wTH527YTnKfkAoPxWI/jPp4w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^4.1.0",+ "concat-with-sourcemaps": "^1.1.0",+ "cssnano": "^5.0.1",+ "import-cwd": "^3.0.0",+ "p-queue": "^6.6.2",+ "pify": "^5.0.0",+ "postcss-load-config": "^3.0.0",+ "postcss-modules": "^4.0.0",+ "promise.series": "^0.2.0",+ "resolve": "^1.19.0",+ "rollup-pluginutils": "^2.8.2",+ "safe-identifier": "^0.4.2",+ "style-inject": "^0.3.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "postcss": "8.x"+ }+ },+ "node_modules/rollup-plugin-postcss/node_modules/postcss-load-config": {+ "version": "3.1.4",+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz",+ "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lilconfig": "^2.0.5",+ "yaml": "^1.10.2"+ },+ "engines": {+ "node": ">= 10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ "peerDependencies": {+ "postcss": ">=8.0.9",+ "ts-node": ">=9.0.0"+ },+ "peerDependenciesMeta": {+ "postcss": {+ "optional": true+ },+ "ts-node": {+ "optional": true+ }+ }+ },+ "node_modules/rollup-plugin-postcss/node_modules/yaml": {+ "version": "1.10.2",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/rollup-plugin-typescript2": {"version": "0.35.0","resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.35.0.tgz",@@ -44226,6 +46850,23 @@"node": ">= 10.0.0"}},+ "node_modules/rollup-pluginutils": {+ "version": "2.8.2",+ "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz",+ "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "estree-walker": "^0.6.1"+ }+ },+ "node_modules/rollup-pluginutils/node_modules/estree-walker": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz",+ "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==",+ "dev": true,+ "license": "MIT"+ },"node_modules/router": {"version": "2.2.0","resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",@@ -44322,6 +46963,13 @@}]},+ "node_modules/safe-identifier": {+ "version": "0.4.2",+ "resolved": "https://registry.npmjs.org/safe-identifier/-/safe-identifier-0.4.2.tgz",+ "integrity": "sha512-6pNbSMW6OhAi9j+N8V+U715yBQsaWJ7eyEUaOrawX+isg5ZxhUlV1NipNtgaKHmFGiABwt+ZF04Ii+3Xjkg+8w==",+ "dev": true,+ "license": "ISC"+ },"node_modules/safe-push-apply": {"version": "1.0.0","resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz",@@ -44901,6 +47549,14 @@"integrity": "sha512-I7zYndqOOkNpz9KIdFZ8c8A7zs1YazNewBr8Nsi/tqThfJkVPuP1q7UE2h4B0RwoWZxbBYpd06uoW3NI3SaZXg==","license": "Apache-2.0"},+ "node_modules/stable": {+ "version": "0.1.8",+ "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz",+ "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==",+ "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility",+ "dev": true,+ "license": "MIT"+ },"node_modules/stable-hash": {"version": "0.0.4","resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.4.tgz",@@ -45082,6 +47738,13 @@"node": ">=0.6.19"}},+ "node_modules/string-hash": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/string-hash/-/string-hash-1.1.3.tgz",+ "integrity": "sha512-kJUvRUFK49aub+a7T1nNE66EJbZBMnBgoC1UbCZ5n6bsZKBRga4KgBRTMn/pFkeCZSYtNeSyMxPDM0AXWELk2A==",+ "dev": true,+ "license": "CC0-1.0"+ },"node_modules/string-length": {"version": "4.0.2","resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz",@@ -45397,6 +48060,13 @@"url": "https://github.com/sponsors/Borewit"}},+ "node_modules/style-inject": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/style-inject/-/style-inject-0.3.0.tgz",+ "integrity": "sha512-IezA2qp+vcdlhJaVm5SOdPPTUu0FCEqfNSli2vRuSIBbu5Nq5UvygTk/VzeCqfLz2Atj3dVII5QBKGZRZ0edzw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/style-mod": {"version": "4.1.2","resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz",@@ -45410,6 +48080,23 @@"inline-style-parser": "0.2.3"}},+ "node_modules/stylehacks": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz",+ "integrity": "sha512-sBpcd5Hx7G6seo7b1LkpttvTz7ikD0LlH5RmdcBNb6fFR0Fl7LQwHDFr300q4cwUqi+IYrFGmsIHieMBfnN/Bw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.21.4",+ "postcss-selector-parser": "^6.0.4"+ },+ "engines": {+ "node": "^10 || ^12 || >=14.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.15"+ }+ },"node_modules/sucrase": {"version": "3.35.0","resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz",@@ -45565,6 +48252,101 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/svgo": {+ "version": "2.8.0",+ "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz",+ "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@trysound/sax": "0.2.0",+ "commander": "^7.2.0",+ "css-select": "^4.1.3",+ "css-tree": "^1.1.3",+ "csso": "^4.2.0",+ "picocolors": "^1.0.0",+ "stable": "^0.1.8"+ },+ "bin": {+ "svgo": "bin/svgo"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/svgo/node_modules/css-select": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz",+ "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "boolbase": "^1.0.0",+ "css-what": "^6.0.1",+ "domhandler": "^4.3.1",+ "domutils": "^2.8.0",+ "nth-check": "^2.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/fb55"+ }+ },+ "node_modules/svgo/node_modules/dom-serializer": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz",+ "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "domelementtype": "^2.0.1",+ "domhandler": "^4.2.0",+ "entities": "^2.0.0"+ },+ "funding": {+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"+ }+ },+ "node_modules/svgo/node_modules/domhandler": {+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz",+ "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "domelementtype": "^2.2.0"+ },+ "engines": {+ "node": ">= 4"+ },+ "funding": {+ "url": "https://github.com/fb55/domhandler?sponsor=1"+ }+ },+ "node_modules/svgo/node_modules/domutils": {+ "version": "2.8.0",+ "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz",+ "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "dom-serializer": "^1.0.1",+ "domelementtype": "^2.2.0",+ "domhandler": "^4.2.0"+ },+ "funding": {+ "url": "https://github.com/fb55/domutils?sponsor=1"+ }+ },+ "node_modules/svgo/node_modules/entities": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz",+ "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==",+ "dev": true,+ "license": "BSD-2-Clause",+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },"node_modules/symbol-tree": {"version": "3.2.4","resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",@@ -46910,9 +49692,10 @@}},"node_modules/use-sidecar": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.2.tgz",- "integrity": "sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==",+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",+ "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",+ "license": "MIT","dependencies": {"detect-node-es": "^1.1.0","tslib": "^2.0.0"@@ -46921,8 +49704,8 @@"node": ">=10"},"peerDependencies": {- "@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"},"peerDependenciesMeta": {"@types/react": {@@ -46931,11 +49714,12 @@}},"node_modules/use-sync-external-store": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",- "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==",+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.5.0.tgz",+ "integrity": "sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==",+ "license": "MIT","peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},"node_modules/utf8": {@@ -48720,6 +51504,304 @@"url": "https://github.com/sponsors/isaacs"}},+ "packages/client": {+ "name": "@librechat/client",+ "version": "0.1.9",+ "devDependencies": {+ "@rollup/plugin-alias": "^5.1.0",+ "@rollup/plugin-commonjs": "^25.0.2",+ "@rollup/plugin-node-resolve": "^15.0.0",+ "@rollup/plugin-replace": "^5.0.5",+ "@rollup/plugin-terser": "^0.4.4",+ "@tanstack/react-query": "^4.28.0",+ "@testing-library/react": "^14.0.0",+ "@types/react": "^18.2.11",+ "@types/react-dom": "^18.2.4",+ "concat-with-sourcemaps": "^1.1.0",+ "i18next": "^24.2.3",+ "jotai": "^2.12.5",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "react-i18next": "^15.4.0",+ "rimraf": "^5.0.1",+ "rollup": "^4.0.0",+ "rollup-plugin-peer-deps-external": "^2.2.4",+ "rollup-plugin-postcss": "^4.0.2",+ "rollup-plugin-typescript2": "^0.35.0",+ "tailwindcss-radix": "^2.8.0",+ "typescript": "^5.0.0"+ },+ "peerDependencies": {+ "@ariakit/react": "^0.4.16",+ "@ariakit/react-core": "^0.4.17",+ "@headlessui/react": "^2.1.2",+ "@radix-ui/react-accordion": "^1.2.11",+ "@radix-ui/react-alert-dialog": "^1.0.2",+ "@radix-ui/react-checkbox": "^1.0.3",+ "@radix-ui/react-collapsible": "^1.1.11",+ "@radix-ui/react-dialog": "^1.0.2",+ "@radix-ui/react-dropdown-menu": "^2.1.1",+ "@radix-ui/react-hover-card": "^1.0.5",+ "@radix-ui/react-icons": "^1.3.0",+ "@radix-ui/react-label": "^2.1.7",+ "@radix-ui/react-progress": "^1.1.2",+ "@radix-ui/react-radio-group": "^1.3.7",+ "@radix-ui/react-select": "^2.2.5",+ "@radix-ui/react-separator": "^1.1.7",+ "@radix-ui/react-slider": "^1.3.5",+ "@radix-ui/react-slot": "^1.0.0",+ "@radix-ui/react-switch": "^1.2.5",+ "@radix-ui/react-tabs": "^1.0.3",+ "@radix-ui/react-toast": "^1.1.5",+ "@react-spring/web": "^10.0.1",+ "@tanstack/react-query": "^4.28.0 || ^5.0.0",+ "@tanstack/react-table": "^8.11.7",+ "@tanstack/react-virtual": "^3.0.0",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1",+ "framer-motion": "^12.23.6",+ "i18next": "^24.2.2 || ^25.3.2",+ "i18next-browser-languagedetector": "^8.2.0",+ "input-otp": "^1.4.2",+ "jotai": "^2.12.5",+ "lucide-react": "^0.525.0",+ "match-sorter": "^8.1.0",+ "rc-input-number": "^7.4.2",+ "react": "^18.2.0 || ^19.1.0",+ "react-dom": "^18.2.0 || ^19.1.0",+ "react-hook-form": "^7.56.4",+ "react-i18next": "^15.4.0 || ^15.6.0",+ "react-resizable-panels": "^3.0.2",+ "react-textarea-autosize": "^8.4.0",+ "tailwind-merge": "^1.9.1"+ }+ },+ "packages/client/node_modules/@testing-library/dom": {+ "version": "10.4.0",+ "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.0.tgz",+ "integrity": "sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/code-frame": "^7.10.4",+ "@babel/runtime": "^7.12.5",+ "@types/aria-query": "^5.0.1",+ "aria-query": "5.3.0",+ "chalk": "^4.1.0",+ "dom-accessibility-api": "^0.5.9",+ "lz-string": "^1.5.0",+ "pretty-format": "^27.0.2"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "packages/client/node_modules/@testing-library/react": {+ "version": "16.3.0",+ "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.0.tgz",+ "integrity": "sha512-kFSyxiEDwv1WLl2fgsq6pPBbw5aWKrsY2/noi1Id0TK0UParSF62oFQFGHXIyaG4pp2tEub/Zlel+fjjZILDsw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.12.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@testing-library/dom": "^10.0.0",+ "@types/react": "^18.0.0 || ^19.0.0",+ "@types/react-dom": "^18.0.0 || ^19.0.0",+ "react": "^18.0.0 || ^19.0.0",+ "react-dom": "^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "packages/client/node_modules/ansi-styles": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "packages/client/node_modules/aria-query": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "dequal": "^2.0.3"+ }+ },+ "packages/client/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==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "packages/client/node_modules/glob": {+ "version": "10.4.5",+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",+ "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "foreground-child": "^3.1.0",+ "jackspeak": "^3.1.2",+ "minimatch": "^9.0.4",+ "minipass": "^7.1.2",+ "package-json-from-dist": "^1.0.0",+ "path-scurry": "^1.11.1"+ },+ "bin": {+ "glob": "dist/esm/bin.mjs"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "packages/client/node_modules/i18next": {+ "version": "24.2.3",+ "resolved": "https://registry.npmjs.org/i18next/-/i18next-24.2.3.tgz",+ "integrity": "sha512-lfbf80OzkocvX7nmZtu7nSTNbrTYR52sLWxPtlXX1zAhVw8WEnFk4puUkCR4B1dNQwbSpEHHHemcZu//7EcB7A==",+ "dev": true,+ "funding": [+ {+ "type": "individual",+ "url": "https://locize.com"+ },+ {+ "type": "individual",+ "url": "https://locize.com/i18next.html"+ },+ {+ "type": "individual",+ "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.26.10"+ },+ "peerDependencies": {+ "typescript": "^5"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "packages/client/node_modules/jackspeak": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",+ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/cliui": "^8.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ },+ "optionalDependencies": {+ "@pkgjs/parseargs": "^0.11.0"+ }+ },+ "packages/client/node_modules/minimatch": {+ "version": "9.0.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "packages/client/node_modules/pretty-format": {+ "version": "27.5.1",+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz",+ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "ansi-regex": "^5.0.1",+ "ansi-styles": "^5.0.0",+ "react-is": "^17.0.1"+ },+ "engines": {+ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"+ }+ },+ "packages/client/node_modules/react-hook-form": {+ "version": "7.60.0",+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.60.0.tgz",+ "integrity": "sha512-SBrYOvMbDB7cV8ZfNpaiLcgjH/a1c7aK0lK+aNigpf4xWLO8q+o4tcvVurv3c4EOyzn/3dCsYt4GKD42VvJ/+A==",+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/react-hook-form"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17 || ^18 || ^19"+ }+ },+ "packages/client/node_modules/react-is": {+ "version": "17.0.2",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",+ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "packages/client/node_modules/rimraf": {+ "version": "5.0.10",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz",+ "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "glob": "^10.3.7"+ },+ "bin": {+ "rimraf": "dist/esm/bin.mjs"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"packages/data-provider": {"name": "librechat-data-provider","version": "0.7.902",diff --git a/package.json b/package.jsonindex 1aad42eb6e..36327241a2 100644--- a/package.json+++ b/package.json@@ -40,8 +40,9 @@"build:data-provider": "cd packages/data-provider && npm run build","build:api": "cd packages/api && npm run build","build:data-schemas": "cd packages/data-schemas && npm run build",- "frontend": "npm run build:data-provider && npm run build:data-schemas && npm run build:api && cd client && npm run build",- "frontend:ci": "npm run build:data-provider && cd client && npm run build:ci",+ "build:client-package": "cd packages/client && npm run build",+ "frontend": "npm run build:data-provider && npm run build:data-schemas && npm run build:api && npm run build:client-package && cd client && npm run build",+ "frontend:ci": "npm run build:data-provider && npm run build:client-package && cd client && npm run build:ci","frontend:dev": "cd client && npm run dev","e2e": "playwright test --config=e2e/playwright.config.local.ts","e2e:headed": "playwright test --config=e2e/playwright.config.local.ts --headed",diff --git a/packages/client/package.json b/packages/client/package.jsonnew file mode 100644index 0000000000..5edd6505cf--- /dev/null+++ b/packages/client/package.json@@ -0,0 +1,92 @@+{+ "name": "@librechat/client",+ "version": "0.1.9",+ "description": "React components for LibreChat",+ "main": "dist/index.js",+ "module": "dist/index.es.js",+ "types": "dist/types/index.d.ts",+ "exports": {+ ".": {+ "import": "./dist/index.es.js",+ "require": "./dist/index.js",+ "types": "./dist/types/index.d.ts"+ }+ },+ "files": [+ "dist"+ ],+ "scripts": {+ "clean": "rimraf dist",+ "build": "npm run clean && rollup -c --bundleConfigAsCjs",+ "build:watch": "rollup -c -w --bundleConfigAsCjs",+ "dev": "rollup -c -w --bundleConfigAsCjs"+ },+ "peerDependencies": {+ "@tanstack/react-query": "^4.28.0 || ^5.0.0",+ "i18next": "^24.2.2 || ^25.3.2",+ "jotai": "^2.12.5",+ "react": "^18.2.0 || ^19.1.0",+ "react-dom": "^18.2.0 || ^19.1.0",+ "react-i18next": "^15.4.0 || ^15.6.0",+ "@tanstack/react-table": "^8.11.7",+ "@tanstack/react-virtual": "^3.0.0",+ "@ariakit/react": "^0.4.16",+ "@ariakit/react-core": "^0.4.17",+ "@headlessui/react": "^2.1.2",+ "@radix-ui/react-accordion": "^1.2.11",+ "@radix-ui/react-alert-dialog": "^1.0.2",+ "@radix-ui/react-checkbox": "^1.0.3",+ "@radix-ui/react-collapsible": "^1.1.11",+ "@radix-ui/react-dialog": "^1.0.2",+ "@radix-ui/react-dropdown-menu": "^2.1.1",+ "@radix-ui/react-hover-card": "^1.0.5",+ "@radix-ui/react-icons": "^1.3.0",+ "@radix-ui/react-label": "^2.1.7",+ "@radix-ui/react-progress": "^1.1.2",+ "@radix-ui/react-radio-group": "^1.3.7",+ "@radix-ui/react-select": "^2.2.5",+ "@radix-ui/react-separator": "^1.1.7",+ "@radix-ui/react-slider": "^1.3.5",+ "@radix-ui/react-slot": "^1.0.0",+ "@radix-ui/react-switch": "^1.2.5",+ "@radix-ui/react-tabs": "^1.0.3",+ "@radix-ui/react-toast": "^1.1.5",+ "@react-spring/web": "^10.0.1",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1",+ "framer-motion": "^12.23.6",+ "i18next-browser-languagedetector": "^8.2.0",+ "input-otp": "^1.4.2",+ "lucide-react": "^0.525.0",+ "match-sorter": "^8.1.0",+ "rc-input-number": "^7.4.2",+ "react-hook-form": "^7.56.4",+ "react-resizable-panels": "^3.0.2",+ "react-textarea-autosize": "^8.4.0",+ "tailwind-merge": "^1.9.1"+ },+ "devDependencies": {+ "@rollup/plugin-alias": "^5.1.0",+ "@rollup/plugin-commonjs": "^25.0.2",+ "@rollup/plugin-node-resolve": "^15.0.0",+ "@rollup/plugin-replace": "^5.0.5",+ "@rollup/plugin-terser": "^0.4.4",+ "@tanstack/react-query": "^4.28.0",+ "@testing-library/react": "^14.0.0",+ "@types/react": "^18.2.11",+ "@types/react-dom": "^18.2.4",+ "concat-with-sourcemaps": "^1.1.0",+ "i18next": "^24.2.3",+ "jotai": "^2.12.5",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "react-i18next": "^15.4.0",+ "rimraf": "^5.0.1",+ "rollup": "^4.0.0",+ "rollup-plugin-peer-deps-external": "^2.2.4",+ "rollup-plugin-postcss": "^4.0.2",+ "rollup-plugin-typescript2": "^0.35.0",+ "tailwindcss-radix": "^2.8.0",+ "typescript": "^5.0.0"+ }+}diff --git a/packages/client/rollup.config.js b/packages/client/rollup.config.jsnew file mode 100644index 0000000000..1523ca9f77--- /dev/null+++ b/packages/client/rollup.config.js@@ -0,0 +1,84 @@+// ESM bundler config for React components+import { fileURLToPath } from 'url';+import alias from '@rollup/plugin-alias';+import terser from '@rollup/plugin-terser';+import postcss from 'rollup-plugin-postcss';+import replace from '@rollup/plugin-replace';+import commonjs from '@rollup/plugin-commonjs';+import resolve from '@rollup/plugin-node-resolve';+import typescript from 'rollup-plugin-typescript2';+import { dirname, resolve as pathResolve } from 'path';+import peerDepsExternal from 'rollup-plugin-peer-deps-external';+import pkg from './package.json';++const __filename = fileURLToPath(import.meta.url);+const __dirname = dirname(__filename);++const plugins = [+ peerDepsExternal(),+ alias({+ entries: [{ find: '~', replacement: pathResolve(__dirname, 'src') }],+ }),+ resolve({+ extensions: ['.js', '.jsx', '.ts', '.tsx'],+ browser: true,+ preferBuiltins: false,+ }),+ replace({+ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),+ preventAssignment: true,+ }),+ commonjs(),+ postcss({+ extract: false,+ inject: true,+ minimize: process.env.NODE_ENV === 'production',+ modules: false,+ config: {+ path: './postcss.config.js',+ },+ }),+ typescript({+ tsconfig: './tsconfig.json',+ useTsconfigDeclarationDir: true,+ clean: true,+ check: false,+ }),+ terser({+ compress: {+ directives: false,+ },+ }),+];++export default {+ input: 'src/index.ts',+ output: [+ {+ file: pkg.main,+ format: 'cjs',+ sourcemap: true,+ exports: 'named',+ },+ {+ file: pkg.module,+ format: 'esm',+ sourcemap: true,+ exports: 'named',+ },+ ],+ external: [+ ...Object.keys(pkg.peerDependencies || {}),+ 'react/jsx-runtime',+ 'react/jsx-dev-runtime',+ ],+ preserveSymlinks: true,+ plugins,+ onwarn(warning, warn) {+ // Ignore "use client" directive warnings+ if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {+ return;+ }+ warn(warning);+ },+};diff --git a/client/src/Providers/ToastContext.tsx b/packages/client/src/Providers/ToastContext.tsxsimilarity index 77%rename from client/src/Providers/ToastContext.tsxrename to packages/client/src/Providers/ToastContext.tsxindex 2f0e5efcf6..afe24995d2 100644--- a/client/src/Providers/ToastContext.tsx+++ b/packages/client/src/Providers/ToastContext.tsx@@ -1,4 +1,4 @@-import { createContext, useContext } from 'react';+import { createContext, useContext, ReactNode } from 'react';import type { TShowToast } from '~/common';import useToast from '~/hooks/useToast';@@ -14,7 +14,7 @@ export function useToastContext() {return useContext(ToastContext);}-export default function ToastProvider({ children }) {+export default function ToastProvider({ children }: { children: ReactNode }) {const { showToast } = useToast();return <ToastContext.Provider value={{ showToast }}>{children}</ToastContext.Provider>;diff --git a/packages/client/src/Providers/index.ts b/packages/client/src/Providers/index.tsnew file mode 100644index 0000000000..41cb62ae9c--- /dev/null+++ b/packages/client/src/Providers/index.ts@@ -0,0 +1,2 @@+export { default as ToastProvider } from './ToastContext';+export * from './ToastContext';diff --git a/packages/client/src/common/index.ts b/packages/client/src/common/index.tsnew file mode 100644index 0000000000..7a855f3c17--- /dev/null+++ b/packages/client/src/common/index.ts@@ -0,0 +1,11 @@+export type {+ TShowToast,+ Option,+ OptionWithIcon,+ DropdownValueSetter,+ MentionOption,+} from './types';++export { NotificationSeverity } from './types';++export type { MenuItemProps } from './menus';diff --git a/packages/client/src/common/menus.ts b/packages/client/src/common/menus.tsnew file mode 100644index 0000000000..c46ad3f8bb--- /dev/null+++ b/packages/client/src/common/menus.ts@@ -0,0 +1,24 @@+/* eslint-disable @typescript-eslint/no-explicit-any */+export type RenderProp<+ P = React.HTMLAttributes<any> & {+ ref?: React.Ref<any>;+ },+> = (props: P) => React.ReactNode;++export interface MenuItemProps {+ id?: string;+ label?: string;+ onClick?: (e: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => void;+ icon?: React.ReactNode;+ kbd?: string;+ show?: boolean;+ disabled?: boolean;+ separate?: boolean;+ hideOnClick?: boolean;+ dialog?: React.ReactElement;+ ref?: React.Ref<any>;+ render?:+ | RenderProp<React.HTMLAttributes<any> & { ref?: React.Ref<any> | undefined }>+ | React.ReactElement<any, string | React.JSXElementConstructor<any>>+ | undefined;+}diff --git a/packages/client/src/common/types.ts b/packages/client/src/common/types.tsnew file mode 100644index 0000000000..aaeb5f524b--- /dev/null+++ b/packages/client/src/common/types.ts@@ -0,0 +1,33 @@+export enum NotificationSeverity {+ INFO = 'info',+ SUCCESS = 'success',+ WARNING = 'warning',+ ERROR = 'error',+}++export type TShowToast = {+ message: string;+ severity?: NotificationSeverity;+ showIcon?: boolean;+ duration?: number;+ status?: 'error' | 'success' | 'warning' | 'info';+};++export type Option = Record<string, unknown> & {+ label?: string;+ value: string | number | null;+};++export type OptionWithIcon = Option & { icon?: React.ReactNode };+export type DropdownValueSetter = (value: string | Option | OptionWithIcon) => void;+export type MentionOption = OptionWithIcon & {+ type: string;+ value: string;+ description?: string;+};++export interface SelectedValues {+ endpoint: string | null;+ model: string | null;+ modelSpec: string | null;+}diff --git a/client/src/components/ui/Accordion.tsx b/packages/client/src/components/Accordion.tsxsimilarity index 94%rename from client/src/components/ui/Accordion.tsxrename to packages/client/src/components/Accordion.tsxindex 5c8ed39a75..a969531e88 100644--- a/client/src/components/ui/Accordion.tsx+++ b/packages/client/src/components/Accordion.tsx@@ -1,7 +1,6 @@import * as React from 'react';import * as AccordionPrimitive from '@radix-ui/react-accordion';import { ChevronDownIcon } from '@radix-ui/react-icons';-import { cn } from '~/utils';const Accordion = AccordionPrimitive.Root;@@ -28,7 +27,7 @@ const AccordionTrigger = React.forwardRef<{...props}>{children}- <ChevronDownIcon className="text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" />+ <ChevronDownIcon className="h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" /></AccordionPrimitive.Trigger></AccordionPrimitive.Header>));diff --git a/client/src/components/ui/AlertDialog.tsx b/packages/client/src/components/AlertDialog.tsxsimilarity index 99%rename from client/src/components/ui/AlertDialog.tsxrename to packages/client/src/components/AlertDialog.tsxindex 6a5a2dbfc1..4e78fda211 100644--- a/client/src/components/ui/AlertDialog.tsx+++ b/packages/client/src/components/AlertDialog.tsx@@ -1,7 +1,6 @@import * as React from 'react';import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';--import { cn } from '../../utils';+import { cn } from '~/utils';const AlertDialog = AlertDialogPrimitive.Root;diff --git a/packages/client/src/components/AnimatedSearchInput.tsx b/packages/client/src/components/AnimatedSearchInput.tsxnew file mode 100644index 0000000000..66af0c102d--- /dev/null+++ b/packages/client/src/components/AnimatedSearchInput.tsx@@ -0,0 +1,79 @@+import React from 'react';+import { Search } from 'lucide-react';+import { cn } from '~/utils';++const AnimatedSearchInput = ({+ value,+ onChange,+ isSearching: searching,+ placeholder,+}: {+ value?: string;+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;+ isSearching?: boolean;+ placeholder: string;+}) => {+ const isSearching = searching === true;+ const hasValue = value != null && value.length > 0;++ return (+ <div className="relative w-full">+ <div className="relative rounded-lg transition-all duration-500 ease-in-out">+ <div className="relative">+ {/* Icon on the left */}+ <div className="absolute left-3 top-1/2 z-50 -translate-y-1/2">+ <Search+ className={cn(+ `h-4 w-4 transition-all duration-500 ease-in-out`,+ isSearching && hasValue ? 'text-blue-400' : 'text-gray-400',+ )}+ />+ </div>++ {/* Input field */}+ <input+ type="text"+ value={value}+ onChange={onChange}+ placeholder={placeholder}+ className={`peer relative z-20 w-full rounded-lg bg-surface-secondary px-10 py-2 outline-none ring-0 backdrop-blur-sm transition-all duration-500 ease-in-out placeholder:text-gray-400 focus:outline-none focus:ring-0`}+ />++ {/* Gradient overlay */}+ <div+ className={`pointer-events-none absolute inset-0 z-20 rounded-lg bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 transition-all duration-500 ease-in-out ${isSearching && hasValue ? 'opacity-100 blur-sm' : 'opacity-0 blur-none'} `}+ />++ {/* Animated loading indicator */}+ <div+ className={`absolute right-3 top-1/2 z-20 -translate-y-1/2 transition-all duration-500 ease-in-out ${isSearching && hasValue ? 'scale-100 opacity-100' : 'scale-0 opacity-0'} `}+ >+ <div className="relative h-2 w-2">+ <div className="absolute inset-0 animate-ping rounded-full bg-blue-500/60" />+ <div className="absolute inset-0 rounded-full bg-blue-500" />+ </div>+ </div>+ </div>+ </div>++ {/* Outer glow effect */}+ <div+ className={`absolute -inset-8 -z-10 transition-all duration-700 ease-in-out ${isSearching && hasValue ? 'scale-105 opacity-100' : 'scale-100 opacity-0'} `}+ >+ <div className="absolute inset-0">+ <div+ className={`bg-gradient-radial absolute inset-0 from-blue-500/10 to-transparent transition-opacity duration-700 ease-in-out ${isSearching && hasValue ? 'animate-pulse-slow opacity-100' : 'opacity-0'} `}+ />+ <div+ className={`absolute inset-0 bg-gradient-to-r from-purple-500/5 via-blue-500/5 to-purple-500/5 blur-xl transition-all duration-700 ease-in-out ${isSearching && hasValue ? 'animate-gradient-x opacity-100' : 'opacity-0'} `}+ />+ </div>+ </div>+ <div+ className={`absolute inset-0 -z-20 scale-100 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-blue-500/10 opacity-0 blur-xl transition-all duration-500 ease-in-out peer-focus:scale-105 peer-focus:opacity-100`}+ />+ </div>+ );+};++export default AnimatedSearchInput;diff --git a/client/src/components/ui/AnimatedTabs.css b/packages/client/src/components/AnimatedTabs.csssimilarity index 96%rename from client/src/components/ui/AnimatedTabs.cssrename to packages/client/src/components/AnimatedTabs.cssindex 808f5c4ac8..4f16a965ca 100644--- a/client/src/components/ui/AnimatedTabs.css+++ b/packages/client/src/components/AnimatedTabs.css@@ -26,7 +26,7 @@position: relative;}-.animated-tab[data-state="active"] {+.animated-tab[data-state='active'] {border-bottom-color: transparent !important;}diff --git a/client/src/components/ui/AnimatedTabs.tsx b/packages/client/src/components/AnimatedTabs.tsxsimilarity index 93%rename from client/src/components/ui/AnimatedTabs.tsxrename to packages/client/src/components/AnimatedTabs.tsxindex 809699f30d..131d871aaf 100644--- a/client/src/components/ui/AnimatedTabs.tsx+++ b/packages/client/src/components/AnimatedTabs.tsx@@ -1,13 +1,13 @@import * as Ariakit from '@ariakit/react';-import { ReactNode, forwardRef, useEffect, useRef } from 'react';+import { forwardRef, useEffect, useRef } from 'react';import type { ElementRef } from 'react';import { cn } from '~/utils';import './AnimatedTabs.css';export interface TabItem {id?: string;- label: ReactNode;- content: ReactNode;+ label: React.ReactNode;+ content: React.ReactNode;disabled?: boolean;}@@ -23,7 +23,7 @@ export interface AnimatedTabsProps {}function usePrevious<T>(value: T) {- const ref = useRef<T>();+ const ref = useRef<T | undefined>(undefined);useEffect(() => {ref.current = value;}, [value]);@@ -132,6 +132,7 @@ export function AnimatedTabs({className={tabClassName}data-state={tabIds[index] === firstTabId ? 'active' : 'inactive'}>+ {/* TypeScript workaround for React i18next children type compatibility */}{tab.label}</Tab>))}@@ -150,6 +151,7 @@ export function AnimatedTabs({tabId={tabIds[index]}className={tabPanelClassName}>+ {/* TypeScript workaround for React i18next children type compatibility */}{tab.content}</TabPanel>))}diff --git a/client/src/components/ui/Badge.tsx b/packages/client/src/components/Badge.tsxsimilarity index 92%rename from client/src/components/ui/Badge.tsxrename to packages/client/src/components/Badge.tsxindex d99017c73f..2469eccb26 100644--- a/client/src/components/ui/Badge.tsx+++ b/packages/client/src/components/Badge.tsx@@ -1,12 +1,15 @@import type React from 'react';-import { X, Plus } from 'lucide-react';import { motion } from 'framer-motion';import type { ButtonHTMLAttributes } from 'react';import type { LucideIcon } from 'lucide-react';import { cn } from '~/utils';-interface BadgeProps extends ButtonHTMLAttributes<HTMLButtonElement> {+interface BadgeProps+ extends Omit<+ ButtonHTMLAttributes<HTMLButtonElement>,+ 'onAnimationStart' | 'onDragStart' | 'onDragEnd' | 'onDrag'+ > {icon?: LucideIcon;label: string;id?: string;@@ -71,7 +74,7 @@ export default function Badge({}}whileTap={{ scale: isDragging ? 1.1 : isDisabled ? 1 : 0.97 }}transition={{ type: 'tween', duration: 0.1, ease: 'easeOut' }}- {...props}+ {...(props as React.ComponentProps<typeof motion.button>)}>{Icon && <Icon className={cn('relative h-5 w-5 md:h-4 md:w-4', !label && 'mx-auto')} />}<span className="relative hidden md:inline">{label}</span>diff --git a/client/src/components/ui/Breadcrumb.tsx b/packages/client/src/components/Breadcrumb.tsxsimilarity index 91%rename from client/src/components/ui/Breadcrumb.tsxrename to packages/client/src/components/Breadcrumb.tsxindex 08082e51b2..f1026a8305 100644--- a/client/src/components/ui/Breadcrumb.tsx+++ b/packages/client/src/components/Breadcrumb.tsx@@ -1,7 +1,6 @@import * as React from 'react';import { Slot } from '@radix-ui/react-slot';import { ChevronRight, MoreHorizontal } from 'lucide-react';-import { cn } from '~/utils';const Breadcrumb = React.forwardRef<@@ -17,7 +16,7 @@ const BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWi<olref={ref}className={cn(- 'text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5',+ 'flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5',className,)}{...props}@@ -44,7 +43,7 @@ const BreadcrumbLink = React.forwardRef<return (<Compref={ref}- className={cn('hover:text-foreground transition-colors', className)}+ className={cn('transition-colors hover:text-foreground', className)}{...props}/>);@@ -58,7 +57,7 @@ const BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWitrole="link"aria-disabled="true"aria-current="page"- className={cn('text-foreground font-normal', className)}+ className={cn('font-normal text-foreground', className)}{...props}/>),diff --git a/client/src/components/ui/Button.tsx b/packages/client/src/components/Button.tsxsimilarity index 100%rename from client/src/components/ui/Button.tsxrename to packages/client/src/components/Button.tsxdiff --git a/client/src/components/ui/Checkbox.tsx b/packages/client/src/components/Checkbox.tsxsimilarity index 96%rename from client/src/components/ui/Checkbox.tsxrename to packages/client/src/components/Checkbox.tsxindex a28af18c7f..36a81ac736 100644--- a/client/src/components/ui/Checkbox.tsx+++ b/packages/client/src/components/Checkbox.tsx@@ -1,7 +1,7 @@import * as React from 'react';-import * as CheckboxPrimitive from '@radix-ui/react-checkbox';import { Check } from 'lucide-react';-import { cn } from '../../utils';+import * as CheckboxPrimitive from '@radix-ui/react-checkbox';+import { cn } from '~/utils';const Checkbox = React.forwardRef<React.ElementRef<typeof CheckboxPrimitive.Root>,diff --git a/client/src/components/ui/CheckboxButton.tsx b/packages/client/src/components/CheckboxButton.tsxsimilarity index 98%rename from client/src/components/ui/CheckboxButton.tsxrename to packages/client/src/components/CheckboxButton.tsxindex d71ee71b45..1858b7b68d 100644--- a/client/src/components/ui/CheckboxButton.tsx+++ b/packages/client/src/components/CheckboxButton.tsx@@ -1,7 +1,7 @@+import * as React from 'react';import { useEffect } from 'react';import { Checkbox, useStoreState, useCheckboxStore } from '@ariakit/react';import { cn } from '~/utils';-import * as React from 'react';const CheckboxButton = React.forwardRef<HTMLInputElement,@@ -63,7 +63,7 @@ const CheckboxButton = React.forwardRef<render={<button type="button" aria-label={label} />}>{/* Icon if provided */}- {icon && <span className="icon-md text-text-primary">{icon}</span>}+ {icon && <span className="icon-md text-text-primary">{icon as React.JSX.Element}</span>}{/* Show the label on larger screens */}<span className="hidden truncate md:block">{label}</span>diff --git a/client/src/components/ui/Collapsible.tsx b/packages/client/src/components/Collapsible.tsxsimilarity index 100%rename from client/src/components/ui/Collapsible.tsxrename to packages/client/src/components/Collapsible.tsxdiff --git a/client/src/components/ui/Combobox.tsx b/packages/client/src/components/Combobox.tsxsimilarity index 92%rename from client/src/components/ui/Combobox.tsxrename to packages/client/src/components/Combobox.tsxindex 0bc1cc8ecd..7a513ecae1 100644--- a/client/src/components/ui/Combobox.tsx+++ b/packages/client/src/components/Combobox.tsx@@ -11,7 +11,7 @@ import {} from '@ariakit/react';import type { OptionWithIcon } from '~/common';import { SelectTrigger, SelectValue, SelectScrollDownButton } from './Select';-import useCombobox from '~/hooks/Input/useCombobox';+import { useCombobox } from '~/hooks';import { cn } from '~/utils';export default function ComboboxComponent({@@ -81,7 +81,7 @@ export default function ComboboxComponent({isCollapsed? 'flex h-9 w-9 shrink-0 items-center justify-center p-0 [&>span]:w-auto [&>svg]:hidden': '',- 'bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white ',+ 'bg-white text-black hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-gray-500 dark:bg-gray-850 dark:text-white',)}><SelectValue placeholder={selectPlaceholder}>@@ -93,7 +93,7 @@ export default function ComboboxComponent({style={{ userSelect: 'none' }}>{selectedValue- ? displayValue ?? selectedValue+ ? (displayValue ?? selectedValue): selectPlaceholder && selectPlaceholder}</span></SelectValue>@@ -110,7 +110,7 @@ export default function ComboboxComponent({)}><RadixSelect.Viewport className="mb-5 h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]">- <div className="group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-2 px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white">+ <div className="group sticky left-0 top-0 z-10 flex h-12 items-center gap-2 bg-white px-3 py-2 text-black duration-300 dark:bg-gray-700 dark:text-white"><SearchIcon className="h-4 w-4 text-gray-500 transition-colors duration-300 dark:group-focus-within:text-gray-300 dark:group-hover:text-gray-300" /><ComboboxautoSelect@@ -140,7 +140,7 @@ export default function ComboboxComponent({<RadixSelect.Item key={value} value={`${value ?? ''}`} asChild><ComboboxItemclassName={cn(- 'focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',+ 'relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50','rounded-lg hover:bg-gray-100/50 hover:bg-gray-50 dark:text-white dark:hover:bg-gray-600',)}/** Hacky fix for radix-ui Android issue: https://github.com/radix-ui/primitives/issues/1658 */@@ -155,8 +155,8 @@ export default function ComboboxComponent({</RadixSelect.ItemIndicator></span><RadixSelect.ItemText>- <div className="[&_svg]:text-foreground flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0">- <div className="assistant-item overflow-hidden rounded-full ">+ <div className="flex items-center justify-center gap-3 dark:text-white [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0 [&_svg]:text-foreground">+ <div className="assistant-item overflow-hidden rounded-full">{icon && icon}</div>{label}diff --git a/client/src/components/ui/ControlCombobox.tsx b/packages/client/src/components/ControlCombobox.tsxsimilarity index 100%rename from client/src/components/ui/ControlCombobox.tsxrename to packages/client/src/components/ControlCombobox.tsxdiff --git a/client/src/components/ui/DataTable.tsx b/packages/client/src/components/DataTable.tsxsimilarity index 94%rename from client/src/components/ui/DataTable.tsxrename to packages/client/src/components/DataTable.tsxindex a69f3d253f..37d001b4ce 100644--- a/client/src/components/ui/DataTable.tsx+++ b/packages/client/src/components/DataTable.tsx@@ -1,5 +1,4 @@import React, { useCallback, useEffect, useRef, useState, memo, useMemo } from 'react';-import { useRecoilValue } from 'recoil';import { useVirtualizer } from '@tanstack/react-virtual';import {Row,@@ -14,23 +13,14 @@ import {getFilteredRowModel,} from '@tanstack/react-table';import type { Table as TTable } from '@tanstack/react-table';-import {- Button,- Table,- Checkbox,- TableRow,- TableBody,- TableCell,- TableHead,- TableHeader,- AnimatedSearchInput,- Skeleton,-} from './';-import { TrashIcon, Spinner } from '~/components/svg';-import { useLocalize, useMediaQuery } from '~/hooks';-import { LocalizeFunction } from '~/common';+import { Table, TableRow, TableBody, TableCell, TableHead, TableHeader } from './Table';+import AnimatedSearchInput from './AnimatedSearchInput';+import { TrashIcon, Spinner } from '~/svgs';+import { useMediaQuery } from '~/hooks';+import { Skeleton } from './Skeleton';+import { Checkbox } from './Checkbox';+import { Button } from './Button';import { cn } from '~/utils';-import store from '~/store';type TableColumn<TData, TValue> = ColumnDef<TData, TValue> & {meta?: {@@ -81,6 +71,7 @@ interface DataTableProps<TData, TValue> {onFilterChange?: (value: string) => void;filterValue?: string;isLoading?: boolean;+ enableSearch?: boolean;}const TableRowComponent = <TData, TValue>({@@ -165,13 +156,11 @@ const DeleteButton = memo(isDeleting,disabled,isSmallScreen,- localize,}: {onDelete?: () => Promise<void>;isDeleting: boolean;disabled: boolean;isSmallScreen: boolean;- localize: LocalizeFunction;}) => {if (!onDelete) {return null;@@ -188,7 +177,7 @@ const DeleteButton = memo() : (<><TrashIcon className="size-3.5 text-red-400 sm:size-4" />- {!isSmallScreen && <span className="ml-2">{localize('com_ui_delete')}</span>}+ {!isSmallScreen && <span className="ml-2">Delete</span>}</>)}</Button>@@ -211,12 +200,11 @@ export default function DataTable<TData, TValue>({onFilterChange,filterValue,isLoading,+ enableSearch = true,}: DataTableProps<TData, TValue>) {- const localize = useLocalize();const isSmallScreen = useMediaQuery('(max-width: 768px)');const tableContainerRef = useRef<HTMLDivElement>(null);- const search = useRecoilValue(store.search);const [isDeleting, setIsDeleting] = useState(false);const [rowSelection, setRowSelection] = useState<Record<string, boolean>>({});const [sorting, setSorting] = useState<SortingState>(defaultSort);@@ -371,16 +359,15 @@ export default function DataTable<TData, TValue>({isDeleting={isDeleting}disabled={!table.getFilteredSelectedRowModel().rows.length || isDeleting}isSmallScreen={isSmallScreen}- localize={localize}/>)}- {filterColumn !== undefined && table.getColumn(filterColumn) && search.enabled && (+ {filterColumn !== undefined && table.getColumn(filterColumn) && enableSearch && (<div className="relative flex-1"><AnimatedSearchInputvalue={searchTerm}onChange={(e) => setSearchTerm(e.target.value)}isSearching={isSearching}- placeholder={`${localize('com_ui_search')}...`}+ placeholder="Search..."/></div>)}@@ -448,7 +435,7 @@ export default function DataTable<TData, TValue>({{!virtualRows.length && (<TableRow className="hover:bg-transparent"><TableCell colSpan={columns.length} className="p-4 text-center">- {localize('com_ui_no_data')}+ No data available</TableCell></TableRow>)}diff --git a/client/src/components/ui/DataTableColumnHeader.tsx b/packages/client/src/components/DataTableColumnHeader.tsxsimilarity index 83%rename from client/src/components/ui/DataTableColumnHeader.tsxrename to packages/client/src/components/DataTableColumnHeader.tsxindex 01d335a0e0..606f10b121 100644--- a/client/src/components/ui/DataTableColumnHeader.tsx+++ b/packages/client/src/components/DataTableColumnHeader.tsx@@ -1,8 +1,5 @@-import { ArrowDownIcon, ArrowUpIcon, CaretSortIcon, EyeNoneIcon } from '@radix-ui/react-icons';import { Column } from '@tanstack/react-table';--import { cn } from '~/utils';-import { Button } from './Button';+import { ArrowDownIcon, ArrowUpIcon, CaretSortIcon, EyeNoneIcon } from '@radix-ui/react-icons';import {DropdownMenu,DropdownMenuContent,@@ -10,6 +7,8 @@ import {DropdownMenuSeparator,DropdownMenuTrigger,} from './DropdownMenu';+import { Button } from './Button';+import { cn } from '~/utils';interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {column: Column<TData, TValue>;@@ -29,7 +28,7 @@ export function DataTableColumnHeader<TData, TValue>({<div className={cn('flex items-center space-x-2', className)}><DropdownMenu><DropdownMenuTrigger asChild>- <Button variant="ghost" size="sm" className="data-[state=open]:bg-accent -ml-3 h-8">+ <Button variant="ghost" size="sm" className="-ml-3 h-8 data-[state=open]:bg-accent"><span>{title}</span>{column.getIsSorted() === 'desc' ? (<ArrowDownIcon className="ml-2 h-4 w-4" />@@ -42,16 +41,16 @@ export function DataTableColumnHeader<TData, TValue>({</DropdownMenuTrigger><DropdownMenuContent align="start" className="z-[1001]"><DropdownMenuItem onClick={() => column.toggleSorting(false)}>- <ArrowUpIcon className="text-muted-foreground/70 mr-2 h-3.5 w-3.5" />+ <ArrowUpIcon className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />Asc</DropdownMenuItem><DropdownMenuItem onClick={() => column.toggleSorting(true)}>- <ArrowDownIcon className="text-muted-foreground/70 mr-2 h-3.5 w-3.5" />+ <ArrowDownIcon className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />Desc</DropdownMenuItem><DropdownMenuSeparator /><DropdownMenuItem onClick={() => column.toggleVisibility(false)}>- <EyeNoneIcon className="text-muted-foreground/70 mr-2 h-3.5 w-3.5" />+ <EyeNoneIcon className="mr-2 h-3.5 w-3.5 text-muted-foreground/70" />Hide</DropdownMenuItem></DropdownMenuContent>diff --git a/packages/client/src/components/DelayedRender.tsx b/packages/client/src/components/DelayedRender.tsxnew file mode 100644index 0000000000..0899d1dd32--- /dev/null+++ b/packages/client/src/components/DelayedRender.tsx@@ -0,0 +1,12 @@+import React from 'react';+import { useDelayedRender } from '~/hooks';++interface DelayedRenderProps {+ delay: number;+ children: React.ReactNode;+}++const DelayedRender = ({ delay, children }: DelayedRenderProps) =>+ useDelayedRender(delay)(() => children);++export default DelayedRender;diff --git a/client/src/components/ui/Dialog.tsx b/packages/client/src/components/Dialog.tsxsimilarity index 99%rename from client/src/components/ui/Dialog.tsxrename to packages/client/src/components/Dialog.tsxindex 48ef18e52f..4be440ccd7 100644--- a/client/src/components/ui/Dialog.tsx+++ b/packages/client/src/components/Dialog.tsx@@ -1,9 +1,9 @@import * as React from 'react';import * as DialogPrimitive from '@radix-ui/react-dialog';-import { Button } from '../ui/Button';+import { useMediaQuery } from '~/hooks';+import { Button } from './Button';import { X } from 'lucide-react';import { cn } from '~/utils';-import { useMediaQuery } from '~/hooks';const Dialog = DialogPrimitive.Root;diff --git a/client/src/components/ui/DialogTemplate.spec.tsx b/packages/client/src/components/DialogTemplate.spec.tsxsimilarity index 92%rename from client/src/components/ui/DialogTemplate.spec.tsxrename to packages/client/src/components/DialogTemplate.spec.tsxindex f3340d537c..fedc4282ec 100644--- a/client/src/components/ui/DialogTemplate.spec.tsx+++ b/packages/client/src/components/DialogTemplate.spec.tsx@@ -1,13 +1,12 @@import 'test/matchMedia.mock';-import React from 'react';import { render, fireEvent } from '@testing-library/react';import '@testing-library/jest-dom/extend-expect';import DialogTemplate from './DialogTemplate';import { Dialog } from '@radix-ui/react-dialog';-import { RecoilRoot } from 'recoil';+import { Provider } from 'jotai';describe('DialogTemplate', () => {- let mockSelectHandler;+ let mockSelectHandler: jest.Mock;beforeEach(() => {mockSelectHandler = jest.fn();@@ -15,7 +14,7 @@ describe('DialogTemplate', () => {it('renders correctly with all props', () => {const { getByText } = render(- <RecoilRoot>+ <Provider><Dialogopendata-testid="test-dialog"@@ -32,7 +31,7 @@ describe('DialogTemplate', () => {selection={{ selectHandler: mockSelectHandler, selectText: 'Select' }}/></Dialog>- </RecoilRoot>,+ </Provider>,);expect(getByText('Test Dialog')).toBeInTheDocument();@@ -46,14 +45,14 @@ describe('DialogTemplate', () => {it('renders correctly without optional props', () => {const { queryByText } = render(- <RecoilRoot>+ <Provider><DialogopenonOpenChange={() => {return;}}></Dialog>- </RecoilRoot>,+ </Provider>,);expect(queryByText('Test Dialog')).toBeNull();@@ -67,7 +66,7 @@ describe('DialogTemplate', () => {it('calls selectHandler when the select button is clicked', () => {const { getByText } = render(- <RecoilRoot>+ <Provider><DialogopenonOpenChange={() => {@@ -79,7 +78,7 @@ describe('DialogTemplate', () => {selection={{ selectHandler: mockSelectHandler, selectText: 'Select' }}/></Dialog>- </RecoilRoot>,+ </Provider>,);fireEvent.click(getByText('Select'));diff --git a/client/src/components/ui/DialogTemplate.tsx b/packages/client/src/components/DialogTemplate.tsxsimilarity index 95%rename from client/src/components/ui/DialogTemplate.tsxrename to packages/client/src/components/DialogTemplate.tsxindex cf3d50d3a5..d3ee806641 100644--- a/client/src/components/ui/DialogTemplate.tsx+++ b/packages/client/src/components/DialogTemplate.tsx@@ -6,9 +6,8 @@ import {DialogFooter,DialogHeader,DialogTitle,-} from './';+} from './Dialog';import { cn } from '~/utils/';-import { useLocalize } from '~/hooks';type SelectionProps = {selectHandler?: () => void;@@ -31,7 +30,6 @@ type DialogTemplateProps = {};const DialogTemplate = forwardRef((props: DialogTemplateProps, ref: Ref<HTMLDivElement>) => {- const localize = useLocalize();const {title,description,@@ -46,7 +44,7 @@ const DialogTemplate = forwardRef((props: DialogTemplateProps, ref: Ref<HTMLDivEshowCancelButton = true,} = props;const { selectHandler, selectClasses, selectText } = selection || {};- const Cancel = localize('com_ui_cancel');+ const Cancel = 'cancel';const defaultSelect ='bg-gray-800 text-white transition-colors hover:bg-gray-700 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-gray-200 dark:text-gray-800 dark:hover:bg-gray-200';diff --git a/client/src/components/ui/Dropdown.tsx b/packages/client/src/components/Dropdown.tsxsimilarity index 100%rename from client/src/components/ui/Dropdown.tsxrename to packages/client/src/components/Dropdown.tsxdiff --git a/client/src/components/ui/DropdownMenu.tsx b/packages/client/src/components/DropdownMenu.tsxsimilarity index 100%rename from client/src/components/ui/DropdownMenu.tsxrename to packages/client/src/components/DropdownMenu.tsxdiff --git a/client/src/components/ui/DropdownNoState.tsx b/packages/client/src/components/DropdownNoState.tsxsimilarity index 95%rename from client/src/components/ui/DropdownNoState.tsxrename to packages/client/src/components/DropdownNoState.tsxindex 03ef5f0770..a55caa3ce7 100644--- a/client/src/components/ui/DropdownNoState.tsx+++ b/packages/client/src/components/DropdownNoState.tsx@@ -6,7 +6,6 @@ import {ListboxOptions,Transition,} from '@headlessui/react';-import { AnchorPropsWithSelection } from '@headlessui/react/dist/internal/floating';import type { Option } from '~/common';import { cn } from '~/utils/';@@ -16,7 +15,6 @@ interface DropdownProps {onChange: (value: string | Option) => void;options: (string | Option)[];className?: string;- anchor?: AnchorPropsWithSelection;sizeClasses?: string;testId?: string;}@@ -31,7 +29,6 @@ const Dropdown: FC<DropdownProps> = ({onChange,options,className = '',- anchor,sizeClasses,testId = 'dropdown-menu',}) => {@@ -39,7 +36,7 @@ const Dropdown: FC<DropdownProps> = ({typeof option === 'string' ? option : option?.value;const getDisplay = (option?: string | Option) =>- typeof option === 'string' ? option : option?.label ?? option?.value;+ typeof option === 'string' ? option : (option?.label ?? option?.value);const isEqual = (a: string | Option, b: string | Option): boolean => getValue(a) === getValue(b);@@ -90,7 +87,6 @@ const Dropdown: FC<DropdownProps> = ({sizeClasses,className,)}- anchor={anchor}aria-label="List of options">{options.map((item, index) => (diff --git a/client/src/components/ui/DropdownPopup.tsx b/packages/client/src/components/DropdownPopup.tsxsimilarity index 98%rename from client/src/components/ui/DropdownPopup.tsxrename to packages/client/src/components/DropdownPopup.tsxindex efadae71d8..0953811f49 100644--- a/client/src/components/ui/DropdownPopup.tsx+++ b/packages/client/src/components/DropdownPopup.tsx@@ -119,7 +119,6 @@ const Menu: React.FC<MenuProps> = ({)}{item.label}{item.kbd != null && (- // eslint-disable-next-line i18next/no-literal-string<kbd className="ml-auto hidden font-sans text-xs text-black/50 group-hover:inline group-focus:inline dark:text-white/50">⌘{item.kbd}</kbd>diff --git a/client/src/components/ui/FileUpload.tsx b/packages/client/src/components/FileUpload.tsxsimilarity index 100%rename from client/src/components/ui/FileUpload.tsxrename to packages/client/src/components/FileUpload.tsxdiff --git a/client/src/components/ui/FormInput.tsx b/packages/client/src/components/FormInput.tsxsimilarity index 79%rename from client/src/components/ui/FormInput.tsxrename to packages/client/src/components/FormInput.tsxindex dcce7d692b..2d6c55e348 100644--- a/client/src/components/ui/FormInput.tsx+++ b/packages/client/src/components/FormInput.tsx@@ -1,8 +1,13 @@import React from 'react';-import { Label, Input } from '~/components/ui';+import type { ControllerRenderProps, FieldValues, FieldPath } from 'react-hook-form';+import { Label } from './Label';+import { Input } from './Input';import { cn } from '~/utils';-export default function FormInput({+export default function FormInput<+ TFieldValues extends FieldValues = FieldValues,+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,+>({field,label,labelClass,@@ -12,7 +17,7 @@ export default function FormInput({placeholder = '',type = 'string',}: {- field: any;+ field: ControllerRenderProps<TFieldValues, TName>;label: string;labelClass?: string;inputClass?: string;diff --git a/client/src/components/ui/HoverCard.tsx b/packages/client/src/components/HoverCard.tsxsimilarity index 97%rename from client/src/components/ui/HoverCard.tsxrename to packages/client/src/components/HoverCard.tsxindex 362ae47716..5b64adbfa1 100644--- a/client/src/components/ui/HoverCard.tsx+++ b/packages/client/src/components/HoverCard.tsx@@ -1,7 +1,6 @@import * as React from 'react';import * as HoverCardPrimitive from '@radix-ui/react-hover-card';--import { cn } from '../../utils';+import { cn } from '~/utils';const HoverCard = HoverCardPrimitive.Root;diff --git a/client/src/components/ui/Input.tsx b/packages/client/src/components/Input.tsxsimilarity index 99%rename from client/src/components/ui/Input.tsxrename to packages/client/src/components/Input.tsxindex 855567a5b4..10c765c1fb 100644--- a/client/src/components/ui/Input.tsx+++ b/packages/client/src/components/Input.tsx@@ -1,5 +1,4 @@import * as React from 'react';-import { cn } from '~/utils';export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;diff --git a/client/src/components/ui/InputCombobox.tsx b/packages/client/src/components/InputCombobox.tsxsimilarity index 100%rename from client/src/components/ui/InputCombobox.tsxrename to packages/client/src/components/InputCombobox.tsxdiff --git a/client/src/components/ui/InputNumber.tsx b/packages/client/src/components/InputNumber.tsxsimilarity index 100%rename from client/src/components/ui/InputNumber.tsxrename to packages/client/src/components/InputNumber.tsxdiff --git a/client/src/components/ui/InputOTP.tsx b/packages/client/src/components/InputOTP.tsxsimilarity index 95%rename from client/src/components/ui/InputOTP.tsxrename to packages/client/src/components/InputOTP.tsxindex 6a84d96e54..32b8ba08f4 100644--- a/client/src/components/ui/InputOTP.tsx+++ b/packages/client/src/components/InputOTP.tsx@@ -32,6 +32,11 @@ const InputOTPSlot = React.forwardRef<React.ComponentPropsWithoutRef<'div'> & { index: number }>(({ index, className, ...props }, ref) => {const inputOTPContext = React.useContext(OTPInputContext);++ if (!inputOTPContext) {+ throw new Error('InputOTPSlot must be used within an OTPInput');+ }+const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];return (diff --git a/client/src/components/ui/InputWithDropDown.tsx b/packages/client/src/components/InputWithDropDown.tsxsimilarity index 95%rename from client/src/components/ui/InputWithDropDown.tsxrename to packages/client/src/components/InputWithDropDown.tsxindex e1da6574bc..da7829a11a 100644--- a/client/src/components/ui/InputWithDropDown.tsx+++ b/packages/client/src/components/InputWithDropDown.tsx@@ -1,5 +1,5 @@import * as React from 'react';-import { Input } from '~/components/ui/Input';+import { Input } from './Input';import { cn } from '~/utils';export type InputWithDropdownProps = React.InputHTMLAttributes<HTMLInputElement> & {@@ -92,7 +92,7 @@ const InputWithDropdown = React.forwardRef<HTMLInputElement, InputWithDropdownPr/><buttontype="button"- className="text-tertiary hover:text-secondary absolute inset-y-0 right-0 flex items-center rounded-md px-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary"+ className="text-tertiary absolute inset-y-0 right-0 flex items-center rounded-md px-2 hover:text-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring-primary"onClick={() => setIsOpen(!isOpen)}aria-label={isOpen ? 'Close dropdown' : 'Open dropdown'}>@@ -127,7 +127,7 @@ const InputWithDropdown = React.forwardRef<HTMLInputElement, InputWithDropdownPr'cursor-pointer rounded-md px-3 py-2','focus:bg-surface-tertiary focus:outline-none focus:ring-1 focus:ring-inset focus:ring-ring-primary',index === highlightedIndex- ? 'text-primary bg-surface-active'+ ? 'bg-surface-active text-primary': 'text-secondary hover:bg-surface-tertiary',)}onClick={() => handleSelect(option)}diff --git a/client/src/components/ui/Label.tsx b/packages/client/src/components/Label.tsxsimilarity index 51%rename from client/src/components/ui/Label.tsxrename to packages/client/src/components/Label.tsxindex 2ff6e600da..54f75fb2a8 100644--- a/client/src/components/ui/Label.tsx+++ b/packages/client/src/components/Label.tsx@@ -1,19 +1,22 @@import * as React from 'react';import * as LabelPrimitive from '@radix-ui/react-label';--import { cn } from '../../utils';+import { cn } from '~/utils';const Label = React.forwardRef<React.ElementRef<typeof LabelPrimitive.Root>,- React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & {+ className?: string;+ }>(({ className = '', ...props }, ref) => (<LabelPrimitive.Rootref={ref}- className={cn(- 'block w-full break-all text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200',- className,- )}{...props}+ {...{+ className: cn(+ 'block w-full break-all text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-200',+ className,+ ),+ }}/>));Label.displayName = LabelPrimitive.Root.displayName;diff --git a/client/src/components/ui/MultiSearch.tsx b/packages/client/src/components/MultiSearch.tsxsimilarity index 94%rename from client/src/components/ui/MultiSearch.tsxrename to packages/client/src/components/MultiSearch.tsxindex 64767c6442..56d1843e71 100644--- a/client/src/components/ui/MultiSearch.tsx+++ b/packages/client/src/components/MultiSearch.tsx@@ -1,6 +1,5 @@import { Search, X } from 'lucide-react';import React, { useState, useMemo, useCallback, useRef } from 'react';-import { useLocalize } from '~/hooks';import { cn } from '~/utils';/** This is a generic that can be added to Menu and Select components */@@ -15,7 +14,6 @@ export default function MultiSearch({placeholder?: string;className?: string;}) {- const localize = useLocalize();const inputRef = useRef<HTMLInputElement>(null);const onChangeHandler: React.ChangeEventHandler<HTMLInputElement> = useCallback(@@ -46,14 +44,14 @@ export default function MultiSearch({type="text"value={value ?? ''}onChange={onChangeHandler}- placeholder={placeholder ?? localize('com_ui_select_search_model')}+ placeholder={String(placeholder ?? 'Search...')}aria-label="Search Model"className="flex-1 rounded-md border-none bg-transparent px-2.5 py-2 text-sm placeholder-text-secondary focus:outline-none focus:ring-1 focus:ring-ring-primary"/><buttonclassName={cn('relative flex h-5 w-5 items-center justify-end rounded-md text-text-secondary-alt',- value?.length ?? 0 ? 'cursor-pointer opacity-100' : 'hidden',+ (value?.length ?? 0) ? 'cursor-pointer opacity-100' : 'hidden',)}aria-label={'Clear search'}onClick={clearSearch}@@ -63,7 +61,7 @@ export default function MultiSearch({aria-hidden={'true'}className={cn('text-text-secondary-alt',- value?.length ?? 0 ? 'cursor-pointer opacity-100' : 'opacity-0',+ (value?.length ?? 0) ? 'cursor-pointer opacity-100' : 'opacity-0',)}/></button>diff --git a/client/src/components/ui/MultiSelect.tsx b/packages/client/src/components/MultiSelect.tsxsimilarity index 92%rename from client/src/components/ui/MultiSelect.tsxrename to packages/client/src/components/MultiSelect.tsxindex 20e2512794..d7798e810d 100644--- a/client/src/components/ui/MultiSelect.tsx+++ b/packages/client/src/components/MultiSelect.tsx@@ -14,7 +14,6 @@ interface MultiSelectProps<T extends string> {items: T[];label?: string;placeholder?: string;- defaultSelectedValues?: T[];onSelectedValuesChange?: (values: T[]) => void;renderSelectedValues?: (values: T[], placeholder?: string) => React.ReactNode;className?: string;@@ -47,7 +46,6 @@ export default function MultiSelect<T extends string>({items,label,placeholder = 'Select...',- defaultSelectedValues = [],onSelectedValuesChange,renderSelectedValues = defaultRender,className,@@ -89,7 +87,7 @@ export default function MultiSelect<T extends string>({)}onChange={(e) => e.stopPropagation()}>- {selectIcon && selectIcon}+ {selectIcon && <span>{selectIcon as React.JSX.Element}</span>}<span className="mr-auto hidden truncate md:block">{renderSelectedValues(selectedValues, placeholder)}</span>@@ -132,8 +130,12 @@ export default function MultiSelect<T extends string>({)}>{renderItemContent- ? renderItemContent(value, defaultContent, isCurrentItemSelected)- : defaultContent}+ ? (renderItemContent(+ value,+ defaultContent,+ isCurrentItemSelected,+ ) as React.JSX.Element)+ : (defaultContent as React.JSX.Element)}</SelectItem>);})}diff --git a/client/src/components/ui/OGDialogTemplate.tsx b/packages/client/src/components/OGDialogTemplate.tsxsimilarity index 93%rename from client/src/components/ui/OGDialogTemplate.tsxrename to packages/client/src/components/OGDialogTemplate.tsxindex 8595c13ac9..fe2e919a4e 100644--- a/client/src/components/ui/OGDialogTemplate.tsx+++ b/packages/client/src/components/OGDialogTemplate.tsx@@ -9,7 +9,7 @@ import {} from './OriginalDialog';import { useLocalize } from '~/hooks';import { Button } from './Button';-import { Spinner } from '../svg';+import { Spinner } from '~/svgs';import { cn } from '~/utils/';type SelectionProps = {@@ -97,7 +97,11 @@ const OGDialogTemplate = forwardRef((props: DialogTemplateProps, ref: Ref<HTMLDiselectClasses ?? defaultSelect} flex h-10 items-center justify-center rounded-lg border-none px-4 py-2 text-sm disabled:opacity-80 max-sm:order-first max-sm:w-full sm:order-none`}>- {isLoading === true ? <Spinner className="size-4 text-white" /> : selectText}+ {isLoading === true ? (+ <Spinner className="size-4 text-white" />+ ) : (+ (selectText as React.JSX.Element)+ )}</OGDialogClose>) : null}</div>diff --git a/client/src/components/ui/OriginalDialog.tsx b/packages/client/src/components/OriginalDialog.tsxsimilarity index 100%rename from client/src/components/ui/OriginalDialog.tsxrename to packages/client/src/components/OriginalDialog.tsxdiff --git a/client/src/components/ui/Pagination.tsx b/packages/client/src/components/Pagination.tsxsimilarity index 100%rename from client/src/components/ui/Pagination.tsxrename to packages/client/src/components/Pagination.tsxdiff --git a/client/src/components/ui/PixelCard.tsx b/packages/client/src/components/PixelCard.tsxsimilarity index 96%rename from client/src/components/ui/PixelCard.tsxrename to packages/client/src/components/PixelCard.tsxindex 141a3ee55c..c1f3d8971a 100644--- a/client/src/components/ui/PixelCard.tsx+++ b/packages/client/src/components/PixelCard.tsx@@ -173,7 +173,7 @@ export default function PixelCard({const containerRef = useRef<HTMLDivElement>(null);const canvasRef = useRef<HTMLCanvasElement>(null);const pixelsRef = useRef<Pixel[]>([]);- const animationRef = useRef<number>();+ const animationRef = useRef<number | undefined>(undefined);const timePrevRef = useRef(performance.now());const progressRef = useRef<number | undefined>(progress);const reducedMotion = useRef(@@ -221,9 +221,11 @@ export default function PixelCard({let idle = true;for (const p of pixelsRef.current) {if (method === 'appearWithProgress') {- progressRef.current !== undefined- ? p.appearWithProgress(progressRef.current)- : (p.isIdle = true);+ if (progressRef.current !== undefined) {+ p.appearWithProgress(progressRef.current);+ } else {+ p.isIdle = true;+ }} else {// @ts-ignore dynamic dispatchp[method]();@@ -312,7 +314,9 @@ export default function PixelCard({useEffect(() => {initPixels();const obs = new ResizeObserver(initPixels);- containerRef.current && obs.observe(containerRef.current);+ if (containerRef.current) {+ obs.observe(containerRef.current);+ }return () => {obs.disconnect();cancelAnimationFrame(animationRef.current!);diff --git a/client/src/components/ui/Progress.tsx b/packages/client/src/components/Progress.tsxsimilarity index 100%rename from client/src/components/ui/Progress.tsxrename to packages/client/src/components/Progress.tsxdiff --git a/client/src/components/ui/QuestionMark.tsx b/packages/client/src/components/QuestionMark.tsxsimilarity index 99%rename from client/src/components/ui/QuestionMark.tsxrename to packages/client/src/components/QuestionMark.tsxindex 89785837a0..f018226f19 100644--- a/client/src/components/ui/QuestionMark.tsx+++ b/packages/client/src/components/QuestionMark.tsx@@ -1,4 +1,5 @@import { cn } from '~/utils';+export const QuestionMark = ({ className = '' }) => {return (<span>diff --git a/client/src/components/ui/Resizable.tsx b/packages/client/src/components/Resizable.tsxsimilarity index 75%rename from client/src/components/ui/Resizable.tsxrename to packages/client/src/components/Resizable.tsxindex fc9a32df82..19d3c50e34 100644--- a/client/src/components/ui/Resizable.tsx+++ b/packages/client/src/components/Resizable.tsx@@ -24,13 +24,13 @@ const ResizableHandle = ({}) => (<ResizablePrimitive.PanelResizeHandleclassName={cn(- 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90',+ 'relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90',className,)}{...props}>{withHandle && (- <div className="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border">+ <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border"><GripVertical className="h-2.5 w-2.5" /></div>)}@@ -46,13 +46,13 @@ const ResizableHandleAlt = ({}) => (<ResizablePrimitive.PanelResizeHandleclassName={cn(- 'bg-border focus-visible:ring-ring group relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90',+ 'group relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90',className,)}{...props}>{withHandle && (- <div className="bg-border invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border group-hover:visible group-active:visible">+ <div className="invisible z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border group-hover:visible group-active:visible"><GripVertical className="h-2.5 w-2.5" /></div>)}diff --git a/client/src/components/ui/Select.tsx b/packages/client/src/components/Select.tsxsimilarity index 97%rename from client/src/components/ui/Select.tsxrename to packages/client/src/components/Select.tsxindex 671bae4438..3301e3577c 100644--- a/client/src/components/ui/Select.tsx+++ b/packages/client/src/components/Select.tsx@@ -4,12 +4,15 @@ import { CaretSortIcon, CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@radiximport { cn } from '~/utils';+// @ts-ignore - Radix UI type conflicts with React typesconst Select = SelectPrimitive.Root;+// @ts-ignore - Radix UI type conflicts with React typesconst SelectGroup = SelectPrimitive.Group;const SelectValue = SelectPrimitive.Value;+// @ts-ignore - Radix UI type conflicts with React typesconst SelectTrigger = React.forwardRef<React.ElementRef<typeof SelectPrimitive.Trigger>,React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>diff --git a/client/src/components/ui/SelectDropDown.tsx b/packages/client/src/components/SelectDropDown.tsxsimilarity index 96%rename from client/src/components/ui/SelectDropDown.tsxrename to packages/client/src/components/SelectDropDown.tsxindex 4547991925..e9a6027bc1 100644--- a/client/src/components/ui/SelectDropDown.tsx+++ b/packages/client/src/components/SelectDropDown.tsx@@ -8,10 +8,9 @@ import {ListboxOptions,} from '@headlessui/react';import type { Option, OptionWithIcon, DropdownValueSetter } from '~/common';-import CheckMark from '~/components/svg/CheckMark';import { useMultiSearch } from './MultiSearch';-import { useLocalize } from '~/hooks';-import { cn } from '~/utils/';+import { CheckMark } from '~/svgs';+import { cn } from '~/utils';type SelectDropDownProps = {id?: string;@@ -75,7 +74,6 @@ function SelectDropDown({searchPlaceholder,showOptionIcon = false,}: SelectDropDownProps) {- const localize = useLocalize();const transitionProps = { className: 'top-full mt-3' };if (showAbove) {transitionProps.className = 'bottom-full mb-3';@@ -84,9 +82,8 @@ function SelectDropDown({let title = _title;if (emptyTitle) {title = '';- } else if (!(title ?? '')) {- title = localize('com_ui_model');}+const values = availableValues ?? [];// Enable searchable select if enough items are provided.@@ -186,7 +183,7 @@ function SelectDropDown({</ListboxButton><Transitionshow={open}- as={React.Fragment}+ as="div"leave="transition ease-in duration-100"leaveFrom="opacity-100"leaveTo="opacity-0"@@ -207,10 +204,10 @@ function SelectDropDown({optionsClass ?? '',)}>- {renderOption()}+ {renderOption() as React.JSX.Element}</ListboxOption>)}- {searchRender}+ {searchRender as React.JSX.Element}{options.map((option: string | Option, i: number) => {if (!option) {return null;diff --git a/client/src/components/ui/Separator.tsx b/packages/client/src/components/Separator.tsxsimilarity index 67%rename from client/src/components/ui/Separator.tsxrename to packages/client/src/components/Separator.tsxindex f95d48a793..7ba6d38096 100644--- a/client/src/components/ui/Separator.tsx+++ b/packages/client/src/components/Separator.tsx@@ -5,18 +5,22 @@ import { cn } from '~/utils';const Separator = React.forwardRef<React.ElementRef<typeof SeparatorPrimitive.Root>,- React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>+ React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & {+ className?: string;+ }>(({ className = '', orientation = 'horizontal', decorative = true, ...props }, ref) => (<SeparatorPrimitive.Rootref={ref}- decorative={decorative}- orientation={orientation}- className={cn(- 'shrink-0 bg-border-light',- orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',- className,- )}{...props}+ {...{+ decorative,+ orientation,+ className: cn(+ 'shrink-0 bg-border-light',+ orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',+ className,+ ),+ }}/>));Separator.displayName = SeparatorPrimitive.Root.displayName;diff --git a/client/src/components/ui/Skeleton.tsx b/packages/client/src/components/Skeleton.tsxsimilarity index 100%rename from client/src/components/ui/Skeleton.tsxrename to packages/client/src/components/Skeleton.tsxdiff --git a/packages/client/src/components/Slider.tsx b/packages/client/src/components/Slider.tsxnew file mode 100644index 0000000000..4be0f20039--- /dev/null+++ b/packages/client/src/components/Slider.tsx@@ -0,0 +1,38 @@+import * as React from 'react';+import * as SliderPrimitive from '@radix-ui/react-slider';+import { cn } from '~/utils';++const Slider = React.forwardRef<+ React.ElementRef<typeof SliderPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> & {+ className?: string;+ onDoubleClick?: () => void;+ }+>(({ className, onDoubleClick, ...props }, ref) => (+ <SliderPrimitive.Root+ ref={ref}+ {...props}+ {...{+ className: cn(+ 'relative flex w-full cursor-pointer touch-none select-none items-center',+ className,+ ),+ onDoubleClick,+ }}+ >+ <SliderPrimitive.Track+ {...{ className: 'relative h-2 w-full grow overflow-hidden rounded-full bg-secondary' }}+ >+ <SliderPrimitive.Range {...{ className: 'absolute h-full bg-primary' }} />+ </SliderPrimitive.Track>+ <SliderPrimitive.Thumb+ {...{+ className:+ 'block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',+ }}+ />+ </SliderPrimitive.Root>+));+Slider.displayName = SliderPrimitive.Root.displayName;++export { Slider };diff --git a/client/src/components/ui/SplitText.spec.tsx b/packages/client/src/components/SplitText.spec.tsxsimilarity index 100%rename from client/src/components/ui/SplitText.spec.tsxrename to packages/client/src/components/SplitText.spec.tsxdiff --git a/client/src/components/ui/SplitText.tsx b/packages/client/src/components/SplitText.tsxsimilarity index 77%rename from client/src/components/ui/SplitText.tsxrename to packages/client/src/components/SplitText.tsxindex cde04eb8a1..46dd757365 100644--- a/client/src/components/ui/SplitText.tsx+++ b/packages/client/src/components/SplitText.tsx@@ -1,6 +1,36 @@import { useSprings, animated, SpringConfig } from '@react-spring/web';import { useEffect, useRef, useState } from 'react';+interface SegmenterOptions {+ granularity?: 'grapheme' | 'word' | 'sentence';+ localeMatcher?: 'lookup' | 'best fit';+}++interface SegmentData {+ segment: string;+ index: number;+ input: string;+ isWordLike?: boolean;+}++interface Segments {+ [Symbol.iterator](): IterableIterator<SegmentData>;+}++interface IntlSegmenter {+ segment(input: string): Segments;+}++interface IntlSegmenterConstructor {+ new (locales?: string | string[], options?: SegmenterOptions): IntlSegmenter;+}++declare global {+ interface Intl {+ Segmenter: IntlSegmenterConstructor;+ }+}+interface SplitTextProps {text?: string;className?: string;@@ -16,12 +46,14 @@ interface SplitTextProps {}const splitGraphemes = (text: string): string[] => {- if (typeof Intl !== 'undefined' && Intl.Segmenter) {- const segmenter = new Intl.Segmenter('en', { granularity: 'grapheme' });+ if (typeof Intl !== 'undefined' && 'Segmenter' in Intl) {+ const segmenter = new (Intl as typeof Intl & { Segmenter: IntlSegmenterConstructor }).Segmenter(+ 'en',+ { granularity: 'grapheme' },+ );const segments = segmenter.segment(text);- return Array.from(segments).map((s) => s.segment);+ return Array.from(segments).map((s: SegmentData) => s.segment);} else {- // Fallback for browsers without Intl.Segmenterreturn [...text];}};@@ -45,12 +77,12 @@ const SplitText: React.FC<SplitTextProps> = ({const ref = useRef<HTMLParagraphElement>(null);const animatedCount = useRef(0);- const springs = useSprings(+ const [springs] = useSprings(letters.length,- letters.map((_, i) => ({+ (i) => ({from: animationFrom,to: inView- ? async (next: (props: any) => Promise<void>) => {+ ? async (next) => {await next(animationTo);animatedCount.current += 1;if (animatedCount.current === letters.length && onLetterAnimationComplete) {@@ -60,7 +92,8 @@ const SplitText: React.FC<SplitTextProps> = ({: animationFrom,delay: i * delay,config: { easing },- })),+ }),+ [inView, text, delay, animationFrom, animationTo, easing, onLetterAnimationComplete],);useEffect(() => {@@ -118,7 +151,7 @@ const SplitText: React.FC<SplitTextProps> = ({return (<animated.spankey={index}- style={springs[index] as unknown as React.CSSProperties}+ style={springs[index]}className="inline-block transform transition-opacity will-change-transform">{letter}diff --git a/client/src/components/ui/Switch.tsx b/packages/client/src/components/Switch.tsxsimilarity index 100%rename from client/src/components/ui/Switch.tsxrename to packages/client/src/components/Switch.tsxdiff --git a/client/src/components/ui/Table.tsx b/packages/client/src/components/Table.tsxsimilarity index 100%rename from client/src/components/ui/Table.tsxrename to packages/client/src/components/Table.tsxdiff --git a/client/src/components/ui/Tabs.tsx b/packages/client/src/components/Tabs.tsxsimilarity index 100%rename from client/src/components/ui/Tabs.tsxrename to packages/client/src/components/Tabs.tsxdiff --git a/client/src/components/ui/Tag.tsx b/packages/client/src/components/Tag.tsxsimilarity index 76%rename from client/src/components/ui/Tag.tsxrename to packages/client/src/components/Tag.tsxindex 38660d11c4..4d17617d65 100644--- a/client/src/components/ui/Tag.tsx+++ b/packages/client/src/components/Tag.tsx@@ -30,17 +30,17 @@ const TagPrimitiveRoot = React.forwardRef<HTMLDivElement, TagProps>({CancelButton? CancelButton: onRemove && (- <button- onClick={(e) => {- e.stopPropagation();- onRemove(e);- }}- className="rounded-full bg-green-600/50"- aria-label={`Remove ${label}`}- >- <X className="m-[1.5px] p-1" />- </button>- )}+ <button+ onClick={(e) => {+ e.stopPropagation();+ onRemove(e);+ }}+ className="rounded-full bg-green-600/50"+ aria-label={`Remove ${label}`}+ >+ <X className="m-[1.5px] p-1" />+ </button>+ )}</div>),);diff --git a/client/src/components/ui/Textarea.tsx b/packages/client/src/components/Textarea.tsxsimilarity index 96%rename from client/src/components/ui/Textarea.tsxrename to packages/client/src/components/Textarea.tsxindex a738bc8b7c..f9167e91c1 100644--- a/client/src/components/ui/Textarea.tsx+++ b/packages/client/src/components/Textarea.tsx@@ -1,8 +1,7 @@/* eslint-disable */import * as React from 'react';import TextareaAutosize from 'react-textarea-autosize';--import { cn } from '../../utils';+import { cn } from '~/utils';export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}diff --git a/client/src/components/ui/TextareaAutosize.tsx b/packages/client/src/components/TextareaAutosize.tsxsimilarity index 75%rename from client/src/components/ui/TextareaAutosize.tsxrename to packages/client/src/components/TextareaAutosize.tsxindex eeaa94d4aa..78083ab7a5 100644--- a/client/src/components/ui/TextareaAutosize.tsx+++ b/packages/client/src/components/TextareaAutosize.tsx@@ -1,13 +1,13 @@-import { useRecoilValue } from 'recoil';+import { useAtomValue } from 'jotai';import { forwardRef, useLayoutEffect, useState } from 'react';import ReactTextareaAutosize from 'react-textarea-autosize';import type { TextareaAutosizeProps } from 'react-textarea-autosize';-import store from '~/store';+import { chatDirectionAtom } from '~/store';export const TextareaAutosize = forwardRef<HTMLTextAreaElement, TextareaAutosizeProps>((props, ref) => {const [, setIsRerendered] = useState(false);- const chatDirection = useRecoilValue(store.chatDirection).toLowerCase();+ const chatDirection = useAtomValue(chatDirectionAtom).toLowerCase();useLayoutEffect(() => setIsRerendered(true), []);return <ReactTextareaAutosize dir={chatDirection} {...props} ref={ref} />;},diff --git a/client/src/components/ui/ThemeSelector.tsx b/packages/client/src/components/ThemeSelector.tsxsimilarity index 91%rename from client/src/components/ui/ThemeSelector.tsxrename to packages/client/src/components/ThemeSelector.tsxindex e643f05d87..5954b96e78 100644--- a/client/src/components/ui/ThemeSelector.tsx+++ b/packages/client/src/components/ThemeSelector.tsx@@ -1,6 +1,6 @@-import React, { useContext, useCallback, useEffect, useState } from 'react';+import { useContext, useCallback, useEffect, useState } from 'react';import { Sun, Moon, Monitor } from 'lucide-react';-import { ThemeContext } from '~/hooks';+import { ThemeContext } from '../theme';declare global {interface Window {@@ -8,8 +8,10 @@ declare global {}}+type ThemeType = 'system' | 'dark' | 'light';+const Theme = ({ theme, onChange }: { theme: string; onChange: (value: string) => void }) => {- const themeIcons = {+ const themeIcons: Record<ThemeType, JSX.Element> = {system: <Monitor />,dark: <Moon color="white" />,light: <Sun />,@@ -45,7 +47,7 @@ const Theme = ({ theme, onChange }: { theme: string; onChange: (value: string) =}}}>- {themeIcons[theme]}+ {themeIcons[theme as ThemeType]}</button>);};diff --git a/client/src/components/ui/Toast.tsx b/packages/client/src/components/Toast.tsxsimilarity index 98%rename from client/src/components/ui/Toast.tsxrename to packages/client/src/components/Toast.tsxindex 54dcc4ed0e..34ca1a0531 100644--- a/client/src/components/ui/Toast.tsx+++ b/packages/client/src/components/Toast.tsx@@ -2,7 +2,7 @@ import * as RadixToast from '@radix-ui/react-toast';import { NotificationSeverity } from '~/common/types';import { useToast } from '~/hooks';-export default function Toast() {+export function Toast() {const { toast, onOpenChange } = useToast();const severityClassName = {[NotificationSeverity.INFO]: 'border-gray-500 bg-gray-500',diff --git a/client/src/components/ui/Tooltip.tsx b/packages/client/src/components/Tooltip.tsxsimilarity index 100%rename from client/src/components/ui/Tooltip.tsxrename to packages/client/src/components/Tooltip.tsxdiff --git a/packages/client/src/components/index.ts b/packages/client/src/components/index.tsnew file mode 100644index 0000000000..edaf240dc4--- /dev/null+++ b/packages/client/src/components/index.ts@@ -0,0 +1,51 @@+export * from './Accordion';+export * from './AnimatedTabs';+export * from './AlertDialog';+export * from './Breadcrumb';+export * from './Button';+export * from './Checkbox';+export * from './DataTableColumnHeader';+export * from './Dialog';+export * from './DropdownMenu';+export * from './HoverCard';+export * from './Input';+export * from './InputNumber';+export * from './Label';+export * from './OriginalDialog';+export * from './QuestionMark';+export * from './Slider';+export * from './Separator';+export * from './InputCombobox';+export * from './Skeleton';+export * from './Switch';+export * from './Table';+export * from './Tabs';+export * from './Tag';+export * from './Textarea';+export * from './TextareaAutosize';+export * from './Toast';+export * from './Tooltip';+export * from './Pagination';+export * from './Progress';+export * from './InputOTP';+export * from './MultiSearch';+export * from './Resizable';+export { default as Badge } from './Badge';+export { default as Combobox } from './Combobox';+export { default as Dropdown } from './Dropdown';+export { default as SplitText } from './SplitText';+export { default as DataTable } from './DataTable';+export { default as FormInput } from './FormInput';+export { default as PixelCard } from './PixelCard';+export { default as FileUpload } from './FileUpload';+export { default as MultiSelect } from './MultiSelect';+export { default as DropdownPopup } from './DropdownPopup';+export { default as DelayedRender } from './DelayedRender';+export { default as ThemeSelector } from './ThemeSelector';+export { default as CheckboxButton } from './CheckboxButton';+export { default as DialogTemplate } from './DialogTemplate';+export { default as SelectDropDown } from './SelectDropDown';+export { default as ControlCombobox } from './ControlCombobox';+export { default as OGDialogTemplate } from './OGDialogTemplate';+export { default as InputWithDropdown } from './InputWithDropDown';+export { default as AnimatedSearchInput } from './AnimatedSearchInput';diff --git a/client/src/hooks/ThemeContext.tsx b/packages/client/src/hooks/ThemeContext.old.tsxsimilarity index 89%rename from client/src/hooks/ThemeContext.tsxrename to packages/client/src/hooks/ThemeContext.old.tsxindex 76b2725980..74516fcab0 100644--- a/client/src/hooks/ThemeContext.tsx+++ b/packages/client/src/hooks/ThemeContext.old.tsx@@ -1,9 +1,9 @@//ThemeContext.js// source: https://plainenglish.io/blog/light-and-dark-mode-in-react-web-application-with-tailwind-css-89674496b942-import { useSetRecoilState } from 'recoil';+import { useSetAtom } from 'jotai';import React, { createContext, useState, useEffect } from 'react';import { getInitialTheme, applyFontSize } from '~/utils';-import store from '~/store';+import { fontSizeAtom } from '~/store';type ProviderValue = {theme: string;@@ -26,9 +26,15 @@ export const isDark = (theme: string): boolean => {export const ThemeContext = createContext<ProviderValue>(defaultContextValue);-export const ThemeProvider = ({ initialTheme, children }) => {+export const ThemeProvider = ({+ initialTheme,+ children,+}: {+ initialTheme?: string;+ children: React.ReactNode;+}) => {const [theme, setTheme] = useState(getInitialTheme);- const setFontSize = useSetRecoilState(store.fontSize);+ const setFontSize = useSetAtom(fontSizeAtom);const rawSetTheme = (rawTheme: string) => {const root = window.document.documentElement;diff --git a/packages/client/src/hooks/index.ts b/packages/client/src/hooks/index.tsnew file mode 100644index 0000000000..019dae0ee4--- /dev/null+++ b/packages/client/src/hooks/index.ts@@ -0,0 +1,10 @@+// Theme exports are now handled by the theme module in the main index.ts++export type { TranslationKeys } from './useLocalize';++export { default as useToast } from './useToast';+export { default as useCombobox } from './useCombobox';+export { default as useLocalize } from './useLocalize';+export { default as useMediaQuery } from './useMediaQuery';+export { default as useDelayedRender } from './useDelayedRender';+export { default as useOnClickOutside } from './useOnClickOutside';diff --git a/client/src/hooks/Input/useCombobox.ts b/packages/client/src/hooks/useCombobox.tssimilarity index 100%rename from client/src/hooks/Input/useCombobox.tsrename to packages/client/src/hooks/useCombobox.tsdiff --git a/client/src/hooks/useDelayedRender.tsx b/packages/client/src/hooks/useDelayedRender.tsxsimilarity index 100%rename from client/src/hooks/useDelayedRender.tsxrename to packages/client/src/hooks/useDelayedRender.tsxdiff --git a/packages/client/src/hooks/useLocalize.ts b/packages/client/src/hooks/useLocalize.tsnew file mode 100644index 0000000000..83366cff16--- /dev/null+++ b/packages/client/src/hooks/useLocalize.ts@@ -0,0 +1,21 @@+import { useEffect } from 'react';+import { TOptions } from 'i18next';+import { useAtomValue } from 'jotai';+import { useTranslation } from 'react-i18next';+import { resources } from '~/locales/i18n';+import { langAtom } from '~/store';++export type TranslationKeys = keyof typeof resources.en.translation;++export default function useLocalize() {+ const lang = useAtomValue(langAtom);+ const { t, i18n } = useTranslation();++ useEffect(() => {+ if (i18n.language !== lang) {+ i18n.changeLanguage(lang);+ }+ }, [lang, i18n]);++ return (phraseKey: TranslationKeys, options?: TOptions) => t(phraseKey, options);+}diff --git a/client/src/hooks/useMediaQuery.tsx b/packages/client/src/hooks/useMediaQuery.tsxsimilarity index 100%rename from client/src/hooks/useMediaQuery.tsxrename to packages/client/src/hooks/useMediaQuery.tsxdiff --git a/client/src/hooks/useOnClickOutside.ts b/packages/client/src/hooks/useOnClickOutside.tssimilarity index 100%rename from client/src/hooks/useOnClickOutside.tsrename to packages/client/src/hooks/useOnClickOutside.tsdiff --git a/client/src/hooks/useToast.ts b/packages/client/src/hooks/useToast.tssimilarity index 87%rename from client/src/hooks/useToast.tsrename to packages/client/src/hooks/useToast.tsindex 92f7bbfe17..9937c640dd 100644--- a/client/src/hooks/useToast.ts+++ b/packages/client/src/hooks/useToast.ts@@ -1,11 +1,11 @@-import { useRecoilState } from 'recoil';+import { useAtom } from 'jotai';import { useRef, useEffect } from 'react';import type { TShowToast } from '~/common';import { NotificationSeverity } from '~/common';-import store from '~/store';+import { toastState, type ToastState } from '~/store';export default function useToast(showDelay = 100) {- const [toast, setToast] = useRecoilState(store.toastState);+ const [toast, setToast] = useAtom(toastState);const showTimerRef = useRef<number | null>(null);const hideTimerRef = useRef<number | null>(null);@@ -45,7 +45,7 @@ export default function useToast(showDelay = 100) {});// Hides the toast after the specified durationhideTimerRef.current = window.setTimeout(() => {- setToast((prevToast) => ({ ...prevToast, open: false }));+ setToast((prevToast: ToastState) => ({ ...prevToast, open: false }));}, duration);}, showDelay);};diff --git a/packages/client/src/index.ts b/packages/client/src/index.tsnew file mode 100644index 0000000000..709697c99f--- /dev/null+++ b/packages/client/src/index.ts@@ -0,0 +1,24 @@+// Components+export * from './components';++// Hooks+export * from './hooks';++// Common+export * from './common';+export * from './common/types';++// Store+export * from './store';++// SVGs+export * from './svgs';++// Utils+export * from './utils';++// Providers+export * from './Providers';++// Theme+export * from './theme';diff --git a/packages/client/src/locales/Translation.spec.ts b/packages/client/src/locales/Translation.spec.tsnew file mode 100644index 0000000000..fc3de6e0ef--- /dev/null+++ b/packages/client/src/locales/Translation.spec.ts@@ -0,0 +1,47 @@+import i18n from './i18n';+import English from './en/translation.json';+import French from './fr/translation.json';+import Spanish from './es/translation.json';++describe('i18next translation tests', () => {+ // Ensure i18next is initialized before any tests run+ beforeAll(async () => {+ if (!i18n.isInitialized) {+ await i18n.init();+ }+ });++ it('should return the correct translation for a valid key in English', () => {+ i18n.changeLanguage('en');+ expect(i18n.t('com_ui_examples')).toBe(English.com_ui_examples);+ });++ it('should return the correct translation for a valid key in French', () => {+ i18n.changeLanguage('fr');+ expect(i18n.t('com_ui_examples')).toBe(French.com_ui_examples);+ });++ it('should return the correct translation for a valid key in Spanish', () => {+ i18n.changeLanguage('es');+ expect(i18n.t('com_ui_examples')).toBe(Spanish.com_ui_examples);+ });++ it('should fallback to English for an invalid language code', () => {+ // When an invalid language is provided, i18next should fallback to English+ i18n.changeLanguage('invalid-code');+ expect(i18n.t('com_ui_examples')).toBe(English.com_ui_examples);+ });++ it('should return the key itself for an invalid key', () => {+ i18n.changeLanguage('en');+ expect(i18n.t('invalid-key')).toBe('invalid-key'); // Returns the key itself+ });++ it('should correctly format placeholders in the translation', () => {+ i18n.changeLanguage('en');+ expect(i18n.t('com_endpoint_default_with_num', { 0: 'John' })).toBe('default: John');++ i18n.changeLanguage('fr');+ expect(i18n.t('com_endpoint_default_with_num', { 0: 'Marie' })).toBe('par défaut : Marie');+ });+});diff --git a/packages/client/src/locales/ar/translation.json b/packages/client/src/locales/ar/translation.jsonnew file mode 100644index 0000000000..aa03723635--- /dev/null+++ b/packages/client/src/locales/ar/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "إلغاء"+}diff --git a/packages/client/src/locales/ca/translation.json b/packages/client/src/locales/ca/translation.jsonnew file mode 100644index 0000000000..8c42ae78f9--- /dev/null+++ b/packages/client/src/locales/ca/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Cancel·la"+}diff --git a/packages/client/src/locales/cs/translation.json b/packages/client/src/locales/cs/translation.jsonnew file mode 100644index 0000000000..4d34a884c6--- /dev/null+++ b/packages/client/src/locales/cs/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Zrušit"+}diff --git a/packages/client/src/locales/da/translation.json b/packages/client/src/locales/da/translation.jsonnew file mode 100644index 0000000000..796263989e--- /dev/null+++ b/packages/client/src/locales/da/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Annuller"+}diff --git a/packages/client/src/locales/de/translation.json b/packages/client/src/locales/de/translation.jsonnew file mode 100644index 0000000000..b1d8645611--- /dev/null+++ b/packages/client/src/locales/de/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Abbrechen"+}diff --git a/packages/client/src/locales/en/translation.json b/packages/client/src/locales/en/translation.jsonnew file mode 100644index 0000000000..de39a30059--- /dev/null+++ b/packages/client/src/locales/en/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Cancel"+}diff --git a/packages/client/src/locales/es/translation.json b/packages/client/src/locales/es/translation.jsonnew file mode 100644index 0000000000..c831d5737b--- /dev/null+++ b/packages/client/src/locales/es/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Cancelar"+}diff --git a/packages/client/src/locales/et/translation.json b/packages/client/src/locales/et/translation.jsonnew file mode 100644index 0000000000..fffcde4163--- /dev/null+++ b/packages/client/src/locales/et/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Tühista"+}diff --git a/packages/client/src/locales/fa/translation.json b/packages/client/src/locales/fa/translation.jsonnew file mode 100644index 0000000000..73e57d028e--- /dev/null+++ b/packages/client/src/locales/fa/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "لغو کنید"+}diff --git a/packages/client/src/locales/fi/translation.json b/packages/client/src/locales/fi/translation.jsonnew file mode 100644index 0000000000..00797137b6--- /dev/null+++ b/packages/client/src/locales/fi/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Peruuta"+}diff --git a/packages/client/src/locales/fr/translation.json b/packages/client/src/locales/fr/translation.jsonnew file mode 100644index 0000000000..1d6265d6c4--- /dev/null+++ b/packages/client/src/locales/fr/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Annuler"+}diff --git a/packages/client/src/locales/he/translation.json b/packages/client/src/locales/he/translation.jsonnew file mode 100644index 0000000000..5bf5a86d95--- /dev/null+++ b/packages/client/src/locales/he/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "בטל"+}diff --git a/packages/client/src/locales/hu/translation.json b/packages/client/src/locales/hu/translation.jsonnew file mode 100644index 0000000000..8616ee9274--- /dev/null+++ b/packages/client/src/locales/hu/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Mégse"+}diff --git a/packages/client/src/locales/i18n.ts b/packages/client/src/locales/i18n.tsnew file mode 100644index 0000000000..f463723a4f--- /dev/null+++ b/packages/client/src/locales/i18n.ts@@ -0,0 +1,87 @@+import i18n from 'i18next';+import { initReactI18next } from 'react-i18next';+import LanguageDetector from 'i18next-browser-languagedetector';++import translationEn from './en/translation.json';+import translationAr from './ar/translation.json';+import translationCa from './ca/translation.json';+import translationCs from './cs/translation.json';+import translationDa from './da/translation.json';+import translationDe from './de/translation.json';+import translationEs from './es/translation.json';+import translationEt from './et/translation.json';+import translationFa from './fa/translation.json';+import translationFr from './fr/translation.json';+import translationIt from './it/translation.json';+import translationPl from './pl/translation.json';+import translationPt_BR from './pt-BR/translation.json';+import translationPt_PT from './pt-PT/translation.json';+import translationRu from './ru/translation.json';+import translationJa from './ja/translation.json';+import translationKa from './ka/translation.json';+import translationSv from './sv/translation.json';+import translationKo from './ko/translation.json';+import translationTh from './th/translation.json';+import translationTr from './tr/translation.json';+import translationVi from './vi/translation.json';+import translationNl from './nl/translation.json';+import translationId from './id/translation.json';+import translationHe from './he/translation.json';+import translationHu from './hu/translation.json';+import translationFi from './fi/translation.json';+import translationZh_Hans from './zh-Hans/translation.json';+import translationZh_Hant from './zh-Hant/translation.json';++export const defaultNS = 'translation';++export const resources = {+ en: { translation: translationEn },+ ar: { translation: translationAr },+ ca: { translation: translationCa },+ cs: { translation: translationCs },+ 'zh-Hans': { translation: translationZh_Hans },+ 'zh-Hant': { translation: translationZh_Hant },+ da: { translation: translationDa },+ de: { translation: translationDe },+ es: { translation: translationEs },+ et: { translation: translationEt },+ fa: { translation: translationFa },+ fr: { translation: translationFr },+ it: { translation: translationIt },+ pl: { translation: translationPl },+ 'pt-BR': { translation: translationPt_BR },+ 'pt-PT': { translation: translationPt_PT },+ ru: { translation: translationRu },+ ja: { translation: translationJa },+ ka: { translation: translationKa },+ sv: { translation: translationSv },+ ko: { translation: translationKo },+ th: { translation: translationTh },+ tr: { translation: translationTr },+ vi: { translation: translationVi },+ nl: { translation: translationNl },+ id: { translation: translationId },+ he: { translation: translationHe },+ hu: { translation: translationHu },+ fi: { translation: translationFi },+} as const;++i18n+ .use(LanguageDetector)+ .use(initReactI18next)+ .init({+ fallbackLng: {+ 'zh-TW': ['zh-Hant', 'en'],+ 'zh-HK': ['zh-Hant', 'en'],+ zh: ['zh-Hans', 'en'],+ default: ['en'],+ },+ fallbackNS: 'translation',+ ns: ['translation'],+ debug: false,+ defaultNS,+ resources,+ interpolation: { escapeValue: false },+ });++export default i18n;diff --git a/packages/client/src/locales/id/translation.json b/packages/client/src/locales/id/translation.jsonnew file mode 100644index 0000000000..24d3467bd2--- /dev/null+++ b/packages/client/src/locales/id/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Batal"+}diff --git a/packages/client/src/locales/it/translation.json b/packages/client/src/locales/it/translation.jsonnew file mode 100644index 0000000000..cc082b4a2b--- /dev/null+++ b/packages/client/src/locales/it/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Annulla"+}diff --git a/packages/client/src/locales/ja/translation.json b/packages/client/src/locales/ja/translation.jsonnew file mode 100644index 0000000000..4400b02827--- /dev/null+++ b/packages/client/src/locales/ja/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "キャンセル"+}diff --git a/packages/client/src/locales/ka/translation.json b/packages/client/src/locales/ka/translation.jsonnew file mode 100644index 0000000000..0c90d6bf7d--- /dev/null+++ b/packages/client/src/locales/ka/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "გაუქმება"+}diff --git a/packages/client/src/locales/ko/translation.json b/packages/client/src/locales/ko/translation.jsonnew file mode 100644index 0000000000..96650ed6a8--- /dev/null+++ b/packages/client/src/locales/ko/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "취소"+}diff --git a/packages/client/src/locales/nl/translation.json b/packages/client/src/locales/nl/translation.jsonnew file mode 100644index 0000000000..2ec1fb8c6e--- /dev/null+++ b/packages/client/src/locales/nl/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Annuleren"+}diff --git a/packages/client/src/locales/pl/translation.json b/packages/client/src/locales/pl/translation.jsonnew file mode 100644index 0000000000..9c05e4cd79--- /dev/null+++ b/packages/client/src/locales/pl/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Anuluj"+}diff --git a/packages/client/src/locales/pt-BR/translation.json b/packages/client/src/locales/pt-BR/translation.jsonnew file mode 100644index 0000000000..c831d5737b--- /dev/null+++ b/packages/client/src/locales/pt-BR/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Cancelar"+}diff --git a/packages/client/src/locales/pt-PT/translation.json b/packages/client/src/locales/pt-PT/translation.jsonnew file mode 100644index 0000000000..c831d5737b--- /dev/null+++ b/packages/client/src/locales/pt-PT/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Cancelar"+}diff --git a/packages/client/src/locales/ru/translation.json b/packages/client/src/locales/ru/translation.jsonnew file mode 100644index 0000000000..e3f16ae66e--- /dev/null+++ b/packages/client/src/locales/ru/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Отмена"+}diff --git a/packages/client/src/locales/sv/translation.json b/packages/client/src/locales/sv/translation.jsonnew file mode 100644index 0000000000..c606ec621d--- /dev/null+++ b/packages/client/src/locales/sv/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Avbryt"+}diff --git a/packages/client/src/locales/th/translation.json b/packages/client/src/locales/th/translation.jsonnew file mode 100644index 0000000000..b78cd2cc27--- /dev/null+++ b/packages/client/src/locales/th/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "ยกเลิก"+}diff --git a/packages/client/src/locales/tr/translation.json b/packages/client/src/locales/tr/translation.jsonnew file mode 100644index 0000000000..10468437fe--- /dev/null+++ b/packages/client/src/locales/tr/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "İptal"+}diff --git a/packages/client/src/locales/vi/translation.json b/packages/client/src/locales/vi/translation.jsonnew file mode 100644index 0000000000..64634b0dff--- /dev/null+++ b/packages/client/src/locales/vi/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "Hủy"+}diff --git a/packages/client/src/locales/zh-Hans/translation.json b/packages/client/src/locales/zh-Hans/translation.jsonnew file mode 100644index 0000000000..d763c638ca--- /dev/null+++ b/packages/client/src/locales/zh-Hans/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "取消"+}diff --git a/packages/client/src/locales/zh-Hant/translation.json b/packages/client/src/locales/zh-Hant/translation.jsonnew file mode 100644index 0000000000..d763c638ca--- /dev/null+++ b/packages/client/src/locales/zh-Hant/translation.json@@ -0,0 +1,3 @@+{+ "com_ui_cancel": "取消"+}diff --git a/packages/client/src/store.ts b/packages/client/src/store.tsnew file mode 100644index 0000000000..6e23be6e04--- /dev/null+++ b/packages/client/src/store.ts@@ -0,0 +1,20 @@+import { atom } from 'jotai';+import { NotificationSeverity } from '~/common';++export const langAtom = atom<string>('en');+export const chatDirectionAtom = atom<string>('ltr');+export const fontSizeAtom = atom<string>('text-base');++export type ToastState = {+ open: boolean;+ message: string;+ severity: NotificationSeverity;+ showIcon: boolean;+};++export const toastState = atom<ToastState>({+ open: false,+ message: '',+ severity: NotificationSeverity.SUCCESS,+ showIcon: true,+});diff --git a/client/src/components/svg/AnthropicIcon.tsx b/packages/client/src/svgs/AnthropicIcon.tsxsimilarity index 100%rename from client/src/components/svg/AnthropicIcon.tsxrename to packages/client/src/svgs/AnthropicIcon.tsxdiff --git a/client/src/components/svg/AnthropicMinimalIcon.tsx b/packages/client/src/svgs/AnthropicMinimalIcon.tsxsimilarity index 100%rename from client/src/components/svg/AnthropicMinimalIcon.tsxrename to packages/client/src/svgs/AnthropicMinimalIcon.tsxdiff --git a/client/src/components/svg/AppleIcon.tsx b/packages/client/src/svgs/AppleIcon.tsxsimilarity index 99%rename from client/src/components/svg/AppleIcon.tsxrename to packages/client/src/svgs/AppleIcon.tsxindex 4f1ff404d1..e84b703864 100644--- a/client/src/components/svg/AppleIcon.tsx+++ b/packages/client/src/svgs/AppleIcon.tsx@@ -15,4 +15,4 @@ export default function AppleIcon() {/></svg>);-}\ No newline at end of file+}diff --git a/client/src/components/svg/ArchiveIcon.tsx b/packages/client/src/svgs/ArchiveIcon.tsxsimilarity index 100%rename from client/src/components/svg/ArchiveIcon.tsxrename to packages/client/src/svgs/ArchiveIcon.tsxdiff --git a/client/src/components/svg/AssistantIcon.tsx b/packages/client/src/svgs/AssistantIcon.tsxsimilarity index 100%rename from client/src/components/svg/AssistantIcon.tsxrename to packages/client/src/svgs/AssistantIcon.tsxdiff --git a/client/src/components/svg/AttachmentIcon.tsx b/packages/client/src/svgs/AttachmentIcon.tsxsimilarity index 100%rename from client/src/components/svg/AttachmentIcon.tsxrename to packages/client/src/svgs/AttachmentIcon.tsxdiff --git a/client/src/components/svg/AzureMinimalIcon.tsx b/packages/client/src/svgs/AzureMinimalIcon.tsxsimilarity index 99%rename from client/src/components/svg/AzureMinimalIcon.tsxrename to packages/client/src/svgs/AzureMinimalIcon.tsxindex 171a0c1eb5..bd73c5d132 100644--- a/client/src/components/svg/AzureMinimalIcon.tsx+++ b/packages/client/src/svgs/AzureMinimalIcon.tsx@@ -1,4 +1,3 @@-import { cn } from '~/utils/';export default function AzureMinimalIcon({diff --git a/client/src/components/svg/BedrockIcon.tsx b/packages/client/src/svgs/BedrockIcon.tsxsimilarity index 100%rename from client/src/components/svg/BedrockIcon.tsxrename to packages/client/src/svgs/BedrockIcon.tsxdiff --git a/client/src/components/svg/BirthdayIcon.tsx b/packages/client/src/svgs/BirthdayIcon.tsxsimilarity index 100%rename from client/src/components/svg/BirthdayIcon.tsxrename to packages/client/src/svgs/BirthdayIcon.tsxdiff --git a/client/src/components/svg/Blocks.tsx b/packages/client/src/svgs/Blocks.tsxsimilarity index 100%rename from client/src/components/svg/Blocks.tsxrename to packages/client/src/svgs/Blocks.tsxdiff --git a/client/src/components/svg/CautionIcon.tsx b/packages/client/src/svgs/CautionIcon.tsxsimilarity index 100%rename from client/src/components/svg/CautionIcon.tsxrename to packages/client/src/svgs/CautionIcon.tsxdiff --git a/client/src/components/svg/ChatGPTMinimalIcon.tsx b/packages/client/src/svgs/ChatGPTMinimalIcon.tsxsimilarity index 100%rename from client/src/components/svg/ChatGPTMinimalIcon.tsxrename to packages/client/src/svgs/ChatGPTMinimalIcon.tsxdiff --git a/client/src/components/svg/ChatIcon.tsx b/packages/client/src/svgs/ChatIcon.tsxsimilarity index 100%rename from client/src/components/svg/ChatIcon.tsxrename to packages/client/src/svgs/ChatIcon.tsxdiff --git a/client/src/components/svg/CheckMark.tsx b/packages/client/src/svgs/CheckMark.tsxsimilarity index 100%rename from client/src/components/svg/CheckMark.tsxrename to packages/client/src/svgs/CheckMark.tsxdiff --git a/client/src/components/svg/CircleHelpIcon.tsx b/packages/client/src/svgs/CircleHelpIcon.tsxsimilarity index 100%rename from client/src/components/svg/CircleHelpIcon.tsxrename to packages/client/src/svgs/CircleHelpIcon.tsxdiff --git a/client/src/components/svg/Clipboard.tsx b/packages/client/src/svgs/Clipboard.tsxsimilarity index 100%rename from client/src/components/svg/Clipboard.tsxrename to packages/client/src/svgs/Clipboard.tsxdiff --git a/client/src/components/svg/CodeyIcon.tsx b/packages/client/src/svgs/CodeyIcon.tsxsimilarity index 100%rename from client/src/components/svg/CodeyIcon.tsxrename to packages/client/src/svgs/CodeyIcon.tsxdiff --git a/client/src/components/svg/ContinueIcon.tsx b/packages/client/src/svgs/ContinueIcon.tsxsimilarity index 100%rename from client/src/components/svg/ContinueIcon.tsxrename to packages/client/src/svgs/ContinueIcon.tsxdiff --git a/client/src/components/svg/ConvoIcon.tsx b/packages/client/src/svgs/ConvoIcon.tsxsimilarity index 100%rename from client/src/components/svg/ConvoIcon.tsxrename to packages/client/src/svgs/ConvoIcon.tsxdiff --git a/client/src/components/svg/CrossIcon.tsx b/packages/client/src/svgs/CrossIcon.tsxsimilarity index 100%rename from client/src/components/svg/CrossIcon.tsxrename to packages/client/src/svgs/CrossIcon.tsxdiff --git a/client/src/components/svg/CustomMinimalIcon.tsx b/packages/client/src/svgs/CustomMinimalIcon.tsxsimilarity index 100%rename from client/src/components/svg/CustomMinimalIcon.tsxrename to packages/client/src/svgs/CustomMinimalIcon.tsxdiff --git a/client/src/components/svg/DarkModeIcon.tsx b/packages/client/src/svgs/DarkModeIcon.tsxsimilarity index 100%rename from client/src/components/svg/DarkModeIcon.tsxrename to packages/client/src/svgs/DarkModeIcon.tsxdiff --git a/client/src/components/svg/DataIcon.tsx b/packages/client/src/svgs/DataIcon.tsxsimilarity index 100%rename from client/src/components/svg/DataIcon.tsxrename to packages/client/src/svgs/DataIcon.tsxdiff --git a/client/src/components/svg/DiscordIcon.tsx b/packages/client/src/svgs/DiscordIcon.tsxsimilarity index 100%rename from client/src/components/svg/DiscordIcon.tsxrename to packages/client/src/svgs/DiscordIcon.tsxdiff --git a/client/src/components/svg/DislikeIcon.tsx b/packages/client/src/svgs/DislikeIcon.tsxsimilarity index 100%rename from client/src/components/svg/DislikeIcon.tsxrename to packages/client/src/svgs/DislikeIcon.tsxdiff --git a/client/src/components/svg/DotsIcon.tsx b/packages/client/src/svgs/DotsIcon.tsxsimilarity index 100%rename from client/src/components/svg/DotsIcon.tsxrename to packages/client/src/svgs/DotsIcon.tsxdiff --git a/client/src/components/svg/EditIcon.tsx b/packages/client/src/svgs/EditIcon.tsxsimilarity index 100%rename from client/src/components/svg/EditIcon.tsxrename to packages/client/src/svgs/EditIcon.tsxdiff --git a/client/src/components/svg/ExperimentIcon.tsx b/packages/client/src/svgs/ExperimentIcon.tsxsimilarity index 100%rename from client/src/components/svg/ExperimentIcon.tsxrename to packages/client/src/svgs/ExperimentIcon.tsxdiff --git a/client/src/components/svg/FacebookIcon.tsx b/packages/client/src/svgs/FacebookIcon.tsxsimilarity index 100%rename from client/src/components/svg/FacebookIcon.tsxrename to packages/client/src/svgs/FacebookIcon.tsxdiff --git a/client/src/components/svg/GPTIcon.tsx b/packages/client/src/svgs/GPTIcon.tsxsimilarity index 100%rename from client/src/components/svg/GPTIcon.tsxrename to packages/client/src/svgs/GPTIcon.tsxdiff --git a/client/src/components/svg/GearIcon.tsx b/packages/client/src/svgs/GearIcon.tsxsimilarity index 100%rename from client/src/components/svg/GearIcon.tsxrename to packages/client/src/svgs/GearIcon.tsxdiff --git a/client/src/components/svg/GeminiIcon.tsx b/packages/client/src/svgs/GeminiIcon.tsxsimilarity index 100%rename from client/src/components/svg/GeminiIcon.tsxrename to packages/client/src/svgs/GeminiIcon.tsxdiff --git a/client/src/components/svg/GithubIcon.tsx b/packages/client/src/svgs/GithubIcon.tsxsimilarity index 100%rename from client/src/components/svg/GithubIcon.tsxrename to packages/client/src/svgs/GithubIcon.tsxdiff --git a/client/src/components/svg/GoogleIcon.tsx b/packages/client/src/svgs/GoogleIcon.tsxsimilarity index 100%rename from client/src/components/svg/GoogleIcon.tsxrename to packages/client/src/svgs/GoogleIcon.tsxdiff --git a/client/src/components/svg/GoogleIconChat.tsx b/packages/client/src/svgs/GoogleIconChat.tsxsimilarity index 100%rename from client/src/components/svg/GoogleIconChat.tsxrename to packages/client/src/svgs/GoogleIconChat.tsxdiff --git a/client/src/components/svg/GoogleMinimalIcon.tsx b/packages/client/src/svgs/GoogleMinimalIcon.tsxsimilarity index 100%rename from client/src/components/svg/GoogleMinimalIcon.tsxrename to packages/client/src/svgs/GoogleMinimalIcon.tsxdiff --git a/client/src/components/svg/LightModeIcon.tsx b/packages/client/src/svgs/LightModeIcon.tsxsimilarity index 100%rename from client/src/components/svg/LightModeIcon.tsxrename to packages/client/src/svgs/LightModeIcon.tsxdiff --git a/client/src/components/svg/LightningIcon.tsx b/packages/client/src/svgs/LightningIcon.tsxsimilarity index 100%rename from client/src/components/svg/LightningIcon.tsxrename to packages/client/src/svgs/LightningIcon.tsxdiff --git a/client/src/components/svg/LikeIcon.tsx b/packages/client/src/svgs/LikeIcon.tsxsimilarity index 100%rename from client/src/components/svg/LikeIcon.tsxrename to packages/client/src/svgs/LikeIcon.tsxdiff --git a/client/src/components/svg/LinkIcon.tsx b/packages/client/src/svgs/LinkIcon.tsxsimilarity index 100%rename from client/src/components/svg/LinkIcon.tsxrename to packages/client/src/svgs/LinkIcon.tsxdiff --git a/client/src/components/svg/ListeningIcon.tsx b/packages/client/src/svgs/ListeningIcon.tsxsimilarity index 78%rename from client/src/components/svg/ListeningIcon.tsxrename to packages/client/src/svgs/ListeningIcon.tsxindex e81c7e37e9..ef8de6a4ed 100644--- a/client/src/components/svg/ListeningIcon.tsx+++ b/packages/client/src/svgs/ListeningIcon.tsx@@ -1,6 +1,10 @@import { cn } from '~/utils/';-export default function ListeningIcon({ className }) {+type ListeningIconProps = {+ className?: string;+};++export default function ListeningIcon({ className }: ListeningIconProps) {return (<svgxmlns="http://www.w3.org/2000/svg"diff --git a/client/src/components/svg/LockIcon.tsx b/packages/client/src/svgs/LockIcon.tsxsimilarity index 100%rename from client/src/components/svg/LockIcon.tsxrename to packages/client/src/svgs/LockIcon.tsxdiff --git a/client/src/components/svg/LogOutIcon.tsx b/packages/client/src/svgs/LogOutIcon.tsxsimilarity index 100%rename from client/src/components/svg/LogOutIcon.tsxrename to packages/client/src/svgs/LogOutIcon.tsxdiff --git a/client/src/components/svg/MCPIcon.tsx b/packages/client/src/svgs/MCPIcon.tsxsimilarity index 100%rename from client/src/components/svg/MCPIcon.tsxrename to packages/client/src/svgs/MCPIcon.tsxdiff --git a/client/src/components/svg/MessagesSquared.tsx b/packages/client/src/svgs/MessagesSquared.tsxsimilarity index 100%rename from client/src/components/svg/MessagesSquared.tsxrename to packages/client/src/svgs/MessagesSquared.tsxdiff --git a/client/src/components/svg/MinimalPlugin.tsx b/packages/client/src/svgs/MinimalPlugin.tsxsimilarity index 100%rename from client/src/components/svg/MinimalPlugin.tsxrename to packages/client/src/svgs/MinimalPlugin.tsxdiff --git a/client/src/components/svg/MobileSidebar.tsx b/packages/client/src/svgs/MobileSidebar.tsxsimilarity index 100%rename from client/src/components/svg/MobileSidebar.tsxrename to packages/client/src/svgs/MobileSidebar.tsxdiff --git a/client/src/components/svg/NewChatIcon.tsx b/packages/client/src/svgs/NewChatIcon.tsxsimilarity index 100%rename from client/src/components/svg/NewChatIcon.tsxrename to packages/client/src/svgs/NewChatIcon.tsxdiff --git a/client/src/components/svg/OpenAIMinimalIcon.tsx b/packages/client/src/svgs/OpenAIMinimalIcon.tsxsimilarity index 100%rename from client/src/components/svg/OpenAIMinimalIcon.tsxrename to packages/client/src/svgs/OpenAIMinimalIcon.tsxdiff --git a/client/src/components/svg/OpenIDIcon.tsx b/packages/client/src/svgs/OpenIDIcon.tsxsimilarity index 100%rename from client/src/components/svg/OpenIDIcon.tsxrename to packages/client/src/svgs/OpenIDIcon.tsxdiff --git a/client/src/components/svg/PaLMIcon.tsx b/packages/client/src/svgs/PaLMIcon.tsxsimilarity index 100%rename from client/src/components/svg/PaLMIcon.tsxrename to packages/client/src/svgs/PaLMIcon.tsxdiff --git a/client/src/components/svg/PaLMinimalIcon.tsx b/packages/client/src/svgs/PaLMinimalIcon.tsxsimilarity index 100%rename from client/src/components/svg/PaLMinimalIcon.tsxrename to packages/client/src/svgs/PaLMinimalIcon.tsxdiff --git a/client/src/components/svg/PersonalizationIcon.tsx b/packages/client/src/svgs/PersonalizationIcon.tsxsimilarity index 100%rename from client/src/components/svg/PersonalizationIcon.tsxrename to packages/client/src/svgs/PersonalizationIcon.tsxdiff --git a/client/src/components/svg/PinIcon.tsx b/packages/client/src/svgs/PinIcon.tsxsimilarity index 100%rename from client/src/components/svg/PinIcon.tsxrename to packages/client/src/svgs/PinIcon.tsxdiff --git a/client/src/components/svg/Plugin.tsx b/packages/client/src/svgs/Plugin.tsxsimilarity index 100%rename from client/src/components/svg/Plugin.tsxrename to packages/client/src/svgs/Plugin.tsxdiff --git a/client/src/components/svg/RegenerateIcon.tsx b/packages/client/src/svgs/RegenerateIcon.tsxsimilarity index 100%rename from client/src/components/svg/RegenerateIcon.tsxrename to packages/client/src/svgs/RegenerateIcon.tsxdiff --git a/client/src/components/svg/RenameIcon.tsx b/packages/client/src/svgs/RenameIcon.tsxsimilarity index 100%rename from client/src/components/svg/RenameIcon.tsxrename to packages/client/src/svgs/RenameIcon.tsxdiff --git a/client/src/components/svg/SamlIcon.tsx b/packages/client/src/svgs/SamlIcon.tsxsimilarity index 100%rename from client/src/components/svg/SamlIcon.tsxrename to packages/client/src/svgs/SamlIcon.tsxdiff --git a/client/src/components/svg/SaveIcon.tsx b/packages/client/src/svgs/SaveIcon.tsxsimilarity index 82%rename from client/src/components/svg/SaveIcon.tsxrename to packages/client/src/svgs/SaveIcon.tsxindex ce98153799..1985edb856 100644--- a/client/src/components/svg/SaveIcon.tsx+++ b/packages/client/src/svgs/SaveIcon.tsx@@ -1,6 +1,9 @@-import React from 'react';+type SaveIconProps = {+ size?: string | number;+ className?: string;+};-export default function SaveIcon({ size = '1em', className }) {+export default function SaveIcon({ size = '1em', className }: SaveIconProps) {return (<svgviewBox="64 64 896 896"diff --git a/client/src/components/svg/SendIcon.tsx b/packages/client/src/svgs/SendIcon.tsxsimilarity index 100%rename from client/src/components/svg/SendIcon.tsxrename to packages/client/src/svgs/SendIcon.tsxdiff --git a/client/src/components/svg/SendMessageIcon.tsx b/packages/client/src/svgs/SendMessageIcon.tsxsimilarity index 100%rename from client/src/components/svg/SendMessageIcon.tsxrename to packages/client/src/svgs/SendMessageIcon.tsxdiff --git a/client/src/components/svg/Sidebar.tsx b/packages/client/src/svgs/Sidebar.tsxsimilarity index 100%rename from client/src/components/svg/Sidebar.tsxrename to packages/client/src/svgs/Sidebar.tsxdiff --git a/client/src/components/svg/Sparkles.tsx b/packages/client/src/svgs/Sparkles.tsxsimilarity index 100%rename from client/src/components/svg/Sparkles.tsxrename to packages/client/src/svgs/Sparkles.tsxdiff --git a/client/src/components/svg/SpeechIcon.tsx b/packages/client/src/svgs/SpeechIcon.tsxsimilarity index 80%rename from client/src/components/svg/SpeechIcon.tsxrename to packages/client/src/svgs/SpeechIcon.tsxindex e93dbc94d8..86e0fac4b0 100644--- a/client/src/components/svg/SpeechIcon.tsx+++ b/packages/client/src/svgs/SpeechIcon.tsx@@ -1,6 +1,10 @@import { cn } from '~/utils/';-export default function SpeechIcon({ className }) {+type SpeechIconProps = {+ className?: string;+};++export default function SpeechIcon({ className }: SpeechIconProps) {return (<svgxmlns="http://www.w3.org/2000/svg"diff --git a/client/src/components/svg/Spinner.tsx b/packages/client/src/svgs/Spinner.tsxsimilarity index 100%rename from client/src/components/svg/Spinner.tsxrename to packages/client/src/svgs/Spinner.tsxdiff --git a/client/src/components/svg/SquirclePlusIcon.tsx b/packages/client/src/svgs/SquirclePlusIcon.tsxsimilarity index 100%rename from client/src/components/svg/SquirclePlusIcon.tsxrename to packages/client/src/svgs/SquirclePlusIcon.tsxdiff --git a/client/src/components/svg/StopGeneratingIcon.tsx b/packages/client/src/svgs/StopGeneratingIcon.tsxsimilarity index 100%rename from client/src/components/svg/StopGeneratingIcon.tsxrename to packages/client/src/svgs/StopGeneratingIcon.tsxdiff --git a/client/src/components/svg/SunIcon.tsx b/packages/client/src/svgs/SunIcon.tsxsimilarity index 100%rename from client/src/components/svg/SunIcon.tsxrename to packages/client/src/svgs/SunIcon.tsxdiff --git a/client/src/components/svg/SwitchIcon.tsx b/packages/client/src/svgs/SwitchIcon.tsxsimilarity index 79%rename from client/src/components/svg/SwitchIcon.tsxrename to packages/client/src/svgs/SwitchIcon.tsxindex 97753adca0..7725b400fc 100644--- a/client/src/components/svg/SwitchIcon.tsx+++ b/packages/client/src/svgs/SwitchIcon.tsx@@ -1,6 +1,9 @@-import React from 'react';+type SwitchIconProps = {+ size?: string | number;+ className?: string;+};-export default function SwitchIcon({ size = '1em', className }) {+export default function SwitchIcon({ size = '1em', className }: SwitchIconProps) {return (<svgviewBox="64 64 896 896"diff --git a/client/src/components/svg/ThumbDownIcon.tsx b/packages/client/src/svgs/ThumbDownIcon.tsxsimilarity index 98%rename from client/src/components/svg/ThumbDownIcon.tsxrename to packages/client/src/svgs/ThumbDownIcon.tsxindex e3966a4d82..a2332d7617 100644--- a/client/src/components/svg/ThumbDownIcon.tsx+++ b/packages/client/src/svgs/ThumbDownIcon.tsx@@ -1,5 +1,3 @@-import { cn } from '~/utils';-export default function ThumbDownIcon({ className = '', size = '1em', bold = false }) {return bold ? (<svgdiff --git a/client/src/components/svg/ThumbUpIcon.tsx b/packages/client/src/svgs/ThumbUpIcon.tsxsimilarity index 98%rename from client/src/components/svg/ThumbUpIcon.tsxrename to packages/client/src/svgs/ThumbUpIcon.tsxindex 9156252bff..5af4d35942 100644--- a/client/src/components/svg/ThumbUpIcon.tsx+++ b/packages/client/src/svgs/ThumbUpIcon.tsx@@ -1,5 +1,3 @@-import { cn } from '~/utils';-export default function ThumbUpIcon({ className = '', size = '1em', bold = false }) {return bold ? (<svgdiff --git a/client/src/components/svg/TrashIcon.tsx b/packages/client/src/svgs/TrashIcon.tsxsimilarity index 100%rename from client/src/components/svg/TrashIcon.tsxrename to packages/client/src/svgs/TrashIcon.tsxdiff --git a/client/src/components/svg/UserIcon.tsx b/packages/client/src/svgs/UserIcon.tsxsimilarity index 100%rename from client/src/components/svg/UserIcon.tsxrename to packages/client/src/svgs/UserIcon.tsxdiff --git a/client/src/components/svg/VectorIcon.tsx b/packages/client/src/svgs/VectorIcon.tsxsimilarity index 100%rename from client/src/components/svg/VectorIcon.tsxrename to packages/client/src/svgs/VectorIcon.tsxdiff --git a/client/src/components/svg/VolumeIcon.tsx b/packages/client/src/svgs/VolumeIcon.tsxsimilarity index 100%rename from client/src/components/svg/VolumeIcon.tsxrename to packages/client/src/svgs/VolumeIcon.tsxdiff --git a/client/src/components/svg/VolumeMuteIcon.tsx b/packages/client/src/svgs/VolumeMuteIcon.tsxsimilarity index 100%rename from client/src/components/svg/VolumeMuteIcon.tsxrename to packages/client/src/svgs/VolumeMuteIcon.tsxdiff --git a/client/src/components/svg/XAIcon.tsx b/packages/client/src/svgs/XAIcon.tsxsimilarity index 100%rename from client/src/components/svg/XAIcon.tsxrename to packages/client/src/svgs/XAIcon.tsxdiff --git a/packages/client/src/svgs/index.ts b/packages/client/src/svgs/index.tsnew file mode 100644index 0000000000..9c975a8e82--- /dev/null+++ b/packages/client/src/svgs/index.ts@@ -0,0 +1,67 @@+export { default as ArchiveIcon } from './ArchiveIcon';+export { default as Blocks } from './Blocks';+export { default as Plugin } from './Plugin';+export { default as GPTIcon } from './GPTIcon';+export { default as EditIcon } from './EditIcon';+export { default as DataIcon } from './DataIcon';+export { default as Sidebar } from './Sidebar';+export { default as MobileSidebar } from './MobileSidebar';+export { default as Spinner } from './Spinner';+export { default as Clipboard } from './Clipboard';+export { default as CheckMark } from './CheckMark';+export { default as CrossIcon } from './CrossIcon';+export { default as LogOutIcon } from './LogOutIcon';+export { default as CustomMinimalIcon } from './CustomMinimalIcon';+export { default as LightningIcon } from './LightningIcon';+export { default as AttachmentIcon } from './AttachmentIcon';+export { default as MessagesSquared } from './MessagesSquared';+export { default as StopGeneratingIcon } from './StopGeneratingIcon';+export { default as RegenerateIcon } from './RegenerateIcon';+export { default as ContinueIcon } from './ContinueIcon';+export { default as GoogleIcon } from './GoogleIcon';+export { default as FacebookIcon } from './FacebookIcon';+export { default as OpenIDIcon } from './OpenIDIcon';+export { default as GithubIcon } from './GithubIcon';+export { default as DiscordIcon } from './DiscordIcon';+export { default as AppleIcon } from './AppleIcon';+export { default as SamlIcon } from './SamlIcon';+export { default as AnthropicIcon } from './AnthropicIcon';+export { default as SendIcon } from './SendIcon';+export { default as LinkIcon } from './LinkIcon';+export { default as DotsIcon } from './DotsIcon';+export { default as GearIcon } from './GearIcon';+export { default as PinIcon } from './PinIcon';+export { default as TrashIcon } from './TrashIcon';+export { default as MinimalPlugin } from './MinimalPlugin';+export { default as AzureMinimalIcon } from './AzureMinimalIcon';+export { default as OpenAIMinimalIcon } from './OpenAIMinimalIcon';+export { default as ChatGPTMinimalIcon } from './ChatGPTMinimalIcon';+export { default as PaLMinimalIcon } from './PaLMinimalIcon';+export { default as PaLMIcon } from './PaLMIcon';+export { default as CodeyIcon } from './CodeyIcon';+export { default as GeminiIcon } from './GeminiIcon';+export { default as GoogleMinimalIcon } from './GoogleMinimalIcon';+export { default as AnthropicMinimalIcon } from './AnthropicMinimalIcon';+export { default as ListeningIcon } from './ListeningIcon';+export { default as VolumeIcon } from './VolumeIcon';+export { default as VolumeMuteIcon } from './VolumeMuteIcon';+export { default as SendMessageIcon } from './SendMessageIcon';+export { default as UserIcon } from './UserIcon';+export { default as LockIcon } from './LockIcon';+export { default as NewChatIcon } from './NewChatIcon';+export { default as ExperimentIcon } from './ExperimentIcon';+export { default as GoogleIconChat } from './GoogleIconChat';+export { default as BirthdayIcon } from './BirthdayIcon';+export { default as AssistantIcon } from './AssistantIcon';+export { default as Sparkles } from './Sparkles';+export { default as SpeechIcon } from './SpeechIcon';+export { default as SaveIcon } from './SaveIcon';+export { default as CircleHelpIcon } from './CircleHelpIcon';+export { default as BedrockIcon } from './BedrockIcon';+export { default as ThumbUpIcon } from './ThumbUpIcon';+export { default as ThumbDownIcon } from './ThumbDownIcon';+export { default as XAIcon } from './XAIcon';+export { default as PersonalizationIcon } from './PersonalizationIcon';+export { default as MCPIcon } from './MCPIcon';+export { default as VectorIcon } from './VectorIcon';+export { default as SquirclePlusIcon } from './SquirclePlusIcon';diff --git a/packages/client/src/theme/README.md b/packages/client/src/theme/README.mdnew file mode 100644index 0000000000..190a42c83a--- /dev/null+++ b/packages/client/src/theme/README.md@@ -0,0 +1,473 @@+# Dynamic Theme System for @librechat/client++This theme system allows you to dynamically change colors in your React application using CSS variables and Tailwind CSS. It combines dark/light mode switching with dynamic color theming capabilities.++## Table of Contents+- [Overview](#overview)+- [How It Works](#how-it-works)+- [Basic Usage](#basic-usage)+- [Available Theme Colors](#available-theme-colors)+- [Creating Custom Themes](#creating-custom-themes)+- [Environment Variable Themes](#environment-variable-themes)+- [Dark/Light Mode](#darklight-mode)+- [Migration Guide](#migration-guide)+- [Implementation Details](#implementation-details)+- [Troubleshooting](#troubleshooting)++## Overview++The theme system provides:+1. **Dark/Light Mode Switching** - Automatic theme switching based on user preference+2. **Dynamic Color Theming** - Change colors at runtime without recompiling CSS+3. **CSS Variable Based** - Uses CSS custom properties for performance+4. **Tailwind Integration** - Works seamlessly with Tailwind CSS utilities+5. **TypeScript Support** - Full type safety for theme definitions++## How It Works++The theme system operates in three layers:++1. **CSS Variables Layer**: Default colors defined in your app's CSS+2. **ThemeProvider Layer**: React context that manages theme state and applies CSS variables+3. **Tailwind Layer**: Maps CSS variables to Tailwind utility classes++### Default Behavior (No Custom Theme)+- CSS variables cascade from your app's `style.css` definitions+- Light mode uses variables under `html` selector+- Dark mode uses variables under `.dark` selector+- No JavaScript intervention in color values++### Custom Theme Behavior+- Only applies when `themeRGB` prop is provided+- Overrides CSS variables with `rgb()` formatted values+- Maintains compatibility with existing CSS++## Basic Usage++### 1. Install the Component Library++```bash+npm install @librechat/client+```++### 2. Wrap Your App with ThemeProvider++```tsx+import { ThemeProvider } from '@librechat/client';++function App() {+ return (+ <ThemeProvider initialTheme="system">+ <YourApp />+ </ThemeProvider>+ );+}+```++### 3. Set Up Your Base CSS++Ensure your app has CSS variables defined as fallbacks:++```css+/* style.css */+:root {+ --white: #fff;+ --gray-800: #212121;+ --gray-100: #ececec;+ /* ... other color definitions */+}++html {+ --text-primary: var(--gray-800);+ --surface-primary: var(--white);+ /* ... other theme variables */+}++.dark {+ --text-primary: var(--gray-100);+ --surface-primary: var(--gray-900);+ /* ... other dark theme variables */+}+```++### 4. Configure Tailwind++Update your `tailwind.config.js`:++```js+module.exports = {+ content: [+ './src/**/*.{js,jsx,ts,tsx}',+ // Include component library files+ './node_modules/@librechat/client/dist/**/*.js',+ ],+ darkMode: ['class'],+ theme: {+ extend: {+ colors: {+ // Map CSS variables to Tailwind colors+ 'text-primary': 'var(--text-primary)',+ 'surface-primary': 'var(--surface-primary)',+ 'brand-purple': 'var(--brand-purple)',+ // ... other colors+ },+ },+ },+};+```++### 5. Use Theme Colors in Components++```tsx+function MyComponent() {+ return (+ <div className="bg-surface-primary text-text-primary border border-border-light">+ <h1 className="text-text-secondary">Hello World</h1>+ <button className="bg-surface-submit hover:bg-surface-submit-hover text-white">+ Submit+ </button>+ </div>+ );+}+```++## Available Theme Colors++### Text Colors+- `text-text-primary` - Primary text color+- `text-text-secondary` - Secondary text color+- `text-text-secondary-alt` - Alternative secondary text+- `text-text-tertiary` - Tertiary text color+- `text-text-warning` - Warning text color++### Surface Colors+- `bg-surface-primary` - Primary background+- `bg-surface-secondary` - Secondary background+- `bg-surface-tertiary` - Tertiary background+- `bg-surface-submit` - Submit button background+- `bg-surface-destructive` - Destructive action background+- `bg-surface-dialog` - Dialog/modal background+- `bg-surface-chat` - Chat interface background++### Border Colors+- `border-border-light` - Light border+- `border-border-medium` - Medium border+- `border-border-heavy` - Heavy border+- `border-border-xheavy` - Extra heavy border++### Other Colors+- `bg-brand-purple` - Brand purple color+- `bg-presentation` - Presentation background+- `ring-ring-primary` - Focus ring color++## Creating Custom Themes++### 1. Define Your Theme++```tsx+import { IThemeRGB } from '@librechat/client';++export const customTheme: IThemeRGB = {+ 'rgb-text-primary': '0 0 0', // Black+ 'rgb-text-secondary': '100 100 100', // Gray+ 'rgb-surface-primary': '255 255 255', // White+ 'rgb-surface-submit': '0 128 0', // Green+ 'rgb-brand-purple': '138 43 226', // Blue Violet+ // ... define other colors+};+```++### 2. Use Your Custom Theme++```tsx+import { ThemeProvider } from '@librechat/client';+import { customTheme } from './themes/custom';++function App() {+ return (+ <ThemeProvider themeRGB={customTheme} themeName="custom">+ <YourApp />+ </ThemeProvider>+ );+}+```++## Environment Variable Themes++Load theme colors from environment variables:++### 1. Create Environment Variables++```env+# .env.local+REACT_APP_THEME_BRAND_PURPLE=171 104 255+REACT_APP_THEME_TEXT_PRIMARY=33 33 33+REACT_APP_THEME_TEXT_SECONDARY=66 66 66+REACT_APP_THEME_SURFACE_PRIMARY=255 255 255+REACT_APP_THEME_SURFACE_SUBMIT=4 120 87+```++### 2. Create a Theme Loader++```tsx+function getThemeFromEnv(): IThemeRGB | undefined {+ // Check if any theme environment variables are set+ const hasThemeEnvVars = Object.keys(process.env).some(key =>+ key.startsWith('REACT_APP_THEME_')+ );++ if (!hasThemeEnvVars) {+ return undefined; // Use default themes+ }++ return {+ 'rgb-text-primary': process.env.REACT_APP_THEME_TEXT_PRIMARY || '33 33 33',+ 'rgb-brand-purple': process.env.REACT_APP_THEME_BRAND_PURPLE || '171 104 255',+ // ... other colors+ };+}+```++### 3. Apply Environment Theme++```tsx+<ThemeProvider+ initialTheme="system"+ themeRGB={getThemeFromEnv()}+>+ <App />+</ThemeProvider>+```++## Dark/Light Mode++The ThemeProvider handles dark/light mode automatically:++### Using the Theme Hook++```tsx+import { useTheme } from '@librechat/client';++function ThemeToggle() {+ const { theme, setTheme } = useTheme();++ return (+ <button onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}>+ Current theme: {theme}+ </button>+ );+}+```++### Theme Options+- `'light'` - Force light mode+- `'dark'` - Force dark mode+- `'system'` - Follow system preference++## Migration Guide++If you're migrating from an older theme system:++### 1. Update Imports++**Before:**+```tsx+import { ThemeContext, ThemeProvider } from '~/hooks/ThemeContext';+```++**After:**+```tsx+import { ThemeContext, ThemeProvider } from '@librechat/client';+```++### 2. Update ThemeProvider Usage++The new ThemeProvider is backward compatible but adds new capabilities:++```tsx+<ThemeProvider+ initialTheme="system" // Same as before+ themeRGB={customTheme} // New: optional custom colors+>+ <App />+</ThemeProvider>+```++### 3. Existing Components++Components using ThemeContext continue to work without changes:++```tsx+// This still works!+const { theme, setTheme } = useContext(ThemeContext);+```++## Implementation Details++### File Structure+```+packages/client/src/theme/+├── context/+│ └── ThemeProvider.tsx # Main theme provider+├── types/+│ └── index.ts # TypeScript interfaces+├── themes/+│ ├── default.ts # Light theme colors+│ ├── dark.ts # Dark theme colors+│ └── index.ts # Theme exports+├── utils/+│ ├── applyTheme.ts # Apply CSS variables+│ ├── tailwindConfig.ts # Tailwind helpers+│ └── createTailwindColors.js+├── README.md # This documentation+└── index.ts # Main exports+```++### CSS Variable Format++The theme system uses RGB values in CSS variables:+- CSS Variable: `--text-primary: rgb(33 33 33)`+- Theme Definition: `'rgb-text-primary': '33 33 33'`+- Tailwind Usage: `text-text-primary`++### RGB Format Requirements++All color values must be in space-separated RGB format:+- ✅ Correct: `'255 255 255'`+- ❌ Incorrect: `'#ffffff'` or `'rgb(255, 255, 255)'`++This format allows Tailwind to apply opacity modifiers like `bg-surface-primary/50`.++## Troubleshooting++### Common Issues++#### 1. Colors Not Applying+- **Issue**: Custom theme colors aren't showing+- **Solution**: Ensure you're passing the `themeRGB` prop to ThemeProvider+- **Check**: CSS variables in DevTools should show `rgb(R G B)` format++#### 2. Circular Reference Errors+- **Issue**: `--brand-purple: var(--brand-purple)` creates infinite loop+- **Solution**: Use direct color values: `--brand-purple: #ab68ff`++#### 3. Dark Mode Not Working+- **Issue**: Dark mode doesn't switch+- **Solution**: Ensure `darkMode: ['class']` is in your Tailwind config+- **Check**: The `<html>` element should have `class="dark"` in dark mode++#### 4. TypeScript Errors+- **Issue**: Type errors when defining themes+- **Solution**: Import and use the `IThemeRGB` interface:+```tsx+import { IThemeRGB } from '@librechat/client';+```++### Debugging Tips++1. **Check CSS Variables**: Use browser DevTools to inspect computed CSS variables+2. **Verify Theme Application**: Look for inline styles on the root element+3. **Console Errors**: Check for validation errors in the console+4. **Test Isolation**: Try a minimal theme to isolate issues++## Examples++### Dynamic Theme Switching++```tsx+import { ThemeProvider, defaultTheme, darkTheme } from '@librechat/client';+import { useState } from 'react';++function App() {+ const [isDark, setIsDark] = useState(false);++ return (+ <ThemeProvider+ initialTheme={isDark ? 'dark' : 'light'}+ themeRGB={isDark ? darkTheme : defaultTheme}+ themeName={isDark ? 'dark' : 'default'}+ >+ <button onClick={() => setIsDark(!isDark)}>+ Toggle Theme+ </button>+ <YourApp />+ </ThemeProvider>+ );+}+```++### Multi-Theme Selector++```tsx+const themes = {+ default: undefined, // Use CSS defaults+ ocean: {+ 'rgb-brand-purple': '0 119 190',+ 'rgb-surface-primary': '240 248 255',+ // ... ocean theme colors+ },+ forest: {+ 'rgb-brand-purple': '34 139 34',+ 'rgb-surface-primary': '245 255 250',+ // ... forest theme colors+ },+};++function App() {+ const [selectedTheme, setSelectedTheme] = useState('default');++ return (+ <ThemeProvider+ themeRGB={themes[selectedTheme]}+ themeName={selectedTheme}+ >+ <select onChange={(e) => setSelectedTheme(e.target.value)}>+ {Object.keys(themes).map(name => (+ <option key={name} value={name}>{name}</option>+ ))}+ </select>+ <YourApp />+ </ThemeProvider>+ );+}+```++### Using with the Main Application++When using the ThemeProvider in your main application with localStorage persistence:++```tsx+import { ThemeProvider } from '@librechat/client';+import { getThemeFromEnv } from './utils';++function App() {+ const envTheme = getThemeFromEnv();++ return (+ <ThemeProvider+ // Only pass props if you want to override stored values+ // If you always pass props, they will override localStorage+ initialTheme={envTheme ? "system" : undefined}+ themeRGB={envTheme || undefined}+ >+ {/* Your app content */}+ </ThemeProvider>+ );+}+```++**Important**: Props passed to ThemeProvider will override stored values on initial mount. Only pass props when you explicitly want to override the user's saved preferences.++## Contributing++When adding new theme colors:++1. Add the type definition in `types/index.ts`+2. Add the color to default and dark themes+3. Update the applyTheme mapping+4. Add to Tailwind configuration+5. Document in this README++## License++This theme system is part of the @librechat/client package.\ No newline at end of filediff --git a/packages/client/src/theme/atoms/themeAtoms.ts b/packages/client/src/theme/atoms/themeAtoms.tsnew file mode 100644index 0000000000..316d092fb0--- /dev/null+++ b/packages/client/src/theme/atoms/themeAtoms.ts@@ -0,0 +1,36 @@+import { atomWithStorage } from 'jotai/utils';+import { IThemeRGB } from '../types';++/**+ * Atom for storing the theme mode (light/dark/system) in localStorage+ * Key: 'color-theme'+ */+export const themeModeAtom = atomWithStorage<string>('color-theme', 'system', undefined, {+ getOnInit: true,+});++/**+ * Atom for storing custom theme colors in localStorage+ * Key: 'theme-colors'+ */+export const themeColorsAtom = atomWithStorage<IThemeRGB | undefined>(+ 'theme-colors',+ undefined,+ undefined,+ {+ getOnInit: true,+ },+);++/**+ * Atom for storing the theme name in localStorage+ * Key: 'theme-name'+ */+export const themeNameAtom = atomWithStorage<string | undefined>(+ 'theme-name',+ undefined,+ undefined,+ {+ getOnInit: true,+ },+);diff --git a/packages/client/src/theme/context/ThemeProvider.tsx b/packages/client/src/theme/context/ThemeProvider.tsxnew file mode 100644index 0000000000..c803796164--- /dev/null+++ b/packages/client/src/theme/context/ThemeProvider.tsx@@ -0,0 +1,165 @@+import React, { createContext, useContext, useEffect, useMemo, useCallback, useRef } from 'react';+import { useAtom } from 'jotai';+import { IThemeRGB } from '../types';+import applyTheme from '../utils/applyTheme';+import { themeModeAtom, themeColorsAtom, themeNameAtom } from '../atoms/themeAtoms';++type ThemeContextType = {+ theme: string; // 'light' | 'dark' | 'system'+ setTheme: (theme: string) => void;+ themeRGB?: IThemeRGB;+ setThemeRGB: (colors?: IThemeRGB) => void;+ themeName?: string;+ setThemeName: (name?: string) => void;+ resetTheme: () => void;+};++// Export ThemeContext so it can be imported from hooks+export const ThemeContext = createContext<ThemeContextType>({+ theme: 'system',+ setTheme: () => undefined,+ setThemeRGB: () => undefined,+ setThemeName: () => undefined,+ resetTheme: () => undefined,+});++export interface ThemeProviderProps {+ children: React.ReactNode;+ themeRGB?: IThemeRGB;+ themeName?: string;+ initialTheme?: string;+}++/**+ * Check if theme is dark+ */+export const isDark = (theme: string): boolean => {+ if (theme === 'system') {+ return window.matchMedia('(prefers-color-scheme: dark)').matches;+ }+ return theme === 'dark';+};++/**+ * ThemeProvider component that handles both dark/light mode switching+ * and dynamic color themes via CSS variables with localStorage persistence+ */+export function ThemeProvider({+ children,+ themeRGB: propThemeRGB,+ themeName: propThemeName,+ initialTheme,+}: ThemeProviderProps) {+ // Use jotai atoms for persistent state+ const [theme, setTheme] = useAtom(themeModeAtom);+ const [storedThemeRGB, setStoredThemeRGB] = useAtom(themeColorsAtom);+ const [storedThemeName, setStoredThemeName] = useAtom(themeNameAtom);++ // Track if props have been initialized+ const propsInitialized = useRef(false);++ // Initialize from props only once on mount+ useEffect(() => {+ if (!propsInitialized.current) {+ propsInitialized.current = true;++ // Set initial theme if provided+ if (initialTheme) {+ setTheme(initialTheme);+ }++ // Set initial theme colors if provided+ if (propThemeRGB) {+ setStoredThemeRGB(propThemeRGB);+ }++ // Set initial theme name if provided+ if (propThemeName) {+ setStoredThemeName(propThemeName);+ }+ }+ }, [initialTheme, propThemeRGB, propThemeName, setTheme, setStoredThemeRGB, setStoredThemeName]);++ // Apply class-based dark mode+ const applyThemeMode = useCallback((rawTheme: string) => {+ const root = window.document.documentElement;+ const darkMode = isDark(rawTheme);++ root.classList.remove(darkMode ? 'light' : 'dark');+ root.classList.add(darkMode ? 'dark' : 'light');+ }, []);++ // Handle system theme changes+ useEffect(() => {+ const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');+ const changeThemeOnSystemChange = () => {+ if (theme === 'system') {+ applyThemeMode('system');+ }+ };++ mediaQuery.addEventListener('change', changeThemeOnSystemChange);+ return () => {+ mediaQuery.removeEventListener('change', changeThemeOnSystemChange);+ };+ }, [theme, applyThemeMode]);++ // Apply dark/light mode class+ useEffect(() => {+ applyThemeMode(theme);+ }, [theme, applyThemeMode]);++ // Apply dynamic color theme+ useEffect(() => {+ if (storedThemeRGB) {+ applyTheme(storedThemeRGB);+ }+ }, [storedThemeRGB]);++ // Reset theme function+ const resetTheme = useCallback(() => {+ setTheme('system');+ setStoredThemeRGB(undefined);+ setStoredThemeName(undefined);+ // Remove any custom CSS variables+ const root = document.documentElement;+ const customProps = Array.from(root.style).filter((prop) => prop.startsWith('--'));+ customProps.forEach((prop) => root.style.removeProperty(prop));+ }, [setTheme, setStoredThemeRGB, setStoredThemeName]);++ const value = useMemo(+ () => ({+ theme,+ setTheme,+ themeRGB: storedThemeRGB,+ setThemeRGB: setStoredThemeRGB,+ themeName: storedThemeName,+ setThemeName: setStoredThemeName,+ resetTheme,+ }),+ [+ theme,+ setTheme,+ storedThemeRGB,+ setStoredThemeRGB,+ storedThemeName,+ setStoredThemeName,+ resetTheme,+ ],+ );++ return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>;+}++/**+ * Hook to access the current theme context+ */+export function useTheme() {+ const context = useContext(ThemeContext);+ if (!context) {+ throw new Error('useTheme must be used within a ThemeProvider');+ }+ return context;+}++export default ThemeProvider;diff --git a/packages/client/src/theme/index.ts b/packages/client/src/theme/index.tsnew file mode 100644index 0000000000..18d02ed1e1--- /dev/null+++ b/packages/client/src/theme/index.ts@@ -0,0 +1,14 @@+// Export types+export * from './types';++// Export ThemeProvider, ThemeContext, useTheme hook, and isDark+export { ThemeProvider, ThemeContext, useTheme, isDark } from './context/ThemeProvider';++// Export utility functions+export { default as applyTheme } from './utils/applyTheme';++// Export theme atoms for persistence+export { themeModeAtom, themeColorsAtom, themeNameAtom } from './atoms/themeAtoms';++// Export predefined themes+export * from './themes';diff --git a/packages/client/src/theme/themes/dark.ts b/packages/client/src/theme/themes/dark.tsnew file mode 100644index 0000000000..150fee69c7--- /dev/null+++ b/packages/client/src/theme/themes/dark.ts@@ -0,0 +1,72 @@+import { IThemeRGB } from '../types';++/**+ * Dark theme+ * RGB values extracted from the existing dark mode CSS variables+ */+export const darkTheme: IThemeRGB = {+ // Text colors+ 'rgb-text-primary': '236 236 236', // #ececec (gray-100)+ 'rgb-text-secondary': '205 205 205', // #cdcdcd (gray-300)+ 'rgb-text-secondary-alt': '153 150 150', // #999696 (gray-400)+ 'rgb-text-tertiary': '89 89 89', // #595959 (gray-500)+ 'rgb-text-warning': '245 158 11', // #f59e0b (amber-500)++ // Ring colors (not defined in dark mode, using default)+ 'rgb-ring-primary': '89 89 89', // #595959 (gray-500)++ // Header colors+ 'rgb-header-primary': '47 47 47', // #2f2f2f (gray-700)+ 'rgb-header-hover': '66 66 66', // #424242 (gray-600)+ 'rgb-header-button-hover': '47 47 47', // #2f2f2f (gray-700)++ // Surface colors+ 'rgb-surface-active': '89 89 89', // #595959 (gray-500)+ 'rgb-surface-active-alt': '47 47 47', // #2f2f2f (gray-700)+ 'rgb-surface-hover': '66 66 66', // #424242 (gray-600)+ 'rgb-surface-hover-alt': '66 66 66', // #424242 (gray-600)+ 'rgb-surface-primary': '13 13 13', // #0d0d0d (gray-900)+ 'rgb-surface-primary-alt': '23 23 23', // #171717 (gray-850)+ 'rgb-surface-primary-contrast': '23 23 23', // #171717 (gray-850)+ 'rgb-surface-secondary': '33 33 33', // #212121 (gray-800)+ 'rgb-surface-secondary-alt': '33 33 33', // #212121 (gray-800)+ 'rgb-surface-tertiary': '47 47 47', // #2f2f2f (gray-700)+ 'rgb-surface-tertiary-alt': '47 47 47', // #2f2f2f (gray-700)+ 'rgb-surface-dialog': '23 23 23', // #171717 (gray-850)+ 'rgb-surface-submit': '4 120 87', // #047857 (green-700)+ 'rgb-surface-submit-hover': '6 95 70', // #065f46 (green-800)+ 'rgb-surface-destructive': '153 27 27', // #991b1b (red-800)+ 'rgb-surface-destructive-hover': '127 29 29', // #7f1d1d (red-900)+ 'rgb-surface-chat': '47 47 47', // #2f2f2f (gray-700)++ // Border colors+ 'rgb-border-light': '47 47 47', // #2f2f2f (gray-700)+ 'rgb-border-medium': '66 66 66', // #424242 (gray-600)+ 'rgb-border-medium-alt': '66 66 66', // #424242 (gray-600)+ 'rgb-border-heavy': '89 89 89', // #595959 (gray-500)+ 'rgb-border-xheavy': '153 150 150', // #999696 (gray-400)++ // Brand colors+ 'rgb-brand-purple': '171 104 255', // #ab68ff++ // Presentation+ 'rgb-presentation': '33 33 33', // #212121 (gray-800)++ // Utility colors (mapped to existing colors for backwards compatibility)+ 'rgb-background': '33 33 33', // Same as surface-primary+ 'rgb-foreground': '255 255 255', // Same as text-primary+ 'rgb-primary': '66 66 66', // Same as surface-active+ 'rgb-primary-foreground': '255 255 255', // Same as surface-primary-contrast+ 'rgb-secondary': '42 42 42', // Same as surface-secondary+ 'rgb-secondary-foreground': '193 193 193', // Same as text-secondary+ 'rgb-muted': '56 56 56', // Same as surface-tertiary+ 'rgb-muted-foreground': '140 140 140', // Same as text-tertiary+ 'rgb-accent': '82 82 82', // Same as surface-active-alt+ 'rgb-accent-foreground': '255 255 255', // Same as text-primary+ 'rgb-destructive-foreground': '255 255 255', // Same as text-primary+ 'rgb-border': '82 82 82', // Same as border-medium+ 'rgb-input': '66 66 66', // Same as border-light+ 'rgb-ring': '255 255 255', // Same as ring-primary+ 'rgb-card': '42 42 42', // Same as surface-secondary+ 'rgb-card-foreground': '255 255 255', // Same as text-primary+};diff --git a/packages/client/src/theme/themes/default.ts b/packages/client/src/theme/themes/default.tsnew file mode 100644index 0000000000..d636cc0c2e--- /dev/null+++ b/packages/client/src/theme/themes/default.ts@@ -0,0 +1,72 @@+import { IThemeRGB } from '../types';++/**+ * Default light theme+ * RGB values extracted from the existing CSS variables+ */+export const defaultTheme: IThemeRGB = {+ // Text colors+ 'rgb-text-primary': '33 33 33', // #212121 (gray-800)+ 'rgb-text-secondary': '66 66 66', // #424242 (gray-600)+ 'rgb-text-secondary-alt': '89 89 89', // #595959 (gray-500)+ 'rgb-text-tertiary': '89 89 89', // #595959 (gray-500)+ 'rgb-text-warning': '245 158 11', // #f59e0b (amber-500)++ // Ring colors+ 'rgb-ring-primary': '89 89 89', // #595959 (gray-500)++ // Header colors+ 'rgb-header-primary': '255 255 255', // #fff (white)+ 'rgb-header-hover': '247 247 248', // #f7f7f8 (gray-50)+ 'rgb-header-button-hover': '247 247 248', // #f7f7f8 (gray-50)++ // Surface colors+ 'rgb-surface-active': '236 236 236', // #ececec (gray-100)+ 'rgb-surface-active-alt': '227 227 227', // #e3e3e3 (gray-200)+ 'rgb-surface-hover': '227 227 227', // #e3e3e3 (gray-200)+ 'rgb-surface-hover-alt': '205 205 205', // #cdcdcd (gray-300)+ 'rgb-surface-primary': '255 255 255', // #fff (white)+ 'rgb-surface-primary-alt': '247 247 248', // #f7f7f8 (gray-50)+ 'rgb-surface-primary-contrast': '236 236 236', // #ececec (gray-100)+ 'rgb-surface-secondary': '247 247 248', // #f7f7f8 (gray-50)+ 'rgb-surface-secondary-alt': '227 227 227', // #e3e3e3 (gray-200)+ 'rgb-surface-tertiary': '236 236 236', // #ececec (gray-100)+ 'rgb-surface-tertiary-alt': '255 255 255', // #fff (white)+ 'rgb-surface-dialog': '255 255 255', // #fff (white)+ 'rgb-surface-submit': '4 120 87', // #047857 (green-700)+ 'rgb-surface-submit-hover': '6 95 70', // #065f46 (green-800)+ 'rgb-surface-destructive': '185 28 28', // #b91c1c (red-700)+ 'rgb-surface-destructive-hover': '153 27 27', // #991b1b (red-800)+ 'rgb-surface-chat': '255 255 255', // #fff (white)++ // Border colors+ 'rgb-border-light': '227 227 227', // #e3e3e3 (gray-200)+ 'rgb-border-medium': '205 205 205', // #cdcdcd (gray-300)+ 'rgb-border-medium-alt': '205 205 205', // #cdcdcd (gray-300)+ 'rgb-border-heavy': '153 150 150', // #999696 (gray-400)+ 'rgb-border-xheavy': '89 89 89', // #595959 (gray-500)++ // Brand colors+ 'rgb-brand-purple': '171 104 255', // #ab68ff++ // Presentation+ 'rgb-presentation': '255 255 255', // #fff (white)++ // Utility colors (mapped to existing colors for backwards compatibility)+ 'rgb-background': '255 255 255', // Same as surface-primary+ 'rgb-foreground': '17 17 17', // Same as text-primary+ 'rgb-primary': '235 235 235', // Same as surface-active+ 'rgb-primary-foreground': '0 0 0', // Same as surface-primary-contrast+ 'rgb-secondary': '247 247 248', // Same as surface-secondary+ 'rgb-secondary-foreground': '66 66 66', // Same as text-secondary+ 'rgb-muted': '250 250 250', // Same as surface-tertiary+ 'rgb-muted-foreground': '120 120 120', // Same as text-tertiary+ 'rgb-accent': '245 245 245', // Same as surface-active-alt+ 'rgb-accent-foreground': '17 17 17', // Same as text-primary+ 'rgb-destructive-foreground': '17 17 17', // Same as text-primary+ 'rgb-border': '215 215 215', // Same as border-medium+ 'rgb-input': '230 230 230', // Same as border-light+ 'rgb-ring': '180 180 180', // Same as ring-primary+ 'rgb-card': '247 247 248', // Same as surface-secondary+ 'rgb-card-foreground': '17 17 17', // Same as text-primary+};diff --git a/packages/client/src/theme/themes/index.ts b/packages/client/src/theme/themes/index.tsnew file mode 100644index 0000000000..89b1b0e251--- /dev/null+++ b/packages/client/src/theme/themes/index.ts@@ -0,0 +1,2 @@+export { defaultTheme } from './default';+export { darkTheme } from './dark';diff --git a/packages/client/src/theme/types/index.ts b/packages/client/src/theme/types/index.tsnew file mode 100644index 0000000000..47ab88d6b8--- /dev/null+++ b/packages/client/src/theme/types/index.ts@@ -0,0 +1,189 @@+/**+ * Defines the color channels. Passed to the context from each app.+ * RGB values should be in format "255 255 255" (space-separated)+ */+export interface IThemeRGB {+ // Text colors+ 'rgb-text-primary'?: string;+ 'rgb-text-secondary'?: string;+ 'rgb-text-secondary-alt'?: string;+ 'rgb-text-tertiary'?: string;+ 'rgb-text-warning'?: string;++ // Ring colors+ 'rgb-ring-primary'?: string;++ // Header colors+ 'rgb-header-primary'?: string;+ 'rgb-header-hover'?: string;+ 'rgb-header-button-hover'?: string;++ // Surface colors+ 'rgb-surface-active'?: string;+ 'rgb-surface-active-alt'?: string;+ 'rgb-surface-hover'?: string;+ 'rgb-surface-hover-alt'?: string;+ 'rgb-surface-primary'?: string;+ 'rgb-surface-primary-alt'?: string;+ 'rgb-surface-primary-contrast'?: string;+ 'rgb-surface-secondary'?: string;+ 'rgb-surface-secondary-alt'?: string;+ 'rgb-surface-tertiary'?: string;+ 'rgb-surface-tertiary-alt'?: string;+ 'rgb-surface-dialog'?: string;+ 'rgb-surface-submit'?: string;+ 'rgb-surface-submit-hover'?: string;+ 'rgb-surface-destructive'?: string;+ 'rgb-surface-destructive-hover'?: string;+ 'rgb-surface-chat'?: string;++ // Border colors+ 'rgb-border-light'?: string;+ 'rgb-border-medium'?: string;+ 'rgb-border-medium-alt'?: string;+ 'rgb-border-heavy'?: string;+ 'rgb-border-xheavy'?: string;++ // Brand colors+ 'rgb-brand-purple'?: string;++ // Presentation+ 'rgb-presentation'?: string;++ // Utility colors+ 'rgb-background'?: string;+ 'rgb-foreground'?: string;+ 'rgb-primary'?: string;+ 'rgb-primary-foreground'?: string;+ 'rgb-secondary'?: string;+ 'rgb-secondary-foreground'?: string;+ 'rgb-muted'?: string;+ 'rgb-muted-foreground'?: string;+ 'rgb-accent'?: string;+ 'rgb-accent-foreground'?: string;+ 'rgb-destructive-foreground'?: string;+ 'rgb-border'?: string;+ 'rgb-input'?: string;+ 'rgb-ring'?: string;+ 'rgb-card'?: string;+ 'rgb-card-foreground'?: string;+}++/**+ * Name of the CSS variables used in tailwind.config+ */+export interface IThemeVariables {+ '--text-primary': string;+ '--text-secondary': string;+ '--text-secondary-alt': string;+ '--text-tertiary': string;+ '--text-warning': string;+ '--ring-primary': string;+ '--header-primary': string;+ '--header-hover': string;+ '--header-button-hover': string;+ '--surface-active': string;+ '--surface-active-alt': string;+ '--surface-hover': string;+ '--surface-hover-alt': string;+ '--surface-primary': string;+ '--surface-primary-alt': string;+ '--surface-primary-contrast': string;+ '--surface-secondary': string;+ '--surface-secondary-alt': string;+ '--surface-tertiary': string;+ '--surface-tertiary-alt': string;+ '--surface-dialog': string;+ '--surface-submit': string;+ '--surface-submit-hover': string;+ '--surface-destructive': string;+ '--surface-destructive-hover': string;+ '--surface-chat': string;+ '--border-light': string;+ '--border-medium': string;+ '--border-medium-alt': string;+ '--border-heavy': string;+ '--border-xheavy': string;+ '--brand-purple': string;+ '--presentation': string;++ // Utility variables+ '--background': string;+ '--foreground': string;+ '--primary': string;+ '--primary-foreground': string;+ '--secondary': string;+ '--secondary-foreground': string;+ '--muted': string;+ '--muted-foreground': string;+ '--accent': string;+ '--accent-foreground': string;+ '--destructive-foreground': string;+ '--border': string;+ '--input': string;+ '--ring': string;+ '--card': string;+ '--card-foreground': string;+}++/**+ * Name of the defined colors in the Tailwind theme+ */+export interface IThemeColors {+ 'text-primary'?: string;+ 'text-secondary'?: string;+ 'text-secondary-alt'?: string;+ 'text-tertiary'?: string;+ 'text-warning'?: string;+ 'ring-primary'?: string;+ 'header-primary'?: string;+ 'header-hover'?: string;+ 'header-button-hover'?: string;+ 'surface-active'?: string;+ 'surface-active-alt'?: string;+ 'surface-hover'?: string;+ 'surface-hover-alt'?: string;+ 'surface-primary'?: string;+ 'surface-primary-alt'?: string;+ 'surface-primary-contrast'?: string;+ 'surface-secondary'?: string;+ 'surface-secondary-alt'?: string;+ 'surface-tertiary'?: string;+ 'surface-tertiary-alt'?: string;+ 'surface-dialog'?: string;+ 'surface-submit'?: string;+ 'surface-submit-hover'?: string;+ 'surface-destructive'?: string;+ 'surface-destructive-hover'?: string;+ 'surface-chat'?: string;+ 'border-light'?: string;+ 'border-medium'?: string;+ 'border-medium-alt'?: string;+ 'border-heavy'?: string;+ 'border-xheavy'?: string;+ 'brand-purple'?: string;+ presentation?: string;++ // Utility colors+ background?: string;+ foreground?: string;+ primary?: string;+ 'primary-foreground'?: string;+ secondary?: string;+ 'secondary-foreground'?: string;+ muted?: string;+ 'muted-foreground'?: string;+ accent?: string;+ 'accent-foreground'?: string;+ 'destructive-foreground'?: string;+ border?: string;+ input?: string;+ ring?: string;+ card?: string;+ 'card-foreground'?: string;+}++export interface Theme {+ name: string;+ colors: IThemeRGB;+}diff --git a/packages/client/src/theme/utils/applyTheme.ts b/packages/client/src/theme/utils/applyTheme.tsnew file mode 100644index 0000000000..f98db54dd8--- /dev/null+++ b/packages/client/src/theme/utils/applyTheme.ts@@ -0,0 +1,115 @@+import { IThemeRGB, IThemeVariables } from '../types';++/**+ * Validates RGB string format (e.g., "255 255 255")+ */+function validateRGB(rgb: string): boolean {+ if (!rgb) return true;+ const rgbRegex = /^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})$/;+ const match = rgb.match(rgbRegex);++ if (!match) return false;++ // Check that each value is between 0-255+ const [, r, g, b] = match;+ return [r, g, b].every((val) => {+ const num = parseInt(val, 10);+ return num >= 0 && num <= 255;+ });+}++/**+ * Maps theme RGB values to CSS variables+ */+function mapTheme(rgb: IThemeRGB): Partial<IThemeVariables> {+ const variables: Partial<IThemeVariables> = {};++ // Map each RGB value to its corresponding CSS variable+ const mappings: Record<keyof IThemeRGB, keyof IThemeVariables> = {+ 'rgb-text-primary': '--text-primary',+ 'rgb-text-secondary': '--text-secondary',+ 'rgb-text-secondary-alt': '--text-secondary-alt',+ 'rgb-text-tertiary': '--text-tertiary',+ 'rgb-text-warning': '--text-warning',+ 'rgb-ring-primary': '--ring-primary',+ 'rgb-header-primary': '--header-primary',+ 'rgb-header-hover': '--header-hover',+ 'rgb-header-button-hover': '--header-button-hover',+ 'rgb-surface-active': '--surface-active',+ 'rgb-surface-active-alt': '--surface-active-alt',+ 'rgb-surface-hover': '--surface-hover',+ 'rgb-surface-hover-alt': '--surface-hover-alt',+ 'rgb-surface-primary': '--surface-primary',+ 'rgb-surface-primary-alt': '--surface-primary-alt',+ 'rgb-surface-primary-contrast': '--surface-primary-contrast',+ 'rgb-surface-secondary': '--surface-secondary',+ 'rgb-surface-secondary-alt': '--surface-secondary-alt',+ 'rgb-surface-tertiary': '--surface-tertiary',+ 'rgb-surface-tertiary-alt': '--surface-tertiary-alt',+ 'rgb-surface-dialog': '--surface-dialog',+ 'rgb-surface-submit': '--surface-submit',+ 'rgb-surface-submit-hover': '--surface-submit-hover',+ 'rgb-surface-destructive': '--surface-destructive',+ 'rgb-surface-destructive-hover': '--surface-destructive-hover',+ 'rgb-surface-chat': '--surface-chat',+ 'rgb-border-light': '--border-light',+ 'rgb-border-medium': '--border-medium',+ 'rgb-border-medium-alt': '--border-medium-alt',+ 'rgb-border-heavy': '--border-heavy',+ 'rgb-border-xheavy': '--border-xheavy',+ 'rgb-brand-purple': '--brand-purple',+ 'rgb-presentation': '--presentation',++ // Utility colors+ 'rgb-background': '--background',+ 'rgb-foreground': '--foreground',+ 'rgb-primary': '--primary',+ 'rgb-primary-foreground': '--primary-foreground',+ 'rgb-secondary': '--secondary',+ 'rgb-secondary-foreground': '--secondary-foreground',+ 'rgb-muted': '--muted',+ 'rgb-muted-foreground': '--muted-foreground',+ 'rgb-accent': '--accent',+ 'rgb-accent-foreground': '--accent-foreground',+ 'rgb-destructive-foreground': '--destructive-foreground',+ 'rgb-border': '--border',+ 'rgb-input': '--input',+ 'rgb-ring': '--ring',+ 'rgb-card': '--card',+ 'rgb-card-foreground': '--card-foreground',+ };++ Object.entries(mappings).forEach(([rgbKey, cssVar]) => {+ const value = rgb[rgbKey as keyof IThemeRGB];+ if (value) {+ variables[cssVar] = value;+ }+ });++ return variables;+}++/**+ * Applies theme to the document root+ * Sets CSS variables as rgb() values for compatibility with existing CSS+ */+export default function applyTheme(themeRGB?: IThemeRGB) {+ if (!themeRGB) return;++ const themeObject = mapTheme(themeRGB);+ const root = document.documentElement;++ Object.entries(themeObject).forEach(([cssVar, value]) => {+ if (!value) return;++ const validation = validateRGB(value);+ if (!validation) {+ console.error(`Invalid RGB value for ${cssVar}: ${value}`);+ return;+ }++ // Set the CSS variable as rgb() value for compatibility+ // This ensures existing CSS that expects color values (not space-separated RGB) continues to work+ root.style.setProperty(cssVar, `rgb(${value})`);+ });+}diff --git a/packages/client/src/theme/utils/createTailwindColors.js b/packages/client/src/theme/utils/createTailwindColors.jsnew file mode 100644index 0000000000..de110ac18e--- /dev/null+++ b/packages/client/src/theme/utils/createTailwindColors.js@@ -0,0 +1,86 @@+/**+ * Helper function to create a color value that uses CSS variables with alpha support+ * This is a CommonJS version for use in tailwind.config.js+ */+function withOpacity(variableName) {+ return ({ opacityValue }) => {+ if (opacityValue !== undefined) {+ // The CSS variable already contains rgb() so we need to extract the values+ return `rgba(var(${variableName}), ${opacityValue})`.replace('rgb(', '').replace(')', '');+ }+ return `var(${variableName})`;+ };+}++/**+ * Creates Tailwind color configuration that uses CSS variables+ * This allows dynamic theme switching by changing CSS variable values+ */+function createTailwindColors() {+ return {+ 'text-primary': withOpacity('--text-primary'),+ 'text-secondary': withOpacity('--text-secondary'),+ 'text-secondary-alt': withOpacity('--text-secondary-alt'),+ 'text-tertiary': withOpacity('--text-tertiary'),+ 'text-warning': withOpacity('--text-warning'),+ 'ring-primary': withOpacity('--ring-primary'),+ 'header-primary': withOpacity('--header-primary'),+ 'header-hover': withOpacity('--header-hover'),+ 'header-button-hover': withOpacity('--header-button-hover'),+ 'surface-active': withOpacity('--surface-active'),+ 'surface-active-alt': withOpacity('--surface-active-alt'),+ 'surface-hover': withOpacity('--surface-hover'),+ 'surface-hover-alt': withOpacity('--surface-hover-alt'),+ 'surface-primary': withOpacity('--surface-primary'),+ 'surface-primary-alt': withOpacity('--surface-primary-alt'),+ 'surface-primary-contrast': withOpacity('--surface-primary-contrast'),+ 'surface-secondary': withOpacity('--surface-secondary'),+ 'surface-secondary-alt': withOpacity('--surface-secondary-alt'),+ 'surface-tertiary': withOpacity('--surface-tertiary'),+ 'surface-tertiary-alt': withOpacity('--surface-tertiary-alt'),+ 'surface-dialog': withOpacity('--surface-dialog'),+ 'surface-submit': withOpacity('--surface-submit'),+ 'surface-submit-hover': withOpacity('--surface-submit-hover'),+ 'surface-destructive': withOpacity('--surface-destructive'),+ 'surface-destructive-hover': withOpacity('--surface-destructive-hover'),+ 'surface-chat': withOpacity('--surface-chat'),+ 'border-light': withOpacity('--border-light'),+ 'border-medium': withOpacity('--border-medium'),+ 'border-medium-alt': withOpacity('--border-medium-alt'),+ 'border-heavy': withOpacity('--border-heavy'),+ 'border-xheavy': withOpacity('--border-xheavy'),+ 'brand-purple': withOpacity('--brand-purple'),+ presentation: withOpacity('--presentation'),+ background: withOpacity('--background'),+ foreground: withOpacity('--foreground'),+ primary: {+ DEFAULT: withOpacity('--primary'),+ foreground: withOpacity('--primary-foreground'),+ },+ secondary: {+ DEFAULT: withOpacity('--secondary'),+ foreground: withOpacity('--secondary-foreground'),+ },+ muted: {+ DEFAULT: withOpacity('--muted'),+ foreground: withOpacity('--muted-foreground'),+ },+ accent: {+ DEFAULT: withOpacity('--accent'),+ foreground: withOpacity('--accent-foreground'),+ },+ destructive: {+ DEFAULT: withOpacity('--surface-destructive'),+ foreground: withOpacity('--destructive-foreground'),+ },+ border: withOpacity('--border'),+ input: withOpacity('--input'),+ ring: withOpacity('--ring'),+ card: {+ DEFAULT: withOpacity('--card'),+ foreground: withOpacity('--card-foreground'),+ },+ };+}++module.exports = { createTailwindColors };diff --git a/packages/client/src/utils/index.ts b/packages/client/src/utils/index.tsnew file mode 100644index 0000000000..94696af633--- /dev/null+++ b/packages/client/src/utils/index.ts@@ -0,0 +1,2 @@+export * from './utils';+export * from './theme';diff --git a/client/src/utils/theme.ts b/packages/client/src/utils/theme.tssimilarity index 95%rename from client/src/utils/theme.tsrename to packages/client/src/utils/theme.tsindex d389dea576..a5bc645a07 100644--- a/client/src/utils/theme.ts+++ b/packages/client/src/utils/theme.ts@@ -34,5 +34,5 @@ export const getInitialTheme = () => {}}- return 'light'; // light theme as the default;+ return 'light';};diff --git a/packages/client/src/utils/utils.ts b/packages/client/src/utils/utils.tsnew file mode 100644index 0000000000..fad4c32a09--- /dev/null+++ b/packages/client/src/utils/utils.ts@@ -0,0 +1,7 @@+// ESM utility functions+import { type ClassValue, clsx } from 'clsx';+import { twMerge } from 'tailwind-merge';++export const cn = (...inputs: ClassValue[]): string => {+ return twMerge(clsx(inputs));+};diff --git a/packages/client/tailwind.config.js b/packages/client/tailwind.config.jsnew file mode 100644index 0000000000..df7ee31c61--- /dev/null+++ b/packages/client/tailwind.config.js@@ -0,0 +1,13 @@+const { createTailwindColors } = require('./src/theme/utils/createTailwindColors.js');++/** @type {import('tailwindcss').Config} */+module.exports = {+ content: ['./src/**/*.{js,jsx,ts,tsx}'],+ darkMode: ['class'],+ theme: {+ extend: {+ colors: createTailwindColors(),+ },+ },+ plugins: [],+};diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.jsonnew file mode 100644index 0000000000..447cb1e66a--- /dev/null+++ b/packages/client/tsconfig.json@@ -0,0 +1,34 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "module": "ESNext",+ "moduleResolution": "node",+ "jsx": "react-jsx",+ "jsxImportSource": "react",+ "declaration": true,+ "declarationMap": true,+ "declarationDir": "./dist/types",+ "esModuleInterop": true,+ "allowSyntheticDefaultImports": true,+ "strict": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "outDir": "./dist",+ "rootDir": "./src",+ "baseUrl": "./src",+ "paths": {+ "~/*": ["./*"]+ },+ "lib": ["ES2020", "DOM", "DOM.Iterable"],+ "resolveJsonModule": true+ },+ "include": ["src/**/*"],+ "exclude": [+ "dist",+ "node_modules",+ "**/*.test.ts",+ "**/*.test.tsx",+ "**/*.spec.ts",+ "**/*.spec.tsx"+ ]+}