* A single logical change. Spans a contiguous [start, end) character range in * the paragraph text (may be empty for a pure insert) and may carry an * inserted string appended at `start`.
| 278 | * inserted string appended at `start`. |
| 279 | */ |
| 280 | interface PlannedChange { |
| 281 | editIndex: number; // source edit index |
| 282 | deleteStart: number; // paragraph text offset (inclusive) |
| 283 | deleteEnd: number; // paragraph text offset (exclusive); may equal start |
| 284 | deletedText: string; // substring of paraText in [start, end) |
| 285 | insertedText: string; // may be empty |
| 286 | contextBefore: string; |
| 287 | contextAfter: string; |
| 288 | reason?: string; |
| 289 | changeId: string; // logical id (not the w:id) |
| 290 | delWId?: string; // w:id of w:del wrapper (if deletedText non-empty) |
| 291 | insWId?: string; // w:id of w:ins wrapper (if insertedText non-empty) |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * Collapse a `fast-diff` result into a minimal `{deletedText, insertedText}` |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…