* feat(editor): bump mermaid-to-excalidraw to 3.3.0 (Pele 1.13, stepped edges)
- mermaid-to-excalidraw 3.1.0 -> 3.3.0 (Pele 1.8.0 -> 1.13.0): flowchart
edges and state transitions are elbow arrows when the definition asks for
a stepped curve (`curve: "step"`, `linkStyle … interpolate step`); class
namespaces are drawn as boxes like subgraphs (3.2.0)
- Pele 1.13 reports syntax errors on the source line (counting front matter,
directives, comments and blank lines) and errors past the end on the last
line, so the TTD dialog no longer converts them: the conversion would shift
them twice
Claude Opus 5.5 (low)
* docs: link #12535 in the changelog
Claude Opus 5.5 (low)
* feat(editor): draw Mermaid flowchart and state edges as elbow arrows
Convert Mermaid diagrams (TTD dialog and paste) with `flowchart.curve:
"step"` (`MERMAID_TO_EXCALIDRAW_CONFIG`), which m2e 3.3 turns into elbow
arrows for flowchart edges and state transitions. A curve the definition
sets itself (front matter, `%%{init}%%`, `linkStyle … interpolate`) still
wins; class and ER diagrams are unaffected.
Claude Opus 5.5 (low)
* feat(editor): elbow arrows for Mermaid flowcharts only (mermaid-to-excalidraw 3.4.0)
mermaid-to-excalidraw 3.4.0 replaces `flowchart.curve` with `elbow`, per
diagram type. Use `elbow: { flowchart: true }`: state diagrams' elbow
transitions need more work in m2e, so they stay as before.
Claude Opus 5.5 (low)
* feat(editor): bump mermaid-to-excalidraw to 3.5.0 (Gantt, quadrant charts, timelines)
mermaid-to-excalidraw 3.5.0 converts Gantt charts, quadrant charts and
timelines to Excalidraw elements instead of an image. The Mermaid dialog's
description lists them (and State diagrams, missing before), its syntax
links built by one helper.
Claude Opus 5.5 (low)
* fix(editor): detect pasted Mermaid after comments and front matter
Pasted text was only taken for Mermaid when its diagram type came first,
or after a single one-line `%%{...}%%` directive. Skip everything Mermaid
allows before it: blank lines, `%%` comments, directives (also over
several lines) and front matter.
A directive doesn't run past the next `%%{`, so text with many unclosed
directives is checked in linear time (searching each to the end of the text
would be quadratic: ReDoS).
Claude Opus 5.5 (low)
* feat(editor): bump mermaid-to-excalidraw to 3.6.0 (diagram types loaded on first use)
mermaid-to-excalidraw 3.6.0 loads each diagram type's parser and converter
on first use: its main chunk is 20.3 KiB (brotli) instead of 35.8, plus
1.5–5.1 KiB for the type converted (a first flowchart: 28.5 KiB).
Claude Opus 5.5 (low)
* perf(editor): bump @excalidraw/mermaid-to-excalidraw to 3.1.0
3.1.0 loads Pele's code per diagram type, on first use (`pele/lazy`),
instead of all 33 diagram types at once: a first flowchart downloads
~66 KiB (brotli) instead of ~217 KiB. The per-diagram chunks are only
reachable through the lib's dynamic import, so `lazyChunksPlugin` keeps
them out of the PWA precache.
Claude Opus 5.5 (xhigh)
* chore(editor): name Pele's diagram chunks in TTD chunk-load comments
Since mermaid-to-excalidraw v3, it's Pele (not Mermaid) that lazy-loads
a chunk per diagram type, as of 3.1.0.
Claude Opus 5.5 (xhigh)
* feat(app): cache all Mermaid chunks for offline use once the TTD dialog opens
mermaid-to-excalidraw 3.1 splits Pele into a chunk per diagram type,
which aren't precached. With 3.0, the single Pele chunk cached on first
use covered every diagram type offline; now only the types converted
while online would.
`lazyChunksPlugin` emits the list of mermaid chunks as a hashed JSON
asset, which index.html points to with a `<meta>` (+33 B br). Once the
TTD dialog is opened, the app fetches the list and the chunks (after 5 s,
so the dialog's own chunks aren't fetched twice, at low priority) for the
service worker to cache in `lazy-chunks` (~200 kB br on top of what the
dialog loads). App only: package hosts (e.g. E+) are unaffected.
Claude Opus 5.5 (xhigh)
* chore: type-check linked packages' `@excalidraw/excalidraw/{element,common}/*` imports against the sources
Packages linked into the monorepo (e.g. a local `@excalidraw/mermaid-to-excalidraw`)
import types from `@excalidraw/excalidraw/element/*` and `.../common/*`, which
didn't map to the sources and fell back to the linked package's own (published)
copy of `@excalidraw/excalidraw`, failing the type check. The mocked arrows in
the Mermaid tests now use the `LocalPoint` their points are typed as.
Claude Opus 5.5 (xhigh)
* feat(editor): TTD Mermaid errors on their source line, with guidance by diagram type
- Mermaid (and Pele) number lines as they parse the definition: without its
front matter, directives, comment lines and leading blank lines (and in
flowcharts and ER diagrams, a line ending with a comment runs on into the
next one). Errors are now mapped back to the line of the source they're on
for the highlighted line, the summary, the shown message, the auto-fixer and
the AI repair prompt. Errors past the end (e.g. a missing `end`) are on its
last non-empty line.
- The likely causes depend on the diagram type: an unclosed class body,
composite state or entity (not "a decision node"), sequence blocks missing
their `end`, labels with brackets or parentheses that need quoting, `end`
used as a node.
- Definitions without a (known) diagram type get a summary and hint, and their
first line is highlighted. Mermaid and Pele word that error differently.
Claude Opus 5.5 (xhigh)
* feat(editor): auto-fix more common Mermaid mistakes in TTD
New auto-fix candidates (each still only offered if it parses):
- quote labels with brackets or parentheses in them:
`A[Process (main)]` -> `A["Process (main)"]`
- close unclosed blocks (`subgraph`/`loop`/... `end`s, class/state/entity
`}`s) where their indentation ends, not only at the end of the definition
- close a node label left open before its edge (`A[Start --> B` ->
`A[Start] --> B`), and drop closing brackets that close nothing
- `->` -> `-->` in flowcharts and state diagrams (labels left alone)
- `end` used as a flowchart node -> `End`
- the `:` missing before a sequence message's or ER relationship's label
- an invalid flowchart direction -> `TD`
- a misspelled diagram type (`flowchar TD`, `sequencediagram`), or a missing
one
Claude Opus 5.5 (xhigh)
* feat(editor): fix and explain invalid or misplaced directions in TTD Mermaid
- A flowchart subgraph's `direction` is uppercased (`lr` -> `LR`), `TD` is
`TB` there (unlike in the flowchart's header), and one that isn't any
direction is dropped, for the subgraph to keep the flowchart's.
- A direction on the first line of a class, state or ER diagram
(`classDiagram LR`, `erDiagram direction LR`) is moved to a `direction`
statement on the next line, unless the diagram has one already.
- Sequence diagrams have no direction: it's dropped from their first line and
their `direction` statements.
- The likely causes explain all of these.
Claude Opus 5.5 (xhigh)
* feat(editor): mark TTD assistant messages rendered with Pele
Assistant messages are saved with the chat with `renderer: "pele"`, to tell
their diagrams from those of chats saved before mermaid-to-excalidraw v3,
which Mermaid rendered (and which can't be told apart later).
Claude Opus 5.5 (xhigh)
* feat(editor): paste `swimlane-beta` diagrams as Mermaid
mermaid-to-excalidraw v3 converts them (Pele renders them, Mermaid doesn't),
but pasting one inserted it as text, as `swimlane` wasn't a diagram type
that marks pasted text as Mermaid.
Claude Opus 5.5 (xhigh)
* feat(editor): lay Mermaid diagrams out with Pele (mermaid-to-excalidraw 3.0.0)
mermaid-to-excalidraw 3.0.0 parses and lays out diagrams with Pele instead
of Mermaid, which is no longer bundled. It keeps labels where Pele placed
them along their arrows with `label.labelPosition`, which skeleton arrows
support since #12425.
Claude Opus 5.5 (xhigh)
* docs: changelog for mermaid-to-excalidraw v3 and skeleton bound arrows
Claude Opus 5.5 (xhigh)
- `Stats` workflow on master: posts the production build's file sizes (raw, gzip, Brotli; initial load vs. lazy; bytes per source package) and, once staging serves the commit, its page-load and pan/zoom measurements to the Excalidraw+ backend; OSS_STATS_TOKEN lives in the master-only `stats` environment
- `scripts/stats/`: bundle-stats Vite plugin and wrapper config (`yarn stats:bundle`), the Playwright runner (`yarn stats:perf`) and the poster
- `yarn stats:compare`: builds the checkout, serves it with `vite preview` and compares it with staging (alternating loads, Mann-Whitney U test); prints a table or writes CSV with `--out`
- `excalidraw:app-start` mark in the app's entry, ending the runs' "HTML + JS" phase
- `playwright` 1.58.2 dev dependency (installs no browsers by itself)
Claude Opus 5.5 (xhigh)
- Vendored fractional-indexing and converted to TypeScript
- Stricter index format validation in fractional-indexing
- Added format validation to fractional index validation
---
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
* lasso without 'real' shape detection
* select a single linear el
* improve ux
* feed segments to worker
* simplify path threshold adaptive to zoom
* add a tiny threshold for checks
* refactor code
* lasso tests
* fix: ts
* do not capture lasso tool
* try worker-loader in next config
* update config
* refactor
* lint
* feat: show active tool when using "more tools"
* keep lasso if selected from toolbar
* fix incorrect checks for resetting to selection
* shift for additive selection
* bound text related fixes
* lint
* keep alt toggled lasso selection if shift pressed
* fix regression
* fix 'dead' lassos
* lint
* use workerpool and polyfill
* fix worker bundled with window related code
* refactor
* add file extension for worker constructor error
* another attempt at constructor error
* attempt at build issue
* attempt with dynamic import
* test not importing from math
* narrow down imports
* Reusing existing workers infrastructure (fallback to the main thread, type-safety)
* Points on curve inside the shared chunk
* Give up on experimental code splitting
* Remove potentially unnecessary optimisation
* Removing workers as the complexit is much worse, while perf. does not seem to be much better
* fix selecting text containers and containing frames together
* render fill directly from animated trail
* do not re-render static when setting selected element ids in lasso
* remove unnecessary property
* tweak trail animation
* slice points to remove notch
* always start alt-lasso from initial point
* revert build & worker changes (unused)
* remove `lasso` from `hasStrokeColor`
* label change
* remove unused props
* remove unsafe optimization
* snaps
---------
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
Co-authored-by: Marcel Mraz <marcel@excalidraw.com>
* chore: bump @radix-ui/react-tabs version to 1.1.3
bumped the version to latest stable that includes
react ^19 as peerDepenecy.
This fixes peerDependency issues, as reported in #9253
* redeploy
---------
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
* build: upgrade vite to 5.x, vitest to 2.x and related vite packages
* upgrade vitest-ui and coverage
* pass empty set to fix type error and update snap
* set ignoreEmptyLines to false
* update threshold
* update coverage threshold
* downgrade vite-plugin-pwa as its better to push separately with testing
* add package resolutions for strip-ansi, string-width and wrap-ansi
* disable pwa
* only add resolution for strip-ansi
* Upgrade @babel/* versions to 7.24 to ensure non-vulnerable Babel versions
* Pinning React version to 18.2.0 exactly, avoiding test-utils type version clashes
* Fix warning message on yarn start
* Moving react to peer dependencies
* Moving app dependencies from workspace into app
* Bump vitest to 1.6.0 to fix history.test.tsx breaking
---------
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>