Skip to main content

CitationViewModel

@forge/monorepo


@forge/monorepo / frontend/src / CitationViewModel

Type Alias: CitationViewModel

CitationViewModel = object

Defined in: frontend/src/citations.ts:37

The React-free view model behind the components.

Extracted for the same reason part-summary.ts is: the ordering is where AC-4 lives, and ordering is a pure function. A property like "adding a citation appends and never inserts" is provable about a list and merely observable about a DOM tree.

Properties

blocks

readonly blocks: readonly object[]

Defined in: frontend/src/citations.ts:39

Blocks in document order. Text blocks carry their markers; a citation contributes no block of its own.


panels

readonly panels: readonly object[]

Defined in: frontend/src/citations.ts:48

Panels after the message, in arrival order — never reordered, never renumbered.