Skip to content

v1.10.0

Choose a tag to compare

@JackUait JackUait released this 07 Aug 09:48
· 873 commits to main since this release

Features

  • Framework adaptersuseBlocks takes { within: blockId }, so a container re-renders only for its own subtree.
    • Unscoped, a page of N containers turned one keystroke into N re-renders.
    • childContentAttributes applies per-child decoration on each child's content wrapper.
    • toolbarAnchorRef and ctx.setToolbarAnchor answer getToolbarAnchorElement from inside the component tree.
  • ViewrenderLatex and createLatexRenderer are exported from @bloklabs/core/view.
    • The KaTeX chunk was already bundled, but hosts were told to add katex themselves.
    • Both apply the options Blok trusts for untrusted input, including trust: false.
    • createLatexRenderer() awaits the load once and hands back a synchronous renderer.

Bug Fixes

  • insertChild({ caret }) — The caret was permanently lost for a portal-rendered child.
    • A React, Vue or Angular child returns an empty host and commits its editable a frame later.
    • The block was not yet focusable, so the caret helper cleared the selection instead.
    • Placement now re-applies once the child's holder produces an input, one-shot.

Maintenance

  • Adapter parity — The per-child decoration pass was triplicated across the adapters and is now one implementation.
    • Three architecture laws pin the new surface.
    • The view entry gained an export-to-declaration drift check.