writekit | Writekit | — | The headless controller. |
state | ShallowRef<WritekitState> | — | Reactive mirror of writekit.state, replaced wholesale per transaction. |
registry | Registry | — | — |
config | WritekitConfig | — | — |
contentRoot | ShallowRef<HTMLElement | null> | — | The single contenteditable root element (set by WritekitContent). |
blockElements | BlockElementRegistry | — | Block id → its (non-editable) block-content element. |
selection | SelectionBridge | — | DOM ↔ model selection mapping. |
composing | Ref<boolean> | — | True while an IME composition is in flight (suppresses model sync). |
lastOrigin | Ref<string | undefined> | — | Origin (meta('origin')) of the most recent transaction, if any. |
dispatch | Dispatch | — | — |
exec | (command: Command) => boolean | — | Run a command against the current state. |
focusBlock | (blockId: string, offset: number | 'start' | 'end') => void | — | Move real DOM focus + caret into a block. |