oasis-editor 0.0.411 → 0.0.413

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.
@@ -1,2 +1,2 @@
1
- export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "selectWord", "selectSentence", "selectParagraph", "selectCollapse", "selectText", "selectRange", "insertFootnote", "insertText", "insertEquation", "updateEquation", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "paste", "pasteAsPlainText", "pasteMergeFormatting", "formatPainter", "formatPainterContinuous", "cancelFormatPainter", "bold", "italic", "underline", "doubleUnderline", "wordUnderline", "strike", "doubleStrike", "smallCaps", "allCaps", "hidden", "noProof", "webHidden", "specVanish", "contextualAlternates", "characterBorder", "shadow", "emboss", "engrave", "outline", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "replaceAll", "toggleTrackChanges", "toggleRevisionMarkup", "showMarkupOptions", "applyShowMarkup", "toggleOutlinePanel", "toggleRevisionsPanel", "openCommandSearch", "repeatLastAction", "acceptRevisions", "rejectRevisions", "setReviewDisplayMode", "acceptAllRevisions", "rejectAllRevisions", "requestAcceptAllRevisions", "requestRejectAllRevisions", "nextRevision", "previousRevision", "nextComment", "previousComment", "newComment", "replyComment", "editComment", "toggleCommentsPanel", "resolveComment", "reopenComment", "deleteComment", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "columnBreak", "splitBlock", "insertNonBreakingSpace", "insertNonBreakingHyphen", "insertOptionalHyphen", "insertEmDash", "insertEllipsis", "insertCopyright", "insertRegistered", "insertTrademark", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "growFont1", "shrinkFont1", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "applyUnderlineStyle", "setUnderlineColor", "setCharacterScale", "setCharacterSpacing", "setRunSnapToGrid", "setFitText", "setBaselineShift", "setEmphasisMark", "setTextEffect", "setKerning", "setLigatures", "setNumberSpacing", "setNumberForm", "setStylisticSet", "documentStyles", "print", "copy", "cut", "newDocument", "saveDocument", "exportDocx", "exportPdf", "importDocument", "insertHtml", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageCropShape", "imageCropFill", "imageCropFit", "imageCropReset", "imageFlip", "imageRotate", "imageBorder", "imageTransparency", "resetImage", "outdent", "indent", "moveParagraphsUp", "moveParagraphsDown", "togglePageBreakBefore", "toggleKeepWithNext", "toggleKeepLinesTogether", "toggleWidowControl", "toggleParagraphBidi", "setParagraphBidi", "setParagraphAlign", "sortParagraphs", "promote", "demote", "resetParagraphFormatting", "setParagraphTabStops", "setOutlineLevel", "setSpacingAfter", "setSpacingBefore", "setContextualSpacing", "setMirrorIndents", "setLineRule", "setTextDirection", "setSuppressAutoHyphens", "setSuppressLineNumbers", "setKinsoku", "setOverflowPunct", "setWordWrap", "setAutoSpaceDE", "setAutoSpaceDN", "setAdjustRightInd", "setTopLinePunct", "setPageBreakBefore", "setKeepWithNext", "setKeepLinesTogether", "setWidowControl", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "applyHorizontalLine", "setDropCap", "setLineHeight", "setListFormat", "setListStartAt", "setListLevel", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "sectionBreakEvenPage", "sectionBreakOddPage", "sectionBreakNextColumn", "setPageMargins", "setMarginsPreset", "setSectionPageNumbering", "setPaperSize", "setPaperSizePreset", "setColumns", "setColumnsPreset", "setSectionVerticalAlign", "setSectionStart", "setSectionBidi", "setHyphenation", "editHeader", "editFooter", "editFirstPageHeader", "editEvenPageHeader", "editFirstPageFooter", "editEvenPageFooter", "insertPageNumber", "insertPageNumberXOfY", "placePageNumberTop", "placePageNumberBottom", "insertBookmark", "removeBookmark", "insertDateField", "updateBodyFields", "updateSelectedFields", "insertDateTime", "insertCrossReference", "setNoteOptions", "exitHeaderFooter", "setDifferentFirstPage", "setDifferentOddEven", "applyDocumentTheme", "setDocumentColorScheme", "setDocumentFontScheme", "setDocumentParagraphSpacing", "setDocumentEffects", "setDocumentPageColor", "setDocumentWatermark", "setDocumentPageBorder", "setDocumentDesignDefault", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableDeleteCells", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellAlignment", "tableSetCellVerticalAlign", "tableSetCellTextDirection", "tableToText", "textToTable", "tableSplitAtRow", "tableSortAscending", "tableSortDescending", "tableDelete", "tableRepeatHeaderRows", "tableSetCellMargins", "tableSetCellSpacing", "tableSetTableIndent", "tableSetAlignment", "tableFormula", "tableSelectCell", "tableSelectRow", "tableSelectColumn", "tableSelectTable", "tableSetRowHeight", "tableSetBreakAcrossPages", "tableSetHeaderRow", "tableSetColumnWidth", "tableSetTableWidth", "tableSetCellWidth", "tableSetCellNoWrap", "tableSetCellFitText", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape", "setShapeFill", "setShapeOutline", "setShapeOutlineWidth", "alignFloatingObject", "reorderFloatingObject", "nudgeFloatingObject", "setFloatingFixedPosition", "setFloatingRotation", "setFloatingWrapPreset", "setFloatingWrapText", "setFloatingPositionPreset", "setShapePreset", "setTextBoxTextDirection", "setTextBoxVerticalAlign", "editTextBoxAlt", "rotateTextBox", "textBoxWidthCm", "textBoxHeightCm", "openSymbolDialog", "openEquationDialog", "tableProperties", "openFontDialog", "openParagraphDialog"];
1
+ export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "selectWord", "selectSentence", "selectParagraph", "selectCollapse", "selectText", "selectRange", "insertFootnote", "insertText", "insertEquation", "updateEquation", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "paste", "pasteAsPlainText", "pasteMergeFormatting", "formatPainter", "formatPainterContinuous", "cancelFormatPainter", "bold", "italic", "underline", "doubleUnderline", "wordUnderline", "strike", "doubleStrike", "smallCaps", "allCaps", "hidden", "noProof", "webHidden", "specVanish", "contextualAlternates", "characterBorder", "shadow", "emboss", "engrave", "outline", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "replaceAll", "toggleTrackChanges", "toggleRevisionMarkup", "showMarkupOptions", "applyShowMarkup", "toggleOutlinePanel", "toggleRevisionsPanel", "openCommandSearch", "repeatLastAction", "acceptRevisions", "rejectRevisions", "setReviewDisplayMode", "acceptAllRevisions", "rejectAllRevisions", "requestAcceptAllRevisions", "requestRejectAllRevisions", "nextRevision", "previousRevision", "nextComment", "previousComment", "newComment", "replyComment", "editComment", "toggleCommentsPanel", "resolveComment", "reopenComment", "deleteComment", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "columnBreak", "splitBlock", "insertNonBreakingSpace", "insertNonBreakingHyphen", "insertOptionalHyphen", "insertEmDash", "insertEllipsis", "insertCopyright", "insertRegistered", "insertTrademark", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "growFont1", "shrinkFont1", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "applyUnderlineStyle", "setUnderlineColor", "setCharacterScale", "setCharacterSpacing", "setRunSnapToGrid", "setFitText", "setBaselineShift", "setEmphasisMark", "setTextEffect", "setKerning", "setLigatures", "setNumberSpacing", "setNumberForm", "setStylisticSet", "documentStyles", "print", "copy", "cut", "newDocument", "saveDocument", "exportDocx", "exportPdf", "importDocument", "insertHtml", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageCropShape", "imageCropFill", "imageCropFit", "imageCropReset", "imageFlip", "imageRotate", "imageBorder", "imageTransparency", "resetImage", "outdent", "indent", "moveParagraphsUp", "moveParagraphsDown", "togglePageBreakBefore", "toggleKeepWithNext", "toggleKeepLinesTogether", "toggleWidowControl", "toggleParagraphBidi", "setParagraphBidi", "setParagraphAlign", "sortParagraphs", "promote", "demote", "resetParagraphFormatting", "setParagraphTabStops", "setOutlineLevel", "setSpacingAfter", "setSpacingBefore", "setContextualSpacing", "setMirrorIndents", "setLineRule", "setTextDirection", "setSuppressAutoHyphens", "setSuppressLineNumbers", "setKinsoku", "setOverflowPunct", "setWordWrap", "setAutoSpaceDE", "setAutoSpaceDN", "setAdjustRightInd", "setTopLinePunct", "setPageBreakBefore", "setKeepWithNext", "setKeepLinesTogether", "setWidowControl", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "applyHorizontalLine", "setDropCap", "setLineHeight", "setListFormat", "setListStartAt", "setListLevel", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "sectionBreakEvenPage", "sectionBreakOddPage", "sectionBreakNextColumn", "setPageMargins", "setMarginsPreset", "setSectionPageNumbering", "setPaperSize", "setPaperSizePreset", "setColumns", "setColumnsPreset", "setSectionVerticalAlign", "setSectionStart", "setSectionBidi", "setHyphenation", "editHeader", "editFooter", "editFirstPageHeader", "editEvenPageHeader", "editFirstPageFooter", "editEvenPageFooter", "insertPageNumber", "insertPageNumberXOfY", "placePageNumberTop", "placePageNumberBottom", "insertBookmark", "removeBookmark", "insertDateField", "updateBodyFields", "updateSelectedFields", "insertDateTime", "insertCrossReference", "markIndexEntry", "insertIndex", "updateIndex", "setNoteOptions", "exitHeaderFooter", "setDifferentFirstPage", "setDifferentOddEven", "applyDocumentTheme", "setDocumentColorScheme", "setDocumentFontScheme", "setDocumentParagraphSpacing", "setDocumentEffects", "setDocumentPageColor", "setDocumentWatermark", "setDocumentPageBorder", "setDocumentDesignDefault", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableDeleteCells", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellAlignment", "tableSetCellVerticalAlign", "tableSetCellTextDirection", "tableToText", "textToTable", "tableSplitAtRow", "tableSortAscending", "tableSortDescending", "tableDelete", "tableRepeatHeaderRows", "tableSetCellMargins", "tableSetCellSpacing", "tableSetTableIndent", "tableSetAlignment", "tableFormula", "tableSelectCell", "tableSelectRow", "tableSelectColumn", "tableSelectTable", "tableSetRowHeight", "tableSetBreakAcrossPages", "tableSetHeaderRow", "tableSetColumnWidth", "tableSetTableWidth", "tableSetCellWidth", "tableSetCellNoWrap", "tableSetCellFitText", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape", "setShapeFill", "setShapeOutline", "setShapeOutlineWidth", "alignFloatingObject", "reorderFloatingObject", "nudgeFloatingObject", "setFloatingFixedPosition", "setFloatingRotation", "setFloatingWrapPreset", "setFloatingWrapText", "setFloatingPositionPreset", "setShapePreset", "setTextBoxTextDirection", "setTextBoxVerticalAlign", "editTextBoxAlt", "rotateTextBox", "textBoxWidthCm", "textBoxHeightCm", "openSymbolDialog", "openEquationDialog", "tableProperties", "openFontDialog", "openParagraphDialog"];
2
2
  export type OasisBuiltinCommand = (typeof OASIS_BUILTIN_COMMANDS)[number];
