@stll/folio-core 0.75.0 → 0.77.0
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.
- package/dist/ai-edits/headless.d.ts +8 -5
- package/dist/ai-edits/headless.js +49 -26
- package/dist/ai-edits/pending-suggestions.d.ts +9 -0
- package/dist/ai-edits/pending-suggestions.js +13 -3
- package/dist/ai-edits/read.js +33 -4
- package/dist/ai-edits/table-geometry.js +12 -4
- package/dist/ai-edits/types.d.ts +9 -4
- package/dist/canonical/batchCommentReferences.js +2 -1
- package/dist/canonical/canonicalBatchReview.js +5 -8
- package/dist/canonical/canonicalComments.js +8 -2
- package/dist/canonical/canonicalCompilerRefusal.d.ts +2 -4
- package/dist/canonical/canonicalCompilerRefusal.js +20 -14
- package/dist/canonical/canonicalInlineProjection.d.ts +2 -2
- package/dist/canonical/canonicalInlineProjection.js +2 -2
- package/dist/canonical/canonicalProjectionBlocks.d.ts +10 -1
- package/dist/canonical/canonicalPublicOperations.js +214 -107
- package/dist/canonical/canonicalSeedContent.d.ts +18 -3
- package/dist/canonical/canonicalSeedContent.js +28 -15
- package/dist/canonical/canonicalSession.d.ts +22 -12
- package/dist/canonical/canonicalSession.js +181 -187
- package/dist/controller/canonicalClipboard.d.ts +3 -2
- package/dist/controller/canonicalClipboard.js +377 -58
- package/dist/controller/canonicalComposition.js +67 -14
- package/dist/controller/canonicalContentControlValue.js +7 -7
- package/dist/controller/canonicalReview.d.ts +21 -0
- package/dist/controller/canonicalReview.js +44 -9
- package/dist/controller/canonicalStoryEditor.js +2 -0
- package/dist/controller/canonicalStructure.d.ts +1 -2
- package/dist/controller/canonicalStructure.js +51 -24
- package/dist/controller/fontReadiness.js +50 -23
- package/dist/controller/hiddenEditorManager.js +7 -20
- package/dist/docx/bulletMarkers.d.ts +8 -0
- package/dist/docx/bulletMarkers.js +9 -1
- package/dist/docx/canonicalSessionInput.js +25 -11
- package/dist/docx/ensureParaIds.d.ts +31 -0
- package/dist/docx/ensureParaIds.js +57 -32
- package/dist/docx/ensureUniqueControlIds.d.ts +13 -0
- package/dist/docx/ensureUniqueControlIds.js +47 -29
- package/dist/docx/ensureUniqueRevisionIds.d.ts +13 -0
- package/dist/docx/ensureUniqueRevisionIds.js +52 -29
- package/dist/docx/importedIdCollisions.js +29 -4
- package/dist/docx/server/templatePlan/apply.js +108 -9
- package/dist/docx/server/templatePlan/blocks.d.ts +77 -5
- package/dist/docx/server/templatePlan/blocks.js +281 -14
- package/dist/docx/server/templatePlan/builders.d.ts +22 -1
- package/dist/docx/server/templatePlan/builders.js +37 -3
- package/dist/docx/server/templatePlan/effects.d.ts +27 -0
- package/dist/docx/server/templatePlan/effects.js +188 -0
- package/dist/docx/server/templatePlan/emit.d.ts +4 -1
- package/dist/docx/server/templatePlan/emit.js +152 -8
- package/dist/docx/server/templatePlan/inspect.js +21 -1
- package/dist/docx/server/templatePlan/labels.js +16 -1
- package/dist/docx/server/templatePlan/plan.d.ts +35 -3
- package/dist/docx/server/templatePlan/plan.js +197 -20
- package/dist/docx/server/templatePlan/planShape.js +58 -22
- package/dist/docx/server/templatePlan/revisions.d.ts +101 -0
- package/dist/docx/server/templatePlan/revisions.js +681 -0
- package/dist/docx/server/templatePlan/story.d.ts +61 -2
- package/dist/docx/server/templatePlan/story.js +175 -13
- package/dist/docx/server/templatePlan/types.d.ts +313 -1
- package/dist/docx/server/templatePlan/verify.js +175 -12
- package/dist/docx/server/templatePlan/xml.d.ts +3 -0
- package/dist/docx/server/templatePlan/xml.js +4 -1
- package/dist/docx/settingsHeaderFooterUpdate.d.ts +1 -1
- package/dist/docx/tableGridXml.d.ts +3 -7
- package/dist/docx/tableGridXml.js +5 -13
- package/dist/layout-bridge/convert/footnoteLayout.js +34 -8
- package/dist/prosemirror/canonicalMarkupDocument.d.ts +20 -0
- package/dist/prosemirror/canonicalMarkupDocument.js +73 -0
- package/dist/prosemirror/canonicalTableCommands.d.ts +1 -1
- package/dist/prosemirror/canonicalTableCommands.js +1 -3
- package/dist/prosemirror/commands/comments.d.ts +6 -234
- package/dist/prosemirror/commands/comments.js +5 -2464
- package/dist/prosemirror/commands/index.d.ts +4 -2
- package/dist/prosemirror/commands/index.js +4 -2
- package/dist/prosemirror/conversion/markupViewSource.d.ts +17 -0
- package/dist/prosemirror/conversion/markupViewSource.js +11 -0
- package/dist/prosemirror/conversion/toProseDoc.d.ts +3 -0
- package/dist/prosemirror/conversion/toProseDoc.js +31 -14
- package/dist/prosemirror/extensions/marks/HyperlinkExtension.js +6 -8
- package/dist/prosemirror/hyperlinkRemoval.d.ts +11 -8
- package/dist/prosemirror/hyperlinkRemoval.js +24 -15
- package/dist/prosemirror/independentMarkupProjection.d.ts +27 -0
- package/dist/prosemirror/independentMarkupProjection.js +147 -0
- package/dist/prosemirror/markupViewNotes.d.ts +1 -1
- package/dist/prosemirror/markupViewNotes.js +24 -27
- package/dist/prosemirror/markupViewPositionMap.d.ts +16 -0
- package/dist/prosemirror/markupViewPositionMap.js +316 -0
- package/dist/prosemirror/markupViewProjection.d.ts +3 -46
- package/dist/prosemirror/markupViewProjection.js +90 -17
- package/dist/prosemirror/paraIds.d.ts +1 -14
- package/dist/prosemirror/paraIds.js +1 -14
- package/dist/prosemirror/paragraphMarkJoin.d.ts +0 -16
- package/dist/prosemirror/paragraphMarkJoin.js +3 -46
- package/dist/prosemirror/projectionReview.d.ts +49 -0
- package/dist/prosemirror/projectionReview.js +292 -0
- package/dist/prosemirror/rebaseParagraphRunFormatting.d.ts +1 -13
- package/dist/prosemirror/rebaseParagraphRunFormatting.js +1 -16
- package/dist/prosemirror/replacedAnnotations.d.ts +6 -83
- package/dist/prosemirror/replacedAnnotations.js +11 -203
- package/dist/prosemirror/revisionCarriers.d.ts +9 -1
- package/dist/prosemirror/revisionCarriers.js +15 -1
- package/dist/prosemirror/revisionRangeQueries.d.ts +32 -0
- package/dist/prosemirror/revisionRangeQueries.js +76 -0
- package/dist/prosemirror/runFormattingMarkNames.d.ts +1 -1
- package/dist/prosemirror/runFormattingMarkNames.js +1 -1
- package/dist/prosemirror/styles/styleResolver.d.ts +1 -0
- package/dist/prosemirror/styles/styleResolver.js +4 -1
- package/dist/prosemirror/suggestionQueries.d.ts +114 -0
- package/dist/prosemirror/suggestionQueries.js +320 -0
- package/dist/prosemirror/tableGridMutation.d.ts +1 -16
- package/dist/prosemirror/tableGridMutation.js +1 -78
- package/dist/prosemirror/tableRowRevisionOwnership.d.ts +18 -0
- package/dist/prosemirror/tableRowRevisionOwnership.js +7 -0
- package/dist/prosemirror/utils/extractTrackedChanges.js +14 -4
- package/dist/server.d.ts +2 -2
- package/dist/types/canonicalCapabilities.d.ts +4 -35
- package/dist/types/canonicalCapabilities.js +4 -33
- package/package.json +2 -2
- package/dist/internal/headlessRevisionResolutionGuard.d.ts +0 -3
- package/dist/internal/headlessRevisionResolutionGuard.js +0 -18
- package/dist/internal/revisionResolutionEdits.d.ts +0 -11
- package/dist/internal/revisionResolutionEdits.js +0 -18
- package/dist/internal/revisionResolutionInline.d.ts +0 -24
- package/dist/internal/revisionResolutionInline.js +0 -302
- package/dist/internal/revisionResolutionStep.d.ts +0 -32
- package/dist/internal/revisionResolutionStep.js +0 -282
- package/dist/internal/revisionResolutionTracking.d.ts +0 -9
- package/dist/internal/revisionResolutionTracking.js +0 -124
- package/dist/internal/wholeStoryRevisionResolution.d.ts +0 -56
- package/dist/internal/wholeStoryRevisionResolution.js +0 -783
- package/dist/prosemirror/commands/resolveAllTableChanges.d.ts +0 -38
- package/dist/prosemirror/commands/resolveAllTableChanges.js +0 -642
- package/dist/prosemirror/commands/resolveNodePropertyChangeAttrs.d.ts +0 -13
- package/dist/prosemirror/commands/resolveNodePropertyChangeAttrs.js +0 -45
- package/dist/prosemirror/commands/tableCellMergeResolution.d.ts +0 -18
- package/dist/prosemirror/commands/tableCellMergeResolution.js +0 -207
- package/dist/prosemirror/commands/tableMergeFoldDecisions.d.ts +0 -60
- package/dist/prosemirror/commands/tableMergeFoldDecisions.js +0 -78
- package/dist/prosemirror/rejoinRunCarriers.d.ts +0 -42
- package/dist/prosemirror/rejoinRunCarriers.js +0 -65
- package/dist/prosemirror/runPropertyChangeResolution.d.ts +0 -15
- package/dist/prosemirror/runPropertyChangeResolution.js +0 -34
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { expectCommentMarkAttrs, expectParagraphAttrs, expectRunPropertyChangeMarkAttrs, expectTableAttrs, expectTableCellAttrs, expectTableRowAttrs, expectTrackedChangeMarkAttrs } from "./attrs/index.js";
|
|
2
|
+
import { isPPrMarkAttr, paragraphMarkWasAdded } from "./revisionCarriers.js";
|
|
3
|
+
// src/prosemirror/suggestionQueries.ts
|
|
4
|
+
const SUGGESTION_MARK_NAMES = /* @__PURE__ */ new Set([
|
|
5
|
+
"insertion",
|
|
6
|
+
"deletion",
|
|
7
|
+
"runPropertyChange"
|
|
8
|
+
]);
|
|
9
|
+
const isSuggestionMark = (mark) => mark.attrs["provenance"] === "suggested" && SUGGESTION_MARK_NAMES.has(mark.type.name);
|
|
10
|
+
/**
|
|
11
|
+
* The suggestion a comment mark belongs to: a comment a suggestion proposed
|
|
12
|
+
* is pending with it, never saved, accepted and rejected with it.
|
|
13
|
+
*/
|
|
14
|
+
const suggestedCommentOf = (mark) => {
|
|
15
|
+
if (mark.type.name !== "comment") return null;
|
|
16
|
+
const suggestionId = mark.attrs["suggestionId"];
|
|
17
|
+
return typeof suggestionId === "string" && suggestionId.length > 0 ? suggestionId : null;
|
|
18
|
+
};
|
|
19
|
+
/** The ids of the comments a pending suggestion proposes. */
|
|
20
|
+
function suggestionCommentIds(state, suggestionId) {
|
|
21
|
+
return [...collectSuggestions(state).get(suggestionId)?.commentIds ?? []];
|
|
22
|
+
}
|
|
23
|
+
const suggestionKindOf = (mark) => {
|
|
24
|
+
if (mark.type.name === "insertion") return "insertion";
|
|
25
|
+
if (mark.type.name === "deletion") return "deletion";
|
|
26
|
+
return "formatting";
|
|
27
|
+
};
|
|
28
|
+
const readSuggestedMarker = (marker) => {
|
|
29
|
+
if (typeof marker !== "object" || marker === null || marker.provenance !== "suggested") return null;
|
|
30
|
+
const suggestionId = marker.suggestionId;
|
|
31
|
+
const revisionId = marker.revisionId;
|
|
32
|
+
if (typeof suggestionId !== "string" || typeof revisionId !== "number") return null;
|
|
33
|
+
return {
|
|
34
|
+
suggestionId,
|
|
35
|
+
revisionId
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
const readSuggestedParagraphPropertyChange = (change) => {
|
|
39
|
+
if (change.info.provenance !== "suggested" || typeof change.info.suggestionId !== "string") return null;
|
|
40
|
+
return {
|
|
41
|
+
suggestionId: change.info.suggestionId,
|
|
42
|
+
revisionId: change.info.id
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The property changes a table, row or cell carries as the model holds them:
|
|
47
|
+
* a pending suggestion's names its suggestion in its info.
|
|
48
|
+
*/
|
|
49
|
+
const tablePropertyChangesOf = (node) => {
|
|
50
|
+
switch (node.type.name) {
|
|
51
|
+
case "table": return expectTableAttrs(node).tblPrChange ?? [];
|
|
52
|
+
case "tableRow": return expectTableRowAttrs(node).trPrChange ?? [];
|
|
53
|
+
case "tableCell":
|
|
54
|
+
case "tableHeader": return expectTableCellAttrs(node).tcPrChange ?? [];
|
|
55
|
+
default: return [];
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
/** The suggestion one paragraph-mark record belongs to, read off its info. */
|
|
59
|
+
const suggestionIdOfMarkRecord = (info) => "provenance" in info && info.provenance === "suggested" && "suggestionId" in info && typeof info.suggestionId === "string" ? info.suggestionId : null;
|
|
60
|
+
const suggestedRecordOf = (info, kind) => {
|
|
61
|
+
const suggestionId = suggestionIdOfMarkRecord(info);
|
|
62
|
+
return suggestionId === null ? null : {
|
|
63
|
+
suggestionId,
|
|
64
|
+
revisionId: info.id,
|
|
65
|
+
kind
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/** The suggestion the paragraph mark's own record, its break's, belongs to. */
|
|
69
|
+
const readSuggestedParagraphMark = (node) => {
|
|
70
|
+
if (node.type.name !== "paragraph") return null;
|
|
71
|
+
const mark = node.attrs["pPrMark"];
|
|
72
|
+
if (!isPPrMarkAttr(mark)) return null;
|
|
73
|
+
return suggestedRecordOf(mark.info, paragraphMarkWasAdded(mark.kind) ? "insertion" : "deletion");
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Every suggested record of a paragraph's mark: its own, and the later
|
|
77
|
+
* deletion an added mark holds beside its insertion.
|
|
78
|
+
*/
|
|
79
|
+
const readSuggestedParagraphMarkRecords = (node) => {
|
|
80
|
+
const own = readSuggestedParagraphMark(node);
|
|
81
|
+
const mark = node.attrs["pPrMark"];
|
|
82
|
+
return [own, node.type.name === "paragraph" && isPPrMarkAttr(mark) && mark.deletion !== void 0 ? suggestedRecordOf(mark.deletion.info, "deletion") : null].filter((record) => record !== null);
|
|
83
|
+
};
|
|
84
|
+
const readStructuralSuggestion = (node) => {
|
|
85
|
+
const attrs = node.attrs;
|
|
86
|
+
const name = node.type.name;
|
|
87
|
+
const insertMarker = attrs["_suggestedInsert"];
|
|
88
|
+
if ((name === "paragraph" || name === "table") && typeof insertMarker === "object" && insertMarker !== null) {
|
|
89
|
+
const suggestionId = insertMarker.suggestionId;
|
|
90
|
+
const revisionId = insertMarker.revisionId;
|
|
91
|
+
if (typeof suggestionId === "string" && typeof revisionId === "number") return {
|
|
92
|
+
suggestionId,
|
|
93
|
+
revisionId,
|
|
94
|
+
kind: name === "table" ? "insertTable" : "insertBlock",
|
|
95
|
+
isNodeInsert: true
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (node.type.name === "tableRow") {
|
|
99
|
+
const ins = readSuggestedMarker(attrs["trIns"]);
|
|
100
|
+
if (ins) return {
|
|
101
|
+
...ins,
|
|
102
|
+
kind: "insertRow",
|
|
103
|
+
isNodeInsert: false
|
|
104
|
+
};
|
|
105
|
+
const del = readSuggestedMarker(attrs["trDel"]);
|
|
106
|
+
if (del) return {
|
|
107
|
+
...del,
|
|
108
|
+
kind: "deleteRow",
|
|
109
|
+
isNodeInsert: false
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
if (node.type.name === "tableCell" || node.type.name === "tableHeader") {
|
|
113
|
+
const cellMarker = attrs["cellMarker"];
|
|
114
|
+
if (typeof cellMarker === "object" && cellMarker !== null) {
|
|
115
|
+
const markerKind = cellMarker.kind;
|
|
116
|
+
if (markerKind === "ins" || markerKind === "del") {
|
|
117
|
+
const marker = readSuggestedMarker(cellMarker.info);
|
|
118
|
+
if (marker) {
|
|
119
|
+
const kind = markerKind === "del" ? "deleteColumn" : "insertColumn";
|
|
120
|
+
return {
|
|
121
|
+
...marker,
|
|
122
|
+
kind,
|
|
123
|
+
isNodeInsert: false
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return null;
|
|
130
|
+
};
|
|
131
|
+
const collectSuggestions = (state) => {
|
|
132
|
+
const runPropertyChangeType = state.schema.marks["runPropertyChange"];
|
|
133
|
+
const bySuggestion = /* @__PURE__ */ new Map();
|
|
134
|
+
const entryFor = (suggestionId) => {
|
|
135
|
+
const existing = bySuggestion.get(suggestionId);
|
|
136
|
+
if (existing) return existing;
|
|
137
|
+
const created = {
|
|
138
|
+
segments: [],
|
|
139
|
+
kinds: /* @__PURE__ */ new Set(),
|
|
140
|
+
revisionIds: /* @__PURE__ */ new Set(),
|
|
141
|
+
commentIds: /* @__PURE__ */ new Set()
|
|
142
|
+
};
|
|
143
|
+
bySuggestion.set(suggestionId, created);
|
|
144
|
+
return created;
|
|
145
|
+
};
|
|
146
|
+
state.doc.descendants((node, pos) => {
|
|
147
|
+
const structural = readStructuralSuggestion(node);
|
|
148
|
+
if (structural) {
|
|
149
|
+
const entry = entryFor(structural.suggestionId);
|
|
150
|
+
entry.segments.push({
|
|
151
|
+
from: pos,
|
|
152
|
+
to: pos + node.nodeSize
|
|
153
|
+
});
|
|
154
|
+
entry.kinds.add(structural.kind);
|
|
155
|
+
entry.revisionIds.add(structural.revisionId);
|
|
156
|
+
}
|
|
157
|
+
for (const { info } of tablePropertyChangesOf(node)) {
|
|
158
|
+
if (info.suggestionId === void 0) continue;
|
|
159
|
+
const entry = entryFor(info.suggestionId);
|
|
160
|
+
entry.segments.push({
|
|
161
|
+
from: pos,
|
|
162
|
+
to: pos + node.nodeSize
|
|
163
|
+
});
|
|
164
|
+
entry.kinds.add("formatting");
|
|
165
|
+
entry.revisionIds.add(info.id);
|
|
166
|
+
}
|
|
167
|
+
if (node.type.name === "paragraph") {
|
|
168
|
+
for (const paragraphMark of readSuggestedParagraphMarkRecords(node)) {
|
|
169
|
+
const entry = entryFor(paragraphMark.suggestionId);
|
|
170
|
+
entry.segments.push({
|
|
171
|
+
from: pos,
|
|
172
|
+
to: pos + node.nodeSize
|
|
173
|
+
});
|
|
174
|
+
entry.kinds.add(paragraphMark.kind);
|
|
175
|
+
entry.revisionIds.add(paragraphMark.revisionId);
|
|
176
|
+
}
|
|
177
|
+
const propertyChanges = expectParagraphAttrs(node)._propertyChanges;
|
|
178
|
+
if (Array.isArray(propertyChanges)) for (const change of propertyChanges) {
|
|
179
|
+
const suggested = readSuggestedParagraphPropertyChange(change);
|
|
180
|
+
if (!suggested) continue;
|
|
181
|
+
const entry = entryFor(suggested.suggestionId);
|
|
182
|
+
entry.segments.push({
|
|
183
|
+
from: pos,
|
|
184
|
+
to: pos + node.nodeSize
|
|
185
|
+
});
|
|
186
|
+
entry.kinds.add("formatting");
|
|
187
|
+
entry.revisionIds.add(suggested.revisionId);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (!node.isInline) return;
|
|
191
|
+
for (const mark of node.marks) {
|
|
192
|
+
const commentSuggestion = suggestedCommentOf(mark);
|
|
193
|
+
if (commentSuggestion !== null) {
|
|
194
|
+
const entry = entryFor(commentSuggestion);
|
|
195
|
+
entry.segments.push({
|
|
196
|
+
from: pos,
|
|
197
|
+
to: pos + node.nodeSize
|
|
198
|
+
});
|
|
199
|
+
entry.kinds.add("comment");
|
|
200
|
+
entry.commentIds.add(expectCommentMarkAttrs(mark).commentId);
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
if (mark.type.name === "insertion" || mark.type.name === "deletion") for (const ancestor of expectTrackedChangeMarkAttrs(mark)._docxRevisionAncestors ?? []) {
|
|
204
|
+
if (ancestor.suggestionId === void 0) continue;
|
|
205
|
+
const entry = entryFor(ancestor.suggestionId);
|
|
206
|
+
entry.segments.push({
|
|
207
|
+
from: pos,
|
|
208
|
+
to: pos + node.nodeSize
|
|
209
|
+
});
|
|
210
|
+
entry.kinds.add(ancestor.type === "insertion" || ancestor.type === "moveTo" ? "insertion" : "deletion");
|
|
211
|
+
entry.revisionIds.add(ancestor.revisionId);
|
|
212
|
+
}
|
|
213
|
+
if (!isSuggestionMark(mark)) continue;
|
|
214
|
+
const suggestionId = mark.attrs["suggestionId"];
|
|
215
|
+
if (typeof suggestionId !== "string" || suggestionId.length === 0) continue;
|
|
216
|
+
const entry = entryFor(suggestionId);
|
|
217
|
+
entry.segments.push({
|
|
218
|
+
from: pos,
|
|
219
|
+
to: pos + node.nodeSize
|
|
220
|
+
});
|
|
221
|
+
entry.kinds.add(suggestionKindOf(mark));
|
|
222
|
+
if (mark.type === runPropertyChangeType) for (const change of expectRunPropertyChangeMarkAttrs(mark).changes) entry.revisionIds.add(change.info.id);
|
|
223
|
+
else if (typeof mark.attrs["revisionId"] === "number") entry.revisionIds.add(mark.attrs["revisionId"]);
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
return bySuggestion;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* A whole inserted table (`insertTable`) has no OOXML tracked representation and
|
|
230
|
+
* accepts directly; every other kind accepts as a tracked change. A group that
|
|
231
|
+
* mixes a table insert with any other kind (a caller stamping heterogeneous
|
|
232
|
+
* operations with one `suggestionId`) is `"mixed"`.
|
|
233
|
+
*/
|
|
234
|
+
const suggestionAppliedAs = (kinds) => {
|
|
235
|
+
const changes = [...kinds].filter((kind) => kind !== "comment");
|
|
236
|
+
if (changes.length === 0) return "direct";
|
|
237
|
+
if (!kinds.has("insertTable")) return "tracked";
|
|
238
|
+
return changes.some((kind) => kind !== "insertTable") ? "mixed" : "direct";
|
|
239
|
+
};
|
|
240
|
+
/** Merge sorted, possibly adjacent/overlapping segments into contiguous ranges. */
|
|
241
|
+
const mergeSegments = (segments) => {
|
|
242
|
+
const sorted = [...segments].toSorted((a, b) => a.from - b.from || a.to - b.to);
|
|
243
|
+
const merged = [];
|
|
244
|
+
for (const segment of sorted) {
|
|
245
|
+
const last = merged.at(-1);
|
|
246
|
+
if (last && segment.from <= last.to) {
|
|
247
|
+
last.to = Math.max(last.to, segment.to);
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
merged.push({ ...segment });
|
|
251
|
+
}
|
|
252
|
+
return merged;
|
|
253
|
+
};
|
|
254
|
+
const SUGGESTION_KIND_ORDER = [
|
|
255
|
+
"insertion",
|
|
256
|
+
"deletion",
|
|
257
|
+
"formatting",
|
|
258
|
+
"insertBlock",
|
|
259
|
+
"insertTable",
|
|
260
|
+
"insertRow",
|
|
261
|
+
"deleteRow",
|
|
262
|
+
"insertColumn",
|
|
263
|
+
"deleteColumn",
|
|
264
|
+
"comment"
|
|
265
|
+
];
|
|
266
|
+
/**
|
|
267
|
+
* List every suggestion in the document for host consumption: its id, the
|
|
268
|
+
* contiguous ranges it covers, which kinds of change it contains, and how
|
|
269
|
+
* accepting it applies (tracked vs direct).
|
|
270
|
+
*/
|
|
271
|
+
function getSuggestions(state) {
|
|
272
|
+
const bySuggestion = collectSuggestions(state);
|
|
273
|
+
const suggestions = [];
|
|
274
|
+
for (const [suggestionId, entry] of bySuggestion) suggestions.push({
|
|
275
|
+
suggestionId,
|
|
276
|
+
ranges: mergeSegments(entry.segments),
|
|
277
|
+
kinds: SUGGESTION_KIND_ORDER.filter((kind) => entry.kinds.has(kind)),
|
|
278
|
+
appliedAs: suggestionAppliedAs(entry.kinds)
|
|
279
|
+
});
|
|
280
|
+
return suggestions.toSorted((a, b) => (a.ranges[0]?.from ?? 0) - (b.ranges[0]?.from ?? 0));
|
|
281
|
+
}
|
|
282
|
+
/** The disjoint projected ranges a single pending suggestion covers. */
|
|
283
|
+
const getSuggestionRanges = (state, suggestionId) => {
|
|
284
|
+
const entry = collectSuggestions(state).get(suggestionId);
|
|
285
|
+
return entry === void 0 ? [] : mergeSegments(entry.segments);
|
|
286
|
+
};
|
|
287
|
+
/** Physical revision IDs of every pending suggestion, in one document walk. */
|
|
288
|
+
const pendingSuggestionRevisionIds = (state) => {
|
|
289
|
+
const ids = /* @__PURE__ */ new Set();
|
|
290
|
+
for (const { revisionIds } of collectSuggestions(state).values()) for (const id of revisionIds) ids.add(id);
|
|
291
|
+
return ids;
|
|
292
|
+
};
|
|
293
|
+
/** The first owning suggestion for each physical revision, in source order. */
|
|
294
|
+
const suggestionOwnersByRevision = (state) => {
|
|
295
|
+
const owners = /* @__PURE__ */ new Map();
|
|
296
|
+
for (const [suggestionId, entry] of collectSuggestions(state)) for (const id of entry.revisionIds) if (!owners.has(id)) owners.set(id, suggestionId);
|
|
297
|
+
return owners;
|
|
298
|
+
};
|
|
299
|
+
/** The suggestion a revision belongs to, or `null` for an ordinary tracked change. */
|
|
300
|
+
function suggestionIdOfRevision(state, revisionId) {
|
|
301
|
+
for (const [suggestionId, entry] of collectSuggestions(state)) if (entry.revisionIds.has(revisionId)) return suggestionId;
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* The document range covering every mark belonging to `suggestionId`, plus the
|
|
306
|
+
* revision ids those marks carry. Returns null when the suggestion is absent
|
|
307
|
+
* (already accepted/rejected, or never existed).
|
|
308
|
+
*/
|
|
309
|
+
function findSuggestionRange(state, suggestionId) {
|
|
310
|
+
const entry = collectSuggestions(state).get(suggestionId);
|
|
311
|
+
if (!entry || entry.segments.length === 0) return null;
|
|
312
|
+
const ranges = mergeSegments(entry.segments);
|
|
313
|
+
const from = ranges[0]?.from ?? 0;
|
|
314
|
+
return {
|
|
315
|
+
from,
|
|
316
|
+
to: ranges.at(-1)?.to ?? from,
|
|
317
|
+
revisionIds: [...entry.revisionIds]
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
export { collectSuggestions, findSuggestionRange, getSuggestionRanges, getSuggestions, isSuggestionMark, mergeSegments, pendingSuggestionRevisionIds, readStructuralSuggestion, readSuggestedMarker, readSuggestedParagraphMark, readSuggestedParagraphPropertyChange, suggestedCommentOf, suggestionCommentIds, suggestionIdOfMarkRecord, suggestionIdOfRevision, suggestionOwnersByRevision };
|
|
@@ -18,13 +18,6 @@ type RemoveTableRowOptions = {
|
|
|
18
18
|
* and the table is left one row shorter than that merge.
|
|
19
19
|
*/
|
|
20
20
|
export declare const removeTableRow: (tr: Transaction, { map, table, tableStart }: RemoveTableRowOptions, row: number) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Remove the row at `rowPos` as rejecting its insertion does: through
|
|
23
|
-
* `removeTableRow`, so the vertical merges crossing it stay whole, or, for a
|
|
24
|
-
* table's only row, the table with it, leaving an empty paragraph where its
|
|
25
|
-
* container must keep a block.
|
|
26
|
-
*/
|
|
27
|
-
export declare const deleteTableRowAt: (tr: Transaction, rowPos: number) => void;
|
|
28
21
|
/** A placeholder for an absent grid position is not a cell a row can keep. */
|
|
29
22
|
export declare const rowHoldsNoCells: (row: Node, besides?: Node) => boolean;
|
|
30
23
|
/**
|
|
@@ -43,6 +36,7 @@ export declare const reconcileOmittedGridSlots: (tr: Transaction, tablePosition:
|
|
|
43
36
|
export type RowsEmptiedInBatch = {
|
|
44
37
|
pending: boolean;
|
|
45
38
|
};
|
|
39
|
+
export declare const ROW_CLEANUP_PENDING = "pending";
|
|
46
40
|
type MarkRowEmptiedInBatchOptions = {
|
|
47
41
|
tr: Transaction;
|
|
48
42
|
rowPosition: number;
|
|
@@ -58,15 +52,6 @@ type MarkRowsEmptiedInBatchOptions = {
|
|
|
58
52
|
};
|
|
59
53
|
/** Column removal keeps row indices stable: mark only newly cell-less rows. */
|
|
60
54
|
export declare const markRowsEmptiedInBatch: ({ tr, tablePosition, previousTable, emptied }: MarkRowsEmptiedInBatchOptions) => void;
|
|
61
|
-
/** Sweep current tables in reverse so moves cannot invalidate cleanup targets. */
|
|
62
|
-
export declare const removeRowsWithoutCellsAfterBatch: (tr: Transaction, emptied: RowsEmptiedInBatch) => void;
|
|
63
|
-
type RemoveRowsWithoutCellsInRangeOptions = {
|
|
64
|
-
tr: Transaction;
|
|
65
|
-
from: number;
|
|
66
|
-
to: number;
|
|
67
|
-
};
|
|
68
|
-
/** Close marked rows before their owning cell is captured into a continuation payload. */
|
|
69
|
-
export declare const removeRowsWithoutCellsInRange: ({ tr, from, to }: RemoveRowsWithoutCellsInRangeOptions) => void;
|
|
70
55
|
/**
|
|
71
56
|
* Close the rows an immediate structural edit left without cells. A row written
|
|
72
57
|
* with none is no row this edit emptied, and it stays.
|
|
@@ -45,37 +45,6 @@ const removeTableRow = (tr, { map, table, tableStart }, row) => {
|
|
|
45
45
|
column += colspan;
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
/**
|
|
49
|
-
* Remove the row at `rowPos` as rejecting its insertion does: through
|
|
50
|
-
* `removeTableRow`, so the vertical merges crossing it stay whole, or, for a
|
|
51
|
-
* table's only row, the table with it, leaving an empty paragraph where its
|
|
52
|
-
* container must keep a block.
|
|
53
|
-
*/
|
|
54
|
-
const deleteTableRowAt = (tr, rowPos) => {
|
|
55
|
-
const resolved = tr.doc.resolve(rowPos);
|
|
56
|
-
const table = resolved.parent;
|
|
57
|
-
if (table.type.spec["tableRole"] !== "table") return;
|
|
58
|
-
const rowIndex = resolved.index();
|
|
59
|
-
if (table.childCount > 1) {
|
|
60
|
-
removeTableRow(tr, {
|
|
61
|
-
map: TableMap.get(table),
|
|
62
|
-
table,
|
|
63
|
-
tableStart: resolved.start()
|
|
64
|
-
}, rowIndex);
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
const tablePosition = resolved.start() - 1;
|
|
68
|
-
const tableEnd = tablePosition + table.nodeSize;
|
|
69
|
-
const outerResolved = tr.doc.resolve(tablePosition);
|
|
70
|
-
const parent = outerResolved.parent;
|
|
71
|
-
const tableIndex = outerResolved.index();
|
|
72
|
-
if (parent.canReplace(tableIndex, tableIndex + 1)) {
|
|
73
|
-
tr.delete(tablePosition, tableEnd);
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
const emptyParagraph = tr.doc.type.schema.nodes["paragraph"]?.createAndFill();
|
|
77
|
-
if (emptyParagraph && parent.canReplaceWith(tableIndex, tableIndex + 1, emptyParagraph.type, emptyParagraph.marks)) tr.replaceWith(tablePosition, tableEnd, emptyParagraph);
|
|
78
|
-
};
|
|
79
48
|
/** A placeholder for an absent grid position is not a cell a row can keep. */
|
|
80
49
|
const rowHoldsNoCells = (row, besides) => {
|
|
81
50
|
let holdsCell = false;
|
|
@@ -176,52 +145,6 @@ const markRowsEmptiedInBatch = ({ tr, tablePosition, previousTable, emptied }) =
|
|
|
176
145
|
});
|
|
177
146
|
});
|
|
178
147
|
};
|
|
179
|
-
const removeEmptyRows = ({ tr, tablePosition, shouldRemove }) => {
|
|
180
|
-
for (;;) {
|
|
181
|
-
const table = tr.doc.nodeAt(tablePosition);
|
|
182
|
-
if (!table || table.type.spec["tableRole"] !== "table" || table.childCount < 2) return;
|
|
183
|
-
let emptyRow = -1;
|
|
184
|
-
table.forEach((row, _offset, index) => {
|
|
185
|
-
if (emptyRow === -1 && rowHoldsNoCells(row) && shouldRemove(row)) emptyRow = index;
|
|
186
|
-
});
|
|
187
|
-
if (emptyRow === -1) return;
|
|
188
|
-
removeTableRow(tr, {
|
|
189
|
-
map: TableMap.get(table),
|
|
190
|
-
table,
|
|
191
|
-
tableStart: tablePosition + 1
|
|
192
|
-
}, emptyRow);
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
/** Remove only rows emptied by deletions in this transaction, then clear remaining markers. */
|
|
196
|
-
const removeBatchRows = (tr, tablePosition) => {
|
|
197
|
-
removeEmptyRows({
|
|
198
|
-
tr,
|
|
199
|
-
tablePosition,
|
|
200
|
-
shouldRemove: (row) => row.attrs["_batchRowCleanup"] === ROW_CLEANUP_PENDING
|
|
201
|
-
});
|
|
202
|
-
tr.doc.nodeAt(tablePosition)?.forEach((row, offset) => {
|
|
203
|
-
if (row.attrs["_batchRowCleanup"] === ROW_CLEANUP_PENDING) tr.setNodeAttribute(tablePosition + 1 + offset, "_batchRowCleanup", null);
|
|
204
|
-
});
|
|
205
|
-
};
|
|
206
|
-
/** Sweep current tables in reverse so moves cannot invalidate cleanup targets. */
|
|
207
|
-
const removeRowsWithoutCellsAfterBatch = (tr, emptied) => {
|
|
208
|
-
if (!emptied.pending) return;
|
|
209
|
-
const tables = [];
|
|
210
|
-
tr.doc.descendants((node, position) => {
|
|
211
|
-
if (node.type.spec["tableRole"] === "table") tables.push(position);
|
|
212
|
-
return !node.isTextblock;
|
|
213
|
-
});
|
|
214
|
-
for (const position of tables.toReversed()) removeBatchRows(tr, position);
|
|
215
|
-
};
|
|
216
|
-
/** Close marked rows before their owning cell is captured into a continuation payload. */
|
|
217
|
-
const removeRowsWithoutCellsInRange = ({ tr, from, to }) => {
|
|
218
|
-
const tables = [];
|
|
219
|
-
tr.doc.nodesBetween(from, to, (node, position) => {
|
|
220
|
-
if (position >= from && node.type.spec["tableRole"] === "table") tables.push(position);
|
|
221
|
-
return !node.isTextblock;
|
|
222
|
-
});
|
|
223
|
-
for (const position of tables.toReversed()) removeBatchRows(tr, position);
|
|
224
|
-
};
|
|
225
148
|
/**
|
|
226
149
|
* Close the rows an immediate structural edit left without cells. A row written
|
|
227
150
|
* with none is no row this edit emptied, and it stays.
|
|
@@ -414,4 +337,4 @@ const removeTableColumns = (tr, tablePosition, left, right) => {
|
|
|
414
337
|
}
|
|
415
338
|
removeRowsWithoutCells(tr, tablePosition, previousTable);
|
|
416
339
|
};
|
|
417
|
-
export {
|
|
340
|
+
export { ROW_CLEANUP_PENDING, insertTableColumn, insertedColumnWidth, markRowEmptiedInBatch, markRowsEmptiedInBatch, omittedSlotTakingColumn, reconcileOmittedGridSlots, reconcileTableGridAfterColumnInsertion, reconcileTableGridAfterColumnRemoval, removeRowsWithoutCells, removeTableColumns, removeTableRow, rowHoldsNoCells };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type TableRowRevisionCompanionOptions = {
|
|
2
|
+
row: {
|
|
3
|
+
id: number;
|
|
4
|
+
author?: string | undefined;
|
|
5
|
+
date?: string | null | undefined;
|
|
6
|
+
};
|
|
7
|
+
candidate: {
|
|
8
|
+
id: unknown;
|
|
9
|
+
author: unknown;
|
|
10
|
+
date: unknown;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A row's structural and inline marks can share a revision id. Word can also
|
|
15
|
+
* mint separate ids for them, so a matching author and known date count too.
|
|
16
|
+
*/
|
|
17
|
+
export declare const isTableRowRevisionCompanion: ({ row, candidate }: TableRowRevisionCompanionOptions) => boolean;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// src/prosemirror/tableRowRevisionOwnership.ts
|
|
2
|
+
/**
|
|
3
|
+
* A row's structural and inline marks can share a revision id. Word can also
|
|
4
|
+
* mint separate ids for them, so a matching author and known date count too.
|
|
5
|
+
*/
|
|
6
|
+
const isTableRowRevisionCompanion = ({ row, candidate }) => candidate.id === row.id || row.author !== void 0 && candidate.author === row.author && typeof row.date === "string" && row.date.length > 0 && candidate.date === row.date;
|
|
7
|
+
export { isTableRowRevisionCompanion };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { expectRunPropertyChangeMarkAttrs, expectTrackedChangeMarkAttrs } from "../attrs/index.js";
|
|
2
2
|
import { nodePropertyRevisionSites, propertyRevisionMetadata, propertyRevisionRecords } from "../revisionCarriers.js";
|
|
3
3
|
import { getTableCellMergeChange } from "../tableCellMergeRevision.js";
|
|
4
|
+
import { isTableRowRevisionCompanion } from "../tableRowRevisionOwnership.js";
|
|
4
5
|
// src/prosemirror/utils/extractTrackedChanges.ts
|
|
5
6
|
const EMPTY_RESULT = {
|
|
6
7
|
entries: [],
|
|
@@ -8,14 +9,23 @@ const EMPTY_RESULT = {
|
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
10
11
|
* Fold a run's revision mark into the enclosing row's card when both halves
|
|
11
|
-
* are the same change.
|
|
12
|
-
* fresh `w:id` per element, so an author + timestamp match counts too. Returns
|
|
13
|
-
* false for a third party's edit inside the row, which keeps its own card.
|
|
12
|
+
* are the same change. An independent edit inside the row keeps its own card.
|
|
14
13
|
*/
|
|
15
14
|
const foldIntoRowRevision = (scope, mark) => {
|
|
16
15
|
if (!scope || mark.type !== scope.markType) return false;
|
|
17
16
|
const revisionId = mark.attrs["revisionId"];
|
|
18
|
-
if (!(
|
|
17
|
+
if (!isTableRowRevisionCompanion({
|
|
18
|
+
row: {
|
|
19
|
+
id: scope.entry.revisionId,
|
|
20
|
+
author: scope.entry.author,
|
|
21
|
+
date: scope.entry.date
|
|
22
|
+
},
|
|
23
|
+
candidate: {
|
|
24
|
+
id: revisionId,
|
|
25
|
+
author: mark.attrs["author"],
|
|
26
|
+
date: mark.attrs["date"]
|
|
27
|
+
}
|
|
28
|
+
})) return false;
|
|
19
29
|
if (revisionId !== scope.entry.revisionId) {
|
|
20
30
|
const ids = new Set(scope.entry.coalescedRevisionIds ?? []);
|
|
21
31
|
ids.add(revisionId);
|
package/dist/server.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ import { FOLIO_DOCX_PACKAGE_INSPECTION_DEFAULTS, FOLIO_DOCX_PACKAGE_INSPECTION_E
|
|
|
36
36
|
import { applyTemplatePlan } from "./docx/server/templatePlan/apply.js";
|
|
37
37
|
import { analyzeDocxBlocks } from "./docx/server/templatePlan/blocks.js";
|
|
38
38
|
import { inspectDocxTemplate } from "./docx/server/templatePlan/inspect.js";
|
|
39
|
-
import { ApplyTemplatePlanArgs, ApplyTemplatePlanOptions, ApplyTemplatePlanResult, DocxBlock, DocxBlockManifest, DocxBlockNumbering, DocxCompat, DocxNote, DocxSection, DocxTableCell, DocxTemplateBookmark, DocxTemplateField, DocxTemplateInspection, DocxTemplateNumbering, DocxTemplateNumberingLevel, DocxTemplateSection, DocxTemplateStyle, TEMPLATE_PLAN_ERROR_CODES, TemplatePlan, TemplatePlanBlockResult, TemplatePlanError, TemplatePlanErrorCode, TemplatePlanFieldLeftover, TemplatePlanHighlight, TemplatePlanIssue, TemplatePlanItem, TemplatePlanMerge, TemplatePlanNestedParagraph, TemplatePlanNoteCounts, TemplatePlanNumbering, TemplatePlanNumberingPatch, TemplatePlanOmitReason, TemplatePlanReference, TemplatePlanReferenceResult, TemplatePlanReport, TemplatePlanSection, TemplatePlanSectionPage, TemplatePlanSourceItem, TemplatePlanSpanCounts, VerifyTemplatePlanOutputArgs } from "./docx/server/templatePlan/types.js";
|
|
39
|
+
import { ApplyTemplatePlanArgs, ApplyTemplatePlanOptions, ApplyTemplatePlanResult, DocxBlock, DocxBlockManifest, DocxBlockNumbering, DocxBlockRevision, DocxCompat, DocxNote, DocxSection, DocxTableCell, DocxTemplateBookmark, DocxTemplateField, DocxTemplateInspection, DocxTemplateInvisibleEffect, DocxTemplateNumbering, DocxTemplateNumberingLevel, DocxTemplateSection, DocxTemplateStyle, DocxTextEffect, DocxTextEffectOwner, DocxTrackedChanges, TEMPLATE_PLAN_ERROR_CODES, TemplatePlan, TemplatePlanAlignment, TemplatePlanBlockResult, TemplatePlanEffectCount, TemplatePlanError, TemplatePlanErrorCode, TemplatePlanFieldLeftover, TemplatePlanHighlight, TemplatePlanIndent, TemplatePlanIssue, TemplatePlanItem, TemplatePlanMerge, TemplatePlanNestedParagraph, TemplatePlanNoteCounts, TemplatePlanNumbering, TemplatePlanNumberingPatch, TemplatePlanOmitReason, TemplatePlanReference, TemplatePlanReferenceResult, TemplatePlanReport, TemplatePlanSection, TemplatePlanSectionPage, TemplatePlanSourceItem, TemplatePlanSpacing, TemplatePlanSpanCounts, TemplatePlanTrackedChanges, TemplatePlanTrackedView, VerifyTemplatePlanOutputArgs } from "./docx/server/templatePlan/types.js";
|
|
40
40
|
import { verifyTemplatePlanOutput } from "./docx/server/templatePlan/verify.js";
|
|
41
41
|
import { FOLIO_DOCX_CONFORMANCE_CHECKS, FOLIO_DOCX_CONFORMANCE_ISSUE_CODES, FOLIO_DOCX_CONFORMANCE_PROFILE, FOLIO_DOCX_CONFORMANCE_REPORT_VERSION, FolioDocxConformanceCheck, FolioDocxConformanceCheckId, FolioDocxConformanceCheckStatus, FolioDocxConformanceIssue, FolioDocxConformanceIssueCode, FolioDocxConformanceReport, FolioDocxConformanceStatus, ValidateDocxConformanceOptions, validateDocxConformance } from "./docx/server/validateDocxConformance.js";
|
|
42
42
|
import { GenerateRedlineDocxOptions, GenerateRedlineDocxResourceImportError, GenerateRedlineDocxResult, GenerateRedlineReferenceWarning, GenerateRedlineUnprocessedStory, InvalidGenerateRedlineDocxOptionsError, generateRedlineDocx } from "./redline.js";
|
|
@@ -46,4 +46,4 @@ import { DOCUMENT_PRESET_VERSION, DOCUMENT_STYLE_SET_VERSION, DocumentPreset, Do
|
|
|
46
46
|
import { DeriveBlockIdInput, FolioBlockId, deriveBlockId, getFolioParaIdFromBlockId, isFolioBlockId, isSequentialFolioBlockId } from "./types/block-id.js";
|
|
47
47
|
import { CreateEmptyDocumentOptions, createEmptyDocument } from "./utils/createDocument.js";
|
|
48
48
|
import { FOLIO_VERSION_COMPARISON_PRIVACY_TRANSFORMS, FOLIO_VERSION_COMPARISON_SCOPES, FolioBlockDiff, FolioBlockProperty, FolioCompareDocxVersionsOptions, FolioDocumentMetadataValue, FolioFormatProperty, FolioMetadataDiff, FolioStoryDiff, FolioVersionBlockHandle, FolioVersionChangeProperty, FolioVersionComparisonPrivacyTransform, FolioVersionComparisonScope, FolioVersionDiff, FolioVersionDiffPrivacyOptions, FolioVersionDiffPrivacyReport, FolioVersionDiffSegment, FolioVersionDiffSummaryCounts, InvalidFolioVersionComparisonOptionsError, applyFolioVersionDiffPrivacy, compareDocxVersions, isFolioVersionComparisonPrivacyTransform, isFolioVersionComparisonScope } from "./version-comparison.js";
|
|
49
|
-
export { type ApplyDocxXmlPatchProposalArgs, type ApplyFolioAIEditsToBufferOptions, type ApplyFolioAIEditsToBufferResult, type ApplyTemplatePlanArgs, type ApplyTemplatePlanOptions, type ApplyTemplatePlanResult, BILINGUAL_TABLE_LAYOUTS, type BilingualBorders, type BilingualParagraphRef, type BilingualRow, type BilingualRowKind, type BilingualTableLayout, type BilingualTableParagraphRef, type ChangeListFormatOptions, type CreateBilingualDocumentOptions, type CreateBilingualDocumentResult, type CreateBilingualDocxOptions, type CreateBilingualDocxResult, type CreateCommentReplyInput, type CreateEmptyDocumentOptions, DOCUMENT_PRESET_VERSION, DOCUMENT_STYLE_SET_VERSION, type DeriveBlockIdInput, type DocumentPreset, type DocumentPropertiesOptions, type DocumentStyleCatalog, type DocumentStyleCatalogEntry, type DocumentStyleSet, DocxArchiveError, type DocxArchiveOptions, type DocxBlock, type DocxBlockManifest, type DocxBlockNumbering, type DocxCompat, type DocxNote, type DocxParagraphSource, type DocxSection, type DocxTableCell, type DocxTableRowKind, type DocxTableRowPosition, type DocxTemplateBookmark, type DocxTemplateField, type DocxTemplateInspection, type DocxTemplateNumbering, type DocxTemplateNumberingLevel, type DocxTemplateSection, type DocxTemplateStyle, EnsureParaIdsError, type EnsureParaIdsOptions, type EnsureParaIdsResult, type EvaluateDocxXmlPatchProposalArgs, type ExtractDocumentStyleSetOptions, type ExtractDocxTextOptions, type ExtractedDocxParagraph, type ExtractedDocxTableCell, type ExtractedDocxTableCellParagraph, type ExtractedDocxText, FOLIO_DOCUMENT_METADATA_PROPERTIES, FOLIO_DOCUMENT_OPERATION_BATCH_MODES, FOLIO_DOCUMENT_OPERATION_BATCH_PRECONDITIONS, FOLIO_DOCUMENT_OPERATION_CONTRACT_VERSION, FOLIO_DOCUMENT_OPERATION_KEYS_BY_TYPE, FOLIO_DOCUMENT_OPERATION_MODES, FOLIO_DOCUMENT_OPERATION_MODES_BY_TYPE, FOLIO_DOCUMENT_OPERATION_PRECONDITIONS, FOLIO_DOCUMENT_OPERATION_STORIES, FOLIO_DOCUMENT_OPERATION_TYPES, FOLIO_DOCUMENT_PRIVACY_TRANSFORMS, FOLIO_DOCX_CONFORMANCE_CHECKS, FOLIO_DOCX_CONFORMANCE_ISSUE_CODES, FOLIO_DOCX_CONFORMANCE_PROFILE, FOLIO_DOCX_CONFORMANCE_REPORT_VERSION, FOLIO_DOCX_PACKAGE_INSPECTION_DEFAULTS, FOLIO_DOCX_PACKAGE_INSPECTION_ERROR_CODES, FOLIO_DOCX_PACKAGE_INSPECTION_VERSION, FOLIO_DOCX_XML_PATCH_APPLICATION_PROFILE, FOLIO_DOCX_XML_PATCH_APPLICATION_VERSION, FOLIO_DOCX_XML_PATCH_PROPOSAL_DEFAULTS, FOLIO_DOCX_XML_PATCH_PROPOSAL_ISSUE_CODES, FOLIO_DOCX_XML_PATCH_PROPOSAL_PROFILE, FOLIO_DOCX_XML_PATCH_PROPOSAL_VERSION, FOLIO_EXISTING_REVISION_POLICIES, FOLIO_HIGHLIGHT_COLOR_VALUES, FOLIO_LINE_SPACING_RULE_VALUES, FOLIO_LIST_NUMBER_FORMAT_VALUES, FOLIO_PAGE_BREAK_CLEAR_VALUES, FOLIO_PARAGRAPH_ALIGNMENT_VALUES, FOLIO_RESOLVED_REVIEWED_VIEWS, FOLIO_REVIEWED_VIEWS, FOLIO_VERSION_COMPARISON_PRIVACY_TRANSFORMS, FOLIO_VERSION_COMPARISON_SCOPES, type FolioAIBlock, type FolioAIBlockAnchor, type FolioAIBlockKind, type FolioAIBlockPreviewRun, type FolioAIBlockStructuralBoundary, type FolioAIComment, type FolioAIDiagnosticBlock, type FolioAIEditApplyMode, type FolioAIEditApplyResult, type FolioAIEditNormalization, type FolioAIEditNormalizationCode, type FolioAIEditOperation, type FolioAIEditPrecondition, type FolioAIEditSnapshot, type FolioAIInlineBooleanProperty, type FolioAIInlineFormatting, type FolioAIInlineFormattingPatch, type FolioAIParagraphBlock, type FolioAIParagraphSpacing, type FolioAITextRangeHandle, type FolioAbsorbedBlock, type FolioApplyDocumentOperationsOptions, type FolioApplyDocumentOperationsToStoryOptions, type FolioApplyOperationsOptions, type FolioBlockDiff, type FolioBlockId, type FolioBlockProperty, type FolioCompareDocxVersionsOptions, type FolioContentParagraphKind, type FolioDocumentMetadataProperty, type FolioDocumentMetadataValue, type FolioDocumentNavigationTarget, type FolioDocumentOperation, type FolioDocumentOperationAffectedTarget, type FolioDocumentOperationBatch, type FolioDocumentOperationBatchInput, type FolioDocumentOperationBatchPrecondition, type FolioDocumentOperationCapabilities, type FolioDocumentOperationIssue, type FolioDocumentOperationMode, type FolioDocumentOperationPrecondition, type FolioDocumentOperationQueuedOperation, type FolioDocumentOperationReceipt, type FolioDocumentOperationRecovery, type FolioDocumentOperationResult, type FolioDocumentOperationResultBase, type FolioDocumentOperationStatus, type FolioDocumentOperationStory, type FolioDocumentOperationType, type FolioDocumentOperationUndoFailureReason, type FolioDocumentOperationUndoHandle, type FolioDocumentOperationUndoResult, type FolioDocumentOutline, type FolioDocumentOutlineEntry, FolioDocumentPrivacyArchiveError, type FolioDocumentPrivacyOptions, type FolioDocumentPrivacyReport, type FolioDocumentPrivacyTransform, type FolioDocumentSection, type FolioDocumentSectionHandle, type FolioDocumentSectionReadResult, type FolioDocumentStory, type FolioDocumentStoryHandle, FolioDocumentStoryNotFoundError, type FolioDocxConformanceCheck, type FolioDocxConformanceCheckId, type FolioDocxConformanceCheckStatus, type FolioDocxConformanceIssue, type FolioDocxConformanceIssueCode, type FolioDocxConformanceReport, type FolioDocxConformanceStatus, type FolioDocxInspectedXmlPart, type FolioDocxPackageInspection, FolioDocxPackageInspectionError, type FolioDocxPackageInspectionErrorCode, type FolioDocxPackageInspectionLimits, type FolioDocxPackagePart, type FolioDocxPackagePartKind, type FolioDocxPreparedXmlReplacement, FolioDocxReviewer, type FolioDocxReviewerOptions, type FolioDocxXmlPatchApplication, FolioDocxXmlPatchApplicationError, type FolioDocxXmlPatchApplicationReceipt, type FolioDocxXmlPatchProposal, type FolioDocxXmlPatchProposalEvaluation, type FolioDocxXmlPatchProposalIssue, type FolioDocxXmlPatchProposalIssueCode, type FolioDocxXmlPatchProposalLimits, type FolioDocxXmlReplacement, type FolioEditableDocumentStoryHandle, type FolioFormatProperty, type FolioMetadataDiff, type FolioReadReviewedStoryOptions, type FolioResolveReviewedStoryOptions, type FolioResolvedReviewedView, type FolioReviewChange, type FolioReviewChangeFilter, type FolioReviewChangeKind, type FolioReviewComment, type FolioReviewCommentFilter, type FolioReviewCommentReply, type FolioReviewReplyInput, type FolioReviewResolution, type FolioReviewResolutionSkip, type FolioReviewedStory, type FolioReviewedView, type FolioReviewerRepackReason, type FolioReviewerSaveOptions, type FolioReviewerSaveResult, type FolioRevisionStamp, FolioRoomJournalError, type FolioStoryDiff, type FolioVersionBlockHandle, type FolioVersionChangeProperty, type FolioVersionComparisonPrivacyTransform, type FolioVersionComparisonScope, type FolioVersionDiff, type FolioVersionDiffPrivacyOptions, type FolioVersionDiffPrivacyReport, type FolioVersionDiffSegment, type FolioVersionDiffSummaryCounts, type GenerateRedlineDocxOptions, GenerateRedlineDocxResourceImportError, type GenerateRedlineDocxResult, type GenerateRedlineReferenceWarning, type GenerateRedlineUnprocessedStory, HEADING_LEVELS, type HeadingLevel, type InspectDocxPackageOptions, InvalidBilingualDocumentOptionsError, InvalidFolioDocumentOperationBatchError, InvalidFolioDocumentPrivacyOptionsError, InvalidFolioDocxXmlPatchProposalError, InvalidFolioDocxXmlPatchProposalOptionsError, InvalidFolioReportBuilderOptionsError, InvalidFolioVersionComparisonOptionsError, InvalidGenerateRedlineDocxOptionsError, type ParseOptions, type RewriteDocxMetadataPrivacyResult, STELLA_STYLE_SET_NAME, TEMPLATE_PLAN_ERROR_CODES, type TableCellSpec, type TemplatePlan, type TemplatePlanBlockResult, TemplatePlanError, type TemplatePlanErrorCode, type TemplatePlanFieldLeftover, type TemplatePlanHighlight, type TemplatePlanIssue, type TemplatePlanItem, type TemplatePlanMerge, type TemplatePlanNestedParagraph, type TemplatePlanNoteCounts, type TemplatePlanNumbering, type TemplatePlanNumberingPatch, type TemplatePlanOmitReason, type TemplatePlanReference, type TemplatePlanReferenceResult, type TemplatePlanReport, type TemplatePlanSection, type TemplatePlanSectionPage, type TemplatePlanSourceItem, type TemplatePlanSpanCounts, UnsupportedFolioDocumentOperationVersionError, UnsupportedFolioDocxXmlPatchApplicationProfileError, UnsupportedFolioReviewedViewError, type ValidateDocxConformanceOptions, type VerifyTemplatePlanOutputArgs, analyzeDocxBlocks, applyDocxXmlPatchProposal, applyFolioAIEditsToBuffer, applyFolioVersionDiffPrivacy, applyTemplatePlan, assertSupportedFolioDocumentOperationVersion, bookmark, changeListFormat, compareDocxVersions, createBilingualDocument, createBilingualDocx, createDocx, createEmptyDocument, createFolioAITextRangeHandle, createStellaStyleDocumentPreset, createStellaStyleSet, createTableOfContentsField, deriveBlockId, docxToMarkdown, endnote, ensureParaIds, evaluateDocxXmlPatchProposal, extractDocumentStyleSet, extractDocumentStyleSetFromDocx, extractDocxText, generateRedlineDocx, getFolioDocumentOperationCapabilities, getFolioDocumentOperationIssues, getFolioDocumentOperationReceipts, getFolioDocumentOperationRemovedBlockIds, getFolioDocumentOutline, getFolioParaIdFromBlockId, getTrackedFolioDocumentOperationRemovedBlockIds, hashFolioAIBlockText, heading, hyperlink, inspectDocumentStyles, inspectDocumentStylesFromDocx, inspectDocxPackage, inspectDocxTemplate, isFolioAIContentBlock, isFolioBlockId, isFolioDocumentOperationModeSupported, isFolioDocumentPrivacyTransform, isFolioResolvedReviewedView, isFolioReviewedView, isFolioVersionComparisonPrivacyTransform, isFolioVersionComparisonScope, isSequentialFolioBlockId, isSupportedFolioDocumentOperationVersion, normalizeFolioAIBlockText, pageBreak, paragraph, parseDocx, parseFolioDocumentOperationBatch, parseFolioDocxXmlPatchProposal, readBilingualDocument, readBilingualDocx, readFolioDocumentSection, replyToComment, rewriteDocxMetadataPrivacy, run, table, validateDocxConformance, verifyTemplatePlanOutput };
|
|
49
|
+
export { type ApplyDocxXmlPatchProposalArgs, type ApplyFolioAIEditsToBufferOptions, type ApplyFolioAIEditsToBufferResult, type ApplyTemplatePlanArgs, type ApplyTemplatePlanOptions, type ApplyTemplatePlanResult, BILINGUAL_TABLE_LAYOUTS, type BilingualBorders, type BilingualParagraphRef, type BilingualRow, type BilingualRowKind, type BilingualTableLayout, type BilingualTableParagraphRef, type ChangeListFormatOptions, type CreateBilingualDocumentOptions, type CreateBilingualDocumentResult, type CreateBilingualDocxOptions, type CreateBilingualDocxResult, type CreateCommentReplyInput, type CreateEmptyDocumentOptions, DOCUMENT_PRESET_VERSION, DOCUMENT_STYLE_SET_VERSION, type DeriveBlockIdInput, type DocumentPreset, type DocumentPropertiesOptions, type DocumentStyleCatalog, type DocumentStyleCatalogEntry, type DocumentStyleSet, DocxArchiveError, type DocxArchiveOptions, type DocxBlock, type DocxBlockManifest, type DocxBlockNumbering, type DocxBlockRevision, type DocxCompat, type DocxNote, type DocxParagraphSource, type DocxSection, type DocxTableCell, type DocxTableRowKind, type DocxTableRowPosition, type DocxTemplateBookmark, type DocxTemplateField, type DocxTemplateInspection, type DocxTemplateInvisibleEffect, type DocxTemplateNumbering, type DocxTemplateNumberingLevel, type DocxTemplateSection, type DocxTemplateStyle, type DocxTextEffect, type DocxTextEffectOwner, type DocxTrackedChanges, EnsureParaIdsError, type EnsureParaIdsOptions, type EnsureParaIdsResult, type EvaluateDocxXmlPatchProposalArgs, type ExtractDocumentStyleSetOptions, type ExtractDocxTextOptions, type ExtractedDocxParagraph, type ExtractedDocxTableCell, type ExtractedDocxTableCellParagraph, type ExtractedDocxText, FOLIO_DOCUMENT_METADATA_PROPERTIES, FOLIO_DOCUMENT_OPERATION_BATCH_MODES, FOLIO_DOCUMENT_OPERATION_BATCH_PRECONDITIONS, FOLIO_DOCUMENT_OPERATION_CONTRACT_VERSION, FOLIO_DOCUMENT_OPERATION_KEYS_BY_TYPE, FOLIO_DOCUMENT_OPERATION_MODES, FOLIO_DOCUMENT_OPERATION_MODES_BY_TYPE, FOLIO_DOCUMENT_OPERATION_PRECONDITIONS, FOLIO_DOCUMENT_OPERATION_STORIES, FOLIO_DOCUMENT_OPERATION_TYPES, FOLIO_DOCUMENT_PRIVACY_TRANSFORMS, FOLIO_DOCX_CONFORMANCE_CHECKS, FOLIO_DOCX_CONFORMANCE_ISSUE_CODES, FOLIO_DOCX_CONFORMANCE_PROFILE, FOLIO_DOCX_CONFORMANCE_REPORT_VERSION, FOLIO_DOCX_PACKAGE_INSPECTION_DEFAULTS, FOLIO_DOCX_PACKAGE_INSPECTION_ERROR_CODES, FOLIO_DOCX_PACKAGE_INSPECTION_VERSION, FOLIO_DOCX_XML_PATCH_APPLICATION_PROFILE, FOLIO_DOCX_XML_PATCH_APPLICATION_VERSION, FOLIO_DOCX_XML_PATCH_PROPOSAL_DEFAULTS, FOLIO_DOCX_XML_PATCH_PROPOSAL_ISSUE_CODES, FOLIO_DOCX_XML_PATCH_PROPOSAL_PROFILE, FOLIO_DOCX_XML_PATCH_PROPOSAL_VERSION, FOLIO_EXISTING_REVISION_POLICIES, FOLIO_HIGHLIGHT_COLOR_VALUES, FOLIO_LINE_SPACING_RULE_VALUES, FOLIO_LIST_NUMBER_FORMAT_VALUES, FOLIO_PAGE_BREAK_CLEAR_VALUES, FOLIO_PARAGRAPH_ALIGNMENT_VALUES, FOLIO_RESOLVED_REVIEWED_VIEWS, FOLIO_REVIEWED_VIEWS, FOLIO_VERSION_COMPARISON_PRIVACY_TRANSFORMS, FOLIO_VERSION_COMPARISON_SCOPES, type FolioAIBlock, type FolioAIBlockAnchor, type FolioAIBlockKind, type FolioAIBlockPreviewRun, type FolioAIBlockStructuralBoundary, type FolioAIComment, type FolioAIDiagnosticBlock, type FolioAIEditApplyMode, type FolioAIEditApplyResult, type FolioAIEditNormalization, type FolioAIEditNormalizationCode, type FolioAIEditOperation, type FolioAIEditPrecondition, type FolioAIEditSnapshot, type FolioAIInlineBooleanProperty, type FolioAIInlineFormatting, type FolioAIInlineFormattingPatch, type FolioAIParagraphBlock, type FolioAIParagraphSpacing, type FolioAITextRangeHandle, type FolioAbsorbedBlock, type FolioApplyDocumentOperationsOptions, type FolioApplyDocumentOperationsToStoryOptions, type FolioApplyOperationsOptions, type FolioBlockDiff, type FolioBlockId, type FolioBlockProperty, type FolioCompareDocxVersionsOptions, type FolioContentParagraphKind, type FolioDocumentMetadataProperty, type FolioDocumentMetadataValue, type FolioDocumentNavigationTarget, type FolioDocumentOperation, type FolioDocumentOperationAffectedTarget, type FolioDocumentOperationBatch, type FolioDocumentOperationBatchInput, type FolioDocumentOperationBatchPrecondition, type FolioDocumentOperationCapabilities, type FolioDocumentOperationIssue, type FolioDocumentOperationMode, type FolioDocumentOperationPrecondition, type FolioDocumentOperationQueuedOperation, type FolioDocumentOperationReceipt, type FolioDocumentOperationRecovery, type FolioDocumentOperationResult, type FolioDocumentOperationResultBase, type FolioDocumentOperationStatus, type FolioDocumentOperationStory, type FolioDocumentOperationType, type FolioDocumentOperationUndoFailureReason, type FolioDocumentOperationUndoHandle, type FolioDocumentOperationUndoResult, type FolioDocumentOutline, type FolioDocumentOutlineEntry, FolioDocumentPrivacyArchiveError, type FolioDocumentPrivacyOptions, type FolioDocumentPrivacyReport, type FolioDocumentPrivacyTransform, type FolioDocumentSection, type FolioDocumentSectionHandle, type FolioDocumentSectionReadResult, type FolioDocumentStory, type FolioDocumentStoryHandle, FolioDocumentStoryNotFoundError, type FolioDocxConformanceCheck, type FolioDocxConformanceCheckId, type FolioDocxConformanceCheckStatus, type FolioDocxConformanceIssue, type FolioDocxConformanceIssueCode, type FolioDocxConformanceReport, type FolioDocxConformanceStatus, type FolioDocxInspectedXmlPart, type FolioDocxPackageInspection, FolioDocxPackageInspectionError, type FolioDocxPackageInspectionErrorCode, type FolioDocxPackageInspectionLimits, type FolioDocxPackagePart, type FolioDocxPackagePartKind, type FolioDocxPreparedXmlReplacement, FolioDocxReviewer, type FolioDocxReviewerOptions, type FolioDocxXmlPatchApplication, FolioDocxXmlPatchApplicationError, type FolioDocxXmlPatchApplicationReceipt, type FolioDocxXmlPatchProposal, type FolioDocxXmlPatchProposalEvaluation, type FolioDocxXmlPatchProposalIssue, type FolioDocxXmlPatchProposalIssueCode, type FolioDocxXmlPatchProposalLimits, type FolioDocxXmlReplacement, type FolioEditableDocumentStoryHandle, type FolioFormatProperty, type FolioMetadataDiff, type FolioReadReviewedStoryOptions, type FolioResolveReviewedStoryOptions, type FolioResolvedReviewedView, type FolioReviewChange, type FolioReviewChangeFilter, type FolioReviewChangeKind, type FolioReviewComment, type FolioReviewCommentFilter, type FolioReviewCommentReply, type FolioReviewReplyInput, type FolioReviewResolution, type FolioReviewResolutionSkip, type FolioReviewedStory, type FolioReviewedView, type FolioReviewerRepackReason, type FolioReviewerSaveOptions, type FolioReviewerSaveResult, type FolioRevisionStamp, FolioRoomJournalError, type FolioStoryDiff, type FolioVersionBlockHandle, type FolioVersionChangeProperty, type FolioVersionComparisonPrivacyTransform, type FolioVersionComparisonScope, type FolioVersionDiff, type FolioVersionDiffPrivacyOptions, type FolioVersionDiffPrivacyReport, type FolioVersionDiffSegment, type FolioVersionDiffSummaryCounts, type GenerateRedlineDocxOptions, GenerateRedlineDocxResourceImportError, type GenerateRedlineDocxResult, type GenerateRedlineReferenceWarning, type GenerateRedlineUnprocessedStory, HEADING_LEVELS, type HeadingLevel, type InspectDocxPackageOptions, InvalidBilingualDocumentOptionsError, InvalidFolioDocumentOperationBatchError, InvalidFolioDocumentPrivacyOptionsError, InvalidFolioDocxXmlPatchProposalError, InvalidFolioDocxXmlPatchProposalOptionsError, InvalidFolioReportBuilderOptionsError, InvalidFolioVersionComparisonOptionsError, InvalidGenerateRedlineDocxOptionsError, type ParseOptions, type RewriteDocxMetadataPrivacyResult, STELLA_STYLE_SET_NAME, TEMPLATE_PLAN_ERROR_CODES, type TableCellSpec, type TemplatePlan, type TemplatePlanAlignment, type TemplatePlanBlockResult, type TemplatePlanEffectCount, TemplatePlanError, type TemplatePlanErrorCode, type TemplatePlanFieldLeftover, type TemplatePlanHighlight, type TemplatePlanIndent, type TemplatePlanIssue, type TemplatePlanItem, type TemplatePlanMerge, type TemplatePlanNestedParagraph, type TemplatePlanNoteCounts, type TemplatePlanNumbering, type TemplatePlanNumberingPatch, type TemplatePlanOmitReason, type TemplatePlanReference, type TemplatePlanReferenceResult, type TemplatePlanReport, type TemplatePlanSection, type TemplatePlanSectionPage, type TemplatePlanSourceItem, type TemplatePlanSpacing, type TemplatePlanSpanCounts, type TemplatePlanTrackedChanges, type TemplatePlanTrackedView, UnsupportedFolioDocumentOperationVersionError, UnsupportedFolioDocxXmlPatchApplicationProfileError, UnsupportedFolioReviewedViewError, type ValidateDocxConformanceOptions, type VerifyTemplatePlanOutputArgs, analyzeDocxBlocks, applyDocxXmlPatchProposal, applyFolioAIEditsToBuffer, applyFolioVersionDiffPrivacy, applyTemplatePlan, assertSupportedFolioDocumentOperationVersion, bookmark, changeListFormat, compareDocxVersions, createBilingualDocument, createBilingualDocx, createDocx, createEmptyDocument, createFolioAITextRangeHandle, createStellaStyleDocumentPreset, createStellaStyleSet, createTableOfContentsField, deriveBlockId, docxToMarkdown, endnote, ensureParaIds, evaluateDocxXmlPatchProposal, extractDocumentStyleSet, extractDocumentStyleSetFromDocx, extractDocxText, generateRedlineDocx, getFolioDocumentOperationCapabilities, getFolioDocumentOperationIssues, getFolioDocumentOperationReceipts, getFolioDocumentOperationRemovedBlockIds, getFolioDocumentOutline, getFolioParaIdFromBlockId, getTrackedFolioDocumentOperationRemovedBlockIds, hashFolioAIBlockText, heading, hyperlink, inspectDocumentStyles, inspectDocumentStylesFromDocx, inspectDocxPackage, inspectDocxTemplate, isFolioAIContentBlock, isFolioBlockId, isFolioDocumentOperationModeSupported, isFolioDocumentPrivacyTransform, isFolioResolvedReviewedView, isFolioReviewedView, isFolioVersionComparisonPrivacyTransform, isFolioVersionComparisonScope, isSequentialFolioBlockId, isSupportedFolioDocumentOperationVersion, normalizeFolioAIBlockText, pageBreak, paragraph, parseDocx, parseFolioDocumentOperationBatch, parseFolioDocxXmlPatchProposal, readBilingualDocument, readBilingualDocx, readFolioDocumentSection, replyToComment, rewriteDocxMetadataPrivacy, run, table, validateDocxConformance, verifyTemplatePlanOutput };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
/** Remaining seams to retire before the canonical session becomes the only authority. */
|
|
2
2
|
export declare const CANONICAL_GAP: {
|
|
3
|
-
readonly commands: "command-descriptors";
|
|
4
3
|
readonly trackedTableStructure: "tracked-table-structure";
|
|
5
4
|
readonly storyContentProjection: "story-content-projection";
|
|
6
5
|
readonly trackedChangeRecords: "tracked-change-records";
|
|
7
|
-
readonly publicComments: "publicOps.comments";
|
|
8
|
-
readonly publicUnsupportedInline: "publicOps.unsupportedInline";
|
|
9
|
-
readonly commentReplacementAlignment: "comment-replacement-alignment";
|
|
10
6
|
readonly publicHeadlessSession: "publicOps.headlessSession";
|
|
11
7
|
};
|
|
12
8
|
export type CanonicalGap = (typeof CANONICAL_GAP)[keyof typeof CANONICAL_GAP];
|
|
@@ -81,56 +77,29 @@ export type CanonicalRefusalGround = {
|
|
|
81
77
|
rule?: never;
|
|
82
78
|
};
|
|
83
79
|
export declare const CANONICAL_CAPABILITIES: {
|
|
84
|
-
readonly "command-descriptors": {
|
|
85
|
-
readonly remainingCommands: {
|
|
86
|
-
readonly registry: "extension-commands";
|
|
87
|
-
};
|
|
88
|
-
readonly owner: "controller";
|
|
89
|
-
readonly kind: "refusal";
|
|
90
|
-
readonly adapters: readonly ["react", "vue"];
|
|
91
|
-
readonly summary: "Commands without canonical descriptors retain PM probing and hit the dispatch boundary.";
|
|
92
|
-
};
|
|
93
80
|
readonly "tracked-table-structure": {
|
|
94
81
|
readonly owner: "controller";
|
|
95
82
|
readonly kind: "refusal";
|
|
96
83
|
readonly adapters: readonly ["react", "vue"];
|
|
97
|
-
readonly summary: "Suggested
|
|
84
|
+
readonly summary: "Suggested table changes refuse markup the tracked table records cannot express: a row insertion or deletion in a table holding captured markup, wrapper stacks or row content controls; a column or cell edit in a table whose rows keep captured markup between their cells; a table inserted or deleted with captured markup, bookmarks, wrapper stacks or property revisions; a column deletion through a cell spanning other columns.";
|
|
98
85
|
};
|
|
99
86
|
readonly "story-content-projection": {
|
|
100
87
|
readonly owner: "controller";
|
|
101
88
|
readonly kind: "refusal";
|
|
102
89
|
readonly adapters: readonly ["react", "vue"];
|
|
103
|
-
readonly summary: "
|
|
90
|
+
readonly summary: "A paste of content whose package parts the model does not carry refuses: an opaque drawing or kept block markup from another package, and a copied comment holding images or external links.";
|
|
104
91
|
};
|
|
105
92
|
readonly "tracked-change-records": {
|
|
106
93
|
readonly owner: "document-operations";
|
|
107
94
|
readonly kind: "refusal";
|
|
108
95
|
readonly adapters: readonly ["react", "vue"];
|
|
109
|
-
readonly summary: "A suggested change whose content the tracked-change records cannot express is refused:
|
|
110
|
-
};
|
|
111
|
-
readonly "publicOps.comments": {
|
|
112
|
-
readonly owner: "document-operations";
|
|
113
|
-
readonly kind: "refusal";
|
|
114
|
-
readonly adapters: readonly ["react", "vue"];
|
|
115
|
-
readonly summary: "Public comment edits refuse when their anchors or revision structure cannot be represented.";
|
|
116
|
-
};
|
|
117
|
-
readonly "publicOps.unsupportedInline": {
|
|
118
|
-
readonly owner: "document-operations";
|
|
119
|
-
readonly kind: "refusal";
|
|
120
|
-
readonly adapters: readonly ["react", "vue"];
|
|
121
|
-
readonly summary: "Unsupported public payloads refuse with a typed compiler capability gap.";
|
|
122
|
-
};
|
|
123
|
-
readonly "comment-replacement-alignment": {
|
|
124
|
-
readonly owner: "controller";
|
|
125
|
-
readonly kind: "refusal";
|
|
126
|
-
readonly adapters: readonly ["react", "vue"];
|
|
127
|
-
readonly summary: "Replacements refuse when preserving aligned comments needs anchor transitions or an unproven collapsed-range policy.";
|
|
96
|
+
readonly summary: "A suggested change whose content the tracked-change records cannot express is refused: paragraph-mark run properties, a deleted paragraph whose hyperlink or content control holds a comment anchor, a section-ending mark resolved across a standing range boundary, a change inside a simple field holding content the field cannot hold.";
|
|
128
97
|
};
|
|
129
98
|
readonly "publicOps.headlessSession": {
|
|
130
99
|
readonly owner: "document-operations";
|
|
131
100
|
readonly kind: "refusal";
|
|
132
101
|
readonly adapters: readonly ["react", "vue"];
|
|
133
|
-
readonly summary: "A reviewer refuses
|
|
102
|
+
readonly summary: "A reviewer refuses a resolved view, a comparison projection or a story resolution that leaves a staged suggestion pending, because the suggestion's resolution refused without stating its ground.";
|
|
134
103
|
};
|
|
135
104
|
};
|
|
136
105
|
/**
|