diff --git a/client/package.json b/client/package.json index 6e0826757..77640e9e3 100644 --- a/client/package.json +++ b/client/package.json @@ -55,13 +55,13 @@ "dependencies": { "@assistant-ui/react": "0.15.38", "@capacitor/action-sheet": "^8.1.1", - "@capacitor/android": "^8.6.2", + "@capacitor/android": "^8.6.3", "@capacitor/app": "^8.1.1", - "@capacitor/core": "^8.6.2", + "@capacitor/core": "^8.6.3", "@capacitor/dialog": "^8.0.1", - "@capacitor/filesystem": "^8.1.3", + "@capacitor/filesystem": "^8.1.6", "@capacitor/haptics": "^8.0.2", - "@capacitor/ios": "^8.6.2", + "@capacitor/ios": "^8.6.3", "@capacitor/keyboard": "^8.0.5", "@capacitor/share": "^8.0.1", "@capacitor/splash-screen": "^8.0.2", @@ -112,9 +112,9 @@ "heic-to": "^1.6.7", "iso-3166-2": "^1.0.0", "leaflet": "^1.9.4", - "lucide-react": "^0.577.0", + "lucide-react": "^1.82.0", "mapbox-gl": "3.32.0", - "maplibre-gl": "6.19.0", + "maplibre-gl": "6.20.0", "modern-screenshot": "4.7.0", "plyr": "^3.8.5", "react": "^19.3.1", @@ -123,7 +123,7 @@ "react-leaflet": "^5.0.0", "react-leaflet-cluster": "^4.1.3", "react-markdown": "^10.1.0", - "react-router": "^7.18.4", + "react-router": "^8.5.3", "rehype-sanitize": "^6.0.0", "remark-breaks": "^4.0.0", "remark-gfm": "^4.0.1", @@ -133,12 +133,12 @@ "zustand": "^5.0.15" }, "devDependencies": { - "@capacitor/cli": "^8.6.2", + "@capacitor/cli": "^8.6.3", "@eslint/js": "^10.0.1", "@jscpd/core": "^4.2.5", "@jscpd/tokenizer": "^4.2.6", "@playwright/test": "^1.65.1", - "@testing-library/dom": "^10.4.1", + "@testing-library/dom": "^10.4.2", "@testing-library/jest-dom": "^8.0.0", "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.13", @@ -146,22 +146,22 @@ "@types/geojson": "^7946.0.16", "@types/leaflet": "^1.9.23", "@types/node": "^26.6.11", - "@types/react": "^19.3.2", + "@types/react": "^19.3.3", "@types/react-dom": "^19.3.0", "@types/topojson-client": "^3.1.5", "@types/topojson-specification": "^1.0.5", "@vitejs/plugin-react": "^6.2.1", "@vitest/coverage-v8": "^5.1.2", - "autoprefixer": "^10.7.0", + "autoprefixer": "^10.7.1", "eslint": "^10.11.0", "eslint-config-flat-gitignore": "^2.4.0", - "eslint-config-prettier": "^10.1.8", + "eslint-config-prettier": "^10.1.9", "eslint-plugin-react-hooks": "^7.1.1", "eslint-plugin-react-refresh": "^0.5.8", "fake-indexeddb": "^6.2.7", "jsdom": "^29.1.1", "msw": "^3.0.8", - "postcss": "^8.5.33", + "postcss": "^8.5.34", "prettier": "^3.10.1", "prettier-plugin-organize-imports": "^4.3.0", "prettier-plugin-tailwindcss": "^0.8.1", @@ -170,7 +170,7 @@ "tailwindcss": "^3.4.19", "typescript": "^6.0.3", "typescript-eslint": "^8.74.0", - "vite": "8.3.8", + "vite": "8.4.0", "vite-plugin-pwa": "^2.0.0", "vitest": "^5.1.2" } diff --git a/client/src/components/Admin/AdminPluginsPanel.tsx b/client/src/components/Admin/AdminPluginsPanel.tsx index db5478565..c1fdd3a54 100644 --- a/client/src/components/Admin/AdminPluginsPanel.tsx +++ b/client/src/components/Admin/AdminPluginsPanel.tsx @@ -1,11 +1,12 @@ import { useState, type ReactNode } from 'react' import { Blocks, AlertTriangle, RefreshCw, Trash2, Download, Bug, ShieldCheck, UploadCloud, - ArrowUpCircle, Github, ExternalLink, Check, Search, Link2, KeyRound, ShieldAlert, + ArrowUpCircle, ExternalLink, Check, Search, Link2, KeyRound, ShieldAlert, SlidersHorizontal, CircleDot, Database, Globe, History, Puzzle, Bot, Loader2, } from 'lucide-react' import PluginIcon from '../shared/PluginIcon' +import { Github } from '../shared/legacyLucideIcons' import { useInstanceSettings } from './useInstanceSettings' import { type RangeWarning } from './useRangeBypass' import { deriveCaps } from './pluginCaps' diff --git a/client/src/components/Admin/plugins/PluginInstalledRow.tsx b/client/src/components/Admin/plugins/PluginInstalledRow.tsx index 7404e1363..a7120a1f1 100644 --- a/client/src/components/Admin/plugins/PluginInstalledRow.tsx +++ b/client/src/components/Admin/plugins/PluginInstalledRow.tsx @@ -3,7 +3,6 @@ import { ArrowUpCircle, Bug, CircleDot, - Github, Globe, History, Info, @@ -23,6 +22,7 @@ import { createPortal } from 'react-dom'; import { POPOVER } from '../../Packing/packingPopoverStyles'; import ToggleSwitch from '../../Settings/ToggleSwitch'; import { fs } from '../../shared/DialogShell'; +import { Github } from '../../shared/legacyLucideIcons'; import PluginIcon from '../../shared/PluginIcon'; import { Tooltip } from '../../shared/Tooltip'; import { deriveCaps } from '../pluginCaps'; diff --git a/client/src/components/Settings/AboutTab.tsx b/client/src/components/Settings/AboutTab.tsx index 59b837956..3125e3933 100644 --- a/client/src/components/Settings/AboutTab.tsx +++ b/client/src/components/Settings/AboutTab.tsx @@ -4,7 +4,6 @@ import { Bug, Coffee, ExternalLink, - Github, Heart, Info, Lightbulb, @@ -17,6 +16,7 @@ import { useTranslation } from '../../i18n'; import { useAuthStore } from '../../store/authStore'; import { donationsShown } from '../../utils/donations'; import { fs } from '../shared/DialogShell'; +import { Github } from '../shared/legacyLucideIcons'; import PatreonIcon, { PATREON_COLOR, PATREON_URL } from '../shared/PatreonIcon'; import Section from './Section'; import { StatusPill } from './settingsKit'; diff --git a/client/src/components/Studio/iconLibrary.ts b/client/src/components/Studio/iconLibrary.ts index 892fac5a8..28ae3b6eb 100644 --- a/client/src/components/Studio/iconLibrary.ts +++ b/client/src/components/Studio/iconLibrary.ts @@ -1,5 +1,6 @@ import * as LucideIcons from 'lucide-react' import { resolvePluginIcon } from '../shared/PluginIcon' +import { legacyLucideIcons } from '../shared/legacyLucideIcons' import type { LucideIcon } from 'lucide-react' import { BOOK_DESIGN_ICONS } from '@trek/shared' @@ -30,10 +31,11 @@ const PASCAL_CASE = /^[A-Z][A-Za-z0-9]*$/ function buildNames(): string[] { const all = LucideIcons as unknown as Record - const names = Object.keys(all).filter(k => PASCAL_CASE.test(k)) + const names = [...Object.keys(all), ...legacyLucideIcons.keys()] + .filter(k => PASCAL_CASE.test(k) && k !== 'Icon' && k !== 'LucideProvider') const present = new Set(names) - return names + return [...present] .filter(name => { // `LucidePlane` is always an alias of `Plane`. if (name.startsWith('Lucide') && present.has(name.slice(6))) return false diff --git a/client/src/components/SystemNotices/ReleaseNoticeVisuals.tsx b/client/src/components/SystemNotices/ReleaseNoticeVisuals.tsx index 04a475cab..cfabc118b 100644 --- a/client/src/components/SystemNotices/ReleaseNoticeVisuals.tsx +++ b/client/src/components/SystemNotices/ReleaseNoticeVisuals.tsx @@ -1,4 +1,3 @@ -import * as LucideIcons from 'lucide-react'; import { BedDouble, Check, @@ -16,6 +15,7 @@ import { Zap, } from 'lucide-react'; import React from 'react'; +import { findLucideIcon } from '../shared/PluginIcon'; import './releaseNoticeVisuals.css'; /* @@ -233,7 +233,7 @@ const VISUALS: Record React.ReactElement> = { export function ReleaseFeatureVisual({ visual, iconName }: { visual?: string; iconName: string }) { const Drawing = visual ? VISUALS[visual] : undefined; if (Drawing) return ; - const Icon: React.ElementType = ((LucideIcons as Record)[iconName] as React.ElementType) ?? Sparkles; + const Icon = findLucideIcon(iconName) ?? Sparkles; return (