@@ -0,0 +1,27 @@
1
+ import { EditorState, EditorDocument, EditorLayoutDocument } from '../model.js';
2
+ export interface MarkIndexEntryOptions {
3
+ path: readonly string[];
4
+ identifier?: string;
5
+ boldPage?: boolean;
6
+ italicPage?: boolean;
7
+ }
8
+ export interface InsertIndexOptions {
9
+ locale: string;
10
+ identifier?: string;
11
+ }
12
+ /** First authoring slice: append a hidden XE at an explicit paragraph-end
13
+ * caret. Do not split runs, move anchors, edit imported paragraph XML or
14
+ * allow markers within another complex field. Caller supplies the entry text.
15
+ */
16
+ export declare function markIndexEntry(state: EditorState, options: MarkIndexEntryOptions): EditorState;
17
+ /** Insert one INDEX after an explicit paragraph-end caret. The blank
18
+ * provisional cache never becomes visible unless regeneration converges.
19
+ * Existing indexes, anchored documents and complex field boundaries are
20
+ * deliberately excluded in this first authoring slice.
21
+ */
22
+ export declare function insertIndex(state: EditorState, options: InsertIndexOptions, paginate?: (doc: EditorDocument) => EditorLayoutDocument): EditorState;
23
+ export declare function updateIndex(state: EditorState, locale?: string): EditorState;
24
+ /** Cheap capability checks; do not paginate or generate new IDs during Ribbon refresh. */
25
+ export declare function canMarkIndexEntry(state: EditorState): boolean;
26
+ export declare function canInsertIndex(state: EditorState): boolean;
27
+ export declare function canUpdateIndex(state: EditorState): boolean;
@@ -325,6 +325,11 @@ export interface OasisCommandPayloads {
325
325
  insertDateTime: {
326
326
  dateFormat?: string;
327
327
  } | undefined;
328
+ markIndexEntry: import('./indexEntries.js').MarkIndexEntryOptions;
329
+ insertIndex: import('./indexEntries.js').InsertIndexOptions;
330
+ updateIndex: {
331
+ locale?: string;
332
+ } | undefined;
328
333
  insertCrossReference: {
329
334
  type?: "REF" | "PAGEREF";
330
335
  bookmark: string;
@@ -431,6 +436,9 @@ export interface OasisCommandPayloads {
431
436
  }
432
437
  /** Maps commands to their typed return values. Commands not listed return `unknown`. */
433
438
  export interface OasisCommandResults {
439
+ markIndexEntry: boolean;
440
+ insertIndex: boolean;
441
+ updateIndex: boolean;
434
442
  documentStyles: unknown;
435
443
  [command: string]: unknown;
436
444
  }
@@ -0,0 +1,42 @@
1
+ import { EditorDocument, EditorLayoutDocument } from '../model.js';
2
+ import { XePage } from './xeEntries.js';
3
+ import { XeRangePage } from './xeRanges.js';
4
+ export interface IndexSettings {
5
+ identifier?: string;
6
+ locale?: string;
7
+ entrySeparator: string;
8
+ pageSeparator: string;
9
+ crossReferenceSeparator: string;
10
+ rangeSeparator?: string;
11
+ }
12
+ export interface IndexPageReference extends XePage {
13
+ bold: boolean;
14
+ italic: boolean;
15
+ }
16
+ export interface IndexRangeReference {
17
+ pages: XeRangePage[];
18
+ bold: boolean;
19
+ italic: boolean;
20
+ }
21
+ export interface IndexEntryPlan {
22
+ path: readonly string[];
23
+ pages: IndexPageReference[];
24
+ ranges?: IndexRangeReference[];
25
+ crossReferences: string[];
26
+ }
27
+ export interface IndexPlan {
28
+ settings: IndexSettings;
29
+ locale: string;
30
+ /** Preorder: parents precede descendants, even without own references. */
31
+ entries: IndexEntryPlan[];
32
+ }
33
+ /** Flat indented, one-column INDEX subset. Preserve unsupported instructions.
34
+ * Word-specific default identifier selection differs from ISO/IEC 29500.
35
+ * A locale must be explicit in the field or supplied by a qualified caller.
36
+ */
37
+ export declare function parseIndexInstruction(raw: string): IndexSettings | undefined;
38
+ /** Read-only INDEX plan. Exact authored paths are grouped; ambiguous
39
+ * case/canonical-equivalent sibling labels fail closed. Distinct physical
40
+ * pages must never be deduplicated just because printed labels repeat.
41
+ */
42
+ export declare function buildIndexPlan(document: EditorDocument, layout: EditorLayoutDocument, raw: string, documentLocale?: string): IndexPlan | undefined;
@@ -0,0 +1,34 @@
1
+ import { EditorBlockNode, EditorDocument, EditorLayoutDocument, EditorState } from '../model.js';
2
+ import { IndexPlan } from './indexPlan.js';
3
+ interface IndexRegion {
4
+ start: number;
5
+ end: number;
6
+ raw: string;
7
+ }
8
+ interface Fragment {
9
+ text: string;
10
+ bold?: boolean;
11
+ italic?: boolean;
12
+ }
13
+ interface EntryLine {
14
+ indent: number;
15
+ fragments: Fragment[];
16
+ }
17
+ /** Only a single complete flat INDEX with separate marker paragraphs. */
18
+ export declare function findQualifiedIndexRegion(blocks: readonly EditorBlockNode[]): IndexRegion | undefined;
19
+ /** Render only one-column indented plans. A range spanning section boundaries
20
+ * is kept in the read-only plan but is not compacted into a misleading label.
21
+ */
22
+ export declare function renderIndexPlan(plan: IndexPlan): EntryLine[] | undefined;
23
+ export interface IndexRefreshResult {
24
+ state: EditorState;
25
+ status: "updated" | "unchanged" | "unsupported" | "unresolved" | "nonconvergent";
26
+ passes: number;
27
+ updatedEntries: number;
28
+ layout?: EditorLayoutDocument;
29
+ }
30
+ /** Stage, measure and verify a fixed point before publishing any change.
31
+ * Retain original marker and source paragraph identities and selection.
32
+ */
33
+ export declare function refreshIndexConvergently(original: EditorState, documentLocale?: string, paginate?: (document: EditorDocument) => EditorLayoutDocument, maxPasses?: number): IndexRefreshResult;
34
+ export {};
@@ -12,8 +12,10 @@ export interface TocFieldSettings {
12
12
  level: number;
13
13
  }[];
14
14
  customOnly?: true;
15
- /** Explicit TC-only identifier; mixed heading sources are not qualified. */
15
+ /** Explicit TC identifier. If tcMixedRange is absent the TOC is TC-only. */
16
16
  tcIdentifier?: string;
17
+ /** Separate TC level range for a mixed paragraph/marker TOC. */
18
+ tcMixedRange?: readonly [number, number];
17
19
  }
18
20
  export interface QualifiedTocRegion extends TocFieldSettings {
19
21
  startBlockIndex: number;
@@ -0,0 +1,50 @@
1
+ import { EditorDocument, EditorLayoutDocument } from '../model.js';
2
+ export type XeReference = {
3
+ kind: "page";
4
+ } | {
5
+ kind: "crossReference";
6
+ text: string;
7
+ } | {
8
+ kind: "bookmarkRange";
9
+ bookmark: string;
10
+ };
11
+ export interface XeInstruction {
12
+ /** Display path; keep authored case and whitespace. */
13
+ path: readonly string[];
14
+ /** Explicit index type; default selection is a separate INDEX policy. */
15
+ identifier?: string;
16
+ boldPage: boolean;
17
+ italicPage: boolean;
18
+ reference: XeReference;
19
+ }
20
+ export interface XeOccurrence extends XeInstruction {
21
+ sectionIndex: number;
22
+ paragraphId: string;
23
+ runId: string;
24
+ offset: number;
25
+ raw: string;
26
+ }
27
+ export interface XePage {
28
+ physicalPageIndex: number;
29
+ label: string;
30
+ }
31
+ /** Bounded XE compiler. No index mutation, locale sorting or range expansion.
32
+ * Colon-separated plain labels qualify; escaped colons, formatting within
33
+ * the instruction and unknown switches must remain opaque until qualified.
34
+ */
35
+ export declare function parseXeInstruction(raw: string): XeInstruction | undefined;
36
+ /** Complete inventory for the deliberately narrow top-level main story.
37
+ * Refuse malformed XE instead of silently dropping it from a future INDEX.
38
+ * Other stories and nested containers are not scanned or rewritten.
39
+ */
40
+ export declare function collectXeOccurrences(document: EditorDocument): XeOccurrence[] | undefined;
41
+ /** Physical order and printed labels are distinct (section restarts may
42
+ * repeat labels). Cross-references and bookmark ranges are not point pages.
43
+ */
44
+ export declare function resolveXePointPage(document: EditorDocument, layout: EditorLayoutDocument, entry: XeOccurrence, context?: {
45
+ bookmarkText: (name: string) => string | null | undefined;
46
+ bookmarkPage: (name: string) => number | null | undefined;
47
+ pageIndexAt: (paragraphId: string, offset: number) => number | undefined;
48
+ forPage: (pageIndex: number) => import('./fieldEvaluation.js').FieldEvaluationContext;
49
+ forPosition: (paragraphId: string, offset: number) => import('./fieldEvaluation.js').FieldEvaluationContext;
50
+ }): XePage | undefined;
@@ -0,0 +1,16 @@
1
+ import { EditorDocument, EditorLayoutDocument } from '../model.js';
2
+ import { XePage } from './xeEntries.js';
3
+ export interface XeRangePage extends XePage {
4
+ sectionIndex: number;
5
+ }
6
+ /** Resolve a nonempty main-story bookmark as an exclusive-end range.
7
+ * Keep every physical page and its own section's printed label. Rendering
8
+ * a compact range across a numbering restart is a separate policy.
9
+ */
10
+ export declare function resolveXeBookmarkRange(document: EditorDocument, layout: EditorLayoutDocument, name: string, context?: {
11
+ bookmarkText: (name: string) => string | null | undefined;
12
+ bookmarkPage: (name: string) => number | null | undefined;
13
+ pageIndexAt: (paragraphId: string, offset: number) => number | undefined;
14
+ forPage: (pageIndex: number) => import('./fieldEvaluation.js').FieldEvaluationContext;
15
+ forPosition: (paragraphId: string, offset: number) => import('./fieldEvaluation.js').FieldEvaluationContext;
16
+ }): XeRangePage[] | undefined;