@docx-editor.dev/core 2.33.0 → 2.35.0-canary.20261102190412.sha-b9a04a3

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.
Files changed (111) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +11 -11
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +13 -13
  6. package/dist/binding.js +1 -1
  7. package/dist/{chrome-print-CrPI9ZQc.d.ts → chrome-print-DY0xsXm_.d.ts} +163 -112
  8. package/dist/chunk-36OE5A2F.cjs +3 -0
  9. package/dist/chunk-4BMTYXQL.cjs +7 -0
  10. package/dist/chunk-4UOOFSL5.cjs +4 -0
  11. package/dist/chunk-5KPONTUV.js +1 -0
  12. package/dist/{chunk-L3YXJDPX.js → chunk-5X23LOBT.js} +1 -1
  13. package/dist/chunk-6JKXXUXG.cjs +30 -0
  14. package/dist/chunk-7N553ZFH.js +1 -0
  15. package/dist/chunk-AXUSFHCQ.cjs +5 -0
  16. package/dist/chunk-BI2HHPJ7.cjs +1 -0
  17. package/dist/chunk-CCGWLTCP.cjs +1 -0
  18. package/dist/{chunk-PXMTQ73F.cjs → chunk-CNGBQ36V.cjs} +1 -1
  19. package/dist/{chunk-2F2UEAE2.js → chunk-CZIRRKXA.js} +1 -1
  20. package/dist/{chunk-2DR4TH6B.js → chunk-EVTBNATS.js} +1 -1
  21. package/dist/chunk-GVZRSFUY.cjs +2 -0
  22. package/dist/{chunk-RFUNFTGV.cjs → chunk-HBEVI765.cjs} +1 -1
  23. package/dist/chunk-HQGFS7O5.js +30 -0
  24. package/dist/chunk-I3XDNCUJ.js +3 -0
  25. package/dist/chunk-IK6L3RKU.cjs +236 -0
  26. package/dist/chunk-IVQT6HDE.js +7 -0
  27. package/dist/chunk-JWNOCKTF.js +4 -0
  28. package/dist/chunk-KDA6HKHR.js +236 -0
  29. package/dist/chunk-MCNHQCMR.js +2 -0
  30. package/dist/{chunk-X34QRAUU.cjs → chunk-MKEJJKTH.cjs} +1 -1
  31. package/dist/chunk-NMV7DRHU.cjs +1 -0
  32. package/dist/chunk-NTJWPRUU.js +5 -0
  33. package/dist/chunk-PA4BATSI.js +32 -0
  34. package/dist/chunk-SRKJYXCG.js +1 -0
  35. package/dist/chunk-TKCFTVY4.cjs +4 -0
  36. package/dist/chunk-UILTSNM6.js +4 -0
  37. package/dist/chunk-YBHYIWJH.cjs +32 -0
  38. package/dist/collaboration/replication.cjs +1 -1
  39. package/dist/collaboration/replication.d.ts +11 -4
  40. package/dist/collaboration/replication.js +1 -1
  41. package/dist/collaboration.d.ts +2 -2
  42. package/dist/contracts/document.d.ts +2 -2
  43. package/dist/contracts/editor.d.ts +9 -9
  44. package/dist/contracts/modules.d.ts +11 -11
  45. package/dist/contracts/types.d.ts +3 -3
  46. package/dist/{custom-node-writes-AqY5KpVx.d.ts → custom-node-writes-DparEcZK.d.ts} +45 -7
  47. package/dist/{diagnostic-context-CuzhOX0g.d.ts → diagnostic-context-CkZKkKvB.d.ts} +1 -1
  48. package/dist/{diagnostic-hints-BtCaCqQC.d.ts → diagnostic-hints-BTyb8yzX.d.ts} +1 -1
  49. package/dist/{document-protection-BvbpSXbQ.d.ts → document-protection-DdWxihIN.d.ts} +1 -1
  50. package/dist/{drawing-graphic-kind-CXYGYbB3.d.ts → drawing-graphic-kind-CK0cMc7H.d.ts} +91 -18
  51. package/dist/{drawing-preview-package-B9lSLRg4.d.ts → drawing-preview-package-fFjXpOMS.d.ts} +1 -1
  52. package/dist/{editor-B7OOAAie.d.ts → editor-DDCkWqfD.d.ts} +47 -15
  53. package/dist/editor.cjs +1 -1
  54. package/dist/editor.css +2 -2
  55. package/dist/editor.d.ts +200 -75
  56. package/dist/editor.js +1 -1
  57. package/dist/export.cjs +2 -2
  58. package/dist/export.d.ts +8 -8
  59. package/dist/export.js +1 -1
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.d.ts +20 -20
  62. package/dist/index.js +1 -1
  63. package/dist/{layout-shaping-Ci_BTnSU.d.ts → layout-shaping-Byj-TwsI.d.ts} +1 -1
  64. package/dist/layout.cjs +1 -1
  65. package/dist/layout.d.ts +289 -129
  66. package/dist/layout.js +1 -1
  67. package/dist/{metafile-drawing-DtMFyMKq.d.ts → metafile-drawing-Ce6TuWLm.d.ts} +9 -1
  68. package/dist/{note-properties-DCIJUKIy.d.ts → note-properties-BiunaIQa.d.ts} +31 -7
  69. package/dist/output.cjs +1 -1
  70. package/dist/output.d.ts +76 -12
  71. package/dist/output.js +1 -1
  72. package/dist/{protocol-Cp_QzVxS.d.ts → protocol-Dn44dL4M.d.ts} +184 -120
  73. package/dist/{review-paragraph-order-BJQ43_r0.d.ts → review-paragraph-order-BWMXAKuA.d.ts} +1 -1
  74. package/dist/{revision-projection-OVusTS77.d.ts → revision-projection-DwFhgIR0.d.ts} +1 -1
  75. package/dist/{semantic-cell-selection-CoI5hHBm.d.ts → semantic-cell-selection-DhalxEBH.d.ts} +2 -2
  76. package/dist/{semantic-interaction-BbA4dgEo.d.ts → semantic-interaction-QeuzEtAk.d.ts} +2 -4
  77. package/dist/{semantic-paint-B5JcIv9c.d.ts → semantic-paint-BYDZbTiY.d.ts} +4 -4
  78. package/dist/{semantic-record-queries-DnO8J5_j.d.ts → semantic-record-queries-Bf5bgQL3.d.ts} +1 -1
  79. package/dist/{semantic-records-DoK0lNjS.d.ts → semantic-records-CzZiWMY8.d.ts} +99 -94
  80. package/dist/store.cjs +1 -1
  81. package/dist/store.d.ts +31 -16
  82. package/dist/store.js +1 -1
  83. package/dist/{tree-op-types-Df4oY2u4.d.ts → tree-op-types-DKvJSH8T.d.ts} +204 -147
  84. package/dist/{tree-package-store-DXhX1PE-.d.ts → tree-package-store-Cl3BkWXF.d.ts} +1 -1
  85. package/dist/{tree-session-contract-CF2625mv.d.ts → tree-session-contract-BL50pqs8.d.ts} +14 -7
  86. package/dist/{unsupported-elements-CUojsaCr.d.ts → unsupported-elements-Bra4QTOM.d.ts} +1 -1
  87. package/package.json +2 -2
  88. package/dist/chunk-23MKR33J.js +0 -4
  89. package/dist/chunk-2DEY5NUC.cjs +0 -32
  90. package/dist/chunk-2GPGAFOJ.cjs +0 -5
  91. package/dist/chunk-ALD626VU.cjs +0 -2
  92. package/dist/chunk-AU33YWEJ.js +0 -236
  93. package/dist/chunk-AXU63LYW.cjs +0 -1
  94. package/dist/chunk-CM5VZRBV.js +0 -32
  95. package/dist/chunk-D7FAFFTN.js +0 -1
  96. package/dist/chunk-DYUVJNDD.cjs +0 -1
  97. package/dist/chunk-ESYUKD5D.js +0 -2
  98. package/dist/chunk-F7TGQMVR.js +0 -5
  99. package/dist/chunk-FLW7KIQX.js +0 -30
  100. package/dist/chunk-JG4A6W6I.js +0 -7
  101. package/dist/chunk-JNGLSBPH.js +0 -2
  102. package/dist/chunk-KE6ZWRIY.cjs +0 -236
  103. package/dist/chunk-LI42N7OW.cjs +0 -4
  104. package/dist/chunk-PLKDS4JT.js +0 -1
  105. package/dist/chunk-R4R3AAE4.js +0 -1
  106. package/dist/chunk-SVM6PGMS.js +0 -3
  107. package/dist/chunk-SZURLHR3.cjs +0 -3
  108. package/dist/chunk-UYCGCVZ2.cjs +0 -1
  109. package/dist/chunk-XNBYG4XJ.cjs +0 -30
  110. package/dist/chunk-ZDFJW5XS.cjs +0 -2
  111. package/dist/chunk-ZWO4JHNN.cjs +0 -7
