pub fn diff_document(old_doc: &str, new_doc: &str) -> Vec<ComponentDiff>Expand description
Diff two document revisions into per-component minimal op sets.
Matches component occurrences by (component, occurrence). A component that
exists in only one revision yields a diff that inserts / removes its items.
Crucially, ops are scoped per component occurrence: an edit in component
A produces no ops for component B (no cross-cell splice). Components with no
item-level change are omitted (use the full vector if you need empties).