oasis-editor 0.0.170 → 0.0.171
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,29 @@
|
|
|
1
|
+
import { EditorDocument } from '../model.js';
|
|
2
|
+
|
|
3
|
+
export type EditorTrackedRevisionAction = "accept" | "reject";
|
|
4
|
+
export type EditorTrackedRevisionView = "final" | "original";
|
|
5
|
+
export type EditorTrackedRevisionIssueKind = "revision-not-found" | "numbering-original-unavailable" | "structural-removal-unavailable" | "cell-merge-original-unavailable" | "table-property-exception-original-unavailable";
|
|
6
|
+
export interface EditorTrackedRevisionIssue {
|
|
7
|
+
kind: EditorTrackedRevisionIssueKind;
|
|
8
|
+
revisionId?: string;
|
|
9
|
+
path: string;
|
|
10
|
+
message: string;
|
|
11
|
+
}
|
|
12
|
+
export interface EditorTrackedRevisionResolutionResult {
|
|
13
|
+
document: EditorDocument;
|
|
14
|
+
changed: boolean;
|
|
15
|
+
complete: boolean;
|
|
16
|
+
resolvedRevisionIds: string[];
|
|
17
|
+
unresolved: EditorTrackedRevisionIssue[];
|
|
18
|
+
}
|
|
19
|
+
/** Resolve every modeled tracked change whose semantics are safe for the action. */
|
|
20
|
+
export declare function resolveAllTrackedRevisions(document: EditorDocument, action: EditorTrackedRevisionAction): EditorTrackedRevisionResolutionResult;
|
|
21
|
+
/** Resolve one logical tracked revision id across every run/property it spans. */
|
|
22
|
+
export declare function resolveTrackedRevision(document: EditorDocument, revisionId: string, action: EditorTrackedRevisionAction): EditorTrackedRevisionResolutionResult;
|
|
23
|
+
/**
|
|
24
|
+
* Build Word-style Final/Original projections without mutating the source model.
|
|
25
|
+
* `complete` is false when the requested projection requires semantics that are
|
|
26
|
+
* still preservation-only (currently previous numbering and destructive table
|
|
27
|
+
* subtree reconstruction).
|
|
28
|
+
*/
|
|
29
|
+
export declare function projectTrackedRevisions(document: EditorDocument, view: EditorTrackedRevisionView): EditorTrackedRevisionResolutionResult;
|