package/dist/layout.js CHANGED
@@ -1 +1 @@
1
- export{R as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,k as LayoutShapingConfigurationError,K as ResolvedCache,fa as SYNTHETIC_BOLD_ADVANCE_EM,z as WORD_SEGMENTER_LOCALE,$ as anchorLineY,C as boundedFallbackWordSegments,I as captureOperationSnapshot,ka as cellSelectionBetween,oa as cellSelectionRects,pa as cellSelectionText,_ as contentControlBoundaries,D as createBoundedFallbackWordBoundary,E as createDefaultWordBoundary,g as createHarfBuzzTextShaper,B as createIntlWordBoundary,ja as createLayoutScheduler,ha as createLayoutShapedMeasurer,r as createLayoutShaping,ga as createShapedMeasurer,t as disposeLayoutShaping,L as exportSourceRangeOf,M as forEachSemanticSpan,J as guardOperationSnapshot,f as harfBuzzFontValidator,c as initializeHarfBuzz,U as isCanvasMeasurementAvailable,x as isCumulativeGeometryTrustedFromLineOrigin,w as isGeometryTrustedCaretOffset,d as isHarfBuzzInitialized,A as isIntlWordSegmenterAvailable,v as isWholeGraphemeHorizontalBoundary,q as layoutFontConfigurationFingerprint,X as pageRefPageNumbersFromLayout,ia as pagesToMaterialize,ma as paragraphsInCells,Y as planRefFieldResultRefresh,o as prepareLayoutFontConfiguration,W as resolveDefaultSurfaceMeasurer,F as resolveDefaultWordBoundary,aa as reviewAnchorIndex,ba as reviewItemGeometry,a as roundFontUnitToFixedPoint,G as segmentWords,y as semanticHorizontalBoundaries,u as shapedHorizontalBoundaries,ea as shapedRunOutline,na as spansInCells,ua as tabLeaderPattern,qa as tableContextAt,V as tryCreateCanvasMeasurer,N as vectorShapeInkClip,H as wordSegmentsToGraphemeRecords}from'./chunk-SVM6PGMS.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';export{Q as AUTO_PARAGRAPH_SPACING_PT,oc as AUTO_PREFERRED_WIDTH,pc as CELL_PAD,J as COMPOUND_BORDER_MIN_GAP_PT,I as COMPOUND_BORDER_MIN_STROKE_PT,qc as DEFAULT_CELL_MARGINS,Aa as DEFAULT_PAGE_GEOMETRY,db as DEFAULT_REVISION_DISPLAY_MODE,ea as DEFAULT_RUN_STYLE,Dd as DEFAULT_SECTION_PROPERTIES,Bb as DEFAULT_TAB_INTERVAL_PT,Ab as DEFAULT_TAB_INTERVAL_TWIPS,ae as DEFAULT_VERTICAL_WEIGHT,cd as EMPTY_NUMBERING_INDEX,Db as EMPTY_TAB_STOPS,d as FontResolutionError,na as GRAPHEME_SEGMENTER_LOCALE,c as HARD_MAX_AGGREGATE_FONT_BYTES,a as HARD_MAX_FONT_BYTES,b as HARD_MAX_FONT_SOURCES,P as MAX_BORDER_SPACE_PT,O as MAX_BORDER_WIDTH_PT,Cd as MAX_DOCUMENT_SECTIONS,Zf as MAX_EACH_PAGE_MARK_CANDIDATES,$c as MAX_LVL_OVERRIDES,wc as MAX_LVL_TEXT_LENGTH,vc as MAX_MARKER_TEXT_LENGTH,Gf as MAX_NOTES_LAID_OUT,Hf as MAX_NOTE_FRAGMENTS,Yf as MAX_NOTE_OVERFLOW_PAGES,Xf as MAX_NOTE_REFLOW_ATTEMPTS,_c as MAX_NUMBERING_DEFINITIONS,N as MAX_PARAGRAPH_SPACING_PT,o as MAX_SHAPING_CONTEXT,id as MAX_STYLE_BASED_ON_DEPTH,Qe as MAX_STYLE_DEFINITIONS,cc as MAX_TABLE_BORDER_STROKES,Yd as MAX_TABLE_NESTING,nf as MAX_TABLE_ROW_FRAGMENTS,Zd as MAX_TABLE_ROW_HEIGHT_PT,zb as MAX_TAB_POSITION_TWIPS,yb as MAX_TAB_STOPS,yd as PAGE_BORDER_SIDES,S as PARAGRAPH_BORDER_SIDES,R as SINGLE_LINE_SPACING,Cb as TAB_LEADER_GLYPH,of as TablePaginationError,xa as UnsupportedScriptError,da as appliedSpaceBefore,W as applyLineSpacing,cg as attachNotesToLayout,E as automaticTextColor,ja as baselineShiftPtOf,jc as borderExtentPt,gc as borderWeight,aa as bottomBorderExtentPt,l as boundedStructuralFontValidator,ad as buildNumberingIndex,$f as buildPageRefIndex,Re as buildStyleCascadeTable,te as caretAt,ke as caretBoxOnLine,re as caretStops,se as caretStopsForBlocks,Se as cascadeParagraphFormatting,Ve as cascadeRunProperties,Ue as cascadedBottomBorder,Z as cascadedParagraphBorders,Eb as cascadedTabStops,xc as clampListValue,ca as collapsedSpaceBefore,ze as compositionAnchor,L as compoundBorderStrokesForExtentPt,K as computeDoubleBorderMetricsPt,bg as computeFootnoteReserves,he as contentControlAtPoint,qe as contentControlAtSemantic,zf as contentControlHoldingParagraph,yf as contentControlRecordsInPart,ue as contentControlsInLayout,Na as contentControlsOfLayout,sf as createDocumentFurnitureSource,vf as createDocumentLinkProjectors,tf as createDocumentNotesInput,ef as createDocumentStyleDependencies,wf as createFieldLinkRegistry,ma as createFixedMeasurer,m as createFontResourceSnapshot,hg as createLayoutSession,pd as createListCounterState,Oe as createParagraphLayoutCache,u as createShapedRun,r as createShapingEnvironment,tb as createUnsupportedContentProjector,Nf as defaultNoteSeparatorRuleStyle,Hb as defaultTabIntervalFromSettings,xe as deletedTextBoundaries,vd as deriveNoteDisplayMarks,wd as deriveNoteDisplayMarksResolved,ga as displayText,Xa as documentOrder,uf as documentRelationshipTargetIn,bc as effectiveBorderSide,Pa as effectiveContentControlLock,vb as emptyTocPlaceholderParagraphIds,wb as emptyTocSuppressedResultParagraphIds,Jd as enumerateDocumentSections,Ld as enumerateDocumentSectionsBounded,Ya as everyStoryOrder,Fc as expandLvlText,ag as filterRefsOnPage,le as findDrawingOverlayFrameInLayout,Kf as findSeparatorNote,n as fixedPoint,h as fontRequestKey,Ja as forEachSemanticDrawing,Ha as forEachSemanticStory,Ka as forEachStoryParagraphFragment,yc as formatDecimal,zc as formatDecimalZero,Dc as formatLowerLetter,Bc as formatLowerRoman,Ec as formatNumFmt,Vc as formatPageNumber,nb as formatRevisionOf,Cc as formatUpperLetter,Ac as formatUpperRoman,_f as fragmentOwnsAtomOffset,La as fragmentsOfParagraph,Md as geometryOfSection,ka as glyphSizeFactorOf,qa as graphemeBoundaryEpoch,ua as graphemeCount,wa as graphemeOffsetToUtf16,sb as groupPictureLayerDrawing,ee as hitTestPage,pe as hitTestSemantic,ge as hitTestSheet,pa as intlGraphemeBoundary,ce as isFurniturePoint,oa as isIntlSegmenterAvailable,Of as isMarkerOnlySeparatorNote,ed as isValidStyleId,ya as itemizeScriptFontSlots,Ee as keyedRangeRects,tc as layoutEquation,rf as layoutHeaderFooterStory,Mf as layoutNoteById,Pf as layoutNoteSeparator,Lf as layoutNoteStory,ig as layoutSemanticDocument,Ma as lineAtPosition,ie as lineEndOffset,Qa as lineSegments,Ea as linesOf,Lb as listMarkerBox,lb as markRevisionRemovesMark,ha as measureDisplayText,od as mergeListIndent,ye as moveCaret,Ib as nextTabDestination,Jf as normalNotesOf,xd as noteDisplayMarkMap,If as noteLineIdPrefix,Ud as noteMarkKey,Rf as noteSeparatorAreaBox,Ff as noteSeparatorRuleBox,$e as noteStoryBlocks,be as pageAtY,Ef as pageBorderFrame,Ad as pageBordersFingerprint,$ as paragraphBorderExtentPt,_ as paragraphBorderStrokeWidthPt,Y as paragraphBorders,ba as paragraphBordersFingerprint,M as paragraphBreaksBefore,X as paragraphContextualSpacing,Ca as paragraphFragmentsOf,Da as paragraphFragmentsOfBlocks,Ne as paragraphLayoutKey,V as paragraphLineSpacing,kc as paragraphMarkDeleted,jb as paragraphMarkFormatRevisionOf,mb as paragraphMarkRevisionOf,ib as paragraphMarkRevisionsOf,Hd as paragraphSectionNode,C as paragraphShading,D as paragraphShadingBox,U as paragraphSpacing,Fb as paragraphTabStops,we as paragraphTextFromLayout,Pc as parseAutonumInstruction,zd as parsePageBorders,Ed as parsePageNumbering,Oc as parseRefInstruction,Fd as parseSectionProperties,Qb as positionPastDeletion,Vd as projectedNoteMarkText,Kd as projectedSectionSourceIndexes,dg as provisionalNoteMarks,dc as readBorderSide,fc as readCellBorders,rd as readNumPr,Id as readSectionProperties,ec as readTableBorders,_d as readTableStructure,ta as resetGraphemeBoundary,hc as resolveBorderConflict,bd as resolveNumberingLevel,A as resolveOoxmlShadingFill,We as resolveParagraphLayoutInputs,fa as resolveRunStyle,td as resolveStoryListItems,Pd as resolveStoryRefFields,z as resolveStrictHexFill,ic as resolveTableCellBorderGrid,gb as revisionAuthorFilter,mc as revisionRemovesParagraph,ob as revisionsAreDeletion,hb as revisionsVisible,dd as runBorderStrokesForLine,ia as runStylesEqual,ra as segmentGraphemes,Be as selectionRects,sa as setGraphemeBoundary,B as shadingFillFromElement,v as shapedRunComparatorInputs,t as shapingEnvironmentFingerprint,s as shapingEnvironmentFingerprintInputs,kb as shownMarkRevision,je as spanOffsetX,Ae as spansInSelection,_e as storyBlocks,za as styleForFontSlot,Qf as syntheticSeparatorBox,Jb as tabAdvanceWidth,Kb as tabStopsFingerprint,Xd as tableOriginX,ub as tocFieldChromeParagraphIds,Oa as unionLayoutBoxes,va as utf16OffsetToGrapheme,Qc as walkStoryParagraphs,Gb as withDefaultTabInterval,sd as withNumberingStyleLinks,ud as withResolvedListItems,ne as wordBoundary}from'./chunk-CM5VZRBV.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';export{bd as MAX_SDT_NESTING,qm as MAX_TABLE_COLUMNS,wj as W15_NAMESPACE_URI,_k as activeReviewItem,gd as collectFlowBlocks,El as commentBodyText,Gl as commentInitials,fd as contentControlContentChildren,Wk as firstReviewRange,cd as isContentControl,dd as isContentControlContent,d as mapSymbolPuaText,zk as paragraphOrderOfPart,Qk as reviewItemKey,Xk as reviewItemPositionRank,Vk as reviewItemRanges,Yk as reviewItemsAt,$k as reviewThreadRootOf,f as sha256FontBytes}from'./chunk-AU33YWEJ.js';
1
+ export{U as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,k as LayoutShapingConfigurationError,K as ResolvedCache,da as SYNTHETIC_BOLD_ADVANCE_EM,z as WORD_SEGMENTER_LOCALE,C as boundedFallbackWordSegments,I as captureOperationSnapshot,ia as cellSelectionBetween,oa as cellSelectionRects,pa as cellSelectionText,ba as contentControlBoundaries,D as createBoundedFallbackWordBoundary,E as createDefaultWordBoundary,g as createHarfBuzzTextShaper,B as createIntlWordBoundary,ha as createLayoutScheduler,fa as createLayoutShapedMeasurer,r as createLayoutShaping,ea as createShapedMeasurer,t as disposeLayoutShaping,L as exportSourceRangeOf,M as forEachSemanticSpan,J as guardOperationSnapshot,f as harfBuzzFontValidator,c as initializeHarfBuzz,X as isCanvasMeasurementAvailable,x as isCumulativeGeometryTrustedFromLineOrigin,w as isGeometryTrustedCaretOffset,d as isHarfBuzzInitialized,A as isIntlWordSegmenterAvailable,v as isWholeGraphemeHorizontalBoundary,q as layoutFontConfigurationFingerprint,_ as pageRefPageNumbersFromLayout,ga as pagesToMaterialize,ma as paragraphsInCells,$ as planRefFieldResultRefresh,o as prepareLayoutFontConfiguration,Z as resolveDefaultSurfaceMeasurer,F as resolveDefaultWordBoundary,a as roundFontUnitToFixedPoint,G as segmentWords,y as semanticHorizontalBoundaries,u as shapedHorizontalBoundaries,ca as shapedRunOutline,na as spansInCells,ua as tabLeaderPattern,qa as tableContextAt,Y as tryCreateCanvasMeasurer,N as vectorShapeInkClip,H as wordSegmentsToGraphemeRecords}from'./chunk-I3XDNCUJ.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';export{X as AUTO_PARAGRAPH_SPACING_PT,wc as AUTO_PREFERRED_WIDTH,xc as CELL_PAD,Q as COMPOUND_BORDER_MIN_GAP_PT,P as COMPOUND_BORDER_MIN_STROKE_PT,yc as DEFAULT_CELL_MARGINS,Ha as DEFAULT_PAGE_GEOMETRY,lb as DEFAULT_REVISION_DISPLAY_MODE,la as DEFAULT_RUN_STYLE,Wd as DEFAULT_SECTION_PROPERTIES,Jb as DEFAULT_TAB_INTERVAL_PT,Ib as DEFAULT_TAB_INTERVAL_TWIPS,te as DEFAULT_VERTICAL_WEIGHT,pd as EMPTY_NUMBERING_INDEX,Lb as EMPTY_TAB_STOPS,d as FontResolutionError,ua as GRAPHEME_SEGMENTER_LOCALE,c as HARD_MAX_AGGREGATE_FONT_BYTES,a as HARD_MAX_FONT_BYTES,b as HARD_MAX_FONT_SOURCES,W as MAX_BORDER_SPACE_PT,V as MAX_BORDER_WIDTH_PT,Vd as MAX_DOCUMENT_SECTIONS,sg as MAX_EACH_PAGE_MARK_CANDIDATES,md as MAX_LVL_OVERRIDES,Dc as MAX_LVL_TEXT_LENGTH,Cc as MAX_MARKER_TEXT_LENGTH,$f as MAX_NOTES_LAID_OUT,ag as MAX_NOTE_FRAGMENTS,rg as MAX_NOTE_OVERFLOW_PAGES,qg as MAX_NOTE_REFLOW_ATTEMPTS,ld as MAX_NUMBERING_DEFINITIONS,U as MAX_PARAGRAPH_SPACING_PT,o as MAX_SHAPING_CONTEXT,zd as MAX_STYLE_BASED_ON_DEPTH,jf as MAX_STYLE_DEFINITIONS,kc as MAX_TABLE_BORDER_STROKES,pe as MAX_TABLE_NESTING,If as MAX_TABLE_ROW_FRAGMENTS,qe as MAX_TABLE_ROW_HEIGHT_PT,Hb as MAX_TAB_POSITION_TWIPS,Gb as MAX_TAB_STOPS,Rd as PAGE_BORDER_SIDES,Z as PARAGRAPH_BORDER_SIDES,Y as SINGLE_LINE_SPACING,Kb as TAB_LEADER_GLYPH,Jf as TablePaginationError,Ea as UnsupportedScriptError,_c as anchorLineY,ka as appliedSpaceBefore,ba as applyLineSpacing,xg as attachNotesToLayout,L as automaticTextColor,qa as baselineShiftPtOf,rc as borderExtentPt,oc as borderWeight,ha as bottomBorderExtentPt,l as boundedStructuralFontValidator,nd as buildNumberingIndex,ug as buildPageRefIndex,kf as buildStyleCascadeTable,Qe as caretAt,De as caretBoxOnLine,Oe as caretStops,Pe as caretStopsForBlocks,lf as cascadeParagraphFormatting,of as cascadeRunProperties,nf as cascadedBottomBorder,ea as cascadedParagraphBorders,Mb as cascadedTabStops,Ec as clampListValue,ja as collapsedSpaceBefore,Ve as compositionAnchor,S as compoundBorderStrokesForExtentPt,R as computeDoubleBorderMetricsPt,wg as computeFootnoteReserves,Ae as contentControlAtPoint,Ne as contentControlAtSemantic,Uf as contentControlHoldingParagraph,Tf as contentControlRecordsInPart,Re as contentControlsInLayout,Ua as contentControlsOfLayout,Nf as createDocumentFurnitureSource,Qf as createDocumentLinkProjectors,Of as createDocumentNotesInput,zf as createDocumentStyleDependencies,Rf as createFieldLinkRegistry,ta as createFixedMeasurer,m as createFontResourceSnapshot,Cg as createLayoutSession,Hd as createListCounterState,hf as createParagraphLayoutCache,u as createShapedRun,r as createShapingEnvironment,Bb as createUnsupportedContentProjector,gg as defaultNoteSeparatorRuleStyle,Pb as defaultTabIntervalFromSettings,Ie as deletedTextBoundaries,Od as deriveNoteDisplayMarks,Pd as deriveNoteDisplayMarksResolved,na as displayText,db as documentOrder,Pf as documentRelationshipTargetIn,jc as effectiveBorderSide,Wa as effectiveContentControlLock,Db as emptyTocPlaceholderParagraphIds,Eb as emptyTocSuppressedResultParagraphIds,ae as enumerateDocumentSections,ce as enumerateDocumentSectionsBounded,eb as everyStoryOrder,Mc as expandLvlText,vg as filterRefsOnPage,Ee as findDrawingOverlayFrameInLayout,dg as findSeparatorNote,n as fixedPoint,h as fontRequestKey,Qa as forEachSemanticDrawing,Oa as forEachSemanticStory,Ra as forEachStoryParagraphFragment,Fc as formatDecimal,Gc as formatDecimalZero,Kc as formatLowerLetter,Ic as formatLowerRoman,Lc as formatNumFmt,gd as formatPageNumber,vb as formatRevisionOf,Jc as formatUpperLetter,Hc as formatUpperRoman,tg as fragmentOwnsAtomOffset,Sa as fragmentsOfParagraph,de as geometryOfSection,ra as glyphSizeFactorOf,xa as graphemeBoundaryEpoch,Ba as graphemeCount,Da as graphemeOffsetToUtf16,Ab as groupPictureLayerDrawing,xe as hitTestPage,Me as hitTestSemantic,ze as hitTestSheet,wa as intlGraphemeBoundary,ve as isFurniturePoint,va as isIntlSegmenterAvailable,hg as isMarkerOnlySeparatorNote,ud as isValidStyleId,Fa as itemizeScriptFontSlots,_e as keyedRangeRects,Ac as layoutEquation,Mf as layoutHeaderFooterStory,fg as layoutNoteById,ig as layoutNoteSeparator,eg as layoutNoteStory,Dg as layoutSemanticDocument,Ta as lineAtPosition,Be as lineEndOffset,Ya as lineSegments,La as linesOf,Tb as listMarkerBox,tb as markRevisionRemovesMark,oa as measureDisplayText,Gd as mergeListIndent,Ue as moveCaret,Qb as nextTabDestination,cg as normalNotesOf,Qd as noteDisplayMarkMap,bg as noteLineIdPrefix,le as noteMarkKey,kg as noteSeparatorAreaBox,_f as noteSeparatorRuleBox,uf as noteStoryBlocks,ue as pageAtY,Zf as pageBorderFrame,Td as pageBordersFingerprint,ga as paragraphBorderExtentPt,fa as paragraphBorderStrokeWidthPt,da as paragraphBorders,ia as paragraphBordersFingerprint,T as paragraphBreaksBefore,ca as paragraphContextualSpacing,Ja as paragraphFragmentsOf,Ka as paragraphFragmentsOfBlocks,gf as paragraphLayoutKey,aa as paragraphLineSpacing,sc as paragraphMarkDeleted,rb as paragraphMarkFormatRevisionOf,ub as paragraphMarkRevisionOf,qb as paragraphMarkRevisionsOf,_d as paragraphSectionNode,J as paragraphShading,K as paragraphShadingBox,$ as paragraphSpacing,Nb as paragraphTabStops,Te as paragraphTextFromLayout,Xc as parseAutonumInstruction,Sd as parsePageBorders,Xd as parsePageNumbering,Vc as parseRefInstruction,Yd as parseSectionProperties,Yb as positionPastDeletion,me as projectedNoteMarkText,be as projectedSectionSourceIndexes,yg as provisionalNoteMarks,lc as readBorderSide,nc as readCellBorders,Jd as readNumPr,$d as readSectionProperties,mc as readTableBorders,re as readTableStructure,Aa as resetGraphemeBoundary,pc as resolveBorderConflict,od as resolveNumberingLevel,H as resolveOoxmlShadingFill,pf as resolveParagraphLayoutInputs,ma as resolveRunStyle,Md as resolveStoryListItems,ge as resolveStoryRefFields,G as resolveStrictHexFill,qc as resolveTableCellBorderGrid,$c as reviewAnchorIndex,ad as reviewItemGeometry,ob as revisionAuthorFilter,uc as revisionRemovesParagraph,wb as revisionsAreDeletion,pb as revisionsVisible,qd as runBorderStrokesForLine,pa as runStylesEqual,ya as segmentGraphemes,Xe as selectionRects,za as setGraphemeBoundary,I as shadingFillFromElement,v as shapedRunComparatorInputs,t as shapingEnvironmentFingerprint,s as shapingEnvironmentFingerprintInputs,sb as shownMarkRevision,Ce as spanOffsetX,We as spansInSelection,tf as storyBlocks,Ga as styleForFontSlot,jg as syntheticSeparatorBox,Rb as tabAdvanceWidth,Sb as tabStopsFingerprint,oe as tableOriginX,Cb as tocFieldChromeParagraphIds,Va as unionLayoutBoxes,Ca as utf16OffsetToGrapheme,Yc as walkStoryParagraphs,Ob as withDefaultTabInterval,Ld as withNumberingStyleLinks,Nd as withResolvedListItems,Ge as wordBoundary}from'./chunk-PA4BATSI.js';import'./chunk-5KPONTUV.js';import'./chunk-JWNOCKTF.js';export{dd as MAX_SDT_NESTING,Jm as MAX_TABLE_COLUMNS,Kj as W15_NAMESPACE_URI,sl as activeReviewItem,id as collectFlowBlocks,Vl as commentBodyText,Xl as commentInitials,hd as contentControlContentChildren,ol as firstReviewRange,ed as isContentControl,fd as isContentControlContent,d as mapSymbolPuaText,Nk as paragraphOrderOfPart,il as reviewItemKey,pl as reviewItemPositionRank,nl as reviewItemRanges,ql as reviewItemsAt,tl as reviewThreadRootOf,f as sha256FontBytes}from'./chunk-KDA6HKHR.js';
@@ -98,10 +98,18 @@ interface MetafileRenderOptions {
98
98
  /** Advance width of `text` in `font`, in pixels at `font.sizePx`. */
99
99
  readonly textAdvance: (text: string, font: MetafileFont) => number;
100
100
  }
