@stll/folio-core 0.66.1 → 0.67.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/apply.d.ts +13 -1
- package/dist/ai-edits/apply.js +572 -140
- package/dist/ai-edits/batch-claims.d.ts +26 -0
- package/dist/ai-edits/batch-claims.js +32 -5
- package/dist/ai-edits/clean-text.js +4 -1
- package/dist/ai-edits/headless.d.ts +6 -0
- package/dist/ai-edits/headless.js +25 -3
- package/dist/ai-edits/newListNumbering.d.ts +4 -1
- package/dist/ai-edits/newListNumbering.js +4 -2
- package/dist/ai-edits/read.js +6 -4
- package/dist/ai-edits/snapshot.js +24 -14
- package/dist/ai-edits/table-cell-mutations.js +3 -2
- package/dist/ai-edits/table-row-column-mutations.js +20 -6
- package/dist/ai-edits/types.d.ts +1 -1
- package/dist/controller/canonicalComposition.d.ts +1 -1
- package/dist/controller/canonicalComposition.js +76 -18
- package/dist/controller/canonicalInput.d.ts +0 -1
- package/dist/controller/canonicalInput.js +19 -1
- package/dist/controller/canonicalSession.js +1 -2
- package/dist/controller/hiddenEditorManager.d.ts +6 -0
- package/dist/controller/hiddenEditorManager.js +3 -1
- package/dist/controller/layoutPipeline.d.ts +2 -0
- package/dist/controller/layoutPipeline.js +7 -3
- package/dist/controller/layoutSession.d.ts +1 -0
- package/dist/display-list/build/tablePrimitives.d.ts +3 -1
- package/dist/display-list/build/tablePrimitives.js +29 -13
- package/dist/document-operations.d.ts +13 -1
- package/dist/document-operations.js +11 -4
- package/dist/docx/chartPreview.d.ts +4 -1
- package/dist/docx/chartPreview.js +26 -15
- package/dist/docx/listNumberingInstances.d.ts +6 -4
- package/dist/docx/listNumberingInstances.js +12 -11
- package/dist/docx/mainDocumentPart.d.ts +6 -0
- package/dist/docx/mainDocumentPart.js +65 -0
- package/dist/docx/numberingIds.d.ts +10 -0
- package/dist/docx/numberingIds.js +5 -1
- package/dist/docx/packageParts.d.ts +1 -1
- package/dist/docx/packageParts.js +10 -4
- package/dist/docx/paragraphParser.js +16 -3
- package/dist/docx/paragraphProperties.js +2 -1
- package/dist/docx/previewBudget.d.ts +6 -0
- package/dist/docx/previewBudget.js +7 -1
- package/dist/docx/rezip.js +4 -4
- package/dist/docx/serializer/paragraphSerializer.js +86 -66
- package/dist/docx/shapeAlternateContent.js +19 -0
- package/dist/docx/unzip.js +2 -0
- package/dist/i18n/messages/ar.gen.js +2 -0
- package/dist/i18n/messages/catalogs.gen.d.ts +34 -0
- package/dist/i18n/messages/catalogs.gen.js +34 -0
- package/dist/i18n/messages/cs.gen.js +2 -0
- package/dist/i18n/messages/de.gen.js +2 -0
- package/dist/i18n/messages/en.gen.js +2 -0
- package/dist/i18n/messages/es.gen.js +2 -0
- package/dist/i18n/messages/et.gen.js +2 -0
- package/dist/i18n/messages/fr.gen.js +2 -0
- package/dist/i18n/messages/he.gen.js +2 -0
- package/dist/i18n/messages/hi.gen.js +2 -0
- package/dist/i18n/messages/hu.gen.js +2 -0
- package/dist/i18n/messages/lt.gen.js +2 -0
- package/dist/i18n/messages/lv.gen.js +2 -0
- package/dist/i18n/messages/messages.gen.d.ts +2 -0
- package/dist/i18n/messages/pl.gen.js +2 -0
- package/dist/i18n/messages/pt-BR.gen.js +2 -0
- package/dist/i18n/messages/sk.gen.js +2 -0
- package/dist/i18n/messages/tr.gen.js +2 -0
- package/dist/i18n/messages/zh-CN.gen.js +2 -0
- package/dist/internal/wholeStoryRevisionResolution.d.ts +1 -1
- package/dist/internal/wholeStoryRevisionResolution.js +81 -21
- package/dist/layout-bridge/convert/altChunkPlaceholder.d.ts +10 -0
- package/dist/layout-bridge/convert/altChunkPlaceholder.js +70 -0
- package/dist/layout-bridge/convert/fixedTableColumnWidths.js +2 -1
- package/dist/layout-bridge/convert/flowConversionShared.d.ts +10 -0
- package/dist/layout-bridge/convert/flowConversionShared.js +11 -1
- package/dist/layout-bridge/convert/footnoteLayout.d.ts +1 -0
- package/dist/layout-bridge/convert/footnoteLayout.js +4 -1
- package/dist/layout-bridge/convert/headerFooterLayout.d.ts +1 -0
- package/dist/layout-bridge/convert/headerFooterLayout.js +6 -1
- package/dist/layout-bridge/convert/runMarkFormatting.js +1 -0
- package/dist/layout-bridge/convert/tableConversion.js +6 -2
- package/dist/layout-bridge/convert/toFlowBlocks.js +4 -0
- package/dist/layout-bridge/engine/clickToPosition.js +5 -1
- package/dist/layout-engine/measure/tableCellFloating.d.ts +2 -0
- package/dist/layout-engine/measure/tableCellFloating.js +1 -0
- package/dist/layout-engine/measure/tableVisibleBand.d.ts +16 -0
- package/dist/layout-engine/measure/tableVisibleBand.js +28 -0
- package/dist/layout-engine/tableLayout.js +7 -4
- package/dist/layout-engine/tableRowBreak.d.ts +10 -0
- package/dist/layout-engine/tableRowBreak.js +151 -36
- package/dist/layout-engine/types.d.ts +7 -2
- package/dist/layout-painter/previewSvg.d.ts +8 -0
- package/dist/layout-painter/previewSvg.js +47 -0
- package/dist/layout-painter/renderImage.js +2 -1
- package/dist/layout-painter/renderPage.d.ts +1 -0
- package/dist/layout-painter/renderPage.js +6 -3
- package/dist/layout-painter/renderParagraph.js +3 -2
- package/dist/layout-painter/renderTable.d.ts +5 -2
- package/dist/layout-painter/renderTable.js +33 -19
- package/dist/markdown/renderRuns.js +68 -12
- package/dist/prosemirror/anchoredTextBoxes.d.ts +2 -1
- package/dist/prosemirror/commands/comments.js +22 -7
- package/dist/prosemirror/commands/deleteBesideInlineAnchor.d.ts +9 -0
- package/dist/prosemirror/commands/deleteBesideInlineAnchor.js +36 -0
- package/dist/prosemirror/commands/pastePlainText.d.ts +6 -0
- package/dist/prosemirror/commands/pastePlainText.js +13 -3
- package/dist/prosemirror/commands/resolveAllTableChanges.js +30 -2
- package/dist/prosemirror/commands/resolveParagraphProperties.js +15 -2
- package/dist/prosemirror/commentReferenceIntegrity.d.ts +8 -2
- package/dist/prosemirror/commentReferenceIntegrity.js +19 -4
- package/dist/prosemirror/conversion/fromProseDoc.js +94 -22
- package/dist/prosemirror/conversion/hyphenTextCarriers.d.ts +23 -1
- package/dist/prosemirror/conversion/hyphenTextCarriers.js +46 -1
- package/dist/prosemirror/conversion/toProseDoc.js +21 -13
- package/dist/prosemirror/extensions/StarterKit.js +1 -1
- package/dist/prosemirror/extensions/core/ParagraphExtension.d.ts +3 -1
- package/dist/prosemirror/extensions/core/ParagraphExtension.js +8 -9
- package/dist/prosemirror/extensions/features/AutoBidiDetectionExtension.js +46 -11
- package/dist/prosemirror/extensions/features/BaseKeymapExtension.js +3 -2
- package/dist/prosemirror/extensions/features/BidiShortcutExtension.js +2 -3
- package/dist/prosemirror/extensions/features/ListExtension.js +22 -1
- package/dist/prosemirror/extensions/features/pasteCleanup.js +6 -0
- package/dist/prosemirror/extensions/features/pastedHtmlLists.js +2 -1
- package/dist/prosemirror/extensions/markRegistry.d.ts +3 -1
- package/dist/prosemirror/extensions/markRegistry.js +3 -0
- package/dist/prosemirror/extensions/marks/HyperlinkExtension.js +5 -0
- package/dist/prosemirror/extensions/marks/HyphenElementExtension.d.ts +6 -0
- package/dist/prosemirror/extensions/marks/HyphenElementExtension.js +54 -0
- package/dist/prosemirror/extensions/marks/TextColorExtension.js +1 -1
- package/dist/prosemirror/extensions/marks/TrackedChangeExtensions.js +8 -4
- package/dist/prosemirror/extensions/nodes/BookmarkBoundaryExtension.js +5 -1
- package/dist/prosemirror/extensions/nodes/CommentRangeBoundaryExtension.js +2 -1
- package/dist/prosemirror/extensions/nodes/CommentReferenceExtension.js +4 -3
- package/dist/prosemirror/extensions/nodes/MoveRangeBoundaryExtension.js +2 -1
- package/dist/prosemirror/extensions/nodes/NoteMarkerExtension.js +2 -1
- package/dist/prosemirror/extensions/nodes/RangeAnchorExtension.js +2 -1
- package/dist/prosemirror/extensions/nodes/RenderedPageBreakExtension.js +2 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.js +87 -7
- package/dist/prosemirror/extensions/nodes/inlineAnchorDom.d.ts +11 -0
- package/dist/prosemirror/extensions/nodes/inlineAnchorDom.js +21 -0
- package/dist/prosemirror/fieldRepresentation.js +2 -1
- package/dist/prosemirror/hyphenElementAttrs.d.ts +10 -0
- package/dist/prosemirror/hyphenElementAttrs.js +32 -0
- package/dist/prosemirror/keptRangeBoundaries.d.ts +2 -0
- package/dist/prosemirror/keptRangeBoundaries.js +1 -1
- package/dist/prosemirror/listNumbering.js +3 -2
- package/dist/prosemirror/paragraphIndentation.js +2 -1
- package/dist/prosemirror/paragraphPropertyCarry.d.ts +1 -14
- package/dist/prosemirror/paragraphPropertyCarry.js +4 -28
- package/dist/prosemirror/plugins/suggestionMode.d.ts +0 -8
- package/dist/prosemirror/plugins/suggestionMode.js +194 -27
- package/dist/prosemirror/replacedAnnotations.d.ts +1 -0
- package/dist/prosemirror/replacedAnnotations.js +1 -0
- package/dist/prosemirror/rowGridOmissions.d.ts +11 -0
- package/dist/prosemirror/rowGridOmissions.js +21 -0
- package/dist/prosemirror/sectionCarrier.d.ts +8 -0
- package/dist/prosemirror/sectionCarrier.js +29 -1
- package/dist/prosemirror/styles/paragraphStyleCascade.d.ts +10 -0
- package/dist/prosemirror/styles/paragraphStyleCascade.js +12 -2
- package/dist/prosemirror/tableGridMutation.d.ts +19 -2
- package/dist/prosemirror/tableGridMutation.js +118 -15
- package/dist/prosemirror/tablePositionedBookmarks.d.ts +2 -0
- package/dist/prosemirror/tablePositionedBookmarks.js +80 -0
- package/dist/prosemirror/tableRunIn.d.ts +24 -9
- package/dist/prosemirror/tableRunIn.js +107 -21
- package/dist/prosemirror/textInput.js +3 -1
- package/dist/prosemirror/validation.js +7 -1
- package/dist/utils/createDocument.js +11 -8
- package/dist/utils/formatToStyle.js +2 -2
- package/dist/utils/units.d.ts +5 -0
- package/dist/utils/units.js +6 -1
- package/package.json +3 -3
|
@@ -299,20 +299,20 @@ function hyperlinkAttributes(hyperlink) {
|
|
|
299
299
|
if (hyperlink.docLocation) attrs.push(`w:docLocation="${escapeXmlAttribute(hyperlink.docLocation)}"`);
|
|
300
300
|
return attrs.length > 0 ? ` ${attrs.join(" ")}` : "";
|
|
301
301
|
}
|
|
302
|
-
/** One `w:hyperlink` child, written with the link's own
|
|
303
|
-
function serializeHyperlinkChild(child,
|
|
302
|
+
/** One `w:hyperlink` child, written with the link's own spelling. */
|
|
303
|
+
function serializeHyperlinkChild(child, spelling) {
|
|
304
304
|
switch (child.type) {
|
|
305
|
-
case "run": return serializeInlineRun(child,
|
|
305
|
+
case "run": return serializeInlineRun(child, spelling);
|
|
306
306
|
case "bookmarkStart": return serializeBookmarkMarker(child);
|
|
307
307
|
case "bookmarkEnd": return serializeBookmarkMarker(child);
|
|
308
308
|
case "commentRangeStart":
|
|
309
|
-
case "commentRangeEnd": return serializeParagraphContent(child,
|
|
309
|
+
case "commentRangeEnd": return serializeParagraphContent(child, spelling);
|
|
310
310
|
case "commentReference": return serializeCommentReferenceRun(child.id);
|
|
311
311
|
case "moveFromRangeStart":
|
|
312
312
|
case "moveFromRangeEnd":
|
|
313
313
|
case "moveToRangeStart":
|
|
314
314
|
case "moveToRangeEnd": return serializeMoveRangeMarker(child);
|
|
315
|
-
case "inlineWrapper": return serializeParagraphContent(child,
|
|
315
|
+
case "inlineWrapper": return serializeParagraphContent(child, spelling);
|
|
316
316
|
case "preservedInline": return child.xml;
|
|
317
317
|
default: return child;
|
|
318
318
|
}
|
|
@@ -320,8 +320,8 @@ function serializeHyperlinkChild(child, disposition) {
|
|
|
320
320
|
/**
|
|
321
321
|
* Serialize a hyperlink (w:hyperlink)
|
|
322
322
|
*/
|
|
323
|
-
function serializeHyperlink(hyperlink,
|
|
324
|
-
const childrenXml = hyperlink.children.map((child) => serializeHyperlinkChild(child,
|
|
323
|
+
function serializeHyperlink(hyperlink, spelling = "text") {
|
|
324
|
+
const childrenXml = hyperlink.children.map((child) => serializeHyperlinkChild(child, spelling)).join("");
|
|
325
325
|
return `<w:hyperlink${hyperlinkAttributes(hyperlink)}>${childrenXml}</w:hyperlink>`;
|
|
326
326
|
}
|
|
327
327
|
/** Serialize a simple field without changing its authored OOXML field form. */
|
|
@@ -356,16 +356,25 @@ function serializeComplexField(field) {
|
|
|
356
356
|
}
|
|
357
357
|
const UnrepresentableTrackedCaptureErrorBase = TaggedError("UnrepresentableTrackedCaptureError");
|
|
358
358
|
var UnrepresentableTrackedCaptureError = class extends UnrepresentableTrackedCaptureErrorBase {};
|
|
359
|
+
/** Whether a capture is plain runs whose text a respelling can reach. */
|
|
360
|
+
const isPlainRunCapture = (xml) => /^<w:r[\s>]/u.test(xml) && !/<w:(?:drawing|pict|object)\b|<mc:AlternateContent\b/u.test(xml);
|
|
359
361
|
/**
|
|
360
|
-
* Preserved markup inside a
|
|
361
|
-
*
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
362
|
+
* Preserved markup inside a revision, spelled the way the revision spells its
|
|
363
|
+
* typed runs. Markup captured inside a `w:del` already spells its text as
|
|
364
|
+
* deleted text; markup captured elsewhere and put under one afterwards does
|
|
365
|
+
* not, and markup captured from a move source that spelled its text as
|
|
366
|
+
* deleted text holds the reverse. Plain runs are respelled here, as a typed
|
|
367
|
+
* run is. A folded list-number capture that cannot be respelled into a
|
|
368
|
+
* deletion is refused, rather than written as live text inside it.
|
|
365
369
|
*/
|
|
366
|
-
function
|
|
370
|
+
function serializeTrackedPreservedInline(item, spelling) {
|
|
371
|
+
switch (spelling) {
|
|
372
|
+
case "text": return isPlainRunCapture(item.xml) ? rewriteRunTextAsText(item.xml) : item.xml;
|
|
373
|
+
case "deletedText": break;
|
|
374
|
+
default: return spelling;
|
|
375
|
+
}
|
|
367
376
|
if (!/<w:(?:t|instrText)[\s>]/u.test(item.xml)) return item.xml;
|
|
368
|
-
if (
|
|
377
|
+
if (isPlainRunCapture(item.xml)) return rewriteRunTextAsDeleted(item.xml);
|
|
369
378
|
if (item.foldedListNumber) throw new UnrepresentableTrackedCaptureError({ message: "A folded list-number field holds markup that cannot be written as deleted content." });
|
|
370
379
|
return item.xml;
|
|
371
380
|
}
|
|
@@ -440,29 +449,29 @@ const trackedSimpleFieldContent = (field) => {
|
|
|
440
449
|
* the properties block was re-synthesized from the modeled projection alone,
|
|
441
450
|
* silently dropping every unmodeled feature (and `w:sdtEndPr`) on save.
|
|
442
451
|
*/
|
|
443
|
-
function serializeInlineSdt(sdt,
|
|
452
|
+
function serializeInlineSdt(sdt, spelling = "text") {
|
|
444
453
|
const props = sdt.properties;
|
|
445
454
|
const contentXml = sdt.content.map((item) => {
|
|
446
455
|
switch (item.type) {
|
|
447
|
-
case "run": return serializeInlineRun(item,
|
|
448
|
-
case "hyperlink": return serializeHyperlink(item,
|
|
456
|
+
case "run": return serializeInlineRun(item, spelling);
|
|
457
|
+
case "hyperlink": return serializeHyperlink(item, spelling);
|
|
449
458
|
case "simpleField": return serializeSimpleField(item);
|
|
450
459
|
case "complexField": return serializeComplexField(item);
|
|
451
|
-
case "inlineSdt": return serializeInlineSdt(item,
|
|
452
|
-
case "inlineWrapper": return serializeParagraphContent(item,
|
|
460
|
+
case "inlineSdt": return serializeInlineSdt(item, spelling);
|
|
461
|
+
case "inlineWrapper": return serializeParagraphContent(item, spelling);
|
|
453
462
|
case "bookmarkStart": return serializeBookmarkMarker(item);
|
|
454
463
|
case "bookmarkEnd": return serializeBookmarkMarker(item);
|
|
455
464
|
case "commentRangeStart":
|
|
456
|
-
case "commentRangeEnd": return serializeParagraphContent(item,
|
|
465
|
+
case "commentRangeEnd": return serializeParagraphContent(item, spelling);
|
|
457
466
|
case "commentReference": return serializeCommentReferenceRun(item.id);
|
|
458
467
|
case "moveFromRangeStart":
|
|
459
468
|
case "moveFromRangeEnd":
|
|
460
469
|
case "moveToRangeStart":
|
|
461
470
|
case "moveToRangeEnd": return serializeMoveRangeMarker(item);
|
|
462
|
-
case "insertion":
|
|
463
|
-
case "deletion":
|
|
464
|
-
case "moveFrom":
|
|
465
|
-
case "moveTo": return serializeTrackedChange(
|
|
471
|
+
case "insertion":
|
|
472
|
+
case "deletion":
|
|
473
|
+
case "moveFrom":
|
|
474
|
+
case "moveTo": return serializeTrackedChange(item);
|
|
466
475
|
case "mathEquation": return item.ommlXml || "";
|
|
467
476
|
case "preservedInline": return item.xml;
|
|
468
477
|
default: return item;
|
|
@@ -470,12 +479,35 @@ function serializeInlineSdt(sdt, disposition = "kept") {
|
|
|
470
479
|
}).join("");
|
|
471
480
|
return serializeSdtWrapper(props, contentXml);
|
|
472
481
|
}
|
|
473
|
-
/**
|
|
474
|
-
* Serialize a tracked change wrapper (ins/del/moveFrom/moveTo)
|
|
475
|
-
*/
|
|
482
|
+
/** Respell a run's text and field code as deleted text and field code. */
|
|
476
483
|
function rewriteRunTextAsDeleted(xml) {
|
|
477
484
|
return xml.replace(/<w:t\b/gu, "<w:delText").replace(/<\/w:t>/gu, "</w:delText>").replace(/<w:instrText\b/gu, "<w:delInstrText").replace(/<\/w:instrText>/gu, "</w:delInstrText>");
|
|
478
485
|
}
|
|
486
|
+
/** Respell a run's deleted text and field code as plain text and field code. */
|
|
487
|
+
function rewriteRunTextAsText(xml) {
|
|
488
|
+
return xml.replace(/<w:delText\b/gu, "<w:t").replace(/<\/w:delText>/gu, "</w:t>").replace(/<w:delInstrText\b/gu, "<w:instrText").replace(/<\/w:delInstrText>/gu, "</w:instrText>");
|
|
489
|
+
}
|
|
490
|
+
/** The element each tracked run change is written as. */
|
|
491
|
+
const TRACKED_CHANGE_ELEMENT = {
|
|
492
|
+
insertion: "ins",
|
|
493
|
+
deletion: "del",
|
|
494
|
+
moveFrom: "moveFrom",
|
|
495
|
+
moveTo: "moveTo"
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* The text spelling of the runs each revision holds.
|
|
499
|
+
*
|
|
500
|
+
* ISO/IEC 29500-1 §17.3.3.7 reserves `w:delText` for runs in a deleted region
|
|
501
|
+
* (`w:del`, §17.13.5.14), and `w:delInstrText` likewise. A move source
|
|
502
|
+
* (`w:moveFrom`, §17.13.5.22) is not a deletion: its content moved elsewhere,
|
|
503
|
+
* and the spec's own example spells its run text `w:t`.
|
|
504
|
+
*/
|
|
505
|
+
const TRACKED_CHANGE_TEXT_SPELLING = {
|
|
506
|
+
ins: "text",
|
|
507
|
+
del: "deletedText",
|
|
508
|
+
moveFrom: "text",
|
|
509
|
+
moveTo: "text"
|
|
510
|
+
};
|
|
479
511
|
function serializeDeletedRun(run) {
|
|
480
512
|
const xml = serializeRun(run);
|
|
481
513
|
if (!run.content.some((c) => c.type === "drawing" || c.type === "shape")) return rewriteRunTextAsDeleted(xml);
|
|
@@ -489,22 +521,12 @@ function serializeDeletedRun(run) {
|
|
|
489
521
|
return rewriteRunTextAsDeleted(contentXml);
|
|
490
522
|
}).join("");
|
|
491
523
|
}
|
|
492
|
-
function serializeInlineRun(run,
|
|
493
|
-
return
|
|
494
|
-
}
|
|
495
|
-
function trackedChangeTag(change) {
|
|
496
|
-
switch (change.type) {
|
|
497
|
-
case "insertion": return "ins";
|
|
498
|
-
case "deletion": return "del";
|
|
499
|
-
case "moveFrom": return "moveFrom";
|
|
500
|
-
case "moveTo": return "moveTo";
|
|
501
|
-
}
|
|
524
|
+
function serializeInlineRun(run, spelling) {
|
|
525
|
+
return spelling === "deletedText" ? serializeDeletedRun(run) : serializeRun(run);
|
|
502
526
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
change
|
|
507
|
-
}));
|
|
527
|
+
/** Serialize a tracked change wrapper (ins/del/moveFrom/moveTo). */
|
|
528
|
+
function serializeTrackedChange(change) {
|
|
529
|
+
return emitTrackedInlineSegments(trackedChangeSegments(change));
|
|
508
530
|
}
|
|
509
531
|
const emitTrackedInlineSegments = (segments) => segments.map((segment) => {
|
|
510
532
|
switch (segment.type) {
|
|
@@ -546,9 +568,10 @@ const wrapTrackedInlineSegments = (segments, wrap) => {
|
|
|
546
568
|
flush();
|
|
547
569
|
return result;
|
|
548
570
|
};
|
|
549
|
-
const trackedChangeSegments = (
|
|
550
|
-
const
|
|
551
|
-
const
|
|
571
|
+
const trackedChangeSegments = (change) => {
|
|
572
|
+
const tag = TRACKED_CHANGE_ELEMENT[change.type];
|
|
573
|
+
const spelling = TRACKED_CHANGE_TEXT_SPELLING[tag];
|
|
574
|
+
const segments = walkTrackedInlineContent(change.content, spelling);
|
|
552
575
|
if (change.resolutionJoins !== void 0 && segments.some((segment) => segment.type === "hyperlink")) throw new ReviewResolutionProvenanceError({
|
|
553
576
|
attribute: "resolutionJoins",
|
|
554
577
|
reason: "unrepresentable",
|
|
@@ -560,11 +583,11 @@ const trackedChangeSegments = ({ tag, change }) => {
|
|
|
560
583
|
const UnrepresentableNestedHyperlinkErrorBase = TaggedError("UnrepresentableNestedHyperlinkError");
|
|
561
584
|
var UnrepresentableNestedHyperlinkError = class extends UnrepresentableNestedHyperlinkErrorBase {};
|
|
562
585
|
/** One exhaustive recursive owner for all containers inside a tracked revision. */
|
|
563
|
-
const walkTrackedInlineContent = (content,
|
|
586
|
+
const walkTrackedInlineContent = (content, spelling) => {
|
|
564
587
|
const segments = [];
|
|
565
588
|
for (const item of content) switch (item.type) {
|
|
566
589
|
case "hyperlink": {
|
|
567
|
-
const children = walkTrackedInlineContent(item.children,
|
|
590
|
+
const children = walkTrackedInlineContent(item.children, spelling);
|
|
568
591
|
if (children.some((child) => child.type === "hyperlink")) throw new UnrepresentableNestedHyperlinkError({ message: "A tracked hyperlink cannot contain another hyperlink." });
|
|
569
592
|
segments.push({
|
|
570
593
|
type: "hyperlink",
|
|
@@ -574,31 +597,28 @@ const walkTrackedInlineContent = (content, disposition) => {
|
|
|
574
597
|
break;
|
|
575
598
|
}
|
|
576
599
|
case "simpleField":
|
|
577
|
-
segments.push(...walkTrackedInlineContent(trackedSimpleFieldContent(item),
|
|
600
|
+
segments.push(...walkTrackedInlineContent(trackedSimpleFieldContent(item), spelling));
|
|
578
601
|
break;
|
|
579
602
|
case "insertion":
|
|
580
603
|
case "deletion":
|
|
581
604
|
case "moveFrom":
|
|
582
605
|
case "moveTo":
|
|
583
|
-
segments.push(...trackedChangeSegments(
|
|
584
|
-
tag: trackedChangeTag(item),
|
|
585
|
-
change: item
|
|
586
|
-
}));
|
|
606
|
+
segments.push(...trackedChangeSegments(item));
|
|
587
607
|
break;
|
|
588
608
|
case "inlineWrapper":
|
|
589
|
-
segments.push(...wrapTrackedInlineSegments(walkTrackedInlineContent(item.content,
|
|
609
|
+
segments.push(...wrapTrackedInlineSegments(walkTrackedInlineContent(item.content, spelling), (xml) => serializeInlineWrapperMarkup(item, xml)));
|
|
590
610
|
break;
|
|
591
611
|
case "inlineSdt":
|
|
592
612
|
segments.push({
|
|
593
613
|
type: "plain",
|
|
594
|
-
xml: serializeSdtWrapper(item.properties, emitTrackedInlineSegments(walkTrackedInlineContent(item.content,
|
|
614
|
+
xml: serializeSdtWrapper(item.properties, emitTrackedInlineSegments(walkTrackedInlineContent(item.content, spelling)))
|
|
595
615
|
});
|
|
596
616
|
break;
|
|
597
617
|
case "complexField": {
|
|
598
618
|
const xml = serializeComplexField(item);
|
|
599
619
|
segments.push({
|
|
600
620
|
type: "plain",
|
|
601
|
-
xml:
|
|
621
|
+
xml: spelling === "deletedText" ? rewriteRunTextAsDeleted(xml) : xml
|
|
602
622
|
});
|
|
603
623
|
break;
|
|
604
624
|
}
|
|
@@ -615,7 +635,7 @@ const walkTrackedInlineContent = (content, disposition) => {
|
|
|
615
635
|
}
|
|
616
636
|
segments.push({
|
|
617
637
|
type: "plain",
|
|
618
|
-
xml:
|
|
638
|
+
xml: serializeTrackedPreservedInline(item, spelling)
|
|
619
639
|
});
|
|
620
640
|
break;
|
|
621
641
|
}
|
|
@@ -632,7 +652,7 @@ const walkTrackedInlineContent = (content, disposition) => {
|
|
|
632
652
|
case "commentReference":
|
|
633
653
|
segments.push({
|
|
634
654
|
type: "plain",
|
|
635
|
-
xml: serializeParagraphContent(item,
|
|
655
|
+
xml: serializeParagraphContent(item, spelling)
|
|
636
656
|
});
|
|
637
657
|
break;
|
|
638
658
|
default: return item;
|
|
@@ -694,27 +714,27 @@ function serializeInlineWrapperMarkup(content, inner) {
|
|
|
694
714
|
* `completeCommentReferences` fills it in for a model that arrived without
|
|
695
715
|
* one; a guess made here from one paragraph cannot see the rest of the story.
|
|
696
716
|
*/
|
|
697
|
-
function serializeParagraphContent(content,
|
|
717
|
+
function serializeParagraphContent(content, spelling = "text") {
|
|
698
718
|
switch (content.type) {
|
|
699
|
-
case "run": return serializeInlineRun(content,
|
|
700
|
-
case "hyperlink": return serializeHyperlink(content,
|
|
719
|
+
case "run": return serializeInlineRun(content, spelling);
|
|
720
|
+
case "hyperlink": return serializeHyperlink(content, spelling);
|
|
701
721
|
case "bookmarkStart":
|
|
702
722
|
case "bookmarkEnd": return serializeBookmarkMarker(content);
|
|
703
723
|
case "simpleField": return serializeSimpleField(content);
|
|
704
724
|
case "complexField": return serializeComplexField(content);
|
|
705
|
-
case "inlineSdt": return serializeInlineSdt(content,
|
|
725
|
+
case "inlineSdt": return serializeInlineSdt(content, spelling);
|
|
706
726
|
case "commentRangeStart": return `<w:commentRangeStart ${markupRangeAttributes(content).join(" ")}/>`;
|
|
707
727
|
case "commentRangeEnd": return `<w:commentRangeEnd ${markupRangeAttributes(content).join(" ")}/>`;
|
|
708
728
|
case "commentReference": return serializeCommentReferenceRun(content.id);
|
|
709
|
-
case "insertion":
|
|
710
|
-
case "deletion":
|
|
711
|
-
case "moveFrom":
|
|
712
|
-
case "moveTo": return serializeTrackedChange(
|
|
729
|
+
case "insertion":
|
|
730
|
+
case "deletion":
|
|
731
|
+
case "moveFrom":
|
|
732
|
+
case "moveTo": return serializeTrackedChange(content);
|
|
713
733
|
case "moveFromRangeStart":
|
|
714
734
|
case "moveFromRangeEnd":
|
|
715
735
|
case "moveToRangeStart":
|
|
716
736
|
case "moveToRangeEnd": return serializeMoveRangeMarker(content);
|
|
717
|
-
case "inlineWrapper": return serializeInlineWrapperMarkup(content, content.content.map((child) => serializeParagraphContent(child,
|
|
737
|
+
case "inlineWrapper": return serializeInlineWrapperMarkup(content, content.content.map((child) => serializeParagraphContent(child, spelling)).join(""));
|
|
718
738
|
case "mathEquation": return content.ommlXml || "";
|
|
719
739
|
case "preservedInline": return content.xml;
|
|
720
740
|
default: return "";
|
|
@@ -62,6 +62,23 @@ const descendantsNamed = ({ root, namespaceUris, localName }) => {
|
|
|
62
62
|
return result;
|
|
63
63
|
};
|
|
64
64
|
const branchNamed = (root, localName) => getChildElements(root).find((child) => getNamespaceUri(child) === NAMESPACES.mc && getLocalName(child.name ?? "") === localName);
|
|
65
|
+
/**
|
|
66
|
+
* The freshly written body leans on its document's root for prefixes such as
|
|
67
|
+
* `w14`, which a captured alternate content does not declare for itself.
|
|
68
|
+
*/
|
|
69
|
+
const namespaceDeclarationsFor = (body) => {
|
|
70
|
+
const declarations = {};
|
|
71
|
+
const visit = (element) => {
|
|
72
|
+
for (const name of [element.name ?? "", ...Object.keys(element.attributes ?? {})]) {
|
|
73
|
+
const prefix = getNamespacePrefix(name);
|
|
74
|
+
const uri = prefix !== null && Object.hasOwn(NAMESPACES, prefix) ? NAMESPACES[prefix] : void 0;
|
|
75
|
+
if (prefix !== "xmlns" && uri !== void 0) declarations[`xmlns:${prefix}`] = uri;
|
|
76
|
+
}
|
|
77
|
+
for (const child of element.elements ?? []) visit(child);
|
|
78
|
+
};
|
|
79
|
+
visit(body);
|
|
80
|
+
return declarations;
|
|
81
|
+
};
|
|
65
82
|
const updateAlternateContentText = (capturedXml, drawingXml) => {
|
|
66
83
|
assertXmlResourceLimits({ xml: capturedXml });
|
|
67
84
|
assertXmlResourceLimits({ xml: drawingXml });
|
|
@@ -93,9 +110,11 @@ const updateAlternateContentText = (capturedXml, drawingXml) => {
|
|
|
93
110
|
const qualifiedName = drawingBody.name ?? "txbxContent";
|
|
94
111
|
const prefix = getNamespacePrefix(qualifiedName);
|
|
95
112
|
const declaration = prefix === null ? "xmlns" : `xmlns:${prefix}`;
|
|
113
|
+
const declarations = namespaceDeclarationsFor(drawingBody);
|
|
96
114
|
for (const body of [choiceBody, fallbackBody]) {
|
|
97
115
|
body.name = qualifiedName;
|
|
98
116
|
body.attributes = {
|
|
117
|
+
...declarations,
|
|
99
118
|
...body.attributes,
|
|
100
119
|
[declaration]: NAMESPACES.w
|
|
101
120
|
};
|
package/dist/docx/unzip.js
CHANGED
|
@@ -2,6 +2,7 @@ import { bytesToDataUrl } from "../utils/base64.js";
|
|
|
2
2
|
import { DOCX_COMPRESSION_RATIO_GRACE_BYTES, isRatioBoundedPart } from "./archiveInflation.js";
|
|
3
3
|
import { DOCX_CONTAINER_TYPES, detectDocxContainerType } from "./encryption/containerFormat.js";
|
|
4
4
|
import { openDocxBuffer } from "./encryption/openEncryptedDocx.js";
|
|
5
|
+
import { moveMainDocumentToStandardPath } from "./mainDocumentPart.js";
|
|
5
6
|
import { RASTER_MIME_TYPES, detectRasterMimeType } from "./rasterMime.js";
|
|
6
7
|
import { decodeXmlBytes } from "./xmlEncoding.js";
|
|
7
8
|
import { Result } from "better-result";
|
|
@@ -116,6 +117,7 @@ async function unzipDocx(buffer, options = {}, { verifyUnreadEntries = true } =
|
|
|
116
117
|
if (zipBuffer.byteLength > limits.maxInputBytes) throw new DocxSecurityError("DOCX file exceeds the maximum allowed size");
|
|
117
118
|
const wasEncrypted = containerType === DOCX_CONTAINER_TYPES.CFB;
|
|
118
119
|
const loaded = await loadDocxZip(zipBuffer, limits);
|
|
120
|
+
if (await moveMainDocumentToStandardPath(loaded.zip)) loaded.buffer = (await loaded.zip.generate()).slice().buffer;
|
|
119
121
|
if (loaded.buffer.byteLength > limits.maxInputBytes) throw new DocxSecurityError("DOCX file exceeds the maximum allowed size");
|
|
120
122
|
const { zip } = loaded;
|
|
121
123
|
const entries = zip.entries();
|
|
@@ -65,6 +65,7 @@ const messages = { "folio": {
|
|
|
65
65
|
"contentControlDateAriaLabel": "اختر تاريخًا",
|
|
66
66
|
"contentControlDropdownAriaLabel": "خيارات القائمة المنسدلة",
|
|
67
67
|
"contentControlDropdownNoOptions": "لا توجد خيارات",
|
|
68
|
+
"contentNotDisplayed": "المحتوى غير معروض",
|
|
68
69
|
"contextMenu": {
|
|
69
70
|
"continueNumbering": "متابعة الترقيم",
|
|
70
71
|
"copy": "نسخ",
|
|
@@ -335,6 +336,7 @@ const messages = { "folio": {
|
|
|
335
336
|
"editSaveFailedTitle": "تعذّر حفظ ملف DOCX",
|
|
336
337
|
"editSessionTakenOver": "فتح علامة تبويب أو نافذة أو جهاز آخر هذا المستند للتعديل، لذا تم تحرير هذه الجلسة. تم الحفاظ على التغييرات المحلية غير المحفوظة؛ أعد فتح المستند للمتابعة.",
|
|
337
338
|
"editor": {
|
|
339
|
+
"accessibleName": "محرر المستندات",
|
|
338
340
|
"editing": "تحرير",
|
|
339
341
|
"editingDescription": "تحرير المستند مباشرةً",
|
|
340
342
|
"outlineDepthAll": "كل المستويات",
|
|
@@ -66,6 +66,7 @@ export declare const CATALOGS: {
|
|
|
66
66
|
readonly contentControlDateAriaLabel: "Pick a date";
|
|
67
67
|
readonly contentControlDropdownAriaLabel: "Dropdown options";
|
|
68
68
|
readonly contentControlDropdownNoOptions: "No options";
|
|
69
|
+
readonly contentNotDisplayed: "Content not displayed";
|
|
69
70
|
readonly contextMenu: {
|
|
70
71
|
readonly continueNumbering: "Continue Numbering";
|
|
71
72
|
readonly copy: "Copy";
|
|
@@ -336,6 +337,7 @@ export declare const CATALOGS: {
|
|
|
336
337
|
readonly editSaveFailedTitle: "Could not save DOCX";
|
|
337
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.";
|
|
338
339
|
readonly editor: {
|
|
340
|
+
readonly accessibleName: "Document editor";
|
|
339
341
|
readonly editing: "Editing";
|
|
340
342
|
readonly editingDescription: "Edit the document directly";
|
|
341
343
|
readonly outlineDepthAll: "All levels";
|
|
@@ -726,6 +728,7 @@ export declare const CATALOGS: {
|
|
|
726
728
|
readonly contentControlDateAriaLabel: "Datum auswählen";
|
|
727
729
|
readonly contentControlDropdownAriaLabel: "Dropdown-Optionen";
|
|
728
730
|
readonly contentControlDropdownNoOptions: "Keine Optionen";
|
|
731
|
+
readonly contentNotDisplayed: "Inhalt wird nicht angezeigt";
|
|
729
732
|
readonly contextMenu: {
|
|
730
733
|
readonly continueNumbering: "Nummerierung fortsetzen";
|
|
731
734
|
readonly copy: "Kopieren";
|
|
@@ -996,6 +999,7 @@ export declare const CATALOGS: {
|
|
|
996
999
|
readonly editSaveFailedTitle: "DOCX-Datei konnte nicht gespeichert werden";
|
|
997
1000
|
readonly editSessionTakenOver: "Diese Bearbeitungssitzung wurde an anderer Stelle übernommen.";
|
|
998
1001
|
readonly editor: {
|
|
1002
|
+
readonly accessibleName: "Dokumenteditor";
|
|
999
1003
|
readonly editing: "Bearbeiten";
|
|
1000
1004
|
readonly editingDescription: "Dokument direkt bearbeiten";
|
|
1001
1005
|
readonly outlineDepthAll: "Alle Ebenen";
|
|
@@ -1386,6 +1390,7 @@ export declare const CATALOGS: {
|
|
|
1386
1390
|
readonly contentControlDateAriaLabel: "Choisir une date";
|
|
1387
1391
|
readonly contentControlDropdownAriaLabel: "Options de la liste déroulante";
|
|
1388
1392
|
readonly contentControlDropdownNoOptions: "Aucune option";
|
|
1393
|
+
readonly contentNotDisplayed: "Contenu non affiché";
|
|
1389
1394
|
readonly contextMenu: {
|
|
1390
1395
|
readonly continueNumbering: "Continuer la numérotation";
|
|
1391
1396
|
readonly copy: "Copier";
|
|
@@ -1656,6 +1661,7 @@ export declare const CATALOGS: {
|
|
|
1656
1661
|
readonly editSaveFailedTitle: "Impossible d’enregistrer le DOCX";
|
|
1657
1662
|
readonly editSessionTakenOver: "Cette session de modification a été reprise ailleurs.";
|
|
1658
1663
|
readonly editor: {
|
|
1664
|
+
readonly accessibleName: "Éditeur de documents";
|
|
1659
1665
|
readonly editing: "Modification";
|
|
1660
1666
|
readonly editingDescription: "Modifier directement le document";
|
|
1661
1667
|
readonly outlineDepthAll: "Tous les niveaux";
|
|
@@ -2046,6 +2052,7 @@ export declare const CATALOGS: {
|
|
|
2046
2052
|
readonly contentControlDateAriaLabel: "Elegir una fecha";
|
|
2047
2053
|
readonly contentControlDropdownAriaLabel: "Opciones desplegables";
|
|
2048
2054
|
readonly contentControlDropdownNoOptions: "Sin opciones";
|
|
2055
|
+
readonly contentNotDisplayed: "Contenido no mostrado";
|
|
2049
2056
|
readonly contextMenu: {
|
|
2050
2057
|
readonly continueNumbering: "Continuar numeración";
|
|
2051
2058
|
readonly copy: "Copiar";
|
|
@@ -2316,6 +2323,7 @@ export declare const CATALOGS: {
|
|
|
2316
2323
|
readonly editSaveFailedTitle: "No se pudo guardar el DOCX";
|
|
2317
2324
|
readonly editSessionTakenOver: "Esta sesión de edición se tomó en otro lugar.";
|
|
2318
2325
|
readonly editor: {
|
|
2326
|
+
readonly accessibleName: "Editor de documentos";
|
|
2319
2327
|
readonly editing: "Edición";
|
|
2320
2328
|
readonly editingDescription: "Editar el documento directamente";
|
|
2321
2329
|
readonly outlineDepthAll: "Todos los niveles";
|
|
@@ -2706,6 +2714,7 @@ export declare const CATALOGS: {
|
|
|
2706
2714
|
readonly contentControlDateAriaLabel: "Vyberte datum";
|
|
2707
2715
|
readonly contentControlDropdownAriaLabel: "Možnosti rozbalovací nabídky";
|
|
2708
2716
|
readonly contentControlDropdownNoOptions: "Žádné možnosti";
|
|
2717
|
+
readonly contentNotDisplayed: "Obsah se nezobrazuje";
|
|
2709
2718
|
readonly contextMenu: {
|
|
2710
2719
|
readonly continueNumbering: "Pokračovat v číslování";
|
|
2711
2720
|
readonly copy: "Kopírovat";
|
|
@@ -2976,6 +2985,7 @@ export declare const CATALOGS: {
|
|
|
2976
2985
|
readonly editSaveFailedTitle: "DOCX se nepodařilo uložit";
|
|
2977
2986
|
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.";
|
|
2978
2987
|
readonly editor: {
|
|
2988
|
+
readonly accessibleName: "Editor dokumentů";
|
|
2979
2989
|
readonly editing: "Úpravy";
|
|
2980
2990
|
readonly editingDescription: "Upravovat dokument přímo";
|
|
2981
2991
|
readonly outlineDepthAll: "Vše";
|
|
@@ -3366,6 +3376,7 @@ export declare const CATALOGS: {
|
|
|
3366
3376
|
readonly contentControlDateAriaLabel: "اختر تاريخًا";
|
|
3367
3377
|
readonly contentControlDropdownAriaLabel: "خيارات القائمة المنسدلة";
|
|
3368
3378
|
readonly contentControlDropdownNoOptions: "لا توجد خيارات";
|
|
3379
|
+
readonly contentNotDisplayed: "المحتوى غير معروض";
|
|
3369
3380
|
readonly contextMenu: {
|
|
3370
3381
|
readonly continueNumbering: "متابعة الترقيم";
|
|
3371
3382
|
readonly copy: "نسخ";
|
|
@@ -3636,6 +3647,7 @@ export declare const CATALOGS: {
|
|
|
3636
3647
|
readonly editSaveFailedTitle: "تعذّر حفظ ملف DOCX";
|
|
3637
3648
|
readonly editSessionTakenOver: "فتح علامة تبويب أو نافذة أو جهاز آخر هذا المستند للتعديل، لذا تم تحرير هذه الجلسة. تم الحفاظ على التغييرات المحلية غير المحفوظة؛ أعد فتح المستند للمتابعة.";
|
|
3638
3649
|
readonly editor: {
|
|
3650
|
+
readonly accessibleName: "محرر المستندات";
|
|
3639
3651
|
readonly editing: "تحرير";
|
|
3640
3652
|
readonly editingDescription: "تحرير المستند مباشرةً";
|
|
3641
3653
|
readonly outlineDepthAll: "كل المستويات";
|
|
@@ -4026,6 +4038,7 @@ export declare const CATALOGS: {
|
|
|
4026
4038
|
readonly contentControlDateAriaLabel: "Vali kuupäev";
|
|
4027
4039
|
readonly contentControlDropdownAriaLabel: "Rippmenüü valikud";
|
|
4028
4040
|
readonly contentControlDropdownNoOptions: "Valikuid pole";
|
|
4041
|
+
readonly contentNotDisplayed: "Sisu ei kuvata";
|
|
4029
4042
|
readonly contextMenu: {
|
|
4030
4043
|
readonly continueNumbering: "Jätka nummerdamist";
|
|
4031
4044
|
readonly copy: "Kopeeri";
|
|
@@ -4296,6 +4309,7 @@ export declare const CATALOGS: {
|
|
|
4296
4309
|
readonly editSaveFailedTitle: "DOCX-i ei saanud salvestada";
|
|
4297
4310
|
readonly editSessionTakenOver: "See muutmisseanss võeti mujal üle.";
|
|
4298
4311
|
readonly editor: {
|
|
4312
|
+
readonly accessibleName: "Dokumendiredaktor";
|
|
4299
4313
|
readonly editing: "Redigeerimine";
|
|
4300
4314
|
readonly editingDescription: "Redigeerige dokumenti otse";
|
|
4301
4315
|
readonly outlineDepthAll: "Kõik tasemed";
|
|
@@ -4686,6 +4700,7 @@ export declare const CATALOGS: {
|
|
|
4686
4700
|
readonly contentControlDateAriaLabel: "בחר תאריך";
|
|
4687
4701
|
readonly contentControlDropdownAriaLabel: "אפשרויות רשימה נפתחת";
|
|
4688
4702
|
readonly contentControlDropdownNoOptions: "אין אפשרויות";
|
|
4703
|
+
readonly contentNotDisplayed: "התוכן אינו מוצג";
|
|
4689
4704
|
readonly contextMenu: {
|
|
4690
4705
|
readonly continueNumbering: "המשך מספור";
|
|
4691
4706
|
readonly copy: "העתק";
|
|
@@ -4956,6 +4971,7 @@ export declare const CATALOGS: {
|
|
|
4956
4971
|
readonly editSaveFailedTitle: "לא ניתן לשמור את ה-DOCX";
|
|
4957
4972
|
readonly editSessionTakenOver: "כרטיסייה, חלון או מכשיר אחר פתחו מסמך זה לעריכה, ולכן הפעלה זו שוחררה. שינויים מקומיים שלא נשמרו נשמרו — פתח מחדש את המסמך כדי להמשיך.";
|
|
4958
4973
|
readonly editor: {
|
|
4974
|
+
readonly accessibleName: "עורך מסמכים";
|
|
4959
4975
|
readonly editing: "עריכה";
|
|
4960
4976
|
readonly editingDescription: "ערוך את המסמך ישירות";
|
|
4961
4977
|
readonly outlineDepthAll: "כל הרמות";
|
|
@@ -5346,6 +5362,7 @@ export declare const CATALOGS: {
|
|
|
5346
5362
|
readonly contentControlDateAriaLabel: "दिनांक चुनें";
|
|
5347
5363
|
readonly contentControlDropdownAriaLabel: "ड्रॉपडाउन विकल्प";
|
|
5348
5364
|
readonly contentControlDropdownNoOptions: "कोई विकल्प नहीं";
|
|
5365
|
+
readonly contentNotDisplayed: "सामग्री प्रदर्शित नहीं की गई";
|
|
5349
5366
|
readonly contextMenu: {
|
|
5350
5367
|
readonly continueNumbering: "क्रमांकन जारी रखें";
|
|
5351
5368
|
readonly copy: "कॉपी करें";
|
|
@@ -5616,6 +5633,7 @@ export declare const CATALOGS: {
|
|
|
5616
5633
|
readonly editSaveFailedTitle: "DOCX सहेजा नहीं जा सका";
|
|
5617
5634
|
readonly editSessionTakenOver: "किसी अन्य टैब, विंडो या डिवाइस ने इस दस्तावेज़ को संपादन के लिए खोला, इसलिए यह सत्र बंद कर दिया गया। सहेजे नहीं गए स्थानीय परिवर्तन सुरक्षित हैं — जारी रखने के लिए दस्तावेज़ फिर से खोलें।";
|
|
5618
5635
|
readonly editor: {
|
|
5636
|
+
readonly accessibleName: "दस्तावेज़ संपादक";
|
|
5619
5637
|
readonly editing: "संपादन";
|
|
5620
5638
|
readonly editingDescription: "दस्तावेज़ को सीधे संपादित करें";
|
|
5621
5639
|
readonly outlineDepthAll: "सभी स्तर";
|
|
@@ -6006,6 +6024,7 @@ export declare const CATALOGS: {
|
|
|
6006
6024
|
readonly contentControlDateAriaLabel: "Dátum kiválasztása";
|
|
6007
6025
|
readonly contentControlDropdownAriaLabel: "Legördülő lehetőségek";
|
|
6008
6026
|
readonly contentControlDropdownNoOptions: "Nincsenek lehetőségek";
|
|
6027
|
+
readonly contentNotDisplayed: "A tartalom nem jelenik meg";
|
|
6009
6028
|
readonly contextMenu: {
|
|
6010
6029
|
readonly continueNumbering: "Számozás folytatása";
|
|
6011
6030
|
readonly copy: "Másolás";
|
|
@@ -6276,6 +6295,7 @@ export declare const CATALOGS: {
|
|
|
6276
6295
|
readonly editSaveFailedTitle: "A DOCX nem menthető";
|
|
6277
6296
|
readonly editSessionTakenOver: "Ezt a szerkesztési munkamenetet máshol vették át.";
|
|
6278
6297
|
readonly editor: {
|
|
6298
|
+
readonly accessibleName: "Dokumentumszerkesztő";
|
|
6279
6299
|
readonly editing: "Szerkesztés";
|
|
6280
6300
|
readonly editingDescription: "A dokumentum közvetlen szerkesztése";
|
|
6281
6301
|
readonly outlineDepthAll: "Minden szint";
|
|
@@ -6666,6 +6686,7 @@ export declare const CATALOGS: {
|
|
|
6666
6686
|
readonly contentControlDateAriaLabel: "Pasirinkite datą";
|
|
6667
6687
|
readonly contentControlDropdownAriaLabel: "Išskleidžiamojo sąrašo parinktys";
|
|
6668
6688
|
readonly contentControlDropdownNoOptions: "Parinkčių nėra";
|
|
6689
|
+
readonly contentNotDisplayed: "Turinys nerodomas";
|
|
6669
6690
|
readonly contextMenu: {
|
|
6670
6691
|
readonly continueNumbering: "Tęsti numeravimą";
|
|
6671
6692
|
readonly copy: "Kopijuoti";
|
|
@@ -6936,6 +6957,7 @@ export declare const CATALOGS: {
|
|
|
6936
6957
|
readonly editSaveFailedTitle: "Nepavyko išsaugoti DOCX";
|
|
6937
6958
|
readonly editSessionTakenOver: "Ši redagavimo sesija buvo perimta kitur.";
|
|
6938
6959
|
readonly editor: {
|
|
6960
|
+
readonly accessibleName: "Dokumentų redaktorius";
|
|
6939
6961
|
readonly editing: "Redagavimas";
|
|
6940
6962
|
readonly editingDescription: "Redaguokite dokumentą tiesiogiai";
|
|
6941
6963
|
readonly outlineDepthAll: "Visi lygiai";
|
|
@@ -7326,6 +7348,7 @@ export declare const CATALOGS: {
|
|
|
7326
7348
|
readonly contentControlDateAriaLabel: "Izvēlieties datumu";
|
|
7327
7349
|
readonly contentControlDropdownAriaLabel: "Nolaižamā saraksta opcijas";
|
|
7328
7350
|
readonly contentControlDropdownNoOptions: "Nav opciju";
|
|
7351
|
+
readonly contentNotDisplayed: "Saturs netiek rādīts";
|
|
7329
7352
|
readonly contextMenu: {
|
|
7330
7353
|
readonly continueNumbering: "Turpināt numerāciju";
|
|
7331
7354
|
readonly copy: "Kopēt";
|
|
@@ -7596,6 +7619,7 @@ export declare const CATALOGS: {
|
|
|
7596
7619
|
readonly editSaveFailedTitle: "Neizdevās saglabāt DOCX";
|
|
7597
7620
|
readonly editSessionTakenOver: "Šo rediģēšanas sesiju pārņēma citur.";
|
|
7598
7621
|
readonly editor: {
|
|
7622
|
+
readonly accessibleName: "Dokumentu redaktors";
|
|
7599
7623
|
readonly editing: "Rediģēšana";
|
|
7600
7624
|
readonly editingDescription: "Rediģējiet dokumentu tieši";
|
|
7601
7625
|
readonly outlineDepthAll: "Visi līmeņi";
|
|
@@ -7986,6 +8010,7 @@ export declare const CATALOGS: {
|
|
|
7986
8010
|
readonly contentControlDateAriaLabel: "Wybierz datę";
|
|
7987
8011
|
readonly contentControlDropdownAriaLabel: "Opcje listy rozwijanej";
|
|
7988
8012
|
readonly contentControlDropdownNoOptions: "Brak opcji";
|
|
8013
|
+
readonly contentNotDisplayed: "Treść nie jest wyświetlana";
|
|
7989
8014
|
readonly contextMenu: {
|
|
7990
8015
|
readonly continueNumbering: "Kontynuuj numerowanie";
|
|
7991
8016
|
readonly copy: "Kopiuj";
|
|
@@ -8256,6 +8281,7 @@ export declare const CATALOGS: {
|
|
|
8256
8281
|
readonly editSaveFailedTitle: "Nie udało się zapisać pliku DOCX";
|
|
8257
8282
|
readonly editSessionTakenOver: "Ta sesja edycji została przejęta gdzie indziej.";
|
|
8258
8283
|
readonly editor: {
|
|
8284
|
+
readonly accessibleName: "Edytor dokumentów";
|
|
8259
8285
|
readonly editing: "Edytowanie";
|
|
8260
8286
|
readonly editingDescription: "Edytuj dokument bezpośrednio";
|
|
8261
8287
|
readonly outlineDepthAll: "Wszystkie poziomy";
|
|
@@ -8646,6 +8672,7 @@ export declare const CATALOGS: {
|
|
|
8646
8672
|
readonly contentControlDateAriaLabel: "Escolher uma data";
|
|
8647
8673
|
readonly contentControlDropdownAriaLabel: "Opções da lista suspensa";
|
|
8648
8674
|
readonly contentControlDropdownNoOptions: "Nenhuma opção";
|
|
8675
|
+
readonly contentNotDisplayed: "Conteúdo não exibido";
|
|
8649
8676
|
readonly contextMenu: {
|
|
8650
8677
|
readonly continueNumbering: "Continuar numeração";
|
|
8651
8678
|
readonly copy: "Copiar";
|
|
@@ -8916,6 +8943,7 @@ export declare const CATALOGS: {
|
|
|
8916
8943
|
readonly editSaveFailedTitle: "Não foi possível salvar DOCX";
|
|
8917
8944
|
readonly editSessionTakenOver: "Esta sessão de edição foi assumida em outro lugar.";
|
|
8918
8945
|
readonly editor: {
|
|
8946
|
+
readonly accessibleName: "Editor de documentos";
|
|
8919
8947
|
readonly editing: "Editando";
|
|
8920
8948
|
readonly editingDescription: "Edite o documento diretamente";
|
|
8921
8949
|
readonly outlineDepthAll: "Todos os níveis";
|
|
@@ -9306,6 +9334,7 @@ export declare const CATALOGS: {
|
|
|
9306
9334
|
readonly contentControlDateAriaLabel: "Vyberte dátum";
|
|
9307
9335
|
readonly contentControlDropdownAriaLabel: "Možnosti rozbaľovacieho zoznamu";
|
|
9308
9336
|
readonly contentControlDropdownNoOptions: "Žiadne možnosti";
|
|
9337
|
+
readonly contentNotDisplayed: "Obsah sa nezobrazuje";
|
|
9309
9338
|
readonly contextMenu: {
|
|
9310
9339
|
readonly continueNumbering: "Pokračovať v číslovaní";
|
|
9311
9340
|
readonly copy: "Kopírovať";
|
|
@@ -9576,6 +9605,7 @@ export declare const CATALOGS: {
|
|
|
9576
9605
|
readonly editSaveFailedTitle: "DOCX sa nepodarilo uložiť";
|
|
9577
9606
|
readonly editSessionTakenOver: "Túto reláciu úprav prevzalo iné okno.";
|
|
9578
9607
|
readonly editor: {
|
|
9608
|
+
readonly accessibleName: "Editor dokumentov";
|
|
9579
9609
|
readonly editing: "Úpravy";
|
|
9580
9610
|
readonly editingDescription: "Upravujte dokument priamo";
|
|
9581
9611
|
readonly outlineDepthAll: "Všetky úrovne";
|
|
@@ -9966,6 +9996,7 @@ export declare const CATALOGS: {
|
|
|
9966
9996
|
readonly contentControlDateAriaLabel: "Tarih seçin";
|
|
9967
9997
|
readonly contentControlDropdownAriaLabel: "Açılan liste seçenekleri";
|
|
9968
9998
|
readonly contentControlDropdownNoOptions: "Seçenek yok";
|
|
9999
|
+
readonly contentNotDisplayed: "İçerik görüntülenmiyor";
|
|
9969
10000
|
readonly contextMenu: {
|
|
9970
10001
|
readonly continueNumbering: "Numaralandırmaya Devam Et";
|
|
9971
10002
|
readonly copy: "Kopyala";
|
|
@@ -10236,6 +10267,7 @@ export declare const CATALOGS: {
|
|
|
10236
10267
|
readonly editSaveFailedTitle: "DOCX kaydedilemedi";
|
|
10237
10268
|
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.";
|
|
10238
10269
|
readonly editor: {
|
|
10270
|
+
readonly accessibleName: "Belge düzenleyici";
|
|
10239
10271
|
readonly editing: "Düzenleme";
|
|
10240
10272
|
readonly editingDescription: "Belgeyi doğrudan düzenleyin";
|
|
10241
10273
|
readonly outlineDepthAll: "Tüm düzeyler";
|
|
@@ -10626,6 +10658,7 @@ export declare const CATALOGS: {
|
|
|
10626
10658
|
readonly contentControlDateAriaLabel: "选择日期";
|
|
10627
10659
|
readonly contentControlDropdownAriaLabel: "下拉选项";
|
|
10628
10660
|
readonly contentControlDropdownNoOptions: "没有选项";
|
|
10661
|
+
readonly contentNotDisplayed: "内容未显示";
|
|
10629
10662
|
readonly contextMenu: {
|
|
10630
10663
|
readonly continueNumbering: "继续编号";
|
|
10631
10664
|
readonly copy: "复制";
|
|
@@ -10896,6 +10929,7 @@ export declare const CATALOGS: {
|
|
|
10896
10929
|
readonly editSaveFailedTitle: "无法保存 DOCX";
|
|
10897
10930
|
readonly editSessionTakenOver: "另一个标签页、窗口或设备已打开此文档进行编辑,因此本会话已释放。未保存的本地更改会保留,请重新打开文档以继续。";
|
|
10898
10931
|
readonly editor: {
|
|
10932
|
+
readonly accessibleName: "文档编辑器";
|
|
10899
10933
|
readonly editing: "编辑";
|
|
10900
10934
|
readonly editingDescription: "直接编辑文档";
|
|
10901
10935
|
readonly outlineDepthAll: "所有级别";
|