@polycrest/document-editor-angular
v0.4.0
Published
Angular wrapper for the Polycrest structured document editor — standalone <doc-editor> component with signals and DI seams.
Readme
@polycrest/document-editor-angular
Standalone, signals-based, zoneless-safe Angular wrapper.
<doc-editor
[document]="document"
[readOnly]="false"
[permissions]="permissions"
(ready)="onReady($event)"
(documentChanged)="onChanged($event)"
(elementSelected)="openProperties($event)"
(suggestionCreated)="review($event)"
(conflict)="surface($event)" />DI seams (all optional): DOC_EDITOR_ID_GENERATOR, ELEMENT_REGISTRY,
DATA_PROVIDERS (a single-value token carrying the full provider array — never register it multi). The engine owns its DOM — Angular never re-renders
on keystrokes; documentChanged fires once per typing pause (~0.8 s idle,
3 s max-wait while typing continues; the document revision advances once per
batch). The facade instance
is exposed via the component's editor() signal for advanced hosts and
automation harnesses. All types come from @polycrest/document-core.
