@stll/folio-core 0.68.0 → 0.69.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.js +2 -2
- package/dist/ai-edits/newListNumbering.d.ts +14 -1
- package/dist/ai-edits/newListNumbering.js +24 -1
- package/dist/ai-edits/pending-suggestions.js +2 -2
- package/dist/controller/canonicalClipboard.js +2 -2
- package/dist/controller/canonicalComposition.js +34 -5
- package/dist/controller/canonicalInput.js +4 -6
- package/dist/controller/canonicalLockGuard.d.ts +17 -2
- package/dist/controller/canonicalLockGuard.js +46 -1
- package/dist/controller/canonicalProjectionBlocks.d.ts +79 -0
- package/dist/controller/canonicalProjectionBlocks.js +75 -0
- package/dist/controller/canonicalPublicOperations.js +476 -100
- package/dist/controller/canonicalSeedContent.d.ts +12 -0
- package/dist/controller/canonicalSeedContent.js +131 -0
- package/dist/controller/canonicalSession.d.ts +53 -21
- package/dist/controller/canonicalSession.js +489 -210
- package/dist/controller/canonicalSourceNormalization.d.ts +21 -0
- package/dist/controller/canonicalSourceNormalization.js +148 -0
- package/dist/controller/canonicalStoryEditor.d.ts +1 -1
- package/dist/controller/canonicalStoryEditor.js +16 -12
- package/dist/controller/folioEditor.js +3 -0
- package/dist/controller/headerFooterEditorManager.d.ts +5 -0
- package/dist/controller/headerFooterEditorManager.js +7 -2
- package/dist/controller/hiddenEditorApi.d.ts +11 -2
- package/dist/controller/hiddenEditorApi.js +3 -0
- package/dist/controller/hiddenEditorManager.d.ts +7 -0
- package/dist/controller/hiddenEditorManager.js +66 -11
- package/dist/controller/layoutPipeline.js +2 -1
- package/dist/controller/layoutSession.d.ts +3 -0
- package/dist/controller/layoutSession.js +3 -1
- package/dist/controller/noteEditorManager.d.ts +5 -0
- package/dist/controller/noteEditorManager.js +7 -2
- package/dist/display-list/dom/renderDisplayListToDom.js +9 -7
- package/dist/document-operations.d.ts +1 -1
- package/dist/docx/canonicalSave.js +7 -2
- package/dist/docx/commentAnchorIndex.d.ts +19 -0
- package/dist/docx/commentAnchorIndex.js +55 -1
- package/dist/docx/containerChildren.js +1 -1
- package/dist/docx/contentTypeRegistry.js +1 -1
- package/dist/docx/hostCommentThreads.d.ts +11 -1
- package/dist/docx/hostCommentThreads.js +25 -2
- package/dist/docx/listModelNormalization.js +4 -5
- package/dist/docx/listNumberingInstances.d.ts +1 -1
- package/dist/docx/listNumberingInstances.js +2 -2
- package/dist/docx/numberingIds.d.ts +6 -0
- package/dist/docx/numberingIds.js +6 -1
- package/dist/docx/numberingReferenceNormalization.d.ts +4 -0
- package/dist/docx/numberingReferenceNormalization.js +12 -2
- package/dist/docx/paragraphPropertySource.d.ts +22 -0
- package/dist/docx/paragraphPropertySource.js +85 -16
- package/dist/docx/parser.js +2 -0
- package/dist/docx/removeHeaderFooterParts.js +1 -1
- package/dist/docx/reviewResolutionProvenance.js +72 -19
- package/dist/docx/serializer/documentSerializer.js +2 -1
- package/dist/docx/serializer/partNamespaces.d.ts +1 -1
- package/dist/docx/serializer/partNamespaces.js +1 -1
- package/dist/docx/server/build.d.ts +1 -1
- package/dist/docx/storyBlockReplay.js +15 -2
- package/dist/docx/structuralXmlPatch.js +25 -4
- package/dist/docx/xmlParser.d.ts +1 -1
- package/dist/docx/xmlParser.js +2 -3
- package/dist/i18n/messages/ar.gen.js +1 -0
- package/dist/i18n/messages/catalogs.gen.d.ts +17 -0
- package/dist/i18n/messages/catalogs.gen.js +17 -0
- package/dist/i18n/messages/cs.gen.js +1 -0
- package/dist/i18n/messages/de.gen.js +1 -0
- package/dist/i18n/messages/en.gen.js +1 -0
- package/dist/i18n/messages/es.gen.js +1 -0
- package/dist/i18n/messages/et.gen.js +1 -0
- package/dist/i18n/messages/fr.gen.js +1 -0
- package/dist/i18n/messages/he.gen.js +1 -0
- package/dist/i18n/messages/hi.gen.js +1 -0
- package/dist/i18n/messages/hu.gen.js +1 -0
- package/dist/i18n/messages/lt.gen.js +1 -0
- package/dist/i18n/messages/lv.gen.js +1 -0
- package/dist/i18n/messages/messages.gen.d.ts +1 -0
- package/dist/i18n/messages/pl.gen.js +1 -0
- package/dist/i18n/messages/pt-BR.gen.js +1 -0
- package/dist/i18n/messages/sk.gen.js +1 -0
- package/dist/i18n/messages/tr.gen.js +1 -0
- package/dist/i18n/messages/zh-CN.gen.js +1 -0
- package/dist/internal/pageBreakRunDescendantIndex.d.ts +7 -2
- package/dist/internal/pageBreakRunDescendantIndex.js +12 -3
- package/dist/internal/subtreeHolds.d.ts +12 -0
- package/dist/internal/subtreeHolds.js +25 -0
- package/dist/internal/wholeStoryRevisionResolution.js +1 -1
- package/dist/layout-bridge/cellSelectionHighlight.js +3 -3
- package/dist/layout-bridge/convert/flowBlockPostprocessing.js +20 -12
- package/dist/layout-bridge/convert/flowConversionShared.d.ts +15 -1
- package/dist/layout-bridge/convert/flowConversionShared.js +9 -1
- package/dist/layout-bridge/convert/paragraphAttrs.d.ts +15 -4
- package/dist/layout-bridge/convert/paragraphAttrs.js +11 -4
- package/dist/layout-bridge/convert/paragraphBlockCache.d.ts +26 -0
- package/dist/layout-bridge/convert/paragraphBlockCache.js +137 -0
- package/dist/layout-bridge/convert/paragraphConversion.d.ts +12 -2
- package/dist/layout-bridge/convert/paragraphConversion.js +37 -5
- package/dist/layout-bridge/convert/paragraphRuns.d.ts +2 -2
- package/dist/layout-bridge/convert/sectionBoundaries.js +16 -0
- package/dist/layout-bridge/convert/toFlowBlocks.js +144 -15
- package/dist/layout-bridge/convert/topLevelConversion.d.ts +74 -0
- package/dist/layout-bridge/convert/topLevelConversion.js +109 -0
- package/dist/layout-bridge/dom/clickToPositionDom.js +41 -40
- package/dist/layout-bridge/dom/findBodyPmSpans.js +4 -3
- package/dist/layout-bridge/dom/findHfPmSpans.js +10 -15
- package/dist/layout-bridge/dom/imeCaretAnchor.d.ts +8 -0
- package/dist/layout-bridge/dom/imeCaretAnchor.js +71 -7
- package/dist/layout-bridge/dom/textStreamDom.js +3 -2
- package/dist/layout-bridge/headerFooterLayout.js +12 -11
- package/dist/layout-bridge/tableInsertHover.js +2 -1
- package/dist/layout-engine/measure/cache.d.ts +2 -0
- package/dist/layout-engine/measure/cache.js +6 -1
- package/dist/layout-engine/measure/paragraphKeyMemo.d.ts +8 -0
- package/dist/layout-engine/measure/paragraphKeyMemo.js +92 -0
- package/dist/layout-engine/types.d.ts +6 -0
- package/dist/layout-painter/imageLayout.js +2 -1
- package/dist/layout-painter/pageShellStyles.d.ts +10 -0
- package/dist/layout-painter/pageShellStyles.js +32 -0
- package/dist/layout-painter/reconcileRenderedContent.d.ts +19 -0
- package/dist/layout-painter/reconcileRenderedContent.js +117 -0
- package/dist/layout-painter/renderFragment.js +4 -6
- package/dist/layout-painter/renderImage.js +2 -2
- package/dist/layout-painter/renderPage.js +8 -29
- package/dist/layout-painter/renderParagraph.js +3 -3
- package/dist/layout-painter/renderTable.js +9 -12
- package/dist/layout-painter/renderTextBox.js +2 -2
- package/dist/layout-painter/sdtBoundary.js +3 -2
- package/dist/paged-layout/blockGeometry.js +3 -2
- package/dist/paged-layout/editorScrollRoot.d.ts +9 -0
- package/dist/paged-layout/editorScrollRoot.js +10 -1
- package/dist/paged-layout/rangeProjection.js +5 -4
- package/dist/paged-layout/scrollToPmPosition.js +3 -3
- package/dist/paged-layout/selectionViewportRect.d.ts +6 -0
- package/dist/paged-layout/selectionViewportRect.js +8 -2
- package/dist/prosemirror/attrs/index.js +1 -0
- package/dist/prosemirror/commands/comments.d.ts +5 -2
- package/dist/prosemirror/commands/comments.js +88 -8
- package/dist/prosemirror/commentRecords.d.ts +137 -0
- package/dist/prosemirror/commentRecords.js +400 -0
- package/dist/prosemirror/conversion/fromProseDoc.js +9 -3
- package/dist/prosemirror/conversion/index.d.ts +1 -1
- package/dist/prosemirror/conversion/toProseDoc.d.ts +13 -4
- package/dist/prosemirror/conversion/toProseDoc.js +126 -38
- package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.d.ts +22 -0
- package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.js +61 -32
- package/dist/prosemirror/extensions/marks/CommentExtension.js +3 -1
- package/dist/prosemirror/extensions/nodes/CommentReferenceExtension.js +3 -1
- package/dist/prosemirror/index.d.ts +1 -1
- package/dist/prosemirror/nativeSelection.d.ts +33 -0
- package/dist/prosemirror/nativeSelection.js +74 -0
- package/dist/prosemirror/numberedRefFields.d.ts +2 -0
- package/dist/prosemirror/numberedRefFields.js +16 -5
- package/dist/prosemirror/paragraphMarkJoin.d.ts +6 -8
- package/dist/prosemirror/paragraphMarkJoin.js +155 -16
- package/dist/prosemirror/plugins/contentControlWidgets.js +2 -2
- package/dist/prosemirror/plugins/documentNumbering.js +33 -14
- package/dist/prosemirror/plugins/suggestionMode.js +13 -1
- package/dist/prosemirror/runIdentityAcrossRevisions.d.ts +23 -1
- package/dist/prosemirror/runIdentityAcrossRevisions.js +57 -8
- package/dist/prosemirror/schema/marks.d.ts +7 -1
- package/dist/prosemirror/storyListNumbering.js +7 -2
- package/dist/prosemirror/tableResize.d.ts +10 -9
- package/dist/prosemirror/tableResize.js +60 -49
- package/dist/prosemirror/textInput.d.ts +30 -1
- package/dist/prosemirror/textInput.js +144 -17
- package/dist/prosemirror/utils/visualLineNavigation.js +20 -18
- package/dist/prosemirror/validation.d.ts +19 -0
- package/dist/prosemirror/validation.js +78 -5
- package/dist/render-dom/HeaderFooterSelectionOverlay.js +5 -4
- package/dist/render-dom/RenderedDomContext.js +7 -6
- package/dist/types/canonicalCapabilities.d.ts +12 -11
- package/dist/types/canonicalCapabilities.js +12 -13
- package/dist/utils/findMatchView.js +4 -3
- package/dist/utils/formatToStyle.d.ts +1 -1
- package/dist/utils/mergeDocumentContent.js +2 -2
- package/dist/utils/paintedPositions.d.ts +60 -0
- package/dist/utils/paintedPositions.js +101 -0
- package/package.json +2 -3
|
@@ -4,7 +4,7 @@ import { parseRelationships, resolveRelativePath } from "./relsParser.js";
|
|
|
4
4
|
import { captureVerbatimXml } from "./verbatimCapture.js";
|
|
5
5
|
import { OFFICE_RELATIONSHIP_NAMESPACE_URIS, cloneElement, getAttribute, getLocalName, getNamespaceUri, parseXmlDocument } from "./xmlParser.js";
|
|
6
6
|
import { panic } from "better-result";
|
|
7
|
-
import { OOXML_NS } from "@stll/docx-
|
|
7
|
+
import { OOXML_NS } from "@stll/docx-core/xml/namespaces";
|
|
8
8
|
// src/docx/removeHeaderFooterParts.ts
|
|
9
9
|
const DOCUMENT_RELS_PATH = "word/_rels/document.xml.rels";
|
|
10
10
|
const officeRelationshipHasType = (type, kind) => [...OFFICE_RELATIONSHIP_NAMESPACE_URIS].some((namespace) => type === `${namespace}/${kind}`);
|
|
@@ -24,8 +24,19 @@ const JOIN_FIELDS = {
|
|
|
24
24
|
retainedAfter: true,
|
|
25
25
|
deferredRemove: true,
|
|
26
26
|
acceptance: true,
|
|
27
|
-
plainSides: true
|
|
27
|
+
plainSides: true,
|
|
28
|
+
retainedEnclosing: true
|
|
28
29
|
};
|
|
30
|
+
const ENCLOSING_FIELDS = {
|
|
31
|
+
levels: true,
|
|
32
|
+
source: true,
|
|
33
|
+
target: true
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Saved as its own attribute: a reader that does not know it keeps the
|
|
37
|
+
* joins and drops only the handoff.
|
|
38
|
+
*/
|
|
39
|
+
const ENCLOSING_ATTRIBUTE = "retainedEnclosing";
|
|
29
40
|
const ACCEPTANCE_POLICIES = { "merge-plain-runs": true };
|
|
30
41
|
const PARAGRAPH_MARK_FIELDS = {
|
|
31
42
|
kind: { type: "ooxml" },
|
|
@@ -52,6 +63,13 @@ const retained = (value) => Array.isArray(value) && value.every((item) => {
|
|
|
52
63
|
const target = item["target"];
|
|
53
64
|
return Object.keys(item).every((key) => Object.hasOwn(RETAINED_FIELDS, key)) && natural(item["depth"]) && slots(source) && slots(target) && source.length === target.length && source.every((slot, index) => slot.space === target.at(index)?.space);
|
|
54
65
|
});
|
|
66
|
+
const enclosingHandoffs = (value) => Array.isArray(value) && value.length > 0 && value.every((item) => {
|
|
67
|
+
if (!record(item)) return false;
|
|
68
|
+
const levels = item["levels"];
|
|
69
|
+
const source = item["source"];
|
|
70
|
+
const target = item["target"];
|
|
71
|
+
return Object.keys(item).every((key) => Object.hasOwn(ENCLOSING_FIELDS, key)) && natural(levels) && levels >= 1 && levels <= MAX_REVISION_ID && slots(source) && slots(target) && source.length > 0 && source.length === target.length && source.every((slot, index) => slot.space === target.at(index)?.space);
|
|
72
|
+
});
|
|
55
73
|
const deferredRemoval = (value) => {
|
|
56
74
|
if (!record(value) || Object.keys(value).some((key) => !Object.hasOwn(DEFERRED_REMOVAL_FIELDS, key))) return false;
|
|
57
75
|
const depth = value["depth"];
|
|
@@ -66,7 +84,29 @@ const deferredRemovals = (value) => {
|
|
|
66
84
|
}));
|
|
67
85
|
return new Set(groups).size === groups.length;
|
|
68
86
|
};
|
|
69
|
-
const isResolutionJoins = (value) => record(value) && Object.keys(value).every((key) => Object.hasOwn(JOIN_FIELDS, key)) && natural(value["before"]) && natural(value["after"]) && natural(value["remove"]) && (!Object.hasOwn(value, "acceptance") || typeof value["acceptance"] === "string" && Object.hasOwn(ACCEPTANCE_POLICIES, value["acceptance"])) && (value["retainedAfter"] === void 0 || retained(value["retainedAfter"])) && (!Object.hasOwn(value, "deferredRemove") || deferredRemovals(value["deferredRemove"])) && (!Object.hasOwn(value, "plainSides") || isBoundaryJoins(value["plainSides"]));
|
|
87
|
+
const isResolutionJoins = (value) => record(value) && Object.keys(value).every((key) => Object.hasOwn(JOIN_FIELDS, key)) && natural(value["before"]) && natural(value["after"]) && natural(value["remove"]) && (!Object.hasOwn(value, "acceptance") || typeof value["acceptance"] === "string" && Object.hasOwn(ACCEPTANCE_POLICIES, value["acceptance"])) && (value["retainedAfter"] === void 0 || retained(value["retainedAfter"])) && (!Object.hasOwn(value, "deferredRemove") || deferredRemovals(value["deferredRemove"])) && (!Object.hasOwn(value, "plainSides") || isBoundaryJoins(value["plainSides"])) && (!Object.hasOwn(value, ENCLOSING_ATTRIBUTE) || enclosingHandoffs(value[ENCLOSING_ATTRIBUTE]));
|
|
88
|
+
/** The joins as `folio:resolutionJoins` holds them: without the handoff. */
|
|
89
|
+
const isStoredResolutionJoins = (value) => isResolutionJoins(value) && !Object.hasOwn(value, ENCLOSING_ATTRIBUTE);
|
|
90
|
+
const storedJoins = (joins) => {
|
|
91
|
+
const { retainedEnclosing: _handoff, ...stored } = joins;
|
|
92
|
+
return stored;
|
|
93
|
+
};
|
|
94
|
+
const withEnclosing = (joins, node) => {
|
|
95
|
+
const handoffs = parseAttribute({
|
|
96
|
+
node,
|
|
97
|
+
attribute: ENCLOSING_ATTRIBUTE,
|
|
98
|
+
valid: enclosingHandoffs
|
|
99
|
+
});
|
|
100
|
+
return handoffs === void 0 ? joins : {
|
|
101
|
+
...joins,
|
|
102
|
+
retainedEnclosing: handoffs
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
const serializeEnclosing = (joins) => serializeAttribute({
|
|
106
|
+
attribute: ENCLOSING_ATTRIBUTE,
|
|
107
|
+
value: joins?.retainedEnclosing,
|
|
108
|
+
valid: enclosingHandoffs
|
|
109
|
+
});
|
|
70
110
|
const isParagraphMarkResolutionJoin = (value) => natural(value) && value <= MAX_REVISION_ID;
|
|
71
111
|
const isEncodedParagraphMarkResolutionJoin = (value) => value === null || isParagraphMarkResolutionJoin(value);
|
|
72
112
|
const isBoundaryJoins = (value) => Array.isArray(value) && value.length <= 2 && new Set(value).size === value.length && value.every((side) => side === "before" || side === "after");
|
|
@@ -139,11 +179,14 @@ const serializeAttribute = (options) => {
|
|
|
139
179
|
const encoded = encodeAttribute(options);
|
|
140
180
|
return encoded === void 0 ? "" : ` folio:${options.attribute}="${escapeXmlAttribute(encoded)}"`;
|
|
141
181
|
};
|
|
142
|
-
const parseResolutionJoins = (node) =>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
182
|
+
const parseResolutionJoins = (node) => {
|
|
183
|
+
const joins = parseAttribute({
|
|
184
|
+
node,
|
|
185
|
+
attribute: "resolutionJoins",
|
|
186
|
+
valid: isStoredResolutionJoins
|
|
187
|
+
});
|
|
188
|
+
return joins === void 0 ? void 0 : withEnclosing(joins, node);
|
|
189
|
+
};
|
|
147
190
|
const parseBoundaryJoins = (node) => parseAttribute({
|
|
148
191
|
node,
|
|
149
192
|
attribute: "boundaryJoins",
|
|
@@ -156,9 +199,9 @@ const parseCopyOriginAncestors = (node) => parseAttribute({
|
|
|
156
199
|
});
|
|
157
200
|
const serializeResolutionJoins = (value) => serializeAttribute({
|
|
158
201
|
attribute: "resolutionJoins",
|
|
159
|
-
value,
|
|
160
|
-
valid:
|
|
161
|
-
});
|
|
202
|
+
value: value === void 0 ? void 0 : storedJoins(value),
|
|
203
|
+
valid: isStoredResolutionJoins
|
|
204
|
+
}) + serializeEnclosing(value);
|
|
162
205
|
const serializeBoundaryJoins = (value) => serializeAttribute({
|
|
163
206
|
attribute: "boundaryJoins",
|
|
164
207
|
value,
|
|
@@ -216,24 +259,34 @@ const SPLIT_PIECE_FIELDS = {
|
|
|
216
259
|
pieces: true,
|
|
217
260
|
joins: true
|
|
218
261
|
};
|
|
219
|
-
const isSplitResolutionPiece = (value) => record(value) && Object.keys(value).every((key) => Object.hasOwn(SPLIT_PIECE_FIELDS, key)) && natural(value["piece"]) && natural(value["pieces"]) && value["pieces"] >= 2 && value["piece"] < value["pieces"] && (!Object.hasOwn(value, "joins") || value["piece"] === 0 &&
|
|
220
|
-
const parseSplitResolutionPiece = (node) =>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
262
|
+
const isSplitResolutionPiece = (value) => record(value) && Object.keys(value).every((key) => Object.hasOwn(SPLIT_PIECE_FIELDS, key)) && natural(value["piece"]) && natural(value["pieces"]) && value["pieces"] >= 2 && value["piece"] < value["pieces"] && (!Object.hasOwn(value, "joins") || value["piece"] === 0 && isStoredResolutionJoins(value["joins"]));
|
|
263
|
+
const parseSplitResolutionPiece = (node) => {
|
|
264
|
+
const piece = parseAttribute({
|
|
265
|
+
node,
|
|
266
|
+
attribute: "splitResolutionJoins",
|
|
267
|
+
valid: isSplitResolutionPiece
|
|
268
|
+
});
|
|
269
|
+
return piece?.joins === void 0 ? piece : {
|
|
270
|
+
...piece,
|
|
271
|
+
joins: withEnclosing(piece.joins, node)
|
|
272
|
+
};
|
|
273
|
+
};
|
|
225
274
|
const serializeSplitResolutionPiece = (value) => serializeAttribute({
|
|
226
275
|
attribute: "splitResolutionJoins",
|
|
227
|
-
value
|
|
276
|
+
value: value.joins === void 0 ? value : {
|
|
277
|
+
...value,
|
|
278
|
+
joins: storedJoins(value.joins)
|
|
279
|
+
},
|
|
228
280
|
valid: isSplitResolutionPiece
|
|
229
|
-
});
|
|
281
|
+
}) + serializeEnclosing(value.joins);
|
|
230
282
|
/** Every provenance attribute folio reads, with the shape its value must have. */
|
|
231
283
|
const PROVENANCE_VALUE_SHAPES = {
|
|
232
|
-
resolutionJoins:
|
|
284
|
+
resolutionJoins: isStoredResolutionJoins,
|
|
233
285
|
boundaryJoins: isBoundaryJoins,
|
|
234
286
|
[PARAGRAPH_MARK_FIELDS.resolutionJoin.attribute]: isEncodedParagraphMarkResolutionJoin,
|
|
235
287
|
copyOriginAncestors: isCopyOriginAncestors,
|
|
236
288
|
splitResolutionJoins: isSplitResolutionPiece,
|
|
289
|
+
[ENCLOSING_ATTRIBUTE]: enclosingHandoffs,
|
|
237
290
|
[PARAGRAPH_MARK_FIELDS.survivor.attribute]: isParagraphMarkSurvivor
|
|
238
291
|
};
|
|
239
292
|
/**
|
|
@@ -104,11 +104,12 @@ function serializeDocumentBody(body) {
|
|
|
104
104
|
if (body.finalSectionProperties) parts.push(serializeSectionProperties(body.finalSectionProperties));
|
|
105
105
|
return parts.join("");
|
|
106
106
|
}
|
|
107
|
+
const withoutByteOrderMark = (xml) => xml.startsWith("") ? xml.slice(1) : xml;
|
|
107
108
|
const replayableDocumentSources = /* @__PURE__ */ new WeakMap();
|
|
108
109
|
function serializeDocument(doc, sourceBindings, source) {
|
|
109
110
|
resetAutoIdCounter();
|
|
110
111
|
const baseline = source?.bodyAuthority === "canonical" ? getDocumentSourceBaseline(doc) : { type: "missing" };
|
|
111
|
-
const sourceMatches = baseline.type === "captured" && (source?.xml === void 0 || source.xml === baseline.xml);
|
|
112
|
+
const sourceMatches = baseline.type === "captured" && (source?.xml === void 0 || withoutByteOrderMark(source.xml) === withoutByteOrderMark(baseline.xml));
|
|
112
113
|
if (baseline.type === "captured" && sourceMatches && JSON.stringify(doc.package.document) === baseline.fingerprint) {
|
|
113
114
|
if (replayableDocumentSources.get(baseline.body) === baseline.xml) return baseline.xml;
|
|
114
115
|
if (canReplayDocumentSource(baseline.xml, baseline.body)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TaggedErrorClass } from "better-result";
|
|
2
|
-
import { OoxmlPrefix } from "@stll/docx-
|
|
2
|
+
import { OoxmlPrefix } from "@stll/docx-core/xml/namespaces";
|
|
3
3
|
declare const UnboundNamespacePrefixErrorBase: TaggedErrorClass<"UnboundNamespacePrefixError">;
|
|
4
4
|
/**
|
|
5
5
|
* A namespace a rebuilt WordprocessingML part may declare.
|
|
@@ -2,7 +2,7 @@ import { FOLIO_REVIEW_HISTORY_NAMESPACE } from "../reviewHistoryNamespace.js";
|
|
|
2
2
|
import { toTransitionalNamespaceUri } from "../transitionalSpelling.js";
|
|
3
3
|
import { TaggedError } from "better-result";
|
|
4
4
|
import { assertValidOoxmlNumericIds, escapeXmlAttribute } from "@stll/docx-core";
|
|
5
|
-
import { OOXML_NS } from "@stll/docx-
|
|
5
|
+
import { OOXML_NS } from "@stll/docx-core/xml/namespaces";
|
|
6
6
|
// src/docx/serializer/partNamespaces.ts
|
|
7
7
|
/**
|
|
8
8
|
* Namespace declarations for parts folio rebuilds from the model.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ShadingProperties } from "../../types/colors.js";
|
|
2
1
|
import { document_d_exports } from "../../types/document.js";
|
|
2
|
+
import { ShadingProperties } from "../../types/colors.js";
|
|
3
3
|
import { ParagraphFormatting, TextFormatting } from "../../types/formatting.js";
|
|
4
4
|
import { Hyperlink, Paragraph, ParagraphContent, Run, Table } from "../../types/content.js";
|
|
5
5
|
import { TaggedErrorClass } from "better-result";
|
|
@@ -7,6 +7,19 @@ import { escapeXmlAttribute } from "@stll/docx-core";
|
|
|
7
7
|
import { DOCX_CONFORMANCE_CLASSES } from "@stll/docx-core/model";
|
|
8
8
|
import { getXmlSourceRange, parseStreamingXmlWithSourceRanges } from "@stll/docx-core/xml";
|
|
9
9
|
// src/docx/storyBlockReplay.ts
|
|
10
|
+
/**
|
|
11
|
+
* What a block saves as, for telling whether it changed: the block without
|
|
12
|
+
* the list marker a paragraph's numbering computes, which no save writes. An
|
|
13
|
+
* edit elsewhere in the list renumbers it; the paragraph itself is unchanged
|
|
14
|
+
* and keeps its source.
|
|
15
|
+
*/
|
|
16
|
+
const savedFingerprint = (value) => {
|
|
17
|
+
if (value === null || value === void 0) return "null";
|
|
18
|
+
if (Array.isArray(value)) return `[${value.map(savedFingerprint).join(",")}]`;
|
|
19
|
+
if (typeof value !== "object") return JSON.stringify(value) ?? "null";
|
|
20
|
+
const paragraph = "type" in value && value.type === "paragraph";
|
|
21
|
+
return `{${Object.entries(value).filter(([key, entry]) => entry !== void 0 && !(paragraph && key === "listRendering")).toSorted(([left], [right]) => left.localeCompare(right)).map(([key, entry]) => `${JSON.stringify(key)}:${savedFingerprint(entry)}`).join(",")}}`;
|
|
22
|
+
};
|
|
10
23
|
const BLOCK_ELEMENT_NAMES = {
|
|
11
24
|
paragraph: "p",
|
|
12
25
|
table: "tbl",
|
|
@@ -143,7 +156,7 @@ const replayBlocks = ({ sourceXml, baselineContent, currentContent, serializedXm
|
|
|
143
156
|
mode: "generated"
|
|
144
157
|
}))) return null;
|
|
145
158
|
const generatedRoot = scope?.generatedRoot ?? generated.root;
|
|
146
|
-
const fingerprints = baselineContent.map(
|
|
159
|
+
const fingerprints = baselineContent.map(savedFingerprint);
|
|
147
160
|
const identities = /* @__PURE__ */ new Map();
|
|
148
161
|
const byFingerprint = /* @__PURE__ */ new Map();
|
|
149
162
|
for (const [index, block] of baselineContent.entries()) {
|
|
@@ -164,7 +177,7 @@ const replayBlocks = ({ sourceXml, baselineContent, currentContent, serializedXm
|
|
|
164
177
|
const used = /* @__PURE__ */ new Set();
|
|
165
178
|
const fragments = [];
|
|
166
179
|
for (const [index, block] of currentContent.entries()) {
|
|
167
|
-
const fingerprint =
|
|
180
|
+
const fingerprint = savedFingerprint(block);
|
|
168
181
|
const identity = paragraphIdentity(block);
|
|
169
182
|
let originalIndex = takeCandidate(identity === void 0 ? void 0 : identities.get(identity), used) ?? takeCandidate(byFingerprint.get(fingerprint), used);
|
|
170
183
|
if (originalIndex === void 0 && (block.type === "table" || block.type === "blockSdt" || block.type === "blockCustomXml") && !used.has(index)) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { canonicalJson } from "../utils/canonicalJson.js";
|
|
2
2
|
import { parseDocumentBody } from "./documentParser.js";
|
|
3
|
+
import { parseMarkupRangeMarker } from "./markupRangeMarker.js";
|
|
3
4
|
import { paraIdAttribute } from "./paraIdAttribute.js";
|
|
4
5
|
import { spliceSupportsRootNamespaces, spliceXml } from "./selectiveXmlPatch.js";
|
|
5
6
|
import { materializeReplayFragment } from "./storyBlockReplay.js";
|
|
@@ -70,11 +71,17 @@ function* descendants(element) {
|
|
|
70
71
|
yield element;
|
|
71
72
|
for (const child of getChildElements(element)) yield* descendants(child);
|
|
72
73
|
}
|
|
73
|
-
/**
|
|
74
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Comment anchors a splice may carry: what the spliced body holds of them is
|
|
76
|
+
* checked against the serialized body afterwards.
|
|
77
|
+
*/
|
|
78
|
+
const COMMENT_ELEMENTS = /* @__PURE__ */ new Set([
|
|
75
79
|
"commentRangeStart",
|
|
76
80
|
"commentRangeEnd",
|
|
77
|
-
"commentReference"
|
|
81
|
+
"commentReference"
|
|
82
|
+
]);
|
|
83
|
+
/** Cross-paragraph ranges require a wider edit contract than paragraph identity. */
|
|
84
|
+
const RANGE_ELEMENTS = /* @__PURE__ */ new Set([
|
|
78
85
|
"bookmarkStart",
|
|
79
86
|
"bookmarkEnd",
|
|
80
87
|
"permStart",
|
|
@@ -210,6 +217,20 @@ const buildStructuralDocumentPatch = ({ originalXml, serializedXml, changedIds }
|
|
|
210
217
|
originalRoot: source.root,
|
|
211
218
|
serializedRoot: current.root
|
|
212
219
|
})) return null;
|
|
213
|
-
|
|
220
|
+
const patched = spliceXml(originalXml, splices);
|
|
221
|
+
if (patched === null) return null;
|
|
222
|
+
const spliced = readBody(patched);
|
|
223
|
+
if (!spliced || commentAnchors(spliced.root) !== commentAnchors(current.root)) return null;
|
|
224
|
+
return patched;
|
|
225
|
+
};
|
|
226
|
+
/** The body's comment anchors in document order, each by kind and id. */
|
|
227
|
+
const commentAnchors = (root) => {
|
|
228
|
+
const anchors = [];
|
|
229
|
+
for (const element of descendants(root)) {
|
|
230
|
+
if (!WORDPROCESSINGML_NAMESPACE_URIS.has(getNamespaceUri(element) ?? "")) continue;
|
|
231
|
+
const name = getLocalName(element.name);
|
|
232
|
+
if (COMMENT_ELEMENTS.has(name)) anchors.push(`${name}:${parseMarkupRangeMarker(element).id}`);
|
|
233
|
+
}
|
|
234
|
+
return anchors.join(" ");
|
|
214
235
|
};
|
|
215
236
|
export { buildStructuralDocumentPatch };
|
package/dist/docx/xmlParser.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ParseContext } from "./parseContext.js";
|
|
2
2
|
import { XmlElement, XmlNamespaceScope } from "@stll/docx-core/xml";
|
|
3
3
|
/**
|
|
4
|
-
* Common OOXML namespace URIs
|
|
4
|
+
* Common OOXML namespace URIs, from `@stll/docx-core/xml/namespaces`.
|
|
5
5
|
*/
|
|
6
6
|
export declare const NAMESPACES: {
|
|
7
7
|
readonly w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main";
|
package/dist/docx/xmlParser.js
CHANGED
|
@@ -3,8 +3,7 @@ import { universalMeasureAs } from "./universalMeasure.js";
|
|
|
3
3
|
import { escapeXmlAttribute, escapeXmlText } from "@stll/docx-core";
|
|
4
4
|
import { PARSE_WARNING_CODES } from "@stll/docx-core/model";
|
|
5
5
|
import { XmlReadError, readXml } from "@stll/docx-core/xml";
|
|
6
|
-
import { EMPTY_NAMESPACE_SCOPE, attachXmlNamespaceContext, resolveNamespaceUri } from "@stll/docx-core/xml/namespaces";
|
|
7
|
-
import { OOXML_NS } from "@stll/docx-utils";
|
|
6
|
+
import { EMPTY_NAMESPACE_SCOPE, OOXML_NS, attachXmlNamespaceContext, resolveNamespaceUri } from "@stll/docx-core/xml/namespaces";
|
|
8
7
|
// src/docx/xmlParser.ts
|
|
9
8
|
/**
|
|
10
9
|
* XML Parser Utilities for OOXML
|
|
@@ -27,7 +26,7 @@ import { OOXML_NS } from "@stll/docx-utils";
|
|
|
27
26
|
* - pic: Pictures
|
|
28
27
|
*/
|
|
29
28
|
/**
|
|
30
|
-
* Common OOXML namespace URIs
|
|
29
|
+
* Common OOXML namespace URIs, from `@stll/docx-core/xml/namespaces`.
|
|
31
30
|
*/
|
|
32
31
|
const NAMESPACES = OOXML_NS;
|
|
33
32
|
/**
|
|
@@ -337,6 +337,7 @@ const messages = { "folio": {
|
|
|
337
337
|
"editSessionTakenOver": "فتح علامة تبويب أو نافذة أو جهاز آخر هذا المستند للتعديل، لذا تم تحرير هذه الجلسة. تم الحفاظ على التغييرات المحلية غير المحفوظة؛ أعد فتح المستند للمتابعة.",
|
|
338
338
|
"editor": {
|
|
339
339
|
"accessibleName": "محرر المستندات",
|
|
340
|
+
"changeUnavailable": "لا يمكن إجراء هذا التغيير هنا بعد.",
|
|
340
341
|
"contentLocked": "هذا الجزء من المستند مقفل.",
|
|
341
342
|
"editing": "تحرير",
|
|
342
343
|
"editingDescription": "تحرير المستند مباشرةً",
|
|
@@ -338,6 +338,7 @@ export declare const CATALOGS: {
|
|
|
338
338
|
readonly editSessionTakenOver: "Another tab, window, or device opened this document for editing, so this session was released. Unsaved local changes are preserved — reopen the doc to continue.";
|
|
339
339
|
readonly editor: {
|
|
340
340
|
readonly accessibleName: "Document editor";
|
|
341
|
+
readonly changeUnavailable: "This change can't be made here yet.";
|
|
341
342
|
readonly contentLocked: "This part of the document is locked.";
|
|
342
343
|
readonly editing: "Editing";
|
|
343
344
|
readonly editingDescription: "Edit the document directly";
|
|
@@ -1002,6 +1003,7 @@ export declare const CATALOGS: {
|
|
|
1002
1003
|
readonly editSessionTakenOver: "Diese Bearbeitungssitzung wurde an anderer Stelle übernommen.";
|
|
1003
1004
|
readonly editor: {
|
|
1004
1005
|
readonly accessibleName: "Dokumenteditor";
|
|
1006
|
+
readonly changeUnavailable: "Diese Änderung ist hier noch nicht möglich.";
|
|
1005
1007
|
readonly contentLocked: "Dieser Teil des Dokuments ist gesperrt.";
|
|
1006
1008
|
readonly editing: "Bearbeiten";
|
|
1007
1009
|
readonly editingDescription: "Dokument direkt bearbeiten";
|
|
@@ -1666,6 +1668,7 @@ export declare const CATALOGS: {
|
|
|
1666
1668
|
readonly editSessionTakenOver: "Cette session de modification a été reprise ailleurs.";
|
|
1667
1669
|
readonly editor: {
|
|
1668
1670
|
readonly accessibleName: "Éditeur de documents";
|
|
1671
|
+
readonly changeUnavailable: "Cette modification n'est pas encore possible ici.";
|
|
1669
1672
|
readonly contentLocked: "Cette partie du document est verrouillée.";
|
|
1670
1673
|
readonly editing: "Modification";
|
|
1671
1674
|
readonly editingDescription: "Modifier directement le document";
|
|
@@ -2330,6 +2333,7 @@ export declare const CATALOGS: {
|
|
|
2330
2333
|
readonly editSessionTakenOver: "Esta sesión de edición se tomó en otro lugar.";
|
|
2331
2334
|
readonly editor: {
|
|
2332
2335
|
readonly accessibleName: "Editor de documentos";
|
|
2336
|
+
readonly changeUnavailable: "Este cambio aún no se puede hacer aquí.";
|
|
2333
2337
|
readonly contentLocked: "Esta parte del documento está bloqueada.";
|
|
2334
2338
|
readonly editing: "Edición";
|
|
2335
2339
|
readonly editingDescription: "Editar el documento directamente";
|
|
@@ -2994,6 +2998,7 @@ export declare const CATALOGS: {
|
|
|
2994
2998
|
readonly editSessionTakenOver: "Tento dokument byl otevřen k úpravám v jiné kartě, okně nebo zařízení, takže byla tato relace ukončena. Neuložené místní změny zůstávají zachovány — otevřete dokument znovu a pokračujte.";
|
|
2995
2999
|
readonly editor: {
|
|
2996
3000
|
readonly accessibleName: "Editor dokumentů";
|
|
3001
|
+
readonly changeUnavailable: "Tuto změnu zde zatím nelze provést.";
|
|
2997
3002
|
readonly contentLocked: "Tato část dokumentu je uzamčená.";
|
|
2998
3003
|
readonly editing: "Úpravy";
|
|
2999
3004
|
readonly editingDescription: "Upravovat dokument přímo";
|
|
@@ -3658,6 +3663,7 @@ export declare const CATALOGS: {
|
|
|
3658
3663
|
readonly editSessionTakenOver: "فتح علامة تبويب أو نافذة أو جهاز آخر هذا المستند للتعديل، لذا تم تحرير هذه الجلسة. تم الحفاظ على التغييرات المحلية غير المحفوظة؛ أعد فتح المستند للمتابعة.";
|
|
3659
3664
|
readonly editor: {
|
|
3660
3665
|
readonly accessibleName: "محرر المستندات";
|
|
3666
|
+
readonly changeUnavailable: "لا يمكن إجراء هذا التغيير هنا بعد.";
|
|
3661
3667
|
readonly contentLocked: "هذا الجزء من المستند مقفل.";
|
|
3662
3668
|
readonly editing: "تحرير";
|
|
3663
3669
|
readonly editingDescription: "تحرير المستند مباشرةً";
|
|
@@ -4322,6 +4328,7 @@ export declare const CATALOGS: {
|
|
|
4322
4328
|
readonly editSessionTakenOver: "See muutmisseanss võeti mujal üle.";
|
|
4323
4329
|
readonly editor: {
|
|
4324
4330
|
readonly accessibleName: "Dokumendiredaktor";
|
|
4331
|
+
readonly changeUnavailable: "Seda muudatust ei saa siin veel teha.";
|
|
4325
4332
|
readonly contentLocked: "See dokumendi osa on lukustatud.";
|
|
4326
4333
|
readonly editing: "Redigeerimine";
|
|
4327
4334
|
readonly editingDescription: "Redigeerige dokumenti otse";
|
|
@@ -4986,6 +4993,7 @@ export declare const CATALOGS: {
|
|
|
4986
4993
|
readonly editSessionTakenOver: "כרטיסייה, חלון או מכשיר אחר פתחו מסמך זה לעריכה, ולכן הפעלה זו שוחררה. שינויים מקומיים שלא נשמרו נשמרו — פתח מחדש את המסמך כדי להמשיך.";
|
|
4987
4994
|
readonly editor: {
|
|
4988
4995
|
readonly accessibleName: "עורך מסמכים";
|
|
4996
|
+
readonly changeUnavailable: "עדיין לא ניתן לבצע את השינוי הזה כאן.";
|
|
4989
4997
|
readonly contentLocked: "חלק זה של המסמך נעול.";
|
|
4990
4998
|
readonly editing: "עריכה";
|
|
4991
4999
|
readonly editingDescription: "ערוך את המסמך ישירות";
|
|
@@ -5650,6 +5658,7 @@ export declare const CATALOGS: {
|
|
|
5650
5658
|
readonly editSessionTakenOver: "किसी अन्य टैब, विंडो या डिवाइस ने इस दस्तावेज़ को संपादन के लिए खोला, इसलिए यह सत्र बंद कर दिया गया। सहेजे नहीं गए स्थानीय परिवर्तन सुरक्षित हैं — जारी रखने के लिए दस्तावेज़ फिर से खोलें।";
|
|
5651
5659
|
readonly editor: {
|
|
5652
5660
|
readonly accessibleName: "दस्तावेज़ संपादक";
|
|
5661
|
+
readonly changeUnavailable: "यह बदलाव अभी यहाँ नहीं किया जा सकता।";
|
|
5653
5662
|
readonly contentLocked: "दस्तावेज़ का यह हिस्सा लॉक है।";
|
|
5654
5663
|
readonly editing: "संपादन";
|
|
5655
5664
|
readonly editingDescription: "दस्तावेज़ को सीधे संपादित करें";
|
|
@@ -6314,6 +6323,7 @@ export declare const CATALOGS: {
|
|
|
6314
6323
|
readonly editSessionTakenOver: "Ezt a szerkesztési munkamenetet máshol vették át.";
|
|
6315
6324
|
readonly editor: {
|
|
6316
6325
|
readonly accessibleName: "Dokumentumszerkesztő";
|
|
6326
|
+
readonly changeUnavailable: "Ez a módosítás itt még nem hajtható végre.";
|
|
6317
6327
|
readonly contentLocked: "A dokumentum ezen része zárolva van.";
|
|
6318
6328
|
readonly editing: "Szerkesztés";
|
|
6319
6329
|
readonly editingDescription: "A dokumentum közvetlen szerkesztése";
|
|
@@ -6978,6 +6988,7 @@ export declare const CATALOGS: {
|
|
|
6978
6988
|
readonly editSessionTakenOver: "Ši redagavimo sesija buvo perimta kitur.";
|
|
6979
6989
|
readonly editor: {
|
|
6980
6990
|
readonly accessibleName: "Dokumentų redaktorius";
|
|
6991
|
+
readonly changeUnavailable: "Šio pakeitimo čia dar negalima atlikti.";
|
|
6981
6992
|
readonly contentLocked: "Ši dokumento dalis užrakinta.";
|
|
6982
6993
|
readonly editing: "Redagavimas";
|
|
6983
6994
|
readonly editingDescription: "Redaguokite dokumentą tiesiogiai";
|
|
@@ -7642,6 +7653,7 @@ export declare const CATALOGS: {
|
|
|
7642
7653
|
readonly editSessionTakenOver: "Šo rediģēšanas sesiju pārņēma citur.";
|
|
7643
7654
|
readonly editor: {
|
|
7644
7655
|
readonly accessibleName: "Dokumentu redaktors";
|
|
7656
|
+
readonly changeUnavailable: "Šīs izmaiņas šeit vēl nevar veikt.";
|
|
7645
7657
|
readonly contentLocked: "Šī dokumenta daļa ir bloķēta.";
|
|
7646
7658
|
readonly editing: "Rediģēšana";
|
|
7647
7659
|
readonly editingDescription: "Rediģējiet dokumentu tieši";
|
|
@@ -8306,6 +8318,7 @@ export declare const CATALOGS: {
|
|
|
8306
8318
|
readonly editSessionTakenOver: "Ta sesja edycji została przejęta gdzie indziej.";
|
|
8307
8319
|
readonly editor: {
|
|
8308
8320
|
readonly accessibleName: "Edytor dokumentów";
|
|
8321
|
+
readonly changeUnavailable: "Tej zmiany nie można jeszcze tu wprowadzić.";
|
|
8309
8322
|
readonly contentLocked: "Ta część dokumentu jest zablokowana.";
|
|
8310
8323
|
readonly editing: "Edytowanie";
|
|
8311
8324
|
readonly editingDescription: "Edytuj dokument bezpośrednio";
|
|
@@ -8970,6 +8983,7 @@ export declare const CATALOGS: {
|
|
|
8970
8983
|
readonly editSessionTakenOver: "Esta sessão de edição foi assumida em outro lugar.";
|
|
8971
8984
|
readonly editor: {
|
|
8972
8985
|
readonly accessibleName: "Editor de documentos";
|
|
8986
|
+
readonly changeUnavailable: "Ainda não é possível fazer esta alteração aqui.";
|
|
8973
8987
|
readonly contentLocked: "Esta parte do documento está bloqueada.";
|
|
8974
8988
|
readonly editing: "Editando";
|
|
8975
8989
|
readonly editingDescription: "Edite o documento diretamente";
|
|
@@ -9634,6 +9648,7 @@ export declare const CATALOGS: {
|
|
|
9634
9648
|
readonly editSessionTakenOver: "Túto reláciu úprav prevzalo iné okno.";
|
|
9635
9649
|
readonly editor: {
|
|
9636
9650
|
readonly accessibleName: "Editor dokumentov";
|
|
9651
|
+
readonly changeUnavailable: "Túto zmenu tu zatiaľ nemožno vykonať.";
|
|
9637
9652
|
readonly contentLocked: "Táto časť dokumentu je uzamknutá.";
|
|
9638
9653
|
readonly editing: "Úpravy";
|
|
9639
9654
|
readonly editingDescription: "Upravujte dokument priamo";
|
|
@@ -10298,6 +10313,7 @@ export declare const CATALOGS: {
|
|
|
10298
10313
|
readonly editSessionTakenOver: "Başka bir sekme, pencere veya cihaz bu belgeyi düzenlemek için açtığından bu oturum sonlandırıldı. Kaydedilmemiş yerel değişiklikler korunur; devam etmek için belgeyi yeniden açın.";
|
|
10299
10314
|
readonly editor: {
|
|
10300
10315
|
readonly accessibleName: "Belge düzenleyici";
|
|
10316
|
+
readonly changeUnavailable: "Bu değişiklik henüz burada yapılamıyor.";
|
|
10301
10317
|
readonly contentLocked: "Belgenin bu bölümü kilitli.";
|
|
10302
10318
|
readonly editing: "Düzenleme";
|
|
10303
10319
|
readonly editingDescription: "Belgeyi doğrudan düzenleyin";
|
|
@@ -10962,6 +10978,7 @@ export declare const CATALOGS: {
|
|
|
10962
10978
|
readonly editSessionTakenOver: "另一个标签页、窗口或设备已打开此文档进行编辑,因此本会话已释放。未保存的本地更改会保留,请重新打开文档以继续。";
|
|
10963
10979
|
readonly editor: {
|
|
10964
10980
|
readonly accessibleName: "文档编辑器";
|
|
10981
|
+
readonly changeUnavailable: "暂时无法在此处进行此更改。";
|
|
10965
10982
|
readonly contentLocked: "文档的这一部分已锁定。";
|
|
10966
10983
|
readonly editing: "编辑";
|
|
10967
10984
|
readonly editingDescription: "直接编辑文档";
|
|
@@ -338,6 +338,7 @@ const CATALOGS = {
|
|
|
338
338
|
"editSessionTakenOver": "Another tab, window, or device opened this document for editing, so this session was released. Unsaved local changes are preserved — reopen the doc to continue.",
|
|
339
339
|
"editor": {
|
|
340
340
|
"accessibleName": "Document editor",
|
|
341
|
+
"changeUnavailable": "This change can't be made here yet.",
|
|
341
342
|
"contentLocked": "This part of the document is locked.",
|
|
342
343
|
"editing": "Editing",
|
|
343
344
|
"editingDescription": "Edit the document directly",
|
|
@@ -1000,6 +1001,7 @@ const CATALOGS = {
|
|
|
1000
1001
|
"editSessionTakenOver": "Diese Bearbeitungssitzung wurde an anderer Stelle übernommen.",
|
|
1001
1002
|
"editor": {
|
|
1002
1003
|
"accessibleName": "Dokumenteditor",
|
|
1004
|
+
"changeUnavailable": "Diese Änderung ist hier noch nicht möglich.",
|
|
1003
1005
|
"contentLocked": "Dieser Teil des Dokuments ist gesperrt.",
|
|
1004
1006
|
"editing": "Bearbeiten",
|
|
1005
1007
|
"editingDescription": "Dokument direkt bearbeiten",
|
|
@@ -1662,6 +1664,7 @@ const CATALOGS = {
|
|
|
1662
1664
|
"editSessionTakenOver": "Cette session de modification a été reprise ailleurs.",
|
|
1663
1665
|
"editor": {
|
|
1664
1666
|
"accessibleName": "Éditeur de documents",
|
|
1667
|
+
"changeUnavailable": "Cette modification n'est pas encore possible ici.",
|
|
1665
1668
|
"contentLocked": "Cette partie du document est verrouillée.",
|
|
1666
1669
|
"editing": "Modification",
|
|
1667
1670
|
"editingDescription": "Modifier directement le document",
|
|
@@ -2324,6 +2327,7 @@ const CATALOGS = {
|
|
|
2324
2327
|
"editSessionTakenOver": "Esta sesión de edición se tomó en otro lugar.",
|
|
2325
2328
|
"editor": {
|
|
2326
2329
|
"accessibleName": "Editor de documentos",
|
|
2330
|
+
"changeUnavailable": "Este cambio aún no se puede hacer aquí.",
|
|
2327
2331
|
"contentLocked": "Esta parte del documento está bloqueada.",
|
|
2328
2332
|
"editing": "Edición",
|
|
2329
2333
|
"editingDescription": "Editar el documento directamente",
|
|
@@ -2986,6 +2990,7 @@ const CATALOGS = {
|
|
|
2986
2990
|
"editSessionTakenOver": "Tento dokument byl otevřen k úpravám v jiné kartě, okně nebo zařízení, takže byla tato relace ukončena. Neuložené místní změny zůstávají zachovány — otevřete dokument znovu a pokračujte.",
|
|
2987
2991
|
"editor": {
|
|
2988
2992
|
"accessibleName": "Editor dokumentů",
|
|
2993
|
+
"changeUnavailable": "Tuto změnu zde zatím nelze provést.",
|
|
2989
2994
|
"contentLocked": "Tato část dokumentu je uzamčená.",
|
|
2990
2995
|
"editing": "Úpravy",
|
|
2991
2996
|
"editingDescription": "Upravovat dokument přímo",
|
|
@@ -3648,6 +3653,7 @@ const CATALOGS = {
|
|
|
3648
3653
|
"editSessionTakenOver": "فتح علامة تبويب أو نافذة أو جهاز آخر هذا المستند للتعديل، لذا تم تحرير هذه الجلسة. تم الحفاظ على التغييرات المحلية غير المحفوظة؛ أعد فتح المستند للمتابعة.",
|
|
3649
3654
|
"editor": {
|
|
3650
3655
|
"accessibleName": "محرر المستندات",
|
|
3656
|
+
"changeUnavailable": "لا يمكن إجراء هذا التغيير هنا بعد.",
|
|
3651
3657
|
"contentLocked": "هذا الجزء من المستند مقفل.",
|
|
3652
3658
|
"editing": "تحرير",
|
|
3653
3659
|
"editingDescription": "تحرير المستند مباشرةً",
|
|
@@ -4310,6 +4316,7 @@ const CATALOGS = {
|
|
|
4310
4316
|
"editSessionTakenOver": "See muutmisseanss võeti mujal üle.",
|
|
4311
4317
|
"editor": {
|
|
4312
4318
|
"accessibleName": "Dokumendiredaktor",
|
|
4319
|
+
"changeUnavailable": "Seda muudatust ei saa siin veel teha.",
|
|
4313
4320
|
"contentLocked": "See dokumendi osa on lukustatud.",
|
|
4314
4321
|
"editing": "Redigeerimine",
|
|
4315
4322
|
"editingDescription": "Redigeerige dokumenti otse",
|
|
@@ -4972,6 +4979,7 @@ const CATALOGS = {
|
|
|
4972
4979
|
"editSessionTakenOver": "כרטיסייה, חלון או מכשיר אחר פתחו מסמך זה לעריכה, ולכן הפעלה זו שוחררה. שינויים מקומיים שלא נשמרו נשמרו — פתח מחדש את המסמך כדי להמשיך.",
|
|
4973
4980
|
"editor": {
|
|
4974
4981
|
"accessibleName": "עורך מסמכים",
|
|
4982
|
+
"changeUnavailable": "עדיין לא ניתן לבצע את השינוי הזה כאן.",
|
|
4975
4983
|
"contentLocked": "חלק זה של המסמך נעול.",
|
|
4976
4984
|
"editing": "עריכה",
|
|
4977
4985
|
"editingDescription": "ערוך את המסמך ישירות",
|
|
@@ -5634,6 +5642,7 @@ const CATALOGS = {
|
|
|
5634
5642
|
"editSessionTakenOver": "किसी अन्य टैब, विंडो या डिवाइस ने इस दस्तावेज़ को संपादन के लिए खोला, इसलिए यह सत्र बंद कर दिया गया। सहेजे नहीं गए स्थानीय परिवर्तन सुरक्षित हैं — जारी रखने के लिए दस्तावेज़ फिर से खोलें।",
|
|
5635
5643
|
"editor": {
|
|
5636
5644
|
"accessibleName": "दस्तावेज़ संपादक",
|
|
5645
|
+
"changeUnavailable": "यह बदलाव अभी यहाँ नहीं किया जा सकता।",
|
|
5637
5646
|
"contentLocked": "दस्तावेज़ का यह हिस्सा लॉक है।",
|
|
5638
5647
|
"editing": "संपादन",
|
|
5639
5648
|
"editingDescription": "दस्तावेज़ को सीधे संपादित करें",
|
|
@@ -6296,6 +6305,7 @@ const CATALOGS = {
|
|
|
6296
6305
|
"editSessionTakenOver": "Ezt a szerkesztési munkamenetet máshol vették át.",
|
|
6297
6306
|
"editor": {
|
|
6298
6307
|
"accessibleName": "Dokumentumszerkesztő",
|
|
6308
|
+
"changeUnavailable": "Ez a módosítás itt még nem hajtható végre.",
|
|
6299
6309
|
"contentLocked": "A dokumentum ezen része zárolva van.",
|
|
6300
6310
|
"editing": "Szerkesztés",
|
|
6301
6311
|
"editingDescription": "A dokumentum közvetlen szerkesztése",
|
|
@@ -6958,6 +6968,7 @@ const CATALOGS = {
|
|
|
6958
6968
|
"editSessionTakenOver": "Ši redagavimo sesija buvo perimta kitur.",
|
|
6959
6969
|
"editor": {
|
|
6960
6970
|
"accessibleName": "Dokumentų redaktorius",
|
|
6971
|
+
"changeUnavailable": "Šio pakeitimo čia dar negalima atlikti.",
|
|
6961
6972
|
"contentLocked": "Ši dokumento dalis užrakinta.",
|
|
6962
6973
|
"editing": "Redagavimas",
|
|
6963
6974
|
"editingDescription": "Redaguokite dokumentą tiesiogiai",
|
|
@@ -7620,6 +7631,7 @@ const CATALOGS = {
|
|
|
7620
7631
|
"editSessionTakenOver": "Šo rediģēšanas sesiju pārņēma citur.",
|
|
7621
7632
|
"editor": {
|
|
7622
7633
|
"accessibleName": "Dokumentu redaktors",
|
|
7634
|
+
"changeUnavailable": "Šīs izmaiņas šeit vēl nevar veikt.",
|
|
7623
7635
|
"contentLocked": "Šī dokumenta daļa ir bloķēta.",
|
|
7624
7636
|
"editing": "Rediģēšana",
|
|
7625
7637
|
"editingDescription": "Rediģējiet dokumentu tieši",
|
|
@@ -8282,6 +8294,7 @@ const CATALOGS = {
|
|
|
8282
8294
|
"editSessionTakenOver": "Ta sesja edycji została przejęta gdzie indziej.",
|
|
8283
8295
|
"editor": {
|
|
8284
8296
|
"accessibleName": "Edytor dokumentów",
|
|
8297
|
+
"changeUnavailable": "Tej zmiany nie można jeszcze tu wprowadzić.",
|
|
8285
8298
|
"contentLocked": "Ta część dokumentu jest zablokowana.",
|
|
8286
8299
|
"editing": "Edytowanie",
|
|
8287
8300
|
"editingDescription": "Edytuj dokument bezpośrednio",
|
|
@@ -8944,6 +8957,7 @@ const CATALOGS = {
|
|
|
8944
8957
|
"editSessionTakenOver": "Esta sessão de edição foi assumida em outro lugar.",
|
|
8945
8958
|
"editor": {
|
|
8946
8959
|
"accessibleName": "Editor de documentos",
|
|
8960
|
+
"changeUnavailable": "Ainda não é possível fazer esta alteração aqui.",
|
|
8947
8961
|
"contentLocked": "Esta parte do documento está bloqueada.",
|
|
8948
8962
|
"editing": "Editando",
|
|
8949
8963
|
"editingDescription": "Edite o documento diretamente",
|
|
@@ -9606,6 +9620,7 @@ const CATALOGS = {
|
|
|
9606
9620
|
"editSessionTakenOver": "Túto reláciu úprav prevzalo iné okno.",
|
|
9607
9621
|
"editor": {
|
|
9608
9622
|
"accessibleName": "Editor dokumentov",
|
|
9623
|
+
"changeUnavailable": "Túto zmenu tu zatiaľ nemožno vykonať.",
|
|
9609
9624
|
"contentLocked": "Táto časť dokumentu je uzamknutá.",
|
|
9610
9625
|
"editing": "Úpravy",
|
|
9611
9626
|
"editingDescription": "Upravujte dokument priamo",
|
|
@@ -10268,6 +10283,7 @@ const CATALOGS = {
|
|
|
10268
10283
|
"editSessionTakenOver": "Başka bir sekme, pencere veya cihaz bu belgeyi düzenlemek için açtığından bu oturum sonlandırıldı. Kaydedilmemiş yerel değişiklikler korunur; devam etmek için belgeyi yeniden açın.",
|
|
10269
10284
|
"editor": {
|
|
10270
10285
|
"accessibleName": "Belge düzenleyici",
|
|
10286
|
+
"changeUnavailable": "Bu değişiklik henüz burada yapılamıyor.",
|
|
10271
10287
|
"contentLocked": "Belgenin bu bölümü kilitli.",
|
|
10272
10288
|
"editing": "Düzenleme",
|
|
10273
10289
|
"editingDescription": "Belgeyi doğrudan düzenleyin",
|
|
@@ -10930,6 +10946,7 @@ const CATALOGS = {
|
|
|
10930
10946
|
"editSessionTakenOver": "另一个标签页、窗口或设备已打开此文档进行编辑,因此本会话已释放。未保存的本地更改会保留,请重新打开文档以继续。",
|
|
10931
10947
|
"editor": {
|
|
10932
10948
|
"accessibleName": "文档编辑器",
|
|
10949
|
+
"changeUnavailable": "暂时无法在此处进行此更改。",
|
|
10933
10950
|
"contentLocked": "文档的这一部分已锁定。",
|
|
10934
10951
|
"editing": "编辑",
|
|
10935
10952
|
"editingDescription": "直接编辑文档",
|
|
@@ -337,6 +337,7 @@ const messages = { "folio": {
|
|
|
337
337
|
"editSessionTakenOver": "Tento dokument byl otevřen k úpravám v jiné kartě, okně nebo zařízení, takže byla tato relace ukončena. Neuložené místní změny zůstávají zachovány — otevřete dokument znovu a pokračujte.",
|
|
338
338
|
"editor": {
|
|
339
339
|
"accessibleName": "Editor dokumentů",
|
|
340
|
+
"changeUnavailable": "Tuto změnu zde zatím nelze provést.",
|
|
340
341
|
"contentLocked": "Tato část dokumentu je uzamčená.",
|
|
341
342
|
"editing": "Úpravy",
|
|
342
343
|
"editingDescription": "Upravovat dokument přímo",
|
|
@@ -337,6 +337,7 @@ const messages = { "folio": {
|
|
|
337
337
|
"editSessionTakenOver": "Diese Bearbeitungssitzung wurde an anderer Stelle übernommen.",
|
|
338
338
|
"editor": {
|
|
339
339
|
"accessibleName": "Dokumenteditor",
|
|
340
|
+
"changeUnavailable": "Diese Änderung ist hier noch nicht möglich.",
|
|
340
341
|
"contentLocked": "Dieser Teil des Dokuments ist gesperrt.",
|
|
341
342
|
"editing": "Bearbeiten",
|
|
342
343
|
"editingDescription": "Dokument direkt bearbeiten",
|
|
@@ -337,6 +337,7 @@ const messages = { "folio": {
|
|
|
337
337
|
"editSessionTakenOver": "Another tab, window, or device opened this document for editing, so this session was released. Unsaved local changes are preserved — reopen the doc to continue.",
|
|
338
338
|
"editor": {
|
|
339
339
|
"accessibleName": "Document editor",
|
|
340
|
+
"changeUnavailable": "This change can't be made here yet.",
|
|
340
341
|
"contentLocked": "This part of the document is locked.",
|
|
341
342
|
"editing": "Editing",
|
|
342
343
|
"editingDescription": "Edit the document directly",
|
|
@@ -337,6 +337,7 @@ const messages = { "folio": {
|
|
|
337
337
|
"editSessionTakenOver": "Esta sesión de edición se tomó en otro lugar.",
|
|
338
338
|
"editor": {
|
|
339
339
|
"accessibleName": "Editor de documentos",
|
|
340
|
+
"changeUnavailable": "Este cambio aún no se puede hacer aquí.",
|
|
340
341
|
"contentLocked": "Esta parte del documento está bloqueada.",
|
|
341
342
|
"editing": "Edición",
|
|
342
343
|
"editingDescription": "Editar el documento directamente",
|
|
@@ -337,6 +337,7 @@ const messages = { "folio": {
|
|
|
337
337
|
"editSessionTakenOver": "See muutmisseanss võeti mujal üle.",
|
|
338
338
|
"editor": {
|
|
339
339
|
"accessibleName": "Dokumendiredaktor",
|
|
340
|
+
"changeUnavailable": "Seda muudatust ei saa siin veel teha.",
|
|
340
341
|
"contentLocked": "See dokumendi osa on lukustatud.",
|
|
341
342
|
"editing": "Redigeerimine",
|
|
342
343
|
"editingDescription": "Redigeerige dokumenti otse",
|