101
- /** A replayed metafile. `complete` is false when a bound stopped recording early. @internal */
101
+ /**
102
+ * A replayed metafile. `complete` is false when a bound or a malformed record stopped recording
103
+ * early, and `stop` then says which. @internal
104
+ */
102
105
  interface MetafileReplay {
103
106
  readonly drawing: MetafileDrawing;
104
107
  readonly complete: boolean;
108
+ /**
109
+ * Why recording stopped early: a resource bound, or a record that does not fit. Absent when
110
+ * the replay is complete; a renderer that does not tell the two apart also leaves it out.
111
+ */
112
+ readonly stop?: 'resource-bound' | 'malformed-record';
105
113
  }
106
114
 
107
115
  export type { MetafileFont as M, MetafileReplay as a, MetafileCommand as b, MetafileDrawing as c, MetafileMatrix as d, MetafilePaint as e, MetafilePathCommand as f, MetafileRaster as g, MetafileRenderOptions as h };
@@ -1,4 +1,4 @@
1
- import { O as OoxmlPart, a4 as OoxmlNode, a5 as OoxmlPackage } from './tree-op-types-Df4oY2u4.js';
1
+ import { O as OoxmlPart, a4 as OoxmlNode, a5 as OoxmlPackage } from './tree-op-types-DKvJSH8T.js';
2
2
 
