/** * vapor-chamber - display bindings on plain HTML, `bindDisplay`. * * `data-vc-text`, `data-vc-show` and `data-vc-each` follow a store's field * events (`$onField`); `data-vc-pending` follows the bus's command state. No * second reactivity system: one subscription per bound element, written on * the store's own per-field event. */ import type { BaseBus } from './command-bus'; /** * bindDisplay - display bindings on plain HTML: every bound element under * `root` (and `root` itself) follows a store of `bus` or its command state. * * A path is `.[.]`, rendered at bind time and on each * write of the field (the store's `$onField`, one subscription per element): * `data-vc-text` sets the text, `data-vc-show` hides the element unless the * value is truthy and not an empty array, `data-vc-each` clones its * `