Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
chore(ok): move @visimer/core and @visimer/dom from 0.1.0 to 1.1.2 (#6529)
Dimitri POSTOLOV96d078fafefd
diff --git a/.changeset/mermaid-visimer-1x.md b/.changeset/mermaid-visimer-1x.mdnew file mode 100644index 000000000..ac3c54d82--- /dev/null+++ b/.changeset/mermaid-visimer-1x.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": patch+---++The Mermaid diagram editor now has separate pickers for edge arrows, stroke, color, animation and curve, and edges are easier to click.diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex d1c49e38a..997d05207 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -6689,12 +6689,12 @@ Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,The packages below are authored and published by Inkeep and are licensed under GPL-3.0-or-later, the same license as OpenKnowledge itself (see the repository LICENSE for the full text). They are listed for completeness; they are not third-party material.-### `@visimer/[email protected]`+### `@visimer/[email protected]`Homepage: https://github.com/inkeep/visimer#readmeCopyright (c) 2026 Inkeep-### `@visimer/[email protected]`+### `@visimer/[email protected]`Homepage: https://github.com/inkeep/visimer#readmeCopyright (c) 2026 Inkeepdiff --git a/packages/app/BUNDLE-SIZE.md b/packages/app/BUNDLE-SIZE.mdindex dd7047c55..71b0869f3 100644--- a/packages/app/BUNDLE-SIZE.md+++ b/packages/app/BUNDLE-SIZE.md@@ -113,3 +113,5 @@ Combined-chunks 8.91->8.92 MB for the corner card stack that floats update and fCombined-chunks 8.92->8.93 MB for the responsive single-pane workspace: one selected component in narrow windows, the sidebar covers over the editor card, the shared sidebar fit budget, the narrow editor group selector, the single-file shared shell, and their strings compiled into every locale catalog. CI measured the pull request 8.48 kB over the 8,920,000 B ceiling, about 8,928,480 B. The main app bundle measured 467.58 kB against its 487 kB limit, up from 453.8 kB on the base, because the narrow layout state and the cover controls load eagerly with the shell; CSS stayed at 8.36 kB against 59 kB. The 10 kB ratchet leaves about 1.5 kB of headroom over the CI measurement. No reclamation lever beyond the lazy-load levers above.Combined-chunks stays at 9.15 MB after merging `feat/layout-redesign` into `main`. The three raises above (8.9->8.93 MB) were set on that integration branch while `main` raised the same ceiling to 9.15 MB for Polish, so the enforced limit is `main`'s and the 8.91, 8.92 and 8.93 MB ceilings never applied there; their headroom figures describe the branch, not the merged tree. A clean local build of the merged tree measured 9,144,866 B combined, 5,134 B under the 9,150,000 B ceiling, with the main app bundle at 477.79 kB against its 487 kB limit and CSS at 8.36 kB against 59 kB. CI's size job passed on the first merged head. No reclamation lever beyond the lazy-load levers above.++Combined-chunks 9.15->9.16 MB for `@visimer/core` and `@visimer/dom` 1.x, which split the Mermaid edge picker into separate arrow, stroke, color, animation and curve pickers. CI measured the bump at 9,150,517 B, 517 B over the 9,150,000 B ceiling. Direct local `vite build` runs of `packages/app` measured 9,146,208 B with `0.1.0` and 9,149,900 B with `1.1.2`, so the bump adds 3,692 B. CI measures about 600 B more than a local build, so `main` sat about 3.2 kB under the old ceiling before this change. The main app bundle measured 478.46 kB against its 487 kB limit, and CSS stayed at 8.36 kB against 59 kB. The 10 kB ratchet leaves about 9.5 kB of headroom over the CI measurement. None of that headroom is reserved: the HTML preview frame page, web shell CSP and desktop file protocol changes that land after this one pass under 9.16 MB with no further raise. No reclamation lever beyond the lazy-load levers above.diff --git a/packages/app/package.json b/packages/app/package.jsonindex 217e40252..631007ce2 100644--- a/packages/app/package.json+++ b/packages/app/package.json@@ -65,7 +65,7 @@{"name": "all JS chunks combined (gzipped)","path": "dist/assets/*.js",- "limit": "9.15 MB",+ "limit": "9.16 MB","gzip": true,"running": false},@@ -137,8 +137,8 @@"@tiptap/suggestion": "^3.22.3","@tiptap/y-tiptap": "3.0.3","@u-wave/react-vimeo": "^0.9.12",- "@visimer/core": "^0.1.0",- "@visimer/dom": "^0.1.0",+ "@visimer/core": "^1.1.2",+ "@visimer/dom": "^1.1.2","@xterm/addon-fit": "0.11.0","@xterm/addon-unicode11": "0.9.0","@xterm/addon-web-links": "0.12.0",diff --git a/packages/app/tests/stress/mermaid-canvas-edit.e2e.ts b/packages/app/tests/stress/mermaid-canvas-edit.e2e.tsnew file mode 100644index 000000000..61ce35ce4--- /dev/null+++ b/packages/app/tests/stress/mermaid-canvas-edit.e2e.ts@@ -0,0 +1,47 @@+import { randomUUID } from 'node:crypto';+import type { Page } from '@playwright/test';+import { expect, test, waitForActiveProviderSynced } from './_helpers';++async function readDocumentContent(page: Page, docName: string): Promise<string> {+ const response = await page.request.get(`/api/document?docName=${encodeURIComponent(docName)}`);+ expect(response.ok()).toBe(true);+ const body: { content?: string } = await response.json();+ return body.content ?? '';+}++test('mermaid canvas renders a flowchart and Escape cancels an in-place label edit', async ({+ page,+ api,+}) => {+ const docName = `mermaid-${randomUUID().slice(0, 8)}`;+ await api.createPage(`${docName}.md`);+ await api.replaceDoc(+ docName,+ '# Diagram\n\n```mermaid\nflowchart TD\n A[Start] --> B[Finish]\n```\n',+ );++ await page.goto(`/#/${docName}`);+ await waitForActiveProviderSynced(page, { timeout: 15_000 });++ const diagram = page.locator('[data-component-type="mermaid"].mermaid-ready');+ const startLabel = diagram.locator('.nodeLabel', { hasText: 'Start' });+ await expect(startLabel).toBeVisible();+ await expect(diagram.locator('.nodeLabel', { hasText: 'Finish' })).toBeVisible();++ await startLabel.dblclick();+ const editing = diagram.locator('[contenteditable="true"]');+ await expect(editing).toHaveText('Start');+ await page.keyboard.type('Cancelled');+ await expect(editing).toHaveText('Cancelled');+ await expect+ .poll(() => readDocumentContent(page, docName), { timeout: 10_000 })+ .toContain('Cancelled');+ await page.keyboard.press('Escape');++ await expect(editing).toHaveCount(0);+ await expect(startLabel).toHaveText('Start');+ await expect+ .poll(() => readDocumentContent(page, docName), { timeout: 10_000 })+ .not.toContain('Cancelled');+ expect(await readDocumentContent(page, docName)).toContain('A[Start] --> B[Finish]');+});diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b7afb9414..d218f1d5d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -543,11 +543,11 @@ importers:specifier: ^0.9.12version: 0.9.12([email protected])'@visimer/core':- specifier: ^0.1.0- version: 0.1.0+ specifier: ^1.1.2+ version: 1.1.2'@visimer/dom':- specifier: ^0.1.0- version: 0.1.0+ specifier: ^1.1.2+ version: 1.1.2'@xterm/addon-fit':specifier: 0.11.0version: 0.11.0@@ -6423,11 +6423,11 @@ packages:'@vimeo/[email protected]':resolution: {integrity: sha512-M8m1UAhJSb+KCWuXDLWHViwj+3YY/0ogwFquRfMHs9e9LYjXT9iB7n+sOCKwUusbiXuU2HKmXx+FEGHtYZfUSg==}- '@visimer/[email protected]':- resolution: {integrity: sha512-PIvkhrWtsRq/a/i88Yb0shvKC1oaZPA5UBLMs9/MjYZ4JMZVXKtvgqjAw3hg7hNN9lyos3qTlNGnmFuMOUJ1Eg==}+ '@visimer/[email protected]':+ resolution: {integrity: sha512-do8MDqlLQeDRI1fy2PUTVnzBkLrzpaq260UX1WrtE/3XtSoLge4T5oY+cvSXFyINhYiYKB9tgetkx+o14LFrjA==}- '@visimer/[email protected]':- resolution: {integrity: sha512-hvBtIma0hZDIKhqMtIqEjueX4nVq353RdULBxykjj/d7OO+QoVzDIUxD3nG3732MLpjfVoLtpHbT07lWDx2Qmw==}+ '@visimer/[email protected]':+ resolution: {integrity: sha512-Ir+Nl5vRgZA8rQwjGEQrC9ijOkdR0BmD3EjjqU/VedgK0lxleo5dKj8YIoHiocEDS1hlQwmzRZKIKg8MuV2FJw==}'@vitejs/[email protected]':resolution: {integrity: sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==}@@ -17247,11 +17247,11 @@ snapshots:native-promise-only: 0.8.1weakmap-polyfill: 2.0.4- '@visimer/[email protected]': {}+ '@visimer/[email protected]': {}- '@visimer/[email protected]':+ '@visimer/[email protected]':dependencies:- '@visimer/core': 0.1.0+ '@visimer/core': 1.1.2'@vitejs/[email protected](@rolldown/[email protected](@babel/[email protected]([email protected]))(@babel/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies: