Flow board dependency patches
Text rendering and keyboard focus
@plait-board/react-text@0.4.0-2 measures the Slate font-size mark but its
React leaf renderer ignores that mark. The patch applies the size and matching
line height to both ESM and CommonJS renderers.
New topics can mount directly in editable mode. The board renderer only focuses an editor when it observes a readonly-to-editable transition, so these topics can leave keyboard focus on the toolbar. The text component now focuses after an editable render; the animation frame is cancelled on cleanup and readonly editors are excluded.
The scoped Slate overrides in package.json align react-text with the editor's
existing Slate dependencies. Without them, react-text creates editors with
0.116 while react-board tries to focus/blur them with 0.124, causing a missing
DOM-node error when finishing text edits.
Initial board plugins
@drawnix/drawnix@0.4.0-2 now accepts an optional plugins prop, installed after
the built-in plugins and before the first board render. The special mind-map
layouts need custom root and node components from the first imported render.
Installing them in afterInit is too late: the original components already exist.
The patch updates declarations and both ESM/CommonJS builds.
Validate dependency upgrades with:
pnpm exec playwright test --config playwright.flow-board-ui.config.ts
The regression suite covers imported font sizes, topic editing and creation, special structures on initial import, structure switches and undo/redo.