Repository navigation
v0.5.4
Adds one esb* class, esbCount, inside the eight section headings that carry
a count, and the bundle's first host-facing JavaScript,
window.esbBlocks.diagram. No block or parameter is renamed or removed, and no
existing selector stops matching; the one visible change is that the application
profile page no longer draws the renderer's corner flag.
Added
- The specification diagram is published as a promise,
window.esbBlocks.diagram(specURI), for a host that renders the diagram itself
rather than mountingdiagramImage. It resolves with{ entry, uri }, or
nullwhen there is no diagram. A block has to resolve it, so a page mounting
none ofdiagramImage,specInspectAPButtonorapViewleaves it pending.
Described under "Host-facing JS API" insrc/README.md. - A new
esb*class,esbCount: a<span>around the count in the eight
section headings that carry one, across the terminology, data vocabulary and
specification pages. It holds the bare number in the specification's four
headings, the whole count phrase in the other four. - Two new parameters on
apView,marginFlag(false) andtocControls
(true) —data-entryscape-margin-flaganddata-entryscape-toc-controlsat
the mount point. They reach the rdforms-specs renderer's corner flag and its
ToC hide/jump controls, neither reachable from the mount node before.
tocControlsdefaults to what the renderer already did;marginFlagdoes not
(below).
Changed
- The application profile page hides the renderer's corner flag.
apView
passesmarginFlagnow, defaulting tofalse, where 0.5.3 passed nothing and
the renderer drew it;data-entryscape-margin-flag="true"brings it back. A
host hiding the flag in its own CSS should drop that rule: it left the 26px
gutter reserved, and an!importantthere vetoesmarginFlag="true". - The eight heading strings carry markup. They were plain text; each now
holds theesbCountspan, in both languages. A host overriding one in
config.nlshas to carry the span along, and one reusing it elsewhere has to
render it through a triple-stache —{{nls}}andesb_nls:escape the markup
and print the tag as text, with no error. The keys are named insrc/nls.js;
the wording is unchanged.