Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore: reduce dependency load for new contributors (#2131)
Elijah Potterb033b9bf6d5d
diff --git a/.github/workflows/chrome_plugin.yml b/.github/workflows/chrome_plugin.ymlindex 410b6e797..20b72e7fb 100644--- a/.github/workflows/chrome_plugin.yml+++ b/.github/workflows/chrome_plugin.yml@@ -22,8 +22,6 @@ jobs:node-version-file: ".node-version"- name: Enable Corepackrun: corepack enable- - name: Install `pandoc`- run: sudo apt-get update && sudo apt-get install pandoc -y- uses: cargo-bins/cargo-binstall@main- name: Install `wasm-pack`run: cargo binstall wasm-pack --force --no-confirmdiff --git a/.github/workflows/just_checks.yml b/.github/workflows/just_checks.ymlindex 5038d7684..d31a6c7c9 100644--- a/.github/workflows/just_checks.yml+++ b/.github/workflows/just_checks.yml@@ -43,8 +43,6 @@ jobs:package-manager-cache: false- name: Enable Corepackrun: corepack enable- - name: Install `pandoc`- run: sudo apt-get update && sudo apt-get install pandoc -y- name: Rust Cacheuses: Swatinem/[email protected]- uses: cargo-bins/cargo-binstall@maindiff --git a/.github/workflows/wp_plugin.yml b/.github/workflows/wp_plugin.ymlindex db782e6ef..63f481e87 100644--- a/.github/workflows/wp_plugin.yml+++ b/.github/workflows/wp_plugin.yml@@ -22,8 +22,6 @@ jobs:node-version-file: ".node-version"- name: Enable Corepackrun: corepack enable- - name: Install pandoc- run: sudo apt-get update && sudo apt-get install pandoc -y- uses: cargo-bins/cargo-binstall@main- name: Install wasm-packrun: cargo binstall wasm-pack --force --no-confirmdiff --git a/Dockerfile b/Dockerfileindex 68404f723..5209f2afa 100644--- a/Dockerfile+++ b/Dockerfile@@ -18,7 +18,7 @@ RUN wasm-pack build --target webFROM node:${NODE_VERSION} AS node-build-RUN apt-get update && apt-get install git pandoc parallel -y+RUN apt-get update && apt-get install git parallel -yRUN corepack enableRUN mkdir -p /usr/build/diff --git a/biome.json b/biome.jsonindex c4d6ec001..07102f9ac 100644--- a/biome.json+++ b/biome.json@@ -1,5 +1,5 @@{- "$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",+ "$schema": "https://biomejs.dev/schemas/2.3.3/schema.json","vcs": {"enabled": true,"clientKind": "git",@@ -30,6 +30,11 @@"!**/yarn.lock"]},+ "css": {+ "parser": {+ "tailwindDirectives": true+ }+ },"formatter": {"enabled": true,"lineWidth": 100,@@ -94,6 +99,9 @@"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],"linter": {"rules": {+ "correctness": {+ "noUnusedImports": "off"+ },"style": {"useConst": "off","useImportType": "off"diff --git a/flake.nix b/flake.nixindex 00eedf698..6ea9e01e5 100644--- a/flake.nix+++ b/flake.nix@@ -29,7 +29,6 @@nodejswasm-packzip- pandocwasm-bindgen-cli_0_2_100];diff --git a/justfile b/justfileindex d727de47f..c9e642a38 100644--- a/justfile+++ b/justfile@@ -177,7 +177,8 @@ test-vscode:mkdir "$bin_dir"fi- cargo build --release+ echo Building binaries+ cargo build --release -qcp "{{justfile_directory()}}/target/release/harper-ls"* "$bin_dir"@@ -203,7 +204,8 @@ package-vscode target="":cp LICENSE "$ext_dir"if [[ -z "{{target}}" ]]; then- cargo build --release+ echo Building binaries+ cargo build --release -qif ! [[ -d "$bin_dir" ]]; thenmkdir "$bin_dir"@@ -285,7 +287,8 @@ precommit: check test build-harperjs build-obsidian build-web build-wp build-fir#!/usr/bin/env bashset -eo pipefail- cargo build --all-targets+ echo Building binaries+ cargo build --all-targets -q# Install `harper-cli` and `harper-ls` to your machine via `cargo`install:@@ -303,7 +306,8 @@ dogfood:donetest-rust:- cargo test+ echo Running all Rust tests+ cargo test -q# Test everything.test: test-rust test-harperjs test-vscode test-obsidian test-chrome-plugin test-firefox-plugindiff --git a/package.json b/package.jsonindex 441cab8f4..0805f5c5f 100644--- a/package.json+++ b/package.json@@ -11,7 +11,7 @@},"devDependencies": {"@babel/runtime": "catalog:",- "@biomejs/biome": "2.0.6",+ "@biomejs/biome": "2.3.3","check-dependency-version-consistency": "^5.0.0","typescript": "catalog:"},diff --git a/packages/chrome-plugin/package.json b/packages/chrome-plugin/package.jsonindex 1dfb7b2b8..6d48a26ba 100644--- a/packages/chrome-plugin/package.json+++ b/packages/chrome-plugin/package.json@@ -17,12 +17,12 @@},"scripts": {"dev": "vite",- "build": "vite build",+ "build": "vite build -l warn","preview": "vite preview","fmt": "prettier --write '**/*.{svelte,ts,json,css,scss,md}'","zip-for-chrome": "TARGET_BROWSER=chrome npm run build && node src/zip.js harper-chrome-plugin.zip","zip-for-firefox": "TARGET_BROWSER=firefox npm run build && node src/zip.js harper-firefox-plugin.zip",- "test": "playwright test --headed"+ "test": "playwright test --headed --reporter=dot --quiet"},"devDependencies": {"@crxjs/vite-plugin": "^2.0.0-beta.26",@@ -44,17 +44,17 @@"svelte-preprocess": "^6.0.0","tslib": "^2.6.2","typescript": "^5.5.0",- "vite": "^5.4.10"+ "vite": "^5.4.10",+ "@tailwindcss/vite": "^4.1.4",+ "tailwindcss": "^4.1.4"},"dependencies": {"@fortawesome/free-solid-svg-icons": "^7.1.0",- "@tailwindcss/vite": "^4.1.4","@webcomponents/custom-elements": "^1.6.0","harper.js": "workspace:*","lint-framework": "workspace:*","lodash-es": "^4.17.21","lru-cache": "^11.1.0",- "svelte-fa": "^4.0.4",- "tailwindcss": "^4.1.4"+ "svelte-fa": "^4.0.4"}}diff --git a/packages/chrome-plugin/src/background/index.ts b/packages/chrome-plugin/src/background/index.tsindex 8779dd476..3a3c764de 100644--- a/packages/chrome-plugin/src/background/index.ts+++ b/packages/chrome-plugin/src/background/index.ts@@ -43,7 +43,7 @@ chrome.runtime.onInstalled.addListener((details) => {}});-chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {+chrome.runtime.onMessage.addListener((request, _sender, sendResponse) => {handleRequest(request).then(sendResponse);return true;@@ -172,7 +172,7 @@ async function handleLint(req: LintRequest): Promise<LintResponse> {return { kind: 'lints', lints: unpackedBySource };}-async function handleGetConfig(req: GetConfigRequest): Promise<GetConfigResponse> {+async function handleGetConfig(_req: GetConfigRequest): Promise<GetConfigResponse> {return { kind: 'getConfig', config: await getLintConfig() };}@@ -188,7 +188,7 @@ async function handleSetDialect(req: SetDialectRequest): Promise<UnitResponse> {return createUnitResponse();}-async function handleGetDialect(req: GetDialectRequest): Promise<GetDialectResponse> {+async function handleGetDialect(_req: GetDialectRequest): Promise<GetDialectResponse> {return { kind: 'getDialect', dialect: await getDialect() };}@@ -240,7 +240,7 @@ async function handleSetDefaultStatus(req: SetDefaultStatusRequest): Promise<Uni}async function handleGetLintDescriptions(- req: GetLintDescriptionsRequest,+ _req: GetLintDescriptionsRequest,): Promise<GetLintDescriptionsResponse> {return { kind: 'getLintDescriptions', descriptions: await linter.getLintDescriptionsHTML() };}diff --git a/packages/chrome-plugin/src/manifest.ts b/packages/chrome-plugin/src/manifest.tsindex 88daea972..4c1e116cd 100644--- a/packages/chrome-plugin/src/manifest.ts+++ b/packages/chrome-plugin/src/manifest.ts@@ -1,7 +1,7 @@import { defineManifest } from '@crxjs/vite-plugin';import packageData from '../package.json';-//@ts-ignore+//@ts-expect-errorconst isDev = process.env.NODE_ENV == 'development';/**diff --git a/packages/chrome-plugin/src/options/Options.svelte b/packages/chrome-plugin/src/options/Options.svelteindex 113556e8f..c31be964a 100644--- a/packages/chrome-plugin/src/options/Options.svelte+++ b/packages/chrome-plugin/src/options/Options.svelte@@ -185,7 +185,7 @@ async function exportEnabledDomainsCSV() {<span class="font-medium">User Dictionary</span><span class="font-light">Each word should be on its own line.</span></div>- <textarea bind:value={userDict} />+ <textarea bind:value={userDict} ></textarea></div></div>diff --git a/packages/chrome-plugin/src/popup/Popup.svelte b/packages/chrome-plugin/src/popup/Popup.svelteindex 870f5b5dc..87726d1d2 100644--- a/packages/chrome-plugin/src/popup/Popup.svelte+++ b/packages/chrome-plugin/src/popup/Popup.svelte@@ -51,6 +51,6 @@ function openSettings() {<a href="https://github.com/Automattic/harper" target="_blank" rel="noopener" class="text-primary-600 hover:underline">GitHub</a><a href="https://discord.com/invite/JBqcAaKrzQ" target="_blank" rel="noopener" class="text-primary-600 hover:underline">Discord</a><a href="https://writewithharper.com" target="_blank" rel="noopener" class="text-primary-600 hover:underline">Discover</a>- <a target="_blank" rel="noopener" class="text-primary-600 hover:underline" on:click={openSettings}>Settings</a>+ <button class="text-primary-600 hover:underline" onclick={openSettings}>Settings</button></footer></div>diff --git a/packages/chrome-plugin/src/protocol.ts b/packages/chrome-plugin/src/protocol.tsindex 2005646c1..741b5fb3a 100644--- a/packages/chrome-plugin/src/protocol.ts+++ b/packages/chrome-plugin/src/protocol.ts@@ -1,4 +1,4 @@-import type { Dialect, LintConfig, Summary } from 'harper.js';+import type { Dialect, LintConfig } from 'harper.js';import type { UnpackedLintGroups } from 'lint-framework';export type Request =diff --git a/packages/chrome-plugin/tests/github.spec.ts b/packages/chrome-plugin/tests/github.spec.tsindex fae95092a..fa2f22a1b 100644--- a/packages/chrome-plugin/tests/github.spec.ts+++ b/packages/chrome-plugin/tests/github.spec.ts@@ -1,8 +1,6 @@import { test } from './fixtures';import {assertHarperHighlightBoxes,- clickHarperHighlight,- getHarperHighlights,getTextarea,replaceEditorContent,testBasicSuggestionTextarea,diff --git a/packages/chrome-plugin/tests/lint-kinds.spec.ts b/packages/chrome-plugin/tests/lint-kinds.spec.tsindex 528b09a98..c9bb930bb 100644--- a/packages/chrome-plugin/tests/lint-kinds.spec.ts+++ b/packages/chrome-plugin/tests/lint-kinds.spec.ts@@ -1,7 +1,8 @@-import { expect, test } from '@playwright/test';+import { test } from '@playwright/test';import { LINT_KINDS, lintKindColor } from 'lint-framework';-test('display lint kind colors', async ({ page }, testInfo) => {+// biome-ignore lint/correctness/noEmptyPattern: Playwright requires an object destruction+test('display lint kind colors', async ({}, testInfo) => {// Generate color boxes for each lint kindconst colorBoxes = LINT_KINDS.map((kind) => {const color = lintKindColor(kind);diff --git a/packages/chrome-plugin/tests/simple_inputs_disabled.spec.ts b/packages/chrome-plugin/tests/simple_inputs_disabled.spec.tsindex eefeedd58..c6f4c992a 100644--- a/packages/chrome-plugin/tests/simple_inputs_disabled.spec.ts+++ b/packages/chrome-plugin/tests/simple_inputs_disabled.spec.ts@@ -3,7 +3,7 @@ import { assertHarperHighlightBoxes } from './testUtils';const TEST_PAGE_URL = 'http://localhost:8081/simple_inputs_disabled.html';-test('Ignores disabled and readonly inputs', async ({ page }, testInfo) => {+test('Ignores disabled and readonly inputs', async ({ page }) => {await page.goto(TEST_PAGE_URL);await page.waitForTimeout(6000);diff --git a/packages/chrome-plugin/tests/testUtils.ts b/packages/chrome-plugin/tests/testUtils.tsindex 2ff5c510c..8c9f4d81a 100644--- a/packages/chrome-plugin/tests/testUtils.ts+++ b/packages/chrome-plugin/tests/testUtils.ts@@ -68,7 +68,7 @@ export function getTextarea(page: Page): Locator {}export async function testBasicSuggestionTextarea(testPageUrl: string) {- test('Can apply basic suggestion.', async ({ page, context }) => {+ test('Can apply basic suggestion.', async ({ page }) => {await page.goto(testPageUrl);await page.waitForTimeout(2000);diff --git a/packages/harper.js/docs.sh b/packages/harper.js/docs.shindex 2f500a08c..730282474 100755--- a/packages/harper.js/docs.sh+++ b/packages/harper.js/docs.sh@@ -19,34 +19,17 @@ if [[ -d "$harperjs_docs_dir" ]]; thenfimkdir -p "$harperjs_docs_dir" || true-cat <<- PANDOC_FILTER > "./temp/md_to_html.lua"- function Link(elem)- elem.target = string.gsub(elem.target, "%.md$", ".html")- return elem- end-PANDOC_FILTER-echo "Rendering HTML..."if command -v parallel &> /dev/null; thenparallel 'base=$(basename {} .md)- pandoc -s \- -V pagetitle="${base#"harper.js."} - Harper" \- -V description-meta="API reference documentation for harper.js" \- -V document-css="true" \- -L "./temp/md_to_html.lua" \- -o "html/${base}.html" {}+ node renderPage.js "${base#"harper.js."} - Harper" "API reference documentation for harper.js" {} "html/${base}.html"' ::: ./markdown/*.mdelseecho "parallel not found, falling back to sequential processing"for file in ./markdown/*.md; dobase=$(basename "$file" .md)- pandoc -s \- -V pagetitle="${base#"harper.js."} - Harper" \- -V description-meta="API reference documentation for harper.js" \- -V document-css="true" \- -L "./temp/md_to_html.lua" \- -o "html/${base}.html" "$file"+ node renderPage.js "${base#"harper.js."} - Harper" "API reference documentation for harper.js" {} "html/${base}.html"donefimv -f "$html_dir" "${harperjs_docs_dir}/ref"diff --git a/packages/harper.js/examples/raw-web/index.html b/packages/harper.js/examples/raw-web/index.htmlindex ca26eee1f..a4f6a6c83 100644--- a/packages/harper.js/examples/raw-web/index.html+++ b/packages/harper.js/examples/raw-web/index.html@@ -6,28 +6,28 @@<script type="module">// We can import `harper.js` using native ECMAScript syntax.// TODO: Update to the latest version.- import {WorkerLinter, binaryInlined} from 'https://unpkg.com/[email protected]/dist/harper.js';+ import {binaryInlined, WorkerLinter } from 'https://unpkg.com/[email protected]/dist/harper.js';// Since we are working in the browser, we can use either `WorkerLinter`, which doesn't block the event loop, or `LocalLinter`, which does.- let linter = new WorkerLinter({binary: binaryInlined});+ const linter = new WorkerLinter({binary: binaryInlined});// Every time the `<textarea/>` received an input, we process it and update our list.async function onInput(e) {- let lints = await linter.lint(e.target.value);+ const lints = await linter.lint(e.target.value);- let list = document.getElementById('errorlist');+ const list = document.getElementById('errorlist');// Clear previous resultslist.innerHTML = '';- for (let lint of lints) {- let item = document.createElement('LI');- var text = document.createTextNode(lint.message());+ for (const lint of lints) {+ const item = document.createElement('LI');+ const text = document.createTextNode(lint.message());item.appendChild(text);list.appendChild(item);}}- let inputField = document.getElementById('maininput');+ const inputField = document.getElementById('maininput');inputField.addEventListener('input', onInput);onInput({target: inputField});</script>diff --git a/packages/harper.js/package.json b/packages/harper.js/package.jsonindex 7a242662d..a774b0c2a 100644--- a/packages/harper.js/package.json+++ b/packages/harper.js/package.json@@ -16,7 +16,7 @@"type": "module","scripts": {"dev": "vite",- "build": "tsc && vite build",+ "build": "tsc && vite build -l warn","test": "vitest run","test:debug": "vitest run --browser.headless false --testTimeout 0","api:extractor": "api-extractor run",@@ -26,16 +26,17 @@"@microsoft/api-documenter": "^7.26.10","@microsoft/api-extractor": "^7.50.1","@vitest/browser": "^3.0.6",+ "harper-wasm": "workspace:*",+ "marked": "^16.4.1",+ "p-lazy": "^5.0.0",+ "p-memoize": "^7.1.1","playwright": "^1.49.1",+ "type-fest": "^4.37.0","typescript": "catalog:","vite": "^6.1.0","vite-plugin-dts": "^4.5.0","vite-plugin-virtual": "^0.3.0",- "vitest": "^3.0.5",- "harper-wasm": "workspace:*",- "type-fest": "^4.37.0",- "p-memoize": "^7.1.1",- "p-lazy": "^5.0.0"+ "vitest": "^3.0.5"},"main": "dist/harper.js","types": "dist/harper.d.ts",diff --git a/packages/harper.js/renderPage.js b/packages/harper.js/renderPage.jsnew file mode 100644index 000000000..64d0d75ba--- /dev/null+++ b/packages/harper.js/renderPage.js@@ -0,0 +1,39 @@+import fs from 'fs';+import { marked } from 'marked';++const pageTitle = process.argv[2];+const description = process.argv[3];+const input = process.argv[4];+const output = process.argv[5];++const renderer = new marked.Renderer();++renderer.link = ({ href, title, text }) => {+ if (href.endsWith('.md')) {+ href = `${href.slice(0, href.length - 3)}.html`;+ }+ const titleAttr = title ? ` title="${title}"` : '';+ return `<a href="${href}" ${titleAttr}>${text}</a>`;+};++const markdown = fs.readFileSync(input, 'utf8');+const body = marked.parse(markdown, { async: false, renderer });++const html = `<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<title>${pageTitle}</title>+<meta name="description" content="${description}">+<link+ rel="stylesheet"+ href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"+>+</head>+<body>+${body}+</body>+</html>+`;++fs.writeFileSync(output, html);diff --git a/packages/lint-framework/package.json b/packages/lint-framework/package.jsonindex 37ad3ca0f..ef30d067a 100644--- a/packages/lint-framework/package.json+++ b/packages/lint-framework/package.json@@ -16,7 +16,7 @@"dist"],"scripts": {- "build": "tsc && vite build",+ "build": "tsc && vite build -l warn","dev": "vite","test": "echo 'no tests'"},diff --git a/packages/lint-framework/src/lint/SuggestionBox.ts b/packages/lint-framework/src/lint/SuggestionBox.tsindex c251aed82..77808a02c 100644--- a/packages/lint-framework/src/lint/SuggestionBox.ts+++ b/packages/lint-framework/src/lint/SuggestionBox.ts@@ -22,7 +22,6 @@ FocusHook.prototype.hook = function (node: any, _propertyName: any, _previousVal});};-/** biome-ignore-all lint/complexity/useArrowFunction: It cannot be an arrow function for the logic to work. */var CloseOnEscapeHook: any = function (this: any, onClose: () => void) {this.onClose = onClose;};@@ -179,7 +178,7 @@ function suggestions(): any {return suggestions.map((s: UnpackedSuggestion, i: number) => {const label = s.replacement_text !== '' ? s.replacement_text : String(s.kind);- const desc = `Replace with \"${label}\"`;+ const desc = `Replace with "${label}"`;const props = i === 0 ? { hook: new FocusHook() } : {};return button(label, { background: '#2DA44E', color: '#FFFFFF' }, () => apply(s), desc, props);});@@ -224,7 +223,7 @@ function styleTag() {display:flex;flex-direction:column;z-index:5000;- font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Helvetica,Arial,sans-serif;+ font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;pointer-events:auto}.harper-header{diff --git a/packages/lint-framework/src/lint/domUtils.ts b/packages/lint-framework/src/lint/domUtils.tsindex 4d0d0131a..8dd3f56b1 100644--- a/packages/lint-framework/src/lint/domUtils.ts+++ b/packages/lint-framework/src/lint/domUtils.ts@@ -48,7 +48,9 @@ export function leafNodes(node: Node): Node[] {for (const child of children) {const sub = leafNodes(child);- sub.forEach((v) => out.push(v));+ sub.forEach((v) => {+ out.push(v);+ });}return out;diff --git a/packages/obsidian-plugin/package.json b/packages/obsidian-plugin/package.jsonindex 1ef52f7ce..a48df6d20 100644--- a/packages/obsidian-plugin/package.json+++ b/packages/obsidian-plugin/package.json@@ -15,7 +15,7 @@"vitest": "^3.0.8"},"scripts": {- "build": "vite build",+ "build": "vite build -l warn","dev": "vite build --watch","test": "vitest run"},diff --git a/packages/obsidian-plugin/src/HarperSettingTab.ts b/packages/obsidian-plugin/src/HarperSettingTab.tsindex 5cf8888db..7632aa46f 100644--- a/packages/obsidian-plugin/src/HarperSettingTab.ts+++ b/packages/obsidian-plugin/src/HarperSettingTab.ts@@ -79,7 +79,7 @@ export class HarperSettingTab extends PluginSettingTab {.addOption(Dialect.Australian.toString(), 'Australian').setValue((this.settings.dialect ?? Dialect.American).toString()).onChange(async (value) => {- const dialect = Number.parseInt(value);+ const dialect = Number.parseInt(value, 10);this.settings.dialect = dialect;await this.state.initializeFromSettings(this.settings);this.plugin.updateStatusBar(dialect);@@ -90,7 +90,7 @@ export class HarperSettingTab extends PluginSettingTab {.setName('Activate Harper').setDesc('Enable or disable Harper with this option.').addToggle((toggle) =>- toggle.setValue(this.settings.lintEnabled).onChange(async (value) => {+ toggle.setValue(this.settings.lintEnabled).onChange(async (_value) => {this.state.toggleAutoLint();this.plugin.updateStatusBar();}),diff --git a/packages/obsidian-plugin/src/State.ts b/packages/obsidian-plugin/src/State.tsindex 98e73a0d9..c960006ee 100644--- a/packages/obsidian-plugin/src/State.ts+++ b/packages/obsidian-plugin/src/State.ts@@ -39,7 +39,7 @@ export default class State {constructor(saveDataCallback: (data: any) => Promise<void>,onExtensionChange: () => void,- editorViewField?: StateField<MarkdownFileInfo>,+ _editorViewField?: StateField<MarkdownFileInfo>,) {this.harper = new WorkerLinter({ binary: binaryInlined });this.delay = DEFAULT_DELAY;@@ -115,12 +115,15 @@ export default class State {if (this.editorViewField != null) {const mdView = view.state.field(this.editorViewField) as MarkdownView;const file = mdView?.file;- const path = file?.path!;- if (path != null) {- for (const glob of ignoredGlobs) {- if (minimatch(path, glob)) {- return [];+ if (file != null) {+ const path = file.path;++ if (path != null) {+ for (const glob of ignoredGlobs) {+ if (minimatch(path, glob)) {+ return [];+ }}}}@@ -177,7 +180,7 @@ export default class State {actions.push({name: '📖',title: `Add “${word}” to your dictionary`,- apply: (view) => {+ apply: (_view) => {this.harper.importWords([word]);this.reinitialize();},@@ -189,7 +192,7 @@ export default class State {to: span.end,severity: 'error',title: lint.lint_kind_pretty(),- renderMessage: (view) => {+ renderMessage: (_view) => {const node = document.createElement('template');node.innerHTML = lint.message_html();return node.content;diff --git a/packages/obsidian-plugin/src/textUtils.test.ts b/packages/obsidian-plugin/src/textUtils.test.tsindex 15c03b9af..fdd527db2 100644--- a/packages/obsidian-plugin/src/textUtils.test.ts+++ b/packages/obsidian-plugin/src/textUtils.test.ts@@ -1,5 +1,4 @@-import { binary, LocalLinter } from 'harper.js';-import { describe, expect, test } from 'vitest';+import { expect, test } from 'vitest';import { linesToString, stringToLines } from './textUtils';test('Dictionary values are reversible', () => {diff --git a/packages/web/package.json b/packages/web/package.jsonindex f536abb2c..68f797dfd 100644--- a/packages/web/package.json+++ b/packages/web/package.json@@ -4,7 +4,7 @@"private": true,"scripts": {"dev": "vite dev",- "build": "vite build",+ "build": "vite build -l warn","preview": "vite preview","check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",@@ -19,10 +19,10 @@"drizzle-kit": "^0.31.5","flowbite": "^3.1.2","flowbite-svelte": "^0.44.18",- "postcss": "^8.4.31","svelte": "^5.15.0","svelte-check": "^4.1.5",- "tailwindcss": "^3.3.3",+ "tailwindcss": "^4.1.16",+ "@tailwindcss/vite": "^4.1.4","tslib": "catalog:","tsx": "^4.20.6","typescript": "catalog:",diff --git a/packages/web/postcss.config.js b/packages/web/postcss.config.jsdeleted file mode 100644index 7b75c83af..000000000--- a/packages/web/postcss.config.js+++ /dev/null@@ -1,6 +0,0 @@-export default {- plugins: {- tailwindcss: {},- autoprefixer: {},- },-};diff --git a/packages/web/src/app.css b/packages/web/src/app.cssindex 6bdaee1dc..dd148a094 100644--- a/packages/web/src/app.css+++ b/packages/web/src/app.css@@ -1,6 +1,4 @@-@tailwind base;-@tailwind components;-@tailwind utilities;+@import "tailwindcss";@layer base {body {@@ -51,12 +49,12 @@}code {- font-family: "JetBrains Mono", monospace !important;+ font-family: "JetBrains Mono", monospace;word-break: keep-all;}code * {- font-family: "JetBrains Mono", monospace !important;+ font-family: "JetBrains Mono", monospace;}.underlinespecial {@@ -80,7 +78,7 @@ code * {}textarea {- --tw-ring-shadow: 0 0 #000 !important;+ --tw-ring-shadow: 0 0 #000;}.animate-bigbounce {diff --git a/packages/web/src/hooks.server.ts b/packages/web/src/hooks.server.tsindex a622fa093..206d2da48 100644--- a/packages/web/src/hooks.server.ts+++ b/packages/web/src/hooks.server.ts@@ -1,5 +1,5 @@-import { db } from '$lib/db';import { migrate } from 'drizzle-orm/mysql2/migrator';+import { db } from '$lib/db';// Migrate exactly once at startuptry {diff --git a/packages/web/src/lib/components/Editor.svelte b/packages/web/src/lib/components/Editor.svelteindex 52e7b2565..40e7e884c 100644--- a/packages/web/src/lib/components/Editor.svelte+++ b/packages/web/src/lib/components/Editor.svelte@@ -1,5 +1,4 @@<script lang="ts">-import LintCard from '$lib/components/LintCard.svelte';import { Card } from 'flowbite-svelte';import { type WorkerLinter } from 'harper.js';import {@@ -10,6 +9,7 @@ import {type UnpackedSuggestion,unpackLint,} from 'lint-framework';+import LintCard from '$lib/components/LintCard.svelte';import demo from '../../../../../demo.md?raw';export let content = demo.trim();diff --git a/packages/web/src/lib/components/Graph.svelte b/packages/web/src/lib/components/Graph.svelteindex 703613f8e..1c82a05c4 100644--- a/packages/web/src/lib/components/Graph.svelte+++ b/packages/web/src/lib/components/Graph.svelte@@ -22,7 +22,7 @@ for (let [key, val] of data.entries()) {let els: Record<string, HTMLElement> = {};-function expand(node: HTMLElement, { width, duration }: { width: number; duration: number }) {+function expand(_node: HTMLElement, { width, duration }: { width: number; duration: number }) {return {duration,css: (t: number) => {diff --git a/packages/web/src/lib/components/LintKindChart.svelte b/packages/web/src/lib/components/LintKindChart.svelteindex 734a7cdac..e2d56889d 100644--- a/packages/web/src/lib/components/LintKindChart.svelte+++ b/packages/web/src/lib/components/LintKindChart.svelte@@ -1,7 +1,7 @@<script lang="ts">-import lintKindColor from '$lib/lintKindColor';import Chart from 'chart.js/auto';import { onMount } from 'svelte';+import lintKindColor from '$lib/lintKindColor';// Receive lint counts from the parent componentexport let lintCounts: Record<string, number> = {};diff --git a/packages/web/src/routes/+layout.svelte b/packages/web/src/routes/+layout.svelteindex 2c0349198..1f5fee6b0 100644--- a/packages/web/src/routes/+layout.svelte+++ b/packages/web/src/routes/+layout.svelte@@ -1,11 +1,11 @@<script lang="ts">import '../app.css';+import posthog from 'posthog-js';+import { onMount } from 'svelte';import { browser } from '$app/environment';import AutomatticLogo from '$lib/components/AutomatticLogo.svelte';import GutterCenter from '$lib/components/GutterCenter.svelte';-import posthog from 'posthog-js';-import { onMount } from 'svelte';onMount(() => {if (browser) {diff --git a/packages/web/src/routes/api/problematic-lints/+server.ts b/packages/web/src/routes/api/problematic-lints/+server.tsindex 74baa020c..f57e5a4b6 100644--- a/packages/web/src/routes/api/problematic-lints/+server.ts+++ b/packages/web/src/routes/api/problematic-lints/+server.ts@@ -1,5 +1,5 @@-import ProblematicLints from '$lib/db/models/ProblematicLints';import { type RequestEvent, redirect } from '@sveltejs/kit';+import ProblematicLints from '$lib/db/models/ProblematicLints';export const POST = async ({ request }: RequestEvent) => {const data = await request.formData();diff --git a/packages/web/src/routes/api/uninstall-feedback/+server.ts b/packages/web/src/routes/api/uninstall-feedback/+server.tsindex 0510107b5..0d44672b9 100644--- a/packages/web/src/routes/api/uninstall-feedback/+server.ts+++ b/packages/web/src/routes/api/uninstall-feedback/+server.ts@@ -1,5 +1,5 @@-import UninstallFeedback from '$lib/db/models/UninstallFeedback';import { type RequestEvent, redirect } from '@sveltejs/kit';+import UninstallFeedback from '$lib/db/models/UninstallFeedback';export const POST = async ({ request }: RequestEvent) => {const data = await request.formData();diff --git a/packages/web/src/routes/docs/contributors/environment/+page.md b/packages/web/src/routes/docs/contributors/environment/+page.mdindex 8b5a0d5a3..3c1cd4695 100644--- a/packages/web/src/routes/docs/contributors/environment/+page.md+++ b/packages/web/src/routes/docs/contributors/environment/+page.md@@ -2,7 +2,13 @@title: Set Up Your Environment----To use the tooling required to build and debug Harper, you'll need the following programs available in your `$PATH`.+Depending on what you're wanting to work on within the Harper repo, you may not need to set up every aspect of the environment described on this page.+For example, if you only intend to work on the core grammar engine, `harper-ls`, or `harper-cli`, you only need `cargo` installed.+In that case, Harper follows all of the standard conventions for Rust projects, so any existing Rust knowledge will apply.++If you intend to work on the Chrome extension, Obsidian plugin, or certain other projects, you'll need the full environment set up.++To use _all_ the tooling we use to build and debug Harper, you'll need the following programs available in your `$PATH`.For Nix users, we provide a [Nix development shell](#Nix-development-shell) to setup all the necessary tooling automatically.- [`just`](https://github.com/casey/just)@@ -13,7 +19,6 @@ For Nix users, we provide a [Nix development shell](#Nix-development-shell) to s- `grep`- [`wasm-pack`](https://drager.github.io/wasm-pack/installer/)- `zip`-- `pandoc`- [`cargo-hack`](https://github.com/taiki-e/cargo-hack?tab=readme-ov-file#installation)To run integration tests, you may also need `libnss3` and/or `libasound3`.diff --git a/packages/web/src/routes/presentation/+page.svelte b/packages/web/src/routes/presentation/+page.svelteindex 7690edbac..9fae4da7d 100644--- a/packages/web/src/routes/presentation/+page.svelte+++ b/packages/web/src/routes/presentation/+page.svelte@@ -1,9 +1,9 @@<script lang="ts">import 'reveal.js/dist/reveal.css';import 'reveal.js/dist/theme/serif.css';-import Logo from '$lib/components/Logo.svelte';import Reveal from 'reveal.js';import { onMount } from 'svelte';+import Logo from '$lib/components/Logo.svelte';onMount(() => {let deck = new Reveal();diff --git a/packages/web/src/routes/report-problematic-lint/+page.svelte b/packages/web/src/routes/report-problematic-lint/+page.svelteindex 5f1be036d..f056e6009 100644--- a/packages/web/src/routes/report-problematic-lint/+page.svelte+++ b/packages/web/src/routes/report-problematic-lint/+page.svelte@@ -1,6 +1,6 @@<script lang="ts">-import Isolate from '$lib/components/Isolate.svelte';import { Button, Card, Checkbox, Input, Label, Radio } from 'flowbite-svelte';+import Isolate from '$lib/components/Isolate.svelte';</script><Isolate>diff --git a/packages/web/src/routes/request-browser-support/+page.svelte b/packages/web/src/routes/request-browser-support/+page.svelteindex 85e927d63..ce9ee4166 100644--- a/packages/web/src/routes/request-browser-support/+page.svelte+++ b/packages/web/src/routes/request-browser-support/+page.svelte@@ -1,5 +1,5 @@<div class="fixed left-0 top-0 w-screen h-screen bg-white dark:bg-black z-1000"><div class="max-w-4xl mx-auto shadow-md border-gray-300 dark:border-x h-full">- <iframe src="https://docs.google.com/forms/d/e/1FAIpQLScaWQWtnszKS_oQ8DYEAt1Ei5ORIQFViaoImjZ06pXntbCarA/viewform?embedded=true" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>+ <iframe src="https://docs.google.com/forms/d/e/1FAIpQLScaWQWtnszKS_oQ8DYEAt1Ei5ORIQFViaoImjZ06pXntbCarA/viewform?embedded=true" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" title="A form to request support for a specific website.">Loading…</iframe></div></div>diff --git a/packages/web/src/routes/stats/+page.svelte b/packages/web/src/routes/stats/+page.svelteindex 9adaa578f..550290ca3 100644--- a/packages/web/src/routes/stats/+page.svelte+++ b/packages/web/src/routes/stats/+page.svelte@@ -1,5 +1,4 @@<script lang="ts">-import LintKindChart from '$lib/components/LintKindChart.svelte';import {Fileupload,Table,@@ -10,6 +9,7 @@ import {TableHeadCell,} from 'flowbite-svelte';import { binary, type Summary, WorkerLinter } from 'harper.js';+import LintKindChart from '$lib/components/LintKindChart.svelte';let linter = new WorkerLinter({ binary: binary });let files = $state<FileList | undefined>();diff --git a/packages/web/src/routes/uninstall-browser-extension/+page.svelte b/packages/web/src/routes/uninstall-browser-extension/+page.svelteindex bbf2719cf..685f01fd2 100644--- a/packages/web/src/routes/uninstall-browser-extension/+page.svelte+++ b/packages/web/src/routes/uninstall-browser-extension/+page.svelte@@ -1,6 +1,6 @@<script lang="ts">-import Isolate from '$lib/components/Isolate.svelte';import { Button, Card, Input, Label, Radio } from 'flowbite-svelte';+import Isolate from '$lib/components/Isolate.svelte';const reasons = {confused: 'I was confused by how it worked',diff --git a/packages/web/vite.config.ts b/packages/web/vite.config.tsindex 98e84dcee..33ab95ffa 100644--- a/packages/web/vite.config.ts+++ b/packages/web/vite.config.ts@@ -1,239 +1,247 @@-import { defaultTheme } from '@sveltepress/theme-default';-import { sveltepress } from '@sveltepress/vite';+import tailwindcss from '@tailwindcss/vite';import { defineConfig } from 'vite';import topLevelAwait from 'vite-plugin-top-level-await';import wasm from 'vite-plugin-wasm';const prod = process.env.APP_ENV === 'production';-export default defineConfig({- ssr: {- noExternal: prod ? ['mysql2', 'drizzle-orm', 'posthog-js', 'drizzle-zod', 'zod'] : [],- },- server: {- port: 3000,- fs: {- allow: ['../harper.js/dist'],+export default defineConfig(async () => {+ const [{ defaultTheme }, { sveltepress }] = await Promise.all([+ import('@sveltepress/theme-default'),+ import('@sveltepress/vite'),+ ]);++ return {+ ssr: {+ noExternal: prod ? ['mysql2', 'drizzle-orm', 'posthog-js', 'drizzle-zod', 'zod'] : [],},- },- plugins: [- sveltepress({- siteConfig: {- title: 'Harper',- description: 'A Grammar Checker from Automattic',+ server: {+ port: 3000,+ fs: {+ allow: ['../harper.js/dist'],},- theme: defaultTheme({- editLink: 'https://github.com/automattic/harper/edit/master/packages/web/src/routes/:route',- logo: '/circle-logo.png',- github: 'https://github.com/automattic/harper',- discord: 'https://discord.gg/invite/JBqcAaKrzQ',- themeColor: {- primary: '#818eae',- dark: '#355280',- gradient: {- start: '#355280',- end: '#818eae',- },+ },+ plugins: [+ sveltepress({+ siteConfig: {+ title: 'Harper',+ description: 'A Grammar Checker from Automattic',},- navbar: [- { title: 'Documentation', to: '/docs/about' },- {- title: 'Visual Studio Code',- to: 'https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper',- },- { title: 'Obsidian', to: '/docs/integrations/obsidian' },- {- title: 'Chrome Extension',- to: 'https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb',- },- ],- sidebar: {- '/docs/': [- {- items: [- {- title: 'About',- to: '/docs/about',- },- ],- },- {- title: 'Integrations',- items: [- {- title: 'Obsidian',- to: '/docs/integrations/obsidian',- },- {- title: 'Chrome Extension',- to: '/docs/integrations/chrome-extension',- },- {- title: 'Firefox Extension',- to: '/docs/integrations/firefox-extension',- },- {- title: 'WordPress',- to: '/docs/integrations/wordpress',- },- {- title: 'Language Server',- to: '/docs/integrations/language-server',- },- {- title: 'Visual Studio Code',- to: '/docs/integrations/visual-studio-code',- },- {- title: 'Neovim',- to: '/docs/integrations/neovim',- },- {- title: 'Helix',- to: '/docs/integrations/helix',- },- {- title: 'Emacs',- to: '/docs/integrations/emacs',- },- {- title: 'Zed',- to: '/docs/integrations/zed',- },- {- title: 'Sublime Text',- to: '/docs/integrations/sublime-text',- },- ],- },- {- title: 'harper.js',- items: [- {- title: 'Introduction',- to: '/docs/harperjs/introduction',- },- {- title: 'Linting',- to: '/docs/harperjs/linting',- },- {- title: 'Spans',- to: '/docs/harperjs/spans',- },- {- title: 'Configure Rules',- to: '/docs/harperjs/configurerules',- },- {- title: 'Node.js',- to: '/docs/harperjs/node',- },- {- title: 'CDN',- to: '/docs/harperjs/CDN',- },- {- title: 'API Reference',- to: '/docs/harperjs/ref/index.html',- },- ],- },- {- title: 'Contributors',- items: [- {- title: 'Introduction',- to: '/docs/contributors/introduction',- },- {- title: 'Environment',- to: '/docs/contributors/environment',- },- {- title: 'Committing',- to: '/docs/contributors/committing',- },- {- title: 'Architecture',- to: '/docs/contributors/architecture',- },- {- title: 'Dictionary',- to: '/docs/contributors/dictionary',- },- {- title: 'Test Suite',- to: '/docs/contributors/tests',- },- {- title: 'Author a Rule',- to: '/docs/contributors/author-a-rule',- },- {- title: 'Visual Studio Code',- to: '/docs/contributors/visual-studio-code',- },- {- title: 'Chrome Extension',- to: '/docs/contributors/chrome-extension',- },- {- title: 'WordPress',- to: '/docs/contributors/wordpress',- },- {- title: 'Obsidian',- to: '/docs/contributors/obsidian',- },- {- title: 'Reviewing Pull Requests',- to: '/docs/contributors/review',- },- {- title: 'Local Statistics',- to: '/docs/contributors/local-stats',- },- {- title: 'Brill Tagging',- to: '/docs/contributors/brill',- },- {- title: 'FAQ',- to: '/docs/contributors/faq',- },- ],+ theme: defaultTheme({+ editLink:+ 'https://github.com/automattic/harper/edit/master/packages/web/src/routes/:route',+ logo: '/circle-logo.png',+ github: 'https://github.com/automattic/harper',+ discord: 'https://discord.gg/invite/JBqcAaKrzQ',+ themeColor: {+ primary: '#818eae',+ dark: '#355280',+ gradient: {+ start: '#355280',+ end: '#818eae',},+ },+ navbar: [+ { title: 'Documentation', to: '/docs/about' },{- title: 'Rust Reference',- to: 'https://docs.rs/harper-core/latest/harper_core/',+ title: 'Visual Studio Code',+ to: 'https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper',},+ { title: 'Obsidian', to: '/docs/integrations/obsidian' },{- title: 'Rules',- to: '/docs/rules',+ title: 'Chrome Extension',+ to: 'https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb',},],- },- highlighter: {- languages: [- 'svelte',- 'sh',- 'js',- 'html',- 'ts',- 'md',- 'css',- 'scss',- 'toml',- 'rust',- 'lua',- 'json',- 'elisp',- ],- },+ sidebar: {+ '/docs/': [+ {+ items: [+ {+ title: 'About',+ to: '/docs/about',+ },+ ],+ },+ {+ title: 'Integrations',+ items: [+ {+ title: 'Obsidian',+ to: '/docs/integrations/obsidian',+ },+ {+ title: 'Chrome Extension',+ to: '/docs/integrations/chrome-extension',+ },+ {+ title: 'Firefox Extension',+ to: '/docs/integrations/firefox-extension',+ },+ {+ title: 'WordPress',+ to: '/docs/integrations/wordpress',+ },+ {+ title: 'Language Server',+ to: '/docs/integrations/language-server',+ },+ {+ title: 'Visual Studio Code',+ to: '/docs/integrations/visual-studio-code',+ },+ {+ title: 'Neovim',+ to: '/docs/integrations/neovim',+ },+ {+ title: 'Helix',+ to: '/docs/integrations/helix',+ },+ {+ title: 'Emacs',+ to: '/docs/integrations/emacs',+ },+ {+ title: 'Zed',+ to: '/docs/integrations/zed',+ },+ {+ title: 'Sublime Text',+ to: '/docs/integrations/sublime-text',+ },+ ],+ },+ {+ title: 'harper.js',+ items: [+ {+ title: 'Introduction',+ to: '/docs/harperjs/introduction',+ },+ {+ title: 'Linting',+ to: '/docs/harperjs/linting',+ },+ {+ title: 'Spans',+ to: '/docs/harperjs/spans',+ },+ {+ title: 'Configure Rules',+ to: '/docs/harperjs/configurerules',+ },+ {+ title: 'Node.js',+ to: '/docs/harperjs/node',+ },+ {+ title: 'CDN',+ to: '/docs/harperjs/CDN',+ },+ {+ title: 'API Reference',+ to: '/docs/harperjs/ref/index.html',+ },+ ],+ },+ {+ title: 'Contributors',+ items: [+ {+ title: 'Introduction',+ to: '/docs/contributors/introduction',+ },+ {+ title: 'Environment',+ to: '/docs/contributors/environment',+ },+ {+ title: 'Committing',+ to: '/docs/contributors/committing',+ },+ {+ title: 'Architecture',+ to: '/docs/contributors/architecture',+ },+ {+ title: 'Dictionary',+ to: '/docs/contributors/dictionary',+ },+ {+ title: 'Test Suite',+ to: '/docs/contributors/tests',+ },+ {+ title: 'Author a Rule',+ to: '/docs/contributors/author-a-rule',+ },+ {+ title: 'Visual Studio Code',+ to: '/docs/contributors/visual-studio-code',+ },+ {+ title: 'Chrome Extension',+ to: '/docs/contributors/chrome-extension',+ },+ {+ title: 'WordPress',+ to: '/docs/contributors/wordpress',+ },+ {+ title: 'Obsidian',+ to: '/docs/contributors/obsidian',+ },+ {+ title: 'Reviewing Pull Requests',+ to: '/docs/contributors/review',+ },+ {+ title: 'Local Statistics',+ to: '/docs/contributors/local-stats',+ },+ {+ title: 'Brill Tagging',+ to: '/docs/contributors/brill',+ },+ {+ title: 'FAQ',+ to: '/docs/contributors/faq',+ },+ ],+ },+ {+ title: 'Rust Reference',+ to: 'https://docs.rs/harper-core/latest/harper_core/',+ },+ {+ title: 'Rules',+ to: '/docs/rules',+ },+ ],+ },+ highlighter: {+ languages: [+ 'svelte',+ 'sh',+ 'js',+ 'html',+ 'ts',+ 'md',+ 'css',+ 'scss',+ 'toml',+ 'rust',+ 'lua',+ 'json',+ 'elisp',+ ],+ },+ }),}),- }),- wasm(),- topLevelAwait(),- ],+ wasm(),+ topLevelAwait(),+ tailwindcss(),+ ],+ };});diff --git a/packages/wordpress-plugin/src/harper/DialectSelectRow.tsx b/packages/wordpress-plugin/src/harper/DialectSelectRow.tsxindex fc802eca3..6570ad65f 100644--- a/packages/wordpress-plugin/src/harper/DialectSelectRow.tsx+++ b/packages/wordpress-plugin/src/harper/DialectSelectRow.tsx@@ -1,6 +1,5 @@import { SelectControl } from '@wordpress/components';import { Dialect } from 'harper.js';-import React from 'react';import useDialect from './useDialect';export default function DialectSelectRow() {@@ -31,7 +30,7 @@ export default function DialectSelectRow() {value: Dialect.British.toString(),},]}- onChange={(value) => setDialect(Number.parseInt(value))}+ onChange={(value) => setDialect(Number.parseInt(value, 10))}/></div>);diff --git a/packages/wordpress-plugin/src/harper/Highlighter.tsx b/packages/wordpress-plugin/src/harper/Highlighter.tsxindex 42c70f56d..7ee63f9d5 100644--- a/packages/wordpress-plugin/src/harper/Highlighter.tsx+++ b/packages/wordpress-plugin/src/harper/Highlighter.tsx@@ -1,4 +1,4 @@-import React, { useEffect } from 'react';+import { useEffect } from 'react';import type { LintBox } from './Box';import type RichText from './RichText';import SuggestionControl from './SuggestionControl';diff --git a/packages/wordpress-plugin/src/harper/LintList.tsx b/packages/wordpress-plugin/src/harper/LintList.tsxindex 3f28a9ef1..dc31c622b 100644--- a/packages/wordpress-plugin/src/harper/LintList.tsx+++ b/packages/wordpress-plugin/src/harper/LintList.tsx@@ -1,5 +1,4 @@import { Animate, Spinner } from '@wordpress/components';-import React from 'react';import type { IgnorableLintBox } from './Box';import LintListItem from './LintListItem';diff --git a/packages/wordpress-plugin/src/harper/LintListItem.tsx b/packages/wordpress-plugin/src/harper/LintListItem.tsxindex 84b938258..bd469d5af 100644--- a/packages/wordpress-plugin/src/harper/LintListItem.tsx+++ b/packages/wordpress-plugin/src/harper/LintListItem.tsx@@ -1,5 +1,4 @@import { Button, Card, CardBody } from '@wordpress/components';-import React from 'react';import type { IgnorableLintBox } from './Box';import { suggestionText } from './lintUtils';import { useAddToDictionary } from './usePersonalDictionary';diff --git a/packages/wordpress-plugin/src/harper/LintSettingList.tsx b/packages/wordpress-plugin/src/harper/LintSettingList.tsxindex 0050d9746..7fd25bcd0 100644--- a/packages/wordpress-plugin/src/harper/LintSettingList.tsx+++ b/packages/wordpress-plugin/src/harper/LintSettingList.tsx@@ -1,5 +1,5 @@import { SearchControl } from '@wordpress/components';-import React, { useState } from 'react';+import { useState } from 'react';import { useLintDescriptions } from './LinterProvider';import LintSettingRow from './LintSettingRow';import useLintConfig, { useDefaultLintConfig } from './useLintConfig';diff --git a/packages/wordpress-plugin/src/harper/LintSettingRow.tsx b/packages/wordpress-plugin/src/harper/LintSettingRow.tsxindex 39700e153..eed9e7520 100644--- a/packages/wordpress-plugin/src/harper/LintSettingRow.tsx+++ b/packages/wordpress-plugin/src/harper/LintSettingRow.tsx@@ -1,5 +1,5 @@import { Animate, CheckboxControl } from '@wordpress/components';-import React, { useEffect, useState } from 'react';+import { useEffect, useState } from 'react';import { useLinter } from './LinterProvider';export default function LintSettingRow({diff --git a/packages/wordpress-plugin/src/harper/LinterProvider.tsx b/packages/wordpress-plugin/src/harper/LinterProvider.tsxindex a8660061c..33f180dc3 100644--- a/packages/wordpress-plugin/src/harper/LinterProvider.tsx+++ b/packages/wordpress-plugin/src/harper/LinterProvider.tsx@@ -1,12 +1,5 @@import { binaryInlined, type Linter, WorkerLinter } from 'harper.js';-import React, {- createContext,- type ReactNode,- useContext,- useEffect,- useRef,- useState,-} from 'react';+import { createContext, type ReactNode, useContext, useEffect, useRef, useState } from 'react';const linterContext = createContext<Linter>(new WorkerLinter({ binary: binaryInlined }));diff --git a/packages/wordpress-plugin/src/harper/SidebarControl.tsx b/packages/wordpress-plugin/src/harper/SidebarControl.tsxindex 3ccc3ebd0..75698bd7d 100644--- a/packages/wordpress-plugin/src/harper/SidebarControl.tsx+++ b/packages/wordpress-plugin/src/harper/SidebarControl.tsx@@ -1,4 +1,4 @@-import React, { useCallback, useEffect, useMemo, useState } from 'react';+import { useCallback, useEffect, useMemo, useState } from 'react';import { createPortal } from 'react-dom';import DataBlock from './DataBlock';import Highlighter from './Highlighter';diff --git a/packages/wordpress-plugin/src/harper/SidebarTabContainer.tsx b/packages/wordpress-plugin/src/harper/SidebarTabContainer.tsxindex a18f7574e..175d01606 100644--- a/packages/wordpress-plugin/src/harper/SidebarTabContainer.tsx+++ b/packages/wordpress-plugin/src/harper/SidebarTabContainer.tsx@@ -1,5 +1,4 @@-import { Panel, PanelBody, SelectControl, TabPanel } from '@wordpress/components';-import React from 'react';+import { Panel, PanelBody, TabPanel } from '@wordpress/components';import type { IgnorableLintBox } from './Box';import DialectSelectRow from './DialectSelectRow';import LintList from './LintList';diff --git a/packages/wordpress-plugin/src/harper/SuggestionControl.tsx b/packages/wordpress-plugin/src/harper/SuggestionControl.tsxindex 952a2b143..4119adc3d 100644--- a/packages/wordpress-plugin/src/harper/SuggestionControl.tsx+++ b/packages/wordpress-plugin/src/harper/SuggestionControl.tsx@@ -1,5 +1,5 @@import { Button, Popover } from '@wordpress/components';-import React, { useEffect, useMemo, useRef, useState } from 'react';+import { useEffect, useMemo, useRef, useState } from 'react';import { type IgnorableLintBox, isPointInBox } from './Box';import { suggestionText } from './lintUtils';import { useAddToDictionary } from './usePersonalDictionary';diff --git a/packages/wordpress-plugin/src/harper/domUtils.ts b/packages/wordpress-plugin/src/harper/domUtils.tsindex cedbde92d..afc87bc4e 100644--- a/packages/wordpress-plugin/src/harper/domUtils.ts+++ b/packages/wordpress-plugin/src/harper/domUtils.ts@@ -48,7 +48,9 @@ export function leafNodes(node: Node): Node[] {for (const child of children) {const sub = leafNodes(child);- sub.forEach((v) => out.push(v));+ sub.forEach((v) => {+ out.push(v);+ });}return out;diff --git a/packages/wordpress-plugin/src/harper/index.tsx b/packages/wordpress-plugin/src/harper/index.tsxindex 786cdc624..346e8cef8 100644--- a/packages/wordpress-plugin/src/harper/index.tsx+++ b/packages/wordpress-plugin/src/harper/index.tsx@@ -3,7 +3,6 @@ import { registerPlugin } from '@wordpress/plugins';import Logo from './Logo';import SidebarControl from './SidebarControl';import './index.css';-import React from 'react';import LinterProvider from './LinterProvider';function Sidebar() {@@ -21,9 +20,9 @@ function Sidebar() {);}-// @ts-ignore+// @ts-expect-errorif (!window.__harperSidebarRegistered) {registerPlugin('harper-sidebar', { render: Sidebar });- // @ts-ignore+ // @ts-expect-errorwindow.__harperSidebarRegistered = true;}diff --git a/packages/wordpress-plugin/src/harper/useLintBoxes.ts b/packages/wordpress-plugin/src/harper/useLintBoxes.tsindex 07851a62b..285a286ea 100644--- a/packages/wordpress-plugin/src/harper/useLintBoxes.ts+++ b/packages/wordpress-plugin/src/harper/useLintBoxes.ts@@ -1,6 +1,6 @@import type { Lint } from 'harper.js';import { useCallback, useEffect, useState } from 'react';-import { type IgnorableLintBox, LintBox } from './Box';+import type { IgnorableLintBox } from './Box';import { useLinter } from './LinterProvider';import type RichText from './RichText';import useDialect from './useDialect';@@ -73,7 +73,9 @@ export default function useLintBoxes(richTexts: RichText[]): [IgnorableLintBox[]});return () => {- observers.forEach((observer) => observer.disconnect());+ observers.forEach((observer) => {+ observer.disconnect();+ });};}, [richTexts, updateLints]);diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex d789c0f1d..fc1061c60 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -27,8 +27,8 @@ importers:specifier: 'catalog:'version: 7.26.10'@biomejs/biome':- specifier: 2.0.6- version: 2.0.6+ specifier: 2.3.3+ version: 2.3.3check-dependency-version-consistency:specifier: ^5.0.0version: 5.0.0@@ -43,9 +43,6 @@ importers:'@fortawesome/free-solid-svg-icons':specifier: ^7.1.0version: 7.1.0- '@tailwindcss/vite':- specifier: ^4.1.4- version: 4.1.4([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@webcomponents/custom-elements':specifier: ^1.6.0version: 1.6.0@@ -64,9 +61,6 @@ importers:svelte-fa:specifier: ^4.0.4version: 4.0.4([email protected])- tailwindcss:- specifier: ^4.1.4- version: 4.1.4devDependencies:'@crxjs/vite-plugin':specifier: ^2.0.0-beta.26@@ -77,6 +71,9 @@ importers:'@sveltejs/vite-plugin-svelte':specifier: ^4.0.0version: 4.0.4([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@tailwindcss/vite':+ specifier: ^4.1.4+ version: 4.1.4([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@types/chrome':specifier: ^0.0.246version: 0.0.246@@ -119,6 +116,9 @@ importers:svelte-preprocess:specifier: ^6.0.0version: 6.0.3(@babel/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])+ tailwindcss:+ specifier: ^4.1.4+ version: 4.1.16tslib:specifier: ^2.6.2version: 2.8.1@@ -143,6 +143,9 @@ importers:harper-wasm:specifier: workspace:*version: link:../../harper-wasm/pkg+ marked:+ specifier: ^16.4.1+ version: 16.4.1p-lazy:specifier: ^5.0.0version: 5.0.0@@ -369,6 +372,9 @@ importers:'@sveltejs/vite-plugin-svelte':specifier: ^5.0.3version: 5.0.3([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tailwindcss/vite':+ specifier: ^4.1.4+ version: 4.1.4([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@types/reveal.js':specifier: ^5.0.3version: 5.0.5@@ -384,9 +390,6 @@ importers:flowbite-svelte:specifier: ^0.44.18version: 0.44.24([email protected])([email protected])- postcss:- specifier: ^8.4.31- version: 8.5.3svelte:specifier: ^5.15.0version: 5.21.0@@ -394,8 +397,8 @@ importers:specifier: ^4.1.5tailwindcss:- specifier: ^3.3.3- version: 3.4.17+ specifier: ^4.1.16+ version: 4.1.16tslib:specifier: 'catalog:'version: 2.8.1@@ -529,10 +532,6 @@ packages:resolution: {integrity: sha512-WqU0VumUILrIeVYCTGZlyyZoC/tbvhiyPxfGRRO1cSjxN558bnJLlR2BvS0SJ5b75dRNK7HDvtXo2QoP9eLfiA==}engines: {node: '>= 14.0.0'}- '@alloc/[email protected]':- resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}- engines: {node: '>=10'}-'@ampproject/[email protected]':resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}engines: {node: '>=6.0.0'}@@ -1281,55 +1280,55 @@ packages:'@bcoe/[email protected]':resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}- '@biomejs/[email protected]':- resolution: {integrity: sha512-RRP+9cdh5qwe2t0gORwXaa27oTOiQRQvrFf49x2PA1tnpsyU7FIHX4ZOFMtBC4QNtyWsN7Dqkf5EDbg4X+9iqA==}+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-zn/P1pRBCpDdhi+VNSMnpczOz9DnqzOA2c48K8xgxjDODvi5O8gs3a2H233rck/5HXpkFj6TmyoqVvxirZUnvg==}engines: {node: '>=14.21.3'}hasBin: true- '@biomejs/[email protected]':- resolution: {integrity: sha512-AzdiNNjNzsE6LfqWyBvcL29uWoIuZUkndu+wwlXW13EKcBHbbKjNQEZIJKYDc6IL+p7bmWGx3v9ZtcRyIoIz5A==}+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-5+JtW6RKmjqL9un0UtHV0ezOslAyYBzyl5ZhYiu7GHesX2x8NCDl6tXYrenv9m7e1RLbkO5E5Kh04kseMtz6lw==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [darwin]- '@biomejs/[email protected]':- resolution: {integrity: sha512-wJjjP4E7bO4WJmiQaLnsdXMa516dbtC6542qeRkyJg0MqMXP0fvs4gdsHhZ7p9XWTAmGIjZHFKXdsjBvKGIJJQ==}+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-UPmKRalkHicvIpeccuKqq+/gA2HYV8FUnAEDJnqYBlGlycKqe6xrovWqvWTE4TTNpIFf4UQyuaDzLkN6Kz6tbA==}engines: {node: '>=14.21.3'}cpu: [x64]os: [darwin]- '@biomejs/[email protected]':- resolution: {integrity: sha512-CVPEMlin3bW49sBqLBg2x016Pws7eUXA27XYDFlEtponD0luYjg2zQaMJ2nOqlkKG9fqzzkamdYxHdMDc2gZFw==}+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-KhCDMV+V7Yu72v40ssGJTHuv/j0n7JQ6l0s/c+EMcX5zPYLMLr4XpmI+WXhp4Vfkz0T5Xnh5wbrTBI3f2UTpjQ==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [linux]- '@biomejs/[email protected]':- resolution: {integrity: sha512-ZSVf6TYo5rNMUHIW1tww+rs/krol7U5A1Is/yzWyHVZguuB0lBnIodqyFuwCNqG9aJGyk7xIMS8HG0qGUPz0SA==}+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-zeiKwALNB/hax7+LLhCYqhqzlWdTfgE9BGkX2Z8S4VmCYnGFrf2fON/ec6KCos7mra5MDm6fYICsEWN2+HKZhw==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [linux]- '@biomejs/[email protected]':- resolution: {integrity: sha512-mKHE/e954hR/hSnAcJSjkf4xGqZc/53Kh39HVW1EgO5iFi0JutTN07TSjEMg616julRtfSNJi0KNyxvc30Y4rQ==}+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-IyqQ+jYzU5MVy9CK5NV0U+NnUMPUAhYMrB/x4QgL/Dl1MqzBVc61bHeyhLnKM6DSEk73/TQYrk/8/QmVHudLdQ==}engines: {node: '>=14.21.3'}cpu: [x64]os: [linux]- '@biomejs/[email protected]':- resolution: {integrity: sha512-geM1MkHTV1Kh2Cs/Xzot9BOF3WBacihw6bkEmxkz4nSga8B9/hWy5BDiOG3gHDGIBa8WxT0nzsJs2f/hPqQIQw==}+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-05CjPLbvVVU8J6eaO6iSEoA0FXKy2l6ddL+1h/VpiosCmIp3HxRKLOa1hhC1n+D13Z8g9b1DtnglGtM5U3sTag==}engines: {node: '>=14.21.3'}cpu: [x64]os: [linux]- '@biomejs/[email protected]':- resolution: {integrity: sha512-290V4oSFoKaprKE1zkYVsDfAdn0An5DowZ+GIABgjoq1ndhvNxkJcpxPsiYtT7slbVe3xmlT0ncdfOsN7KruzA==}+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-NtlLs3pdFqFAQYZjlEHKOwJEn3GEaz7rtR2oCrzaLT2Xt3Cfd55/VvodQ5V+X+KepLa956QJagckJrNL+DmumQ==}engines: {node: '>=14.21.3'}cpu: [arm64]os: [win32]- '@biomejs/[email protected]':- resolution: {integrity: sha512-bfM1Bce0d69Ao7pjTjUS+AWSZ02+5UHdiAP85Th8e9yV5xzw6JrHXbL5YWlcEKQ84FIZMdDc7ncuti1wd2sdbw==}+ '@biomejs/[email protected]':+ resolution: {integrity: sha512-klJKPPQvUk9Rlp0Dd56gQw/+Wt6uUprHdHWtbDC93f3Iv+knA2tLWpcYoOZJgPV+9s+RBmYv0DGy4mUlr20esg==}engines: {node: '>=14.21.3'}cpu: [x64]os: [win32]@@ -4832,9 +4831,6 @@ packages:resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==}engines: {node: '>=12'}- resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}-resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}engines: {node: '>= 8'}@@ -4846,9 +4842,6 @@ packages:resolution: {integrity: sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==}engines: {node: '>=14'}- resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}-resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}@@ -5249,10 +5242,6 @@ packages:resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==}- resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}- engines: {node: '>= 6'}-resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==}engines: {node: '>=8'}@@ -5497,10 +5486,6 @@ packages:resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}- resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}- engines: {node: '>= 6'}-resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}engines: {node: '>= 10'}@@ -5962,9 +5947,6 @@ packages:resolution: {integrity: sha512-z6cOcajZWxk80zvFnkTGa7tj3oqF+C5SnOF1KSMeAr5/WW/nLNHlEpKr7voSzMz8IaUoq5rjdI0Mqv5k/BUkhg==}- resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}-resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}@@ -5977,9 +5959,6 @@ packages:resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}engines: {node: '>=8'}- resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}-resolution: {integrity: sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw==}engines: {node: '>=6'}@@ -8440,6 +8419,11 @@ packages:resolution: {integrity: sha512-AG7UkLzNa1fxiOv5B+owPsPhtM4D6DoODhsJgiaNg1xowXovrYgOnLqAgOOFQpWOlHFVQUzjMY5ypNNTeov92g==}engines: {node: '>=12'}+ resolution: {integrity: sha512-ntROs7RaN3EvWfy3EZi14H4YxmT6A5YvywfhO+0pm+cH/dnSQRmdAmoFIc3B9aiwTehyk7pESH4ofyBY+V5hZg==}+ engines: {node: '>= 20'}+ hasBin: true+resolution: {integrity: sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==}@@ -8819,9 +8803,6 @@ packages:resolution: {integrity: sha512-kFm5+jbwR5mC+lo+3Cy46eHiykWSpUtTLOH3GE+AR7GeLq8PgfJcvpMiyVWk9/O53DjQsqm6a3VOOfq7gYWFRg==}engines: {node: '>= 8.0'}- resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}-resolution: {integrity: sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==}engines: {node: '>=12.0.0'}@@ -8949,10 +8930,6 @@ packages:resolution: {integrity: sha512-NahvP2vZcy1ZiiYah30CEPw0FpDcSkSePJBMpzl5EQgCmISijiGuJm3SPYp7U+Lf2TljyaIw3E5EgkEx/TNEVA==}- resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}- engines: {node: '>= 6'}-resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}engines: {node: '>= 0.4'}@@ -9364,18 +9341,6 @@ packages:peerDependencies:postcss: ^8.4.31- resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}- engines: {node: '>=14.0.0'}- peerDependencies:- postcss: ^8.0.0-- resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}- engines: {node: ^12 || ^14 || >= 16}- peerDependencies:- postcss: ^8.4.21-resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}engines: {node: '>= 14'}@@ -9458,12 +9423,6 @@ packages:peerDependencies:postcss: ^8.1.0- resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}- engines: {node: '>=12.0'}- peerDependencies:- postcss: ^8.2.14-resolution: {integrity: sha512-a8N9czmdnrjPHa3DeFlwqst5eaL5W8jYu3EBbTTkI5FHkfMhFZh1EGbku6jhHhIzTA6tquI2P42NtZ59M/H/kQ==}engines: {node: ^14 || ^16 || >=18.0}@@ -9825,9 +9784,6 @@ packages:resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}-resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==}engines: {node: '>=8'}@@ -10657,11 +10613,6 @@ packages:resolution: {integrity: sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==}- resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==}- engines: {node: '>=16 || 14 >=14.17'}- hasBin: true-resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}engines: {node: '>=4'}@@ -10804,10 +10755,8 @@ packages:resolution: {integrity: sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA==}- resolution: {integrity: sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==}- engines: {node: '>=14.0.0'}- hasBin: true+ resolution: {integrity: sha512-pONL5awpaQX4LN5eiv7moSiSPd/DLDzKVRJz8Q9PgzmAdd1R4307GQS2ZpfiN7ZmekdQrfhZZiSE5jkLR4WNaA==}resolution: {integrity: sha512-1ZIUqtPITFbv/DxRmDr5/agPqJwF69d24m9qmM1939TJehgY539CtzeZRjbLt5G6fSy/7YqqYsfvoTEw9xUI2A==}@@ -10874,13 +10823,6 @@ packages:resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}- resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}- engines: {node: '>=0.8'}-- resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}-resolution: {integrity: sha512-tDuKQJUTfjvi9Fcrs1s6YAQAB9mzhTSbBZMfNgtWNmJlHuoFeXO6dzBFdGeCWRvYL50jQGK0jPsBZYxqZQJ2SA==}@@ -10989,9 +10931,6 @@ packages:peerDependencies:typescript: '>=4.2.0'- resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}-resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}@@ -12068,8 +12007,6 @@ snapshots:dependencies:'@algolia/client-common': 5.21.0- '@alloc/[email protected]': {}-'@ampproject/[email protected]':dependencies:'@jridgewell/gen-mapping': 0.3.8@@ -13686,39 +13623,39 @@ snapshots:'@bcoe/[email protected]': {}- '@biomejs/[email protected]':+ '@biomejs/[email protected]':optionalDependencies:- '@biomejs/cli-darwin-arm64': 2.0.6- '@biomejs/cli-darwin-x64': 2.0.6- '@biomejs/cli-linux-arm64': 2.0.6- '@biomejs/cli-linux-arm64-musl': 2.0.6- '@biomejs/cli-linux-x64': 2.0.6- '@biomejs/cli-linux-x64-musl': 2.0.6- '@biomejs/cli-win32-arm64': 2.0.6- '@biomejs/cli-win32-x64': 2.0.6+ '@biomejs/cli-darwin-arm64': 2.3.3+ '@biomejs/cli-darwin-x64': 2.3.3+ '@biomejs/cli-linux-arm64': 2.3.3+ '@biomejs/cli-linux-arm64-musl': 2.3.3+ '@biomejs/cli-linux-x64': 2.3.3+ '@biomejs/cli-linux-x64-musl': 2.3.3+ '@biomejs/cli-win32-arm64': 2.3.3+ '@biomejs/cli-win32-x64': 2.3.3- '@biomejs/[email protected]':+ '@biomejs/[email protected]':optional: true- '@biomejs/[email protected]':+ '@biomejs/[email protected]':optional: true- '@biomejs/[email protected]':+ '@biomejs/[email protected]':optional: true- '@biomejs/[email protected]':+ '@biomejs/[email protected]':optional: true- '@biomejs/[email protected]':+ '@biomejs/[email protected]':optional: true- '@biomejs/[email protected]':+ '@biomejs/[email protected]':optional: true- '@biomejs/[email protected]':+ '@biomejs/[email protected]':optional: true- '@biomejs/[email protected]':+ '@biomejs/[email protected]':optional: true'@bundled-es-modules/[email protected]':@@ -15852,6 +15789,13 @@ snapshots:tailwindcss: 4.1.4+ '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@tailwindcss/node': 4.1.4+ '@tailwindcss/oxide': 4.1.4+ tailwindcss: 4.1.4+ vite: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+'@tannin/[email protected]':dependencies:'@tannin/evaluate': 1.2.0@@ -18073,8 +18017,6 @@ snapshots:- [email protected]: {}-dependencies:normalize-path: 3.0.0@@ -18092,8 +18034,6 @@ snapshots:- [email protected]: {}-dependencies:sprintf-js: 1.0.3@@ -18596,8 +18536,6 @@ snapshots:pascal-case: 3.1.2tslib: 2.8.1- [email protected]: {}-dependencies:camelcase: 5.3.1@@ -18888,8 +18826,6 @@ snapshots:- [email protected]: {}-@@ -19336,8 +19272,6 @@ snapshots:- [email protected]: {}-@@ -19346,8 +19280,6 @@ snapshots:dependencies:path-type: 4.0.0- [email protected]: {}-dependencies:'@leichtgewicht/ip-codec': 2.0.5@@ -22324,6 +22256,8 @@ snapshots:dependencies:markdown-it: 12.3.2+ [email protected]: {}+@@ -22905,12 +22839,6 @@ snapshots:seq-queue: 0.0.5sqlstring: 2.3.3- dependencies:- any-promise: 1.3.0- object-assign: 4.1.1- thenify-all: 1.6.0-dependencies:lru-cache: 7.18.3@@ -23047,8 +22975,6 @@ snapshots:- [email protected]: {}-@@ -23470,24 +23396,13 @@ snapshots:dependencies:postcss: 8.5.3- dependencies:- postcss: 8.5.3- postcss-value-parser: 4.2.0- read-cache: 1.0.0- resolve: 1.22.10-- dependencies:- camelcase-css: 2.0.1- postcss: 8.5.3-dependencies:lilconfig: 3.1.3yaml: 2.7.0optionalDependencies:postcss: 8.5.3+ optional: truedependencies:@@ -23558,11 +23473,6 @@ snapshots:icss-utils: 5.1.0([email protected])postcss: 8.5.3- dependencies:- postcss: 8.5.3- postcss-selector-parser: 6.1.2-dependencies:postcss: 8.5.3@@ -23929,10 +23839,6 @@ snapshots:dependencies:loose-envify: 1.4.0- dependencies:- pify: 2.3.0-dependencies:find-up: 4.1.0@@ -24974,16 +24880,6 @@ snapshots:- dependencies:- '@jridgewell/gen-mapping': 0.3.8- commander: 4.1.1- glob: 10.4.5- lines-and-columns: 1.2.4- mz: 2.7.0- pirates: 4.0.6- ts-interface-checker: 0.1.13-dependencies:has-flag: 3.0.0@@ -25121,32 +25017,7 @@ snapshots:- dependencies:- '@alloc/quick-lru': 5.2.0- arg: 5.0.2- chokidar: 3.6.0- didyoumean: 1.2.2- dlv: 1.1.3- fast-glob: 3.3.3- glob-parent: 6.0.2- is-glob: 4.0.3- jiti: 1.21.7- lilconfig: 3.1.3- micromatch: 4.0.8- normalize-path: 3.0.0- object-hash: 3.0.0- picocolors: 1.1.1- postcss: 8.5.3- postcss-import: 15.1.0([email protected])- postcss-js: 4.0.1([email protected])- postcss-load-config: 4.0.2([email protected])- postcss-nested: 6.2.0([email protected])- postcss-selector-parser: 6.1.2- resolve: 1.22.10- sucrase: 3.35.0- transitivePeerDependencies:- - ts-node+ [email protected]: {}@@ -25230,14 +25101,6 @@ snapshots:- dependencies:- thenify: 3.3.1-- dependencies:- any-promise: 1.3.0-@@ -25323,8 +25186,6 @@ snapshots:dependencies:typescript: 5.8.2- [email protected]: {}-dependencies:'@types/json5': 0.0.29diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex ead20dad2..76b6ccce6 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -17,3 +17,4 @@ onlyBuiltDependencies:- esbuild- keytar- msw+ - svelte-preprocess