@stll/folio-core 0.68.0 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +4 -4
- package/dist/ai-edits/apply.d.ts +39 -16
- package/dist/ai-edits/apply.js +1014 -723
- package/dist/ai-edits/block-identity.d.ts +6 -0
- package/dist/ai-edits/block-identity.js +11 -1
- package/dist/ai-edits/blockRange.d.ts +9 -0
- package/dist/ai-edits/clean-text.d.ts +2 -0
- package/dist/ai-edits/clean-text.js +2 -1
- package/dist/ai-edits/comment-lifecycle.d.ts +24 -0
- package/dist/ai-edits/comment-lifecycle.js +17 -8
- package/dist/ai-edits/directJoin.d.ts +30 -0
- package/dist/ai-edits/directJoin.js +30 -0
- package/dist/ai-edits/existingRevisions.d.ts +9 -0
- package/dist/ai-edits/existingRevisions.js +30 -0
- package/dist/ai-edits/finalSectionReview.d.ts +11 -0
- package/dist/ai-edits/finalSectionReview.js +26 -0
- package/dist/ai-edits/headless.d.ts +275 -14
- package/dist/ai-edits/headless.js +1597 -195
- package/dist/ai-edits/index.d.ts +11 -10
- package/dist/ai-edits/index.js +2 -2
- package/dist/ai-edits/markdownInsertion.d.ts +25 -0
- package/dist/ai-edits/markdownInsertion.js +67 -0
- package/dist/ai-edits/minimal-replacement.d.ts +120 -1
- package/dist/ai-edits/minimal-replacement.js +81 -1
- package/dist/ai-edits/newListNumbering.d.ts +31 -7
- package/dist/ai-edits/newListNumbering.js +46 -8
- package/dist/ai-edits/note-references.d.ts +19 -1
- package/dist/ai-edits/note-references.js +3 -1
- package/dist/ai-edits/pending-suggestions.d.ts +44 -2
- package/dist/ai-edits/pending-suggestions.js +483 -22
- package/dist/ai-edits/pendingJoin.d.ts +170 -0
- package/dist/ai-edits/pendingJoin.js +272 -0
- package/dist/ai-edits/read.d.ts +57 -4
- package/dist/ai-edits/read.js +317 -40
- package/dist/ai-edits/removed-blocks.d.ts +1 -1
- package/dist/ai-edits/result-validation.d.ts +36 -1
- package/dist/ai-edits/result-validation.js +1 -1
- package/dist/ai-edits/retired-comment-receipts.d.ts +20 -0
- package/dist/ai-edits/retired-comment-receipts.js +165 -0
- package/dist/ai-edits/revisionStretches.d.ts +17 -0
- package/dist/ai-edits/snapshot.d.ts +12 -3
- package/dist/ai-edits/snapshot.js +9 -7
- package/dist/ai-edits/snapshotBatchFacts.d.ts +52 -0
- package/dist/ai-edits/snapshotBatchFacts.js +184 -0
- package/dist/ai-edits/table-geometry.d.ts +45 -11
- package/dist/ai-edits/table-geometry.js +141 -26
- package/dist/ai-edits/table-mutation-plan.d.ts +12 -0
- package/dist/ai-edits/table-mutation-plan.js +1 -1
- package/dist/ai-edits/table-row-column-mutations.d.ts +26 -3
- package/dist/ai-edits/table-row-column-mutations.js +90 -11
- package/dist/ai-edits/table-template.d.ts +21 -0
- package/dist/ai-edits/tableInsertionModes.d.ts +10 -0
- package/dist/ai-edits/tableInsertionModes.js +8 -0
- package/dist/ai-edits/tracked-batch-fidelity.d.ts +23 -0
- package/dist/ai-edits/tracked-batch-fidelity.js +357 -0
- package/dist/ai-edits/types.d.ts +81 -15
- package/dist/ai-edits/undefinedReferences.d.ts +49 -0
- package/dist/ai-edits/undefinedReferences.js +234 -0
- package/dist/ai-suggestions/apply.d.ts +12 -0
- package/dist/ai-suggestions/conflict.d.ts +9 -0
- package/dist/ai-suggestions/text-positions.d.ts +13 -0
- package/dist/canonical/batchCommentReferences.d.ts +20 -0
- package/dist/canonical/batchCommentReferences.js +93 -0
- package/dist/canonical/canonicalBatchReview.d.ts +25 -0
- package/dist/canonical/canonicalBatchReview.js +132 -0
- package/dist/{controller → canonical}/canonicalComments.d.ts +7 -4
- package/dist/{controller → canonical}/canonicalComments.js +36 -9
- package/dist/canonical/canonicalCompilerRefusal.d.ts +13 -0
- package/dist/canonical/canonicalCompilerRefusal.js +75 -0
- package/dist/canonical/canonicalIdLease.d.ts +40 -0
- package/dist/canonical/canonicalIdLease.js +96 -0
- package/dist/{controller → canonical}/canonicalInlineProjection.d.ts +1 -1
- package/dist/{controller → canonical}/canonicalInlineProjection.js +40 -20
- package/dist/canonical/canonicalInsertedCommentRange.d.ts +15 -0
- package/dist/canonical/canonicalInsertedCommentRange.js +43 -0
- package/dist/canonical/canonicalInsertionReplayIds.d.ts +40 -0
- package/dist/canonical/canonicalInsertionReplayIds.js +73 -0
- package/dist/canonical/canonicalJoinedReceipts.d.ts +11 -0
- package/dist/canonical/canonicalJoinedReceipts.js +22 -0
- package/dist/{controller → canonical}/canonicalListRendering.js +1 -1
- package/dist/canonical/canonicalLockGuard.d.ts +34 -0
- package/dist/canonical/canonicalLockGuard.js +208 -0
- package/dist/{controller → canonical}/canonicalOperations.js +1 -1
- package/dist/canonical/canonicalProjectionBlocks.d.ts +89 -0
- package/dist/canonical/canonicalProjectionBlocks.js +79 -0
- package/dist/{controller → canonical}/canonicalPublicOperations.d.ts +24 -9
- package/dist/canonical/canonicalPublicOperations.js +4791 -0
- package/dist/canonical/canonicalRemoteHistory.d.ts +48 -0
- package/dist/canonical/canonicalRemoteHistory.js +176 -0
- package/dist/canonical/canonicalRevisionLocks.d.ts +18 -0
- package/dist/canonical/canonicalRevisionLocks.js +30 -0
- package/dist/canonical/canonicalRevisionReceipts.d.ts +15 -0
- package/dist/canonical/canonicalRevisionReceipts.js +25 -0
- package/dist/canonical/canonicalRoomBase.d.ts +23 -0
- package/dist/canonical/canonicalRoomBase.js +38 -0
- package/dist/canonical/canonicalSeedContent.d.ts +36 -0
- package/dist/canonical/canonicalSeedContent.js +179 -0
- package/dist/{controller → canonical}/canonicalSelection.js +1 -1
- package/dist/canonical/canonicalSession.d.ts +515 -0
- package/dist/canonical/canonicalSession.js +2892 -0
- package/dist/canonical/canonicalSourceNormalization.d.ts +42 -0
- package/dist/canonical/canonicalSourceNormalization.js +166 -0
- package/dist/{controller → canonical}/canonicalTocSelection.js +1 -1
- package/dist/canonical/canonicalTrackedBatchFidelity.d.ts +9 -0
- package/dist/canonical/canonicalTrackedBatchFidelity.js +125 -0
- package/dist/canonical/canonicalWholeTextFidelity.d.ts +21 -0
- package/dist/canonical/canonicalWholeTextFidelity.js +88 -0
- package/dist/canonical/commentAnchorParagraph.d.ts +10 -0
- package/dist/canonical/commentAnchorParagraph.js +11 -0
- package/dist/canonical/controlEdges.d.ts +12 -0
- package/dist/canonical/controlEdges.js +17 -0
- package/dist/canonical/paragraphPatchAsRead.d.ts +19 -0
- package/dist/canonical/paragraphPatchAsRead.js +32 -0
- package/dist/canonical/propertySourcePreservation.d.ts +38 -0
- package/dist/canonical/propertySourcePreservation.js +129 -0
- package/dist/canonical/replacementRunSources.d.ts +29 -0
- package/dist/canonical/replacementRunSources.js +78 -0
- package/dist/compare/compare.d.ts +8 -6
- package/dist/compare/compare.js +37 -8
- package/dist/compare/content-alignment.d.ts +10 -1
- package/dist/compare/content-alignment.js +188 -27
- package/dist/compare/content.d.ts +9 -1
- package/dist/compare/content.js +2 -2
- package/dist/compare/formatting.d.ts +1 -0
- package/dist/compare/import-style-closure.d.ts +1 -1
- package/dist/compare/inline-atom-alignment.d.ts +83 -0
- package/dist/compare/inline-atom-alignment.js +173 -0
- package/dist/compare/inline-atoms-model.d.ts +65 -0
- package/dist/compare/inline-atoms-model.js +1131 -0
- package/dist/compare/inline-atoms.d.ts +4 -4
- package/dist/compare/inline-atoms.js +28 -139
- package/dist/compare/inline-provenance-model.d.ts +37 -0
- package/dist/compare/inline-provenance-model.js +138 -0
- package/dist/compare/inline-provenance.d.ts +52 -4
- package/dist/compare/inline-provenance.js +40 -7
- package/dist/compare/plan.d.ts +38 -4
- package/dist/compare/plan.js +22 -8
- package/dist/compare/scenario.d.ts +22 -1
- package/dist/compare/section-boundary-properties.d.ts +38 -5
- package/dist/compare/section-boundary-properties.js +164 -48
- package/dist/compare/style-resources.d.ts +3 -2
- package/dist/compare/style-resources.js +5 -4
- package/dist/compare/types.d.ts +5 -2
- package/dist/compare/verification.d.ts +24 -3
- package/dist/compare/verification.js +25 -18
- package/dist/compat/eigenpal.d.ts +32 -31
- package/dist/compat/eigenpal.js +3 -5
- package/dist/content-controls/findContentControls.d.ts +9 -0
- package/dist/content-controls/index.d.ts +8 -0
- package/dist/content-controls/mutateContentControls.d.ts +9 -0
- package/dist/controller/activeEditorStory.d.ts +1 -0
- package/dist/controller/anonymizationHighlights.d.ts +56 -0
- package/dist/controller/anonymizationHighlights.js +148 -0
- package/dist/controller/autocompleteSuggestion.d.ts +85 -0
- package/dist/controller/autocompleteSuggestion.js +213 -0
- package/dist/controller/canonicalClipboard.d.ts +2 -2
- package/dist/controller/canonicalClipboard.js +36 -16
- package/dist/controller/canonicalClipboardResources.js +9 -4
- package/dist/controller/canonicalCollaboration.d.ts +147 -0
- package/dist/controller/canonicalCollaboration.js +360 -0
- package/dist/controller/canonicalComposition.d.ts +7 -1
- package/dist/controller/canonicalComposition.js +48 -13
- package/dist/controller/canonicalContentControlValue.d.ts +17 -0
- package/dist/controller/canonicalContentControlValue.js +72 -0
- package/dist/controller/canonicalIndexedDbJournal.d.ts +6 -0
- package/dist/controller/canonicalIndexedDbJournal.js +80 -0
- package/dist/controller/canonicalInput.d.ts +13 -2
- package/dist/controller/canonicalInput.js +100 -17
- package/dist/controller/canonicalPresence.d.ts +63 -0
- package/dist/controller/canonicalPresence.js +125 -0
- package/dist/controller/canonicalReview.d.ts +1 -1
- package/dist/controller/canonicalReview.js +1 -1
- package/dist/controller/canonicalRoomAuthority.d.ts +66 -0
- package/dist/controller/canonicalRoomAuthority.js +119 -0
- package/dist/controller/canonicalRoomEditor.d.ts +87 -0
- package/dist/controller/canonicalRoomEditor.js +98 -0
- package/dist/controller/canonicalRoomTransport.d.ts +79 -0
- package/dist/controller/canonicalRoomTransport.js +104 -0
- package/dist/controller/canonicalRoomWire.d.ts +80 -0
- package/dist/controller/canonicalRoomWire.js +155 -0
- package/dist/controller/canonicalStoryEditor.d.ts +13 -1
- package/dist/controller/canonicalStoryEditor.js +55 -19
- package/dist/controller/canonicalStructure.d.ts +15 -5
- package/dist/controller/canonicalStructure.js +95 -34
- package/dist/controller/canonicalTabRoom.d.ts +91 -0
- package/dist/controller/canonicalTabRoom.js +553 -0
- package/dist/controller/canonicalYjsRoom.d.ts +102 -0
- package/dist/controller/canonicalYjsRoom.js +454 -0
- package/dist/controller/contentControlWidgetController.d.ts +16 -0
- package/dist/controller/contentControlWidgetController.js +7 -1
- package/dist/controller/documentChangeNotification.d.ts +5 -0
- package/dist/controller/documentChangeNotification.js +7 -0
- package/dist/controller/folioEditor.d.ts +12 -4
- package/dist/controller/folioEditor.js +21 -1
- package/dist/controller/folioEditorEvents.d.ts +1 -1
- package/dist/controller/fontReadiness.d.ts +14 -1
- package/dist/controller/fontReadiness.js +4 -4
- package/dist/controller/headerFooterEditorManager.d.ts +17 -6
- package/dist/controller/headerFooterEditorManager.js +29 -25
- package/dist/controller/hiddenEditorApi.d.ts +97 -14
- package/dist/controller/hiddenEditorApi.js +44 -3
- package/dist/controller/hiddenEditorManager.d.ts +68 -16
- package/dist/controller/hiddenEditorManager.js +440 -85
- package/dist/controller/hyphenationReadiness.d.ts +10 -0
- package/dist/controller/layoutPipeline.d.ts +14 -12
- package/dist/controller/layoutPipeline.js +66 -54
- package/dist/controller/layoutSession.d.ts +10 -6
- package/dist/controller/layoutSession.js +3 -1
- package/dist/controller/legacyTextAddress.d.ts +9 -0
- package/dist/controller/legacyTextAddress.js +52 -0
- package/dist/controller/noteEditorManager.d.ts +18 -6
- package/dist/controller/noteEditorManager.js +38 -32
- package/dist/controller/textPositionLookup.d.ts +24 -0
- package/dist/controller/textPositionLookup.js +78 -0
- package/dist/display-list/build/buildContext.d.ts +11 -0
- package/dist/display-list/build/buildDisplayList.d.ts +14 -1
- package/dist/display-list/build/colors.d.ts +8 -0
- package/dist/display-list/build/floatingImages.d.ts +10 -0
- package/dist/display-list/build/fontTable.d.ts +8 -0
- package/dist/display-list/build/furniture.d.ts +14 -2
- package/dist/display-list/build/glyphs.d.ts +7 -0
- package/dist/display-list/build/headerFooterPrimitives.d.ts +13 -0
- package/dist/display-list/build/imagePrimitives.d.ts +10 -0
- package/dist/display-list/build/pageBorderPrimitives.d.ts +16 -2
- package/dist/display-list/build/pageFurniture.d.ts +13 -0
- package/dist/display-list/build/paragraphPrimitives.d.ts +18 -0
- package/dist/display-list/build/paragraphPrimitives.js +17 -5
- package/dist/display-list/build/previewPrimitives.d.ts +14 -0
- package/dist/display-list/build/regions.d.ts +14 -0
- package/dist/display-list/build/storyPrimitives.d.ts +16 -0
- package/dist/display-list/build/strokes.d.ts +21 -3
- package/dist/display-list/build/strokes.js +2 -3
- package/dist/display-list/build/tablePrimitives.d.ts +15 -1
- package/dist/display-list/build/tablePrimitives.js +92 -55
- package/dist/display-list/build/textBoxPrimitives.d.ts +6 -0
- package/dist/display-list/build/unsupported.d.ts +10 -0
- package/dist/display-list/build/watermarkPrimitives.d.ts +15 -1
- package/dist/display-list/dom/renderDisplayListToDom.d.ts +33 -0
- package/dist/display-list/dom/renderDisplayListToDom.js +21 -11
- package/dist/display-list/editor/displayListPagePainter.d.ts +29 -1
- package/dist/display-list/editor/pageRenderer.d.ts +7 -0
- package/dist/display-list/html/renderDisplayListToHtml.d.ts +10 -0
- package/dist/display-list/primitives.d.ts +12 -1
- package/dist/display-list/selectDisplayPages.d.ts +8 -0
- package/dist/display-list/types.d.ts +11 -0
- package/dist/document-operations.d.ts +34 -4
- package/dist/document-operations.js +178 -40
- package/dist/docx/attributeRemainder.d.ts +35 -1
- package/dist/docx/automaticNoteMarkImport.d.ts +12 -0
- package/dist/docx/automaticNoteMarkImport.js +41 -0
- package/dist/docx/blockContentParser.d.ts +14 -5
- package/dist/docx/blockContentParser.js +19 -0
- package/dist/docx/blockPlainText.d.ts +14 -0
- package/dist/docx/blockPlainText.js +55 -4
- package/dist/docx/bookmarkParser.d.ts +17 -0
- package/dist/docx/bookmarkRangeJoin.d.ts +14 -0
- package/dist/docx/borderParser.d.ts +11 -0
- package/dist/docx/builtInStyles.d.ts +44 -1
- package/dist/docx/canonicalSave.d.ts +14 -4
- package/dist/docx/canonicalSave.js +133 -30
- package/dist/docx/canonicalSessionInput.d.ts +59 -4
- package/dist/docx/canonicalSessionInput.js +147 -6
- package/dist/docx/canonicalStoryRepack.d.ts +1 -0
- package/dist/docx/canonicalStoryRepack.js +2 -2
- package/dist/docx/chartPreview.js +10 -9
- package/dist/docx/commentAnchorIndex.d.ts +46 -1
- package/dist/docx/commentAnchorIndex.js +187 -7
- package/dist/docx/commentIdNormalization.d.ts +14 -0
- package/dist/docx/commentParagraphIds.d.ts +17 -0
- package/dist/docx/commentParagraphIds.js +79 -0
- package/dist/docx/commentParser.d.ts +20 -1
- package/dist/docx/commentParser.js +5 -0
- package/dist/docx/commentRangeIntegrity.js +27 -11
- package/dist/docx/commentRangeJoin.d.ts +21 -1
- package/dist/docx/commentRangeJoin.js +5 -1
- package/dist/docx/commentReferenceCompletion.d.ts +29 -2
- package/dist/docx/commentReferenceCompletion.js +4 -3
- package/dist/docx/commentReferenceNormalization.d.ts +17 -0
- package/dist/docx/commentReferenceNormalization.js +484 -49
- package/dist/docx/commentReplyMarkers.d.ts +22 -0
- package/dist/docx/compatibility.d.ts +10 -0
- package/dist/docx/containerChildren.d.ts +26 -1
- package/dist/docx/containerChildren.js +29 -3
- package/dist/docx/contentTypeRegistry.d.ts +16 -0
- package/dist/docx/contentTypeRegistry.js +49 -21
- package/dist/docx/danglingRelationshipReferences.d.ts +13 -0
- package/dist/docx/defaultParagraphStyle.d.ts +14 -1
- package/dist/docx/documentClone.d.ts +3 -2
- package/dist/docx/documentClone.js +1 -1
- package/dist/docx/documentParser.d.ts +28 -3
- package/dist/docx/documentParser.js +71 -4
- package/dist/docx/drawingAnchor.d.ts +17 -0
- package/dist/docx/drawingGroupChildren.d.ts +12 -0
- package/dist/docx/drawingIdNormalization.d.ts +8 -0
- package/dist/docx/drawingIdNormalization.js +46 -1
- package/dist/docx/drawingUtils.d.ts +6 -0
- package/dist/docx/drawingUtils.js +2 -2
- package/dist/docx/encryption/agileDecryption.d.ts +7 -0
- package/dist/docx/ensureParaIds.d.ts +73 -0
- package/dist/docx/ensureParaIds.js +299 -59
- package/dist/docx/ensureUniqueControlIds.js +10 -3
- package/dist/docx/ensureUniqueRevisionIds.d.ts +28 -0
- package/dist/docx/ensureUniqueRevisionIds.js +140 -0
- package/dist/docx/fieldParser.d.ts +27 -2
- package/dist/docx/fieldState.d.ts +15 -0
- package/dist/docx/fieldWrapperCaptures.d.ts +18 -0
- package/dist/docx/fieldWrapperCaptures.js +117 -0
- package/dist/docx/foldedListNumberFields.d.ts +14 -0
- package/dist/docx/fontTableParser.d.ts +11 -0
- package/dist/docx/footnoteParser.d.ts +24 -3
- package/dist/docx/footnoteParser.js +29 -6
- package/dist/docx/graphicFrameLocks.d.ts +9 -1
- package/dist/docx/groupDrawingParser.d.ts +2 -2
- package/dist/docx/headerFooterParser.d.ts +37 -5
- package/dist/docx/headerFooterParser.js +18 -4
- package/dist/docx/headerFooterRefParser.d.ts +7 -0
- package/dist/docx/hostCommentThreads.d.ts +21 -2
- package/dist/docx/hostCommentThreads.js +25 -2
- package/dist/docx/hyperlinkParser.d.ts +20 -3
- package/dist/docx/hyperlinkParser.js +19 -24
- package/dist/docx/imageParser.d.ts +27 -0
- package/dist/docx/index.d.ts +3 -3
- package/dist/docx/inlineContentRemovals.d.ts +8 -0
- package/dist/docx/inlineWrapperContent.d.ts +33 -1
- package/dist/docx/inlineWrapperContent.js +145 -1
- package/dist/docx/inlineWrapperParser.d.ts +14 -0
- package/dist/docx/listMarkerComputation.d.ts +37 -6
- package/dist/docx/listMarkerComputation.js +77 -28
- package/dist/docx/listModelNormalization.d.ts +24 -8
- package/dist/docx/listModelNormalization.js +426 -143
- package/dist/docx/listNumberingInstances.d.ts +39 -9
- package/dist/docx/listNumberingInstances.js +91 -44
- package/dist/docx/mainDocumentPart.d.ts +22 -1
- package/dist/docx/mainDocumentPart.js +51 -12
- package/dist/docx/markupRangeMarker.d.ts +16 -0
- package/dist/docx/markupRangeMarker.js +11 -2
- package/dist/docx/mathToMathml.d.ts +28 -0
- package/dist/docx/mergePropertyChangeLinks.d.ts +11 -0
- package/dist/docx/mergePropertyChangeLinks.js +30 -0
- package/dist/docx/nonVisualDrawingProps.d.ts +6 -0
- package/dist/docx/normalizeBaseDirection.d.ts +17 -0
- package/dist/docx/normalizedSourceParts.d.ts +21 -0
- package/dist/docx/normalizedSourceParts.js +81 -0
- package/dist/docx/notePropertiesParser.d.ts +7 -0
- package/dist/docx/noteReferenceMark.d.ts +9 -0
- package/dist/docx/noteReferenceStyles.d.ts +13 -0
- package/dist/docx/numberingIds.d.ts +6 -0
- package/dist/docx/numberingIds.js +6 -1
- package/dist/docx/numberingParser.d.ts +12 -0
- package/dist/docx/numberingReference.d.ts +10 -0
- package/dist/docx/numberingReferenceNormalization.d.ts +19 -0
- package/dist/docx/numberingReferenceNormalization.js +12 -2
- package/dist/docx/packageRelationshipsRoot.d.ts +24 -0
- package/dist/docx/packageRelationshipsRoot.js +28 -0
- package/dist/docx/packageUnnamedParagraphIds.d.ts +18 -0
- package/dist/docx/packageUnnamedParagraphIds.js +78 -0
- package/dist/docx/paraIdAttribute.d.ts +15 -0
- package/dist/docx/paragraphParser.d.ts +15 -3
- package/dist/docx/paragraphParser.js +126 -140
- package/dist/docx/paragraphProperties.d.ts +15 -1
- package/dist/docx/paragraphProperties.js +3 -5
- package/dist/docx/paragraphPropertySource.d.ts +60 -4
- package/dist/docx/paragraphPropertySource.js +239 -27
- package/dist/docx/paragraphTextBoxEnrichment.d.ts +3 -2
- package/dist/docx/paragraphTraversal.d.ts +39 -4
- package/dist/docx/paragraphTraversal.js +158 -42
- package/dist/docx/parseContext.d.ts +15 -0
- package/dist/docx/parseWarningMessage.d.ts +9 -0
- package/dist/docx/parseWarningMessage.js +7 -0
- package/dist/docx/parser.d.ts +1 -1
- package/dist/docx/parser.js +105 -29
- package/dist/docx/parserEnums.d.ts +21 -0
- package/dist/docx/partRelationships.d.ts +15 -0
- package/dist/docx/partRelationships.js +58 -0
- package/dist/docx/preservedRunContent.d.ts +2 -1
- package/dist/docx/preservedRunContent.js +40 -1
- package/dist/docx/previewBudget.d.ts +31 -0
- package/dist/docx/relsParser.d.ts +23 -0
- package/dist/docx/removeHeaderFooterParts.d.ts +1 -1
- package/dist/docx/removeHeaderFooterParts.js +1 -1
- package/dist/docx/replyToComment.d.ts +22 -1
- package/dist/docx/replyToComment.js +25 -21
- package/dist/docx/reviewResolutionProvenance.d.ts +32 -5
- package/dist/docx/reviewResolutionProvenance.js +284 -40
- package/dist/docx/rezip.d.ts +58 -11
- package/dist/docx/rezip.js +367 -101
- package/dist/docx/runConsolidator.d.ts +13 -0
- package/dist/docx/runParser.d.ts +4 -3
- package/dist/docx/runParser.js +27 -6
- package/dist/docx/runPayload.d.ts +29 -0
- package/dist/docx/saveDiagnostics.d.ts +3 -5
- package/dist/docx/sdtProperties.d.ts +17 -0
- package/dist/docx/sdtPropertiesPatch.d.ts +14 -0
- package/dist/docx/sectionParser.d.ts +21 -0
- package/dist/docx/sectionParser.js +1 -6
- package/dist/docx/selectiveSave.js +271 -80
- package/dist/docx/selectiveXmlPatch.d.ts +36 -1
- package/dist/docx/selectiveXmlPatch.js +342 -78
- package/dist/docx/serializer/blockSdtSerializer.d.ts +10 -0
- package/dist/docx/serializer/borderSerializer.d.ts +8 -0
- package/dist/docx/serializer/commentSerializer.d.ts +12 -1
- package/dist/docx/serializer/commentSerializer.js +1 -1
- package/dist/docx/serializer/documentSerializer.d.ts +21 -3
- package/dist/docx/serializer/documentSerializer.js +46 -7
- package/dist/docx/serializer/groupTextBoxWriteBack.d.ts +14 -0
- package/dist/docx/serializer/headerFooterSerializer.d.ts +11 -0
- package/dist/docx/serializer/markupRangeAttributes.d.ts +8 -0
- package/dist/docx/serializer/markupRangeAttributes.js +3 -1
- package/dist/docx/serializer/noteSerializer.d.ts +21 -0
- package/dist/docx/serializer/numberingSerializer.d.ts +14 -0
- package/dist/docx/serializer/paragraphSerializer.d.ts +11 -0
- package/dist/docx/serializer/paragraphSerializer.js +21 -9
- package/dist/docx/serializer/partNamespaces.d.ts +3 -1
- package/dist/docx/serializer/partNamespaces.js +4 -2
- package/dist/docx/serializer/runSerializer.js +12 -3
- package/dist/docx/serializer/sdtPropertiesSerializer.d.ts +15 -0
- package/dist/docx/serializer/stylesSerializer.d.ts +26 -1
- package/dist/docx/serializer/stylesSerializer.js +111 -23
- package/dist/docx/serializer/tableSerializer.js +9 -7
- package/dist/docx/serializer/themeSerializer.d.ts +2 -1
- package/dist/docx/server/applyDocxXmlPatchProposal.js +1 -1
- package/dist/docx/server/build.d.ts +1 -1
- package/dist/docx/server/changeListFormat.d.ts +20 -0
- package/dist/docx/server/changeListFormat.js +102 -0
- package/dist/docx/server/createBilingualDocument.d.ts +21 -0
- package/dist/docx/server/materializeYjsDocx.js +2 -2
- package/dist/docx/server/migrateYjsAttrSchema.js +5 -5
- package/dist/docx/sessionListPruning.d.ts +11 -0
- package/dist/docx/settingsParser.d.ts +10 -0
- package/dist/docx/shadingParser.d.ts +10 -0
- package/dist/docx/shapeAlternateContent.js +9 -2
- package/dist/docx/shapeParser.d.ts +27 -0
- package/dist/docx/splitRevisionPieces.d.ts +1 -1
- package/dist/docx/storyBlockReplay.d.ts +37 -3
- package/dist/docx/storyBlockReplay.js +291 -69
- package/dist/docx/strictNames.d.ts +12 -1
- package/dist/docx/strictValueEncodings.gen.d.ts +9 -0
- package/dist/docx/structuralXmlPatch.d.ts +19 -3
- package/dist/docx/structuralXmlPatch.js +139 -35
- package/dist/docx/styleParser.d.ts +20 -3
- package/dist/docx/styleParser.js +3 -2
- package/dist/docx/tableLook.d.ts +15 -1
- package/dist/docx/tableParser.d.ts +17 -6
- package/dist/docx/tableParser.js +10 -5
- package/dist/docx/textBoxContentParser.d.ts +3 -2
- package/dist/docx/textBoxParser.d.ts +30 -3
- package/dist/docx/themeColorAttribute.d.ts +11 -0
- package/dist/docx/themeParser.d.ts +17 -5
- package/dist/docx/trackedMoveRangeNormalization.d.ts +9 -0
- package/dist/docx/trackedMoveRangeNormalization.js +40 -16
- package/dist/docx/transitionalSpelling.d.ts +9 -0
- package/dist/docx/unnamedParagraphIds.d.ts +33 -0
- package/dist/docx/unnamedParagraphIds.js +43 -0
- package/dist/docx/unreferencedHeaderFooters.d.ts +27 -0
- package/dist/docx/unreferencedHeaderFooters.js +130 -0
- package/dist/docx/unzip.d.ts +25 -0
- package/dist/docx/verbatimCapture.d.ts +18 -0
- package/dist/docx/verbatimCapture.js +76 -9
- package/dist/docx/vmlImageParser.d.ts +32 -1
- package/dist/docx/watermarkParser.d.ts +21 -0
- package/dist/docx/wrapPolygon.d.ts +11 -0
- package/dist/docx/wrapTypes.d.ts +6 -0
- package/dist/docx/xmlParser.d.ts +23 -19
- package/dist/docx/xmlParser.js +2 -20
- package/dist/docx/xmlRootInsertion.d.ts +8 -0
- package/dist/docx/xmlRootInsertion.js +28 -0
- package/dist/docx/xmlSafety.d.ts +1 -0
- package/dist/docx/xmlSafety.js +7 -11
- package/dist/export-pdf.d.ts +24 -1
- package/dist/fields/resolveFieldValues.js +2 -1
- package/dist/fonts/fontsourceFaces.d.ts +2 -2
- package/dist/fonts/headlessMeasure.d.ts +16 -0
- package/dist/generated/text_shaper.js +71 -59
- package/dist/generated/text_shaper_bg.wasm +0 -0
- package/dist/headless-layout.d.ts +36 -5
- package/dist/headless-layout.js +19 -4
- package/dist/i18n/messages/ar.gen.js +2 -0
- package/dist/i18n/messages/catalogs.gen.d.ts +34 -0
- package/dist/i18n/messages/catalogs.gen.js +34 -0
- package/dist/i18n/messages/cs.gen.js +2 -0
- package/dist/i18n/messages/de.gen.js +2 -0
- package/dist/i18n/messages/en.gen.js +2 -0
- package/dist/i18n/messages/es.gen.js +2 -0
- package/dist/i18n/messages/et.gen.js +2 -0
- package/dist/i18n/messages/fr.gen.js +2 -0
- package/dist/i18n/messages/he.gen.js +2 -0
- package/dist/i18n/messages/hi.gen.js +2 -0
- package/dist/i18n/messages/hu.gen.js +2 -0
- package/dist/i18n/messages/lt.gen.js +2 -0
- package/dist/i18n/messages/lv.gen.js +2 -0
- package/dist/i18n/messages/messages.gen.d.ts +2 -0
- package/dist/i18n/messages/pl.gen.js +2 -0
- package/dist/i18n/messages/pt-BR.gen.js +2 -0
- package/dist/i18n/messages/sk.gen.js +2 -0
- package/dist/i18n/messages/tr.gen.js +2 -0
- package/dist/i18n/messages/zh-CN.gen.js +2 -0
- package/dist/index.d.ts +33 -31
- package/dist/index.js +3 -4
- package/dist/internal/canonicalOperationStaging.d.ts +2 -0
- package/dist/internal/canonicalOperationStaging.js +4 -0
- package/dist/internal/canonicalTyping.d.ts +9 -0
- package/dist/internal/canonicalTyping.js +7 -0
- package/dist/internal/compare/inline-presentation.d.ts +8 -0
- package/dist/internal/indexedPositionMap.js +2 -1
- package/dist/internal/pageBreakRunDescendantIndex.d.ts +7 -2
- package/dist/internal/pageBreakRunDescendantIndex.js +12 -3
- package/dist/internal/revisionResolutionInline.js +13 -13
- package/dist/internal/revisionResolutionStep.js +1 -0
- package/dist/internal/revisionResolutionTracking.js +2 -1
- package/dist/internal/subtreeHolds.d.ts +12 -0
- package/dist/internal/subtreeHolds.js +25 -0
- package/dist/internal/wholeStoryRevisionResolution.d.ts +1 -1
- package/dist/internal/wholeStoryRevisionResolution.js +57 -66
- package/dist/layout-bridge/cellSelectionHighlight.d.ts +8 -0
- package/dist/layout-bridge/cellSelectionHighlight.js +3 -3
- package/dist/layout-bridge/convert/altChunkPlaceholder.d.ts +7 -0
- package/dist/layout-bridge/convert/editingFont.d.ts +26 -0
- package/dist/layout-bridge/convert/editingFont.js +42 -0
- package/dist/layout-bridge/convert/endnoteLayout.d.ts +19 -1
- package/dist/layout-bridge/convert/flowBlockPostprocessing.d.ts +5 -0
- package/dist/layout-bridge/convert/flowBlockPostprocessing.js +20 -12
- package/dist/layout-bridge/convert/flowBorders.d.ts +10 -4
- package/dist/layout-bridge/convert/flowBorders.js +13 -1
- package/dist/layout-bridge/convert/flowConversionShared.d.ts +37 -8
- package/dist/layout-bridge/convert/flowConversionShared.js +39 -6
- package/dist/layout-bridge/convert/footnoteLayout.d.ts +12 -4
- package/dist/layout-bridge/convert/footnoteLayout.js +3 -1
- package/dist/layout-bridge/convert/headerFooterLayout.d.ts +25 -5
- package/dist/layout-bridge/convert/imageConversion.d.ts +5 -1
- package/dist/layout-bridge/convert/listMarkers.d.ts +12 -7
- package/dist/layout-bridge/convert/markupViewFlow.d.ts +21 -0
- package/dist/layout-bridge/convert/markupViewFlow.js +4 -1
- package/dist/layout-bridge/convert/noteReferences.d.ts +4 -0
- package/dist/layout-bridge/convert/pageBreakSplitting.d.ts +4 -0
- package/dist/layout-bridge/convert/paragraphAttrs.d.ts +25 -9
- package/dist/layout-bridge/convert/paragraphAttrs.js +12 -5
- package/dist/layout-bridge/convert/paragraphBlockCache.d.ts +36 -0
- package/dist/layout-bridge/convert/paragraphBlockCache.js +130 -0
- package/dist/layout-bridge/convert/paragraphConversion.d.ts +20 -6
- package/dist/layout-bridge/convert/paragraphConversion.js +37 -5
- package/dist/layout-bridge/convert/paragraphFrames.d.ts +2 -4
- package/dist/layout-bridge/convert/paragraphFrames.js +4 -4
- package/dist/layout-bridge/convert/paragraphMarkFormatting.d.ts +13 -4
- package/dist/layout-bridge/convert/paragraphRuns.d.ts +7 -2
- package/dist/layout-bridge/convert/paragraphRuns.js +18 -4
- package/dist/layout-bridge/convert/runFormattingMerge.d.ts +10 -4
- package/dist/layout-bridge/convert/runMarkFormatting.d.ts +8 -3
- package/dist/layout-bridge/convert/runMarkFormatting.js +3 -5
- package/dist/layout-bridge/convert/sectionBoundaries.d.ts +4 -0
- package/dist/layout-bridge/convert/sectionBoundaries.js +16 -0
- package/dist/layout-bridge/convert/tableConversion.d.ts +15 -5
- package/dist/layout-bridge/convert/tableConversion.js +40 -19
- package/dist/layout-bridge/convert/templatePreviewFlow.d.ts +38 -1
- package/dist/layout-bridge/convert/textBoxFill.d.ts +7 -2
- package/dist/layout-bridge/convert/textFormattingConversion.d.ts +18 -12
- package/dist/layout-bridge/convert/toFlowBlocks.d.ts +8 -2
- package/dist/layout-bridge/convert/toFlowBlocks.js +200 -18
- package/dist/layout-bridge/convert/topLevelConversion.d.ts +96 -0
- package/dist/layout-bridge/convert/topLevelConversion.js +109 -0
- package/dist/layout-bridge/convert/wrapEditorViewAsSurface.d.ts +10 -0
- package/dist/layout-bridge/dom/clickToPositionDom.js +45 -44
- package/dist/layout-bridge/dom/findBodyPmSpans.js +4 -3
- package/dist/layout-bridge/dom/findHfPmSpans.js +10 -15
- package/dist/layout-bridge/dom/imeCaretAnchor.d.ts +8 -0
- package/dist/layout-bridge/dom/imeCaretAnchor.js +71 -7
- package/dist/layout-bridge/dom/noteStoryDom.d.ts +1 -0
- package/dist/layout-bridge/dom/textStreamDom.js +3 -2
- package/dist/layout-bridge/engine/blockIndex.d.ts +3 -0
- package/dist/layout-bridge/engine/clickToPosition.d.ts +9 -0
- package/dist/layout-bridge/engine/hitTest.d.ts +6 -0
- package/dist/layout-bridge/engine/hitTest.js +3 -3
- package/dist/layout-bridge/engine/measuring/index.d.ts +20 -8
- package/dist/layout-bridge/engine/selectionRects.d.ts +9 -0
- package/dist/layout-bridge/headerFooterLayout.d.ts +12 -0
- package/dist/layout-bridge/headerFooterLayout.js +15 -14
- package/dist/layout-bridge/sectionColumns.d.ts +10 -1
- package/dist/layout-bridge/tableInsertHover.js +2 -1
- package/dist/layout-engine/footnoteContinuation.d.ts +8 -0
- package/dist/layout-engine/imageLayout.d.ts +4 -1
- package/dist/layout-engine/index.d.ts +10 -5
- package/dist/layout-engine/index.js +9 -3
- package/dist/layout-engine/keep-together.d.ts +6 -0
- package/dist/layout-engine/layoutFlowShared.d.ts +4 -0
- package/dist/layout-engine/layoutInstrumentation.d.ts +40 -1
- package/dist/layout-engine/layoutInstrumentation.js +26 -4
- package/dist/layout-engine/lineFlow.d.ts +1 -0
- package/dist/layout-engine/lineFlow.js +4 -1
- package/dist/layout-engine/measure/advanceComposition.d.ts +14 -1
- package/dist/layout-engine/measure/automaticTextSpacing.d.ts +1 -1
- package/dist/layout-engine/measure/cache.d.ts +8 -0
- package/dist/layout-engine/measure/cache.js +9 -1
- package/dist/layout-engine/measure/crossRunWords.d.ts +1 -1
- package/dist/layout-engine/measure/floatingLineClearance.d.ts +4 -0
- package/dist/layout-engine/measure/floatingTablePosition.d.ts +32 -1
- package/dist/layout-engine/measure/floatingTablePosition.js +49 -1
- package/dist/layout-engine/measure/font-metrics.worker.d.ts +16 -0
- package/dist/layout-engine/measure/hyphenationDictionaries.d.ts +18 -0
- package/dist/layout-engine/measure/hyphenationPreload.d.ts +4 -0
- package/dist/layout-engine/measure/index.d.ts +18 -8
- package/dist/layout-engine/measure/index.js +2 -1
- package/dist/layout-engine/measure/inlineObjectMetrics.d.ts +4 -0
- package/dist/layout-engine/measure/justification.d.ts +5 -1
- package/dist/layout-engine/measure/lineFitting.d.ts +6 -1
- package/dist/layout-engine/measure/lineTypography.d.ts +6 -1
- package/dist/layout-engine/measure/listMarkerWidth.d.ts +16 -1
- package/dist/layout-engine/measure/measureBlocks.d.ts +4 -1
- package/dist/layout-engine/measure/measureBlocks.js +127 -102
- package/dist/layout-engine/measure/measureContainer.d.ts +17 -0
- package/dist/layout-engine/measure/measureHelpers.d.ts +10 -1
- package/dist/layout-engine/measure/measureParagraph.d.ts +7 -1
- package/dist/layout-engine/measure/measureParagraph.js +51 -21
- package/dist/layout-engine/measure/measureProvider.d.ts +10 -0
- package/dist/layout-engine/measure/measureTypes.d.ts +8 -0
- package/dist/layout-engine/measure/measureWorker.d.ts +30 -0
- package/dist/layout-engine/measure/measureWorkerProtocol.d.ts +14 -0
- package/dist/layout-engine/measure/measuresHoldNoPositions.d.ts +40 -0
- package/dist/layout-engine/measure/measuresHoldNoPositions.js +14 -0
- package/dist/layout-engine/measure/paragraphKeyMemo.d.ts +20 -0
- package/dist/layout-engine/measure/paragraphKeyMemo.js +92 -0
- package/dist/layout-engine/measure/paragraphMeasureShared.d.ts +21 -2
- package/dist/layout-engine/measure/paragraphMeasureShared.js +20 -1
- package/dist/layout-engine/measure/paragraphTabs.d.ts +4 -0
- package/dist/layout-engine/measure/raisedTableWrap.d.ts +16 -0
- package/dist/layout-engine/measure/raisedTableWrap.js +105 -0
- package/dist/layout-engine/measure/tableBorderBands.d.ts +35 -0
- package/dist/layout-engine/measure/tableBorderBands.js +251 -0
- package/dist/layout-engine/measure/tableCellFloating.js +1 -1
- package/dist/layout-engine/measure/tableCellFlow.d.ts +4 -4
- package/dist/layout-engine/measure/tableCellFlow.js +7 -10
- package/dist/layout-engine/measure/tableCellGrid.d.ts +4 -1
- package/dist/layout-engine/measure/tableCellGrid.js +30 -3
- package/dist/layout-engine/measure/tableFragmentBorderGeometry.js +2 -1
- package/dist/layout-engine/measure/tableMeasureMemo.d.ts +23 -0
- package/dist/layout-engine/measure/tableMeasureMemo.js +40 -0
- package/dist/layout-engine/measure/tableNoWrapWidths.d.ts +12 -0
- package/dist/layout-engine/measure/tableNoWrapWidths.js +73 -0
- package/dist/layout-engine/measure/tableVisibleBand.d.ts +6 -0
- package/dist/layout-engine/measure/textMeasurementPolicy.d.ts +7 -1
- package/dist/layout-engine/noteAreaFlow.d.ts +10 -1
- package/dist/layout-engine/paginator.d.ts +6 -0
- package/dist/layout-engine/paginator.js +6 -5
- package/dist/layout-engine/paragraphLayout.d.ts +5 -1
- package/dist/layout-engine/paragraphSpacing.d.ts +17 -2
- package/dist/layout-engine/paragraphSpacing.js +103 -15
- package/dist/layout-engine/pmPageIndex.d.ts +14 -1
- package/dist/layout-engine/pmPageIndex.js +10 -1
- package/dist/layout-engine/section-breaks.d.ts +6 -0
- package/dist/layout-engine/sectionLayout.d.ts +6 -1
- package/dist/layout-engine/sectionVerticalAlignment.js +2 -1
- package/dist/layout-engine/tableHeaderCompatibility.d.ts +3 -0
- package/dist/layout-engine/tableHeaderCompatibility.js +5 -0
- package/dist/layout-engine/tableLayout.d.ts +17 -6
- package/dist/layout-engine/tableLayout.js +36 -25
- package/dist/layout-engine/tableRowBreak.d.ts +16 -0
- package/dist/layout-engine/tableRowBreak.js +2 -1
- package/dist/layout-engine/textBoxFlow.d.ts +9 -0
- package/dist/layout-engine/textBoxLayout.d.ts +5 -1
- package/dist/layout-engine/types.d.ts +41 -2
- package/dist/layout-engine/types.js +77 -27
- package/dist/layout-painter/borderStroke.d.ts +1 -1
- package/dist/layout-painter/characterFillBand.d.ts +14 -0
- package/dist/layout-painter/characterFillBand.js +79 -0
- package/dist/layout-painter/imageLayout.d.ts +11 -2
- package/dist/layout-painter/imageLayout.js +2 -1
- package/dist/layout-painter/index.d.ts +12 -6
- package/dist/layout-painter/pageShellStyles.d.ts +19 -0
- package/dist/layout-painter/pageShellStyles.js +32 -0
- package/dist/layout-painter/previewSvg.d.ts +7 -0
- package/dist/layout-painter/reconcileRenderedContent.d.ts +19 -0
- package/dist/layout-painter/reconcileRenderedContent.js +119 -0
- package/dist/layout-painter/registry/modules/image.d.ts +7 -0
- package/dist/layout-painter/registry/modules/paragraph.d.ts +8 -0
- package/dist/layout-painter/registry/modules/table.d.ts +6 -0
- package/dist/layout-painter/registry/modules/textBox.d.ts +3 -0
- package/dist/layout-painter/registry/modules.d.ts +10 -0
- package/dist/layout-painter/registry/registry.d.ts +8 -0
- package/dist/layout-painter/registry/types.d.ts +11 -0
- package/dist/layout-painter/renderFragment.d.ts +6 -0
- package/dist/layout-painter/renderFragment.js +4 -6
- package/dist/layout-painter/renderImage.d.ts +8 -0
- package/dist/layout-painter/renderImage.js +2 -2
- package/dist/layout-painter/renderPage.d.ts +10 -3
- package/dist/layout-painter/renderPage.js +31 -33
- package/dist/layout-painter/renderParagraph.d.ts +6 -0
- package/dist/layout-painter/renderParagraph.js +36 -19
- package/dist/layout-painter/renderTable.d.ts +10 -1
- package/dist/layout-painter/renderTable.js +121 -36
- package/dist/layout-painter/renderTextBox.d.ts +9 -0
- package/dist/layout-painter/renderTextBox.js +2 -2
- package/dist/layout-painter/renderUtils.d.ts +5 -1
- package/dist/layout-painter/renderWatermark.d.ts +11 -1
- package/dist/layout-painter/sdtBoundary.d.ts +10 -0
- package/dist/layout-painter/sdtBoundary.js +3 -2
- package/dist/managers/ClipboardManager.d.ts +13 -0
- package/dist/managers/ContextMenuManager.d.ts +16 -4
- package/dist/managers/ContextMenuManager.js +3 -3
- package/dist/managers/DocumentLoaderManager.d.ts +19 -5
- package/dist/managers/DocumentLoaderManager.js +48 -13
- package/dist/managers/EditorModeManager.d.ts +11 -0
- package/dist/managers/ErrorManager.d.ts +11 -0
- package/dist/managers/FindReplaceManager.d.ts +14 -27
- package/dist/managers/FindReplaceManager.js +0 -49
- package/dist/managers/HistoryManager.d.ts +18 -0
- package/dist/managers/TableSelectionManager.d.ts +18 -4
- package/dist/managers/TableSelectionManager.js +22 -5
- package/dist/managers/editorShortcuts.d.ts +14 -2
- package/dist/managers/editorShortcuts.js +5 -3
- package/dist/managers/types.d.ts +15 -1
- package/dist/markdown/annotations.d.ts +9 -0
- package/dist/markdown/countParagraphList.d.ts +8 -0
- package/dist/markdown/escape.d.ts +6 -4
- package/dist/markdown/escape.js +17 -8
- package/dist/markdown/images.d.ts +11 -0
- package/dist/markdown/index.d.ts +24 -1
- package/dist/markdown/index.js +18 -1
- package/dist/markdown/internals.d.ts +7 -0
- package/dist/markdown/renderBlock.d.ts +5 -0
- package/dist/markdown/renderBlock.js +2 -7
- package/dist/markdown/renderParagraph.d.ts +22 -2
- package/dist/markdown/renderParagraph.js +11 -9
- package/dist/markdown/renderRuns.d.ts +10 -0
- package/dist/markdown/renderRuns.js +36 -3
- package/dist/markdown/renderTable.d.ts +7 -0
- package/dist/markdown/renderTable.js +2 -2
- package/dist/markdown/trailers.d.ts +7 -0
- package/dist/markdown/types.d.ts +9 -2
- package/dist/model.d.ts +25 -3
- package/dist/paged-layout/blockGeometry.js +3 -2
- package/dist/paged-layout/editorScrollRoot.d.ts +9 -0
- package/dist/paged-layout/editorScrollRoot.js +10 -1
- package/dist/paged-layout/pageText.d.ts +1 -1
- package/dist/paged-layout/paragraphFlash.d.ts +3 -0
- package/dist/paged-layout/rangeProjection.d.ts +20 -1
- package/dist/paged-layout/rangeProjection.js +26 -7
- package/dist/paged-layout/scrollToPmPosition.d.ts +15 -0
- package/dist/paged-layout/scrollToPmPosition.js +3 -3
- package/dist/paged-layout/sectionBlockWidths.d.ts +2 -2
- package/dist/paged-layout/sectionGeometry.d.ts +4 -3
- package/dist/paged-layout/selectionViewportRect.d.ts +19 -0
- package/dist/paged-layout/selectionViewportRect.js +8 -2
- package/dist/panel-layout.d.ts +18 -1
- package/dist/panel-layout.js +36 -2
- package/dist/pdf/contentStream.d.ts +12 -0
- package/dist/pdf/fonts.d.ts +19 -0
- package/dist/pdf/paint.d.ts +9 -1
- package/dist/pdf/paint.js +51 -0
- package/dist/prosemirror/acceptedBlockNeighbours.d.ts +50 -0
- package/dist/prosemirror/acceptedBlockNeighbours.js +63 -0
- package/dist/prosemirror/alternateContentAttrs.d.ts +1 -1
- package/dist/prosemirror/anchoredTextBoxes.d.ts +20 -0
- package/dist/prosemirror/attrs/index.d.ts +2 -2
- package/dist/prosemirror/attrs/index.js +2 -1
- package/dist/prosemirror/authoredTransformAttrs.d.ts +14 -0
- package/dist/prosemirror/bookmarkBoundaryAttrs.d.ts +2 -2
- package/dist/prosemirror/canonicalCommands.d.ts +26 -1
- package/dist/prosemirror/canonicalCommands.js +12 -1
- package/dist/prosemirror/canonicalSelectionRange.d.ts +1 -1
- package/dist/prosemirror/canonicalTableCommands.d.ts +14 -0
- package/dist/prosemirror/canonicalTableCommands.js +18 -6
- package/dist/prosemirror/cellDragSelection.d.ts +9 -0
- package/dist/prosemirror/commands/comments.d.ts +27 -2
- package/dist/prosemirror/commands/comments.js +459 -159
- package/dist/prosemirror/commands/contentControls.d.ts +20 -3
- package/dist/prosemirror/commands/contentControls.js +18 -1
- package/dist/prosemirror/commands/contentControlsBlockFill.d.ts +11 -1
- package/dist/prosemirror/commands/formatPainter.d.ts +10 -0
- package/dist/prosemirror/commands/formatPainter.js +0 -1
- package/dist/prosemirror/commands/formatting.d.ts +9 -2
- package/dist/prosemirror/commands/hyperlink.d.ts +12 -0
- package/dist/prosemirror/commands/image.d.ts +12 -0
- package/dist/prosemirror/commands/index.d.ts +10 -5
- package/dist/prosemirror/commands/pageBreak.d.ts +3 -0
- package/dist/prosemirror/commands/paragraph.d.ts +8 -1
- package/dist/prosemirror/commands/pastePlainText.d.ts +8 -0
- package/dist/prosemirror/commands/pastePlainText.js +1 -1
- package/dist/prosemirror/commands/propertyChangeScope.d.ts +28 -15
- package/dist/prosemirror/commands/propertyChangeScope.js +5 -12
- package/dist/prosemirror/commands/replaceRangeText.d.ts +22 -0
- package/dist/prosemirror/commands/replaceRangeText.js +44 -0
- package/dist/prosemirror/commands/resolveAllTableChanges.js +3 -2
- package/dist/prosemirror/commands/resolveParagraphProperties.js +4 -8
- package/dist/prosemirror/commands/rulerParagraph.d.ts +25 -0
- package/dist/prosemirror/commands/rulerParagraph.js +18 -0
- package/dist/prosemirror/commands/sectionBreak.d.ts +5 -0
- package/dist/prosemirror/commands/table.d.ts +7 -0
- package/dist/prosemirror/commands/tableCellMergeResolution.d.ts +1 -1
- package/dist/prosemirror/commentIdAllocator.d.ts +12 -6
- package/dist/prosemirror/commentIdAllocator.js +38 -29
- package/dist/prosemirror/commentOps.d.ts +7 -0
- package/dist/prosemirror/commentRangeBoundaryAttrs.d.ts +1 -1
- package/dist/prosemirror/commentRangeInlineAtoms.d.ts +4 -3
- package/dist/prosemirror/commentRangeInlineAtoms.js +1 -1
- package/dist/prosemirror/commentRecords.d.ts +154 -0
- package/dist/prosemirror/commentRecords.js +527 -0
- package/dist/prosemirror/commentReferenceAttrs.d.ts +1 -1
- package/dist/prosemirror/commentReferenceIntegrity.js +93 -14
- package/dist/prosemirror/containerFinalParagraph.d.ts +2 -0
- package/dist/prosemirror/containerFinalParagraph.js +3 -1
- package/dist/prosemirror/contentControlRevisions.d.ts +14 -0
- package/dist/prosemirror/conversion/effectiveTableCellFormatting.d.ts +5 -4
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.js +81 -61
- package/dist/prosemirror/conversion/index.d.ts +7 -2
- package/dist/prosemirror/conversion/preservedSinkCarriers.d.ts +21 -0
- package/dist/prosemirror/conversion/runShadingMark.d.ts +13 -1
- package/dist/prosemirror/conversion/storyConversionOptions.d.ts +16 -0
- package/dist/prosemirror/conversion/storyConversionOptions.js +13 -0
- package/dist/prosemirror/conversion/toProseDoc.d.ts +48 -14
- package/dist/prosemirror/conversion/toProseDoc.js +294 -145
- package/dist/prosemirror/copyOriginResolution.js +23 -10
- package/dist/prosemirror/documentSchema.d.ts +12 -0
- package/dist/prosemirror/emptyRangeAnchor.d.ts +39 -8
- package/dist/prosemirror/emptyRangeAnchor.js +63 -10
- package/dist/prosemirror/extensions/ExtensionManager.d.ts +7 -0
- package/dist/prosemirror/extensions/ExtensionManager.js +2 -0
- package/dist/prosemirror/extensions/StarterKit.d.ts +11 -2
- package/dist/prosemirror/extensions/core/DocExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/core/HistoryExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/core/HistoryExtension.js +3 -2
- package/dist/prosemirror/extensions/core/ParagraphExtension.d.ts +13 -4
- package/dist/prosemirror/extensions/core/ParagraphExtension.js +5 -3
- package/dist/prosemirror/extensions/core/TextExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/create.d.ts +6 -0
- package/dist/prosemirror/extensions/features/BaseKeymapExtension.d.ts +5 -0
- package/dist/prosemirror/extensions/features/BaseKeymapExtension.js +3 -3
- package/dist/prosemirror/extensions/features/BidiShortcutExtension.d.ts +10 -0
- package/dist/prosemirror/extensions/features/ContentControlWidgetsExtension.d.ts +10 -0
- package/dist/prosemirror/extensions/features/DropCursorExtension.d.ts +6 -0
- package/dist/prosemirror/extensions/features/EmptyParagraphFormatExtension.d.ts +20 -0
- package/dist/prosemirror/extensions/features/EmptyParagraphFormatExtension.js +20 -23
- package/dist/prosemirror/extensions/features/GapCursorExtension.d.ts +13 -0
- package/dist/prosemirror/extensions/features/ImageDragExtension.d.ts +9 -0
- package/dist/prosemirror/extensions/features/ImagePasteExtension.d.ts +6 -0
- package/dist/prosemirror/extensions/features/JoinedRunStyleExtension.d.ts +14 -0
- package/dist/prosemirror/extensions/features/ParaIdAllocatorExtension.js +38 -21
- package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.d.ts +30 -3
- package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.js +65 -45
- package/dist/prosemirror/extensions/features/PasteCleanupExtension.d.ts +17 -0
- package/dist/prosemirror/extensions/features/PasteCleanupExtension.js +7 -3
- package/dist/prosemirror/extensions/features/PasteStyleInlinerExtension.d.ts +14 -0
- package/dist/prosemirror/extensions/features/SelectionTrackerExtension.d.ts +4 -1
- package/dist/prosemirror/extensions/features/pasteCleanup.d.ts +32 -3
- package/dist/prosemirror/extensions/features/pasteCleanup.js +23 -3
- package/dist/prosemirror/extensions/features/pastedCellSections.d.ts +22 -0
- package/dist/prosemirror/extensions/features/pastedCellSections.js +78 -0
- package/dist/prosemirror/extensions/features/pastedHeadingStyles.d.ts +22 -0
- package/dist/prosemirror/extensions/features/pastedHtmlLists.d.ts +1 -0
- package/dist/prosemirror/extensions/markRegistry.d.ts +14 -1
- package/dist/prosemirror/extensions/marks/AllCapsExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/BoldExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/CharacterSpacingExtension.d.ts +8 -0
- package/dist/prosemirror/extensions/marks/CharacterStyleExtension.d.ts +14 -0
- package/dist/prosemirror/extensions/marks/CommentExtension.d.ts +6 -0
- package/dist/prosemirror/extensions/marks/CommentExtension.js +3 -1
- package/dist/prosemirror/extensions/marks/FontFamilyExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/FontFamilyExtension.js +4 -6
- package/dist/prosemirror/extensions/marks/FontSizeExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/FootnoteRefExtension.d.ts +5 -0
- package/dist/prosemirror/extensions/marks/HiddenTextExtension.d.ts +17 -0
- package/dist/prosemirror/extensions/marks/HighlightExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/HyperlinkExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/HyphenElementExtension.d.ts +19 -0
- package/dist/prosemirror/extensions/marks/InlineWrapperExtension.d.ts +12 -0
- package/dist/prosemirror/extensions/marks/ItalicExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/RunFormattingOverrideExtension.d.ts +11 -2
- package/dist/prosemirror/extensions/marks/RunFormattingOverrideExtension.js +2 -1
- package/dist/prosemirror/extensions/marks/RunIdentityExtension.d.ts +21 -0
- package/dist/prosemirror/extensions/marks/SmallCapsExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/StrikeExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/SubscriptExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/SuperscriptExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/TextColorExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/TextEffectsExtensions.d.ts +6 -0
- package/dist/prosemirror/extensions/marks/TrackedChangeExtensions.d.ts +7 -0
- package/dist/prosemirror/extensions/marks/UnderlineExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/marks/markUtils.d.ts +10 -3
- package/dist/prosemirror/extensions/nodes/BlockBookmarkBoundaryExtension.d.ts +22 -0
- package/dist/prosemirror/extensions/nodes/BlockCommentRangeBoundaryExtension.d.ts +11 -0
- package/dist/prosemirror/extensions/nodes/BlockMoveRangeBoundaryExtension.d.ts +14 -0
- package/dist/prosemirror/extensions/nodes/BlockSdtExtension.d.ts +17 -0
- package/dist/prosemirror/extensions/nodes/BookmarkBoundaryExtension.d.ts +1 -0
- package/dist/prosemirror/extensions/nodes/BookmarkBoundaryExtension.js +38 -4
- package/dist/prosemirror/extensions/nodes/CommentReferenceExtension.d.ts +2 -1
- package/dist/prosemirror/extensions/nodes/CommentReferenceExtension.js +3 -1
- package/dist/prosemirror/extensions/nodes/FieldExtension.d.ts +8 -0
- package/dist/prosemirror/extensions/nodes/HardBreakExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/nodes/HorizontalRuleExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/nodes/ImageExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/nodes/MathExtension.d.ts +7 -0
- package/dist/prosemirror/extensions/nodes/MoveRangeBoundaryExtension.d.ts +1 -0
- package/dist/prosemirror/extensions/nodes/PageBreakExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/nodes/PageBreakRunExtension.d.ts +1 -0
- package/dist/prosemirror/extensions/nodes/PreservedBlockExtension.d.ts +25 -0
- package/dist/prosemirror/extensions/nodes/PreservedXmlExtension.d.ts +9 -0
- package/dist/prosemirror/extensions/nodes/RangeAnchorExtension.d.ts +1 -0
- package/dist/prosemirror/extensions/nodes/RangeAnchorExtension.js +7 -19
- package/dist/prosemirror/extensions/nodes/RenderedPageBreakExtension.d.ts +1 -0
- package/dist/prosemirror/extensions/nodes/SdtExtension.d.ts +6 -0
- package/dist/prosemirror/extensions/nodes/ShapeExtension.d.ts +6 -0
- package/dist/prosemirror/extensions/nodes/TabExtension.d.ts +3 -0
- package/dist/prosemirror/extensions/nodes/TableExtension.d.ts +8 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.js +6 -6
- package/dist/prosemirror/extensions/nodes/TextBoxAnchorExtension.d.ts +7 -0
- package/dist/prosemirror/extensions/nodes/TextBoxExtension.d.ts +7 -0
- package/dist/prosemirror/extensions/nodes/bookmarkBoundaryDom.d.ts +9 -0
- package/dist/prosemirror/extensions/types.d.ts +10 -1
- package/dist/prosemirror/findReplaceSelection.d.ts +1 -1
- package/dist/prosemirror/hyperlinkRemoval.d.ts +13 -1
- package/dist/prosemirror/imageCommit.d.ts +10 -0
- package/dist/prosemirror/index.d.ts +30 -20
- package/dist/prosemirror/indexedNodeLookup.d.ts +11 -0
- package/dist/prosemirror/inlineWrapperStack.d.ts +12 -0
- package/dist/prosemirror/insertOperations.d.ts +10 -1
- package/dist/prosemirror/insertOperations.js +2 -2
- package/dist/prosemirror/insertionGaps.d.ts +21 -0
- package/dist/prosemirror/insertionGaps.js +86 -0
- package/dist/prosemirror/keptRangeBoundaries.d.ts +16 -12
- package/dist/prosemirror/keptRangeBoundaries.js +28 -34
- package/dist/prosemirror/listAutoformatMarkers.d.ts +11 -0
- package/dist/prosemirror/listInstanceReferences.d.ts +5 -0
- package/dist/prosemirror/listLabels.d.ts +16 -3
- package/dist/prosemirror/listLabels.js +0 -6
- package/dist/prosemirror/listMarker.d.ts +2 -2
- package/dist/prosemirror/listNumbering.d.ts +1 -1
- package/dist/prosemirror/listRendering.d.ts +2 -2
- package/dist/prosemirror/listRenderingAttrs.d.ts +10 -1
- package/dist/prosemirror/lockedControls.d.ts +6 -0
- package/dist/prosemirror/markupViewNotes.d.ts +11 -1
- package/dist/prosemirror/markupViewProjection.d.ts +21 -4
- package/dist/prosemirror/moveRangeBoundaryAttrs.d.ts +1 -1
- package/dist/prosemirror/nativeSelection.d.ts +51 -0
- package/dist/prosemirror/nativeSelection.js +124 -0
- package/dist/prosemirror/noteReferenceOccurrences.d.ts +1 -1
- package/dist/prosemirror/noteReferenceReview.d.ts +17 -3
- package/dist/prosemirror/noteReferenceReview.js +26 -5
- package/dist/prosemirror/numberedRefFields.d.ts +2 -0
- package/dist/prosemirror/numberedRefFields.js +16 -5
- package/dist/prosemirror/pageBreakRunProjection.d.ts +2 -1
- package/dist/prosemirror/paraText.d.ts +14 -0
- package/dist/prosemirror/paragraphFormattingProvenance.d.ts +13 -1
- package/dist/prosemirror/paragraphIndentation.d.ts +6 -3
- package/dist/prosemirror/paragraphIndentation.js +2 -3
- package/dist/prosemirror/paragraphList.d.ts +1 -1
- package/dist/prosemirror/paragraphMarkJoin.d.ts +34 -8
- package/dist/prosemirror/paragraphMarkJoin.js +176 -18
- package/dist/prosemirror/paragraphPropertyCarry.d.ts +15 -1
- package/dist/prosemirror/paragraphPropertyCarry.js +5 -3
- package/dist/prosemirror/paragraphSpacing.d.ts +1 -1
- package/dist/prosemirror/pastePlacement.d.ts +17 -0
- package/dist/prosemirror/pastePlacement.js +22 -0
- package/dist/prosemirror/pastedCommentCopies.d.ts +87 -0
- package/dist/prosemirror/pastedCommentCopies.js +379 -0
- package/dist/prosemirror/plugins/aiCitationDecorations.d.ts +12 -0
- package/dist/prosemirror/plugins/aiSuggestionDecorations.d.ts +14 -0
- package/dist/prosemirror/plugins/contentControlWidgets.d.ts +15 -9
- package/dist/prosemirror/plugins/contentControlWidgets.js +24 -30
- package/dist/prosemirror/plugins/createDocScanPlugin.d.ts +17 -0
- package/dist/prosemirror/plugins/documentNumbering.d.ts +2 -1
- package/dist/prosemirror/plugins/documentNumbering.js +33 -14
- package/dist/prosemirror/plugins/documentStyleState.d.ts +3 -4
- package/dist/prosemirror/plugins/documentStyles.d.ts +20 -3
- package/dist/prosemirror/plugins/index.d.ts +7 -1
- package/dist/prosemirror/plugins/paragraphStyleResolution.d.ts +18 -1
- package/dist/prosemirror/plugins/paragraphStyleResolution.js +12 -2
- package/dist/prosemirror/plugins/pmTextScan.d.ts +18 -0
- package/dist/prosemirror/plugins/pmTextScan.js +42 -33
- package/dist/prosemirror/plugins/revisionIds.d.ts +14 -1
- package/dist/prosemirror/plugins/revisionIds.js +5 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +12 -2
- package/dist/prosemirror/plugins/suggestionMode.d.ts +14 -11
- package/dist/prosemirror/plugins/suggestionMode.js +225 -35
- package/dist/prosemirror/plugins/templateDirectives.d.ts +17 -0
- package/dist/prosemirror/plugins/templatePreviewValues.d.ts +23 -0
- package/dist/prosemirror/plugins/templateSlashMenu.d.ts +19 -0
- package/dist/prosemirror/plugins/transactionInvariants.d.ts +19 -0
- package/dist/prosemirror/positionSweep.d.ts +21 -0
- package/dist/prosemirror/queries.d.ts +9 -0
- package/dist/prosemirror/queries.js +2 -2
- package/dist/prosemirror/rangeAnchorAttrs.d.ts +2 -2
- package/dist/prosemirror/rangeAnchorAttrs.js +55 -33
- package/dist/prosemirror/rebaseParagraphRuns.js +1 -1
- package/dist/prosemirror/rejoinRunCarriers.d.ts +17 -0
- package/dist/prosemirror/replaceFindMatches.d.ts +20 -0
- package/dist/prosemirror/replaceFindMatches.js +33 -0
- package/dist/prosemirror/replacedAnnotations.d.ts +143 -0
- package/dist/prosemirror/replacedAnnotations.js +223 -26
- package/dist/prosemirror/revisionCarriers.js +9 -0
- package/dist/prosemirror/runFormattingFromMarks.d.ts +3 -3
- package/dist/prosemirror/runFormattingFromMarks.js +10 -51
- package/dist/prosemirror/runFormattingProvenance.d.ts +2 -1
- package/dist/prosemirror/runFormattingProvenance.js +2 -1
- package/dist/prosemirror/runFormattingReconciliation.js +3 -12
- package/dist/prosemirror/runIdentity.d.ts +14 -0
- package/dist/prosemirror/runIdentityAcrossRevisions.d.ts +30 -1
- package/dist/prosemirror/runIdentityAcrossRevisions.js +57 -8
- package/dist/prosemirror/runPropertyChangeResolution.d.ts +5 -13
- package/dist/prosemirror/runPropertyChangeResolution.js +13 -30
- package/dist/prosemirror/runStyleFormatting.d.ts +42 -113
- package/dist/prosemirror/runStyleFormatting.js +17 -74
- package/dist/prosemirror/schema/index.d.ts +8 -1
- package/dist/prosemirror/schema/marks.d.ts +21 -1
- package/dist/prosemirror/schema/nodes.d.ts +15 -14
- package/dist/prosemirror/sectionCarrier.d.ts +21 -0
- package/dist/prosemirror/sectionMarkEdits.d.ts +18 -0
- package/dist/prosemirror/selectionState.d.ts +10 -4
- package/dist/prosemirror/storyListNumbering.d.ts +10 -0
- package/dist/prosemirror/storyListNumbering.js +7 -2
- package/dist/prosemirror/styles/index.d.ts +3 -0
- package/dist/prosemirror/styles/paragraphStyleCascade.d.ts +20 -18
- package/dist/prosemirror/styles/paragraphStyleCascade.js +10 -19
- package/dist/prosemirror/styles/resolvedStyleAttrs.d.ts +4 -3
- package/dist/prosemirror/styles/styleResolver.d.ts +40 -15
- package/dist/prosemirror/styles/styleResolver.js +6 -6
- package/dist/prosemirror/styles/styleToggleCascade.d.ts +18 -11
- package/dist/prosemirror/styles/styleToggleCascade.js +2 -11
- package/dist/prosemirror/styles/tableStyleRegions.d.ts +20 -7
- package/dist/prosemirror/styles/tableStyleRegions.js +14 -13
- package/dist/prosemirror/tableCellPaste.d.ts +21 -0
- package/dist/prosemirror/tableCellPaste.js +32 -2
- package/dist/prosemirror/tableGridMutation.d.ts +9 -0
- package/dist/prosemirror/tableGridMutation.js +34 -2
- package/dist/prosemirror/tablePositionedBookmarks.d.ts +6 -0
- package/dist/prosemirror/tableResize.d.ts +20 -9
- package/dist/prosemirror/tableResize.js +60 -49
- package/dist/prosemirror/tableRunIn.d.ts +26 -1
- package/dist/prosemirror/tableRunIn.js +39 -11
- package/dist/prosemirror/textBoxAnchorAttrs.d.ts +1 -1
- package/dist/prosemirror/textBoxHostCollapse.d.ts +11 -0
- package/dist/prosemirror/textInput.d.ts +30 -1
- package/dist/prosemirror/textInput.js +144 -17
- package/dist/prosemirror/utils/findParagraphByParaId.d.ts +5 -0
- package/dist/prosemirror/utils/tabCalculator.d.ts +6 -0
- package/dist/prosemirror/utils/visualLineNavigation.js +21 -19
- package/dist/prosemirror/validation.d.ts +19 -0
- package/dist/prosemirror/validation.js +84 -16
- package/dist/prosemirror/yjsDocumentMetadata.d.ts +9 -3
- package/dist/prosemirror/yjsDocumentMetadata.js +49 -10
- package/dist/prosemirror/zeroWidthAnchors.d.ts +18 -0
- package/dist/redline.d.ts +4 -1
- package/dist/redline.js +21 -13
- package/dist/render-dom/BodySelectionOverlay.d.ts +5 -0
- package/dist/render-dom/HeaderFooterSelectionOverlay.js +5 -4
- package/dist/render-dom/RemoteSelectionOverlay.js +3 -3
- package/dist/render-dom/RenderedDomContext.js +7 -6
- package/dist/server.d.ts +30 -18
- package/dist/server.js +4 -3
- package/dist/shaping/placeRun.d.ts +8 -0
- package/dist/shaping/shaper.d.ts +19 -0
- package/dist/style-engine/index.d.ts +5 -0
- package/dist/style-engine/styleEngine.d.ts +32 -13
- package/dist/style-sets/extract.d.ts +1 -1
- package/dist/style-sets/styleSetNormalization.d.ts +20 -1
- package/dist/text-shaping.d.ts +9 -1
- package/dist/types/anonymization.d.ts +17 -0
- package/dist/types/anonymization.js +0 -0
- package/dist/types/autocomplete.d.ts +46 -0
- package/dist/types/autocomplete.js +0 -0
- package/dist/types/canonicalCapabilities.d.ts +52 -53
- package/dist/types/canonicalCapabilities.js +54 -56
- package/dist/types/canonicalSave.d.ts +36 -0
- package/dist/types/documentModel.d.ts +37 -0
- package/dist/types/documentModel.js +24 -0
- package/dist/types/docxSerialization.d.ts +10 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/remote-selection.d.ts +2 -1
- package/dist/types/selectiveSaveDecline.d.ts +44 -0
- package/dist/types/selectiveSaveDecline.js +0 -0
- package/dist/types/tableWidthKind.d.ts +2 -0
- package/dist/types/tableWidthKind.js +9 -0
- package/dist/utils/base64.d.ts +20 -0
- package/dist/utils/borderCss.d.ts +18 -1
- package/dist/utils/colorResolver.d.ts +12 -11
- package/dist/utils/createDocument.d.ts +8 -1
- package/dist/utils/createDocument.js +20 -2
- package/dist/utils/diagonalHatch.d.ts +2 -0
- package/dist/utils/diagonalHatch.js +16 -0
- package/dist/utils/extremes.d.ts +4 -0
- package/dist/utils/extremes.js +14 -0
- package/dist/utils/findMatchView.d.ts +2 -2
- package/dist/utils/findMatchView.js +4 -3
- package/dist/utils/findReplace.d.ts +2 -2
- package/dist/utils/findReplace.js +3 -2
- package/dist/utils/fontFamilyMerge.d.ts +2 -1
- package/dist/utils/fontResolver.d.ts +11 -2
- package/dist/utils/formatToStyle.d.ts +21 -7
- package/dist/utils/headerFooter.d.ts +16 -2
- package/dist/utils/headerFooter.js +2 -6
- package/dist/utils/imageResize.js +1 -1
- package/dist/utils/listItems.d.ts +7 -0
- package/dist/utils/listItems.js +9 -0
- package/dist/utils/mergeDocumentContent.d.ts +7 -0
- package/dist/utils/mergeDocumentContent.js +2 -2
- package/dist/utils/outlineHeadings.d.ts +1 -1
- package/dist/utils/paintedPositions.d.ts +60 -0
- package/dist/utils/paintedPositions.js +101 -0
- package/dist/utils/paragraphFormattingMerge.d.ts +11 -3
- package/dist/utils/paragraphFormattingMerge.js +0 -8
- package/dist/utils/paragraphInlineLayout.js +2 -1
- package/dist/utils/repeatingStrokeGradient.d.ts +8 -0
- package/dist/utils/repeatingStrokeGradient.js +13 -0
- package/dist/utils/rotationBoundingBox.d.ts +8 -0
- package/dist/utils/rulerControl.d.ts +71 -0
- package/dist/utils/rulerControl.js +94 -0
- package/dist/utils/tableOperations.d.ts +20 -4
- package/dist/utils/tableOperations.js +1 -0
- package/dist/utils/textDirectionFlow.d.ts +10 -0
- package/dist/utils/textFormattingMerge.d.ts +18 -2
- package/dist/utils/textFormattingMerge.js +0 -20
- package/dist/utils/units.d.ts +2 -0
- package/dist/utils/units.js +3 -1
- package/dist/version-comparison.d.ts +63 -1
- package/dist/version-comparison.js +2 -1
- package/dist/watermark/index.d.ts +11 -0
- package/dist/watermark/index.js +0 -5
- package/package.json +7 -8
- package/dist/controller/canonicalLockGuard.d.ts +0 -8
- package/dist/controller/canonicalLockGuard.js +0 -88
- package/dist/controller/canonicalPublicOperations.js +0 -900
- package/dist/controller/canonicalSession.d.ts +0 -256
- package/dist/controller/canonicalSession.js +0 -1717
- package/dist/docx/canonicalResourceSave.d.ts +0 -15
- package/dist/docx/canonicalResourceSave.js +0 -27
- package/dist/internal/acceptedBlockProjection.d.ts +0 -9
- package/dist/internal/acceptedBlockProjection.js +0 -50
- package/dist/prosemirror/plugins/anonymizationDecorations.d.ts +0 -60
- package/dist/prosemirror/plugins/anonymizationDecorations.js +0 -111
- package/dist/prosemirror/plugins/autocompleteSuggestion.d.ts +0 -127
- package/dist/prosemirror/plugins/autocompleteSuggestion.js +0 -282
- package/dist/utils/replaceText.d.ts +0 -25
- package/dist/utils/replaceText.js +0 -242
- /package/dist/{controller → canonical}/canonicalListRendering.d.ts +0 -0
- /package/dist/{controller → canonical}/canonicalOperations.d.ts +0 -0
- /package/dist/{controller → canonical}/canonicalSelection.d.ts +0 -0
- /package/dist/{controller → canonical}/canonicalTocSelection.d.ts +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { readTableWidthKind } from "../types/tableWidthKind.js";
|
|
2
3
|
import { isFloatingWrapType, isWrapNone } from "../types/wrap.js";
|
|
4
|
+
import { MAX_PAGE_DIMENSION_TWIPS, twipsToPixels } from "../utils/units.js";
|
|
3
5
|
// src/layout-engine/types.ts
|
|
4
6
|
var types_exports = /* @__PURE__ */ __exportAll({
|
|
5
7
|
DEFAULT_TEXTBOX_MARGINS: () => DEFAULT_TEXTBOX_MARGINS,
|
|
@@ -18,6 +20,8 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
18
20
|
isTextWrappingFloatingImageRun: () => isTextWrappingFloatingImageRun,
|
|
19
21
|
resolveTableCellPadding: () => resolveTableCellPadding,
|
|
20
22
|
resolveTableWidthPx: () => resolveTableWidthPx,
|
|
23
|
+
shiftFlowBlockPmAnchors: () => shiftFlowBlockPmAnchors,
|
|
24
|
+
shiftParagraphPmAnchors: () => shiftParagraphPmAnchors,
|
|
21
25
|
stripFlowBlockPmAnchors: () => stripFlowBlockPmAnchors,
|
|
22
26
|
tableColumnsArePinned: () => tableColumnsArePinned
|
|
23
27
|
});
|
|
@@ -41,12 +45,14 @@ const DEFAULT_TABLE_CELL_PADDING = {
|
|
|
41
45
|
bottom: 0,
|
|
42
46
|
left: 7
|
|
43
47
|
};
|
|
48
|
+
const MAX_TABLE_CELL_MARGIN_PX = twipsToPixels(MAX_PAGE_DIMENSION_TWIPS);
|
|
49
|
+
const cellMarginOrDefault = (value, fallback) => value !== void 0 && Math.abs(value) <= MAX_TABLE_CELL_MARGIN_PX ? value : fallback;
|
|
44
50
|
/** Resolve authored cell margins against the TableNormal defaults. */
|
|
45
51
|
const resolveTableCellPadding = (cell) => ({
|
|
46
|
-
top: cell?.padding?.top
|
|
47
|
-
right: cell?.padding?.right
|
|
48
|
-
bottom: cell?.padding?.bottom
|
|
49
|
-
left: cell?.padding?.left
|
|
52
|
+
top: cellMarginOrDefault(cell?.padding?.top, DEFAULT_TABLE_CELL_PADDING.top),
|
|
53
|
+
right: cellMarginOrDefault(cell?.padding?.right, DEFAULT_TABLE_CELL_PADDING.right),
|
|
54
|
+
bottom: cellMarginOrDefault(cell?.padding?.bottom, DEFAULT_TABLE_CELL_PADDING.bottom),
|
|
55
|
+
left: cellMarginOrDefault(cell?.padding?.left, DEFAULT_TABLE_CELL_PADDING.left)
|
|
50
56
|
});
|
|
51
57
|
/** Default internal margins for text boxes (OOXML defaults in pixels) */
|
|
52
58
|
const DEFAULT_TEXTBOX_MARGINS = {
|
|
@@ -152,25 +158,8 @@ function floatingTextBoxReservesBand(block) {
|
|
|
152
158
|
*/
|
|
153
159
|
function tableColumnsArePinned(table) {
|
|
154
160
|
if (table.layout === "fixed") return true;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Whether `w:tblW`/`w:tcW`'s `w:w` is a measurement at all.
|
|
159
|
-
*
|
|
160
|
-
* Under `w:type="auto"` or `"nil"` (§17.18.87) the number is meaningless:
|
|
161
|
-
* `auto` asks the consumer to size the table to its content and `nil` declares
|
|
162
|
-
* no width, so both ignore `w:w` entirely. Word still writes a leftover value
|
|
163
|
-
* there, and reading it as twips pins a table that should autofit.
|
|
164
|
-
*/
|
|
165
|
-
function hasMeasuredTableWidth(widthType) {
|
|
166
|
-
switch (widthType) {
|
|
167
|
-
case "dxa":
|
|
168
|
-
case "pct": return true;
|
|
169
|
-
case "auto":
|
|
170
|
-
case "nil":
|
|
171
|
-
case void 0: return false;
|
|
172
|
-
default: return widthType;
|
|
173
|
-
}
|
|
161
|
+
const kind = readTableWidthKind(table.widthType);
|
|
162
|
+
return kind === "twips" || kind === "percentage";
|
|
174
163
|
}
|
|
175
164
|
const TWIPS_PER_INCH = 1440;
|
|
176
165
|
const PIXELS_PER_INCH = 96;
|
|
@@ -182,9 +171,10 @@ const PERCENT_DENOMINATOR = 5e3;
|
|
|
182
171
|
* one and autofitted in the other.
|
|
183
172
|
*/
|
|
184
173
|
function resolveTableWidthPx(width, widthType, containerWidth) {
|
|
185
|
-
if (width === void 0 || width <= 0
|
|
186
|
-
|
|
187
|
-
return width /
|
|
174
|
+
if (width === void 0 || width <= 0) return void 0;
|
|
175
|
+
const kind = readTableWidthKind(widthType);
|
|
176
|
+
if (kind === "percentage") return width / PERCENT_DENOMINATOR * containerWidth;
|
|
177
|
+
return kind === "twips" ? width / TWIPS_PER_INCH * PIXELS_PER_INCH : void 0;
|
|
188
178
|
}
|
|
189
179
|
const tableRowOwnsNestedGrid = (row) => {
|
|
190
180
|
const cell = row.cells.length === 1 ? row.cells.at(0) : void 0;
|
|
@@ -197,6 +187,66 @@ const getTableRowLeadingWidth = (row, columnWidths) => {
|
|
|
197
187
|
return columnWidths.slice(0, row.gridBefore ?? 0).reduce((sum, columnWidth) => sum + columnWidth, 0);
|
|
198
188
|
};
|
|
199
189
|
/**
|
|
190
|
+
* A copy of a block that an edit before it moved by `delta`: every
|
|
191
|
+
* ProseMirror anchor it holds, nested ones included, moves with it, and
|
|
192
|
+
* everything else is shared. Ids stay, so the copy is the same block moved.
|
|
193
|
+
* The anchors are exactly the fields {@link FlowBlockAnchorKeys} lists.
|
|
194
|
+
*/
|
|
195
|
+
function shiftFlowBlockPmAnchors(block, delta) {
|
|
196
|
+
switch (block.kind) {
|
|
197
|
+
case "paragraph": return shiftParagraphPmAnchors(block, delta);
|
|
198
|
+
case "table": return shiftTablePmAnchors(block, delta);
|
|
199
|
+
case "image":
|
|
200
|
+
case "pageBreak":
|
|
201
|
+
case "columnBreak": return {
|
|
202
|
+
...block,
|
|
203
|
+
...shiftedRange(block, delta)
|
|
204
|
+
};
|
|
205
|
+
case "textBox": return {
|
|
206
|
+
...block,
|
|
207
|
+
...shiftedRange(block, delta),
|
|
208
|
+
content: block.content.map((contentBlock) => contentBlock.kind === "table" ? shiftTablePmAnchors(contentBlock, delta) : shiftParagraphPmAnchors(contentBlock, delta))
|
|
209
|
+
};
|
|
210
|
+
case "sectionBreak": return block;
|
|
211
|
+
default: return block;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const shiftedRange = (anchored, delta) => ({
|
|
215
|
+
...anchored.pmStart === void 0 ? {} : { pmStart: anchored.pmStart + delta },
|
|
216
|
+
...anchored.pmEnd === void 0 ? {} : { pmEnd: anchored.pmEnd + delta }
|
|
217
|
+
});
|
|
218
|
+
const shiftedSdtGroups = (groups, delta) => groups === void 0 ? {} : { sdtGroups: groups.map((group) => ({
|
|
219
|
+
...group,
|
|
220
|
+
pmPos: group.pmPos + delta
|
|
221
|
+
})) };
|
|
222
|
+
function shiftTablePmAnchors(block, delta) {
|
|
223
|
+
return {
|
|
224
|
+
...block,
|
|
225
|
+
...shiftedRange(block, delta),
|
|
226
|
+
...shiftedSdtGroups(block.sdtGroups, delta),
|
|
227
|
+
rows: block.rows.map((row) => ({
|
|
228
|
+
...row,
|
|
229
|
+
cells: row.cells.map((cell) => ({
|
|
230
|
+
...cell,
|
|
231
|
+
blocks: cell.blocks.map((cellBlock) => shiftFlowBlockPmAnchors(cellBlock, delta))
|
|
232
|
+
}))
|
|
233
|
+
}))
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
/** {@link shiftFlowBlockPmAnchors} for a paragraph. */
|
|
237
|
+
function shiftParagraphPmAnchors(block, delta) {
|
|
238
|
+
return {
|
|
239
|
+
...block,
|
|
240
|
+
...shiftedRange(block, delta),
|
|
241
|
+
...shiftedSdtGroups(block.sdtGroups, delta),
|
|
242
|
+
...block.fixedPosition === void 0 ? {} : { fixedPosition: block.fixedPosition + delta },
|
|
243
|
+
runs: block.runs.map((run) => ({
|
|
244
|
+
...run,
|
|
245
|
+
...shiftedRange(run, delta)
|
|
246
|
+
}))
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
200
250
|
* A copy of a block with every ProseMirror anchor removed. A note story's
|
|
201
251
|
* blocks carry positions in the note's own document; painted beside the body
|
|
202
252
|
* they must not resolve a click, a selection or a caret into the body.
|
|
@@ -284,4 +334,4 @@ function stripRunPmAnchors(run) {
|
|
|
284
334
|
default: return run;
|
|
285
335
|
}
|
|
286
336
|
}
|
|
287
|
-
export { DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, FOOTNOTE_ENTRY_MARGIN_BOTTOM, FOOTNOTE_FALLBACK_LINE_HEIGHT, FOOTNOTE_SEPARATOR_HEIGHT, NOTE_SEPARATOR_RULE_THICKNESS, NOTE_SEPARATOR_WIDTH_FRACTION, floatingTextBoxReservesBand, floatingTextBoxWrapsText, getTableRowLeadingWidth, isFloatingImageRun, isFloatingTextBoxBlock, isListNumPr, isTextWrappingFloatingImageRun, resolveTableCellPadding, resolveTableWidthPx, stripFlowBlockPmAnchors, tableColumnsArePinned, types_exports };
|
|
337
|
+
export { DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, FOOTNOTE_ENTRY_MARGIN_BOTTOM, FOOTNOTE_FALLBACK_LINE_HEIGHT, FOOTNOTE_SEPARATOR_HEIGHT, NOTE_SEPARATOR_RULE_THICKNESS, NOTE_SEPARATOR_WIDTH_FRACTION, floatingTextBoxReservesBand, floatingTextBoxWrapsText, getTableRowLeadingWidth, isFloatingImageRun, isFloatingTextBoxBlock, isListNumPr, isTextWrappingFloatingImageRun, resolveTableCellPadding, resolveTableWidthPx, shiftFlowBlockPmAnchors, shiftParagraphPmAnchors, stripFlowBlockPmAnchors, tableColumnsArePinned, types_exports };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MeasuredLine } from "../layout-engine/types.js";
|
|
2
|
+
type PendingFill = {
|
|
3
|
+
line: HTMLElement;
|
|
4
|
+
band: NonNullable<MeasuredLine["characterFillBand"]>;
|
|
5
|
+
layer: HTMLElement;
|
|
6
|
+
runs: {
|
|
7
|
+
element: HTMLElement;
|
|
8
|
+
color: string;
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
11
|
+
export declare const CHARACTER_FILL_BAND_ATTRIBUTE = "data-character-fill-band";
|
|
12
|
+
export declare const CHARACTER_FILL_BACKINGS_ATTRIBUTE = "data-character-fill-backings";
|
|
13
|
+
export declare function scheduleCharacterFillBand(line: HTMLElement, band: PendingFill["band"], textClass: string): void;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { COMMENT_ANCHOR_SELECTOR } from "../render-dom/commentAnchorAttributes.js";
|
|
2
|
+
import { AUTHORED_BACKGROUND_COLOR_VAR, setAuthoredBackgroundColor } from "./documentColors.js";
|
|
3
|
+
// src/layout-painter/characterFillBand.ts
|
|
4
|
+
const CHARACTER_FILL_BAND_ATTRIBUTE = "data-character-fill-band";
|
|
5
|
+
const CHARACTER_FILL_BACKINGS_ATTRIBUTE = "data-character-fill-backings";
|
|
6
|
+
const pendingFills = [];
|
|
7
|
+
function measureFill({ line, runs }) {
|
|
8
|
+
if (!line.isConnected) return void 0;
|
|
9
|
+
const lineRect = line.getBoundingClientRect();
|
|
10
|
+
if (lineRect.width <= 0) return void 0;
|
|
11
|
+
return runs.map(({ element, color }) => ({
|
|
12
|
+
element,
|
|
13
|
+
color,
|
|
14
|
+
rects: Array.from(element.getClientRects()).filter((rect) => rect.width > 0).map((rect) => ({
|
|
15
|
+
leftPercent: (rect.left - lineRect.left) / lineRect.width * 100,
|
|
16
|
+
widthPercent: rect.width / lineRect.width * 100
|
|
17
|
+
}))
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
function paintPendingFills() {
|
|
21
|
+
const measured = pendingFills.splice(0).map((fill) => ({
|
|
22
|
+
fill,
|
|
23
|
+
runs: measureFill(fill)
|
|
24
|
+
}));
|
|
25
|
+
for (const { fill, runs } of measured) {
|
|
26
|
+
const { line, band, layer } = fill;
|
|
27
|
+
if (!runs) {
|
|
28
|
+
for (const { element, color } of fill.runs) setAuthoredBackgroundColor(element.style, color);
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
for (const { element, color, rects } of runs) for (const { leftPercent, widthPercent } of rects) {
|
|
32
|
+
const backing = line.ownerDocument.createElement("span");
|
|
33
|
+
backing.style.position = "absolute";
|
|
34
|
+
backing.style.left = `${leftPercent}%`;
|
|
35
|
+
backing.style.width = `${widthPercent}%`;
|
|
36
|
+
backing.style.top = `${band.topPx}px`;
|
|
37
|
+
backing.style.height = `${band.heightPx}px`;
|
|
38
|
+
backing.style.opacity = element.style.opacity;
|
|
39
|
+
setAuthoredBackgroundColor(backing.style, color);
|
|
40
|
+
layer.append(backing);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function scheduleCharacterFillBand(line, band, textClass) {
|
|
45
|
+
if (band.heightPx <= 0) return;
|
|
46
|
+
const runSelector = `.${textClass}[style*="${AUTHORED_BACKGROUND_COLOR_VAR}"]:not(${COMMENT_ANCHOR_SELECTOR})`;
|
|
47
|
+
const runs = Array.from(line.querySelectorAll(runSelector)).flatMap((element) => {
|
|
48
|
+
const color = element.style.getPropertyValue(AUTHORED_BACKGROUND_COLOR_VAR);
|
|
49
|
+
if (!color) return [];
|
|
50
|
+
element.setAttribute("data-character-fill-color", color);
|
|
51
|
+
element.style.removeProperty("background-color");
|
|
52
|
+
element.style.removeProperty(AUTHORED_BACKGROUND_COLOR_VAR);
|
|
53
|
+
return [{
|
|
54
|
+
element,
|
|
55
|
+
color
|
|
56
|
+
}];
|
|
57
|
+
});
|
|
58
|
+
if (runs.length === 0) return;
|
|
59
|
+
line.setAttribute(CHARACTER_FILL_BAND_ATTRIBUTE, `${band.topPx}:${band.heightPx}`);
|
|
60
|
+
line.style.position = "relative";
|
|
61
|
+
line.style.isolation = "isolate";
|
|
62
|
+
const layer = line.ownerDocument.createElement("span");
|
|
63
|
+
layer.setAttribute(CHARACTER_FILL_BACKINGS_ATTRIBUTE, "");
|
|
64
|
+
layer.setAttribute("aria-hidden", "true");
|
|
65
|
+
layer.contentEditable = "false";
|
|
66
|
+
layer.style.position = "absolute";
|
|
67
|
+
layer.style.inset = "0";
|
|
68
|
+
layer.style.pointerEvents = "none";
|
|
69
|
+
layer.style.zIndex = "-1";
|
|
70
|
+
line.append(layer);
|
|
71
|
+
if (pendingFills.length === 0) queueMicrotask(paintPendingFills);
|
|
72
|
+
pendingFills.push({
|
|
73
|
+
line,
|
|
74
|
+
band,
|
|
75
|
+
layer,
|
|
76
|
+
runs
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export { CHARACTER_FILL_BACKINGS_ATTRIBUTE, CHARACTER_FILL_BAND_ATTRIBUTE, scheduleCharacterFillBand };
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Image layout helpers shared between framework adapters (React, Vue, ...).
|
|
3
|
+
*
|
|
4
|
+
* Everything here is framework-agnostic: pure DOM math + pure functions over
|
|
5
|
+
* OOXML wrap-type vocabulary. The corresponding UI bindings (right-click menu,
|
|
6
|
+
* toolbar dropdown) live in each framework adapter and call into these.
|
|
7
|
+
*
|
|
8
|
+
* Ported from eigenpal/docx-editor `layout-painter/imageLayout.ts`.
|
|
9
|
+
*/
|
|
2
10
|
import { FlowBlock, Measure } from "../layout-engine/types.js";
|
|
3
|
-
import {
|
|
11
|
+
import { ImageAttrs } from "../prosemirror/schema/nodes.js";
|
|
4
12
|
import { WrapType } from "../types/wrap.js";
|
|
13
|
+
import { BlockLookup } from "./index.js";
|
|
5
14
|
/**
|
|
6
15
|
* Anchored wrap-type targets — the OOXML wrap types except `inline`.
|
|
7
16
|
* Defined locally because the fork's `ImageExtension` does not export the
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasPaintedStart } from "../utils/paintedPositions.js";
|
|
1
2
|
import { pixelsToEmu } from "../utils/units.js";
|
|
2
3
|
// src/layout-painter/imageLayout.ts
|
|
3
4
|
const LAYOUT_IMAGE_CLASSES = {
|
|
@@ -30,7 +31,7 @@ function findImageElement(target) {
|
|
|
30
31
|
if (!(target instanceof HTMLElement)) return null;
|
|
31
32
|
if (target.tagName === "IMG" && target.classList.contains(LAYOUT_IMAGE_CLASSES.runImage)) return target;
|
|
32
33
|
const container = target.closest(IMAGE_HIT_SELECTOR);
|
|
33
|
-
if (container && container
|
|
34
|
+
if (container && hasPaintedStart(container)) return container;
|
|
34
35
|
return null;
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Layout Painter
|
|
3
|
+
*
|
|
4
|
+
* Main entry point for rendering Layout data to DOM.
|
|
5
|
+
* Provides reconciliation for efficient incremental updates.
|
|
6
|
+
*/
|
|
7
|
+
import { releaseDisplayPageResources } from "../display-list/pageResourceOwnership.js";
|
|
2
8
|
import { FlowBlock, Layout, Measure } from "../layout-engine/types.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
9
|
+
import { NoteStoryKey } from "../types/editor-story.js";
|
|
10
|
+
import { createDefaultRegistry } from "./registry/modules.js";
|
|
5
11
|
import { FeatureRegistry, createFeatureRegistry } from "./registry/registry.js";
|
|
12
|
+
import { BlockFor, FeatureDispatchInput, FeatureFallback, FeatureModule, FeatureRenderInput, FragmentFor, MeasureFor } from "./registry/types.js";
|
|
6
13
|
import { FRAGMENT_CLASS_NAMES, renderFragment } from "./renderFragment.js";
|
|
7
14
|
import { IMAGE_CLASS_NAMES, renderImageFragment } from "./renderImage.js";
|
|
15
|
+
import { renderPage, renderPages } from "./renderPage.js";
|
|
8
16
|
import { renderLine, renderParagraphFragment, sliceRunsForLine } from "./renderParagraph.js";
|
|
9
17
|
import { TABLE_CLASS_NAMES, renderTableFragment } from "./renderTable.js";
|
|
10
18
|
import { TEXTBOX_CLASS_NAMES, renderTextBoxFragment } from "./renderTextBox.js";
|
|
11
|
-
import {
|
|
12
|
-
import { createDefaultRegistry } from "./registry/modules.js";
|
|
13
|
-
import { renderPage, renderPages } from "./renderPage.js";
|
|
19
|
+
import { RenderContext } from "./renderUtils.js";
|
|
14
20
|
/**
|
|
15
21
|
* Block lookup entry for painter
|
|
16
22
|
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The inline styles of a painted page's shell.
|
|
3
|
+
*
|
|
4
|
+
* Every layout pass applies them to every page shell. The page's text
|
|
5
|
+
* inherits colour and font from the shell, so a property written to another
|
|
6
|
+
* value and back within a pass restyles every line painted on the page, on
|
|
7
|
+
* every keystroke. Each property therefore appears once, with its final
|
|
8
|
+
* value: writing a value the shell already holds changes nothing.
|
|
9
|
+
*/
|
|
10
|
+
import { resolveFontFamily } from "../utils/fontResolver.js";
|
|
11
|
+
type PageShellStyleProperty = "position" | "width" | "height" | "backgroundColor" | "color" | "overflow" | "border" | "boxShadow" | "outline" | "fontFamily" | "fontSize";
|
|
12
|
+
export type PageShellStyleOptions = NonNullable<Parameters<typeof resolveFontFamily>[1]> & {
|
|
13
|
+
backgroundColor?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** The shell's styles for a `width` x `height` page, one value per property. */
|
|
16
|
+
export declare const pageShellStyles: (width: number, height: number, options: PageShellStyleOptions) => Readonly<Record<PageShellStyleProperty, string>>;
|
|
17
|
+
/** Give `element` the shell styles, each property written once. */
|
|
18
|
+
export declare const applyPageShellStyles: (element: HTMLElement, width: number, height: number, options: PageShellStyleOptions) => void;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DEFAULT_FONT_FAMILY } from "../layout-engine/measure/measureHelpers.js";
|
|
2
|
+
import { resolveFontFamily } from "../utils/fontResolver.js";
|
|
3
|
+
// src/layout-painter/pageShellStyles.ts
|
|
4
|
+
/**
|
|
5
|
+
* The inline styles of a painted page's shell.
|
|
6
|
+
*
|
|
7
|
+
* Every layout pass applies them to every page shell. The page's text
|
|
8
|
+
* inherits colour and font from the shell, so a property written to another
|
|
9
|
+
* value and back within a pass restyles every line painted on the page, on
|
|
10
|
+
* every keystroke. Each property therefore appears once, with its final
|
|
11
|
+
* value: writing a value the shell already holds changes nothing.
|
|
12
|
+
*/
|
|
13
|
+
/** The shell's styles for a `width` x `height` page, one value per property. */
|
|
14
|
+
const pageShellStyles = (width, height, options) => ({
|
|
15
|
+
position: "relative",
|
|
16
|
+
width: `${width}px`,
|
|
17
|
+
height: `${height}px`,
|
|
18
|
+
backgroundColor: options.backgroundColor ?? "var(--doc-canvas, #ffffff)",
|
|
19
|
+
color: "var(--doc-canvas-text, #000)",
|
|
20
|
+
overflow: "hidden",
|
|
21
|
+
border: "none",
|
|
22
|
+
boxShadow: "none",
|
|
23
|
+
outline: "none",
|
|
24
|
+
fontFamily: resolveFontFamily(DEFAULT_FONT_FAMILY, options).cssFallback,
|
|
25
|
+
fontSize: `${1056 / 72}px`
|
|
26
|
+
});
|
|
27
|
+
/** Give `element` the shell styles, each property written once. */
|
|
28
|
+
const applyPageShellStyles = (element, width, height, options) => {
|
|
29
|
+
const styles = pageShellStyles(width, height, options);
|
|
30
|
+
for (const property of Object.keys(styles)) element.style[property] = styles[property];
|
|
31
|
+
};
|
|
32
|
+
export { applyPageShellStyles, pageShellStyles };
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the DOM painter shows for a drawing with no image data.
|
|
3
|
+
*
|
|
4
|
+
* Its marks come from the display list's own `paintPreview`, so the two painters
|
|
5
|
+
* cannot draw a preview differently. An SVG in an `<img>` runs no script and
|
|
6
|
+
* fetches nothing, and every value written here is a number.
|
|
7
|
+
*/
|
|
1
8
|
import { document_d_exports } from "../types/document.js";
|
|
2
9
|
/** `preview` as an `<img>` source that fills whatever box the image has. */
|
|
3
10
|
export declare const previewToSvgDataUrl: (preview: document_d_exports.PreviewDescriptor) => string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bring a painted page's content up to a fresh rendering of it while keeping
|
|
3
|
+
* the painted nodes that did not change. Replacing the whole content area for
|
|
4
|
+
* one edited paragraph makes the browser restyle, lay out, paint and raster
|
|
5
|
+
* every line on the page; keeping the unchanged nodes limits that to the
|
|
6
|
+
* paragraphs the edit touched.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Make `painted` equal to `fresh` (as `isEqualNode` compares them), keeping
|
|
10
|
+
* every node of `painted` that shows what its counterpart in `fresh` shows and
|
|
11
|
+
* moving in from `fresh` only the smallest subtrees that differ: an edit in
|
|
12
|
+
* one table cell replaces that cell's changed line, not the table. Returns
|
|
13
|
+
* false, changing nothing, when the two differ in their own attributes or in
|
|
14
|
+
* their number of children: the caller then replaces `painted` whole.
|
|
15
|
+
*
|
|
16
|
+
* The fresh nodes it moves leave `fresh`; what remains there is the caller's
|
|
17
|
+
* to release.
|
|
18
|
+
*/
|
|
19
|
+
export declare const reconcileRenderedContent: (painted: Element, fresh: Element) => boolean;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { releaseDisplayPageResources } from "../display-list/pageResourceOwnership.js";
|
|
2
|
+
import { PAINTED_POSITION_ATTRIBUTES } from "../utils/paintedPositions.js";
|
|
3
|
+
import "./characterFillBand.js";
|
|
4
|
+
// src/layout-painter/reconcileRenderedContent.ts
|
|
5
|
+
/**
|
|
6
|
+
* Bring a painted page's content up to a fresh rendering of it while keeping
|
|
7
|
+
* the painted nodes that did not change. Replacing the whole content area for
|
|
8
|
+
* one edited paragraph makes the browser restyle, lay out, paint and raster
|
|
9
|
+
* every line on the page; keeping the unchanged nodes limits that to the
|
|
10
|
+
* paragraphs the edit touched.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The attributes that say where a painted node stands in the editor document.
|
|
14
|
+
* An edit before a paragraph shifts them without changing what it shows, so a
|
|
15
|
+
* node that differs from its fresh rendering only in these is kept and takes
|
|
16
|
+
* the fresh values.
|
|
17
|
+
*/
|
|
18
|
+
const POSITION_ATTRIBUTES = PAINTED_POSITION_ATTRIBUTES;
|
|
19
|
+
const sameAttributes = (painted, fresh, ignoring) => {
|
|
20
|
+
if (painted.attributes.length !== fresh.attributes.length) return false;
|
|
21
|
+
for (const attribute of Array.from(fresh.attributes)) {
|
|
22
|
+
if (ignoring.has(attribute.name)) {
|
|
23
|
+
if (!painted.hasAttribute(attribute.name)) return false;
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
if (painted.getAttribute(attribute.name) !== attribute.value) return false;
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
};
|
|
30
|
+
const NO_ATTRIBUTES = /* @__PURE__ */ new Set();
|
|
31
|
+
/** Whether `painted` shows what `fresh` shows, positions aside. */
|
|
32
|
+
const showsTheSame = (painted, fresh) => {
|
|
33
|
+
if (painted.nodeType !== fresh.nodeType) return false;
|
|
34
|
+
if (painted.nodeType !== painted.ELEMENT_NODE) return painted.isEqualNode(fresh);
|
|
35
|
+
const paintedElement = painted;
|
|
36
|
+
const freshElement = fresh;
|
|
37
|
+
if (paintedElement.namespaceURI !== freshElement.namespaceURI || paintedElement.localName !== freshElement.localName || !sameAttributes(paintedElement, freshElement, POSITION_ATTRIBUTES)) return false;
|
|
38
|
+
if (freshElement.hasAttribute("data-character-fill-backings")) return true;
|
|
39
|
+
const paintedChildren = painted.childNodes;
|
|
40
|
+
const freshChildren = fresh.childNodes;
|
|
41
|
+
if (paintedChildren.length !== freshChildren.length) return false;
|
|
42
|
+
for (let index = 0; index < freshChildren.length; index += 1) {
|
|
43
|
+
const paintedChild = paintedChildren[index];
|
|
44
|
+
const freshChild = freshChildren[index];
|
|
45
|
+
if (!paintedChild || !freshChild || !showsTheSame(paintedChild, freshChild)) return false;
|
|
46
|
+
}
|
|
47
|
+
return true;
|
|
48
|
+
};
|
|
49
|
+
/** Give `painted` its own position attributes from `fresh`. */
|
|
50
|
+
const takeOwnPositions = (painted, fresh) => {
|
|
51
|
+
for (const name of POSITION_ATTRIBUTES) {
|
|
52
|
+
const value = fresh.getAttribute(name);
|
|
53
|
+
if (value !== null && painted.getAttribute(name) !== value) painted.setAttribute(name, value);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
/** Give `painted` the position attributes of `fresh`, which shows the same. */
|
|
57
|
+
const takePositions = (painted, fresh) => {
|
|
58
|
+
if (painted.nodeType !== painted.ELEMENT_NODE) return;
|
|
59
|
+
takeOwnPositions(painted, fresh);
|
|
60
|
+
const paintedChildren = painted.childNodes;
|
|
61
|
+
const freshChildren = fresh.childNodes;
|
|
62
|
+
for (let index = 0; index < freshChildren.length; index += 1) {
|
|
63
|
+
const paintedChild = paintedChildren[index];
|
|
64
|
+
const freshChild = freshChildren[index];
|
|
65
|
+
if (paintedChild && freshChild) takePositions(paintedChild, freshChild);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Whether `painted` can stay with `fresh`'s position attributes while its
|
|
70
|
+
* children are brought up to `fresh`'s one by one.
|
|
71
|
+
*/
|
|
72
|
+
const sameShell = (painted, fresh) => {
|
|
73
|
+
if (painted.nodeType !== painted.ELEMENT_NODE || fresh.nodeType !== fresh.ELEMENT_NODE) return false;
|
|
74
|
+
const paintedElement = painted;
|
|
75
|
+
const freshElement = fresh;
|
|
76
|
+
return !freshElement.hasAttribute("data-character-fill-band") && paintedElement.namespaceURI === freshElement.namespaceURI && paintedElement.localName === freshElement.localName && painted.childNodes.length === fresh.childNodes.length && sameAttributes(paintedElement, freshElement, POSITION_ATTRIBUTES);
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Bring each child of `painted` up to its counterpart in `fresh`: keep it when
|
|
80
|
+
* it shows the same, descend into it when only some of its children differ,
|
|
81
|
+
* and move the fresh one in otherwise. The two have as many children.
|
|
82
|
+
*/
|
|
83
|
+
const reconcileChildren = (painted, fresh) => {
|
|
84
|
+
const paintedChildren = Array.from(painted.childNodes);
|
|
85
|
+
const freshChildren = Array.from(fresh.childNodes);
|
|
86
|
+
for (const [index, freshChild] of freshChildren.entries()) {
|
|
87
|
+
const paintedChild = paintedChildren[index];
|
|
88
|
+
if (!paintedChild) continue;
|
|
89
|
+
if (paintedChild.isEqualNode(freshChild)) continue;
|
|
90
|
+
if (showsTheSame(paintedChild, freshChild)) {
|
|
91
|
+
takePositions(paintedChild, freshChild);
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if (sameShell(paintedChild, freshChild)) {
|
|
95
|
+
takeOwnPositions(paintedChild, freshChild);
|
|
96
|
+
reconcileChildren(paintedChild, freshChild);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
if (paintedChild.nodeType === paintedChild.ELEMENT_NODE) releaseDisplayPageResources(paintedChild);
|
|
100
|
+
paintedChild.replaceWith(freshChild);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Make `painted` equal to `fresh` (as `isEqualNode` compares them), keeping
|
|
105
|
+
* every node of `painted` that shows what its counterpart in `fresh` shows and
|
|
106
|
+
* moving in from `fresh` only the smallest subtrees that differ: an edit in
|
|
107
|
+
* one table cell replaces that cell's changed line, not the table. Returns
|
|
108
|
+
* false, changing nothing, when the two differ in their own attributes or in
|
|
109
|
+
* their number of children: the caller then replaces `painted` whole.
|
|
110
|
+
*
|
|
111
|
+
* The fresh nodes it moves leave `fresh`; what remains there is the caller's
|
|
112
|
+
* to release.
|
|
113
|
+
*/
|
|
114
|
+
const reconcileRenderedContent = (painted, fresh) => {
|
|
115
|
+
if (painted.localName !== fresh.localName || !sameAttributes(painted, fresh, NO_ATTRIBUTES) || painted.childNodes.length !== fresh.childNodes.length) return false;
|
|
116
|
+
reconcileChildren(painted, fresh);
|
|
117
|
+
return true;
|
|
118
|
+
};
|
|
119
|
+
export { reconcileRenderedContent };
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Image feature module — renders `ImageFragment`.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper over `renderImageFragment`. Kept as a module so the
|
|
5
|
+
* registry can dispatch image fragments uniformly and so future
|
|
6
|
+
* variants (e.g. SVG, EMF preview) can plug in alongside.
|
|
7
|
+
*/
|
|
1
8
|
import { FeatureModule } from "../types.js";
|
|
2
9
|
export declare const imageModule: FeatureModule<"image">;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paragraph feature module — wraps `renderParagraphFragment`.
|
|
3
|
+
*
|
|
4
|
+
* The paragraph orchestrator is intentionally still monolithic: it dispatches
|
|
5
|
+
* paragraph-internal kinds (runs, fields, inline images, hyperlinks). Future
|
|
6
|
+
* work can split that into a sub-registry without changing this module's
|
|
7
|
+
* external contract.
|
|
8
|
+
*/
|
|
1
9
|
import { FeatureModule } from "../types.js";
|
|
2
10
|
export declare const paragraphModule: FeatureModule<"paragraph">;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table feature module — wraps `renderTableFragment`.
|
|
3
|
+
*
|
|
4
|
+
* Like paragraph, the table orchestrator still owns row/cell rendering.
|
|
5
|
+
* Splitting cell-level renderers into a sub-registry is future work.
|
|
6
|
+
*/
|
|
1
7
|
import { FeatureModule } from "../types.js";
|
|
2
8
|
export declare const tableModule: FeatureModule<"table">;
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default feature-module registry.
|
|
3
|
+
*
|
|
4
|
+
* To add a new OOXML renderer:
|
|
5
|
+
* 1. Create `modules/<kind>.ts` exporting a `FeatureModule<"...">`.
|
|
6
|
+
* 2. Add one import + `register(...)` line below.
|
|
7
|
+
*
|
|
8
|
+
* Discovery is explicit (not glob-based) so register lines are greppable
|
|
9
|
+
* and tree-shaking stays deterministic.
|
|
10
|
+
*/
|
|
1
11
|
import { FeatureRegistry } from "./registry.js";
|
|
2
12
|
export declare function createDefaultRegistry(): FeatureRegistry;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feature-module registry for the layout painter.
|
|
3
|
+
*
|
|
4
|
+
* O(1) dispatch keyed on `Fragment["kind"]`. Modules self-describe their
|
|
5
|
+
* kind; the registry routes each fragment to its module's `render()`. A
|
|
6
|
+
* fallback closes the loop for unknown kinds and for fragments arriving
|
|
7
|
+
* without a resolved block/measure.
|
|
8
|
+
*/
|
|
1
9
|
import { Fragment } from "../../layout-engine/types.js";
|
|
2
10
|
import { FeatureDispatchInput, FeatureFallback, FeatureModule } from "./types.js";
|
|
3
11
|
export type FeatureRegistry = {
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feature-module registry types for the layout painter.
|
|
3
|
+
*
|
|
4
|
+
* A feature module describes how to render one OOXML fragment kind. The
|
|
5
|
+
* registry dispatches a Fragment to the module registered for its `kind`.
|
|
6
|
+
* Each module exports a pure renderer; modules never import the registry.
|
|
7
|
+
*
|
|
8
|
+
* Mirrors folio's existing ProseMirror extension idiom
|
|
9
|
+
* (`createNodeExtension({ name, nodeSpec, ... })`) so contributors find the
|
|
10
|
+
* pattern familiar.
|
|
11
|
+
*/
|
|
1
12
|
import { FlowBlock, Fragment, ImageBlock, ImageMeasure, Measure, ParagraphBlock, ParagraphMeasure, TableBlock, TableMeasure, TextBoxBlock, TextBoxMeasure } from "../../layout-engine/types.js";
|
|
2
13
|
import { RenderContext } from "../renderUtils.js";
|
|
3
14
|
/**
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fragment Renderer
|
|
3
|
+
*
|
|
4
|
+
* Renders individual fragments (paragraphs, tables, images) to DOM.
|
|
5
|
+
* Each fragment is positioned within a page's content area.
|
|
6
|
+
*/
|
|
1
7
|
import { Fragment } from "../layout-engine/types.js";
|
|
2
8
|
import { RenderContext } from "./renderUtils.js";
|
|
3
9
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { writePaintedRange } from "../utils/paintedPositions.js";
|
|
1
2
|
import { applySdtDataAttrs } from "./sdtBoundary.js";
|
|
2
3
|
// src/layout-painter/renderFragment.ts
|
|
3
4
|
/**
|
|
@@ -50,8 +51,7 @@ function renderParagraphFragmentPlaceholder(fragment, _context, doc) {
|
|
|
50
51
|
el.dataset["blockId"] = String(fragment.blockId);
|
|
51
52
|
el.dataset["fromLine"] = String(fragment.fromLine);
|
|
52
53
|
el.dataset["toLine"] = String(fragment.toLine);
|
|
53
|
-
|
|
54
|
-
if (fragment.pmEnd !== void 0) el.dataset["pmEnd"] = String(fragment.pmEnd);
|
|
54
|
+
writePaintedRange(el, fragment.pmStart, fragment.pmEnd);
|
|
55
55
|
if (fragment.continuesFromPrev) el.dataset["continuesFromPrev"] = "true";
|
|
56
56
|
if (fragment.continuesOnNext) el.dataset["continuesOnNext"] = "true";
|
|
57
57
|
applySdtDataAttrs(el, fragment.sdtGroups);
|
|
@@ -70,8 +70,7 @@ function renderTableFragmentPlaceholder(fragment, _context, doc) {
|
|
|
70
70
|
el.dataset["blockId"] = String(fragment.blockId);
|
|
71
71
|
el.dataset["fromRow"] = String(fragment.fromRow);
|
|
72
72
|
el.dataset["toRow"] = String(fragment.toRow);
|
|
73
|
-
|
|
74
|
-
if (fragment.pmEnd !== void 0) el.dataset["pmEnd"] = String(fragment.pmEnd);
|
|
73
|
+
writePaintedRange(el, fragment.pmStart, fragment.pmEnd);
|
|
75
74
|
applySdtDataAttrs(el, fragment.sdtGroups);
|
|
76
75
|
return el;
|
|
77
76
|
}
|
|
@@ -83,8 +82,7 @@ function renderImageFragmentPlaceholder(fragment, _context, doc) {
|
|
|
83
82
|
el.className = `${FRAGMENT_CLASS_NAMES.fragment} ${FRAGMENT_CLASS_NAMES.image}`;
|
|
84
83
|
applyBaseFragmentStyles(el);
|
|
85
84
|
el.dataset["blockId"] = String(fragment.blockId);
|
|
86
|
-
|
|
87
|
-
if (fragment.pmEnd !== void 0) el.dataset["pmEnd"] = String(fragment.pmEnd);
|
|
85
|
+
writePaintedRange(el, fragment.pmStart, fragment.pmEnd);
|
|
88
86
|
if (fragment.isAnchored) el.dataset["anchored"] = "true";
|
|
89
87
|
if (fragment.zIndex !== void 0) el.style.zIndex = String(fragment.zIndex);
|
|
90
88
|
return el;
|