3
3
  /** `w:pos` — where a section's footnotes are laid out. */
4
4
  type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
@@ -27,7 +27,7 @@ interface ResolvedEndnoteProperties {
27
27
  readonly numStart: number;
28
28
  readonly numRestart: NoteNumRestart;
29
29
  }
30
- /** Word's own footnote defaults, applied where a section declares no `w:footnotePr`. */
30
+ /** Footnote defaults, applied to every field a section's `w:footnotePr` does not author. */
31
31
  declare const DEFAULT_FOOTNOTE_PROPERTIES: ResolvedFootnoteProperties;
32
32
  /**
33
33
  * Word-compatible defaults. ECMA-376 says omitted endnote `numFmt` is decimal;
@@ -48,13 +48,37 @@ declare function authoredDocumentFootnoteProperties(settings: OoxmlPart | null |
48
48
  /** Authored document-level endnotePr from settings. */
49
49
  declare function authoredDocumentEndnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
50
50
  /**
51
- * Resolve footnote properties: section → document → defaults.
52
- * Illegal position strings fall through to the next layer / default.
51
+ * Resolve footnote properties from the section's own `w:footnotePr` and the defaults.
52
+ *
53
+ * The document-wide `w:footnotePr` in settings.xml does not take part: a section with no
54
+ * footnote properties of its own numbers `decimal` from 1, continuously, at the page bottom,
55
+ * whatever settings.xml says. A section that authors only some fields takes the defaults for
56
+ * the rest, so `<w:footnotePr><w:numRestart w:val="eachSect"/></w:footnotePr>` numbers its
57
+ * notes 1, 2, 3 in decimal even when settings.xml names `chicago`.
58
+ * Illegal position or restart strings fall back to the default.
59
+ *
60
+ * @param section - The section's authored `w:footnotePr`, if any.
53
61
  */
