@stll/folio-core 0.15.0 → 0.15.2
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/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/commentParser.js +30 -2
- 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/drawingIdNormalization.d.ts +5 -0
- package/dist/docx/drawingIdNormalization.js +35 -0
- package/dist/docx/drawingUtils.d.ts +24 -3
- package/dist/docx/drawingUtils.js +134 -28
- 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 +4 -3
- package/dist/docx/headerFooterVerbatim.js +6 -1
- 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 +31 -15
- package/dist/docx/paragraphTextBoxEnrichment.d.ts +0 -1
- package/dist/docx/paragraphTextBoxEnrichment.js +2 -1
- package/dist/docx/paragraphTraversal.d.ts +5 -10
- package/dist/docx/paragraphTraversal.js +20 -13
- package/dist/docx/parser.d.ts +15 -8
- package/dist/docx/parser.js +22 -1
- package/dist/docx/parserEnums.d.ts +5 -2
- package/dist/docx/parserEnums.js +6 -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/runConsolidator.js +0 -1
- package/dist/docx/runParser.d.ts +0 -1
- package/dist/docx/runParser.js +25 -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 +19 -40
- 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 +53 -32
- package/dist/docx/serializer/sectionPropertiesSerializer.d.ts +0 -1
- package/dist/docx/serializer/sectionPropertiesSerializer.js +7 -5
- 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 +16 -123
- 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 +11 -12
- package/dist/docx/textBoxParser.d.ts +1 -2
- package/dist/docx/textBoxParser.js +5 -2
- 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 +1 -0
- 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/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 +6 -4
- package/dist/prosemirror/attrs/index.js +22 -2
- 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 +17 -10
- 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 +17 -3
- 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/TabExtension.js +32 -9
- 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 +2 -3
- package/dist/prosemirror/schema/marks.d.ts +8 -5
- package/dist/prosemirror/schema/nodes.d.ts +344 -164
- 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/prosemirror/validation.js +5 -3
- 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/content.d.ts +2 -2
- package/dist/types/document.d.ts +0 -3
- package/dist/types/documentEnumValues.d.ts +5 -1
- package/dist/types/documentEnumValues.js +19 -1
- package/dist/types/index.d.ts +2 -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 +0 -1
- 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,30 +1,38 @@
|
|
|
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";
|
|
10
10
|
};
|
|
11
|
+
type TabAttrs = {
|
|
12
|
+
positional?: document_d_exports.PositionalTab;
|
|
13
|
+
};
|
|
11
14
|
/**
|
|
12
15
|
* Paragraph node attributes - maps to ParagraphFormatting
|
|
13
16
|
*/
|
|
14
17
|
type ParagraphAttrs = {
|
|
15
18
|
paraId?: string;
|
|
16
19
|
textId?: string;
|
|
17
|
-
alignment?: document_d_exports.ParagraphAlignment;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
alignment?: document_d_exports.ParagraphAlignment;
|
|
21
|
+
/** Effective East Asian line-edge policy (`w:kinsoku`). */
|
|
22
|
+
kinsoku?: boolean;
|
|
23
|
+
/** Effective hanging-punctuation policy (`w:overflowPunct`). */
|
|
24
|
+
overflowPunctuation?: boolean;
|
|
25
|
+
/** Effective paragraph opt-out from document automatic hyphenation. */
|
|
20
26
|
suppressAutoHyphens?: boolean;
|
|
21
27
|
spaceBefore?: number;
|
|
22
28
|
spaceAfter?: number;
|
|
23
29
|
lineSpacing?: number;
|
|
24
30
|
lineSpacingRule?: document_d_exports.LineSpacingRule;
|
|
25
31
|
snapToGrid?: boolean;
|
|
26
|
-
spacingExplicit?: SpacingExplicit;
|
|
27
|
-
|
|
32
|
+
spacingExplicit?: SpacingExplicit;
|
|
33
|
+
/** Layout provenance: document defaults survive on empty paragraphs. */
|
|
34
|
+
spacingFromDocDefaults?: SpacingExplicit;
|
|
35
|
+
/** Layout provenance: implicit default-style spacing survives on empty paragraphs. */
|
|
28
36
|
spacingFromImplicitDefaultStyle?: SpacingExplicit;
|
|
29
37
|
indentLeft?: number;
|
|
30
38
|
indentRight?: number;
|
|
@@ -45,22 +53,32 @@ type ParagraphAttrs = {
|
|
|
45
53
|
numPrFromStyle?: {
|
|
46
54
|
numId?: number;
|
|
47
55
|
ilvl?: number;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
};
|
|
57
|
+
/** List number format (decimal, lowerRoman, upperRoman, etc.) for CSS counter styling */
|
|
58
|
+
listNumFmt?: document_d_exports.NumberFormat;
|
|
59
|
+
/** Whether this is a bullet list */
|
|
60
|
+
listIsBullet?: boolean;
|
|
61
|
+
/** Whether this level uses legal numbering (parent placeholders render decimal). */
|
|
62
|
+
listIsLegal?: boolean;
|
|
63
|
+
/** Computed list marker text (e.g., "1.", "1.1.", "•") */
|
|
64
|
+
listMarker?: string;
|
|
65
|
+
/** Whether the list marker is hidden (w:vanish on numbering level rPr) */
|
|
66
|
+
listMarkerHidden?: boolean;
|
|
67
|
+
/** Marker font family from numbering level rPr */
|
|
68
|
+
listMarkerFontFamily?: string;
|
|
69
|
+
/** Marker font size from numbering level rPr, in points */
|
|
70
|
+
listMarkerFontSize?: number;
|
|
71
|
+
/** Marker bold state from numbering level rPr */
|
|
72
|
+
listMarkerBold?: boolean;
|
|
73
|
+
/** Horizontal alignment of the marker around the paragraph's list anchor. */
|
|
57
74
|
listMarkerAlignment?: "left" | "center" | "right";
|
|
58
75
|
/**
|
|
59
76
|
* `w:suff` (§17.9.25) — what follows the marker before body text.
|
|
60
77
|
* `tab` (default) grows the marker to the next tab stop; `space` adds one
|
|
61
78
|
* space glyph; `nothing` lets body text butt against the marker.
|
|
62
79
|
*/
|
|
63
|
-
listMarkerSuffix?: "tab" | "space" | "nothing";
|
|
80
|
+
listMarkerSuffix?: "tab" | "space" | "nothing";
|
|
81
|
+
/** `w:caps` on the numbering level rPr — render marker in upper case. */
|
|
64
82
|
listMarkerAllCaps?: boolean;
|
|
65
83
|
/**
|
|
66
84
|
* Inline LISTNUM count carried by this paragraph. Each advances the
|
|
@@ -73,10 +91,14 @@ type ParagraphAttrs = {
|
|
|
73
91
|
* twips) is where the slot after the tab should land — used to align an
|
|
74
92
|
* inline LISTNUM "(a)" with the deeper level's marker column.
|
|
75
93
|
*/
|
|
76
|
-
listMarkerSecondSlotOffsetTwips?: number;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
94
|
+
listMarkerSecondSlotOffsetTwips?: number;
|
|
95
|
+
/** Number format for each level used by multi-level marker templates. */
|
|
96
|
+
listLevelNumFmts?: document_d_exports.NumberFormat[];
|
|
97
|
+
/** Initial counter for each level used by multi-level marker templates. */
|
|
98
|
+
listLevelStarts?: number[];
|
|
99
|
+
/** Abstract numbering ID shared by numbering instances. */
|
|
100
|
+
listAbstractNumId?: number;
|
|
101
|
+
/** Numbering start override for this numId/level. */
|
|
80
102
|
listStartOverride?: number;
|
|
81
103
|
styleId?: string;
|
|
82
104
|
borders?: {
|
|
@@ -89,13 +111,17 @@ type ParagraphAttrs = {
|
|
|
89
111
|
};
|
|
90
112
|
shading?: document_d_exports.ShadingProperties;
|
|
91
113
|
tabs?: document_d_exports.TabStop[];
|
|
92
|
-
pageBreakBefore?: boolean;
|
|
93
|
-
|
|
94
|
-
|
|
114
|
+
pageBreakBefore?: boolean;
|
|
115
|
+
/** Word's cached rendered-page-break marker; preserved for round-trip only. */
|
|
116
|
+
renderedPageBreakBefore?: boolean;
|
|
117
|
+
/** Internal import marker for a paragraph whose only run content is a hard page break. */
|
|
118
|
+
_pageBreakCarrier?: boolean;
|
|
119
|
+
/** Internal import marker for a hard page break after this paragraph's text. */
|
|
95
120
|
_trailingPageBreak?: boolean;
|
|
96
121
|
keepNext?: boolean;
|
|
97
122
|
keepLines?: boolean;
|
|
98
|
-
widowControl?: boolean;
|
|
123
|
+
widowControl?: boolean;
|
|
124
|
+
/** Contextual spacing — suppress space between same-style paragraphs */
|
|
99
125
|
contextualSpacing?: boolean;
|
|
100
126
|
defaultTextFormatting?: document_d_exports.TextFormatting;
|
|
101
127
|
sectionBreakType?: "nextPage" | "continuous" | "oddPage" | "evenPage";
|
|
@@ -115,7 +141,8 @@ type ParagraphAttrs = {
|
|
|
115
141
|
* Preserve their relationship metadata at the paragraph boundary so a
|
|
116
142
|
* no-edit DOCX round-trip does not silently drop hyperlink elements. */
|
|
117
143
|
_emptyHyperlinks?: {
|
|
118
|
-
/** ProseMirror inline offset where the zero-width hyperlink appeared. */
|
|
144
|
+
/** ProseMirror inline offset where the zero-width hyperlink appeared. */
|
|
145
|
+
offset: number;
|
|
119
146
|
href?: document_d_exports.Hyperlink["href"];
|
|
120
147
|
anchor?: document_d_exports.Hyperlink["anchor"];
|
|
121
148
|
tooltip?: document_d_exports.Hyperlink["tooltip"];
|
|
@@ -180,23 +207,34 @@ type ImagePositionAttrs = {
|
|
|
180
207
|
*/
|
|
181
208
|
type ImageAttrs = {
|
|
182
209
|
src: string;
|
|
210
|
+
docPrName?: string;
|
|
183
211
|
alt?: string;
|
|
184
|
-
title?: string;
|
|
185
|
-
|
|
212
|
+
title?: string;
|
|
213
|
+
/** Width in pixels (already converted from EMU) */
|
|
214
|
+
width?: number;
|
|
215
|
+
/** Height in pixels (already converted from EMU) */
|
|
186
216
|
height?: number;
|
|
187
|
-
rId?: string;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
217
|
+
rId?: string;
|
|
218
|
+
/** Wrap type from DOCX: inline, square, tight, through, topAndBottom, behind, inFront */
|
|
219
|
+
wrapType?: document_d_exports.ImageWrap["type"];
|
|
220
|
+
/** Display mode for CSS: inline (flows with text), float (left/right float), block (centered) */
|
|
221
|
+
displayMode?: "inline" | "float" | "block";
|
|
222
|
+
/** CSS float direction for floating images */
|
|
223
|
+
cssFloat?: "left" | "right" | "none";
|
|
224
|
+
/** CSS transform string (rotation, flip) */
|
|
191
225
|
transform?: string;
|
|
192
226
|
/**
|
|
193
227
|
* Opacity in [0, 1] from `<a:alphaModFix amt>`. Undefined / 1 means fully
|
|
194
228
|
* opaque (no CSS `opacity` emitted). eigenpal #424.
|
|
195
229
|
*/
|
|
196
|
-
opacity?: number;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
230
|
+
opacity?: number;
|
|
231
|
+
/** Distance from text above (pixels) */
|
|
232
|
+
distTop?: number;
|
|
233
|
+
/** Distance from text below (pixels) */
|
|
234
|
+
distBottom?: number;
|
|
235
|
+
/** Distance from text left (pixels) */
|
|
236
|
+
distLeft?: number;
|
|
237
|
+
/** Distance from text right (pixels) */
|
|
200
238
|
distRight?: number;
|
|
201
239
|
/**
|
|
202
240
|
* wp:srcRect crop fractions in [0, 1]. Carried through the editor so a
|
|
@@ -206,53 +244,87 @@ type ImageAttrs = {
|
|
|
206
244
|
cropTop?: number;
|
|
207
245
|
cropRight?: number;
|
|
208
246
|
cropBottom?: number;
|
|
209
|
-
cropLeft?: number;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
247
|
+
cropLeft?: number;
|
|
248
|
+
/** Position for floating images (horizontal and vertical alignment) */
|
|
249
|
+
position?: ImagePositionAttrs;
|
|
250
|
+
/** Use the containing table cell as the anchor's positioning scope (the OOXML default). */
|
|
251
|
+
layoutInCell?: boolean;
|
|
252
|
+
/** Border width in pixels */
|
|
253
|
+
borderWidth?: number;
|
|
254
|
+
/** Border color as CSS color string */
|
|
255
|
+
borderColor?: string;
|
|
256
|
+
/** Border style (CSS border-style value) */
|
|
257
|
+
borderStyle?: string;
|
|
258
|
+
/** Wrap text setting from DOCX (left, right, bothSides, largest) for round-trip */
|
|
259
|
+
wrapText?: NonNullable<document_d_exports.ImageWrap["wrapText"]>;
|
|
260
|
+
/** Hyperlink URL for clickable image */
|
|
261
|
+
hlinkHref?: string;
|
|
262
|
+
/** DOCX relationship ID for the clickable image hyperlink */
|
|
263
|
+
hlinkRId?: string;
|
|
264
|
+
/** Original OOXML for opaque/unsupported DOCX drawings. */
|
|
265
|
+
_docxRawXml?: string;
|
|
266
|
+
/** Embedded-object previews use their authored box as the exact line height. */
|
|
218
267
|
_docxObjectPreview?: boolean;
|
|
219
268
|
};
|
|
220
269
|
/**
|
|
221
270
|
* Field node attributes
|
|
222
271
|
*/
|
|
223
272
|
type FieldAttrs = {
|
|
224
|
-
/** Field type: PAGE, NUMPAGES, DATE, MERGEFIELD, etc. */
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
273
|
+
/** Field type: PAGE, NUMPAGES, DATE, MERGEFIELD, etc. */
|
|
274
|
+
fieldType: document_d_exports.FieldType;
|
|
275
|
+
/** Full field instruction (e.g. "PAGE \\* MERGEFORMAT") */
|
|
276
|
+
instruction: string;
|
|
277
|
+
/** Current/cached display text */
|
|
278
|
+
displayText: string;
|
|
279
|
+
/** Whether the field came from w:fldSimple or a complex fldChar range */
|
|
280
|
+
fieldKind: "simple" | "complex";
|
|
281
|
+
/** Field is locked */
|
|
282
|
+
fldLock?: boolean;
|
|
283
|
+
/** Field is dirty and should be recalculated by the host application */
|
|
229
284
|
dirty?: boolean;
|
|
230
285
|
};
|
|
231
286
|
/**
|
|
232
287
|
* Math equation node attributes
|
|
233
288
|
*/
|
|
234
289
|
type MathAttrs = {
|
|
235
|
-
/** Whether this is inline OMML or a block equation paragraph */
|
|
236
|
-
|
|
290
|
+
/** Whether this is inline OMML or a block equation paragraph */
|
|
291
|
+
display?: "inline" | "block";
|
|
292
|
+
/** Raw OMML XML for round-trip preservation */
|
|
293
|
+
ommlXml: string;
|
|
294
|
+
/** Plain text fallback used by the editor and layout engine */
|
|
237
295
|
plainText?: string;
|
|
238
296
|
};
|
|
239
297
|
/**
|
|
240
298
|
* Structured document tag node attributes
|
|
241
299
|
*/
|
|
242
300
|
type SdtAttrs = {
|
|
243
|
-
/** SDT type */
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
301
|
+
/** SDT type */
|
|
302
|
+
sdtType: document_d_exports.SdtType;
|
|
303
|
+
/** Alias (friendly name) */
|
|
304
|
+
alias?: string;
|
|
305
|
+
/** Tag (developer identifier) */
|
|
306
|
+
tag?: string;
|
|
307
|
+
/** Numeric `w:id/@w:val`. */
|
|
308
|
+
id?: number;
|
|
309
|
+
/** Lock setting */
|
|
310
|
+
lock?: NonNullable<document_d_exports.SdtProperties["lock"]>;
|
|
311
|
+
/** Placeholder text */
|
|
312
|
+
placeholder?: string;
|
|
313
|
+
/** Whether showing placeholder */
|
|
314
|
+
showingPlaceholder?: boolean;
|
|
315
|
+
/** Date format for date controls */
|
|
316
|
+
dateFormat?: string;
|
|
317
|
+
/** ISO 8601 bound date value (`w:date@w:fullDate`). */
|
|
318
|
+
dateValueISO?: string;
|
|
319
|
+
/** Dropdown/combobox list items as JSON string */
|
|
320
|
+
listItems?: string;
|
|
321
|
+
/** Selected dropdown / comboBox value (`w:dropDownList@w:lastValue`). */
|
|
322
|
+
dropdownLastValue?: string;
|
|
323
|
+
/** Checkbox checked state */
|
|
324
|
+
checked?: boolean;
|
|
325
|
+
/** Captured `<w:sdtPr>…</w:sdtPr>` for round-trip replay. */
|
|
326
|
+
rawPropertiesXml?: string;
|
|
327
|
+
/** Captured `<w:sdtEndPr>…</w:sdtEndPr>` for round-trip replay. */
|
|
256
328
|
rawEndPropertiesXml?: string;
|
|
257
329
|
};
|
|
258
330
|
/**
|
|
@@ -263,14 +335,18 @@ type SdtAttrs = {
|
|
|
263
335
|
type BlockSdtAttrs = {
|
|
264
336
|
sdtType: document_d_exports.SdtType;
|
|
265
337
|
alias?: string;
|
|
266
|
-
tag?: string;
|
|
338
|
+
tag?: string;
|
|
339
|
+
/** Numeric `w:id/@w:val`. */
|
|
267
340
|
id?: number;
|
|
268
341
|
lock?: NonNullable<document_d_exports.SdtProperties["lock"]>;
|
|
269
342
|
placeholder?: string;
|
|
270
343
|
showingPlaceholder?: boolean;
|
|
271
|
-
dateFormat?: string;
|
|
272
|
-
|
|
273
|
-
|
|
344
|
+
dateFormat?: string;
|
|
345
|
+
/** ISO 8601 bound date value (`w:date@w:fullDate`). */
|
|
346
|
+
dateValueISO?: string;
|
|
347
|
+
/** Dropdown/combobox list items as JSON string. */
|
|
348
|
+
listItems?: string;
|
|
349
|
+
/** Selected dropdown / comboBox value (`w:dropDownList@w:lastValue`). */
|
|
274
350
|
dropdownLastValue?: string;
|
|
275
351
|
checked?: boolean;
|
|
276
352
|
/**
|
|
@@ -278,77 +354,142 @@ type BlockSdtAttrs = {
|
|
|
278
354
|
* filler paragraph to satisfy PM's `block+`; on save the converter
|
|
279
355
|
* uses this flag to drop the filler instead of guessing from shape.
|
|
280
356
|
*/
|
|
281
|
-
_originallyEmpty?: boolean;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
357
|
+
_originallyEmpty?: boolean;
|
|
358
|
+
/** Captured `<w:sdtPr>…</w:sdtPr>` for round-trip replay. */
|
|
359
|
+
rawPropertiesXml?: string;
|
|
360
|
+
/** Captured `<w:sdtEndPr>…</w:sdtEndPr>` for round-trip replay. */
|
|
361
|
+
rawEndPropertiesXml?: string;
|
|
362
|
+
/** Verbatim XML for sdt siblings before sdtContent (range markers). */
|
|
363
|
+
rawSdtChildrenBeforeContent?: string;
|
|
364
|
+
/** Verbatim XML for sdt siblings after sdtContent (range markers). */
|
|
285
365
|
rawSdtChildrenAfterContent?: string;
|
|
286
366
|
};
|
|
287
367
|
/**
|
|
288
368
|
* Shape node attributes
|
|
289
369
|
*/
|
|
290
370
|
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
|
-
|
|
371
|
+
/** Shape type preset */
|
|
372
|
+
shapeType?: string;
|
|
373
|
+
/** Unique identifier */
|
|
374
|
+
shapeId?: string;
|
|
375
|
+
/** Width in pixels */
|
|
376
|
+
width?: number;
|
|
377
|
+
/** Height in pixels */
|
|
378
|
+
height?: number;
|
|
379
|
+
/** Fill color as CSS color */
|
|
380
|
+
fillColor?: string;
|
|
381
|
+
/** Authored OOXML fill color, retained when it references a theme slot. */
|
|
382
|
+
fillColorValue?: document_d_exports.ShapeFill["color"];
|
|
383
|
+
/** Fill type: none, solid, gradient, pattern, picture */
|
|
384
|
+
fillType?: document_d_exports.ShapeFill["type"];
|
|
385
|
+
/** Gradient type: linear, radial, rectangular, path */
|
|
386
|
+
gradientType?: NonNullable<document_d_exports.ShapeFill["gradient"]>["type"];
|
|
387
|
+
/** Gradient angle in degrees (for linear) */
|
|
388
|
+
gradientAngle?: number;
|
|
389
|
+
/** Gradient stops as JSON string: [{position, color}] */
|
|
390
|
+
gradientStops?: string;
|
|
391
|
+
/** Outline width in pixels */
|
|
392
|
+
outlineWidth?: number;
|
|
393
|
+
/** Outline color as CSS color */
|
|
394
|
+
outlineColor?: string;
|
|
395
|
+
/** Authored OOXML outline color, retained when it references a theme slot. */
|
|
396
|
+
outlineColorValue?: document_d_exports.ShapeOutline["color"];
|
|
397
|
+
/** Outline dash style, or `"none"` for an explicit no-outline. */
|
|
398
|
+
outlineStyle?: OutlineStyleAttr;
|
|
399
|
+
/** Line cap */
|
|
400
|
+
outlineCap?: NonNullable<document_d_exports.ShapeOutline["cap"]>;
|
|
401
|
+
/** Head arrow/end marker */
|
|
402
|
+
outlineHeadEnd?: NonNullable<document_d_exports.ShapeOutline["headEnd"]>;
|
|
403
|
+
/** Tail arrow/end marker */
|
|
404
|
+
outlineTailEnd?: NonNullable<document_d_exports.ShapeOutline["tailEnd"]>;
|
|
405
|
+
/** CSS transform */
|
|
406
|
+
transform?: string;
|
|
407
|
+
/** Display mode */
|
|
408
|
+
displayMode?: "inline" | "float" | "block";
|
|
409
|
+
/** CSS float */
|
|
410
|
+
cssFloat?: "left" | "right" | "none";
|
|
411
|
+
/** Wrap type */
|
|
412
|
+
wrapType?: document_d_exports.ImageWrap["type"];
|
|
413
|
+
/** Wrap text setting from DOCX (left, right, bothSides, largest) for round-trip */
|
|
414
|
+
wrapText?: NonNullable<document_d_exports.ImageWrap["wrapText"]>;
|
|
415
|
+
/** Distance from text above (pixels) */
|
|
416
|
+
distTop?: number;
|
|
417
|
+
/** Distance from text below (pixels) */
|
|
418
|
+
distBottom?: number;
|
|
419
|
+
/** Distance from text left (pixels) */
|
|
420
|
+
distLeft?: number;
|
|
421
|
+
/** Distance from text right (pixels) */
|
|
422
|
+
distRight?: number;
|
|
423
|
+
/** Position for floating shapes (horizontal and vertical alignment) */
|
|
424
|
+
position?: ImagePositionAttrs;
|
|
425
|
+
/** Shadow color as CSS color */
|
|
426
|
+
shadowColor?: string;
|
|
427
|
+
/** Shadow blur radius in pixels */
|
|
428
|
+
shadowBlur?: number;
|
|
429
|
+
/** Shadow X offset in pixels */
|
|
430
|
+
shadowOffsetX?: number;
|
|
431
|
+
/** Shadow Y offset in pixels */
|
|
432
|
+
shadowOffsetY?: number;
|
|
433
|
+
/** Glow color as CSS color */
|
|
434
|
+
glowColor?: string;
|
|
435
|
+
/** Glow radius in pixels */
|
|
321
436
|
glowRadius?: number;
|
|
322
437
|
};
|
|
323
438
|
/**
|
|
324
439
|
* Text box node attributes
|
|
325
440
|
*/
|
|
326
441
|
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
|
-
|
|
442
|
+
/** Width in pixels */
|
|
443
|
+
width?: number;
|
|
444
|
+
/** Height in pixels */
|
|
445
|
+
height?: number;
|
|
446
|
+
/** Text fitting behavior */
|
|
447
|
+
autoFit?: document_d_exports.ShapeTextBody["autoFit"];
|
|
448
|
+
/** Unique identifier */
|
|
449
|
+
textBoxId?: string;
|
|
450
|
+
/** Fill color as CSS color */
|
|
451
|
+
fillColor?: string;
|
|
452
|
+
/** Outline width in pixels */
|
|
453
|
+
outlineWidth?: number;
|
|
454
|
+
/** Outline color as CSS color */
|
|
455
|
+
outlineColor?: string;
|
|
456
|
+
/** Outline dash style, or `"none"` for an explicit no-outline. */
|
|
457
|
+
outlineStyle?: OutlineStyleAttr;
|
|
458
|
+
/** Internal margin top in pixels */
|
|
459
|
+
marginTop?: number;
|
|
460
|
+
/** Internal margin bottom in pixels */
|
|
461
|
+
marginBottom?: number;
|
|
462
|
+
/** Internal margin left in pixels */
|
|
463
|
+
marginLeft?: number;
|
|
464
|
+
/** Internal margin right in pixels */
|
|
465
|
+
marginRight?: number;
|
|
466
|
+
/** Vertical text alignment */
|
|
467
|
+
verticalAlign?: string;
|
|
468
|
+
/** Display mode */
|
|
469
|
+
displayMode?: "inline" | "float" | "block";
|
|
470
|
+
/** CSS float direction */
|
|
471
|
+
cssFloat?: "left" | "right" | "none";
|
|
472
|
+
/** Wrap type */
|
|
473
|
+
wrapType?: document_d_exports.ImageWrap["type"];
|
|
474
|
+
/** OOXML wrapText direction for anchored text boxes (eigenpal #474). */
|
|
475
|
+
wrapText?: "bothSides" | "left" | "right" | "largest";
|
|
476
|
+
/** Wrap distance from top edge, in pixels (OOXML distT, EMU-converted). */
|
|
477
|
+
distTop?: number;
|
|
478
|
+
/** Wrap distance from bottom edge, in pixels. */
|
|
479
|
+
distBottom?: number;
|
|
480
|
+
/** Wrap distance from left edge, in pixels. */
|
|
481
|
+
distLeft?: number;
|
|
482
|
+
/** Wrap distance from right edge, in pixels. */
|
|
483
|
+
distRight?: number;
|
|
484
|
+
/** Position for floating/anchored text boxes */
|
|
485
|
+
position?: ImagePositionAttrs;
|
|
486
|
+
/** Original DOCX placement hint for save-path reconstruction. */
|
|
487
|
+
_docxPlacement?: "standalone" | "inlineWithPrevious";
|
|
488
|
+
/** Original DOCX paragraph group for standalone text-box reconstruction. */
|
|
489
|
+
_docxGroupId?: string;
|
|
490
|
+
/** Inline anchor linking this block node to its source run position. */
|
|
491
|
+
_docxAnchorId?: string;
|
|
492
|
+
/** Original run-level revision wrapper for save-path reconstruction. */
|
|
352
493
|
_docxTrackedChange?: {
|
|
353
494
|
type: "insertion";
|
|
354
495
|
info: document_d_exports.TrackedChangeInfo;
|
|
@@ -361,7 +502,8 @@ type TextBoxAttrs = {
|
|
|
361
502
|
} | {
|
|
362
503
|
type: "moveTo";
|
|
363
504
|
info: document_d_exports.TrackedChangeInfo;
|
|
364
|
-
};
|
|
505
|
+
};
|
|
506
|
+
/** Original inline content-control ancestry for save-path reconstruction. */
|
|
365
507
|
_docxInlineSdts?: SdtAttrs[];
|
|
366
508
|
};
|
|
367
509
|
/** Internal inline position marker for an extracted text box block. */
|
|
@@ -372,22 +514,34 @@ type TextBoxAnchorAttrs = {
|
|
|
372
514
|
* Table node attributes
|
|
373
515
|
*/
|
|
374
516
|
type TableAttrs = {
|
|
375
|
-
/** Table style ID */
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
517
|
+
/** Table style ID */
|
|
518
|
+
styleId?: string;
|
|
519
|
+
/** Table width (in twips) */
|
|
520
|
+
width?: number;
|
|
521
|
+
/** Table width type ('auto', 'pct', 'dxa') */
|
|
522
|
+
widthType?: document_d_exports.TableWidthType;
|
|
523
|
+
/** Table justification/alignment */
|
|
524
|
+
justification?: "left" | "center" | "right";
|
|
525
|
+
/** Column widths (in twips) from w:tblGrid */
|
|
526
|
+
columnWidths?: number[];
|
|
527
|
+
/** Floating table properties (w:tblpPr) */
|
|
528
|
+
floating?: document_d_exports.FloatingTableProperties;
|
|
529
|
+
/** Default cell margins for the table (w:tblCellMar), in twips */
|
|
381
530
|
cellMargins?: {
|
|
382
531
|
top?: number;
|
|
383
532
|
bottom?: number;
|
|
384
533
|
left?: number;
|
|
385
534
|
right?: number;
|
|
386
|
-
};
|
|
387
|
-
look
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
535
|
+
};
|
|
536
|
+
/** Table look flags for conditional formatting (w:tblLook) */
|
|
537
|
+
look?: document_d_exports.TableLook;
|
|
538
|
+
/** Table-level borders (w:tblBorders) — full BorderSpec per side */
|
|
539
|
+
borders?: document_d_exports.TableBorders;
|
|
540
|
+
/** Effective table indent after style resolution. PM-only; never serialized. */
|
|
541
|
+
_resolvedIndent?: NonNullable<document_d_exports.TableFormatting["indent"]>;
|
|
542
|
+
/** Original table formatting from DOCX for lossless round-trip serialization */
|
|
543
|
+
_originalFormatting?: document_d_exports.TableFormatting;
|
|
544
|
+
/** Tracked table property changes (w:tblPrChange) for round-trip + accept/reject */
|
|
391
545
|
tblPrChange?: document_d_exports.TablePropertyChange[];
|
|
392
546
|
/**
|
|
393
547
|
* Marks this whole table as a *suggested* insertion (AI proposal). The table
|
|
@@ -400,11 +554,17 @@ type TableAttrs = {
|
|
|
400
554
|
* Table row attributes
|
|
401
555
|
*/
|
|
402
556
|
type TableRowAttrs = {
|
|
403
|
-
/** Row height (in twips) */
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
557
|
+
/** Row height (in twips) */
|
|
558
|
+
height?: number;
|
|
559
|
+
/** Height rule ('auto', 'exact', 'atLeast') */
|
|
560
|
+
heightRule?: NonNullable<document_d_exports.TableRowFormatting["heightRule"]>;
|
|
561
|
+
/** Is header row */
|
|
562
|
+
isHeader?: boolean;
|
|
563
|
+
/** Whether the row is hidden (`w:hidden`) */
|
|
564
|
+
hidden?: boolean;
|
|
565
|
+
/** Original row formatting from DOCX for lossless round-trip serialization */
|
|
566
|
+
_originalFormatting?: document_d_exports.TableRowFormatting;
|
|
567
|
+
/** Tracked row property changes (w:trPrChange) for round-trip + accept/reject */
|
|
408
568
|
trPrChange?: document_d_exports.TableRowPropertyChange[];
|
|
409
569
|
} & ({
|
|
410
570
|
/**
|
|
@@ -423,7 +583,8 @@ type TableRowAttrs = {
|
|
|
423
583
|
};
|
|
424
584
|
trDel?: never;
|
|
425
585
|
} | {
|
|
426
|
-
trIns?: never;
|
|
586
|
+
trIns?: never;
|
|
587
|
+
/** Tracked structural row deletion (w:trPr/w:del). */
|
|
427
588
|
trDel: {
|
|
428
589
|
revisionId: number;
|
|
429
590
|
author: string;
|
|
@@ -454,33 +615,50 @@ type SuggestedStructuralMarker = {
|
|
|
454
615
|
* Table cell attributes
|
|
455
616
|
*/
|
|
456
617
|
type TableCellAttrs = {
|
|
457
|
-
/** Column span */
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
618
|
+
/** Column span */
|
|
619
|
+
colspan: number;
|
|
620
|
+
/** Row span */
|
|
621
|
+
rowspan: number;
|
|
622
|
+
/** Column widths for prosemirror-tables resizing (array of pixel widths) */
|
|
623
|
+
colwidth?: number[] | null;
|
|
624
|
+
/** Cell width (in twips) */
|
|
625
|
+
width?: number;
|
|
626
|
+
/** Cell width type */
|
|
627
|
+
widthType?: document_d_exports.TableWidthType;
|
|
628
|
+
/** Vertical alignment */
|
|
629
|
+
verticalAlign?: "top" | "center" | "bottom";
|
|
630
|
+
/** Background color (RGB hex) */
|
|
631
|
+
backgroundColor?: string;
|
|
632
|
+
/** Resolved source color. PM-only; distinguishes theme rendering from a user override. */
|
|
633
|
+
_resolvedBackgroundColor?: string;
|
|
634
|
+
/** OOXML text direction (e.g. 'tbRl', 'btLr') */
|
|
635
|
+
textDirection?: NonNullable<document_d_exports.TableCellFormatting["textDirection"]>;
|
|
636
|
+
/** No text wrapping in cell */
|
|
637
|
+
noWrap?: boolean;
|
|
638
|
+
/** Effective end-of-cell marker suppression (`w:hideMark`). */
|
|
639
|
+
hideMark?: boolean;
|
|
640
|
+
/** Cell borders — full BorderSpec per side (style, color, size) */
|
|
641
|
+
borders?: document_d_exports.TableCellBorders;
|
|
642
|
+
/** Cell margins/padding in twips per side */
|
|
469
643
|
margins?: {
|
|
470
644
|
top?: number;
|
|
471
645
|
bottom?: number;
|
|
472
646
|
left?: number;
|
|
473
647
|
right?: number;
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
|
|
648
|
+
};
|
|
649
|
+
/** Original cell formatting from DOCX for lossless round-trip serialization */
|
|
650
|
+
_originalFormatting?: document_d_exports.TableCellFormatting;
|
|
651
|
+
/** Tracked cell property changes (w:tcPrChange) for round-trip + accept/reject */
|
|
652
|
+
tcPrChange?: document_d_exports.TableCellPropertyChange[];
|
|
653
|
+
/** Tracked cell structural revision for round-trip + accept/reject. */
|
|
477
654
|
cellMarker?: {
|
|
478
655
|
kind: "ins" | "del";
|
|
479
656
|
info: {
|
|
480
657
|
revisionId: number;
|
|
481
658
|
author: string;
|
|
482
659
|
date?: string | null;
|
|
483
|
-
initials?: string | null;
|
|
660
|
+
initials?: string | null;
|
|
661
|
+
/** `"suggested"` marks this as an AI proposal (stripped until accepted). */
|
|
484
662
|
provenance?: TrackedChangeProvenance;
|
|
485
663
|
suggestionId?: string | null;
|
|
486
664
|
};
|
|
@@ -499,9 +677,11 @@ type TableCellAttrs = {
|
|
|
499
677
|
};
|
|
500
678
|
verticalMerge?: "continue" | "rest";
|
|
501
679
|
verticalMergeOriginal?: "continue" | "rest";
|
|
502
|
-
};
|
|
503
|
-
|
|
680
|
+
};
|
|
681
|
+
/** Preserve a DOCX vMerge restart even when PM cannot model it as a rowspan. */
|
|
682
|
+
_preserveVMergeRestart?: boolean;
|
|
683
|
+
/** Original DOCX vMerge continuation cells skipped into this PM rowspan. */
|
|
504
684
|
_docxVMergeContinuationCells?: document_d_exports.TableCell[];
|
|
505
685
|
};
|
|
506
686
|
//#endregion
|
|
507
|
-
export { BlockSdtAttrs, FieldAttrs, HardBreakAttrs, ImageAttrs, ImagePositionAttrs, MathAttrs, ParagraphAttrs, SdtAttrs, ShapeAttrs, SuggestedStructuralMarker, TableAttrs, TableCellAttrs, TableRowAttrs, TextBoxAnchorAttrs, TextBoxAttrs };
|
|
687
|
+
export { BlockSdtAttrs, FieldAttrs, HardBreakAttrs, ImageAttrs, ImagePositionAttrs, MathAttrs, ParagraphAttrs, SdtAttrs, ShapeAttrs, SuggestedStructuralMarker, TabAttrs, TableAttrs, TableCellAttrs, TableRowAttrs, TextBoxAnchorAttrs, TextBoxAttrs };
|