Composition / foldkit-mixins-builder

foldkit-mixins-builder

Status: experimental, 0.1.0, on npm from the 0.16.0 release.

Draws a foldkit-builder page Builder as accessible HTML, with every element published as a foldkit-mixins Slot. The Builder owns the page being edited and the editor's state; this package decides which elements show it and wires the keyboard and pointer to the Builder's own Messages; your Style and Behavior attachments decide how it looks.

What it owns

FactOwner
The Document, undo, the selection, the viewport, the layers' focusfoldkit-builder
How a Block looks on the pagethe site's Renderer (foldkit-composition/foldkit)
Which element draws each part of the editor, and its accessibility wiringfoldkit-mixins-builder
Classes, inline style, extra attributes and eventsyour Style / Behavior attachments

It holds no state and adds no Messages. Every event it installs dispatches one of the Builder's own, so a Builder drawn this way and a Builder driven by a test or an agent go through the same update.