54
- declare function resolveFootnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedFootnoteProperties;
62
+ declare function resolveFootnoteProperties(section?: AuthoredNoteProperties): ResolvedFootnoteProperties;
55
63
  /**
56
- * Resolve endnote properties: section → document → defaults.
57
- * `pageBottom` is never a legal endnote position — falls back.
64
+ * Resolve footnote properties, ignoring the document-wide value.
65
+ *
66
+ * @deprecated The settings.xml `w:footnotePr` does not change footnote numbering or
67
+ * position, so the second argument has no effect. Call `resolveFootnoteProperties(section)`.
68
+ * @param section - The section's authored `w:footnotePr`, if any.
69
+ * @param document - Ignored.
70
+ */
71
+ declare function resolveFootnoteProperties(section: AuthoredNoteProperties | undefined, document: AuthoredNoteProperties | undefined): ResolvedFootnoteProperties;
72
+ /**
73
+ * Resolve endnote properties.
74
+ *
75
+ * Numbering (`numFmt`, `numStart`, `numRestart`) comes from the section's own `w:endnotePr`
76
+ * and the defaults (`lowerRoman` from 1, continuous) only. The position is document-wide: the
77
+ * settings.xml `w:pos`, else `docEnd`. A section's own endnote `w:pos` does not move its
78
+ * endnotes. `pageBottom` is never a legal endnote position and resolves to `docEnd`.
79
+ *
80
+ * @param section - The section's authored `w:endnotePr`, if any; its `w:pos` is not read.
81
+ * @param document - The settings.xml `w:endnotePr`; only its `w:pos` is read.
58
82
  */
59
83
  declare function resolveEndnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedEndnoteProperties;
60
84
  /** Validate an authored endnote position write — refuse `pageBottom`. */
