@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,17 +1,23 @@
|
|
|
1
1
|
import { document_d_exports } from "../types/document.js";
|
|
2
2
|
import { EditorState } from "prosemirror-state";
|
|
3
|
-
|
|
4
3
|
//#region src/prosemirror/selectionState.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Selection state for toolbar integration
|
|
7
6
|
*/
|
|
8
7
|
type SelectionState = {
|
|
9
|
-
/** Whether there's an active selection (not just cursor) */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
/** Whether there's an active selection (not just cursor) */
|
|
9
|
+
hasSelection: boolean;
|
|
10
|
+
/** Whether selection spans multiple paragraphs */
|
|
11
|
+
isMultiParagraph: boolean;
|
|
12
|
+
/** Current text formatting at selection/cursor */
|
|
13
|
+
textFormatting: document_d_exports.TextFormatting;
|
|
14
|
+
/** Current paragraph formatting */
|
|
15
|
+
paragraphFormatting: document_d_exports.ParagraphFormatting;
|
|
16
|
+
/** Current paragraph style ID (e.g., 'Heading1', 'Normal') */
|
|
17
|
+
styleId: string | null;
|
|
18
|
+
/** Start paragraph index */
|
|
19
|
+
startParagraphIndex: number;
|
|
20
|
+
/** End paragraph index */
|
|
15
21
|
endParagraphIndex: number;
|
|
16
22
|
};
|
|
17
23
|
/**
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { document_d_exports } from "../../types/document.js";
|
|
2
|
-
|
|
3
2
|
//#region src/prosemirror/styles/styleResolver.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Resolved style properties ready for rendering
|
|
6
5
|
*/
|
|
7
6
|
type ResolvedParagraphStyle = {
|
|
8
|
-
/** Paragraph formatting (alignment, spacing, indentation, etc.) */
|
|
7
|
+
/** Paragraph formatting (alignment, spacing, indentation, etc.) */
|
|
8
|
+
paragraphFormatting?: document_d_exports.ParagraphFormatting;
|
|
9
|
+
/** Default run formatting from the style */
|
|
9
10
|
runFormatting?: document_d_exports.TextFormatting;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TextBoxAnchorAttrs } from "./schema/nodes.js";
|
|
2
2
|
import { ReadProseMirrorAttrsResult } from "./attrs/index.js";
|
|
3
3
|
import { Node } from "prosemirror-model";
|
|
4
|
-
|
|
5
4
|
//#region src/prosemirror/textBoxAnchorAttrs.d.ts
|
|
6
5
|
declare const readTextBoxAnchorAttrs: (node: Node) => ReadProseMirrorAttrsResult<TextBoxAnchorAttrs>;
|
|
7
6
|
declare const expectTextBoxAnchorAttrs: (node: Node) => TextBoxAnchorAttrs;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EditorState } from "prosemirror-state";
|
|
2
|
-
|
|
3
2
|
//#region src/prosemirror/utils/extractTrackedChanges.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* One tracked change surfaced by {@link extractTrackedChanges}. Each entry
|
|
@@ -43,8 +42,10 @@ type TrackedChangeEntry = {
|
|
|
43
42
|
* Only set when `type === 'replacement'` — the text the user removed.
|
|
44
43
|
* The inserted text lives in {@link TrackedChangeEntry.text}.
|
|
45
44
|
*/
|
|
46
|
-
deletedText?: string | undefined;
|
|
47
|
-
|
|
45
|
+
deletedText?: string | undefined;
|
|
46
|
+
/** Author that minted the revision (`w:author`). */
|
|
47
|
+
author: string;
|
|
48
|
+
/** ISO timestamp the revision was minted (`w:date`). May be undefined for legacy imports. */
|
|
48
49
|
date?: string | undefined;
|
|
49
50
|
/**
|
|
50
51
|
* Document position where the revision starts. For inline types this
|
|
@@ -58,7 +59,8 @@ type TrackedChangeEntry = {
|
|
|
58
59
|
* LAST run in the group; the intervening structural positions are not
|
|
59
60
|
* preserved.
|
|
60
61
|
*/
|
|
61
|
-
to: number;
|
|
62
|
+
to: number;
|
|
63
|
+
/** The `w:id` of the revision. */
|
|
62
64
|
revisionId: number;
|
|
63
65
|
/**
|
|
64
66
|
* Only set when `type === 'replacement'` — the insertion half carries
|
|
@@ -80,7 +82,8 @@ type TrackedChangeEntry = {
|
|
|
80
82
|
* @public
|
|
81
83
|
*/
|
|
82
84
|
type TrackedChangesResult = {
|
|
83
|
-
/** Tracked-change entries, sorted by document position, with adjacent same-revision entries merged. */
|
|
85
|
+
/** Tracked-change entries, sorted by document position, with adjacent same-revision entries merged. */
|
|
86
|
+
entries: TrackedChangeEntry[];
|
|
84
87
|
/**
|
|
85
88
|
* Map of `commentId -> revisionId` for comments whose range overlaps a tracked-change mark.
|
|
86
89
|
* Consumers (DocxEditor's threading effect) use this to thread comments under their tracked change.
|
|
@@ -22,24 +22,33 @@ type TabLeader = "none" | "dot" | "hyphen" | "underscore" | "middleDot" | "heavy
|
|
|
22
22
|
* Tab stop definition
|
|
23
23
|
*/
|
|
24
24
|
type TabStop = {
|
|
25
|
-
/** Tab alignment mode */
|
|
26
|
-
|
|
25
|
+
/** Tab alignment mode */
|
|
26
|
+
val: TabAlignment;
|
|
27
|
+
/** Position in twips from left margin */
|
|
28
|
+
pos: number;
|
|
29
|
+
/** Optional leader character */
|
|
27
30
|
leader?: TabLeader;
|
|
28
31
|
};
|
|
29
32
|
/**
|
|
30
33
|
* Context for tab calculations
|
|
31
34
|
*/
|
|
32
35
|
type TabContext = {
|
|
33
|
-
/** Explicit tab stops from paragraph or style */
|
|
34
|
-
|
|
36
|
+
/** Explicit tab stops from paragraph or style */
|
|
37
|
+
explicitStops?: TabStop[];
|
|
38
|
+
/** Default tab interval in twips (default: 720 = 0.5 inch) */
|
|
39
|
+
defaultTabInterval?: number;
|
|
40
|
+
/** Left indent in twips */
|
|
35
41
|
leftIndent?: number;
|
|
36
42
|
};
|
|
37
43
|
/**
|
|
38
44
|
* Result of tab width calculation
|
|
39
45
|
*/
|
|
40
46
|
type TabWidthResult = {
|
|
41
|
-
/** Width of the tab in pixels */
|
|
42
|
-
|
|
47
|
+
/** Width of the tab in pixels */
|
|
48
|
+
width: number;
|
|
49
|
+
/** Leader character to render (if any) */
|
|
50
|
+
leader?: TabLeader;
|
|
51
|
+
/** Alignment that was applied */
|
|
43
52
|
alignment: TabAlignment | "default";
|
|
44
53
|
};
|
|
45
54
|
/** Default tab interval: 720 twips = 0.5 inch */
|
|
@@ -80,7 +89,9 @@ declare function computeTabStops(context: TabContext): TabStop[];
|
|
|
80
89
|
* this module owns the stop grid + alignment math without owning measurement.
|
|
81
90
|
*/
|
|
82
91
|
type TabFollowingContent = {
|
|
83
|
-
/** Total width of the runs after the tab. Used for `end` and `center` stops. */
|
|
92
|
+
/** Total width of the runs after the tab. Used for `end` and `center` stops. */
|
|
93
|
+
followingWidth?: number;
|
|
94
|
+
/** Width of the content before the decimal separator. Used for `decimal` stops. */
|
|
84
95
|
decimalPrefixWidth?: number;
|
|
85
96
|
};
|
|
86
97
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { readBlockSdtAttrs, readCharacterSpacingMarkAttrs, readCharacterStyleMarkAttrs, readCommentMarkAttrs, readEmphasisMarkAttrs, readFieldAttrs, readFontFamilyMarkAttrs, readFontSizeMarkAttrs, readFootnoteRefMarkAttrs, readHardBreakAttrs, readHighlightMarkAttrs, readHyperlinkMarkAttrs, readImageAttrs, readLanguageMarkAttrs, readMathAttrs, readParagraphAttrs, readRunFormattingOverrideMarkAttrs, readRunPropertyChangeMarkAttrs, readRunShadingMarkAttrs, readSdtAttrs, readShapeAttrs, readStrikeMarkAttrs, readTableAttrs, readTableCellAttrs, readTableRowAttrs, readTextBoxAttrs, readTextColorMarkAttrs, readTextEffectMarkAttrs, readTrackedChangeMarkAttrs, readUnderlineMarkAttrs } from "./attrs/index.js";
|
|
1
|
+
import { readBlockSdtAttrs, readCharacterSpacingMarkAttrs, readCharacterStyleMarkAttrs, readCommentMarkAttrs, readEmphasisMarkAttrs, readFieldAttrs, readFontFamilyMarkAttrs, readFontSizeMarkAttrs, readFootnoteRefMarkAttrs, readHardBreakAttrs, readHighlightMarkAttrs, readHyperlinkMarkAttrs, readImageAttrs, readLanguageMarkAttrs, readMathAttrs, readParagraphAttrs, readRunFormattingOverrideMarkAttrs, readRunPropertyChangeMarkAttrs, readRunShadingMarkAttrs, readSdtAttrs, readShapeAttrs, readStrikeMarkAttrs, readTabAttrs, readTableAttrs, readTableCellAttrs, readTableRowAttrs, readTextBoxAttrs, readTextColorMarkAttrs, readTextEffectMarkAttrs, readTrackedChangeMarkAttrs, readUnderlineMarkAttrs } from "./attrs/index.js";
|
|
2
2
|
import { readTextBoxAnchorAttrs } from "./textBoxAnchorAttrs.js";
|
|
3
3
|
//#region src/prosemirror/validation.ts
|
|
4
4
|
var ProseMirrorDocumentValidationError = class extends Error {
|
|
@@ -49,8 +49,10 @@ const validateNodeAttrs = (node, path, issues) => {
|
|
|
49
49
|
case "text":
|
|
50
50
|
case "horizontalRule":
|
|
51
51
|
case "pageBreak":
|
|
52
|
-
case "renderedPageBreak":
|
|
53
|
-
case "tab":
|
|
52
|
+
case "renderedPageBreak": return;
|
|
53
|
+
case "tab":
|
|
54
|
+
appendAttrIssues(path, readTabAttrs(node), issues);
|
|
55
|
+
return;
|
|
54
56
|
case "hardBreak":
|
|
55
57
|
appendAttrIssues(path, readHardBreakAttrs(node), issues);
|
|
56
58
|
return;
|
package/dist/redline.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { FolioAIEditAppliedOperation, FolioAIEditSkippedOperation } from "./ai-edits/types.js";
|
|
2
2
|
import { FolioDocumentStoryHandle, FolioResolvedReviewedView } from "./ai-edits/headless.js";
|
|
3
3
|
import { FolioDocumentPrivacyOptions, FolioDocumentPrivacyReport } from "./docx/metadataPrivacy.js";
|
|
4
|
-
|
|
5
4
|
//#region src/redline.d.ts
|
|
6
5
|
/** Options for {@link generateRedlineDocx}. */
|
|
7
6
|
type GenerateRedlineDocxOptions = {
|
|
8
|
-
/** Author recorded on the generated tracked changes. (default: `"folio compare"`) */
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
/** Author recorded on the generated tracked changes. (default: `"folio compare"`) */
|
|
8
|
+
author?: string;
|
|
9
|
+
/** Resolved base input state. (default: `"final"`) */
|
|
10
|
+
baseView?: FolioResolvedReviewedView;
|
|
11
|
+
/** Resolved revised input state. (default: `"final"`) */
|
|
12
|
+
revisedView?: FolioResolvedReviewedView;
|
|
13
|
+
/** Optional output-only package-metadata privacy transforms. */
|
|
11
14
|
privacy?: FolioDocumentPrivacyOptions;
|
|
12
15
|
};
|
|
13
16
|
declare const InvalidGenerateRedlineDocxOptionsError_base: import("better-result").TaggedErrorClass<"InvalidGenerateRedlineDocxOptionsError", {
|
|
@@ -23,10 +26,15 @@ type GenerateRedlineUnprocessedStory = {
|
|
|
23
26
|
};
|
|
24
27
|
/** Result of {@link generateRedlineDocx}. */
|
|
25
28
|
type GenerateRedlineDocxResult = {
|
|
26
|
-
/** The base package with generated tracked changes. */
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
/** The base package with generated tracked changes. */
|
|
30
|
+
buffer: ArrayBuffer;
|
|
31
|
+
/** Operations applied across every matched story. */
|
|
32
|
+
applied: FolioAIEditAppliedOperation[];
|
|
33
|
+
/** Block operations that could not be applied. */
|
|
34
|
+
skipped: FolioAIEditSkippedOperation[];
|
|
35
|
+
/** Package parts that could not be represented as story-scoped text edits. */
|
|
36
|
+
unprocessedStories: GenerateRedlineUnprocessedStory[];
|
|
37
|
+
/** Privacy transforms applied to the generated package. */
|
|
30
38
|
privacyReport: FolioDocumentPrivacyReport;
|
|
31
39
|
};
|
|
32
40
|
/** Compare two buffers and return tracked changes for every matched editable story. */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EditorState } from "prosemirror-state";
|
|
2
|
-
|
|
3
2
|
//#region src/render-dom/BodySelectionOverlay.d.ts
|
|
4
3
|
type BodySelectionOverlayResult = {
|
|
5
4
|
type: "text";
|
|
@@ -18,14 +17,7 @@ type SyncBodySelectionOverlayOptions = {
|
|
|
18
17
|
};
|
|
19
18
|
declare class BodySelectionOverlay {
|
|
20
19
|
clear(pagesContainer: HTMLElement): void;
|
|
21
|
-
sync({
|
|
22
|
-
pagesContainer,
|
|
23
|
-
state,
|
|
24
|
-
zoom,
|
|
25
|
-
zIndex,
|
|
26
|
-
caretColor,
|
|
27
|
-
selectionColor
|
|
28
|
-
}: SyncBodySelectionOverlayOptions): BodySelectionOverlayResult;
|
|
20
|
+
sync({ pagesContainer, state, zoom, zIndex, caretColor, selectionColor }: SyncBodySelectionOverlayOptions): BodySelectionOverlayResult;
|
|
29
21
|
}
|
|
30
22
|
//#endregion
|
|
31
23
|
export { BodySelectionOverlay, BodySelectionOverlayResult, SyncBodySelectionOverlayOptions };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HiddenProseMirrorRemoteSelection } from "../controller/hiddenEditorManager.js";
|
|
2
2
|
import { RenderedDomContext, RenderedDomPoint, RenderedDomRect } from "./RenderedDomContext.js";
|
|
3
|
-
|
|
4
3
|
//#region src/render-dom/RemoteSelectionOverlay.d.ts
|
|
5
4
|
type SyncRemoteSelectionOverlayOptions = {
|
|
6
5
|
pagesContainer: HTMLElement;
|
|
@@ -18,13 +17,7 @@ declare const resolveRemoteSelectionOverlayGeometry: (renderedDomContext: Render
|
|
|
18
17
|
/** Paint collaborative cursors and selections over the rendered page DOM. */
|
|
19
18
|
declare class RemoteSelectionOverlay {
|
|
20
19
|
clear(pagesContainer: HTMLElement): void;
|
|
21
|
-
sync({
|
|
22
|
-
pagesContainer,
|
|
23
|
-
selections,
|
|
24
|
-
zoom,
|
|
25
|
-
zIndex,
|
|
26
|
-
renderedDomContext
|
|
27
|
-
}: SyncRemoteSelectionOverlayOptions): void;
|
|
20
|
+
sync({ pagesContainer, selections, zoom, zIndex, renderedDomContext }: SyncRemoteSelectionOverlayOptions): void;
|
|
28
21
|
}
|
|
29
22
|
//#endregion
|
|
30
23
|
export { RemoteSelectionOverlay, RemoteSelectionOverlayGeometry, SyncRemoteSelectionOverlayOptions, resolveRemoteSelectionOverlayGeometry };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RenderedDomContext } from "./RenderedDomContext.js";
|
|
2
|
-
|
|
3
2
|
//#region src/render-dom/resolveSidebarItemPositions.d.ts
|
|
4
3
|
type RenderedSidebarItem = {
|
|
5
4
|
id: string;
|
|
@@ -21,13 +20,6 @@ type ResolveSidebarItemPositionsOptions<T extends RenderedSidebarItem> = {
|
|
|
21
20
|
cardHeights: Map<string, number>;
|
|
22
21
|
lastKnown: Map<string, number>;
|
|
23
22
|
};
|
|
24
|
-
declare const resolveSidebarItemPositions: <T extends RenderedSidebarItem>({
|
|
25
|
-
items,
|
|
26
|
-
anchorPositions,
|
|
27
|
-
renderedDomContext,
|
|
28
|
-
zoom,
|
|
29
|
-
cardHeights,
|
|
30
|
-
lastKnown
|
|
31
|
-
}: ResolveSidebarItemPositionsOptions<T>) => ResolvedSidebarItemPosition<T>[];
|
|
23
|
+
declare const resolveSidebarItemPositions: <T extends RenderedSidebarItem>({ items, anchorPositions, renderedDomContext, zoom, cardHeights, lastKnown }: ResolveSidebarItemPositionsOptions<T>) => ResolvedSidebarItemPosition<T>[];
|
|
32
24
|
//#endregion
|
|
33
25
|
export { RenderedSidebarItem, ResolveSidebarItemPositionsOptions, ResolvedSidebarItemPosition, resolveSidebarItemPositions };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { document_d_exports } from "../types/document.js";
|
|
2
2
|
import { ResolvedParagraphStyle, TableCellParagraphSpacingOverlay } from "../prosemirror/styles/styleResolver.js";
|
|
3
|
-
|
|
4
3
|
//#region src/style-engine/styleEngine.d.ts
|
|
5
4
|
/** Engine construction options. */
|
|
6
5
|
type StyleEngineOptions = {
|
|
@@ -17,7 +16,8 @@ type StyleEngineOptions = {
|
|
|
17
16
|
/** Lightweight observability for cache effectiveness. */
|
|
18
17
|
type StyleEngineCacheStats = {
|
|
19
18
|
hits: number;
|
|
20
|
-
misses: number;
|
|
19
|
+
misses: number;
|
|
20
|
+
/** Total entries across all internal caches. */
|
|
21
21
|
size: number;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
@@ -28,13 +28,21 @@ type StyleEngineCacheStats = {
|
|
|
28
28
|
* objects are shared between cache hits — treat them as immutable.
|
|
29
29
|
*/
|
|
30
30
|
type StyleEngine = {
|
|
31
|
-
/** Look up a single named style by id. */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
/** Look up a single named style by id. */
|
|
32
|
+
getStyle: (styleId: string) => document_d_exports.Style | undefined;
|
|
33
|
+
/** True if a style with the given id is registered. */
|
|
34
|
+
hasStyle: (styleId: string) => boolean;
|
|
35
|
+
/** Return the document-wide defaults (`w:docDefaults`). */
|
|
36
|
+
getDocDefaults: () => document_d_exports.DocDefaults | undefined;
|
|
37
|
+
/** The style flagged `w:default="1"` for paragraphs, else "Normal". */
|
|
38
|
+
getDefaultParagraphStyle: () => document_d_exports.Style | undefined;
|
|
39
|
+
/** The style flagged `w:default="1"` for character styles. */
|
|
40
|
+
getDefaultCharacterStyle: () => document_d_exports.Style | undefined;
|
|
41
|
+
/** The style flagged `w:default="1"` for tables. */
|
|
42
|
+
getDefaultTableStyle: () => document_d_exports.Style | undefined;
|
|
43
|
+
/** All visible paragraph styles, sorted for toolbar use. */
|
|
44
|
+
getParagraphStyles: () => document_d_exports.Style[];
|
|
45
|
+
/** All visible table styles, sorted for the table-style gallery. */
|
|
38
46
|
getTableStyles: () => document_d_exports.Style[];
|
|
39
47
|
/**
|
|
40
48
|
* Resolve the full paragraph cascade for a given styleId.
|
|
@@ -64,8 +72,10 @@ type StyleEngine = {
|
|
|
64
72
|
* used when the caller has already merged docDefaults via the
|
|
65
73
|
* paragraph cascade and would otherwise double-apply font defaults.
|
|
66
74
|
*/
|
|
67
|
-
getRunStyleOwnProperties: (styleId: string | undefined | null) => document_d_exports.TextFormatting | undefined;
|
|
68
|
-
|
|
75
|
+
getRunStyleOwnProperties: (styleId: string | undefined | null) => document_d_exports.TextFormatting | undefined;
|
|
76
|
+
/** Drop every memoized cascade result. */
|
|
77
|
+
invalidate: () => void;
|
|
78
|
+
/** Inspect cache effectiveness (hits, misses, current size). */
|
|
69
79
|
stats: () => StyleEngineCacheStats;
|
|
70
80
|
};
|
|
71
81
|
/**
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { document_d_exports } from "../types/document.js";
|
|
2
2
|
import { DocumentStyleSet } from "./types.js";
|
|
3
3
|
import { DocxInput } from "../utils/docxInput.js";
|
|
4
|
-
|
|
5
4
|
//#region src/style-sets/extract.d.ts
|
|
6
5
|
type ExtractDocumentStyleSetOptions = {
|
|
7
|
-
name: string;
|
|
8
|
-
|
|
6
|
+
name: string;
|
|
7
|
+
/** Style IDs selected by the user. Omit to extract every style. */
|
|
8
|
+
styleIds?: readonly string[];
|
|
9
|
+
/** Defaults to the source document's default paragraph style. */
|
|
9
10
|
initialParagraphStyleId?: string;
|
|
10
11
|
};
|
|
11
12
|
type DocumentStyleCatalogEntry = {
|
package/dist/symbols.d.ts
CHANGED
|
@@ -8,13 +8,17 @@
|
|
|
8
8
|
* each adapter's own translator; the `char`/`name` pairs are the raw catalog.
|
|
9
9
|
*/
|
|
10
10
|
type SymbolEntry = {
|
|
11
|
-
/** The character to insert. */
|
|
11
|
+
/** The character to insert. */
|
|
12
|
+
char: string;
|
|
13
|
+
/** English descriptive name, used for search matching. */
|
|
12
14
|
name: string;
|
|
13
15
|
};
|
|
14
16
|
/** i18n message keys for the symbol-category display labels. */
|
|
15
17
|
type SymbolCategoryNameKey = "dialogs.insertSymbol.categories.common" | "dialogs.insertSymbol.categories.arrows" | "dialogs.insertSymbol.categories.math" | "dialogs.insertSymbol.categories.greek" | "dialogs.insertSymbol.categories.currency" | "dialogs.insertSymbol.categories.shapes";
|
|
16
18
|
type SymbolCategory = {
|
|
17
|
-
/** Stable category id (also the default active tab). */
|
|
19
|
+
/** Stable category id (also the default active tab). */
|
|
20
|
+
name: string;
|
|
21
|
+
/** i18n key for the category's display label. */
|
|
18
22
|
nameKey: SymbolCategoryNameKey;
|
|
19
23
|
symbols: SymbolEntry[];
|
|
20
24
|
};
|
package/dist/types/block-id.d.ts
CHANGED
|
@@ -26,7 +26,8 @@ type DeriveBlockIdInput = {
|
|
|
26
26
|
* Source paragraph's `w14:paraId` (or any equivalent stable id),
|
|
27
27
|
* or `null` when the paragraph has none.
|
|
28
28
|
*/
|
|
29
|
-
paraId: string | null;
|
|
29
|
+
paraId: string | null;
|
|
30
|
+
/** 1-based document order for the paragraph being derived. */
|
|
30
31
|
index: number;
|
|
31
32
|
/**
|
|
32
33
|
* Ids already minted in the same derivation pass. Used to bump
|
|
@@ -35,11 +36,7 @@ type DeriveBlockIdInput = {
|
|
|
35
36
|
*/
|
|
36
37
|
taken: ReadonlySet<string>;
|
|
37
38
|
};
|
|
38
|
-
declare const deriveBlockId: ({
|
|
39
|
-
paraId,
|
|
40
|
-
index,
|
|
41
|
-
taken
|
|
42
|
-
}: DeriveBlockIdInput) => FolioBlockId;
|
|
39
|
+
declare const deriveBlockId: ({ paraId, index, taken }: DeriveBlockIdInput) => FolioBlockId;
|
|
43
40
|
declare const isSequentialFolioBlockId: (id: string) => boolean;
|
|
44
41
|
/**
|
|
45
42
|
* Extract the paraId an id was derived from, if any. Returns `null`
|
package/dist/types/content.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BlockContent, BlockSdt, BookmarkEnd, BookmarkStart, BreakContent, Column, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, ComplexField, Deletion, DocumentBody, DrawingContent, Endnote, EndnotePosition, EndnoteProperties, Field, FieldCharContent, FieldType, FooterReference, Footnote, FootnotePosition, FootnoteProperties, HeaderFooter, HeaderFooterType, HeaderReference, Hyperlink, Image, ImageCrop, ImagePadding, ImagePosition, ImageSize, ImageTransform, ImageWrap, InlineSdt, Insertion, InstrTextContent, LineNumberRestart, MathEquation, MoveFrom, MoveFromRangeEnd, MoveFromRangeStart, MoveTo, MoveToRangeEnd, MoveToRangeStart, NoBreakHyphenContent, NoteNumberRestart, NoteReferenceContent, PageOrientation, Paragraph, ParagraphContent, ParagraphPropertyChange, PropertyChangeInfo, Run, RunContent, RunPropertyChange, SdtProperties, SdtType, Section, SectionProperties, SectionStart, Shape, ShapeContent, ShapeFill, ShapeOutline, ShapeTextBody, ShapeType, SimpleField, SoftHyphenContent, SymbolContent, TabContent, Table, TableCell, TableCellPropertyChange, TableRow, TableRowPropertyChange, TableStructuralChangeInfo, TextBox, TextContent, TrackedChangeInfo, TrackedRunChange, VerticalAlign } from "@stll/docx-core/model";
|
|
2
|
-
export type { BlockContent, BlockSdt, BookmarkEnd, BookmarkStart, BreakContent, Column, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, ComplexField, Deletion, DocumentBody, DrawingContent, Endnote, EndnotePosition, EndnoteProperties, Field, FieldCharContent, FieldType, FooterReference, Footnote, FootnotePosition, FootnoteProperties, HeaderFooter, HeaderFooterType, HeaderReference, Hyperlink, Image, ImageCrop, ImagePadding, ImagePosition, ImageSize, ImageTransform, ImageWrap, InlineSdt, Insertion, InstrTextContent, LineNumberRestart, MathEquation, MoveFrom, MoveFromRangeEnd, MoveFromRangeStart, MoveTo, MoveToRangeEnd, MoveToRangeStart, NoBreakHyphenContent, NoteNumberRestart, NoteReferenceContent, PageOrientation, Paragraph, ParagraphContent, ParagraphPropertyChange, PropertyChangeInfo, Run, RunContent, RunPropertyChange, SdtProperties, SdtType, Section, SectionProperties, SectionStart, Shape, ShapeContent, ShapeFill, ShapeOutline, ShapeTextBody, ShapeType, SimpleField, SoftHyphenContent, SymbolContent, TabContent, Table, TableCell, TableCellPropertyChange, TableRow, TableRowPropertyChange, TableStructuralChangeInfo, TextBox, TextContent, TrackedChangeInfo, TrackedRunChange, VerticalAlign };
|
|
1
|
+
import { BlockContent, BlockSdt, BookmarkEnd, BookmarkStart, BreakContent, Column, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, ComplexField, Deletion, DocumentBody, DrawingContent, Endnote, EndnotePosition, EndnoteProperties, Field, FieldCharContent, FieldType, FooterReference, Footnote, FootnotePosition, FootnoteProperties, HeaderFooter, HeaderFooterType, HeaderReference, Hyperlink, Image, ImageCrop, ImagePadding, ImagePosition, ImageSize, ImageTransform, ImageWrap, InlineSdt, Insertion, InstrTextContent, LineNumberRestart, MathEquation, MoveFrom, MoveFromRangeEnd, MoveFromRangeStart, MoveTo, MoveToRangeEnd, MoveToRangeStart, NoBreakHyphenContent, NoteNumberRestart, NoteReferenceContent, PageOrientation, Paragraph, ParagraphContent, ParagraphPropertyChange, PositionalTab, PropertyChangeInfo, Run, RunContent, RunPropertyChange, SdtProperties, SdtType, Section, SectionProperties, SectionStart, Shape, ShapeContent, ShapeFill, ShapeOutline, ShapeTextBody, ShapeType, SimpleField, SoftHyphenContent, SymbolContent, TabContent, Table, TableCell, TableCellPropertyChange, TableRow, TableRowPropertyChange, TableStructuralChangeInfo, TextBox, TextContent, TrackedChangeInfo, TrackedRunChange, VerticalAlign } from "@stll/docx-core/model";
|
|
2
|
+
export type { BlockContent, BlockSdt, BookmarkEnd, BookmarkStart, BreakContent, Column, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, ComplexField, Deletion, DocumentBody, DrawingContent, Endnote, EndnotePosition, EndnoteProperties, Field, FieldCharContent, FieldType, FooterReference, Footnote, FootnotePosition, FootnoteProperties, HeaderFooter, HeaderFooterType, HeaderReference, Hyperlink, Image, ImageCrop, ImagePadding, ImagePosition, ImageSize, ImageTransform, ImageWrap, InlineSdt, Insertion, InstrTextContent, LineNumberRestart, MathEquation, MoveFrom, MoveFromRangeEnd, MoveFromRangeStart, MoveTo, MoveToRangeEnd, MoveToRangeStart, NoBreakHyphenContent, NoteNumberRestart, NoteReferenceContent, PageOrientation, Paragraph, ParagraphContent, ParagraphPropertyChange, PositionalTab, PropertyChangeInfo, Run, RunContent, RunPropertyChange, SdtProperties, SdtType, Section, SectionProperties, SectionStart, Shape, ShapeContent, ShapeFill, ShapeOutline, ShapeTextBody, ShapeType, SimpleField, SoftHyphenContent, SymbolContent, TabContent, Table, TableCell, TableCellPropertyChange, TableRow, TableRowPropertyChange, TableStructuralChangeInfo, TextBox, TextContent, TrackedChangeInfo, TrackedRunChange, VerticalAlign };
|
package/dist/types/document.d.ts
CHANGED
|
@@ -6,10 +6,14 @@ declare const HIGHLIGHT_COLOR_VALUES: readonly ["black", "blue", "cyan", "darkBl
|
|
|
6
6
|
declare const TEXT_EFFECT_VALUES: readonly ["none", "blinkBackground", "lights", "antsBlack", "antsRed", "shimmer", "sparkle"];
|
|
7
7
|
declare const EMPHASIS_MARK_VALUES: readonly ["none", "dot", "comma", "circle", "underDot"];
|
|
8
8
|
declare const FONT_THEME_VALUES: readonly ["majorAscii", "majorHAnsi", "majorEastAsia", "majorBidi", "minorAscii", "minorHAnsi", "minorEastAsia", "minorBidi"];
|
|
9
|
+
declare const FONT_HINT_VALUES: readonly ["default", "eastAsia", "cs"];
|
|
9
10
|
declare const PARAGRAPH_ALIGNMENT_VALUES: readonly ["left", "center", "right", "both", "distribute", "mediumKashida", "highKashida", "lowKashida", "thaiDistribute"];
|
|
10
11
|
declare const LINE_SPACING_RULE_VALUES: readonly ["auto", "exact", "atLeast"];
|
|
11
12
|
declare const TAB_STOP_ALIGNMENT_VALUES: readonly ["left", "center", "right", "decimal", "bar", "clear", "num"];
|
|
12
13
|
declare const TAB_LEADER_VALUES: readonly ["none", "dot", "hyphen", "underscore", "heavy", "middleDot"];
|
|
14
|
+
declare const POSITIONAL_TAB_RELATIVE_TO_VALUES: readonly ["margin", "indent"];
|
|
15
|
+
declare const POSITIONAL_TAB_ALIGNMENT_VALUES: readonly ["left", "center", "right"];
|
|
16
|
+
declare const POSITIONAL_TAB_LEADER_VALUES: readonly ["none", "dot", "hyphen", "underscore", "middleDot"];
|
|
13
17
|
declare const FRAME_X_ALIGN_VALUES: readonly ["left", "center", "right", "inside", "outside"];
|
|
14
18
|
declare const FRAME_Y_ALIGN_VALUES: readonly ["top", "center", "bottom", "inside", "outside", "inline"];
|
|
15
19
|
declare const FRAME_WRAP_VALUES: readonly ["around", "auto", "none", "notBeside", "through", "tight"];
|
|
@@ -86,4 +90,4 @@ type OutlineStyleAttr = (typeof OUTLINE_STYLE_ATTR_VALUES)[number];
|
|
|
86
90
|
declare const NUMBER_FORMAT_VALUES: readonly ["decimal", "upperRoman", "lowerRoman", "upperLetter", "lowerLetter", "ordinal", "cardinalText", "ordinalText", "hex", "chicago", "ideographDigital", "japaneseCounting", "aiueo", "iroha", "decimalFullWidth", "decimalHalfWidth", "japaneseLegal", "japaneseDigitalTenThousand", "decimalEnclosedCircle", "decimalFullWidth2", "aiueoFullWidth", "irohaFullWidth", "decimalZero", "decimalZero3", "decimalZero4", "decimalZero5", "bullet", "ganada", "chosung", "decimalEnclosedFullstop", "decimalEnclosedParen", "decimalEnclosedCircleChinese", "ideographEnclosedCircle", "ideographTraditional", "ideographZodiac", "ideographZodiacTraditional", "taiwaneseCounting", "ideographLegalTraditional", "taiwaneseCountingThousand", "taiwaneseDigital", "chineseCounting", "chineseLegalSimplified", "chineseCountingThousand", "koreanDigital", "koreanCounting", "koreanLegal", "koreanDigital2", "vietnameseCounting", "russianLower", "russianUpper", "none", "numberInDash", "hebrew1", "hebrew2", "arabicAlpha", "arabicAbjad", "hindiVowels", "hindiConsonants", "hindiNumbers", "hindiCounting", "thaiLetters", "thaiNumbers", "thaiCounting"];
|
|
87
91
|
declare const LEVEL_SUFFIX_VALUES: readonly ["tab", "space", "nothing"];
|
|
88
92
|
//#endregion
|
|
89
|
-
export { BORDER_STYLE_VALUES, CONDITIONAL_STYLE_TYPE_VALUES, EMPHASIS_MARK_VALUES, FIELD_TYPE_VALUES, FLOATING_TABLE_X_SPEC_VALUES, FLOATING_TABLE_Y_SPEC_VALUES, FONT_THEME_VALUES, FRAME_WRAP_VALUES, FRAME_X_ALIGN_VALUES, FRAME_Y_ALIGN_VALUES, HIGHLIGHT_COLOR_VALUES, IMAGE_HORIZONTAL_ALIGNMENT_VALUES, IMAGE_HORIZONTAL_RELATIVE_TO_VALUES, IMAGE_VERTICAL_ALIGNMENT_VALUES, IMAGE_VERTICAL_RELATIVE_TO_VALUES, IMAGE_WRAP_TEXT_VALUES, IMAGE_WRAP_TYPE_VALUES, LEVEL_SUFFIX_VALUES, LINE_SPACING_RULE_VALUES, NUMBER_FORMAT_VALUES, OUTLINE_STYLE_ATTR_VALUES, OUTLINE_STYLE_CSS_ALIASES, OUTLINE_STYLE_CSS_ALIAS_VALUES, OutlineStyleAttr, OutlineStyleCssAlias, PARAGRAPH_ALIGNMENT_VALUES, SDT_LOCK_VALUES, SDT_TYPE_VALUES, SHADING_PATTERN_VALUES, SHAPE_OUTLINE_STYLE_VALUES, SHAPE_TYPE_VALUES, STYLE_TYPE_VALUES, TABLE_CELL_TEXT_DIRECTION_VALUES, TABLE_CELL_VERTICAL_ALIGNMENT_VALUES, TABLE_JUSTIFICATION_VALUES, TABLE_ROW_HEIGHT_RULE_VALUES, TABLE_WIDTH_TYPE_VALUES, TAB_LEADER_VALUES, TAB_STOP_ALIGNMENT_VALUES, TEXT_EFFECT_VALUES, THEME_COLOR_SLOT_VALUES, UNDERLINE_STYLE_VALUES };
|
|
93
|
+
export { BORDER_STYLE_VALUES, CONDITIONAL_STYLE_TYPE_VALUES, EMPHASIS_MARK_VALUES, FIELD_TYPE_VALUES, FLOATING_TABLE_X_SPEC_VALUES, FLOATING_TABLE_Y_SPEC_VALUES, FONT_HINT_VALUES, FONT_THEME_VALUES, FRAME_WRAP_VALUES, FRAME_X_ALIGN_VALUES, FRAME_Y_ALIGN_VALUES, HIGHLIGHT_COLOR_VALUES, IMAGE_HORIZONTAL_ALIGNMENT_VALUES, IMAGE_HORIZONTAL_RELATIVE_TO_VALUES, IMAGE_VERTICAL_ALIGNMENT_VALUES, IMAGE_VERTICAL_RELATIVE_TO_VALUES, IMAGE_WRAP_TEXT_VALUES, IMAGE_WRAP_TYPE_VALUES, LEVEL_SUFFIX_VALUES, LINE_SPACING_RULE_VALUES, NUMBER_FORMAT_VALUES, OUTLINE_STYLE_ATTR_VALUES, OUTLINE_STYLE_CSS_ALIASES, OUTLINE_STYLE_CSS_ALIAS_VALUES, OutlineStyleAttr, OutlineStyleCssAlias, PARAGRAPH_ALIGNMENT_VALUES, POSITIONAL_TAB_ALIGNMENT_VALUES, POSITIONAL_TAB_LEADER_VALUES, POSITIONAL_TAB_RELATIVE_TO_VALUES, SDT_LOCK_VALUES, SDT_TYPE_VALUES, SHADING_PATTERN_VALUES, SHAPE_OUTLINE_STYLE_VALUES, SHAPE_TYPE_VALUES, STYLE_TYPE_VALUES, TABLE_CELL_TEXT_DIRECTION_VALUES, TABLE_CELL_VERTICAL_ALIGNMENT_VALUES, TABLE_JUSTIFICATION_VALUES, TABLE_ROW_HEIGHT_RULE_VALUES, TABLE_WIDTH_TYPE_VALUES, TAB_LEADER_VALUES, TAB_STOP_ALIGNMENT_VALUES, TEXT_EFFECT_VALUES, THEME_COLOR_SLOT_VALUES, UNDERLINE_STYLE_VALUES };
|
|
@@ -106,6 +106,11 @@ const FONT_THEME_VALUES = [
|
|
|
106
106
|
"minorEastAsia",
|
|
107
107
|
"minorBidi"
|
|
108
108
|
];
|
|
109
|
+
const FONT_HINT_VALUES = [
|
|
110
|
+
"default",
|
|
111
|
+
"eastAsia",
|
|
112
|
+
"cs"
|
|
113
|
+
];
|
|
109
114
|
const PARAGRAPH_ALIGNMENT_VALUES = [
|
|
110
115
|
"left",
|
|
111
116
|
"center",
|
|
@@ -139,6 +144,19 @@ const TAB_LEADER_VALUES = [
|
|
|
139
144
|
"heavy",
|
|
140
145
|
"middleDot"
|
|
141
146
|
];
|
|
147
|
+
const POSITIONAL_TAB_RELATIVE_TO_VALUES = ["margin", "indent"];
|
|
148
|
+
const POSITIONAL_TAB_ALIGNMENT_VALUES = [
|
|
149
|
+
"left",
|
|
150
|
+
"center",
|
|
151
|
+
"right"
|
|
152
|
+
];
|
|
153
|
+
const POSITIONAL_TAB_LEADER_VALUES = [
|
|
154
|
+
"none",
|
|
155
|
+
"dot",
|
|
156
|
+
"hyphen",
|
|
157
|
+
"underscore",
|
|
158
|
+
"middleDot"
|
|
159
|
+
];
|
|
142
160
|
const FRAME_X_ALIGN_VALUES = [
|
|
143
161
|
"left",
|
|
144
162
|
"center",
|
|
@@ -690,4 +708,4 @@ const LEVEL_SUFFIX_VALUES = [
|
|
|
690
708
|
"nothing"
|
|
691
709
|
];
|
|
692
710
|
//#endregion
|
|
693
|
-
export { BORDER_STYLE_VALUES, CONDITIONAL_STYLE_TYPE_VALUES, EMPHASIS_MARK_VALUES, FIELD_TYPE_VALUES, FLOATING_TABLE_X_SPEC_VALUES, FLOATING_TABLE_Y_SPEC_VALUES, FONT_THEME_VALUES, FRAME_WRAP_VALUES, FRAME_X_ALIGN_VALUES, FRAME_Y_ALIGN_VALUES, HIGHLIGHT_COLOR_VALUES, IMAGE_HORIZONTAL_ALIGNMENT_VALUES, IMAGE_HORIZONTAL_RELATIVE_TO_VALUES, IMAGE_VERTICAL_ALIGNMENT_VALUES, IMAGE_VERTICAL_RELATIVE_TO_VALUES, IMAGE_WRAP_TEXT_VALUES, IMAGE_WRAP_TYPE_VALUES, LEVEL_SUFFIX_VALUES, LINE_SPACING_RULE_VALUES, NUMBER_FORMAT_VALUES, OUTLINE_STYLE_ATTR_VALUES, OUTLINE_STYLE_CSS_ALIASES, OUTLINE_STYLE_CSS_ALIAS_VALUES, PARAGRAPH_ALIGNMENT_VALUES, SDT_LOCK_VALUES, SDT_TYPE_VALUES, SHADING_PATTERN_VALUES, SHAPE_OUTLINE_STYLE_VALUES, SHAPE_TYPE_VALUES, STYLE_TYPE_VALUES, TABLE_CELL_TEXT_DIRECTION_VALUES, TABLE_CELL_VERTICAL_ALIGNMENT_VALUES, TABLE_JUSTIFICATION_VALUES, TABLE_ROW_HEIGHT_RULE_VALUES, TABLE_WIDTH_TYPE_VALUES, TAB_LEADER_VALUES, TAB_STOP_ALIGNMENT_VALUES, TEXT_EFFECT_VALUES, THEME_COLOR_SLOT_VALUES, UNDERLINE_STYLE_VALUES };
|
|
711
|
+
export { BORDER_STYLE_VALUES, CONDITIONAL_STYLE_TYPE_VALUES, EMPHASIS_MARK_VALUES, FIELD_TYPE_VALUES, FLOATING_TABLE_X_SPEC_VALUES, FLOATING_TABLE_Y_SPEC_VALUES, FONT_HINT_VALUES, FONT_THEME_VALUES, FRAME_WRAP_VALUES, FRAME_X_ALIGN_VALUES, FRAME_Y_ALIGN_VALUES, HIGHLIGHT_COLOR_VALUES, IMAGE_HORIZONTAL_ALIGNMENT_VALUES, IMAGE_HORIZONTAL_RELATIVE_TO_VALUES, IMAGE_VERTICAL_ALIGNMENT_VALUES, IMAGE_VERTICAL_RELATIVE_TO_VALUES, IMAGE_WRAP_TEXT_VALUES, IMAGE_WRAP_TYPE_VALUES, LEVEL_SUFFIX_VALUES, LINE_SPACING_RULE_VALUES, NUMBER_FORMAT_VALUES, OUTLINE_STYLE_ATTR_VALUES, OUTLINE_STYLE_CSS_ALIASES, OUTLINE_STYLE_CSS_ALIAS_VALUES, PARAGRAPH_ALIGNMENT_VALUES, POSITIONAL_TAB_ALIGNMENT_VALUES, POSITIONAL_TAB_LEADER_VALUES, POSITIONAL_TAB_RELATIVE_TO_VALUES, SDT_LOCK_VALUES, SDT_TYPE_VALUES, SHADING_PATTERN_VALUES, SHAPE_OUTLINE_STYLE_VALUES, SHAPE_TYPE_VALUES, STYLE_TYPE_VALUES, TABLE_CELL_TEXT_DIRECTION_VALUES, TABLE_CELL_VERTICAL_ALIGNMENT_VALUES, TABLE_JUSTIFICATION_VALUES, TABLE_ROW_HEIGHT_RULE_VALUES, TABLE_WIDTH_TYPE_VALUES, TAB_LEADER_VALUES, TAB_STOP_ALIGNMENT_VALUES, TEXT_EFFECT_VALUES, THEME_COLOR_SLOT_VALUES, UNDERLINE_STYLE_VALUES };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ type Paragraph = document_d_exports.Paragraph;
|
|
|
59
59
|
type ParagraphAlignment = document_d_exports.ParagraphAlignment;
|
|
60
60
|
type ParagraphContent = document_d_exports.ParagraphContent;
|
|
61
61
|
type ParagraphFormatting = document_d_exports.ParagraphFormatting;
|
|
62
|
+
type PositionalTab = document_d_exports.PositionalTab;
|
|
62
63
|
type Relationship = document_d_exports.Relationship;
|
|
63
64
|
type RelationshipMap = document_d_exports.RelationshipMap;
|
|
64
65
|
type RelationshipType = document_d_exports.RelationshipType;
|
|
@@ -105,4 +106,4 @@ type ThemeFont = document_d_exports.ThemeFont;
|
|
|
105
106
|
type ThemeFontScheme = document_d_exports.ThemeFontScheme;
|
|
106
107
|
type UnderlineStyle = document_d_exports.UnderlineStyle;
|
|
107
108
|
type VerticalAlign = document_d_exports.VerticalAlign;
|
|
108
|
-
export type { AbstractNumbering, BlockContent, BookmarkEnd, BookmarkStart, BorderSpec, BreakContent, CellMargins, ColorValue, Column, ComplexField, ConditionalFormatStyle, DocDefaults, Document, DocumentBody, DocxConformanceClass, DocxPackage, DrawingContent, EmphasisMark, Endnote, EndnotePosition, EndnoteProperties, Field, FieldCharContent, FieldType, FloatingTableProperties, FontInfo, FontTable, FooterReference, Footnote, FootnotePosition, FootnoteProperties, HeaderFooter, HeaderFooterType, HeaderReference, Hyperlink, Image, ImageCrop, ImagePadding, ImagePosition, ImageSize, ImageTransform, ImageWrap, InstrTextContent, LevelSuffix, LineNumberRestart, LineSpacingRule, ListLevel, ListRendering, MediaFile, NoBreakHyphenContent, NoteNumberRestart, NoteReferenceContent, NumberFormat, NumberingDefinitions, NumberingInstance, PageOrientation, Paragraph, ParagraphAlignment, ParagraphContent, ParagraphFormatting, Relationship, RelationshipMap, RelationshipType, Run, RunContent, Section, SectionProperties, SectionStart, ShadingProperties, Shape, ShapeContent, ShapeFill, ShapeOutline, ShapeTextBody, ShapeType, SimpleField, SoftHyphenContent, Style, StyleDefinitions, StyleType, SymbolContent, TabContent, TabLeader, TabStop, TabStopAlignment, Table, TableBorders, TableCell, TableCellFormatting, TableFormatting, TableLook, TableMeasurement, TableRow, TableRowFormatting, TableWidthType, TextBox, TextContent, TextEffect, TextFormatting, Theme, ThemeColorScheme, ThemeColorSlot, ThemeFont, ThemeFontScheme, UnderlineStyle, VerticalAlign };
|
|
109
|
+
export type { AbstractNumbering, BlockContent, BookmarkEnd, BookmarkStart, BorderSpec, BreakContent, CellMargins, ColorValue, Column, ComplexField, ConditionalFormatStyle, DocDefaults, Document, DocumentBody, DocxConformanceClass, DocxPackage, DrawingContent, EmphasisMark, Endnote, EndnotePosition, EndnoteProperties, Field, FieldCharContent, FieldType, FloatingTableProperties, FontInfo, FontTable, FooterReference, Footnote, FootnotePosition, FootnoteProperties, HeaderFooter, HeaderFooterType, HeaderReference, Hyperlink, Image, ImageCrop, ImagePadding, ImagePosition, ImageSize, ImageTransform, ImageWrap, InstrTextContent, LevelSuffix, LineNumberRestart, LineSpacingRule, ListLevel, ListRendering, MediaFile, NoBreakHyphenContent, NoteNumberRestart, NoteReferenceContent, NumberFormat, NumberingDefinitions, NumberingInstance, PageOrientation, Paragraph, ParagraphAlignment, ParagraphContent, ParagraphFormatting, PositionalTab, Relationship, RelationshipMap, RelationshipType, Run, RunContent, Section, SectionProperties, SectionStart, ShadingProperties, Shape, ShapeContent, ShapeFill, ShapeOutline, ShapeTextBody, ShapeType, SimpleField, SoftHyphenContent, Style, StyleDefinitions, StyleType, SymbolContent, TabContent, TabLeader, TabStop, TabStopAlignment, Table, TableBorders, TableCell, TableCellFormatting, TableFormatting, TableLook, TableMeasurement, TableRow, TableRowFormatting, TableWidthType, TextBox, TextContent, TextEffect, TextFormatting, Theme, ThemeColorScheme, ThemeColorSlot, ThemeFont, ThemeFontScheme, UnderlineStyle, VerticalAlign };
|
|
@@ -1,29 +1,38 @@
|
|
|
1
1
|
import { document_d_exports } from "../types/document.js";
|
|
2
|
-
|
|
3
2
|
//#region src/utils/clipboard.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Clipboard content format
|
|
6
5
|
*/
|
|
7
6
|
type ClipboardContent = {
|
|
8
|
-
/** Plain text representation */
|
|
9
|
-
|
|
7
|
+
/** Plain text representation */
|
|
8
|
+
plainText: string;
|
|
9
|
+
/** HTML representation */
|
|
10
|
+
html: string;
|
|
11
|
+
/** Internal format (JSON) for preserving full formatting */
|
|
10
12
|
internal?: string;
|
|
11
13
|
};
|
|
12
14
|
/**
|
|
13
15
|
* Parsed clipboard content
|
|
14
16
|
*/
|
|
15
17
|
type ParsedClipboardContent = {
|
|
16
|
-
/** Runs parsed from clipboard */
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
/** Runs parsed from clipboard */
|
|
19
|
+
runs: document_d_exports.Run[];
|
|
20
|
+
/** Whether content came from Word */
|
|
21
|
+
fromWord: boolean;
|
|
22
|
+
/** Whether content came from our editor */
|
|
23
|
+
fromEditor: boolean;
|
|
24
|
+
/** Original plain text */
|
|
19
25
|
plainText: string;
|
|
20
26
|
};
|
|
21
27
|
/**
|
|
22
28
|
* Options for clipboard operations
|
|
23
29
|
*/
|
|
24
30
|
type ClipboardOptions = {
|
|
25
|
-
/** Whether to include formatting in copy */
|
|
26
|
-
|
|
31
|
+
/** Whether to include formatting in copy */
|
|
32
|
+
includeFormatting?: boolean;
|
|
33
|
+
/** Whether to clean Word-specific formatting */
|
|
34
|
+
cleanWordFormatting?: boolean;
|
|
35
|
+
/** Callback for handling errors */
|
|
27
36
|
onError?: (error: Error) => void;
|
|
28
37
|
};
|
|
29
38
|
/**
|