novident_editor_document 1.0.6
novident_editor_document: ^1.0.6 copied to clipboard
Core document model for Novident Editor — tree nodes, rich-text delta, paths, and attributes. Reusable independently of the full editor.
Changelog #
1.0.6 #
- feat:
DeltaChange/DeltaChangeEvent— centralized delta-change tracking. Transactions capture the net change of every delta edit (start,end,shift,previousShift, monotonicorder) andDocumentemits them post-apply throughlistenDeltaChanges/emitChanges/nextDeltaChangeOrder— the foundation for out-of-band consumers such as the spell-check service. Remote operations and full-text replacements emit an empty change list with the ephemeralextraInfos['required_revision']flag so consumers can request a full revision. - feat:
RichTextKeys.proofStateattribute key withsupportSlicedinheritance. The document model only defines the key; its value semantics belong tonovident_spell_check_interface(proofStateError). The base editor ignores the attribute entirely. Slicing keeps the mark: characters typed inside a marked word inherit it until the engine re-analyzes the range.
1.0.5 #
- docs: remove all
TextDocumentreferences from README and examples.
1.0.4 #
- revert: removed
TextDocumentandDocumentTree— rolled back to pureDelta-based text storage by @CatHood0
1.0.3 #
- feat: start of replace Delta with a new optimized version
TextDocumentby @CatHood0 in https://github.com/Novident/novident-editor/pull/23 - feat: support for fast indexation and replaced delta with text document by @CatHood0 in https://github.com/Novident/novident-editor/pull/24
1.0.2 #
- Feat: replaced
node.attributesto return a directMapinstance, instead copies. It's NOT recommended to use for mutation. All the warnings is inside the method documentation. UseupdateAttributesinstead for any change to maintain the consistency.
1.0.1 #
- Chore: expose
OpIteratorto the public API. - Chore: export
clearandoperationsmethods fromDeltaclass. - Fix:
lengthnow uses cached plain text value when needed.
1.0.0 #
- Initial release: document model extracted from
novident_editor. Document— tree-structured document with JSON serialization.Node— tree node with attributes, children, path resolution.Delta— Quill-compatible rich-text delta (compose, diff, invert).Path—List<int>with comparison and navigation extensions.Attributes— map-based attribute helpers (compose, invert, diff).NodeIterator— depth-first visual-order traversal.RichTextKeys— well-known rich-text attribute constants.