@stll/folio-core 0.14.1 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-edits/apply.d.ts +2 -2
- package/dist/ai-edits/blockRange.d.ts +3 -17
- package/dist/ai-edits/clean-text.d.ts +0 -1
- package/dist/ai-edits/headless.d.ts +23 -19
- package/dist/ai-edits/read.d.ts +8 -5
- package/dist/ai-edits/scoped-reading.d.ts +0 -1
- package/dist/ai-edits/snapshot.d.ts +1 -7
- package/dist/ai-edits/table-cell-mutations.d.ts +4 -31
- package/dist/ai-edits/table-row-column-mutations.d.ts +9 -39
- package/dist/ai-edits/table-targets.d.ts +0 -1
- package/dist/ai-edits/types.d.ts +32 -17
- package/dist/ai-suggestions/apply.d.ts +0 -1
- package/dist/ai-suggestions/conflict.d.ts +0 -1
- package/dist/ai-suggestions/text-positions.d.ts +2 -2
- package/dist/ai-suggestions/types.d.ts +27 -13
- package/dist/compat/eigenpal.d.ts +2 -1
- package/dist/compat/eigenpal.js +2 -1
- package/dist/content-controls/errors.d.ts +0 -1
- package/dist/content-controls/findContentControls.d.ts +6 -4
- package/dist/content-controls/mutateContentControls.d.ts +0 -1
- package/dist/controller/activeEditorStory.d.ts +1 -6
- package/dist/controller/collaborationModules.d.ts +0 -1
- package/dist/controller/contentControlWidgetController.d.ts +0 -1
- package/dist/controller/folioEditor.d.ts +2 -2
- package/dist/controller/folioEditorEvents.d.ts +5 -3
- package/dist/controller/fontReadiness.d.ts +0 -1
- package/dist/controller/headerFooterEditorManager.d.ts +1 -5
- package/dist/controller/hiddenEditorApi.d.ts +35 -18
- package/dist/controller/hiddenEditorManager.d.ts +5 -3
- package/dist/controller/latestRequestGate.d.ts +3 -1
- package/dist/controller/layoutPipeline.d.ts +1 -1
- package/dist/controller/layoutScheduler.d.ts +8 -5
- package/dist/controller/layoutSession.d.ts +0 -1
- package/dist/controller/noteEditorManager.d.ts +0 -1
- package/dist/document-operations.d.ts +5 -12
- package/dist/document-stories.d.ts +0 -1
- package/dist/docx/blockContentParser.d.ts +0 -1
- package/dist/docx/blockContentParser.js +1 -0
- package/dist/docx/bookmarkParser.d.ts +5 -3
- package/dist/docx/bookmarkPlacement.d.ts +0 -1
- package/dist/docx/commentParser.d.ts +0 -1
- package/dist/docx/commentRangeIntegrity.d.ts +0 -1
- package/dist/docx/commentReferenceNormalization.d.ts +1 -9
- package/dist/docx/commentReplyMarkers.d.ts +0 -1
- package/dist/docx/compatibility.d.ts +0 -1
- package/dist/docx/conformance.d.ts +0 -1
- package/dist/docx/corePropertiesParser.d.ts +0 -1
- package/dist/docx/documentParser.d.ts +0 -1
- package/dist/docx/documentParser.js +3 -1
- package/dist/docx/drawingUtils.d.ts +23 -2
- package/dist/docx/drawingUtils.js +23 -1
- package/dist/docx/encryption/agileDecryption.d.ts +0 -1
- package/dist/docx/encryption/cryptoBytes.js +4 -1
- package/dist/docx/encryption/openEncryptedDocx.d.ts +5 -2
- package/dist/docx/ensureParaIds.d.ts +7 -3
- package/dist/docx/fieldParser.d.ts +23 -11
- package/dist/docx/fontTableParser.d.ts +0 -1
- package/dist/docx/footnoteParser.d.ts +26 -13
- package/dist/docx/footnoteParser.js +4 -2
- package/dist/docx/groupDrawingParser.d.ts +0 -1
- package/dist/docx/headerFooterParser.d.ts +9 -5
- package/dist/docx/headerFooterRefParser.d.ts +0 -1
- package/dist/docx/headerFooterReferenceNormalization.d.ts +1 -6
- package/dist/docx/headerFooterVerbatim.d.ts +2 -2
- package/dist/docx/hyperlinkParser.d.ts +0 -1
- package/dist/docx/hyperlinkParser.js +1 -9
- package/dist/docx/imageParser.d.ts +0 -1
- package/dist/docx/imageParser.js +15 -7
- package/dist/docx/mathToMathml.d.ts +0 -1
- package/dist/docx/metadataPrivacy.d.ts +1 -3
- package/dist/docx/modelValidation.d.ts +0 -1
- package/dist/docx/newImage.d.ts +11 -0
- package/dist/docx/newImage.js +11 -0
- package/dist/docx/normalizeBaseDirection.d.ts +0 -1
- package/dist/docx/notePropertiesParser.d.ts +0 -1
- package/dist/docx/numberingParser.d.ts +10 -6
- package/dist/docx/numberingParser.js +4 -2
- package/dist/docx/numberingReferenceNormalization.d.ts +1 -9
- package/dist/docx/paragraphParser.d.ts +0 -1
- package/dist/docx/paragraphParser.js +27 -14
- package/dist/docx/paragraphTextBoxEnrichment.d.ts +0 -1
- package/dist/docx/paragraphTextBoxEnrichment.js +2 -1
- package/dist/docx/paragraphTraversal.d.ts +1 -8
- package/dist/docx/parser.d.ts +15 -8
- package/dist/docx/parser.js +12 -1
- package/dist/docx/parserEnums.d.ts +2 -2
- package/dist/docx/parserEnums.js +3 -2
- package/dist/docx/relsParser.d.ts +1 -0
- package/dist/docx/renderedPageBreakNormalization.d.ts +12 -0
- package/dist/docx/renderedPageBreakNormalization.js +59 -0
- package/dist/docx/replyToComment.d.ts +2 -2
- package/dist/docx/rezip.d.ts +6 -7
- package/dist/docx/rezip.js +136 -102
- package/dist/docx/runConsolidator.d.ts +0 -1
- package/dist/docx/runParser.d.ts +0 -1
- package/dist/docx/runParser.js +9 -12
- package/dist/docx/sdtProperties.d.ts +0 -1
- package/dist/docx/sdtPropertiesPatch.d.ts +0 -1
- package/dist/docx/sectionParser.d.ts +0 -1
- package/dist/docx/selectiveSave.d.ts +5 -3
- package/dist/docx/selectiveSave.js +2 -2
- package/dist/docx/selectiveSaveFlags.d.ts +4 -2
- package/dist/docx/selectiveXmlPatch.js +20 -8
- package/dist/docx/serializer/blockSdtSerializer.d.ts +0 -1
- package/dist/docx/serializer/blockSdtSerializer.js +2 -1
- package/dist/docx/serializer/borderSerializer.d.ts +0 -1
- package/dist/docx/serializer/commentSerializer.d.ts +0 -1
- package/dist/docx/serializer/commentSerializer.js +11 -37
- package/dist/docx/serializer/documentSerializer.d.ts +0 -1
- package/dist/docx/serializer/documentSerializer.js +1 -1
- package/dist/docx/serializer/fontTableSerializer.d.ts +0 -1
- package/dist/docx/serializer/headerFooterSerializer.d.ts +0 -1
- package/dist/docx/serializer/headerFooterSerializer.js +1 -1
- package/dist/docx/serializer/noteSerializer.d.ts +0 -1
- package/dist/docx/serializer/noteSerializer.js +1 -1
- package/dist/docx/serializer/numberingSerializer.d.ts +0 -1
- package/dist/docx/serializer/paragraphSerializer.d.ts +0 -1
- package/dist/docx/serializer/paragraphSerializer.js +10 -23
- package/dist/docx/serializer/runSerializer.d.ts +0 -1
- package/dist/docx/serializer/runSerializer.js +37 -22
- package/dist/docx/serializer/sectionPropertiesSerializer.d.ts +0 -1
- package/dist/docx/serializer/sectionPropertiesSerializer.js +5 -4
- package/dist/docx/serializer/settingsSerializer.d.ts +0 -1
- package/dist/docx/serializer/stylesSerializer.d.ts +0 -1
- package/dist/docx/serializer/tableSerializer.d.ts +0 -1
- package/dist/docx/serializer/tableSerializer.js +2 -0
- package/dist/docx/serializer/themeSerializer.d.ts +0 -1
- package/dist/docx/serializer/xmlUtils.js +10 -1
- package/dist/docx/server/applyDocxXmlPatchProposal.d.ts +3 -10
- package/dist/docx/server/docxToMarkdown.d.ts +0 -1
- package/dist/docx/server/evaluateDocxXmlPatchProposal.d.ts +3 -9
- package/dist/docx/server/inspectDocxPackage.d.ts +3 -8
- package/dist/docx/server/validateDocxConformance.d.ts +0 -1
- package/dist/docx/settingsParser.d.ts +2 -2
- package/dist/docx/shapeParser.d.ts +0 -1
- package/dist/docx/shapeParser.js +11 -10
- package/dist/docx/streamingXmlParser.d.ts +16 -0
- package/dist/docx/streamingXmlParser.js +248 -0
- package/dist/docx/styleParser.d.ts +0 -1
- package/dist/docx/styleParser.js +6 -4
- package/dist/docx/tableParser.d.ts +1 -2
- package/dist/docx/tableParser.js +3 -6
- package/dist/docx/textBoxParser.d.ts +1 -2
- package/dist/docx/textBoxParser.js +4 -1
- package/dist/docx/textWhitespace.d.ts +4 -0
- package/dist/docx/textWhitespace.js +4 -0
- package/dist/docx/themeParser.d.ts +0 -1
- package/dist/docx/trackedMoveRangeNormalization.d.ts +1 -8
- package/dist/docx/unzip.d.ts +6 -3
- package/dist/docx/unzip.js +96 -40
- package/dist/docx/vmlImageParser.d.ts +0 -1
- package/dist/docx/vmlImageParser.js +3 -1
- package/dist/docx/watermarkParser.d.ts +0 -1
- package/dist/docx/xmlParser.d.ts +21 -8
- package/dist/docx/xmlParser.js +126 -43
- package/dist/fields/bookmarkPages.d.ts +0 -1
- package/dist/fields/bookmarkText.d.ts +0 -1
- package/dist/fields/evaluateField.d.ts +5 -3
- package/dist/fields/fieldContext.d.ts +11 -5
- package/dist/fields/resolveFieldValues.d.ts +4 -3
- package/dist/fields/sectionPageCounts.d.ts +0 -1
- package/dist/fields/seqValues.d.ts +0 -1
- package/dist/fonts/embeddedFontTable.d.ts +5 -2
- package/dist/fonts/embeddedFonts.d.ts +15 -7
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/layout-bridge/cellSelectionHighlight.d.ts +0 -1
- package/dist/layout-bridge/convert/footnoteLayout.d.ts +5 -3
- package/dist/layout-bridge/convert/headerFooterLayout.d.ts +2 -2
- package/dist/layout-bridge/convert/paragraphFrames.d.ts +0 -1
- package/dist/layout-bridge/convert/templatePreviewFlow.d.ts +8 -8
- package/dist/layout-bridge/convert/toFlowBlocks.d.ts +25 -13
- package/dist/layout-bridge/convert/wrapEditorViewAsSurface.d.ts +3 -2
- package/dist/layout-bridge/dom/findHfPmSpans.d.ts +2 -1
- package/dist/layout-bridge/dom/noteStoryDom.d.ts +0 -1
- package/dist/layout-bridge/engine/clickToPosition.d.ts +5 -3
- package/dist/layout-bridge/engine/hitTest.d.ts +40 -19
- package/dist/layout-bridge/engine/selectionRects.d.ts +16 -8
- package/dist/layout-bridge/engine/tableWidthUtils.d.ts +0 -1
- package/dist/layout-bridge/headerFooterLayout.d.ts +0 -1
- package/dist/layout-bridge/sectionColumns.d.ts +0 -1
- package/dist/layout-bridge/tableInsertHover.d.ts +8 -4
- package/dist/layout-engine/headerFooterRefs.d.ts +0 -1
- package/dist/layout-engine/index.d.ts +0 -1
- package/dist/layout-engine/justificationCompatibility.d.ts +0 -1
- package/dist/layout-engine/keep-together.d.ts +7 -4
- package/dist/layout-engine/layoutInstrumentation.d.ts +0 -1
- package/dist/layout-engine/lineFlow.d.ts +0 -1
- package/dist/layout-engine/measure/cache.d.ts +0 -1
- package/dist/layout-engine/measure/effectiveLineBreakPolicy.d.ts +6 -7
- package/dist/layout-engine/measure/floatingTablePosition.d.ts +0 -1
- package/dist/layout-engine/measure/floatingZones.d.ts +14 -6
- package/dist/layout-engine/measure/font-metrics.worker.d.ts +0 -1
- package/dist/layout-engine/measure/lineBreakProvider.d.ts +20 -9
- package/dist/layout-engine/measure/lineBreaks.d.ts +0 -1
- package/dist/layout-engine/measure/listMarkerWidth.d.ts +0 -1
- package/dist/layout-engine/measure/measureBlocks.d.ts +1 -0
- package/dist/layout-engine/measure/measureContainer.d.ts +0 -1
- package/dist/layout-engine/measure/measureHelpers.d.ts +0 -1
- package/dist/layout-engine/measure/measureParagraph.d.ts +3 -2
- package/dist/layout-engine/measure/measureParagraph.js +23 -3
- package/dist/layout-engine/measure/measureProvider.d.ts +0 -1
- package/dist/layout-engine/measure/measureTypes.d.ts +4 -2
- package/dist/layout-engine/measure/measureWorker.d.ts +0 -1
- package/dist/layout-engine/measure/measureWorkerProtocol.d.ts +0 -1
- package/dist/layout-engine/measure/tableCellFloating.d.ts +0 -1
- package/dist/layout-engine/measure/tableCellFlow.d.ts +0 -1
- package/dist/layout-engine/measure/tableCellGrid.d.ts +0 -1
- package/dist/layout-engine/measure/textBoxParagraphLayout.d.ts +0 -1
- package/dist/layout-engine/measure/textMeasurementPolicy.d.ts +0 -1
- package/dist/layout-engine/paginator.d.ts +66 -33
- package/dist/layout-engine/paragraphFragmentRange.d.ts +0 -1
- package/dist/layout-engine/paragraphFrame.d.ts +0 -1
- package/dist/layout-engine/paragraphSequence.d.ts +0 -1
- package/dist/layout-engine/paragraphSpacing.d.ts +1 -5
- package/dist/layout-engine/pmPageIndex.d.ts +0 -1
- package/dist/layout-engine/renderedBreakReconciliation.d.ts +2 -17
- package/dist/layout-engine/section-breaks.d.ts +34 -17
- package/dist/layout-engine/tableRowBreak.d.ts +4 -3
- package/dist/layout-engine/textBoxFlow.d.ts +0 -1
- package/dist/layout-engine/textBoxGroup.d.ts +0 -1
- package/dist/layout-engine/types.d.ts +382 -189
- package/dist/layout-painter/anchoredImagePosition.d.ts +0 -1
- package/dist/layout-painter/borderStroke.d.ts +0 -1
- package/dist/layout-painter/imageLayout.d.ts +14 -7
- package/dist/layout-painter/index.d.ts +9 -5
- package/dist/layout-painter/registry/modules/image.d.ts +0 -1
- package/dist/layout-painter/registry/modules/paragraph.d.ts +0 -1
- package/dist/layout-painter/registry/modules/table.d.ts +0 -1
- package/dist/layout-painter/registry/modules/textBox.d.ts +0 -1
- package/dist/layout-painter/registry/modules.d.ts +0 -1
- package/dist/layout-painter/registry/registry.d.ts +0 -1
- package/dist/layout-painter/registry/types.d.ts +0 -1
- package/dist/layout-painter/renderFragment.d.ts +2 -2
- package/dist/layout-painter/renderImage.d.ts +0 -1
- package/dist/layout-painter/renderPage.d.ts +71 -42
- package/dist/layout-painter/renderParagraph.d.ts +28 -14
- package/dist/layout-painter/renderParagraph.js +6 -2
- package/dist/layout-painter/renderTable.d.ts +0 -1
- package/dist/layout-painter/renderTextBox.d.ts +0 -1
- package/dist/layout-painter/renderUtils.d.ts +17 -9
- package/dist/layout-painter/renderWatermark.d.ts +2 -2
- package/dist/layout-painter/sdtBoundary.d.ts +0 -1
- package/dist/managers/AutoSaveManager.d.ts +22 -11
- package/dist/managers/ClipboardManager.d.ts +0 -1
- package/dist/managers/ContextMenuManager.d.ts +5 -8
- package/dist/managers/DocumentLoaderManager.d.ts +12 -6
- package/dist/managers/EditorModeManager.d.ts +3 -2
- package/dist/managers/ErrorManager.d.ts +0 -1
- package/dist/managers/FindReplaceManager.d.ts +0 -1
- package/dist/managers/HistoryManager.d.ts +19 -9
- package/dist/managers/TableSelectionManager.d.ts +0 -1
- package/dist/managers/editorShortcuts.d.ts +4 -6
- package/dist/markdown/annotations.d.ts +0 -1
- package/dist/markdown/fromMarkdown.d.ts +0 -1
- package/dist/markdown/fromMarkdown.js +55 -5
- package/dist/markdown/images.d.ts +0 -1
- package/dist/markdown/index.d.ts +0 -1
- package/dist/markdown/internals.d.ts +0 -1
- package/dist/markdown/renderBlock.d.ts +0 -1
- package/dist/markdown/renderParagraph.d.ts +0 -1
- package/dist/markdown/renderRuns.d.ts +0 -1
- package/dist/markdown/renderTable.d.ts +0 -1
- package/dist/markdown/trailers.d.ts +0 -1
- package/dist/markdown/types.d.ts +39 -18
- package/dist/model.d.ts +3 -5
- package/dist/model.js +2 -2
- package/dist/paged-layout/incrementalMeasure.d.ts +1 -10
- package/dist/paged-layout/pageText.d.ts +1 -1
- package/dist/paged-layout/paragraphFlash.d.ts +0 -1
- package/dist/paged-layout/paragraphFlashTypes.d.ts +5 -2
- package/dist/paged-layout/rangeProjection.d.ts +10 -5
- package/dist/paged-layout/scrollNavigation.d.ts +0 -1
- package/dist/paged-layout/scrollPageInfo.d.ts +12 -13
- package/dist/paged-layout/scrollToPmPosition.d.ts +0 -1
- package/dist/paged-layout/sectionBlockWidths.d.ts +2 -11
- package/dist/paged-layout/sectionGeometry.d.ts +0 -1
- package/dist/paged-layout/selectionViewportRect.d.ts +0 -1
- package/dist/paged-layout/transactionDirtyRange.d.ts +0 -1
- package/dist/paged-layout/zoomScrollAnchor.d.ts +2 -12
- package/dist/prosemirror/attrs/index.d.ts +2 -2
- package/dist/prosemirror/attrs/index.js +5 -0
- package/dist/prosemirror/autospacingBase.d.ts +0 -1
- package/dist/prosemirror/cellDragSelection.d.ts +6 -4
- package/dist/prosemirror/commands/comments.d.ts +6 -4
- package/dist/prosemirror/commands/contentControls.d.ts +5 -3
- package/dist/prosemirror/commands/contentControlsBlockFill.d.ts +1 -1
- package/dist/prosemirror/commands/formatPainter.d.ts +0 -1
- package/dist/prosemirror/commands/formatting.d.ts +1 -1
- package/dist/prosemirror/commands/hyperlink.d.ts +4 -9
- package/dist/prosemirror/commands/image.d.ts +0 -1
- package/dist/prosemirror/commands/pageBreak.d.ts +0 -1
- package/dist/prosemirror/commands/paragraph.d.ts +0 -1
- package/dist/prosemirror/commands/pastePlainText.d.ts +0 -1
- package/dist/prosemirror/commands/propertyChangeScope.d.ts +0 -1
- package/dist/prosemirror/commands/sectionBreak.d.ts +0 -1
- package/dist/prosemirror/commands/table.d.ts +0 -1
- package/dist/prosemirror/commands/tableCellMergeResolution.d.ts +0 -1
- package/dist/prosemirror/commentIdAllocator.d.ts +2 -2
- package/dist/prosemirror/commentOps.d.ts +0 -1
- package/dist/prosemirror/conversion/effectiveTableCellFormatting.d.ts +1 -10
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +0 -1
- package/dist/prosemirror/conversion/fromProseDoc.js +7 -4
- package/dist/prosemirror/conversion/runShadingMark.d.ts +0 -1
- package/dist/prosemirror/conversion/sdtAttrs.d.ts +0 -1
- package/dist/prosemirror/conversion/toProseDoc.d.ts +3 -2
- package/dist/prosemirror/conversion/toProseDoc.js +16 -2
- package/dist/prosemirror/extensions/ExtensionManager.d.ts +0 -1
- package/dist/prosemirror/extensions/StarterKit.d.ts +7 -4
- package/dist/prosemirror/extensions/core/DocExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/core/HistoryExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/core/ParagraphExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/core/TextExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/create.d.ts +0 -1
- package/dist/prosemirror/extensions/features/AutoBidiDetectionExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/BaseKeymapExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/BidiShortcutExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/ContentControlWidgetsExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/DropCursorExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/EmptyParagraphFormatExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/GapCursorExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/ImageDragExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/ImagePasteExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/ListExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/ParaIdAllocatorExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.d.ts +7 -4
- package/dist/prosemirror/extensions/features/PasteCleanupExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/PasteStyleInlinerExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/SelectionTrackerExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/features/bidiShortcutController.d.ts +3 -1
- package/dist/prosemirror/extensions/marks/AllCapsExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/BoldExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/CharacterSpacingExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/CharacterStyleExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/CommentExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/FontFamilyExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/FontFamilyExtension.js +1 -0
- package/dist/prosemirror/extensions/marks/FontSizeExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/FootnoteRefExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/HiddenTextExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/HighlightExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/HyperlinkExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/ItalicExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/LanguageExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/RtlExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/RunFormattingOverrideExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/RunShadingExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/SmallCapsExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/StrikeExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/SubscriptExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/SuperscriptExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/TextColorExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/TextEffectExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/TextEffectsExtensions.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/TrackedChangeExtensions.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/UnderlineExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/markUtils.d.ts +0 -1
- package/dist/prosemirror/extensions/marks/markUtils.js +4 -1
- package/dist/prosemirror/extensions/nodes/BlockSdtExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/FieldExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/HardBreakExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/HorizontalRuleExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/ImageExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/ImageExtension.js +2 -0
- package/dist/prosemirror/extensions/nodes/MathExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/PageBreakExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/RenderedPageBreakExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/SdtExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/ShapeExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/ShapeExtension.js +2 -0
- package/dist/prosemirror/extensions/nodes/TabExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.d.ts +4 -3
- package/dist/prosemirror/extensions/nodes/TextBoxAnchorExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/TextBoxExtension.d.ts +53 -27
- package/dist/prosemirror/extensions/types.d.ts +0 -1
- package/dist/prosemirror/findReplaceSelection.d.ts +5 -3
- package/dist/prosemirror/imageCommit.d.ts +0 -1
- package/dist/prosemirror/index.d.ts +4 -0
- package/dist/prosemirror/insertOperations.d.ts +0 -1
- package/dist/prosemirror/paraText.d.ts +0 -1
- package/dist/prosemirror/plugins/aiCitationDecorations.d.ts +2 -2
- package/dist/prosemirror/plugins/aiSuggestionDecorations.d.ts +0 -1
- package/dist/prosemirror/plugins/anonymizationDecorations.d.ts +9 -7
- package/dist/prosemirror/plugins/autocompleteSuggestion.d.ts +2 -2
- package/dist/prosemirror/plugins/contentControlWidgets.d.ts +4 -7
- package/dist/prosemirror/plugins/createDocScanPlugin.d.ts +3 -8
- package/dist/prosemirror/plugins/documentStyles.d.ts +0 -1
- package/dist/prosemirror/plugins/pmTextScan.d.ts +2 -2
- package/dist/prosemirror/plugins/revisionIds.d.ts +0 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +23 -12
- package/dist/prosemirror/plugins/suggestionMode.d.ts +0 -1
- package/dist/prosemirror/plugins/templateDirectives.d.ts +10 -8
- package/dist/prosemirror/plugins/templatePreviewValues.d.ts +10 -5
- package/dist/prosemirror/plugins/templateSlashMenu.d.ts +2 -2
- package/dist/prosemirror/queries.d.ts +0 -1
- package/dist/prosemirror/schema/index.d.ts +0 -1
- package/dist/prosemirror/schema/marks.d.ts +8 -5
- package/dist/prosemirror/schema/nodes.d.ts +340 -163
- package/dist/prosemirror/selectionState.d.ts +13 -7
- package/dist/prosemirror/styles/resolvedStyleAttrs.d.ts +0 -1
- package/dist/prosemirror/styles/styleResolver.d.ts +3 -2
- package/dist/prosemirror/tableCellMergeRevision.d.ts +0 -1
- package/dist/prosemirror/tableResize.d.ts +0 -1
- package/dist/prosemirror/textBoxAnchorAttrs.d.ts +0 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +8 -5
- package/dist/prosemirror/utils/findParagraphByParaId.d.ts +0 -1
- package/dist/prosemirror/utils/tabCalculator.d.ts +18 -7
- package/dist/prosemirror/utils/visualLineNavigation.d.ts +0 -1
- package/dist/prosemirror/validation.d.ts +0 -1
- package/dist/redline.d.ts +16 -8
- package/dist/render-dom/BodySelectionOverlay.d.ts +1 -9
- package/dist/render-dom/HeaderFooterSelectionOverlay.d.ts +0 -1
- package/dist/render-dom/RemoteSelectionOverlay.d.ts +1 -8
- package/dist/render-dom/resolveSidebarItemPositions.d.ts +1 -9
- package/dist/style-engine/styleEngine.d.ts +21 -11
- package/dist/style-sets/extract.d.ts +4 -3
- package/dist/style-sets/stellaStyle.d.ts +0 -1
- package/dist/style-sets/types.d.ts +0 -1
- package/dist/symbols.d.ts +6 -2
- package/dist/types/block-id.d.ts +3 -6
- package/dist/types/document.d.ts +0 -3
- package/dist/types/documentEnumValues.d.ts +2 -1
- package/dist/types/documentEnumValues.js +6 -1
- package/dist/utils/clipboard.d.ts +17 -8
- package/dist/utils/colorResolver.d.ts +9 -5
- package/dist/utils/createDocument.d.ts +19 -10
- package/dist/utils/documentLoaderBehavior.d.ts +1 -5
- package/dist/utils/docxInput.js +1 -0
- package/dist/utils/findReplace.d.ts +0 -1
- package/dist/utils/fontFamilyMerge.d.ts +0 -1
- package/dist/utils/fontResolver.d.ts +10 -4
- package/dist/utils/formatToStyle.d.ts +0 -1
- package/dist/utils/headerFooter.d.ts +8 -16
- package/dist/utils/headingCollector.d.ts +7 -4
- package/dist/utils/mergeDocumentContent.d.ts +28 -0
- package/dist/utils/mergeDocumentContent.js +145 -0
- package/dist/utils/paragraphFormattingMerge.d.ts +0 -1
- package/dist/utils/replaceText.d.ts +0 -1
- package/dist/utils/rotationBoundingBox.d.ts +0 -1
- package/dist/utils/tableOperations.d.ts +0 -1
- package/dist/utils/textFormattingMerge.d.ts +0 -1
- package/dist/version-comparison.d.ts +12 -6
- package/dist/watermark/index.d.ts +0 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { document_d_exports } from "../../types/document.js";
|
|
2
2
|
import { TrackedChangeProvenance } from "./marks.js";
|
|
3
|
+
import "../../types/index.js";
|
|
3
4
|
import { OutlineStyleAttr } from "../../types/documentEnumValues.js";
|
|
4
5
|
import { SpacingExplicit } from "../../types/formatting.js";
|
|
5
6
|
import { ParagraphDirection } from "../paragraphDirection.js";
|
|
6
|
-
|
|
7
7
|
//#region src/prosemirror/schema/nodes.d.ts
|
|
8
8
|
type HardBreakAttrs = {
|
|
9
9
|
breakType?: "column";
|
|
@@ -14,17 +14,22 @@ type HardBreakAttrs = {
|
|
|
14
14
|
type ParagraphAttrs = {
|
|
15
15
|
paraId?: string;
|
|
16
16
|
textId?: string;
|
|
17
|
-
alignment?: document_d_exports.ParagraphAlignment;
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
alignment?: document_d_exports.ParagraphAlignment;
|
|
18
|
+
/** Effective East Asian line-edge policy (`w:kinsoku`). */
|
|
19
|
+
kinsoku?: boolean;
|
|
20
|
+
/** Effective hanging-punctuation policy (`w:overflowPunct`). */
|
|
21
|
+
overflowPunctuation?: boolean;
|
|
22
|
+
/** Effective paragraph opt-out from document automatic hyphenation. */
|
|
20
23
|
suppressAutoHyphens?: boolean;
|
|
21
24
|
spaceBefore?: number;
|
|
22
25
|
spaceAfter?: number;
|
|
23
26
|
lineSpacing?: number;
|
|
24
27
|
lineSpacingRule?: document_d_exports.LineSpacingRule;
|
|
25
28
|
snapToGrid?: boolean;
|
|
26
|
-
spacingExplicit?: SpacingExplicit;
|
|
27
|
-
|
|
29
|
+
spacingExplicit?: SpacingExplicit;
|
|
30
|
+
/** Layout provenance: document defaults survive on empty paragraphs. */
|
|
31
|
+
spacingFromDocDefaults?: SpacingExplicit;
|
|
32
|
+
/** Layout provenance: implicit default-style spacing survives on empty paragraphs. */
|
|
28
33
|
spacingFromImplicitDefaultStyle?: SpacingExplicit;
|
|
29
34
|
indentLeft?: number;
|
|
30
35
|
indentRight?: number;
|
|
@@ -45,22 +50,32 @@ type ParagraphAttrs = {
|
|
|
45
50
|
numPrFromStyle?: {
|
|
46
51
|
numId?: number;
|
|
47
52
|
ilvl?: number;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
};
|
|
54
|
+
/** List number format (decimal, lowerRoman, upperRoman, etc.) for CSS counter styling */
|
|
55
|
+
listNumFmt?: document_d_exports.NumberFormat;
|
|
56
|
+
/** Whether this is a bullet list */
|
|
57
|
+
listIsBullet?: boolean;
|
|
58
|
+
/** Whether this level uses legal numbering (parent placeholders render decimal). */
|
|
59
|
+
listIsLegal?: boolean;
|
|
60
|
+
/** Computed list marker text (e.g., "1.", "1.1.", "•") */
|
|
61
|
+
listMarker?: string;
|
|
62
|
+
/** Whether the list marker is hidden (w:vanish on numbering level rPr) */
|
|
63
|
+
listMarkerHidden?: boolean;
|
|
64
|
+
/** Marker font family from numbering level rPr */
|
|
65
|
+
listMarkerFontFamily?: string;
|
|
66
|
+
/** Marker font size from numbering level rPr, in points */
|
|
67
|
+
listMarkerFontSize?: number;
|
|
68
|
+
/** Marker bold state from numbering level rPr */
|
|
69
|
+
listMarkerBold?: boolean;
|
|
70
|
+
/** Horizontal alignment of the marker around the paragraph's list anchor. */
|
|
57
71
|
listMarkerAlignment?: "left" | "center" | "right";
|
|
58
72
|
/**
|
|
59
73
|
* `w:suff` (§17.9.25) — what follows the marker before body text.
|
|
60
74
|
* `tab` (default) grows the marker to the next tab stop; `space` adds one
|
|
61
75
|
* space glyph; `nothing` lets body text butt against the marker.
|
|
62
76
|
*/
|
|
63
|
-
listMarkerSuffix?: "tab" | "space" | "nothing";
|
|
77
|
+
listMarkerSuffix?: "tab" | "space" | "nothing";
|
|
78
|
+
/** `w:caps` on the numbering level rPr — render marker in upper case. */
|
|
64
79
|
listMarkerAllCaps?: boolean;
|
|
65
80
|
/**
|
|
66
81
|
* Inline LISTNUM count carried by this paragraph. Each advances the
|
|
@@ -73,10 +88,14 @@ type ParagraphAttrs = {
|
|
|
73
88
|
* twips) is where the slot after the tab should land — used to align an
|
|
74
89
|
* inline LISTNUM "(a)" with the deeper level's marker column.
|
|
75
90
|
*/
|
|
76
|
-
listMarkerSecondSlotOffsetTwips?: number;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
91
|
+
listMarkerSecondSlotOffsetTwips?: number;
|
|
92
|
+
/** Number format for each level used by multi-level marker templates. */
|
|
93
|
+
listLevelNumFmts?: document_d_exports.NumberFormat[];
|
|
94
|
+
/** Initial counter for each level used by multi-level marker templates. */
|
|
95
|
+
listLevelStarts?: number[];
|
|
96
|
+
/** Abstract numbering ID shared by numbering instances. */
|
|
97
|
+
listAbstractNumId?: number;
|
|
98
|
+
/** Numbering start override for this numId/level. */
|
|
80
99
|
listStartOverride?: number;
|
|
81
100
|
styleId?: string;
|
|
82
101
|
borders?: {
|
|
@@ -89,13 +108,17 @@ type ParagraphAttrs = {
|
|
|
89
108
|
};
|
|
90
109
|
shading?: document_d_exports.ShadingProperties;
|
|
91
110
|
tabs?: document_d_exports.TabStop[];
|
|
92
|
-
pageBreakBefore?: boolean;
|
|
93
|
-
|
|
94
|
-
|
|
111
|
+
pageBreakBefore?: boolean;
|
|
112
|
+
/** Word's cached rendered-page-break marker; preserved for round-trip only. */
|
|
113
|
+
renderedPageBreakBefore?: boolean;
|
|
114
|
+
/** Internal import marker for a paragraph whose only run content is a hard page break. */
|
|
115
|
+
_pageBreakCarrier?: boolean;
|
|
116
|
+
/** Internal import marker for a hard page break after this paragraph's text. */
|
|
95
117
|
_trailingPageBreak?: boolean;
|
|
96
118
|
keepNext?: boolean;
|
|
97
119
|
keepLines?: boolean;
|
|
98
|
-
widowControl?: boolean;
|
|
120
|
+
widowControl?: boolean;
|
|
121
|
+
/** Contextual spacing — suppress space between same-style paragraphs */
|
|
99
122
|
contextualSpacing?: boolean;
|
|
100
123
|
defaultTextFormatting?: document_d_exports.TextFormatting;
|
|
101
124
|
sectionBreakType?: "nextPage" | "continuous" | "oddPage" | "evenPage";
|
|
@@ -115,7 +138,8 @@ type ParagraphAttrs = {
|
|
|
115
138
|
* Preserve their relationship metadata at the paragraph boundary so a
|
|
116
139
|
* no-edit DOCX round-trip does not silently drop hyperlink elements. */
|
|
117
140
|
_emptyHyperlinks?: {
|
|
118
|
-
/** ProseMirror inline offset where the zero-width hyperlink appeared. */
|
|
141
|
+
/** ProseMirror inline offset where the zero-width hyperlink appeared. */
|
|
142
|
+
offset: number;
|
|
119
143
|
href?: document_d_exports.Hyperlink["href"];
|
|
120
144
|
anchor?: document_d_exports.Hyperlink["anchor"];
|
|
121
145
|
tooltip?: document_d_exports.Hyperlink["tooltip"];
|
|
@@ -180,23 +204,34 @@ type ImagePositionAttrs = {
|
|
|
180
204
|
*/
|
|
181
205
|
type ImageAttrs = {
|
|
182
206
|
src: string;
|
|
207
|
+
docPrName?: string;
|
|
183
208
|
alt?: string;
|
|
184
|
-
title?: string;
|
|
185
|
-
|
|
209
|
+
title?: string;
|
|
210
|
+
/** Width in pixels (already converted from EMU) */
|
|
211
|
+
width?: number;
|
|
212
|
+
/** Height in pixels (already converted from EMU) */
|
|
186
213
|
height?: number;
|
|
187
|
-
rId?: string;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
214
|
+
rId?: string;
|
|
215
|
+
/** Wrap type from DOCX: inline, square, tight, through, topAndBottom, behind, inFront */
|
|
216
|
+
wrapType?: document_d_exports.ImageWrap["type"];
|
|
217
|
+
/** Display mode for CSS: inline (flows with text), float (left/right float), block (centered) */
|
|
218
|
+
displayMode?: "inline" | "float" | "block";
|
|
219
|
+
/** CSS float direction for floating images */
|
|
220
|
+
cssFloat?: "left" | "right" | "none";
|
|
221
|
+
/** CSS transform string (rotation, flip) */
|
|
191
222
|
transform?: string;
|
|
192
223
|
/**
|
|
193
224
|
* Opacity in [0, 1] from `<a:alphaModFix amt>`. Undefined / 1 means fully
|
|
194
225
|
* opaque (no CSS `opacity` emitted). eigenpal #424.
|
|
195
226
|
*/
|
|
196
|
-
opacity?: number;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
227
|
+
opacity?: number;
|
|
228
|
+
/** Distance from text above (pixels) */
|
|
229
|
+
distTop?: number;
|
|
230
|
+
/** Distance from text below (pixels) */
|
|
231
|
+
distBottom?: number;
|
|
232
|
+
/** Distance from text left (pixels) */
|
|
233
|
+
distLeft?: number;
|
|
234
|
+
/** Distance from text right (pixels) */
|
|
200
235
|
distRight?: number;
|
|
201
236
|
/**
|
|
202
237
|
* wp:srcRect crop fractions in [0, 1]. Carried through the editor so a
|
|
@@ -206,53 +241,87 @@ type ImageAttrs = {
|
|
|
206
241
|
cropTop?: number;
|
|
207
242
|
cropRight?: number;
|
|
208
243
|
cropBottom?: number;
|
|
209
|
-
cropLeft?: number;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
244
|
+
cropLeft?: number;
|
|
245
|
+
/** Position for floating images (horizontal and vertical alignment) */
|
|
246
|
+
position?: ImagePositionAttrs;
|
|
247
|
+
/** Use the containing table cell as the anchor's positioning scope (the OOXML default). */
|
|
248
|
+
layoutInCell?: boolean;
|
|
249
|
+
/** Border width in pixels */
|
|
250
|
+
borderWidth?: number;
|
|
251
|
+
/** Border color as CSS color string */
|
|
252
|
+
borderColor?: string;
|
|
253
|
+
/** Border style (CSS border-style value) */
|
|
254
|
+
borderStyle?: string;
|
|
255
|
+
/** Wrap text setting from DOCX (left, right, bothSides, largest) for round-trip */
|
|
256
|
+
wrapText?: NonNullable<document_d_exports.ImageWrap["wrapText"]>;
|
|
257
|
+
/** Hyperlink URL for clickable image */
|
|
258
|
+
hlinkHref?: string;
|
|
259
|
+
/** DOCX relationship ID for the clickable image hyperlink */
|
|
260
|
+
hlinkRId?: string;
|
|
261
|
+
/** Original OOXML for opaque/unsupported DOCX drawings. */
|
|
262
|
+
_docxRawXml?: string;
|
|
263
|
+
/** Embedded-object previews use their authored box as the exact line height. */
|
|
218
264
|
_docxObjectPreview?: boolean;
|
|
219
265
|
};
|
|
220
266
|
/**
|
|
221
267
|
* Field node attributes
|
|
222
268
|
*/
|
|
223
269
|
type FieldAttrs = {
|
|
224
|
-
/** Field type: PAGE, NUMPAGES, DATE, MERGEFIELD, etc. */
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
270
|
+
/** Field type: PAGE, NUMPAGES, DATE, MERGEFIELD, etc. */
|
|
271
|
+
fieldType: document_d_exports.FieldType;
|
|
272
|
+
/** Full field instruction (e.g. "PAGE \\* MERGEFORMAT") */
|
|
273
|
+
instruction: string;
|
|
274
|
+
/** Current/cached display text */
|
|
275
|
+
displayText: string;
|
|
276
|
+
/** Whether the field came from w:fldSimple or a complex fldChar range */
|
|
277
|
+
fieldKind: "simple" | "complex";
|
|
278
|
+
/** Field is locked */
|
|
279
|
+
fldLock?: boolean;
|
|
280
|
+
/** Field is dirty and should be recalculated by the host application */
|
|
229
281
|
dirty?: boolean;
|
|
230
282
|
};
|
|
231
283
|
/**
|
|
232
284
|
* Math equation node attributes
|
|
233
285
|
*/
|
|
234
286
|
type MathAttrs = {
|
|
235
|
-
/** Whether this is inline OMML or a block equation paragraph */
|
|
236
|
-
|
|
287
|
+
/** Whether this is inline OMML or a block equation paragraph */
|
|
288
|
+
display?: "inline" | "block";
|
|
289
|
+
/** Raw OMML XML for round-trip preservation */
|
|
290
|
+
ommlXml: string;
|
|
291
|
+
/** Plain text fallback used by the editor and layout engine */
|
|
237
292
|
plainText?: string;
|
|
238
293
|
};
|
|
239
294
|
/**
|
|
240
295
|
* Structured document tag node attributes
|
|
241
296
|
*/
|
|
242
297
|
type SdtAttrs = {
|
|
243
|
-
/** SDT type */
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
298
|
+
/** SDT type */
|
|
299
|
+
sdtType: document_d_exports.SdtType;
|
|
300
|
+
/** Alias (friendly name) */
|
|
301
|
+
alias?: string;
|
|
302
|
+
/** Tag (developer identifier) */
|
|
303
|
+
tag?: string;
|
|
304
|
+
/** Numeric `w:id/@w:val`. */
|
|
305
|
+
id?: number;
|
|
306
|
+
/** Lock setting */
|
|
307
|
+
lock?: NonNullable<document_d_exports.SdtProperties["lock"]>;
|
|
308
|
+
/** Placeholder text */
|
|
309
|
+
placeholder?: string;
|
|
310
|
+
/** Whether showing placeholder */
|
|
311
|
+
showingPlaceholder?: boolean;
|
|
312
|
+
/** Date format for date controls */
|
|
313
|
+
dateFormat?: string;
|
|
314
|
+
/** ISO 8601 bound date value (`w:date@w:fullDate`). */
|
|
315
|
+
dateValueISO?: string;
|
|
316
|
+
/** Dropdown/combobox list items as JSON string */
|
|
317
|
+
listItems?: string;
|
|
318
|
+
/** Selected dropdown / comboBox value (`w:dropDownList@w:lastValue`). */
|
|
319
|
+
dropdownLastValue?: string;
|
|
320
|
+
/** Checkbox checked state */
|
|
321
|
+
checked?: boolean;
|
|
322
|
+
/** Captured `<w:sdtPr>…</w:sdtPr>` for round-trip replay. */
|
|
323
|
+
rawPropertiesXml?: string;
|
|
324
|
+
/** Captured `<w:sdtEndPr>…</w:sdtEndPr>` for round-trip replay. */
|
|
256
325
|
rawEndPropertiesXml?: string;
|
|
257
326
|
};
|
|
258
327
|
/**
|
|
@@ -263,14 +332,18 @@ type SdtAttrs = {
|
|
|
263
332
|
type BlockSdtAttrs = {
|
|
264
333
|
sdtType: document_d_exports.SdtType;
|
|
265
334
|
alias?: string;
|
|
266
|
-
tag?: string;
|
|
335
|
+
tag?: string;
|
|
336
|
+
/** Numeric `w:id/@w:val`. */
|
|
267
337
|
id?: number;
|
|
268
338
|
lock?: NonNullable<document_d_exports.SdtProperties["lock"]>;
|
|
269
339
|
placeholder?: string;
|
|
270
340
|
showingPlaceholder?: boolean;
|
|
271
|
-
dateFormat?: string;
|
|
272
|
-
|
|
273
|
-
|
|
341
|
+
dateFormat?: string;
|
|
342
|
+
/** ISO 8601 bound date value (`w:date@w:fullDate`). */
|
|
343
|
+
dateValueISO?: string;
|
|
344
|
+
/** Dropdown/combobox list items as JSON string. */
|
|
345
|
+
listItems?: string;
|
|
346
|
+
/** Selected dropdown / comboBox value (`w:dropDownList@w:lastValue`). */
|
|
274
347
|
dropdownLastValue?: string;
|
|
275
348
|
checked?: boolean;
|
|
276
349
|
/**
|
|
@@ -278,77 +351,142 @@ type BlockSdtAttrs = {
|
|
|
278
351
|
* filler paragraph to satisfy PM's `block+`; on save the converter
|
|
279
352
|
* uses this flag to drop the filler instead of guessing from shape.
|
|
280
353
|
*/
|
|
281
|
-
_originallyEmpty?: boolean;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
354
|
+
_originallyEmpty?: boolean;
|
|
355
|
+
/** Captured `<w:sdtPr>…</w:sdtPr>` for round-trip replay. */
|
|
356
|
+
rawPropertiesXml?: string;
|
|
357
|
+
/** Captured `<w:sdtEndPr>…</w:sdtEndPr>` for round-trip replay. */
|
|
358
|
+
rawEndPropertiesXml?: string;
|
|
359
|
+
/** Verbatim XML for sdt siblings before sdtContent (range markers). */
|
|
360
|
+
rawSdtChildrenBeforeContent?: string;
|
|
361
|
+
/** Verbatim XML for sdt siblings after sdtContent (range markers). */
|
|
285
362
|
rawSdtChildrenAfterContent?: string;
|
|
286
363
|
};
|
|
287
364
|
/**
|
|
288
365
|
* Shape node attributes
|
|
289
366
|
*/
|
|
290
367
|
type ShapeAttrs = {
|
|
291
|
-
/** Shape type preset */
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
368
|
+
/** Shape type preset */
|
|
369
|
+
shapeType?: string;
|
|
370
|
+
/** Unique identifier */
|
|
371
|
+
shapeId?: string;
|
|
372
|
+
/** Width in pixels */
|
|
373
|
+
width?: number;
|
|
374
|
+
/** Height in pixels */
|
|
375
|
+
height?: number;
|
|
376
|
+
/** Fill color as CSS color */
|
|
377
|
+
fillColor?: string;
|
|
378
|
+
/** Authored OOXML fill color, retained when it references a theme slot. */
|
|
379
|
+
fillColorValue?: document_d_exports.ShapeFill["color"];
|
|
380
|
+
/** Fill type: none, solid, gradient, pattern, picture */
|
|
381
|
+
fillType?: document_d_exports.ShapeFill["type"];
|
|
382
|
+
/** Gradient type: linear, radial, rectangular, path */
|
|
383
|
+
gradientType?: NonNullable<document_d_exports.ShapeFill["gradient"]>["type"];
|
|
384
|
+
/** Gradient angle in degrees (for linear) */
|
|
385
|
+
gradientAngle?: number;
|
|
386
|
+
/** Gradient stops as JSON string: [{position, color}] */
|
|
387
|
+
gradientStops?: string;
|
|
388
|
+
/** Outline width in pixels */
|
|
389
|
+
outlineWidth?: number;
|
|
390
|
+
/** Outline color as CSS color */
|
|
391
|
+
outlineColor?: string;
|
|
392
|
+
/** Authored OOXML outline color, retained when it references a theme slot. */
|
|
393
|
+
outlineColorValue?: document_d_exports.ShapeOutline["color"];
|
|
394
|
+
/** Outline dash style, or `"none"` for an explicit no-outline. */
|
|
395
|
+
outlineStyle?: OutlineStyleAttr;
|
|
396
|
+
/** Line cap */
|
|
397
|
+
outlineCap?: NonNullable<document_d_exports.ShapeOutline["cap"]>;
|
|
398
|
+
/** Head arrow/end marker */
|
|
399
|
+
outlineHeadEnd?: NonNullable<document_d_exports.ShapeOutline["headEnd"]>;
|
|
400
|
+
/** Tail arrow/end marker */
|
|
401
|
+
outlineTailEnd?: NonNullable<document_d_exports.ShapeOutline["tailEnd"]>;
|
|
402
|
+
/** CSS transform */
|
|
403
|
+
transform?: string;
|
|
404
|
+
/** Display mode */
|
|
405
|
+
displayMode?: "inline" | "float" | "block";
|
|
406
|
+
/** CSS float */
|
|
407
|
+
cssFloat?: "left" | "right" | "none";
|
|
408
|
+
/** Wrap type */
|
|
409
|
+
wrapType?: document_d_exports.ImageWrap["type"];
|
|
410
|
+
/** Wrap text setting from DOCX (left, right, bothSides, largest) for round-trip */
|
|
411
|
+
wrapText?: NonNullable<document_d_exports.ImageWrap["wrapText"]>;
|
|
412
|
+
/** Distance from text above (pixels) */
|
|
413
|
+
distTop?: number;
|
|
414
|
+
/** Distance from text below (pixels) */
|
|
415
|
+
distBottom?: number;
|
|
416
|
+
/** Distance from text left (pixels) */
|
|
417
|
+
distLeft?: number;
|
|
418
|
+
/** Distance from text right (pixels) */
|
|
419
|
+
distRight?: number;
|
|
420
|
+
/** Position for floating shapes (horizontal and vertical alignment) */
|
|
421
|
+
position?: ImagePositionAttrs;
|
|
422
|
+
/** Shadow color as CSS color */
|
|
423
|
+
shadowColor?: string;
|
|
424
|
+
/** Shadow blur radius in pixels */
|
|
425
|
+
shadowBlur?: number;
|
|
426
|
+
/** Shadow X offset in pixels */
|
|
427
|
+
shadowOffsetX?: number;
|
|
428
|
+
/** Shadow Y offset in pixels */
|
|
429
|
+
shadowOffsetY?: number;
|
|
430
|
+
/** Glow color as CSS color */
|
|
431
|
+
glowColor?: string;
|
|
432
|
+
/** Glow radius in pixels */
|
|
321
433
|
glowRadius?: number;
|
|
322
434
|
};
|
|
323
435
|
/**
|
|
324
436
|
* Text box node attributes
|
|
325
437
|
*/
|
|
326
438
|
type TextBoxAttrs = {
|
|
327
|
-
/** Width in pixels */
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
439
|
+
/** Width in pixels */
|
|
440
|
+
width?: number;
|
|
441
|
+
/** Height in pixels */
|
|
442
|
+
height?: number;
|
|
443
|
+
/** Text fitting behavior */
|
|
444
|
+
autoFit?: document_d_exports.ShapeTextBody["autoFit"];
|
|
445
|
+
/** Unique identifier */
|
|
446
|
+
textBoxId?: string;
|
|
447
|
+
/** Fill color as CSS color */
|
|
448
|
+
fillColor?: string;
|
|
449
|
+
/** Outline width in pixels */
|
|
450
|
+
outlineWidth?: number;
|
|
451
|
+
/** Outline color as CSS color */
|
|
452
|
+
outlineColor?: string;
|
|
453
|
+
/** Outline dash style, or `"none"` for an explicit no-outline. */
|
|
454
|
+
outlineStyle?: OutlineStyleAttr;
|
|
455
|
+
/** Internal margin top in pixels */
|
|
456
|
+
marginTop?: number;
|
|
457
|
+
/** Internal margin bottom in pixels */
|
|
458
|
+
marginBottom?: number;
|
|
459
|
+
/** Internal margin left in pixels */
|
|
460
|
+
marginLeft?: number;
|
|
461
|
+
/** Internal margin right in pixels */
|
|
462
|
+
marginRight?: number;
|
|
463
|
+
/** Vertical text alignment */
|
|
464
|
+
verticalAlign?: string;
|
|
465
|
+
/** Display mode */
|
|
466
|
+
displayMode?: "inline" | "float" | "block";
|
|
467
|
+
/** CSS float direction */
|
|
468
|
+
cssFloat?: "left" | "right" | "none";
|
|
469
|
+
/** Wrap type */
|
|
470
|
+
wrapType?: document_d_exports.ImageWrap["type"];
|
|
471
|
+
/** OOXML wrapText direction for anchored text boxes (eigenpal #474). */
|
|
472
|
+
wrapText?: "bothSides" | "left" | "right" | "largest";
|
|
473
|
+
/** Wrap distance from top edge, in pixels (OOXML distT, EMU-converted). */
|
|
474
|
+
distTop?: number;
|
|
475
|
+
/** Wrap distance from bottom edge, in pixels. */
|
|
476
|
+
distBottom?: number;
|
|
477
|
+
/** Wrap distance from left edge, in pixels. */
|
|
478
|
+
distLeft?: number;
|
|
479
|
+
/** Wrap distance from right edge, in pixels. */
|
|
480
|
+
distRight?: number;
|
|
481
|
+
/** Position for floating/anchored text boxes */
|
|
482
|
+
position?: ImagePositionAttrs;
|
|
483
|
+
/** Original DOCX placement hint for save-path reconstruction. */
|
|
484
|
+
_docxPlacement?: "standalone" | "inlineWithPrevious";
|
|
485
|
+
/** Original DOCX paragraph group for standalone text-box reconstruction. */
|
|
486
|
+
_docxGroupId?: string;
|
|
487
|
+
/** Inline anchor linking this block node to its source run position. */
|
|
488
|
+
_docxAnchorId?: string;
|
|
489
|
+
/** Original run-level revision wrapper for save-path reconstruction. */
|
|
352
490
|
_docxTrackedChange?: {
|
|
353
491
|
type: "insertion";
|
|
354
492
|
info: document_d_exports.TrackedChangeInfo;
|
|
@@ -361,7 +499,8 @@ type TextBoxAttrs = {
|
|
|
361
499
|
} | {
|
|
362
500
|
type: "moveTo";
|
|
363
501
|
info: document_d_exports.TrackedChangeInfo;
|
|
364
|
-
};
|
|
502
|
+
};
|
|
503
|
+
/** Original inline content-control ancestry for save-path reconstruction. */
|
|
365
504
|
_docxInlineSdts?: SdtAttrs[];
|
|
366
505
|
};
|
|
367
506
|
/** Internal inline position marker for an extracted text box block. */
|
|
@@ -372,22 +511,34 @@ type TextBoxAnchorAttrs = {
|
|
|
372
511
|
* Table node attributes
|
|
373
512
|
*/
|
|
374
513
|
type TableAttrs = {
|
|
375
|
-
/** Table style ID */
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
514
|
+
/** Table style ID */
|
|
515
|
+
styleId?: string;
|
|
516
|
+
/** Table width (in twips) */
|
|
517
|
+
width?: number;
|
|
518
|
+
/** Table width type ('auto', 'pct', 'dxa') */
|
|
519
|
+
widthType?: document_d_exports.TableWidthType;
|
|
520
|
+
/** Table justification/alignment */
|
|
521
|
+
justification?: "left" | "center" | "right";
|
|
522
|
+
/** Column widths (in twips) from w:tblGrid */
|
|
523
|
+
columnWidths?: number[];
|
|
524
|
+
/** Floating table properties (w:tblpPr) */
|
|
525
|
+
floating?: document_d_exports.FloatingTableProperties;
|
|
526
|
+
/** Default cell margins for the table (w:tblCellMar), in twips */
|
|
381
527
|
cellMargins?: {
|
|
382
528
|
top?: number;
|
|
383
529
|
bottom?: number;
|
|
384
530
|
left?: number;
|
|
385
531
|
right?: number;
|
|
386
|
-
};
|
|
387
|
-
look
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
532
|
+
};
|
|
533
|
+
/** Table look flags for conditional formatting (w:tblLook) */
|
|
534
|
+
look?: document_d_exports.TableLook;
|
|
535
|
+
/** Table-level borders (w:tblBorders) — full BorderSpec per side */
|
|
536
|
+
borders?: document_d_exports.TableBorders;
|
|
537
|
+
/** Effective table indent after style resolution. PM-only; never serialized. */
|
|
538
|
+
_resolvedIndent?: NonNullable<document_d_exports.TableFormatting["indent"]>;
|
|
539
|
+
/** Original table formatting from DOCX for lossless round-trip serialization */
|
|
540
|
+
_originalFormatting?: document_d_exports.TableFormatting;
|
|
541
|
+
/** Tracked table property changes (w:tblPrChange) for round-trip + accept/reject */
|
|
391
542
|
tblPrChange?: document_d_exports.TablePropertyChange[];
|
|
392
543
|
/**
|
|
393
544
|
* Marks this whole table as a *suggested* insertion (AI proposal). The table
|
|
@@ -400,11 +551,17 @@ type TableAttrs = {
|
|
|
400
551
|
* Table row attributes
|
|
401
552
|
*/
|
|
402
553
|
type TableRowAttrs = {
|
|
403
|
-
/** Row height (in twips) */
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
554
|
+
/** Row height (in twips) */
|
|
555
|
+
height?: number;
|
|
556
|
+
/** Height rule ('auto', 'exact', 'atLeast') */
|
|
557
|
+
heightRule?: NonNullable<document_d_exports.TableRowFormatting["heightRule"]>;
|
|
558
|
+
/** Is header row */
|
|
559
|
+
isHeader?: boolean;
|
|
560
|
+
/** Whether the row is hidden (`w:hidden`) */
|
|
561
|
+
hidden?: boolean;
|
|
562
|
+
/** Original row formatting from DOCX for lossless round-trip serialization */
|
|
563
|
+
_originalFormatting?: document_d_exports.TableRowFormatting;
|
|
564
|
+
/** Tracked row property changes (w:trPrChange) for round-trip + accept/reject */
|
|
408
565
|
trPrChange?: document_d_exports.TableRowPropertyChange[];
|
|
409
566
|
} & ({
|
|
410
567
|
/**
|
|
@@ -423,7 +580,8 @@ type TableRowAttrs = {
|
|
|
423
580
|
};
|
|
424
581
|
trDel?: never;
|
|
425
582
|
} | {
|
|
426
|
-
trIns?: never;
|
|
583
|
+
trIns?: never;
|
|
584
|
+
/** Tracked structural row deletion (w:trPr/w:del). */
|
|
427
585
|
trDel: {
|
|
428
586
|
revisionId: number;
|
|
429
587
|
author: string;
|
|
@@ -454,33 +612,50 @@ type SuggestedStructuralMarker = {
|
|
|
454
612
|
* Table cell attributes
|
|
455
613
|
*/
|
|
456
614
|
type TableCellAttrs = {
|
|
457
|
-
/** Column span */
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
615
|
+
/** Column span */
|
|
616
|
+
colspan: number;
|
|
617
|
+
/** Row span */
|
|
618
|
+
rowspan: number;
|
|
619
|
+
/** Column widths for prosemirror-tables resizing (array of pixel widths) */
|
|
620
|
+
colwidth?: number[] | null;
|
|
621
|
+
/** Cell width (in twips) */
|
|
622
|
+
width?: number;
|
|
623
|
+
/** Cell width type */
|
|
624
|
+
widthType?: document_d_exports.TableWidthType;
|
|
625
|
+
/** Vertical alignment */
|
|
626
|
+
verticalAlign?: "top" | "center" | "bottom";
|
|
627
|
+
/** Background color (RGB hex) */
|
|
628
|
+
backgroundColor?: string;
|
|
629
|
+
/** Resolved source color. PM-only; distinguishes theme rendering from a user override. */
|
|
630
|
+
_resolvedBackgroundColor?: string;
|
|
631
|
+
/** OOXML text direction (e.g. 'tbRl', 'btLr') */
|
|
632
|
+
textDirection?: NonNullable<document_d_exports.TableCellFormatting["textDirection"]>;
|
|
633
|
+
/** No text wrapping in cell */
|
|
634
|
+
noWrap?: boolean;
|
|
635
|
+
/** Effective end-of-cell marker suppression (`w:hideMark`). */
|
|
636
|
+
hideMark?: boolean;
|
|
637
|
+
/** Cell borders — full BorderSpec per side (style, color, size) */
|
|
638
|
+
borders?: document_d_exports.TableCellBorders;
|
|
639
|
+
/** Cell margins/padding in twips per side */
|
|
469
640
|
margins?: {
|
|
470
641
|
top?: number;
|
|
471
642
|
bottom?: number;
|
|
472
643
|
left?: number;
|
|
473
644
|
right?: number;
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
|
|
645
|
+
};
|
|
646
|
+
/** Original cell formatting from DOCX for lossless round-trip serialization */
|
|
647
|
+
_originalFormatting?: document_d_exports.TableCellFormatting;
|
|
648
|
+
/** Tracked cell property changes (w:tcPrChange) for round-trip + accept/reject */
|
|
649
|
+
tcPrChange?: document_d_exports.TableCellPropertyChange[];
|
|
650
|
+
/** Tracked cell structural revision for round-trip + accept/reject. */
|
|
477
651
|
cellMarker?: {
|
|
478
652
|
kind: "ins" | "del";
|
|
479
653
|
info: {
|
|
480
654
|
revisionId: number;
|
|
481
655
|
author: string;
|
|
482
656
|
date?: string | null;
|
|
483
|
-
initials?: string | null;
|
|
657
|
+
initials?: string | null;
|
|
658
|
+
/** `"suggested"` marks this as an AI proposal (stripped until accepted). */
|
|
484
659
|
provenance?: TrackedChangeProvenance;
|
|
485
660
|
suggestionId?: string | null;
|
|
486
661
|
};
|
|
@@ -499,8 +674,10 @@ type TableCellAttrs = {
|
|
|
499
674
|
};
|
|
500
675
|
verticalMerge?: "continue" | "rest";
|
|
501
676
|
verticalMergeOriginal?: "continue" | "rest";
|
|
502
|
-
};
|
|
503
|
-
|
|
677
|
+
};
|
|
678
|
+
/** Preserve a DOCX vMerge restart even when PM cannot model it as a rowspan. */
|
|
679
|
+
_preserveVMergeRestart?: boolean;
|
|
680
|
+
/** Original DOCX vMerge continuation cells skipped into this PM rowspan. */
|
|
504
681
|
_docxVMergeContinuationCells?: document_d_exports.TableCell[];
|
|
505
682
|
};
|
|
506
683
|
//#endregion
|