oasis-editor 0.0.171 → 0.0.172
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/{OasisEditorApp-Dit2WRPL.js → OasisEditorApp-DAON1Lo9.js} +1 -144
- package/dist/core/model/index.d.ts +1 -1
- package/dist/core/model/types/nodes.d.ts +5 -1
- package/dist/core/model/types/primitives.d.ts +14 -0
- package/dist/{index-CcenIM2p.js → index-VPNNLM-n.js} +872 -195
- package/dist/index.d.ts +2 -0
- package/dist/oasis-editor.js +60 -57
- package/dist/oasis-editor.umd.cjs +2 -14
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
3
3
|
var __publicField = (obj, key2, value) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
|
|
4
|
-
import { E as EMPTY_PROJECTION_CONTEXT, d as domTextMeasurer, g as getProjectedParagraphBlockHeight, e as estimateTableBlockHeight, p as projectParagraphLayout, a as getPageBodyBottom, b as getPageBodyTop, c as getPageContentWidth, F as FOOTNOTE_MARKER_GUTTER_PX, f as getParagraphText, h as getBlockParagraphs, i as getRunFootnoteReference, l as listReferencedEndnotes, j as getFootnoteDisplayMarker, k as createProjectionContext, m as getDocumentSections, n as getRunField, o as projectBlocksLayout, q as
|
|
4
|
+
import { E as EMPTY_PROJECTION_CONTEXT, d as domTextMeasurer, g as getProjectedParagraphBlockHeight, e as estimateTableBlockHeight, p as projectParagraphLayout, a as getPageBodyBottom, b as getPageBodyTop, c as getPageContentWidth, F as FOOTNOTE_MARKER_GUTTER_PX, f as getParagraphText, h as getBlockParagraphs, i as getRunFootnoteReference, l as listReferencedEndnotes, j as getFootnoteDisplayMarker, k as createProjectionContext, m as getDocumentSections, n as getRunField, o as projectBlocksLayout, q as createSignal, r as cloneEditorState, s as createEditorStateFromDocument, t as createInitialEditorState, S as STANDARD_FONT_SIZES_PT, u as fontSizePxToPt, v as probeLocalFontFamilies, w as createEditorParagraphFromRuns, x as isInlineObjectRun, y as stylesEqual, z as cloneStyle, A as createEditorStyledRun, B as cloneParagraphList, C as cloneParagraph, D as getParagraphLength, G as cloneRun, H as getActiveZone, I as getActiveSectionIndex, J as getParagraphs, K as normalizeSelection, L as positionToParagraphOffset, M as cloneParagraphs, N as paragraphOffsetToPosition, O as findParagraphIndex, P as createCollapsedSelection, Q as isSelectionCollapsed, R as MATH_OBJECT_REPLACEMENT, T as setValueStyle, U as setBooleanStyle, V as parseFontSizePtToPx, W as formatFontSizePt, X as setParagraphStyleValue, Y as createEditorParagraph, Z as cloneBlocks, _ as resolveDefaultParagraphStyleId, $ as findParagraphTablePathLocation, a0 as findParagraphLocation, a1 as resolveTablePath, a2 as buildTableCellLayout, a3 as PT_PER_PX, a4 as createEditorTableCell, a5 as createEditorTableRow, a6 as createEditorTable, a7 as clampPosition, a8 as PX_PER_POINT, a9 as underlineStyleToCssDecorationStyle, aa as resolveImageSrc, ab as listKindForTag, ac as isParagraphTag, ad as collectInlineRuns, ae as parseParagraphStyle, af as getRunImage, ag as InlineShell, ah as BalloonShell, ai as DocumentShell, aj as findParagraphTableLocation, ak as createMemo, al as getCaretRectFromSnapshot, am as getParagraphRectFromSnapshot, an as createComponent, ao as CaretOverlay, ap as Show, aq as createRenderEffect, ar as style, as as setStyleProperty, at as setAttribute, au as memo, av as template, aw as Button, ax as useI18n, ay as createEffect, az as TextField, aA as Dialog, aB as insert, aC as className, aD as Grid, aE as SelectField, aF as StatusText, aG as ColorField, aH as UNDERLINE_STYLE_OPTIONS, aI as Stack, aJ as For, aK as ToggleChip, aL as FormField, aM as Checkbox, aN as FieldGroup, aO as Tabs, aP as NumberField, aQ as parseNumber, aR as createStore, aS as reconcile, aT as RadioGroup, aU as Radio$1, aV as TextAreaField, aW as COMMON_SYMBOLS, aX as getRecentSymbols, aY as SYMBOL_CATEGORIES, aZ as rememberSymbol, a_ as delegateEvents, a$ as EMPTY_EDITOR_MATH_EXPRESSION, b0 as serializeLinearMath, b1 as parseLinearMath, b2 as Text, b3 as SurfaceButton, b4 as onMount, b5 as onCleanup, b6 as CheckIcon, b7 as use, b8 as PluginUiHost, b9 as OasisEditorEditor, ba as OasisBrandMark, bb as setPreciseFontPreference, bc as setWelcomeSeen, bd as enablePreciseFontMode, be as WORD_NS$6, bf as XMLSerializer, bg as DOMParser, bh as WORD14_NS, bi as mergeNestedExtensionMarkup, bj as resolveOpcRelationships, bk as parseOpcRelationships, bl as JSZip, bm as normalizeOpcPartPath, bn as OPC_CONTENT_TYPES_PATH, bo as getOpcRelationshipOwnerPath, bp as serializeOpcRelationships, bq as OPC_ROOT_RELATIONSHIPS_PATH, br as hashDocxPartBytes, bs as parseOpcContentTypes, bt as serializeOpcContentTypes, bu as mergeParagraphPropertiesXmlSource, bv as setEditorRunOoxmlSource, bw as mergeRunOoxmlSourceIntoGeneratedXml, bx as mergeTableCellPropertiesXmlSource, by as mergeTableRowPropertiesXmlSource, bz as mergeTablePropertiesXmlSource, bA as getDocumentSectionsCanonical, bB as exportEditorDocumentToDocxBlob, bC as exportEditorDocumentToDocx, bD as pxToPt$1, bE as resolveFloatingObjectRect, bF as getTextBoxFloatingGeometry, bG as getPresetPathSegments, bH as buildListLabels, bI as assertNever, bJ as lineDashPatternPt, bK as DEFAULT_FONT_SIZE_PX, bL as resolveGradientAxis, bM as isDoubleUnderlineStyle, bN as isWavyUnderlineStyle, bO as underlineStyleLineWidthPx, bP as WAVY_UNDERLINE_WAVELENGTH_PX, bQ as WAVY_UNDERLINE_AMPLITUDE_PX, bR as DOUBLE_UNDERLINE_OFFSET_PX, bS as underlineStyleDashArray, bT as resolveEffectiveParagraphStyle, bU as EMPHASIS_GLYPH, bV as parseHexColorToRgb255, bW as rgb255ToHex, bX as getImageFloatingGeometry, bY as resolveEffectiveTextStyleForParagraph, bZ as textStyleToFontSizePt, b_ as mathDisplayText, b$ as TEXT_BASELINE_RATIO, c0 as resolveTextAlignmentBaselineOffset, c1 as resolveRenderedTextChar, c2 as resolveOpenTypeFeatureTags, c3 as isLowercaseSmallCapsChar, c4 as resolveDecorationLineY, c5 as DOUBLE_STRIKE_OFFSET_PX, c6 as resolveListLabel, c7 as getListLabelInset, c8 as getAlignedListLabelInset, c9 as getParagraphBorderInsets, ca as buildSegmentTable, cb as buildCanvasTableLayout, cc as resolveCanvasTableWidth, cd as resolveFloatingTableRect, ce as paragraphBetweenBorderMatches, cf as normalizeFamily, cg as ROBOTO_FONT_FILES, ch as loadFontAsset, ci as getRemotePdfFontFaces, cj as OFFICE_COMPAT_FONT_FAMILIES, ck as BinaryReader, cl as buildSfnt, cm as defaultFontDecoderRegistry, cn as SfntFontProgram, co as zlibSync, cp as renumberImageCaptionsInDocument, cq as collectPdfFontFamilies, cr as outlineFrom, cs as getPageHeaderZoneTop, ct as getPageColumnRects, cu as findFootnoteReference, cv as resolveImporterForFile, cw as roundTo, cx as getDocumentParagraphsCanonical, cy as getDocumentParagraphs, cz as getImageCaptionText, cA as isImageCaptionParagraph, cB as updateImageCaptionParagraph, cC as createImageCaptionParagraph, cD as renumberImageCaptionParagraphs, cE as getCaptionSelectionOffset, cF as PX_PER_CM, cG as getDocumentPageSettings, cH as getTableCellContentWidthForParagraph, cI as layoutMetricsEpoch, cJ as bumpLayoutMetricsEpoch, cK as createCanvasLayoutSnapshotProvider, cL as on, cM as debounce, cN as unwrap, cO as cloneSection, cP as perfTimer, cQ as prepareDocumentFonts, cR as getRunTextBox, cS as EMU_PER_PX, cT as createEditorDocument, cU as cloneBlock, cV as resolveResizedDimensions, cW as axisSignForDirection, cX as clamp$1, cY as MIN_RESIZE_SIZE_PX, cZ as resolveTextBoxRenderHeight, c_ as getToolbarStyleState, c$ as VERTICAL_HIT_WEIGHT, d0 as getCachedCanvasImage, d1 as measureParagraphMinContentWidthPx, d2 as createSectionBoundaryParagraph, d3 as normalizePageSettings, d4 as DEFAULT_EDITOR_PAGE_SETTINGS, d5 as markStart, d6 as markEnd, d7 as getParagraphEntries, d8 as getParagraphById, d9 as createEditorFootnote, da as createFootnoteReferenceRun, db as renumberFootnotes, dc as iterateFootnoteReferenceRuns, dd as preciseFontModeVersion, de as isPreciseFontModeEnabled, df as getRunFieldChar, dg as getRunFieldInstruction, dh as getHeadingLevel, di as createEditorRun, dj as TWIPS_PER_INCH, dk as PX_PER_INCH, dl as togglePreciseFontMode, dm as nextFontSizePt, dn as previousFontSizePt, dp as fontSizePtToPx, dq as resolveNamedTextStyle, dr as resolveNamedTableStyle, ds as resolveEffectiveTableStyle, dt as createDefaultToolbarPreset, du as MenuRegistry, dv as createToolbarRegistry, dw as Editor, dx as resolveCommandRef, dy as commandRefName, dz as createOasisEditorClient, dA as createEditorZoom, dB as startLongTaskObserver, dC as installGlobalReport, dD as applyStoredPreciseFontPreference, dE as getWelcomeSeen, dF as isLocalFontAccessSupported, dG as EDITOR_SCROLL_PADDING_PX, dH as Toolbar, dI as OasisEditorLoading, dJ as I18nProvider, dK as createTranslator, dL as registerDomStatsSurface, dM as createEditorLogger } from "./index-VPNNLM-n.js";
|
|
5
5
|
function projectHeaderFooterBlocksWithDependencies(blocks, deps, context = {}) {
|
|
6
6
|
const {
|
|
7
7
|
pageIndex,
|
|
@@ -615,149 +615,6 @@ function projectDocumentLayout(document2, maxPageHeightOverride, measuredHeights
|
|
|
615
615
|
pages: applyFootnotesToPages(pages, footnoteContext)
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
function cloneBlock(block) {
|
|
619
|
-
switch (block.type) {
|
|
620
|
-
case "paragraph":
|
|
621
|
-
return {
|
|
622
|
-
...block,
|
|
623
|
-
runs: block.runs.map(cloneRun),
|
|
624
|
-
style: block.style ? { ...block.style } : void 0,
|
|
625
|
-
list: block.list ? { ...block.list } : void 0
|
|
626
|
-
};
|
|
627
|
-
case "table":
|
|
628
|
-
return {
|
|
629
|
-
...block,
|
|
630
|
-
style: block.style ? {
|
|
631
|
-
...block.style,
|
|
632
|
-
defaultCellMargins: block.style.defaultCellMargins ? { ...block.style.defaultCellMargins } : void 0,
|
|
633
|
-
floating: block.style.floating ? { ...block.style.floating } : void 0,
|
|
634
|
-
revision: block.style.revision ? {
|
|
635
|
-
...block.style.revision,
|
|
636
|
-
previous: { ...block.style.revision.previous }
|
|
637
|
-
} : void 0
|
|
638
|
-
} : void 0,
|
|
639
|
-
gridRevision: block.gridRevision ? {
|
|
640
|
-
...block.gridRevision,
|
|
641
|
-
previous: [...block.gridRevision.previous]
|
|
642
|
-
} : void 0,
|
|
643
|
-
rows: block.rows.map((row) => ({
|
|
644
|
-
...row,
|
|
645
|
-
conditionalStyle: row.conditionalStyle ? { ...row.conditionalStyle } : void 0,
|
|
646
|
-
style: row.style ? {
|
|
647
|
-
...row.style,
|
|
648
|
-
revision: row.style.revision ? { ...row.style.revision } : void 0,
|
|
649
|
-
propertyRevision: row.style.propertyRevision ? {
|
|
650
|
-
...row.style.propertyRevision,
|
|
651
|
-
previous: { ...row.style.propertyRevision.previous }
|
|
652
|
-
} : void 0
|
|
653
|
-
} : void 0,
|
|
654
|
-
cells: row.cells.map((cell) => ({
|
|
655
|
-
...cell,
|
|
656
|
-
conditionalStyle: cell.conditionalStyle ? { ...cell.conditionalStyle } : void 0,
|
|
657
|
-
mergeRevisionState: cell.mergeRevisionState ? {
|
|
658
|
-
...cell.mergeRevisionState,
|
|
659
|
-
previousCells: cell.mergeRevisionState.previousCells.map(
|
|
660
|
-
(previousCell) => ({
|
|
661
|
-
...previousCell,
|
|
662
|
-
mergeRevisionState: void 0,
|
|
663
|
-
style: previousCell.style ? { ...previousCell.style } : void 0,
|
|
664
|
-
blocks: previousCell.blocks.map(cloneBlock)
|
|
665
|
-
})
|
|
666
|
-
)
|
|
667
|
-
} : void 0,
|
|
668
|
-
colSpan: cell.colSpan ?? void 0,
|
|
669
|
-
rowSpan: cell.rowSpan ?? void 0,
|
|
670
|
-
vMerge: cell.vMerge ?? void 0,
|
|
671
|
-
style: cell.style ? {
|
|
672
|
-
...cell.style,
|
|
673
|
-
revision: cell.style.revision ? { ...cell.style.revision } : void 0,
|
|
674
|
-
propertyRevision: cell.style.propertyRevision ? {
|
|
675
|
-
...cell.style.propertyRevision,
|
|
676
|
-
previous: {
|
|
677
|
-
...cell.style.propertyRevision.previous
|
|
678
|
-
}
|
|
679
|
-
} : void 0
|
|
680
|
-
} : void 0,
|
|
681
|
-
blocks: cell.blocks.map(cloneBlock)
|
|
682
|
-
}))
|
|
683
|
-
}))
|
|
684
|
-
};
|
|
685
|
-
default:
|
|
686
|
-
return assertNever(block, "block");
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
function cloneSection(section) {
|
|
690
|
-
var _a, _b, _c, _d, _e, _f;
|
|
691
|
-
return {
|
|
692
|
-
...section,
|
|
693
|
-
blocks: section.blocks.map(cloneBlock),
|
|
694
|
-
header: (_a = section.header) == null ? void 0 : _a.map(cloneBlock),
|
|
695
|
-
firstPageHeader: (_b = section.firstPageHeader) == null ? void 0 : _b.map(cloneBlock),
|
|
696
|
-
evenPageHeader: (_c = section.evenPageHeader) == null ? void 0 : _c.map(cloneBlock),
|
|
697
|
-
footer: (_d = section.footer) == null ? void 0 : _d.map(cloneBlock),
|
|
698
|
-
firstPageFooter: (_e = section.firstPageFooter) == null ? void 0 : _e.map(cloneBlock),
|
|
699
|
-
evenPageFooter: (_f = section.evenPageFooter) == null ? void 0 : _f.map(cloneBlock)
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
function cloneFootnote(footnote) {
|
|
703
|
-
return {
|
|
704
|
-
...footnote,
|
|
705
|
-
blocks: footnote.blocks.map(cloneBlock)
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
function cloneFootnotes(footnotes) {
|
|
709
|
-
var _a, _b;
|
|
710
|
-
if (!footnotes) return void 0;
|
|
711
|
-
const nextItems = {};
|
|
712
|
-
for (const [id, footnote] of Object.entries(footnotes.items)) {
|
|
713
|
-
nextItems[id] = cloneFootnote(footnote);
|
|
714
|
-
}
|
|
715
|
-
return {
|
|
716
|
-
items: nextItems,
|
|
717
|
-
settings: footnotes.settings ? { ...footnotes.settings } : void 0,
|
|
718
|
-
separator: (_a = footnotes.separator) == null ? void 0 : _a.map(cloneBlock),
|
|
719
|
-
continuationSeparator: (_b = footnotes.continuationSeparator) == null ? void 0 : _b.map(cloneBlock)
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
function cloneEndnote(endnote) {
|
|
723
|
-
return {
|
|
724
|
-
...endnote,
|
|
725
|
-
blocks: endnote.blocks.map(cloneBlock)
|
|
726
|
-
};
|
|
727
|
-
}
|
|
728
|
-
function cloneEndnotes(endnotes) {
|
|
729
|
-
var _a, _b;
|
|
730
|
-
if (!endnotes) return void 0;
|
|
731
|
-
const nextItems = {};
|
|
732
|
-
for (const [id, endnote] of Object.entries(endnotes.items)) {
|
|
733
|
-
nextItems[id] = cloneEndnote(endnote);
|
|
734
|
-
}
|
|
735
|
-
return {
|
|
736
|
-
items: nextItems,
|
|
737
|
-
settings: endnotes.settings ? { ...endnotes.settings } : void 0,
|
|
738
|
-
separator: (_a = endnotes.separator) == null ? void 0 : _a.map(cloneBlock),
|
|
739
|
-
continuationSeparator: (_b = endnotes.continuationSeparator) == null ? void 0 : _b.map(cloneBlock)
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
function cloneEditorState(source) {
|
|
743
|
-
var _a;
|
|
744
|
-
return {
|
|
745
|
-
...source,
|
|
746
|
-
document: {
|
|
747
|
-
...source.document,
|
|
748
|
-
sections: (_a = source.document.sections) == null ? void 0 : _a.map(cloneSection),
|
|
749
|
-
footnotes: cloneFootnotes(source.document.footnotes),
|
|
750
|
-
endnotes: cloneEndnotes(source.document.endnotes)
|
|
751
|
-
},
|
|
752
|
-
selection: {
|
|
753
|
-
anchor: { ...source.selection.anchor },
|
|
754
|
-
focus: { ...source.selection.focus }
|
|
755
|
-
},
|
|
756
|
-
activeSectionIndex: source.activeSectionIndex ?? 0,
|
|
757
|
-
activeZone: source.activeZone ?? "main",
|
|
758
|
-
activeFootnoteId: source.activeFootnoteId
|
|
759
|
-
};
|
|
760
|
-
}
|
|
761
618
|
/**
|
|
762
619
|
* @license lucide v1.11.0 - ISC
|
|
763
620
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* statements that pointed there continue to work via the barrel
|
|
7
7
|
* re-export in `src/core/model.ts`.
|
|
8
8
|
*/
|
|
9
|
-
export type { EditorUnderlineStyle, EditorLigatures, EditorNumberSpacing, EditorNumberForm, EditorTextLanguage, EditorBorderStyle, EditorEmphasisMark, EditorTabStop, EditorParagraphListStyle, EditorImageCrop, EditorImageCropShape, EditorImageCropFit, EditorImageFillMode, EditorLineDash, EditorImageBorder, EditorImageFloatingPosition, EditorImageFloatingLayout, EditorImageRunData, EditorWrapPolygonPoint, EditorFieldData, EditorFieldChar, EditorFootnoteReferenceData, EditorEndnoteReferenceData, EditorRevision, EditorRevisionMetadata, EditorNumberingRevision, EditorStructuralRevision, EditorPropertyRevision, EditorAsset, EditorFootnoteNumberFormat, EditorFootnoteRestart, EditorDocxWidthValue, EditorTableLayout, EditorTableRowHeightRule, EditorGradientStop, EditorTextFill, EditorTextOutline, EditorTextShadow, EditorGlow, EditorReflection, } from './types/primitives.js';
|
|
9
|
+
export type { EditorUnderlineStyle, EditorLigatures, EditorNumberSpacing, EditorNumberForm, EditorTextLanguage, EditorBorderStyle, EditorEmphasisMark, EditorTabStop, EditorParagraphListStyle, EditorImageCrop, EditorImageCropShape, EditorImageCropFit, EditorImageFillMode, EditorLineDash, EditorImageBorder, EditorImageFloatingPosition, EditorImageFloatingLayout, EditorImageRunData, EditorWrapPolygonPoint, EditorFieldData, EditorFieldChar, EditorFootnoteReferenceData, EditorEndnoteReferenceData, EditorRevision, EditorRevisionMetadata, EditorMoveRangeMarker, EditorNumberingRevision, EditorStructuralRevision, EditorPropertyRevision, EditorAsset, EditorFootnoteNumberFormat, EditorFootnoteRestart, EditorDocxWidthValue, EditorTableLayout, EditorTableRowHeightRule, EditorGradientStop, EditorTextFill, EditorTextOutline, EditorTextShadow, EditorGlow, EditorReflection, } from './types/primitives.js';
|
|
10
10
|
export type { EditorTextStyle, EditorParagraphStyle, EditorTableStyle, EditorTableFloatingLayout, EditorTableConditionalFormat, EditorConditionalRowStyle, EditorTableConditionalType, EditorTableConditionalFlags, EditorTableCellStyle, EditorNamedStyle, } from './types/styles.js';
|
|
11
11
|
export type { EditorRunBase, EditorTextRun, EditorTextBoxShape, EditorTextBoxBody, EditorTextBoxData, EditorDropCap, EditorSdtBlockWrapper, EditorSdtPr, EditorSdtSubtype, EditorSdtListItem, EditorSdtDataBinding, EditorParagraphNode, EditorTableCellNode, EditorTableRowStyle, EditorTableRowNode, EditorTableNode, EditorBlockNode, } from './types/nodes.js';
|
|
12
12
|
export type { EditorMathNode, EditorMathText, EditorMathFraction, EditorMathRadical, EditorMathScript, EditorMathDelimiter, EditorMathAccent, EditorMathNary, EditorMathLimit, EditorMathMatrix, EditorMathBox, EditorMathGroup, EditorMathRaw, EditorMathStyle, EditorMathExpression, } from './types/math.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorDocxWidthValue, EditorEndnoteReferenceData, EditorFieldChar, EditorFieldData, EditorFootnoteReferenceData, EditorImageFloatingLayout, EditorImageRunData, EditorParagraphListStyle, EditorNumberingRevision, EditorRevision, EditorPropertyRevision, EditorStructuralRevision, EditorTableRowHeightRule } from './primitives.js';
|
|
1
|
+
import { EditorDocxWidthValue, EditorEndnoteReferenceData, EditorFieldChar, EditorFieldData, EditorFootnoteReferenceData, EditorImageFloatingLayout, EditorImageRunData, EditorMoveRangeMarker, EditorParagraphListStyle, EditorNumberingRevision, EditorRevision, EditorPropertyRevision, EditorStructuralRevision, EditorTableRowHeightRule } from './primitives.js';
|
|
2
2
|
import { EditorMathExpression } from './math.js';
|
|
3
3
|
import { EditorParagraphStyle, EditorTableCellStyle, EditorTableStyle, EditorTableConditionalFlags, EditorTextStyle } from './styles.js';
|
|
4
4
|
|
|
@@ -69,6 +69,10 @@ export interface EditorRunBase {
|
|
|
69
69
|
text: string;
|
|
70
70
|
styles?: EditorTextStyle;
|
|
71
71
|
revision?: EditorRevision;
|
|
72
|
+
/** Zero-length move range boundary retained for lossless tracked-move round-trip. */
|
|
73
|
+
revisionRangeMarker?: EditorMoveRangeMarker;
|
|
74
|
+
/** Enclosing inline w:sdt wrappers, outermost first. */
|
|
75
|
+
sdtWrappers?: EditorSdtBlockWrapper[];
|
|
72
76
|
}
|
|
73
77
|
/**
|
|
74
78
|
* A run of text, optionally carrying one inline object. Discriminated by `kind`
|
|
@@ -219,6 +219,20 @@ export interface EditorRevision {
|
|
|
219
219
|
type: "insert" | "delete";
|
|
220
220
|
author: string;
|
|
221
221
|
date: number;
|
|
222
|
+
/** Word move containers reuse insertion/deletion semantics plus source/target identity. */
|
|
223
|
+
move?: "from" | "to";
|
|
224
|
+
}
|
|
225
|
+
/** Zero-length w:moveFrom/ToRangeStart/End marker retained in inline order. */
|
|
226
|
+
export interface EditorMoveRangeMarker {
|
|
227
|
+
move: "from" | "to";
|
|
228
|
+
edge: "start" | "end";
|
|
229
|
+
id: string;
|
|
230
|
+
name?: string;
|
|
231
|
+
author?: string;
|
|
232
|
+
date?: number;
|
|
233
|
+
columnFirst?: number;
|
|
234
|
+
columnLast?: number;
|
|
235
|
+
displacedByCustomXml?: string;
|
|
222
236
|
}
|
|
223
237
|
export interface EditorRevisionMetadata {
|
|
224
238
|
id: string;
|