@docx-editor.dev/core 2.13.0 → 2.14.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/automation.cjs +1 -1
- package/dist/automation.d.cts +3 -3
- package/dist/automation.d.ts +3 -3
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +4 -4
- package/dist/binding.d.ts +4 -4
- package/dist/binding.js +1 -1
- package/dist/{chunk-PFSJVAWJ.cjs → chunk-2PIHW2QM.cjs} +1 -1
- package/dist/chunk-2QTY5S6T.js +1 -0
- package/dist/chunk-4Z5MODAE.cjs +2 -0
- package/dist/{chunk-WANKXD34.cjs → chunk-5TKAPFZT.cjs} +1 -1
- package/dist/chunk-DRQHIQ4R.cjs +1 -0
- package/dist/chunk-F2K6SDHA.cjs +20 -0
- package/dist/chunk-FBA57EUJ.js +2 -0
- package/dist/{chunk-67S7OHE6.cjs → chunk-KIAP7PFQ.cjs} +1 -1
- package/dist/chunk-KTAQ7BRQ.js +20 -0
- package/dist/chunk-LBAHXZCU.cjs +5 -0
- package/dist/chunk-MCDUQYWP.js +5 -0
- package/dist/chunk-MQP26KCF.js +1 -0
- package/dist/chunk-NDJGSR6M.cjs +19 -0
- package/dist/chunk-NJNFJPGB.cjs +11 -0
- package/dist/chunk-O5M4CR4P.cjs +2 -0
- package/dist/{chunk-HWWHGREA.js → chunk-OKEDGR65.js} +1 -1
- package/dist/chunk-UKUOZXUD.js +19 -0
- package/dist/chunk-VQ4R5LTU.js +2 -0
- package/dist/chunk-ZBEJHJN2.js +11 -0
- package/dist/{chunk-PRIBU3UH.js → chunk-ZVTW7RGD.js} +1 -1
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.cts +1 -1
- package/dist/collaboration/replication.d.ts +1 -1
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.cts +1 -1
- package/dist/collaboration.d.ts +1 -1
- package/dist/contracts/editor.d.cts +4 -4
- package/dist/contracts/editor.d.ts +4 -4
- package/dist/contracts/interaction.d.cts +4 -4
- package/dist/contracts/interaction.d.ts +4 -4
- package/dist/contracts/modules.d.cts +2 -2
- package/dist/contracts/modules.d.ts +2 -2
- package/dist/{editor-DLrTueVe.d.cts → editor-AJ06hyyg.d.cts} +26 -2
- package/dist/{editor-KiB6JNvk.d.ts → editor-a6VvsfYU.d.ts} +26 -2
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -1
- package/dist/editor.d.cts +15 -15
- package/dist/editor.d.ts +15 -15
- package/dist/editor.js +1 -1
- package/dist/{index-D4Pxdo_p.d.ts → index-C5ZnSRkF.d.ts} +49 -15
- package/dist/{index-D_PA2Xv6.d.cts → index-Cbw4lkOt.d.cts} +49 -15
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +36 -86
- package/dist/layout.d.ts +36 -86
- package/dist/layout.js +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +4 -4
- package/dist/output.d.ts +4 -4
- package/dist/output.js +1 -1
- package/dist/{protocol-DjgYKCAy.d.ts → protocol-BsmQgblT.d.ts} +1 -1
- package/dist/{protocol-C8L58j66.d.cts → protocol-gOY5GA8K.d.cts} +1 -1
- package/dist/{review-reads-DcGYCH0w.d.ts → review-reads-BjZYeMd4.d.ts} +6 -19
- package/dist/{review-reads-BrTDmoYH.d.cts → review-reads-DEsV0OOW.d.cts} +6 -19
- package/dist/{revision-projection-BmLtLPxH.d.ts → revision-projection-BeXVrSSV.d.ts} +23 -2
- package/dist/{revision-projection-Dknlar93.d.cts → revision-projection-DXbrfNGD.d.cts} +23 -2
- package/dist/{semantic-cell-selection-BZ50i-Fu.d.ts → semantic-cell-selection-BK91NCCG.d.ts} +15 -6
- package/dist/{semantic-cell-selection-COnfaOZO.d.cts → semantic-cell-selection-BMhku3B1.d.cts} +15 -6
- package/dist/{semantic-interaction-BDJ4TBjm.d.ts → semantic-interaction-BmQ7h2cq.d.ts} +1 -1
- package/dist/{semantic-interaction-Bq3ixB0I.d.cts → semantic-interaction-DUAnxbgf.d.cts} +1 -1
- package/dist/{semantic-paint-C5SMTO8Y.d.cts → semantic-paint-DufNL1Zr.d.cts} +1 -1
- package/dist/{semantic-paint-DuhhY5-R.d.ts → semantic-paint-WJD2KeG1.d.ts} +1 -1
- package/dist/{semantic-records-BI1jpft7.d.ts → semantic-records-92UnKeU_.d.ts} +546 -5
- package/dist/{semantic-records-Btw3Ao4v.d.cts → semantic-records-BpozY7-j.d.cts} +546 -5
- package/dist/shaped-measurer-BWbindlI.d.ts +168 -0
- package/dist/shaped-measurer-CFPnXFs9.d.cts +168 -0
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +14 -7
- package/dist/store.d.ts +14 -7
- package/dist/store.js +1 -1
- package/dist/{tree-package-fragment-B1supBtE.d.ts → tree-package-fragment-CWFjgH6a.d.ts} +1 -9
- package/dist/{tree-package-fragment-ByN5yzll.d.cts → tree-package-fragment-Dhyw7oPm.d.cts} +1 -9
- package/dist/{tree-session-contract-BasiwZgZ.d.ts → tree-session-contract-B2HfGt79.d.ts} +6 -2
- package/dist/{tree-session-contract-DbeBenMR.d.cts → tree-session-contract-BY9xd7s_.d.cts} +6 -2
- package/package.json +2 -2
- package/dist/chunk-3AT4RUQ3.cjs +0 -19
- package/dist/chunk-4NAQLFXA.cjs +0 -2
- package/dist/chunk-BHAUFJO6.js +0 -20
- package/dist/chunk-F7U4OLMS.cjs +0 -2
- package/dist/chunk-FNMXRLGW.cjs +0 -5
- package/dist/chunk-I36WS6XX.cjs +0 -20
- package/dist/chunk-IOTL2GGW.js +0 -1
- package/dist/chunk-OF2QZCTN.js +0 -19
- package/dist/chunk-RO3HFCML.js +0 -5
- package/dist/chunk-SFOUCTKA.js +0 -2
- package/dist/chunk-VBEKERLJ.js +0 -2
- package/dist/chunk-XETEMUIP.cjs +0 -11
- package/dist/chunk-YMW34EBA.js +0 -11
- package/dist/shaped-measurer-CqdYa0fa.d.cts +0 -619
- package/dist/shaped-measurer-qnBJziPx.d.ts +0 -619
package/dist/layout.d.ts
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { V as VersionedShapingLibrary,
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export { s as AUTO_PARAGRAPH_SPACING_PT, t as AbstractNumDefinition, u as BorderGridGeometry, v as CascadedParagraphFormatting, w as ContentControlGeometryFragment, x as ContentControlLevel, y as ContentControlMappedType, z as DEFAULT_PAGE_GEOMETRY, E as DEFAULT_RUN_STYLE, G as DEFAULT_TAB_INTERVAL_PT, J as DEFAULT_TAB_INTERVAL_TWIPS, K as EMPTY_NUMBERING_INDEX, O as EMPTY_TAB_STOPS, Q as EquationFractionGeometry, U as EquationGeometry, V as EquationNaryGeometry, W as EquationRadicalGeometry, X as EquationRowGeometry, Y as EquationScriptGeometry, Z as EquationSpanRecord, _ as EquationTextGeometry, $ as FieldAtomMarker, a0 as HeaderFooterStoryRecord, a1 as HyperlinkFieldSpec, a2 as LevelOverride, a3 as LineSpacingRule, a4 as ListMarkerAlign, a5 as ListMarkerRecord, a6 as ListSuffix, a7 as MAX_BORDER_SPACE_PT, a8 as MAX_BORDER_WIDTH_PT, a9 as MAX_LVL_OVERRIDES, aa as MAX_NUMBERING_DEFINITIONS, ab as MAX_PARAGRAPH_SPACING_PT, ac as MAX_STYLE_BASED_ON_DEPTH, ad as MAX_STYLE_DEFINITIONS, ae as MAX_TABLE_BORDER_STROKES, af as MAX_TAB_POSITION_TWIPS, ag as MAX_TAB_STOPS, ah as NumDefinition, ai as NumberingLevelIndent, aj as PARAGRAPH_BORDER_SIDES, ak as PageRefCalibrationCell, al as PageRefFieldProjection, am as ParagraphAutoSpacingContext, an as ParagraphBorderEdge, ao as ParagraphBorderSide, ap as ParagraphBorderStrokeRecord, aq as ParagraphBorders, ar as ParagraphBottomBorderRecord, as as ParagraphIndent, at as ParagraphLayoutInputs, au as ParagraphLineSpacing, av as ParagraphSpacing, aw as RefFieldSpec, ax as RefNoteParts, ay as ResolvedCellBorders, R as ResolvedRunStyle, az as ResolvedTabStops, aA as ResolvedTableBorderEdge, aB as ResolvedTableBorderEdgeSegment, aC as ResolvedUnderline, aD as SINGLE_LINE_SPACING, aE as SourceRange, aF as SpanLinkRecord, aG as StyleDefinition, aH as TAB_LEADER_GLYPH, aI as TabAlignment, aJ as TabDestination, aK as TabLeader, aL as TabStop, aM as TableBorderSideName, aN as TableBorderStrokeRecord, c as TableCellFragmentRecord, aO as TableFragmentRecord, b as TableRowFragmentRecord, aP as VerticalAlign, aQ as appliedSpaceBefore, aR as applyLineSpacing, aS as baselineShiftPtOf, aT as borderExtentPt, aU as borderWeight, aV as bottomBorderExtentPt, aW as buildNumberingIndex, aX as buildStyleCascadeTable, aY as cascadeParagraphFormatting, aZ as cascadeRunProperties, a_ as cascadedBottomBorder, a$ as cascadedParagraphBorders, b0 as cascadedTabStops, b1 as collapsedSpaceBefore, b2 as defaultTabIntervalFromSettings, b3 as displayText, b4 as isValidStyleId, b5 as layoutEquation, b6 as listMarkerBox, b7 as measureDisplayText, b8 as mergeListIndent, b9 as nextTabDestination, ba as paragraphBorderExtentPt, bb as paragraphBorderStrokeWidthPt, bc as paragraphBorders, bd as paragraphBordersFingerprint, be as paragraphBreaksBefore, bf as paragraphContextualSpacing, bg as paragraphLineSpacing, bh as paragraphSpacing, bi as paragraphTabStops, bj as parseRefInstruction, bk as readBorderSide, bl as readCellBorders, bm as readNumPr, bn as readTableBorders, bo as resolveBorderConflict, bp as resolveNumberingLevel, bq as resolveParagraphLayoutInputs, br as resolveRunStyle, bs as resolveStoryListItems, bt as resolveStoryRefFields, bu as resolveTableCellBorderGrid, bv as runStylesEqual, bw as tabAdvanceWidth, bx as tabStopsFingerprint, by as walkStoryParagraphs, bz as withDefaultTabInterval, bA as withNumberingStyleLinks, bB as withResolvedListItems } from './semantic-records-BI1jpft7.js';
|
|
1
|
+
import { g as NumberingLevel, h as NumberingIndex, i as LayoutBox, D as DrawingPoint, j as DrawingInsets, a as StyleSpanRecord, I as InlineDrawingRecord, M as ModelRange, S as SemanticLayout, B as BlockFragmentRecord, A as AnchoredDrawingRecord, k as PageRecord, l as TableBorderSide, C as ContentControlBoundaryRecord$1, m as ContentControlLock, n as ParagraphFragmentRecord, L as LineRecord, T as TextMeasurer, V as VersionedShapingLibrary, b as TextShaper, o as FontByteValidator, c as FixedPointRoundingMode, p as FixedPoint, q as ShapedRun, r as InlineDrawingLayoutContext, s as StyleCascadeTable, H as HyperlinkProjector, t as FieldLinkProjector, u as RefFieldContext, v as StoryPageFieldNeeds, P as PageGeometry, w as ResolvedListItem, x as CellBorderBox, y as TableCellStyleFormatting, z as TableBorderBox } from './semantic-records-92UnKeU_.js';
|
|
2
|
+
export { E as AUTO_PARAGRAPH_SPACING_PT, G as AbstractNumDefinition, J as BidiEmbeddingLevels, K as BorderGridGeometry, O as CascadedParagraphFormatting, Q as ContentControlGeometryFragment, U as ContentControlLevel, W as ContentControlMappedType, X as DEFAULT_PAGE_GEOMETRY, Y as DEFAULT_RUN_STYLE, Z as DEFAULT_TAB_INTERVAL_PT, _ as DEFAULT_TAB_INTERVAL_TWIPS, $ as DeclaredFontSubstitution, a0 as EMPTY_NUMBERING_INDEX, a1 as EMPTY_TAB_STOPS, a2 as EquationFractionGeometry, a3 as EquationGeometry, a4 as EquationNaryGeometry, a5 as EquationRadicalGeometry, a6 as EquationRowGeometry, a7 as EquationScriptGeometry, a8 as EquationSpanRecord, a9 as EquationTextGeometry, aa as FieldAtomMarker, ab as FontFingerprintInputs, ac as FontRequest, ad as FontResolutionError, ae as FontResolutionErrorCode, af as FontResourceDefinition, ag as FontResourceInstrumentation, F as FontResourceSnapshot, ah as FontResourceSnapshotOptions, ai as FontSlot, aj as FontSubstitution, ak as FontValidationResult, al as GlyphOutline, am as HARD_MAX_AGGREGATE_FONT_BYTES, an as HARD_MAX_FONT_BYTES, ao as HARD_MAX_FONT_SOURCES, ap as HeaderFooterStoryRecord, aq as HyperlinkFieldSpec, ar as LevelOverride, as as LineSpacingRule, at as ListMarkerAlign, au as ListMarkerRecord, av as ListSuffix, aw as MAX_BORDER_SPACE_PT, ax as MAX_BORDER_WIDTH_PT, ay as MAX_LVL_OVERRIDES, az as MAX_NUMBERING_DEFINITIONS, aA as MAX_PARAGRAPH_SPACING_PT, aB as MAX_STYLE_BASED_ON_DEPTH, aC as MAX_STYLE_DEFINITIONS, aD as MAX_TABLE_BORDER_STROKES, aE as MAX_TAB_POSITION_TWIPS, aF as MAX_TAB_STOPS, N as NormalizationPolicy, aG as NumDefinition, aH as NumberingLevelIndent, aI as PARAGRAPH_BORDER_SIDES, aJ as PageRefCalibrationCell, aK as PageRefFieldProjection, aL as ParagraphAutoSpacingContext, aM as ParagraphBorderEdge, aN as ParagraphBorderSide, aO as ParagraphBorderStrokeRecord, aP as ParagraphBorders, aQ as ParagraphBottomBorderRecord, aR as ParagraphIndent, aS as ParagraphLayoutInputs, aT as ParagraphLineSpacing, aU as ParagraphSpacing, aV as RefFieldSpec, aW as RefNoteParts, aX as ResolvedCellBorders, d as ResolvedFont, R as ResolvedRunStyle, aY as ResolvedTabStops, aZ as ResolvedTableBorderEdge, a_ as ResolvedTableBorderEdgeSegment, a$ as ResolvedUnderline, b0 as SINGLE_LINE_SPACING, b1 as ScriptItem, b2 as ShapeInput, b3 as ShapedCluster, b4 as ShapedFontSpan, b5 as ShapedGlyph, b6 as ShapedRunComparatorInputs, b7 as ShapedVerticalMetrics, b8 as ShapingEnvironment, b9 as ShapingEnvironmentFingerprintInputs, ba as ShapingEnvironmentInput, bb as SourceRange, bc as SpanLinkRecord, bd as StyleDefinition, be as TAB_LEADER_GLYPH, bf as TabAlignment, bg as TabDestination, bh as TabLeader, bi as TabStop, bj as TableBorderSideName, bk as TableBorderStrokeRecord, f as TableCellFragmentRecord, bl as TableFragmentRecord, e as TableRowFragmentRecord, bm as TextDirection, bn as UnsupportedScriptError, bo as VerticalAlign, bp as appliedSpaceBefore, bq as applyLineSpacing, br as baselineShiftPtOf, bs as borderExtentPt, bt as borderWeight, bu as bottomBorderExtentPt, bv as boundedStructuralFontValidator, bw as buildNumberingIndex, bx as buildStyleCascadeTable, by as cascadeParagraphFormatting, bz as cascadeRunProperties, bA as cascadedBottomBorder, bB as cascadedParagraphBorders, bC as cascadedTabStops, bD as collapsedSpaceBefore, bE as createFontResourceSnapshot, bF as createShapedRun, bG as createShapingEnvironment, bH as defaultTabIntervalFromSettings, bI as displayText, bJ as fixedPoint, bK as fontRequestKey, bL as isValidStyleId, bM as itemizeScriptFontSlots, bN as layoutEquation, bO as listMarkerBox, bP as measureDisplayText, bQ as mergeListIndent, bR as nextTabDestination, bS as paragraphBorderExtentPt, bT as paragraphBorderStrokeWidthPt, bU as paragraphBorders, bV as paragraphBordersFingerprint, bW as paragraphBreaksBefore, bX as paragraphContextualSpacing, bY as paragraphLineSpacing, bZ as paragraphSpacing, b_ as paragraphTabStops, b$ as parseRefInstruction, c0 as readBorderSide, c1 as readCellBorders, c2 as readNumPr, c3 as readTableBorders, c4 as resolveBorderConflict, c5 as resolveNumberingLevel, c6 as resolveParagraphLayoutInputs, c7 as resolveRunStyle, c8 as resolveStoryListItems, c9 as resolveStoryRefFields, ca as resolveTableCellBorderGrid, cb as runStylesEqual, cc as shapedRunComparatorInputs, cd as shapingEnvironmentFingerprint, ce as shapingEnvironmentFingerprintInputs, cf as styleForFontSlot, cg as tabAdvanceWidth, ch as tabStopsFingerprint, ci as walkStoryParagraphs, cj as withDefaultTabInterval, ck as withNumberingStyleLinks, cl as withResolvedListItems } from './semantic-records-92UnKeU_.js';
|
|
3
|
+
export { C as CacheLookup, a as CacheMiss, b as CacheProvenance, L as LayoutShapingOptions, O as OperationSnapshot, c as OperationSnapshotField, d as OperationSnapshotGuard, R as ResolvedCache, e as ResourceDependencyProvenance, S as ShapedMeasurerOptions, f as captureOperationSnapshot, g as createShapedMeasurer, h as guardOperationSnapshot } from './shaped-measurer-BWbindlI.js';
|
|
5
4
|
import { a as OoxmlNode, s as OoxmlProperty, I as ImpactClass, g as OoxmlElement, O as OoxmlPart, T as TreeDocOp, b as OoxmlPackage, $ as ContentControlKind, a0 as ContentControlLevel, a1 as ContentControlLock$1, a2 as ContentControlDataBinding } from './tree-op-types-D6HzlPR4.js';
|
|
6
5
|
export { _ as TableBorderStyle } from './tree-op-types-D6HzlPR4.js';
|
|
7
6
|
import { N as NoteKind, T as TreeModelChange, n as noteTypeOf } from './tree-store-APgWx6qn.js';
|
|
8
7
|
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties } from './note-properties-CDFiNXcD.js';
|
|
9
8
|
import { D as DocumentProperties } from './document-properties-D6Ahr8D6.js';
|
|
10
|
-
import {
|
|
11
|
-
export { D as DEFAULT_REVISION_DISPLAY_MODE,
|
|
12
|
-
import { a as SectionColumns } from './semantic-cell-selection-
|
|
13
|
-
export { C as CellSelection, D as DEFAULT_SECTION_PROPERTIES, b as DEFAULT_VERTICAL_WEIGHT, c as DocumentSection, d as DocumentSectionsEnumeration, e as DrawingOverlayFrame, H as HitPoint, f as HitTestOptions, M as MAX_DOCUMENT_SECTIONS, P as PlacedCell, g as SectionBreakType, h as SectionColumnDefinition, i as SectionMargins, j as SectionPageNumbering, S as SectionProperties, k as SemanticHit, l as SemanticHitDrawing, T as TableCellAddress, m as TableCellContext, n as caretBoxOnLine, o as cellSelectionBetween, p as cellSelectionRects, q as cellSelectionText, r as contentControlAtPoint, s as enumerateDocumentSections, t as enumerateDocumentSectionsBounded, u as findDrawingOverlayFrameInLayout, v as geometryOfSection, w as hitTestPage, x as hitTestSheet, y as isFurniturePoint, z as lineEndOffset, A as pageAtY, B as paragraphSectionNode, E as paragraphsInCells, F as parsePageNumbering, G as parseSectionProperties, I as
|
|
14
|
-
export { M as MAX_SDT_NESTING, c as collectFlowBlocks, a as commentBodyText, b as commentInitials, d as contentControlContentChildren, i as isContentControl, e as isContentControlContent, p as paragraphOrderOfPart } from './review-reads-
|
|
9
|
+
import { b as RevisionAttribution, R as RevisionDisplayMode, a as RevisionAuthorFilter } from './revision-projection-BeXVrSSV.js';
|
|
10
|
+
export { D as DEFAULT_REVISION_DISPLAY_MODE, c as RevisionFilter, d as RevisionKind, f as formatRevisionOf, m as markRevisionRemovesMark, p as paragraphMarkFormatRevisionOf, e as paragraphMarkRevisionOf, g as paragraphMarkRevisionsOf, r as revisionAuthorFilter, h as revisionsAreDeletion, i as revisionsVisible, s as shownMarkRevision } from './revision-projection-BeXVrSSV.js';
|
|
11
|
+
import { a as SectionColumns } from './semantic-cell-selection-BK91NCCG.js';
|
|
12
|
+
export { C as CellSelection, D as DEFAULT_SECTION_PROPERTIES, b as DEFAULT_VERTICAL_WEIGHT, c as DocumentSection, d as DocumentSectionsEnumeration, e as DrawingOverlayFrame, H as HitPoint, f as HitTestOptions, M as MAX_DOCUMENT_SECTIONS, P as PlacedCell, g as SectionBreakType, h as SectionColumnDefinition, i as SectionMargins, j as SectionPageNumbering, S as SectionProperties, k as SemanticHit, l as SemanticHitDrawing, T as TableCellAddress, m as TableCellContext, n as caretBoxOnLine, o as cellSelectionBetween, p as cellSelectionRects, q as cellSelectionText, r as contentControlAtPoint, s as enumerateDocumentSections, t as enumerateDocumentSectionsBounded, u as findDrawingOverlayFrameInLayout, v as geometryOfSection, w as hitTestPage, x as hitTestSheet, y as isFurniturePoint, z as lineEndOffset, A as pageAtY, B as paragraphSectionNode, E as paragraphsInCells, F as parsePageNumbering, G as parseSectionProperties, I as projectedSectionSourceIndexes, J as readSectionProperties, K as spanOffsetX, L as spansInCells, N as tableContextAt } from './semantic-cell-selection-BK91NCCG.js';
|
|
13
|
+
export { M as MAX_SDT_NESTING, c as collectFlowBlocks, a as commentBodyText, b as commentInitials, d as contentControlContentChildren, i as isContentControl, e as isContentControlContent, p as paragraphOrderOfPart } from './review-reads-BjZYeMd4.js';
|
|
15
14
|
import { a as ReviewItem } from './review-items-CCS1h93f.js';
|
|
16
15
|
export { i as CommentAnchor, j as CommentPosition, C as CommentRecord, h as CommentThreadState, c as ReviewCommentItem, d as ReviewCustomItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, W as W15_NAMESPACE_URI, k as activeReviewItem, l as firstReviewRange, r as reviewItemKey, m as reviewItemPositionRank, n as reviewItemRanges, o as reviewItemsAt, p as reviewThreadRootOf } from './review-items-CCS1h93f.js';
|
|
17
|
-
import { S as SemanticPosition, b as SelectionRect, a as SemanticSelection } from './semantic-interaction-
|
|
18
|
-
export { c as CaretAtOptions, C as CaretGeometry, M as MoveCaretOptions, N as NavigationCommand, d as caretAt, e as caretStops, f as caretStopsForBlocks, g as compositionAnchor, h as contentControlAtSemantic, i as contentControlsInLayout, j as deletedTextBoundaries, k as hitTestSemantic, m as moveCaret, p as paragraphTextFromLayout, s as spansInSelection } from './semantic-interaction-
|
|
16
|
+
import { S as SemanticPosition, b as SelectionRect, a as SemanticSelection } from './semantic-interaction-BmQ7h2cq.js';
|
|
17
|
+
export { c as CaretAtOptions, C as CaretGeometry, M as MoveCaretOptions, N as NavigationCommand, d as caretAt, e as caretStops, f as caretStopsForBlocks, g as compositionAnchor, h as contentControlAtSemantic, i as contentControlsInLayout, j as deletedTextBoundaries, k as hitTestSemantic, m as moveCaret, p as paragraphTextFromLayout, s as spansInSelection } from './semantic-interaction-BmQ7h2cq.js';
|
|
19
18
|
import './omml-equation-BY49UOIF.js';
|
|
20
19
|
import './contracts/types.js';
|
|
21
20
|
|
|
21
|
+
/** Synchronous platform-neutral SHA-256 used before font bytes cross into a shaping implementation. */
|
|
22
|
+
declare const sha256FontBytes: (bytes: Uint8Array) => string;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Page-field evaluation context for furniture projection.
|
|
24
26
|
*
|
|
@@ -758,9 +760,6 @@ declare function wordBoundary(text: string, offset: number, direction: -1 | 1, s
|
|
|
758
760
|
*/
|
|
759
761
|
declare function positionPastDeletion(layout: SemanticLayout, position: SemanticPosition): SemanticPosition;
|
|
760
762
|
|
|
761
|
-
/** Synchronous platform-neutral SHA-256 used before font bytes cross into a shaping implementation. */
|
|
762
|
-
declare const sha256FontBytes: (bytes: Uint8Array) => string;
|
|
763
|
-
|
|
764
763
|
/**
|
|
765
764
|
* The exact HarfBuzz build this engine shapes against.
|
|
766
765
|
*
|
|
@@ -905,63 +904,6 @@ declare const createHarfBuzzTextShaper: (options?: HarfBuzzTextShaperOptions) =>
|
|
|
905
904
|
*/
|
|
906
905
|
declare function setHarfBuzzWasmUrl(url: string | URL): void;
|
|
907
906
|
|
|
908
|
-
/**
|
|
909
|
-
* UAX #9 embedding levels, one per UTF-16 code unit, plus the paragraph ranges they were resolved
|
|
910
|
-
* within.
|
|
911
|
-
*
|
|
912
|
-
* The level is EXACT, not a direction: its parity gives direction, but the numeric value is what
|
|
913
|
-
* reordering needs, and collapsing it early loses nested isolates.
|
|
914
|
-
*/
|
|
915
|
-
interface BidiEmbeddingLevels {
|
|
916
|
-
readonly levels: Uint8Array;
|
|
917
|
-
readonly paragraphs: readonly {
|
|
918
|
-
readonly start: number;
|
|
919
|
-
readonly end: number;
|
|
920
|
-
readonly level: number;
|
|
921
|
-
}[];
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* Which `w:rFonts` slot a character resolves its face through.
|
|
926
|
-
*
|
|
927
|
-
* OOXML gives a run up to four faces and picks between them by SCRIPT, so one run of mixed Latin
|
|
928
|
-
* and CJK text uses two different fonts without saying so anywhere in its properties.
|
|
929
|
-
*/
|
|
930
|
-
type FontSlot = 'ascii' | 'hAnsi' | 'eastAsia' | 'cs';
|
|
931
|
-
/**
|
|
932
|
-
* A run of text sharing one script, direction and font slot — the unit handed to the shaper.
|
|
933
|
-
*
|
|
934
|
-
* Shaping cannot span a script change: Arabic and Latin in one call would produce wrong joining
|
|
935
|
-
* behaviour, so a run is itemized into these first.
|
|
936
|
-
*/
|
|
937
|
-
interface ScriptItem {
|
|
938
|
-
readonly from: number;
|
|
939
|
-
readonly to: number;
|
|
940
|
-
readonly direction: TextDirection;
|
|
941
|
-
readonly bidiLevel: number;
|
|
942
|
-
readonly script: 'Zyyy' | 'Latn' | 'Grek' | 'Cyrl' | 'Hani' | 'Hebr' | 'Arab' | 'Deva' | 'Beng' | 'Thai' | 'Khmr';
|
|
943
|
-
readonly slot: FontSlot;
|
|
944
|
-
}
|
|
945
|
-
/**
|
|
946
|
-
* A code point whose script this engine does not itemize.
|
|
947
|
-
*
|
|
948
|
-
* Carries the offending `codePoint` so the caller can report which character stopped it, rather
|
|
949
|
-
* than failing anonymously somewhere in the middle of a paragraph.
|
|
950
|
-
*/
|
|
951
|
-
declare class UnsupportedScriptError extends Error {
|
|
952
|
-
readonly name = "UnsupportedScriptError";
|
|
953
|
-
readonly code = "unsupportedScript";
|
|
954
|
-
readonly codePoint: number;
|
|
955
|
-
constructor(codePoint: number);
|
|
956
|
-
}
|
|
957
|
-
/**
|
|
958
|
-
* Split text into shapeable runs by script, bidi level and font slot.
|
|
959
|
-
*
|
|
960
|
-
* Consumes the bidi levels rather than re-deriving direction, so itemization and reordering agree
|
|
961
|
-
* by construction instead of by two implementations happening to match.
|
|
962
|
-
*/
|
|
963
|
-
declare function itemizeScriptFontSlots(text: string, paragraphOffset: number, embedding: BidiEmbeddingLevels): readonly ScriptItem[];
|
|
964
|
-
|
|
965
907
|
/** UTF-16 boundaries that are both whole-grapheme and HarfBuzz cluster edges. */
|
|
966
908
|
declare function shapedHorizontalBoundaries(run: ShapedRun): readonly number[];
|
|
967
909
|
/**
|
|
@@ -1277,6 +1219,8 @@ interface LayoutNoteStoryOptions {
|
|
|
1277
1219
|
*/
|
|
1278
1220
|
readonly numberingIndex?: NumberingIndex;
|
|
1279
1221
|
readonly defaultTabStopPt?: number;
|
|
1222
|
+
readonly displayMode?: RevisionDisplayMode;
|
|
1223
|
+
readonly revisionAuthorFilter?: RevisionAuthorFilter;
|
|
1280
1224
|
/**
|
|
1281
1225
|
* Same projector seams the BODY walk uses. Without them a `w:hyperlink` or a HYPERLINK
|
|
1282
1226
|
* field inside a note painted as plain text — measured, but carrying no link record for
|
|
@@ -1367,6 +1311,16 @@ declare function syntheticSeparatorBox(contentWidth: number, flowHeight: number)
|
|
|
1367
1311
|
/** Absolute separator box: short rule for marker/synthetic, full width for authored stories. */
|
|
1368
1312
|
declare function noteSeparatorAreaBox(separator: NoteSeparatorLayout, contentX: number, contentWidth: number, areaTop: number): LayoutBox;
|
|
1369
1313
|
|
|
1314
|
+
interface PageRefHit {
|
|
1315
|
+
readonly noteKind: NoteKind;
|
|
1316
|
+
readonly noteId: number;
|
|
1317
|
+
readonly paragraphId: string;
|
|
1318
|
+
/** Canonical UTF-16 atom offset within the paragraph. */
|
|
1319
|
+
readonly atomOffset: number;
|
|
1320
|
+
readonly customMarkFollows: boolean;
|
|
1321
|
+
readonly sectionIndex: number;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1370
1324
|
/**
|
|
1371
1325
|
* Bound on reflow attempts for an UNSEEDED document layout pass (cold open).
|
|
1372
1326
|
*
|
|
@@ -1425,6 +1379,8 @@ interface NotesLayoutInput {
|
|
|
1425
1379
|
/** `numbering.xml`, so a `w:numPr` paragraph inside a note resolves a marker. */
|
|
1426
1380
|
readonly numberingIndex?: NumberingIndex;
|
|
1427
1381
|
readonly defaultTabStopPt?: number;
|
|
1382
|
+
readonly displayMode?: RevisionDisplayMode;
|
|
1383
|
+
readonly revisionAuthorFilter?: RevisionAuthorFilter;
|
|
1428
1384
|
/**
|
|
1429
1385
|
* Link projector seams, same as the body walk's. Normally injected by `semantic-layout`
|
|
1430
1386
|
* from its own options, so a note's `w:hyperlink` / HYPERLINK field carries the same
|
|
@@ -1482,16 +1438,6 @@ interface NotesAttachResult {
|
|
|
1482
1438
|
/** Mark context used for the final body projection (for incremental cache tokens). */
|
|
1483
1439
|
readonly noteMarks: NoteMarkContext;
|
|
1484
1440
|
}
|
|
1485
|
-
interface PageRefHit {
|
|
1486
|
-
readonly noteKind: NoteKind;
|
|
1487
|
-
readonly noteId: number;
|
|
1488
|
-
readonly paragraphId: string;
|
|
1489
|
-
/** Canonical UTF-16 atom offset within the paragraph. */
|
|
1490
|
-
readonly atomOffset: number;
|
|
1491
|
-
readonly customMarkFollows: boolean;
|
|
1492
|
-
readonly sectionIndex: number;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
1441
|
/**
|
|
1496
1442
|
* Whether a paragraph fragment owns a note atom at `atomOffset`.
|
|
1497
1443
|
*
|
|
@@ -1623,6 +1569,8 @@ interface HeaderFooterStoryInputs {
|
|
|
1623
1569
|
* merged into the paragraph's own.
|
|
1624
1570
|
*/
|
|
1625
1571
|
readonly numberingIndex?: NumberingIndex;
|
|
1572
|
+
/** Reviewers whose changes project as accepted in this story. */
|
|
1573
|
+
readonly revisionAuthorFilter?: RevisionAuthorFilter;
|
|
1626
1574
|
}
|
|
1627
1575
|
/**
|
|
1628
1576
|
* Lay one header/footer part out at `contentWidth`.
|
|
@@ -1759,6 +1707,8 @@ interface SemanticLayoutOptions {
|
|
|
1759
1707
|
* accepted every proposal in it.
|
|
1760
1708
|
*/
|
|
1761
1709
|
readonly displayMode?: RevisionDisplayMode;
|
|
1710
|
+
/** Reviewers whose revisions render as their accepted projection. */
|
|
1711
|
+
readonly revisionAuthorFilter?: RevisionAuthorFilter;
|
|
1762
1712
|
/**
|
|
1763
1713
|
* Per-section furniture, index-aligned with `enumerateDocumentSections`.
|
|
1764
1714
|
*
|
|
@@ -2072,14 +2022,14 @@ declare function planRefFieldResultRefresh(part: OoxmlPart, options: RefFieldRef
|
|
|
2072
2022
|
* Repeated calls with the same part and display mode return the SAME array instance,
|
|
2073
2023
|
* shared by every caller — treat it as read-only; mutating it corrupts later callers.
|
|
2074
2024
|
*/
|
|
2075
|
-
declare function storyBlocks(part: OoxmlPart, displayMode?: RevisionDisplayMode): OoxmlElement[];
|
|
2025
|
+
declare function storyBlocks(part: OoxmlPart, displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): OoxmlElement[];
|
|
2076
2026
|
/**
|
|
2077
2027
|
* Blocks of one typed footnote/endnote node — a separate semantic story root.
|
|
2078
2028
|
*
|
|
2079
2029
|
* The footnotes/endnotes part root is never a story; each note is laid out independently
|
|
2080
2030
|
* so line ids and incremental convergence stay namespaced by note identity.
|
|
2081
2031
|
*/
|
|
2082
|
-
declare function noteStoryBlocks(note: OoxmlNode, displayMode?: RevisionDisplayMode): OoxmlElement[];
|
|
2032
|
+
declare function noteStoryBlocks(note: OoxmlNode, displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): OoxmlElement[];
|
|
2083
2033
|
|
|
2084
2034
|
/** Paragraph ids for TOC field begin/end chrome that must not reserve vertical flow when empty. */
|
|
2085
2035
|
declare function tocFieldChromeParagraphIds(part: OoxmlPart): ReadonlySet<string>;
|
|
@@ -2498,7 +2448,7 @@ declare function tableOriginX(structure: SemanticTableStructure, containerWidthP
|
|
|
2498
2448
|
*/
|
|
2499
2449
|
declare function readTableStructure(table: OoxmlNode, contentWidthPt: number, depth: number, styleCascade?: StyleCascadeTable,
|
|
2500
2450
|
/** Which revisions the view resolves away; only the proposed result performs the join. */
|
|
2501
|
-
displayMode?: RevisionDisplayMode): SemanticTableStructure | null;
|
|
2451
|
+
displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): SemanticTableStructure | null;
|
|
2502
2452
|
|
|
2503
2453
|
/**
|
|
2504
2454
|
* `w:pPr/w:rPr/w:del` or `w:moveFrom` — a tracked revision REMOVES the paragraph mark.
|
|
@@ -2513,7 +2463,7 @@ declare function paragraphMarkDeleted(paragraph: OoxmlNode): boolean;
|
|
|
2513
2463
|
* True when a tracked revision has removed this paragraph from the rendered document, so
|
|
2514
2464
|
* layout should emit no box for it at all.
|
|
2515
2465
|
*/
|
|
2516
|
-
declare function revisionRemovesParagraph(paragraph: OoxmlNode, displayMode?:
|
|
2466
|
+
declare function revisionRemovesParagraph(paragraph: OoxmlNode, displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): boolean;
|
|
2517
2467
|
|
|
2518
2468
|
/** Soft ceiling on fragments emitted for one authored row (hostile / runaway splits). */
|
|
2519
2469
|
declare const MAX_TABLE_ROW_FRAGMENTS = 4096;
|
|
@@ -2533,4 +2483,4 @@ declare class TablePaginationError extends Error {
|
|
|
2533
2483
|
constructor(code: TablePaginationErrorCode, message: string);
|
|
2534
2484
|
}
|
|
2535
2485
|
|
|
2536
|
-
export { AUTO_PREFERRED_WIDTH, type AutonumFieldKind, type AutonumFieldSpec,
|
|
2486
|
+
export { AUTO_PREFERRED_WIDTH, type AutonumFieldKind, type AutonumFieldSpec, BlockFragmentRecord, CELL_PAD, COMPOUND_BORDER_MIN_GAP_PT, COMPOUND_BORDER_MIN_STROKE_PT, type CanvasMeasurerOptions, type CanvasTextContext, type CanvasTextMetrics, CellBorderBox, type CellMarginsPt, type CellVerticalAlign, type CompoundBorderMetrics, ContentControlBoundaryRecord$1 as ContentControlBoundaryRecord, type ContentControlFragmentRecord, ContentControlLock, DEFAULT_CANVAS_FONT_STACK, DEFAULT_CELL_MARGINS, FieldLinkProjector, FixedPoint, FixedPointRoundingMode, FontByteValidator, GRAPHEME_SEGMENTER_LOCALE, type GraphemeBoundary, type GraphemeSegment, type GraphemeWordSegmentRecord, HARFBUZZ_SHAPING_LIBRARY, type HarfBuzzFaceCacheEvent, type HarfBuzzOutlineCacheEvent, type HarfBuzzShapeCacheEvent, HarfBuzzShapingError, type HarfBuzzShapingErrorCode, type HarfBuzzTextShaper, type HarfBuzzTextShaperInstrumentation, type HarfBuzzTextShaperOptions, type HeaderFooterVariantName, HyperlinkProjector, type KeyedRange, LayoutBox, type LayoutCacheStats, type LayoutScheduler, type LayoutSchedulerOptions, type LayoutScope, type LayoutSession, type LayoutSessionStats, LineRecord, type ListCounterAdvance, type ListCounterState, MAX_EACH_PAGE_MARK_CANDIDATES, MAX_LVL_TEXT_LENGTH, MAX_MARKER_TEXT_LENGTH, MAX_NOTES_LAID_OUT, MAX_NOTE_FRAGMENTS, MAX_NOTE_OVERFLOW_PAGES, MAX_NOTE_REFLOW_ATTEMPTS, MAX_TABLE_COLUMNS, MAX_TABLE_NESTING, MAX_TABLE_ROW_FRAGMENTS, MAX_TABLE_ROW_HEIGHT_PT, type MaterializationInput, type NoteDisplayMark, type NoteLayoutFallbackReason, type NoteMarkContext, type NotePaginationFallbackReason, type NoteReferenceSite, type NoteSeparatorLayout, type NoteSeparatorRuleStyle, type NoteStoryDrawings, type NoteStoryLayout, type NotesAttachResult, type NotesLayoutInput, NumberingIndex, NumberingLevel, type PageFurniture, PageGeometry, PageRecord, type PageRefIndex, ParagraphFragmentRecord, type ParagraphKeyInputs, type ParagraphLayoutCache, type ParagraphLayoutCacheOptions, type PreferredWidth, type PreferredWidthType, RefFieldContext, type RefFieldRefreshOptions, ResolvedListItem, type ResolvedSurfaceMeasurer, ReviewItem, type ReviewParagraphAnchor, RevisionAttribution, RevisionAuthorFilter, RevisionDisplayMode, SectionColumns, SelectionRect, SemanticLayout, type SemanticLayoutOptions, SemanticPosition, SemanticSelection, type SemanticTableCell, type SemanticTableRow, type SemanticTableStructure, ShapedRun, StyleCascadeTable, StyleSpanRecord, type TableAlignment, TableBorderBox, TableBorderSide, TableCellStyleFormatting, TablePaginationError, type TablePaginationErrorCode, type TableRowHeight, type TableRowHeightRule, TextMeasurer, TextShaper, VersionedShapingLibrary, type ViewportWindow, WORD_SEGMENTER_LOCALE, type WordBoundary, type WordBoundaryResolverDeps, type WordSegment, anchorLineY, attachNotesToLayout, boundedFallbackWordSegments, buildPageRefIndex, clampListValue, computeDoubleBorderMetricsPt, computeFootnoteReserves, contentControlBoundaries, contentControlHoldingParagraph, contentControlRecordsInPart, contentControlsOfLayout, createBoundedFallbackWordBoundary, createDefaultWordBoundary, createFixedMeasurer, createHarfBuzzTextShaper, createIntlWordBoundary, createLayoutScheduler, createLayoutSession, createListCounterState, createParagraphLayoutCache, defaultNoteSeparatorRuleStyle, deriveNoteDisplayMarks, deriveNoteDisplayMarksResolved, documentOrder, effectiveBorderSide, effectiveContentControlLock, emptyTocPlaceholderParagraphIds, emptyTocSuppressedResultParagraphIds, everyStoryOrder, expandLvlText, filterRefsOnPage, findSeparatorNote, formatDecimal, formatDecimalZero, formatLowerLetter, formatLowerRoman, formatNumFmt, formatPageNumber, formatUpperLetter, formatUpperRoman, fragmentOwnsAtomOffset, fragmentsOfParagraph, graphemeBoundaryEpoch, graphemeCount, graphemeOffsetToUtf16, harfBuzzFontValidator, initializeHarfBuzz, intlGraphemeBoundary, isCanvasMeasurementAvailable, isCumulativeGeometryTrustedFromLineOrigin, isGeometryTrustedCaretOffset, isHarfBuzzInitialized, isIntlSegmenterAvailable, isIntlWordSegmenterAvailable, isMarkerOnlySeparatorNote, isWholeGraphemeHorizontalBoundary, keyedRangeRects, layoutHeaderFooterStory, layoutNoteById, layoutNoteSeparator, layoutNoteStory, layoutSemanticDocument, lineAtPosition, linesOf, normalNotesOf, noteDisplayMarkMap, noteLineIdPrefix, noteMarkKey, noteSeparatorAreaBox, noteStoryBlocks, pageRefPageNumbersFromLayout, pagesToMaterialize, paragraphFragmentsOf, paragraphFragmentsOfBlocks, paragraphLayoutKey, paragraphMarkDeleted, paragraphShading, paragraphShadingBox, parseAutonumInstruction, planRefFieldResultRefresh, positionPastDeletion, projectedNoteMarkText, provisionalNoteMarks, readTableStructure, resetGraphemeBoundary, resolveDefaultSurfaceMeasurer, resolveDefaultWordBoundary, resolveOoxmlShadingFill, resolveStrictHexFill, reviewAnchorIndex, reviewItemGeometry, revisionRemovesParagraph, roundFontUnitToFixedPoint, segmentGraphemes, segmentWords, selectionRects, semanticHorizontalBoundaries, setGraphemeBoundary, setHarfBuzzWasmUrl, sha256FontBytes, shadingFillFromElement, shapedHorizontalBoundaries, storyBlocks, syntheticSeparatorBox, tableOriginX, tocFieldChromeParagraphIds, tryCreateCanvasMeasurer, unionLayoutBoxes, utf16OffsetToGrapheme, wordBoundary, wordSegmentsToGraphemeRecords };
|
package/dist/layout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{za as AUTO_PARAGRAPH_SPACING_PT,Gc as AUTO_PREFERRED_WIDTH,Hc as CELL_PAD,ta as COMPOUND_BORDER_MIN_GAP_PT,sa as COMPOUND_BORDER_MIN_STROKE_PT,Od as DEFAULT_CANVAS_FONT_STACK,Ic as DEFAULT_CELL_MARGINS,ra as DEFAULT_PAGE_GEOMETRY,ob as DEFAULT_REVISION_DISPLAY_MODE,z as DEFAULT_RUN_STYLE,jc as DEFAULT_SECTION_PROPERTIES,Sa as DEFAULT_TAB_INTERVAL_PT,Ra as DEFAULT_TAB_INTERVAL_TWIPS,Tc as DEFAULT_VERTICAL_WEIGHT,Kb as EMPTY_NUMBERING_INDEX,Ua as EMPTY_TAB_STOPS,d as FontResolutionError,I as GRAPHEME_SEGMENTER_LOCALE,c as HARD_MAX_AGGREGATE_FONT_BYTES,a as HARD_MAX_FONT_BYTES,b as HARD_MAX_FONT_SOURCES,n as HARFBUZZ_SHAPING_LIBRARY,q as HarfBuzzShapingError,ya as MAX_BORDER_SPACE_PT,xa as MAX_BORDER_WIDTH_PT,ic as MAX_DOCUMENT_SECTIONS,Ed as MAX_EACH_PAGE_MARK_CANDIDATES,Hb as MAX_LVL_OVERRIDES,bb as MAX_LVL_TEXT_LENGTH,ab as MAX_MARKER_TEXT_LENGTH,qd as MAX_NOTES_LAID_OUT,rd as MAX_NOTE_FRAGMENTS,Dd as MAX_NOTE_OVERFLOW_PAGES,Cd as MAX_NOTE_REFLOW_ATTEMPTS,Gb as MAX_NUMBERING_DEFINITIONS,wa as MAX_PARAGRAPH_SPACING_PT,Rb as MAX_STYLE_BASED_ON_DEPTH,Sb as MAX_STYLE_DEFINITIONS,yc as MAX_TABLE_BORDER_STROKES,Jc as MAX_TABLE_NESTING,hd as MAX_TABLE_ROW_FRAGMENTS,Kc as MAX_TABLE_ROW_HEIGHT_PT,Qa as MAX_TAB_POSITION_TWIPS,Pa as MAX_TAB_STOPS,Ba as PARAGRAPH_BORDER_SIDES,ga as ResolvedCache,Aa as SINGLE_LINE_SPACING,Ta as TAB_LEADER_GLYPH,id as TablePaginationError,F as UnsupportedScriptError,X as WORD_SEGMENTER_LOCALE,Xd as anchorLineY,Oa as appliedSpaceBefore,Fa as applyLineSpacing,Jd as attachNotesToLayout,E as baselineShiftPtOf,Fc as borderExtentPt,Cc as borderWeight,La as bottomBorderExtentPt,_ as boundedFallbackWordSegments,f as boundedStructuralFontValidator,Ib as buildNumberingIndex,Gd as buildPageRefIndex,Ub as buildStyleCascadeTable,ea as captureOperationSnapshot,le as caretAt,ad as caretBoxOnLine,je as caretStops,ke as caretStopsForBlocks,Vb as cascadeParagraphFormatting,Xb as cascadeRunProperties,Wb as cascadedBottomBorder,Ia as cascadedParagraphBorders,Va as cascadedTabStops,ue as cellSelectionBetween,ye as cellSelectionRects,ze as cellSelectionText,cb as clampListValue,Na as collapsedSpaceBefore,se as compositionAnchor,ua as computeDoubleBorderMetricsPt,Id as computeFootnoteReserves,Zc as contentControlAtPoint,ne as contentControlAtSemantic,Wd as contentControlBoundaries,pd as contentControlHoldingParagraph,od as contentControlRecordsInPart,oe as contentControlsInLayout,oa as contentControlsOfLayout,$ as createBoundedFallbackWordBoundary,aa as createDefaultWordBoundary,Md as createFixedMeasurer,g as createFontResourceSnapshot,t as createHarfBuzzTextShaper,Z as createIntlWordBoundary,ae as createLayoutScheduler,Ld as createLayoutSession,Lb as createListCounterState,Fb as createParagraphLayoutCache,_d as createShapedMeasurer,l as createShapedRun,i as createShapingEnvironment,xd as defaultNoteSeparatorRuleStyle,Ya as defaultTabIntervalFromSettings,qe as deletedTextBoundaries,fc as deriveNoteDisplayMarks,gc as deriveNoteDisplayMarksResolved,B as displayText,Nc as documentOrder,xc as effectiveBorderSide,qa as effectiveContentControlLock,ld as emptyTocPlaceholderParagraphIds,md as emptyTocSuppressedResultParagraphIds,pc as enumerateDocumentSections,rc as enumerateDocumentSectionsBounded,Oc as everyStoryOrder,kb as expandLvlText,Hd as filterRefsOnPage,bd as findDrawingOverlayFrameInLayout,ud as findSeparatorNote,h as fixedPoint,e as fontRequestKey,db as formatDecimal,eb as formatDecimalZero,ib as formatLowerLetter,gb as formatLowerRoman,jb as formatNumFmt,lb as formatPageNumber,wb as formatRevisionOf,hb as formatUpperLetter,fb as formatUpperRoman,Fd as fragmentOwnsAtomOffset,ma as fragmentsOfParagraph,sc as geometryOfSection,L as graphemeBoundaryEpoch,P as graphemeCount,R as graphemeOffsetToUtf16,fa as guardOperationSnapshot,r as harfBuzzFontValidator,Wc as hitTestPage,me as hitTestSemantic,Yc as hitTestSheet,o as initializeHarfBuzz,K as intlGraphemeBoundary,Qd as isCanvasMeasurementAvailable,V as isCumulativeGeometryTrustedFromLineOrigin,Vc as isFurniturePoint,U as isGeometryTrustedCaretOffset,p as isHarfBuzzInitialized,J as isIntlSegmenterAvailable,Y as isIntlWordSegmenterAvailable,yd as isMarkerOnlySeparatorNote,Tb as isValidStyleId,T as isWholeGraphemeHorizontalBoundary,G as itemizeScriptFontSlots,de as keyedRangeRects,Ob as layoutEquation,nd as layoutHeaderFooterStory,wd as layoutNoteById,zd as layoutNoteSeparator,vd as layoutNoteStory,Nd as layoutSemanticDocument,na as lineAtPosition,_c as lineEndOffset,ja as linesOf,ec as listMarkerBox,ub as markRevisionRemovesMark,C as measureDisplayText,ac as mergeListIndent,re as moveCaret,Za as nextTabDestination,td as normalNotesOf,hc as noteDisplayMarkMap,sd as noteLineIdPrefix,uc as noteMarkKey,Bd as noteSeparatorAreaBox,Db as noteStoryBlocks,Uc as pageAtY,Td as pageRefPageNumbersFromLayout,$d as pagesToMaterialize,Ka as paragraphBorderExtentPt,Ja as paragraphBorderStrokeWidthPt,Ha as paragraphBorders,Ma as paragraphBordersFingerprint,va as paragraphBreaksBefore,Ga as paragraphContextualSpacing,ha as paragraphFragmentsOf,ia as paragraphFragmentsOfBlocks,Eb as paragraphLayoutKey,Ea as paragraphLineSpacing,yb as paragraphMarkDeleted,sb as paragraphMarkFormatRevisionOf,vb as paragraphMarkRevisionOf,rb as paragraphMarkRevisionsOf,nc as paragraphSectionNode,x as paragraphShading,y as paragraphShadingBox,Da as paragraphSpacing,Wa as paragraphTabStops,pe as paragraphTextFromLayout,we as paragraphsInCells,mb as parseAutonumInstruction,kc as parsePageNumbering,nb as parseRefInstruction,lc as parseSectionProperties,Ud as planRefFieldResultRefresh,he as positionPastDeletion,vc as projectedNoteMarkText,qc as projectedSectionSourceIndexes,Kd as provisionalNoteMarks,zc as readBorderSide,Bc as readCellBorders,_b as readNumPr,oc as readSectionProperties,Ac as readTableBorders,Mc as readTableStructure,O as resetGraphemeBoundary,Dc as resolveBorderConflict,Sd as resolveDefaultSurfaceMeasurer,ba as resolveDefaultWordBoundary,Jb as resolveNumberingLevel,v as resolveOoxmlShadingFill,Yb as resolveParagraphLayoutInputs,A as resolveRunStyle,cc as resolveStoryListItems,tc as resolveStoryRefFields,u as resolveStrictHexFill,Ec as resolveTableCellBorderGrid,Yd as reviewAnchorIndex,Zd as reviewItemGeometry,pb as revisionAuthorFilter,Ab as revisionRemovesParagraph,xb as revisionsAreDeletion,qb as revisionsVisible,s as roundFontUnitToFixedPoint,D as runStylesEqual,M as segmentGraphemes,ca as segmentWords,be as selectionRects,W as semanticHorizontalBoundaries,N as setGraphemeBoundary,w as shadingFillFromElement,S as shapedHorizontalBoundaries,m as shapedRunComparatorInputs,k as shapingEnvironmentFingerprint,j as shapingEnvironmentFingerprintInputs,tb as shownMarkRevision,$c as spanOffsetX,xe as spansInCells,te as spansInSelection,Cb as storyBlocks,H as styleForFontSlot,Ad as syntheticSeparatorBox,_a as tabAdvanceWidth,$a as tabStopsFingerprint,Ae as tableContextAt,Lc as tableOriginX,kd as tocFieldChromeParagraphIds,Rd as tryCreateCanvasMeasurer,pa as unionLayoutBoxes,Q as utf16OffsetToGrapheme,bc as walkStoryParagraphs,Xa as withDefaultTabInterval,$b as withNumberingStyleLinks,dc as withResolvedListItems,ie as wordBoundary,da as wordSegmentsToGraphemeRecords}from'./chunk-UKUOZXUD.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';import'./chunk-MQP26KCF.js';import'./chunk-ZVTW7RGD.js';export{Ba as activeReviewItem,Da as commentBodyText,Ea as commentInitials,ya as firstReviewRange,Ja as paragraphOrderOfPart,wa as reviewItemKey,za as reviewItemPositionRank,xa as reviewItemRanges,Aa as reviewItemsAt,Ca as reviewThreadRootOf}from'./chunk-FBA57EUJ.js';export{mc as MAX_SDT_NESTING,Cg as MAX_TABLE_COLUMNS,Of as W15_NAMESPACE_URI,rc as collectFlowBlocks,qc as contentControlContentChildren,nc as isContentControl,oc as isContentControlContent,a as sha256FontBytes}from'./chunk-ZBEJHJN2.js';
|
package/dist/output.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkO5M4CR4P_cjs=require('./chunk-O5M4CR4P.cjs');require('./chunk-NDJGSR6M.cjs'),require('./chunk-DRQHIQ4R.cjs'),require('./chunk-5TKAPFZT.cjs'),require('./chunk-4Z5MODAE.cjs'),require('./chunk-NJNFJPGB.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunkO5M4CR4P_cjs.i}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunkO5M4CR4P_cjs.n}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunkO5M4CR4P_cjs.l}});
|
package/dist/output.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { R as ReviewAuthorInfo } from './semantic-paint-
|
|
2
|
-
export { D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PaintOptions, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles, p as paintSemanticLayout } from './semantic-paint-
|
|
3
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
1
|
+
import { R as ReviewAuthorInfo } from './semantic-paint-DufNL1Zr.cjs';
|
|
2
|
+
export { D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PaintOptions, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles, p as paintSemanticLayout } from './semantic-paint-DufNL1Zr.cjs';
|
|
3
|
+
import { S as SemanticLayout } from './semantic-records-BpozY7-j.cjs';
|
|
4
4
|
import './tree-op-types-BUulYD5y.cjs';
|
|
5
5
|
import './contracts/types.cjs';
|
|
6
|
-
import './revision-projection-
|
|
6
|
+
import './revision-projection-DXbrfNGD.cjs';
|
|
7
7
|
import './omml-equation-DB8d-jCq.cjs';
|
|
8
8
|
|
|
9
9
|
/** A rectangle in page-content coordinates, on a named page. */
|
package/dist/output.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { R as ReviewAuthorInfo } from './semantic-paint-
|
|
2
|
-
export { D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PaintOptions, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles, p as paintSemanticLayout } from './semantic-paint-
|
|
3
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
1
|
+
import { R as ReviewAuthorInfo } from './semantic-paint-WJD2KeG1.js';
|
|
2
|
+
export { D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PaintOptions, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles, p as paintSemanticLayout } from './semantic-paint-WJD2KeG1.js';
|
|
3
|
+
import { S as SemanticLayout } from './semantic-records-92UnKeU_.js';
|
|
4
4
|
import './tree-op-types-D6HzlPR4.js';
|
|
5
5
|
import './contracts/types.js';
|
|
6
|
-
import './revision-projection-
|
|
6
|
+
import './revision-projection-BeXVrSSV.js';
|
|
7
7
|
import './omml-equation-BY49UOIF.js';
|
|
8
8
|
|
|
9
9
|
/** A rectangle in page-content coordinates, on a named page. */
|
package/dist/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{i as DEFAULT_FIELD_SHADING,n as paintSelectionOverlay,l as paintSemanticLayout}from'./chunk-
|
|
1
|
+
export{i as DEFAULT_FIELD_SHADING,n as paintSelectionOverlay,l as paintSemanticLayout}from'./chunk-VQ4R5LTU.js';import'./chunk-UKUOZXUD.js';import'./chunk-RIYSCEFQ.js';import'./chunk-MQP26KCF.js';import'./chunk-ZVTW7RGD.js';import'./chunk-FBA57EUJ.js';import'./chunk-ZBEJHJN2.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HeaderFooterVariant } from './tree-package-fragment-
|
|
1
|
+
import { H as HeaderFooterVariant } from './tree-package-fragment-CWFjgH6a.js';
|
|
2
2
|
import { N as NoteKind } from './tree-store-APgWx6qn.js';
|
|
3
3
|
|
|
4
4
|
/** Alignment as this protocol publishes it. `Mixed`/`Unknown` are read-only answers. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as HeaderFooterVariant } from './tree-package-fragment-
|
|
1
|
+
import { H as HeaderFooterVariant } from './tree-package-fragment-Dhyw7oPm.cjs';
|
|
2
2
|
import { N as NoteKind } from './tree-store-DEEQ9wz_.cjs';
|
|
3
3
|
|
|
4
4
|
/** Alignment as this protocol publishes it. `Mixed`/`Unknown` are read-only answers. */
|
|
@@ -129,28 +129,15 @@ interface LinkableReviewItem {
|
|
|
129
129
|
/**
|
|
130
130
|
* Attach each comment that answers a tracked change to the change it answers.
|
|
131
131
|
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
* and `w:del` nowhere else to put the text. Without this the reply came back as an independent
|
|
135
|
-
* card in the rail, sitting beside the change rather than inside it, and the reader had no way
|
|
136
|
-
* to see which change their answer belonged to.
|
|
137
|
-
*
|
|
138
|
-
* Three things keep it from over-claiming. A ZERO-WIDTH range is evidence of nothing — the same
|
|
139
|
-
* rule the comment threading uses, and a format or paragraph-mark revision decorates no
|
|
140
|
-
* characters at all. A comment already stated to be a REPLY to another comment is not claimed
|
|
141
|
-
* directly, because a stated link always beats an inferred one. And the FIRST revision on a span
|
|
142
|
-
* wins, so a card cannot claim a reply another card already holds.
|
|
132
|
+
* A matching non-empty RANGE is the evidence. A stated comment reply beats an inferred revision
|
|
133
|
+
* link, and the deepest revision on a shared span wins to match click targeting.
|
|
143
134
|
*
|
|
144
135
|
* The WHOLE conversation moves, not its head. A change's card renders `replyIds` as a flat list,
|
|
145
136
|
* so linking only the top comment of a thread left every answer to that answer rendered by
|
|
146
|
-
* nobody
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
* ALREADY linked, so a pass that only ever added links left a stale `parentRevisionId` behind
|
|
151
|
-
* when a keystroke shifted the revision's offsets out from under it — the rail filters such a
|
|
152
|
-
* comment out of its roots, and with no revision claiming it any more the card vanished until
|
|
153
|
-
* the next full re-derivation. Every link is rebuilt from the ranges on every pass.
|
|
137
|
+
* nobody. Descendants ride along in authoring order.
|
|
138
|
+
*
|
|
139
|
+
* The pass is idempotent: every link is rebuilt from ranges, so locally patched queues cannot
|
|
140
|
+
* retain stale `parentRevisionId` values after edits move a revision.
|
|
154
141
|
*/
|
|
155
142
|
declare function linkRevisionReplies<T extends LinkableReviewItem>(items: readonly T[]): T[];
|
|
156
143
|
/**
|
|
@@ -129,28 +129,15 @@ interface LinkableReviewItem {
|
|
|
129
129
|
/**
|
|
130
130
|
* Attach each comment that answers a tracked change to the change it answers.
|
|
131
131
|
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
* and `w:del` nowhere else to put the text. Without this the reply came back as an independent
|
|
135
|
-
* card in the rail, sitting beside the change rather than inside it, and the reader had no way
|
|
136
|
-
* to see which change their answer belonged to.
|
|
137
|
-
*
|
|
138
|
-
* Three things keep it from over-claiming. A ZERO-WIDTH range is evidence of nothing — the same
|
|
139
|
-
* rule the comment threading uses, and a format or paragraph-mark revision decorates no
|
|
140
|
-
* characters at all. A comment already stated to be a REPLY to another comment is not claimed
|
|
141
|
-
* directly, because a stated link always beats an inferred one. And the FIRST revision on a span
|
|
142
|
-
* wins, so a card cannot claim a reply another card already holds.
|
|
132
|
+
* A matching non-empty RANGE is the evidence. A stated comment reply beats an inferred revision
|
|
133
|
+
* link, and the deepest revision on a shared span wins to match click targeting.
|
|
143
134
|
*
|
|
144
135
|
* The WHOLE conversation moves, not its head. A change's card renders `replyIds` as a flat list,
|
|
145
136
|
* so linking only the top comment of a thread left every answer to that answer rendered by
|
|
146
|
-
* nobody
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
* ALREADY linked, so a pass that only ever added links left a stale `parentRevisionId` behind
|
|
151
|
-
* when a keystroke shifted the revision's offsets out from under it — the rail filters such a
|
|
152
|
-
* comment out of its roots, and with no revision claiming it any more the card vanished until
|
|
153
|
-
* the next full re-derivation. Every link is rebuilt from the ranges on every pass.
|
|
137
|
+
* nobody. Descendants ride along in authoring order.
|
|
138
|
+
*
|
|
139
|
+
* The pass is idempotent: every link is rebuilt from ranges, so locally patched queues cannot
|
|
140
|
+
* retain stale `parentRevisionId` values after edits move a revision.
|
|
154
141
|
*/
|
|
155
142
|
declare function linkRevisionReplies<T extends LinkableReviewItem>(items: readonly T[]): T[];
|
|
156
143
|
/**
|
|
@@ -44,6 +44,27 @@ type RevisionDisplayMode = 'all-markup' | 'proposed' | 'original';
|
|
|
44
44
|
* sees them, rather than a clean-looking document hiding edits nobody has accepted.
|
|
45
45
|
*/
|
|
46
46
|
declare const DEFAULT_REVISION_DISPLAY_MODE: RevisionDisplayMode;
|
|
47
|
+
/**
|
|
48
|
+
* A view-time tracked-change filter. Revisions rejected by `includes` use the filter's accepted
|
|
49
|
+
* or rejected projection, while included revisions keep the display mode's normal projection.
|
|
50
|
+
*
|
|
51
|
+
* `cacheKey` is a canonical, content-based identity for layout caches. The set itself is kept
|
|
52
|
+
* because author names are attacker-controlled strings and must never be parsed back from a
|
|
53
|
+
* delimiter-based key.
|
|
54
|
+
*/
|
|
55
|
+
interface RevisionFilter {
|
|
56
|
+
readonly hiddenAuthors: ReadonlySet<string>;
|
|
57
|
+
readonly includes?: (revision: RevisionAttribution) => boolean;
|
|
58
|
+
readonly includesNode?: (nodeId: string, author: string) => boolean;
|
|
59
|
+
/** Accepted/original projection for a revision excluded by `includesNode`. */
|
|
60
|
+
readonly excludedNodeMode?: (nodeId: string, author: string) => 'proposed' | 'original';
|
|
61
|
+
readonly cacheKey: string;
|
|
62
|
+
}
|
|
63
|
+
/** @deprecated Use {@link RevisionFilter}. */
|
|
64
|
+
interface RevisionAuthorFilter extends RevisionFilter {
|
|
65
|
+
}
|
|
66
|
+
/** Build a canonical reviewer filter. An empty input returns `undefined` for the fast path. */
|
|
67
|
+
declare function revisionAuthorFilter(hiddenAuthors: Iterable<string>): RevisionAuthorFilter | undefined;
|
|
47
68
|
/**
|
|
48
69
|
* Whether content under this stack of revisions is laid out in the given mode.
|
|
49
70
|
*
|
|
@@ -51,7 +72,7 @@ declare const DEFAULT_REVISION_DISPLAY_MODE: RevisionDisplayMode;
|
|
|
51
72
|
* everything inside it regardless of what the inner wrappers say. An insertion inside a
|
|
52
73
|
* deletion does not survive the proposed result: the deletion it sits in was accepted.
|
|
53
74
|
*/
|
|
54
|
-
declare function revisionsVisible(revisions: readonly RevisionAttribution[], mode: RevisionDisplayMode): boolean;
|
|
75
|
+
declare function revisionsVisible(revisions: readonly RevisionAttribution[], mode: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): boolean;
|
|
55
76
|
/**
|
|
56
77
|
* Every revision on a paragraph's own MARK, from `w:pPr/w:rPr/w:ins|w:del|w:moveFrom|w:moveTo`.
|
|
57
78
|
*
|
|
@@ -132,4 +153,4 @@ declare function formatRevisionOf(properties: readonly {
|
|
|
132
153
|
/** True when this stack of revisions marks its content as deleted from the live document. */
|
|
133
154
|
declare function revisionsAreDeletion(revisions: readonly RevisionAttribution[]): boolean;
|
|
134
155
|
|
|
135
|
-
export { DEFAULT_REVISION_DISPLAY_MODE as D, type RevisionDisplayMode as R, type
|
|
156
|
+
export { DEFAULT_REVISION_DISPLAY_MODE as D, type RevisionDisplayMode as R, type RevisionAuthorFilter as a, type RevisionAttribution as b, type RevisionFilter as c, type RevisionKind as d, paragraphMarkRevisionOf as e, formatRevisionOf as f, paragraphMarkRevisionsOf as g, revisionsAreDeletion as h, revisionsVisible as i, markRevisionRemovesMark as m, paragraphMarkFormatRevisionOf as p, revisionAuthorFilter as r, shownMarkRevision as s };
|
|
@@ -44,6 +44,27 @@ type RevisionDisplayMode = 'all-markup' | 'proposed' | 'original';
|
|
|
44
44
|
* sees them, rather than a clean-looking document hiding edits nobody has accepted.
|
|
45
45
|
*/
|
|
46
46
|
declare const DEFAULT_REVISION_DISPLAY_MODE: RevisionDisplayMode;
|
|
47
|
+
/**
|
|
48
|
+
* A view-time tracked-change filter. Revisions rejected by `includes` use the filter's accepted
|
|
49
|
+
* or rejected projection, while included revisions keep the display mode's normal projection.
|
|
50
|
+
*
|
|
51
|
+
* `cacheKey` is a canonical, content-based identity for layout caches. The set itself is kept
|
|
52
|
+
* because author names are attacker-controlled strings and must never be parsed back from a
|
|
53
|
+
* delimiter-based key.
|
|
54
|
+
*/
|
|
55
|
+
interface RevisionFilter {
|
|
56
|
+
readonly hiddenAuthors: ReadonlySet<string>;
|
|
57
|
+
readonly includes?: (revision: RevisionAttribution) => boolean;
|
|
58
|
+
readonly includesNode?: (nodeId: string, author: string) => boolean;
|
|
59
|
+
/** Accepted/original projection for a revision excluded by `includesNode`. */
|
|
60
|
+
readonly excludedNodeMode?: (nodeId: string, author: string) => 'proposed' | 'original';
|
|
61
|
+
readonly cacheKey: string;
|
|
62
|
+
}
|
|
63
|
+
/** @deprecated Use {@link RevisionFilter}. */
|
|
64
|
+
interface RevisionAuthorFilter extends RevisionFilter {
|
|
65
|
+
}
|
|
66
|
+
/** Build a canonical reviewer filter. An empty input returns `undefined` for the fast path. */
|
|
67
|
+
declare function revisionAuthorFilter(hiddenAuthors: Iterable<string>): RevisionAuthorFilter | undefined;
|
|
47
68
|
/**
|
|
48
69
|
* Whether content under this stack of revisions is laid out in the given mode.
|
|
49
70
|
*
|
|
@@ -51,7 +72,7 @@ declare const DEFAULT_REVISION_DISPLAY_MODE: RevisionDisplayMode;
|
|
|
51
72
|
* everything inside it regardless of what the inner wrappers say. An insertion inside a
|
|
52
73
|
* deletion does not survive the proposed result: the deletion it sits in was accepted.
|
|
53
74
|
*/
|
|
54
|
-
declare function revisionsVisible(revisions: readonly RevisionAttribution[], mode: RevisionDisplayMode): boolean;
|
|
75
|
+
declare function revisionsVisible(revisions: readonly RevisionAttribution[], mode: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): boolean;
|
|
55
76
|
/**
|
|
56
77
|
* Every revision on a paragraph's own MARK, from `w:pPr/w:rPr/w:ins|w:del|w:moveFrom|w:moveTo`.
|
|
57
78
|
*
|
|
@@ -132,4 +153,4 @@ declare function formatRevisionOf(properties: readonly {
|
|
|
132
153
|
/** True when this stack of revisions marks its content as deleted from the live document. */
|
|
133
154
|
declare function revisionsAreDeletion(revisions: readonly RevisionAttribution[]): boolean;
|
|
134
155
|
|
|
135
|
-
export { DEFAULT_REVISION_DISPLAY_MODE as D, type RevisionDisplayMode as R, type
|
|
156
|
+
export { DEFAULT_REVISION_DISPLAY_MODE as D, type RevisionDisplayMode as R, type RevisionAuthorFilter as a, type RevisionAttribution as b, type RevisionFilter as c, type RevisionKind as d, paragraphMarkRevisionOf as e, formatRevisionOf as f, paragraphMarkRevisionsOf as g, revisionsAreDeletion as h, revisionsVisible as i, markRevisionRemovesMark as m, paragraphMarkFormatRevisionOf as p, revisionAuthorFilter as r, shownMarkRevision as s };
|
package/dist/{semantic-cell-selection-BZ50i-Fu.d.ts → semantic-cell-selection-BK91NCCG.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { O as OoxmlPart, g as OoxmlElement, a as OoxmlNode } from './tree-op-types-D6HzlPR4.js';
|
|
2
|
-
import { P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord,
|
|
3
|
-
import { R as RevisionDisplayMode } from './revision-projection-
|
|
4
|
-
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-
|
|
2
|
+
import { P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, e as TableRowFragmentRecord, f as TableCellFragmentRecord } from './semantic-records-92UnKeU_.js';
|
|
3
|
+
import { R as RevisionDisplayMode, a as RevisionAuthorFilter } from './revision-projection-BeXVrSSV.js';
|
|
4
|
+
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-BmQ7h2cq.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Hard ceiling on sections enumerated from a document (matches write-path
|
|
@@ -144,7 +144,16 @@ declare function readSectionProperties(part: OoxmlPart): SectionProperties;
|
|
|
144
144
|
* a filtered list with indices counted over an unfiltered one puts body text under another
|
|
145
145
|
* section's page geometry — the wrong paper size, the wrong margins, the wrong header.
|
|
146
146
|
*/
|
|
147
|
-
declare function enumerateDocumentSections(part: OoxmlPart, displayMode?: RevisionDisplayMode): DocumentSection[];
|
|
147
|
+
declare function enumerateDocumentSections(part: OoxmlPart, displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): DocumentSection[];
|
|
148
|
+
/**
|
|
149
|
+
* Canonical section index behind each section in a revision-projected body.
|
|
150
|
+
*
|
|
151
|
+
* A removed paragraph mark can collapse an entire section. The projected section keeps the
|
|
152
|
+
* surviving paragraph's geometry, while package APIs such as header/footer resolution remain
|
|
153
|
+
* indexed over the canonical tree. This bridge prevents those two index spaces from being
|
|
154
|
+
* paired positionally.
|
|
155
|
+
*/
|
|
156
|
+
declare function projectedSectionSourceIndexes(part: OoxmlPart, displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): readonly number[];
|
|
148
157
|
/**
|
|
149
158
|
* Every section in a document, with a flag saying whether the list was cut short.
|
|
150
159
|
*
|
|
@@ -162,7 +171,7 @@ interface DocumentSectionsEnumeration {
|
|
|
162
171
|
* hostile input. Prefer the plain enumerator for normal layout; use this when a caller
|
|
163
172
|
* needs a named fail-closed diagnostic.
|
|
164
173
|
*/
|
|
165
|
-
declare function enumerateDocumentSectionsBounded(part: OoxmlPart, displayMode?: RevisionDisplayMode): DocumentSectionsEnumeration;
|
|
174
|
+
declare function enumerateDocumentSectionsBounded(part: OoxmlPart, displayMode?: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): DocumentSectionsEnumeration;
|
|
166
175
|
/**
|
|
167
176
|
* Section properties as the geometry layout paginates against.
|
|
168
177
|
*
|
|
@@ -439,4 +448,4 @@ interface TableCellContext {
|
|
|
439
448
|
*/
|
|
440
449
|
declare function tableContextAt(layout: SemanticLayout, paragraphId: string): TableCellContext | null;
|
|
441
450
|
|
|
442
|
-
export { pageAtY as A, paragraphSectionNode as B, type CellSelection as C, DEFAULT_SECTION_PROPERTIES as D, paragraphsInCells as E, parsePageNumbering as F, parseSectionProperties as G, type HitPoint as H,
|
|
451
|
+
export { pageAtY as A, paragraphSectionNode as B, type CellSelection as C, DEFAULT_SECTION_PROPERTIES as D, paragraphsInCells as E, parsePageNumbering as F, parseSectionProperties as G, type HitPoint as H, projectedSectionSourceIndexes as I, readSectionProperties as J, spanOffsetX as K, spansInCells as L, MAX_DOCUMENT_SECTIONS as M, tableContextAt as N, type PlacedCell as P, type SectionProperties as S, type TableCellAddress as T, type SectionColumns as a, DEFAULT_VERTICAL_WEIGHT as b, type DocumentSection as c, type DocumentSectionsEnumeration as d, type DrawingOverlayFrame as e, type HitTestOptions as f, type SectionBreakType as g, type SectionColumnDefinition as h, type SectionMargins as i, type SectionPageNumbering as j, type SemanticHit as k, type SemanticHitDrawing as l, type TableCellContext as m, caretBoxOnLine as n, cellSelectionBetween as o, cellSelectionRects as p, cellSelectionText as q, contentControlAtPoint as r, enumerateDocumentSections as s, enumerateDocumentSectionsBounded as t, findDrawingOverlayFrameInLayout as u, geometryOfSection as v, hitTestPage as w, hitTestSheet as x, isFurniturePoint as y, lineEndOffset as z };
|