novident_editor_document 1.0.6 copy "novident_editor_document: ^1.0.6" to clipboard
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, monotonic order) and Document emits them post-apply through listenDeltaChanges / 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 ephemeral extraInfos['required_revision'] flag so consumers can request a full revision.
  • feat: RichTextKeys.proofState attribute key with supportSliced inheritance. The document model only defines the key; its value semantics belong to novident_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 TextDocument references from README and examples.

1.0.4 #

  • revert: removed TextDocument and DocumentTree — rolled back to pure Delta-based text storage by @CatHood0

1.0.3 #

1.0.2 #

  • Feat: replaced node.attributes to return a direct Map instance, instead copies. It's NOT recommended to use for mutation. All the warnings is inside the method documentation. Use updateAttributes instead for any change to maintain the consistency.

1.0.1 #

  • Chore: expose OpIterator to the public API.
  • Chore: export clear and operations methods from Delta class.
  • Fix: length now 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).
  • PathList<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.
0
likes
150
points
387
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Core document model for Novident Editor — tree nodes, rich-text delta, paths, and attributes. Reusable independently of the full editor.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MPL-2.0 (license)

Dependencies

collection, diff_match_patch, flutter, nanoid

More

Packages that depend on novident_editor_document