oasis-editor 0.0.325 → 0.0.327

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ import { EditorState } from '../model.js';
2
+ /**
3
+ * One descriptor per tracked revision id, covering every kind: run-level
4
+ * insert/delete/formatting, table/row/cell/grid structural and property
5
+ * revisions, and section-level `w:sectPrChange`. Previously the only complete
6
+ * assembly of author/date/type/snippet lived inside the Reviewing Pane's
7
+ * `createMemo`; this pure walker makes that metadata reusable by margin
8
+ * balloons, hover cards and any future surface.
9
+ */
10
+ export interface RevisionDescriptor {
11
+ id: string;
12
+ /** Show Markup category (grid/merge are reviewer-filtered only). */
13
+ type: "insert" | "delete" | "property" | "merge" | "grid";
14
+ author: string;
15
+ date: number;
16
+ snippet: string;
17
+ /** Paragraph ids the revision touches (nested tables/sections included). */
18
+ paragraphIds: string[];
19
+ scope: "run" | "table" | "row" | "cell" | "section";
20
+ }
21
+ export declare function collectRevisionDescriptors(state: EditorState): RevisionDescriptor[];