@beltype/cicero
v0.1.6
Published
Cicero, a paged-media engine for the live browser: it cuts a document into pages under CSS Paged Media and presents them as real frames. Beta.
Readme
@beltype/cicero
Cicero is a paged-media engine for the live browser. It cuts a document into pages under CSS Paged Media (@page, margin boxes, running elements, named strings, counters, fragmentation) and presents them as real <beltype-page> frames, editable and re-cut in place. Beta.
SPEC.md is what it does; .specify/memory/constitution.md is how it is worked on.
Faces
| Import | What |
| --- | --- |
| @beltype/cicero | The host face: ciceroEngine (BelType's engine seam) and rewriteDocumentSheets. |
| @beltype/cicero/engine | ciceroEngine alone, without the sheet rewriter and its css-tree: a host that only serves a page (BelType's CLI) loads this. |
| @beltype/cicero/flags | ciceroFlags alone, the run-wide flags in common's shape. |
| @beltype/cicero/rewrite | rewriteDocumentSheets alone, for a page: the host face also carries ciceroEngine, which imports node's url and so cannot load in a browser. |
| @beltype/cicero/client | The page side: loading it sets window.__beltypeCicero, typed in seam/handle.d.ts. |
| @beltype/cicero/facsimile | The embedded PDF page (<object type="application/pdf">). |
| @beltype/cicero/fragmentation | The members a view adapter builds on, re-exported unchanged. |
| @beltype/cicero/page | The <beltype-page> element: loading it defines the element once. Needs a DOM, so it is not in ./fragmentation, which loads in node. |
| @beltype/cicero/internal/* | Every module of src/, for BelType's essay venue. Unstable: no promise across versions. |
Installed as a git dependency for now:
"@beltype/cicero": "git+ssh://[email protected]/BelType/cicero.git#v0.1.2"prepare builds dist/, so the install is a built package.
Working on it
pnpm install
pnpm run check # tsc over src and seam, strict
pnpm test # node:test, the .ts tests run directly
pnpm run build # dist/The battery (the essay venue's gates) lives in BelType and runs against this package's dist/.
MIT.
