@stll/folio-core 0.61.0 → 0.63.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/README.md +17 -6
- package/dist/ai-edits/apply.d.ts +40 -10
- package/dist/ai-edits/apply.js +563 -219
- package/dist/ai-edits/batch-claims.d.ts +13 -4
- package/dist/ai-edits/batch-claims.js +6 -6
- package/dist/ai-edits/block-identity.d.ts +3 -4
- package/dist/ai-edits/block-identity.js +15 -1
- package/dist/ai-edits/blockRange.d.ts +7 -7
- package/dist/ai-edits/blockRange.js +2 -1
- package/dist/ai-edits/character-boundaries.d.ts +5 -6
- package/dist/ai-edits/clean-text.d.ts +8 -8
- package/dist/ai-edits/comment-lifecycle.d.ts +15 -6
- package/dist/ai-edits/comment-lifecycle.js +74 -23
- package/dist/ai-edits/headless.d.ts +39 -37
- package/dist/ai-edits/headless.js +160 -59
- package/dist/ai-edits/index.d.ts +2 -1
- package/dist/ai-edits/index.js +2 -1
- package/dist/ai-edits/inline-emphasis.d.ts +5 -6
- package/dist/ai-edits/minimal-replacement.d.ts +12 -13
- package/dist/ai-edits/newListNumbering.d.ts +16 -3
- package/dist/ai-edits/newListNumbering.js +97 -34
- package/dist/ai-edits/note-references.d.ts +14 -14
- package/dist/ai-edits/note-story-inventory.d.ts +2 -2
- package/dist/ai-edits/pending-suggestions.d.ts +8 -8
- package/dist/ai-edits/pending-suggestions.js +5 -1
- package/dist/ai-edits/read.d.ts +10 -11
- package/dist/ai-edits/read.js +6 -0
- package/dist/ai-edits/referenceClassification.d.ts +2 -2
- package/dist/ai-edits/removed-blocks.d.ts +20 -0
- package/dist/ai-edits/removed-blocks.js +69 -0
- package/dist/ai-edits/result-validation.d.ts +4 -5
- package/dist/ai-edits/result-validation.js +4 -3
- package/dist/ai-edits/revisionStretches.d.ts +3 -3
- package/dist/ai-edits/revisionStretches.js +17 -0
- package/dist/ai-edits/scoped-reading.d.ts +3 -4
- package/dist/ai-edits/snapshot.d.ts +24 -23
- package/dist/ai-edits/snapshot.js +44 -30
- package/dist/ai-edits/table-cell-mutations.d.ts +6 -6
- package/dist/ai-edits/table-cell-mutations.js +7 -4
- package/dist/ai-edits/table-geometry.d.ts +6 -6
- package/dist/ai-edits/table-mutation-plan.d.ts +5 -5
- package/dist/ai-edits/table-mutation-plan.js +1 -4
- package/dist/ai-edits/table-row-column-mutations.d.ts +16 -16
- package/dist/ai-edits/table-targets.d.ts +8 -9
- package/dist/ai-edits/table-template.d.ts +6 -6
- package/dist/ai-edits/types.d.ts +48 -44
- package/dist/ai-edits/word-diff.d.ts +12 -13
- package/dist/ai-edits/word-diff.js +23 -21
- package/dist/ai-suggestions/apply.d.ts +3 -3
- package/dist/ai-suggestions/apply.js +0 -12
- package/dist/ai-suggestions/conflict.d.ts +4 -5
- package/dist/ai-suggestions/conflict.js +3 -1
- package/dist/ai-suggestions/text-positions.d.ts +3 -4
- package/dist/ai-suggestions/types.d.ts +13 -14
- package/dist/compare/column-alignment.d.ts +4 -5
- package/dist/compare/compare.d.ts +12 -12
- package/dist/compare/compare.js +2 -1
- package/dist/compare/content-alignment.d.ts +16 -16
- package/dist/compare/content-alignment.js +29 -25
- package/dist/compare/content-types.d.ts +23 -24
- package/dist/compare/content.d.ts +23 -23
- package/dist/compare/formatting.d.ts +2 -2
- package/dist/compare/import-style-closure.d.ts +2 -2
- package/dist/compare/inline-atom-resources.d.ts +2 -3
- package/dist/compare/inline-atoms.d.ts +6 -7
- package/dist/compare/inline-provenance.d.ts +6 -7
- package/dist/compare/inline-provenance.js +22 -20
- package/dist/compare/inserted-resource-snapshot.d.ts +3 -3
- package/dist/compare/plan.d.ts +5 -6
- package/dist/compare/plan.js +5 -6
- package/dist/compare/reproducible-package.d.ts +2 -3
- package/dist/compare/reproducible-package.js +1 -1
- package/dist/compare/scenario.d.ts +9 -9
- package/dist/compare/section-boundary-properties.d.ts +6 -6
- package/dist/compare/section-boundary-properties.js +4 -4
- package/dist/compare/style-resources.d.ts +5 -6
- package/dist/compare/types.d.ts +21 -21
- package/dist/compare/verification.d.ts +11 -11
- package/dist/content-controls/checkboxDisplay.d.ts +2 -2
- package/dist/content-controls/checkboxDisplay.js +2 -1
- package/dist/content-controls/errors.d.ts +4 -4
- package/dist/content-controls/findContentControls.d.ts +7 -8
- package/dist/content-controls/mutateContentControls.d.ts +17 -6
- package/dist/content-controls/mutateContentControls.js +3 -2
- package/dist/controller/activeEditorStory.d.ts +4 -5
- package/dist/controller/canonicalClipboard.d.ts +3 -3
- package/dist/controller/canonicalClipboard.js +3 -1
- package/dist/controller/canonicalClipboardResources.d.ts +3 -3
- package/dist/controller/canonicalClipboardResources.js +3 -2
- package/dist/controller/canonicalComments.d.ts +5 -5
- package/dist/controller/canonicalComposition.d.ts +2 -2
- package/dist/controller/canonicalComposition.js +11 -14
- package/dist/controller/canonicalInlineProjection.d.ts +8 -7
- package/dist/controller/canonicalInlineProjection.js +68 -37
- package/dist/controller/canonicalInput.d.ts +3 -3
- package/dist/controller/canonicalInput.js +1 -3
- package/dist/controller/canonicalInputTimer.d.ts +5 -6
- package/dist/controller/canonicalListRendering.d.ts +2 -3
- package/dist/controller/canonicalOperations.d.ts +6 -6
- package/dist/controller/canonicalPublicOperations.d.ts +13 -13
- package/dist/controller/canonicalPublicOperations.js +12 -14
- package/dist/controller/canonicalReview.d.ts +2 -2
- package/dist/controller/canonicalSelection.d.ts +2 -2
- package/dist/controller/canonicalSelection.js +15 -0
- package/dist/controller/canonicalSession.d.ts +22 -14
- package/dist/controller/canonicalSession.js +229 -42
- package/dist/controller/canonicalStoryEditor.d.ts +2 -2
- package/dist/controller/canonicalStructure.d.ts +3 -3
- package/dist/controller/canonicalStructure.js +144 -21
- package/dist/controller/canonicalTocSelection.d.ts +2 -2
- package/dist/controller/collaborationModules.d.ts +2 -3
- package/dist/controller/committedLayoutDiff.d.ts +4 -5
- package/dist/controller/contentControlWidgetController.d.ts +7 -8
- package/dist/controller/folioEditor.d.ts +6 -6
- package/dist/controller/folioEditorEvents.d.ts +7 -8
- package/dist/controller/fontReadiness.d.ts +12 -12
- package/dist/controller/fontReadiness.js +123 -31
- package/dist/controller/headerFooterEditorManager.d.ts +9 -10
- package/dist/controller/headerFooterEditorManager.js +3 -10
- package/dist/controller/hiddenEditorApi.d.ts +5 -5
- package/dist/controller/hiddenEditorManager.d.ts +13 -13
- package/dist/controller/hiddenEditorManager.js +2 -0
- package/dist/controller/hyphenationReadiness.d.ts +4 -5
- package/dist/controller/hyphenationReadiness.js +0 -1
- package/dist/controller/latestRequestGate.d.ts +3 -4
- package/dist/controller/layoutPipeline.d.ts +7 -8
- package/dist/controller/layoutPipeline.js +16 -5
- package/dist/controller/layoutRunOptions.d.ts +4 -5
- package/dist/controller/layoutScheduler.d.ts +8 -9
- package/dist/controller/layoutSession.d.ts +7 -7
- package/dist/controller/noteEditorManager.d.ts +8 -8
- package/dist/controller/noteEditorManager.js +0 -1
- package/dist/controller/readOnlySelection.d.ts +12 -0
- package/dist/controller/readOnlySelection.js +62 -0
- package/dist/display-list/build/buildContext.d.ts +8 -6
- package/dist/display-list/build/buildDisplayList.d.ts +6 -6
- package/dist/display-list/build/buildDisplayList.js +20 -2
- package/dist/display-list/build/colors.d.ts +6 -7
- package/dist/display-list/build/commentAnnotations.d.ts +3 -4
- package/dist/display-list/build/floatingImages.d.ts +5 -6
- package/dist/display-list/build/fontTable.d.ts +4 -5
- package/dist/display-list/build/fontTable.js +2 -1
- package/dist/display-list/build/furniture.d.ts +7 -6
- package/dist/display-list/build/furniture.js +1 -0
- package/dist/display-list/build/glyphs.d.ts +7 -7
- package/dist/display-list/build/glyphs.js +17 -26
- package/dist/display-list/build/headerFooterPrimitives.d.ts +4 -5
- package/dist/display-list/build/headerFooterPrimitives.js +5 -1
- package/dist/display-list/build/imagePrimitives.d.ts +5 -5
- package/dist/display-list/build/imagePrimitives.js +22 -13
- package/dist/display-list/build/pageBorderPrimitives.d.ts +4 -5
- package/dist/display-list/build/pageBorderPrimitives.js +8 -11
- package/dist/display-list/build/pageFurniture.d.ts +6 -7
- package/dist/display-list/build/pageFurniture.js +5 -1
- package/dist/display-list/build/paragraphPrimitives.d.ts +5 -4
- package/dist/display-list/build/paragraphPrimitives.js +147 -104
- package/dist/display-list/build/previewPrimitives.d.ts +2 -3
- package/dist/display-list/build/previewPrimitives.js +38 -9
- package/dist/display-list/build/regions.d.ts +5 -5
- package/dist/display-list/build/storyPrimitives.d.ts +4 -4
- package/dist/display-list/build/strokes.d.ts +10 -10
- package/dist/display-list/build/tablePrimitives.d.ts +5 -5
- package/dist/display-list/build/tablePrimitives.js +15 -2
- package/dist/display-list/build/textBoxPrimitives.d.ts +3 -4
- package/dist/display-list/build/textBoxPrimitives.js +4 -0
- package/dist/display-list/build/textDecorations.d.ts +10 -11
- package/dist/display-list/build/unsupported.d.ts +4 -5
- package/dist/display-list/build/watermarkPrimitives.d.ts +5 -4
- package/dist/display-list/build/watermarkPrimitives.js +5 -17
- package/dist/display-list/dom/renderDisplayListToDom.d.ts +8 -8
- package/dist/display-list/dom/renderDisplayListToDom.js +60 -15
- package/dist/display-list/editor/displayListPagePainter.d.ts +4 -5
- package/dist/display-list/editor/pageRenderer.d.ts +5 -6
- package/dist/display-list/editor/pageRenderer.js +1 -0
- package/dist/display-list/html/renderDisplayListToHtml.d.ts +5 -6
- package/dist/display-list/pageResourceOwnership.d.ts +4 -0
- package/dist/display-list/pageResourceOwnership.js +32 -0
- package/dist/display-list/primitives.d.ts +13 -13
- package/dist/display-list/primitives.js +2 -0
- package/dist/display-list/selectDisplayPages.d.ts +2 -3
- package/dist/display-list/types.d.ts +61 -36
- package/dist/document-operations.d.ts +56 -44
- package/dist/document-operations.js +37 -2
- package/dist/document-stories.d.ts +3 -4
- package/dist/docx/altChunk.d.ts +5 -6
- package/dist/docx/appVersionNormalization.d.ts +4 -4
- package/dist/docx/archiveInflation.d.ts +16 -16
- package/dist/docx/archiveInflation.js +1 -1
- package/dist/docx/attributeRemainder.d.ts +8 -8
- package/dist/docx/attributeRemainder.js +34 -0
- package/dist/docx/blockContentParser.d.ts +15 -7
- package/dist/docx/blockContentParser.js +5 -6
- package/dist/docx/blockCustomXmlShell.d.ts +2 -3
- package/dist/docx/blockPlainText.d.ts +3 -4
- package/dist/docx/blockPlainText.js +5 -1
- package/dist/docx/bookmarkIdNormalization.d.ts +2 -3
- package/dist/docx/bookmarkIds.d.ts +5 -6
- package/dist/docx/bookmarkParser.d.ts +20 -21
- package/dist/docx/bookmarkParser.js +3 -2
- package/dist/docx/borderParser.d.ts +2 -3
- package/dist/docx/builtInStyles.d.ts +11 -11
- package/dist/docx/bulletMarkers.d.ts +8 -3
- package/dist/docx/bulletMarkers.js +3 -43
- package/dist/docx/canonicalModel.d.ts +2 -0
- package/dist/docx/canonicalModel.js +1 -0
- package/dist/docx/canonicalResourceSave.d.ts +3 -3
- package/dist/docx/canonicalSave.d.ts +3 -3
- package/dist/docx/canonicalSessionInput.d.ts +3 -3
- package/dist/docx/canonicalStoryRepack.d.ts +2 -2
- package/dist/docx/chartPreview.d.ts +6 -0
- package/dist/docx/chartPreview.js +302 -0
- package/dist/docx/commentAnchorIndex.d.ts +6 -5
- package/dist/docx/commentAnchorIndex.js +236 -1
- package/dist/docx/commentIdNormalization.d.ts +4 -5
- package/dist/docx/commentParser.d.ts +4 -5
- package/dist/docx/commentParser.js +2 -1
- package/dist/docx/commentRangeIntegrity.d.ts +6 -5
- package/dist/docx/commentRangeIntegrity.js +17 -1
- package/dist/docx/commentRangeJoin.d.ts +2 -3
- package/dist/docx/commentReferenceCompletion.d.ts +2 -3
- package/dist/docx/commentReferenceNormalization.d.ts +4 -4
- package/dist/docx/commentReplyMarkers.d.ts +3 -4
- package/dist/docx/commentTextParagraph.d.ts +2 -3
- package/dist/docx/commentThreadKey.d.ts +2 -3
- package/dist/docx/compatibility.d.ts +12 -13
- package/dist/docx/conformance.d.ts +2 -3
- package/dist/docx/conformance.js +1 -1
- package/dist/docx/containerChildren.d.ts +18 -18
- package/dist/docx/containerChildren.gen.d.ts +5 -6
- package/dist/docx/contentTypeRegistry.d.ts +2 -2
- package/dist/docx/corePropertiesParser.d.ts +2 -2
- package/dist/docx/danglingRelationshipReferences.d.ts +3 -3
- package/dist/docx/defaultParagraphStyle.d.ts +6 -6
- package/dist/docx/diagramPreview.d.ts +5 -4
- package/dist/docx/diagramPreview.js +8 -3
- package/dist/docx/documentClone.js +1 -2
- package/dist/docx/documentGrid.d.ts +2 -2
- package/dist/docx/documentParser.d.ts +11 -11
- package/dist/docx/documentSectionFacts.d.ts +5 -6
- package/dist/docx/drawingAnchor.d.ts +14 -14
- package/dist/docx/drawingGroupChildren.d.ts +8 -8
- package/dist/docx/drawingIdNormalization.d.ts +3 -4
- package/dist/docx/drawingRelationships.d.ts +2 -2
- package/dist/docx/drawingUtils.d.ts +16 -17
- package/dist/docx/drawingUtils.js +4 -2
- package/dist/docx/encryption/agileDecryption.d.ts +2 -3
- package/dist/docx/encryption/compoundFile.d.ts +5 -6
- package/dist/docx/encryption/containerFormat.d.ts +4 -5
- package/dist/docx/encryption/cryptoBytes.d.ts +8 -9
- package/dist/docx/encryption/encryptionInfo.d.ts +5 -6
- package/dist/docx/encryption/errors.d.ts +5 -5
- package/dist/docx/encryption/openEncryptedDocx.d.ts +5 -6
- package/dist/docx/ensureParaIds.d.ts +6 -6
- package/dist/docx/ensureParaIds.js +1 -1
- package/dist/docx/fieldParser.d.ts +32 -33
- package/dist/docx/fieldParser.js +8 -6
- package/dist/docx/fieldState.d.ts +5 -6
- package/dist/docx/foldedListNumberFields.d.ts +15 -16
- package/dist/docx/fontTableParser.d.ts +2 -3
- package/dist/docx/footnoteParser.d.ts +11 -11
- package/dist/docx/footnoteParser.js +19 -0
- package/dist/docx/graphicFrameLocks.d.ts +5 -6
- package/dist/docx/groupDrawingParser.d.ts +4 -5
- package/dist/docx/groupDrawingParser.js +32 -17
- package/dist/docx/headerFooterParser.d.ts +14 -14
- package/dist/docx/headerFooterRefParser.d.ts +6 -7
- package/dist/docx/headerFooterReferenceNormalization.d.ts +5 -5
- package/dist/docx/headerFooterVerbatim.d.ts +14 -14
- package/dist/docx/hyperlinkParser.d.ts +20 -21
- package/dist/docx/hyperlinkParser.js +54 -11
- package/dist/docx/imageParser.d.ts +18 -18
- package/dist/docx/imageParser.js +6 -3
- package/dist/docx/imageRawXml.d.ts +9 -10
- package/dist/docx/importedIdCollisions.d.ts +3 -4
- package/dist/docx/inlineContentRemovals.d.ts +2 -3
- package/dist/docx/inlineWrapperContent.d.ts +38 -33
- package/dist/docx/inlineWrapperContent.js +29 -23
- package/dist/docx/inlineWrapperParser.d.ts +4 -5
- package/dist/docx/inlineWrapperParser.js +14 -0
- package/dist/docx/linkedSdtPreservation.d.ts +3 -3
- package/dist/docx/listMarkerComputation.d.ts +4 -5
- package/dist/docx/listModelNormalization.d.ts +2 -2
- package/dist/docx/listModelNormalization.js +15 -11
- package/dist/docx/listNumberingInstances.d.ts +8 -8
- package/dist/docx/listRendering.d.ts +5 -6
- package/dist/docx/listTemplate.d.ts +5 -5
- package/dist/docx/markupRangeMarker.d.ts +21 -4
- package/dist/docx/markupRangeMarker.js +35 -1
- package/dist/docx/mathToMathml.d.ts +8 -3
- package/dist/docx/mathToMathml.js +72 -4
- package/dist/docx/metadataPrivacy.d.ts +14 -14
- package/dist/docx/metadataPrivacy.js +3 -3
- package/dist/docx/metafileRaster.d.ts +4 -5
- package/dist/docx/metafileSvg.d.ts +2 -3
- package/dist/docx/metafileSvg.js +28 -39
- package/dist/docx/metafileSvgShared.d.ts +27 -0
- package/dist/docx/metafileSvgShared.js +28 -0
- package/dist/docx/modelValidation.d.ts +5 -6
- package/dist/docx/modelValidation.js +144 -1
- package/dist/docx/newImage.d.ts +2 -3
- package/dist/docx/nonVisualDrawingProps.d.ts +3 -3
- package/dist/docx/normalizeBaseDirection.d.ts +2 -3
- package/dist/docx/normalizeBaseDirection.js +6 -2
- package/dist/docx/noteIds.d.ts +2 -3
- package/dist/docx/notePropertiesParser.d.ts +3 -4
- package/dist/docx/noteReferenceMark.d.ts +6 -6
- package/dist/docx/noteReferenceStyles.d.ts +7 -8
- package/dist/docx/noteReferenceStyles.js +0 -13
- package/dist/docx/numberingIds.d.ts +3 -3
- package/dist/docx/numberingParser.d.ts +15 -16
- package/dist/docx/numberingParser.js +6 -30
- package/dist/docx/numberingReference.d.ts +2 -2
- package/dist/docx/numberingReferenceNormalization.d.ts +5 -5
- package/dist/docx/numberingReferenceNormalization.js +6 -9
- package/dist/docx/numericIdAllocator.d.ts +2 -2
- package/dist/docx/numericIdNormalization.d.ts +3 -3
- package/dist/docx/numericIdNormalization.js +0 -1
- package/dist/docx/ooxmlCounterFormatter.d.ts +3 -4
- package/dist/docx/opaqueCarrier.d.ts +5 -6
- package/dist/docx/packageParts.d.ts +8 -9
- package/dist/docx/paraIdAttribute.d.ts +11 -12
- package/dist/docx/paraIdRangeNormalization.d.ts +3 -4
- package/dist/docx/paragraphMarkPropertyPresence.d.ts +4 -5
- package/dist/docx/paragraphParser.d.ts +9 -9
- package/dist/docx/paragraphParser.js +45 -23
- package/dist/docx/paragraphProperties.d.ts +2 -3
- package/dist/docx/paragraphProperties.js +15 -2
- package/dist/docx/paragraphPropertySource.d.ts +56 -56
- package/dist/docx/paragraphPropertySource.js +37 -1
- package/dist/docx/paragraphTextBoxEnrichment.d.ts +2 -3
- package/dist/docx/paragraphTextBoxEnrichment.js +21 -6
- package/dist/docx/paragraphTraversal.d.ts +19 -10
- package/dist/docx/paragraphTraversal.js +110 -75
- package/dist/docx/parseContext.d.ts +5 -6
- package/dist/docx/parseWarningMessage.d.ts +3 -4
- package/dist/docx/parser.d.ts +11 -11
- package/dist/docx/parser.js +43 -15
- package/dist/docx/parserEnums.d.ts +37 -38
- package/dist/docx/preservedRunContent.d.ts +5 -6
- package/dist/docx/preservedRunContent.js +16 -0
- package/dist/docx/previewBudget.d.ts +6 -6
- package/dist/docx/previewBudget.js +1 -1
- package/dist/docx/propertyElementAttributes.d.ts +10 -11
- package/dist/docx/rasterMime.d.ts +4 -4
- package/dist/docx/relsParser.d.ts +20 -21
- package/dist/docx/removeHeaderFooterParts.d.ts +2 -2
- package/dist/docx/renderedPageBreakNormalization.d.ts +2 -2
- package/dist/docx/replyToComment.d.ts +4 -5
- package/dist/docx/replyToComment.js +2 -1
- package/dist/docx/reviewHistoryNamespace.d.ts +2 -3
- package/dist/docx/reviewResolutionProvenance.d.ts +15 -12
- package/dist/docx/reviewResolutionProvenance.js +15 -4
- package/dist/docx/revisionIdNormalization.d.ts +4 -4
- package/dist/docx/rezip.d.ts +40 -40
- package/dist/docx/rezip.js +113 -123
- package/dist/docx/runConsolidator.d.ts +7 -7
- package/dist/docx/runConsolidator.js +13 -0
- package/dist/docx/runParser.d.ts +12 -13
- package/dist/docx/runParser.js +31 -10
- package/dist/docx/runPayload.d.ts +2 -3
- package/dist/docx/runPropertyPresence.d.ts +7 -8
- package/dist/docx/saveDiagnostics.d.ts +3 -4
- package/dist/docx/sdtProperties.d.ts +6 -7
- package/dist/docx/sdtPropertiesPatch.d.ts +2 -3
- package/dist/docx/sectionParser.d.ts +15 -16
- package/dist/docx/sectionReferenceHistory.d.ts +6 -6
- package/dist/docx/selectedXmlIdentityScan.d.ts +2 -3
- package/dist/docx/selectiveSave.d.ts +3 -4
- package/dist/docx/selectiveSave.js +6 -3
- package/dist/docx/selectiveSaveFlags.d.ts +5 -6
- package/dist/docx/selectiveSaveFlags.js +1 -1
- package/dist/docx/selectiveSaveTripwire.d.ts +3 -4
- package/dist/docx/selectiveXmlPatch.d.ts +28 -28
- package/dist/docx/serializer/blockCustomXmlSerializer.d.ts +2 -3
- package/dist/docx/serializer/blockSdtSerializer.d.ts +2 -3
- package/dist/docx/serializer/blockSdtSerializer.js +2 -1
- package/dist/docx/serializer/borderSerializer.d.ts +2 -2
- package/dist/docx/serializer/borderSerializer.js +8 -0
- package/dist/docx/serializer/commentSerializer.d.ts +7 -8
- package/dist/docx/serializer/documentSerializer.d.ts +13 -14
- package/dist/docx/serializer/documentSerializer.js +17 -1
- package/dist/docx/serializer/fontTableSerializer.d.ts +2 -3
- package/dist/docx/serializer/groupTextBoxWriteBack.d.ts +2 -2
- package/dist/docx/serializer/groupTextBoxWriteBack.js +1 -4
- package/dist/docx/serializer/headerFooterSerializer.d.ts +2 -2
- package/dist/docx/serializer/headerFooterSerializer.js +5 -1
- package/dist/docx/serializer/markupRangeAttributes.d.ts +11 -6
- package/dist/docx/serializer/markupRangeAttributes.js +33 -6
- package/dist/docx/serializer/noteSerializer.d.ts +5 -6
- package/dist/docx/serializer/noteSerializer.js +26 -1
- package/dist/docx/serializer/numberingSerializer.d.ts +2 -3
- package/dist/docx/serializer/numberingSerializer.js +14 -0
- package/dist/docx/serializer/paragraphSerializer.d.ts +8 -9
- package/dist/docx/serializer/paragraphSerializer.js +27 -17
- package/dist/docx/serializer/partNamespaces.d.ts +9 -9
- package/dist/docx/serializer/runSerializer.d.ts +11 -12
- package/dist/docx/serializer/runSerializer.js +7 -2
- package/dist/docx/serializer/sdtPropertiesSerializer.d.ts +5 -6
- package/dist/docx/serializer/sectionPropertiesSerializer.d.ts +2 -3
- package/dist/docx/serializer/settingsSerializer.d.ts +2 -3
- package/dist/docx/serializer/settingsSerializer.js +9 -6
- package/dist/docx/serializer/stylesSerializer.d.ts +3 -4
- package/dist/docx/serializer/stylesSerializer.js +4 -1
- package/dist/docx/serializer/tableSerializer.d.ts +18 -18
- package/dist/docx/serializer/tableSerializer.js +22 -2
- package/dist/docx/serializer/textFormattingSerializer.d.ts +3 -3
- package/dist/docx/serializer/themeSerializer.d.ts +2 -3
- package/dist/docx/serializer/trackedChangeAttributes.d.ts +4 -4
- package/dist/docx/serializer/xmlUtils.d.ts +3 -4
- package/dist/docx/server/applyDocxXmlPatchProposal.d.ts +9 -9
- package/dist/docx/server/applyDocxXmlPatchProposal.js +1 -1
- package/dist/docx/server/boundedArchive.d.ts +11 -11
- package/dist/docx/server/boundedArchive.js +3 -3
- package/dist/docx/server/build.d.ts +14 -14
- package/dist/docx/server/build.js +9 -6
- package/dist/docx/server/createBilingualDocument.d.ts +13 -13
- package/dist/docx/server/createBilingualDocument.js +56 -21
- package/dist/docx/server/createBilingualDocx.d.ts +5 -6
- package/dist/docx/server/createBilingualDocx.js +7 -3
- package/dist/docx/server/docxToMarkdown.d.ts +2 -3
- package/dist/docx/server/docxToMarkdown.js +2 -1
- package/dist/docx/server/evaluateDocxXmlPatchProposal.d.ts +17 -17
- package/dist/docx/server/evaluateDocxXmlPatchProposal.js +2 -2
- package/dist/docx/server/extractDocxText.d.ts +10 -11
- package/dist/docx/server/extractDocxText.js +3 -2
- package/dist/docx/server/inspectDocxPackage.d.ts +14 -14
- package/dist/docx/server/inspectDocxPackage.js +3 -3
- package/dist/docx/server/materializeYjsDocx.d.ts +8 -8
- package/dist/docx/server/materializeYjsDocx.js +1 -1
- package/dist/docx/server/migrateYjsAttrSchema.d.ts +6 -6
- package/dist/docx/server/migrateYjsAttrSchema.js +3 -3
- package/dist/docx/server/validateDocxConformance.d.ts +14 -15
- package/dist/docx/settingsHeaderFooterUpdate.d.ts +2 -3
- package/dist/docx/settingsParser.d.ts +2 -2
- package/dist/docx/settingsParser.js +12 -0
- package/dist/docx/shadingParser.d.ts +2 -3
- package/dist/docx/shapeAlternateContent.d.ts +8 -7
- package/dist/docx/shapeAlternateContent.js +84 -9
- package/dist/docx/shapeParser.d.ts +4 -5
- package/dist/docx/shapeParser.js +2 -1
- package/dist/docx/storyBlockReplay.d.ts +5 -5
- package/dist/docx/storyBlockReplay.js +10 -2
- package/dist/docx/storyPlainText.d.ts +9 -10
- package/dist/docx/streamingXmlParser.d.ts +8 -8
- package/dist/docx/strictNames.d.ts +4 -5
- package/dist/docx/strictNames.gen.d.ts +6 -7
- package/dist/docx/strictValueEncodings.gen.d.ts +5 -6
- package/dist/docx/structuralXmlPatch.d.ts +2 -2
- package/dist/docx/styleParser.d.ts +11 -12
- package/dist/docx/styleParser.js +1 -3
- package/dist/docx/styleReferenceResolution.d.ts +3 -4
- package/dist/docx/tableLook.d.ts +7 -7
- package/dist/docx/tableParser.d.ts +47 -39
- package/dist/docx/tableParser.js +2 -4
- package/dist/docx/tableRowPropertyPresence.d.ts +5 -6
- package/dist/docx/textBoxParser.d.ts +25 -26
- package/dist/docx/textBoxParser.js +18 -19
- package/dist/docx/themeColorAttribute.d.ts +3 -4
- package/dist/docx/themeParser.d.ts +9 -10
- package/dist/docx/trackedChangeInfo.d.ts +5 -6
- package/dist/docx/trackedMoveRangeNormalization.d.ts +3 -3
- package/dist/docx/trackedMoveRangeNormalization.js +52 -21
- package/dist/docx/transitionalSpelling.d.ts +7 -8
- package/dist/docx/universalMeasure.d.ts +5 -6
- package/dist/docx/unzip.d.ts +15 -16
- package/dist/docx/unzip.js +2 -2
- package/dist/docx/verbatimCapture.d.ts +6 -6
- package/dist/docx/verbatimCapture.js +3 -2
- package/dist/docx/verticalMergeProjection.d.ts +4 -5
- package/dist/docx/verticalMergeProjection.js +1 -1
- package/dist/docx/vmlImageParser.d.ts +4 -5
- package/dist/docx/vmlPreview.d.ts +9 -10
- package/dist/docx/vmlPreview.js +0 -3
- package/dist/docx/watermarkParser.d.ts +4 -5
- package/dist/docx/wmfSvg.d.ts +10 -0
- package/dist/docx/wmfSvg.js +451 -0
- package/dist/docx/wordprocessingPrefixes.d.ts +12 -13
- package/dist/docx/wrapPolygon.d.ts +5 -6
- package/dist/docx/wrapTypes.js +1 -2
- package/dist/docx/xmlEncoding.d.ts +2 -3
- package/dist/docx/xmlNamespaceContext.d.ts +5 -6
- package/dist/docx/xmlParser.d.ts +49 -50
- package/dist/docx/xmlParser.js +12 -12
- package/dist/docx/xmlResourceLimits.d.ts +10 -10
- package/dist/docx/xmlResourceLimits.js +1 -1
- package/dist/docx/xmlSafety.d.ts +3 -4
- package/dist/export-pdf.d.ts +11 -11
- package/dist/export-pdf.js +2 -1
- package/dist/fields/bookmarkPages.d.ts +2 -3
- package/dist/fields/bookmarkText.d.ts +2 -2
- package/dist/fields/bookmarkText.js +3 -2
- package/dist/fields/evaluateField.d.ts +3 -3
- package/dist/fields/fieldContext.d.ts +2 -3
- package/dist/fields/resolveFieldValues.d.ts +7 -8
- package/dist/fields/sectionPageCounts.d.ts +2 -3
- package/dist/fields/seqValues.d.ts +2 -3
- package/dist/fonts/FontFaceLifecycle.d.ts +12 -0
- package/dist/fonts/FontFaceLifecycle.js +56 -0
- package/dist/fonts/documentFontFacts.d.ts +17 -0
- package/dist/fonts/documentFontFacts.js +41 -0
- package/dist/fonts/embeddedFontFingerprint.d.ts +2 -3
- package/dist/fonts/embeddedFontFingerprint.js +3 -2
- package/dist/fonts/embeddedFonts.d.ts +7 -8
- package/dist/fonts/fontAlternates.d.ts +4 -5
- package/dist/fonts/fontAlternates.js +2 -1
- package/dist/fonts/fontDeobfuscation.d.ts +3 -4
- package/dist/fonts/fontDeobfuscation.js +7 -3
- package/dist/fonts/fontsourceFaces.d.ts +7 -8
- package/dist/fonts/fontsourceFaces.js +16 -0
- package/dist/fonts/headlessMeasure.d.ts +10 -10
- package/dist/fonts/sfnt/parse.d.ts +5 -5
- package/dist/fonts/sfnt/parse.js +2 -1
- package/dist/fonts/sfnt/subset.d.ts +4 -4
- package/dist/fonts/sfnt/tables.d.ts +14 -14
- package/dist/fonts/sfnt/woff.d.ts +4 -4
- package/dist/headless-layout.d.ts +7 -7
- package/dist/headless-layout.js +7 -0
- package/dist/i18n/messages/ar.gen.d.ts +2 -2
- package/dist/i18n/messages/ar.gen.js +1 -0
- package/dist/i18n/messages/catalogs.gen.d.ts +19 -3
- package/dist/i18n/messages/catalogs.gen.js +17 -0
- package/dist/i18n/messages/cs.gen.d.ts +2 -2
- package/dist/i18n/messages/cs.gen.js +1 -0
- package/dist/i18n/messages/de.gen.d.ts +2 -2
- package/dist/i18n/messages/de.gen.js +1 -0
- package/dist/i18n/messages/en.gen.d.ts +2 -2
- package/dist/i18n/messages/en.gen.js +1 -0
- package/dist/i18n/messages/es.gen.d.ts +2 -2
- package/dist/i18n/messages/es.gen.js +1 -0
- package/dist/i18n/messages/et.gen.d.ts +2 -2
- package/dist/i18n/messages/et.gen.js +1 -0
- package/dist/i18n/messages/fr.gen.d.ts +2 -2
- package/dist/i18n/messages/fr.gen.js +1 -0
- package/dist/i18n/messages/he.gen.d.ts +2 -2
- package/dist/i18n/messages/he.gen.js +1 -0
- package/dist/i18n/messages/hi.gen.d.ts +2 -2
- package/dist/i18n/messages/hi.gen.js +1 -0
- package/dist/i18n/messages/hu.gen.d.ts +2 -2
- package/dist/i18n/messages/hu.gen.js +1 -0
- package/dist/i18n/messages/locales.d.ts +3 -4
- package/dist/i18n/messages/lt.gen.d.ts +2 -2
- package/dist/i18n/messages/lt.gen.js +1 -0
- package/dist/i18n/messages/lv.gen.d.ts +2 -2
- 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.d.ts +2 -2
- package/dist/i18n/messages/pl.gen.js +1 -0
- package/dist/i18n/messages/pt-BR.gen.d.ts +2 -2
- package/dist/i18n/messages/pt-BR.gen.js +1 -0
- package/dist/i18n/messages/sk.gen.d.ts +2 -2
- package/dist/i18n/messages/sk.gen.js +1 -0
- package/dist/i18n/messages/tr.gen.d.ts +2 -2
- package/dist/i18n/messages/tr.gen.js +1 -0
- package/dist/i18n/messages/zh-CN.gen.d.ts +2 -2
- package/dist/i18n/messages/zh-CN.gen.js +1 -0
- package/dist/i18n/messages.d.ts +4 -4
- package/dist/internal/acceptedBlockProjection.d.ts +2 -3
- package/dist/internal/acceptedBlockProjection.js +5 -1
- package/dist/internal/compare/inline-presentation.d.ts +4 -4
- package/dist/internal/headlessRevisionResolutionGuard.d.ts +2 -3
- package/dist/internal/indexedPositionMap.d.ts +2 -3
- package/dist/internal/noteMarkerAttrs.d.ts +3 -4
- package/dist/internal/pageBreakRunDescendantIndex.d.ts +3 -4
- package/dist/internal/pageBreakRunPartition.d.ts +4 -4
- package/dist/internal/pageBreakRunSourceDescendantIndex.d.ts +4 -5
- package/dist/internal/pageBreakRunSourceDescendantIndex.js +5 -1
- package/dist/internal/paragraphFormattingSerialization.d.ts +6 -6
- package/dist/internal/paragraphFormattingSerialization.js +3 -1
- package/dist/internal/prosemirrorAttrBoundary.d.ts +9 -10
- package/dist/internal/prosemirrorAttrBoundary.js +2 -1
- package/dist/internal/revisionResolutionEdits.d.ts +2 -2
- package/dist/internal/revisionResolutionInline.d.ts +4 -3
- package/dist/internal/revisionResolutionInline.js +69 -48
- package/dist/internal/revisionResolutionStep.d.ts +3 -3
- package/dist/internal/revisionResolutionTracking.d.ts +2 -2
- package/dist/internal/revisionResolutionTracking.js +3 -3
- package/dist/internal/sectionEndpointResolution.d.ts +5 -5
- package/dist/internal/sectionReferenceResolution.d.ts +6 -7
- package/dist/internal/wholeStoryRevisionResolution.d.ts +6 -4
- package/dist/internal/wholeStoryRevisionResolution.js +168 -52
- package/dist/layout-bridge/cellSelectionHighlight.d.ts +2 -3
- package/dist/layout-bridge/convert/endnoteLayout.d.ts +9 -9
- package/dist/layout-bridge/convert/endnoteLayout.js +3 -4
- package/dist/layout-bridge/convert/fixedTableColumnWidths.d.ts +2 -3
- package/dist/layout-bridge/convert/flowBlockPostprocessing.d.ts +5 -6
- package/dist/layout-bridge/convert/flowBorders.d.ts +3 -4
- package/dist/layout-bridge/convert/flowConversionShared.d.ts +9 -7
- package/dist/layout-bridge/convert/footnoteLayout.d.ts +14 -14
- package/dist/layout-bridge/convert/footnoteLayout.js +10 -0
- package/dist/layout-bridge/convert/headerFooterLayout.d.ts +13 -12
- package/dist/layout-bridge/convert/headerFooterLayout.js +10 -4
- package/dist/layout-bridge/convert/imageConversion.d.ts +6 -7
- package/dist/layout-bridge/convert/listMarkers.d.ts +9 -9
- package/dist/layout-bridge/convert/markupViewFlow.d.ts +3 -3
- package/dist/layout-bridge/convert/noteReferences.d.ts +2 -3
- package/dist/layout-bridge/convert/pageBreakSplitting.d.ts +4 -4
- package/dist/layout-bridge/convert/pageBreakSplitting.js +4 -0
- package/dist/layout-bridge/convert/paragraphAttrs.d.ts +2 -2
- package/dist/layout-bridge/convert/paragraphAttrs.js +18 -11
- package/dist/layout-bridge/convert/paragraphConversion.d.ts +4 -5
- package/dist/layout-bridge/convert/paragraphConversion.js +9 -2
- package/dist/layout-bridge/convert/paragraphFrames.d.ts +2 -2
- package/dist/layout-bridge/convert/paragraphFrames.js +1 -1
- package/dist/layout-bridge/convert/paragraphMarkFormatting.d.ts +3 -4
- package/dist/layout-bridge/convert/paragraphRuns.d.ts +3 -4
- package/dist/layout-bridge/convert/paragraphRuns.js +35 -14
- package/dist/layout-bridge/convert/runFormattingMerge.d.ts +5 -5
- package/dist/layout-bridge/convert/runFormattingMerge.js +1 -0
- package/dist/layout-bridge/convert/runMarkFormatting.d.ts +2 -3
- package/dist/layout-bridge/convert/runMarkFormatting.js +12 -4
- package/dist/layout-bridge/convert/sectionBoundaries.d.ts +6 -6
- package/dist/layout-bridge/convert/tableConversion.d.ts +3 -4
- package/dist/layout-bridge/convert/tableConversion.js +1 -1
- package/dist/layout-bridge/convert/templatePreviewFlow.d.ts +6 -7
- package/dist/layout-bridge/convert/textBoxFill.d.ts +3 -4
- package/dist/layout-bridge/convert/textFormattingConversion.d.ts +8 -7
- package/dist/layout-bridge/convert/textFormattingConversion.js +10 -1
- package/dist/layout-bridge/convert/toFlowBlocks.d.ts +3 -3
- package/dist/layout-bridge/convert/toFlowBlocks.js +19 -11
- package/dist/layout-bridge/convert/wrapEditorViewAsSurface.d.ts +3 -4
- package/dist/layout-bridge/dom/clickToPositionDom.d.ts +12 -13
- package/dist/layout-bridge/dom/clickToPositionDom.js +30 -4
- package/dist/layout-bridge/dom/findBodyPmSpans.d.ts +5 -6
- package/dist/layout-bridge/dom/findHfPmSpans.d.ts +10 -11
- package/dist/layout-bridge/dom/imeCaretAnchor.d.ts +3 -3
- package/dist/layout-bridge/dom/noteStoryDom.d.ts +2 -3
- package/dist/layout-bridge/dom/textStreamDom.d.ts +16 -9
- package/dist/layout-bridge/dom/textStreamDom.js +18 -3
- package/dist/layout-bridge/engine/clickToPosition.d.ts +8 -9
- package/dist/layout-bridge/engine/clickToPosition.js +77 -94
- package/dist/layout-bridge/engine/hitTest.d.ts +18 -19
- package/dist/layout-bridge/engine/hitTest.js +2 -1
- package/dist/layout-bridge/engine/linePmRange.d.ts +7 -0
- package/dist/layout-bridge/engine/linePmRange.js +34 -0
- package/dist/layout-bridge/engine/selectionRects.d.ts +7 -8
- package/dist/layout-bridge/engine/selectionRects.js +53 -77
- package/dist/layout-bridge/headerFooterLayout.d.ts +4 -5
- package/dist/layout-bridge/measuring/measureBlocksPipeline.d.ts +2 -3
- package/dist/layout-bridge/sectionColumns.d.ts +2 -3
- package/dist/layout-bridge/tableInsertHover.d.ts +6 -7
- package/dist/layout-engine/anchorLayoutInCellCompatibility.d.ts +2 -3
- package/dist/layout-engine/footnoteColumnReflow.d.ts +2 -2
- package/dist/layout-engine/headerFooterRefs.d.ts +2 -3
- package/dist/layout-engine/imageLayout.d.ts +2 -3
- package/dist/layout-engine/index.d.ts +3 -3
- package/dist/layout-engine/index.js +10 -7
- package/dist/layout-engine/justificationCompatibility.d.ts +2 -3
- package/dist/layout-engine/keep-together.d.ts +7 -8
- package/dist/layout-engine/keep-together.js +1 -1
- package/dist/layout-engine/layoutFlowShared.d.ts +3 -4
- package/dist/layout-engine/layoutInstrumentation.d.ts +18 -19
- package/dist/layout-engine/lineFlow.d.ts +4 -5
- package/dist/layout-engine/measure/advanceComposition.d.ts +8 -8
- package/dist/layout-engine/measure/advanceComposition.js +24 -5
- package/dist/layout-engine/measure/automaticTextSpacing.d.ts +36 -0
- package/dist/layout-engine/measure/automaticTextSpacing.js +178 -0
- package/dist/layout-engine/measure/cache.d.ts +22 -22
- package/dist/layout-engine/measure/cache.js +50 -14
- package/dist/layout-engine/measure/clampFloatingWrapMargins.d.ts +2 -3
- package/dist/layout-engine/measure/complexScriptFormatting.d.ts +5 -5
- package/dist/layout-engine/measure/crossRunWords.d.ts +8 -8
- package/dist/layout-engine/measure/crossRunWords.js +9 -4
- package/dist/layout-engine/measure/effectiveLineBreakPolicy.d.ts +3 -3
- package/dist/layout-engine/measure/effectiveLineBreakPolicy.js +3 -1
- package/dist/layout-engine/measure/featureFlags.d.ts +4 -5
- package/dist/layout-engine/measure/floatingLineClearance.d.ts +3 -4
- package/dist/layout-engine/measure/floatingTablePosition.d.ts +3 -3
- package/dist/layout-engine/measure/floatingZones.d.ts +11 -10
- package/dist/layout-engine/measure/font-metrics.worker.d.ts +3 -4
- package/dist/layout-engine/measure/hyperlinkInstance.d.ts +3 -4
- package/dist/layout-engine/measure/hyphenationDictionaries.d.ts +15 -15
- package/dist/layout-engine/measure/hyphenationDictionaries.js +4 -4
- package/dist/layout-engine/measure/hyphenationPreload.d.ts +2 -3
- package/dist/layout-engine/measure/inlineObjectMetrics.d.ts +3 -4
- package/dist/layout-engine/measure/justification.d.ts +7 -7
- package/dist/layout-engine/measure/lineBreakProvider.d.ts +16 -11
- package/dist/layout-engine/measure/lineBreakProvider.js +29 -4
- package/dist/layout-engine/measure/lineBreaks.d.ts +7 -8
- package/dist/layout-engine/measure/lineBreaks.js +5 -2
- package/dist/layout-engine/measure/lineFitting.d.ts +11 -11
- package/dist/layout-engine/measure/lineFitting.js +17 -6
- package/dist/layout-engine/measure/lineTypography.d.ts +7 -8
- package/dist/layout-engine/measure/lineTypography.js +1 -0
- package/dist/layout-engine/measure/listMarkerWidth.d.ts +9 -6
- package/dist/layout-engine/measure/listMarkerWidth.js +7 -3
- package/dist/layout-engine/measure/measureBlocks.d.ts +7 -7
- package/dist/layout-engine/measure/measureBlocks.js +13 -7
- package/dist/layout-engine/measure/measureContainer.d.ts +5 -6
- package/dist/layout-engine/measure/measureContainer.js +27 -6
- package/dist/layout-engine/measure/measureHelpers.d.ts +21 -18
- package/dist/layout-engine/measure/measureHelpers.js +12 -3
- package/dist/layout-engine/measure/measureParagraph.d.ts +5 -5
- package/dist/layout-engine/measure/measureParagraph.js +57 -11
- package/dist/layout-engine/measure/measureProvider.d.ts +15 -9
- package/dist/layout-engine/measure/measureProvider.js +66 -4
- package/dist/layout-engine/measure/measureTypes.d.ts +17 -14
- package/dist/layout-engine/measure/measureWorker.d.ts +8 -8
- package/dist/layout-engine/measure/measureWorkerProtocol.d.ts +6 -7
- package/dist/layout-engine/measure/paragraphMeasureShared.d.ts +19 -20
- package/dist/layout-engine/measure/paragraphTabs.d.ts +6 -7
- package/dist/layout-engine/measure/paragraphTabs.js +16 -17
- package/dist/layout-engine/measure/smallCapsCasing.d.ts +6 -7
- package/dist/layout-engine/measure/tabCalculator.d.ts +15 -16
- package/dist/layout-engine/measure/tableCellFloating.d.ts +6 -6
- package/dist/layout-engine/measure/tableCellFlow.d.ts +7 -7
- package/dist/layout-engine/measure/tableCellGrid.d.ts +14 -14
- package/dist/layout-engine/measure/tableFragmentBorderGeometry.d.ts +2 -2
- package/dist/layout-engine/measure/tableInlinePlacement.d.ts +3 -3
- package/dist/layout-engine/measure/textBoxParagraphLayout.d.ts +4 -4
- package/dist/layout-engine/measure/textMeasurementPolicy.d.ts +8 -8
- package/dist/layout-engine/noColumnBalanceCompatibility.d.ts +7 -0
- package/dist/layout-engine/noColumnBalanceCompatibility.js +5 -0
- package/dist/layout-engine/noteAreaFlow.d.ts +6 -7
- package/dist/layout-engine/noteAreaFlow.js +12 -6
- package/dist/layout-engine/paginator.d.ts +18 -11
- package/dist/layout-engine/paginator.js +51 -11
- package/dist/layout-engine/paragraphFragmentRange.d.ts +2 -3
- package/dist/layout-engine/paragraphFrame.d.ts +2 -21
- package/dist/layout-engine/paragraphFrame.js +1 -17
- package/dist/layout-engine/paragraphLayout.d.ts +2 -2
- package/dist/layout-engine/paragraphLayout.js +28 -9
- package/dist/layout-engine/paragraphSequence.d.ts +3 -4
- package/dist/layout-engine/paragraphSpacing.d.ts +10 -10
- package/dist/layout-engine/pmPageIndex.d.ts +3 -4
- package/dist/layout-engine/renderedBreakReconciliation.d.ts +7 -7
- package/dist/layout-engine/section-breaks.d.ts +15 -15
- package/dist/layout-engine/sectionLayout.d.ts +7 -7
- package/dist/layout-engine/sectionLayout.js +1 -4
- package/dist/layout-engine/sectionVerticalAlignment.d.ts +2 -3
- package/dist/layout-engine/tableIndentCompatibility.d.ts +2 -3
- package/dist/layout-engine/tableLayout.d.ts +4 -5
- package/dist/layout-engine/tableLayout.js +17 -9
- package/dist/layout-engine/tableRowBreak.d.ts +6 -6
- package/dist/layout-engine/tableRowBreak.js +10 -5
- package/dist/layout-engine/textBoxFlow.d.ts +6 -6
- package/dist/layout-engine/textBoxGroup.d.ts +3 -4
- package/dist/layout-engine/textBoxLayout.d.ts +2 -2
- package/dist/layout-engine/types.d.ts +113 -90
- package/dist/layout-painter/anchoredImagePosition.d.ts +4 -5
- package/dist/layout-painter/borderStroke.d.ts +4 -4
- package/dist/layout-painter/cursiveJoiners.d.ts +7 -7
- package/dist/layout-painter/documentColors.d.ts +6 -7
- package/dist/layout-painter/imageLayout.d.ts +13 -14
- package/dist/layout-painter/index.d.ts +9 -8
- package/dist/layout-painter/index.js +7 -2
- package/dist/layout-painter/registry/modules/image.d.ts +2 -3
- package/dist/layout-painter/registry/modules/paragraph.d.ts +2 -3
- package/dist/layout-painter/registry/modules/table.d.ts +2 -3
- package/dist/layout-painter/registry/modules/textBox.d.ts +2 -3
- package/dist/layout-painter/registry/modules.d.ts +2 -3
- package/dist/layout-painter/registry/registry.d.ts +4 -5
- package/dist/layout-painter/registry/types.d.ts +8 -9
- package/dist/layout-painter/renderFragment.d.ts +4 -5
- package/dist/layout-painter/renderImage.d.ts +12 -13
- package/dist/layout-painter/renderPage.d.ts +27 -25
- package/dist/layout-painter/renderPage.js +116 -31
- package/dist/layout-painter/renderParagraph.d.ts +19 -15
- package/dist/layout-painter/renderParagraph.js +186 -46
- package/dist/layout-painter/renderTable.d.ts +7 -8
- package/dist/layout-painter/renderTable.js +27 -15
- package/dist/layout-painter/renderTextBox.d.ts +5 -6
- package/dist/layout-painter/renderTextBox.js +9 -1
- package/dist/layout-painter/renderUtils.d.ts +11 -14
- package/dist/layout-painter/renderUtils.js +1 -19
- package/dist/layout-painter/renderWatermark.d.ts +5 -4
- package/dist/layout-painter/sdtBoundary.d.ts +4 -5
- package/dist/layout-painter/tableRowPaintGeometry.d.ts +2 -2
- package/dist/managers/AutoSaveManager.d.ts +11 -12
- package/dist/managers/AutoSaveManager.js +17 -3
- package/dist/managers/ClipboardManager.d.ts +7 -8
- package/dist/managers/ContextMenuManager.d.ts +3 -4
- package/dist/managers/DocumentLoaderManager.d.ts +5 -6
- package/dist/managers/EditorModeManager.d.ts +12 -12
- package/dist/managers/ErrorManager.d.ts +2 -3
- package/dist/managers/FindReplaceManager.d.ts +17 -10
- package/dist/managers/FindReplaceManager.js +15 -9
- package/dist/managers/HistoryManager.d.ts +9 -10
- package/dist/managers/Subscribable.d.ts +2 -3
- package/dist/managers/TableSelectionManager.d.ts +9 -10
- package/dist/managers/TableSelectionManager.js +3 -13
- package/dist/managers/autoSaveCodec.d.ts +8 -9
- package/dist/managers/editorShortcuts.d.ts +14 -15
- package/dist/managers/reviewDisplayMode.d.ts +4 -5
- package/dist/managers/types.d.ts +7 -8
- package/dist/markdown/annotations.d.ts +6 -7
- package/dist/markdown/escape.d.ts +6 -7
- package/dist/markdown/fromMarkdown.d.ts +2 -3
- package/dist/markdown/images.d.ts +2 -3
- package/dist/markdown/index.d.ts +3 -3
- package/dist/markdown/index.js +28 -2
- package/dist/markdown/internals.d.ts +4 -5
- package/dist/markdown/internals.js +3 -2
- package/dist/markdown/renderBlock.d.ts +2 -3
- package/dist/markdown/renderBlock.js +5 -1
- package/dist/markdown/renderParagraph.d.ts +4 -5
- package/dist/markdown/renderParagraph.js +42 -17
- package/dist/markdown/renderRuns.d.ts +3 -3
- package/dist/markdown/renderRuns.js +15 -10
- package/dist/markdown/renderTable.d.ts +2 -3
- package/dist/markdown/renderTable.js +21 -8
- package/dist/markdown/trailers.d.ts +2 -3
- package/dist/markdown/types.d.ts +7 -8
- package/dist/model.d.ts +1 -1
- package/dist/paged-layout/LayoutSelectionGate.d.ts +2 -2
- package/dist/paged-layout/blockGeometry.d.ts +5 -6
- package/dist/paged-layout/editorScrollRoot.d.ts +7 -5
- package/dist/paged-layout/editorScrollRoot.js +2 -2
- package/dist/paged-layout/fitWidthZoom.d.ts +36 -0
- package/dist/paged-layout/fitWidthZoom.js +31 -0
- package/dist/paged-layout/hiddenEditorScroll.d.ts +2 -3
- package/dist/paged-layout/incrementalMeasure.d.ts +6 -7
- package/dist/paged-layout/pageText.d.ts +2 -2
- package/dist/paged-layout/paragraphFlash.d.ts +7 -7
- package/dist/paged-layout/paragraphFlashTypes.d.ts +3 -4
- package/dist/paged-layout/rangeProjection.d.ts +11 -12
- package/dist/paged-layout/readOnlyEditAttempt.d.ts +2 -2
- package/dist/paged-layout/scrollNavigation.d.ts +5 -6
- package/dist/paged-layout/scrollPageInfo.d.ts +5 -6
- package/dist/paged-layout/scrollToPmPosition.d.ts +4 -5
- package/dist/paged-layout/sectionBlockWidths.d.ts +3 -3
- package/dist/paged-layout/sectionBlockWidths.js +0 -3
- package/dist/paged-layout/sectionGeometry.d.ts +10 -11
- package/dist/paged-layout/selectionViewportRect.d.ts +5 -6
- package/dist/paged-layout/tableColumnResize.d.ts +2 -3
- package/dist/paged-layout/tableInsertButtonGeometry.d.ts +2 -3
- package/dist/paged-layout/transactionDirtyRange.d.ts +2 -3
- package/dist/paged-layout/zoomScrollAnchor.d.ts +5 -5
- package/dist/panel-layout.d.ts +11 -12
- package/dist/pdf/contentStream.d.ts +11 -12
- package/dist/pdf/fonts.d.ts +11 -11
- package/dist/pdf/fonts.js +0 -19
- package/dist/pdf/images.d.ts +5 -5
- package/dist/pdf/images.js +5 -1
- package/dist/pdf/objects.d.ts +23 -24
- package/dist/pdf/pageSpace.d.ts +9 -10
- package/dist/pdf/paint.d.ts +6 -6
- package/dist/pdf/paint.js +28 -1
- package/dist/pdf/writePdf.d.ts +6 -6
- package/dist/prosemirror/addTrackedDeletionMark.d.ts +2 -2
- package/dist/prosemirror/alternateContentAttrs.d.ts +5 -4
- package/dist/prosemirror/alternateContentAttrs.js +13 -3
- package/dist/prosemirror/anchoredTextBoxes.d.ts +10 -11
- package/dist/prosemirror/attrs/index.d.ts +86 -86
- package/dist/prosemirror/attrs/index.js +127 -99
- package/dist/prosemirror/authoredTransformAttrs.d.ts +3 -3
- package/dist/prosemirror/autospacingBase.d.ts +5 -5
- package/dist/prosemirror/bookmarkBoundaryAttrs.d.ts +7 -7
- package/dist/prosemirror/bookmarkBoundaryAttrs.js +31 -2
- package/dist/prosemirror/bookmarkBoundaryIntegrity.d.ts +3 -4
- package/dist/prosemirror/canonicalCommands.d.ts +30 -13
- package/dist/prosemirror/canonicalCommands.js +5 -4
- package/dist/prosemirror/canonicalSelectionRange.d.ts +14 -4
- package/dist/prosemirror/canonicalSelectionRange.js +20 -1
- package/dist/prosemirror/cellDragSelection.d.ts +6 -7
- package/dist/prosemirror/cellDragSelection.js +9 -0
- package/dist/prosemirror/clearRunColor.d.ts +2 -3
- package/dist/prosemirror/clearRunColor.js +8 -5
- package/dist/prosemirror/clipboardIntent.d.ts +3 -4
- package/dist/prosemirror/commands/clearParagraphIndent.d.ts +2 -3
- package/dist/prosemirror/commands/comments.d.ts +28 -28
- package/dist/prosemirror/commands/comments.js +220 -83
- package/dist/prosemirror/commands/contentControls.d.ts +9 -9
- package/dist/prosemirror/commands/contentControls.js +2 -1
- package/dist/prosemirror/commands/contentControlsBlockFill.d.ts +2 -3
- package/dist/prosemirror/commands/contentControlsBlockFill.js +2 -1
- package/dist/prosemirror/commands/formatPainter.d.ts +5 -5
- package/dist/prosemirror/commands/formatPainter.js +14 -11
- package/dist/prosemirror/commands/formatting.d.ts +20 -20
- package/dist/prosemirror/commands/hyperlink.d.ts +5 -6
- package/dist/prosemirror/commands/hyperlink.js +7 -6
- package/dist/prosemirror/commands/image.d.ts +14 -14
- package/dist/prosemirror/commands/pageBreak.d.ts +2 -3
- package/dist/prosemirror/commands/pageBreak.js +2 -1
- package/dist/prosemirror/commands/paragraph.d.ts +35 -35
- package/dist/prosemirror/commands/paragraphBookmarkJoin.d.ts +5 -5
- package/dist/prosemirror/commands/paragraphBookmarkJoin.js +4 -7
- package/dist/prosemirror/commands/pastePlainText.d.ts +4 -5
- package/dist/prosemirror/commands/propertyChangeScope.d.ts +13 -13
- package/dist/prosemirror/commands/propertyChangeScope.js +2 -0
- package/dist/prosemirror/commands/resolveAllTableChanges.d.ts +3 -3
- package/dist/prosemirror/commands/resolveNodePropertyChangeAttrs.d.ts +3 -3
- package/dist/prosemirror/commands/resolveParagraphProperties.d.ts +3 -3
- package/dist/prosemirror/commands/resolveParagraphProperties.js +1 -1
- package/dist/prosemirror/commands/sectionBreak.d.ts +9 -8
- package/dist/prosemirror/commands/sectionBreak.js +14 -1
- package/dist/prosemirror/commands/table.d.ts +34 -34
- package/dist/prosemirror/commands/tableCellMergeResolution.d.ts +8 -8
- package/dist/prosemirror/commands/tableCellMergeResolution.js +3 -2
- package/dist/prosemirror/commands/tableMergeFoldDecisions.d.ts +4 -4
- package/dist/prosemirror/commentBoundaryOwnership.d.ts +15 -0
- package/dist/prosemirror/commentBoundaryOwnership.js +4 -0
- package/dist/prosemirror/commentIdAllocator.d.ts +8 -8
- package/dist/prosemirror/commentIdAllocator.js +2 -0
- package/dist/prosemirror/commentOps.d.ts +6 -7
- package/dist/prosemirror/commentOps.js +3 -19
- package/dist/prosemirror/commentRangeBoundaryAttrs.d.ts +16 -0
- package/dist/prosemirror/commentRangeBoundaryAttrs.js +51 -0
- package/dist/prosemirror/commentRangeInlineAtoms.d.ts +40 -0
- package/dist/prosemirror/commentRangeInlineAtoms.js +34 -0
- package/dist/prosemirror/commentReferenceAttrs.d.ts +3 -4
- package/dist/prosemirror/commentReferenceAttrs.js +4 -1
- package/dist/prosemirror/commentReferenceIntegrity.d.ts +15 -6
- package/dist/prosemirror/commentReferenceIntegrity.js +93 -1
- package/dist/prosemirror/containerFinalParagraph.d.ts +4 -4
- package/dist/prosemirror/contentControlRevisions.d.ts +7 -7
- package/dist/prosemirror/conversion/effectiveTableCellFormatting.d.ts +4 -4
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +10 -10
- package/dist/prosemirror/conversion/fromProseDoc.js +478 -180
- package/dist/prosemirror/conversion/hyphenTextCarriers.d.ts +2 -3
- package/dist/prosemirror/conversion/markInterner.d.ts +2 -3
- package/dist/prosemirror/conversion/preservedSinkCarriers.d.ts +5 -5
- package/dist/prosemirror/conversion/runShadingMark.d.ts +3 -4
- package/dist/prosemirror/conversion/sdtAttrs.d.ts +6 -7
- package/dist/prosemirror/conversion/toProseDoc.d.ts +15 -9
- package/dist/prosemirror/conversion/toProseDoc.js +327 -218
- package/dist/prosemirror/copyOriginDom.d.ts +8 -0
- package/dist/prosemirror/copyOriginDom.js +21 -0
- package/dist/prosemirror/copyOriginResolution.d.ts +15 -0
- package/dist/prosemirror/copyOriginResolution.js +202 -0
- package/dist/prosemirror/documentSchema.d.ts +2 -3
- package/dist/prosemirror/emptyFieldResultRuns.d.ts +3 -3
- package/dist/prosemirror/emptyRangeAnchor.d.ts +6 -6
- package/dist/prosemirror/executeEditorCommand.d.ts +4 -5
- package/dist/prosemirror/extensions/ExtensionManager.d.ts +2 -3
- package/dist/prosemirror/extensions/StarterKit.d.ts +3 -4
- package/dist/prosemirror/extensions/StarterKit.js +5 -1
- package/dist/prosemirror/extensions/core/DocExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/core/DocExtension.js +1 -1
- package/dist/prosemirror/extensions/core/HistoryExtension.d.ts +3 -3
- package/dist/prosemirror/extensions/core/HistoryExtension.js +5 -4
- package/dist/prosemirror/extensions/core/ParagraphExtension.d.ts +8 -9
- package/dist/prosemirror/extensions/core/ParagraphExtension.js +17 -9
- package/dist/prosemirror/extensions/core/TextExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/create.d.ts +4 -5
- package/dist/prosemirror/extensions/features/AutoBidiDetectionExtension.d.ts +4 -5
- package/dist/prosemirror/extensions/features/BaseKeymapExtension.d.ts +3 -4
- package/dist/prosemirror/extensions/features/BidiShortcutExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/features/ContentControlWidgetsExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/features/DropCursorExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/features/EmptyParagraphFormatExtension.d.ts +3 -4
- package/dist/prosemirror/extensions/features/GapCursorExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/features/ImageDragExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/features/ImagePasteExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/features/ImagePasteExtension.js +2 -1
- package/dist/prosemirror/extensions/features/JoinedRunStyleExtension.d.ts +3 -4
- package/dist/prosemirror/extensions/features/ListExtension.d.ts +6 -7
- package/dist/prosemirror/extensions/features/ParaIdAllocatorExtension.d.ts +8 -8
- package/dist/prosemirror/extensions/features/ParaIdAllocatorExtension.js +17 -7
- package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.d.ts +18 -18
- package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.js +2 -1
- package/dist/prosemirror/extensions/features/PasteCleanupExtension.d.ts +2 -2
- package/dist/prosemirror/extensions/features/PasteStyleInlinerExtension.d.ts +6 -3
- package/dist/prosemirror/extensions/features/PasteStyleInlinerExtension.js +5 -2
- package/dist/prosemirror/extensions/features/SelectionTrackerExtension.d.ts +2 -2
- package/dist/prosemirror/extensions/features/SelectionTrackerExtension.js +2 -8
- package/dist/prosemirror/extensions/features/bidiShortcutController.d.ts +5 -6
- package/dist/prosemirror/extensions/features/clipboardTrackedRevisions.d.ts +4 -0
- package/dist/prosemirror/extensions/features/clipboardTrackedRevisions.js +72 -0
- package/dist/prosemirror/extensions/features/pasteCleanup.d.ts +4 -4
- package/dist/prosemirror/extensions/features/pasteCleanup.js +3 -2
- package/dist/prosemirror/extensions/features/pastedHeadingStyles.d.ts +2 -3
- package/dist/prosemirror/extensions/features/pastedHtmlLists.d.ts +3 -4
- package/dist/prosemirror/extensions/markRegistry.d.ts +4 -5
- package/dist/prosemirror/extensions/marks/AllCapsExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/BoldExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/CharacterSpacingExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/CharacterStyleExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/CommentExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/FontFamilyExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/FontFamilyExtension.js +12 -4
- package/dist/prosemirror/extensions/marks/FontSizeExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/FootnoteRefExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/FootnoteRefExtension.js +42 -4
- package/dist/prosemirror/extensions/marks/HiddenTextExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/HighlightExtension.d.ts +4 -4
- package/dist/prosemirror/extensions/marks/HighlightExtension.js +6 -4
- package/dist/prosemirror/extensions/marks/HyperlinkExtension.d.ts +5 -6
- package/dist/prosemirror/extensions/marks/HyperlinkExtension.js +9 -3
- package/dist/prosemirror/extensions/marks/InlineWrapperExtension.d.ts +3 -4
- package/dist/prosemirror/extensions/marks/ItalicExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/LanguageExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/RtlExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/RunFormattingOverrideExtension.d.ts +5 -5
- package/dist/prosemirror/extensions/marks/RunIdentityExtension.d.ts +3 -3
- package/dist/prosemirror/extensions/marks/RunShadingExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/SmallCapsExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/StrikeExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/StrikeExtension.js +9 -3
- package/dist/prosemirror/extensions/marks/SubscriptExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/SubscriptExtension.js +3 -2
- package/dist/prosemirror/extensions/marks/SuperscriptExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/SuperscriptExtension.js +3 -2
- package/dist/prosemirror/extensions/marks/TextColorExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/TextColorExtension.js +7 -6
- package/dist/prosemirror/extensions/marks/TextEffectExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/TextEffectsExtensions.d.ts +6 -7
- package/dist/prosemirror/extensions/marks/TextEffectsExtensions.js +1 -4
- package/dist/prosemirror/extensions/marks/TrackedChangeExtensions.d.ts +4 -5
- package/dist/prosemirror/extensions/marks/TrackedChangeExtensions.js +18 -2
- package/dist/prosemirror/extensions/marks/UnderlineExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/marks/UnderlineExtension.js +10 -3
- package/dist/prosemirror/extensions/marks/markUtils.d.ts +82 -25
- package/dist/prosemirror/extensions/marks/markUtils.js +138 -74
- package/dist/prosemirror/extensions/marks/noteReferenceDeletion.d.ts +3 -3
- package/dist/prosemirror/extensions/nodes/BlockBookmarkBoundaryExtension.d.ts +6 -3
- package/dist/prosemirror/extensions/nodes/BlockBookmarkBoundaryExtension.js +4 -4
- package/dist/prosemirror/extensions/nodes/BlockCustomXmlExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/BlockMoveRangeBoundaryExtension.d.ts +24 -0
- package/dist/prosemirror/extensions/nodes/BlockMoveRangeBoundaryExtension.js +59 -0
- package/dist/prosemirror/extensions/nodes/BlockSdtExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/BookmarkBoundaryExtension.d.ts +3 -3
- package/dist/prosemirror/extensions/nodes/BookmarkBoundaryExtension.js +1 -1
- package/dist/prosemirror/extensions/nodes/CommentRangeBoundaryExtension.d.ts +10 -0
- package/dist/prosemirror/extensions/nodes/CommentRangeBoundaryExtension.js +43 -0
- package/dist/prosemirror/extensions/nodes/CommentReferenceExtension.d.ts +3 -5
- package/dist/prosemirror/extensions/nodes/CommentReferenceExtension.js +5 -73
- package/dist/prosemirror/extensions/nodes/FieldExtension.d.ts +4 -4
- package/dist/prosemirror/extensions/nodes/FieldExtension.js +12 -2
- package/dist/prosemirror/extensions/nodes/HardBreakExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/HorizontalRuleExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/ImageExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/MathExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/MoveRangeBoundaryExtension.d.ts +4 -4
- package/dist/prosemirror/extensions/nodes/MoveRangeBoundaryExtension.js +8 -4
- package/dist/prosemirror/extensions/nodes/NoteMarkerExtension.d.ts +3 -4
- package/dist/prosemirror/extensions/nodes/PageBreakExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/PageBreakRunExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/PreservedBlockExtension.d.ts +3 -4
- package/dist/prosemirror/extensions/nodes/PreservedXmlExtension.d.ts +3 -4
- package/dist/prosemirror/extensions/nodes/RangeAnchorExtension.d.ts +4 -4
- package/dist/prosemirror/extensions/nodes/RangeAnchorExtension.js +20 -4
- package/dist/prosemirror/extensions/nodes/RenderedPageBreakExtension.d.ts +3 -4
- package/dist/prosemirror/extensions/nodes/SdtExtension.d.ts +3 -4
- package/dist/prosemirror/extensions/nodes/ShapeExtension.d.ts +11 -11
- package/dist/prosemirror/extensions/nodes/ShapeExtension.js +5 -6
- package/dist/prosemirror/extensions/nodes/SymbolExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/SymbolExtension.js +3 -3
- package/dist/prosemirror/extensions/nodes/TabExtension.d.ts +2 -3
- package/dist/prosemirror/extensions/nodes/TableExtension.d.ts +10 -10
- package/dist/prosemirror/extensions/nodes/TableExtension.js +11 -13
- package/dist/prosemirror/extensions/nodes/TextBoxAnchorExtension.d.ts +3 -3
- package/dist/prosemirror/extensions/nodes/TextBoxExtension.d.ts +4 -5
- package/dist/prosemirror/extensions/nodes/bookmarkBoundaryDom.d.ts +7 -5
- package/dist/prosemirror/extensions/nodes/bookmarkBoundaryDom.js +9 -3
- package/dist/prosemirror/extensions/types.d.ts +27 -27
- package/dist/prosemirror/fieldRepresentation.d.ts +6 -5
- package/dist/prosemirror/fieldRepresentation.js +17 -5
- package/dist/prosemirror/findReplaceSelection.d.ts +44 -8
- package/dist/prosemirror/findReplaceSelection.js +143 -42
- package/dist/prosemirror/hyperlinkRemoval.d.ts +4 -4
- package/dist/prosemirror/hyperlinkRemoval.js +12 -0
- package/dist/prosemirror/imageCommit.d.ts +5 -23
- package/dist/prosemirror/imageCommit.js +1 -29
- package/dist/prosemirror/imagePictureNames.d.ts +4 -5
- package/dist/prosemirror/indexedNodeLookup.d.ts +4 -4
- package/dist/prosemirror/inlineDisplayText.d.ts +9 -0
- package/dist/prosemirror/inlineDisplayText.js +29 -0
- package/dist/prosemirror/inlineWrapperStack.d.ts +8 -9
- package/dist/prosemirror/insertOperations.d.ts +4 -4
- package/dist/prosemirror/keptRangeBoundaries.d.ts +76 -0
- package/dist/prosemirror/keptRangeBoundaries.js +381 -0
- package/dist/prosemirror/listAutoformatMarkers.d.ts +3 -4
- package/dist/prosemirror/listInstanceReferences.d.ts +3 -4
- package/dist/prosemirror/listInstanceReferences.js +1 -1
- package/dist/prosemirror/listLabels.d.ts +15 -5
- package/dist/prosemirror/listLabels.js +101 -16
- package/dist/prosemirror/listMarker.d.ts +13 -13
- package/dist/prosemirror/listMarker.js +7 -2
- package/dist/prosemirror/listNumbering.d.ts +11 -11
- package/dist/prosemirror/listNumbering.js +0 -16
- package/dist/prosemirror/listRendering.d.ts +5 -5
- package/dist/prosemirror/listRendering.js +4 -0
- package/dist/prosemirror/listRenderingAttrs.d.ts +12 -11
- package/dist/prosemirror/listRenderingAttrs.js +9 -5
- package/dist/prosemirror/listState.d.ts +9 -10
- package/dist/prosemirror/markupViewNotes.d.ts +2 -3
- package/dist/prosemirror/markupViewProjection.d.ts +9 -8
- package/dist/prosemirror/moveRangeBoundaryAttrs.d.ts +7 -6
- package/dist/prosemirror/moveRangeBoundaryAttrs.js +27 -4
- package/dist/prosemirror/noteReferenceOccurrenceId.d.ts +2 -3
- package/dist/prosemirror/noteReferenceOccurrences.d.ts +9 -9
- package/dist/prosemirror/noteReferenceReview.d.ts +13 -13
- package/dist/prosemirror/noteReferenceReview.js +4 -10
- package/dist/prosemirror/numberedRefFields.d.ts +5 -5
- package/dist/prosemirror/numberingAttr.d.ts +11 -11
- package/dist/prosemirror/outlineLevelAttr.d.ts +3 -4
- package/dist/prosemirror/pageBreakRunProjection.d.ts +5 -5
- package/dist/prosemirror/paraText.d.ts +4 -5
- package/dist/prosemirror/paragraphAlignment.d.ts +2 -3
- package/dist/prosemirror/paragraphDirection.d.ts +8 -9
- package/dist/prosemirror/paragraphFormattingProvenance.d.ts +14 -7
- package/dist/prosemirror/paragraphFormattingProvenance.js +8 -0
- package/dist/prosemirror/paragraphIndentation.d.ts +7 -7
- package/dist/prosemirror/paragraphList.d.ts +39 -0
- package/dist/prosemirror/paragraphList.js +81 -0
- package/dist/prosemirror/paragraphMarkJoin.d.ts +12 -2
- package/dist/prosemirror/paragraphMarkJoin.js +34 -3
- package/dist/prosemirror/paragraphPropertyCarry.d.ts +7 -7
- package/dist/prosemirror/paragraphSpacing.d.ts +9 -9
- package/dist/prosemirror/paragraphSpacing.js +16 -10
- package/dist/prosemirror/pluginKeyOwner.d.ts +3 -4
- package/dist/prosemirror/plugins/aiCitationDecorations.d.ts +6 -6
- package/dist/prosemirror/plugins/aiCitationDecorations.js +0 -12
- package/dist/prosemirror/plugins/aiSuggestionDecorations.d.ts +6 -6
- package/dist/prosemirror/plugins/aiSuggestionDecorations.js +0 -14
- package/dist/prosemirror/plugins/anonymizationDecorations.d.ts +9 -9
- package/dist/prosemirror/plugins/anonymizationDecorations.js +0 -18
- package/dist/prosemirror/plugins/autocompleteSuggestion.d.ts +19 -19
- package/dist/prosemirror/plugins/autocompleteSuggestion.js +3 -25
- package/dist/prosemirror/plugins/contentControlWidgets.d.ts +10 -10
- package/dist/prosemirror/plugins/contentControlWidgets.js +13 -7
- package/dist/prosemirror/plugins/createDocScanPlugin.d.ts +6 -6
- package/dist/prosemirror/plugins/documentNumbering.d.ts +11 -9
- package/dist/prosemirror/plugins/documentNumbering.js +42 -42
- package/dist/prosemirror/plugins/documentStyleState.d.ts +5 -6
- package/dist/prosemirror/plugins/documentStyles.d.ts +4 -4
- package/dist/prosemirror/plugins/documentStyles.js +2 -1
- package/dist/prosemirror/plugins/lockedControlKeyHandling.d.ts +4 -0
- package/dist/prosemirror/plugins/lockedControlKeyHandling.js +16 -0
- package/dist/prosemirror/plugins/paragraphStyleResolution.d.ts +3 -3
- package/dist/prosemirror/plugins/paragraphStyleResolution.js +23 -1
- package/dist/prosemirror/plugins/pmTextScan.d.ts +5 -6
- package/dist/prosemirror/plugins/revisionIds.d.ts +11 -11
- package/dist/prosemirror/plugins/revisionIds.js +11 -0
- package/dist/prosemirror/plugins/selectionTracker.d.ts +7 -8
- package/dist/prosemirror/plugins/suggestionMode.d.ts +16 -16
- package/dist/prosemirror/plugins/suggestionMode.js +11 -3
- package/dist/prosemirror/plugins/templateDirectives.d.ts +8 -8
- package/dist/prosemirror/plugins/templateDirectives.js +0 -17
- package/dist/prosemirror/plugins/templatePreviewValues.d.ts +12 -12
- package/dist/prosemirror/plugins/templatePreviewValues.js +0 -23
- package/dist/prosemirror/plugins/templateSlashMenu.d.ts +10 -11
- package/dist/prosemirror/plugins/templateSlashMenu.js +3 -21
- package/dist/prosemirror/plugins/transactionInvariants.d.ts +7 -8
- package/dist/prosemirror/positionSweep.d.ts +4 -5
- package/dist/prosemirror/positionSweep.js +1 -1
- package/dist/prosemirror/preservedXmlReview.d.ts +2 -3
- package/dist/prosemirror/queries.d.ts +5 -6
- package/dist/prosemirror/rangeAnchorAttrs.d.ts +4 -5
- package/dist/prosemirror/rangeAnchorAttrs.js +4 -1
- package/dist/prosemirror/rebaseParagraphRunFormatting.d.ts +3 -3
- package/dist/prosemirror/rebaseParagraphRunFormatting.js +6 -5
- package/dist/prosemirror/rebaseParagraphRuns.d.ts +4 -4
- package/dist/prosemirror/rebaseParagraphRuns.js +15 -11
- package/dist/prosemirror/rejoinRunCarriers.d.ts +3 -3
- package/dist/prosemirror/replacedAnnotations.d.ts +31 -17
- package/dist/prosemirror/replacedAnnotations.js +80 -11
- package/dist/prosemirror/revisionCarriers.d.ts +13 -13
- package/dist/prosemirror/runContentProjection.d.ts +6 -0
- package/dist/prosemirror/runContentProjection.js +24 -0
- package/dist/prosemirror/runFormattingFromMarks.d.ts +5 -6
- package/dist/prosemirror/runFormattingFromMarks.js +19 -17
- package/dist/prosemirror/runFormattingInlineCarriers.d.ts +16 -15
- package/dist/prosemirror/runFormattingInlineCarriers.js +1 -0
- package/dist/prosemirror/runFormattingMarkNames.d.ts +2 -3
- package/dist/prosemirror/runFormattingProvenance.d.ts +5 -6
- package/dist/prosemirror/runFormattingReconciliation.d.ts +4 -4
- package/dist/prosemirror/runFormattingReconciliation.js +6 -4
- package/dist/prosemirror/runIdentity.d.ts +6 -7
- package/dist/prosemirror/runIdentityAcrossRevisions.d.ts +16 -5
- package/dist/prosemirror/runIdentityAcrossRevisions.js +92 -32
- package/dist/prosemirror/runPropertyChangeResolution.d.ts +3 -3
- package/dist/prosemirror/runPropertyChangeResolution.js +11 -10
- package/dist/prosemirror/runStyleFormatting.d.ts +16 -16
- package/dist/prosemirror/runStyleFormatting.js +4 -2
- package/dist/prosemirror/schema/index.d.ts +6 -6
- package/dist/prosemirror/schema/marks.d.ts +36 -39
- package/dist/prosemirror/schema/nodes.d.ts +42 -35
- package/dist/prosemirror/sectionCarrier.d.ts +7 -8
- package/dist/prosemirror/sectionMarkEdits.d.ts +3 -4
- package/dist/prosemirror/sectionMarkEdits.js +21 -1
- package/dist/prosemirror/selectionMarks.d.ts +2 -2
- package/dist/prosemirror/selectionState.d.ts +5 -6
- package/dist/prosemirror/selectionState.js +1 -4
- package/dist/prosemirror/shapeGeometryAdjustments.d.ts +2 -3
- package/dist/prosemirror/storyListNumbering.d.ts +2 -2
- package/dist/prosemirror/storyListNumbering.js +2 -1
- package/dist/prosemirror/styles/index.js +1 -2
- package/dist/prosemirror/styles/paragraphStyleCascade.d.ts +9 -9
- package/dist/prosemirror/styles/paragraphStyleCascade.js +17 -2
- package/dist/prosemirror/styles/resolvedStyleAttrs.d.ts +8 -8
- package/dist/prosemirror/styles/styleResolver.d.ts +6 -7
- package/dist/prosemirror/styles/styleResolver.js +17 -0
- package/dist/prosemirror/styles/styleToggleCascade.d.ts +4 -4
- package/dist/prosemirror/styles/tableStyleRegions.d.ts +5 -6
- package/dist/prosemirror/tableCellMergeRevision.d.ts +3 -4
- package/dist/prosemirror/tableCellPaste.d.ts +11 -12
- package/dist/prosemirror/tableCellRevisionVisibility.d.ts +2 -3
- package/dist/prosemirror/tableGridMutation.d.ts +12 -12
- package/dist/prosemirror/tableResize.d.ts +18 -18
- package/dist/prosemirror/tableResize.js +64 -53
- package/dist/prosemirror/tableRunIn.d.ts +10 -5
- package/dist/prosemirror/tableRunIn.js +44 -9
- package/dist/prosemirror/textBoxAnchorAttrs.d.ts +3 -4
- package/dist/prosemirror/textBoxAnchorAttrs.js +4 -1
- package/dist/prosemirror/textBoxHostCollapse.d.ts +8 -0
- package/dist/prosemirror/textBoxHostCollapse.js +79 -0
- package/dist/prosemirror/textBoxHostParagraph.d.ts +2 -3
- package/dist/prosemirror/textInput.d.ts +12 -6
- package/dist/prosemirror/textInput.js +26 -2
- package/dist/prosemirror/trackedRevisionPath.d.ts +6 -6
- package/dist/prosemirror/trackedRevisionPath.js +7 -4
- package/dist/prosemirror/trackedRunInlineAtoms.d.ts +9 -9
- package/dist/prosemirror/trackedRunInlineAtoms.js +4 -3
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +4 -5
- package/dist/prosemirror/utils/findParagraphByParaId.d.ts +3 -4
- package/dist/prosemirror/utils/tabCalculator.js +1 -2
- package/dist/prosemirror/utils/visualLineNavigation.d.ts +7 -7
- package/dist/prosemirror/utils/visualLineNavigation.js +2 -14
- package/dist/prosemirror/validation.d.ts +7 -8
- package/dist/prosemirror/validation.js +25 -10
- package/dist/prosemirror/yjsDocumentMetadata.d.ts +15 -15
- package/dist/prosemirror/yjsDocumentMetadata.js +15 -12
- package/dist/prosemirror/zeroWidthAnchors.d.ts +7 -6
- package/dist/prosemirror/zeroWidthAnchors.js +53 -16
- package/dist/redline.d.ts +8 -8
- package/dist/redline.js +2 -1
- package/dist/redlineOperationLimit.d.ts +3 -3
- package/dist/render-dom/BodySelectionOverlay.d.ts +4 -5
- package/dist/render-dom/HeaderFooterSelectionOverlay.d.ts +6 -7
- package/dist/render-dom/RemoteSelectionOverlay.d.ts +5 -6
- package/dist/render-dom/RenderedDomContext.d.ts +6 -7
- package/dist/render-dom/commentAnchorAttributes.d.ts +6 -6
- package/dist/render-dom/resolveSidebarItemPositions.d.ts +5 -6
- package/dist/reviewHistoryLimits.d.ts +3 -0
- package/dist/reviewHistoryLimits.js +4 -0
- package/dist/server.d.ts +2 -1
- package/dist/server.js +2 -1
- package/dist/shaping/placeRun.d.ts +7 -8
- package/dist/shaping/shaper.d.ts +16 -16
- package/dist/style-engine/index.js +1 -2
- package/dist/style-engine/styleEngine.d.ts +5 -6
- package/dist/style-sets/extract.d.ts +8 -9
- package/dist/style-sets/stellaStyle.d.ts +4 -5
- package/dist/style-sets/styleSetNormalization.d.ts +6 -7
- package/dist/style-sets/types.d.ts +5 -6
- package/dist/symbols.d.ts +8 -9
- package/dist/types/block-id.d.ts +11 -12
- package/dist/types/canonicalCapabilities.d.ts +11 -19
- package/dist/types/canonicalCapabilities.js +5 -12
- package/dist/types/canonicalComments.d.ts +3 -4
- package/dist/types/canonicalSave.d.ts +2 -3
- package/dist/types/canonicalSections.d.ts +2 -3
- package/dist/types/documentEnumValues.d.ts +48 -49
- package/dist/types/docxSerialization.d.ts +4 -5
- package/dist/types/editor-story.d.ts +2 -3
- package/dist/types/remote-selection.d.ts +2 -3
- package/dist/types/wrap.d.ts +5 -6
- package/dist/utils/authorColors.d.ts +4 -5
- package/dist/utils/base64.d.ts +2 -2
- package/dist/utils/baseDirection.d.ts +4 -5
- package/dist/utils/borderCss.d.ts +9 -10
- package/dist/utils/boundedContentIdentity.d.ts +13 -0
- package/dist/utils/boundedContentIdentity.js +42 -0
- package/dist/utils/canonicalJson.d.ts +2 -3
- package/dist/utils/clipboard.d.ts +22 -22
- package/dist/utils/clipboard.js +9 -6
- package/dist/utils/colorResolver.d.ts +22 -23
- package/dist/utils/colorResolver.js +0 -20
- package/dist/utils/createDocument.d.ts +4 -4
- package/dist/utils/cursiveJoining.d.ts +7 -8
- package/dist/utils/documentLoaderBehavior.d.ts +3 -4
- package/dist/utils/documentPointerDown.d.ts +5 -0
- package/dist/utils/documentPointerDown.js +28 -0
- package/dist/utils/docxInput.d.ts +3 -4
- package/dist/utils/domGuards.d.ts +7 -8
- package/dist/utils/findMatchView.d.ts +32 -0
- package/dist/utils/findMatchView.js +406 -0
- package/dist/utils/findReplace.d.ts +68 -10
- package/dist/utils/findReplace.js +359 -37
- package/dist/utils/findSearchKey.d.ts +29 -0
- package/dist/utils/findSearchKey.js +34 -0
- package/dist/utils/findVerticalScrollParent.d.ts +3 -4
- package/dist/utils/fontFamilyMerge.d.ts +2 -2
- package/dist/utils/fontLoader.d.ts +12 -13
- package/dist/utils/fontResolver.d.ts +16 -14
- package/dist/utils/fontResolver.js +33 -5
- package/dist/utils/fontWeights.d.ts +2 -3
- package/dist/utils/formatToStyle.d.ts +14 -14
- package/dist/utils/formatToStyle.js +17 -15
- package/dist/utils/headerFooter.d.ts +11 -12
- package/dist/utils/headerFooter.js +10 -0
- package/dist/utils/headingCollector.d.ts +3 -4
- package/dist/utils/hexId.d.ts +6 -7
- package/dist/utils/hexId.js +1 -1
- package/dist/utils/horizontalScale.d.ts +5 -6
- package/dist/utils/htmlComments.d.ts +2 -3
- package/dist/utils/imageLuminance.d.ts +4 -5
- package/dist/utils/imageResize.d.ts +18 -0
- package/dist/utils/imageResize.js +37 -0
- package/dist/utils/imageValidation.d.ts +3 -4
- package/dist/utils/imageValidation.js +1 -1
- package/dist/utils/joiningTypes.gen.d.ts +5 -6
- package/dist/utils/mergeDocumentContent.d.ts +2 -3
- package/dist/utils/mergeDocumentContent.js +7 -0
- package/dist/utils/noteReferenceLabels.d.ts +7 -8
- package/dist/utils/ooxmlSymbol.d.ts +5 -3
- package/dist/utils/ooxmlSymbol.js +51 -1
- package/dist/utils/outlineDepth.d.ts +4 -5
- package/dist/utils/paragraphBaseDirection.d.ts +2 -3
- package/dist/utils/paragraphBaseDirection.js +2 -1
- package/dist/utils/paragraphFormattingMerge.d.ts +4 -5
- package/dist/utils/paragraphFormattingMerge.js +2 -0
- package/dist/utils/paragraphFrame.d.ts +20 -0
- package/dist/utils/paragraphFrame.js +13 -0
- package/dist/utils/paragraphInlineLayout.d.ts +101 -4
- package/dist/utils/paragraphInlineLayout.js +164 -1
- package/dist/utils/replaceText.d.ts +2 -2
- package/dist/utils/replaceText.js +138 -107
- package/dist/utils/rotationBoundingBox.d.ts +7 -8
- package/dist/utils/sanitizeImageSrc.d.ts +3 -4
- package/dist/utils/scriptSegments.d.ts +34 -16
- package/dist/utils/scriptSegments.js +26 -6
- package/dist/utils/sliceText.js +1 -2
- package/dist/utils/stripXmlDeclarations.d.ts +2 -3
- package/dist/utils/tableOfContentsStyle.d.ts +2 -2
- package/dist/utils/tableOperations.d.ts +16 -17
- package/dist/utils/tableOperations.js +44 -41
- package/dist/utils/tablePlacement.d.ts +3 -4
- package/dist/utils/textAdvanceGapsDom.d.ts +8 -0
- package/dist/utils/textAdvanceGapsDom.js +49 -0
- package/dist/utils/textDirectionFlow.d.ts +3 -4
- package/dist/utils/textEncoding.js +1 -2
- package/dist/utils/textFormattingMerge.d.ts +4 -5
- package/dist/utils/tiffConverter.d.ts +5 -6
- package/dist/utils/trailingText.d.ts +4 -5
- package/dist/utils/units.d.ts +19 -20
- package/dist/utils/urlSecurity.d.ts +6 -6
- package/dist/utils/urlSecurity.js +2 -1
- package/dist/utils/zoom.d.ts +4 -5
- package/dist/version-comparison.d.ts +28 -28
- package/dist/version-comparison.js +8 -7
- package/dist/watermark/index.d.ts +5 -5
- package/dist/watermark/index.js +9 -0
- package/package.json +16 -16
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { OutlineStyleAttr } from "../types/documentEnumValues.js";
|
|
2
|
+
import { DocumentFontFacts } from "../fonts/documentFontFacts.js";
|
|
3
|
+
import { NoteStoryKey } from "../types/editor-story.js";
|
|
2
4
|
import { CssBorderStyle } from "../utils/borderCss.js";
|
|
5
|
+
import { AutomaticTextSpacingPolicy } from "./measure/measureTypes.js";
|
|
3
6
|
import { ImagePosition, ImageWrap, InlineWrapper, NumberFormat, OutlineLevel, ParagraphNumberingOverride, PreviewDescriptor, SdtProperties, SdtType, SectionStart, ShapeTextBody, TableCellFormatting, TableWidthType, UnderlineStyle, VerticalAlign } from "@stll/docx-core/model";
|
|
4
7
|
declare namespace types_d_exports {
|
|
5
8
|
export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, ColumnLayout, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FOOTNOTE_ENTRY_MARGIN_BOTTOM, FOOTNOTE_FALLBACK_LINE_HEIGHT, FOOTNOTE_SEPARATOR_HEIGHT, FieldRun, FloatingTablePosition, FlowBlock, FootnoteContent, Fragment, FragmentBase, HeaderFooterContent, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, Layout, LayoutOptions, LineBreakRun, ListMarkerFormatting, MathRun, Measure, MeasuredLine, NOTE_SEPARATOR_RULE_THICKNESS, NOTE_SEPARATOR_WIDTH_FRACTION, NoteAreaLayout, NoteSeparatorKind, NoteSeparatorRule, Page, PageBreakBlock, PageBreakMeasure, PageHeaderFooterRefs, PageMargins, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, RenderedPageBreakRun, Run, RunFormatting, SdtGroup, SectionBreakBlock, SectionBreakMeasure, SectionPageNumbering, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableMeasure, TableRow, TableRowMeasure, TextBoxBlock, TextBoxFlowAttrs, TextBoxFragment, TextBoxGradientFill, TextBoxMeasure, TextRun, floatingTextBoxReservesBand, floatingTextBoxWrapsText, getTableRowLeadingWidth, isFloatingImageRun, isFloatingTextBoxBlock, isListNumPr, isTextWrappingFloatingImageRun, resolveTableCellPadding, resolveTableWidthPx, stripFlowBlockPmAnchors, tableColumnsArePinned };
|
|
@@ -8,13 +11,16 @@ declare namespace types_d_exports {
|
|
|
8
11
|
* Unique identifier for a block in the document.
|
|
9
12
|
* Format: typically `${index}-${type}` or just the block index.
|
|
10
13
|
*/
|
|
11
|
-
type BlockId = string | number;
|
|
14
|
+
export type BlockId = string | number;
|
|
12
15
|
/**
|
|
13
16
|
* Common run formatting properties applied to text runs.
|
|
14
17
|
*/
|
|
15
|
-
type RunFormatting = {
|
|
18
|
+
export type RunFormatting = {
|
|
19
|
+
automaticTextSpacing?: AutomaticTextSpacingPolicy;
|
|
16
20
|
/** Embedded families owned by this editor, never ambient process state. */
|
|
17
21
|
embeddedFontFamilyMap?: ReadonlyMap<string, string>;
|
|
22
|
+
/** Authored font-table facts owned by this document. */
|
|
23
|
+
documentFontFacts?: DocumentFontFacts;
|
|
18
24
|
bold?: boolean;
|
|
19
25
|
italic?: boolean;
|
|
20
26
|
/**
|
|
@@ -39,6 +45,10 @@ type RunFormatting = {
|
|
|
39
45
|
fontFamily?: string;
|
|
40
46
|
/** OOXML `w:altName` fallback for `fontFamily`, used only when the primary face is absent. */
|
|
41
47
|
alternateFontFamily?: string;
|
|
48
|
+
/** Resolved `w:hAnsi` face for non-ASCII western text and unhinted punctuation. */
|
|
49
|
+
hAnsiFontFamily?: string;
|
|
50
|
+
/** OOXML `w:altName` fallback for `hAnsiFontFamily`. */
|
|
51
|
+
hAnsiAlternateFontFamily?: string;
|
|
42
52
|
/**
|
|
43
53
|
* Resolved East-Asian font (`w:eastAsia` / `eastAsiaTheme`). CJK code points
|
|
44
54
|
* in this run measure and paint with this font; non-CJK keeps `fontFamily`
|
|
@@ -162,11 +172,11 @@ type RunFormatting = {
|
|
|
162
172
|
/** Groups a suggestion's runs for accept/reject and scroll-to. */
|
|
163
173
|
suggestionId?: string;
|
|
164
174
|
};
|
|
165
|
-
type ListMarkerFormatting = Pick<RunFormatting, "embeddedFontFamilyMap" | "fontFamily" | "alternateFontFamily" | "eastAsiaFontFamily" | "eastAsiaAlternateFontFamily" | "complexScriptFontFamily" | "complexScriptAlternateFontFamily" | "fontSize" | "complexScriptFontSize" | "bold" | "complexScriptBold" | "italic" | "complexScriptItalic" | "rtl" | "forceComplexScript" | "color">;
|
|
175
|
+
export type ListMarkerFormatting = Pick<RunFormatting, "embeddedFontFamilyMap" | "documentFontFacts" | "fontFamily" | "alternateFontFamily" | "hAnsiFontFamily" | "hAnsiAlternateFontFamily" | "eastAsiaFontFamily" | "eastAsiaAlternateFontFamily" | "complexScriptFontFamily" | "complexScriptAlternateFontFamily" | "fontSize" | "complexScriptFontSize" | "bold" | "complexScriptBold" | "italic" | "complexScriptItalic" | "rtl" | "forceComplexScript" | "color">;
|
|
166
176
|
/**
|
|
167
177
|
* Hyperlink information for a run.
|
|
168
178
|
*/
|
|
169
|
-
type HyperlinkInfo = {
|
|
179
|
+
export type HyperlinkInfo = {
|
|
170
180
|
href: string;
|
|
171
181
|
tooltip?: string;
|
|
172
182
|
/**
|
|
@@ -181,7 +191,7 @@ type HyperlinkInfo = {
|
|
|
181
191
|
/**
|
|
182
192
|
* A text run within a paragraph.
|
|
183
193
|
*/
|
|
184
|
-
type TextRun = RunFormatting & {
|
|
194
|
+
export type TextRun = RunFormatting & {
|
|
185
195
|
kind: "text";
|
|
186
196
|
text: string;
|
|
187
197
|
/** Hyperlink information if this run is a link. */
|
|
@@ -203,7 +213,7 @@ type TextRun = RunFormatting & {
|
|
|
203
213
|
/**
|
|
204
214
|
* A tab character run.
|
|
205
215
|
*/
|
|
206
|
-
type TabRun = RunFormatting & {
|
|
216
|
+
export type TabRun = RunFormatting & {
|
|
207
217
|
kind: "tab";
|
|
208
218
|
width?: number;
|
|
209
219
|
pmStart?: number;
|
|
@@ -212,7 +222,7 @@ type TabRun = RunFormatting & {
|
|
|
212
222
|
/**
|
|
213
223
|
* Position data for floating/anchored images.
|
|
214
224
|
*/
|
|
215
|
-
type ImageRunPosition = {
|
|
225
|
+
export type ImageRunPosition = {
|
|
216
226
|
horizontal?: {
|
|
217
227
|
relativeTo?: NonNullable<ImagePosition["horizontal"]["relativeTo"]>;
|
|
218
228
|
posOffset?: number;
|
|
@@ -227,7 +237,7 @@ type ImageRunPosition = {
|
|
|
227
237
|
/**
|
|
228
238
|
* An inline image run.
|
|
229
239
|
*/
|
|
230
|
-
type ImageRun = {
|
|
240
|
+
export type ImageRun = {
|
|
231
241
|
kind: "image";
|
|
232
242
|
src: string;
|
|
233
243
|
/** Set instead of `src` for a drawing with no image data; see {@link ImageBlock.preview}. */
|
|
@@ -294,13 +304,13 @@ type ImageRun = {
|
|
|
294
304
|
/**
|
|
295
305
|
* A line break run.
|
|
296
306
|
*/
|
|
297
|
-
type LineBreakRun = {
|
|
307
|
+
export type LineBreakRun = {
|
|
298
308
|
kind: "lineBreak";
|
|
299
309
|
pmStart?: number;
|
|
300
310
|
pmEnd?: number;
|
|
301
311
|
};
|
|
302
312
|
/** Zero-width cached page boundary inside a paragraph. */
|
|
303
|
-
type RenderedPageBreakRun = RunFormatting & {
|
|
313
|
+
export type RenderedPageBreakRun = RunFormatting & {
|
|
304
314
|
kind: "renderedPageBreak";
|
|
305
315
|
pmStart?: number;
|
|
306
316
|
pmEnd?: number;
|
|
@@ -308,7 +318,7 @@ type RenderedPageBreakRun = RunFormatting & {
|
|
|
308
318
|
/**
|
|
309
319
|
* A field run (PAGE, NUMPAGES, etc.) that gets substituted at render time.
|
|
310
320
|
*/
|
|
311
|
-
type FieldRun = RunFormatting & {
|
|
321
|
+
export type FieldRun = RunFormatting & {
|
|
312
322
|
kind: "field";
|
|
313
323
|
/** Coarse render category, kept for cache keys and caret-width fast paths. */
|
|
314
324
|
fieldType: "PAGE" | "NUMPAGES" | "DATE" | "TIME" | "OTHER";
|
|
@@ -331,7 +341,7 @@ type FieldRun = RunFormatting & {
|
|
|
331
341
|
* markup changes; it is never modified on save (round-trip happens via
|
|
332
342
|
* the document model, not the layout layer).
|
|
333
343
|
*/
|
|
334
|
-
type MathRun = RunFormatting & {
|
|
344
|
+
export type MathRun = RunFormatting & {
|
|
335
345
|
kind: "math";
|
|
336
346
|
/** `inline` = `<m:oMath>`, `block` = `<m:oMathPara>`. */
|
|
337
347
|
display: "inline" | "block";
|
|
@@ -345,11 +355,11 @@ type MathRun = RunFormatting & {
|
|
|
345
355
|
/**
|
|
346
356
|
* Union of all run types.
|
|
347
357
|
*/
|
|
348
|
-
type Run = TextRun | TabRun | ImageRun | LineBreakRun | RenderedPageBreakRun | FieldRun | MathRun;
|
|
358
|
+
export type Run = TextRun | TabRun | ImageRun | LineBreakRun | RenderedPageBreakRun | FieldRun | MathRun;
|
|
349
359
|
/**
|
|
350
360
|
* Paragraph spacing configuration.
|
|
351
361
|
*/
|
|
352
|
-
type ParagraphSpacing = {
|
|
362
|
+
export type ParagraphSpacing = {
|
|
353
363
|
before?: number;
|
|
354
364
|
after?: number;
|
|
355
365
|
line?: number;
|
|
@@ -359,7 +369,7 @@ type ParagraphSpacing = {
|
|
|
359
369
|
/**
|
|
360
370
|
* Paragraph indentation configuration.
|
|
361
371
|
*/
|
|
362
|
-
type ParagraphIndent = {
|
|
372
|
+
export type ParagraphIndent = {
|
|
363
373
|
left?: number;
|
|
364
374
|
right?: number;
|
|
365
375
|
firstLine?: number;
|
|
@@ -368,11 +378,11 @@ type ParagraphIndent = {
|
|
|
368
378
|
/**
|
|
369
379
|
* Tab stop alignment types
|
|
370
380
|
*/
|
|
371
|
-
type TabAlignment = "start" | "end" | "center" | "decimal" | "bar" | "clear";
|
|
381
|
+
export type TabAlignment = "start" | "end" | "center" | "decimal" | "bar" | "clear";
|
|
372
382
|
/**
|
|
373
383
|
* Tab stop definition
|
|
374
384
|
*/
|
|
375
|
-
type TabStop = {
|
|
385
|
+
export type TabStop = {
|
|
376
386
|
/** Tab alignment mode */
|
|
377
387
|
val: TabAlignment;
|
|
378
388
|
/** Position in twips from left margin */
|
|
@@ -383,7 +393,7 @@ type TabStop = {
|
|
|
383
393
|
/**
|
|
384
394
|
* Border specification for paragraphs.
|
|
385
395
|
*/
|
|
386
|
-
type BorderStyle = {
|
|
396
|
+
export type BorderStyle = {
|
|
387
397
|
style?: CssBorderStyle;
|
|
388
398
|
width?: number;
|
|
389
399
|
color?: string;
|
|
@@ -392,7 +402,7 @@ type BorderStyle = {
|
|
|
392
402
|
/**
|
|
393
403
|
* Paragraph borders.
|
|
394
404
|
*/
|
|
395
|
-
type ParagraphBorders = {
|
|
405
|
+
export type ParagraphBorders = {
|
|
396
406
|
top?: BorderStyle;
|
|
397
407
|
bottom?: BorderStyle;
|
|
398
408
|
left?: BorderStyle;
|
|
@@ -413,12 +423,13 @@ type ParagraphBorders = {
|
|
|
413
423
|
* used to hold byte-identical copies under different names, and an equality
|
|
414
424
|
* that drifts is how a list silently renumbers.
|
|
415
425
|
*/
|
|
416
|
-
declare const isListNumPr: (value: ParagraphNumberingOverride | null | undefined) => value is ParagraphNumberingOverride;
|
|
426
|
+
export declare const isListNumPr: (value: ParagraphNumberingOverride | null | undefined) => value is ParagraphNumberingOverride;
|
|
417
427
|
/**
|
|
418
428
|
* Paragraph block attributes.
|
|
419
429
|
*/
|
|
420
|
-
type ParagraphAttrs = {
|
|
430
|
+
export type ParagraphAttrs = {
|
|
421
431
|
embeddedFontFamilyMap?: ReadonlyMap<string, string>;
|
|
432
|
+
documentFontFacts?: DocumentFontFacts;
|
|
422
433
|
alignment?: "left" | "center" | "right" | "justify";
|
|
423
434
|
/** Document-generation policy for justified line fitting. */
|
|
424
435
|
justificationCompatibility?: {
|
|
@@ -426,8 +437,11 @@ type ParagraphAttrs = {
|
|
|
426
437
|
};
|
|
427
438
|
/** East Asian first/last-character restrictions (`w:kinsoku`). */
|
|
428
439
|
kinsoku?: boolean;
|
|
440
|
+
autoSpaceDE?: boolean;
|
|
441
|
+
autoSpaceDN?: boolean;
|
|
429
442
|
/** Hanging punctuation (`w:overflowPunct`); defaults to enabled when omitted. */
|
|
430
443
|
overflowPunctuation?: boolean;
|
|
444
|
+
defaultEastAsiaFontFamily?: string;
|
|
431
445
|
/** Exempt this paragraph from document automatic hyphenation. */
|
|
432
446
|
suppressAutoHyphens?: boolean;
|
|
433
447
|
/** Document-wide automatic hyphenation controls retained for line layout. */
|
|
@@ -568,7 +582,7 @@ type ParagraphAttrs = {
|
|
|
568
582
|
/**
|
|
569
583
|
* A paragraph block containing runs.
|
|
570
584
|
*/
|
|
571
|
-
type ParagraphBlock = {
|
|
585
|
+
export type ParagraphBlock = {
|
|
572
586
|
kind: "paragraph";
|
|
573
587
|
id: BlockId;
|
|
574
588
|
/** Stable Word `w14:paraId` / PM `paraId`, when available. */
|
|
@@ -598,7 +612,7 @@ type ParagraphBlock = {
|
|
|
598
612
|
/**
|
|
599
613
|
* Cell border specification for rendering.
|
|
600
614
|
*/
|
|
601
|
-
type CellBorderSpec = {
|
|
615
|
+
export type CellBorderSpec = {
|
|
602
616
|
width?: number;
|
|
603
617
|
color?: string;
|
|
604
618
|
style?: CssBorderStyle;
|
|
@@ -606,7 +620,7 @@ type CellBorderSpec = {
|
|
|
606
620
|
/**
|
|
607
621
|
* Cell borders (all four sides).
|
|
608
622
|
*/
|
|
609
|
-
type CellBorders = {
|
|
623
|
+
export type CellBorders = {
|
|
610
624
|
top?: CellBorderSpec;
|
|
611
625
|
bottom?: CellBorderSpec;
|
|
612
626
|
left?: CellBorderSpec;
|
|
@@ -617,7 +631,7 @@ type CellBorders = {
|
|
|
617
631
|
/**
|
|
618
632
|
* A table cell with content.
|
|
619
633
|
*/
|
|
620
|
-
type TableCell = {
|
|
634
|
+
export type TableCell = {
|
|
621
635
|
id: BlockId;
|
|
622
636
|
blocks: FlowBlock[];
|
|
623
637
|
colSpan?: number;
|
|
@@ -643,11 +657,11 @@ type TableCell = {
|
|
|
643
657
|
};
|
|
644
658
|
type TableCellPadding = NonNullable<TableCell["padding"]>;
|
|
645
659
|
/** Resolve authored cell margins against the TableNormal defaults. */
|
|
646
|
-
declare const resolveTableCellPadding: (cell: Pick<TableCell, "padding"> | undefined) => TableCellPadding;
|
|
660
|
+
export declare const resolveTableCellPadding: (cell: Pick<TableCell, "padding"> | undefined) => TableCellPadding;
|
|
647
661
|
/**
|
|
648
662
|
* A table row containing cells.
|
|
649
663
|
*/
|
|
650
|
-
type TableRow = {
|
|
664
|
+
export type TableRow = {
|
|
651
665
|
id: BlockId;
|
|
652
666
|
cells: TableCell[];
|
|
653
667
|
gridBefore?: number;
|
|
@@ -666,7 +680,7 @@ type TableRow = {
|
|
|
666
680
|
/**
|
|
667
681
|
* Floating table positioning info (pixel values).
|
|
668
682
|
*/
|
|
669
|
-
type FloatingTablePosition = {
|
|
683
|
+
export type FloatingTablePosition = {
|
|
670
684
|
horzAnchor?: "margin" | "page" | "text";
|
|
671
685
|
vertAnchor?: "margin" | "page" | "text";
|
|
672
686
|
tblpX?: number;
|
|
@@ -681,7 +695,7 @@ type FloatingTablePosition = {
|
|
|
681
695
|
/**
|
|
682
696
|
* A table block containing rows.
|
|
683
697
|
*/
|
|
684
|
-
type TableBlock = {
|
|
698
|
+
export type TableBlock = {
|
|
685
699
|
kind: "table";
|
|
686
700
|
id: BlockId;
|
|
687
701
|
rows: TableRow[];
|
|
@@ -729,7 +743,7 @@ type TableBlock = {
|
|
|
729
743
|
/**
|
|
730
744
|
* An anchored/floating image block.
|
|
731
745
|
*/
|
|
732
|
-
type ImageBlock = {
|
|
746
|
+
export type ImageBlock = {
|
|
733
747
|
kind: "image";
|
|
734
748
|
id: BlockId;
|
|
735
749
|
src: string;
|
|
@@ -782,7 +796,7 @@ type ImageBlock = {
|
|
|
782
796
|
/**
|
|
783
797
|
* Section break block defining page layout changes.
|
|
784
798
|
*/
|
|
785
|
-
type SectionBreakBlock = {
|
|
799
|
+
export type SectionBreakBlock = {
|
|
786
800
|
kind: "sectionBreak";
|
|
787
801
|
id: BlockId;
|
|
788
802
|
/**
|
|
@@ -806,7 +820,7 @@ type SectionBreakBlock = {
|
|
|
806
820
|
documentGridLinePitchTwips?: number;
|
|
807
821
|
};
|
|
808
822
|
/** Normalized section page-number policy. An omitted OOXML start continues numbering. */
|
|
809
|
-
type SectionPageNumbering = {
|
|
823
|
+
export type SectionPageNumbering = {
|
|
810
824
|
type: "continue";
|
|
811
825
|
format?: NumberFormat;
|
|
812
826
|
} | {
|
|
@@ -814,7 +828,7 @@ type SectionPageNumbering = {
|
|
|
814
828
|
start: number;
|
|
815
829
|
format?: NumberFormat;
|
|
816
830
|
};
|
|
817
|
-
type PageHeaderFooterRefs = {
|
|
831
|
+
export type PageHeaderFooterRefs = {
|
|
818
832
|
titlePg?: boolean;
|
|
819
833
|
evenAndOddHeaders?: boolean;
|
|
820
834
|
headerDefault?: string;
|
|
@@ -827,7 +841,7 @@ type PageHeaderFooterRefs = {
|
|
|
827
841
|
/**
|
|
828
842
|
* Explicit page break block.
|
|
829
843
|
*/
|
|
830
|
-
type PageBreakBlock = {
|
|
844
|
+
export type PageBreakBlock = {
|
|
831
845
|
kind: "pageBreak";
|
|
832
846
|
id: BlockId;
|
|
833
847
|
/** Revision metadata when the structural boundary is newly authored. */
|
|
@@ -843,28 +857,28 @@ type PageBreakBlock = {
|
|
|
843
857
|
/**
|
|
844
858
|
* Column break block.
|
|
845
859
|
*/
|
|
846
|
-
type ColumnBreakBlock = {
|
|
860
|
+
export type ColumnBreakBlock = {
|
|
847
861
|
kind: "columnBreak";
|
|
848
862
|
id: BlockId;
|
|
849
863
|
pmStart?: number;
|
|
850
864
|
pmEnd?: number;
|
|
851
865
|
};
|
|
852
866
|
/** Default internal margins for text boxes (OOXML defaults in pixels) */
|
|
853
|
-
declare const DEFAULT_TEXTBOX_MARGINS: {
|
|
867
|
+
export declare const DEFAULT_TEXTBOX_MARGINS: {
|
|
854
868
|
top: number;
|
|
855
869
|
bottom: number;
|
|
856
870
|
left: number;
|
|
857
871
|
right: number;
|
|
858
872
|
};
|
|
859
873
|
/** Default text box width in pixels when no width is specified */
|
|
860
|
-
declare const DEFAULT_TEXTBOX_WIDTH = 200;
|
|
874
|
+
export declare const DEFAULT_TEXTBOX_WIDTH = 200;
|
|
861
875
|
/**
|
|
862
876
|
* A linear DrawingML gradient fill with its colors resolved (ECMA-376
|
|
863
877
|
* §20.1.8.33, §20.1.8.41). It runs along `angle`, in degrees clockwise from
|
|
864
878
|
* the positive x axis; when `scaled`, that angle is stated in the unit square
|
|
865
879
|
* and stretched with the box.
|
|
866
880
|
*/
|
|
867
|
-
type TextBoxGradientFill = {
|
|
881
|
+
export type TextBoxGradientFill = {
|
|
868
882
|
angle: number;
|
|
869
883
|
scaled: boolean;
|
|
870
884
|
/** Stops in ascending order; `offset` runs 0 to 1. */
|
|
@@ -876,7 +890,7 @@ type TextBoxGradientFill = {
|
|
|
876
890
|
/**
|
|
877
891
|
* Text box block — positioned container with block content.
|
|
878
892
|
*/
|
|
879
|
-
type TextBoxBlock = {
|
|
893
|
+
export type TextBoxBlock = {
|
|
880
894
|
kind: "textBox";
|
|
881
895
|
id: BlockId;
|
|
882
896
|
/** Width in pixels */
|
|
@@ -955,7 +969,7 @@ type TextBoxBlock = {
|
|
|
955
969
|
* `id` is a per-document, monotonically assigned identifier so nested SDTs
|
|
956
970
|
* stay disambiguated even when alias/tag/sdtId collide.
|
|
957
971
|
*/
|
|
958
|
-
type SdtGroup = {
|
|
972
|
+
export type SdtGroup = {
|
|
959
973
|
/** Folio-local identifier (stable within one toFlowBlocks call). */
|
|
960
974
|
id: string;
|
|
961
975
|
/**
|
|
@@ -994,11 +1008,11 @@ type SdtGroup = {
|
|
|
994
1008
|
/**
|
|
995
1009
|
* Union of all flow block types (input to layout engine).
|
|
996
1010
|
*/
|
|
997
|
-
type FlowBlock = ParagraphBlock | TableBlock | ImageBlock | TextBoxBlock | SectionBreakBlock | PageBreakBlock | ColumnBreakBlock;
|
|
1011
|
+
export type FlowBlock = ParagraphBlock | TableBlock | ImageBlock | TextBoxBlock | SectionBreakBlock | PageBreakBlock | ColumnBreakBlock;
|
|
998
1012
|
/**
|
|
999
1013
|
* A measured line within a paragraph.
|
|
1000
1014
|
*/
|
|
1001
|
-
type MeasuredLine = {
|
|
1015
|
+
export type MeasuredLine = {
|
|
1002
1016
|
/** Starting run index (inclusive). */
|
|
1003
1017
|
fromRun: number;
|
|
1004
1018
|
/** Starting character index within fromRun. */
|
|
@@ -1040,7 +1054,7 @@ type MeasuredLine = {
|
|
|
1040
1054
|
/**
|
|
1041
1055
|
* Measurement result for a paragraph block.
|
|
1042
1056
|
*/
|
|
1043
|
-
type ParagraphMeasure = {
|
|
1057
|
+
export type ParagraphMeasure = {
|
|
1044
1058
|
kind: "paragraph";
|
|
1045
1059
|
lines: MeasuredLine[];
|
|
1046
1060
|
totalHeight: number;
|
|
@@ -1048,7 +1062,7 @@ type ParagraphMeasure = {
|
|
|
1048
1062
|
/**
|
|
1049
1063
|
* Measurement result for an image block.
|
|
1050
1064
|
*/
|
|
1051
|
-
type ImageMeasure = {
|
|
1065
|
+
export type ImageMeasure = {
|
|
1052
1066
|
kind: "image";
|
|
1053
1067
|
width: number;
|
|
1054
1068
|
height: number;
|
|
@@ -1062,7 +1076,7 @@ type ImageMeasure = {
|
|
|
1062
1076
|
/**
|
|
1063
1077
|
* Measurement result for a table cell.
|
|
1064
1078
|
*/
|
|
1065
|
-
type TableCellMeasure = {
|
|
1079
|
+
export type TableCellMeasure = {
|
|
1066
1080
|
blocks: Measure[];
|
|
1067
1081
|
width: number;
|
|
1068
1082
|
height: number;
|
|
@@ -1072,14 +1086,14 @@ type TableCellMeasure = {
|
|
|
1072
1086
|
/**
|
|
1073
1087
|
* Measurement result for a table row.
|
|
1074
1088
|
*/
|
|
1075
|
-
type TableRowMeasure = {
|
|
1089
|
+
export type TableRowMeasure = {
|
|
1076
1090
|
cells: TableCellMeasure[];
|
|
1077
1091
|
height: number;
|
|
1078
1092
|
};
|
|
1079
1093
|
/**
|
|
1080
1094
|
* Measurement result for a table block.
|
|
1081
1095
|
*/
|
|
1082
|
-
type TableMeasure = {
|
|
1096
|
+
export type TableMeasure = {
|
|
1083
1097
|
kind: "table";
|
|
1084
1098
|
rows: TableRowMeasure[];
|
|
1085
1099
|
columnWidths: number[];
|
|
@@ -1092,25 +1106,25 @@ type TableMeasure = {
|
|
|
1092
1106
|
/**
|
|
1093
1107
|
* Measurement result for section break (no visual size).
|
|
1094
1108
|
*/
|
|
1095
|
-
type SectionBreakMeasure = {
|
|
1109
|
+
export type SectionBreakMeasure = {
|
|
1096
1110
|
kind: "sectionBreak";
|
|
1097
1111
|
};
|
|
1098
1112
|
/**
|
|
1099
1113
|
* Measurement result for page break (no visual size).
|
|
1100
1114
|
*/
|
|
1101
|
-
type PageBreakMeasure = {
|
|
1115
|
+
export type PageBreakMeasure = {
|
|
1102
1116
|
kind: "pageBreak";
|
|
1103
1117
|
};
|
|
1104
1118
|
/**
|
|
1105
1119
|
* Measurement result for column break (no visual size).
|
|
1106
1120
|
*/
|
|
1107
|
-
type ColumnBreakMeasure = {
|
|
1121
|
+
export type ColumnBreakMeasure = {
|
|
1108
1122
|
kind: "columnBreak";
|
|
1109
1123
|
};
|
|
1110
1124
|
/**
|
|
1111
1125
|
* Measurement result for a text box block.
|
|
1112
1126
|
*/
|
|
1113
|
-
type TextBoxMeasure = {
|
|
1127
|
+
export type TextBoxMeasure = {
|
|
1114
1128
|
kind: "textBox";
|
|
1115
1129
|
width: number;
|
|
1116
1130
|
height: number;
|
|
@@ -1120,11 +1134,11 @@ type TextBoxMeasure = {
|
|
|
1120
1134
|
/**
|
|
1121
1135
|
* Union of all measurement types.
|
|
1122
1136
|
*/
|
|
1123
|
-
type Measure = ParagraphMeasure | ImageMeasure | TableMeasure | TextBoxMeasure | SectionBreakMeasure | PageBreakMeasure | ColumnBreakMeasure;
|
|
1137
|
+
export type Measure = ParagraphMeasure | ImageMeasure | TableMeasure | TextBoxMeasure | SectionBreakMeasure | PageBreakMeasure | ColumnBreakMeasure;
|
|
1124
1138
|
/**
|
|
1125
1139
|
* Base fragment properties common to all fragment types.
|
|
1126
1140
|
*/
|
|
1127
|
-
type FragmentBase = {
|
|
1141
|
+
export type FragmentBase = {
|
|
1128
1142
|
/** Block ID this fragment belongs to. */
|
|
1129
1143
|
blockId: BlockId;
|
|
1130
1144
|
/** X position on page (relative to page left). */
|
|
@@ -1148,8 +1162,13 @@ type FragmentBase = {
|
|
|
1148
1162
|
* A paragraph fragment positioned on a page.
|
|
1149
1163
|
* May span only part of the paragraph's lines if split across pages.
|
|
1150
1164
|
*/
|
|
1151
|
-
type ParagraphFragment = FragmentBase & {
|
|
1165
|
+
export type ParagraphFragment = FragmentBase & {
|
|
1152
1166
|
kind: "paragraph";
|
|
1167
|
+
/** Paper/gap clip bounds captured from the section active when this fragment was placed. */
|
|
1168
|
+
inlinePictureViewport?: {
|
|
1169
|
+
left: number;
|
|
1170
|
+
right: number;
|
|
1171
|
+
};
|
|
1153
1172
|
/** Structural PM carrier that must not make an otherwise blank page visible. */
|
|
1154
1173
|
paginationRole?: "empty-carrier";
|
|
1155
1174
|
/** First line index (inclusive) from the measure. */
|
|
@@ -1167,7 +1186,7 @@ type ParagraphFragment = FragmentBase & {
|
|
|
1167
1186
|
* A table fragment positioned on a page.
|
|
1168
1187
|
* May span only part of the table's rows if split across pages.
|
|
1169
1188
|
*/
|
|
1170
|
-
type TableFragment = FragmentBase & {
|
|
1189
|
+
export type TableFragment = FragmentBase & {
|
|
1171
1190
|
kind: "table";
|
|
1172
1191
|
/** First row index (inclusive). */
|
|
1173
1192
|
fromRow: number;
|
|
@@ -1197,7 +1216,7 @@ type TableFragment = FragmentBase & {
|
|
|
1197
1216
|
/**
|
|
1198
1217
|
* An image fragment positioned on a page.
|
|
1199
1218
|
*/
|
|
1200
|
-
type ImageFragment = FragmentBase & {
|
|
1219
|
+
export type ImageFragment = FragmentBase & {
|
|
1201
1220
|
kind: "image";
|
|
1202
1221
|
/** Height of the image. */
|
|
1203
1222
|
height: number;
|
|
@@ -1209,7 +1228,7 @@ type ImageFragment = FragmentBase & {
|
|
|
1209
1228
|
/**
|
|
1210
1229
|
* A text box fragment positioned on a page.
|
|
1211
1230
|
*/
|
|
1212
|
-
type TextBoxFragment = FragmentBase & {
|
|
1231
|
+
export type TextBoxFragment = FragmentBase & {
|
|
1213
1232
|
kind: "textBox";
|
|
1214
1233
|
/** Height of the text box. */
|
|
1215
1234
|
height: number;
|
|
@@ -1219,11 +1238,11 @@ type TextBoxFragment = FragmentBase & {
|
|
|
1219
1238
|
/**
|
|
1220
1239
|
* Union of all fragment types.
|
|
1221
1240
|
*/
|
|
1222
|
-
type Fragment = ParagraphFragment | TableFragment | ImageFragment | TextBoxFragment;
|
|
1241
|
+
export type Fragment = ParagraphFragment | TableFragment | ImageFragment | TextBoxFragment;
|
|
1223
1242
|
/**
|
|
1224
1243
|
* Page margin configuration.
|
|
1225
1244
|
*/
|
|
1226
|
-
type PageMargins = {
|
|
1245
|
+
export type PageMargins = {
|
|
1227
1246
|
top: number;
|
|
1228
1247
|
right: number;
|
|
1229
1248
|
bottom: number;
|
|
@@ -1236,7 +1255,7 @@ type PageMargins = {
|
|
|
1236
1255
|
/**
|
|
1237
1256
|
* A rendered page containing positioned fragments.
|
|
1238
1257
|
*/
|
|
1239
|
-
type Page = {
|
|
1258
|
+
export type Page = {
|
|
1240
1259
|
/** Physical page number (1-indexed), used for navigation and page counts. */
|
|
1241
1260
|
number: number;
|
|
1242
1261
|
/** Authored page number shown by PAGE fields. */
|
|
@@ -1268,6 +1287,8 @@ type Page = {
|
|
|
1268
1287
|
headerFooterRefs?: PageHeaderFooterRefs;
|
|
1269
1288
|
/** Footnote IDs that appear on this page (for rendering). */
|
|
1270
1289
|
footnoteIds?: number[];
|
|
1290
|
+
/** Endnote IDs whose content fragments appear on this page. */
|
|
1291
|
+
endnoteIds?: number[];
|
|
1271
1292
|
/** Height reserved for the footnote area at page bottom (pixels). */
|
|
1272
1293
|
footnoteReservedHeight?: number;
|
|
1273
1294
|
/**
|
|
@@ -1282,7 +1303,7 @@ type Page = {
|
|
|
1282
1303
|
* One separator rule of a flowed note area: the top-left corner of a
|
|
1283
1304
|
* `NOTE_SEPARATOR_RULE_THICKNESS`-high rule and its width, in page pixels.
|
|
1284
1305
|
*/
|
|
1285
|
-
type NoteSeparatorRule = {
|
|
1306
|
+
export type NoteSeparatorRule = {
|
|
1286
1307
|
x: number;
|
|
1287
1308
|
y: number;
|
|
1288
1309
|
width: number;
|
|
@@ -1290,7 +1311,7 @@ type NoteSeparatorRule = {
|
|
|
1290
1311
|
/**
|
|
1291
1312
|
* Column layout configuration.
|
|
1292
1313
|
*/
|
|
1293
|
-
type ColumnLayout = {
|
|
1314
|
+
export type ColumnLayout = {
|
|
1294
1315
|
count: number;
|
|
1295
1316
|
gap: number;
|
|
1296
1317
|
equalWidth?: boolean;
|
|
@@ -1304,14 +1325,14 @@ type ColumnLayout = {
|
|
|
1304
1325
|
/**
|
|
1305
1326
|
* Header/footer layout for a specific type.
|
|
1306
1327
|
*/
|
|
1307
|
-
type HeaderFooterLayout = {
|
|
1328
|
+
export type HeaderFooterLayout = {
|
|
1308
1329
|
height: number;
|
|
1309
1330
|
fragments: Fragment[];
|
|
1310
1331
|
};
|
|
1311
1332
|
/**
|
|
1312
1333
|
* Final layout output ready for rendering/painting.
|
|
1313
1334
|
*/
|
|
1314
|
-
type Layout = {
|
|
1335
|
+
export type Layout = {
|
|
1315
1336
|
/** Default page size for the document. */
|
|
1316
1337
|
pageSize: {
|
|
1317
1338
|
w: number;
|
|
@@ -1331,11 +1352,11 @@ type Layout = {
|
|
|
1331
1352
|
/**
|
|
1332
1353
|
* Header/footer content heights by variant type.
|
|
1333
1354
|
*/
|
|
1334
|
-
type HeaderFooterContentHeights = Partial<Record<"default" | "first" | "even" | "odd", number>>;
|
|
1355
|
+
export type HeaderFooterContentHeights = Partial<Record<"default" | "first" | "even" | "odd", number>>;
|
|
1335
1356
|
/**
|
|
1336
1357
|
* Pre-calculated footnote content for layout and rendering.
|
|
1337
1358
|
*/
|
|
1338
|
-
type FootnoteContent = {
|
|
1359
|
+
export type FootnoteContent = {
|
|
1339
1360
|
/** Footnote ID. */
|
|
1340
1361
|
id: number;
|
|
1341
1362
|
/** Display number (e.g. 1, 2, 3). */
|
|
@@ -1350,7 +1371,7 @@ type FootnoteContent = {
|
|
|
1350
1371
|
/**
|
|
1351
1372
|
* Options for the layout engine.
|
|
1352
1373
|
*/
|
|
1353
|
-
type LayoutOptions = {
|
|
1374
|
+
export type LayoutOptions = {
|
|
1354
1375
|
/** Initial page size. */
|
|
1355
1376
|
pageSize: {
|
|
1356
1377
|
w: number;
|
|
@@ -1386,6 +1407,8 @@ type LayoutOptions = {
|
|
|
1386
1407
|
sectionVerticalAlignments?: readonly (VerticalAlign | undefined)[];
|
|
1387
1408
|
/** Column configuration. */
|
|
1388
1409
|
columns?: ColumnLayout;
|
|
1410
|
+
/** Column balancing policy after applying document compatibility settings. */
|
|
1411
|
+
columnBalancing?: "balanced" | "natural";
|
|
1389
1412
|
/** Gap between rendered pages (for UI). */
|
|
1390
1413
|
pageGap?: number;
|
|
1391
1414
|
/** Default line height multiplier. */
|
|
@@ -1423,23 +1446,23 @@ type LayoutOptions = {
|
|
|
1423
1446
|
noteAreas?: NoteAreaLayout;
|
|
1424
1447
|
};
|
|
1425
1448
|
/** Which separator story a flowed note-area block renders. */
|
|
1426
|
-
type NoteSeparatorKind = "separator" | "continuationSeparator";
|
|
1449
|
+
export type NoteSeparatorKind = "separator" | "continuationSeparator";
|
|
1427
1450
|
/**
|
|
1428
1451
|
* Note areas laid out in the body flow (ECMA-376 §17.11): endnotes collected
|
|
1429
1452
|
* at the end of the document or of a section. Their blocks sit in the body's
|
|
1430
1453
|
* block list; this names the ones the paginator treats specially.
|
|
1431
1454
|
*/
|
|
1432
|
-
type NoteAreaLayout = {
|
|
1455
|
+
export type NoteAreaLayout = {
|
|
1433
1456
|
/**
|
|
1434
1457
|
* Separator-story paragraphs that carry a `w:separator` mark, keyed by block
|
|
1435
1458
|
* id. A rule is drawn across the first line of each of their fragments.
|
|
1436
1459
|
*/
|
|
1437
1460
|
separatorBlockIds: ReadonlyMap<string, NoteSeparatorKind>;
|
|
1438
1461
|
/**
|
|
1439
|
-
* Note content
|
|
1462
|
+
* Note identities keyed by content block. A page opened while one is laid out
|
|
1440
1463
|
* continues the area, so it starts with the continuation separator.
|
|
1441
1464
|
*/
|
|
1442
|
-
|
|
1465
|
+
noteStoryByBlockId: ReadonlyMap<string, NoteStoryKey>;
|
|
1443
1466
|
/** The `w:continuationSeparator` story's first paragraph, already measured. */
|
|
1444
1467
|
continuationSeparator?: {
|
|
1445
1468
|
block: ParagraphBlock;
|
|
@@ -1449,7 +1472,7 @@ type NoteAreaLayout = {
|
|
|
1449
1472
|
/**
|
|
1450
1473
|
* Result of hit-testing a click position.
|
|
1451
1474
|
*/
|
|
1452
|
-
type HitTestResult = {
|
|
1475
|
+
export type HitTestResult = {
|
|
1453
1476
|
/** Page index (0-based). */
|
|
1454
1477
|
pageIndex: number;
|
|
1455
1478
|
/** Fragment that was hit, if any. */
|
|
@@ -1462,7 +1485,7 @@ type HitTestResult = {
|
|
|
1462
1485
|
/**
|
|
1463
1486
|
* Position within the document model.
|
|
1464
1487
|
*/
|
|
1465
|
-
type DocumentPosition = {
|
|
1488
|
+
export type DocumentPosition = {
|
|
1466
1489
|
/** Block index. */
|
|
1467
1490
|
blockIndex: number;
|
|
1468
1491
|
/** Run index within the block (for paragraphs). */
|
|
@@ -1477,7 +1500,7 @@ type DocumentPosition = {
|
|
|
1477
1500
|
* Used by the paginator when reserving space and by the painter when laying
|
|
1478
1501
|
* out the stack at the bottom of the page.
|
|
1479
1502
|
*/
|
|
1480
|
-
declare const FOOTNOTE_SEPARATOR_HEIGHT = 12;
|
|
1503
|
+
export declare const FOOTNOTE_SEPARATOR_HEIGHT = 12;
|
|
1481
1504
|
/**
|
|
1482
1505
|
* Extra bottom margin applied to every rendered footnote entry, in CSS pixels.
|
|
1483
1506
|
*
|
|
@@ -1486,22 +1509,22 @@ declare const FOOTNOTE_SEPARATOR_HEIGHT = 12;
|
|
|
1486
1509
|
* Keep the wrapper margin at zero to avoid adding whitespace that is not
|
|
1487
1510
|
* present in the source DOCX.
|
|
1488
1511
|
*/
|
|
1489
|
-
declare const FOOTNOTE_ENTRY_MARGIN_BOTTOM = 0;
|
|
1512
|
+
export declare const FOOTNOTE_ENTRY_MARGIN_BOTTOM = 0;
|
|
1490
1513
|
/** Thickness of a note separator rule, in the footnote band and in flowed endnotes. */
|
|
1491
|
-
declare const NOTE_SEPARATOR_RULE_THICKNESS = 0.5;
|
|
1514
|
+
export declare const NOTE_SEPARATOR_RULE_THICKNESS = 0.5;
|
|
1492
1515
|
/** Width of a `w:separator` rule as a fraction of its column. */
|
|
1493
|
-
declare const NOTE_SEPARATOR_WIDTH_FRACTION = 0.33;
|
|
1516
|
+
export declare const NOTE_SEPARATOR_WIDTH_FRACTION = 0.33;
|
|
1494
1517
|
/**
|
|
1495
1518
|
* Line height used when a footnote entry has no measured line height yet.
|
|
1496
1519
|
* Conservative fallback so a missing measure does not collapse the entry.
|
|
1497
1520
|
*/
|
|
1498
|
-
declare const FOOTNOTE_FALLBACK_LINE_HEIGHT = 13;
|
|
1521
|
+
export declare const FOOTNOTE_FALLBACK_LINE_HEIGHT = 13;
|
|
1499
1522
|
/**
|
|
1500
1523
|
* Header / footer content prepared by the bridge for the painter. Lives here
|
|
1501
1524
|
* because both layers reference the shape; the painter must not import it from
|
|
1502
1525
|
* the bridge and the bridge must not import it from the painter.
|
|
1503
1526
|
*/
|
|
1504
|
-
type HeaderFooterContent = {
|
|
1527
|
+
export type HeaderFooterContent = {
|
|
1505
1528
|
/** Flow blocks for the header/footer content. */
|
|
1506
1529
|
blocks: FlowBlock[];
|
|
1507
1530
|
/** Measurements for the blocks. */
|
|
@@ -1545,7 +1568,7 @@ type HeaderFooterContent = {
|
|
|
1545
1568
|
* Pure predicate over `ImageRun` — no DOM, no measurement state. Lives here
|
|
1546
1569
|
* so the bridge can call it without importing from the painter.
|
|
1547
1570
|
*/
|
|
1548
|
-
declare const isFloatingImageRun: (run: ImageRun) => boolean;
|
|
1571
|
+
export declare const isFloatingImageRun: (run: ImageRun) => boolean;
|
|
1549
1572
|
/**
|
|
1550
1573
|
* `true` when a floating image should also shrink surrounding line widths.
|
|
1551
1574
|
* `behind` / `inFront` (wrapNone) and `topAndBottom` do not — text either
|
|
@@ -1554,27 +1577,27 @@ declare const isFloatingImageRun: (run: ImageRun) => boolean;
|
|
|
1554
1577
|
* `displayMode === "float"` path is treated as wrapping when a CSS float
|
|
1555
1578
|
* direction is set.
|
|
1556
1579
|
*/
|
|
1557
|
-
declare const isTextWrappingFloatingImageRun: (run: ImageRun) => boolean;
|
|
1558
|
-
type TextBoxFlowAttrs = Pick<TextBoxBlock, "displayMode" | "wrapType">;
|
|
1580
|
+
export declare const isTextWrappingFloatingImageRun: (run: ImageRun) => boolean;
|
|
1581
|
+
export type TextBoxFlowAttrs = Pick<TextBoxBlock, "displayMode" | "wrapType">;
|
|
1559
1582
|
/**
|
|
1560
1583
|
* `true` when the text box is anchored outside normal block flow — either
|
|
1561
1584
|
* via the `float` display mode or via an OOXML floating wrap type (which
|
|
1562
1585
|
* includes `topAndBottom`; see {@link floatingTextBoxReservesBand}).
|
|
1563
1586
|
*/
|
|
1564
|
-
declare function isFloatingTextBoxBlock(block: TextBoxFlowAttrs): boolean;
|
|
1587
|
+
export declare function isFloatingTextBoxBlock(block: TextBoxFlowAttrs): boolean;
|
|
1565
1588
|
/**
|
|
1566
1589
|
* `true` when a floating text box should also reduce surrounding text
|
|
1567
1590
|
* line widths. Excludes wrapNone (`behind`/`inFront`) and `topAndBottom`
|
|
1568
1591
|
* which are positioned floats but do not carve a horizontal exclusion.
|
|
1569
1592
|
*/
|
|
1570
|
-
declare function floatingTextBoxWrapsText(block: TextBoxFlowAttrs): boolean;
|
|
1593
|
+
export declare function floatingTextBoxWrapsText(block: TextBoxFlowAttrs): boolean;
|
|
1571
1594
|
/**
|
|
1572
1595
|
* `true` when a floating text box reserves a full-width vertical band rather
|
|
1573
1596
|
* than a side exclusion. `topAndBottom` boxes break the text above and below
|
|
1574
1597
|
* the box (no text beside it), so surrounding lines flow past the band.
|
|
1575
1598
|
* Ported from eigenpal #694.
|
|
1576
1599
|
*/
|
|
1577
|
-
declare function floatingTextBoxReservesBand(block: TextBoxFlowAttrs): boolean;
|
|
1600
|
+
export declare function floatingTextBoxReservesBand(block: TextBoxFlowAttrs): boolean;
|
|
1578
1601
|
/**
|
|
1579
1602
|
* A table's columns are pinned when the layout engine cannot widen a column to
|
|
1580
1603
|
* fit content that overflows it: either the layout is explicitly fixed
|
|
@@ -1588,20 +1611,20 @@ declare function floatingTextBoxReservesBand(block: TextBoxFlowAttrs): boolean;
|
|
|
1588
1611
|
* instead, so there `w:noWrap` genuinely keeps content on one line. Measurement
|
|
1589
1612
|
* and the painter both consult this so their line count and `white-space` agree.
|
|
1590
1613
|
*/
|
|
1591
|
-
declare function tableColumnsArePinned(table: TableBlock): boolean;
|
|
1614
|
+
export declare function tableColumnsArePinned(table: TableBlock): boolean;
|
|
1592
1615
|
/**
|
|
1593
1616
|
* Resolve a `w:tblW`/`w:tcW` pair to pixels. The single reader: measurement and
|
|
1594
1617
|
* the footnote layout bridge both go through it so a table cannot be pinned in
|
|
1595
1618
|
* one and autofitted in the other.
|
|
1596
1619
|
*/
|
|
1597
|
-
declare function resolveTableWidthPx(width: number | undefined, widthType: TableWidthType | undefined, containerWidth: number): number | undefined;
|
|
1620
|
+
export declare function resolveTableWidthPx(width: number | undefined, widthType: TableWidthType | undefined, containerWidth: number): number | undefined;
|
|
1598
1621
|
/** Return the leading visual offset for a row with omitted grid columns. */
|
|
1599
|
-
declare const getTableRowLeadingWidth: (row: TableRow, columnWidths: readonly number[]) => number;
|
|
1622
|
+
export declare const getTableRowLeadingWidth: (row: TableRow, columnWidths: readonly number[]) => number;
|
|
1600
1623
|
/**
|
|
1601
1624
|
* A copy of a block with every ProseMirror anchor removed. A note story's
|
|
1602
1625
|
* blocks carry positions in the note's own document; painted beside the body
|
|
1603
1626
|
* they must not resolve a click, a selection or a caret into the body.
|
|
1604
1627
|
*/
|
|
1605
|
-
declare function stripFlowBlockPmAnchors(block: FlowBlock): FlowBlock;
|
|
1628
|
+
export declare function stripFlowBlockPmAnchors(block: FlowBlock): FlowBlock;
|
|
1606
1629
|
//#endregion
|
|
1607
|
-
export {
|
|
1630
|
+
export { types_d_exports };
|