chore(deps): update npm packages and adapt major upgrades

Resolve the MikroORM packages together and use the dispatcher adapter with older built-in fetch implementations. Preserve existing Lucide names and regenerate the Studio and SDK catalogs.
This commit is contained in:
Maurice
2026-12-01 13:32:28 +01:00
parent a14b6a61e6
commit 7f4ece2e6f
29 changed files with 2660 additions and 1016 deletions
+14 -14
View File
@@ -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"
}
@@ -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'
@@ -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';
+1 -1
View File
@@ -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';
+4 -2
View File
@@ -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<string, unknown>
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
@@ -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<string, () => React.ReactElement> = {
export function ReleaseFeatureVisual({ visual, iconName }: { visual?: string; iconName: string }) {
const Drawing = visual ? VISUALS[visual] : undefined;
if (Drawing) return <Drawing />;
const Icon: React.ElementType = ((LucideIcons as Record<string, unknown>)[iconName] as React.ElementType) ?? Sparkles;
const Icon = findLucideIcon(iconName) ?? Sparkles;
return (
<div className="rn-vis rn-vis-icon">
<Icon size={30} strokeWidth={1.6} aria-hidden="true" />
@@ -2,7 +2,6 @@ import React, { useState, useEffect, useRef } from 'react';
import { flushSync } from 'react-dom';
import { useNavigate } from 'react-router';
import { Info, AlertTriangle, AlertOctagon, X, ChevronLeft, ChevronRight, Coffee } from 'lucide-react';
import * as LucideIcons from 'lucide-react';
import remarkGfm from 'remark-gfm';
import rehypeSanitize from 'rehype-sanitize';
import { useSystemNoticeStore } from '../../store/systemNoticeStore.js';
@@ -11,6 +10,7 @@ import { useTranslation, isRtlLanguage } from '../../i18n/index.js';
import { runNoticeAction } from './noticeActions.js';
import { ReleaseNoticeModal } from './ReleaseNoticeModal.js';
import { PATREON_PATH } from '../shared/PatreonIcon';
import { findLucideIcon } from '../shared/PluginIcon';
import { lockBodyScroll } from '../../utils/bodyScrollLock.js';
const ReactMarkdown = React.lazy(() =>
@@ -101,9 +101,7 @@ function NoticeContent({ notice, title, body, ctaLabel, secondaryCtaLabel, terti
const isLastPage = total <= 1 || currentPage === total - 1;
const DefaultIcon = SEVERITY_ICONS[notice.severity] ?? Info;
const LucideIcon: React.ElementType = notice.icon
? ((LucideIcons as Record<string, unknown>)[notice.icon] as React.ElementType) ?? DefaultIcon
: DefaultIcon;
const LucideIcon: React.ElementType = findLucideIcon(notice.icon) ?? DefaultIcon;
// Real brand logo for each support button, detected from the link target.
const primaryBrand = notice.cta?.kind === 'link' ? brandForHref(notice.cta.href) : null;
@@ -232,9 +230,7 @@ function NoticeContent({ notice, title, body, ctaLabel, secondaryCtaLabel, terti
{notice.highlights && notice.highlights.length > 0 && (
<div className="flex flex-wrap justify-center gap-2 mb-4">
{notice.highlights.map((h, i) => {
const HIcon: React.ElementType | null = h.iconName
? ((LucideIcons as Record<string, unknown>)[h.iconName] as React.ElementType) ?? null
: null;
const HIcon = findLucideIcon(h.iconName);
return (
<span
key={i}
@@ -16,7 +16,7 @@ describe('resolvePluginIcon', () => {
})
// A manifest must not be able to reach lucide's non-icon exports.
it.each(['icons', 'createLucideIcon', 'default', 'module.exports'])(
it.each(['icons', 'createLucideIcon', 'default', 'module.exports', 'Icon', 'LucideProvider'])(
'falls back to Blocks for the non-icon export %s',
(name) => expect(resolvePluginIcon(name)).toBe(Blocks),
)
@@ -32,6 +32,13 @@ describe('PluginIcon', () => {
expect(container.querySelector('.lucide-stethoscope')).not.toBeNull()
})
it('renders removed icon names and aliases stored by earlier versions', () => {
const { container } = render(<PluginIcon name="GithubIcon" />)
expect(container.querySelector('.lucide-github')).not.toBeNull()
expect(resolvePluginIcon('LucideGithub')).toBe(resolvePluginIcon('Github'))
expect(resolvePluginIcon('RailSymbol')).not.toBe(Blocks)
})
it('renders Blocks when the plugin declares nothing', () => {
const { container } = render(<PluginIcon name={null} />)
expect(container.querySelector('.lucide-blocks')).not.toBeNull()
+9 -3
View File
@@ -1,12 +1,20 @@
import type { CSSProperties } from 'react'
import * as LucideIcons from 'lucide-react'
import { Blocks, type LucideIcon } from 'lucide-react'
import { legacyLucideIcons } from './legacyLucideIcons'
// Lucide names are PascalCase. Restricting the lookup to that shape keeps a manifest
// from reaching lucide's non-icon exports (`createLucideIcon`, `icons`, `default`,
// `module.exports`), which are all lowercase-initial.
const LUCIDE_ICON_NAME = /^[A-Z][A-Za-z0-9]*$/
export function findLucideIcon(name: string | null | undefined): LucideIcon | undefined {
if (!name || !LUCIDE_ICON_NAME.test(name) || name === 'Icon') return undefined
const icon = (LucideIcons as unknown as Record<string, LucideIcon | undefined>)[name]
if (typeof icon === 'object') return icon
return legacyLucideIcons.get(name.replace(/^Lucide/, '').replace(/Icon$/, ''))
}
/**
* Resolves a plugin manifest's `icon` (a lucide icon name, e.g. "Stethoscope") to the
* matching lucide component, falling back to Blocks for a missing or unknown name.
@@ -17,9 +25,7 @@ const LUCIDE_ICON_NAME = /^[A-Z][A-Za-z0-9]*$/
* building nav/tab arrays.
*/
export function resolvePluginIcon(name: string | null | undefined): LucideIcon {
if (!name || !LUCIDE_ICON_NAME.test(name)) return Blocks
const icon = (LucideIcons as unknown as Record<string, LucideIcon | undefined>)[name]
return icon ?? Blocks
return findLucideIcon(name) ?? Blocks
}
/** Renders the lucide icon a plugin declares in its manifest (Blocks if unknown). */
@@ -0,0 +1,158 @@
{
"Chrome": {
"name": "chromium",
"node": [
["path",{"d":"M10.88 21.94 15.46 14","key":"xkve6t"}],
["path",{"d":"M21.17 8H12","key":"19dcdn"}],
["path",{"d":"M3.95 6.06 8.54 14","key":"g8jz9m"}],
["circle",{"cx":"12","cy":"12","r":"10","key":"1mglay"}],
["circle",{"cx":"12","cy":"12","r":"4","key":"4exip2"}]
]
},
"Chromium": {
"name": "chromium",
"node": [
["path",{"d":"M10.88 21.94 15.46 14","key":"xkve6t"}],
["path",{"d":"M21.17 8H12","key":"19dcdn"}],
["path",{"d":"M3.95 6.06 8.54 14","key":"g8jz9m"}],
["circle",{"cx":"12","cy":"12","r":"10","key":"1mglay"}],
["circle",{"cx":"12","cy":"12","r":"4","key":"4exip2"}]
]
},
"Codepen": {
"name": "codepen",
"node": [
["polygon",{"points":"12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2","key":"srzb37"}],
["line",{"x1":"12","x2":"12","y1":"22","y2":"15.5","key":"1t73f2"}],
["polyline",{"points":"22 8.5 12 15.5 2 8.5","key":"ajlxae"}],
["polyline",{"points":"2 15.5 12 8.5 22 15.5","key":"susrui"}],
["line",{"x1":"12","x2":"12","y1":"2","y2":"8.5","key":"2cldga"}]
]
},
"Codesandbox": {
"name": "codesandbox",
"node": [
["path",{"d":"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z","key":"yt0hxn"}],
["polyline",{"points":"7.5 4.21 12 6.81 16.5 4.21","key":"fabo96"}],
["polyline",{"points":"7.5 19.79 7.5 14.6 3 12","key":"z377f1"}],
["polyline",{"points":"21 12 16.5 14.6 16.5 19.79","key":"9nrev1"}],
["polyline",{"points":"3.27 6.96 12 12.01 20.73 6.96","key":"1180pa"}],
["line",{"x1":"12","x2":"12","y1":"22.08","y2":"12","key":"3z3uq6"}]
]
},
"Dribbble": {
"name": "dribbble",
"node": [
["circle",{"cx":"12","cy":"12","r":"10","key":"1mglay"}],
["path",{"d":"M19.13 5.09C15.22 9.14 10 10.44 2.25 10.94","key":"hpej1"}],
["path",{"d":"M21.75 12.84c-6.62-1.41-12.14 1-16.38 6.32","key":"1tr44o"}],
["path",{"d":"M8.56 2.75c4.37 6 6 9.42 8 17.72","key":"kbh691"}]
]
},
"Facebook": {
"name": "facebook",
"node": [
["path",{"d":"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z","key":"1jg4f8"}]
]
},
"Figma": {
"name": "figma",
"node": [
["path",{"d":"M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z","key":"1340ok"}],
["path",{"d":"M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z","key":"1hz3m3"}],
["path",{"d":"M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z","key":"1oz8n2"}],
["path",{"d":"M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z","key":"1ff65i"}],
["path",{"d":"M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z","key":"pdip6e"}]
]
},
"Framer": {
"name": "framer",
"node": [
["path",{"d":"M5 16V9h14V2H5l14 14h-7m-7 0 7 7v-7m-7 0h7","key":"1a2nng"}]
]
},
"Github": {
"name": "github",
"node": [
["path",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4","key":"tonef"}],
["path",{"d":"M9 18c-4.51 2-5-2-7-2","key":"9comsn"}]
]
},
"Gitlab": {
"name": "gitlab",
"node": [
["path",{"d":"m22 13.29-3.33-10a.42.42 0 0 0-.14-.18.38.38 0 0 0-.22-.11.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18l-2.26 6.67H8.32L6.1 3.26a.42.42 0 0 0-.1-.18.38.38 0 0 0-.26-.08.39.39 0 0 0-.23.07.42.42 0 0 0-.14.18L2 13.29a.74.74 0 0 0 .27.83L12 21l9.69-6.88a.71.71 0 0 0 .31-.83Z","key":"148pdi"}]
]
},
"Instagram": {
"name": "instagram",
"node": [
["rect",{"width":"20","height":"20","x":"2","y":"2","rx":"5","ry":"5","key":"2e1cvw"}],
["path",{"d":"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z","key":"9exkf1"}],
["line",{"x1":"17.5","x2":"17.51","y1":"6.5","y2":"6.5","key":"r4j83e"}]
]
},
"Linkedin": {
"name": "linkedin",
"node": [
["path",{"d":"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z","key":"c2jq9f"}],
["rect",{"width":"4","height":"12","x":"2","y":"9","key":"mk3on5"}],
["circle",{"cx":"4","cy":"4","r":"2","key":"bt5ra8"}]
]
},
"Pocket": {
"name": "pocket",
"node": [
["path",{"d":"M20 3a2 2 0 0 1 2 2v6a1 1 0 0 1-20 0V5a2 2 0 0 1 2-2z","key":"1uodqw"}],
["path",{"d":"m8 10 4 4 4-4","key":"1mxd5q"}]
]
},
"RailSymbol": {
"name": "rail-symbol",
"node": [
["path",{"d":"M5 15h14","key":"m0yey3"}],
["path",{"d":"M5 9h14","key":"7tsvo6"}],
["path",{"d":"m14 20-5-5 6-6-5-5","key":"1jo42i"}]
]
},
"Slack": {
"name": "slack",
"node": [
["rect",{"width":"3","height":"8","x":"13","y":"2","rx":"1.5","key":"diqz80"}],
["path",{"d":"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5","key":"183iwg"}],
["rect",{"width":"3","height":"8","x":"8","y":"14","rx":"1.5","key":"hqg7r1"}],
["path",{"d":"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5","key":"76g71w"}],
["rect",{"width":"8","height":"3","x":"14","y":"13","rx":"1.5","key":"1kmz0a"}],
["path",{"d":"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5","key":"jc4sz0"}],
["rect",{"width":"8","height":"3","x":"2","y":"8","rx":"1.5","key":"1omvl4"}],
["path",{"d":"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5","key":"16f3cl"}]
]
},
"Trello": {
"name": "trello",
"node": [
["rect",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2","key":"1m3agn"}],
["rect",{"width":"3","height":"9","x":"7","y":"7","key":"14n3xi"}],
["rect",{"width":"3","height":"5","x":"14","y":"7","key":"s4azjd"}]
]
},
"Twitch": {
"name": "twitch",
"node": [
["path",{"d":"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7","key":"c0yzno"}]
]
},
"Twitter": {
"name": "twitter",
"node": [
["path",{"d":"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z","key":"pff0z6"}]
]
},
"Youtube": {
"name": "youtube",
"node": [
["path",{"d":"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17","key":"1q2vi4"}],
["path",{"d":"m10 15 5-3-5-3z","key":"1jp15x"}]
]
}
}
@@ -0,0 +1,53 @@
/*!
* Glyphs from lucide-react 0.577.0 for icons removed in Lucide 1.
*
* ISC License
*
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* ---
*
* The MIT License (MIT) (for portions derived from Feather)
*
* Copyright (c) 2013-2026 Cole Bemis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
import { createLucideIcon, type LucideIcon, type LucideIconData } from 'lucide-react';
import legacyIcons from './legacy-lucide-icons.json';
const icons = Object.fromEntries(
Object.entries(legacyIcons).map(([name, data]) => [name, createLucideIcon(data as LucideIconData)])
) as Record<keyof typeof legacyIcons, LucideIcon>;
export const legacyLucideIcons = new Map<string, LucideIcon>(Object.entries(icons));
export const Github = icons.Github;
@@ -1,8 +1,9 @@
import { useState } from 'react'
import { useFormatDate } from '../../../hooks/useDateFormat'
import MPluginVersionDate from './MPluginVersionDate'
import { Blocks, AlertTriangle, PackageOpen, RefreshCw, Trash2, Download, Bug, X, ShieldCheck, UploadCloud, ArrowUpCircle, Github, ExternalLink, ChevronDown, Check, Lock, Search, Link2, KeyRound, ShieldAlert, SlidersHorizontal, ArrowUpDown, CircleDot, MoreHorizontal, RotateCw, Database, Globe, Info, History, PauseCircle, Puzzle, Bot, ListChecks } from 'lucide-react'
import { Blocks, AlertTriangle, PackageOpen, RefreshCw, Trash2, Download, Bug, X, ShieldCheck, UploadCloud, ArrowUpCircle, ExternalLink, ChevronDown, Check, Lock, Search, Link2, KeyRound, ShieldAlert, SlidersHorizontal, ArrowUpDown, CircleDot, MoreHorizontal, RotateCw, Database, Globe, Info, History, PauseCircle, Puzzle, Bot, ListChecks } from 'lucide-react'
import PluginIcon from '../../../components/shared/PluginIcon'
import { Github } from '../../../components/shared/legacyLucideIcons'
import { type RangeWarning } from '../../../components/Admin/useRangeBypass'
import { deriveCaps } from '../../../components/Admin/pluginCaps'
import PluginPoiCategoryList from '../../../components/Admin/PluginPoiCategoryList'