blocks.js
Public behavior for the basic block catalog, including interactions that need listeners in the current page or live canvas document.
Responsibility#
Public behavior for the basic block catalog, including interactions that need listeners in the current page or live canvas document.
File characteristics#
- Source:
assets/blocks.js - Lines in this release: 137
- Type: browser JavaScript
Named browser helpers#
all, bind, choose, disclose, move, setup, show, single.
These functions are internal to the module unless an explicit public contract says otherwise. The list includes nested helpers and is not a global browser API.
Literal event listeners#
DOMContentLoaded, click, hashchange, keydown, kindly-edit:canvas, toggle. Dynamic event names may be assembled elsewhere. Event listeners must follow the owner document when the live device canvas moves page nodes.
Integration and verification#
Load this file through the plugin’s normal enqueue path so its dependencies and configuration are present. Check the relevant feature after a saved reload, in the live device canvas where applicable, and on the published page. Editor-only UI should not become authored page content. See architecture for the lifecycle and responsive design for document movement.