Apply config for data-pb-component wrappers inside a parameter-bar panel.
Key prefix, e.g. 'parameterbar.position_size' or 'parameterbar.page.bleed'
Root element to search inside (defaults to document)
Apply toolbar config after every set_active_object() rebuild.
The #tools HTMLElement
Re-apply config to all currently-live DOM (content bar + registered pb panels). Toolbar is re-applied automatically on every set_active_object() rebuild.
Whether pins are on screen right now, mode included — not the raw toggle.
Optionaloptions: HideOptionsRe-read the host's comments, for when the host knows something changed elsewhere.
Register the live root element for a parameter-bar panel so that hide()/show()/disable()/enable() calls update it immediately. Call this every time the panel rebuilds its DOM.
False when the host said it will draw the mode control itself.
Open a thread by id, for a host landing a reader on the comment a notification named.
Which modes this host offers. Defaults to ['editing'], so an embedder that knows nothing about commenting sees no switcher and no change in behaviour.
A commenter is given ['commenting'] alone and a read-only reader ['viewing']: the switcher then renders as a locked label rather than a menu, which is what tells them on screen why the tools are inert.
Show the pins while editing. Ignored in the other modes: commenting always draws them — it is the mode for placing them — and viewing never does.
Register the host's comment backend. The widget never fetches anything itself: it holds no URL and no token, and that is deliberate (see CLAUDE.md, TYP-583).
Open or close the thread rail. It starts closed: pins are the ambient signal that a page carries feedback, and 320px of canvas is too much to spend before anyone asks for it.
Who is looking. Decides which comments offer edit and delete.
Set the keyword list available for insertion via Cmd+K in rich text mode. REPLACES the entire existing list (including the CAM/Spronk defaults) — it does not merge. Keywords are sorted alphabetically. Pass [] to disable the popup.
Commenting and viewing mute canvas interaction through the switch TYP-597 added, and hide the authoring controls through the same keys a host would use. Neither is a new enforcement mechanism, and neither is a security boundary — the host still enforces permission server-side.
Controls how the Save command serialises spreads: 'spreads' (default, as authored) or 'single_pages' (each spread split into single pages). Does not mutate the document — only the serialised output is affected.
Apply content-bar tab config. Called on init and whenever apply() fires.