#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
Delete the legacy icon sets (#8273)
EthanHealy011bbfe56f8db9
diff --git a/.claude/skills/ui-before-after/SKILL.md b/.claude/skills/ui-before-after/SKILL.mdindex 07a8561baa..533bc6bd6e 100644--- a/.claude/skills/ui-before-after/SKILL.md+++ b/.claude/skills/ui-before-after/SKILL.md@@ -35,7 +35,7 @@ page, skip cropping; default 0.6), `--base <ref|merge-base>`,`--threshold <fraction>` (diff sensitivity, default 0.001).Shares the capture harness with **ui-walkthrough** - read its SKILL.md for the-stubbed-Playwright setup, worktree node_modules + `generate-icons`, the+stubbed-Playwright setup, worktree node_modules, thestale-`:5173` gotcha, and the dark-mode init-script. Bundled helpers:[capture-spec.template.ts](capture-spec.template.ts), [diff-shots.mjs](diff-shots.mjs),[montage-template.html](montage-template.html), [shoot-sections.mjs](shoot-sections.mjs).diff --git a/.claude/skills/ui-walkthrough/SKILL.md b/.claude/skills/ui-walkthrough/SKILL.mdindex ef6d4b9dec..a2f3d1ef06 100644--- a/.claude/skills/ui-walkthrough/SKILL.md+++ b/.claude/skills/ui-walkthrough/SKILL.md@@ -51,10 +51,9 @@ current branch diff. Flags: `--fix`, `--theme light|dark|both` (default both),permission/role variants. Write the list down before capturing - it's the report's spine.### 2. Prepare the harness (worktree-safe)-Worktrees have no `node_modules` and no generated icons. From repo root:+Worktrees have no `node_modules`. From repo root:```cd frontend && npm ci # or junction main's node_modules (see memory)-cd frontend/editor && node scripts/generate-icons.js```Kill any stale dev server first (it serves old modules):`Get-NetTCPConnection -LocalPort 5173 -State Listen | %{ Stop-Process -Id $_.OwningProcess -Force }`@@ -114,7 +113,5 @@ Optionally `SendUserFile` the `walkthrough.html`.## Gotchas- Stale `:5173` server serves old bundles - kill it before capturing (see step 2).-- Missing `material-symbols-icons.json` → blank app → every shot times out. Run- `generate-icons.js` first.- `await settle(page)` before shots or portals/transitions tear mid-capture.- Don't commit the generated `screenshots/` or the throwaway spec unless asked.diff --git a/.github/dependabot.yml b/.github/dependabot.ymlindex 4ed61e37ec..6bb6848ec4 100644--- a/.github/dependabot.yml+++ b/.github/dependabot.yml@@ -74,15 +74,9 @@ updates:patterns:- "@mantine/*"- "postcss-preset-mantine"- mui:- patterns:- - "@mui/*"tauri-js:patterns:- "@tauri-apps/*"- emotion:- patterns:- - "@emotion/*"react:patterns:- "react"@@ -113,10 +107,6 @@ updates:- "i18next"- "i18next-*"- "react-i18next"- iconify:- patterns:- - "@iconify/*"- - "@iconify-json/*"stripe:patterns:- "@stripe/*"diff --git a/.taskfiles/frontend.yml b/.taskfiles/frontend.ymlindex faf77ce251..bee723223b 100644--- a/.taskfiles/frontend.yml+++ b/.taskfiles/frontend.yml@@ -43,13 +43,6 @@ tasks:- editor/.env.local- editor/.env{{if .MODE}}.{{.MODE}}{{end}}.local- prepare:icons:- internal: true- run: once- deps: [install]- cmds:- - node editor/scripts/generate-icons.js-prepare:og:internal: truerun: when_changed@@ -73,7 +66,6 @@ tasks:deps:- task: prepare:envvars: { MODE: '{{.MODE}}' }- - prepare:icons- prepare:og# ============================================================diff --git a/app/core/build.gradle b/app/core/build.gradleindex d523439a33..05c69bcdce 100644--- a/app/core/build.gradle+++ b/app/core/build.gradle@@ -238,13 +238,6 @@ tasks.register('npmInstall', Exec) {return true}- // if required devDependency is missing, reinstall- def iconifyPkg = new File(frontendDir, 'node_modules/@iconify-json/material-symbols/package.json')- if (!iconifyPkg.exists()) {- println "@iconify-json/material-symbols missing, will reinstall..."- return true- }-def packageJson = new File(frontendDir, 'package.json')def packageLock = new File(frontendDir, 'package-lock.json')def isOutdated = nodeModules.lastModified() < packageJson.lastModified() ||diff --git a/app/core/src/main/resources/static/fonts/google-symbol.woff2 b/app/core/src/main/resources/static/fonts/google-symbol.woff2deleted file mode 100644index 99d369c931..0000000000Binary files a/app/core/src/main/resources/static/fonts/google-symbol.woff2 and /dev/null differdiff --git a/docker/frontend/Dockerfile b/docker/frontend/Dockerfileindex 61c9b797cd..b84a420af8 100644--- a/docker/frontend/Dockerfile+++ b/docker/frontend/Dockerfile@@ -11,9 +11,6 @@ RUN npm ciCOPY frontend .-# Generate the material-symbols icon subset (normally done by task prepare:icons).-RUN node editor/scripts/generate-icons.js-# Defaults match prior behaviour. Supabase values are client-publishable build args.ARG STIRLING_FLAVOR=proprietaryARG VITE_BUILD_MODE=productiondiff --git a/frontend/.gitignore b/frontend/.gitignoreindex 3f9122a6f7..e4083a6a53 100644--- a/frontend/.gitignore+++ b/frontend/.gitignore@@ -40,10 +40,6 @@ yarn-error.log*playwright-reporttest-results-# auto-generated files-/editor/src/assets/material-symbols-icons.json-/editor/src/assets/material-symbols-icons.d.ts-# dev update testing - keys, built bundles, screenshots, and generated config override/scripts/dev-update-test/.keys//scripts/dev-update-test/.update-dist/diff --git a/frontend/.storybook/main.ts b/frontend/.storybook/main.tsindex 1a59e105f9..4ef817def4 100644--- a/frontend/.storybook/main.ts+++ b/frontend/.storybook/main.ts@@ -5,8 +5,6 @@ import tsconfigPaths from "vite-tsconfig-paths";import { iconSvgr } from "../editor/scripts/icons/svgrOptions.mts";// By path, not @app/*: this file runs in node, before the aliases exist.// oxlint-disable-next-line no-restricted-imports -- config runs before aliases exist-import { legacyIconsPlugin } from "../editor/scripts/icons/legacyIcons.vite.mts";-// oxlint-disable-next-line no-restricted-imports -- config runs before aliases existimport { usedIconsPlugin } from "../editor/scripts/icons/usedIcons.vite.mts";/**@@ -81,8 +79,6 @@ const config: StorybookConfig = {config.plugins = config.plugins ?? [];config.plugins.push(iconSvgr());config.plugins.push(editorPathAliases());- // Reads the audit's "before" glyphs from the icon packages, so none of their artwork is checked in.- config.plugins.push(legacyIconsPlugin(resolve(__dirname, "..")));// Scanned at startup rather than committed, so the gallery's "in use" view cannot go stale.config.plugins.push(usedIconsPlugin(resolve(__dirname, "../editor/src")));// Worker bundles are a separate Rollup pass and do NOT inherit `plugins`, sodiff --git a/frontend/.storybook/tsconfig.json b/frontend/.storybook/tsconfig.jsonindex 107332ef09..18a1662b74 100644--- a/frontend/.storybook/tsconfig.json+++ b/frontend/.storybook/tsconfig.json@@ -13,7 +13,6 @@"include": ["./**/*","../editor/src/global.d.ts",- "../editor/src/core/icons/legacyIcons.d.ts","../editor/src/core/icons/usedIcons.d.ts","../editor/src/**/*.stories.ts","../editor/src/**/*.stories.tsx"diff --git a/frontend/.storybook/vitest.config.ts b/frontend/.storybook/vitest.config.tsindex 28d25f9732..6e9e39e829 100644--- a/frontend/.storybook/vitest.config.ts+++ b/frontend/.storybook/vitest.config.ts@@ -24,7 +24,7 @@ export default defineConfig({},optimizeDeps: {// Pre-scan every story + the preview so Vite discovers the story set's large- // dep surface (embedpdf plugins, @mui icons, …) in one pass up front.+ // dep surface (embedpdf plugins, lucide svgs, …) in one pass up front.entries: ["editor/src/**/*.stories.@(ts|tsx)", ".storybook/preview.tsx"],// `entries` alone does not catch deps reached through a transformed JSX// runtime import, nor the preview's own dependency graph (the test plugindiff --git a/frontend/editor/public/samples/Sample.pdf b/frontend/editor/public/samples/Sample.pdfindex d78d9e1efd..c8c3075177 100644Binary files a/frontend/editor/public/samples/Sample.pdf and b/frontend/editor/public/samples/Sample.pdf differdiff --git a/frontend/editor/scripts/generate-icons.js b/frontend/editor/scripts/generate-icons.jsdeleted file mode 100644index 70b4a091d2..0000000000--- a/frontend/editor/scripts/generate-icons.js+++ /dev/null@@ -1,249 +0,0 @@-#!/usr/bin/env node--import { icons } from "@iconify-json/material-symbols";-import fs from "node:fs";-import path from "node:path";--// Check for verbose flag-const isVerbose =- process.argv.includes("--verbose") || process.argv.includes("-v");--// Logging functions-const info = (message) => console.log(message);-const debug = (message) => {- if (isVerbose) {- console.log(message);- }-};--// Function to scan codebase for LocalIcon usage-function scanForUsedIcons() {- const usedIcons = new Set();- const srcDir = path.join(import.meta.dirname, "..", "src");-- info("🔍 Scanning codebase for LocalIcon usage...");-- if (!fs.existsSync(srcDir)) {- console.error("❌ Source directory not found:", srcDir);- process.exit(1);- }-- // Recursively scan all .tsx and .ts files- function scanDirectory(dir) {- const files = fs.readdirSync(dir);-- files.forEach((file) => {- const filePath = path.join(dir, file);- const stat = fs.statSync(filePath);-- if (stat.isDirectory()) {- scanDirectory(filePath);- } else if (file.endsWith(".tsx") || file.endsWith(".ts")) {- const content = fs.readFileSync(filePath, "utf8");-- // Match LocalIcon usage: <LocalIcon icon="icon-name" ...>- const localIconMatches = content.match(- /<LocalIcon\s+[^>]*icon="([^"]+)"/g,- );- if (localIconMatches) {- localIconMatches.forEach((match) => {- const iconMatch = match.match(/icon="([^"]+)"/);- if (iconMatch) {- usedIcons.add(iconMatch[1]);- debug(- ` Found: ${iconMatch[1]} in ${path.relative(srcDir, filePath)}`,- );- }- });- }-- // Match LocalIcon usage: <LocalIcon icon='icon-name' ...>- const localIconSingleQuoteMatches = content.match(- /<LocalIcon\s+[^>]*icon='([^']+)'/g,- );- if (localIconSingleQuoteMatches) {- localIconSingleQuoteMatches.forEach((match) => {- const iconMatch = match.match(/icon='([^']+)'/);- if (iconMatch) {- usedIcons.add(iconMatch[1]);- debug(- ` Found: ${iconMatch[1]} in ${path.relative(srcDir, filePath)}`,- );- }- });- }-- // Match old material-symbols-rounded spans: <span className="material-symbols-rounded">icon-name</span>- const spanMatches = content.match(- /<span[^>]*className="[^"]*material-symbols-rounded[^"]*"[^>]*>([^<]+)<\/span>/g,- );- if (spanMatches) {- spanMatches.forEach((match) => {- const iconMatch = match.match(/>([^<]+)<\/span>/);- if (iconMatch && iconMatch[1].trim()) {- const iconName = iconMatch[1].trim();- usedIcons.add(iconName);- debug(- ` Found (legacy): ${iconName} in ${path.relative(srcDir, filePath)}`,- );- }- });- }-- // Match Icon component usage: <Icon icon="material-symbols:icon-name" ...>- const iconMatches = content.match(- /<Icon\s+[^>]*icon="material-symbols:([^"]+)"/g,- );- if (iconMatches) {- iconMatches.forEach((match) => {- const iconMatch = match.match(/icon="material-symbols:([^"]+)"/);- if (iconMatch) {- usedIcons.add(iconMatch[1]);- debug(- ` Found (Icon): ${iconMatch[1]} in ${path.relative(srcDir, filePath)}`,- );- }- });- }-- // Match icon config usage: icon: 'icon-name' or icon: "icon-name"- const iconPropertyMatches = content.match(- /icon:\s*(['"])([a-z0-9-]+)\1/g,- );- if (iconPropertyMatches) {- iconPropertyMatches.forEach((match) => {- const iconMatch = match.match(/icon:\s*(['"])([a-z0-9-]+)\1/);- if (iconMatch) {- usedIcons.add(iconMatch[2]);- debug(- ` Found (config): ${iconMatch[2]} in ${path.relative(srcDir, filePath)}`,- );- }- });- }- }- });- }-- scanDirectory(srcDir);-- const iconArray = Array.from(usedIcons).sort();- info(`📋 Found ${iconArray.length} unique icons across codebase`);-- return iconArray;-}--// Main async function-async function main() {- // Auto-detect used icons- const usedIcons = scanForUsedIcons();-- // Check if we need to regenerate (compare with existing)- const outputPath = path.join(- import.meta.dirname,- "..",- "src",- "assets",- "material-symbols-icons.json",- );- let needsRegeneration = true;-- if (fs.existsSync(outputPath)) {- try {- const existingSet = JSON.parse(fs.readFileSync(outputPath, "utf8"));- const existingIcons = Object.keys(existingSet.icons || {}).sort();- const currentIcons = [...usedIcons].sort();-- if (JSON.stringify(existingIcons) === JSON.stringify(currentIcons)) {- needsRegeneration = false;- info(- `✅ Icon set already up-to-date (${usedIcons.length} icons, ${Math.round(fs.statSync(outputPath).size / 1024)}KB)`,- );- }- } catch {- // If we can't parse existing file, regenerate- needsRegeneration = true;- }- }-- if (!needsRegeneration) {- info("🎉 No regeneration needed!");- process.exit(0);- }-- info(`🔍 Extracting ${usedIcons.length} icons from Material Symbols...`);-- // Dynamic import of ES module- const { getIcons } = await import("@iconify/utils");-- // Extract only our used icons from the full set- const extractedIcons = getIcons(icons, usedIcons);-- if (!extractedIcons) {- console.error("❌ Failed to extract icons");- process.exit(1);- }-- // Check for missing icons- const extractedIconNames = Object.keys(extractedIcons.icons || {});- const missingIcons = usedIcons.filter(- (icon) => !extractedIconNames.includes(icon),- );-- if (missingIcons.length > 0) {- info(- `⚠️ Missing icons (${missingIcons.length}): ${missingIcons.join(", ")}`,- );- info(- "💡 These icons don't exist in Material Symbols. Please use available alternatives.",- );- }-- // Create output directory- const outputDir = path.join(import.meta.dirname, "..", "src", "assets");- if (!fs.existsSync(outputDir)) {- fs.mkdirSync(outputDir, { recursive: true });- }-- // Write the extracted icon set to a file (outputPath already defined above)- fs.writeFileSync(outputPath, JSON.stringify(extractedIcons, null, 2));-- info(- `✅ Successfully extracted ${Object.keys(extractedIcons.icons || {}).length} icons`,- );- info(- `📦 Bundle size: ${Math.round(JSON.stringify(extractedIcons).length / 1024)}KB`,- );- info(`💾 Saved to: ${outputPath}`);-- // Generate TypeScript types- const typesContent = `// Auto-generated icon types-// This file is automatically generated by scripts/generate-icons.js-// Do not edit manually - changes will be overwritten--export type MaterialSymbolIcon = ${usedIcons.map((icon) => `'${icon}'`).join(" | ")};--export interface IconSet {- prefix: string;- icons: Record<string, unknown>;- width?: number;- height?: number;-}--// Re-export the icon set as the default export with proper typing-declare const iconSet: IconSet;-export default iconSet;-`;-- const typesPath = path.join(outputDir, "material-symbols-icons.d.ts");- fs.writeFileSync(typesPath, typesContent);-- info(`📝 Generated types: ${typesPath}`);- info(`🎉 Icon extraction complete!`);-}--// Run the main function-main().catch((error) => {- console.error("❌ Script failed:", error);- process.exit(1);-});diff --git a/frontend/editor/scripts/icons/legacyIcons.vite.mts b/frontend/editor/scripts/icons/legacyIcons.vite.mtsdeleted file mode 100644index bbc31b12c9..0000000000--- a/frontend/editor/scripts/icons/legacyIcons.vite.mts+++ /dev/null@@ -1,122 +0,0 @@-/** Serves the audit's "before" glyphs as `virtual:legacy-icons`, read from the icon packages so none are checked in. */-import fs from "node:fs";-import path from "node:path";-import type { Plugin } from "vite";--const VIRTUAL_ID = "virtual:legacy-icons";-const RESOLVED_ID = "\0" + VIRTUAL_ID;--const ATTR: Record<string, string> = {- clipRule: "clip-rule",- fillRule: "fill-rule",- fillOpacity: "fill-opacity",- strokeWidth: "stroke-width",-};--interface LegacyGlyph {- viewBox: string;- body: string;-}--interface LegacyGlyphs {- mui: Record<string, LegacyGlyph>;- materialSymbols: Record<string, LegacyGlyph>;-}--interface IconMap {- mui: Record<string, string>;- materialSymbols: Record<string, string>;-}--interface IconifySet {- width?: number;- height?: number;- icons?: Record<string, { body: string; width?: number; height?: number }>;-}--/** MUI ships each icon as `createSvgIcon(_jsx("path", {…}), 'Name')`. */-function muiBody(modules: string, name: string): string | null {- const file = path.join(modules, "@mui/icons-material", `${name}.mjs`);- if (!fs.existsSync(file)) return null;- const src = fs.readFileSync(file, "utf8");- const els: string[] = [];- const re = /_jsxs?\(\s*"([a-zA-Z]+)"\s*,\s*\{/g;- let m: RegExpExecArray | null;- while ((m = re.exec(src))) {- // Brace-match: an icon with several paths nests braces, and a lazy regex stops at the first inner one.- let depth = 0;- let end = -1;- let inStr: string | null = null;- for (let i = re.lastIndex - 1; i < src.length; i++) {- const c = src[i];- if (inStr) {- if (c === "\\") i++;- else if (c === inStr) inStr = null;- continue;- }- if (c === '"' || c === "'") inStr = c;- else if (c === "{") depth++;- else if (c === "}" && --depth === 0) {- end = i;- break;- }- }- if (end === -1) continue;- const attrs: string[] = [];- for (const p of src- .slice(re.lastIndex, end)- .matchAll(/([a-zA-Z][a-zA-Z0-9]*)\s*:\s*"((?:[^"\\]|\\.)*)"/g))- attrs.push(`${ATTR[p[1]] ?? p[1]}="${p[2].replace(/\\"/g, '"')}"`);- if (attrs.length) els.push(`<${m[1]} ${attrs.join(" ")}/>`);- }- return els.length ? els.join("") : null;-}--function buildLegacyGlyphs(root: string): LegacyGlyphs {- const modules = path.join(root, "node_modules");- const map: IconMap = JSON.parse(- fs.readFileSync(- path.join(root, "editor/src/core/icons/icon-map.json"),- "utf8",- ),- );- const out: LegacyGlyphs = { mui: {}, materialSymbols: {} };-- for (const name of Object.keys(map.mui)) {- const body = muiBody(modules, name);- if (body) out.mui[name] = { viewBox: "0 0 24 24", body };- }-- let symbols: IconifySet = {};- try {- symbols = JSON.parse(- fs.readFileSync(- path.join(modules, "@iconify-json/material-symbols/icons.json"),- "utf8",- ),- );- } catch {- return out;- }- for (const name of Object.keys(map.materialSymbols)) {- const icon = symbols.icons?.[name];- if (icon) {- out.materialSymbols[name] = {- viewBox: `0 0 ${icon.width ?? symbols.width ?? 24} ${icon.height ?? symbols.height ?? 24}`,- body: icon.body,- };- }- }- return out;-}--export function legacyIconsPlugin(frontendRoot: string): Plugin {- return {- name: "legacy-icons",- resolveId: (id) => (id === VIRTUAL_ID ? RESOLVED_ID : null),- load(id) {- if (id !== RESOLVED_ID) return null;- return `export default ${JSON.stringify(buildLegacyGlyphs(frontendRoot))};`;- },- };-}diff --git a/frontend/editor/scripts/lint/icon-lint.mts b/frontend/editor/scripts/lint/icon-lint.mtsindex 236ab43cff..208328dbf9 100644--- a/frontend/editor/scripts/lint/icon-lint.mts+++ b/frontend/editor/scripts/lint/icon-lint.mts@@ -110,32 +110,6 @@ if (lucidePath.size) {}}-// Every Material Symbols name, so a leftover is caught wherever it sits, not only in `<Icon name>`.-function legacyIconNames(): Set<string> {- try {- const set: { icons: Record<string, unknown> } = JSON.parse(- fs.readFileSync(- path.join(- EDITOR,- "../node_modules/@iconify-json/material-symbols/icons.json",- ),- "utf8",- ),- );- return new Set(Object.keys(set.icons));- } catch {- try {- const map: { materialSymbols?: Record<string, string> } = JSON.parse(- fs.readFileSync(path.join(ICONS_DIR, "icon-map.json"), "utf8"),- );- return new Set(Object.keys(map.materialSymbols ?? {}));- } catch {- return new Set();- }- }-}-const legacy = legacyIconNames();-// Positions where a hyphenated literal is an identifier, not an icon name.const NOT_AN_ICON_POSITION =/(?:\b(?:id|key|type|kind|variant|mode|status|action|value|label|className|class|href|path|to|for|role)|data-[\w-]*|aria-[\w-]*|testid)\s*[:=]\s*$/i;@@ -221,8 +195,7 @@ for (const file of files) {for (const m of line.matchAll(/"([a-z0-9]+(?:-[a-z0-9]+)+)"/g)) {if (!MIGRATION_COMPLETE) break;const name = m[1];- const isLegacy =- /-(?:rounded|outlined|sharp|twotone)$/.test(name) || legacy.has(name);+ const isLegacy = /-(?:rounded|outlined|sharp|twotone)$/.test(name);if (!isLegacy || known.has(name)) continue;if (NOT_AN_ICON_POSITION.test(line.slice(0, m.index))) continue;if (OPT_OUT.test(line)) continue;diff --git a/frontend/editor/scripts/lint/theme-lint.mjs b/frontend/editor/scripts/lint/theme-lint.mjsindex 8c8b8e7309..7c016969a7 100644--- a/frontend/editor/scripts/lint/theme-lint.mjs+++ b/frontend/editor/scripts/lint/theme-lint.mjs@@ -639,7 +639,7 @@ const CODE_EXEMPT_PATH = [/\/viewer\/|Annotation|useViewerReadAloud|CommentsSidebar|\/constants\/search\.ts$|SignaturePreview/,/ColorPicker|ColorControl|fileColors|unifiedBackground|folder\.ts$|policyFolders/,/OAuthButtons|oauthCallbackHtml/,- /mantineTheme|\/theme\.ts$|toolsTaxonomy|LayoutPreview|PageNumberPreview|CloudStorageIcons|BrandMarks/,+ /mantineTheme|\/theme\.ts$|toolsTaxonomy|LayoutPreview|PageNumberPreview|BrandMarks/,/\/onboarding\//,/addStamp|addWatermark|\/tooltips\//,// Stories are checked like app code; colour-as-data lines opt out withdiff --git a/frontend/editor/scripts/sample-pdf/generate.mjs b/frontend/editor/scripts/sample-pdf/generate.mjsindex 2ad477cc98..97d9eb7c22 100755--- a/frontend/editor/scripts/sample-pdf/generate.mjs+++ b/frontend/editor/scripts/sample-pdf/generate.mjs@@ -11,7 +11,8 @@import puppeteer from "puppeteer";import { fileURLToPath } from "url";import { dirname, join } from "path";-import { existsSync, mkdirSync, statSync } from "fs";+import { existsSync, mkdirSync, readFileSync, statSync } from "fs";+import { createRequire } from "module";const __filename = fileURLToPath(import.meta.url);const __dirname = dirname(__filename);@@ -20,6 +21,34 @@ const TEMPLATE_PATH = join(__dirname, "template.html");const OUTPUT_DIR = join(__dirname, "../../public/samples");const OUTPUT_PATH = join(OUTPUT_DIR, "Sample.pdf");+const require = createRequire(import.meta.url);++/**+ * The template marks each icon `<i data-lucide="name">` and this swaps in the+ * svg from lucide-static, so no icon geometry is copied into the template. The+ * icons stay inline because they take their card's colour through currentColor,+ * which an <img> could not.+ */+async function inlineLucideIcons(page) {+ const names = await page.$$eval("[data-lucide]", (els) => [+ ...new Set(els.map((el) => el.dataset.lucide)),+ ]);+ const svgs = Object.fromEntries(+ names.map((name) => [+ name,+ readFileSync(require.resolve(`lucide-static/icons/${name}.svg`), "utf8"),+ ]),+ );+ await page.$$eval(+ "[data-lucide]",+ (els, markup) => {+ for (const el of els) el.outerHTML = markup[el.dataset.lucide];+ },+ svgs,+ );+ console.log(`🎨 Inlined ${names.length} lucide icons`);+}+async function generatePDF() {console.log("🚀 Starting Stirling PDF sample document generation...\n");@@ -61,6 +90,7 @@ async function generatePDF() {await page.goto(fileUrl, {waitUntil: "networkidle0", // Wait for all resources to load});+ await inlineLucideIcons(page);// Generate PDF with A4 dimensionsconsole.log("📝 Generating PDF...");diff --git a/frontend/editor/scripts/sample-pdf/styles.css b/frontend/editor/scripts/sample-pdf/styles.cssindex f4cb87ac6e..645dffbce9 100644--- a/frontend/editor/scripts/sample-pdf/styles.css+++ b/frontend/editor/scripts/sample-pdf/styles.css@@ -192,7 +192,6 @@ body {font-size: 16px;font-weight: 500;border: 2px solid rgba(255, 255, 255, 0.3);- backdrop-filter: blur(10px);}/* Page 2: What is Stirling PDF */diff --git a/frontend/editor/scripts/sample-pdf/template.html b/frontend/editor/scripts/sample-pdf/template.htmlindex 20733766fa..e7e7483bc1 100644--- a/frontend/editor/scripts/sample-pdf/template.html+++ b/frontend/editor/scripts/sample-pdf/template.html@@ -11,27 +11,27 @@<div class="page page-1"><div class="decorative-shapes"><img- src="../../public/modern-logo/StirlingPDFLogoNoTextLight.svg"+ src="../../src/core/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svg"class="shape shape-1"alt=""/><img- src="../../public/modern-logo/StirlingPDFLogoNoTextDark.svg"+ src="../../src/core/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svg"class="shape shape-2"alt=""/><img- src="../../public/modern-logo/StirlingPDFLogoNoTextLight.svg"+ src="../../src/core/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svg"class="shape shape-3"alt=""/><img- src="../../public/modern-logo/StirlingPDFLogoNoTextDark.svg"+ src="../../src/core/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svg"class="shape shape-4"alt=""/><img- src="../../public/modern-logo/StirlingPDFLogoNoTextLight.svg"+ src="../../src/core/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svg"class="shape shape-5"alt=""/>@@ -39,7 +39,7 @@<div class="hero-content"><div class="logo-container"><img- src="../../public/modern-logo/StirlingPDFLogoWhiteText.svg"+ src="../../src/core/assets/brand/modern-logo/StirlingPDFLogoWhiteText.svg"alt="Stirling PDF"class="hero-logo"/>@@ -73,16 +73,7 @@<div class="value-props"><div class="value-prop"><div class="value-icon">- <svg- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <path- d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"- />- </svg>+ <i data-lucide="wrench"></i></div><h3>50+ PDF Operations</h3><p>@@ -93,11 +84,7 @@<div class="value-prop"><div class="value-icon">- <svg viewBox="0 0 24 24" fill="currentColor">- <path- d="M7.4 17.25q-1.05.875-2.187.8t-1.988-.775t-1.162-1.837t.412-2.338L4.35 10q-.625-.55-.987-1.325T3 7q0-1.65 1.175-2.825T7 3t2.825 1.175T11 7T9.825 9.825T7 11q-.225 0-.45-.025t-.425-.075L4.2 14.15q-.275.45-.175.888t.425.712t.775.313t.875-.313l10.5-9.025q1.05-.875 2.2-.788t2 .788t1.15 1.838t-.425 2.337L19.65 14q.625.55.988 1.325T21 17q0 1.65-1.175 2.825T17 21t-2.825-1.175T13 17t1.175-2.825T17 13q.225 0 .438.025t.412.075l1.95-3.25q.275-.45.175-.888t-.425-.712t-.775-.312t-.875.312zM7 9q.825 0 1.413-.587T9 7t-.587-1.412T7 5t-1.412.588T5 7t.588 1.413T7 9m10 10q.825 0 1.413-.587T19 17t-.587-1.412T17 15t-1.412.588T15 17t.588 1.413T17 19m0-2"- />- </svg>+ <i data-lucide="workflow"></i></div><h3>Workflow Automation</h3><p>@@ -108,18 +95,7 @@<div class="value-prop"><div class="value-icon">- <svg- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <circle cx="12" cy="12" r="10" />- <line x1="2" y1="12" x2="22" y2="12" />- <path- d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"- />- </svg>+ <i data-lucide="globe"></i></div><h3>Multi-Language Support</h3><p>@@ -130,16 +106,7 @@<div class="value-prop"><div class="value-icon">- <svg- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <rect x="5" y="11" width="14" height="10" rx="2" />- <circle cx="12" cy="16" r="1" />- <path d="M8 11V7a4 4 0 0 1 8 0v4" />- </svg>+ <i data-lucide="lock-keyhole"></i></div><h3>Privacy First</h3><p>@@ -150,15 +117,7 @@<div class="value-prop"><div class="value-icon">- <svg- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <circle cx="12" cy="12" r="10" />- <path d="m9 12 2 2 4-4" />- </svg>+ <i data-lucide="circle-check"></i></div><h3>Open Source</h3><p>@@ -169,15 +128,7 @@<div class="value-prop"><div class="value-icon">- <svg- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <polyline points="16 18 22 12 16 6" />- <polyline points="8 6 2 12 8 18" />- </svg>+ <i data-lucide="code"></i></div><h3>API Access</h3><p>@@ -198,20 +149,7 @@<div class="feature-card" data-category="general"><div class="feature-header"><div class="feature-icon-large">- <svg- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <path- d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"- />- <polyline points="14 2 14 8 20 8" />- <line x1="16" y1="13" x2="8" y2="13" />- <line x1="16" y1="17" x2="8" y2="17" />- <polyline points="10 9 9 9 8 9" />- </svg>+ <i data-lucide="file-text"></i></div><h3>Page Operations</h3></div>@@ -227,15 +165,7 @@<div class="feature-card" data-category="security"><div class="feature-header"><div class="feature-icon-large">- <svg- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <rect x="3" y="11" width="18" height="11" rx="2" ry="2" />- <path d="M7 11V7a5 5 0 0 1 10 0v4" />- </svg>+ <i data-lucide="lock"></i></div><h3>Security & Signing</h3></div>@@ -251,11 +181,7 @@<div class="feature-card" data-category="formatting"><div class="feature-header"><div class="feature-icon-large">- <svg viewBox="0 0 24 24" fill="currentColor">- <path- d="m5.825 17l1.9 1.9q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288l-3.6-3.6q-.15-.15-.213-.325T2.426 16t.063-.375t.212-.325l3.6-3.6q.275-.275.688-.275t.712.275q.3.3.3.713t-.3.712L5.825 15H20q.425 0 .713.288T21 16t-.288.713T20 17zm12.35-8H4q-.425 0-.712-.288T3 8t.288-.712T4 7h14.175l-1.9-1.9q-.3-.3-.287-.7t.312-.7q.3-.275.7-.288t.7.288l3.6 3.6q.15.15.213.325t.062.375t-.062.375t-.213.325l-3.6 3.6q-.275.275-.687.275T16.3 12.3q-.3-.3-.3-.712t.3-.713z"- />- </svg>+ <i data-lucide="refresh-cw"></i></div><h3>File Conversions</h3></div>@@ -271,11 +197,7 @@<div class="feature-card" data-category="automation"><div class="feature-header"><div class="feature-icon-large">- <svg viewBox="0 0 24 24" fill="currentColor">- <path- d="M7.4 17.25q-1.05.875-2.187.8t-1.988-.775t-1.162-1.837t.412-2.338L4.35 10q-.625-.55-.987-1.325T3 7q0-1.65 1.175-2.825T7 3t2.825 1.175T11 7T9.825 9.825T7 11q-.225 0-.45-.025t-.425-.075L4.2 14.15q-.275.45-.175.888t.425.712t.775.313t.875-.313l10.5-9.025q1.05-.875 2.2-.788t2 .788t1.15 1.838t-.425 2.337L19.65 14q.625.55.988 1.325T21 17q0 1.65-1.175 2.825T17 21t-2.825-1.175T13 17t1.175-2.825T17 13q.225 0 .438.025t.412.075l1.95-3.25q.275-.45.175-.888t-.425-.712t-.775-.312t-.875.312zM7 9q.825 0 1.413-.587T9 7t-.587-1.412T7 5t-1.412.588T5 7t.588 1.413T7 9m10 10q.825 0 1.413-.587T19 17t-.587-1.412T17 15t-1.412.588T15 17t.588 1.413T17 19m0-2"- />- </svg>+ <i data-lucide="workflow"></i></div><h3>Automation</h3></div>@@ -292,11 +214,7 @@<div class="additional-features"><div class="additional-features-header"><div class="additional-features-icon">- <svg viewBox="0 0 24 24" fill="currentColor">- <path- d="M6 20q-.825 0-1.4125-.5875T4 18t.5875-1.4125T6 16t1.4125.5875T8 18t-.5875 1.4125T6 20m6 0q-.825 0-1.4125-.5875T10 18t.5875-1.4125T12 16t1.4125.5875T14 18t-.5875 1.4125T12 20m6 0q-.825 0-1.4125-.5875T16 18t.5875-1.4125T18 16t1.4125.5875T20 18t-.5875 1.4125T18 20M6 14q-.825 0-1.4125-.5875T4 12t.5875-1.4125T6 10t1.4125.5875T8 12t-.5875 1.4125T6 14m6 0q-.825 0-1.4125-.5875T10 12t.5875-1.4125T12 10t1.4125.5875T14 12t-.5875 1.4125T12 14m6 0q-.825 0-1.4125-.5875T16 12t.5875-1.4125T18 10t1.4125.5875T20 12t-.5875 1.4125T18 14M6 8q-.825 0-1.4125-.5875T4 6t.5875-1.4125T6 4t1.4125.5875T8 6t-.5875 1.4125T6 8m6 0q-.825 0-1.4125-.5875T10 6t.5875-1.4125T12 4t1.4125.5875T14 6t-.5875 1.4125T12 8m6 0q-.825 0-1.4125-.5875T16 6t.5875-1.4125T18 4t1.4125.5875T20 6t-.5875 1.4125T18 8"- />- </svg>+ <i data-lucide="layout-grid"></i></div><h3>Plus Many More</h3></div>diff --git a/frontend/editor/src/assets/3rdPartyLicenses.json b/frontend/editor/src/assets/3rdPartyLicenses.jsonindex 72760bab59..432f8ee176 100644--- a/frontend/editor/src/assets/3rdPartyLicenses.json+++ b/frontend/editor/src/assets/3rdPartyLicenses.json@@ -182,27 +182,6 @@"moduleLicense": "MIT","moduleLicenseUrl": "https://opensource.org/licenses/MIT"},- {- "moduleName": "@emotion/react",- "moduleUrl": "https://github.com/emotion-js/emotion.git#main",- "moduleVersion": "11.14.0",- "moduleLicense": "MIT",- "moduleLicenseUrl": "https://opensource.org/licenses/MIT"- },- {- "moduleName": "@emotion/styled",- "moduleUrl": "https://github.com/emotion-js/emotion.git#main",- "moduleVersion": "11.14.1",- "moduleLicense": "MIT",- "moduleLicenseUrl": "https://opensource.org/licenses/MIT"- },- {- "moduleName": "@iconify-json/material-symbols",- "moduleUrl": "https://icon-sets.iconify.design/material-symbols/",- "moduleVersion": "1.2.90",- "moduleLicense": "Apache-2.0",- "moduleLicenseUrl": "https://www.apache.org/licenses/LICENSE-2.0"- },{"moduleName": "@mantine/core","moduleUrl": "https://github.com/mantinedev/mantine",@@ -231,20 +210,6 @@"moduleLicense": "MIT","moduleLicenseUrl": "https://opensource.org/licenses/MIT"},- {- "moduleName": "@mui/icons-material",- "moduleUrl": "https://github.com/mui/material-ui",- "moduleVersion": "9.4.0",- "moduleLicense": "MIT",- "moduleLicenseUrl": "https://opensource.org/licenses/MIT"- },- {- "moduleName": "@mui/material",- "moduleUrl": "https://github.com/mui/material-ui",- "moduleVersion": "9.4.0",- "moduleLicense": "MIT",- "moduleLicenseUrl": "https://opensource.org/licenses/MIT"- },{"moduleName": "@posthog/react","moduleUrl": "https://github.com/PostHog/posthog-js",diff --git a/frontend/editor/src/core/components/filesPage/DiskLinkBadge.tsx b/frontend/editor/src/core/components/filesPage/DiskLinkBadge.tsxindex c0b94807eb..f9e63168f3 100644--- a/frontend/editor/src/core/components/filesPage/DiskLinkBadge.tsx+++ b/frontend/editor/src/core/components/filesPage/DiskLinkBadge.tsx@@ -1,8 +1,6 @@import { useTranslation } from "react-i18next";+import { Icon } from "@app/ui/Icon";import { Tooltip } from "@mantine/core";-import LinkOffIcon from "@mui/icons-material/LinkOff";-import SyncProblemIcon from "@mui/icons-material/SyncProblem";-import CloudOffIcon from "@mui/icons-material/CloudOff";import { StirlingFileStub } from "@app/types/fileContext";import { diskLinkState } from "@app/services/diskLinkState";@@ -56,7 +54,7 @@ export function DiskLinkBadge({ file, compact = false }: DiskLinkBadgeProps) {state === "unavailable"? {label: t("filesPage.diskLink.unavailable", "Unavailable"),- icon: <CloudOffIcon style={{ fontSize: "0.85rem" }} />,+ icon: <Icon name="cloud-off" size={"0.85rem"} />,tooltip: t(...unavailableHint[file.diskUnavailableReason ?? "unknown"],),@@ -68,7 +66,7 @@ export function DiskLinkBadge({ file, compact = false }: DiskLinkBadgeProps) {: state === "orphaned"? {label: t("filesPage.diskLink.orphaned", "Not on disk"),- icon: <LinkOffIcon style={{ fontSize: "0.85rem" }} />,+ icon: <Icon name="unlink" size={"0.85rem"} />,tooltip: t("filesPage.diskLink.orphanedHint","The original at {{path}} is gone. This copy is only here - saving it will ask for a new location.",@@ -77,7 +75,7 @@ export function DiskLinkBadge({ file, compact = false }: DiskLinkBadgeProps) {}: {label: t("filesPage.diskLink.conflict", "Disk changed"),- icon: <SyncProblemIcon style={{ fontSize: "0.85rem" }} />,+ icon: <Icon name="refresh-cw-off" size={"0.85rem"} />,tooltip: t("filesPage.diskLink.conflictHint","The file on disk changed while you had unsaved edits. Your version is shown - saving will overwrite the one on disk.",diff --git a/frontend/editor/src/core/components/filesPage/FolderMenu.tsx b/frontend/editor/src/core/components/filesPage/FolderMenu.tsxindex 2fbf5d8c5b..75e4eb1159 100644--- a/frontend/editor/src/core/components/filesPage/FolderMenu.tsx+++ b/frontend/editor/src/core/components/filesPage/FolderMenu.tsx@@ -1,13 +1,7 @@import React, { useState } from "react";+import { Icon } from "@app/ui/Icon";import { Menu } from "@mantine/core";import { useTranslation } from "react-i18next";-import DeleteIcon from "@mui/icons-material/Delete";-import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";-import MoreVertIcon from "@mui/icons-material/MoreVert";-import OpenInNewIcon from "@mui/icons-material/OpenInNew";-import PaletteIcon from "@mui/icons-material/Palette";-import SettingsIcon from "@mui/icons-material/Settings";import { FolderRecord } from "@app/types/folder";import { ProcessingFolderState } from "@app/hooks/useProcessingFolders";@@ -94,7 +88,7 @@ export function FolderMenu({onClick={(e) => e.stopPropagation()}aria-label={t("filesPage.folderMenu", "Folder actions")}>- <MoreVertIcon fontSize="small" />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon>) : (<Button@@ -103,8 +97,8 @@ export function FolderMenu({variant="tertiary"shape="pill"className="files-page-toolbar-bulk-trigger"- leftSection={<SettingsIcon sx={{ fontSize: "1.1rem" }} />}- rightSection={<ExpandMoreIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="settings" size={"1.1rem"} />}+ rightSection={<Icon name="chevron-down" size={"1.1rem"} />}aria-label={settingsLabel}>{settingsLabel}@@ -114,7 +108,7 @@ export function FolderMenu({<Menu.Dropdown>{onOpen && (<Menu.Item- leftSection={<OpenInNewIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="external-link" size={"1.1rem"} />}onClick={onOpen}>{t("filesPage.open", "Open")}@@ -124,9 +118,7 @@ export function FolderMenu({<><Menu.Label>{t("filesPage.folder", "Folder")}</Menu.Label><Menu.Item- leftSection={- <DriveFileRenameOutlineIcon sx={{ fontSize: "1.1rem" }} />- }+ leftSection={<Icon name="file-pen" size={"1.1rem"} />}onClick={onRename}disabled={editsDisabled}title={editsDisabled ? editsDisabledHint : undefined}@@ -134,7 +126,7 @@ export function FolderMenu({{t("filesPage.rename", "Rename")}</Menu.Item><Menu.Item- leftSection={<PaletteIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="palette" size={"1.1rem"} />}onClick={() => setAppearanceOpen(true)}disabled={editsDisabled}title={editsDisabled ? editsDisabledHint : undefined}@@ -162,7 +154,7 @@ export function FolderMenu({<Menu.Divider /><Menu.Itemcolor="red"- leftSection={<DeleteIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="trash" size={"1.1rem"} />}onClick={onDelete}disabled={editsDisabled}title={editsDisabled ? editsDisabledHint : undefined}diff --git a/frontend/editor/src/core/components/filesPage/ProcessingMenuItems.tsx b/frontend/editor/src/core/components/filesPage/ProcessingMenuItems.tsxindex ed4d006692..16aae5137d 100644--- a/frontend/editor/src/core/components/filesPage/ProcessingMenuItems.tsx+++ b/frontend/editor/src/core/components/filesPage/ProcessingMenuItems.tsx@@ -1,11 +1,6 @@import { Menu } from "@mantine/core";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";-import AutoModeIcon from "@mui/icons-material/AutoMode";-import HistoryIcon from "@mui/icons-material/History";-import PauseIcon from "@mui/icons-material/Pause";-import PlayArrowIcon from "@mui/icons-material/PlayArrow";-import ReplayIcon from "@mui/icons-material/Replay";-import TuneIcon from "@mui/icons-material/Tune";import { ProcessingFolderState } from "@app/hooks/useProcessingFolders";@@ -49,7 +44,7 @@ export function ProcessingMenuItems({<>{heading}<Menu.Item- leftSection={<AutoModeIcon fontSize="small" />}+ leftSection={<Icon name="workflow" size={20} />}onClick={onStart}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -66,7 +61,7 @@ export function ProcessingMenuItems({<>{heading}<Menu.Item- leftSection={<PlayArrowIcon fontSize="small" />}+ leftSection={<Icon name="play" size={20} />}onClick={onResume}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -75,7 +70,7 @@ export function ProcessingMenuItems({</Menu.Item>{onEdit && (<Menu.Item- leftSection={<TuneIcon fontSize="small" />}+ leftSection={<Icon name="sliders-horizontal" size={20} />}onClick={onEdit}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -85,7 +80,7 @@ export function ProcessingMenuItems({)}{onRevertAll && (<Menu.Item- leftSection={<HistoryIcon fontSize="small" />}+ leftSection={<Icon name="rotate-ccw-clock" size={20} />}onClick={onRevertAll}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -95,7 +90,7 @@ export function ProcessingMenuItems({)}<Menu.Itemcolor="red"- leftSection={<AutoModeIcon fontSize="small" />}+ leftSection={<Icon name="workflow" size={20} />}onClick={onRemove}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -110,23 +105,26 @@ export function ProcessingMenuItems({{heading}{!continuous && (<Menu.Item- leftSection={<ReplayIcon fontSize="small" />}+ leftSection={<Icon name="refresh-cw" size={20} />}onClick={onRun}>{t("filesPage.processing.sweep", "Retry failed files")}</Menu.Item>)}- <Menu.Item leftSection={<PauseIcon fontSize="small" />} onClick={onStop}>+ <Menu.Item leftSection={<Icon name="pause" size={20} />} onClick={onStop}>{t("filesPage.processing.stop", "Pause processing")}</Menu.Item>{onEdit && (- <Menu.Item leftSection={<TuneIcon fontSize="small" />} onClick={onEdit}>+ <Menu.Item+ leftSection={<Icon name="sliders-horizontal" size={20} />}+ onClick={onEdit}+ >{t("filesPage.processing.edit", "Edit processing...")}</Menu.Item>)}{onRevertAll && (<Menu.Item- leftSection={<HistoryIcon fontSize="small" />}+ leftSection={<Icon name="rotate-ccw-clock" size={20} />}onClick={onRevertAll}>{t("filesPage.processing.restoreAll", "Restore all originals")}@@ -136,7 +134,7 @@ export function ProcessingMenuItems({should not require pausing it first. */}<Menu.Itemcolor="red"- leftSection={<AutoModeIcon fontSize="small" />}+ leftSection={<Icon name="workflow" size={20} />}onClick={onRemove}disabled={disabled}title={disabled ? disabledHint : undefined}diff --git a/frontend/editor/src/core/components/shared/CloudStorageIcons.stories.tsx b/frontend/editor/src/core/components/shared/CloudStorageIcons.stories.tsxdeleted file mode 100644index 9d44784233..0000000000--- a/frontend/editor/src/core/components/shared/CloudStorageIcons.stories.tsx+++ /dev/null@@ -1,33 +0,0 @@-import type { Meta, StoryObj } from "@storybook/react-vite";-import {- GoogleDriveIcon,- OneDriveIcon,- DropboxIcon,-} from "@app/components/shared/CloudStorageIcons";--/** Cloud storage brand icons with brand-color / muted current-color variants. */-const meta: Meta<typeof GoogleDriveIcon> = {- title: "Shared/CloudStorageIcons",- component: GoogleDriveIcon,- parameters: { layout: "padded" },-};-export default meta;-type Story = StoryObj<typeof meta>;--export const GoogleDrive: Story = {- args: { colored: true },-};--export const GoogleDriveMuted: Story = {- args: { colored: false },-};--export const OneDrive: Story = {- render: (args) => <OneDriveIcon {...args} />,- args: { colored: true },-};--export const Dropbox: Story = {- render: (args) => <DropboxIcon {...args} />,- args: { colored: true },-};diff --git a/frontend/editor/src/core/components/shared/CloudStorageIcons.tsx b/frontend/editor/src/core/components/shared/CloudStorageIcons.tsxdeleted file mode 100644index 2393a72f74..0000000000--- a/frontend/editor/src/core/components/shared/CloudStorageIcons.tsx+++ /dev/null@@ -1,79 +0,0 @@-import React from "react";--interface CloudIconProps extends React.SVGProps<SVGSVGElement> {- colored?: boolean;-}--/**- * Google Drive icon with brand-color hover support.- * Pass `colored={true}` to render the official tri-color logo;- * omit / pass `colored={false}` for a uniform muted/current-color version.- */-export function GoogleDriveIcon({ colored, ...rest }: CloudIconProps) {- return (- <svg viewBox="0 0 87.3 78" width={18} height={18} {...rest}>- <path- d="M6.6 66.85l3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8H0c0 1.55.4 3.1 1.2 4.5z"- fill={colored ? "#0066DA" : "currentColor"}- opacity={colored ? 1 : 0.5}- />- <path- d="M43.65 25L29.9 1.2c-1.35.8-2.5 1.9-3.3 3.3L1.2 52.35c-.8 1.4-1.2 2.95-1.2 4.5h27.5z"- fill={colored ? "#00AC47" : "currentColor"}- opacity={colored ? 1 : 0.4}- />- <path- d="M73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5H59.85L73.55 76.8z"- fill={colored ? "#EA4335" : "currentColor"}- opacity={colored ? 1 : 0.5}- />- <path- d="M43.65 25L57.4 1.2c-1.35-.8-2.9-1.2-4.5-1.2H34.4c-1.6 0-3.15.45-4.5 1.2z"- fill={colored ? "#00832D" : "currentColor"}- opacity={colored ? 1 : 0.45}- />- <path- d="M59.85 53H27.5l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z"- fill={colored ? "#2684FC" : "currentColor"}- opacity={colored ? 1 : 0.55}- />- <path- d="M73.4 26.5L60.7 4.5c-.8-1.4-1.95-2.5-3.3-3.3L43.65 25l16.2 28h27.45c0-1.55-.4-3.1-1.2-4.5z"- fill={colored ? "#FFBA00" : "currentColor"}- opacity={colored ? 1 : 0.5}- />- </svg>- );-}--/**- * OneDrive icon with brand-color hover support.- * FOR FUTURE USE — OneDrive integration is not yet implemented.- */-export function OneDriveIcon({ colored, ...rest }: CloudIconProps) {- return (- <svg viewBox="0 0 24 24" width={18} height={18} {...rest}>- <path- d="M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"- fill={colored ? "#0078D4" : "currentColor"}- opacity={colored ? 1 : 0.5}- />- </svg>- );-}--/**- * Dropbox icon with brand-color hover support.- * FOR FUTURE USE — Dropbox integration is not yet implemented.- */-export function DropboxIcon({ colored, ...rest }: CloudIconProps) {- return (- <svg viewBox="0 0 16 16" width={18} height={18} {...rest}>- <path- d="M8.01 4.555L4.005 7.11 8.01 9.665 4.005 12.22 0 9.651l4.005-2.555L0 4.555 4.005 2 8.01 4.555zm-4.026 8.487l4.006-2.555 4.005 2.555-4.005 2.555-4.006-2.555zm4.026-3.39l4.005-2.556L8.01 4.555 11.995 2 16 4.555l-4.005 2.555L16 9.665l-4.005 2.555L8.01 9.652z"- fill={colored ? "#0061FF" : "currentColor"}- opacity={colored ? 1 : 0.5}- />- </svg>- );-}diff --git a/frontend/editor/src/core/components/shared/LocalIcon.stories.tsx b/frontend/editor/src/core/components/shared/LocalIcon.stories.tsxdeleted file mode 100644index 5f38ef168b..0000000000--- a/frontend/editor/src/core/components/shared/LocalIcon.stories.tsx+++ /dev/null@@ -1,32 +0,0 @@-import type { Meta, StoryObj } from "@storybook/react-vite";-import LocalIcon from "@app/components/shared/LocalIcon";--const meta: Meta<typeof LocalIcon> = {- title: "Shared/LocalIcon",- component: LocalIcon,- parameters: { layout: "padded" },-};-export default meta;-type Story = StoryObj<typeof meta>;--export const Default: Story = {- args: {- icon: "description",- width: "2rem",- height: "2rem",- },-};--export const NumericSize: Story = {- args: {- icon: "download",- width: 32,- },-};--export const WithFullCollectionPrefix: Story = {- args: {- icon: "material-symbols:error-rounded",- width: "1.5rem",- },-};diff --git a/frontend/editor/src/core/components/shared/LocalIcon.tsx b/frontend/editor/src/core/components/shared/LocalIcon.tsxdeleted file mode 100644index cd278ff95d..0000000000--- a/frontend/editor/src/core/components/shared/LocalIcon.tsx+++ /dev/null@@ -1,71 +0,0 @@-import React from "react";-import { addCollection, Icon } from "@iconify/react";-import iconSet from "../../../assets/material-symbols-icons.json"; // oxlint-disable-line no-restricted-imports -- Outside app paths--// Load icons synchronously at import time - guaranteed to be ready on first render-let iconsLoaded = false;--try {- if (iconSet) {- addCollection(iconSet);- iconsLoaded = true;- const localIconCount = Object.keys(iconSet.icons || {}).length;- console.info(- `✅ Local icons loaded: ${localIconCount} icons (${Math.round(JSON.stringify(iconSet).length / 1024)}KB)`,- );- }-} catch {- console.info("ℹ️ Local icons not available - using CDN fallback");-}--interface LocalIconProps {- icon: string;- width?: string | number;- height?: string | number;- style?: React.CSSProperties;- className?: string;-}--/**- * LocalIcon component that uses our locally bundled Material Symbols icons- * instead of loading from CDN- */-export const LocalIcon: React.FC<LocalIconProps> = ({- icon,- width,- height,- style,- ...props-}) => {- // Convert our icon naming convention to the local collection format- const iconName = icon.startsWith("material-symbols:")- ? icon- : `material-symbols:${icon}`;-- // Development logging (only in dev mode)- if (process.env.NODE_ENV === "development") {- const logKey = `icon-${iconName}`;- if (!sessionStorage.getItem(logKey)) {- const source = iconsLoaded ? "local" : "CDN";- console.debug(`🎯 Icon: ${iconName} (${source})`);- sessionStorage.setItem(logKey, "logged");- }- }-- const iconStyle: React.CSSProperties = { ...style };-- // Use width if provided, otherwise fall back to height- const size = width || height;- if (size && typeof size === "string") {- // If it's a CSS unit string (like '1.5rem'), use it as fontSize- iconStyle.fontSize = size;- } else if (typeof size === "number") {- // If it's a number, treat it as pixels- iconStyle.fontSize = `${size}px`;- }-- // Always render the icon - Iconify will use local if available, CDN if not- return <Icon icon={iconName} style={iconStyle} {...props} />;-};--export default LocalIcon;diff --git a/frontend/editor/src/core/components/shared/tooltip/Tooltip.module.css b/frontend/editor/src/core/components/shared/tooltip/Tooltip.module.cssindex fa4023dc56..0912306010 100644--- a/frontend/editor/src/core/components/shared/tooltip/Tooltip.module.css+++ b/frontend/editor/src/core/components/shared/tooltip/Tooltip.module.css@@ -58,11 +58,6 @@min-height: 1.5rem;}-.tooltip-pin-button .material-symbols-outlined {- font-size: 1rem;- line-height: 1;-}-.tooltip-pin-button:hover {background-color: var(--c-danger) !important;border-color: var(--c-danger) !important;diff --git a/frontend/editor/src/core/icons/IconAudit.css b/frontend/editor/src/core/icons/IconAudit.cssdeleted file mode 100644index a442eed649..0000000000--- a/frontend/editor/src/core/icons/IconAudit.css+++ /dev/null@@ -1,74 +0,0 @@-/* Styles for the migration audit story. Delete with IconAudit.stories.tsx. */--.icon-audit {- padding: 1.5rem 2rem 5rem;- background: var(--c-bg);- color: var(--c-text);- font-size: 0.875rem;-}--.icon-audit__h1 {- margin: 0 0 0.25rem;- font-size: 1.25rem;-}--.icon-audit__h2 {- margin: 2rem 0 0.5rem;- padding-bottom: 0.5rem;- border-bottom: 1px solid var(--c-border);- font-size: 0.9375rem;-}--.icon-audit__count {- margin-left: 0.5rem;- color: var(--c-text-subtle);- font-weight: 400;-}--.icon-audit__note {- max-width: 60ch;- margin: 0 0 1rem;- color: var(--c-text-muted);-}--.icon-audit__table {- width: 100%;- max-width: 46rem;- border-collapse: collapse;-}--.icon-audit__table td {- padding: 0.375rem 0.5rem;- border-bottom: 1px solid var(--c-border-subtle);- vertical-align: middle;-}--.icon-audit__cell {- width: 2.75rem;- line-height: 0;- text-align: center;-}--/* The legacy Material glyphs are filled shapes, not strokes. */-.icon-audit__legacy {- fill: currentColor;-}--.icon-audit__arrow {- width: 1.5rem;- color: var(--c-text-subtle);- text-align: center;-}--.icon-audit__name {- font-family: ui-monospace, monospace;- font-size: 0.75rem;-}--.icon-audit__name--target {- color: var(--c-text-muted);-}--.icon-audit__absent {- color: var(--c-text-subtle);-}diff --git a/frontend/editor/src/core/icons/IconAudit.stories.tsx b/frontend/editor/src/core/icons/IconAudit.stories.tsxdeleted file mode 100644index 17fbd1572a..0000000000--- a/frontend/editor/src/core/icons/IconAudit.stories.tsx+++ /dev/null@@ -1,120 +0,0 @@-import type { Meta, StoryObj } from "@storybook/react-vite";--import { Icon, isIconName } from "@app/ui/Icon";-import { ICONS } from "@app/icons/icons";-import { STROKE_WIDTH } from "@app/icons/icons.config";-import iconMap from "@app/icons/icon-map.json";-import legacyGlyphs from "virtual:legacy-icons";--import "@app/icons/IconAudit.css";--/** Every legacy icon beside its replacement. Delete with its css and icon-map.json once signed off. */-const meta = {- title: "Migration/Icon audit",- parameters: { layout: "fullscreen", a11y: { disable: true } },-} satisfies Meta;-export default meta;--type LegacyEntry = { viewBox: string; body: string };-const legacy = legacyGlyphs;--function LegacyGlyph({ entry }: { entry: LegacyEntry }) {- return (- <svg- className="icon-audit__legacy"- width={24}- height={24}- viewBox={entry.viewBox}- // icon-lint-disable -- upstream glyph read from node_modules for the diff- dangerouslySetInnerHTML={{ __html: entry.body }}- />- );-}--/** A mapping target the app never uses is absent from the bundle by design. */-function Replacement({ target }: { target: string }) {- return isIconName(target) ? (- <Icon name={target} size={24} />- ) : (- <span className="icon-audit__absent" title="not bundled: nothing uses it">- –- </span>- );-}--function Section({- title,- note,- store,- section,-}: {- title: string;- note?: string;- store: Record<string, LegacyEntry>;- section: Record<string, string>;-}) {- const rows = Object.entries(section).filter(([name]) => store[name]);- return (- <section>- <h2 className="icon-audit__h2">- {title} <span className="icon-audit__count">{rows.length}</span>- </h2>- {note && <p className="icon-audit__note">{note}</p>}- <table className="icon-audit__table">- <tbody>- {rows.map(([name, target]) => (- <tr key={name}>- <td className="icon-audit__cell">- <LegacyGlyph entry={store[name]} />- </td>- <td className="icon-audit__arrow">→</td>- <td className="icon-audit__cell">- <Replacement target={target} />- </td>- <td className="icon-audit__name">{name}</td>- <td className="icon-audit__name icon-audit__name--target">- {target}- </td>- </tr>- ))}- </tbody>- </table>- </section>- );-}--export const BeforeAfter: StoryObj = {- render: () => {- const total =- Object.keys(iconMap.mui).length +- Object.keys(iconMap.materialSymbols).length +- Object.keys(iconMap.portal).length +- Object.keys(iconMap.labelIcons).length;- return (- <div className="icon-audit">- <h1 className="icon-audit__h1">Icon consolidation: before / after</h1>- <p className="icon-audit__note">- Left glyph is what the app used before. Right glyph is its- replacement, drawn from Lucide at stroke {STROKE_WIDTH}. {total}{" "}- legacy names map onto {Object.keys(ICONS).length} icons.- </p>- <Section- title="@mui/icons-material → Lucide"- store={legacy.mui}- section={iconMap.mui}- />- <Section- title="Material Symbols → Lucide"- store={legacy.materialSymbols}- section={iconMap.materialSymbols}- />- <Section- title="Classification label palette → Lucide"- note="Icons users pick for classification labels, mirrored in the backend resource."- store={legacy.materialSymbols}- section={iconMap.labelIcons}- />- </div>- );- },-};diff --git a/frontend/editor/src/core/icons/README.md b/frontend/editor/src/core/icons/README.mdindex 47e2ec442f..3297120d60 100644--- a/frontend/editor/src/core/icons/README.md+++ b/frontend/editor/src/core/icons/README.md@@ -39,7 +39,6 @@ The component lives with the other shared primitives, in `core/ui/Icon.tsx` —| `colorless.ts` / `colorless.css` | The `colorless` class, which dims a brand mark for a disabled source. || `svg/stirling/*.svg` | Our own drawings, for glyphs lucide has no equivalent for. || `svg/third-party/*.svg` | Brand marks (S3, Slack, Jira…), which keep their own colours. |-| `icon-map.json` | Temporary: legacy name → lucide name, for the migration audit story only. |`?react` compiles each svg into a component at build time, configured once in `editor/scripts/icons/svgrOptions.mts` so the app, Storybook and the tests transform them the same way. Lucide's own svgs are read from `lucide-static` in `node_modules`, so none of its artwork is checked in.@@ -66,10 +65,10 @@ For a prop that takes *either* a name or your own node, narrow with `isIconName(## Gotchas- **A css `fill` breaks every icon in its scope.** Stroke icons render with `fill="none"`; a stylesheet fill overrides that presentation attribute and renders them solid. Colour them with `color`. icon-lint blocks this.-- **An unknown name never throws.** `<Icon>` draws a dashed-circle placeholder (`MISSING_ICON`) and, in dev, logs the name once; the svg carries `data-missing-icon` so a screenshot or e2e run can spot it. Seeing it means a typo, or a name from data that `icons.ts` does not map. `task frontend:lint:icons` catches Material Symbols names left in any position, and `isIconName` is the guard for names that arrive from data.+- **An unknown name never throws.** `<Icon>` draws a dashed-circle placeholder (`MISSING_ICON`) and, in dev, logs the name once; the svg carries `data-missing-icon` so a screenshot or e2e run can spot it. Seeing it means a typo, or a name from data that `icons.ts` does not map. `task frontend:lint:icons` catches Material Symbols names with a `-rounded`/`-outlined`/`-sharp`/`-twotone` suffix in any position (an unsuffixed one only shows up as the placeholder), and `isIconName` is the guard for names that arrive from data.- **`fontSize` is inert on `<Icon>`.** The most likely regression when porting old code: the icon silently renders at the default size. Use `size`.- **A filled/outline pair is one icon plus `filled`, not two.** MUI shipped `Star` and `StarBorder` as separate glyphs, so a component that rendered both collapsed to one name here. If a legacy diff shows a filled variant, check whether the difference encoded state before treating it as a duplicate.- **`iconMap.ts` keys are persisted.** A saved automation stores `"SettingsIcon"`, so those keys must never be renamed — only their values.- **The classification label palette is mirrored in the backend** (`app/proprietary/src/main/resources/classification/classification-labels.json`) and a drift test enforces icon parity. Change both sides together.- **Brand marks look unreferenced.** They resolve from connector ids the API returns, never from literals; the unused report and the gallery's *In use* view both allow for that.-- **No third-party icon artwork is checked in.** `Migration/Icon audit` gets its "before" glyphs from `virtual:legacy-icons`, served straight out of the icon packages by `editor/scripts/icons/legacyIcons.vite.mts`; never commit another icon set's geometry. The audit and everything it needs go once the mapping is signed off.+- **No third-party icon-set glyphs are checked in.** Lucide's svgs come from `lucide-static` in `node_modules`; never commit another icon set's geometry. Brand marks in `svg/third-party/` are the exception.diff --git a/frontend/editor/src/core/icons/icon-map.json b/frontend/editor/src/core/icons/icon-map.jsondeleted file mode 100644index 4094d1e35a..0000000000--- a/frontend/editor/src/core/icons/icon-map.json+++ /dev/null@@ -1,638 +0,0 @@-{- "$comment": "Legacy icon name -> lucide name. Consumed by generate-icon-registry.mjs and the migration codemod. needsReview lists picks where the legacy vocabulary had no clean lucide equivalent.",- "needsReview": ["materialSymbols:screen-rotation-alt-rounded"],- "mui": {- "Close": "x",- "CloseRounded": "x",- "Delete": "trash",- "DeleteOutlined": "trash",- "DeleteOutlineRounded": "trash",- "DeleteSweep": "trash",- "DeleteSweepRounded": "trash",- "Download": "download",- "DownloadRounded": "download",- "DownloadOutlined": "download",- "FileDownload": "download",- "FileDownloadOutlined": "download",- "FileDownloadRounded": "download",- "OpenInNew": "external-link",- "OpenInNewRounded": "external-link",- "PictureAsPdf": "file-pdf",- "ArrowBack": "arrow-left",- "ArrowBackRounded": "arrow-left",- "ArrowBackIos": "chevron-left",- "KeyboardArrowDown": "chevron-down",- "KeyboardArrowUp": "chevron-up",- "KeyboardArrowRight": "chevron-right",- "CheckCircle": "circle-check",- "CheckCircleOutlined": "circle-check",- "CheckCircleRounded": "circle-check",- "CheckCircleOutlineRounded": "circle-check",- "History": "rotate-ccw-clock",- "HistoryRounded": "rotate-ccw-clock",- "Restore": "rotate-ccw-clock",- "Visibility": "eye",- "VisibilityOutlined": "eye",- "VisibilityOff": "eye-off",- "VisibilityOffOutlined": "eye-off",- "MoreVert": "ellipsis-vertical",- "MoreHoriz": "ellipsis",- "MoreHorizRounded": "ellipsis",- "Settings": "settings",- "CloudUpload": "cloud-upload",- "CloudUploadOutlined": "cloud-upload",- "Check": "check",- "CheckRounded": "check",- "Add": "plus",- "AddRounded": "plus",- "Link": "link",- "LinkRounded": "link",- "UploadFile": "file-up",- "UploadFileOutlined": "file-up",- "CreateNewFolder": "folder-plus",- "InfoOutlined": "info",- "Info": "info",- "InfoRounded": "info",- "Edit": "pencil",- "EditOutlined": "pencil",- "EditNote": "file-pen",- "ShieldOutlined": "shield",- "Search": "search",- "SearchRounded": "search",- "ErrorOutlined": "circle-alert",- "Error": "circle-alert",- "ErrorRounded": "circle-alert",- "ErrorOutlineRounded": "circle-alert",- "ErrorOutlineOutlined": "circle-alert",- "Folder": "folder",- "FolderOutlined": "folder",- "FolderOpen": "folder-open",- "FolderOpenOutlined": "folder-open",- "Cancel": "circle-x",- "Draw": "pen-tool",- "DrawRounded": "pen-tool",- "TextFields": "type",- "ChevronLeft": "chevron-left",- "ChevronRight": "chevron-right",- "ChevronRightRounded": "chevron-right",- "ArrowForwardIos": "chevron-right",- "ExpandMore": "chevron-down",- "ExpandMoreRounded": "chevron-down",- "ExpandLess": "chevron-up",- "WarningAmber": "triangle-alert",- "Warning": "triangle-alert",- "WarningAmberRounded": "triangle-alert",- "WarningRounded": "triangle-alert",- "ContentCut": "scissors",- "RotateLeft": "rotate-ccw",- "RotateRight": "rotate-cw",- "ContentCopy": "copy",- "ContentCopyRounded": "copy",- "FileCopy": "files",- "Compress": "shrink",- "Upload": "upload",- "UploadRounded": "upload",- "Description": "file-text",- "DescriptionOutlined": "file-text",- "Article": "file-text",- "ArticleOutlined": "file-text",- "Storage": "server",- "StorageRounded": "server",- "StorageOutlined": "server",- "PushPin": "pin",- "PushPinOutlined": "pin",- "Cloud": "cloud",- "CloudOutlined": "cloud",- "CloudRounded": "cloud",- "CloudQueueRounded": "cloud",- "DriveFileMove": "folder-input",- "InsertDriveFile": "file",- "InsertDriveFileOutlined": "file",- "Autorenew": "refresh-cw",- "Refresh": "refresh-cw",- "PlayArrow": "play",- "PlayArrowRounded": "play",- "TuneRounded": "sliders-horizontal",- "Tune": "sliders-horizontal",- "Replay": "rotate-ccw",- "RestartAlt": "rotate-ccw",- "BoltRounded": "zap",- "DragIndicator": "grip-vertical",- "CloudDone": "cloud-check",- "ArrowForward": "arrow-right",- "ArrowForwardRounded": "arrow-right",- "Sort": "list-sort-descending",- "SwapVertRounded": "arrow-up-down",- "SwapHoriz": "arrow-left-right",- "FolderSpecial": "folder-bookmark",- "Star": "star",- "StarRounded": "star",- "StarBorderRounded": "star",- "ZoomIn": "zoom-in",- "ZoomOut": "zoom-out",- "HomeRounded": "house",- "Home": "house",- "CleaningServices": "brush-cleaning",- "Crop": "crop",- "Security": "shield-check",- "SecurityRounded": "shield-check",- "VerifiedUserRounded": "shield-check",- "Layers": "layers",- "LayersOutlined": "layers",- "LayersRounded": "layers",- "Code": "code",- "CodeRounded": "code",- "Send": "send",- "SendRounded": "send",- "Lock": "lock",- "LockRounded": "lock",- "LockOutlined": "lock",- "LockOpen": "lock-open",- "HelpOutlineRounded": "circle-question-mark",- "AllInclusiveRounded": "infinity",- "Unarchive": "archive-restore",- "DriveFileRenameOutline": "file-pen",- "GridView": "layout-grid",- "AppsRounded": "layout-grid",- "ViewList": "list",- "List": "list",- "Computer": "monitor",- "Undo": "undo-2",- "UndoRounded": "undo-2",- "Redo": "redo-2",- "LabelOutlined": "tag",- "Share": "share-2",- "GroupAddOutlined": "users-plus",- "GroupAddRounded": "users-plus",- "PersonAdd": "user-plus",- "PersonAddAltRounded": "user-plus",- "AddCircleOutlined": "circle-plus",- "Work": "briefcase",- "Build": "wrench",- "BuildRounded": "wrench",- "BuildOutlined": "wrench",- "BuildCircle": "wrench",- "AutoAwesome": "sparkles",- "SmartToy": "bot",- "SmartToyRounded": "bot",- "Image": "image",- "ArrowUpward": "arrow-up",- "ArrowUpwardRounded": "arrow-up",- "ArrowDownward": "arrow-down",- "ArrowDownwardRounded": "arrow-down",- "FirstPage": "chevron-first",- "LastPage": "chevron-last",- "ViewWeek": "columns-3",- "DarkMode": "moon",- "WbSunny": "sun",- "WbTwilight": "sun",- "Stop": "square",- "PhotoCameraRounded": "camera",- "AddPhotoAlternateRounded": "image-plus",- "Save": "save",- "SaveOutlined": "save",- "TerminalRounded": "terminal",- "VpnKeyRounded": "key",- "MoveToInboxRounded": "import",- "PauseCircleOutlined": "circle-pause",- "CelebrationOutlined": "party-popper",- "TrendingUpOutlined": "trending-up",- "Colorize": "pipette",- "Opacity": "droplet",- "FormatAlignLeft": "text-align-start",- "FormatAlignCenter": "text-align-center",- "FormatAlignRight": "text-align-end",- "LineWeight": "line-weight",- "SelectAll": "select-all",- "Phonelink": "monitor-smartphone",- "QrCode2": "qr-code",- "Group": "users",- "Groups": "users",- "GroupsRounded": "users",- "People": "users",- "DevicesOther": "tablet-smartphone",- "DiamondOutlined": "gem",- "InsertPageBreak": "square-split-vertical",- "AltRouteOutlined": "git-fork",- "ScheduleOutlined": "clock",- "Schedule": "clock",- "ScheduleRounded": "clock",- "Pending": "clock",- "UnfoldMore": "chevrons-up-down",- "SystemUpdateAlt": "square-arrow-down",- "Print": "printer",- "CalendarToday": "calendar",- "ThumbUpRounded": "thumbs-up",- "OpenWith": "move",- "FontDownload": "case-sensitive",- "MergeType": "merge",- "CallSplit": "split",- "ChatBubbleOutlineRounded": "message-square",- "ChatBubbleOutlined": "message-square",- "AddCommentOutlined": "message-square-plus",- "AttachmentRounded": "paperclip",- "BookmarksRounded": "bookmark",- "TableChart": "table",- "DataObject": "braces",- "Html": "file-html",- "Straighten": "ruler",- "VolumeUp": "volume-2",- "RateReviewRounded": "message-square-text",- "ViewAgendaRounded": "rows-3",- "CompareRounded": "columns-2",- "MenuBookRounded": "book-open",- "PostAdd": "file-plus",- "CheckBox": "square-check",- "ArrowDropDownCircle": "circle-chevron-down",- "RadioButtonChecked": "radio-checked",- "RadioButtonUnchecked": "circle",- "DnsRounded": "server",- "HubRounded": "network",- "Inventory2Rounded": "package",- "CastRounded": "cast",- "ScienceOutlined": "flask-conical",- "AccountTreeRounded": "workflow",- "PlayCircleOutlined": "circle-play",- "TaskAlt": "circle-check-big",- "Pause": "pause",- "Public": "globe",- "EmailOutlined": "mail",- "Login": "log-in"- },- "materialSymbols": {- "close-rounded": "x",- "close": "x",- "add": "plus",- "add-rounded": "plus",- "info-rounded": "info",- "info": "info",- "info-outline-rounded": "info",- "edit": "pencil",- "edit-rounded": "pencil",- "edit-outline-rounded": "pencil",- "open-in-new-rounded": "external-link",- "error-rounded": "circle-alert",- "error": "circle-alert",- "error-outline-rounded": "circle-alert",- "warning-rounded": "triangle-alert",- "warning": "triangle-alert",- "delete-outline-rounded": "trash",- "delete": "trash",- "delete-rounded": "trash",- "lock": "lock",- "lock-outline": "lock",- "lock-open": "lock-open",- "lock-open-right-outline-rounded": "lock-open",- "expand-more-rounded": "chevron-down",- "keyboard-arrow-down": "chevron-down",- "keyboard-arrow-up": "chevron-up",- "bookmark-add-rounded": "bookmark-plus",- "chevron-right-rounded": "chevron-right",- "chevron-left-rounded": "chevron-left",- "person-add": "user-plus",- "group-add": "users-plus",- "more-vert": "ellipsis-vertical",- "more-horiz": "ellipsis",- "qr-code-rounded": "qr-code",- "check-circle-outline-rounded": "circle-check",- "check-circle-rounded": "circle-check",- "check-circle": "circle-check",- "check": "check",- "download": "download",- "download-rounded": "download",- "refresh-rounded": "refresh-cw",- "refresh": "refresh-cw",- "sync-alt-rounded": "refresh-cw",- "attachment-rounded": "paperclip",- "comment": "message-square",- "touch-app-rounded": "pointer",- "search": "search",- "search-rounded": "search",- "arrow-forward": "arrow-right",- "arrow-back": "arrow-left",- "person-remove": "user-minus",- "person-off": "user-x",- "person-check": "user-check",- "person-rounded": "user",- "language": "globe",- "dashboard-customize-outline-rounded": "layout-dashboard",- "dashboard-customize-rounded": "layout-dashboard",- "dashboard-outline-rounded": "layout-dashboard",- "build-outline-rounded": "wrench",- "rotate-right-rounded": "rotate-cw",- "rotate-right": "rotate-cw",- "rotate-left": "rotate-ccw",- "zoom-in-map-rounded": "shrink",- "zoom-in": "zoom-in",- "zoom-out": "zoom-out",- "folder-rounded": "folder",- "folder": "folder",- "upload-rounded": "upload",- "upload": "upload",- "upload-file-rounded": "file-up",- "content-copy-rounded": "copy",- "content-copy": "copy",- "pause-circle-rounded": "circle-pause",- "play-arrow-rounded": "play",- "play-circle": "circle-play",- "text-fields-rounded": "type",- "automation-outline": "workflow",- "scanner-outline-rounded": "scan-line",- "crop-free-rounded": "scan",- "key-rounded": "key",- "key": "key",- "save-rounded": "save",- "save": "save",- "backup": "cloud-upload",- "swap-horiz": "arrow-left-right",- "group": "users",- "groups-rounded": "users",- "logout": "log-out",- "logout-rounded": "log-out",- "login": "log-in",- "undo": "undo-2",- "redo": "redo-2",- "description": "file-text",- "article-outline-rounded": "file-text",- "picture-as-pdf-rounded": "file-pdf",- "pin-end": "picture-in-picture",- "gpp-maybe-outline-rounded": "shield-alert",- "select-all": "select-all",- "crop-square-outline": "square",- "crop-rounded": "crop",- "admin-panel-settings-rounded": "shield-user",- "system-update-alt-rounded": "square-arrow-down",- "opacity": "droplet",- "subdirectory-arrow-right-rounded": "corner-down-right",- "content-paste-rounded": "clipboard",- "menu-book-rounded": "book-open",- "menu-book-outline-rounded": "book-open",- "link": "link",- "unfold-more": "chevrons-up-down",- "unfold-less": "chevrons-down-up",- "scan-delete-rounded": "file-x",- "scan-delete-outline-rounded": "file-x",- "find-in-page-rounded": "file-search",- "quick-reference-all-outline-rounded": "file-search",- "pan-tool-rounded": "hand",- "view-list": "list",- "edit-square-outline-rounded": "square-pen",- "edit-document": "file-pen",- "library-add-outline-rounded": "copy-plus",- "workspace-premium-outline-rounded": "award",- "workspace-premium-rounded": "award",- "schedule-outline-rounded": "clock",- "signature-rounded": "signature",- "image-outline-rounded": "image",- "photo-library-outline-rounded": "images",- "password-rounded": "file-lock",- "branding-watermark-outline-rounded": "watermark",- "approval-outline-rounded": "badge-check",- "verified-outline-rounded": "badge-check",- "cleaning-services-outline-rounded": "brush-cleaning",- "layers-clear-outline-rounded": "layers-minus",- "layers-outline-rounded": "layers",- "preview-off-rounded": "eye-off",- "visibility-off-outline-rounded": "eye-off",- "visibility": "eye",- "fact-check-outline-rounded": "clipboard-check",- "assignment-outline-rounded": "clipboard-list",- "toc-rounded": "table-of-contents",- "screen-rotation-alt-rounded": "rotate-cw-square",- "content-cut-rounded": "scissors",- "move-down-rounded": "move-item-down",- "123-rounded": "file-digit",- "looks-one-outline-rounded": "single-page",- "thread-unread-rounded": "annotation-off",- "remove-selection-rounded": "remove-selection",- "remove-moderator-outline-rounded": "shield-off",- "match-word-rounded": "whole-word",- "palette-outline": "palette",- "format-color-fill-rounded": "paint-bucket",- "javascript-rounded": "braces",- "compare-rounded": "columns-2",- "settings-rounded": "settings",- "format-align-left": "text-align-start",- "format-align-center": "text-align-center",- "format-align-right": "text-align-end",- "rocket-launch": "rocket",- "cloud": "cloud",- "database": "database",- "cancel": "circle-x",- "analytics": "chart-column",- "speed": "gauge",- "add-comment-outline-rounded": "message-square-plus",- "smart-toy-rounded": "bot",- "compress": "shrink",- "security": "shield-check",- "star": "star",- "shield-lock": "shield",- "highlight": "highlighter",- "format-underlined": "underline",- "strikethrough-s": "strikethrough",- "show-chart": "polyline",- "radio-button-unchecked": "circle",- "change-history": "triangle",- "text-fields": "type",- "add-photo-alternate": "image-plus",- "add-comment": "message-square-plus",- "find-replace": "replace",- "storage-rounded": "server",- "keyboard-rounded": "keyboard",- "tune-rounded": "sliders-horizontal",- "help-rounded": "circle-question-mark",- "extension-rounded": "puzzle",- "gavel-rounded": "gavel",- "visibility-rounded": "eye",- "star-rounded": "star",- "shield-rounded": "shield",- "link-rounded": "link",- "group-rounded": "users",- "fact-check-rounded": "clipboard-check",- "code-rounded": "code",- "article-rounded": "file-text",- "api-rounded": "api",- "analytics-rounded": "chart-column",- "account-circle": "circle-user",- "check-rounded": "check"- },- "portal": {- "HomeIcon": "house",- "EditorIcon": "file-code",- "SourcesIcon": "plug",- "PipelinesIcon": "workflow",- "DocumentsIcon": "file-text",- "InfrastructureIcon": "server",- "UsageIcon": "chart-column",- "DocsIcon": "book-open",- "SettingsIcon": "settings",- "SearchIcon": "search",- "MenuIcon": "menu",- "SunIcon": "sun",- "MoonIcon": "moon",- "BellIcon": "bell",- "ChevronDownIcon": "chevron-down",- "SparklesIcon": "sparkles",- "CloseIcon": "x",- "SendIcon": "send",- "UsersIcon": "users",- "PoliciesIcon": "shield-check",- "ProcurementIcon": "file-check",- "DownloadIcon": "download",- "LinkIcon": "link",- "LockIcon": "lock",- "UserPlusIcon": "user-plus",- "ExternalLinkIcon": "external-link",- "IntegrationsIcon": "blocks",- "CalendarIcon": "calendar",- "KeyIcon": "key",- "CheckIcon": "check"- },- "labelIcons": {- "account-balance": "landmark",- "account-balance-wallet": "wallet-cards",- "agriculture": "tractor",- "airplane-ticket": "ticket",- "alternate-email": "at-sign",- "analytics": "chart-column",- "apartment": "building",- "api": "api",- "approval": "badge-check",- "architecture": "drafting-compass",- "article": "file-text",- "assignment": "clipboard-list",- "assured-workload": "shield-check",- "attach-money": "dollar-sign",- "auto-stories": "book-open",- "badge": "badge",- "balance": "scale",- "bar-chart": "chart-column",- "bolt": "bolt",- "brush": "brush",- "bug-report": "bug",- "build": "wrench",- "business-center": "briefcase-business",- "calculate": "calculator",- "calendar-month": "calendar",- "call": "phone",- "campaign": "megaphone",- "celebration": "party-popper",- "chat": "message-circle",- "checklist": "list-checks",- "cloud": "cloud",- "code": "code",- "confirmation-number": "ticket",- "construction": "construction",- "contact-page": "contact",- "copyright": "copyright",- "credit-card": "credit-card",- "currency-exchange": "coins",- "database": "database",- "description": "file-text",- "design-services": "pencil-ruler",- "diversity-3": "users",- "draft": "file",- "eco": "leaf",- "edit-document": "file-pen",- "emergency": "siren",- "encrypted": "lock-keyhole",- "engineering": "hard-hat",- "event": "calendar-days",- "fact-check": "clipboard-check",- "factory": "factory",- "flight": "plane",- "folder": "folder",- "folder-open": "folder-open",- "forklift": "forklift",- "format-list-bulleted": "list",- "forum": "messages-square",- "functions": "sigma",- "gavel": "gavel",- "groups": "users",- "handshake": "handshake",- "health-and-safety": "shield-plus",- "history-edu": "book-open-text",- "home": "house",- "home-work": "building-2",- "hotel": "hotel",- "how-to-reg": "user-check",- "image": "image",- "inbox": "inbox",- "insights": "lightbulb",- "inventory-2": "package",- "leaderboard": "trophy",- "library-books": "library",- "local-shipping": "truck",- "location-on": "map-pin",- "lock": "lock",- "luggage": "luggage",- "mail": "mail",- "manage-accounts": "user-cog",- "map": "map",- "medical-information": "clipboard-plus",- "medical-services": "briefcase-medical",- "medication": "pill",- "menu-book": "book-open",- "monitor-heart": "heart-pulse",- "monitoring": "activity",- "movie": "film",- "music-note": "music",- "newspaper": "newspaper",- "note-add": "file-plus",- "package-2": "package-2",- "paid": "circle-dollar-sign",- "palette": "palette",- "pallet": "boxes",- "payments": "banknote",- "pending-actions": "clipboard-clock",- "percent": "percent",- "person": "user",- "photo-camera": "camera",- "pie-chart": "chart-pie",- "point-of-sale": "credit-card",- "policy": "scroll-text",- "precision-manufacturing": "cog",- "price-check": "badge-dollar-sign",- "privacy-tip": "shield-alert",- "psychology": "brain",- "public": "globe",- "query-stats": "chart-line",- "real-estate-agent": "house-plus",- "receipt": "receipt",- "receipt-long": "receipt-text",- "recycling": "recycle",- "redeem": "gift",- "request-quote": "file-text",- "restaurant": "utensils",- "rule": "list-checks",- "savings": "piggy-bank",- "schedule": "clock",- "school": "school",- "science": "flask-conical",- "security": "shield-check",- "sell": "tag",- "send": "send",- "shield": "shield",- "shopping-cart": "shopping-cart",- "slideshow": "presentation",- "stethoscope": "stethoscope",- "sticky-note-2": "sticky-note",- "storefront": "store",- "summarize": "file-text",- "supervisor-account": "users-round",- "table-chart": "table",- "task": "list-todo",- "terminal": "terminal",- "text-snippet": "file-text",- "timeline": "timeline",- "topic": "folder-open",- "trending-up": "trending-up",- "vaccines": "syringe",- "verified": "badge-check",- "videocam": "video",- "volunteer-activism": "heart-handshake",- "wallet": "wallet",- "warehouse": "warehouse",- "work": "briefcase"- }-}diff --git a/frontend/editor/src/core/icons/icons.config.ts b/frontend/editor/src/core/icons/icons.config.tsindex 08b6fca24b..bada2a1247 100644--- a/frontend/editor/src/core/icons/icons.config.ts+++ b/frontend/editor/src/core/icons/icons.config.ts@@ -1,5 +1,5 @@// Changing this re-weights every monochrome icon in the app at once.export const STROKE_WIDTH = 1.75;-// Rendered px when a call site passes no size; 24 is what @mui/icons-material defaulted to.+// Rendered px when a call site passes no size; 24 is the size the legacy icons defaulted to, so migrated call sites kept theirs.export const DEFAULT_SIZE = 24;diff --git a/frontend/editor/src/core/icons/icons.ts b/frontend/editor/src/core/icons/icons.tsindex 514c93ac89..10f5ae9671 100644--- a/frontend/editor/src/core/icons/icons.ts+++ b/frontend/editor/src/core/icons/icons.ts@@ -235,6 +235,7 @@ import ReceiptText from "lucide-static/icons/receipt-text.svg?react";import Recycle from "lucide-static/icons/recycle.svg?react";import Redo2 from "lucide-static/icons/redo-2.svg?react";import RefreshCw from "lucide-static/icons/refresh-cw.svg?react";+import RefreshCwOff from "lucide-static/icons/refresh-cw-off.svg?react";import Replace from "lucide-static/icons/replace.svg?react";import Rocket from "lucide-static/icons/rocket.svg?react";import RotateCcw from "lucide-static/icons/rotate-ccw.svg?react";@@ -640,6 +641,7 @@ export const ICONS = {recycle: { Component: Recycle, kind: "lucide" },"redo-2": { Component: Redo2, kind: "lucide" },"refresh-cw": { Component: RefreshCw, kind: "lucide" },+ "refresh-cw-off": { Component: RefreshCwOff, kind: "lucide" },replace: { Component: Replace, kind: "lucide" },rocket: { Component: Rocket, kind: "lucide" },"rotate-ccw": { Component: RotateCcw, kind: "lucide" },diff --git a/frontend/editor/src/core/icons/legacyIcons.d.ts b/frontend/editor/src/core/icons/legacyIcons.d.tsdeleted file mode 100644index bda18994f4..0000000000--- a/frontend/editor/src/core/icons/legacyIcons.d.ts+++ /dev/null@@ -1,12 +0,0 @@-/** Shape of `virtual:legacy-icons`; delete with IconAudit.stories.tsx. */-declare module "virtual:legacy-icons" {- interface LegacyGlyph {- viewBox: string;- body: string;- }- const glyphs: {- mui: Record<string, LegacyGlyph>;- materialSymbols: Record<string, LegacyGlyph>;- };- export default glyphs;-}diff --git a/frontend/editor/src/desktop/components/onboarding/classificationDemo/ClassificationDemo.stories.tsx b/frontend/editor/src/desktop/components/onboarding/classificationDemo/ClassificationDemo.stories.tsxindex 0c520c03f5..6b3141797e 100644--- a/frontend/editor/src/desktop/components/onboarding/classificationDemo/ClassificationDemo.stories.tsx+++ b/frontend/editor/src/desktop/components/onboarding/classificationDemo/ClassificationDemo.stories.tsx@@ -1,6 +1,6 @@import { useEffect, useRef, useState, type ReactNode } from "react";+import { Icon } from "@app/ui/Icon";import type { Meta, StoryObj } from "@storybook/react-vite";-import CloseRoundedIcon from "@mui/icons-material/CloseRounded";import OnboardingSlideShell, {type ShellButton,} from "@app/components/onboarding/OnboardingSlideShell";@@ -291,7 +291,7 @@ function CloseCorner({ onClick }: { onClick?: () => void }) {onClick={onClick}aria-label="Close">- <CloseRoundedIcon fontSize="small" />+ <Icon name="x" size={20} /></ActionIcon>);}diff --git a/frontend/editor/src/desktop/components/quickNav/ClassificationProgressRing.stories.tsx b/frontend/editor/src/desktop/components/quickNav/ClassificationProgressRing.stories.tsxindex 271867f393..0d90151d9c 100644--- a/frontend/editor/src/desktop/components/quickNav/ClassificationProgressRing.stories.tsx+++ b/frontend/editor/src/desktop/components/quickNav/ClassificationProgressRing.stories.tsx@@ -1,6 +1,6 @@import { useEffect, useState, type ReactNode } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import LocalIcon from "@app/components/shared/LocalIcon";+import { Icon } from "@app/ui/Icon";import { NavSurface } from "@app/ui/NavSurface";import {QuickNavRailBase,@@ -52,43 +52,19 @@ function Rail({ children }: { children: ReactNode }) {<QuickNavRailBasegroups={[[- entry(- "reader",- "Reader",- <LocalIcon- icon="menu-book-outline-rounded"- width={SIZE}- height={SIZE}- />,- ),- entry(- "editor",- "Editor",- <LocalIcon- icon="edit-outline-rounded"- width={SIZE}- height={SIZE}- />,- ),+ entry("reader", "Reader", <Icon name="book-open" size={SIZE} />),+ entry("editor", "Editor", <Icon name="pencil" size={SIZE} />),],[entry("files","File library",- <LocalIcon- icon="folder-outline-rounded"- width={SIZE}- height={SIZE}- />,+ <Icon name="folder" size={SIZE} />,),entry("automate","Automate",- <LocalIcon- icon="rebase-outline-rounded"- width={SIZE}- height={SIZE}- />,+ <Icon name="git-branch" size={SIZE} />,),],]}diff --git a/frontend/editor/src/desktop/components/quickNav/ClassificationProgressRing.tsx b/frontend/editor/src/desktop/components/quickNav/ClassificationProgressRing.tsxindex be6d988862..f4ab2a6bf5 100644--- a/frontend/editor/src/desktop/components/quickNav/ClassificationProgressRing.tsx+++ b/frontend/editor/src/desktop/components/quickNav/ClassificationProgressRing.tsx@@ -2,8 +2,8 @@* proportion to the folder done, the percentage inside, and a tick that takes it away. */import { useEffect, useState } from "react";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";-import CheckRoundedIcon from "@mui/icons-material/CheckRounded";import { Tooltip } from "@app/components/shared/Tooltip";import "@app/components/shared/quickNav/QuickNavRail.css";import styles from "@app/components/quickNav/ClassificationProgressRing.module.css";@@ -115,7 +115,7 @@ export function ClassificationProgressRing({</svg><span className={styles.centre} aria-hidden="true">{done ? (- <CheckRoundedIcon className={styles.tick} />+ <Icon name="check" className={styles.tick} />) : (<span className={styles.percent}>{percent}%</span>)}diff --git a/frontend/editor/src/global.d.ts b/frontend/editor/src/global.d.tsindex 9b577f0c78..ebe0f6ec71 100644--- a/frontend/editor/src/global.d.ts+++ b/frontend/editor/src/global.d.ts@@ -7,17 +7,6 @@declare module "*.js";declare module "*.module.css";-// Auto-generated icon set JSON import-declare module "assets/material-symbols-icons.json" {- const value: {- prefix: string;- icons: Record<string, unknown>;- width?: number;- height?: number;- };- export default value;-}-declare global {interface Window {__STIRLING_PDF_BASE_URL__?: string;diff --git a/frontend/editor/src/portal/components/icons.tsx b/frontend/editor/src/portal/components/icons.tsxdeleted file mode 100644index 9a17c1df86..0000000000--- a/frontend/editor/src/portal/components/icons.tsx+++ /dev/null@@ -1,346 +0,0 @@-import type { ReactNode } from "react";--interface IconProps {- size?: number;- className?: string;-}--function Svg({- size = 18,- className,- children,-}: IconProps & { children: ReactNode }) {- return (- <svg- xmlns="http://www.w3.org/2000/svg"- width={size}- height={size}- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- strokeWidth={1.75}- strokeLinecap="round"- strokeLinejoin="round"- className={className}- >- {children}- </svg>- );-}--export function HomeIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />- <polyline points="9 22 9 12 15 12 15 22" />- </Svg>- );-}--export function EditorIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />- <polyline points="14 2 14 8 20 8" />- <path d="m10 13-2 2 2 2" />- <path d="m14 17 2-2-2-2" />- </Svg>- );-}--export function SourcesIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M9 2v6" />- <path d="M15 2v6" />- <path d="M6 8h12v3a6 6 0 0 1-12 0z" />- <path d="M12 14v8" />- </Svg>- );-}--/**- * A pipeline as a route: two waypoints joined by a winding path. Shared so the sidebar nav and the- * pipelines table's default row icon render the exact same glyph (see pipelineIcon).- */-export const PIPELINE_ROUTE_GLYPH = (- <>- <circle cx="5" cy="19" r="2" />- <circle cx="19" cy="5" r="2" />- <path d="M11 19h5.5a3.5 3.5 0 0 0 0 -7h-8a3.5 3.5 0 0 1 0 -7h4.5" />- </>-);--export function PipelinesIcon(props: IconProps) {- return <Svg {...props}>{PIPELINE_ROUTE_GLYPH}</Svg>;-}--export function DocumentsIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />- <polyline points="14 2 14 8 20 8" />- <line x1="8" y1="13" x2="16" y2="13" />- <line x1="8" y1="17" x2="16" y2="17" />- <line x1="8" y1="9" x2="10" y2="9" />- </Svg>- );-}--/** A checklist, not a warning sign: the tab is a queue to work through, not an alert. */-export function ReviewIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M9 4H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2" />- <rect x="9" y="2" width="6" height="4" rx="1" />- <polyline points="9 13 11 15 15 11" />- </Svg>- );-}--export function InfrastructureIcon(props: IconProps) {- return (- <Svg {...props}>- <rect x="3" y="4" width="18" height="6" rx="1" />- <rect x="3" y="14" width="18" height="6" rx="1" />- <line x1="7" y1="7" x2="7.01" y2="7" />- <line x1="7" y1="17" x2="7.01" y2="17" />- </Svg>- );-}--export function UsageIcon(props: IconProps) {- return (- <Svg {...props}>- <line x1="6" y1="20" x2="6" y2="10" />- <line x1="12" y1="20" x2="12" y2="4" />- <line x1="18" y1="20" x2="18" y2="14" />- <line x1="3" y1="20" x2="21" y2="20" />- </Svg>- );-}--export function DocsIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M2 4.5A2.5 2.5 0 0 1 4.5 2H20v17H4.5A2.5 2.5 0 0 0 2 21.5z" />- <path d="M2 19.5A2.5 2.5 0 0 1 4.5 17H20" />- </Svg>- );-}--export function SettingsIcon(props: IconProps) {- return (- <Svg {...props}>- <circle cx="12" cy="12" r="3" />- <path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" />- </Svg>- );-}--export function SearchIcon(props: IconProps) {- return (- <Svg {...props}>- <circle cx="11" cy="11" r="7" />- <line x1="21" y1="21" x2="16.65" y2="16.65" />- </Svg>- );-}--export function MenuIcon(props: IconProps) {- return (- <Svg {...props}>- <line x1="4" y1="7" x2="20" y2="7" />- <line x1="4" y1="12" x2="20" y2="12" />- <line x1="4" y1="17" x2="20" y2="17" />- </Svg>- );-}--export function SunIcon(props: IconProps) {- return (- <Svg {...props}>- <circle cx="12" cy="12" r="4" />- <line x1="12" y1="2" x2="12" y2="4" />- <line x1="12" y1="20" x2="12" y2="22" />- <line x1="4.93" y1="4.93" x2="6.34" y2="6.34" />- <line x1="17.66" y1="17.66" x2="19.07" y2="19.07" />- <line x1="2" y1="12" x2="4" y2="12" />- <line x1="20" y1="12" x2="22" y2="12" />- <line x1="4.93" y1="19.07" x2="6.34" y2="17.66" />- <line x1="17.66" y1="6.34" x2="19.07" y2="4.93" />- </Svg>- );-}--export function MoonIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />- </Svg>- );-}--export function BellIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" />- <path d="M13.73 21a2 2 0 0 1-3.46 0" />- </Svg>- );-}--export function ChevronDownIcon(props: IconProps) {- return (- <Svg {...props}>- <polyline points="6 9 12 15 18 9" />- </Svg>- );-}--export function SparklesIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z" />- <path d="M19 4v3" />- <path d="M17.5 5.5h3" />- </Svg>- );-}--export function CloseIcon(props: IconProps) {- return (- <Svg {...props}>- <line x1="18" y1="6" x2="6" y2="18" />- <line x1="6" y1="6" x2="18" y2="18" />- </Svg>- );-}--export function SendIcon(props: IconProps) {- return (- <Svg {...props}>- <line x1="22" y1="2" x2="11" y2="13" />- <polygon points="22 2 15 22 11 13 2 9 22 2" />- </Svg>- );-}--export function UsersIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />- <circle cx="9" cy="7" r="4" />- <path d="M22 21v-2a4 4 0 0 0-3-3.87" />- <path d="M16 3.13a4 4 0 0 1 0 7.75" />- </Svg>- );-}--export function PoliciesIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />- <path d="m9 12 2 2 4-4" />- </Svg>- );-}--export function ProcurementIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />- <polyline points="14 2 14 8 20 8" />- <path d="m9 15 2 2 4-4" />- </Svg>- );-}--export function DownloadIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />- <polyline points="7 10 12 15 17 10" />- <line x1="12" y1="15" x2="12" y2="3" />- </Svg>- );-}--export function LinkIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" />- <path d="M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" />- </Svg>- );-}--export function LockIcon(props: IconProps) {- return (- <Svg {...props}>- <rect x="3" y="11" width="18" height="11" rx="2" />- <path d="M7 11V7a5 5 0 0 1 10 0v4" />- </Svg>- );-}--export function UserPlusIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />- <circle cx="9" cy="7" r="4" />- <line x1="19" y1="8" x2="19" y2="14" />- <line x1="22" y1="11" x2="16" y2="11" />- </Svg>- );-}--export function ExternalLinkIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />- <polyline points="15 3 21 3 21 9" />- <line x1="10" y1="14" x2="21" y2="3" />- </Svg>- );-}--export function IntegrationsIcon(props: IconProps) {- return (- <Svg {...props}>- <path d="M9 7V2.5" />- <path d="M15 7V2.5" />- <path d="M6.5 7h11v3.5a5.5 5.5 0 0 1-11 0z" />- <path d="M12 16v2a3 3 0 0 1-3 3H7" />- </Svg>- );-}--export function CalendarIcon(props: IconProps) {- return (- <Svg {...props}>- <rect x="3" y="5" width="18" height="16" rx="2" />- <line x1="8" y1="3" x2="8" y2="7" />- <line x1="16" y1="3" x2="16" y2="7" />- <line x1="3" y1="10" x2="21" y2="10" />- </Svg>- );-}--export function KeyIcon(props: IconProps) {- return (- <Svg {...props}>- <circle cx="8" cy="16" r="5" />- <line x1="11.6" y1="12.4" x2="21" y2="3" />- <line x1="17" y1="7" x2="20" y2="10" />- </Svg>- );-}--export function CheckIcon(props: IconProps) {- return (- <Svg {...props}>- <polyline points="4,12.5 9.5,18 20,6.5" />- </Svg>- );-}diff --git a/frontend/editor/src/proprietary/components/policies/EditorPipelinesPanel.tsx b/frontend/editor/src/proprietary/components/policies/EditorPipelinesPanel.tsxindex 49c625b3f1..6d9c330402 100644--- a/frontend/editor/src/proprietary/components/policies/EditorPipelinesPanel.tsx+++ b/frontend/editor/src/proprietary/components/policies/EditorPipelinesPanel.tsx@@ -1,10 +1,7 @@import { useState } from "react";import { useTranslation } from "react-i18next";import { useNavigate } from "react-router-dom";-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";-import OpenInNewIcon from "@mui/icons-material/OpenInNew";-import InputOutlinedIcon from "@mui/icons-material/InputOutlined";-import OutputOutlinedIcon from "@mui/icons-material/OutputOutlined";+import { Icon } from "@app/ui/Icon";import { usePortalAccess } from "@app/hooks/usePortalAccess";import { useNavigationActions } from "@app/contexts/NavigationContext";import { PORTAL_BASENAME } from "@app/routes/portalBasename";@@ -21,7 +18,7 @@ import "@app/components/policies/EditorPipelinesPanel.css";const PIPELINES_PATH = `${PORTAL_BASENAME}/pipelines`;const ICON_SIZE = "1.05rem";-const TRIGGER_SX = { fontSize: "0.8125rem" } as const;+const TRIGGER_SIZE = "0.8125rem";function rowState(pipeline: EditorPipeline): "running" | "failed" | "idle" {if (pipeline.running) return "running";@@ -53,8 +50,7 @@ function PipelineRow({pipeline.runOn === "export"? t("policies.editorPanel.triggerExport", "Runs on export"): t("policies.editorPanel.triggerImport", "Runs on import");- const TriggerIcon =- pipeline.runOn === "export" ? OutputOutlinedIcon : InputOutlinedIcon;+ const triggerIcon = pipeline.runOn === "export" ? "log-out" : "log-in";const body = (<>@@ -63,10 +59,11 @@ function PipelineRow({</span><span className="editor-pipelines__row-label">{pipeline.label}</span>{onOpen && (- <TriggerIcon+ <Icon+ name={triggerIcon}className="editor-pipelines__row-trigger"- sx={TRIGGER_SX}- titleAccess={trigger}+ size={TRIGGER_SIZE}+ title={trigger}/>)}{pipeline.runsToday > 0 && (@@ -134,12 +131,12 @@ export function EditorPipelinesPanelView({<span className="editor-pipelines__title">{t("policies.editorPanel.title", "PDF Processor")}</span>+ {/* The span carries data-open and the class: <Icon> forwards no data-*+ attributes, and the css rotates on that hook. */}{total > 0 && (- <ExpandMoreIcon- className="editor-pipelines__chevron"- data-open={open}- sx={{ fontSize: "1.1rem" }}- />+ <span className="editor-pipelines__chevron" data-open={open}>+ <Icon name="chevron-down" size={"1.1rem"} />+ </span>)}</button>{onOpenProcessor && (@@ -153,7 +150,7 @@ export function EditorPipelinesPanelView({"Open the PDF Processor",)}>- <OpenInNewIcon sx={{ fontSize: "1rem" }} />+ <Icon name="external-link" size={"1rem"} /></ActionIcon>)}</div>diff --git a/frontend/editor/vite.config.ts b/frontend/editor/vite.config.tsindex 5ce9b25408..d8d7ae89c0 100644--- a/frontend/editor/vite.config.ts+++ b/frontend/editor/vite.config.ts@@ -432,18 +432,10 @@ export default defineConfig(async ({ mode, command }) => {rollupOptions: {output: {manualChunks(id: string) {- if (id.includes("material-symbols-icons.json"))- return "vendor-iconset";if (id.includes("node_modules")) {if (id.includes("pdfjs-dist")) return "vendor-pdfjs";if (id.includes("@embedpdf")) return "vendor-embedpdf";- if (- id.includes("react") ||- id.includes("@mantine") ||- id.includes("@emotion") ||- id.includes("@mui") ||- id.includes("@iconify")- ) {+ if (id.includes("react") || id.includes("@mantine")) {return "vendor-ui";}if (id.includes("@supabase")) return "vendor-supabase";diff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex acd6fbdb37..ca9c6f2933 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -35,14 +35,10 @@"@embedpdf/plugin-tiling": "^2.15.1","@embedpdf/plugin-viewport": "^2.15.1","@embedpdf/plugin-zoom": "^2.15.1",- "@emotion/react": "^11.14.0",- "@emotion/styled": "^11.14.1","@mantine/core": "^8.3.1","@mantine/dates": "^8.3.1","@mantine/dropzone": "^8.3.1","@mantine/hooks": "^8.3.1",- "@mui/icons-material": "^9.4.0",- "@mui/material": "^9.0.0","@posthog/react": "^1.8.2","@reactour/tour": "^3.8.0","@stripe/react-stripe-js": "^6.8.0",@@ -88,9 +84,6 @@"web-vitals": "^5.1.0"},"devDependencies": {- "@iconify-json/material-symbols": "^1.2.89",- "@iconify/react": "^6.0.2",- "@iconify/utils": "^3.1.4","@playwright/test": "^1.55.0","@storybook/addon-a11y": "^9.1.20","@storybook/addon-docs": "^9.1.20",@@ -183,20 +176,6 @@"node": ">=6.0.0"}},- "node_modules/@antfu/install-pkg": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-1.1.0.tgz",- "integrity": "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "package-manager-detector": "^1.3.0",- "tinyexec": "^1.0.1"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- }- },"node_modules/@apidevtools/json-schema-ref-parser": {"version": "11.9.3","resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.9.3.tgz",@@ -265,6 +244,7 @@"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz","integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",+ "dev": true,"license": "MIT","dependencies": {"@babel/helper-validator-identifier": "^7.29.7",@@ -337,6 +317,7 @@"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz","integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==",+ "dev": true,"license": "MIT","dependencies": {"@babel/parser": "^7.29.7",@@ -390,6 +371,7 @@"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz","integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",+ "dev": true,"license": "MIT","engines": {"node": ">=6.9.0"@@ -399,6 +381,7 @@"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz","integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",+ "dev": true,"license": "MIT","dependencies": {"@babel/traverse": "^7.29.7",@@ -496,6 +479,7 @@"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz","integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",+ "dev": true,"license": "MIT","dependencies": {"@babel/code-frame": "^7.29.7",@@ -510,6 +494,7 @@"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz","integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==",+ "dev": true,"license": "MIT","dependencies": {"@babel/code-frame": "^7.29.7",@@ -1325,152 +1310,6 @@"vue": ">=3.2.0"}},- "node_modules/@emotion/babel-plugin": {- "version": "11.13.5",- "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz",- "integrity": "sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==",- "license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.16.7",- "@babel/runtime": "^7.18.3",- "@emotion/hash": "^0.9.2",- "@emotion/memoize": "^0.9.0",- "@emotion/serialize": "^1.3.3",- "babel-plugin-macros": "^3.1.0",- "convert-source-map": "^1.5.0",- "escape-string-regexp": "^4.0.0",- "find-root": "^1.1.0",- "source-map": "^0.5.7",- "stylis": "4.2.0"- }- },- "node_modules/@emotion/cache": {- "version": "11.14.0",- "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.14.0.tgz",- "integrity": "sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA==",- "license": "MIT",- "dependencies": {- "@emotion/memoize": "^0.9.0",- "@emotion/sheet": "^1.4.0",- "@emotion/utils": "^1.4.2",- "@emotion/weak-memoize": "^0.4.0",- "stylis": "4.2.0"- }- },- "node_modules/@emotion/hash": {- "version": "0.9.2",- "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz",- "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==",- "license": "MIT"- },- "node_modules/@emotion/is-prop-valid": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.4.0.tgz",- "integrity": "sha512-QgD4fyscGcbbKwJmqNvUMSE02OsHUa+lAWKdEUIJKgqe5IwRSKd7+KhibEWdaKwgjLj0DRSHA9biAIqGBk05lw==",- "license": "MIT",- "dependencies": {- "@emotion/memoize": "^0.9.0"- }- },- "node_modules/@emotion/memoize": {- "version": "0.9.0",- "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz",- "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==",- "license": "MIT"- },- "node_modules/@emotion/react": {- "version": "11.14.0",- "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.14.0.tgz",- "integrity": "sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.3",- "@emotion/babel-plugin": "^11.13.5",- "@emotion/cache": "^11.14.0",- "@emotion/serialize": "^1.3.3",- "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",- "@emotion/utils": "^1.4.2",- "@emotion/weak-memoize": "^0.4.0",- "hoist-non-react-statics": "^3.3.1"- },- "peerDependencies": {- "react": ">=16.8.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@emotion/serialize": {- "version": "1.3.3",- "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.3.3.tgz",- "integrity": "sha512-EISGqt7sSNWHGI76hC7x1CksiXPahbxEOrC5RjmFRJTqLyEK9/9hZvBbiYn70dw4wuwMKiEMCUlR6ZXTSWQqxA==",- "license": "MIT",- "dependencies": {- "@emotion/hash": "^0.9.2",- "@emotion/memoize": "^0.9.0",- "@emotion/unitless": "^0.10.0",- "@emotion/utils": "^1.4.2",- "csstype": "^3.0.2"- }- },- "node_modules/@emotion/sheet": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.4.0.tgz",- "integrity": "sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==",- "license": "MIT"- },- "node_modules/@emotion/styled": {- "version": "11.14.1",- "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.14.1.tgz",- "integrity": "sha512-qEEJt42DuToa3gurlH4Qqc1kVpNq8wO8cJtDzU46TjlzWjDlsVyevtYCRijVq3SrHsROS+gVQ8Fnea108GnKzw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.3",- "@emotion/babel-plugin": "^11.13.5",- "@emotion/is-prop-valid": "^1.3.0",- "@emotion/serialize": "^1.3.3",- "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",- "@emotion/utils": "^1.4.2"- },- "peerDependencies": {- "@emotion/react": "^11.0.0-rc.0",- "react": ">=16.8.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@emotion/unitless": {- "version": "0.10.0",- "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.10.0.tgz",- "integrity": "sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==",- "license": "MIT"- },- "node_modules/@emotion/use-insertion-effect-with-fallbacks": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.2.0.tgz",- "integrity": "sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==",- "license": "MIT",- "peerDependencies": {- "react": ">=16.8.0"- }- },- "node_modules/@emotion/utils": {- "version": "1.4.2",- "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.4.2.tgz",- "integrity": "sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==",- "license": "MIT"- },- "node_modules/@emotion/weak-memoize": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz",- "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==",- "license": "MIT"- },"node_modules/@esbuild/aix-ppc64": {"version": "0.28.1","resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz",@@ -1984,51 +1823,6 @@"integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==","license": "MIT"},- "node_modules/@iconify-json/material-symbols": {- "version": "1.2.89",- "resolved": "https://registry.npmjs.org/@iconify-json/material-symbols/-/material-symbols-1.2.89.tgz",- "integrity": "sha512-wYJjKAOptNhc8Bq65PPJVEz/4Ozm+b3ZWEB3H65yGw37dr9AvXibW0GkEdVD7qrCtbD6aC6fY7SLmQCuUGtEAQ==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@iconify/types": "*"- }- },- "node_modules/@iconify/react": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/@iconify/react/-/react-6.0.2.tgz",- "integrity": "sha512-SMmC2sactfpJD427WJEDN6PMyznTFMhByK9yLW0gOTtnjzzbsi/Ke/XqsumsavFPwNiXs8jSiYeZTmLCLwO+Fg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@iconify/types": "^2.0.0"- },- "funding": {- "url": "https://github.com/sponsors/cyberalien"- },- "peerDependencies": {- "react": ">=16"- }- },- "node_modules/@iconify/types": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz",- "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==",- "dev": true,- "license": "MIT"- },- "node_modules/@iconify/utils": {- "version": "3.1.4",- "resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-3.1.4.tgz",- "integrity": "sha512-b1S7B1k9ohZ+iNTi2ATxbRYG9fTrJmUT0rc46bvVnNxqNRGW7dyo/vRREwyniI5IRN2RSJHDcm+s3BjWrSAjHw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@antfu/install-pkg": "^1.1.0",- "@iconify/types": "^2.0.0",- "import-meta-resolve": "^4.2.0"- }- },"node_modules/@inquirer/ansi": {"version": "2.0.5","resolved": "https://registry.npmjs.org/@inquirer/ansi/-/ansi-2.0.5.tgz",@@ -2362,239 +2156,6 @@"dev": true,"license": "MIT"},- "node_modules/@mui/core-downloads-tracker": {- "version": "9.4.0",- "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-9.4.0.tgz",- "integrity": "sha512-d+gIYM1raJP87yrVQcVg+Q3vycVMArMkgu/TjJLi2vTvO9FHKWNRR1xs9nnN4eLpM9nGxxm02UMvc9BrmcUKvQ==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- }- },- "node_modules/@mui/icons-material": {- "version": "9.4.0",- "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-9.4.0.tgz",- "integrity": "sha512-5PVgBYtLOXTk6u0YUAjoV9GoTUQDbeZ8g+pus2h0GphLT/rpmftRnB5D/Kw6QCAovB7EyBX7UxKdZqPBBAHUKw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.29.7"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@mui/material": "^9.4.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/material": {- "version": "9.4.0",- "resolved": "https://registry.npmjs.org/@mui/material/-/material-9.4.0.tgz",- "integrity": "sha512-6KKUIvkQ2r/s48s9VZV9JEZ1W2dRa7RndVsF+Ipx4CYxDOQeozeRsS5r9NiheFf8A5hpbqJJIGoX7hjg5X4XUw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.29.7",- "@mui/core-downloads-tracker": "^9.4.0",- "@mui/system": "^9.4.0",- "@mui/types": "^9.4.0",- "@mui/utils": "^9.4.0",- "@popperjs/core": "^2.11.8",- "@types/react-transition-group": "^4.4.12",- "clsx": "^2.1.1",- "csstype": "^3.2.3",- "prop-types": "^15.8.1",- "react-is": "^19.2.8",- "react-transition-group": "^4.4.5"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.5.0",- "@emotion/styled": "^11.3.0",- "@mui/material-pigment-css": "^9.4.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- },- "@mui/material-pigment-css": {- "optional": true- },- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/private-theming": {- "version": "9.4.0",- "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-9.4.0.tgz",- "integrity": "sha512-qQpX/2XPGDz5F2OIWzo4kkorURlDeXGKytRQudXCdLS5TuwKsMKaZyx77LZEVSB73c7o3UrLWwQ/goRuHBdtjw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.29.7",- "@mui/utils": "^9.4.0",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/styled-engine": {- "version": "9.4.0",- "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-9.4.0.tgz",- "integrity": "sha512-SlqVEYqnyEgXMFW4JuIDMelyhKzoWBJ85v2mNCQd0XtU0uk7U9E1zaJZ06XqodhA8oJrb+4Q+3E/JlwBe4jWkw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.29.7",- "@emotion/cache": "^11.14.0",- "@emotion/serialize": "^1.3.3",- "@emotion/sheet": "^1.4.0",- "csstype": "^3.2.3",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.4.1",- "@emotion/styled": "^11.3.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- }- }- },- "node_modules/@mui/system": {- "version": "9.4.0",- "resolved": "https://registry.npmjs.org/@mui/system/-/system-9.4.0.tgz",- "integrity": "sha512-AZz9z13oGS1J0BYeAFHTbV7PegCtPiE/uMEIi7TJ1kTx3Vkt+jUpLyXF/2uV8B6Y79iTh98kVeOH9fX3x3zXXg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.29.7",- "@mui/private-theming": "^9.4.0",- "@mui/styled-engine": "^9.4.0",- "@mui/types": "^9.4.0",- "@mui/utils": "^9.4.0",- "clsx": "^2.1.1",- "csstype": "^3.2.3",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.5.0",- "@emotion/styled": "^11.3.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- },- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/types": {- "version": "9.4.0",- "resolved": "https://registry.npmjs.org/@mui/types/-/types-9.4.0.tgz",- "integrity": "sha512-13DH0Oniua4WmGqeYbQAZqmiN7r4nfd0zwIoGJ5QeJwyIHgEmf+LkRw/jV1HZb6AiUoHX8Oxf4xgalq3vYHcIw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.29.7"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/utils": {- "version": "9.4.0",- "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-9.4.0.tgz",- "integrity": "sha512-WkzY8uYtqUDyGKPShrRQRBomfMQHddlsyKu/gRRESYO24tDPD2z0xRE8CBoUsWqpBa+YrFs9KixiS7kQRjsPAQ==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.29.7",- "@mui/types": "^9.4.0",- "@types/prop-types": "^15.7.15",- "clsx": "^2.1.1",- "prop-types": "^15.8.1",- "react-is": "^19.2.8"- },- "engines": {- "node": ">=14.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },"node_modules/@napi-rs/canvas": {"version": "0.1.97","resolved": "https://registry.npmjs.org/@napi-rs/canvas/-/canvas-0.1.97.tgz",@@ -3690,16 +3251,6 @@"dev": true,"license": "MIT"},- "node_modules/@popperjs/core": {- "version": "2.11.8",- "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",- "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/popperjs"- }- },"node_modules/@posthog/core": {"version": "1.44.0","resolved": "https://registry.npmjs.org/@posthog/core/-/core-1.44.0.tgz",@@ -6546,18 +6097,6 @@"undici-types": "~7.16.0"}},- "node_modules/@types/parse-json": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",- "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==",- "license": "MIT"- },- "node_modules/@types/prop-types": {- "version": "15.7.15",- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",- "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",- "license": "MIT"- },"node_modules/@types/react": {"version": "19.3.0","resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",@@ -6577,15 +6116,6 @@"@types/react": "^19.3.0"}},- "node_modules/@types/react-transition-group": {- "version": "4.4.12",- "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.12.tgz",- "integrity": "sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==",- "license": "MIT",- "peerDependencies": {- "@types/react": "*"- }- },"node_modules/@types/resolve": {"version": "1.20.6","resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.6.tgz",@@ -7785,21 +7315,6 @@}}},- "node_modules/babel-plugin-macros": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz",- "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.12.5",- "cosmiconfig": "^7.0.0",- "resolve": "^1.19.0"- },- "engines": {- "node": ">=10",- "npm": ">=6"- }- },"node_modules/bail": {"version": "2.0.2","resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",@@ -8199,6 +7714,7 @@"version": "3.1.0","resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz","integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",+ "dev": true,"license": "MIT","engines": {"node": ">=6"@@ -8567,12 +8083,6 @@"dev": true,"license": "MIT"},- "node_modules/convert-source-map": {- "version": "1.9.0",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",- "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==",- "license": "MIT"- },"node_modules/cookie": {"version": "1.1.1","resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",@@ -8603,31 +8113,6 @@"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==","license": "MIT"},- "node_modules/cosmiconfig": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",- "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",- "license": "MIT",- "dependencies": {- "@types/parse-json": "^4.0.0",- "import-fresh": "^3.2.1",- "parse-json": "^5.0.0",- "path-type": "^4.0.0",- "yaml": "^1.10.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/cosmiconfig/node_modules/yaml": {- "version": "1.10.3",- "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.3.tgz",- "integrity": "sha512-vIYeF1u3CjlhAFekPPAk2h/Kv4T3mAkMox5OymRiJQB0spDP10LHvt+K7G9Ny6NuuMAb25/6n1qyUjAcGNf/AA==",- "license": "ISC",- "engines": {- "node": ">= 6"- }- },"node_modules/cross-spawn": {"version": "7.0.6","resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",@@ -9413,16 +8898,6 @@"dev": true,"license": "MIT"},- "node_modules/dom-helpers": {- "version": "5.2.1",- "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",- "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.8.7",- "csstype": "^3.0.2"- }- },"node_modules/dompurify": {"version": "3.4.13","resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.13.tgz",@@ -9549,6 +9024,7 @@"version": "1.3.4","resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz","integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",+ "dev": true,"license": "MIT","dependencies": {"is-arrayish": "^0.2.1"@@ -9680,18 +9156,6 @@"node": ">=6"}},- "node_modules/escape-string-regexp": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/escodegen": {"version": "2.1.0","resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",@@ -10032,12 +9496,6 @@"node": ">=8"}},- "node_modules/find-root": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",- "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==",- "license": "MIT"- },"node_modules/find-up-simple": {"version": "1.0.1","resolved": "https://registry.npmjs.org/find-up-simple/-/find-up-simple-1.0.1.tgz",@@ -10618,21 +10076,6 @@"dev": true,"license": "MIT"},- "node_modules/hoist-non-react-statics": {- "version": "3.3.2",- "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",- "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",- "license": "BSD-3-Clause",- "dependencies": {- "react-is": "^16.7.0"- }- },- "node_modules/hoist-non-react-statics/node_modules/react-is": {- "version": "16.13.1",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",- "license": "MIT"- },"node_modules/hookified": {"version": "1.15.1","resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz",@@ -10850,6 +10293,7 @@"version": "3.3.1","resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz","integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",+ "dev": true,"license": "MIT","dependencies": {"parent-module": "^1.0.0",@@ -10963,6 +10407,7 @@"version": "0.2.1","resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz","integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",+ "dev": true,"license": "MIT"},"node_modules/is-binary-path": {@@ -10982,6 +10427,7 @@"version": "2.16.1","resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz","integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",+ "dev": true,"license": "MIT","dependencies": {"hasown": "^2.0.2"@@ -11346,6 +10792,7 @@"version": "3.1.0","resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz","integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,"license": "MIT","bin": {"jsesc": "bin/jsesc"@@ -11358,6 +10805,7 @@"version": "2.3.1","resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz","integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",+ "dev": true,"license": "MIT"},"node_modules/json-schema-to-typescript": {@@ -11871,6 +11319,7 @@"version": "1.2.4","resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz","integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",+ "dev": true,"license": "MIT"},"node_modules/locate-character": {@@ -13523,13 +12972,6 @@"dev": true,"license": "BlueOak-1.0.0"},- "node_modules/package-manager-detector": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.6.0.tgz",- "integrity": "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==",- "dev": true,- "license": "MIT"- },"node_modules/pako": {"version": "2.2.0","resolved": "https://registry.npmjs.org/pako/-/pako-2.2.0.tgz",@@ -13550,6 +12992,7 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz","integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",+ "dev": true,"license": "MIT","dependencies": {"callsites": "^3.0.0"@@ -13587,6 +13030,7 @@"version": "5.2.0","resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz","integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",+ "dev": true,"license": "MIT","dependencies": {"@babel/code-frame": "^7.0.0",@@ -13638,6 +13082,7 @@"version": "1.0.7","resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz","integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "dev": true,"license": "MIT"},"node_modules/path-scurry": {@@ -13675,6 +13120,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz","integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",+ "dev": true,"license": "MIT","engines": {"node": ">=8"@@ -14652,7 +14098,8 @@"version": "19.2.8","resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.8.tgz","integrity": "sha512-s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==",- "license": "MIT"+ "license": "MIT",+ "peer": true},"node_modules/react-markdown": {"version": "9.1.0",@@ -14859,22 +14306,6 @@"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},- "node_modules/react-transition-group": {- "version": "4.4.5",- "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",- "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",- "license": "BSD-3-Clause",- "dependencies": {- "@babel/runtime": "^7.5.5",- "dom-helpers": "^5.0.1",- "loose-envify": "^1.4.0",- "prop-types": "^15.6.2"- },- "peerDependencies": {- "react": ">=16.6.0",- "react-dom": ">=16.6.0"- }- },"node_modules/read-cache": {"version": "1.0.0","resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",@@ -15230,6 +14661,7 @@"version": "1.22.11","resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz","integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",+ "dev": true,"license": "MIT","dependencies": {"is-core-module": "^2.16.1",@@ -15256,6 +14688,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz","integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",+ "dev": true,"license": "MIT","engines": {"node": ">=4"@@ -15805,15 +15238,6 @@"node": ">= 14"}},- "node_modules/source-map": {- "version": "0.5.7",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",- "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },"node_modules/source-map-js": {"version": "1.2.1","resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",@@ -16777,12 +16201,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/stylis": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz",- "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==",- "license": "MIT"- },"node_modules/sugarss": {"version": "5.0.1","resolved": "https://registry.npmjs.org/sugarss/-/sugarss-5.0.1.tgz",@@ -16866,6 +16284,7 @@"version": "1.0.0","resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz","integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -17240,16 +16659,6 @@"dev": true,"license": "MIT"},- "node_modules/tinyexec": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.4.tgz",- "integrity": "sha512-u9r3uZC0bdpGOXtlxUIdwf9pkmvhqJdrVCH9fapQtgy/OeTTMZ1nqH7agtvEfmGui6e1XxjcdrlxvxJvc3sMqw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- }- },"node_modules/tinyglobby": {"version": "0.2.15","resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",diff --git a/frontend/package.json b/frontend/package.jsonindex d396dffcb6..7b22c32895 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -32,14 +32,10 @@"@embedpdf/plugin-tiling": "^2.15.1","@embedpdf/plugin-viewport": "^2.15.1","@embedpdf/plugin-zoom": "^2.15.1",- "@emotion/react": "^11.14.0",- "@emotion/styled": "^11.14.1","@mantine/core": "^8.3.1","@mantine/dates": "^8.3.1","@mantine/dropzone": "^8.3.1","@mantine/hooks": "^8.3.1",- "@mui/icons-material": "^9.4.0",- "@mui/material": "^9.0.0","@posthog/react": "^1.8.2","@reactour/tour": "^3.8.0","@stripe/react-stripe-js": "^6.8.0",@@ -95,7 +91,7 @@"tauri:serve-dev-update": "bash scripts/dev-update-test/serve-update.sh","tauri:test-update-e2e": "bash scripts/dev-update-test/test-update-e2e.sh","tauri:test-update-e2e:install": "bash scripts/dev-update-test/test-update-e2e.sh --install",- "tauri:dev-with-update": "cd editor && npx tsx scripts/setup-env.mts --desktop && node scripts/generate-icons.js && npx tauri dev --config src-tauri/tauri.conf.dev-update.json"+ "tauri:dev-with-update": "cd editor && npx tsx scripts/setup-env.mts --desktop && npx tauri dev --config src-tauri/tauri.conf.dev-update.json"},"browserslist": {"production": [@@ -110,9 +106,6 @@]},"devDependencies": {- "@iconify-json/material-symbols": "^1.2.89",- "@iconify/react": "^6.0.2",- "@iconify/utils": "^3.1.4","@playwright/test": "^1.55.0","@storybook/addon-a11y": "^9.1.20","@storybook/addon-docs": "^9.1.20",@@ -166,7 +159,6 @@},"depcheck": {"ignoreMatches": [- "@emotion/*","tailwindcss","@testing-library/user-event","@vitest/coverage-v8"diff --git a/frontend/scripts/dev-update-test/build-dev-update.sh b/frontend/scripts/dev-update-test/build-dev-update.shindex 62245eb1d3..2b3a630973 100644--- a/frontend/scripts/dev-update-test/build-dev-update.sh+++ b/frontend/scripts/dev-update-test/build-dev-update.sh@@ -50,7 +50,7 @@ echo ""cd "$FRONTEND_DIR/editor"# Prepare desktop env/assets before building-npx tsx scripts/setup-env.mts --desktop && node scripts/generate-icons.js+npx tsx scripts/setup-env.mts --desktop# Build the Windows installer provisioner + thumbnail-handler (no-op on macOS/Linux).# The WiX fragment references these binaries, so light.exe fails to bind without them.node scripts/build-provisioner.mjsdiff --git a/frontend/scripts/dev-update-test/test-update-e2e.sh b/frontend/scripts/dev-update-test/test-update-e2e.shindex 4ad884fe8b..50e2100fb3 100644--- a/frontend/scripts/dev-update-test/test-update-e2e.sh+++ b/frontend/scripts/dev-update-test/test-update-e2e.sh@@ -152,10 +152,8 @@ if [ "$SKIP_BUILD" = false ] || [ -z "$BUNDLE_FILE" ]; thencd "$FRONTEND_DIR/editor"# Mirror tauri:dev-with-update's prebuild: setup-env writes .env.local +- # .env.desktop.local, generate-icons emits src/assets/material-symbols-icons.json- # which LocalIcon.tsx imports. Without these, vite build fails to resolve the icons file.+ # .env.desktop.local.npx tsx scripts/setup-env.mts --desktop- node scripts/generate-icons.js# Build the Windows installer provisioner + thumbnail-handler (no-op on macOS/Linux).# The WiX fragment references these binaries, so light.exe fails to bind without them.node scripts/build-provisioner.mjs