Spec

constructor(version: Int, style: Map<String, Style>, breakpoints: List<Breakpoint>, layout: Node, handlers: Map<String, <Error class: unknown class>>? = null)

Parameters

version

document schema version. Always 1.

style

the style record: CSS selector string (div, .class, #id) → Style block.

breakpoints

media-query-conditioned style/node overrides, evaluated against the viewport.

handlers

the handlers region: event name → action, kept as raw JSON. A node's event prop names an entry here, and the action interpreter (dom-mutation) decodes it at dispatch time — the renderer never interprets one, so the typed action model stays out of the serialization layer. Absent on a document that owns no behaviour.

layout

root Node of the document's element tree.