@stll/folio-core 0.63.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-edits/headless.d.ts +5 -4
- package/dist/ai-edits/headless.js +10 -67
- package/dist/compare/content.d.ts +7 -7
- package/dist/compare/content.js +6 -3
- package/dist/compare/types.d.ts +15 -14
- package/dist/compare/types.js +14 -7
- package/dist/content-controls/errors.d.ts +7 -6
- package/dist/content-controls/errors.js +6 -3
- package/dist/controller/canonicalComments.d.ts +4 -3
- package/dist/controller/canonicalComments.js +2 -1
- package/dist/controller/canonicalInlineProjection.d.ts +3 -3
- package/dist/controller/canonicalInlineProjection.js +2 -1
- package/dist/controller/canonicalListRendering.d.ts +5 -3
- package/dist/controller/canonicalPublicOperations.js +2 -1
- package/dist/controller/canonicalSession.d.ts +5 -5
- package/dist/controller/canonicalSession.js +2 -1
- package/dist/controller/hiddenEditorManager.d.ts +3 -2
- package/dist/controller/hiddenEditorManager.js +2 -1
- package/dist/document-operations.d.ts +5 -4
- package/dist/document-operations.js +4 -2
- package/dist/docx/appVersionNormalization.d.ts +3 -2
- package/dist/docx/appVersionNormalization.js +2 -1
- package/dist/docx/attributeRemainder.d.ts +3 -2
- package/dist/docx/attributeRemainder.js +2 -1
- package/dist/docx/canonicalResourceSave.d.ts +3 -2
- package/dist/docx/canonicalResourceSave.js +2 -1
- package/dist/docx/canonicalSave.d.ts +6 -4
- package/dist/docx/canonicalSave.js +2 -1
- package/dist/docx/canonicalSessionInput.d.ts +4 -3
- package/dist/docx/canonicalSessionInput.js +2 -1
- package/dist/docx/encryption/errors.d.ts +3 -2
- package/dist/docx/encryption/errors.js +2 -1
- package/dist/docx/ensureParaIds.d.ts +3 -2
- package/dist/docx/ensureParaIds.js +2 -1
- package/dist/docx/headerFooterVerbatim.d.ts +2 -2
- package/dist/docx/imageParser.d.ts +1 -1
- package/dist/docx/index.d.ts +1 -0
- package/dist/docx/linkedSdtPreservation.d.ts +5 -3
- package/dist/docx/linkedSdtPreservation.js +2 -1
- package/dist/docx/metadataPrivacy.d.ts +5 -4
- package/dist/docx/metadataPrivacy.js +4 -2
- package/dist/docx/numericIdAllocator.js +2 -1
- package/dist/docx/paragraphPropertySource.d.ts +3 -2
- package/dist/docx/paragraphPropertySource.js +2 -1
- package/dist/docx/parser.d.ts +3 -2
- package/dist/docx/parser.js +2 -1
- package/dist/docx/reviewResolutionProvenance.d.ts +3 -2
- package/dist/docx/reviewResolutionProvenance.js +2 -1
- package/dist/docx/revisionIdNormalization.d.ts +3 -2
- package/dist/docx/revisionIdNormalization.js +2 -1
- package/dist/docx/rezip.d.ts +5 -4
- package/dist/docx/rezip.js +4 -2
- package/dist/docx/sectionReferenceHistory.d.ts +3 -2
- package/dist/docx/sectionReferenceHistory.js +2 -1
- package/dist/docx/serializer/paragraphSerializer.js +6 -3
- package/dist/docx/serializer/partNamespaces.d.ts +3 -2
- package/dist/docx/serializer/partNamespaces.js +2 -1
- package/dist/docx/server/applyDocxXmlPatchProposal.d.ts +5 -4
- package/dist/docx/server/applyDocxXmlPatchProposal.js +4 -2
- package/dist/docx/server/boundedArchive.d.ts +3 -2
- package/dist/docx/server/boundedArchive.js +2 -1
- package/dist/docx/server/build.d.ts +3 -2
- package/dist/docx/server/build.js +2 -1
- package/dist/docx/server/createBilingualDocument.d.ts +3 -2
- package/dist/docx/server/createBilingualDocument.js +4 -2
- package/dist/docx/server/evaluateDocxXmlPatchProposal.d.ts +5 -4
- package/dist/docx/server/evaluateDocxXmlPatchProposal.js +4 -2
- package/dist/docx/server/inspectDocxPackage.d.ts +3 -2
- package/dist/docx/server/inspectDocxPackage.js +2 -1
- package/dist/docx/server/materializeYjsDocx.d.ts +3 -2
- package/dist/docx/server/materializeYjsDocx.js +2 -1
- package/dist/docx/server/migrateYjsAttrSchema.d.ts +3 -3
- package/dist/docx/server/migrateYjsAttrSchema.js +2 -1
- package/dist/docx/tableParser.d.ts +4 -4
- package/dist/docx/verbatimCapture.d.ts +3 -2
- package/dist/docx/verbatimCapture.js +2 -1
- package/dist/docx/xmlResourceLimits.d.ts +3 -2
- package/dist/docx/xmlResourceLimits.js +5 -2
- package/dist/export-pdf.d.ts +3 -3
- package/dist/export-pdf.js +2 -1
- package/dist/fonts/headlessMeasure.d.ts +3 -3
- package/dist/fonts/headlessMeasure.js +2 -1
- package/dist/fonts/sfnt/parse.d.ts +3 -3
- package/dist/fonts/sfnt/parse.js +2 -1
- package/dist/fonts/sfnt/subset.d.ts +3 -3
- package/dist/fonts/sfnt/subset.js +2 -1
- package/dist/fonts/sfnt/tables.d.ts +3 -3
- package/dist/fonts/sfnt/tables.js +2 -1
- package/dist/fonts/sfnt/woff.d.ts +3 -3
- package/dist/fonts/sfnt/woff.js +2 -1
- package/dist/headless-layout.d.ts +3 -3
- package/dist/headless-layout.js +2 -1
- package/dist/layout-engine/measure/font-metrics.worker.js +2 -1
- package/dist/layout-engine/measure/hyphenationDictionaries.d.ts +3 -20
- package/dist/layout-engine/measure/hyphenationDictionaries.js +2 -1
- package/dist/layout-engine/section-breaks.d.ts +1 -1
- package/dist/layout-painter/renderPage.d.ts +6 -0
- package/dist/layout-painter/renderPage.js +83 -47
- package/dist/paged-layout/editorScrollRoot.d.ts +4 -0
- package/dist/paged-layout/editorScrollRoot.js +11 -3
- package/dist/paged-layout/scrollToPmPosition.js +41 -51
- package/dist/pdf/fonts.js +2 -1
- package/dist/pdf/images.d.ts +3 -3
- package/dist/pdf/images.js +2 -1
- package/dist/pdf/paint.d.ts +3 -3
- package/dist/pdf/paint.js +2 -1
- package/dist/pdf/writePdf.d.ts +3 -3
- package/dist/pdf/writePdf.js +2 -1
- package/dist/prosemirror/canonicalCommands.d.ts +9 -9
- package/dist/prosemirror/commands/tableMergeFoldDecisions.d.ts +15 -14
- package/dist/prosemirror/commentIdAllocator.d.ts +3 -2
- package/dist/prosemirror/commentIdAllocator.js +2 -1
- package/dist/prosemirror/conversion/fromProseDoc.js +4 -2
- package/dist/prosemirror/extensions/core/DocExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/core/HistoryExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/core/TextExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/features/AutoBidiDetectionExtension.d.ts +2 -2
- package/dist/prosemirror/extensions/features/BidiShortcutExtension.d.ts +0 -10
- package/dist/prosemirror/extensions/features/ContentControlWidgetsExtension.d.ts +0 -10
- package/dist/prosemirror/extensions/features/DropCursorExtension.d.ts +0 -6
- package/dist/prosemirror/extensions/features/EmptyParagraphFormatExtension.d.ts +4 -4
- package/dist/prosemirror/extensions/features/GapCursorExtension.d.ts +0 -13
- package/dist/prosemirror/extensions/features/ImageDragExtension.d.ts +0 -9
- package/dist/prosemirror/extensions/features/ImagePasteExtension.d.ts +0 -6
- package/dist/prosemirror/extensions/features/JoinedRunStyleExtension.d.ts +0 -14
- package/dist/prosemirror/extensions/features/ParaIdAllocatorExtension.d.ts +3 -2
- package/dist/prosemirror/extensions/features/ParaIdAllocatorExtension.js +77 -46
- package/dist/prosemirror/extensions/features/ParagraphChangeTrackerExtension.d.ts +2 -2
- package/dist/prosemirror/extensions/features/PasteCleanupExtension.d.ts +0 -17
- package/dist/prosemirror/extensions/features/PasteStyleInlinerExtension.d.ts +0 -14
- package/dist/prosemirror/extensions/marks/AllCapsExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/BoldExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/CharacterSpacingExtension.d.ts +0 -8
- package/dist/prosemirror/extensions/marks/CharacterStyleExtension.d.ts +0 -14
- package/dist/prosemirror/extensions/marks/CommentExtension.d.ts +0 -6
- package/dist/prosemirror/extensions/marks/FontFamilyExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/FontSizeExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/FootnoteRefExtension.d.ts +0 -5
- package/dist/prosemirror/extensions/marks/HiddenTextExtension.d.ts +0 -17
- package/dist/prosemirror/extensions/marks/InlineWrapperExtension.d.ts +0 -12
- package/dist/prosemirror/extensions/marks/ItalicExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/SmallCapsExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/StrikeExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/SubscriptExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/SuperscriptExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/TextColorExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/TextEffectsExtensions.d.ts +0 -6
- package/dist/prosemirror/extensions/marks/TrackedChangeExtensions.d.ts +0 -7
- package/dist/prosemirror/extensions/marks/UnderlineExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/marks/markUtils.d.ts +8 -7
- package/dist/prosemirror/extensions/nodes/BlockBookmarkBoundaryExtension.d.ts +0 -22
- package/dist/prosemirror/extensions/nodes/BlockMoveRangeBoundaryExtension.d.ts +0 -14
- package/dist/prosemirror/extensions/nodes/BlockSdtExtension.d.ts +0 -17
- package/dist/prosemirror/extensions/nodes/BookmarkBoundaryExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/FieldExtension.d.ts +0 -8
- package/dist/prosemirror/extensions/nodes/HardBreakExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/nodes/HorizontalRuleExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/nodes/ImageExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/nodes/MathExtension.d.ts +0 -7
- package/dist/prosemirror/extensions/nodes/MoveRangeBoundaryExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/PageBreakExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/nodes/PageBreakRunExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/PreservedBlockExtension.d.ts +0 -25
- package/dist/prosemirror/extensions/nodes/PreservedXmlExtension.d.ts +0 -9
- package/dist/prosemirror/extensions/nodes/RangeAnchorExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/RenderedPageBreakExtension.d.ts +0 -1
- package/dist/prosemirror/extensions/nodes/SdtExtension.d.ts +0 -6
- package/dist/prosemirror/extensions/nodes/TabExtension.d.ts +0 -3
- package/dist/prosemirror/extensions/nodes/TextBoxAnchorExtension.d.ts +0 -7
- package/dist/prosemirror/hyperlinkRemoval.d.ts +3 -2
- package/dist/prosemirror/hyperlinkRemoval.js +2 -1
- package/dist/prosemirror/markupViewProjection.d.ts +3 -3
- package/dist/prosemirror/noteReferenceOccurrences.d.ts +6 -5
- package/dist/prosemirror/noteReferenceOccurrences.js +4 -2
- package/dist/prosemirror/numberingAttr.d.ts +5 -5
- package/dist/prosemirror/plugins/aiCitationDecorations.d.ts +4 -4
- package/dist/prosemirror/plugins/aiSuggestionDecorations.d.ts +4 -4
- package/dist/prosemirror/plugins/anonymizationDecorations.d.ts +2 -2
- package/dist/prosemirror/plugins/autocompleteSuggestion.d.ts +2 -2
- package/dist/prosemirror/plugins/contentControlWidgets.d.ts +4 -4
- package/dist/prosemirror/plugins/documentStyleState.d.ts +4 -4
- package/dist/prosemirror/plugins/revisionIds.d.ts +3 -2
- package/dist/prosemirror/plugins/revisionIds.js +2 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +2 -2
- package/dist/prosemirror/plugins/suggestionMode.d.ts +2 -2
- package/dist/prosemirror/plugins/templateDirectives.d.ts +5 -5
- package/dist/prosemirror/plugins/templatePreviewValues.d.ts +4 -4
- package/dist/prosemirror/plugins/templateSlashMenu.d.ts +2 -2
- package/dist/prosemirror/preservedXmlReview.d.ts +2 -2
- package/dist/prosemirror/runStyleFormatting.d.ts +7 -7
- package/dist/prosemirror/schema/index.d.ts +2 -1
- package/dist/prosemirror/schema/index.js +0 -7
- package/dist/prosemirror/styles/styleResolver.d.ts +1 -1
- package/dist/prosemirror/textInput.d.ts +3 -2
- package/dist/prosemirror/yjsDocumentMetadata.d.ts +8 -8
- package/dist/prosemirror/yjsDocumentMetadata.js +6 -3
- package/dist/redline.d.ts +5 -4
- package/dist/redline.js +4 -2
- package/dist/redlineOperationLimit.d.ts +3 -2
- package/dist/redlineOperationLimit.js +2 -1
- package/dist/render-dom/commentAnchorAttributes.d.ts +1 -1
- package/dist/shaping/shaper.d.ts +3 -21
- package/dist/shaping/shaper.js +2 -1
- package/dist/utils/clipboard.d.ts +2 -2
- package/dist/utils/clipboard.js +2 -2
- package/dist/utils/formatToStyle.d.ts +1 -1
- package/dist/utils/headingCollector.d.ts +7 -0
- package/dist/utils/headingCollector.js +9 -1
- package/dist/utils/outlineHeadings.d.ts +20 -0
- package/dist/utils/outlineHeadings.js +43 -0
- package/dist/utils/units.d.ts +1 -1
- package/dist/version-comparison.d.ts +3 -2
- package/dist/version-comparison.js +2 -1
- package/package.json +3 -3
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/InlineWrapperExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Inline wrapper mark — the transparent wrappers a leaf sits inside.
|
|
5
|
-
*
|
|
6
|
-
* One mark for every wrapper kind rather than one mark per kind: ProseMirror's
|
|
7
|
-
* mark set is unordered across types, so two marks could not say which wrapper
|
|
8
|
-
* is inside which. The nesting lives in the `stack` attr, outermost first, and
|
|
9
|
-
* the mark excludes itself (ProseMirror's default) because a second one would
|
|
10
|
-
* be a second answer to the same question.
|
|
11
|
-
*
|
|
12
|
-
* `inclusive: false` so typing at the end of a wrapped span does not silently
|
|
13
|
-
* extend the wrapper over text the author wrote outside it.
|
|
14
|
-
*/
|
|
15
3
|
export declare const INLINE_WRAPPER_MARK_NAME = "inlineWrapper";
|
|
16
4
|
export declare const InlineWrapperExtension: (options?: Partial<Record<string, unknown>> | undefined) => MarkExtension;
|
|
17
5
|
//#endregion
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/ItalicExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Italic Mark Extension
|
|
5
|
-
*/
|
|
6
3
|
export declare const ItalicExtension: (options?: Partial<Record<string, unknown>> | undefined) => MarkExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/SmallCapsExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Small Caps Mark Extension (w:smallCaps)
|
|
5
|
-
*/
|
|
6
3
|
export declare const SmallCapsExtension: (options?: Partial<Record<string, unknown>> | undefined) => MarkExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/StrikeExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Strikethrough Mark Extension
|
|
5
|
-
*/
|
|
6
3
|
export declare const StrikeExtension: (options?: Partial<Record<string, unknown>> | undefined) => MarkExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/SubscriptExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Subscript Mark Extension
|
|
5
|
-
*/
|
|
6
3
|
export declare const SubscriptExtension: (options?: Partial<Record<string, unknown>> | undefined) => MarkExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/SuperscriptExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Superscript Mark Extension
|
|
5
|
-
*/
|
|
6
3
|
export declare const SuperscriptExtension: (options?: Partial<Record<string, unknown>> | undefined) => MarkExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/TextColorExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Text Color Mark Extension
|
|
5
|
-
*/
|
|
6
3
|
export declare const TextColorExtension: (options?: Partial<Record<string, unknown>> | undefined) => MarkExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/TextEffectsExtensions.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Additional Text Effect Mark Extensions
|
|
5
|
-
*
|
|
6
|
-
* Emboss (w:emboss), Imprint/Engrave (w:imprint), Text Shadow (w:shadow),
|
|
7
|
-
* Emphasis Marks (w:em), Text Outline (w:outline)
|
|
8
|
-
*/
|
|
9
3
|
/**
|
|
10
4
|
* Emboss — raised text effect via text-shadow
|
|
11
5
|
*/
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/TrackedChangeExtensions.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Tracked Change Mark Extensions — insertion and deletion marks
|
|
5
|
-
*
|
|
6
|
-
* Renders insertions with colored underline and deletions with colored
|
|
7
|
-
* strikethrough, matching the standard MS Word display for tracked changes.
|
|
8
|
-
* Colors are assigned per author via CSS custom properties (see editor.css).
|
|
9
|
-
*/
|
|
10
3
|
/**
|
|
11
4
|
* Insertion mark — text added in tracked changes
|
|
12
5
|
* Renders with per-author colored underline.
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { MarkExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/marks/UnderlineExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Underline Mark Extension
|
|
5
|
-
*/
|
|
6
3
|
export declare const UnderlineExtension: (options?: Partial<Record<string, unknown>> | undefined) => MarkExtension;
|
|
7
4
|
//#endregion
|
|
@@ -2,6 +2,7 @@ import { document_d_exports } from "../../../types/document.js";
|
|
|
2
2
|
import { CanonicalCommandIntent } from "../../canonicalCommands.js";
|
|
3
3
|
import { Attrs, Mark, MarkType, Schema } from "prosemirror-model";
|
|
4
4
|
import { Command, EditorState } from "prosemirror-state";
|
|
5
|
+
import { FormattingPatch } from "@stll/docx-core/ops";
|
|
5
6
|
//#region src/prosemirror/extensions/marks/markUtils.d.ts
|
|
6
7
|
type MarkAttrs = Record<string, unknown>;
|
|
7
8
|
export declare const withRunFormattingLock: (command: Command, describe: (state: EditorState) => readonly CanonicalCommandIntent[] | undefined) => Command;
|
|
@@ -15,14 +16,14 @@ export declare const canonicalSetMarkFormatting: ({ state, type, attrs }: Canoni
|
|
|
15
16
|
type: "formatRun";
|
|
16
17
|
from: number;
|
|
17
18
|
to: number;
|
|
18
|
-
patch:
|
|
19
|
+
patch: FormattingPatch<{
|
|
19
20
|
bold?: boolean | undefined;
|
|
20
21
|
boldCs?: boolean | undefined;
|
|
21
22
|
italic?: boolean | undefined;
|
|
22
23
|
italicCs?: boolean | undefined;
|
|
23
24
|
underline?: {
|
|
24
25
|
style: document_d_exports.UnderlineStyle;
|
|
25
|
-
color?:
|
|
26
|
+
color?: document_d_exports.ColorValue;
|
|
26
27
|
} | undefined;
|
|
27
28
|
strike?: boolean | undefined;
|
|
28
29
|
doubleStrike?: boolean | undefined;
|
|
@@ -31,9 +32,9 @@ export declare const canonicalSetMarkFormatting: ({ state, type, attrs }: Canoni
|
|
|
31
32
|
allCaps?: boolean | undefined;
|
|
32
33
|
hidden?: boolean | undefined;
|
|
33
34
|
noProof?: boolean | undefined;
|
|
34
|
-
color?:
|
|
35
|
+
color?: document_d_exports.ColorValue | undefined;
|
|
35
36
|
highlight?: "black" | "blue" | "cyan" | "darkBlue" | "darkCyan" | "darkGray" | "darkGreen" | "darkMagenta" | "darkRed" | "darkYellow" | "green" | "lightGray" | "magenta" | "none" | "red" | "white" | "yellow" | undefined;
|
|
36
|
-
shading?:
|
|
37
|
+
shading?: document_d_exports.ShadingProperties | undefined;
|
|
37
38
|
fontSize?: number | undefined;
|
|
38
39
|
fontSizeCs?: number | undefined;
|
|
39
40
|
fontFamily?: {
|
|
@@ -56,8 +57,8 @@ export declare const canonicalSetMarkFormatting: ({ state, type, attrs }: Canoni
|
|
|
56
57
|
position?: number | undefined;
|
|
57
58
|
scale?: number | undefined;
|
|
58
59
|
kerning?: number | undefined;
|
|
59
|
-
effect?:
|
|
60
|
-
emphasisMark?:
|
|
60
|
+
effect?: document_d_exports.TextEffect | undefined;
|
|
61
|
+
emphasisMark?: document_d_exports.EmphasisMark | undefined;
|
|
61
62
|
emboss?: boolean | undefined;
|
|
62
63
|
imprint?: boolean | undefined;
|
|
63
64
|
outline?: boolean | undefined;
|
|
@@ -65,7 +66,7 @@ export declare const canonicalSetMarkFormatting: ({ state, type, attrs }: Canoni
|
|
|
65
66
|
rtl?: boolean | undefined;
|
|
66
67
|
cs?: boolean | undefined;
|
|
67
68
|
styleId?: string | undefined;
|
|
68
|
-
preserved?:
|
|
69
|
+
preserved?: document_d_exports.PreservedMarkup | undefined;
|
|
69
70
|
}>;
|
|
70
71
|
}[];
|
|
71
72
|
export declare function setMark(type: MarkType, attrs: MarkAttrs): Command;
|
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/BlockBookmarkBoundaryExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* A bookmark boundary that stands between two blocks.
|
|
5
|
-
*
|
|
6
|
-
* The block-level twin of `bookmarkBoundary`. `CT_Body`, `CT_Tc` and
|
|
7
|
-
* `CT_SdtContentBlock` declare `w:bookmarkStart`/`w:bookmarkEnd` beside their
|
|
8
|
-
* paragraphs and tables, and Word writes them there whenever the selection was
|
|
9
|
-
* whole blocks: `_GoBack` after an edit, a table-of-contents range around the
|
|
10
|
-
* headings it lists. ProseMirror decides inline or block per node type, so the
|
|
11
|
-
* inline atom cannot also sit here and this is its own node — with the same
|
|
12
|
-
* attributes, read by the same reader, so the two levels cannot describe a
|
|
13
|
-
* bookmark differently.
|
|
14
|
-
*
|
|
15
|
-
* **Position is structure, not an attribute**, for the reason
|
|
16
|
-
* `PreservedBlockExtension` gives: the node sits between the same two blocks it
|
|
17
|
-
* sat between in the source and ProseMirror's own mapping keeps it there, so an
|
|
18
|
-
* edit inside the range cannot change what the range covers.
|
|
19
|
-
*
|
|
20
|
-
* Pairing is owned one level up. A bookmark may open at block level and close
|
|
21
|
-
* inside a paragraph, which is the commoner shape in real documents, so the
|
|
22
|
-
* integrity pass in `BookmarkBoundaryExtension` reads both node types together;
|
|
23
|
-
* a rule enforced here would see half of each such pair and delete it.
|
|
24
|
-
*/
|
|
25
3
|
type BlockBookmarkBoundaryOptions = {
|
|
26
4
|
getInternalClipboardToken?: () => string;
|
|
27
5
|
};
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/BlockMoveRangeBoundaryExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* A tracked-move range boundary that stands between two blocks.
|
|
5
|
-
*
|
|
6
|
-
* The block-level twin of `moveRangeBoundary`, as `blockBookmarkBoundary` is
|
|
7
|
-
* of `bookmarkBoundary`: `CT_Body`, `CT_Tc` and `CT_SdtContentBlock` declare
|
|
8
|
-
* `w:moveFromRangeStart`/`End` and `w:moveToRangeStart`/`End` beside their
|
|
9
|
-
* paragraphs and tables, and a move whose range opens or closes on whole
|
|
10
|
-
* blocks is written there. The node carries the same marker, read by the same
|
|
11
|
-
* reader, so the two levels cannot describe a move range differently.
|
|
12
|
-
*
|
|
13
|
-
* Position is structure, not an attribute: the node sits between the same two
|
|
14
|
-
* blocks it sat between in the source, and ProseMirror's mapping keeps it
|
|
15
|
-
* there.
|
|
16
|
-
*/
|
|
17
3
|
type BlockMoveRangeBoundaryOptions = {
|
|
18
4
|
getInternalClipboardToken?: () => string;
|
|
19
5
|
};
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/BlockSdtExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* BlockSdt Extension — block-level content control node.
|
|
5
|
-
*
|
|
6
|
-
* Mirrors OOXML's block `w:sdt` wrapping paragraphs/tables. `isolating: true`
|
|
7
|
-
* keeps user edits scoped to the control (a backspace at the start of an
|
|
8
|
-
* inner paragraph cannot merge through the boundary into a sibling), and
|
|
9
|
-
* `defining: true` preserves the wrapper across split/lift.
|
|
10
|
-
*
|
|
11
|
-
* Attributes:
|
|
12
|
-
* - `sdtType` / `alias` / `tag` / `lock` / `placeholder` /
|
|
13
|
-
* `showingPlaceholder` / `dateFormat` / `listItems` / `checked` — modeled
|
|
14
|
-
* projection of `w:sdtPr`; drives addressing and widget UX.
|
|
15
|
-
* - `_preserved` — the `w:sdtPr` children folio does not model, at their
|
|
16
|
-
* schema ordinal, so `w:dataBinding`, `w15:repeatingSection` and the
|
|
17
|
-
* control-kind element round-trip without being enumerated here.
|
|
18
|
-
* - `rawEndPropertiesXml` — the verbatim `<w:sdtEndPr>`.
|
|
19
|
-
*/
|
|
20
3
|
export declare const BlockSdtExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
21
4
|
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/BookmarkBoundaryExtension.d.ts
|
|
3
|
-
/** Zero-width bookmark boundary that preserves its position through ProseMirror edits. */
|
|
4
3
|
type BookmarkBoundaryOptions = {
|
|
5
4
|
getInternalClipboardToken?: () => string;
|
|
6
5
|
};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/FieldExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Field extensions — atomic inline fields (PAGE, NUMPAGES, REF, etc.).
|
|
5
|
-
*
|
|
6
|
-
* Ordinary fields are true ProseMirror leaves, so `textContent`, `textBetween`,
|
|
7
|
-
* and the default plain-text clipboard serializer can use `leafText`.
|
|
8
|
-
* Fields that preserve run metadata or inline structure use a distinct atomic
|
|
9
|
-
* node with inline children; their visible text comes from those children.
|
|
10
|
-
*/
|
|
11
3
|
type FieldOptions = {
|
|
12
4
|
getInternalClipboardToken?: () => string;
|
|
13
5
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/HardBreakExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Hard Break Extension — Shift+Enter line break
|
|
5
|
-
*/
|
|
6
3
|
export declare const HardBreakExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/HorizontalRuleExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Horizontal Rule Extension
|
|
5
|
-
*/
|
|
6
3
|
export declare const HorizontalRuleExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/ImageExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Image Extension — inline/floating image node
|
|
5
|
-
*/
|
|
6
3
|
export declare const ImageExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/MathExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Math Extension — inline/block math equation node (OMML)
|
|
5
|
-
*
|
|
6
|
-
* Represents Office Math Markup Language equations as atomic nodes.
|
|
7
|
-
* Stores the raw OMML XML for round-trip fidelity and shows a plain
|
|
8
|
-
* text fallback in the editor.
|
|
9
|
-
*/
|
|
10
3
|
export declare const MathExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
11
4
|
//#endregion
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/PageBreakExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Page Break Extension — block node representing a DOCX page break
|
|
5
|
-
*/
|
|
6
3
|
/**
|
|
7
4
|
* LEGACY_PAGE_BREAK_NODE_REMOVAL_CONDITION: delete the block node after persisted editor
|
|
8
5
|
* snapshots created before `pageBreakRun` have been normalized and telemetry
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/PageBreakRunExtension.d.ts
|
|
3
|
-
/** Inline owner for an authored `<w:br w:type="page"/>` run child. */
|
|
4
3
|
export declare const PageBreakRunExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
5
4
|
//#endregion
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/PreservedBlockExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* A zero-width block for markup folio keeps opaquely between two blocks.
|
|
5
|
-
*
|
|
6
|
-
* The block-level twin of the `preservedXml` inline atom. A `w:permStart`
|
|
7
|
-
* between two paragraphs, an `m:oMathPara`, a `w:altChunk`, a comment or move
|
|
8
|
-
* range that opens between blocks: the editor has no model for any of it and
|
|
9
|
-
* does not need one, because it only has to not lose it. So the node renders
|
|
10
|
-
* nothing, takes no selection and holds no text.
|
|
11
|
-
*
|
|
12
|
-
* **Position is structure, not an attribute.** The node sits between the same
|
|
13
|
-
* two blocks it sat between in the source, and ProseMirror's own mapping keeps
|
|
14
|
-
* it there: inserting, splitting or deleting a neighbour moves the markup the
|
|
15
|
-
* way a reader would expect, and nothing has to keep an index honest. The
|
|
16
|
-
* alternative — an index into the container recorded on the node — drifts the
|
|
17
|
-
* first time anything around it changes, and a drifting index is how markup
|
|
18
|
-
* ends up in the wrong place rather than merely lost.
|
|
19
|
-
*
|
|
20
|
-
* Deleting a *neighbour* therefore leaves the markup attached to whatever now
|
|
21
|
-
* follows it; only a selection that covers the node itself removes it, which
|
|
22
|
-
* is the same rule the editor applies to every other block.
|
|
23
|
-
*
|
|
24
|
-
* The integrity plugin removes a node that can never write markup back: bad
|
|
25
|
-
* attributes, or an empty payload left by a paste through the DOM. Keeping one
|
|
26
|
-
* would leave a zero-width block in the document that serializes to nothing.
|
|
27
|
-
*/
|
|
28
3
|
/** The node name, for callers asking what a container holds. */
|
|
29
4
|
export declare const PRESERVED_BLOCK_NODE_NAME = "preservedBlock";
|
|
30
5
|
export declare const PreservedBlockExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/PreservedXmlExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* An opaque inline atom for a run child folio does not model.
|
|
5
|
-
*
|
|
6
|
-
* The editor cannot edit markup it has no model for, and it does not have to:
|
|
7
|
-
* it only has to not lose it. The node carries the captured bytes untouched
|
|
8
|
-
* and shows the visible text the markup puts on the line (`w:ruby` renders its
|
|
9
|
-
* `w:rubyBase` there), so the round trip keeps both the document's text and
|
|
10
|
-
* the document's markup.
|
|
11
|
-
*/
|
|
12
3
|
/** The node name, for callers asking what a paragraph holds. */
|
|
13
4
|
export declare const PRESERVED_XML_NODE_NAME = "preservedXml";
|
|
14
5
|
export declare const PreservedXmlExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/RenderedPageBreakExtension.d.ts
|
|
3
|
-
/** Zero-width cached pagination boundary preserved from DOCX. */
|
|
4
3
|
/**
|
|
5
4
|
* The node name, for callers that have to ask whether anything is LEFT in a
|
|
6
5
|
* paragraph. This node is zero-width and carries no revision of its own, so a
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/SdtExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* SDT Extension — inline content control node (Structured Document Tag)
|
|
5
|
-
*
|
|
6
|
-
* Represents OOXML inline SDTs as an inline node wrapping text content.
|
|
7
|
-
* Supports: richText, plainText, date, dropdown, comboBox, checkbox.
|
|
8
|
-
*/
|
|
9
3
|
/** The editor's node for an inline `w:sdt`. */
|
|
10
4
|
export declare const INLINE_CONTENT_CONTROL_NODE_NAME = "sdt";
|
|
11
5
|
export declare const SdtExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/TabExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Tab Extension — inline tab character node
|
|
5
|
-
*/
|
|
6
3
|
export declare const TabExtension: (options?: Partial<Record<string, unknown>> | undefined) => NodeExtension;
|
|
7
4
|
//#endregion
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { NodeExtension } from "../types.js";
|
|
2
2
|
//#region src/prosemirror/extensions/nodes/TextBoxAnchorExtension.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Zero-width inline anchor for a text box extracted to a sibling PM block.
|
|
5
|
-
*
|
|
6
|
-
* Keeping the anchor in the paragraph lets ordinary ProseMirror transactions
|
|
7
|
-
* map its position as surrounding text is edited. The save conversion consumes
|
|
8
|
-
* it when the sibling text box is restored to the DOCX run stream.
|
|
9
|
-
*/
|
|
10
3
|
type TextBoxAnchorOptions = {
|
|
11
4
|
getInternalClipboardToken?: () => string;
|
|
12
5
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Node } from "prosemirror-model";
|
|
2
2
|
import { EditorState, Transaction } from "prosemirror-state";
|
|
3
|
+
import { TaggedErrorClass } from "better-result";
|
|
3
4
|
//#region src/prosemirror/hyperlinkRemoval.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
export declare class HyperlinkRemovalRefusal extends
|
|
5
|
+
declare const HyperlinkRemovalRefusalBase: TaggedErrorClass<"HyperlinkRemovalRefusal">;
|
|
6
|
+
export declare class HyperlinkRemovalRefusal extends HyperlinkRemovalRefusalBase<{
|
|
6
7
|
message: string;
|
|
7
8
|
}> {}
|
|
8
9
|
type HyperlinkRemovalRangeOptions = {
|
|
@@ -17,7 +17,8 @@ import { TaggedError } from "better-result";
|
|
|
17
17
|
* text never did. Rejecting brings the link back as it was; accepting leaves
|
|
18
18
|
* the plain text an untracked removal leaves.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
const HyperlinkRemovalRefusalBase = TaggedError("HyperlinkRemovalRefusal");
|
|
21
|
+
var HyperlinkRemovalRefusal = class extends HyperlinkRemovalRefusalBase {};
|
|
21
22
|
const partialInlineRefusal = () => new HyperlinkRemovalRefusal({ message: "Hyperlink removal cannot split an indivisible inline element." });
|
|
22
23
|
/** Canonical inline elements have no addressable interior gaps. */
|
|
23
24
|
const assertHyperlinkRemovalRange = ({ doc, from, to }) => {
|
|
@@ -5,14 +5,14 @@ import { indexedPositionMap } from "../internal/indexedPositionMap.js";
|
|
|
5
5
|
import { RevisionResolutionMode } from "../internal/revisionResolutionInline.js";
|
|
6
6
|
import { Node } from "prosemirror-model";
|
|
7
7
|
import { EditorState } from "prosemirror-state";
|
|
8
|
-
import { StepMap } from "prosemirror-transform";
|
|
8
|
+
import { Mapping, Step, StepMap } from "prosemirror-transform";
|
|
9
9
|
//#region src/prosemirror/markupViewProjection.d.ts
|
|
10
10
|
/** Resolve every revision in the state's story with the state's own styles and numbering. */
|
|
11
11
|
export declare const resolveStateStory: (state: EditorState, mode: RevisionResolutionMode) => {
|
|
12
12
|
resolved: Node;
|
|
13
|
-
mapping:
|
|
13
|
+
mapping: Mapping;
|
|
14
14
|
positionMap: StepMap;
|
|
15
|
-
steps:
|
|
15
|
+
steps: Step[];
|
|
16
16
|
changedRanges: {
|
|
17
17
|
from: number;
|
|
18
18
|
to: number;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Node } from "prosemirror-model";
|
|
2
2
|
import { Plugin, Transaction } from "prosemirror-state";
|
|
3
|
+
import { TaggedErrorClass } from "better-result";
|
|
3
4
|
//#region src/prosemirror/noteReferenceOccurrences.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
export declare class NoteReferenceEditRefusal extends
|
|
5
|
+
declare const NoteReferenceEditRefusalBase: TaggedErrorClass<"NoteReferenceEditRefusal">;
|
|
6
|
+
export declare class NoteReferenceEditRefusal extends NoteReferenceEditRefusalBase<{
|
|
6
7
|
message: string;
|
|
7
8
|
}> {}
|
|
8
|
-
declare const
|
|
9
|
-
export declare class NoteReferenceReplayDefect extends
|
|
9
|
+
declare const NoteReferenceReplayDefectBase: TaggedErrorClass<"NoteReferenceReplayDefect">;
|
|
10
|
+
export declare class NoteReferenceReplayDefect extends NoteReferenceReplayDefectBase<{
|
|
10
11
|
message: string;
|
|
11
12
|
}> {}
|
|
12
13
|
export declare const markNoteReferenceReplay: (transaction: Transaction) => void;
|
|
@@ -16,6 +17,6 @@ export declare const mintNoteReferenceOccurrenceId: () => string;
|
|
|
16
17
|
export declare const coalesceNoteReferenceOccurrences: (paragraph: Node) => Node;
|
|
17
18
|
export declare const assertNoteReferenceOccurrences: (doc: Node) => void;
|
|
18
19
|
/** Production edit boundary: refuse before committing an unsaveable occurrence. */
|
|
19
|
-
export declare const noteReferenceOccurrencePlugin: () => Plugin
|
|
20
|
+
export declare const noteReferenceOccurrencePlugin: () => Plugin;
|
|
20
21
|
//#endregion
|
|
21
22
|
export {};
|
|
@@ -4,8 +4,10 @@ import { Fragment, Mark, Slice } from "prosemirror-model";
|
|
|
4
4
|
import { Plugin } from "prosemirror-state";
|
|
5
5
|
import { isHistoryTransaction } from "prosemirror-history";
|
|
6
6
|
//#region src/prosemirror/noteReferenceOccurrences.ts
|
|
7
|
-
|
|
8
|
-
var
|
|
7
|
+
const NoteReferenceEditRefusalBase = TaggedError("NoteReferenceEditRefusal");
|
|
8
|
+
var NoteReferenceEditRefusal = class extends NoteReferenceEditRefusalBase {};
|
|
9
|
+
const NoteReferenceReplayDefectBase = TaggedError("NoteReferenceReplayDefect");
|
|
10
|
+
var NoteReferenceReplayDefect = class extends NoteReferenceReplayDefectBase {};
|
|
9
11
|
const NOTE_OCCURRENCE_REPLAY_META = "noteReferenceOccurrenceReplay";
|
|
10
12
|
const markNoteReferenceReplay = (transaction) => {
|
|
11
13
|
transaction.setMeta(NOTE_OCCURRENCE_REPLAY_META, true);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParagraphNumberingOverride } from "@stll/docx-core/model";
|
|
1
|
+
import { ParagraphNumberingOverride, ResolvedParagraphNumbering } from "@stll/docx-core/model";
|
|
2
2
|
//#region src/prosemirror/numberingAttr.d.ts
|
|
3
3
|
export type ParagraphNumberingSources = {
|
|
4
4
|
numPr: ParagraphNumberingOverride | undefined;
|
|
@@ -11,13 +11,13 @@ export type ParagraphNumberingBoundarySources = {
|
|
|
11
11
|
/** Normalize attr absence at the boundary, while requiring both source tiers. */
|
|
12
12
|
export declare const paragraphNumberingSourcesFromBoundary: ({ numPr, numPrFromStyle }: ParagraphNumberingBoundarySources) => ParagraphNumberingSources;
|
|
13
13
|
/** Effective membership is derived; neither source slot becomes an authored override. */
|
|
14
|
-
export declare const effectiveParagraphNumbering: ({ numPr, numPrFromStyle }: ParagraphNumberingSources) =>
|
|
14
|
+
export declare const effectiveParagraphNumbering: ({ numPr, numPrFromStyle }: ParagraphNumberingSources) => ResolvedParagraphNumbering;
|
|
15
15
|
/** A list reference for membership consumers; cancellation and absence are not lists.
|
|
16
16
|
* OOXML defaults an omitted ilvl to zero only within an existing numbering reference.
|
|
17
17
|
*/
|
|
18
|
-
export declare const effectiveParagraphNumberingReference: (sources: ParagraphNumberingSources) =>
|
|
19
|
-
readonly
|
|
20
|
-
}
|
|
18
|
+
export declare const effectiveParagraphNumberingReference: (sources: ParagraphNumberingSources) => Exclude<ResolvedParagraphNumbering, {
|
|
19
|
+
readonly kind: "none";
|
|
20
|
+
}> | undefined;
|
|
21
21
|
declare const PARAGRAPH_NUMBERING_ATTR: unique symbol;
|
|
22
22
|
/**
|
|
23
23
|
* The only value a persisted `numPr` attr slot may hold.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PluginKeyOwner } from "../pluginKeyOwner.js";
|
|
2
|
-
import { Plugin } from "prosemirror-state";
|
|
2
|
+
import { EditorState, Plugin, PluginKey } from "prosemirror-state";
|
|
3
3
|
import { DecorationSet } from "prosemirror-view";
|
|
4
4
|
//#region src/prosemirror/plugins/aiCitationDecorations.d.ts
|
|
5
5
|
export declare const aiCitationDecorationsKey: Readonly<{
|
|
6
6
|
key: string;
|
|
7
|
-
createKey: () =>
|
|
7
|
+
createKey: () => PluginKey<AICitationDecorationState>;
|
|
8
8
|
owns: (plugin: Plugin<AICitationDecorationState>) => boolean;
|
|
9
|
-
get: (state:
|
|
10
|
-
getState: (state:
|
|
9
|
+
get: (state: EditorState) => Plugin<AICitationDecorationState> | undefined;
|
|
10
|
+
getState: (state: EditorState) => AICitationDecorationState | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
declare const SET_META = "set";
|
|
13
13
|
declare const ACTIVE_META = "active";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AISuggestion, AISuggestionSeverity } from "../../ai-suggestions/types.js";
|
|
2
2
|
import { PluginKeyOwner } from "../pluginKeyOwner.js";
|
|
3
|
-
import { Plugin } from "prosemirror-state";
|
|
3
|
+
import { EditorState, Plugin, PluginKey } from "prosemirror-state";
|
|
4
4
|
import { DecorationSet } from "prosemirror-view";
|
|
5
5
|
//#region src/prosemirror/plugins/aiSuggestionDecorations.d.ts
|
|
6
6
|
export declare const aiSuggestionDecorationsKey: Readonly<{
|
|
7
7
|
key: string;
|
|
8
|
-
createKey: () =>
|
|
8
|
+
createKey: () => PluginKey<AISuggestionDecorationState>;
|
|
9
9
|
owns: (plugin: Plugin<AISuggestionDecorationState>) => boolean;
|
|
10
|
-
get: (state:
|
|
11
|
-
getState: (state:
|
|
10
|
+
get: (state: EditorState) => Plugin<AISuggestionDecorationState> | undefined;
|
|
11
|
+
getState: (state: EditorState) => AISuggestionDecorationState | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
declare const SET_META = "set";
|
|
14
14
|
declare const FOCUS_META = "focus";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginKeyOwner } from "../pluginKeyOwner.js";
|
|
2
|
-
import { EditorState, Plugin } from "prosemirror-state";
|
|
2
|
+
import { EditorState, Plugin, PluginKey } from "prosemirror-state";
|
|
3
3
|
//#region src/prosemirror/plugins/anonymizationDecorations.d.ts
|
|
4
4
|
export type AnonymizationTerm = {
|
|
5
5
|
/** Canonical surface form, displayed in tooltips. */
|
|
@@ -24,7 +24,7 @@ type AnonymizationDecorationState = {
|
|
|
24
24
|
};
|
|
25
25
|
export declare const anonymizationDecorationsKey: Readonly<{
|
|
26
26
|
key: string;
|
|
27
|
-
createKey: () =>
|
|
27
|
+
createKey: () => PluginKey<AnonymizationDecorationState>;
|
|
28
28
|
owns: (plugin: Plugin<AnonymizationDecorationState>) => boolean;
|
|
29
29
|
get: (state: EditorState) => Plugin<AnonymizationDecorationState> | undefined;
|
|
30
30
|
getState: (state: EditorState) => AnonymizationDecorationState | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorState, Plugin, Transaction } from "prosemirror-state";
|
|
1
|
+
import { EditorState, Plugin, PluginKey, Transaction } from "prosemirror-state";
|
|
2
2
|
import { DecorationSet } from "prosemirror-view";
|
|
3
3
|
//#region src/prosemirror/plugins/autocompleteSuggestion.d.ts
|
|
4
4
|
export type AutocompleteSuggestionStatus = "idle" | "streaming" | "shown";
|
|
@@ -15,7 +15,7 @@ export type AutocompleteSuggestionState = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const autocompleteSuggestionKey: Readonly<{
|
|
17
17
|
key: string;
|
|
18
|
-
createKey: () =>
|
|
18
|
+
createKey: () => PluginKey<AutocompleteSuggestionPluginState>;
|
|
19
19
|
owns: (plugin: Plugin<AutocompleteSuggestionPluginState>) => boolean;
|
|
20
20
|
get: (state: EditorState) => Plugin<AutocompleteSuggestionPluginState> | undefined;
|
|
21
21
|
getState: (state: EditorState) => AutocompleteSuggestionPluginState | undefined;
|