oasis-editor 0.0.395 → 0.0.396

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.
@@ -21,7 +21,7 @@ export type { EditorReviewActivity, EditorReviewActivityKind, } from './types/do
21
21
  export type { EditorOpcPartKind, EditorOpcPartEncoding, EditorOpcRelationship, EditorOpcContentTypes, EditorOpcPart, EditorDocxDiagnostic, EditorDocxSourcePackage, EditorDocxOpaqueObject, } from './types/docxSourcePackage.js';
22
22
  export type { EditorPageMargins, EditorPageSettings, EditorColumnsSettings, EditorSection, EditorSectionBreakType, EditorSectionPropertiesSnapshot, EditorPageNumbering, EditorSectionVerticalAlign, EditorFontInfo, EditorFootnoteSettings, EditorFootnotes, EditorEndnoteSettings, EditorEndnotes, EditorDocumentDesign, EditorThemeData, EditorWatermark, EditorPageBorder, EditorDocument, } from './types/document.js';
23
23
  export type { EditorPosition, EditorSelection, EditorEditingZone, } from './types/selection.js';
24
- export type { EditorCaretSlot, EditorLayoutFragmentChar, EditorLayoutFragment, EditorLayoutLine, EditorResolvedTab, EditorLayoutParagraph, EditorLayoutBlock, TableCellBlockPosition, EditorLayoutPage, EditorLayoutDocument, } from './types/layout.js';
24
+ export type { EditorCaretSlot, EditorLayoutFragmentChar, EditorLayoutFragment, EditorLayoutLine, EditorResolvedTab, EditorLayoutDisplayOffsetSpan, EditorLayoutParagraph, EditorLayoutBlock, TableCellBlockPosition, EditorLayoutPage, EditorLayoutDocument, } from './types/layout.js';
25
25
  export type { EditorState, ReviewDisplayMode } from './editorState.js';
26
26
  export { EDITOR_ASSET_REF_PREFIX } from './types/primitives.js';
27
27
  export { DEFAULT_TEXT_STYLE, DEFAULT_PARAGRAPH_STYLE, EFFECTIVE_TEXT_STYLE_DEFAULTS, EFFECTIVE_PARAGRAPH_STYLE_DEFAULTS, } from './styleDefaults.js';
@@ -59,7 +59,19 @@ export interface EditorLayoutLine {
59
59
  * truth shared by alignment and the canvas/PDF renderers. */
60
60
  trailingHyphenWidth?: number;
61
61
  }
62
+ /** One display-only field replacement. Visual offsets belong to the page
63
+ * layout; source offsets belong to the editable DOCX model. Never save this
64
+ * mapping in the document or use it to rewrite field caches. */
65
+ export interface EditorLayoutDisplayOffsetSpan {
66
+ displayStart: number;
67
+ displayEnd: number;
68
+ sourceStart: number;
69
+ sourceEnd: number;
70
+ }
62
71
  export interface EditorLayoutParagraph {
72
+ /** Maps per-page visual header/footer positions onto immutable source
73
+ * coordinates; absent means the layout uses source coordinates directly. */
74
+ displayOffsetMap?: EditorLayoutDisplayOffsetSpan[];
63
75
  paragraphId: string;
64
76
  text: string;
65
77
  fragments: EditorLayoutFragment[];