UNPKG

open-agreements

Version:

Open-source legal template filling CLI and library

19 lines • 707 B
/** * Shared state the block emitters thread through paragraph/table recursion. * * Bundling it in one object keeps emitter signatures stable as features * land: numbering binds spec handles to numeric ids, and the drafting-note * collector allocates comment ids in document order (absent in stories that * cannot carry notes, e.g. headers/footers, and when notes are disabled). */ /** Allocates deterministic comment ids and records notes in document order. */ export class DraftingNoteCollector { collected = []; nextId = 1; allocate(note) { const id = this.nextId++; this.collected.push({ id, note }); return id; } } //# sourceMappingURL=emit-context.js.map