Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

feat(ok): add Excalidraw canvas support for .excalidraw files (PRD-7476) (#3579)

Abrahambe165176493d
diff --git a/.changeset/oss-703-excalidraw-canvas.md b/.changeset/oss-703-excalidraw-canvas.md
new file mode 100644
index 000000000..5ed30b16a
--- /dev/null
+++ b/.changeset/oss-703-excalidraw-canvas.md
@@ -0,0 +1,7 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Add native Excalidraw drawing-canvas support for `.excalidraw` files. Opening one in the editor now mounts an infinite canvas board; changes serialize to the file's `Y.Text('source')` as an Excalidraw JSON snapshot and sync live across peers.
+
+Scoped to the `.excalidraw` extension only. `.canvas` was intentionally left alone — it's already Obsidian's canvas JSON schema, which the text viewer opens with syntax highlighting; Excalidraw can't parse it.
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 396e5f11a..2d53bc026 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -599,11 +599,36 @@ Homepage: https://github.com/agentclientprotocol/typescript-sdk#readme
Copyright 2025 Zed Industries, Inc. and contributors
+### `@chevrotain/[email protected]`
+Homepage: https://github.com/Chevrotain/chevrotain
+
+_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+
+### `@chevrotain/[email protected]`
+Homepage: https://github.com/Chevrotain/chevrotain
+
+_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+
+### `@chevrotain/[email protected]`
+Homepage: https://github.com/Chevrotain/chevrotain
+
+_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+
### `@chevrotain/[email protected]`
Homepage: https://chevrotain.io/documentation/
_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+### `@chevrotain/[email protected]`
+Homepage: https://chevrotain.io/documentation/
+
+_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+
+### `@chevrotain/[email protected]`
+Homepage: https://github.com/Chevrotain/chevrotain
+
+_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+
### `@fellow/[email protected]`
_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
@@ -799,11 +824,26 @@ Homepage: https://github.com/gr2m/before-after-hook
Copyright 2018 Gregor Martynus and other contributors.
+Homepage: https://github.com/GoogleChromeLabs/browser-fs-access#readme
+
+_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+
+Homepage: https://chevrotain.io/docs/
+
+_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+
Homepage: https://github.com/joe-bell/cva#readme
Copyright 2022 Joe Bell
+Homepage: https://github.com/SheetJS/js-crc32
+
+Copyright (C) 2014 SheetJS
+
Homepage: https://github.com/lovell/detect-libc
@@ -888,6 +928,11 @@ Homepage: https://mozilla.github.io/pdf.js/
_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+Homepage: https://github.com/GoogleChrome/pwacompat
+
+_(LICENSE template present but no copyright line filled in; refer to the package source for canonical attribution.)_
+
Homepage: https://streamdown.ai/docs/termination
@@ -1151,6 +1196,11 @@ Homepage: https://github.com/braintree/sanitize-url#readme
Copyright (c) 2017 Braintree
+### `@braintree/[email protected]`
+Homepage: https://github.com/braintree/sanitize-url#readme
+
+Copyright (c) 2017 Braintree
+
### `@codemirror/[email protected]`
Homepage: https://code.haverbeke.berlin/codemirror/autocomplete
@@ -1261,6 +1311,29 @@ Homepage: https://github.com/clauderic/dnd-kit
Copyright (c) 2021, Claudéric Demers
+### `@excalidraw/[email protected]`
+Homepage: https://github.com/excalidraw/excalidraw/tree/master/packages/excalidraw
+
+_(No LICENSE file in package; SPDX identifier in `package.json` is the sole declared grant.)_
+
+### `@excalidraw/[email protected]`
+
+Copyright (c) 2023 Excalidraw
+
+### `@excalidraw/[email protected]`
+Homepage: https://github.com/danestves/markdown-to-text.git
+
+Copyright (c) 2020 Daniel Esteves
+
+### `@excalidraw/[email protected]`
+
+Copyright (c) 2023 Excalidraw
+
+### `@excalidraw/[email protected]`
+Homepage: https://github.com/excalidraw/random-username
+
+Copyright (c) 2021 dwelle
+
### `@floating-ui/[email protected]`
Homepage: https://floating-ui.com
@@ -1526,6 +1599,11 @@ Homepage: https://github.com/mermaid-js/mermaid/tree/develop/packages/mermaid/pa
Copyright (c) 2023 Yokozuna59
+### `@mermaid-js/[email protected]`
+Homepage: https://github.com/mermaid-js/mermaid/tree/develop/packages/mermaid/parser/#readme
+
+Copyright (c) 2023 Yokozuna59
+
### `@messageformat/[email protected]`
Homepage: http://messageformat.github.io/messageformat/api/date-skeleton/
@@ -2695,6 +2773,11 @@ Homepage: https://github.com/Pomax/bezierjs
_(No LICENSE file in package; SPDX identifier in `package.json` is the sole declared grant.)_
+Homepage: https://github.com/sindresorhus/binary-extensions
+
+Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com) Copyright (c) Paul Miller (https://paulmillr.com)
+
Homepage: https://github.com/rvagg/bl
@@ -2780,6 +2863,11 @@ Homepage: https://github.com/vasturiano/canvas-color-tracker
Copyright (c) 2018 Vasco Asturiano
+Homepage: https://github.com/Kaiido/roundRect
+
+Copyright (c) 2021 Tristan Fraipont
+
Homepage: https://github.com/wooorm/ccount
@@ -2815,11 +2903,21 @@ Homepage: https://github.com/wooorm/character-reference-invalid
Copyright (c) 2015 Titus Wormer <[email protected]>
+Homepage: https://github.com/langium/chevrotain-allstar
+
+Copyright 2022 TypeFox GmbH
+
Homepage: https://github.com/paulmillr/chokidar
Copyright (c) 2012 Paul Miller (https://paulmillr.com), Elan Shanker
+Homepage: https://github.com/paulmillr/chokidar
+
+Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker
+
Homepage: https://github.com/nodejs/cjs-module-lexer#readme
@@ -2850,6 +2948,11 @@ Homepage: https://github.com/lukeed/clsx
Copyright (c) Luke Edwards <[email protected]> (lukeed.com)
+Homepage: https://github.com/lukeed/clsx
+
+Copyright (c) Luke Edwards <[email protected]> (lukeed.com)
+
Homepage: https://github.com/pacocoursey/cmdk#readme
@@ -2975,6 +3078,11 @@ Homepage: https://code.haverbeke.berlin/marijn/crelt
Copyright (C) 2020 by Marijn Haverbeke <[email protected]>
+Homepage: https://github.com/kentcdodds/cross-env#readme
+
+Copyright (c) 2017 Kent C. Dodds
+
Homepage: https://github.com/moxystudio/node-cross-spawn
@@ -3196,6 +3304,11 @@ Homepage: https://es-toolkit.dev
Copyright (c) 2024 Viva Republica, Inc.
+Homepage: https://github.com/timdp/es6-promise-pool
+
+Copyright (c) 2017 Tim De Pauw <https://tmdpw.eu/>
+
Homepage: https://github.com/lukeed/escalade
@@ -3407,6 +3520,11 @@ Homepage: https://github.com/Raynos/function-bind
Copyright (c) 2013 Raynos.
+Homepage: https://github.com/mattyork/fuzzy
+
+Copyright (c) 2012 Matt York
+
Homepage: https://github.com/farzher/fuzzysort
@@ -3462,6 +3580,11 @@ Homepage: https://github.com/substack/github-from-package
_(LICENSE file present but no auto-extractable copyright line; refer to the package source for canonical attribution.)_
+Homepage: https://github.com/andr83/glur/issues
+
+Copyright (c) 2014 Andrei Tupitcyn
+
Homepage: https://github.com/ljharb/gopd#readme
@@ -3622,6 +3745,16 @@ Homepage: https://github.com/kaelzhang/node-ignore
Copyright (c) 2013 Kael Zhang <[email protected]>, contributors
+Homepage: https://github.com/nodeca/image-blob-reduce
+
+Copyright (C) 2020 by authors
+
+Homepage: https://immutable-js.com
+
+Copyright (c) 2014-present, Lee Byron and other contributors.
+
Homepage: https://github.com/sindresorhus/import-fresh
@@ -3674,6 +3807,11 @@ Homepage: https://github.com/qix-/node-is-arrayish
Copyright (c) 2015 JD Ballard
+Homepage: https://github.com/sindresorhus/is-binary-path
+
+Copyright (c) 2019 Sindre Sorhus <[email protected]> (https://sindresorhus.com), Paul Miller (https://paulmillr.com)
+
Homepage: https://github.com/inspect-js/is-core-module
@@ -3819,6 +3957,16 @@ Homepage: https://github.com/panva/jose
Copyright (c) 2018 Filip Skokan
+Homepage: https://github.com/pmndrs/jotai
+
+Copyright (c) 2020-2023 Poimandres
+
+Homepage: https://github.com/jotaijs/jotai-scope
+
+Copyright (c) 2023 Daishi Kato
+
Homepage: https://github.com/egoist/joycon
@@ -3899,6 +4047,11 @@ Homepage: https://github.com/lukeed/kleur
Copyright (c) Luke Edwards <[email protected]> (lukeed.com)
+Homepage: https://langium.org
+
+Copyright 2021 TypeFox GmbH
+
Homepage: https://github.com/iVis-at-Bilkent/layout-base#readme
@@ -3954,6 +4107,16 @@ Homepage: https://lodash.com/custom-builds
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
+Homepage: https://lodash.com/custom-builds
+
+Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
+
+Homepage: https://lodash.com/
+
+_(LICENSE file present but no auto-extractable copyright line; refer to the package source for canonical attribution.)_
+
Homepage: https://lodash.com/
@@ -3964,6 +4127,11 @@ Homepage: https://lodash.com/
Copyright JS Foundation and other contributors <https://js.foundation/>
+Homepage: https://lodash.com/
+
+_(LICENSE file present but no auto-extractable copyright line; refer to the package source for canonical attribution.)_
+
Homepage: https://github.com/sindresorhus/log-symbols
@@ -4374,6 +4542,21 @@ Homepage: https://github.com/vercel/ms
Copyright (c) 2020 Vercel, Inc.
+Homepage: https://github.com/nodeca/multimath
+
+Copyright (C) 2017 by Vitaly Puzrin
+
+Homepage: https://github.com/ai/nanoid
+
+Copyright 2017 Andrey Sitnik <[email protected]>
+
+Homepage: https://github.com/ai/nanoid
+
+Copyright 2017 Andrey Sitnik <[email protected]>
+
Homepage: https://github.com/ai/nanoid
@@ -4506,6 +4689,11 @@ Homepage: https://github.com/sindresorhus/open
Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
+Homepage: https://github.com/yeun/open-color
+
+Copyright (c) 2016 heeyeun
+
Homepage: https://github.com/sindresorhus/ora
@@ -4536,6 +4724,11 @@ Homepage: https://github.com/antfu-collective/package-manager-detector#readme
Copyright (c) 2020-PRESENT Anthony Fu <https://github.com/antfu>
+Homepage: https://github.com/nodeca/pako
+
+Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
+
Homepage: https://www.papaparse.com/
@@ -4616,6 +4809,16 @@ Homepage: https://github.com/andrewrk/node-pend
Copyright (c) 2014 Andrew Kelley
+Homepage: https://github.com/steveruizok/perfect-freehand
+
+Copyright (c) 2021 Stephen Ruiz Ltd
+
+Homepage: https://github.com/nodeca/pica
+
+Copyright (C) 2014-2017 by Vitaly Puzrin
+
Homepage: https://github.com/micromatch/picomatch
@@ -4656,6 +4859,26 @@ Homepage: https://github.com/sindresorhus/pkg-up
Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
+Homepage: https://github.com/hughsk/png-chunk-text
+
+Copyright (c) 2015 Hugh Kennedy
+
+Homepage: https://github.com/hughsk/png-chunks-encode
+
+Copyright (c) 2015 Hugh Kennedy
+
+Homepage: https://github.com/hughsk/png-chunks-extract
+
+Copyright (c) 2015 Hugh Kennedy
+
+Homepage: https://github.com/pshihn/bezier-points#readme
+
+Copyright (c) 2020 Preet Shihn
+
Homepage: https://github.com/pshihn/bezier-points#readme
@@ -4932,6 +5155,11 @@ Homepage: https://github.com/paulmillr/readdirp
Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com)
+Homepage: https://github.com/paulmillr/readdirp
+
+Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com)
+
Homepage: https://github.com/pinojs/real-require
@@ -5077,6 +5305,11 @@ Homepage: https://roughjs.com
Copyright (c) 2019 Preet Shihn
+Homepage: https://roughjs.com
+
+Copyright (c) 2019 Preet Shihn
+
Homepage: https://github.com/pillarjs/router
@@ -5107,6 +5340,14 @@ Homepage: https://github.com/ChALkeR/safer-buffer
Copyright (c) 2018 Nikita Skovoroda <[email protected]>
+Homepage: https://github.com/sass/dart-sass
+
+Copyright (c) 2016, Google Inc.
+Copyright 2012, the Dart project authors.
+Copyright 2019, the Dart project authors.
+Copyright 2013, the Dart project authors.
+
Homepage: https://react.dev/
@@ -5202,6 +5443,11 @@ Homepage: https://github.com/terkelg/sisteransi
Copyright (c) 2018 Terkel Gjervig Nielsen
+Homepage: https://github.com/aheckmann/sliced
+
+Copyright (c) 2012 [Aaron Heckmann]([email protected])
+
Homepage: https://github.com/pinojs/sonic-boom#readme
@@ -5434,6 +5680,11 @@ Homepage: https://github.com/dividab/tsconfig-paths
Copyright (c) 2016 Jonas Kello
+Homepage: https://github.com/pmndrs/tunnel-rat#readme
+
+Copyright (c) 2022 Poimandres
+
Homepage: https://github.com/mixmark-io/turndown
@@ -5579,6 +5830,36 @@ Homepage: https://github.com/vfile/vfile-message
Copyright (c) Titus Wormer <[email protected]>
+Homepage: https://github.com/Microsoft/vscode-languageserver-node
+
+Copyright (c) Microsoft Corporation
+
+Homepage: https://github.com/Microsoft/vscode-languageserver-node
+
+Copyright (c) Microsoft Corporation
+
+Homepage: https://github.com/Microsoft/vscode-languageserver-node
+
+Copyright (c) Microsoft Corporation
+
+Homepage: https://github.com/Microsoft/vscode-languageserver-node
+
+Copyright (c) Microsoft Corporation
+
+Homepage: https://github.com/Microsoft/vscode-languageserver-node
+
+Copyright (c) Microsoft Corporation
+
+Homepage: https://github.com/microsoft/vscode-uri#readme
+
+Copyright (c) Microsoft
+
Homepage: https://github.com/marijnh/w3c-keyname#readme
@@ -5599,6 +5880,11 @@ Homepage: https://github.com/wooorm/web-namespaces
Copyright (c) 2016 Titus Wormer <[email protected]>
+Homepage: https://github.com/substack/webworkify
+
+_(LICENSE file present but no auto-extractable copyright line; refer to the package source for canonical attribution.)_
+
Homepage: https://github.com/jsdom/whatwg-mimetype
@@ -5669,6 +5955,11 @@ Homepage: https://zod.dev
Copyright (c) 2025 Colin McDonnell
+Homepage: https://github.com/pmndrs/zustand
+
+Copyright (c) 2019 Paul Henschel
+
Homepage: https://github.com/wooorm/zwitch
@@ -5701,6 +5992,11 @@ Homepage: https://github.com/ungap/structured-clone#readme
Copyright (c) 2021, Andrea Giammarchi, @WebReflection
+Homepage: https://github.com/micromatch/anymatch
+
+Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com)
+
Homepage: https://github.com/isaacs/chownr
@@ -6293,6 +6589,7 @@ Copyright (c) 2015, Yeoman team
The following packages are under licenses that do not require attribution (BlueOak-1.0.0, 0BSD, WTFPL, Unlicense, CC0-1.0). Listed for completeness and traceability.
+- `[email protected]` — CC0-1.0
- `[email protected]` — BlueOak-1.0.0
- `[email protected]` — BlueOak-1.0.0
- `[email protected]` — Unlicense
diff --git a/packages/app/BUNDLE-SIZE.md b/packages/app/BUNDLE-SIZE.md
index 405d67a5a..c784187ea 100644
--- a/packages/app/BUNDLE-SIZE.md
+++ b/packages/app/BUNDLE-SIZE.md
@@ -70,3 +70,5 @@ Combined-chunks kept at 4.75 MB when merging main. Both sides had raised the sam
Combined-chunks 4.75->4.78 MB for the Open Knowledge Format plugin controls, generated-index settings, starter-pack install card, and their translations across all supported locale chunks. CI measured 4.76 MB, 12.84 kB over the prior ceiling, while the main app bundle remained at 417.92 kB against its 487 kB limit and CSS at 8.36 kB against 59 kB. The increase records the feature's total chunk footprint rather than first-load growth; the pre-existing lazy-load levers above remain the reclamation path.
Combined-chunks 4.85->4.95 MB for Korean (`ko`), the twelfth supported locale. Its catalog is emitted as a separate on-demand chunk, so the increase is combined-chunk inventory rather than eager weight: the branch measured 4.86 MB locally, 8.85 kB over the prior ceiling, while the main app remained at 420.63 kB against its 487 kB limit and CSS at 8.36 kB against 59 kB. The new ceiling leaves about 91 kB (1.9%) of headroom for the local-to-CI variance recorded above.
+
+Combined-chunks 4.95->6.55 MB for the `.excalidraw` canvas doc editor (`@excalidraw/excalidraw@^0.18.1`, matched to Excalidraw's own file format via `serializeAsJSON` / `restore`). Weight is entirely on-demand: `ExcalidrawDocEditor` mounts through `EditorActivityPool` behind the existing `React.lazy` gate, and Excalidraw itself defers its scene renderer, mermaid-to-excalidraw importer, and rough.js / perfect-freehand stack into its own async chunks — the eager main bundle is unaffected (measured 421.2 kB against its 487 kB limit). The gzipped total across the added `chunk-EIO257PC-*.js` + `dist-*.js` + `ExcalidrawDocEditor-*.js` chunks measures 6.41 MB locally, ~1.46 MB above the prior 4.95 MB ceiling; 6.55 MB carries the addition with ~140 kB headroom for the local-to-CI variance recorded above. No smaller Excalidraw slice exists on npm (the package ships one entry with the scene renderer, roughjs, perfect-freehand, `@excalidraw/laser-pointer`, and `@excalidraw/mermaid-to-excalidraw` all wired together), and the workspace deliberately vendors the fonts to `packages/app/public/excalidraw-assets/` rather than accepting the upstream `esm.sh` CDN fallback (see `scripts/copy-excalidraw-assets.mjs`) — the vendored assets are static files under `public/`, not JS, so they do not count against this budget.
diff --git a/packages/app/package.json b/packages/app/package.json
index b397becea..8ce151782 100644
--- a/packages/app/package.json
+++ b/packages/app/package.json
@@ -5,9 +5,9 @@
"private": true,
"type": "module",
"scripts": {
- "predev": "turbo run build --filter=@inkeep/open-knowledge-core --filter=@inkeep/open-knowledge-server && sh scripts/i18n-compile-unless-skipped.sh",
+ "predev": "turbo run build --filter=@inkeep/open-knowledge-core --filter=@inkeep/open-knowledge-server && sh scripts/i18n-compile-unless-skipped.sh && node scripts/copy-excalidraw-assets.mjs",
"dev": "vite",
- "build": "pnpm run i18n:compile && tsc --noEmit && vite build",
+ "build": "pnpm run i18n:compile && node scripts/copy-excalidraw-assets.mjs && tsc --noEmit && vite build",
"typecheck": "tsc --noEmit",
"i18n": "lingui extract --clean && pnpm run i18n:compile",
"i18n:extract": "lingui extract --clean",
@@ -53,7 +53,7 @@
{
"name": "all JS chunks combined (gzipped)",
"path": "dist/assets/*.js",
- "limit": "4.95 MB",
+ "limit": "6.55 MB",
"gzip": true,
"running": false
},
@@ -86,6 +86,7 @@
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
+ "@excalidraw/excalidraw": "0.18.1",
"@fellow/prosemirror-recreate-transform": "^1.2.3",
"@floating-ui/dom": "^1.7.6",
"@fontsource-variable/inter": "^5.2.8",
diff --git a/packages/app/scripts/copy-excalidraw-assets.mjs b/packages/app/scripts/copy-excalidraw-assets.mjs
new file mode 100644
index 000000000..5338dc3e7
--- /dev/null
+++ b/packages/app/scripts/copy-excalidraw-assets.mjs
@@ -0,0 +1,65 @@
+#!/usr/bin/env node
+/**
+ * Copy Excalidraw's `dist/prod/fonts` tree into `public/excalidraw-assets/fonts`
+ * so vite (dev) and the built dist both serve them from `/excalidraw-assets/`.
+ *
+ * The alternative — leaving `window.EXCALIDRAW_ASSET_PATH` unset — makes
+ * Excalidraw fall back to its hardcoded `esm.sh` CDN URL for every font file
+ * (see `createUrls` in `chunk-K2UTITRG.js`). That is a posture change for a
+ * local-first editor: offline / air-gapped users silently render with system-
+ * font fallbacks and every online use ships another vendor a request the app
+ * did not previously make. Vendoring keeps the existing self-hosted stance.
+ *
+ * Idempotent — if the destination already has a marker matching the installed
+ * Excalidraw version, do nothing. Cheap to run on every `predev`/`prebuild`.
+ */
+import {
+ cpSync,
+ existsSync,
+ mkdirSync,
+ readFileSync,
+ realpathSync,
+ rmSync,
+ writeFileSync,
+} from 'node:fs';
+import { dirname, join } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const HERE = dirname(fileURLToPath(import.meta.url));
+const APP_ROOT = join(HERE, '..');
+
+// Resolve the installed package root directly rather than via
+// `require.resolve('@excalidraw/excalidraw/package.json', ...)` — the package
+// declares an `exports` map that does not expose `./package.json`, so ESM
+// resolution rejects it (`ERR_PACKAGE_PATH_NOT_EXPORTED`). `realpathSync`
+// follows the pnpm workspace symlink to the actual store path.
+const pkgDir = realpathSync(join(APP_ROOT, 'node_modules', '@excalidraw', 'excalidraw'));
+const pkgPath = join(pkgDir, 'package.json');
+const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
+const version = pkg.version;
+if (typeof version !== 'string' || version.length === 0) {
+ console.error('[copy-excalidraw-assets] could not read @excalidraw/excalidraw version');
+ process.exit(1);
+}
+
+const src = join(pkgDir, 'dist', 'prod', 'fonts');
+if (!existsSync(src)) {
+ console.error(`[copy-excalidraw-assets] missing source dir: ${src}`);
+ process.exit(1);
+}
+
+const dst = join(APP_ROOT, 'public', 'excalidraw-assets');
+const marker = join(dst, `.copied-from-${version}`);
+if (existsSync(marker)) {
+ process.exit(0);
+}
+
+if (existsSync(dst)) {
+ rmSync(dst, { recursive: true, force: true });
+}
+mkdirSync(dst, { recursive: true });
+cpSync(src, join(dst, 'fonts'), { recursive: true });
+writeFileSync(marker, `${version}\n`);
+console.log(
+ `[copy-excalidraw-assets] vendored @excalidraw/excalidraw@${version} fonts → public/excalidraw-assets/fonts`,
+);
diff --git a/packages/app/src/components/EditorActivityPool.tsx b/packages/app/src/components/EditorActivityPool.tsx
index 5fe7e6e2a..01f9c681d 100644
--- a/packages/app/src/components/EditorActivityPool.tsx
+++ b/packages/app/src/components/EditorActivityPool.tsx
@@ -36,6 +36,7 @@
import {
isEditableTextDocFile,
+ isExcalidrawDocFile,
isManagedArtifactDocName,
isMermaidDocFile,
parseTemplateContentDocName,
@@ -107,6 +108,12 @@ const ManagedArtifactProperties = lazy(async () => ({
const MermaidDocEditor = lazy(async () => ({
default: (await import('./MermaidDocEditor')).MermaidDocEditor,
}));
+// Standalone Excalidraw doc editor. Lazy so the ~600kB Excalidraw bundle
+// (plus its `roughjs` renderer) stays out of the first-load bundle for
+// projects without any `.excalidraw` files.
+const ExcalidrawDocEditor = lazy(async () => ({
+ default: (await import('./ExcalidrawDocEditor')).ExcalidrawDocEditor,
+}));
const TextDocEditor = lazy(async () => ({
default: (await import('./TextDocEditor')).TextDocEditor,
}));
@@ -254,6 +261,7 @@ export function computeIsNewDoc(args: {
!isManagedArtifactDocName(docName) &&
parseTemplateContentDocName(docName) === null &&
!isMermaidDocFile(docName) &&
+ !isExcalidrawDocFile(docName) &&
!isEditableTextDocFile(docName)
);
}
@@ -1161,9 +1169,12 @@ function ActivityEntry({
// Standalone Mermaid docs (`.mmd`/`.mermaid`) render a dedicated diagram+source
// editor instead of the markdown dual-editor (they are Y.Text-only, no bridge).
const isMermaid = isMermaidDocFile(entry.docName);
+ // Standalone Excalidraw canvas docs (`.excalidraw`) — Y.Text-only doc
+ // whose source is a JSON snapshot of the canvas scene.
+ const isExcalidraw = isExcalidrawDocFile(entry.docName);
// Editable text docs (`.ts` / `.json` / `.txt` / …) — verbatim Y.Text docs
// rendered by a dedicated CodeMirror editor (no markdown dual-editor).
- const isTextDoc = !isMermaid && isEditableTextDocFile(entry.docName);
+ const isTextDoc = !isMermaid && !isExcalidraw && isEditableTextDocFile(entry.docName);
// Per-Activity portal target for <EditorContent>. Stable DOM element
// exclusively owned by THIS ActivityEntry — `useState` with a lazy
// initializer ensures the same `HTMLDivElement` reference survives across
@@ -1445,6 +1456,14 @@ function ActivityEntry({
provider={entry.provider}
isSourceMode={effectiveIsSourceMode}
/>
+ ) : isExcalidraw ? (
+ /* Standalone Excalidraw canvas doc (`.excalidraw`).
+ Whole-doc Y.Text('source') snapshot; no dual-editor,
+ no markdown bridge. Lazy so the canvas bundle stays
+ out of first-load for projects without one. */
+ <Suspense fallback={<EditorSkeleton />}>
+ <ExcalidrawDocEditor provider={entry.provider} />
+ </Suspense>
) : isTextDoc ? (
/* Editable text doc: single CodeMirror surface bound to this
doc's Y.Text('source') — same doc-class plumbing as the
diff --git a/packages/app/src/components/EditorToolbar.tsx b/packages/app/src/components/EditorToolbar.tsx
index 5b6943492..6ebf3031f 100644
--- a/packages/app/src/components/EditorToolbar.tsx
+++ b/packages/app/src/components/EditorToolbar.tsx
@@ -3,6 +3,7 @@
import type { HocuspocusProvider } from '@hocuspocus/provider';
import {
isEditableTextDocFile,
+ isExcalidrawDocFile,
type LintDiagnostic,
parseExternalSkillDocName,
parseManagedArtifactName,
@@ -182,9 +183,12 @@ export function EditorToolbar({
)}
</div>
<div className="pointer-events-auto flex justify-center">
- {/* Editable text docs have exactly one surface (CodeMirror), so
- the wysiwyg/source switch would be a no-op pair of buttons. */}
- {activeDocName !== null && isEditableTextDocFile(activeDocName) ? null : (
+ {/* Editable text docs have exactly one surface (CodeMirror) and
+ Excalidraw canvas docs have exactly one surface (the canvas —
+ the raw JSON snapshot is not something to hand-edit), so the
+ wysiwyg/source switch would be a no-op pair of buttons. */}
+ {activeDocName !== null &&
+ (isEditableTextDocFile(activeDocName) || isExcalidrawDocFile(activeDocName)) ? null : (
<EditorModeToggle
isSourceMode={isSourceMode}
onModeChange={onModeChange}
diff --git a/packages/app/src/components/ExcalidrawDocEditor.tsx b/packages/app/src/components/ExcalidrawDocEditor.tsx
new file mode 100644
index 000000000..8aaf1101e
--- /dev/null
+++ b/packages/app/src/components/ExcalidrawDocEditor.tsx
@@ -0,0 +1,194 @@
+/**
+ * Editor for a standalone Excalidraw canvas doc (`.excalidraw`). The canvas
+ * state serialises to the doc's `Y.Text('source')` as an Excalidraw JSON
+ * snapshot (via the package's own `serializeAsJSON` / `restore`, so the on-
+ * disk bytes are a real `.excalidraw` document — round-trips through
+ * excalidraw.com, the desktop app, the Obsidian plugin, and the VS Code
+ * extension). Peers see the same board on every reconnect and the CRDT
+ * undo history stays coherent.
+ *
+ * Field discipline is delegated to Excalidraw itself: `serializeAsJSON`
+ * strips every `appState` field marked `export: false` in its schema
+ * (theme, cursor position, active tool, selection, zoom, …), so per-peer
+ * preferences never bleed into the shared doc.
+ */
+import { CaptureUpdateAction, Excalidraw, restore, serializeAsJSON } from '@excalidraw/excalidraw';
+// Excalidraw ships its layout + toolbar CSS as a separate entry — without
+// this import the `.excalidraw-container` chrome renders as unstyled DOM
+// (toolbar labels flow inline, the whole app icon fills the viewport).
+import '@excalidraw/excalidraw/index.css';
+import type { HocuspocusProvider } from '@hocuspocus/provider';
+import { useLingui } from '@lingui/react/macro';
+import { type ComponentProps, useEffect, useRef, useState } from 'react';
+import { replaceYText } from './MermaidDocEditor';
+
+// Extend `Window` locally so setting `EXCALIDRAW_ASSET_PATH` doesn't require
+// a global `any` cast (and doesn't leak Excalidraw's package-private symbol
+// into every other consumer of `Window`).
+declare global {
+ interface Window {
+ EXCALIDRAW_ASSET_PATH?: string;
+ }
+}
+
+// Point Excalidraw at the self-hosted asset tree vendored in via
+// `scripts/copy-excalidraw-assets.mjs` (runs on `predev`/`prebuild`).
+// Without this, the package falls back to its hardcoded
+// `https://esm.sh/@excalidraw/excalidraw@<v>/dist/prod/` URL for every font
+// file (`createUrls` in the published `chunk-K2UTITRG.js`) — a posture
+// change for a local-first editor: offline users get system-font fallbacks,
+// and every online render ships a request to a third-party CDN we do not
+// otherwise depend on. Set at module load (before any Excalidraw component
+// mounts) so the first canvas render already has the override in place.
+if (typeof window !== 'undefined' && window.EXCALIDRAW_ASSET_PATH === undefined) {
+ window.EXCALIDRAW_ASSET_PATH = '/excalidraw-assets/';
+}
+
+type ExcalidrawProps = ComponentProps<typeof Excalidraw>;
+type ExcalidrawImperativeAPI = Parameters<NonNullable<ExcalidrawProps['excalidrawAPI']>>[0];
+type RestoreResult = {
+ elements: ReturnType<typeof restore>['elements'];
+ appState: ReturnType<typeof restore>['appState'];
+ files: ReturnType<typeof restore>['files'];
+};
+
+/**
+ * Discriminated result so callers can tell "genuinely empty" from "we got
+ * bytes but couldn't parse them" — the first is normal (new doc, blank
+ * board), the second is a symptom (disk corruption, half-written file,
+ * peer version drift) and needs a log so a diverging session leaves a
+ * diagnostic trail. `restore(null, null, null)` produces a blank scene in
+ * both branches so mount / sync never crashes on bad input.
+ */
+type ParseOutcome = { ok: true; scene: RestoreResult } | { ok: false; scene: RestoreResult };
+
+function parseSnapshot(str: string): ParseOutcome {
+ if (str.trim() === '') return { ok: true, scene: restore(null, null, null) };
+ try {
+ const parsed: unknown = JSON.parse(str);
+ // `restore` accepts anything shaped like `{ elements?, appState?, files? }`
+ // and coerces / repairs it into a valid Excalidraw scene.
+ return { ok: true, scene: restore(parsed as Parameters<typeof restore>[0], null, null) };
+ } catch {
+ return { ok: false, scene: restore(null, null, null) };
+ }
+}
+
+export function ExcalidrawDocEditor({ provider }: { provider: HocuspocusProvider }) {
+ const { t } = useLingui();
+ const ytext = provider.document.getText('source');
+ const [excalidrawAPI, setExcalidrawAPI] = useState<ExcalidrawImperativeAPI | null>(null);
+
+ // Byte-identity guard: our own onChange writes the same string back through
+ // the Y.Text observer; without this the observer would push that write
+ // straight back into updateScene / addFiles and cause a self-loop. Seeded
+ // with the on-mount source string so a byte-identical re-serialization
+ // never re-enters the CRDT.
+ const lastSavedRef = useRef<string>(ytext.toString());
+
+ // Compute initial data once (not memoized on `ytext`, because React Compiler
+ // handles stability — see WARN in root CLAUDE.md). Log a parse failure so a
+ // corrupt-on-disk `.excalidraw` file leaves a diagnostic trail before the
+ // editor swaps in a blank scene for it.
+ const initialOutcome = parseSnapshot(ytext.toString());
+ if (!initialOutcome.ok) {
+ console.warn(
+ "[ExcalidrawDocEditor] initial snapshot could not be parsed — falling back to a blank canvas; the original bytes remain in the doc until the user draws their first element (appState-only tweaks on an empty canvas don't unblock the guard)",
+ );
+ }
+
+ // Mount-write suppression after a parse failure. Excalidraw fires an
+ // `onChange` synchronously during mount with the parsed scene — which, when
+ // parse failed, is the fallback blank scene from `restore(null, null, null)`.
+ // That mount-onChange serializes to a fresh canonical Excalidraw JSON string
+ // that differs from the corrupt bytes on disk, so the byte-identity guard
+ // above does NOT block it, and `replaceYText` would silently overwrite the
+ // recoverable-corrupt file with the blank scene before the user has done
+ // anything. Gate writes on `elements.length > 0` while this ref is set: any
+ // `onChange` that still holds Excalidraw's initial blank scene is dropped,
+ // and the first real edit (`elements.length > 0`) unblocks the doc and
+ // resumes normal writes. Structural check rather than a serialization pre-
+ // compare so we don't have to predict `serializeAsJSON`'s runtime outputs
+ // (source URL, defaults, timestamps).
+ const blockBlankOverwriteRef = useRef<boolean>(!initialOutcome.ok);
+
+ // Remote update → local scene. Local update → remote is handled in
+ // `handleChange` below.
+ useEffect(() => {
+ if (excalidrawAPI === null) return;
+ const sync = () => {
+ const str = ytext.toString();
+ if (str === lastSavedRef.current) return;
+ lastSavedRef.current = str;
+ const outcome = parseSnapshot(str);
+ if (!outcome.ok) {
+ // A remote peer or an external tool wrote something we can't parse.
+ // Skip the apply rather than blanking the local canvas — the local
+ // state is presumed intact, and there is no upside to overwriting
+ // it with our fallback scene. The warn leaves a signal a
+ // multi-peer divergence investigation can grep for.
+ console.warn(
+ '[ExcalidrawDocEditor] sync: remote snapshot could not be parsed — skipping this update',
+ );
+ return;
+ }
+ const { elements, appState, files } = outcome.scene;
+ // `NEVER`: remote changes are applied silently, without landing on the
+ // local undo stack. Otherwise a peer's edit would be undoable from
+ // this client, which mangles the redo model — Excalidraw's own collab
+ // adapter uses the same value.
+ excalidrawAPI.updateScene({
+ elements,
+ appState,
+ captureUpdate: CaptureUpdateAction.NEVER,
+ });
+ // `files` is a separate API: `updateScene` does not accept it, and
+ // `onChange`'s `files` argument on the receiving side is the local
+ // (potentially imageless) map — so we have to write the incoming
+ // image bytes explicitly or two peers with pasted images will oscillate.
+ const fileValues = Object.values(files);
+ if (fileValues.length > 0) excalidrawAPI.addFiles(fileValues);
+ };
+ ytext.observe(sync);
+ return () => ytext.unobserve(sync);
+ }, [ytext, excalidrawAPI]);
+
+ const handleChange: NonNullable<ExcalidrawProps['onChange']> = (elements, appState, files) => {
+ // After a parse failure, refuse to persist Excalidraw's initial blank
+ // scene — see `blockBlankOverwriteRef` above. Any onChange holding
+ // `elements.length === 0` while the ref is set is either the mount-time
+ // call or a still-blank subsequent tick; drop it. The first real edit
+ // (elements.length > 0) unblocks the ref and lets normal writes resume,
+ // finally clearing the corrupt bytes on disk.
+ if (blockBlankOverwriteRef.current) {
+ if (elements.length === 0) return;
+ blockBlankOverwriteRef.current = false;
+ }
+ // `serializeAsJSON` produces the canonical `.excalidraw` doc shape:
+ // `{ type: 'excalidraw', version: 2, source, elements, appState, files }`.
+ // It strips every `appState` field marked `export: false` in the schema
+ // (theme, selection, cursor, zoom, …) so a peer's local viewer state
+ // never bleeds into the shared file. `'local'` opts into the file-tagged
+ // source string; `'database'` is for remote-DB round-trips.
+ const str = serializeAsJSON(elements, appState, files, 'local');
+ if (str === lastSavedRef.current) return;
+ lastSavedRef.current = str;
+ replaceYText(ytext, str);
+ };
+
+ return (
+ <main
+ className="relative flex h-full min-h-0 flex-col bg-background"
+ aria-label={t`Excalidraw canvas`}
+ data-excalidraw-doc-editor=""
+ >
+ <div className="absolute inset-0 z-0">
+ <Excalidraw
+ excalidrawAPI={setExcalidrawAPI}
+ initialData={initialOutcome.scene}
+ onChange={handleChange}
+ />
+ </div>
+ </main>
+ );
+}
diff --git a/packages/app/src/components/FileTree.tsx b/packages/app/src/components/FileTree.tsx
index 834b73eee..a7b6a5109 100644
--- a/packages/app/src/components/FileTree.tsx
+++ b/packages/app/src/components/FileTree.tsx
@@ -48,7 +48,10 @@ import {
type FileTargetMenuPrimitives,
} from '@/components/FileTargetMenuItems';
import { FileTreeFilteredToZeroNotice } from '@/components/FileTreeFilteredToZeroNotice';
-import { MARKDOWN_FILE_ICON_VIEWBOX } from '@/components/file-entry-icon';
+import {
+ EXCALIDRAW_FILE_ICON_VIEWBOX,
+ MARKDOWN_FILE_ICON_VIEWBOX,
+} from '@/components/file-entry-icon';
import {
appendSidebarUploadFields,
collectTreeFolderPathsFromDocuments,
@@ -87,6 +90,7 @@ import {
} from '@/components/file-tree-extension-badge';
import {
AGENT_DECORATION_ICON_ID,
+ EXCALIDRAW_FILE_ICON_ID,
FILE_TREE_DECORATION_SPRITE_SHEET,
LINK_DECORATION_ICON_ID,
MARKDOWN_FILE_ICON_ID,
@@ -1264,6 +1268,10 @@ export function FileTree({ ref }: { ref?: Ref<FileTreeHandle | null> }) {
byFileExtension: {
md: { name: MARKDOWN_FILE_ICON_ID, viewBox: MARKDOWN_FILE_ICON_VIEWBOX },
mdx: { name: MARKDOWN_FILE_ICON_ID, viewBox: MARKDOWN_FILE_ICON_VIEWBOX },
+ excalidraw: {
+ name: EXCALIDRAW_FILE_ICON_ID,
+ viewBox: EXCALIDRAW_FILE_ICON_VIEWBOX,
+ },
},
},
unsafeCSS: FILE_TREE_UNSAFE_CSS,
diff --git a/packages/app/src/components/file-entry-icon.tsx b/packages/app/src/components/file-entry-icon.tsx
index 4eff61698..13d2b18b4 100644
--- a/packages/app/src/components/file-entry-icon.tsx
+++ b/packages/app/src/components/file-entry-icon.tsx
@@ -11,6 +11,15 @@ export const MARKDOWN_FILE_ICON_VIEWBOX = '0 0 32 32';
export const MARKDOWN_FILE_ICON_PATH_D =
'M26.7075 10.2925L19.7075 3.2925C19.6146 3.19967 19.5042 3.12605 19.3829 3.07586C19.2615 3.02568 19.1314 2.9999 19 3H7C6.46957 3 5.96086 3.21071 5.58579 3.58579C5.21071 3.96086 5 4.46957 5 5V14C5 14.2652 5.10536 14.5196 5.29289 14.7071C5.48043 14.8946 5.73478 15 6 15C6.26522 15 6.51957 14.8946 6.70711 14.7071C6.89464 14.5196 7 14.2652 7 14V5H18V11C18 11.2652 18.1054 11.5196 18.2929 11.7071C18.4804 11.8946 18.7348 12 19 12H25V28C25 28.2652 25.1054 28.5196 25.2929 28.7071C25.4804 28.8946 25.7348 29 26 29C26.2652 29 26.5196 28.8946 26.7071 28.7071C26.8946 28.5196 27 28.2652 27 28V11C27.0001 10.8686 26.9743 10.7385 26.9241 10.6172C26.8739 10.4958 26.8003 10.3854 26.7075 10.2925ZM20 6.41375L23.5863 10H20V6.41375ZM18 18H16C15.7348 18 15.4804 18.1054 15.2929 18.2929C15.1054 18.4804 15 18.7348 15 19V26C15 26.2652 15.1054 26.5196 15.2929 26.7071C15.4804 26.8946 15.7348 27 16 27H18C19.1935 27 20.3381 26.5259 21.182 25.682C22.0259 24.8381 22.5 23.6935 22.5 22.5C22.5 21.3065 22.0259 20.1619 21.182 19.318C20.3381 18.4741 19.1935 18 18 18ZM18 25H17V20H18C18.663 20 19.2989 20.2634 19.7678 20.7322C20.2366 21.2011 20.5 21.837 20.5 22.5C20.5 23.163 20.2366 23.7989 19.7678 24.2678C19.2989 24.7366 18.663 25 18 25ZM13 19V26C13 26.2652 12.8946 26.5196 12.7071 26.7071C12.5196 26.8946 12.2652 27 12 27C11.7348 27 11.4804 26.8946 11.2929 26.7071C11.1054 26.5196 11 26.2652 11 26V22.1725L9.31875 24.5737C9.22652 24.7053 9.10396 24.8126 8.96144 24.8868C8.81892 24.9609 8.66064 24.9996 8.5 24.9996C8.33936 24.9996 8.18108 24.9609 8.03856 24.8868C7.89604 24.8126 7.77348 24.7053 7.68125 24.5737L6 22.1725V26C6 26.2652 5.89464 26.5196 5.70711 26.7071C5.51957 26.8946 5.26522 27 5 27C4.73478 27 4.48043 26.8946 4.29289 26.7071C4.10536 26.5196 4 26.2652 4 26V19C4.00009 18.7874 4.06791 18.5804 4.19363 18.409C4.31935 18.2376 4.49642 18.1107 4.69915 18.0467C4.90188 17.9828 5.11971 17.9851 5.32104 18.0533C5.52236 18.1216 5.6967 18.2522 5.81875 18.4263L8.5 22.2563L11.1812 18.4263C11.3033 18.2522 11.4776 18.1216 11.679 18.0533C11.8803 17.9851 12.0981 17.9828 12.3008 18.0467C12.5036 18.1107 12.6807 18.2376 12.8064 18.409C12.9321 18.5804 12.9999 18.7874 13 19Z';
+// Excalidraw brand mark (Simple Icons). Rendered with `currentColor` so it
+// themes with the surrounding row rather than the hardcoded `#000000` fill
+// in the source SVG. Same fill-based technique as `MarkdownFileIcon`.
+// Exported so `file-tree-icon-sprite.ts` can bake the symbol into the
+// `@pierre/trees` sprite sheet keyed off `EXCALIDRAW_FILE_ICON_ID`.
+export const EXCALIDRAW_FILE_ICON_VIEWBOX = '0 0 24 24';
+export const EXCALIDRAW_FILE_ICON_PATH_D =
+ 'M23.9428 19.8058a0.1962 0.1962 0 0 0 -0.1679 -0.0337c-1.26 -1.8552 -2.8727 -3.6104 -4.4186 -5.3152l-0.2521 -0.284c-0.0016 -0.0732 -0.0667 -0.1207 -0.1342 -0.1504 -0.0284 -0.0277 -0.0562 -0.0558 -0.0843 -0.0837 -0.0505 -0.1005 -0.1685 -0.1673 -0.2858 -0.1005 -0.4706 0.2347 -0.9068 0.5855 -1.3274 0.9195 -0.5536 0.4345 -1.1085 0.8695 -1.6296 1.354a5.0577 5.0577 0 0 0 -0.5879 0.6185c-0.0842 0.1168 -0.0168 0.2172 0.0843 0.2672 -0.3701 0.3677 -0.7402 0.736 -1.109 1.1198a0.1896 0.1896 0 0 0 -0.0506 0.1342c0 0.05 0.0337 0.1 0.0668 0.1168l0.6559 0.5012v0.0169c0.9237 0.9194 2.5538 2.1729 4.2844 3.5268 0.2515 0.201 0.5205 0.4014 0.7727 0.6017 0.1173 0.1342 0.2346 0.2847 0.3357 0.4182 0.0506 0.0662 0.1685 0.0837 0.2353 0.0331 0.0337 0.0337 0.0843 0.0668 0.118 0.1005a0.2395 0.2395 0 0 0 0.1004 0.0337 0.1534 0.1534 0 0 0 0.1348 -0.0668 0.2371 0.2371 0 0 0 0.0331 -0.1004c0.0175 0 0.0169 0.0168 0.0337 0.0168a0.1915 0.1915 0 0 0 0.1348 -0.0505l3.058 -3.3265c0.1198 -0.1159 0.0135 -0.2668 -0.0005 -0.2672zm-7.6277 -0.1336 -1.5459 -1.1704 -0.151 -0.0998c-0.0337 -0.0169 -0.0674 -0.0506 -0.1011 -0.0668l-0.1174 -0.1005c0.6597 -0.659 1.3297 -1.3074 1.9996 -1.9557 -0.4874 0.4844 -1.4622 1.9057 -1.2606 2.3733 0.0023 0 0.0186 0.0419 0.0674 0.0842 0.3704 0.311 0.7398 0.6232 1.109 0.9357zm4.0997 3.1261 -1.277 -0.97a26.9056 26.9056 0 0 0 -1.5795 -1.5044c0.689 0.5181 1.2769 0.9694 1.3611 1.053 0.6722 0.585 0.6379 0.485 1.0922 0.8696l0.5542 0.4008c-0.0735 0.103 -0.151 0.1477 -0.151 0.151zm0.3357 0.2503 -0.0337 -0.0168c0.0506 -0.0331 0.1011 -0.0668 0.1517 -0.1168zM0.5885 3.4751c0.0331 0.2172 0.0843 0.4344 0.1174 0.6354 0.2015 1.103 0.4031 2.1061 0.7726 2.8583l0.1516 0.568c0.0506 0.2173 0.1342 0.485 0.2185 0.5519 0.8568 0.7521 2.1674 1.8714 3.5785 2.9419a0.1775 0.1775 0 0 0 0.2185 0s0 0.0162 0.0168 0.0162a0.1528 0.1528 0 0 0 0.118 0.0506 0.1912 0.1912 0 0 0 0.1341 -0.0506c1.798 -1.9887 3.1418 -3.6267 4.0997 -4.9974 0.0674 -0.0668 0.0843 -0.1673 0.0843 -0.251 0.0668 -0.0668 0.1173 -0.1504 0.1847 -0.2004 0.0668 -0.0668 0.0668 -0.184 0 -0.2346l-0.0168 -0.0163c0 -0.033 -0.0169 -0.0836 -0.0506 -0.1005 -0.42 -0.4007 -0.722 -0.6848 -1.0416 -0.9856A93.5546 93.5546 0 0 1 6.822 1.9876c-0.0169 -0.0169 -0.0337 -0.0337 -0.0674 -0.0337 -0.3358 -0.1168 -1.0248 -0.2341 -1.8817 -0.3845C3.596 1.3527 1.865 1.0519 0.3027 0.583c0 0 -0.1011 0 -0.118 0.0169L0.1348 0.6505C0.0498 0.7139 0.0222 0.7058 0 0.7167c0.017 0.1005 0.017 0.1673 0.0506 0.2846 0 0.0331 0.0673 0.3009 0.0673 0.334zm7.1909 4.7802 -0.0337 0.0337a0.0362 0.0362 0 0 1 0.0337 -0.0337zM6.553 2.238c0.101 0.1005 0.5211 0.5019 0.6216 0.5855 -0.4369 -0.201 -1.5284 -0.7022 -2.0333 -0.8695 0.5043 0.1005 1.1933 0.201 1.4117 0.284ZM0.7901 1.4027c0.2521 0.4344 0.4537 1.9388 0.6553 3.4095 -0.118 -0.4682 -0.2016 -0.9357 -0.3027 -1.3708C0.9917 2.673 0.84 1.9876 0.6385 1.3858c0.1232 0 0.1516 0.0212 0.1516 0.0169zm-0.2858 -0.3683c0 -0.0162 0 -0.033 -0.0169 -0.033 0.0843 0 0.1342 0.0168 0.2016 0.0499 0.0006 0.0057 -0.1448 -0.0169 -0.1847 -0.0169zM23.6738 0.8172c0.0169 -0.0662 -0.3358 -0.367 -0.2184 -0.3845 0.2527 -0.0163 0.2527 -0.4008 0 -0.4008 -0.3358 0.0169 -0.6884 0.0999 -1.008 0.1504 -0.5878 0.1168 -1.1926 0.2341 -1.781 0.3671 -1.327 0.2846 -2.6375 0.5855 -3.9481 0.937 -0.4032 0.1167 -0.857 0.2003 -1.2432 0.4007 -0.1348 0.0668 -0.118 0.2004 -0.0506 0.284 -0.0337 0.0169 -0.0505 0.0169 -0.0842 0.0337 -0.1174 0.0169 -0.2185 0.0337 -0.3358 0.05 -0.1011 0.0168 -0.1516 0.1004 -0.1348 0.201 0 0.0162 0.0169 0.0499 0.0169 0.0661 -0.7059 0.9363 -1.4954 1.9226 -2.3523 2.9757 -0.84 0.9694 -1.7306 1.9893 -2.6212 3.0424 -2.8396 3.3096 -6.0487 7.0705 -9.5936 10.38a0.1613 0.1613 0 0 0 0 0.2341c0.0169 0.0163 0.0337 0.0331 0.0506 0.0331 -0.0506 0.0506 -0.1011 0.0843 -0.1517 0.1336 -0.0337 0.0337 -0.0505 0.0668 -0.0505 0.1005a0.364 0.364 0 0 0 -0.0668 0.0837c-0.0674 0.0667 -0.0674 0.1835 0.0169 0.234 0.0667 0.0662 0.1847 0.0662 0.2346 -0.0168 0.0175 -0.0169 0.0175 -0.0337 0.0337 -0.0337a0.2648 0.2648 0 0 1 0.3701 0c0.2016 0.2178 0.4032 0.435 0.588 0.6186l-0.4201 -0.3508c-0.0674 -0.0668 -0.1847 -0.05 -0.2347 0.0168 -0.068 0.0662 -0.0511 0.1835 0.0163 0.234l4.4691 3.7273c0.0337 0.0337 0.0674 0.0337 0.118 0.0337 0.0505 0 0.0842 -0.0169 0.1173 -0.0506l0.101 -0.0999c0.017 0.0163 0.05 0.0163 0.0669 0.0163 0.0505 0 0.0842 -0.0163 0.118 -0.05 6.0486 -6.0505 10.9216 -10.6141 16.4997 -14.6927 0.05 -0.0331 0.0668 -0.1 0.0668 -0.1505 0.0674 0 0.118 -0.05 0.151 -0.1167 1.0254 -3.1255 1.227 -5.9007 1.2938 -7.2709 0 -0.0579 0.0169 -0.0371 0.0169 -0.0668 0.0168 -0.0337 0.0168 -0.0505 0.0168 -0.0505a0.9784 0.9784 0 0 0 -0.0668 -0.6186zm-10.82 4.9144c0.2684 -0.3008 0.5374 -0.6186 0.8064 -0.9026 -1.7306 2.2734 -4.6033 5.7665 -8.67 9.9288C7.7626 11.699 10.5517 8.54 12.854 5.7316ZM5.1414 23.4662c-0.0162 -0.0168 -0.0162 -0.0168 0 -0.0168zm2.5033 -2.156c0.1348 -0.1505 0.2695 -0.284 0.4206 -0.4345 0 0 0 0.0163 0.0168 0.0163 -0.2236 0.1978 -0.4334 0.4182 -0.4374 0.4182zm0.6896 -0.6686c0.0994 -0.0993 0.14 -0.1724 0.2852 -0.3177 0.9917 -1.0193 2.0164 -2.0393 3.058 -3.0755l0.0169 -0.0168c0.2521 -0.2004 0.5542 -0.4177 0.8232 -0.6186a228.0627 228.0627 0 0 0 -4.1833 4.0286zm6.5187 -16.732c-0.5543 0.719 -1.1759 1.6716 -1.697 2.4238 -1.6463 2.3733 -6.9393 8.1735 -7.0566 8.274A1189.6473 1189.6473 0 0 1 1.26 19.204l-0.1005 0.1005c-0.0843 -0.1005 -0.0843 -0.251 0.0168 -0.3346 7.476 -7.0037 12.0132 -12.837 13.845 -15.3944 -0.0506 0.1167 -0.0843 0.2166 -0.1685 0.334zm2.9064 3.4269c-0.6716 -0.3851 -0.9905 -0.9869 -0.8064 -1.5712l0.0506 -0.201a0.7753 0.7753 0 0 1 0.0842 -0.1666c0.1848 -0.301 0.4538 -0.5518 0.7564 -0.7023 0.0163 0 0.0331 0 0.05 -0.0168 -0.0169 -0.0337 -0.0169 -0.0837 -0.0169 -0.1336 0.0169 -0.1005 0.0843 -0.1673 0.2016 -0.1673 0.2016 0 0.8238 0.1841 1.059 0.3845 0.0669 0.05 0.1343 0.1168 0.2017 0.1836 0.0842 0.1004 0.2184 0.2677 0.2852 0.4013 0.0337 0.0169 0.0674 0.1841 0.118 0.2678 0.0336 0.1336 0.0667 0.284 0.0505 0.4176 -0.0169 0.0169 0 0.1167 -0.0169 0.1167a1.6055 1.6055 0 0 1 -0.2184 0.6186c-0.0307 0.0307 0.0064 0.0119 -0.0505 0.0668 -0.0843 0.1342 -0.2016 0.251 -0.319 0.3346 -0.3869 0.2672 -0.8238 0.3508 -1.2606 0.234 -0.1105 -0.0473 -0.1672 -0.0667 -0.1685 -0.0667zm4.3692 1.4039c0 0.0168 -0.0168 0.0499 0 0.0667 -0.0337 0 -0.0505 0.0169 -0.0842 0.0337 -1.3274 0.9689 -2.6212 1.9888 -3.915 3.0256 1.109 -0.9868 2.218 -1.9894 3.3776 -2.9756 0.3358 -0.3009 0.5711 -0.6854 0.6379 -1.1199l0.1685 -1.003v-0.0332c0.0842 -0.201 0.4032 -0.1173 0.3526 0.1 -0.0042 -0.0012 -0.1731 0.795 -0.5374 1.9057z';
+
function isMarkdownExt(ext: string): boolean {
return ext === '.md' || ext === '.mdx';
}
@@ -23,6 +32,11 @@ function iconSvgForExt(ext: string): string {
return lucideIconToSvgString(Film);
case 'audio':
return lucideIconToSvgString(Volume2);
+ case 'excalidraw':
+ // Drag-preview path — a raw serialized SVG string, not a React tree,
+ // so hand-write the same shape ExcalidrawFileIcon renders (currentColor
+ // fill; the drop-target renders it inside a currentColor context).
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${EXCALIDRAW_FILE_ICON_VIEWBOX}" fill="currentColor" aria-hidden="true"><path d="${EXCALIDRAW_FILE_ICON_PATH_D}"/></svg>`;
default:
return lucideIconToSvgString(File);
}
@@ -42,6 +56,20 @@ function MarkdownFileIcon({ className, ...props }: ComponentProps<'svg'>) {
);
}
+function ExcalidrawFileIcon({ className, ...props }: ComponentProps<'svg'>) {
+ return (
+ <svg
+ aria-hidden="true"
+ className={className}
+ fill="currentColor"
+ viewBox={EXCALIDRAW_FILE_ICON_VIEWBOX}
+ {...props}
+ >
+ <path d={EXCALIDRAW_FILE_ICON_PATH_D} />
+ </svg>
+ );
+}
+
function fileEntryIconFieldsForPath(path: string): {
kind: 'file' | 'folder';
path: string;
@@ -134,6 +162,8 @@ export function FileEntryIcon({
<Film aria-hidden="true" className={iconClassName} data-testid="file-entry-icon-video" />
) : mediaKind === 'audio' ? (
<Volume2 aria-hidden="true" className={iconClassName} data-testid="file-entry-icon-audio" />
+ ) : mediaKind === 'excalidraw' ? (
+ <ExcalidrawFileIcon className={iconClassName} data-testid="file-entry-icon-excalidraw" />
) : (
<File aria-hidden="true" className={iconClassName} data-testid="file-entry-icon-file" />
)}
diff --git a/packages/app/src/components/file-tree-adapter.ts b/packages/app/src/components/file-tree-adapter.ts
index 733422a50..653a37264 100644
--- a/packages/app/src/components/file-tree-adapter.ts
+++ b/packages/app/src/components/file-tree-adapter.ts
@@ -1,5 +1,6 @@
import {
isEditableTextDocFile,
+ isExcalidrawDocFile,
isMermaidDocFile,
mediaKindForSidebarAssetExtension,
type UploadAssetSuccess,
@@ -29,12 +30,15 @@ export function docNameToTreePath(
docName: string,
docExt: string = DEFAULT_TREE_EXTENSION,
): string {
- // A Mermaid docName already carries its `.mmd`/`.mermaid` extension (it IS the
- // filename), so it maps to the tree path verbatim — appending `.md` would
- // point at a nonexistent file and break tree-highlight matching.
+ // A Mermaid, Excalidraw, or editable-text docName already carries its
+ // extension (it IS the filename), so it maps to the tree path verbatim —
+ // appending `.md` would point at a nonexistent file and break tree-
+ // highlight matching (and, worse, cause the doc-open path to create a
+ // phantom `${docName}.md` on disk on first open).
if (
TREE_EXTENSION_PATTERN.test(docName) ||
isMermaidDocFile(docName) ||
+ isExcalidrawDocFile(docName) ||
isEditableTextDocFile(docName)
) {
return docName;
diff --git a/packages/app/src/components/file-tree-icon-sprite.ts b/packages/app/src/components/file-tree-icon-sprite.ts
index d3f72644d..314808e3c 100644
--- a/packages/app/src/components/file-tree-icon-sprite.ts
+++ b/packages/app/src/components/file-tree-icon-sprite.ts
@@ -9,6 +9,8 @@
import { __iconNode as botIcon } from 'lucide-react/dist/esm/icons/bot';
import { __iconNode as link2Icon } from 'lucide-react/dist/esm/icons/link-2';
import {
+ EXCALIDRAW_FILE_ICON_PATH_D,
+ EXCALIDRAW_FILE_ICON_VIEWBOX,
MARKDOWN_FILE_ICON_PATH_D,
MARKDOWN_FILE_ICON_VIEWBOX,
} from '@/components/file-entry-icon';
@@ -16,11 +18,15 @@ import {
export const LINK_DECORATION_ICON_ID = 'ok-file-tree-link-decoration';
export const AGENT_DECORATION_ICON_ID = 'ok-file-tree-agent-decoration';
export const MARKDOWN_FILE_ICON_ID = 'ok-file-tree-markdown';
+export const EXCALIDRAW_FILE_ICON_ID = 'ok-file-tree-excalidraw';
// Custom Markdown file glyph (document with an "MD" label) overriding Pierre's
// built-in `complete`-set markdown glyph. `fill="currentColor"` lets
// `--trees-file-icon-color-markdown` (set in createFileTreeStyle, see
// file-tree-density.ts) color it.
const MARKDOWN_FILE_ICON_SYMBOL = `<symbol id="${MARKDOWN_FILE_ICON_ID}" viewBox="${MARKDOWN_FILE_ICON_VIEWBOX}" fill="currentColor"><path d="${MARKDOWN_FILE_ICON_PATH_D}"/></symbol>`;
+// Excalidraw brand mark for `.excalidraw` canvas files — same `currentColor`
+// technique as the Markdown symbol so the row's file-icon color drives it.
+const EXCALIDRAW_FILE_ICON_SYMBOL = `<symbol id="${EXCALIDRAW_FILE_ICON_ID}" viewBox="${EXCALIDRAW_FILE_ICON_VIEWBOX}" fill="currentColor"><path d="${EXCALIDRAW_FILE_ICON_PATH_D}"/></symbol>`;
type IconNode = [string, Record<string, string>][];
@@ -47,4 +53,5 @@ export const FILE_TREE_DECORATION_SPRITE_SHEET = `<svg data-icon-sprite aria-hid
${createLucideSpriteSymbol(LINK_DECORATION_ICON_ID, link2Icon)}
${createLucideSpriteSymbol(AGENT_DECORATION_ICON_ID, botIcon)}
${MARKDOWN_FILE_ICON_SYMBOL}
+ ${EXCALIDRAW_FILE_ICON_SYMBOL}
</svg>`;
diff --git a/packages/app/src/components/file-tree-selection.ts b/packages/app/src/components/file-tree-selection.ts
index 953ed5276..96fb7627e 100644
--- a/packages/app/src/components/file-tree-selection.ts
+++ b/packages/app/src/components/file-tree-selection.ts
@@ -108,12 +108,15 @@ export function resolveFileTreeSelectionAction(
return { kind: 'document', path: documentDocName };
}
if (entry && isAssetEntry(entry)) {
- // Mermaid files (`.mmd`/`.mermaid`) and editable text files (`.ts` /
- // `.json` / `.html` / …) are served as assets but open as editable CRDT
- // docs, not the read-only asset viewer. Their docName IS the asset path
- // (extension retained), so route the selection as a document.
+ // Mermaid files (`.mmd`/`.mermaid`), Excalidraw canvases (`.excalidraw`),
+ // and editable text files (`.ts` / `.json` / `.html` / …) are served as
+ // assets but open as editable CRDT docs, not the read-only asset viewer.
+ // Their docName IS the asset path (extension retained), so route the
+ // selection as a document — the doc-open path takes it through
+ // EditorActivityPool where the per-extension editor branches live.
if (
entry.mediaKind === 'mermaid' ||
+ entry.mediaKind === 'excalidraw' ||
(isEditableTextDocFile(entry.path) &&
!isDocumentOverOpenByteLimit(entry.size, TEXT_DOC_OPEN_BYTE_LIMIT))
) {
diff --git a/packages/app/src/components/navigation-targets.ts b/packages/app/src/components/navigation-targets.ts
index 90922a88d..3506bd9de 100644
--- a/packages/app/src/components/navigation-targets.ts
+++ b/packages/app/src/components/navigation-targets.ts
@@ -3,6 +3,7 @@ import {
type InlineAssetMediaKind,
isDocumentOverOpenByteLimit,
isEditableTextDocFile,
+ isExcalidrawDocFile,
isManagedArtifactDocName,
isMermaidDocFile,
mediaKindForSidebarAssetExtension,
@@ -334,14 +335,17 @@ export function resolveNavigationTarget(
if (!normalizedTarget) {
return { kind: 'missing', target: normalizedTarget };
}
- // Standalone Mermaid docs (`assets/flow.mmd`) retain their extension in the
- // docName and live OUTSIDE the markdown `pages` set — the membership checks
- // below would mark them 'missing'. Resolve directly as a doc target (mirrors
- // the managed-artifact early return above) so tree-open / hash nav opens the
- // editable Mermaid doc editor rather than the read-only asset viewer.
+ // Standalone Mermaid (`.mmd`), Excalidraw (`.excalidraw`), and editable-
+ // text docs retain their extension in the docName and live OUTSIDE the
+ // markdown `pages` set — the membership checks below would mark them
+ // 'missing'. Resolve directly as a doc target (mirrors the managed-
+ // artifact early return above) so tree-open / hash nav opens the
+ // editable doc editor rather than the read-only asset viewer.
if (
!expectsFolder &&
- (isMermaidDocFile(normalizedTarget) || isEditableTextDocFile(normalizedTarget))
+ (isMermaidDocFile(normalizedTarget) ||
+ isExcalidrawDocFile(normalizedTarget) ||
+ isEditableTextDocFile(normalizedTarget))
) {
return { kind: 'doc', target: normalizedTarget, docName: normalizedTarget };
}
diff --git a/packages/app/src/lib/sidebar-drag.ts b/packages/app/src/lib/sidebar-drag.ts
index 67904da8e..a2c329068 100644
--- a/packages/app/src/lib/sidebar-drag.ts
+++ b/packages/app/src/lib/sidebar-drag.ts
@@ -20,6 +20,7 @@ const INLINE_ASSET_MEDIA_KIND_VALUES = {
pdf: true,
text: true,
mermaid: true,
+ excalidraw: true,
} satisfies Record<InlineAssetMediaKind, true>;
export function serializeSidebarDragPayload(payload: SidebarDragPayload): string {
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 874a50d40..e5f742b31 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -5012,6 +5012,7 @@
"wtd69q": ["لا توجد مجلدات مطابقة."],
"wvK7Ay": ["نسختك المحلية من الفرع <0>", ["branch"], "</0> متأخرة."],
"wvbc1r": ["تعذّر فتح المستند"],
+ "wxRR0H": ["لوحة Excalidraw"],
"wzq9Rv": ["يوجد بالفعل فرع بهذا الاسم. افتح شجرة عمله من المبدِّل بدلًا من ذلك."],
"x-fZxg": ["ادفع الفرع ", ["branch"], " إلى GitHub قبل المشاركة."],
"x2fr_j": ["الرسم البياني"],
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index 38a99d39e..84d44a60a 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -5088,6 +5088,10 @@ msgstr "كل ما تحت مجلدات {0}/ داخل {1}/"
msgid "everything under any {0}/ folder"
msgstr "كل ما تحت أي مجلد {0}/"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "لوحة Excalidraw"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "استثناء: المهارات مشتركة"
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index 3097b02b1..012825859 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -4265,6 +4265,7 @@
"wtd69q": ["কোনো ফোল্ডার মিলছে না।"],
"wvK7Ay": ["ব্রাঞ্চ <0>", ["branch"], "</0>-এর আপনার স্থানীয় অনুলিপি পিছিয়ে আছে।"],
"wvbc1r": ["নথি খোলা যায়নি"],
+ "wxRR0H": ["Excalidraw ক্যানভাস"],
"wzq9Rv": ["ওই নামে একটি ব্রাঞ্চ আগে থেকেই আছে। বদলে সুইচার থেকে এর ওয়ার্কট্রি খুলুন।"],
"x-fZxg": ["শেয়ার করার আগে ", ["branch"], " ব্রাঞ্চটি GitHub-এ পুশ করুন।"],
"x2fr_j": ["গ্রাফ"],
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index f096f206c..bd961b7f8 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -5084,6 +5084,10 @@ msgstr "{1}/-এর ভেতরের {0}/ ফোল্ডারগুলোর
msgid "everything under any {0}/ folder"
msgstr "যেকোনো {0}/ ফোল্ডারের নিচের সবকিছু"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Excalidraw ক্যানভাস"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "ব্যতিক্রম: স্কিল ভাগ করা হয়"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index abfdd9766..deceb5dba 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -4411,6 +4411,7 @@
"wtd69q": ["No folders match."],
"wvK7Ay": ["Your local copy of branch <0>", ["branch"], "</0> is behind."],
"wvbc1r": ["Couldn't open document"],
+ "wxRR0H": ["Excalidraw canvas"],
"wzq9Rv": [
"A branch with that name already exists. Open its worktree from the switcher instead."
],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index 854016bac..f3b7e605b 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -5088,6 +5088,10 @@ msgstr "everything under {0}/ folders inside {1}/"
msgid "everything under any {0}/ folder"
msgstr "everything under any {0}/ folder"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Excalidraw canvas"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "Exception: skills are shared"
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index dc91069d5..de0fe35e5 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -5095,6 +5095,7 @@
"wtd69q": ["Ninguna carpeta coincide."],
"wvK7Ay": ["Tu copia local de la rama <0>", ["branch"], "</0> está por detrás."],
"wvbc1r": ["No se pudo abrir el documento"],
+ "wxRR0H": ["Lienzo de Excalidraw"],
"wzq9Rv": ["Ya existe una rama con ese nombre. Abre su worktree desde el selector."],
"x-fZxg": ["Envía la rama ", ["branch"], " a GitHub antes de compartir."],
"x2fr_j": ["Grafo"],
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index 7725550f4..c98ced78e 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -5088,6 +5088,10 @@ msgstr "todo lo que hay en las carpetas {0}/ dentro de {1}/"
msgid "everything under any {0}/ folder"
msgstr "todo lo que hay en cualquier carpeta {0}/"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Lienzo de Excalidraw"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "Excepción: las habilidades se comparten"
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index bb739161d..9db3d3561 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -5147,6 +5147,7 @@
"wtd69q": ["Aucun dossier ne correspond."],
"wvK7Ay": ["Votre copie locale de la branche <0>", ["branch"], "</0> est en retard."],
"wvbc1r": ["Impossible d'ouvrir le document"],
+ "wxRR0H": ["Canevas Excalidraw"],
"wzq9Rv": [
"Une branche portant ce nom existe déjà. Ouvrez plutôt son worktree depuis le sélecteur."
],
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index d8bc34bba..a7fbd743f 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -5088,6 +5088,10 @@ msgstr "tout ce qui se trouve sous les dossiers {0}/ à l'intérieur de {1}/"
msgid "everything under any {0}/ folder"
msgstr "tout ce qui se trouve sous n'importe quel dossier {0}/"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Canevas Excalidraw"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "Exception : les compétences sont partagées"
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index 66987b49e..ea31332ea 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -4261,6 +4261,7 @@
"wtd69q": ["कोई फ़ोल्डर मेल नहीं खाता।"],
"wvK7Ay": ["ब्रांच <0>", ["branch"], "</0> की आपकी स्थानीय प्रति पीछे है।"],
"wvbc1r": ["दस्तावेज़ नहीं खोला जा सका"],
+ "wxRR0H": ["Excalidraw कैनवास"],
"wzq9Rv": ["उस नाम की एक ब्रांच पहले से मौजूद है। इसके बजाय स्विचर से इसका वर्कट्री खोलें।"],
"x-fZxg": ["साझा करने से पहले ब्रांच ", ["branch"], " को GitHub पर पुश करें।"],
"x2fr_j": ["ग्राफ़"],
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index 51947bc9e..3335a6e02 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -5084,6 +5084,10 @@ msgstr "{1}/ के भीतर मौजूद {0}/ फ़ोल्डरो
msgid "everything under any {0}/ folder"
msgstr "किसी भी {0}/ फ़ोल्डर के अंतर्गत सब कुछ"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Excalidraw कैनवास"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "अपवाद: स्किल साझा की जाती हैं"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 94a249050..003f1eab0 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -4436,6 +4436,7 @@
"wtd69q": ["Tidak ada folder yang cocok."],
"wvK7Ay": ["Salinan lokal cabang <0>", ["branch"], "</0> milik Anda tertinggal."],
"wvbc1r": ["Dokumen tidak bisa dibuka"],
+ "wxRR0H": ["Kanvas Excalidraw"],
"wzq9Rv": ["Cabang dengan nama itu sudah ada. Buka worktree-nya dari pengalih saja."],
"x-fZxg": ["Push cabang ", ["branch"], " ke GitHub sebelum berbagi."],
"x2fr_j": ["Graf"],
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index 116f8819d..ff4d36a34 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -5084,6 +5084,10 @@ msgstr "semua yang ada di folder {0}/ di dalam {1}/"
msgid "everything under any {0}/ folder"
msgstr "semua yang ada di folder {0}/ mana pun"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Kanvas Excalidraw"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "Pengecualian: keterampilan dibagikan"
diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.json
index 4e736ef14..a66776ff4 100644
--- a/packages/app/src/locales/ko/messages.json
+++ b/packages/app/src/locales/ko/messages.json
@@ -4223,6 +4223,7 @@
"wtd69q": ["일치하는 폴더 없음."],
"wvK7Ay": ["브랜치 <0>", ["branch"], "</0>의 로컬 사본이 뒤처져 있습니다."],
"wvbc1r": ["문서를 열지 못했습니다"],
+ "wxRR0H": ["Excalidraw 캔버스"],
"wzq9Rv": ["해당 이름의 브랜치가 이미 있습니다. 대신 전환기에서 해당 워크트리를 여세요."],
"x-fZxg": ["공유하기 전에 ", ["branch"], "를 GitHub에 푸시하세요."],
"x2fr_j": ["그래프"],
diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.po
index 8f1e94150..2114f764d 100644
--- a/packages/app/src/locales/ko/messages.po
+++ b/packages/app/src/locales/ko/messages.po
@@ -5083,6 +5083,10 @@ msgstr "{0}/ 폴더가 {1}/ 안에 있는 모든 항목"
msgid "everything under any {0}/ folder"
msgstr "모든 {0}/ 폴더 아래의 항목"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Excalidraw 캔버스"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "예외: 스킬은 공유됨"
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index ed44bcdce..4bacb7897 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -4411,6 +4411,7 @@
"wtd69q": ["Ńō ƒōĺďēŕś ḿàţćĥ."],
"wvK7Ay": ["Ŷōũŕ ĺōćàĺ ćōƥŷ ōƒ ƀŕàńćĥ <0>", ["branch"], "</0> ĩś ƀēĥĩńď."],
"wvbc1r": ["Ćōũĺďń'ţ ōƥēń ďōćũḿēńţ"],
+ "wxRR0H": ["Ēxćàĺĩďŕàŵ ćàńvàś"],
"wzq9Rv": [
"À ƀŕàńćĥ ŵĩţĥ ţĥàţ ńàḿē àĺŕēàďŷ ēxĩśţś. Ōƥēń ĩţś ŵōŕķţŕēē ƒŕōḿ ţĥē śŵĩţćĥēŕ ĩńśţēàď."
],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index d9e3c89d1..2b8978fd1 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -5084,6 +5084,10 @@ msgstr ""
msgid "everything under any {0}/ folder"
msgstr ""
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr ""
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index 2cb283596..cef69b37a 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -4983,6 +4983,7 @@
"wtd69q": ["Nenhuma pasta corresponde."],
"wvK7Ay": ["Sua cópia local do ramo <0>", ["branch"], "</0> está atrasada."],
"wvbc1r": ["Não deu para abrir o documento"],
+ "wxRR0H": ["Tela do Excalidraw"],
"wzq9Rv": ["Já existe um ramo com esse nome. Abra o worktree dele pelo seletor."],
"x-fZxg": ["Envie o ramo ", ["branch"], " para o GitHub antes de compartilhar."],
"x2fr_j": ["Grafo"],
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index bf94e5e39..c44c11111 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -5084,6 +5084,10 @@ msgstr "tudo dentro das pastas {0}/ que estão em {1}/"
msgid "everything under any {0}/ folder"
msgstr "tudo dentro de qualquer pasta {0}/"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Tela do Excalidraw"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "Exceção: as habilidades são compartilhadas"
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index 308562282..0579128ed 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -4493,6 +4493,7 @@
"wtd69q": ["کوئی فولڈر مماثل نہیں۔"],
"wvK7Ay": ["برانچ <0>", ["branch"], "</0> کی آپ کی مقامی نقل پیچھے ہے۔"],
"wvbc1r": ["دستاویز نہیں کھل سکی"],
+ "wxRR0H": ["Excalidraw کینوس"],
"wzq9Rv": ["اس نام کی برانچ پہلے سے موجود ہے۔ اس کے بجائے سوئچر سے اس کا ورک ٹری کھولیں۔"],
"x-fZxg": ["شیئر کرنے سے پہلے برانچ ", ["branch"], " کو GitHub پر پش کریں۔"],
"x2fr_j": ["گراف"],
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index f5f1b0909..12256ace7 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -5088,6 +5088,10 @@ msgstr "{1}/ کے اندر {0}/ فولڈرز کے تحت سب کچھ"
msgid "everything under any {0}/ folder"
msgstr "کسی بھی {0}/ فولڈر کے تحت سب کچھ"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Excalidraw کینوس"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "استثنا: مہارتیں مشترک ہیں"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index c9cb745df..d91068991 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -3867,6 +3867,7 @@
"wtd69q": ["没有匹配的文件夹。"],
"wvK7Ay": ["你本地的 <0>", ["branch"], "</0> 分支副本落后了。"],
"wvbc1r": ["无法打开文档"],
+ "wxRR0H": ["Excalidraw 画布"],
"wzq9Rv": ["同名分支已存在。请从切换器中打开它的 worktree。"],
"x-fZxg": ["共享前请先将分支 ", ["branch"], " 推送到 GitHub。"],
"x2fr_j": ["关系图"],
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index 5ed0a9452..6fcc6dbc2 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -5088,6 +5088,10 @@ msgstr "{1}/ 中各个 {0}/ 文件夹下的所有内容"
msgid "everything under any {0}/ folder"
msgstr "任意 {0}/ 文件夹下的所有内容"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Excalidraw 画布"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "例外:技能是共享的"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index 7ca25f8c7..eff902c8c 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -3899,6 +3899,7 @@
"wtd69q": ["沒有符合的資料夾。"],
"wvK7Ay": ["你本機的 <0>", ["branch"], "</0> 分支副本落後了。"],
"wvbc1r": ["無法開啟文件"],
+ "wxRR0H": ["Excalidraw 畫布"],
"wzq9Rv": ["同名的分支已存在。請改從切換器開啟它的 worktree。"],
"x-fZxg": ["分享前請先將分支 ", ["branch"], " 推送到 GitHub。"],
"x2fr_j": ["關係圖"],
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index 513b58645..7c85369fa 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -5088,6 +5088,10 @@ msgstr "{1}/ 裡各個 {0}/ 資料夾底下的所有內容"
msgid "everything under any {0}/ folder"
msgstr "任何 {0}/ 資料夾底下的所有內容"
+#: src/components/ExcalidrawDocEditor.tsx
+msgid "Excalidraw canvas"
+msgstr "Excalidraw 畫布"
+
#: src/components/settings/SharingSection.tsx
msgid "Exception: skills are shared"
msgstr "例外:技能是共享的"
diff --git a/packages/cli/src/commands/ui.ts b/packages/cli/src/commands/ui.ts
index baacd0b61..06d645380 100644
--- a/packages/cli/src/commands/ui.ts
+++ b/packages/cli/src/commands/ui.ts
@@ -423,7 +423,11 @@ export async function startUiServer(opts: StartUiServerOptions): Promise<UiServe
// true` + `extensions: []` means a missing file WITH an extension
// calls `next()` (instead of returning the SPA shell), so user
// uploads at `<contentDir>/assets/foo.png` still serve.
- if (staticHandler && url?.startsWith('/assets/')) {
+ //
+ // `/excalidraw-assets/` follows the same shell-first rule for the
+ // vendored Excalidraw font tree (mirrors `mcp-mount.ts`) — keep the
+ // two branches aligned; splitting them out would let one drift.
+ if (staticHandler && (url?.startsWith('/assets/') || url?.startsWith('/excalidraw-assets/'))) {
staticHandler(req, res, () => {
if (assetServeMiddleware) {
assetServeMiddleware(req, res, () => notFoundStatic(res));
diff --git a/packages/core/src/constants/upload.test.ts b/packages/core/src/constants/upload.test.ts
index fba120312..7befb2eb1 100644
--- a/packages/core/src/constants/upload.test.ts
+++ b/packages/core/src/constants/upload.test.ts
@@ -2,9 +2,11 @@ import { describe, expect, test } from 'vitest';
import {
ASSET_EXTENSIONS,
AUDIO_EXTENSIONS,
+ EXCALIDRAW_FILE_EXTENSIONS,
FILE_ATTACHMENT_EXTENSIONS,
IMAGE_EXTENSIONS,
INLINE_RENDERABLE_EXTENSIONS,
+ isExcalidrawDocFile,
isMermaidDocFile,
LINKABLE_ASSET_EXTENSIONS,
MERMAID_FILE_EXTENSIONS,
@@ -220,9 +222,12 @@ describe('mediaKindForSidebarAssetExtension', () => {
expect(LINKABLE_ASSET_EXTENSIONS.has('canvas')).toBe(true);
});
- test('size equals ASSET_EXTENSIONS + TEXT_VIEWER_FALLBACK_EXTENSIONS + MERMAID_FILE_EXTENSIONS', () => {
+ test('size equals ASSET_EXTENSIONS + TEXT_VIEWER_FALLBACK_EXTENSIONS + MERMAID_FILE_EXTENSIONS + EXCALIDRAW_FILE_EXTENSIONS', () => {
expect(LINKABLE_ASSET_EXTENSIONS.size).toBe(
- ASSET_EXTENSIONS.size + TEXT_VIEWER_FALLBACK_EXTENSIONS.size + MERMAID_FILE_EXTENSIONS.size,
+ ASSET_EXTENSIONS.size +
+ TEXT_VIEWER_FALLBACK_EXTENSIONS.size +
+ MERMAID_FILE_EXTENSIONS.size +
+ EXCALIDRAW_FILE_EXTENSIONS.size,
);
});
@@ -230,6 +235,54 @@ describe('mediaKindForSidebarAssetExtension', () => {
expect(LINKABLE_ASSET_EXTENSIONS.has('mmd')).toBe(true);
expect(LINKABLE_ASSET_EXTENSIONS.has('mermaid')).toBe(true);
});
+
+ test('contains excalidraw (excalidraw-file member)', () => {
+ expect(LINKABLE_ASSET_EXTENSIONS.has('excalidraw')).toBe(true);
+ });
+ });
+
+ describe('EXCALIDRAW_FILE_EXTENSIONS', () => {
+ test('scoped to `.excalidraw` only — `.canvas` stays with the text-viewer fallback set', () => {
+ // `.canvas` is Obsidian's canvas JSON schema (different format,
+ // Excalidraw can't parse it); it must keep routing through the
+ // TEXT_VIEWER_FALLBACK path with syntax highlighting.
+ expect(EXCALIDRAW_FILE_EXTENSIONS.has('excalidraw')).toBe(true);
+ expect(EXCALIDRAW_FILE_EXTENSIONS.has('canvas')).toBe(false);
+ expect(TEXT_VIEWER_FALLBACK_EXTENSIONS.has('canvas')).toBe(true);
+ });
+
+ test('mediaKindForSidebarAssetExtension routes `.excalidraw` to "excalidraw"', () => {
+ expect(mediaKindForSidebarAssetExtension('.excalidraw')).toBe('excalidraw');
+ expect(mediaKindForSidebarAssetExtension('excalidraw')).toBe('excalidraw');
+ expect(mediaKindForSidebarAssetExtension('.EXCALIDRAW')).toBe('excalidraw');
+ // `.canvas` still routes to text, not excalidraw.
+ expect(mediaKindForSidebarAssetExtension('.canvas')).toBe('text');
+ });
+
+ test('isExcalidrawDocFile matches by trailing extension', () => {
+ expect(isExcalidrawDocFile('assets/board.excalidraw')).toBe(true);
+ expect(isExcalidrawDocFile('board.EXCALIDRAW')).toBe(true);
+ expect(isExcalidrawDocFile('board.canvas')).toBe(false);
+ expect(isExcalidrawDocFile('board.mmd')).toBe(false);
+ expect(isExcalidrawDocFile('board')).toBe(false);
+ });
+
+ test('excalidraw is absent from ASSET_EXTENSIONS and INLINE_RENDERABLE_EXTENSIONS (XSS boundary)', () => {
+ // Same allowlist stance as MERMAID_FILE_EXTENSIONS above: canvas render
+ // is a client-side React component (`ExcalidrawDocEditor`) that reads
+ // via the CRDT, not a raw asset stream. Admitting `.excalidraw` to the
+ // XSS/serve boundary would route the file through inline `/api/asset`
+ // instead of the CSP-sandboxed `/api/asset-text` — a stored-XSS regress
+ // if a `.excalidraw` file ever carried untrusted bytes. Pin the
+ // exclusion so accidental widening (adding `excalidraw` to
+ // ASSET_EXTENSIONS or INLINE_RENDERABLE_EXTENSIONS in upload.ts)
+ // fails CI immediately.
+ for (const ext of EXCALIDRAW_FILE_EXTENSIONS) {
+ expect(ASSET_EXTENSIONS.has(ext)).toBe(false);
+ expect(INLINE_RENDERABLE_EXTENSIONS.has(ext)).toBe(false);
+ expect(LINKABLE_ASSET_EXTENSIONS.has(ext)).toBe(true);
+ }
+ });
});
test('lock files dispatch to TextViewer regardless of stem prefix', () => {
diff --git a/packages/core/src/constants/upload.ts b/packages/core/src/constants/upload.ts
index 8fd4e002f..213082957 100644
--- a/packages/core/src/constants/upload.ts
+++ b/packages/core/src/constants/upload.ts
@@ -575,7 +575,14 @@ export const WIKI_EMBED_EXTENSIONS: ReadonlySet<string> = new Set([
'mobi',
]);
-export type InlineAssetMediaKind = 'image' | 'video' | 'audio' | 'pdf' | 'text' | 'mermaid';
+export type InlineAssetMediaKind =
+ | 'image'
+ | 'video'
+ | 'audio'
+ | 'pdf'
+ | 'text'
+ | 'mermaid'
+ | 'excalidraw';
// Sidebar-clickable asset extensions, grouped by inline-render path.
// Each set is a STRICT subset of its canonical-class set (asserted below),
@@ -698,6 +705,27 @@ export function isMermaidDocFile(path: string): boolean {
return MERMAID_FILE_EXTENSIONS.has(path.slice(lastDot + 1).toLowerCase());
}
+// Standalone Excalidraw drawing-canvas source files. Rendered via the
+// editor's `<Excalidraw>` component through the ungated `/api/asset-text`
+// byte path — same allowlist stance as the Mermaid set (indexable + linkable
+// but not admitted to the XSS-gated `/api/asset` serve path). Scoped to
+// `.excalidraw` only; `.canvas` is deliberately excluded because
+// TEXT_VIEWER_FALLBACK_EXTENSIONS already claims it for Obsidian's canvas
+// JSON schema (different format, cannot be parsed by Excalidraw).
+export const EXCALIDRAW_FILE_EXTENSIONS: ReadonlySet<string> = new Set(['excalidraw']);
+
+/**
+ * True when a path/docName names a standalone Excalidraw source file. Pure
+ * string op (no `node:path`) so it runs in the browser too. Same doc-class
+ * discriminator role as `isMermaidDocFile` — the docName retains the
+ * extension (`assets/board.excalidraw`).
+ */
+export function isExcalidrawDocFile(path: string): boolean {
+ const lastDot = path.lastIndexOf('.');
+ if (lastDot < 0) return false;
+ return EXCALIDRAW_FILE_EXTENSIONS.has(path.slice(lastDot + 1).toLowerCase());
+}
+
// Code-file extensions live in a sibling module so the
// language→extension table can be shared with the app-side TextViewer
// (which maps the same canonical IDs to CodeMirror language packs).
@@ -718,6 +746,7 @@ export const LINKABLE_ASSET_EXTENSIONS: ReadonlySet<string> = new Set([
...ASSET_EXTENSIONS,
...TEXT_VIEWER_FALLBACK_EXTENSIONS,
...MERMAID_FILE_EXTENSIONS,
+ ...EXCALIDRAW_FILE_EXTENSIONS,
]);
/**
@@ -739,6 +768,7 @@ export function mediaKindForSidebarAssetExtension(ext: string): InlineAssetMedia
if (SIDEBAR_TEXT_ASSET_EXTENSIONS.has(normalized)) return 'text';
if (TEXT_VIEWER_FALLBACK_EXTENSIONS.has(normalized)) return 'text';
if (MERMAID_FILE_EXTENSIONS.has(normalized)) return 'mermaid';
+ if (EXCALIDRAW_FILE_EXTENSIONS.has(normalized)) return 'excalidraw';
// Files whose extension matches a codeblock-supported language
// (`ts` / `py` / `go` / ...) open by default in the read-only
// text viewer with syntax highlighting — same kind dispatch as
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index 43781374d..9f9175f28 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -436,6 +436,7 @@ export {
type DedupMode,
type DedupUIMode,
type EmitFormat,
+ EXCALIDRAW_FILE_EXTENSIONS,
EXECUTABLE_BLOCKLIST_EXTENSIONS,
FILE_ATTACHMENT_EXTENSIONS,
// re-exported here as the canonical dispatch surface — same set, same
@@ -443,6 +444,7 @@ export {
IMAGE_EXTENSIONS,
INLINE_RENDERABLE_EXTENSIONS,
type InlineAssetMediaKind,
+ isExcalidrawDocFile,
isMermaidDocFile,
LINKABLE_ASSET_EXTENSIONS,
MERMAID_FILE_EXTENSIONS,
diff --git a/packages/core/src/schemas/api/document-read.ts b/packages/core/src/schemas/api/document-read.ts
index 63c2b068a..697961ab4 100644
--- a/packages/core/src/schemas/api/document-read.ts
+++ b/packages/core/src/schemas/api/document-read.ts
@@ -52,12 +52,13 @@ export type DocumentReadSuccess = z.infer<typeof DocumentReadSuccessSchema>;
* when `isSymlink: true`).
* - `kind: 'asset'` — referenced asset discovered through wiki-link or markdown
* image syntax. Carries `path` (contentDir-relative), `assetExt`,
- * `mediaKind` (`'image' | 'video' | 'audio' | 'pdf' | 'text' | 'mermaid' | null` —
+ * `mediaKind` (`'image' | 'video' | 'audio' | 'pdf' | 'text' | 'mermaid' | 'excalidraw' | null` —
* `'text'` is set for data formats the sidebar previews via CodeMirror
* (json / toml / lock); `'mermaid'` for standalone `.mmd` / `.mermaid`
- * diagram files; `null` for non-renderable extensions that surface only
- * via `[[wiki-link]]` references), and `referencedBy` (the docNames
- * that point at it).
+ * diagram files; `'excalidraw'` for standalone `.excalidraw` canvas
+ * files; `null` for non-renderable extensions that surface only via
+ * `[[wiki-link]]` references), and `referencedBy` (the docNames that
+ * point at it).
* - `kind: 'file'` — any ContentFilter-passing non-markdown
* file that is NOT picked up as a referenced asset (e.g. `data.csv`,
* `FileTree.tsx`, `package.json`). Carries `path` (contentDir-relative,
@@ -88,7 +89,10 @@ export const DocumentListEntrySchema = z
// path within the content directory.
path: z.string().min(1).optional(),
assetExt: z.string().min(1).optional(),
- mediaKind: z.enum(['image', 'video', 'audio', 'pdf', 'text', 'mermaid']).nullable().optional(),
+ mediaKind: z
+ .enum(['image', 'video', 'audio', 'pdf', 'text', 'mermaid', 'excalidraw'])
+ .nullable()
+ .optional(),
referencedBy: z.array(z.string().min(1)).optional(),
// Folder-only. True when the folder contains at least one non-skipped child
// entry. The depth-1 children variant of GET /api/documents
diff --git a/packages/server/src/cc1-broadcast.ts b/packages/server/src/cc1-broadcast.ts
index f44069ee7..ad2b2249c 100644
--- a/packages/server/src/cc1-broadcast.ts
+++ b/packages/server/src/cc1-broadcast.ts
@@ -16,6 +16,7 @@ import {
type ConfigValidationError,
type DerivedViewChannel,
isEditableTextDocFile,
+ isExcalidrawDocFile,
isManagedArtifactDocName,
isMermaidDocFile,
SYSTEM_DOC_NAME,
@@ -103,6 +104,15 @@ export function isMermaidDoc(documentName: string): boolean {
return isMermaidDocFile(documentName);
}
+/**
+ * Standalone Excalidraw canvas doc (`.excalidraw`). Same doc-class posture as
+ * `isMermaidDoc` above — `Y.Text('source')` verbatim JSON, markdown bridge
+ * gated OFF, real user content that stays in the tree + link/graph index.
+ */
+export function isExcalidrawDoc(documentName: string): boolean {
+ return isExcalidrawDocFile(documentName);
+}
+
/**
* Editable text docs (`.ts` / `.json` / `.css` / `.txt` / …) — the Mermaid
* doc class generalized to code/config/plain-text files. Same posture on
@@ -162,6 +172,7 @@ export function isPersistenceExcludedDoc(documentName: string): boolean {
isConfigDoc(documentName) ||
isManagedArtifactDoc(documentName) ||
isMermaidDoc(documentName) ||
+ isExcalidrawDoc(documentName) ||
isEditableTextDoc(documentName)
);
}
diff --git a/packages/server/src/doc-extensions.ts b/packages/server/src/doc-extensions.ts
index 7648d979b..b2e628dbb 100644
--- a/packages/server/src/doc-extensions.ts
+++ b/packages/server/src/doc-extensions.ts
@@ -30,6 +30,7 @@ import {
DEFAULT_DOC_EXTENSION,
type DocExtension,
isEditableTextDocFile,
+ isExcalidrawDocFile,
isMermaidDocFile,
SUPPORTED_DOC_EXTENSIONS,
} from '@inkeep/open-knowledge-core';
@@ -183,11 +184,13 @@ export function isRegisteredMarkdownDocName(docName: string): boolean {
* traversal validation against their target root after resolving the result.
*/
export function docNameToRelativePath(docName: string): string {
- // Mermaid docs (`assets/flow.mmd`) retain their extension in the docName, so
- // — like `.md`/`.mdx` supported docs — the docName IS already the full
- // filename; only extension-less markdown docNames get an extension appended.
+ // Mermaid, Excalidraw, and editable-text docs retain their extension in
+ // the docName, so — like `.md`/`.mdx` supported docs — the docName IS
+ // already the full filename; only extension-less markdown docNames get
+ // an extension appended.
return isSupportedDocFile(docName) ||
isMermaidDocFile(docName) ||
+ isExcalidrawDocFile(docName) ||
(isEditableTextDocFile(docName) && !isRegisteredMarkdownDocName(docName))
? docName
: `${docName}${getDocExtension(docName)}`;
diff --git a/packages/server/src/external-change.ts b/packages/server/src/external-change.ts
index dc5bf899b..895903d20 100644
--- a/packages/server/src/external-change.ts
+++ b/packages/server/src/external-change.ts
@@ -22,7 +22,13 @@ import {
type DeriveLossDetectOptions,
} from './bridge-loss-detector.ts';
import { shouldRunPairedIntakeDetection } from './bridge-loss-suppression.ts';
-import { isConfigDoc, isEditableTextDoc, isMermaidDoc, isSystemDoc } from './cc1-broadcast.ts';
+import {
+ isConfigDoc,
+ isEditableTextDoc,
+ isExcalidrawDoc,
+ isMermaidDoc,
+ isSystemDoc,
+} from './cc1-broadcast.ts';
import { isDocInConflict } from './conflict-errors.ts';
import { isWithinContentDir, safeContentPath } from './content-path.ts';
import { recordContributor } from './contributor-tracker.ts';
@@ -82,6 +88,7 @@ export function applyExternalChange(
isSystemDoc(docName) ||
isConfigDoc(docName) ||
isMermaidDoc(docName) ||
+ isExcalidrawDoc(docName) ||
isEditableTextDoc(docName)
)
return;
@@ -358,6 +365,7 @@ export function reconcileDiskBeforeAgentWrite(
isSystemDoc(docName) ||
isConfigDoc(docName) ||
isMermaidDoc(docName) ||
+ isExcalidrawDoc(docName) ||
isEditableTextDoc(docName)
)
return NOT_RECONCILED;
diff --git a/packages/server/src/mcp-mount.ts b/packages/server/src/mcp-mount.ts
index 580ccda72..e1152c82b 100644
--- a/packages/server/src/mcp-mount.ts
+++ b/packages/server/src/mcp-mount.ts
@@ -412,7 +412,17 @@ export function mountMcpAndApi(opts: MountMcpAndApiOptions): MountMcpAndApiHandl
// shell first for this prefix; fall through to the content middleware on a
// miss so user uploads at `<contentDir>/assets/*` still serve. Mirrors
// the split-mode UI proxy's `/assets/`-first branch in `commands/ui.ts`.
- if (reactShellMiddleware !== undefined && url?.startsWith('/assets/')) {
+ //
+ // `/excalidraw-assets/` carries the vendored Excalidraw font tree from
+ // `packages/app/scripts/copy-excalidraw-assets.mjs`, which the editor
+ // pins via `window.EXCALIDRAW_ASSET_PATH` at module load. The tree is
+ // shell-owned (`packages/app/public/excalidraw-assets/`), not contentDir,
+ // so it hits the same fail-closed trap that `/assets/` did — bundle the
+ // prefix into the same shell-first branch so the fonts serve.
+ if (
+ reactShellMiddleware !== undefined &&
+ (url?.startsWith('/assets/') || url?.startsWith('/excalidraw-assets/'))
+ ) {
runShell(() => runContent(notFound));
return;
}
diff --git a/packages/server/src/persistence.ts b/packages/server/src/persistence.ts
index 75d3a5643..9db493551 100644
--- a/packages/server/src/persistence.ts
+++ b/packages/server/src/persistence.ts
@@ -51,6 +51,7 @@ import { assertBridgeInvariant, createDocCanonicalizer } from './bridge-watchdog
import {
isConfigDoc,
isEditableTextDoc,
+ isExcalidrawDoc,
isManagedArtifactDoc,
isMermaidDoc,
isPersistenceExcludedDoc,
@@ -2690,9 +2691,16 @@ export function createPersistenceExtension(options?: PersistenceOptions): Persis
loadManagedArtifactDoc(document, documentName, managedArtifactCtx);
return;
}
- if (isMermaidDoc(documentName) || isEditableTextDoc(documentName)) {
- // Editable text docs share the Mermaid verbatim Y.Text load/store —
- // the path resolver is extension-agnostic (docName retains its ext).
+ if (
+ isMermaidDoc(documentName) ||
+ isExcalidrawDoc(documentName) ||
+ isEditableTextDoc(documentName)
+ ) {
+ // Editable-text and Excalidraw docs share the Mermaid verbatim Y.Text
+ // load/store — the path resolver is extension-agnostic (docName
+ // retains its ext) and the on-wire body is opaque bytes to the
+ // server regardless of whether it's Mermaid source, TS/JSON source,
+ // or an Excalidraw JSON snapshot.
loadMermaidDoc(document, documentName, mermaidPersistenceCtx);
return;
}
@@ -2919,7 +2927,11 @@ export function createPersistenceExtension(options?: PersistenceOptions): Persis
}
return;
}
- if (isMermaidDoc(documentName) || isEditableTextDoc(documentName)) {
+ if (
+ isMermaidDoc(documentName) ||
+ isExcalidrawDoc(documentName) ||
+ isEditableTextDoc(documentName)
+ ) {
await storeMermaidDoc(document, documentName, lastTransactionOrigin, mermaidPersistenceCtx);
return;
}
diff --git a/packages/server/src/reconciliation.ts b/packages/server/src/reconciliation.ts
index 1359e4a1b..743d53cb7 100644
--- a/packages/server/src/reconciliation.ts
+++ b/packages/server/src/reconciliation.ts
@@ -1,4 +1,10 @@
-import { isConfigDoc, isEditableTextDoc, isMermaidDoc, isSystemDoc } from './cc1-broadcast.ts';
+import {
+ isConfigDoc,
+ isEditableTextDoc,
+ isExcalidrawDoc,
+ isMermaidDoc,
+ isSystemDoc,
+} from './cc1-broadcast.ts';
/**
* Three-way reconciliation for external writes.
@@ -122,6 +128,7 @@ export function reconcile(input: ReconcileInput): ReconcileOutcome {
isSystemDoc(input.docName) ||
isConfigDoc(input.docName) ||
isMermaidDoc(input.docName) ||
+ isExcalidrawDoc(input.docName) ||
isEditableTextDoc(input.docName)
)
return { kind: 'noop' };
diff --git a/packages/server/src/server-observer-extension.ts b/packages/server/src/server-observer-extension.ts
index 05fb68357..8879348cc 100644
--- a/packages/server/src/server-observer-extension.ts
+++ b/packages/server/src/server-observer-extension.ts
@@ -12,7 +12,13 @@ import type { Extension } from '@hocuspocus/server';
import type { MarkdownManager } from '@inkeep/open-knowledge-core';
import type { Schema } from '@tiptap/pm/model';
import type * as Y from 'yjs';
-import { isConfigDoc, isEditableTextDoc, isMermaidDoc, isSystemDoc } from './cc1-broadcast.ts';
+import {
+ isConfigDoc,
+ isEditableTextDoc,
+ isExcalidrawDoc,
+ isMermaidDoc,
+ isSystemDoc,
+} from './cc1-broadcast.ts';
import { getLogger } from './logger.ts';
import type { LossCaptureRing } from './loss-capture.ts';
import { incrementServerObserverError } from './metrics.ts';
@@ -106,6 +112,7 @@ export function createServerObserverExtension(opts: ServerObserverExtensionOptio
isSystemDoc(documentName) ||
isConfigDoc(documentName) ||
isMermaidDoc(documentName) ||
+ isExcalidrawDoc(documentName) ||
isEditableTextDoc(documentName)
)
return;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 30222c6d0..e874d7dad 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -213,19 +213,19 @@ importers:
version: 2.0.14
'@vercel/microfrontends':
specifier: ^2.3.6
clsx:
specifier: ^2.1.1
version: 2.1.1
fumadocs-core:
specifier: ~16.1.0
fumadocs-mdx:
specifier: ~14.0.3
fumadocs-ui:
specifier: ~16.1.0
katex:
specifier: ^0.16.22
version: 0.16.47
@@ -240,7 +240,7 @@ importers:
version: 11.16.0
next:
specifier: ^16
next-themes:
specifier: ^0.4.6
@@ -283,7 +283,7 @@ importers:
version: 0.4.8
fumadocs-typescript:
specifier: ~4.0.13
jsdom:
specifier: ^29.1.1
version: 29.1.1(@noble/[email protected])
@@ -371,6 +371,9 @@ importers:
'@dnd-kit/utilities':
specifier: ^3.2.2
version: 3.2.2([email protected])
+ '@excalidraw/excalidraw':
+ specifier: 0.18.1
'@fellow/prosemirror-recreate-transform':
specifier: ^1.2.3
version: 1.2.3
@@ -1624,6 +1627,9 @@ packages:
'@borewit/[email protected]':
resolution: {integrity: sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ==}
+ '@braintree/[email protected]':
+ resolution: {integrity: sha512-Tbsj02wXCbqGmzdnXNk0SOF19ChhRU70BsroIi4Pm6Ehp56in6vch94mfbdQ17DozxkL3BAVjbZ4Qc1a0HFRAg==}
+
'@braintree/[email protected]':
resolution: {integrity: sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==}
@@ -1686,9 +1692,24 @@ packages:
'@changesets/[email protected]':
resolution: {integrity: sha512-CdTLvIOPiCNuH71pyDu3rA+Q0n65cmAbXnwWH84rKGiFumFzkmHNT8KHTMEchcxN+Kl8I54xGUhJ7l3E7X396Q==}
+ '@chevrotain/[email protected]':
+ resolution: {integrity: sha512-BvIKpRLeS/8UbfxXxgC33xOumsacaeCKAjAeLyOn7Pcp95HiRbrpl14S+9vaZLolnbssPIUuiUd8IvgkRyt6NQ==}
+
+ '@chevrotain/[email protected]':
+ resolution: {integrity: sha512-+qNfcoNk70PyS/uxmj3li5NiECO+2YKZZQMbmjTqRI3Qchu8Hig/Q9vgkHpI3alNjr7M+a2St5pw5w5F6NL5/Q==}
+
+ '@chevrotain/[email protected]':
+ resolution: {integrity: sha512-1fMHaBZxLFvWI067AVbGJav1eRY7N8DDvYCTwGBiE/ytKBgP8azTdgyrKyWZ9Mfh09eHWb5PgTSO8wi7U824RA==}
+
+ '@chevrotain/[email protected]':
+ resolution: {integrity: sha512-gsiM3G8b58kZC2HaWR50gu6Y1440cHiJ+i3JUvcp/35JchYejb2+5MVeJK0iKThYpAa/P2PYFV4hoi44HD+aHQ==}
+
'@chevrotain/[email protected]':
resolution: {integrity: sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==}
+ '@chevrotain/[email protected]':
+ resolution: {integrity: sha512-YslZMgtJUyuMbZ+aKvfF3x1f5liK4mWNxghFRv7jqRR9C3R3fAOGTTKvxXDa2Y1s9zSbcpuO0cAxDYsc9SrXoQ==}
+
'@codemirror/[email protected]':
resolution: {integrity: sha512-tlosUqb+3BbxCxZdu4tKeRghPFC+QM7q4X5YhKV2eCmPG+1r2F3f4AaSz5sCrFqUtX4Jh20VFTKecl16MgiV9g==}
@@ -2366,6 +2387,25 @@ packages:
cpu: [x64]
os: [win32]
+ '@excalidraw/[email protected]':
+ resolution: {integrity: sha512-6i5Gt7IDTOH//qa0Z315Ly5iVRhjWpu2whrlQFqkuwrkKUWgRsMk0P5qdE7bpyDpai7jeLeWYkyj1eVAfni1lw==}
+ peerDependencies:
+ react: 19.2.5
+ react-dom: 19.2.5
+
+ '@excalidraw/[email protected]':
+ resolution: {integrity: sha512-psA1z1N2qeAfsORdXc9JmD2y4CmDwmuMRxnNdJHZexIcPwaNEyIpNcelw+QkL9rz9tosaN9krXuKaRqYpRAR6g==}
+
+ '@excalidraw/[email protected]':
+ resolution: {integrity: sha512-1nDXBNAojfi3oSFwJswKREkFm5wrSjqay81QlyRv2pkITG/XYB5v+oChENVBQLcxQwX4IUATWvXM5BcaNhPiIg==}
+
+ '@excalidraw/[email protected]':
+ resolution: {integrity: sha512-5VKQq5CdRocC82vOIUpQ5ufJOVV9FpBTdHGA+ULqazeIVV+cr299877omQCibsdS3Bpitz2fsnTwnIXEmLVDSg==}
+
+ '@excalidraw/[email protected]':
+ resolution: {integrity: sha512-nULYsQxkWHnbmHvcs+efMkJ4/9TtvNyFeLyHdeGxW0zHs6P+jYVqcRff9A6Vq9w9JXeDRnRh2VKvTtS19GW2qA==}
+ engines: {node: '>=10'}
+
'@exodus/[email protected]':
resolution: {integrity: sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==}
engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
@@ -3099,6 +3139,9 @@ packages:
'@memlab/[email protected]':
resolution: {integrity: sha512-X3aKYv2+Vjdf0pGWjwXD9ab1kpvWPVfJxtuOFe8ue2UrpY7uiXyaqULT2wLYD7j+MsmKNsz+WvRZHb0XW9xiTA==}
+ '@mermaid-js/[email protected]':
+ resolution: {integrity: sha512-lnjOhe7zyHjc+If7yT4zoedx2vo4sHaTmtkl1+or8BRTnCtDmcTpAjpzDSfCZrshM5bCoz0GyidzadJAH1xobA==}
+
'@mermaid-js/[email protected]':
resolution: {integrity: sha512-oYPyv8A4As1yH5Bx+04iQEQxXuIQDe0GKCNSRgao6z8AM9jixXIfP0vsppRLvGf+nKIOb9/LdpWA4YuJiVvESA==}
@@ -6501,6 +6544,10 @@ packages:
resolution: {integrity: sha512-BJ8/l4R5LRE7hW9WdSuGYrLSHi2ynxeFpDFbH0K/CgNeY/tyhk+vO6TYxXC5r5CpUhNVX310xzPsN/H9lCdfOA==}
engines: {node: '>=14'}
+ resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
+ engines: {node: '>= 8'}
+
resolution: {integrity: sha512-N6//FLET/tXYNM/F6ABca1oH6fWB+KlTt909Le28WMDBk8oaT4vY17DCrwg2MvmuqUKt3Ni4N5dGJ/EoBgcO6A==}
@@ -6697,6 +6744,10 @@ packages:
resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==}
+ resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-LShSxJP0KTmd101b6DRyGBj57LZxSDYWKitQNW/mi8GRMvZb078Uf9+pveax1DrVL89vm7mWe+TovdI/UDOuPw==}
@@ -6733,6 +6784,9 @@ packages:
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-LSvVX5e21LRrXqVMhqtAwj5xPgDb+fXAIH80NsnCQ9xuZPs2xWsOREi24RKgZa1XOiQRbcmVrv87+ulOKsgjxw==}
+
resolution: {integrity: sha512-FQBYNK15VMslhLHpA7+n+n1GOlF1kId2xcCg7/j95f24AOF6VDYMNH4mFxF7KuaTdv627faazpOAjFzMrfJOUw==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
@@ -6829,6 +6883,9 @@ packages:
resolution: {integrity: sha512-ryQkDX26yJ3CXzb3hxUVNlg1NKE4REc5crLBq661Nxzr8TNd236SaEf2ffYLXyI5tSABSeguHLqcVq4vf9L3Zg==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-yWq+R3U3jE+coOeEb3a3GgE2j/0MMiDKM/QpLb6h9ihf5fGY9UXtvK9o4vNqjWXoZz7/3EaSVU3IX53TvFFUOw==}
+
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
@@ -6862,6 +6919,18 @@ packages:
resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==}
+ resolution: {integrity: sha512-b7g+y9A0v4mxCW1qUhf3BSVPg+/NvGErk/dOkrDaHA0nQIQGAtrOjlX//9OQtRlSCy+x9rfB5N8yC71lH1nvMw==}
+ peerDependencies:
+ chevrotain: ^11.0.0
+
+ resolution: {integrity: sha512-ci2iJH6LeIkvP9eJW6gpueU8cnZhv85ELY8w8WiFtNjMHA5ad6pQLaJo9mEly/9qUyCpvqX8/POVUTf18/HFdw==}
+
+ resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
+ engines: {node: '>= 8.10.0'}
+
resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}
engines: {node: '>= 20.19.0'}
@@ -6951,6 +7020,10 @@ packages:
resolution: {integrity: sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==}
+ resolution: {integrity: sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==}
+ engines: {node: '>=6'}
+
resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
engines: {node: '>=6'}
@@ -7106,12 +7179,21 @@ packages:
typescript:
optional: true
+ resolution: {integrity: sha512-kucVIjOmMc1f0tv53BJ/5WIX+MGLcKuoBhnGqQrgKJNqLByb/sVMWfW/Aw6hw0jgcqjJ2pi9E5y32zOIpaUlsA==}
+ engines: {node: '>=0.8'}
+
resolution: {integrity: sha512-aK6BbWfhf4U/wCcLHKPJl/xa6VkVstRaPywWtMKGwuOLc/wZTyQYuoxgvZnNsBvv7Kg3YTBQYYBCggcviQczuA==}
resolution: {integrity: sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==}
+ resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==}
+ engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'}
+ hasBin: true
+
resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
engines: {node: '>= 8'}
@@ -7669,6 +7751,10 @@ packages:
resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==}
+ resolution: {integrity: sha512-VHErXfzR/6r/+yyzPKeBvO0lgjfC5cbDCQWjWwMZWSb6YU39TGIl51OUmCfWCq4ylMdJSB8zkz2vIuIeIxXApA==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-4CyanoAudUSBAn5K13H4JhsMH6L9ZP7XbLVe/dKybkxMO7eDyLsT8UHl9TRNrU2Gr9nz+FovfSIjuXWJ81uVwQ==}
@@ -7968,6 +8054,10 @@ packages:
resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}
engines: {node: '>= 0.6'}
+ resolution: {integrity: sha512-PcOxmqwYCW7O2ovKRU8OoQQj2yqTfEB/yeTYk4gPid6dN5ODRfU1hXd9tTVZzax/0NkO7AxpHykvZnT1aYp/BQ==}
+ engines: {node: ^14.13.1 || >=16.0.0}
+
resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}
engines: {node: '>= 0.8'}
@@ -8120,6 +8210,10 @@ packages:
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
+ resolution: {integrity: sha512-/gZffu4ykarLrCiP3Ygsa86UAo1E5vEVlvTrpkKywXSbP9Xhln3oSp9QSV57gEq3JFFpGJ4GZ+5zdEp3FcUh4w==}
+ engines: {node: '>= 0.6.0'}
+
resolution: {integrity: sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==}
@@ -8207,6 +8301,9 @@ packages:
resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}
engines: {node: '>=10'}
+ resolution: {integrity: sha512-l+8esYHTKOx2G/Aao4lEQ0bnHWg4fWtJbVoZZT9Knxi01pB8C80BR85nONLFwkkQoFRCmXY+BUcGZN3yZ2QsRA==}
+
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
engines: {node: '>= 0.4'}
@@ -8401,11 +8498,17 @@ packages:
resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
engines: {node: '>= 4'}
+ resolution: {integrity: sha512-/VmmWgIryG/wcn4TVrV7cC4mlfUC/oyiKIfSg5eVM3Ten/c1c34RJhMYKCWTnoSMHSqXLt3tsrBR4Q2HInvN+Q==}
+
resolution: {integrity: sha512-IRqXKlaXwgSMAMtpNzZa1ZAe8m+Sa1770Dhk8VkSsP9LS+iHD62Zd8FQKs8fbPiagBE7BzoFX23cxFnwshpV6w==}
engines: {node: '>=16.x'}
hasBin: true
+ resolution: {integrity: sha512-ObHy4YN7ycwZOUCLI1/6svfyAFu7vL8RhAvVu/bh/RZW9EPlOyDaQ9jDQWCtdqzaXUjgXZCW1migtHE7YI7UGQ==}
+
resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}
engines: {node: '>=6'}
@@ -8492,6 +8595,10 @@ packages:
resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==}
engines: {node: '>= 0.4'}
+ resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==}
engines: {node: '>= 0.4'}
@@ -8737,6 +8844,24 @@ packages:
resolution: {integrity: sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw==}
+ resolution: {integrity: sha512-Gwed97f3dDObrO43++2lRcgOqw4O2sdr4JCjP/7eHK1oPACDJ7xKHGScpJX9XaflU+KBHXF+VhwECnzcaQiShg==}
+ peerDependencies:
+ jotai: '>=2.9.2'
+ react: 19.2.5
+
+ resolution: {integrity: sha512-zKfoBBD1uDw3rljwHkt0fWuja1B76R7CjznuBO+mSX6jpsO1EBeWNRKpeaQho9yPI/pvCv4recGfgOXGxwPZvQ==}
+ engines: {node: '>=12.20.0'}
+ peerDependencies:
+ '@types/react': '>=17.0.0'
+ react: 19.2.5
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ react:
+ optional: true
+
resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}
engines: {node: '>=10'}
@@ -8835,6 +8960,10 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
+ resolution: {integrity: sha512-QJv/h939gDpvT+9SiLVlY7tZC3xB2qK57v0J04Sh9wpMb6MP1q8gB21L3WIo8T5P1MSMg3Ep14L7KkDCFG3y4w==}
+ engines: {node: '>=16.0.0'}
+
resolution: {integrity: sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==}
@@ -8954,9 +9083,15 @@ packages:
resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==}
+
resolution: {integrity: sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==}
+ resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==}
+
resolution: {integrity: sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==}
@@ -8970,6 +9105,9 @@ packages:
resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}
+ resolution: {integrity: sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==}
+
resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==}
@@ -9382,6 +9520,9 @@ packages:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+ resolution: {integrity: sha512-toRx66cAMJ+Ccz7pMIg38xSIrtnbozk0dchXezwQDMgQmbGpfxjtv68H+L00iFL8hxDaVjrmwAFSb3I6bg8Q2g==}
+
resolution: {integrity: sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==}
engines: {node: ^20.17.0 || >=22.9.0}
@@ -9394,6 +9535,16 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
+ resolution: {integrity: sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+
+ resolution: {integrity: sha512-7ZtY5KTCNheRGfEFxnedV5zFiORN1+Y1N6zvPTnHQd8ENUvfaDBeuJDZb2bN/oXwXxu3qkTXDzy57W5vAmDTBw==}
+ engines: {node: ^14 || ^16 || >=18}
+ hasBin: true
+
resolution: {integrity: sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==}
engines: {node: ^18 || >=20}
@@ -9595,6 +9746,9 @@ packages:
resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==}
+ resolution: {integrity: sha512-vCseG/EQ6/RcvxhUcGJiHViOgrtz4x0XbZepXvKik66TMGkvbmjeJrKFyBEx6daG5rNyyd14zYXhz0hZVwQFOw==}
+
resolution: {integrity: sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw==}
engines: {node: '>=20'}
@@ -9701,6 +9855,9 @@ packages:
resolution: {integrity: sha512-xg1eHpwYL/D/HEdWw2goFZP6vV0FH7W+PZ5rFkGjdIDLtxq7EkzBUeT3m+lndYCt8wKbmofUu1MUdMCXkCk9ZQ==}
+ resolution: {integrity: sha512-WjR1hOeg+kki3ZIOjaf4b5WVcay1jaliKSYiEaB1XzwhMQZJxRdQRv0V31EKBYlxb4T7SK3hjfc/jxyU64BoSw==}
+
resolution: {integrity: sha512-SwzWD9gl/ElwYLCI0nUja1mFJzjq2D8ziShfNBa7zCHzkOozeOGDwHWQ+tvCzEZcewecWZ5U7kUopDnG+DFYEQ==}
@@ -9789,6 +9946,12 @@ packages:
resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}
+ resolution: {integrity: sha512-h/0ikF1M3phW7CwpZ5MMvKnfpHficWoOEyr//KVNTxV4F6deRK1eYMtHyBKEAKFK0aXIEUK9oBvlF6PNXMDsAw==}
+
+ resolution: {integrity: sha512-WY73tMvNzXWEld2LicT9Y260L43isrZ85tPuqRyvtkljSDLmnNFQmZICt4xUJMVulmcc6L9O7jbBrtx3DOz/YQ==}
+
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
@@ -9849,6 +10012,15 @@ packages:
resolution: {integrity: sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==}
engines: {node: '>=10.4.0'}
+ resolution: {integrity: sha512-DEROKU3SkkLGWNMzru3xPVgxyd48UGuMSZvioErCure6yhOc/pRH2ZV+SEn7nmaf7WNf3NdIpH+UTrRdKyq9Lw==}
+
+ resolution: {integrity: sha512-J1jcHgbQRsIIgx5wxW9UmCymV3wwn4qCCJl6KYgEU/yHCh/L2Mwq/nMOkRPtmV79TLxRZj5w3tH69pvygFkDqA==}
+
+ resolution: {integrity: sha512-ZiVwF5EJ0DNZyzAqld8BP1qyJBaGOFaq9zl579qfbkcmOwWLLO4I9L8i2O4j3HkI6/35i0nKG2n+dZplxiT89Q==}
+
resolution: {integrity: sha512-sz1pnjgEfPyZ+QvaeX3NtCmbYnEvG01LZRLoN/uXoLtPZtxCIH5IctL7yXXc0fFyk/fqV6K8g3hlNfr6IJwupA==}
engines: {node: '>=20'}
@@ -9856,6 +10028,9 @@ packages:
resolution: {integrity: sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==}
+ resolution: {integrity: sha512-3nmX4/LIiyuwGLwuUrfhTlDeQFlAhi7lyK/zcRNGhalwapDWgAGR82bUpmn2mA03vII3fvNCG8jAONzKXwpxAg==}
+
resolution: {integrity: sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==}
@@ -10064,6 +10239,9 @@ packages:
resolution: {integrity: sha512-KTqnxsgGiQ6ZAzZCVlJH5eOjSnvlyEgx1m8bkRJfOhmGRqfo5KLvmAlACQkrjEtOQ4B7wF9TdSLIs9O90MX9xA==}
engines: {node: '>=16.0.0'}
+ resolution: {integrity: sha512-6Du7IZdIy7cHiv7AhtDy4X2QRM8IAD5DII69mt5qWibC2d15ZU8DmBG1WdZKekG11cChSu4zkSUGPF9sweOl6w==}
+
resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==}
engines: {node: '>=0.6'}
@@ -10261,6 +10439,10 @@ packages:
resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
engines: {node: '>= 6'}
+ resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
+ engines: {node: '>=8.10.0'}
+
resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==}
engines: {node: '>= 20.19.0'}
@@ -10480,6 +10662,9 @@ packages:
resolution: {integrity: sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==}
+ resolution: {integrity: sha512-s6EZ0BntezkFYMf/9mGn7M8XGIoaav9QQBCnJROWB3brUWQ683Q2LbRD/hq0Z3bAJ/9NVpU/5LpiTWvQMyLDhw==}
+
resolution: {integrity: sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==}
@@ -10525,6 +10710,11 @@ packages:
resolution: {integrity: sha512-9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==}
+ resolution: {integrity: sha512-haGdpTgywJTvHC2b91GSq+clTKGbtkkZmVAb82jZQN/wTy6qs8DdFm2lhEQbEwrY0QDRgSQ3xDurqM977C3noA==}
+ engines: {node: '>=12.0.0'}
+ hasBin: true
+
resolution: {integrity: sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==}
engines: {node: '>=11.0.0'}
@@ -10714,6 +10904,10 @@ packages:
resolution: {integrity: sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==}
engines: {node: '>=20'}
+ resolution: {integrity: sha512-VZBmZP8WU3sMOZm1bdgTadsQbcscK0UM8oKxKVBs4XAhUo2Xxzm/OFMGBkPusxw9xL3Uy8LrzEqGqJhclsr0yA==}
+ deprecated: Unsupported
+
resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==}
engines: {node: '>= 6.0.0', npm: '>= 3.0.0'}
@@ -11146,6 +11340,9 @@ packages:
resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==}
+ resolution: {integrity: sha512-lR5VHmkPhzdhrM092lI2nACsLO4QubF0/yoOhzX7c+wIpbN1GjHNzCc91QlpxBi+cnx8vVJ+Ur6vL5cEoQPFpQ==}
+
resolution: {integrity: sha512-GQpduILaKjoaGljw097ScsSyKTtZSY7cZ3bJktzfTkPMyCf3ShKLuXK2IaOEN2Plziml+ArR7WJ1m+V4VbnaKQ==}
hasBin: true
@@ -11459,6 +11656,26 @@ packages:
jsdom:
optional: true
+ resolution: {integrity: sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==}
+ engines: {node: '>=14.0.0'}
+
+ resolution: {integrity: sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==}
+
+ resolution: {integrity: sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==}
+
+ resolution: {integrity: sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==}
+
+ resolution: {integrity: sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==}
+ hasBin: true
+
+ resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==}
+
resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==}
@@ -11506,6 +11723,9 @@ packages:
resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==}
engines: {node: '>=20'}
+ resolution: {integrity: sha512-AMcUeyXAhbACL8S2hqqdqOLqvJ8ylmIbNwUIqQujRSouf4+eUFaXbG6F1Rbu+srlJMmxQWsiU7mOJi0nMBfM1g==}
+
resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==}
engines: {node: '>=12'}
@@ -11703,6 +11923,21 @@ packages:
resolution: {integrity: sha512-XE96n56IQpJM7NAoXswY3XRLcWFW83xe0BiAOeMD7K5k5xecOeul3Qcpx6GqEeeHNkW5DWL5zOyTbEfB4eti8w==}
+ resolution: {integrity: sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==}
+ engines: {node: '>=12.7.0'}
+ peerDependencies:
+ '@types/react': '>=16.8'
+ immer: '>=9.0.6'
+ react: 19.2.5
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ immer:
+ optional: true
+ react:
+ optional: true
+
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
@@ -12009,6 +12244,8 @@ snapshots:
'@borewit/[email protected]': {}
+ '@braintree/[email protected]': {}
+
'@braintree/[email protected]': {}
'@bramus/[email protected]':
@@ -12158,8 +12395,25 @@ snapshots:
human-id: 4.2.0
prettier: 2.8.8
+ '@chevrotain/[email protected]':
+ dependencies:
+ '@chevrotain/gast': 11.0.3
+ '@chevrotain/types': 11.0.3
+ lodash-es: 4.17.21
+
+ '@chevrotain/[email protected]':
+ dependencies:
+ '@chevrotain/types': 11.0.3
+ lodash-es: 4.17.21
+
+ '@chevrotain/[email protected]': {}
+
+ '@chevrotain/[email protected]': {}
+
'@chevrotain/[email protected]': {}
+ '@chevrotain/[email protected]': {}
+
'@codemirror/[email protected]':
dependencies:
'@codemirror/language': 6.12.4
@@ -12757,6 +13011,59 @@ snapshots:
'@esbuild/[email protected]':
optional: true
+ dependencies:
+ '@braintree/sanitize-url': 6.0.2
+ '@excalidraw/laser-pointer': 1.3.1
+ '@excalidraw/mermaid-to-excalidraw': 2.2.2
+ '@excalidraw/random-username': 1.1.0
+ browser-fs-access: 0.29.1
+ canvas-roundrect-polyfill: 0.0.1
+ clsx: 1.1.1
+ cross-env: 7.0.3
+ es6-promise-pool: 2.5.0
+ fractional-indexing: 3.2.0
+ fuzzy: 0.1.3
+ image-blob-reduce: 3.0.1
+ jotai: 2.11.0(@types/[email protected])([email protected])
+ lodash.debounce: 4.0.8
+ lodash.throttle: 4.1.1
+ nanoid: 3.3.3
+ open-color: 1.9.1
+ pako: 2.0.3
+ perfect-freehand: 1.2.0
+ pica: 7.1.1
+ png-chunk-text: 1.0.0
+ png-chunks-encode: 1.0.0
+ png-chunks-extract: 1.0.0
+ points-on-curve: 1.0.1
+ pwacompat: 2.0.17
+ react: 19.2.5
+ react-dom: 19.2.5([email protected])
+ roughjs: 4.6.4
+ sass: 1.51.0
+ tunnel-rat: 0.1.2(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - '@types/react'
+ - '@types/react-dom'
+ - immer
+
+ '@excalidraw/[email protected]': {}
+
+ '@excalidraw/[email protected]': {}
+
+ '@excalidraw/[email protected]':
+ dependencies:
+ '@excalidraw/markdown-to-text': 0.1.2
+ '@mermaid-js/parser': 0.6.3
+ mermaid: 11.16.0
+ nanoid: 4.0.2
+
+ '@excalidraw/[email protected]': {}
+
optionalDependencies:
'@noble/hashes': 2.2.0
@@ -13665,6 +13972,10 @@ snapshots:
'@memlab/[email protected]': {}
+ '@mermaid-js/[email protected]':
+ dependencies:
+ langium: 3.3.1
+
'@mermaid-js/[email protected]':
dependencies:
'@chevrotain/types': 11.1.2
@@ -16507,7 +16818,7 @@ snapshots:
d3-selection: 3.0.0
d3-transition: 3.0.1([email protected])
dependencies:
'@next/env': 16.0.10
'@types/md5': 2.3.6
@@ -16522,7 +16833,7 @@ snapshots:
path-to-regexp: 6.3.0
semver: 7.8.5
optionalDependencies:
react: 19.2.5
react-dom: 19.2.5([email protected])
@@ -16749,6 +17060,11 @@ snapshots:
+ dependencies:
+ normalize-path: 3.0.0
+ picomatch: 2.3.2
+
@@ -16958,6 +17274,8 @@ snapshots:
dependencies:
require-from-string: 2.0.2
+
@@ -17005,6 +17323,8 @@ snapshots:
dependencies:
fill-range: 7.1.1
+
dependencies:
baseline-browser-mapping: 2.10.43
@@ -17121,6 +17441,8 @@ snapshots:
dependencies:
tinycolor2: 1.6.0
+
@@ -17144,6 +17466,32 @@ snapshots:
+ dependencies:
+ chevrotain: 11.0.3
+ lodash-es: 4.18.1
+
+ dependencies:
+ '@chevrotain/cst-dts-gen': 11.0.3
+ '@chevrotain/gast': 11.0.3
+ '@chevrotain/regexp-to-ast': 11.0.3
+ '@chevrotain/types': 11.0.3
+ '@chevrotain/utils': 11.0.3
+ lodash-es: 4.17.21
+
+ dependencies:
+ anymatch: 3.1.3
+ braces: 3.0.3
+ glob-parent: 5.1.2
+ is-binary-path: 2.1.0
+ is-glob: 4.0.3
+ normalize-path: 3.0.0
+ readdirp: 3.6.0
+ optionalDependencies:
+ fsevents: 2.3.3
+
dependencies:
readdirp: 5.0.0
@@ -17224,6 +17572,8 @@ snapshots:
dependencies:
mimic-response: 1.0.1
+
@@ -17358,11 +17708,17 @@ snapshots:
optionalDependencies:
typescript: 5.9.3
+
optional: true
+ dependencies:
+ cross-spawn: 7.0.6
+
dependencies:
path-key: 3.1.1
@@ -17996,6 +18352,8 @@ snapshots:
optional: true
+
dependencies:
'@types/estree-jsx': 1.0.5
@@ -18466,6 +18824,8 @@ snapshots:
+
@@ -18528,7 +18888,7 @@ snapshots:
optional: true
dependencies:
'@formatjs/intl-localematcher': 0.6.2
'@orama/orama': 3.1.18
@@ -18551,20 +18911,20 @@ snapshots:
optionalDependencies:
'@types/react': 19.2.17
lucide-react: 0.503.0([email protected])
react: 19.2.5
react-dom: 19.2.5([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
'@mdx-js/mdx': 3.1.1
'@standard-schema/spec': 1.1.0
chokidar: 5.0.0
esbuild: 0.27.7
estree-util-value-to-estree: 3.5.0
js-yaml: 4.3.0
lru-cache: 11.5.2
mdast-util-to-markdown: 2.1.2
@@ -18579,16 +18939,16 @@ snapshots:
vfile: 6.0.3
zod: 4.4.3
optionalDependencies:
react: 19.2.5
transitivePeerDependencies:
- supports-color
dependencies:
estree-util-value-to-estree: 3.5.0
hast-util-to-estree: 3.1.3
hast-util-to-jsx-runtime: 2.3.6
remark: 15.0.1
@@ -18599,11 +18959,11 @@ snapshots:
unist-util-visit: 5.1.0
optionalDependencies:
'@types/react': 19.2.17
transitivePeerDependencies:
- supports-color
dependencies:
@@ -18616,7 +18976,7 @@ snapshots:
'@radix-ui/react-slot': 1.3.0(@types/[email protected])([email protected])
class-variance-authority: 0.7.1
lodash.merge: 4.6.2
postcss-selector-parser: 7.1.4
@@ -18627,7 +18987,7 @@ snapshots:
tailwind-merge: 3.6.0
optionalDependencies:
'@types/react': 19.2.17
tailwindcss: 4.3.2
transitivePeerDependencies:
- '@mixedbread/sdk'
@@ -18656,6 +19016,8 @@ snapshots:
+
@@ -18761,6 +19123,8 @@ snapshots:
merge2: 1.4.1
slash: 3.0.0
+
@@ -19085,8 +19449,14 @@ snapshots:
+ dependencies:
+ pica: 7.1.1
+
+
dependencies:
parent-module: 1.0.1
@@ -19166,6 +19536,10 @@ snapshots:
dependencies:
has-bigints: 1.1.0
+ dependencies:
+ binary-extensions: 2.3.0
+
dependencies:
call-bound: 1.0.4
@@ -19361,6 +19735,16 @@ snapshots:
+ dependencies:
+ jotai: 2.11.0(@types/[email protected])([email protected])
+ react: 19.2.5
+
+ optionalDependencies:
+ '@types/react': 19.2.17
+ react: 19.2.5
+
@@ -19490,6 +19874,14 @@ snapshots:
yaml: 2.9.0
zod: 4.4.3
+ dependencies:
+ chevrotain: 11.0.3
+ chevrotain-allstar: 0.3.1([email protected])
+ vscode-languageserver: 9.0.1
+ vscode-languageserver-textdocument: 1.0.12
+ vscode-uri: 3.0.8
+
@@ -19584,8 +19976,12 @@ snapshots:
dependencies:
p-locate: 4.1.0
+
+
@@ -19594,6 +19990,8 @@ snapshots:
+
@@ -20321,6 +20719,11 @@ snapshots:
+ dependencies:
+ glur: 1.1.2
+ object-assign: 4.1.1
+
@@ -20328,6 +20731,10 @@ snapshots:
+
+
@@ -20364,7 +20771,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@next/env': 16.2.10
'@swc/helpers': 0.5.15
@@ -20385,6 +20792,7 @@ snapshots:
'@next/swc-win32-x64-msvc': 16.2.10
'@opentelemetry/api': 1.9.1
'@playwright/test': 1.59.1
+ sass: 1.51.0
sharp: 0.34.5
transitivePeerDependencies:
- '@babel/core'
@@ -20522,6 +20930,8 @@ snapshots:
regex: 6.1.0
regex-recursion: 6.0.2
+
dependencies:
default-browser: 5.5.0
@@ -20715,6 +21125,8 @@ snapshots:
+
@@ -20789,6 +21201,16 @@ snapshots:
+
+ dependencies:
+ glur: 1.1.2
+ inherits: 2.0.4
+ multimath: 2.0.0
+ object-assign: 4.1.1
+ webworkify: 1.5.0
+
@@ -20864,10 +21286,23 @@ snapshots:
base64-js: 1.5.1
xmlbuilder: 15.1.1
+
+ dependencies:
+ crc-32: 0.3.0
+ sliced: 1.0.1
+
+ dependencies:
+ crc-32: 0.3.0
+
+
dependencies:
path-data-parser: 0.1.0
@@ -21205,6 +21640,8 @@ snapshots:
+
dependencies:
es-define-property: 1.0.1
@@ -21480,6 +21917,10 @@ snapshots:
util-deprecate: 1.0.2
optional: true
+ dependencies:
+ picomatch: 2.3.2
+
@@ -21842,6 +22283,13 @@ snapshots:
+ dependencies:
+ hachure-fill: 0.5.2
+ path-data-parser: 0.1.0
+ points-on-curve: 0.2.0
+ points-on-path: 0.2.1
+
dependencies:
hachure-fill: 0.5.2
@@ -21899,6 +22347,12 @@ snapshots:
dependencies:
truncate-utf8-bytes: 1.0.2
+ dependencies:
+ chokidar: 3.6.0
+ immutable: 4.3.9
+ source-map-js: 1.2.1
+
@@ -22213,6 +22667,8 @@ snapshots:
ansi-styles: 6.2.3
is-fullwidth-code-point: 5.1.0
+
@@ -22678,6 +23134,14 @@ snapshots:
safe-buffer: 5.2.1
optional: true
+ dependencies:
+ zustand: 4.5.7(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - '@types/react'
+ - immer
+ - react
+
optionalDependencies:
'@turbo/darwin-64': 2.10.4
@@ -22974,6 +23438,23 @@ snapshots:
transitivePeerDependencies:
- msw
+
+ dependencies:
+ vscode-jsonrpc: 8.2.0
+ vscode-languageserver-types: 3.17.5
+
+
+
+ dependencies:
+ vscode-languageserver-protocol: 3.17.5
+
+
@@ -23012,6 +23493,8 @@ snapshots:
+
@@ -23211,4 +23694,11 @@ snapshots:
+ dependencies:
+ use-sync-external-store: 1.6.0([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.17
+ react: 19.2.5
+
diff --git a/scripts/generate-third-party-notices.mjs b/scripts/generate-third-party-notices.mjs
index f2a1942b8..df2ce6038 100644
--- a/scripts/generate-third-party-notices.mjs
+++ b/scripts/generate-third-party-notices.mjs
@@ -429,6 +429,14 @@ function categorize(spdx) {
? [...orParts].sort((a, b) => (a < b ? -1 : a > b ? 1 : 0)).join(' OR ')
: stripped;
+ // AND expressions: both grants apply. When every part is a permissive
+ // license (MIT / ISC / BSD-2 / BSD-3 / Apache-2.0 / Zlib), route under the
+ // primary — the shipped LICENSE file carries the full text of both. `pako`
+ // (`MIT AND Zlib`) is the canonical case: its LICENSE prints the MIT grant,
+ // and the Zlib grant covers the C sources the JS is ported from; both are
+ // OSI-permissive and impose only attribution.
+ if (/^MIT AND Zlib$/i.test(s)) return 'MIT';
+
// OR expressions: pick a permissive primary.
if (/\bMIT\b/i.test(s) && /\bCC0-1\.0\b/i.test(s)) return 'MIT';
if (/\bMIT\b/i.test(s) && /\bWTFPL\b/i.test(s)) return 'MIT';