diff --git a/CHANGELOG.md b/CHANGELOG.md index 1350032..b5dc5e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ All notable changes to Team Tracker are documented here, written for people usin See [CLAUDE.md](CLAUDE.md#changelog) for how and when to update this file. +## [3.6.4] - 2026-11-11 + +### Added +- Double-click the blank space of a task-board column to add a task there; right-click a team in the sidebar to edit or delete it. +- High contrast and Colorblind-safe palettes replace Blueprint and Desert (a saved Blueprint becomes Signal, Desert becomes Field Ledger). + +### Changed +- Every palette and theme now has readable text and icons (AA contrast), and more controls have screen-reader names. +- The Editor tab of Help lists the key tables first and the prose sections last. + +### Fixed +- Pasting plain text mid-list-item no longer splits the item; a space after bold text or an @-mention is no longer doubled; Alt+C closes date calendars again. +- Pictures added after a failed password change are kept when the file is next opened. + ## [3.6.3] - 2026-11-07 ### Added diff --git a/README.md b/README.md index eb9311e..b82d688 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,9 @@ your machine. Team Tracker doesn't: Chromium browsers (Chrome, Edge, Brave): phones and tablets get a notice instead of the app, since mobile browsers lack the File System Access API the open/save flow depends on. -- ๐ŸŽจ **Yours to tune** โ€” 12 color palettes, light/dark/system theme, 7 font - stacks, adjustable font size, and pt-BR/en-US locales, all in Settings. +- ๐ŸŽจ **Yours to tune** โ€” 12 color palettes (high-contrast and colorblind-safe + among them), light/dark/system theme, 7 font stacks, adjustable font size, + and pt-BR/en-US locales, all in Settings. ## Getting started diff --git a/e2e/a11y.spec.ts b/e2e/a11y.spec.ts index 094bfcc..3a2b434 100644 --- a/e2e/a11y.spec.ts +++ b/e2e/a11y.spec.ts @@ -1,7 +1,8 @@ -// e2e/a11y.spec.ts โ€” automated accessibility scan (axe-core) of the three -// surfaces a keyboard-driven app most needs to keep clean: the start screen, -// the main shell with a document open, and an open modal dialog. Nothing else -// in the suite checks ARIA roles/names, focus semantics, or contrast. +// e2e/a11y.spec.ts โ€” automated accessibility scan (axe-core): the start +// screen, the main shell, every module with real content in it, and the +// overlays a keyboard user lives in (Settings, fast switch, Help, the card +// editor). Nothing else in the suite checks ARIA roles/names, focus +// semantics, or contrast. // // Served over http://localhost (secure context) via the OPFS picker shim, the // same setup fs-api.spec.ts uses, so the real create โ†’ shell flow runs. @@ -10,10 +11,40 @@ import AxeBuilder from '@axe-core/playwright' import { E2E_BASE_URL } from '../playwright.config' import { installOpfsPickerShim } from './opfs-shim' import { createEncryptedDoc, blockUpdateCheck } from './helpers' +import { buildDoc, openDoc, TEAM_ID } from './layout-fixtures' +import type { Doc, ModuleRef, PaletteId } from '../src/core/types' + +const TODAY = new Date().toLocaleDateString('en-CA') + +type Theme = 'light' | 'dark' +const THEMES: Theme[] = ['light', 'dark'] + +/** layout-fixtures' busy document (some tasks due today, the rest overdue), plus the note content its builder leaves empty. */ +function contentDoc(ref: ModuleRef, theme: Theme = 'light', palette: PaletteId = 'ledger', splitRight?: ModuleRef): Doc { + const doc = buildDoc('M', ref, { stakeholderRoots: 3, milestones: 'spread', dueToday: true, ...(splitRight ? { splitRight } : {}) }) + doc.prefs.theme = theme + doc.prefs.palette = palette + const team = doc.teams.find((t) => t.id === TEAM_ID)! + const note = '# Weekly sync\n\n- **Decision**: ship on Friday\n- Follow up with [link](https://example.com)\n\n> Quote\n\n```\ncode()\n```' + team.dailyNotes[TODAY] = note + team.generalNotes = note + team.stakeholders[0]!.notes = note + team.risks[0]!.followup = note + team.milestones[0]!.followup = note + return doc +} // WCAG 2 A/AA is the bar; scope each scan to the surface under test. -const scan = (page: Page, selector: string) => - new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']).include(selector).analyze() +const scan = (page: Page, selector: string, skipRules: string[] = []) => + new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']).include(selector).disableRules(skipRules).analyze() + +/** One line per offending node (`rule: selector โ€” html`), so a failure reads at a glance instead of as axe's raw dump. */ +const violations = (results: Awaited>): string[] => + results.violations.flatMap((v) => v.nodes.map((n) => { + const c = n.any[0]?.data as { fgColor?: string; bgColor?: string; contrastRatio?: number } | null | undefined + const ratio = c?.contrastRatio ? ` [${c.fgColor} on ${c.bgColor} = ${c.contrastRatio}]` : '' + return `${v.id}: ${n.target.join(' ')}${ratio} โ€” ${n.html.slice(0, 140)}` + })) test.describe('accessibility (axe-core)', () => { test('start screen has no WCAG A/AA violations', async ({ page }) => { @@ -23,7 +54,7 @@ test.describe('accessibility (axe-core)', () => { await expect(page.locator('.tt-start-screen')).toBeVisible() const results = await scan(page, '.tt-start-screen') - expect(results.violations).toEqual([]) + expect(violations(results)).toEqual([]) }) test('main shell (document open, first team created) has no WCAG A/AA violations', async ({ page }) => { @@ -39,7 +70,7 @@ test.describe('accessibility (axe-core)', () => { await teamDialog.waitFor({ state: 'hidden' }) const results = await scan(page, '.tt-shell') - expect(results.violations).toEqual([]) + expect(violations(results)).toEqual([]) }) test('the Settings modal has no WCAG A/AA violations', async ({ page }) => { @@ -53,6 +84,73 @@ test.describe('accessibility (axe-core)', () => { await expect(dialog).toBeVisible() const results = await scan(page, '.tt-modal-overlay') - expect(results.violations).toEqual([]) + expect(violations(results)).toEqual([]) }) + + const MODULES: Array<[string, ModuleRef]> = [ + ['daily notes', { kind: 'daily', date: TODAY }], + ['general notes', { kind: 'general' }], + ['stakeholders', { kind: 'stakeholders' }], + ['members (empty)', { kind: 'members' }], + ['person notes', { kind: 'person', personId: 's0', group: 'stakeholders' }], + ['tasks (kanban)', { kind: 'actions' }], + ['milestones', { kind: 'milestones' }], + ['risks', { kind: 'risks' }], + ] + // Both themes: contrast is a per-theme property, and the default palette is what most users run. + for (const theme of THEMES) { + for (const [name, ref] of MODULES) { + test(`the ${name} module has no WCAG A/AA violations (${theme})`, async ({ page }) => { + await openDoc(page, contentDoc(ref, theme)) + await expect(page.locator('.tt-pane-body').first()).not.toBeEmpty() + const results = await scan(page, '.tt-shell') + expect(violations(results)).toEqual([]) + }) + } + + const OVERLAYS: Array<[string, ModuleRef, (page: Page) => Promise, string, string[]]> = [ + // The result list scrolls without being a Tab stop: focus stays in the input, whose arrows move the selection + // and scroll it into view. (It still lacks combobox/listbox semantics โ€” a known gap, not hidden by this.) + ['the fast switch', { kind: 'daily', date: TODAY }, (page) => page.keyboard.press('Control+Shift+K'), '.tt-palette-overlay', ['scrollable-region-focusable']], + ['Help', { kind: 'daily', date: TODAY }, (page) => page.keyboard.press('F1'), '.tt-modal-overlay', []], + ['the task editor', { kind: 'actions' }, (page) => page.locator('.tt-kanban-card').first().dblclick(), '.tt-modal-overlay', []], + ] + for (const [name, ref, open, overlay, skipRules] of OVERLAYS) { + test(`${name} has no WCAG A/AA violations (${theme})`, async ({ page }) => { + await openDoc(page, contentDoc(ref, theme)) + await open(page) + await expect(page.getByRole('dialog')).toBeVisible() + const results = await scan(page, overlay, skipRules) + expect(violations(results)).toEqual([]) + }) + } + } +}) + +// The other palettes, for contrast only (nothing else varies by palette): every module, two per page in split view, +// plus the task editor (the danger button on a tinted dialog). test/palette-contrast.test.ts proves the token recipes +// statically; this catches a surface that uses a recipe it does not know about. +const PALETTES: PaletteId[] = ['signal', 'forest', 'cosmic', 'synthwave', 'verdant', 'ember', 'graphite', 'rose', 'citrus', 'contrast', 'colorsafe'] +test.describe('palette contrast (axe-core color-contrast)', () => { + for (const palette of PALETTES) { + for (const theme of THEMES) { + test(`${palette} ${theme}: every module and the task editor read at AA`, async ({ page }) => { + const contrast = (selector: string) => + new AxeBuilder({ page }).withRules(['color-contrast']).include(selector).analyze() + const SPLITS: Array<[ModuleRef, ModuleRef]> = [ + [{ kind: 'milestones' }, { kind: 'daily', date: TODAY }], + [{ kind: 'stakeholders' }, { kind: 'person', personId: 's0', group: 'stakeholders' }], + [{ kind: 'actions' }, { kind: 'risks' }], + ] + for (const [left, right] of SPLITS) { + await openDoc(page, contentDoc(left, theme, palette, right)) + await expect(page.locator('.tt-pane-body').nth(1)).not.toBeEmpty() + expect(violations(await contrast('.tt-shell')), `${left.kind} | ${right.kind}`).toEqual([]) + } + await page.locator('.tt-kanban-card').first().dblclick() + await expect(page.getByRole('dialog')).toBeVisible() + expect(violations(await contrast('.tt-modal-overlay'))).toEqual([]) + }) + } + } }) diff --git a/e2e/editor-scenarios.spec.ts b/e2e/editor-scenarios.spec.ts new file mode 100644 index 0000000..0fa80cd --- /dev/null +++ b/e2e/editor-scenarios.spec.ts @@ -0,0 +1,175 @@ +// e2e/editor-scenarios.spec.ts โ€” editing behavior as a table, in real Chromium. +// +// test/editor.test.ts runs under jsdom, which has no document.execCommand, no +// real selection model and no layout, so most of the editor's bugs (paste, +// undo, list structure, autoformat) can only be seen here. Each row is: the +// note as it starts (markdown, with โ€ธ marking the caret โ€” two of them mark a +// selection), the steps a user takes, and the markdown the app SAVES โ€” read +// back from the browser copy, the same bytes the file gets. Adding a +// regression is one row. +// +// Step strings are typed; press()/paste()/pasteHtml()/waitFor() build the others. +import { test, expect, type Page } from '@playwright/test' +import { openDoc } from './layout-fixtures' +import { flushLiveCopy } from './helpers' +import { createEmptyDocument, createEmptyTeam } from '../src/core/document' +import type { Doc } from '../src/core/types' + +const TEAM = 'team-0' +const TODAY = new Date().toLocaleDateString('en-CA') +const CARET = 'โ€ธ' + +type Step = string | { press: string } | { paste: Record } | { wait: string } +const press = (key: string): Step => ({ press: key }) +const paste = (text: string): Step => ({ paste: { 'text/plain': text } }) +const pasteHtml = (html: string, text: string): Step => ({ paste: { 'text/html': html, 'text/plain': text } }) +/** Waits for `selector` to be visible (a picker opening on what was typed). */ +const waitFor = (selector: string): Step => ({ wait: selector }) + +interface Row { + name: string + /** + * The note before the steps; โ€ธ is the caret, two โ€ธ a selection. Empty: an empty note, caret in it. It loads as + * markdown, so a space at the end of a line is not kept โ€” type it as a step instead. + */ + start: string + steps: Step[] + /** The note's saved markdown afterwards. */ + saved: string +} + +const ROWS: Row[] = [ + // --- typing and autoformat -------------------------------------------------- + { name: '"- " starts a bulleted list, Enter continues it', start: '', steps: ['- one', press('Enter'), 'two'], saved: '- one\n- two' }, + { name: '"1. " starts a numbered list', start: '', steps: ['1. a', press('Enter'), 'b'], saved: '1. a\n2. b' }, + { name: '"> " starts a quote', start: '', steps: ['> q'], saved: '> q' }, + // The editor parks the caret after the bold in a space of its own; the space typed next is that one, not a second. + { name: '"**x**" becomes bold as the closing marker is typed, and the next space is not doubled', start: '', steps: ['a **b** c'], saved: 'a **b** c' }, + { name: 'two spaces typed after the bold stay two', start: '', steps: ['a **b** c'], saved: 'a **b** c' }, + { name: 'an @-mention picked from the list, then a space and a word: one space', start: '', steps: ['see @Ana', waitFor('.tt-atref-dropdown'), press('Enter'), ' x'], saved: 'see @[Ana](person:p1) x' }, + { name: '"# " on the line under text makes THAT line a heading', start: `above${CARET}`, steps: [press('Enter'), '# Title'], saved: 'above\n# Title' }, + { name: 'Ctrl+1 on a blank line under text makes that line a heading', start: `text${CARET}`, steps: [press('Enter'), press('Control+1'), 'H'], saved: 'text\n# H' }, + { name: 'Ctrl+B bolds the selected word', start: `a ${CARET}word${CARET} b`, steps: [press('Control+b')], saved: 'a **word** b' }, + + // --- list structure --------------------------------------------------------- + { name: 'Enter mid-item splits the item', start: `- ab${CARET}cd`, steps: [press('Enter')], saved: '- ab\n- cd' }, + { name: 'Enter on an empty item ends the list', start: `- a${CARET}`, steps: [press('Enter'), press('Enter'), 'p'], saved: '- a\np' }, + { name: 'Tab nests an item', start: `- a\n- b${CARET}`, steps: [press('Tab')], saved: '- a\n - b' }, + { name: 'Shift+Tab lifts a nested item', start: `- a\n - b${CARET}`, steps: [press('Shift+Tab')], saved: '- a\n- b' }, + { name: 'Enter on the empty last line of a quote leaves the quote', start: `> q${CARET}`, steps: [press('Enter'), press('Enter'), 'after'], saved: '> q\nafter' }, + + // --- paste ------------------------------------------------------------------ + { name: 'plain text pasted mid-item stays inside the item', start: `- ab${CARET}cd`, steps: [paste('XY')], saved: '- abXYcd' }, + { name: 'plain text pasted mid-paragraph', start: `ab${CARET}cd`, steps: [paste('XY')], saved: 'abXYcd' }, + { name: 'an HTML list pasted into an empty note becomes a real list', start: '', steps: [pasteHtml('
  • one
  • two
', 'one\ntwo')], saved: '- one\n- two' }, + { name: 'blocks inside one pasted list item save as sibling items', start: '', steps: [pasteHtml('
  • a

    b

', 'a\nb')], saved: '- a\n- b' }, + { name: 'styled HTML pasted into a heading keeps a plain heading', start: `# He${CARET}ad`, steps: [pasteHtml('X', 'X')], saved: '# HeXad' }, + { name: 'HTML pasted inside a code block lands as its literal text', start: `\`\`\`\ncode${CARET}\n\`\`\``, steps: [pasteHtml('bold', 'bold')], saved: '```\ncodebold\n```' }, + + // --- undo / redo ------------------------------------------------------------ + { name: 'Ctrl+Z takes a paste back', start: `ab${CARET}`, steps: [paste('XY'), press('Control+z')], saved: 'ab' }, + { name: 'Ctrl+Z takes a Tab back', start: `- a\n- b${CARET}`, steps: [press('Tab'), press('Control+z')], saved: '- a\n- b' }, + { name: 'Ctrl+Shift+Z redoes the Tab', start: `- a\n- b${CARET}`, steps: [press('Tab'), press('Control+z'), press('Control+Shift+z')], saved: '- a\n - b' }, +] + +function noteDoc(note: string): Doc { + const doc = createEmptyDocument('en-US') + const team = createEmptyTeam(TEAM, 'Team', '๐Ÿ“', 'en-US') + team.dailyNotes[TODAY] = note + team.members.push({ id: 'p1', name: 'Ana', role: '', parentId: null, order: 0, notes: '' }) + doc.teams.push(team) + doc.nav.activeTeamId = TEAM + doc.nav.panes = [{ history: [{ teamId: TEAM, ref: { kind: 'daily', date: TODAY } }], index: 0 }, { history: [], index: -1 }] + return doc +} + +/** Focuses the editor and turns its โ€ธ markers into the selection (an empty note: caret in its first block). */ +async function placeCaret(page: Page): Promise { + await page.evaluate((mark) => { + const ed = document.querySelector('.editor')! + ed.focus() + const points: Array<[Node, number]> = [] + const walker = document.createTreeWalker(ed, NodeFilter.SHOW_TEXT) + const nodes: Text[] = [] + for (let n = walker.nextNode(); n; n = walker.nextNode()) nodes.push(n as Text) + // Last marker first, so removing it leaves the earlier offsets valid. + for (const node of nodes.reverse()) { + for (let i = node.data.lastIndexOf(mark); i !== -1; i = node.data.lastIndexOf(mark, i - 1)) { + node.deleteData(i, mark.length) + points.unshift([node, i]) + if (i === 0) break + } + } + for (const [node] of points) { + const block = node.parentElement! + if (block.textContent === '' && !block.querySelector('br')) block.appendChild(document.createElement('br')) + } + const range = document.createRange() + if (points.length === 0) { + range.selectNodeContents(ed.firstElementChild ?? ed) + range.collapse(true) + } else { + const [a, b] = [points[0]!, points[points.length - 1]!] + const at = (p: [Node, number]): [Node, number] => ((p[0] as Text).data === '' ? [p[0].parentElement!, 0] : p) + range.setStart(...at(a)) + range.setEnd(...at(b)) + } + const sel = getSelection()! + sel.removeAllRanges() + sel.addRange(range) + }, CARET) +} + +/** A real paste event at the current selection: the app reads only `clipboardData`, and its execCommand is the browser's. */ +async function dispatchPaste(page: Page, data: Record): Promise { + await page.evaluate((data) => { + const dt = new DataTransfer() + for (const [type, value] of Object.entries(data)) dt.setData(type, value) + document.querySelector('.editor')!.dispatchEvent(new ClipboardEvent('paste', { clipboardData: dt, bubbles: true, cancelable: true })) + }, data) +} + +/** The note as the browser copy holds it once the editors and the store are flushed (plain document: rows are JSON text). */ +async function savedNote(page: Page): Promise { + await flushLiveCopy(page) + return page.evaluate(async (path) => { + const db: IDBDatabase = await new Promise((resolve, reject) => { + const req = indexedDB.open('team-tracker-live') + req.onsuccess = () => resolve(req.result) + req.onerror = () => reject(req.error ?? new Error('open failed')) + }) + const rows: unknown[] = await new Promise((resolve, reject) => { + const r = db.transaction('records', 'readonly').objectStore('records').getAll() + r.onsuccess = () => resolve(r.result as unknown[]) + r.onerror = () => reject(r.error ?? new Error('read failed')) + }) + db.close() + const seen: string[] = [] + // live-db.ts: { docId, key, value }, where a plain document's value is { t: JSON text of { path, value } }. + for (const row of rows) { + const text = ((row as { value?: { t?: unknown } }).value)?.t + if (typeof text !== 'string') { seen.push(JSON.stringify(row).slice(0, 80)); continue } + const rec = JSON.parse(text) as { path: string; value: unknown } + if (rec.path === path) return String(rec.value) + seen.push(rec.path) + } + throw new Error(`no saved record ${path}; found: ${seen.join(', ')}`) + }, `team/${TEAM}/daily/${TODAY}`) +} + +test.describe('editor scenarios (real browser, saved markdown)', () => { + for (const row of ROWS) { + test(row.name, async ({ page }) => { + await openDoc(page, noteDoc(row.start)) + await expect(page.locator('.editor').first()).toBeVisible() + await placeCaret(page) + for (const step of row.steps) { + if (typeof step === 'string') await page.keyboard.type(step) + else if ('press' in step) await page.keyboard.press(step.press) + else if ('wait' in step) await expect(page.locator(step.wait)).toBeVisible() + else await dispatchPaste(page, step.paste) + } + expect(await savedNote(page)).toBe(row.saved) + }) + } +}) diff --git a/e2e/scroll-and-overflow.spec.ts b/e2e/scroll-and-overflow.spec.ts index a272241..fdb813e 100644 --- a/e2e/scroll-and-overflow.spec.ts +++ b/e2e/scroll-and-overflow.spec.ts @@ -105,3 +105,33 @@ test('risk rows keep every control inside the row border, at XL in split view, a expect(out, `window ${w}px`).toEqual([]) } }) + +// The Exposure header must read whole beside its sort arrow in every font stack, text size and language: a fixed +// column width clipped the arrow first, then "Exposure" itself under a wider font. The column now sizes itself from +// the header text, and the rows' exposure cells and gutters must follow it. +const FONTS = ['system', 'serif', 'mono', 'classic', 'rounded', 'segoe', 'legible'] as const +for (const locale of ['en-US', 'pt-BR'] as const) { + test(`risk header (${locale}): Exposure and its sort arrow read whole in every font and size, and the rows line up`, async ({ page }) => { + const doc = buildDoc('M', { kind: 'risks' }, { locale }) + await openDoc(page, doc) + for (const font of FONTS) { + for (const size of ['XS', 'M', 'XL'] as const) { + // Applied the way Preferences does: on , with no re-render of the module. + await page.evaluate(([f, z]) => { document.documentElement.dataset.font = f; document.documentElement.dataset.size = z }, [font, size]) + await expect.poll(() => page.locator('.tt-risk-header-exposure').evaluate((b) => { + const label = b.querySelector('.tt-risk-header-exposure-label')! + const arrow = b.querySelector('svg')!.getBoundingClientRect() + const box = b.getBoundingClientRect() + const cell = document.querySelector('.tt-risk-exposure-cell')!.getBoundingClientRect() + const rem = parseFloat(getComputedStyle(document.documentElement).fontSize) + return { + labelWhole: label.scrollWidth <= label.clientWidth, + arrowInside: arrow.left >= box.left - 0.5 && arrow.right <= box.right + 0.5, + // styles.css: the header is .3rem - 1px narrower than the column it heads + rowsLineUp: Math.abs(cell.width - (box.width + 0.3 * rem - 1)) <= 1, + } + }), `${font} ${size}`).toEqual({ labelWhole: true, arrowInside: true, rowsLineUp: true }) + } + } + }) +} diff --git a/package-lock.json b/package-lock.json index bd5b28b..77a07d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,62 +1,29 @@ { "name": "team-tracker", - "version": "3.6.3", + "version": "3.6.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "team-tracker", - "version": "3.6.3", + "version": "3.6.4", "license": "AGPL-3.0-only", "devDependencies": { "@axe-core/playwright": "^4.13.0", "@eslint/js": "^10.0.1", - "@playwright/test": "~1.64.1", + "@playwright/test": "1.65.0", "esbuild": "^0.28.1", "eslint": "^10.12.0", - "fake-indexeddb": "^6.2.5", - "jsdom": "^30.1.1", + "fake-indexeddb": "^6.2.8", + "jsdom": "^31.0.0", "typescript": "^6.0.3", - "typescript-eslint": "^8.71.0", - "vitest": "^5.0.2" + "typescript-eslint": "^8.72.2", + "vitest": "^5.1.0" }, "engines": { "node": ">=24" } }, - "node_modules/@asamuzakjp/css-color": { - "version": "7.1.9", - "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-7.1.9.tgz", - "integrity": "sha512-vZ6JQVq8Ivgz6b/IBlAf90wZviXdluY13cQOPO+nJHbmXwGrPl2GcpqUY7a55/8ZVdfONXpCFMpRijOBCHNlcQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@csstools/css-calc": "^3.4.3", - "@csstools/css-color-parser": "^4.2.6", - "@csstools/css-parser-algorithms": "^4.0.2", - "@csstools/css-tokenizer": "^4.0.2", - "lru-cache": "^11.5.3" - }, - "engines": { - "node": "^22.22.2 || ^24.15.0 || >=26.0.0" - } - }, - "node_modules/@asamuzakjp/dom-selector": { - "version": "10.0.5", - "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-10.0.5.tgz", - "integrity": "sha512-EgmJ7oEaGQECTn3H3wmnQpEy4hKY66VvM7VQndwPIQob3p877BgbyOUE3EX0LgXQCciF2H8KMdR+RznqjMNOLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "bidi-js": "^1.1.0", - "css-tree": "^3.2.1", - "is-potential-custom-element-name": "^1.0.1", - "lru-cache": "^11.5.3" - }, - "engines": { - "node": "^22.22.2 || ^24.15.0 || >=26.0.0" - } - }, "node_modules/@axe-core/playwright": { "version": "4.14.0", "resolved": "https://registry.npmjs.org/@axe-core/playwright/-/playwright-4.14.0.tgz", @@ -73,19 +40,6 @@ "playwright-core": ">= 1.0.0" } }, - "node_modules/@bramus/specificity": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.3.tgz", - "integrity": "sha512-0GEz8qJWokkUVYQYRukmkSHIFNoBH8QTreeHrAFbvz1XFYc3Y+puhMs8PQ5x8GNugiC2l5jvDBXKLbBIByeSBw==", - "dev": true, - "license": "MIT", - "dependencies": { - "css-tree": "^3.2.1" - }, - "bin": { - "specificity": "bin/cli.js" - } - }, "node_modules/@cacheable/memory": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz", @@ -110,144 +64,41 @@ "keyv": "^5.6.0" } }, - "node_modules/@csstools/color-helpers": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.2.tgz", - "integrity": "sha512-grhRy3OKmniaAEKXMjua5z/EODX0MSqBGjunw8+j/3HQjOnahs2AGhvEOIYVUWcU6ScApbhLhVrQTX8XqrMrow==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "license": "MIT-0", - "engines": { - "node": ">=20.19.0" - } - }, - "node_modules/@csstools/css-calc": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.4.3.tgz", - "integrity": "sha512-iex20d8CHVkyvg6B7UKV7uHnI2Bqo9g+EFfT9E0y+GvTvhZ/DwONJ+9aKb1dlqm0ZiGsL5RXjp0fCoJYnkeDjA==", + "node_modules/@emnapi/core": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz", + "integrity": "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "license": "MIT", - "engines": { - "node": ">=20.19.0" - }, - "peerDependencies": { - "@csstools/css-parser-algorithms": "^4.0.2", - "@csstools/css-tokenizer": "^4.0.2" - } - }, - "node_modules/@csstools/css-color-parser": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.2.6.tgz", - "integrity": "sha512-iiPQ3iRWwnJkeEn6RIu6SJPr7hYrLz6XZ9s/QZl+2/LI5KQVjpl2fdmDSZKuD4xP6GMmMPgHFFXg6k1Wkz0Trg==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], "license": "MIT", + "optional": true, + "peer": true, "dependencies": { - "@csstools/color-helpers": "^6.1.2", - "@csstools/css-calc": "^3.4.3" - }, - "engines": { - "node": ">=20.19.0" - }, - "peerDependencies": { - "@csstools/css-parser-algorithms": "^4.0.2", - "@csstools/css-tokenizer": "^4.0.2" + "@emnapi/wasi-threads": "2.2.0", + "tslib": "^2.4.0" } }, - "node_modules/@csstools/css-parser-algorithms": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.2.tgz", - "integrity": "sha512-40cSKyMvK+tq4qz6Awrlye2WGuOKt3FwPgtGg6KTfbHOWNw+Rk1rzbAtZnZ6IBhsY491HLRnDXwoyBAijmmILA==", + "node_modules/@emnapi/runtime": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.2.tgz", + "integrity": "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], "license": "MIT", - "engines": { - "node": ">=20.19.0" - }, - "peerDependencies": { - "@csstools/css-tokenizer": "^4.0.2" - } - }, - "node_modules/@csstools/css-syntax-patches-for-csstree": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.15.tgz", - "integrity": "sha512-J0u7HkVl2nzSlhsiTOp4AmwcUQ3D+mGEEKfBy/7To5/y7F2OHwyLrXfrhR0SMgr4p5Lo+eaMVSeai24zUcBIxA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "license": "MIT-0", - "peerDependencies": { - "css-tree": "^3.2.1" - }, - "peerDependenciesMeta": { - "css-tree": { - "optional": true - } + "optional": true, + "peer": true, + "dependencies": { + "tslib": "^2.4.0" } }, - "node_modules/@csstools/css-tokenizer": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.2.tgz", - "integrity": "sha512-OoKoR0f76dCY666JlcbhmVTs2drYj1GUXZTYTcbUgJjh9Nv41aFfZ21bPQTERm5+L5cBDo466NltB2lplS5GBw==", + "node_modules/@emnapi/wasi-threads": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz", + "integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], "license": "MIT", - "engines": { - "node": ">=20.19.0" + "optional": true, + "peer": true, + "dependencies": { + "tslib": "^2.4.0" } }, "node_modules/@esbuild/aix-ppc64": { @@ -956,10 +807,33 @@ "dev": true, "license": "MIT" }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz", + "integrity": "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || 2.0.0-beta.2", + "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2" + } + }, "node_modules/@oxc-project/types": { - "version": "0.155.0", - "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.155.0.tgz", - "integrity": "sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==", + "version": "0.156.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz", + "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==", "dev": true, "license": "MIT", "peer": true, @@ -968,13 +842,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.64.1.tgz", - "integrity": "sha512-IaYGml/nSOiZWROfPtuIL7neuu9qDOZ3TNvNljUIrhDMxiGTgPjzj/g9p9RxpS2tSepPDRY+UwAaEeiKtUvIAg==", + "version": "1.65.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.65.0.tgz", + "integrity": "sha512-iGURLGuKDLakSEl7Pgfv8h7f+XLT+V861Wfhz0zlEl5nyFuKUopdkFBPKqTllTUp06aOwPuH8iuUEb3yp3MpbQ==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.64.1" + "playwright": "1.65.0" }, "bin": { "playwright": "cli.js" @@ -984,9 +858,9 @@ } }, "node_modules/@rolldown/binding-android-arm-eabi": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.15.tgz", - "integrity": "sha512-aLcgK9gIJ3YRvrrtfSBbRa27F5WrpiTaPulnFpsHPxpUHgFlSgnU4854MHwoRGEBhfRJDWCS2WQ7lIjskE9Olw==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.19.tgz", + "integrity": "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==", "cpu": [ "arm" ], @@ -1002,9 +876,9 @@ } }, "node_modules/@rolldown/binding-android-arm64": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.15.tgz", - "integrity": "sha512-xD7DdZCrbThKuxNg7ooQmvp07ys4J/pnSEMTG3/OdOWl6daC67m/Q4fL78sRHMxTH/N4fGUbYhcPM0MF5WFHkg==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.19.tgz", + "integrity": "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==", "cpu": [ "arm64" ], @@ -1020,9 +894,9 @@ } }, "node_modules/@rolldown/binding-darwin-arm64": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.15.tgz", - "integrity": "sha512-m2WuQ6r0B4OTYxyPpNLtXaMRbRDUbG8YQV2Q3KTdSSK8Th6KHCnC8jVCJt8bvYeSB5WivkkNbc85mKadaSdOxA==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.19.tgz", + "integrity": "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==", "cpu": [ "arm64" ], @@ -1038,9 +912,9 @@ } }, "node_modules/@rolldown/binding-darwin-x64": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.15.tgz", - "integrity": "sha512-5RtnsHM36nodM9WbMy+zip0LGS/G+y5wro5RHrpOlr4ac24+1zSi9kiV2MP1myZeZ/ifEHfulQcWjnAXzc2C2A==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.19.tgz", + "integrity": "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==", "cpu": [ "x64" ], @@ -1056,9 +930,9 @@ } }, "node_modules/@rolldown/binding-freebsd-x64": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.15.tgz", - "integrity": "sha512-g3l09pyFqhu+135JKkbkwiKGQmwU5hUMUPJ4VdBADvuqR8d33L6H578rh8m7rtxbdp+VmX/+nzI7nvhSZlzpUQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.19.tgz", + "integrity": "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==", "cpu": [ "x64" ], @@ -1074,9 +948,9 @@ } }, "node_modules/@rolldown/binding-linux-arm-gnueabihf": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.15.tgz", - "integrity": "sha512-nIe3VugI97nGQtspPxDqA4sXMUpeiocKIP/CqpY/u/vgbT+alX+cVxu1C/oVBPKg4feNTmYovE91v4DgXvXNwQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.19.tgz", + "integrity": "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==", "cpu": [ "arm" ], @@ -1092,9 +966,9 @@ } }, "node_modules/@rolldown/binding-linux-arm64-gnu": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.15.tgz", - "integrity": "sha512-iTBjXx+B5QSvgI89lJfmqh4wTh8NabR1YZIIN3hNx4zSG0EVfVqkOvLulNpG4251pbd6/IAmZ/LefVk1Y4rPhw==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.19.tgz", + "integrity": "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==", "cpu": [ "arm64" ], @@ -1113,9 +987,9 @@ } }, "node_modules/@rolldown/binding-linux-arm64-musl": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.15.tgz", - "integrity": "sha512-uN26XOnVR7rqQupG3V9oAG2EGGatWjcJHOeDOHUFCh4TBWmP2tHTFoVN13aYbwfm0aHqJAEmcwhAu6sooIjfqQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.19.tgz", + "integrity": "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==", "cpu": [ "arm64" ], @@ -1134,9 +1008,9 @@ } }, "node_modules/@rolldown/binding-linux-ppc64-gnu": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.15.tgz", - "integrity": "sha512-9nWkcdd+H+XhaA3fQIwpHnKIrfx/PQ6rO0pivr78Og07tXlUlctBBJoEYLPfhTmCR/QxEVdn6uPjHV5SymPhdw==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.19.tgz", + "integrity": "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==", "cpu": [ "ppc64" ], @@ -1155,9 +1029,9 @@ } }, "node_modules/@rolldown/binding-linux-s390x-gnu": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.15.tgz", - "integrity": "sha512-Ggh0ciFjLwIusLSLz7LZYEaGdxOAUJXI+Qu5JCbhPJJHEt8vP+IjRATTJheiJsdzzTYgUiHUiw3X1Ea3ZpMBdA==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.19.tgz", + "integrity": "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==", "cpu": [ "s390x" ], @@ -1176,9 +1050,9 @@ } }, "node_modules/@rolldown/binding-linux-x64-gnu": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.15.tgz", - "integrity": "sha512-FHg60rS6DBePAYZ9X9F67x+JObFdmgn6tupA1C/a3B+CufFmTD4mX+e8M75tCiAO3foR/6xwVBI0KQiI7sn/rw==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.19.tgz", + "integrity": "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==", "cpu": [ "x64" ], @@ -1197,9 +1071,9 @@ } }, "node_modules/@rolldown/binding-linux-x64-musl": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.15.tgz", - "integrity": "sha512-/cvV/7v5VGz/moiz0XKRj2dE8DzsKyhIu1KpOvJGPjRywg3yscON889UGvAe8zfiJLHup7VLjBduoGWi3HusWQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.19.tgz", + "integrity": "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==", "cpu": [ "x64" ], @@ -1218,9 +1092,9 @@ } }, "node_modules/@rolldown/binding-openharmony-arm64": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.15.tgz", - "integrity": "sha512-MyzC5Hrv/sm+Z7TSGKP/j8001RO2xQm1zOpCNVL4j0cY/VhBZviludA2YFQ7i4lH6ZAXxQm0lcMdBzM+99mE7w==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.19.tgz", + "integrity": "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==", "cpu": [ "arm64" ], @@ -1235,10 +1109,30 @@ "node": "^20.19.0 || >=22.12.0" } }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.2.19.tgz", + "integrity": "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@emnapi/core": "2.0.0-beta.2", + "@emnapi/runtime": "2.0.0-beta.2", + "@napi-rs/wasm-runtime": "1.2.6" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, "node_modules/@rolldown/binding-win32-arm64-msvc": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.15.tgz", - "integrity": "sha512-+PgYiS+AH5omy6L45ZLxybasauJaj3M8buoT83D+nzPmCayXlxUV9hydhciCKVyIg0B/v0BtXPDE1uGqNwCPpg==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.19.tgz", + "integrity": "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==", "cpu": [ "arm64" ], @@ -1254,9 +1148,9 @@ } }, "node_modules/@rolldown/binding-win32-x64-msvc": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.15.tgz", - "integrity": "sha512-HFZd2QNQYn1JbIi+Hpd7H+r/lkWxcfIu28nirZ6eCn2LafuvmExMlb/P96Sfx5tf7pPArw39IdhmCF8vmV+NhQ==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.19.tgz", + "integrity": "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==", "cpu": [ "x64" ], @@ -1272,13 +1166,25 @@ } }, "node_modules/@rolldown/pluginutils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", - "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.1.0.tgz", + "integrity": "sha512-K+NU2HDCEem4sClgHH4ZZXwdJeNFkJo+hRk479DIwdIviAPN2hFJH1KHHwg8CxHQXvi0M5XY4deTXINfIiSG6w==", "dev": true, "license": "MIT", "peer": true }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz", + "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@types/chai": { "version": "5.2.3", "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", @@ -1319,17 +1225,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.72.1.tgz", - "integrity": "sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.72.2.tgz", + "integrity": "sha512-222PKFXKihmFpi/pS5njoBgdAqsPhj2/GBmFbrNw8Tq8gEG9Sv+kSlKFy4u2q+mJv9ZzJgM2Gkv/bUzRZwZw5g==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.72.1", - "@typescript-eslint/type-utils": "8.72.1", - "@typescript-eslint/utils": "8.72.1", - "@typescript-eslint/visitor-keys": "8.72.1", + "@typescript-eslint/scope-manager": "8.72.2", + "@typescript-eslint/type-utils": "8.72.2", + "@typescript-eslint/utils": "8.72.2", + "@typescript-eslint/visitor-keys": "8.72.2", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -1342,7 +1248,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.72.1", + "@typescript-eslint/parser": "^8.72.2", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } @@ -1358,16 +1264,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.72.1.tgz", - "integrity": "sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.72.2.tgz", + "integrity": "sha512-llP+T1YuJOLlxEciP6OyQGtz5SMxyn+9LA2BvZw5RmToGVa1y4beEDVQL6Gje7T5WFYh19WREjDCN9Ev4gm5AA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.72.1", - "@typescript-eslint/types": "8.72.1", - "@typescript-eslint/typescript-estree": "8.72.1", - "@typescript-eslint/visitor-keys": "8.72.1", + "@typescript-eslint/scope-manager": "8.72.2", + "@typescript-eslint/types": "8.72.2", + "@typescript-eslint/typescript-estree": "8.72.2", + "@typescript-eslint/visitor-keys": "8.72.2", "debug": "^4.4.3" }, "engines": { @@ -1383,14 +1289,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.1.tgz", - "integrity": "sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.2.tgz", + "integrity": "sha512-6y5dLTZdHhI8Eh3yIQ/bfQhRKwn5e+TpJj64o18Cngc0iW/BCrVvrr6zGYqXPnYH31u6YXAYiFh0+qxX5mybJw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.72.1", - "@typescript-eslint/types": "^8.72.1", + "@typescript-eslint/tsconfig-utils": "^8.72.2", + "@typescript-eslint/types": "^8.72.2", "debug": "^4.4.3" }, "engines": { @@ -1405,14 +1311,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.1.tgz", - "integrity": "sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.2.tgz", + "integrity": "sha512-iIoMJ6/8c1/QpFNyFjU0d1YzPco4MsZjQw0k3V+vfzNWAFmUmvhlyMoYEoYYDQZXc+J6Gi1X5XcxlzW2taIIGQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.72.1", - "@typescript-eslint/visitor-keys": "8.72.1" + "@typescript-eslint/types": "8.72.2", + "@typescript-eslint/visitor-keys": "8.72.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1423,9 +1329,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.1.tgz", - "integrity": "sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.2.tgz", + "integrity": "sha512-+h3iCgZXuTNtoLXcnnjP12ZUHLMqoUcIHPfQrFEXTUqvb9dF8QK9b5nv5VtSo5fLkdHuks8ehbTzZj3rImAm9w==", "dev": true, "license": "MIT", "engines": { @@ -1440,15 +1346,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.72.1.tgz", - "integrity": "sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.72.2.tgz", + "integrity": "sha512-STfkR38qIdhfkLpgtXnUjAzsNy4xouqiBO0lrVc/Wpk9Kem5/aHXUx1J8dGC16zpdYN1+yc2ILQ28er1kXX7ag==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.72.1", - "@typescript-eslint/typescript-estree": "8.72.1", - "@typescript-eslint/utils": "8.72.1", + "@typescript-eslint/types": "8.72.2", + "@typescript-eslint/typescript-estree": "8.72.2", + "@typescript-eslint/utils": "8.72.2", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -1465,9 +1371,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.1.tgz", - "integrity": "sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.2.tgz", + "integrity": "sha512-Xfn37OLZx03+PCU7qWx9DTv2FCRh1E6fk2+wONeNY15HXIwtcwuveaSwVpGAUptkNmPQegRxW5JyRel9T7wrog==", "dev": true, "license": "MIT", "engines": { @@ -1479,16 +1385,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.1.tgz", - "integrity": "sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.2.tgz", + "integrity": "sha512-pQEGqIK/cqEvKivVWaFLYpe7XYejFxfuAOi4mu1oAWFvIo36aRHI9esRFTUxcIy/z8N482RJyH+LpZB0ZIU7Ow==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.72.1", - "@typescript-eslint/tsconfig-utils": "8.72.1", - "@typescript-eslint/types": "8.72.1", - "@typescript-eslint/visitor-keys": "8.72.1", + "@typescript-eslint/project-service": "8.72.2", + "@typescript-eslint/tsconfig-utils": "8.72.2", + "@typescript-eslint/types": "8.72.2", + "@typescript-eslint/visitor-keys": "8.72.2", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -1507,16 +1413,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.72.1.tgz", - "integrity": "sha512-5v5liypurJBFHCBNqh/RjsymAD+VWcE0djuGY/BUqp5fC3Qn+luWDEksjuTtWjPn6i5zQlUtkZCRG/CYG0yCkA==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.72.2.tgz", + "integrity": "sha512-hv3eRYbpPbbpezuax1EfGrzpa3C4ySgNZkPUkLOWOAjU8HsOKowEDAr8C7nsNl1C+SBSKDpvno6VKHnlhvp9iA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.72.1", - "@typescript-eslint/types": "8.72.1", - "@typescript-eslint/typescript-estree": "8.72.1" + "@typescript-eslint/scope-manager": "8.72.2", + "@typescript-eslint/types": "8.72.2", + "@typescript-eslint/typescript-estree": "8.72.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1531,13 +1437,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.1.tgz", - "integrity": "sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.2.tgz", + "integrity": "sha512-NAGrjn0Pitjqzq/GkgMC4kBYm233PQ8GffyQ9+kTA3AlNQYEzOf25EIM02BAHZv5FRJSpHpJk+OGUxVkOB93GQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/types": "8.72.2", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -1549,14 +1455,14 @@ } }, "node_modules/@vitest/mocker": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.5.tgz", - "integrity": "sha512-xLL3lkDegJZw+MGoGaCCsFayDZthGgpAtr3Vziyfc4p7xH89K7KRPcRBBh/kEYm0Aqkt5DtTmkYpBtRV/FrHZg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.1.0.tgz", + "integrity": "sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.31", - "@vitest/spy": "5.0.5", + "@vitest/spy": "5.1.0", "estree-walker": "^3.0.3", "magic-string": "^1.4.3" }, @@ -1577,9 +1483,9 @@ } }, "node_modules/@vitest/spy": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.5.tgz", - "integrity": "sha512-lwJRExuH417257Q5wv9QYugN9IMJkoxcrKrYxGPQkBzl7wlNpTUxD/5yNX4ESKVUIShKPgkGchYPFMWOOk0wzw==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.1.0.tgz", + "integrity": "sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==", "dev": true, "license": "MIT", "funding": { @@ -1656,14 +1562,31 @@ "node": "18 || 20 || >=22" } }, - "node_modules/bidi-js": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.1.0.tgz", - "integrity": "sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==", + "node_modules/bcp-47": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bcp-47/-/bcp-47-2.1.2.tgz", + "integrity": "sha512-wsv86UuNFuPnVieKLyECTT+CP1WSAHeoIg5P3xu2kA9Z+7fVPoKt7dxzSeEhtJel0AI+NW3fIW3KtTKQKUCngg==", "dev": true, "license": "MIT", "dependencies": { - "require-from-string": "^2.0.2" + "is-alphabetical": "^2.0.0", + "is-alphanumerical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/bcp-47-match": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-2.0.3.tgz", + "integrity": "sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, "node_modules/brace-expansion": { @@ -1718,20 +1641,6 @@ "node": ">= 8" } }, - "node_modules/css-tree": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", - "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "mdn-data": "2.27.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" - } - }, "node_modules/data-urls": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-8.0.0.tgz", @@ -1790,9 +1699,9 @@ } }, "node_modules/entities": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz", - "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz", + "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==", "dev": true, "license": "BSD-2-Clause", "engines": { @@ -2040,9 +1949,9 @@ } }, "node_modules/fake-indexeddb": { - "version": "6.2.7", - "resolved": "https://registry.npmjs.org/fake-indexeddb/-/fake-indexeddb-6.2.7.tgz", - "integrity": "sha512-g0ghQ+BmU3CSZaHup5FigEAAtCmtNyxkrmID7OAeK2qONHghw1aQ2l2T1RxmfhP1H1tEXVRWArUTGVCk5832ww==", + "version": "6.2.8", + "resolved": "https://registry.npmjs.org/fake-indexeddb/-/fake-indexeddb-6.2.8.tgz", + "integrity": "sha512-mpVW/HLUqwKXJ6F/s0hMgdK1eQfM4ncTHDioNGHWL0WKV3VcZCoZq1NKgboBbAge07aRCO7L48yziKssL59XEQ==", "dev": true, "license": "Apache-2.0", "engines": { @@ -2134,6 +2043,22 @@ "dev": true, "license": "ISC" }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -2200,6 +2125,43 @@ "node": ">=0.8.19" } }, + "node_modules/is-alphabetical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", + "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-alphanumerical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", + "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-alphabetical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-decimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", + "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -2238,41 +2200,39 @@ "license": "ISC" }, "node_modules/jsdom": { - "version": "30.1.3", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-30.1.3.tgz", - "integrity": "sha512-hQMUPvRgN7KxsfIytDQji7bimuJeRQa6Qo5+iuiZQk5CafeRxLIA10/cG5YCBFNpD9RO3oqIiN4CO1Y44kxqXg==", + "version": "31.0.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-31.0.0.tgz", + "integrity": "sha512-xAkhD9z1eyFC5+QUi9K24CaZJgdCQ2GOGLW1GdVDoQvkp/AxEH9TQ0pAplPOlIiV92hfcgnFOADZypbjgbBT6Q==", "dev": true, "license": "MIT", "dependencies": { - "@asamuzakjp/css-color": "^7.1.3", - "@asamuzakjp/dom-selector": "^10.0.3", - "@bramus/specificity": "^2.4.2", - "@csstools/css-syntax-patches-for-csstree": "^1.1.15", "@exodus/bytes": "^1.16.0", - "css-tree": "^3.2.1", + "bcp-47": "^2.1.2", + "bcp-47-match": "^2.0.3", "data-urls": "^8.0.0", "decimal.js": "^10.6.0", "html-encoding-sniffer": "^7.0.0", "is-potential-custom-element-name": "^1.0.1", "lru-cache": "^11.5.3", - "parse5": "^8.0.1", + "parse5": "^8.1.0", + "parse5-parser-stream": "^8.1.0", "saxes": "^6.0.0", "tough-cookie": "^6.0.2", - "undici": "^8.12.1", + "undici": "^8.12.3", "w3c-xmlserializer": "^6.0.0", "webidl-conversions": "^8.0.1", "whatwg-mimetype": "^5.0.0", - "whatwg-url": "^17.2.0", + "whatwg-url": "^17.3.0", "xml-name-validator": "^5.0.0" }, "engines": { "node": "^22.22.2 || ^24.15.0 || >=26.0.0" }, "peerDependencies": { - "canvas": "^3.2.3" + "@napi-rs/canvas": "^1.0.13" }, "peerDependenciesMeta": { - "canvas": { + "@napi-rs/canvas": { "optional": true } } @@ -2636,13 +2596,6 @@ "@jridgewell/sourcemap-codec": "^1.6.0" } }, - "node_modules/mdn-data": { - "version": "2.27.1", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", - "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", - "dev": true, - "license": "CC0-1.0" - }, "node_modules/minimatch": { "version": "10.2.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", @@ -2758,13 +2711,26 @@ } }, "node_modules/parse5": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz", - "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.1.tgz", + "integrity": "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==", "dev": true, "license": "MIT", "dependencies": { - "entities": "^8.0.0" + "entities": "^9.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-parser-stream": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-8.1.1.tgz", + "integrity": "sha512-hMcVbbUJcQmP8rURWUdYrT1flRiBiBVjq/RYGguJpDUgIXSqdYKlE0CxthmdMWoSlBAuL5bUBa73g0pttSy7Hw==", + "dev": true, + "license": "MIT", + "dependencies": { + "parse5": "^8.1.1" }, "funding": { "url": "https://github.com/inikulin/parse5?sponsor=1" @@ -2812,13 +2778,13 @@ } }, "node_modules/playwright": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.1.tgz", - "integrity": "sha512-HCrVhHr5QQuwYoswEUGTb7gGp522yflbv/ST8nF4sFWGuLjQCt17Q/EubpGGSNKYn1tsTCPZxqHhHCfVURu7UA==", + "version": "1.65.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.65.0.tgz", + "integrity": "sha512-F3AMWcR44qMBt4kq+6Kb6mX7bjGXshktKFOPULd7reED6ZJWevjbNRqysP7q+AATE9kdPEZBibex1BYsvpVoeA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.64.1" + "playwright-core": "1.65.0" }, "bin": { "playwright": "cli.js" @@ -2828,9 +2794,9 @@ } }, "node_modules/playwright-core": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.1.tgz", - "integrity": "sha512-BC4s8y6SEVA6Q1rSxZTto8hI1KUI3xXlHGZgvGqP4IqPdI/a6FX9H29IDNz7vKo9l21b6LfYosScPL6M3xxyDQ==", + "version": "1.65.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.65.0.tgz", + "integrity": "sha512-vNSKgH6YqtN7cdT/L334zo0a+YwkrpicyrHJlWWPIm/Q+Nn2SWInil01oT0mbu96U4GgoRtCYQD9CzJQgju+lA==", "dev": true, "license": "Apache-2.0", "bin": { @@ -2910,25 +2876,15 @@ "dev": true, "license": "MIT" }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/rolldown": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.15.tgz", - "integrity": "sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==", + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.19.tgz", + "integrity": "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@oxc-project/types": "=0.155.0", + "@oxc-project/types": "=0.156.0", "@rolldown/pluginutils": "^1.0.0" }, "bin": { @@ -2938,21 +2894,22 @@ "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@rolldown/binding-android-arm-eabi": "1.2.15", - "@rolldown/binding-android-arm64": "1.2.15", - "@rolldown/binding-darwin-arm64": "1.2.15", - "@rolldown/binding-darwin-x64": "1.2.15", - "@rolldown/binding-freebsd-x64": "1.2.15", - "@rolldown/binding-linux-arm-gnueabihf": "1.2.15", - "@rolldown/binding-linux-arm64-gnu": "1.2.15", - "@rolldown/binding-linux-arm64-musl": "1.2.15", - "@rolldown/binding-linux-ppc64-gnu": "1.2.15", - "@rolldown/binding-linux-s390x-gnu": "1.2.15", - "@rolldown/binding-linux-x64-gnu": "1.2.15", - "@rolldown/binding-linux-x64-musl": "1.2.15", - "@rolldown/binding-openharmony-arm64": "1.2.15", - "@rolldown/binding-win32-arm64-msvc": "1.2.15", - "@rolldown/binding-win32-x64-msvc": "1.2.15" + "@rolldown/binding-android-arm-eabi": "1.2.19", + "@rolldown/binding-android-arm64": "1.2.19", + "@rolldown/binding-darwin-arm64": "1.2.19", + "@rolldown/binding-darwin-x64": "1.2.19", + "@rolldown/binding-freebsd-x64": "1.2.19", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", + "@rolldown/binding-linux-arm64-gnu": "1.2.19", + "@rolldown/binding-linux-arm64-musl": "1.2.19", + "@rolldown/binding-linux-ppc64-gnu": "1.2.19", + "@rolldown/binding-linux-s390x-gnu": "1.2.19", + "@rolldown/binding-linux-x64-gnu": "1.2.19", + "@rolldown/binding-linux-x64-musl": "1.2.19", + "@rolldown/binding-openharmony-arm64": "1.2.19", + "@rolldown/binding-wasm32-wasi": "1.2.19", + "@rolldown/binding-win32-arm64-msvc": "1.2.19", + "@rolldown/binding-win32-x64-msvc": "1.2.19" } }, "node_modules/saxes": { @@ -2969,9 +2926,9 @@ } }, "node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", "dev": true, "license": "ISC", "bin": { @@ -3010,6 +2967,7 @@ "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", "dev": true, "license": "BSD-3-Clause", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -3117,6 +3075,15 @@ "typescript": ">=4.8.4" } }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "dev": true, + "license": "0BSD", + "optional": true, + "peer": true + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -3145,16 +3112,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.72.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.72.1.tgz", - "integrity": "sha512-3Li9FfPmQp45nxEtFD1ZCrYFI3cYK5kpyNtmm1H7lMagm8u9sy6PTjy3ytwQZs7KNukOyKFHAZ6z6GjYFeaeXw==", + "version": "8.72.2", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.72.2.tgz", + "integrity": "sha512-c/+AKMW1KB81r28Sp0AAdcyXj5dzNmAsZFcsrxKbZTKmcBK2xIwBR31dcSYSDu3bKmzXe8GKrSxO+eDQ401Uzg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.72.1", - "@typescript-eslint/parser": "8.72.1", - "@typescript-eslint/typescript-estree": "8.72.1", - "@typescript-eslint/utils": "8.72.1" + "@typescript-eslint/eslint-plugin": "8.72.2", + "@typescript-eslint/parser": "8.72.2", + "@typescript-eslint/typescript-estree": "8.72.2", + "@typescript-eslint/utils": "8.72.2" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3189,17 +3156,17 @@ } }, "node_modules/vite": { - "version": "8.3.5", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.5.tgz", - "integrity": "sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==", + "version": "8.3.8", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.8.tgz", + "integrity": "sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "lightningcss": "^1.33.0", "picomatch": "^4.0.7", - "postcss": "^8.5.30", - "rolldown": "~1.2.14", + "postcss": "^8.5.32", + "rolldown": "~1.2.18", "tinyglobby": "^0.2.17" }, "bin": { @@ -3267,31 +3234,15 @@ } } }, - "node_modules/vite/node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/vitest": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.5.tgz", - "integrity": "sha512-cPODOMF8YnkiiYtDdHo6n4wWmBrOBBbOIYH2d33M4l3CdNn72h+qMmO6uXffUN6A5AZFXNND/d+krS9mgkXRfg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.1.0.tgz", + "integrity": "sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==", "dev": true, "license": "MIT", "dependencies": { "@types/chai": "^5.2.2", - "@vitest/mocker": "5.0.5", + "@vitest/mocker": "5.1.0", "chai": "^6.3.0", "es-module-lexer": "^2.3.2", "expect-type": "^1.4.0", @@ -3317,12 +3268,12 @@ "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "5.0.5", - "@vitest/browser-preview": "5.0.5", + "@vitest/browser-playwright": "5.1.0", + "@vitest/browser-preview": "5.1.0", "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", - "@vitest/coverage-istanbul": "5.0.5", - "@vitest/coverage-v8": "5.0.5", - "@vitest/ui": "5.0.5", + "@vitest/coverage-istanbul": "5.1.0", + "@vitest/coverage-v8": "5.1.0", + "@vitest/ui": "5.1.0", "happy-dom": "*", "jsdom": "*", "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" diff --git a/package.json b/package.json index fe165ac..20c78df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "team-tracker", - "version": "3.6.3", + "version": "3.6.4", "homepage": "https://fmpallini.github.io/team-tracker/", "repository": "fmpallini/team-tracker", "private": true, @@ -21,13 +21,13 @@ "devDependencies": { "@axe-core/playwright": "^4.13.0", "@eslint/js": "^10.0.1", - "@playwright/test": "~1.64.1", + "@playwright/test": "1.65.0", "esbuild": "^0.28.1", "eslint": "^10.12.0", - "fake-indexeddb": "^6.2.5", - "jsdom": "^30.1.1", + "fake-indexeddb": "^6.2.8", + "jsdom": "^31.0.0", "typescript": "^6.0.3", - "typescript-eslint": "^8.71.0", - "vitest": "^5.0.2" + "typescript-eslint": "^8.72.2", + "vitest": "^5.1.0" } } diff --git a/scripts/generate-screenshots.mjs b/scripts/generate-screenshots.mjs index b54096d..ac123f9 100644 --- a/scripts/generate-screenshots.mjs +++ b/scripts/generate-screenshots.mjs @@ -21,7 +21,7 @@ const SCREENSHOTS = [ { file: 'daily-notes-and-org.png', theme: 'light', palette: null, view: 'daily-and-org' }, { file: 'rich-text-editor.png', theme: 'light', palette: 'signal', view: 'rich-text' }, { file: 'action-items-kanban.png', theme: 'dark', palette: 'ember', view: 'kanban' }, - { file: 'milestones.png', theme: 'light', palette: 'blueprint', view: 'milestones' }, + { file: 'milestones.png', theme: 'light', palette: 'signal', view: 'milestones' }, { file: 'risks.png', theme: 'dark', palette: 'synthwave', view: 'risks' }, { file: 'person-notes.png', theme: 'dark', palette: 'forest', view: 'person-notes' }, { file: 'command-palette.png', theme: 'dark', palette: 'cosmic', view: 'command-palette' }, diff --git a/src/core/CLAUDE.md b/src/core/CLAUDE.md index 7d9e077..ce02ec4 100644 --- a/src/core/CLAUDE.md +++ b/src/core/CLAUDE.md @@ -2,7 +2,7 @@ Headless logic, no DOM construction. Loaded when working under `src/core/`. -- `types.ts` / `document.ts` โ€” `Doc` shape, `SCHEMA_VERSION`, `migrate()` ladder (`MIGRATIONS[n]` mutates version-n doc to n+1; opening newer-schema file throws `SchemaTooNewError`). Bump schema + add migration whenever persisted shape changes (schema 16 renamed the template placeholders to English: `{date}` `{time}` `{person}` `{team}`; documented in `prefs_templates_placeholders_hint` and `help_templates_text` โ€” keep them in step with `resolveTemplate`). `crypto.ts`'s `decryptDocumentWithVersion`/`parsePlainWithVersion` also return a file's pre-migration `schemaVersion` and its write `stamp` (see "Browser live store") from the same single decrypt/parse. Schema 18 added `Doc.docId` (random, immutable, keys the browser copy) and dropped the backup prefs; `autoSaveMin` is the file-write interval, 60โ€“1440 minutes. +- `types.ts` / `document.ts` โ€” `Doc` shape, `SCHEMA_VERSION`, `migrate()` ladder (`MIGRATIONS[n]` mutates version-n doc to n+1; opening newer-schema file throws `SchemaTooNewError`). Bump schema + add migration whenever persisted shape changes (schema 16 renamed the template placeholders to English: `{date}` `{time}` `{person}` `{team}`; documented in `prefs_templates_placeholders_hint` and `help_templates_text` โ€” keep them in step with `resolveTemplate`). `crypto.ts`'s `decryptDocumentWithVersion`/`parsePlainWithVersion` also return a file's pre-migration `schemaVersion` and its write `stamp` (see "Browser live store") from the same single decrypt/parse. Schema 18 added `Doc.docId` (random, immutable, keys the browser copy) and dropped the backup prefs; `autoSaveMin` is the file-write interval, 60โ€“1440 minutes. Schema 19 replaced the `blueprint`/`desert` palettes with `contrast`/`colorsafe` (old values map to `signal`/`ledger`) โ€” the first bump since the browser copy: an older copy is read through `migrate()` (`live-open.ts`'s `readDoc`). - `crypto.ts` โ€” `.tmv` binary format (v2 container layout and images: see "Embedded images" below): `"TMV1"` magic + format version + PBKDF2-SHA256 (600k iterations) โ†’ AES-GCM, with key-check block so wrong password (`WrongPasswordError`) distinguishable from corruption (`CorruptFileError`). Payload `JSON.stringify(doc)`, run through `migrate()` on decrypt. Alongside encrypted path, `serializePlain`/`parsePlain` handle password-less files: ASCII `TMV-PLAIN\n` header line followed by raw `JSON.stringify(doc)` โ€” fully human-readable, detected by sniffing that header before ever prompting for password. - **Embedded images** (schema 17, container v2). `Doc.images` is metadata only (`{mime,w,h,bytes}` per id); the bytes live in `Store.images` (`image-store.ts`, never JSON-serialized). Ids are the first 32 hex chars of SHA-256 of the stored bytes (content-addressed, so the same picture is stored once); the note reference is a line `![alt](img:)` (`image-ref.ts`). v2 layout: the v1 header (`bytes[4]=2`), `u32be docCipherLen`, the AES-GCM ciphertext of the JSON envelope `{doc, index}`, then the blob area (`blob-area.ts`) of individually sealed images (12-byte IV โ€– ciphertext, AAD = utf8 image id, so a blob cannot be swapped for another id). Plain: `TMV-PLAIN2\n` + one-line envelope + `\n` + raw blobs. v1 (`TMV1` version 1, `TMV-PLAIN\n`) stays readable and is lifted by `migrate()` (16โ†’17, `images = {}`); files written now are always v2, which releases before 3.2.0 refuse. `blobCodec(password)` captures the session key, so the blob seal key must equal the header key: `change-password.ts` calls `images.rekey(newCodec)` before writing and rolls back to a fresh codec on failure. Memory: once an image is sealed the store keeps only the sealed form and opens it for each reader (`ui/image-host.ts` caches the data URI it renders), so an encrypted document's pictures are not held twice; a password-less file has one form only. - **Sweep at serialization** (`doc-bytes.ts`): only images referenced from a markdown field (`collectImageRefs`) are written; unreferenced bytes stay in memory for the session, so delete โ†’ save โ†’ undo โ†’ save restores the picture. A missing or damaged blob never blocks open or save (placeholder, not adopted). @@ -21,7 +21,7 @@ Headless logic, no DOM construction. Loaded when working under `src/core/`. - `live-persist.ts` โ€” watches `store.onMutate`, re-splits the doc on every flush (written after 2 s of quiet, never later than 15 s after the first edit waiting; hide/pagehide/Lock/Close/hand-over flush at once) and commits only records whose JSON string differs from a cache of strings (never objects). Scope is deliberately not trusted. `unwrittenChanges` is sticky: a flush only raises it; `markFileWritten(stamp, revAtSnapshot)` / `adoptFileStamp(stamp)` lower it. A failed commit leaves the cache untouched and retries (`onErrorChange`). Its initial sync is *owed* until the store is writable (`Store.onReadOnlyChange`): only the tab holding the write lock may touch the browser copy, so `ui/open-document.ts` creates the store provisionally read-only wherever Web Locks exist. `reseed` (tab takeover) and `rekey` (password change) are ordered in the same chain as the flushes. - `live-open.ts` โ€” reconcile at open, by identity and lineage, never by timestamp: `docId` keys the copy, a fresh `writeId` (in the envelope's `stamp`, `file-stamp.ts`) is set on every file write. no copy โ†’ import; same write, nothing unwritten โ†’ identical; same write + unwritten โ†’ browser newer (load it, rewrite the file, store starts dirty); write known but not latest โ†’ ask (older file); unknown write โ†’ file wins, or ask if the copy has unwritten edits. A copy under another password prompts for it (or falls back to the file); a plain copy is never used for a protected file; a newer-schema copy is never read; an unreadable one counts as absent. The file-wins replacement is one atomic commit. The *identical* case reads nothing back: the persister is seeded from the file's own records, and the copy is only counted (`LiveStore.stat`: record count must equal the file document's, blob ids seed the persister's set); a copy missing a row, of another schema version or without a key secret is replaced by the file instead. **Another file of the document** (an OS copy carries the docId: a backup, a sync conflicted copy) is told apart by `fileId` before any of that: it opens as a document of its own (fresh docId, file written back at once), never taking the copy over โ€” that overwrote backups and let two tabs write one copy. Only a copy with unwritten edits that no tab holds (`browser-copies.ts`'s `isDocumentOpen`) asks first (`askOtherFile`: the same file moved or renamed gets a new id). No id (fallback mode, registry failure) tells nothing apart; a copy without `fileId` is claimed by the first file that opens it. - `live-follow.ts` โ€” what a tab does on taking the write lock over: read the copy under the key its own meta names (prompting when the previous holder changed the password, adopting plain when it was removed), never under the key this tab last held. `live-store.ts`'s `useCodec` points a store at that key. A refresh that fails leaves the tab read-only and hands the lock back (`tab-lock.ts`). `fork-reopen.ts` is the conflict-Fork's last step: the original's copy is removed only after the fork really mounted. - - Key rule: the file's password is the newest the user set (every password change writes the file first). When the copy wins at open (`browser-newer`) under another key, the document continues under the *file's* password and the persister's `rekeyTo` moves the copy to it as part of its initial sync (owed until the tab holds the write lock); a copy the user chose over an older or foreign file keeps its own password. A conflict Reload that changes the file's key re-keys the copy too (`conflict-flow.ts`). Known gap: images added to a copy *after* it drifted are sealed under the new key and are dropped by the re-key at the next open (needs two failures in a row). + - Key rule: the file's password is the newest the user set (every password change writes the file first). When the copy wins at open (`browser-newer`) under another key, the document continues under the *file's* password and the persister's `rekeyTo` moves the copy to it as part of its initial sync (owed until the tab holds the write lock); a copy the user chose over an older or foreign file keeps its own password. A conflict Reload that changes the file's key re-keys the copy too (`conflict-flow.ts`). Images added to a copy *after* it drifted are sealed under the new key already: `ImageStore.rekey` keeps a blob the old key cannot open when it is already in the destination form (opens under the new key; for no key, sniffs as a picture), so the next open's re-key no longer drops them. - Storage failure: the sticky `watchStoreHealth` toast and the clickable `store-error` pill (opens the write-failed dialog with a download) cover a failing copy; `closeDocument`, `reloadForUpdate` and `beforeunload` treat an edited document with no working browser copy as at risk (`browserCopyAtRisk`). - `snapshot.ts` (`buildSnapshot` = bytes + fresh stamp + rev before serializing; `commitSnapshot` never throws), `file-snapshot.ts` (the three write moments + explicit export; `FileHealth`; single-flight; `runExclusive` for the password change; `isOverdue` for the window-close prompt; the timer re-arms a full interval after a failed attempt), `close-document.ts` (Lock/Close: editors โ†’ browser copy โ†’ file โ†’ teardown; a failed write opens the write-failed dialog; a conflict result never stacks a dialog) and `createBeforeUnloadHandler`. UI companions: `ui/write-failed.ts`, `ui/reconcile-dialogs.ts`, `ui/file-health-toasts.ts`, `ui/open-document.ts`. - `browser-copies.ts` โ€” housekeeping for the copies of *other* documents in the live database, which nothing else ever removes. `pruneStaleCopies` (run once per opened document, no UI: each file is its own world) deletes only clean copies untouched for 90 days. An open document is protected by a shared Web Lock `tmv-doc:` its tab holds (`holdDocument`), since the file lock is per file, not per document; without Web Locks nothing is pruned. Deleting a clean copy loses nothing: `live-open.ts` starts the next open from the file. diff --git a/src/core/card-ink.ts b/src/core/card-ink.ts new file mode 100644 index 0000000..e9d2bbd --- /dev/null +++ b/src/core/card-ink.ts @@ -0,0 +1,65 @@ +// src/core/card-ink.ts โ€” the tag chips' colors. A chip is a label on a solid +// card color, and the six --card-* colors are mid-tones in most light +// palettes: no one text color reaches WCAG AA on all six (white on light +// brass was ~3.5:1). Flipping the text per chip read as inconsistent, so the +// text stays one color per theme โ€” white on a light page, the page color on a +// dark one โ€” and only a fill that cannot carry it moves: darkened (light) or +// lightened (dark) in its own hue, by the smallest step that reaches 4.5:1. +// Read from the computed style, like theme-color.ts, so every palette x theme +// pair resolves without a copied table. The cards' own tint keeps the raw color. + +export const CARD_COLORS = ['slate', 'brass', 'sage', 'rust', 'plum', 'ledger'] as const + +const AA = 4.5 + +function parseHex(color: string): [number, number, number] | null { + const digits = /^#([0-9a-f]{6})$/i.exec(color.trim())?.[1] + if (!digits) return null + const n = parseInt(digits, 16) + return [(n >> 16) & 255, (n >> 8) & 255, n & 255] +} + +const channel = (v: number): number => (v <= 0.03928 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4) +const luminance = ([r, g, b]: [number, number, number]): number => + 0.2126 * channel(r / 255) + 0.7152 * channel(g / 255) + 0.0722 * channel(b / 255) +const contrast = (a: [number, number, number], b: [number, number, number]): number => { + const [x, y] = [luminance(a), luminance(b)] + return (Math.max(x, y) + 0.05) / (Math.min(x, y) + 0.05) +} +const toHex = (rgb: number[]): string => '#' + rgb.map((v) => Math.round(v).toString(16).padStart(2, '0')).join('') + +/** + * `fill`, or the nearest shade of it (mixed toward black under a light ink, toward white under a dark one, in 1% + * steps) that `ink` reads on at AA. Null when either is not a 6-digit hex. + */ +export function chipFill(fill: string, ink: string): string | null { + const f = parseHex(fill) + const i = parseHex(ink) + if (!f || !i) return null + const toward = luminance(i) > 0.5 ? 0 : 255 + for (let p = 0; p <= 100; p++) { + const shade = f.map((v) => v + (toward - v) * (p / 100)) as [number, number, number] + const rounded = shade.map(Math.round) as [number, number, number] + if (contrast(i, rounded) >= AA) return toHex(rounded) + } + return toHex([toward, toward, toward]) +} + +/** Sets `--on-chip` and each `--chip-` on the root for the active palette x theme; values the stylesheet does not define keep its defaults. */ +export function syncCardInk(doc: Document = document): void { + const root = doc.documentElement + const style = getComputedStyle(root) + const bg = parseHex(style.getPropertyValue('--bg')) + if (!bg) { + root.style.removeProperty('--on-chip') + for (const c of CARD_COLORS) root.style.removeProperty(`--chip-${c}`) + return + } + const ink = luminance(bg) > 0.5 ? '#ffffff' : toHex(bg) + root.style.setProperty('--on-chip', ink) + for (const c of CARD_COLORS) { + const fill = chipFill(style.getPropertyValue(`--card-${c}`), ink) + if (fill) root.style.setProperty(`--chip-${c}`, fill) + else root.style.removeProperty(`--chip-${c}`) + } +} diff --git a/src/core/document.ts b/src/core/document.ts index 7b649f3..0d33fb0 100644 --- a/src/core/document.ts +++ b/src/core/document.ts @@ -4,7 +4,7 @@ import { t, type Locale, type MsgKey } from './i18n' import { IMAGE_ID_RE } from './image-ref' import { randomHex } from './file-stamp' -export const SCHEMA_VERSION = 18 +export const SCHEMA_VERSION = 19 export class SchemaTooNewError extends Error {} @@ -207,6 +207,14 @@ const MIGRATIONS: Record) => void> = { prefs.autoSaveMin = typeof m === 'number' && Number.isFinite(m) ? Math.min(1440, Math.max(60, Math.round(m))) : 60 } }, + // 'blueprint' and 'desert' gave their places to 'contrast' (high contrast) and 'colorsafe' (status and tag colors + // that stay apart under color-blind vision): blueprint was the third white-and-blue palette beside signal and + // synthwave, desert a near-twin of the default. Each maps to its closest survivor, as 'muster' did in schema 10. + 18: (d) => { + const prefs = d.prefs as Record | undefined + if (prefs?.palette === 'blueprint') prefs.palette = 'signal' + if (prefs?.palette === 'desert') prefs.palette = 'ledger' + }, } export function migrate(raw: unknown): Doc { diff --git a/src/core/i18n.ts b/src/core/i18n.ts index 6a1e9b9..abeb58a 100644 --- a/src/core/i18n.ts +++ b/src/core/i18n.ts @@ -207,6 +207,7 @@ sidebar_teams_heading: 'Times', milestone_done_title: 'Concluรญdo', milestone_pending_title: 'Pendente', milestone_delete_title: 'Excluir marco', + milestone_timeline_label: 'Linha do tempo dos marcos', milestone_deleted_toast: 'Marco "{title}" excluรญdo', milestone_empty: 'Nenhum marco ainda. Adicione as datas que o time estรก perseguindo.', risk_add_btn: '+ Risco', @@ -267,6 +268,7 @@ sidebar_teams_heading: 'Times', empty_no_teams_hint: 'Cada time guarda notas diรกrias, pessoas, tarefas, marcos e riscos.', toast_focus_other: 'Jรก aberto no outro painel โ€” focando nele', toast_person_not_found: 'Pessoa nรฃo encontrada', + palette_title: 'Troca rรกpida', palette_placeholder: 'Buscar em todos os times: mรณdulo, pessoa, tarefa, marco ou riscoโ€ฆ (Ctrl+Shift+K)', switcher_favorites: 'Favoritos', switcher_due: 'Prazos', @@ -506,9 +508,7 @@ sidebar_teams_heading: 'Times', prefs_palette_label: 'Paleta de cores', prefs_palette_ledger: 'Livro de Campo', prefs_palette_signal: 'Sinal', - prefs_palette_blueprint: 'Planta Baixa', prefs_palette_forest: 'Floresta', - prefs_palette_desert: 'Deserto', prefs_palette_cosmic: 'Cรณsmica', prefs_palette_synthwave: 'Hacker Anos 80', prefs_palette_verdant: 'Verdejante', @@ -516,6 +516,8 @@ sidebar_teams_heading: 'Times', prefs_palette_graphite: 'Grafite', prefs_palette_rose: 'Rosa', prefs_palette_citrus: 'Cรญtrico', + prefs_palette_contrast: 'Alto contraste', + prefs_palette_colorsafe: 'Para daltรดnicos', prefs_locale_label: 'Idioma', prefs_locale_pt: 'Portuguรชs (Brasil)', prefs_locale_en: 'Inglรชs (EUA)', @@ -912,6 +914,7 @@ sidebar_teams_heading: 'Teams', milestone_done_title: 'Done', milestone_pending_title: 'Pending', milestone_delete_title: 'Delete milestone', + milestone_timeline_label: 'Milestone timeline', milestone_deleted_toast: 'Milestone "{title}" deleted', milestone_empty: 'No milestones yet. Add the dates the team is working toward.', risk_add_btn: '+ Risk', @@ -965,6 +968,7 @@ sidebar_teams_heading: 'Teams', empty_no_teams_hint: 'Every team holds daily notes, people, tasks, milestones and risks.', toast_focus_other: 'Already open in the other pane โ€” focusing it', toast_person_not_found: 'Person not found', + palette_title: 'Fast switch', palette_placeholder: 'Search every team: module, person, task, milestone or riskโ€ฆ (Ctrl+Shift+K)', switcher_favorites: 'Favorites', switcher_due: 'Due dates', @@ -1200,9 +1204,7 @@ sidebar_teams_heading: 'Teams', prefs_palette_label: 'Color palette', prefs_palette_ledger: 'Field Ledger', prefs_palette_signal: 'Signal', - prefs_palette_blueprint: 'Blueprint', prefs_palette_forest: 'Forest', - prefs_palette_desert: 'Desert', prefs_palette_cosmic: 'Cosmic', prefs_palette_synthwave: "80's Hacker", prefs_palette_verdant: 'Verdant', @@ -1210,6 +1212,8 @@ sidebar_teams_heading: 'Teams', prefs_palette_graphite: 'Graphite', prefs_palette_rose: 'Rose', prefs_palette_citrus: 'Citrus', + prefs_palette_contrast: 'High contrast', + prefs_palette_colorsafe: 'Colorblind-safe', prefs_locale_label: 'Language', prefs_locale_pt: 'Portuguese (Brazil)', prefs_locale_en: 'English (US)', diff --git a/src/core/image-store.ts b/src/core/image-store.ts index 791be22..5b8badd 100644 --- a/src/core/image-store.ts +++ b/src/core/image-store.ts @@ -11,6 +11,8 @@ * save" bring the image back (the save sweep drops unreferenced images from * the FILE, not from here). */ +import { sniffImage } from './image-import' + export interface BlobCodec { seal(id: string, plain: Uint8Array): Promise open(id: string, sealed: Uint8Array): Promise @@ -93,13 +95,32 @@ export function createImageStore(initial: BlobCodec | null): ImageStore { async rekey(next) { // Every image is opened with the OLD codec and held plain until the new codec seals it again. + const alreadyNext = new Set() for (const [id, e] of entries) { const plain = await plainOf(id, e) if (plain) e.plain = plain + else if (e.stored && await isInForm(next, id, e.stored)) alreadyNext.add(id) else e.stored = null } codec = next - for (const e of entries.values()) e.stored = null + for (const [id, e] of entries) if (!alreadyNext.has(id)) e.stored = null }, } } + +/** + * Whether `stored` is already what `next` would store for `id`. A browser copy whose own re-key failed after a + * password change keeps its records under the old key while the pictures added afterwards were sealed under the + * new one (the image store had already moved), so the next open's re-key meets blobs the old key cannot open but + * that need no change. Under a key, AES-GCM (with the id as additional data) proves it; with no key the stored + * form is the picture itself, which a sealed blob's random bytes never pass for. + */ +async function isInForm(next: BlobCodec | null, id: string, stored: Uint8Array): Promise { + if (!next) return sniffImage(stored) !== null + try { + await next.open(id, stored) + return true + } catch { + return false + } +} diff --git a/src/core/types.ts b/src/core/types.ts index 1403962..355d7fb 100644 --- a/src/core/types.ts +++ b/src/core/types.ts @@ -1,5 +1,5 @@ // src/core/types.ts โ€” completo, copiar literalmente -export type PaletteId = 'ledger' | 'signal' | 'blueprint' | 'forest' | 'desert' | 'cosmic' | 'synthwave' | 'verdant' | 'ember' | 'graphite' | 'rose' | 'citrus' +export type PaletteId = 'ledger' | 'signal' | 'forest' | 'cosmic' | 'synthwave' | 'verdant' | 'ember' | 'graphite' | 'rose' | 'citrus' | 'contrast' | 'colorsafe' export interface Prefs { theme: 'light' | 'dark' | 'system' locale: 'pt-BR' | 'en-US' diff --git a/src/modules/action-items.ts b/src/modules/action-items.ts index 44c3b23..14240fd 100644 --- a/src/modules/action-items.ts +++ b/src/modules/action-items.ts @@ -205,8 +205,12 @@ export const renderActionItems = withDisposal((container: HTMLElement, loc: Loc, // space, and an unnamed color needs it most: the swatch alone says // nothing about whether clicking it is worth the trip. if (counts[c] > 0) { + // The space is invisible in the flex chip but keeps "Blocked" and "3" apart in the text a reader gets. + if (custom !== null) children.push(' ') children.push(el('span', { class: 'tt-kanban-tag-chip-count' }, String(counts[c]))) } + // The name says the count too (screen readers got the tag alone), and contains everything drawn (WCAG 2.5.3). + const chipName = custom ?? suggestedTagName(c) const chip = el( 'button', { @@ -214,7 +218,7 @@ export const renderActionItems = withDisposal((container: HTMLElement, loc: Loc, // Same square swatch pattern as the color picker in the card modal // (.tt-kanban-color-chip) โ€” blank until named, name shown inside once it is. class: `tt-kanban-color-chip tt-kanban-tag-chip color-${c}` + (activeTagFilter === c ? ' selected' : ''), - 'aria-label': custom ?? suggestedTagName(c), + 'aria-label': counts[c] > 0 ? `${chipName} ${counts[c]}` : chipName, 'aria-pressed': activeTagFilter === c ? 'true' : 'false', onclick: () => { activeTagFilter = activeTagFilter === c ? null : c @@ -440,7 +444,8 @@ export const renderActionItems = withDisposal((container: HTMLElement, loc: Loc, } const input = el('input', { - type: 'text', class: 'tt-input tt-assignee-input', autocomplete: 'off', value, + // The field's caption is a bare text node beside it, not a