package/dist/output.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkLI42N7OW_cjs=require('./chunk-LI42N7OW.cjs');require('./chunk-SZURLHR3.cjs'),require('./chunk-2DEY5NUC.cjs'),require('./chunk-DYUVJNDD.cjs'),require('./chunk-ZDFJW5XS.cjs'),require('./chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.p}});Object.defineProperty(exports,"collectPageChangeBars",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.j}});Object.defineProperty(exports,"lumTransfer",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.k}});Object.defineProperty(exports,"observeUnsupportedElements",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.a}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.u}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.s}});
1
+ 'use strict';var chunkTKCFTVY4_cjs=require('./chunk-TKCFTVY4.cjs');require('./chunk-36OE5A2F.cjs'),require('./chunk-YBHYIWJH.cjs'),require('./chunk-CCGWLTCP.cjs'),require('./chunk-4UOOFSL5.cjs'),require('./chunk-IK6L3RKU.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunkTKCFTVY4_cjs.r}});Object.defineProperty(exports,"collectPageChangeBars",{enumerable:true,get:function(){return chunkTKCFTVY4_cjs.l}});Object.defineProperty(exports,"followingGapPaint",{enumerable:true,get:function(){return chunkTKCFTVY4_cjs.a}});Object.defineProperty(exports,"lumTransfer",{enumerable:true,get:function(){return chunkTKCFTVY4_cjs.m}});Object.defineProperty(exports,"observeUnsupportedElements",{enumerable:true,get:function(){return chunkTKCFTVY4_cjs.c}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunkTKCFTVY4_cjs.w}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunkTKCFTVY4_cjs.u}});Object.defineProperty(exports,"paintedGapBetween",{enumerable:true,get:function(){return chunkTKCFTVY4_cjs.b}});
package/dist/output.d.ts CHANGED
@@ -8,17 +8,81 @@
8
8
  * @packageDocumentation
9
9
  * @public
10
10
  */
11
- import { R as ReviewAuthorInfo } from './semantic-paint-B5JcIv9c.js';
12
- export { B as BreakMarkStrings, C as ChangeBarsMode, D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PageChangeBars, d as PaintOptions, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles, e as collectPageChangeBars, p as paintSemanticLayout } from './semantic-paint-B5JcIv9c.js';
13
- import { S as SemanticLayout } from './semantic-records-DoK0lNjS.js';
14
- export { U as UnsupportedElement, e as UnsupportedElementLayout, f as UnsupportedElementRule } from './semantic-records-DoK0lNjS.js';
15
- export { U as UnsupportedElementHost, o as observeUnsupportedElements } from './unsupported-elements-CUojsaCr.js';
16
- export { D as DrawingGraphicKind, a as DrawingSupport, b as DrawingSupportIssue } from './drawing-graphic-kind-CXYGYbB3.js';
17
- import './revision-projection-OVusTS77.js';
18
- import './tree-op-types-Df4oY2u4.js';
11
+ import { R as ReviewAuthorInfo } from './semantic-paint-BYDZbTiY.js';
12
+ export { B as BreakMarkStrings, C as ChangeBarsMode, D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PageChangeBars, d as PaintOptions, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles, e as collectPageChangeBars, p as paintSemanticLayout } from './semantic-paint-BYDZbTiY.js';
13
+ import { S as SemanticLayout } from './semantic-records-CzZiWMY8.js';
14
+ export { U as UnsupportedElement, h as UnsupportedElementLayout, i as UnsupportedElementRule } from './semantic-records-CzZiWMY8.js';
15
+ export { U as UnsupportedElementHost, o as observeUnsupportedElements } from './unsupported-elements-Bra4QTOM.js';
16
+ export { D as DrawingGraphicKind, a as DrawingSupport, b as DrawingSupportIssue } from './drawing-graphic-kind-CK0cMc7H.js';
17
+ import './revision-projection-DwFhgIR0.js';
18
+ import './tree-op-types-DKvJSH8T.js';
19
19
  import './editor-scope-CA6egMaK.js';
20
- import './semantic-record-queries-DnO8J5_j.js';
21
- import './tree-package-store-DXhX1PE-.js';
20
+ import './semantic-record-queries-Bf5bgQL3.js';
21
+ import './tree-package-store-Cl3BkWXF.js';
22
+
23
+ /**
24
+ * The fields of a laid span that decide whether it owns the gap after it. A
25
+ * `StyleSpanRecord` is one.
26
+ *
27
+ * @internal
28
+ */
29
+ interface GapSpan {
30
+ readonly text: string;
31
+ readonly range: {
32
+ readonly paragraphId: string;
33
+ readonly start: number;
34
+ readonly end: number;
35
+ };
36
+ readonly style: {
37
+ readonly horizontalScalePercent: number;
38
+ };
39
+ readonly link?: {
40
+ readonly id: string;
41
+ };
42
+ readonly fieldAtom?: {
43
+ readonly resultStart?: number;
44
+ };
45
+ readonly wrapAdvanceBefore?: number;
46
+ readonly glyphOffsetPt?: number;
47
+ readonly projected?: boolean;
48
+ readonly equation?: unknown;
49
+ readonly unsupported?: unknown;
50
+ }
51
+ /**
52
+ * How a span paints the gap after it, before `next`: `'wordSpacing'` stretches its trailing
53
+ * space, `'letterSpacing'` widens its one character, and null leaves the gap a margin on
54
+ * `next`, which marks do not cover. A span that owns the gap draws its marks across it.
55
+ *
56
+ * @internal
57
+ */
58
+ declare function followingGapPaint(span: GapSpan, next: GapSpan): 'wordSpacing' | 'letterSpacing' | null;
59
+ /**
60
+ * The gap paint draws between `span` and the `next` span, in points: the stretch alignment
61
+ * opens, or a negative gap after a trailing space that a line shrank. Layout shrinks a space by
62
+ * moving the later spans left, so the space keeps its natural box and the next span starts
63
+ * inside it. Zero for any other overlap, and for a gap below 0.001 pt.
64
+ *
65
+ * @internal
66
+ */
67
+ declare function paintedGapBetween(span: PlacedSpan, next: PlacedSpan): number;
68
+ /**
69
+ * The fields of a laid span that {@link paintedGapBetween} reads. A `StyleSpanRecord` is one.
70
+ *
71
+ * @internal
72
+ */
73
+ interface PlacedSpan {
74
+ readonly text: string;
75
+ readonly box: {
76
+ readonly x: number;
77
+ readonly width: number;
78
+ };
79
+ readonly style: {
80
+ readonly shaping?: {
81
+ readonly level?: number;
82
+ } | null;
83
+ };
84
+ readonly wrapAdvanceBefore?: number;
85
+ }
22
86
 
23
87
  /** A rectangle in page-content coordinates, on a named page. */
24
88
  interface OverlayRect {
@@ -106,5 +170,5 @@ interface LumTransfer {
106
170
  */
107
171
  declare function lumTransfer(brightPercent: number, contrastPercent: number): LumTransfer | null;
108
172
 
109
- export { ReviewAuthorInfo, lumTransfer, paintSelectionOverlay };
110
- export type { LumTransfer, OverlayRect, SelectionOverlayOptions };
173
+ export { ReviewAuthorInfo, followingGapPaint, lumTransfer, paintSelectionOverlay, paintedGapBetween };
174
+ export type { GapSpan, LumTransfer, OverlayRect, PlacedSpan, SelectionOverlayOptions };
package/dist/output.js CHANGED
@@ -1 +1 @@
1
- export{p as DEFAULT_FIELD_SHADING,j as collectPageChangeBars,k as lumTransfer,a as observeUnsupportedElements,u as paintSelectionOverlay,s as paintSemanticLayout}from'./chunk-23MKR33J.js';import'./chunk-SVM6PGMS.js';import'./chunk-RIYSCEFQ.js';import'./chunk-CM5VZRBV.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';import'./chunk-AU33YWEJ.js';
1
+ export{r as DEFAULT_FIELD_SHADING,l as collectPageChangeBars,a as followingGapPaint,m as lumTransfer,c as observeUnsupportedElements,w as paintSelectionOverlay,u as paintSemanticLayout,b as paintedGapBetween}from'./chunk-UILTSNM6.js';import'./chunk-I3XDNCUJ.js';import'./chunk-RIYSCEFQ.js';import'./chunk-PA4BATSI.js';import'./chunk-5KPONTUV.js';import'./chunk-JWNOCKTF.js';import'./chunk-KDA6HKHR.js';
@@ -1,122 +1,5 @@
1
- import { aB as AutomationTableMutation, Q as RevisionBatchResult, K as RevisionAuthorResult } from './tree-op-types-Df4oY2u4.js';
2
- import { H as HeaderFooterVariant, N as NoteKind } from './tree-package-store-DXhX1PE-.js';
3
-
4
- /** Word's shape types, as `Word.ShapeType` spells them. */
5
- type AutomationShapeType = 'TextBox' | 'GeometricShape' | 'Picture' | 'Group' | 'Canvas' | 'Unsupported';
6
- /** What a shape read answers. */
7
- interface AutomationShapeRead {
8
- readonly id: number;
9
- readonly name: string;
10
- readonly type: AutomationShapeType;
11
- }
12
-
13
- interface AutomationInlinePictureRead {
14
- readonly width: number;
15
- readonly height: number;
16
- readonly lockAspectRatio: boolean;
17
- readonly altTextDescription: string;
18
- }
19
- interface AutomationInlinePictureWrite {
20
- readonly width?: number;
21
- readonly height?: number;
22
- readonly lockAspectRatio?: boolean;
23
- readonly altTextDescription?: string;
24
- }
25
-
26
- /** Alignment as this protocol publishes it. `Mixed`/`Unknown` are read-only answers. */
27
- type AutomationAlignment = 'Mixed' | 'Unknown' | 'Left' | 'Centered' | 'Right' | 'Justified';
28
- /**
29
- * A paragraph's base direction (`w:bidi`) as this protocol publishes it: the direction the
30
- * paragraph reads in, after its style cascade.
31
- */
32
- type AutomationReadingOrder = 'LeftToRight' | 'RightToLeft';
33
- /**
34
- * What a range agrees about its characters' formatting.
35
- *
36
- * `null` means "no agreed value": the runs disagree, or none of them authors the property. The
37
- * two are one answer on purpose — a caller that must not guess is told not to guess, and a
38
- * caller writing a value writes it unconditionally either way.
39
- */
40
- interface AutomationFontRead {
41
- readonly bold: boolean | null;
42
- readonly italic: boolean | null;
43
- readonly underline: string | null;
44
- readonly strikeThrough: boolean | null;
45
- readonly highlightColor: string | null;
46
- readonly subscript: boolean | null;
47
- readonly superscript: boolean | null;
48
- /** `w:rFonts/@w:ascii`. */
49
- readonly name: string | null;
50
- /** Points. */
51
- readonly size: number | null;
52
- /** `#RRGGBB`. `null` for `auto`, which names no colour. */
53
- readonly color: string | null;
54
- }
55
- /** What a caller asks to author. Every field is optional; an empty request is refused. */
56
- interface AutomationFontWrite {
57
- readonly bold?: boolean;
58
- readonly italic?: boolean;
59
- readonly underline?: string;
60
- readonly strikeThrough?: boolean;
61
- readonly highlightColor?: string | null;
62
- readonly subscript?: boolean;
63
- readonly superscript?: boolean;
64
- readonly name?: string;
65
- readonly size?: number;
66
- readonly color?: string;
67
- }
68
- /** One paragraph's own paragraph properties, in points. `null` = the paragraph authors none. */
69
- interface AutomationParagraphFormatRead {
70
- readonly alignment: AutomationAlignment;
71
- /**
72
- * The paragraph style's NAME, or null where the document names none.
73
- *
74
- * Read here rather than through its own operation so that one load of a paragraph's properties is
75
- * one round trip: the style lives in the same `w:pPr`, and a caller asking for its name and its
76
- * indent should not pay for two.
77
- */
78
- readonly style: string | null;
79
- readonly firstLineIndent: number | null;
80
- readonly leftIndent: number | null;
81
- readonly rightIndent: number | null;
82
- readonly lineSpacing: number | null;
83
- readonly spaceBefore: number | null;
84
- readonly spaceAfter: number | null;
85
- readonly widowControl: boolean | null;
86
- /** The direction the paragraph reads in: its own `w:bidi` if any, else the style cascade's. */
87
- readonly readingOrder: AutomationReadingOrder;
88
- }
89
- /**
90
- * A paragraph-property write. Every field optional; omitted means "leave alone".
91
- *
92
- * Deliberately ONE request covering style and spacing together, because both rewrite `w:pPr` —
93
- * two ops naming the same paragraph in one batch are refused, since the second would carry
94
- * properties the first had already replaced.
95
- */
96
- interface AutomationParagraphFormatWrite {
97
- readonly alignment?: AutomationAlignment;
98
- /**
99
- * A paragraph style name the document already defines. An unknown name is refused.
100
- *
101
- * In the same request as the rest so that applying a style and adjusting a spacing is ONE write:
102
- * both rewrite `w:pPr`, and two ops naming it in one batch are refused because the second would
103
- * carry properties the first had already replaced.
104
- */
105
- readonly style?: string;
106
- readonly firstLineIndent?: number;
107
- readonly leftIndent?: number;
108
- readonly rightIndent?: number;
109
- readonly lineSpacing?: number;
110
- readonly spaceBefore?: number;
111
- readonly spaceAfter?: number;
112
- readonly widowControl?: boolean;
113
- /**
114
- * The direction the paragraph should read in. Nothing is written when it already does. Else the
115
- * paragraph's own `w:bidi` is removed when that alone set the other direction, or stated:
116
- * `<w:bidi/>`, or `<w:bidi w:val="0"/>` over a right-to-left style.
117
- */
118
- readonly readingOrder?: AutomationReadingOrder;
119
- }
1
+ import { aB as AutomationTableMutation, Q as RevisionBatchResult, K as RevisionAuthorResult } from './tree-op-types-DKvJSH8T.js';
2
+ import { H as HeaderFooterVariant, N as NoteKind } from './tree-package-store-Cl3BkWXF.js';
120
3
 
121
4
  declare const MEMBERS: {
122
5
  readonly author: readonly ["http://purl.org/dc/elements/1.1/", 'creator'];
@@ -151,6 +34,28 @@ interface AutomationListLevelFormat {
151
34
  readonly bulletNumberPictureIndent?: number;
152
35
  }
153
36
 
37
+ interface AutomationInlinePictureRead {
38
+ readonly width: number;
39
+ readonly height: number;
40
+ readonly lockAspectRatio: boolean;
41
+ readonly altTextDescription: string;
42
+ }
43
+ interface AutomationInlinePictureWrite {
44
+ readonly width?: number;
45
+ readonly height?: number;
46
+ readonly lockAspectRatio?: boolean;
47
+ readonly altTextDescription?: string;
48
+ }
49
+
50
+ /** Word's shape types, as `Word.ShapeType` spells them. */
51
+ type AutomationShapeType = 'TextBox' | 'GeometricShape' | 'Picture' | 'Group' | 'Canvas' | 'Unsupported';
52
+ /** What a shape read answers. */
53
+ interface AutomationShapeRead {
54
+ readonly id: number;
55
+ readonly name: string;
56
+ readonly type: AutomationShapeType;
57
+ }
58
+
154
59
  /** Table, picture, field, break, and list authoring transport operations. */
155
60
  type AutomationAuthoringOperation = {
156
61
  readonly op: 'getFields';
@@ -312,6 +217,101 @@ type AutomationAuthoringOperation = {
312
217
  readonly location: 'Whole' | 'Content' | 'Start' | 'End' | 'Before' | 'After';
313
218
  };
314
219
 
220
+ /** Alignment as this protocol publishes it. `Mixed`/`Unknown` are read-only answers. */
221
+ type AutomationAlignment = 'Mixed' | 'Unknown' | 'Left' | 'Centered' | 'Right' | 'Justified';
222
+ /**
223
+ * A paragraph's base direction (`w:bidi`) as this protocol publishes it: the direction the
224
+ * paragraph reads in, after its style cascade.
225
+ */
226
+ type AutomationReadingOrder = 'LeftToRight' | 'RightToLeft';
227
+ /**
228
+ * What a range agrees about its characters' formatting.
229
+ *
230
+ * `null` means "no agreed value": the runs disagree, or none of them authors the property. The
231
+ * two are one answer on purpose — a caller that must not guess is told not to guess, and a
232
+ * caller writing a value writes it unconditionally either way.
233
+ */
234
+ interface AutomationFontRead {
235
+ readonly bold: boolean | null;
236
+ readonly italic: boolean | null;
237
+ readonly underline: string | null;
238
+ readonly strikeThrough: boolean | null;
239
+ readonly highlightColor: string | null;
240
+ readonly subscript: boolean | null;
241
+ readonly superscript: boolean | null;
242
+ /** `w:rFonts/@w:ascii`. */
243
+ readonly name: string | null;
244
+ /** Points. */
245
+ readonly size: number | null;
246
+ /** `#RRGGBB`. `null` for `auto`, which names no colour. */
247
+ readonly color: string | null;
248
+ }
249
+ /** What a caller asks to author. Every field is optional; an empty request is refused. */
250
+ interface AutomationFontWrite {
251
+ readonly bold?: boolean;
252
+ readonly italic?: boolean;
253
+ readonly underline?: string;
254
+ readonly strikeThrough?: boolean;
255
+ readonly highlightColor?: string | null;
256
+ readonly subscript?: boolean;
257
+ readonly superscript?: boolean;
258
+ readonly name?: string;
259
+ readonly size?: number;
260
+ readonly color?: string;
261
+ }
262
+ /** One paragraph's own paragraph properties, in points. `null` = the paragraph authors none. */
263
+ interface AutomationParagraphFormatRead {
264
+ readonly alignment: AutomationAlignment;
265
+ /**
266
+ * The paragraph style's NAME, or null where the document names none.
267
+ *
268
+ * Read here rather than through its own operation so that one load of a paragraph's properties is
269
+ * one round trip: the style lives in the same `w:pPr`, and a caller asking for its name and its
270
+ * indent should not pay for two.
271
+ */
272
+ readonly style: string | null;
273
+ readonly firstLineIndent: number | null;
274
+ readonly leftIndent: number | null;
275
+ readonly rightIndent: number | null;
276
+ readonly lineSpacing: number | null;
277
+ readonly spaceBefore: number | null;
278
+ readonly spaceAfter: number | null;
279
+ readonly widowControl: boolean | null;
280
+ /** The direction the paragraph reads in: its own `w:bidi` if any, else the style cascade's. */
281
+ readonly readingOrder: AutomationReadingOrder;
282
+ }
283
+ /**
284
+ * A paragraph-property write. Every field optional; omitted means "leave alone".
285
+ *
286
+ * Deliberately ONE request covering style and spacing together, because both rewrite `w:pPr` —
287
+ * two ops naming the same paragraph in one batch are refused, since the second would carry
288
+ * properties the first had already replaced.
289
+ */
290
+ interface AutomationParagraphFormatWrite {
291
+ readonly alignment?: AutomationAlignment;
292
+ /**
293
+ * A paragraph style name the document already defines. An unknown name is refused.
294
+ *
295
+ * In the same request as the rest so that applying a style and adjusting a spacing is ONE write:
296
+ * both rewrite `w:pPr`, and two ops naming it in one batch are refused because the second would
297
+ * carry properties the first had already replaced.
298
+ */
299
+ readonly style?: string;
300
+ readonly firstLineIndent?: number;
301
+ readonly leftIndent?: number;
302
+ readonly rightIndent?: number;
303
+ readonly lineSpacing?: number;
304
+ readonly spaceBefore?: number;
305
+ readonly spaceAfter?: number;
306
+ readonly widowControl?: boolean;
307
+ /**
308
+ * The direction the paragraph should read in. Nothing is written when it already does. Else the
309
+ * paragraph's own `w:bidi` is removed when that alone set the other direction, or stated:
310
+ * `<w:bidi/>`, or `<w:bidi w:val="0"/>` over a right-to-left style.
311
+ */
312
+ readonly readingOrder?: AutomationReadingOrder;
313
+ }
314
+
315
315
  /**
316
316
  * Which way round a page is, in OOXML's own lower-case spelling.
317
317
  *
@@ -491,6 +491,23 @@ type AutomationOperation = AutomationAuthoringOperation | {
491
491
  } | {
492
492
  readonly op: 'getDocumentProperty';
493
493
  readonly name: DocumentPropertyName;
494
+ }
495
+ /**
496
+ * The styles `styles.xml` defines, of every kind, in part order. `setStyle` accepts paragraph
497
+ * style names only; character, table, and numbering names are listed but refused there.
498
+ *
499
+ * Give at most one of these to ask a narrower question:
500
+ * - `name`: the answer holds at most the one style that name finds. Names compare without case
501
+ * and surrounding spaces, as `setStyle` compares them, and a paragraph style wins over another
502
+ * kind with the same name. A name longer than 255 characters finds nothing.
503
+ * - `id`: the answer holds at most the listed style with that `w:styleId`.
504
+ * - `count: true`: the answer is the number of listed styles, as a `number` value.
505
+ */
506
+ | {
507
+ readonly op: 'getStyles';
508
+ readonly name?: string;
509
+ readonly id?: string;
510
+ readonly count?: true;
494
511
  } | {
495
512
  readonly op: 'setDocumentProperties';
496
513
  readonly values: DocumentPropertyWrites;
@@ -1453,6 +1470,48 @@ interface AutomationCustomNodePayload {
1453
1470
  /** Just the `op` discriminants of {@link AutomationOperation}, for dispatch tables. */
1454
1471
  type AutomationOperationKind = AutomationOperation['op'];
1455
1472
 
1473
+ /** The style kinds a listing names, in the part's own `w:type` vocabulary. */
1474
+ type AutomationStyleKind = 'paragraph' | 'character' | 'table' | 'numbering';
1475
+ /**
1476
+ * One style the styles part defines, as a listing answers it.
1477
+ *
1478
+ * `name` is the part's own `w:name`. A paragraph `setStyle` write accepts it only when `type` is
1479
+ * `paragraph`; character, table, and numbering names are refused there. A reference to another
1480
+ * style answers that style's NAME, or null where the part names none or names a style this field
1481
+ * does not allow.
1482
+ */
1483
+ interface AutomationStyleRead {
1484
+ /** The `w:styleId`. Names can repeat across kinds; the id tells two listed styles apart. */
1485
+ readonly id: string;
1486
+ /** The `w:name`, as the part declares it. */
1487
+ readonly name: string;
1488
+ /** The `w:type`, in the part's own vocabulary. */
1489
+ readonly type: AutomationStyleKind;
1490
+ /** False when the part marks the style `w:customStyle`. */
1491
+ readonly builtIn: boolean;
1492
+ /** The `w:basedOn` style, when it is a listed style of the same kind. */
1493
+ readonly basedOn: string | null;
1494
+ /**
1495
+ * The style of the paragraph after this one, always a listed paragraph style. A paragraph style
1496
+ * that states no `w:next` names itself. Null for every other kind, and where `w:next` names a
1497
+ * style that is not a listed paragraph style.
1498
+ */
1499
+ readonly next: string | null;
1500
+ /**
1501
+ * Whether `w:link` pairs this style with a listed style of the other linkable kind: a paragraph
1502
+ * style with a character style, or a character style with a paragraph style.
1503
+ */
1504
+ readonly linked: boolean;
1505
+ /** Whether the part marks the style `w:semiHidden` or `w:hidden`. */
1506
+ readonly hidden: boolean;
1507
+ /** The `w:uiPriority`, or null where the part states no valid one. */
1508
+ readonly uiPriority: number | null;
1509
+ /** Whether the part marks the style `w:qFormat`. */
1510
+ readonly quickStyle: boolean;
1511
+ /** Whether the part marks the style `w:unhideWhenUsed`. */
1512
+ readonly unhideWhenUsed: boolean;
1513
+ }
1514
+
1456
1515
  /**
1457
1516
  * What kind of document object a handle names.
1458
1517
  *
@@ -1704,6 +1763,11 @@ type AutomationValue = {
1704
1763
  readonly kind: 'style';
1705
1764
  readonly name: string | null;
1706
1765
  }
1766
+ /** The styles a document defines, in the order its styles part writes them. */
1767
+ | {
1768
+ readonly kind: 'styles';
1769
+ readonly styles: readonly AutomationStyleRead[];
1770
+ }
1707
1771
  /** A command that committed. The observable effect is the response's revision/changed. */
1708
1772
  | {
1709
1773
  readonly kind: 'applied';
@@ -1810,4 +1874,4 @@ interface AutomationHost {
1810
1874
  dispose(): void;
1811
1875
  }
1812
1876
 
1813
- export type { AutomationOperation as A, AutomationOperationKind as B, AutomationOperationResult as C, AutomationPageOrientation as D, AutomationPageSetupRead as E, AutomationPageSetupWrite as F, AutomationParagraphFormatRead as G, AutomationParagraphFormatWrite as H, AutomationParagraphRef as I, AutomationPoint as J, AutomationReadingOrder as K, AutomationSaveResult as L, AutomationSearchOptions as M, AutomationSelectionMode as N, AutomationShapeRead as O, AutomationShapeType as P, AutomationSpan as Q, AutomationSpanRef as R, AutomationTextProjection as S, AutomationUnsubscribe as T, AutomationValue as U, AutomationCapabilities as a, AutomationHost as b, AutomationAlignment as c, AutomationAuthoringOperation as d, AutomationBatchRequest as e, AutomationBatchResponse as f, AutomationChangeEvent as g, AutomationContentControlLock as h, AutomationContentControlRangeLocation as i, AutomationContentControlScope as j, AutomationContentControlSubtype as k, AutomationContentControlValue as l, AutomationCustomNodePayload as m, AutomationEndpoint as n, AutomationError as o, AutomationErrorCode as p, AutomationFontRead as q, AutomationFontWrite as r, AutomationHandle as s, AutomationHandleRef as t, AutomationInlinePictureRead as u, AutomationInlinePictureWrite as v, AutomationListBullet as w, AutomationListLevelFormat as x, AutomationListNumbering as y, AutomationObjectKind as z };
1877
+ export type { AutomationOperation as A, AutomationOperationKind as B, AutomationOperationResult as C, AutomationPageOrientation as D, AutomationPageSetupRead as E, AutomationPageSetupWrite as F, AutomationParagraphFormatRead as G, AutomationParagraphFormatWrite as H, AutomationParagraphRef as I, AutomationPoint as J, AutomationReadingOrder as K, AutomationSaveResult as L, AutomationSearchOptions as M, AutomationSelectionMode as N, AutomationShapeRead as O, AutomationShapeType as P, AutomationSpan as Q, AutomationSpanRef as R, AutomationStyleKind as S, AutomationStyleRead as T, AutomationTextProjection as U, AutomationUnsubscribe as V, AutomationValue as W, AutomationCapabilities as a, AutomationHost as b, AutomationAlignment as c, AutomationAuthoringOperation as d, AutomationBatchRequest as e, AutomationBatchResponse as f, AutomationChangeEvent as g, AutomationContentControlLock as h, AutomationContentControlRangeLocation as i, AutomationContentControlScope as j, AutomationContentControlSubtype as k, AutomationContentControlValue as l, AutomationCustomNodePayload as m, AutomationEndpoint as n, AutomationError as o, AutomationErrorCode as p, AutomationFontRead as q, AutomationFontWrite as r, AutomationHandle as s, AutomationHandleRef as t, AutomationInlinePictureRead as u, AutomationInlinePictureWrite as v, AutomationListBullet as w, AutomationListLevelFormat as x, AutomationListNumbering as y, AutomationObjectKind as z };
@@ -1,4 +1,4 @@
1
- import { a4 as OoxmlNode, av as OoxmlElement, aw as OoxmlContentControlNode, ax as OoxmlGenericElementNode, ay as OoxmlContentControlContentNode, C as CommentRecord, O as OoxmlPart } from './tree-op-types-Df4oY2u4.js';
1
+ import { a4 as OoxmlNode, av as OoxmlElement, aw as OoxmlContentControlNode, ax as OoxmlGenericElementNode, ay as OoxmlContentControlContentNode, C as CommentRecord, O as OoxmlPart } from './tree-op-types-DKvJSH8T.js';
2
2
 
3
3
  /** Nested content-control wrappers deeper than this stop flattening; content stays preserved. */
4
4
  declare const MAX_CONTENT_CONTROL_NESTING = 32;
@@ -1,4 +1,4 @@
1
- import { a4 as OoxmlNode } from './tree-op-types-Df4oY2u4.js';
1
+ import { a4 as OoxmlNode } from './tree-op-types-DKvJSH8T.js';
2
2
 
3
3
  /** Named revision colors. Identifiers are stable and never contain CSS. @public */
4
4
  declare const REVISION_MARKUP_COLORS: readonly ['black', 'blue', 'turquoise', 'green', 'pink', 'red', 'yellow', 'white', 'darkBlue', 'teal', 'darkGreen', 'violet', 'darkRed', 'darkYellow', 'gray50', 'gray25', 'lightBlue', 'lightYellow', 'lightOrange', 'lightPurple', 'lightGreen', 'gray'];
@@ -1,5 +1,5 @@
1
- import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-BbA4dgEo.js';
2
- import { I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, g as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, h as TableRowFragmentRecord, i as TableCellFragmentRecord } from './semantic-records-DoK0lNjS.js';
1
+ import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-QeuzEtAk.js';
2
+ import { I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, e as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, f as TableRowFragmentRecord, g as TableCellFragmentRecord } from './semantic-records-CzZiWMY8.js';
3
3
 
4
4
  /** A point in the coordinate space named by the function taking it. */
5
5
  interface HitPoint {
@@ -1,4 +1,4 @@
1
- import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, g as StyleSpanRecord } from './semantic-records-DoK0lNjS.js';
1
+ import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, e as StyleSpanRecord } from './semantic-records-CzZiWMY8.js';
2
2
 
3
3
  /** How `moveCaret` resolves a motion. */
4
4
  interface MoveCaretOptions {
@@ -92,8 +92,6 @@ type NavigationCommand = 'left' | 'right' | 'up' | 'down' | 'wordLeft' | 'wordRi
92
92
  * motion in the interaction lane instead of making it a second consumer of the model.
93
93
  */
94
94
  declare function paragraphTextFromLayout(layout: SemanticLayout, paragraphId: string): string;
95
- /** Visible deletion boundaries split words without changing canonical text offsets. */
96
- declare function deletedTextBoundaries(layout: SemanticLayout, paragraphId: string): ReadonlySet<number>;
97
95
 
98
96
  /** Move a caret; vertical movement carries a desired X through shorter lines. */
99
97
  declare function moveCaret(layout: SemanticLayout, position: SemanticPosition, command: NavigationCommand, desiredX?: number | null, options?: MoveCaretOptions): {
@@ -131,5 +129,5 @@ declare function spansInSelection(layout: SemanticLayout, selection: SemanticSel
131
129
  */
132
130
  order: readonly string[]): StyleSpanRecord[];
133
131
 
134
- export { caretAt as d, caretStops as e, caretStopsForBlocks as f, compositionAnchor as g, contentControlsInLayout as h, deletedTextBoundaries as i, moveCaret as m, paragraphTextFromLayout as p, spansInSelection as s };
132
+ export { caretAt as d, caretStops as e, caretStopsForBlocks as f, compositionAnchor as g, contentControlsInLayout as h, moveCaret as m, paragraphTextFromLayout as p, spansInSelection as s };
135
133
  export type { CaretGeometry as C, MoveCaretOptions as M, NavigationCommand as N, SemanticPosition as S, SemanticSelection as a, SelectionRect as b, CaretAtOptions as c };